branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>kindanon/AsciiPlanets<file_sep>/README.md
# AsciiPlanets
3d planets in ascii on the terminal
<file_sep>/AsciiPlanets.py
import math
pi = math.pi
f_len = 50
f_wid = 50
def PointsInCircum(r):
return [(int(25+ math.cos(2*pi/1000*x)*r),int(25+ math.sin(2*pi/1000*x)*r)) for x in range(0,1000+1)]
def Rings... | e603121e07597087b5506488228e2b3c98047d2e | [
"Markdown",
"Python"
] | 2 | Markdown | kindanon/AsciiPlanets | fab1b4b17e3431e4fe5736e879db38149231b62e | 7ccba1520d7c97229be4bcda3fcca853c90c0c26 |
refs/heads/master | <file_sep>package solutions.egen.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import solutions.egen.exceptions.AppException;
import solutions.egen.model.Guest;
import solutions.egen.utils... | c5fdb5fa68d5295a8a6d43bb8132a11090d34a0b | [
"Markdown",
"Java",
"JavaScript"
] | 5 | Java | shreyaspednekar1/Restaurant-Reservation-System | ca2f88603c94e7b8f840ec692c8a8cdbd988becb | 7dd29f9714b6030bd75542241ad96cbc97c8520f |
refs/heads/master | <repo_name>TiffannyVarela/P3Lab6_TiffannyVarela6<file_sep>/Binario.h
#pragma once
#include <string>
using namespace std;
class Binario: public Numero
{
public:
Binario();
Binario(string);
string getNumero();
string toString();
int entero();
//Binario* operator +(int, int);
/*virtual Numero* Suma(int, int);
v... | acdeb46852025537088f51a63b5ffdf71caf4e45 | [
"C++"
] | 11 | C++ | TiffannyVarela/P3Lab6_TiffannyVarela6 | 6026176d4084c26f84aaef1bfcc4e73085f5cde1 | 913ab4be6ed83d77f7ce2ae96c599da2af2739ad |
refs/heads/master | <repo_name>jessetsaoj/myFirstProject<file_sep>/Server.py
# -*- encoding: utf-8 -*-
import socket
import threading
import datetime
from time import gmtime, strftime
class Server:
def __init__(self, host, port):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.sock = sock
... | 4641b129f0ac0be947a791d4da9cd75b65507ce8 | [
"Markdown",
"Python"
] | 5 | Python | jessetsaoj/myFirstProject | e09edb0ce6d566c5d7928f204d4484742f53a8df | e32ad4663e0eb3dcd2aee33a1f11ab3b0d53605e |
refs/heads/master | <file_sep>##Variable information
These signals were used to estimate variables of the feature vector for each pattern:
'-XYZ' is used to denote 3-axial signals in the X, Y and Z directions.
In the summary we've included the average mean and average standard devation for each user-activity pair.
tBodyAcc-XYZ
tGravi... | ba4c1d7f4c7005f45f66dfb38ab7fcef9f181506 | [
"Markdown",
"R"
] | 3 | Markdown | Dylanb1299/GettingAndCleaningData | 7a4cbfaf72212e7b9d6299e66c7b3c5f103603e0 | f3bf126c49f7edff0fb264570cf3ffc1f5577b84 |
refs/heads/main | <repo_name>MSajedian/Todo-App-with-Hooks<file_sep>/src/store/index.js
import { createStore } from 'redux'
import rootReducer from './reducers'
import { initialState } from './reducers'
export default createStore(
rootReducer,
initialState,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTEN... | 06c6768e19e993e5860cd1eaa06d9349118e4d76 | [
"JavaScript"
] | 2 | JavaScript | MSajedian/Todo-App-with-Hooks | ebd54e25256eeaf5cb4d88eae375ba639015481b | 99b9dfc38c85ca716257a85afe736b02577708bf |
refs/heads/master | <repo_name>rgranger/dota-windstrom<file_sep>/src/send-email.js
export function sendEmail(data = {}) {
return fetch(`https://${window.location.host}/api/send-email`, {
method: 'POST',
mode: 'cors',
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
})
}
<file_sep>/src/App.js
imp... | 3d0c2a1f3e7a01adaf6f376bced0360dfb6dd9d4 | [
"JavaScript"
] | 3 | JavaScript | rgranger/dota-windstrom | adba3546e4364c479beeccf1b0b6ffd1a6675ec2 | 9c674ab4c5913a68ab9f483bb9e23b3e4a6b084c |
refs/heads/master | <file_sep>import os
import unittest
import ccodegen as cg
class TestCodeGen(unittest.TestCase):
def test_ifndef(self):
tmp = cg.Ifndef('__TEST_H__')
self.assertEqual(str(tmp), '#ifndef __TEST_H__\n')
def test_endif(self):
self.assertEqual(str(cg.Endif()), '#endif')
def test_cfile(... | 0c99977963cabca1de7c2382e6333c7b10f4f3d6 | [
"Markdown",
"Python"
] | 6 | Python | linuxias/ccodegen | 2704dfbe3fd297cb5add0d22a8d4399e614e6b95 | a574fe52a0e0b513740378d153a144eb967365c6 |
refs/heads/master | <repo_name>snakecy/R-Projects<file_sep>/ipindata/api/wr_predict_test.R
library(methods)
library(curl,lib="/home/azureuser/R/x86_64-pc-linux-gnu-library/3.2")
library(foreach,lib="/home/azureuser/R/x86_64-pc-linux-gnu-library/3.2")
library(Matrix,lib="/home/azureuser/R/x86_64-pc-linux-gnu-library/3.2")
library(Fea... | d75069e9cafc74c591662c148c4571563480da46 | [
"Markdown",
"R",
"PHP",
"Shell"
] | 22 | R | snakecy/R-Projects | efc6e6dcb42d3b11daac0c5ac2d7fcd2a6b6bf7d | de838ed2611efb162e176bb495945af92e304017 |
refs/heads/master | <repo_name>lpcuellar/web-2020<file_sep>/ejemplos_django/example/owners/views.py
from django.shortcuts import render
from guardian.shortcuts import assign_perm
from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import status... | ee03c9bd0d071ce9f993aa07156a72bf67c0ff5a | [
"JavaScript",
"Python"
] | 2 | Python | lpcuellar/web-2020 | 9cadf5bbcd4837252ee916fe4b99b6cb76b8eeb3 | 8cbe50bc92ce7e0b867fd30eca173fb78fbf2deb |
refs/heads/master | <file_sep>'''
Created on Jan 29, 2017
@author: saldivar
'''
import os
from itertools import cycle
board = list(map(lambda x: '-', list(range(9))))
player = ['X', 'O']
player_next = cycle(player)
# Uncomment for console
clear = lambda: os.system("clear")
def print_board():
for p in reversed(range(0,9,3)):
... | a352fe4e6c059c963cb5886b66fc11d6dfb17b5a | [
"Python"
] | 1 | Python | j7saldivar/python-tic-tac-toe | 7a15779bde0d6be4c620c06832a00ddc0c720e29 | f7e7705f02b483f8f1dcb6e15092cbdc56b597d5 |
refs/heads/master | <repo_name>RhadMax/Psychic-Game<file_sep>/README.md
# Psychic-Game
This was the irst javascript homework assignment for UCSD Extension coding bootcamp. We were tasked with creating a site where the user is asked to take guesses at a letter of the alphabet chosen at random with each play. The user starts with 10 guesses... | 3381fab19e07201ddd2018075f941d0b87628314 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | RhadMax/Psychic-Game | a0da564847363a05996601d6464a45b343829865 | 54edcfd2c522b2d3dd84f27f24f94399cf19bf87 |
refs/heads/master | <repo_name>Dauphine-M1-Java-20/td00-brulej<file_sep>/td00/src/test/java/fr/dauphine/ja/brulejeremie/td00/PrimeCollectionTest.java
package fr.dauphine.ja.brulejeremie.td00;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class ... | 73b5e6d43fb8349d75de506ad491dd3b895a53ee | [
"Java"
] | 1 | Java | Dauphine-M1-Java-20/td00-brulej | 28a034b7b90de4aea86ddd3f51f554d7761433f1 | 70bbccc92be4e17e0b3119ba1f8fcc19871456fa |
refs/heads/master | <file_sep>#include<iostream>
#include<climits>
#include<vector>
#include"student.h"
#include"timetable.h"
#include"submission.h"
using namespace std;
student::student()
{
cout<<"Enter the number of students in the class";cin>>size;
while(cin.fail())
{
cin.clear();
cin.ignore(INT... | 098e079eec57dbfe92e75ac0fcda6537d4bb7401 | [
"C",
"C++"
] | 23 | C++ | RahulJha06/Student_Teacher-interface | 8f55466ed8509198b765ada59ada853e87144575 | 8afe07ca59c607e1b6f479619b41abcbd42484dd |
refs/heads/master | <file_sep>/*
---
script: localize-html.js
description: Provides automatic localization of HTML nodes and attributes using strings.json $L() command
license: MIT license <http://www.opensource.org/licenses/mit-license.php>
authors:
- <NAME>
version: 1.0.0
To use, call `start_localize_html()` in your first scene's ... | 8621298126a650230d85acbbbc6c5cbe57b8e9c5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | onecrayon/localize-html-webos | c33200fae6974ee27725da94a6fca53114002a6e | 84bd34eb671146e8733200493c0272ce00263357 |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <cmath>
// ABANDON ALL HOPE,
// YE WHO ENTER HERE...
using namespace std;
string name;
char race;
int playerPos[2];
int playerHP;
int playerAtk;
int playerDef;
int pla... | b02d91f24ebf26aef2e5855c90e00290709f779d | [
"Makefile",
"C++"
] | 2 | C++ | erik-kz/cc3k | 20dafa62b337cedbc657d573cdb7b6e43c49d724 | eb1cda011a15e850ca018d5bc403e04d5774de7e |
refs/heads/master | <repo_name>email2rishi13/myprofile-app<file_sep>/src/controllers/feedback.controller.js
const httpStatus = require('http-status');
const feedbackService = require('../services/feedbackService.service');
module.exports.saveFeedback = async (req, res, next) => {
try {
const { name, email, message } = req.bo... | b534fc1d67be7ebee6cacfad9f511a476c3c767a | [
"JavaScript"
] | 6 | JavaScript | email2rishi13/myprofile-app | 8cd848f6113193e4b11359a6faae042c8dbe4732 | d3214e5e039de7bae1d3e6118cd43c24f5e8f730 |
refs/heads/master | <file_sep>package com.epam.Dedeepya;
public class kajubarfi extends sweets{
public int calculateweight(int quantity,int weight)
{
return quantity*weight;
}
}
<file_sep># V.Dedeepya_Maven
This is maven project.
<file_sep>package com.epam.Dedeepya;
public class rasmalai extends sweets{
public int calculateweight(... | 79a5878ba1b2a0d2b4d930a3cbf17c87b7c5cc02 | [
"Markdown",
"Java"
] | 4 | Java | dedeepyavaddi/V.Dedeepya_Maven | 166196e80367327bc24f46cdab507004852bfb83 | 790e41c2657eb1dce81f8ab7ac509dae6f63329d |
refs/heads/master | <repo_name>Genskill2/07-ssort-aparnasuresh28<file_sep>/swap.c
void swap_max(int a[], int l, int n )
{
int i,temp=0,count=0,max=0;
temp=a[n];
for(i=n+1;i<l;i++)
{
if(a[i]>temp)
{temp=a[i];
count=i;
}
else continue;
}
if(temp>a[n])
{
a[count... | d05935718b3e0d8c09ce5776c266d0a3a15c7ff8 | [
"C"
] | 1 | C | Genskill2/07-ssort-aparnasuresh28 | d8c6cc7d08e82376d7feadef308b3931f73d9828 | a2cdc03e8c651b59309183744077cd71c8ce3ee6 |
refs/heads/master | <repo_name>Maxineshiiba/GameIndustryTrendAnalysis<file_sep>/feed_keyword_index.py
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# Objective: to analyze the leverage ratio of external factors which would affect game performance
# in the market, thereby facilitating the execution of the marketing process in a more cost-... | d37480f2d913a09291073c37478f116287724501 | [
"Python"
] | 1 | Python | Maxineshiiba/GameIndustryTrendAnalysis | 979827c8f7355ef804e6d9f36d809e65a1e21400 | 284c3c2f0bf2833f0dd8c7a81c899fe8061bd525 |
refs/heads/master | <repo_name>ArtRand/signalAlign_notebook<file_sep>/experiment_scripts/ErrorRate.py
#!/usr/bin/env python
"""ErrorRate.py randomly selects alignments from two experiments and tests their accuracy at a given coverage
The input to this script is a directory of PCR generated alignments and a directory of genomic DNA generat... | c84d00337d355c62649eee55f547c62a7cb39300 | [
"Markdown",
"Python"
] | 5 | Python | ArtRand/signalAlign_notebook | e9e40348f0d18328bbc925db8852ab6dc997aceb | ee0803735d76353584408616bc88a125042fd37e |
refs/heads/master | <file_sep>import React from 'react'
import cx from 'classnames'
import styles from '../../assets/css/header.module.scss';
import {HiClipboardList} from 'react-icons/hi'
function index() {
return (
<div className={cx(styles.header)} >
<span><HiClipboardList className={styles.appIcon}/></span>
... | 6b6b59d73d3254ff9c08b2bb5419b33edba87261 | [
"JavaScript"
] | 5 | JavaScript | hassanalimalek/Drello | 131a0bf058eeebc7c6b3d8553c3c4cf9ccba0257 | cc9775f9757cf631d5249c2afe03eb08f267abbd |
refs/heads/main | <file_sep># Sorteio-times
⚽ Site desenvolvido com HTML, CSS e JavaScript com o objetivo de recolher nomes dos jogadores da sua partida de futebol e sortear times aleatórios
<file_sep>// Array que armazena os jogadores
jogadores = []
let nomeJogador = document.querySelector('input#txtjogador')
// Variáveis que... | ac453471eb77cb718819cfcc2d1335f907ef004f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | PauloLeal22/Sorteio-Equipes | 248c9aded749bc5225a8697a95f7661fbc979750 | 7b8dd5ccfd6c28f436e4bdec07a276a421f4f8b8 |
refs/heads/master | <repo_name>williamdistler/elevadorIndustrial<file_sep>/Elevador.java
class Elevador {
private String codigo;
private int estado; //0, 1, 2 ou 3
private int posicao;
private int totalRun; //historico deslocamento
public void inicializar(String codigo) {
if (this.estaDesligado()) {
this.codigo = cod... | 85c4ed021b4b78035d4eab46774b39ab8a870bef | [
"Java"
] | 1 | Java | williamdistler/elevadorIndustrial | d41fa4e8f44a2cd5cf5355c9733ad4e2117af034 | 86bb15e005ac31754075b8ba7fc1fb0cdbddb9b6 |
refs/heads/master | <file_sep>s = "BEEKEEPER"
binarydict = {
"B": "1 ",
"E": "0 ",
"K": "01 ",
"P": "00 ",
"R": "10 "
}
def binary_replace(string, dictionary):
for letter in string:
if letter in dictionary.keys():
string = string.replace(letter, dictionary[letter])
return string
print(binary_replace(s, binarydict))
<file_se... | 7697baa3c15c9f64a54aa684aba6fa4f2c991837 | [
"Markdown",
"Python"
] | 2 | Python | BenLanden/StringManipulation | 9fb8621722c984d42d307419ab3c4eca12c0ecd3 | 2bc8761d085a2e30e0ef27bf09c431349c9b29cd |
refs/heads/master | <file_sep>package cmds
import (
"bufio"
"fmt"
"os"
"strings"
"github.com/pachyderm/pachyderm/src/client"
"github.com/pachyderm/pachyderm/src/client/auth"
"github.com/pachyderm/pachyderm/src/client/pkg/config"
"github.com/pachyderm/pachyderm/src/server/pkg/cmdutil"
"github.com/spf13/cobra"
)
var githubAuthL... | 5f04868f7dcbdfce1cf4c726c460037449ca10f5 | [
"Go"
] | 3 | Go | kluikens/pachyderm | 4b791e5453778b57db4e907eb1796bdbb9810cf2 | 2b1916b6a3b2395dad00ea1678e2945eee1521bc |
refs/heads/main | <file_sep>#include "core/init.h"
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <termios.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
pid_t shell_pgid;
struct termios shell_tmodes;
int shell_terminal;
int shell_is_interactive;
void init... | 023953e32fdea4d7d23476a70dcf158a5867bc8d | [
"C"
] | 13 | C | GaelErhlich/shell-linux | e9d7e575927c58c6e8b0ed167c3ab1421909c5e1 | 1fe53fefcf91815e9b7159d62b365c8dc7b199ca |
refs/heads/master | <file_sep># Skill Test From Refactory.id -- Q2
- file palindrome.cpp :
Program to check string are palindrome or not.
- file leap_year.cpp :
Program to find the leap year list of ranges between 2 inputs.
How to build :
1. Create folder build using ```mkdir build```
3. ```cd build/```
4. ```cmake ..```
5. ```make```
... | 14a8af0baa7e63134366ac56e40f5abc933a6973 | [
"CMake",
"Markdown",
"JavaScript",
"Python",
"C++",
"Shell"
] | 21 | Markdown | hernantak/answer-test-refactoryid | 3917b7f5f112677ed34c23bde5a83fd71f62d0b3 | 2911a66183a01f3692ba72b23e9293d3f47eaa59 |
refs/heads/main | <file_sep># COSC-3P93-Parallel-Computing
Parallel Computing
<file_sep># include <bits/stdc++.h>
# include "mpi.h"
# include <string.h>
# include <time.h>
using namespace std;
// compile command: mpic++ -g -Wall -o test PS3.cpp
// execute command: mpiexec -n <desired # of processors> ./test
const string GENES = "abcdefg... | 32a2c1fa9cee1420e5e9f480483edac80b9f79e3 | [
"Markdown",
"C++"
] | 2 | Markdown | danny150799/COSC-3P93-Parallel-Computing | b179e99b960b67a2a1766dc67e4b9c49a5bdbba1 | a3e3e34c2f71eca9ab66083ceca305d827410dbb |
refs/heads/main | <file_sep>-- Overview of the database
SELECT 'Customers' AS table_name,
13 AS number_of_attribute,
COUNT(*) AS number_of_row
FROM Customers
UNION ALL
SELECT 'Products' AS table_name,
9 AS number_of_attribute,
COUNT(*) AS number_of_row
FROM Products
UNION ALL
SELECT 'ProductLines' ... | 7a32f982e6b1eede59d73d6ae523fc5e238e0a45 | [
"SQL"
] | 1 | SQL | davidetaraborrelli/Projects_cars | 56dd1339a4c149622bfa9d3dd61dc256443fced3 | dc4d21de4b57523955a59426c333605c4782abf7 |
refs/heads/dev_test | <repo_name>zhouhang95/blender_mmd_tools<file_sep>/mmd_tools/core/pmd/__init__.py
# -*- coding: utf-8 -*-
import struct
import os
import re
import logging
import collections
class InvalidFileError(Exception):
pass
class UnsupportedVersionError(Exception):
pass
class FileStream:
def __init__(self, path, fil... | 04212b8056f9a15f5378bb23655d17235b95548e | [
"Markdown",
"Python"
] | 10 | Python | zhouhang95/blender_mmd_tools | 2cee07602a50747c0839234eebaef9b2c89efb74 | 070df3ddc76bd87439140c3fd6aa1f18ee119335 |
refs/heads/master | <repo_name>YAR-Y1/myprog<file_sep>/program.py
# Я автор этой наисложнейшей программы
print('Моя первая программа!!!')
# rffdsdfafsafsas
print('Hello, Python 3.8')
| ea0a1ba431c27343a38451e0bc3275932cd5fd1f | [
"Python"
] | 1 | Python | YAR-Y1/myprog | 0bd5e6ede9d7d5d880aced85cf69786727c27596 | 947030cf49f3d5f8bfcf504531a4c5a0741666e2 |
refs/heads/master | <file_sep># Legacy Session Manager
A COM+ .NET DLL that provides cross site Session Management for ASP Classic and ASP.NET over Load Balancer
# Installation:
ASP Classic
----------------------------------------------
1- Register the "LegacySessionManager" under "Administrative Tools"->"Component Services".
1-1- Co... | b72af0469f1e22048c2944585d85d06f3ef36e97 | [
"Markdown",
"C#"
] | 10 | Markdown | barsham/LegacySessionManager | 48e4ac794adefda4e8a07ab94da06eec55c6a6ec | 2775bd2a941883290e286f4cc4ed5a179dcfef09 |
refs/heads/master | <repo_name>RiskaAndriani/soal1<file_sep>/data-diri.md
Data Diri
===
Nama : <NAME>
NIM : 15515020111080
Kelas : IF-E
<file_sep>/Soal_1/src/soal_1/Mahasiswa.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the te... | 4aa75ba5fa8049a28457643be6a298b78c9e30d9 | [
"Markdown",
"Java"
] | 2 | Markdown | RiskaAndriani/soal1 | d02f7dfc4228a36f0e469b991d5159095feb1df0 | e2c2bfca08a1b59ab6a3516268f722647093a922 |
refs/heads/master | <repo_name>PJ81/colorSort<file_sep>/src/state.ts
import * as Const from "./const.js";
import Column from "./column.js";
class BubbleMove {
from: number;
to: number;
constructor(f: number = -1, t: number = -1) {
this.from = f;
this.to = t;
}
}
export default class State {
id: number;
parentID: num... | d68ee7b103f0cd9b75b6cf47ca1af06c148bba47 | [
"TypeScript"
] | 15 | TypeScript | PJ81/colorSort | 4e434ca2f99e89bc45a902a29f9991020d6f3fad | 28ee3b01c71933f8d9903e2807948a7ac27f8048 |
refs/heads/main | <file_sep>const express = require('express');
const app = express();
const SocketIO = require('socket.io');
//setting
app.set('port', process.env.PORT || 3001);
//Middlewares
//app.disable('x-powered-by');
//Server
const server = app.listen(app.get('port'), () => {
console.log('server en el puierto 4001', app.get... | 9389036487e32624f7e966ac24d93e8c4a4ef8fc | [
"TypeScript"
] | 1 | TypeScript | whccc/ChatWhcSocket | 9acc9c82d9013c305bd0dde7cfe8c16b09bbeb9e | f33219930f280814080783258c494103a77c2be2 |
refs/heads/master | <file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package np;
/**
*
* @author Sid
*/
public class Value {
public Boolean getValue(){
System.out.println("Must be overriden");
return null;
}
public Interval getInterval(){
... | f58eac3fc1af045c3f74972f75cbfb2ccb2f5857 | [
"Java",
"Text"
] | 9 | Java | sidsrivast/GNP | 22ae883820cf6a1f90d318e7937a33730fb0aa8c | e75fc9f4d7980faf50c828b3cf83087ac385fee5 |
refs/heads/master | <repo_name>marianalx/CSharpDB<file_sep>/RentACar/FormAddCar.cs
using MySql.Data.MySqlClient;
using RentACar.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
u... | b061337a5e16a499dc403334ad57ab47723d4d38 | [
"C#"
] | 1 | C# | marianalx/CSharpDB | c8c69be7c7df3c33ab820c6336c5bb751e4ffba2 | 29a569712c62e1b189d63364c1da5360416007ee |
refs/heads/master | <repo_name>hartmjo/Lab5<file_sep>/Main.java
import java.util.*;
class Main {
public static void main(String[] args) {
Student student1 = new Student();
Student student2 = new Student();
ArrayList<Double> gpas = new ArrayList<Double>();
double sum =0;
student1.setName("<NAME>");
student1.setGPA(... | e6e39820df87334b0880868db9f62eb4f229d04b | [
"Java"
] | 1 | Java | hartmjo/Lab5 | 6e4b2a42dddd521625c03d62b7fba94e906bf019 | c9faab6ba3d982f5a7e7faf01306e96de5ef392a |
refs/heads/master | <file_sep>import unittest
from server import app
from model import example_data, connect_to_db, db, User, Log, Location, Type, LocationType
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
import helper
class UnitTest(unittest.TestCase):
def test_format_time(self):
... | b002cd3562d9370976da50fd950c5fcde06a0c15 | [
"Markdown",
"Python",
"Text"
] | 7 | Python | sarahcstringer/hackbright-project | 6baf65f99ed414fb911170b7a9c0c31e656fdc13 | 70dee14b7f39ed54d8bfcfedbed286511e85a7ed |
refs/heads/master | <file_sep># Write your code here.
katz_deli = []
def line(array)
if array.length > 0
list = []
array.each_with_index do |person, index|
list << "#{index + 1}. #{person}"
end
puts "The line is currently: " + list.join(" ")
else
puts "The line is currently emp... | b6cd4fdf72ddbb7f8488cf3a1ccda8e45ffeb1f3 | [
"Ruby"
] | 1 | Ruby | joshlacey/deli-counter-prework | 64df2d377f5e7fcd279d510f5d28397f641893b0 | 468080237489f3f9e9e36f582315624637869b1a |
refs/heads/master | <file_sep>#!/usr/bin/env node
"use strict";
// Load Coffeescript for node tasks
require("coffee-script/register");
var EventEmitter = new (require("events").EventEmitter)();
var Domain = require("domain").create();
var Path = require("path")
GLOBAL.Tool = "norma"
GLOBAL.Norma = {
watchStarted: false,
events: E... | 7eb59e3ca072c228cc00f83930ae3f7de1c9c5d8 | [
"JavaScript"
] | 1 | JavaScript | johnthepink/Norma | a51c1114179ca9c223563cfbccb0b5b447b94575 | 36c5dc92aad13f782d0e34e9911ef112ee2eab9b |
refs/heads/master | <file_sep>
## Guidelines
1. It should run fizzbuzz in one line
2. You should update the CI in `.github/workflows/main.yml` to run it against our test
file
<file_sep>#!/usr/bin/env node
[...Array(100).keys()].forEach(x=>console.log((x+1)%3!=0&&(x+1)%5!=... | 51c19f13a91bf3531ba4e9cfe4258ee7ab0c7c28 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | noyoshi/fizzbuzz | 9405210ee4d51c1d26ae43a5c669323fdaaf1574 | a38ed68a868df7575d1c18e8d5bb8cc9682cb935 |
refs/heads/master | <repo_name>CEMSARI9576/ClassMetotDemo<file_sep>/ClassMetotDemo/Program.cs
using System;
namespace ClassMetotDemo
{
class Program
{
static void Main(string[] args)
{
Customers customer1 = new Customers();
customer1.CustomerId = 1000;
customer1.CustomerName = ... | 84b8b3492702ebadcdd6651d624ebb3b839ab005 | [
"C#"
] | 2 | C# | CEMSARI9576/ClassMetotDemo | 00e7d2f78c625fe0a894ec18d2df6a8bd18ca303 | 60b59494823e802009110cc51266b530d05530ec |
refs/heads/main | <file_sep>import { vuexfireMutations, firestoreAction } from 'vuexfire'
import 'firebase/firestore'
import firebase from '~/plugins/firebase.js'
const db = firebase.firestore()
const studentsRef = db.collection('students')
export const state = () => ({
students: [],
})
export const mutations = {
...vuexfireM... | 1bcfbe02f44c7287717b96c5e1a96dce345ea604 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | wattyo0314/karate_management | 28094392d5494c3fdcffad7c7ba0a22d05108645 | 9fd100da47ee71039897ce72123a5ea27551d0e7 |
refs/heads/master | <repo_name>hyeonsook95/crawling<file_sep>/crawler2.py
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
search_term = '진돗개'
url = 'https://www.google.co.... | 43b0472e8203020dbd2668d74753502c93ebd98e | [
"Python"
] | 4 | Python | hyeonsook95/crawling | 56fa12a11f06d2d1e57b8a7fe3d9b7b22d3a485c | 497d2f9f6c474d74f5c51401357ff96c7cc74570 |
refs/heads/master | <repo_name>ioptime/Betty<file_sep>/src/com/ioptime/betty/MessageThreadFragment.java
package com.ioptime.betty;
import java.util.ArrayList;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
imp... | a6d34439c2f87a1ec71d6c959aa88fcf7e613b4c | [
"Java"
] | 30 | Java | ioptime/Betty | 74d5332b96649f5118752d76d62f912ba2731a1a | accb2aa95bc86f2c68767a1cdf5168aeb8bc6000 |
refs/heads/master | <file_sep># DC String
String handling functions and wrappers.
<file_sep>#ifndef DC_STRING_CONFIG
#define DC_STRING_CONFIG 1
#endif // !DC_STRING_CONFIG
<file_sep>#include "data/scripts/dc_string/config.h"
// Caskey, <NAME>.
// 2010-06-18
//
// Crop the right side of a string (haystack)
// starting wi... | 44426b3645ae3c0df52b7798acb762fea5dc502f | [
"Markdown",
"C"
] | 4 | Markdown | DCurrent/openbor-script-string | 2f7d7276cdd9e3a021e1b48a9bb39207457f8ada | 430dadbb29862015a80a6fac996f714e796270fc |
refs/heads/master | <file_sep><?php
namespace christophe\blog\model;
require_once('model/Manager.php');
class UserManager extends Manager
{
public function inscriptionUser($pseudo, $password, $email)
{
$bdd = $this->dbConnect();
$req = $bdd->prepare('INSERT INTO user(pseudo, password, email) VALUES(:pseudo, :passwor... | f524a1c65ec8ca5a46b6409b0542262bdf455e97 | [
"JavaScript",
"PHP"
] | 24 | PHP | chris91300/projet-4 | c70ba9fa3b02035ef80cf5f36cc7d4d3aad1f116 | 88c4c2fad8d0ff40de1d4e8d0cdf189e5d58ffb1 |
refs/heads/main | <repo_name>Paleruudaykiran/Python-projects<file_sep>/calculator/calculator.py
# -*- coding: utf-8 -*-
"""
Created on Sun Feb 7 16:05:59 2021
@author: <NAME>
"""
from tkinter import *
root = Tk()
root.title("Calculator")
first_operand = 0.0
second_operand = 0.0
symbol = str()
def evaluate() :
... | c65b5c6103c0fa854f2d99b351c99e238da03768 | [
"Python"
] | 1 | Python | Paleruudaykiran/Python-projects | 88645538da39ff2ac0be30f5fb703911bff2c454 | 586dd26249c9556c38ece3d67d1a628cf0e19469 |
refs/heads/master | <file_sep>#include "./dataType.h"
#include <locale.h>
int procurar(int partyId)
{
for (int i = 0; i < 30; i++)
{
if (partyVet[i].partyId == partyId)
{
return i;
}
}
printf("ID não encontrado!\n");
return -1;
}
int getLastId()
{
int last;
for (int i = 0; i < 30; i++)
{
if (i == 0 ... | 500d8ce096979100590851b13318147986f23241 | [
"C"
] | 8 | C | Drayerr/TCD | 4c68e0c5466cb3f6a819a43c9cb144813e4a1624 | 95c62780b48b84c44c3a4fabf894ec328f3d4710 |
refs/heads/master | <repo_name>LYLeon/eNose<file_sep>/src/es/pymasde/blueterm/DataHandler.java
package es.pymasde.blueterm;
// Here are totally 3 classes in this .java file
// 1. DataHandler
// 2. DrawingThread extends Thread
// 3. DataPipe
// Purposes for each class is stated right above the class.
import java.io.BufferedReader;
i... | a77d077e9d7b810d9b3163d9ea67e888c2c83524 | [
"Java"
] | 4 | Java | LYLeon/eNose | c500bde6e4fa74e9b70691b1cc9c89b4ece49b2c | 92c6e71171659081b98cc841e06831d0d5007d0a |
refs/heads/master | <repo_name>kebele/react_anime_search<file_sep>/react_anime_search/src/components/Header.js
import React from 'react'
export default function Header() {
return (
<header>
<h1>the <strong>anime</strong> db</h1>
</header>
)
}
| d9dd8edacae5735d57eb2a4fac25882f656adb3f | [
"JavaScript"
] | 1 | JavaScript | kebele/react_anime_search | 79f4e0ece83fe228f6c0f1ee1ddb5a87669e81bd | d7c05d7095bdc1894d1d005ed1ffe4bb2156f24e |
refs/heads/master | <repo_name>drzackyll/js-donut-lab-web-0916<file_sep>/js/donut-counter.js
//JS Donut Counter Lab
//declare 2 variables one for guests and one for donuts
//use prompt method to bring up a dialog box in the browser for the user to insert the number of guests and donuts.
//use parseInt to convert the users answer from a s... | d942ed6a225f3e00a5db6268882fee255b35a598 | [
"JavaScript"
] | 1 | JavaScript | drzackyll/js-donut-lab-web-0916 | 48d1b37fe4e48c89100fde02bf9b1d816b28f6fd | cdeff4ba20cb093f57e4f5f39e63e33bc60309c1 |
refs/heads/main | <repo_name>cameronthrntn/intellisense-technical-test<file_sep>/cypress/integration/graph.spec.js
describe("Table functionality", () => {
beforeEach(() => {
cy.visit("http://localhost:3000");
});
it("Initially shows that there is no data to graph", () => {
cy.get("[data-name=emptyGraph]").should("exist");
});
i... | 495d0926e834dc768f8942da425c68ada0fbc3bb | [
"JavaScript",
"TypeScript",
"Markdown",
"Shell"
] | 13 | JavaScript | cameronthrntn/intellisense-technical-test | e2bb12548c2906456e4f06168b99dc5a1d3ea316 | d03de9c8df040e064456bc8580c70f37cca00278 |
refs/heads/master | <repo_name>drsubs/ev3webapp.js<file_sep>/libws++/port-data.cpp
/*
*/
using namespace std;
//#include "server.h"
#include "ev3.h"
#include <string.h>
/* Port Data protocol */
/*
*
* Send port status polled from a tread timer loop.
*
*/
int port_data_handshake_info(struct lws *wsi) {
retur... | 50ff170af16974fa220efc13533729b635719b83 | [
"JavaScript",
"Makefile",
"C++",
"Markdown"
] | 32 | C++ | drsubs/ev3webapp.js | e17267b51f973ab3db6fb3e48a2279720cc5509f | 987634a3124f8c1656bf3738e8e5b2f7718f6149 |
refs/heads/master | <repo_name>szrharrison/javascript-inheritance-patterns-lab-web-031317<file_sep>/index.js
function Point(x, y) {
this.x = x
this.y = y
}
Point.prototype.toString = function() {
return `(${this.x}, ${this.y})`
}
Point.prototype.constructor = Point
function Shape() {}
Shape.prototype.addToPlane = function(x,y) {
... | 819faee116769efa6fe2cd6334654323c3e4ed7d | [
"JavaScript"
] | 1 | JavaScript | szrharrison/javascript-inheritance-patterns-lab-web-031317 | fb495ad6cb8894fc9958e6765b834a448eaa2d88 | cdc4435d6f8c43f3785273c4dcaa904f6294a9a9 |
refs/heads/master | <repo_name>ekaspern/reactSamples<file_sep>/gulpfile.js
var gulp = require('gulp');
var coffee = require('gulp-coffee');
var changed = require('gulp-changed');
var paths;
paths = {
coffee: {
src: '/srcCoffee',
dest: '/src'
}
};
var coffeeCompile, coffeeCompileChanged;
coffeeCompile = function(done) {
v... | 7e4587fb1f2d888d658152a37fdb7e3578427723 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | ekaspern/reactSamples | d1469348b56c5c3c92e716f9e3556f5ab2df5aaa | 0b68386cb5f7badcaa9b15f24aa96962c772d71f |
refs/heads/master | <repo_name>Kush28/CosmoAir-1.0<file_sep>/src/FinalSetterGetter.java
/**
*
* @author ProgJazz
*/
public class FinalSetterGetter {
public String depSilk, arrSilk, arrSpice, depSpice, intermediate, totalTime, via, spiceFlightNo, silkFlightNo;
//Final Setter Methods...
public void setSilkFlight... | 1ffbd5bce3d325d46fface7d9a7df7b252933db0 | [
"Java"
] | 6 | Java | Kush28/CosmoAir-1.0 | ea083c49f1f09df531a563854dc8159eb0ea0a65 | 612d2e364accf7d77f466024e8f9976ca0f0d8f4 |
refs/heads/master | <file_sep>function calculate(event) {
var av = document.forms[0];
var av_value = "";
for (i = 0; i < av.length; i++) {
if (av[i].checked) {
av_value = av[i].value;
}
}
var ac = document.forms[1];
var ac_value = "";
for (i = 0; i < ac.length; i++) {
if (ac... | e128d2fcaa37d0fb97808b46387424c52f7ecad2 | [
"JavaScript",
"Java",
"Markdown"
] | 6 | JavaScript | KonnaKotik/CVSS | 1b8c468c5cea79366d5fe1723edd5bdbb0908209 | 294658d5b23296db5fe7654615241a66803f7efc |
refs/heads/master | <repo_name>natank/mongoose-tutorial<file_sep>/app.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
mongoose.connect('mongodb://localhost:27017/tutorial-mongs')
//mongoose.connect('mongodb://nathank:<EMAIL>:59077/tutorial-mng')
var db = mongoose.connection;
db.on('error', console.error.bind(console,... | 22e1ddb46cce684b6b648e375aaec281cdbe2de9 | [
"JavaScript"
] | 1 | JavaScript | natank/mongoose-tutorial | 20e078b3056b48b783d725d79ed76d598c0131ef | e1562f52a83175788e859127b13ad0b14556bf34 |
refs/heads/master | <file_sep><!--
TEMPLATE INSTRUCTIONS:
Please provide as much information as you have for the resource that you
are adding to the collection. Please replace the sample text for each item
between the lines that start with ":::" in each section.
-->
<!-- RESOURCE NAME -------------------------------------------------... | 50fd1ffd3d237265fc5568b90dde0f939b8705af | [
"Markdown",
"Shell"
] | 7 | Markdown | GWLA-RDM-TF/rdm-training-materials | 9dbf3ce571f183733cdd4f8a0f9a1943427a48d4 | 12c4a0b80b93e7a6d42bd69bb5aa06e86975683f |
refs/heads/master | <repo_name>besetinc/Loto<file_sep>/Loto/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Loto
{
public partial class Form1 : Form
... | cf55701172349222d8f928958be6ef7d435e5d91 | [
"C#"
] | 1 | C# | besetinc/Loto | 76f8e76e4c141e913d6def20e3545263b911dced | 58005fabd89341d9e97b799802c696a49955f9b5 |
refs/heads/main | <repo_name>watheia/cucumber-screenplay-demo<file_sep>/src/main/java/screenplay/tasks/AddItemToCart.java
package screenplay.tasks;
import static net.serenitybdd.screenplay.matchers.WebElementStateMatchers.isCurrentlyEnabled;
import static net.serenitybdd.screenplay.questions.WebElementQuestion.valueOf;
import net.sere... | 3329de0b0c4b8d6ceded6fd0b47706b27116f5b9 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 23 | Java | watheia/cucumber-screenplay-demo | 72ad5b2ea36244232346436dcea0bf7422a2faf2 | e9633b8a885d174d44504125c4ba170d2b0f073e |
refs/heads/main | <repo_name>ollayka/my-topics-challenge<file_sep>/src/App.test.js
import React from "react";
import App from "./App";
import { render } from "@testing-library/react";
import "@testing-library/jest-dom/extend-expect";
import data from "./topics.json";
const { topics } = data;
test("the topics data is correct", () => {
... | bd7d5ac62bd963c1a9ea23a3106e21096afb1e15 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | ollayka/my-topics-challenge | f681e7c64cf1f29e8560b914f2fbe126fbe14b07 | c146dcaecacd80a65112cd989402a30ad1949836 |
refs/heads/master | <file_sep># SQLiteExample
An example of how to interact with a database using SQLite and ADO.NET.
I prefer using LinqToSql as opposed to ADO.NET, but this might have value to someone out there.
<file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Draw... | a2de289772bb064073917ed89be6764545f8889c | [
"Markdown",
"C#"
] | 2 | Markdown | Chedberg84/SQLiteExampleWithADONET | 5bee95e87f9ad6178ff910df01ec0cabb6de1160 | 1b26fa6420dbd04ea87cfc79ed2ba215856c06e4 |
refs/heads/master | <file_sep>import os
# General Flask app settings
DEBUG = os.environ.get('DEBUG', None)
SECRET_KEY = os.environ.get('SECRET_KEY', None)
COUPON_SAVE_DIR = os.environ.get('COUPON_SAVE_DIR', None)
QUALIFIED_MEDIA_URL = os.environ.get('QUALIFIED_MEDIA_URL', None)
# Twilio API credentials
TWILIO_ACCOUNT_SID = os.environ.ge... | 150e07fd0d807e21567bf23d4357421499447aa9 | [
"Markdown",
"Python",
"Text"
] | 4 | Python | shantelnubia/branded-mms-coupons | 89a27dc213e5f429db0ff265552d3421bba5436a | 4da86a5f70f66f6e0f22d2256895c50c0b14fb5f |
refs/heads/master | <repo_name>besinator/chart_manager<file_sep>/app/models/regular_serie.rb
class RegularSerie < ActiveRecord::Base
attr_accessible :chart_id, :color, :dash_style, :name, :series_type, :regular_serie_datum_attributes
has_many :regular_serie_datum, dependent: :destroy
belongs_to :chart
accepts_nested_attribut... | 1907440016b569d02ede7c29cd44f1f6e2e18b7c | [
"JavaScript",
"Ruby",
"Markdown"
] | 14 | Ruby | besinator/chart_manager | e677df712e6a65ef0ae8ffd65f76de60269aa43e | c221e1077b0611a092a59e910f8e097beab49bdf |
refs/heads/master | <file_sep>
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def index():
return render_template('template.html')
@app.route('/my-link/')
def my_link(player='<NAME>'):
fname = request.args.get('fname')
lname = request.args.get('lname')
player = fname.strip() + " " + lname.s... | 9a4ad668ab86382d0c4b07a4b529e0c349db8716 | [
"Python"
] | 5 | Python | bmburlingame/Recommender | 74c30bb732617e928b714adbf5b621522a2a4681 | 9e08134e978505c8cc1a2429d0fe86ec0720b29d |
refs/heads/master | <repo_name>TayyabChaudhary/Updrive-site<file_sep>/src/Components/Sections/Section4/section4.js
import React from 'react'
import './section4.scss'
export default function section4() {
return (
<div>
<div className="yellow-background">
<h1 className="is-size-1 has-text-centered has... | 21a7d6aa30ae67b8aa9bc0aba99b5b77e1702ac5 | [
"JavaScript"
] | 2 | JavaScript | TayyabChaudhary/Updrive-site | 6d4fc934133a9ba2445da62e2cc4c2be034e6cb5 | cd2f0603b444282e0ed8ad8a25cac3c26dfa38ca |
refs/heads/master | <file_sep>## Import Data if it does not exist in global environment
if (!exists('data', envir = globalenv())) {
#Import Data and convert date column to date class
data <- read.table('household_power_consumption.txt',sep = ";",skip = 1)
data$V1 <- as.Date(data$V1,'%d/%m/%Y')
# Crea... | 86443ce8b5c5abbd1352a8222d5e6aa9aa4e9e94 | [
"R"
] | 1 | R | pmorgan13/ExData_Plotting1 | c5a3898f04cc29062e107d2144c208aa6065b018 | 1be3b8e5dd90d417a31e269b41984ff740148778 |
refs/heads/master | <repo_name>OlasubomiEfuniyi/game-backend<file_sep>/game-piece.js
const MINIMUM_RADIUS = 100;
const FOOD = 1;
const PLAYER = 2;
const COLORS = ["red", "green", "blue","orange", "yellow", "black", "brown"];
class GamePiece {
constructor(x = 0, y = 0, radius = MINIMUM_RADIUS, type = FOOD, color = "green") {
t... | 919de3e38c51157ca6c06ab3101a2b1422487dd9 | [
"JavaScript"
] | 6 | JavaScript | OlasubomiEfuniyi/game-backend | 2e679ad4b28ddf503c82d824b44f76150ea19a5d | ba9b02e06a14e177d3e410dcb6149118d4131ba0 |
refs/heads/master | <repo_name>MacAndKaj/SimpleEngine2D<file_sep>/src/include/Buttons/NormalButton.hpp
//
// Created by maciej on 13.08.18.
//
#ifndef ENGINE_NORMALBUTTON_HPP
#define ENGINE_NORMALBUTTON_HPP
//TODO implement
class NormalButton {
};
#endif //ENGINE_NORMALBUTTON_HPP
<file_sep>/tests/utils/mocks/IDectectorsModuleMock.hp... | 174395c3eefebda3099ae84a80e57735a1b5cb1f | [
"Markdown",
"CMake",
"C++"
] | 55 | C++ | MacAndKaj/SimpleEngine2D | 884b97a5fd595659e1a4f8dd49150e6a2d76839c | c61150688a64ef1059de87ae6f0e678788b602b5 |
refs/heads/master | <repo_name>lharr/gbm_surv_sig<file_sep>/scripts/surv_gene_sig.R
# <NAME> 2017 - GBM Gene Signatures
# scripts/surv_gene_sig.R
#
# Usage:
# Run in command line:
#
# Rscript scripts/surv_gene_sig.R
#
# Output:
# Produces survival curves and analyses for cell TCGA GBM data
# Set Dependencies -----------------------... | 87fe16ddb8f6252db76d072aab66130693e84ab5 | [
"Markdown",
"R"
] | 2 | R | lharr/gbm_surv_sig | de1aa7265736bb7d1d8128b52fa9600cbb5b5921 | e8818383580f393523209fb8e6126352b997c82d |
refs/heads/master | <repo_name>LuGeorgiev/PythonSelfLearning<file_sep>/Fundamentals/Functions/Lecture.py
def find_result(num_str):
sum_odd = 0
sum_even = 0
for char in num_str:
if char == '-':
continue
number = int(char)
if number % 2 == 0:
sum_even += number
else:
... | 4c9ea91d02cc7173315f15e863996681ddec3dc1 | [
"Markdown",
"Python"
] | 45 | Python | LuGeorgiev/PythonSelfLearning | db8fcff2c2df8946d6acf2a2e5677eccf2bbe5dc | 5a88f5a82d261d8ee5e9f65849b940d010cbf096 |
refs/heads/main | <repo_name>Mahfujur51/curd<file_sep>/app/Http/Controllers/CustomerController.php
<?php
namespace App\Http\Controllers;
use App\Customer;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Intervention\Image\Facades\Image;
class CustomerController extends Controller
{
public function inde... | 79105efb8fbfe57fbb9da3e8d0e79997d1ec9a7b | [
"PHP"
] | 2 | PHP | Mahfujur51/curd | 7364d4de77ac4d003e2815f190d5e5c90a16a360 | bf82e925682b8ffb5e044b4a1f9ef157121bc469 |
refs/heads/master | <file_sep>from keras.layers import Activation, Convolution2D, Dropout, Conv2D
from keras.layers import AveragePooling2D, BatchNormalization
from keras.layers import GlobalAveragePooling2D
from keras.models import Sequential
from keras.layers import Flatten
from keras.models import Model
from keras.layers import Input
f... | 141bce2c04995b4315b68a8280aafbcf6200b1d0 | [
"Markdown",
"Python"
] | 6 | Python | s785564373/Emotion-Recognition | 1da15d73c87859238a8caa0e39637d2fd0699a42 | b5ef896a64c0841d687a34315bc48828cce5eb98 |
refs/heads/master | <repo_name>daniel9898/Tp_Laboratorio_2<file_sep>/Pereira.Daniel.2D.TP3/EntidadesInstanciables/Instructor.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using EntidadesAbstractas;
using System.Xml.Serialization;
namespace EntidadesInstanciables
{
... | 2cb73d44a73210dc6b88fd589989a9e7f72e1ea1 | [
"C#"
] | 29 | C# | daniel9898/Tp_Laboratorio_2 | 45524645592b8c9e459d09fb97adddbad19e0d77 | 899d98214c41be2d6d010695cd8cab7f17af0907 |
refs/heads/master | <file_sep>import React, {useContext} from 'react';
import {ThemeContext} from '../../App';
import './TaskDisplay.scss';
export default props => {
let {theme} = useContext(ThemeContext);
return (
<div className={`task-display ${theme}`}>
<section className='task'>
<p>{props.... | 079408fefef1570d69e043634a2a8cf0db2fc796 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | mattcbodily/todo-list-v2 | a2bd78f3ecb05f69584f65a0649f6bc1ba7f7e5e | 7963eee839f3e5df65b0904961d28026613a02b8 |
refs/heads/master | <repo_name>GabrielMotaBLima/Numerical_Analysis<file_sep>/Polynomial Interpolation/Newton's Polynomial Method/README.md
# Newton's Polynomial Method
<file_sep>/Roots of Equations/Fixed-Point Iteration/Fixed-Point_Iteration.java
public class Function {
private double y, x, rho;
public Function(){
}
public Function(... | 978de9db68fe2c6e1c65edd3ce8e0c6f43fff2f5 | [
"Markdown",
"Java"
] | 5 | Markdown | GabrielMotaBLima/Numerical_Analysis | eb382983e1e39422c464ea32a0987deadc296934 | 6abd1d3e94d1a96a81cedb26ed6ea645b1ad6f79 |
refs/heads/master | <file_sep><?php
namespace app\models;
use Yii;
/**
* This is the model class for table "eventos".
*
* @property int $evento_codigo
* @property int $organizacion_codigo
* @property string $nombre
* @property int $Estado_codigo
* @property int $usuario_registro
* @property int $usuario_modificacion
* @propert... | 4a03b5b85391a06c934177fc821787154bb7ebb6 | [
"JavaScript",
"PHP"
] | 4 | PHP | greinnyc/gi | ca5b3ec35ce789968f56d5477fc4116a3f38155a | 660504488c4e8161f556169401dbdf92851c835e |
refs/heads/master | <file_sep>all:
gcc -c game2.c -g
gcc game2.o -o game2 -l ncurses
rm game2.o
<file_sep>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <curses.h>
#define MSPF (100/60)
#define NORMAL 0
#define BOSS 1
#define BATTLE 2
#define BOSSDEAD 3
#define CLEAR 4
#define STAGEGAMEN 5
#defin... | d8c1516a36528a3a543cf1609b3044fe8194f854 | [
"Markdown",
"C",
"Makefile"
] | 3 | Makefile | itsukiss/shooting-game | ab0a29b03cc59c65d020bd1220ed73784098c62f | 7e6834c6319f3118c44c8179d12653d930c9d67e |
refs/heads/master | <file_sep>server.servlet.context-path=/mvc-app
server.port=8080
spring.datasource.url=jdbc:mysql://localhost:3306/gb_spring_mvc
spring.datasource.username=root
spring.datasource.password=<PASSWORD>
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL8Dialect
spring.jpa.proper... | 6ebbb8910c12652f1f38b2bb5f2022ef045a85d9 | [
"Java",
"INI"
] | 7 | INI | silver23891/spring | 227fae6e6f75d8e22812ea4654a93bf1ef18d150 | 8aa1716182d2e8fe00bc0a30367c4eee3752475e |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package entity;
import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import... | 33734d36a89f2706aed514d08784493198245f6e | [
"Java",
"INI"
] | 2 | Java | qbassqbass/north-american-octo-wookie | dfc74c6eff888c109d55b60f6689fecb14397aac | 174ba4eab49830230ccb67d0b1edb12a80123c72 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
class Form extends Component {
constructor(props) {
super(props)
this.state = {
art: {},
isLoaded: false,
}
console.log(this.props.user_id)
// console.log... | ceb0c5d085e24585afd7830d4d00c10d235133c6 | [
"JavaScript"
] | 2 | JavaScript | kasyaro/Art-client | 35c130d6bdba04f9e1ff3b0116773ce66e9251f5 | 56aef02efd7b26a83367a02a99b6912e592522c6 |
refs/heads/master | <repo_name>dlevi309/pop-api-scraper<file_sep>/CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
<a name="0.1.2"></a>
## [0.1.2](https://github.com/popcorn-official/pop... | 81fbf982833626fcbb22dbeef97413bfb59ace42 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | dlevi309/pop-api-scraper | 659701a4299a4563c9f0d8b3d199f3aaf086a848 | c28f7c175c6dc8d4a715faccd6763548bb945c2d |
refs/heads/master | <repo_name>shengxihu/HTML-CSS<file_sep>/banner/banner.js
function SlideShow(c) {
var a = document.getElementById("img_cont"),
f = a.getElementsByTagName("img"),
h = document.getElementById("pointer"),
n = h.getElementsByTagName("span"),
d = f.length,
c = c || 3000,
e = lastI = 3,
m;
... | ac91bfd72d24a708fd26a3f201c16765b6510da8 | [
"JavaScript"
] | 1 | JavaScript | shengxihu/HTML-CSS | 171828e9dafa16ed5e087d5dd8f90c0de5739cb1 | e2355fbb79ebf55f4cae4ec6b09cf04eb8c07190 |
refs/heads/master | <file_sep>"use strict"
module.exports= {
computeAverage: function (a,b,c){
return (a+b+c)/3
},
computeFatorial: function(){
},
computeTempCtoF:function(){
},
computeTempFtoC:function (){
}
} | fde7e28b69989a6ab07a6ccaec336c1ee3543fb7 | [
"JavaScript"
] | 1 | JavaScript | matthewm1234/folder | c63e2079bcd14a68207abc08c2cf40e0f5095b8d | b30a80c36cf6f028bb8492b39705ca8bc21a05b2 |
refs/heads/master | <repo_name>smit1712/Lingo<file_sep>/Controllers/LingoController.cs
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace Lingo_WebApp.Controllers
{
[ApiController]
[Route("[Controller]")]
public class LingoController : ... | c73c6325ec5ad33abd8624764d5e0e3e3ca1dbb5 | [
"C#"
] | 2 | C# | smit1712/Lingo | 3bcd5885f18feb179a253f23790e3a199b5b145d | 17637e688408cee93b087fe9542b68be820234b2 |
refs/heads/master | <repo_name>LTESoftware/Saber<file_sep>/PreSaber-Nuevo/src/app/models/advancehasuser.ts
export class Advancehasuser {
constructor(public id: number,
public description: string,
public content: string,
public createdAt: any,
public updatedAt: any,
... | 4a06e9f658ace3ff8ae4d5d1ce1c6cea8395b368 | [
"Markdown",
"SQL",
"TypeScript",
"PHP"
] | 92 | TypeScript | LTESoftware/Saber | b55bf1a0b659ccf8d391073e42efdda0e926d3fd | 07fd290491ac335b75d2b2aced280457cd5f4610 |
refs/heads/master | <file_sep>#ifndef DPUSHBUTTON_GLOBAL_H
#define DPUSHBUTTON_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(DPUSHBUTTON_LIBRARY)
# define DPUSHBUTTONSHARED_EXPORT Q_DECL_EXPORT
#else
# define DPUSHBUTTONSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // DPUSHBUTTON_GLOBAL_H
<file_sep>#include "dpushbutton.h"
#include <Q... | 5335aec118ea53900cff531f4f34c2bb705bc9cc | [
"Markdown",
"C",
"C++"
] | 4 | C | xiaoduge/DPushButton | 1a54cfc11a3afbea0c597e72852590acaaa1128e | 7c686e761a4af02953422f43b180d8d530587c6a |
refs/heads/master | <file_sep>
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
... | 2cbc6638d9ac5ad2fec90c2b782da545ed404a4c | [
"Java"
] | 2 | Java | dmarepalli/Http-Servlet-Demo | c019545f8f61616c1059f5239e7af406fcd494b4 | 049e934917861629a03f517bb8cafb8415bf8a64 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EPMTools.RBSResources.EPMRepository.Entities
{
public class User
{
public string Name { get; set; }
public string LoginName { get; set; }
public strin... | ac878aae5b15d194c3cff3a5966bc3bacaea520e | [
"Markdown",
"C#"
] | 7 | C# | hdahamsheh/EMPTools-RBSResources | 55f1e1f1781c559010e81150313101ee02ff6b00 | 648886ce41f0778924220e97bda9f9880e1dfe01 |
refs/heads/master | <repo_name>seburban/cheesecake<file_sep>/cfg.php
<?php
$cfg = array(
//'home' => 'http://www.facebook.com/pages/TCS-Sample/123038897767082',
'home' => 'http://www.facebook.com/thecheesecakeshop',
'base' => 'http://fb.seburban.com/cheesecake',
);
$cfg['storebase'] = $cfg['base'].'/store';
$cfg['quizbase'] =... | 74e0848c516c68581b796f65972499a48b30446d | [
"PHP"
] | 6 | PHP | seburban/cheesecake | 416ed8dfa8f245933ce72ac483204aaf9418234d | ab2a55660f114633341dd1914a6a0d9506727385 |
refs/heads/master | <repo_name>Aspectize/HackerNews<file_sep>/HackerNews/Services/ClientService.js
Global.ClientService = {
aasService: 'ClientService',
MainData: 'MainData',
aasCommandAttributes: {
DisplayUser: { CanExecuteOnStart: true },
DisplayItem: { CanExecuteOnStart: true },
ActivatePage: { Can... | 6c8652f5c21f44a49b5d5239fdc12620e64aa9f0 | [
"JavaScript",
"C#",
"Markdown"
] | 8 | JavaScript | Aspectize/HackerNews | 075f264c94874ff67ce6aa80fd3d0a7010de79ad | cbeb7c77c03446c836b6ae3ca663191286c1aa22 |
refs/heads/master | <file_sep>//
// SwiftResult.swift
// ITunesSearch
//
// Created by <NAME> on 5/14/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
struct SearchResult: Codable {
var title: String
var creator: String
enum CodingKeys: String, CodingKey {
case title = "trackName"
case creator = "artist... | 3d0b56613917d00d93886fff992bd70be3ab9265 | [
"Swift"
] | 1 | Swift | OaklandHawk/ios-itunes-search | 9ec8fde0eff66ded4ca4f251790b7fe06d406040 | 324dbf1c3fb0d7f7585b00fd8e5b8cb0c5cde473 |
refs/heads/master | <repo_name>Maher-OUALI/Text-Editor<file_sep>/Text Editor/lib/Finder.py
import pandas as pd
class Finder():
def __init__(self):
directory='C:/Users/Asus/Desktop/GitHub Projects/projets terminés/Text Editor/assets/unigram_freq.csv' #put here the directory of the assets folder
self.unigram_freq... | c544ad755a1e6418ddd0f655a92db694de0eeed6 | [
"Python",
"Text"
] | 5 | Python | Maher-OUALI/Text-Editor | 7a17a4edc6352ca690d9900546387761b0f9c946 | 31b55eb69d199e817cebcb28132a7d85c51f06ca |
refs/heads/master | <file_sep>package aUGUST_LEETCODE_CHALLENGE;
import java.util.Scanner;
public class isPowerOfFour {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
int n = s.nextInt();
System.out.println(isPowerOfFouR(n));
}
private static boolean isPowerOfFouR(int nu... | 5c373261da488a9aa4ac1c8e1f04e7fea50c72b4 | [
"Java"
] | 4 | Java | shivanshbhardwaj/leetcode_2020_august_challenge | fc2a3531c110a98e55702f4af9a3d01ee7179079 | b32f36365c6a4d24a9e0777638ee96d39f523da4 |
refs/heads/master | <repo_name>sylijinlei/Rover2<file_sep>/Rover 2.0-android-src/src/com/wificar/external/FSCoder.java
package com.wificar.external;
/*
* FSCoder.java
* Transform
*
* Copyright (c) 2001-2006 Flagstone Software Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 5d38cf10a79ff373418369e244f83b5b00775acb | [
"Java"
] | 17 | Java | sylijinlei/Rover2 | 01ce4021e55a8e959f1c43cd0eecfa2ee33482ed | 68878537877e78a7a710d02f0f448f85b2e2d8c0 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Http\Requests\MassDestroyProductRequest;
use App\Http\Requests\StoreProductRequest;
use App\Http\Requests\UpdateProductRequest;
use App\Product;
class ProductItemsController extends Controller
{
public function index()
... | cd549e38059d53ac8a532308ca78c4e094429682 | [
"Markdown",
"PHP"
] | 10 | PHP | hidde030/laravelhidde | cb5c56a0630c3d706421829fec918ae728fef0de | 087ef68db62452cca413891c10f4364ea054f80d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.