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 | <file_sep>#/bin/bash
git pull
npm set registry https://registry.npm.taobao.org
yarn
docker-compose -f ./docker/docker-compose.dev.yml up<file_sep>## superlative-admin
| 6a3f8914e878577208f2053f8be3b6e187ea34b8 | [
"Markdown",
"Shell"
] | 2 | Shell | SuperlativeCoder/superlative-admin | fd397e699baedf8bbe8f59d0e120e4b766645811 | d8e5273c28c33cec879ae4de38f3498fab38ac03 |
refs/heads/master | <repo_name>tony-andreev94/Python-Advanced<file_sep>/06. File Handling/LAB/03. File Writer.py
# Task 3
file_path = "W:\\Documents\\@Python\\SoftUni\\python_advanced\\06_file_handling\\demos\\my_first_file.txt"
with open(file_path, 'w') as file:
file.write('I just created my first file!')
<file_sep>/04. Comprehensi... | 6067795fb42d80d5da60f3944904f0b6c36aef54 | [
"Python"
] | 62 | Python | tony-andreev94/Python-Advanced | bcbc6c686f6428008833f47efff1ea3fd892a520 | 7b45f9f549fc4c7983fdd118b517bc401ff4e1cd |
refs/heads/master | <file_sep>import numpy as np
import pandas as pd
from tqdm import tqdm
from Python.player import Player
class GamePlay:
"""
Parameters:
- population: multiple `Player`s who will play the game
- game: (Class `Game`) payoff matrix which determines the rules of the game
- num_pairing: number of time... | 636409ec54c9c28ef9b0775cdb7b2fe2745b7d19 | [
"Markdown",
"TOML",
"Python",
"Makefile"
] | 10 | Python | LePeti/evolutionary-game-theory | 85035670d6f5f3725229e291c637406bea482646 | db63932c94aa78e27e7b6891be721737d44e872d |
refs/heads/main | <repo_name>RakeshCharpe/Face-Mask-Detection-Attendance-System<file_sep>/facemask/train.py
from keras.preprocessing.image import ImageDataGenerator
from json import decoder
import numpy as np
import keras
import keras.backend as k
from keras.layers import Conv2D, MaxPooling2D, SpatialDropout2D, Flatten, Dropout, Dense
f... | 79d9a616d6dfec1afaf32f03018dfda5e5e7f53b | [
"Markdown",
"Python"
] | 11 | Python | RakeshCharpe/Face-Mask-Detection-Attendance-System | ca3152414db8959ee97c5989dd499a23c11e1bba | d34653c27ba9591d83c01ff455380594a5f1fc07 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Models\Category;
use App\Models\Exam;
use Illuminate\Http\Request;
class ExamController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(Request $request)
... | 4f5daa9076ba9f5b966acca6f1c3beff313c152d | [
"PHP"
] | 10 | PHP | sahadatsays/mcq-exam-system | cbb23c73d7f6a3987c83a308b04eb732b89314a3 | e553013ea3d53ee474d780caa5f610b7bc4a0617 |
refs/heads/master | <file_sep>package edu.inlab.katas;
import org.junit.Test;
import static org.junit.Assert.*;
public class TaskTest {
@Test
public void testNewTask() {
// Act
Task task = new Task("comprar tomates");
// Assert
assertEquals("comprar tomates", task.getDescription());
}
@... | 3bda39f5961ad747040922e13e0b40ebf52bbe8b | [
"Java"
] | 4 | Java | elorenteg/todo-list-kata-java | d50ade6135d2e6eb11cd765f5ab45ee798315047 | f6de8e7811e03739311dbbbd2b0521261ad0c878 |
refs/heads/master | <file_sep># Assignment: Caching the Inverse of a Matrix
#
# Matrix inversion is usually a costly computation and there may be some benefit to caching the inverse of a matrix
# rather than compute it repeatedly (there are also alternatives to matrix inversion that we will not discuss here).
# Your assignment is to wr... | 87de096f4e01220735a49cc9798c5c7a3faeac02 | [
"R"
] | 1 | R | ClaraCL/ProgrammingAssignment2 | c1ac25827bd5b2d2ab39ab708262dab92624e779 | 24d4730fee6465ea8925ba6e4df3d895bdb73013 |
refs/heads/master | <file_sep>package com.jellebreuer.app.notes.backend;
import com.googlecode.objectify.Ref;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Load;
import java.util.ArrayList;
import java.util.List;
@Entity
public class UserOnl... | f9c7d209550b34b820857ae48a0c15bfd2736098 | [
"Java"
] | 3 | Java | tsm200/Notes | b9219b7f731e57224d2332d232ad4399a3ed3fac | 706ef0ef67baedaf35ca3da528f01ebd351f6a79 |
refs/heads/master | <repo_name>jayhe/RunloopLearning<file_sep>/Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
#use_frameworks!
target 'RunloopLearning' do
pod 'Bugly'
pod 'fishhook'
end | 7d02c88297c654274bcb52567f6fcd6581bc8d06 | [
"Ruby"
] | 1 | Ruby | jayhe/RunloopLearning | 7fc7af7975e9f979deba5ffe4781d572dae919cc | 751e1bb8ef93c162279d8191127c8df847b5c924 |
refs/heads/main | <repo_name>jcjuliocss/testa-conexao-internet<file_sep>/testa_conexao.py
import speedtest
from datetime import datetime
from threading import Timer
def testa_conexao():
s = speedtest.Speedtest()
s.get_servers()
s.get_best_server()
s.download()
s.upload()
res = s.results.dict()
data_hora = ... | 7da672ee5cadc4568b28ced2bea3c4db5bb920c9 | [
"Markdown",
"Python"
] | 2 | Python | jcjuliocss/testa-conexao-internet | 615b41fc510cfb0ee9654a475dddb5840e446acf | 393e096a0f3e0084b57703dc6acc9a5c9ef04fe7 |
refs/heads/master | <file_sep>import environs
env = environs.Env()
env.read_env()
TIIMA_USERNAME = env.str("TIIMA_USERNAME", "")
TIIMA_PASSWORD = env.str("TIIMA_PASSWORD", "")
TIIMA_COMPANY_ID = env.str("TIIMA_COMPANY_ID", "")
TIIMA_API_KEY = env.str("TIIMA_API_KEY", "")
<file_sep>from .tiima import Tiima
<file_sep># Tiima
A Python wra... | 99e8cdb7e1dcfb389f99c80ca90eb28b3731fbc7 | [
"Markdown",
"TOML",
"Python"
] | 5 | Python | frwickst/tiima | a3bbccb362a406a06175b733c97deb716be73c7c | 31628bfc5845a0af52c6f038d1a9ccfdcb1dc236 |
refs/heads/master | <file_sep>require 'json'
class DataGrabber
def get(file)
JSON.parse(File.read("public/json/#{file}.json"))
end
def extract(file, keys)
data = get(file)
data.select {|key| keys.include? key}
end
end
<file_sep>require 'rubygems'
require 'sinatra'
require '/home/ai_zakharov/www/we... | e537f72ea885041a44429ab0c61d8b3ecdd3c0ec | [
"Ruby",
"Markdown",
"JavaScript",
"Text",
"Shell"
] | 14 | Ruby | andrewebert/gensou | 91d87493ead202bddb5415bea760d2757df55e88 | 534e5ec326b64d9bd03d672bf96989968e30a06c |
refs/heads/master | <repo_name>Eshan-Agarwal16/machine-learning-coursera<file_sep>/machine-learning-ex4/ex4/SQ6.c
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i=0,j=0,count=0;
char str1[100],str2[20],str3[20];
clrscr();
printf(“Enter the text: “);
gets(str1);
printf(“Enter word to count: “);
gets(str2);
whil... | a17619ddfd073f90ef7293556f265e67dd5dac0a | [
"C",
"Python"
] | 8 | C | Eshan-Agarwal16/machine-learning-coursera | c40cddeccd12bd4eb92c98002e12674068d693e7 | d1d5fd1b0ade0939a9cf9b968c3a28750b0a1105 |
refs/heads/main | <repo_name>tribeshouse/WioSCD30<file_sep>/src/main.cpp
#include <Arduino.h>
#include "SCD30.h"
#include"seeed_line_chart.h" //include the library
TFT_eSPI tft;
#define max_size 50 //maximum size of data
#define num_charts 3 //number of charts
#define label_width 16
doubles data[num_charts]; //Initilising a doubles t... | d61ffc827f3c77b1a2da2dbf2878b19e016ac59f | [
"C++"
] | 1 | C++ | tribeshouse/WioSCD30 | 9254c4d83ecab4f134c5d73bba6dc1918d1b764a | 438291d3ae3368c6d71d084c74d14a3eb794fc41 |
refs/heads/master | <file_sep>x = 5.0
y = 30
z = 5
print x + y
print x - y
print y * x
print y / x
print x / y
print x < y
print x == z
print x != y
if x != z:
print "x ni enako z"
else:
print "sta enaka"<file_sep>x = float(raw_input("Vstavi prvo stevilko"))
y = float(raw_input("Vstavi drugo stevilko"))
znak = float(raw_input("z... | 3da1a1aedac710bd31d1f2d710e34b7614eb1bec | [
"Python"
] | 2 | Python | mareSLO/kalkulator | 06fbdfc2e7bff4005fc028c73377de97f4081aa8 | 3dd67eb352aea396299599c9a7762087c601d28c |
refs/heads/master | <repo_name>bipinGosain/observerpattern<file_sep>/Assets/Scenes/ObserverSphere.cs
using System;
using UnityEngine;
public class ObserverSphere : MonoBehaviour
{
Material mat;
private void Start()
{
mat = GetComponent<MeshRenderer>().materials[0];
FindObjectOfType<SubjectRandChngClr>().chan... | 89cfe2be10315196960b700d71db7fb34a630a68 | [
"C#"
] | 3 | C# | bipinGosain/observerpattern | 8cb6eb87a0cdf828f013beb87564b7e99a1a9ef1 | ac81958922779af13e4a5e45ba3ecb37d403b973 |
refs/heads/master | <repo_name>raymaen/test-express-aws<file_sep>/index.js
const express = require("express");
const app = express();
const port = 3000;
let sendStr = "init";
if (process.env.NODE_ENV === "production") {
sendStr = "prod";
} else {
sendStr = "dev";
}
app.get("/", (req, res) => res.send("Hello World!" + sendStr));
app... | a1bf5ed8375b0303cdc5f03da5e9ffbb59d448a2 | [
"JavaScript"
] | 1 | JavaScript | raymaen/test-express-aws | f056e9fea2a49956cf9471304ca6c1336fc2f813 | 9967a6e343254e2b2c0ad4ffa099e8619d0e427e |
refs/heads/main | <file_sep>const path = require('path');
const multer = require('multer');
const { MulterError } = require('multer');
var storage = multer.diskStorage({
destination: function(req, file, cb){
if(file.fieldname === "photo"){
cb(null, 'uploads/photo/')
}
else if(file.fieldn... | b7f30d45624f82b9a957d49d44b9ad65243b6a52 | [
"JavaScript"
] | 4 | JavaScript | musheer7489/idcl | da8249ae7e9dc8c40f88dee51e15df57353b3df0 | b665e86cd1336b01730da6ec9568c6b986c3d03d |
refs/heads/master | <file_sep>Добавление дублирующей строки в список, если строка списка содержит букву "o"
Если список перебирается в цикле и в него добавляются объекты, то лучше проходиться по списку в обратном порядке
<file_sep>/**
* Бои двух котов
* @author Luminescensse
* @version 1.0
*/
public class Cat {
public String name;... | 330cf9df22f4c36dff453112a0f759a38b4717c3 | [
"Markdown",
"Java",
"Text"
] | 7 | Text | Luminescensse/Java | 56788b68e776b6ee30158d9ddac01bbb45ad7567 | 412d6e3a5313d11fcd68cdbb244584a8867f16c0 |
refs/heads/main | <repo_name>gabebw/save-your-vines<file_sep>/did-it-for-the-vine.sh
#!/bin/sh
# Usage:
#
# ./did-it-for-the-vine.sh VINE_USERNAME VINE_PASSWORD
#
# You can also run it as
#
# ./did-it-for-the-vine.sh
#
# and it will prompt for your username/password.
#
# After entering your username once, it won't ask again.
set -... | c4c1ae6515dd80808f9e7c0ac80359731b3fd65c | [
"Markdown",
"Ruby",
"Shell"
] | 5 | Shell | gabebw/save-your-vines | 485c91a18311d6770992c45f887bb3e77b83e5ed | 471fe968c1037f9b90654eb81f66ce216f5fb2aa |
refs/heads/master | <file_sep>using System;
namespace ConsoleAppSerializeDemo
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
//FileDemo.Serialization();
//FileDemo.Deserialization();
//FileDemo.SerializationPersons();
... | f0ae9c0c0fd09bad9d406ca4ec36bf35dec7357f | [
"C#"
] | 3 | C# | MartinKierkegaard/ConsoleAppSerializeDemo | 15209d7ea9ea2e3037a5f3a226c42e4483cc8967 | 1b91776581d095a077de3c49662ce4aedc165154 |
refs/heads/master | <repo_name>akshayysharma/ReactFormValidation<file_sep>/src/App.js
import React, { Component } from "react";
import "./App.css";
const initialState = {
fname: "",
version: "",
lname: "",
enterDate: "",
email: "",
password: "",
matchPassword: "",
fnameError: "",
versionError: ""
}
class App extends Co... | 52e4f4f05225d1ea56d66740260923f9ec141528 | [
"JavaScript"
] | 1 | JavaScript | akshayysharma/ReactFormValidation | 511ac0a11ecf599fcd9a36177fef69a3db807858 | b49bf1a429af83429b918bcd51fdcfd2146ac8b7 |
refs/heads/master | <file_sep>import sys
import argparse
import datetime
import oci
import gzip
import os
import csv
import cx_Oracle
os.putenv("TNS_ADMIN", "/home/opc/wallet/Wallet_ADWshared")
##########################################################################
# Print header centered
#############################################... | e154cc722683495b7fa6731fc23ead9fda9a99d7 | [
"Python"
] | 6 | Python | saschahsp/oci_scripts | edba249292cdd69b59fd6904ae99a4d2b881db23 | 321494cb5a3417ee797ef10b110206a90f9ceae0 |
refs/heads/master | <file_sep># swiftlist
Simple Android list app (outdated)
<file_sep>package com.osmanthus.swiftlist;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.design.widget.FloatingActionButton;
import android.su... | 29e7d32648c94a4d7c973dfa59dbfb25754e4569 | [
"Markdown",
"Java"
] | 6 | Markdown | StephenKamali/swiftlist | 744e4e5e52ec6bfb509f2f40335e4f2114e86251 | 1765199cecb62f0936cdca7f0261f3bd5dea46c5 |
refs/heads/master | <repo_name>catalyticstorm/apiHomework<file_sep>/assets/script/script.js
// JavaScript Document
$("button").on("click", function() {
var animal = $(this).attr("data-animal");
var queryY = "https://api.giphy.com/v1/gifs/search?q=" + animal + "&api_key=<KEY>&limit=1&rating=y";
var queryG = "https://api.giphy.com/v1/gif... | a75f0d17deac23cce848108a50aecc8c7afcfcbc | [
"JavaScript"
] | 1 | JavaScript | catalyticstorm/apiHomework | c44dfec2918159cdf788242602fee9d55ba47d63 | 6103e1619cbaab5512d3d1d024ab60612bbe2cb9 |
refs/heads/master | <repo_name>Coutanthomas/simple_navigation_goals<file_sep>/scripts/patrouille.py
#! /usr/bin/python
import rospy
import math
import traceback
import sys
import simple_navigation_goals
if __name__ == "__main__":
try:
rospy.init_node("test_scenario")
rospy.loginfo("SimpleNavigationGoals Initialization")
na... | 03cbe38a99a4caa0f948d0c2fef8fa26cdf210a7 | [
"Markdown",
"Python"
] | 3 | Python | Coutanthomas/simple_navigation_goals | 7cac77aad70ab308f52ad3662e6811bc05afb187 | f409697d5a440cb9c04f7a577a2e550c34f2d49c |
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.
*/
/*
* File: sauvegarder.h
* Author: snir2g1
*
* Created on 31 mars 2021, 14:49
*/
#ifndef SAUVEGARDER_H
#define SAUV... | ae7a52098622ffcd08504165aa4aa53bf2999ce5 | [
"Makefile",
"C++"
] | 3 | C++ | kisa-josue/projetinit-2- | 4db2830580072f9801471cdb2aa9d89ca85b81c9 | 776644fef649f8fab15ba195a70d8393ad5ff38d |
refs/heads/master | <file_sep>package com.categorylist;
import java.util.List;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class AbstractCategory {
@Id
@GeneratedValue(strategy = ... | 222913c7eaded7fd013508f67baf3a9288b7aac0 | [
"Java"
] | 1 | Java | anantkshirsagar/JPADevnagari | 337f60e5111878fad6c240d2a7fd034028453f92 | e83423176c0d6dc1d29d5ef5228df9eaedbc66e9 |
refs/heads/master | <file_sep>/*
1. <NAME> MORAJU BITI IDENTICNI KAO U PRIMJERIMA, U SUPROTNOM SE RAD NECE BODOVATI
2. STAVITE KOMENTAR NA DIJELOVE CODE-A KOJE NE BUDETE IMPLEMENTIRALI
3. KREIRAJTE .DOC FAJL SA VASIM BROJEM INDEKSA ( NPR. IB130030.DOC BEZ IMENA I PREZIMENA), TE NA KRAJU ISPITA U NJEGA KOPIRAJTE RJESENJA VASIH ZADATAKA. NE... | b9b431e8b941dca0c05176dc07797e8e51413835 | [
"Markdown",
"C++"
] | 2 | C++ | Azrynn/fit-pr-ispiti | 0c36f712fe2885144f35c0958c5215e73344a8fd | 2b811196fe01713db15bfcc4a66853bb537d477a |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using LoanDataAccess;
namespace MajorWebApi.Controllers
{
public class LoginDetailsController : ApiController
{
public IEnumerable<LoginDetail> Get()
{
... | b9f21124526fd864b9c5510f709ebadea16189a5 | [
"C#"
] | 25 | C# | harshbaisware/MajorWebApi | 9e5f7f545bec5b43ad346950185077ab85d2efdd | 9277e41dfa1789dd1153f9b862932eed76ed3945 |
refs/heads/master | <file_sep>package ajpportal;
/**
* <p>MetaAgent represents the agents</p>
*
* <p>This program is part of the solution for the second ICA for AJP in
* Teesside University.</p>
*
* <p>AJP middleware 2013-SOLUTION is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Publi... | 54531a9edd0569b10ca71f1c921517c0dba12d11 | [
"Markdown",
"Java"
] | 8 | Java | kanastasov/Advanced-Java-Programming | 8f0ec2d9e28eead77858833abef5ea0f342b8882 | 40840a0960fcfe7197f2308d746186484ab82417 |
refs/heads/master | <file_sep>package com.ldoublem.loadingviewlib;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graph... | 2e8ae56a2fe08928505227f85c0d192732d390a7 | [
"Markdown",
"Java"
] | 3 | Java | dengdailk/LoadingView-master | c715ba04349cb187af154f7802551ffbd001e2cd | 87ec2e027b9cb86837e9cffdff03baec88a5eef0 |
refs/heads/master | <file_sep>package com.example.buypool;
import android.app.Application;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat... | e19e931c6140a1613f71054079a4e82a16c0fa49 | [
"Java",
"Gradle"
] | 9 | Java | jiaru01/Android_Development | 58b7ebb8e100dd9f0927fbcaadbf9c5d52db4526 | 9301953f4f77781f257bad22c16957b9a479e65a |
refs/heads/master | <file_sep>module.exports = function(sequelize, DataTypes) {
var Product = sequelize.define('Product', {
id: {
type: DataTypes.BIGINT,
primaryKey: true,
autoIncrement: true
},
name: {
type: DataTypes.STRING
},
category: {
type: DataTypes.ENUM('Music', 'Movie', 'Book', ... | 575b360deb02ae25bbc37ec3021136ffeda6a644 | [
"JavaScript"
] | 1 | JavaScript | amelie-certin/Librarize | ff126c23596673fe5f5691b9fad13d0bc00caaf8 | 77807588ab32dadf1c97825124d8b67e0a7087ca |
refs/heads/main | <repo_name>djberg96/ez-email<file_sep>/docker-compose.yml
services:
mailhog:
image: mailhog/mailhog:latest
restart: always
logging:
driver: 'none' # disable saving logs
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
<file_sep>/Gemfile
source 'https://rubygems.org' do
gemspec... | 173803a9231dad36dff5c9efd1f700561c009892 | [
"Markdown",
"Ruby",
"YAML"
] | 8 | YAML | djberg96/ez-email | 6389ef5dea7a7b7702284eaed0e89271e8658ee8 | 48424ef116c554ff0cc0e5d78024f4f034f2b93e |
refs/heads/master | <repo_name>life1347/ryu_ofp_error_parser<file_sep>/ofp_error_parser.py
# all following information come from OpenFlow Spec v1.3
# https://www.opennetworking.org/images/stories/downloads/sdn-resources/onf-specifications/openflow/openflow-spec-v1.3.0.pdf
OFPET_HELLO_FAILED = {
0: 'OFPHFC_INCOMPATIBLE, No compatible ... | 3ce5b82c7fffae15e6273b56705cfc144094f41c | [
"Markdown",
"Python"
] | 2 | Python | life1347/ryu_ofp_error_parser | d5d7a429749f4645d044063119732e6062afa201 | 1808de813257f3292e227f0bf90976e7fa9adbd0 |
refs/heads/master | <repo_name>bartlab2/Hello<file_sep>/hello/src/hello/Hello.java
package hello;
public class Hello {
public static void main(String args[]){
System.out.println("Hello1");
System.out.println("Hera am I");
}
}
| 69ac11efde8630eec2257bec93fb4fa5890ffe62 | [
"Java"
] | 1 | Java | bartlab2/Hello | 80a413048ef5729913203101b3c10231dc10438f | cf6abcbfd9b388460fe3bd4c025fd73cddfecedc |
refs/heads/master | <repo_name>barrazamiguel/rpgWebReact<file_sep>/README.md
# rpgWebReact
test de react
<file_sep>/src/components/Juego.js
import React from 'react';
export default class Juego extends React.Component {
constructor(props) {
super(props);
this.state ={
pj: props.location.state.pj,
info: "Reali... | 34c35c5f38fa6d56338c80c6ad19534540d0227c | [
"Markdown",
"JavaScript"
] | 6 | Markdown | barrazamiguel/rpgWebReact | ceece73b872e45e9b76bbb4f3edbb2c5565ffb6e | 48af2ac06e0d3600c6c749ece0273dc466228779 |
refs/heads/master | <file_sep>import { createElement, updateElement } from './dom'
export function render(component, container) {
let {type,props} = component
let element = createElement({type:type})
for (let key in props) {
if(key === 'children') {
if(typeof props[key] === 'object'){
... | c357999f02f54d9636576ac073a7de3eb8c9f15d | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | newship/react-code-learn | e035be63207245b8aaa778fd7485782a98dbd36f | 08145cba824f75954c8e01b12ab81d5f20c0ab8c |
refs/heads/master | <repo_name>Juande10/-MIA-_201314412<file_sep>/main.c
//*************LIBRERIAS******************
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <assert.h>
#include <dirent.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/stat.h>
//***************STRUCTS*****************
t... | e05e98aa75cf802bedc7fe90c449054cb009e4fa | [
"C"
] | 1 | C | Juande10/-MIA-_201314412 | 5c02c8d61298bb344134fc6137d765999703c0f7 | 3c7f70cd1facd2f9e220219b538319d64d1615cc |
refs/heads/main | <file_sep>rootProject.name = 'OysterApp'
<file_sep>package com.example.demo.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;
import com.example.demo.rest_template.CheckResultTemplate;
import com.e... | f7bbbc20678c17be9559989cd41a275fab859fe0 | [
"Java",
"Gradle"
] | 3 | Gradle | koheiKS/OysterApp | aafd7d308abd936779e6b78118266b93f490e182 | 8881c873d21b60c41792f620de5ba81d071e0867 |
refs/heads/develop | <repo_name>DigitalHistory/advanced-topics-justincapocci<file_sep>/proposal/proposal.md
#Project Proposal
####My proposal for the Digital History Initiative is a website database of crowdsourced folktales primarily to facilitate interdisciplinary cooperation between anthropologists, sociologists, and other academics for... | cb6418e73da14621890d3426aa8dd04de6670649 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | DigitalHistory/advanced-topics-justincapocci | 1c38774d9a040e679461becce2b204acb57cd4da | 071207f01ceb5b561342a0af1ac75f009192d959 |
refs/heads/master | <repo_name>sudiparora/WholesaleDistribution<file_sep>/SourceCode/WDS/WDS.Entities/Entities/ContactInfo/Email.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WDS.Entities
{
public class Email: EntityBase
{
public int Email... | 17f343bbafb4e337b16b7c48ba2f5d3525712848 | [
"C#"
] | 33 | C# | sudiparora/WholesaleDistribution | 0e7cbcbbdcc1e48b5b635d68027405abc2e257f6 | 052c7bbfd89a2a72af353736dc915a88bb90c982 |
refs/heads/master | <file_sep>$("span").click(function(){
alert("Hello!");
});
$("a span").onclick(function () {
alert("click on <a>");
return false;
}); | 3e19ab5b61f88a21caab99641efc96ca1fff012b | [
"JavaScript"
] | 1 | JavaScript | TaraBerkoski/bdw-messina | 399b90b4615e60fe390df0bf55fb2ecacb7c1ecd | 75c97961dad26e8addb59b6b0ea589dd8e64d467 |
refs/heads/master | <repo_name>yeonenbVa/jiaoben<file_sep>/jiaoben.php
#!/usr/bin/php -q
<?php
//echo phpinfo();die;
//error_reporting(0);
checkQuestion();
function checkQuestion($topicId = "") {
$file_name1 = date("Y-m-d");
$file_name2 = date("H-i-s");
$path = "./" . $file_name1 . "-math-".$file_name2.".txt";
// ... | 7b9a539a56e9358dd6cf8dff0a06fdaed3244c10 | [
"PHP"
] | 2 | PHP | yeonenbVa/jiaoben | 3a252fc94ddf66ccb0fddd375a86a63cec97b553 | 9855c54b8b3632d33b14878a632c62a42271511e |
refs/heads/master | <file_sep><?php
namespace Stef\HtmlManipulation\Manipulators;
use Stef\Manipulation\Manipulators\AbstractStringManipulator;
class RemoveHtmlAttributesManipulator extends AbstractStringManipulator
{
protected function run($string)
{
$string = str_replace(' ', ' ', $string);
$string = icon... | 55191b8c3f6deb6d173969f59769b61349254611 | [
"PHP"
] | 1 | PHP | stefanius/html-manipulation | 61c2691c08cb5669234e0933e192db5cdbcaeabf | 7bfaa9abd4559f253460971a8044d34d3cba0c99 |
refs/heads/master | <file_sep>
require 'omf_common/lobject'
require 'omf-sfa/am/am-rest/am_authorizer'
require 'omf-sfa/am/am-rest/sam_authorizer'
require 'rack'
module OMF::SFA::AM::Rest
class SamantSessionAuthenticator < SessionAuthenticator
def initialize(app, opts = {})
@app = app
@opts = opts
@opts[:no_ses... | 492c9968dd1afc33097823e430839324cc185d99 | [
"Markdown",
"Ruby"
] | 28 | Ruby | maravger/samant-sfa | ab43ef301e9dc3f77b0299c80e8bd96a861a0bb5 | 5476dae21b80405f6a030897be55c2a925f78503 |
refs/heads/master | <file_sep><?php
class Creativestyle_Sare_Block_Adminhtml_Dashboard extends Mage_Adminhtml_Block_Abstract
{
public function __construct(){
$this->setTemplate("sare/dashboard.phtml");
}
public function render(Varien_Data_Form_Element_Abstract $element){
return Mage::app()->getLayout()->crea... | 2f163bf7cbfe11ae932adc99414b9da69a69e490 | [
"JavaScript",
"PHP"
] | 22 | PHP | OpenMageModuleFostering/creativestyle_sare | 5f7385ec4d63d091bbb4afb209e82d97c68b5179 | 9b7d01ba197643ecaf0234c12628817cb935dff8 |
refs/heads/master | <file_sep>import numpy as np
def runChop(score, action, displ = 0):
"""
Takes Current Score and action and returns resulting Score
in:
score: Array of 4 numbers [p1 left, p1 right, p2 left, p2 right]
action: options 1 thru 4 (LL, LR, RL, RR)
out:
score: array size 4
"""
... | f1cf88b5ee00a4d0d1d9ecac3338a7251d369ab4 | [
"Python"
] | 4 | Python | jzcs/ML_Winter2019 | bfc1da179efe009758ff4f4e19c09fb9a58379b9 | 7fd6f8cd395681aa7b1f8ffeb19775bc496705c9 |
refs/heads/main | <file_sep>from postgreConnection import query, mutation
from pydantic import BaseModel
class Fornecimento(BaseModel):
franquia_id: int
fornecedor_id: int
data: str
def get_fornecimento():
return query("SELECT * FROM FORNECIMENTO;")
def insert_fornecimento(forncimento: Fornecimento):
return mutati... | 972848010afd7760e39fe79a5b02cb4153017bb2 | [
"Markdown",
"SQL",
"Python"
] | 16 | Python | Joao-Pinheiro07/BD2-Sistema-BackEnd | 00d335e0e7791b72b4904c2122f55a8e00247678 | 964215d8369d7501d73b4116e95c9e5aa950e309 |
refs/heads/master | <repo_name>Yeonji-Lee/Member0628<file_sep>/src/main/java/kh/spring/chat/HttpSessionSetter.java
package kh.spring.chat;
import javax.servlet.http.HttpSession;
import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;
public class HttpS... | 455a448ad988526cb260496eacb5560da16d5f19 | [
"Java"
] | 5 | Java | Yeonji-Lee/Member0628 | 3d9f0b020da67819d825dcd5cac065455fccd883 | aee7d862081e2e7d66b44fd56ba2745a626da9c3 |
refs/heads/master | <repo_name>mrJson01/Twilight.com<file_sep>/README.md
# It is repository of site Twilight.com
~ NodeJS modules used as a environment for further development.
<file_sep>/controllers/index-1.js
const fs = require("fs");
var SibApiV3Sdk = require('sib-api-v3-sdk');
exports.home = (req,res)=>{
var svg = new Array(6);... | 55aec636481557a18d904aac7ce3109ce9ae2e9a | [
"Markdown",
"JavaScript"
] | 3 | Markdown | mrJson01/Twilight.com | 75c0582f036181eadaf2c3c256ef47385fd5f59b | 962ae78ac5daea9782be8aa3c09d462d228cf809 |
refs/heads/master | <repo_name>ferdirn/learnyounode<file_sep>/myfirstio.js
var fs = require('fs')
var file = process.argv[2]
var buf = fs.readFileSync(file)
var str = buf.toString()
var strArray = str.split('\n')
console.log(strArray.length - 1)
<file_sep>/program.js
if (process.argv.length > 2) {
var total = 0;
for (i=2; i<process.ar... | 6648bea3c914595c304ea7e355689eef168374dd | [
"JavaScript"
] | 2 | JavaScript | ferdirn/learnyounode | dec21ac8321d8d51447f3f6b200a1e9d85253688 | bf57737b7bc1d6dd1760be07d68da6678c6544fe |
refs/heads/main | <file_sep># cka-material
This repo contains information for CKA exams. It has vagrant files and tests that can be used for practice. It takes inspiration on other repositories and tries to provide real 'practice-like' sessions with the use of custom vagrant boxes.
It provides no answers, but feel free to open a PR and... | ff9ecb9d8e1fd2a31b054f6946d09dfce72c6ca5 | [
"Markdown",
"Shell"
] | 8 | Markdown | ContainerSolutions/cka-material | d7f242f4a6f12accaee9a5fe95c2a99be6cd912f | 832a78ee4744fd5d28cf134050bc1cfe27e40a42 |
refs/heads/master | <repo_name>jcarlnel/jcnelson_assignment2_mini2<file_sep>/Assignment2/jcnelson.assignment2/src/main/java/com/example/jacobnelson/assignment2/db/DatabaseConnector.java
package com.example.jacobnelson.assignment2.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
imp... | d11f037c77d2375136b7f57f4321528bc801ed5e | [
"Java",
"Gradle"
] | 4 | Java | jcarlnel/jcnelson_assignment2_mini2 | f90095b5a33fe9b3267a83240488eacbfc9f2a2e | d4520f98ec50e2d7e732663a75806b42fb76ddf8 |
refs/heads/master | <file_sep>class PatchPanel < Trema::Controller
def start(_args)
@patch = []
File.open( "./patch-panel.conf" ).each_line do | each |
if /~(\d+)\s+(\d+)$/=~ each
@patch << [ $1.to_i, $2.to_i ]
end
end
end
def switch_ready( datapath_id )
@patch.each do | port_a, port_b |
ma... | 574be8ffe9038b1c18c95af2726c886b988e8bc6 | [
"Markdown",
"Ruby"
] | 10 | Ruby | otahi/trema-study | 672922f2f1f5121b60bd4133ce542ebb8e37f189 | cb58968b55c417fe72e34080b5304f4c85ff357a |
refs/heads/master | <repo_name>GUH52/OldNetflix<file_sep>/contentBuilder.js
$(document).ready(function(){
$.get("navigation.html", function(data){
$("body").prepend(data);
$("body").append("<section id=\"vids\"></section>");
$.get("footer.html", function(data2){
$("body").append(data2);
... | ba859762a84dbafd497667603e6e4b204bbfef04 | [
"JavaScript"
] | 1 | JavaScript | GUH52/OldNetflix | ab0b7f67934b6302536276eef13943eee9594300 | 9309cf19c2a4fe5f6ec8c5818b79b5a79f6c8bae |
refs/heads/master | <repo_name>YugineS/PythonArkanoid<file_sep>/Paddle.py
from State import State
import Config
import pygame
class Paddle(object):
def __init__(self):
self.x = 0
self.y = 0
self.speed = 10
self.width = 120
self.height = 10
self.states = {Paddle.MoveLeft: Pa... | fb19b42e0305504f89239399a05e76d2c8c37737 | [
"Python"
] | 2 | Python | YugineS/PythonArkanoid | 633368fdeaf74c5f944a7b69d7d49d78e8beb2fb | bcd700c3aade13c8ac0721b5799ca1660a53ac61 |
refs/heads/master | <repo_name>sejaldua/intellivo<file_sep>/Intellivo-app/README.md
## Structure of intellivo-app
### This directory contains the content for the flask app. The structure is as follows:
```bash
.
├── README.md
├── intellivo_package
│ ├── __init__.py
│ ├── forms.py
│ ├── intellivoUser.db
│ ├── models.py
│ ├── ... | 2363d5007e9d9e2ca10541c815eeb11cfbd96334 | [
"Markdown",
"Python",
"Dockerfile",
"Shell"
] | 7 | Markdown | sejaldua/intellivo | 7f6ed87576adbec5373be12a2ae7f7945046b0b6 | 6add8e1645a7d570ce0f0066303ffd806e4e2564 |
refs/heads/main | <file_sep>import java.util.Queue;
public class Consumer implements Runnable{
Queue<Double> sharedQueue;
public Consumer(Queue<Double> sharedQueue) {
this.sharedQueue = sharedQueue;
}
@Override
public void run() {
while (true) {
try {
System.out.printl... | 5983cddb6014e0a04c068fa5c269c646777fce58 | [
"Java"
] | 1 | Java | tom-ato-s/8.2_habr | 5d42065cb693f3e140cd806be91abdd457545210 | ea99c82d565298d6de52ca1b4aa783d4b62cf916 |
refs/heads/master | <repo_name>fiedor92/PersonalTrainer<file_sep>/PersonalTrainer WatchKit Extension/InterfaceController.swift
//
// InterfaceController.swift
// PersonalTrainer WatchKit Extension
//
// Created by <NAME> on 15/08/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
import WatchKit
import Foundation
class Inter... | 9c9bac2abb04e02d802a9f567c44a3fd1c26aee8 | [
"Swift"
] | 3 | Swift | fiedor92/PersonalTrainer | 33739c18053b28511d415f8d6846c541db265f35 | 61527333b2f89118698b7203b73f022b117c55ca |
refs/heads/master | <file_sep>self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "fa5a61508e5785f407bcbcaaf3564a64",
"url": "/Cultist-Simulator-Translation-Tool/browserconfig.xml"
},
{
"revision": "6680d6da974e0229d247",
"url": "/Cultist-Simulator-Translation-Tool/css/app.481c036f.css"
... | b8777f6271ab0d96ef6db27573840ed488cac1d3 | [
"JavaScript"
] | 1 | JavaScript | Genroa/Cultist-Simulator-Translation-Tool | d06ceeec491f8c927c7faccef17ec511742311ac | 48297bc420ceac80237e0b9e8fa392cb255e811a |
refs/heads/master | <file_sep>sfToDoList[](http://waffle.io/jjbernal/sfToDoList)
==========
A Symfony project to manage TODO lists.
Requirements:
--
* PHP 5.3 and up.
* Database: SQLite.
* Check if your system meets the software requirements for ... | 0bcaddea614e916409c0c1be9d40d209ef4cf118 | [
"Markdown",
"PHP"
] | 3 | Markdown | jjbernal/sfToDoList | 640f9295e63f43f5b663d49dc70f153707d48b5b | fd7e60d2aca12f785716aef0b233f25f913471b8 |
refs/heads/main | <repo_name>matiascoronados/mineriaLab4<file_sep>/lab3.R
#install.packages('bnlearn')
require(bnlearn)
####################################################################################
####################################################################################
###############################################... | 13ac2017315fd139063d0b68582c218aa89e93ee | [
"R"
] | 1 | R | matiascoronados/mineriaLab4 | c661f73e303eb43ea34651d75999b82b33fbaa14 | c59b2d4dd683935ad651d8d798b371e58b1f291c |
refs/heads/master | <file_sep>//
// sonucCV.swift
// bilgiYarismasi
//
// Created by <NAME> on 4.05.2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class sonucCV: UIViewController {
@IBOutlet weak var cikisBtn: UIButton!
@IBOutlet weak var anamenuBtn: UIButton!
@IBOutlet weak var dogruSayisi:... | 51d8b31adf70c8f2eaa7936fe47045b6b94f59a2 | [
"Swift"
] | 3 | Swift | Bitgen6363/bilgiyarismasi-ios | 00b6ef09685717ffafbfae027edf87cc3b3fba85 | 2aa2210813ee7ab5e85d63d62c388f9dc9565ff5 |
refs/heads/master | <file_sep><?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Estado_Tramite extends Model
{
protected $table = "estado_tramite";
protected $fillable = ['nombre','color','font_icon'];
public function emite_tramite_transferidos(){
return $this->hasMany('App\Tramite_Transferido');
... | 465fdddb17316df375e81f92a624226cc7d04169 | [
"PHP"
] | 81 | PHP | oversanchez/colegio | 4a0ad36c683170fba4dfcc2d9a586f58180ce4fb | c5e1e8ff6bfaf51ce53859fb80e4fb383d16cf1d |
refs/heads/master | <repo_name>calphiko/dmx512<file_sep>/README.md
dmx512
======
Open Source Dmx 512 System
<file_sep>/RaspberryPi/Test_RS232/rs232_test.py
import serial
import time
ser = serial.Serial("/dev/ttyAMA0", 250000)
while 1>0:
# Sende V, Dezimal: 86
# Binär: 01010110 (Invertiert)
ser.write("VV")
time.sleep(1)
... | 84cb9aee67f693b839f30263691afdf0276a67e3 | [
"Markdown",
"Python"
] | 2 | Markdown | calphiko/dmx512 | 49b970bd5b08ad140ea291e153406411f0ce2427 | b19f28f2be2fb472147322ae5a94d75a5c754cf8 |
refs/heads/master | <file_sep>import { SELECTED_USER } from '../actions/index';
export default function(state =[], action) {
console.log('Selected user', action)
switch(action.type) {
case SELECTED_USER:
return action.payload.data;
}
return state;
}<file_sep>import React, { Component } from 'react';
impor... | 64cc22f838fcb9f0a716631366a040ec7385edab | [
"JavaScript"
] | 4 | JavaScript | AlinaGaidamaka/chatty-app | 5da6acce3a9e3e342e2698a1e511fe27e7d2fd95 | 2ae141258994b63a76a0efa4a86bc19fdc244a1f |
refs/heads/master | <repo_name>pvikitset/Weather.Notifier<file_sep>/settings.py
DARKSKY_ACCESS_TOKEN = ''
LOCATIONS = ('Regina',50.432504,-104.524737)
BOT_EMAIL = '<EMAIL>'
TARGET_EMAIL = '<EMAIL>'
SUBJECT = 'Weather Notifier'
TIME_TO_SEND = '06:00'<file_sep>/README.md
# Weather-Notifier
Collect weather data through DarkSky API and e... | 82de529b8a9a1faf53b3215723922e6a150460ff | [
"Markdown",
"Python"
] | 3 | Python | pvikitset/Weather.Notifier | aa96314b7ab69218c9a93179de5506f37ad27ad9 | c78ca4fae5239ca1887db384f45140d493bd9a41 |
refs/heads/master | <file_sep>const express = require('express');
const server = express();
server.use(express.json());
const projects = [
{
id: 0,
title: "Projeto 01",
tasks: []
},
{
id: 1,
title: "Projeto 02",
tasks: []
},
{
id: 2,
title: "Projeto 03",
tasks: ["tarefa"]
},
]
server.use... | 038fea4a8130a113b35f5d6703dbd73d39d0df05 | [
"JavaScript"
] | 1 | JavaScript | Dessamgl/gostack_desafio01 | f0382d1c2dbb3066a3f5bb43150164b71960b53f | c684a388a52b030c69b7d6510ce45097fa4ac27a |
refs/heads/master | <repo_name>raniachouaieb/lumenapp<file_sep>/app/Http/Controllers/WorkersController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use App\Models\Worker;
class WorkersController extends Controller
{
public function createWorker(Request $request){
$work... | 258b8cd4abea4398d4ae77c088642da87230d356 | [
"PHP"
] | 1 | PHP | raniachouaieb/lumenapp | dce2d2c16316e8171d8d62a4234d8808c029ec31 | 4b653b29bf421de268bc4735e0cbae457ee7e5b7 |
refs/heads/master | <repo_name>mulder3/kirchnerei-maven-plugins<file_sep>/decrypt-plugin/src/main/java/kirchnerei/decrypt/plugin/EncryptMojo.java
/*
* Copyright (c) 2014. Kirchner
* web: http://www.kirchnerei.de
* mail: <EMAIL>
*/
package kirchnerei.decrypt.plugin;
import org.apache.maven.execution.MavenSession;
import org.apache.m... | f9655c7dcfec96973ea264c288a591fe1844d923 | [
"Markdown",
"Java",
"Maven POM"
] | 7 | Java | mulder3/kirchnerei-maven-plugins | 0edc430c13257d27411049b9ece600d37a3a81c2 | 2eb64d6e81ab72528c9d39f61499f3109803a258 |
refs/heads/master | <file_sep># timestamper
Timesheet tracker in C++. Keep track of start, stop times for the day. Easy reporting for timesheet needs.
I was dissapointed by the lack of timesheet appliations written in C++, so I decided to write my own for my personal use.
<file_sep>#include <iostream>
#include <fstream>
#include <string>... | a358836cf81d2105112d09789c4c919d9e696c84 | [
"Markdown",
"C++"
] | 2 | Markdown | userWayneCampbell/timestamper | 29fefd881192a8c48c4177a122335c7e32b8372d | 8bc4f468a9d99d41416b35646e393969cca13180 |
refs/heads/master | <file_sep>const { expect, assert } = require("chai");
const { ethers } = require("hardhat");
let lottery;
let owner;
let players;
beforeEach(async () => {
let accounts = await ethers.getSigners();
owner = accounts[0];
players = accounts.splice(1, 20);
const Lottery = await ethers.getContractFactory("Lottery");... | 69b3bc92085fe916143cb7906ec4869360f76028 | [
"JavaScript"
] | 1 | JavaScript | bufo24/solidity-lottery | 0826204ce56350eda7b892d9628ada29b3bd09a1 | 70b103a780cd78708014c4ea5d9187c9775d382c |
refs/heads/main | <file_sep># oct-classification
<file_sep>import argparse
import os
import numpy as np
import pandas as pd
from PIL import Image
from skorch import NeuralNetClassifier
from skorch.callbacks import LRScheduler, Checkpoint, EpochScoring, EarlyStopping
from skorch.helper import predefined_split
import torch
import torch... | c09e5daa1804265b1a458c6d2d3916fd2b7e5f21 | [
"Markdown",
"Python",
"R"
] | 3 | Markdown | aaroncoyner/oct-classification | 5934253d4301b2b9b5a0be87d7893c29c79e05c9 | 037e27eed2c7d867448d4ea388f3f8add693c289 |
refs/heads/master | <file_sep>package tk.okou.hls;
import io.vertx.core.*;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.file.AsyncFile;
import io.vertx.core.file.FileSystem;
import io.vertx.core.file.OpenOptions;
import io.vertx.ext.web.client.HttpRequest;
import io.vertx.ext.web.client.HttpResponse;
import io.vertx.ext.web.c... | 925c3378903c9709b5af720134fd385f1fdf9ee9 | [
"Java"
] | 1 | Java | okou19900722/hls-downloader | da963e1b7864f2d9cd48a7c3abb0ce0d4536c827 | 04c82d761b907dc751c5782a523e7e16eadde16c |
refs/heads/master | <repo_name>oggnik/project-euler<file_sep>/Problem 9/euler9.rb
sum = 1000
for i in 1..sum
for j in i..sum
if (i**2 + j**2 > (sum-i-j)**2)
break
end
if (i**2 + j**2 == (sum-i-j)**2)
puts "#{i} #{j} #{(sum-i-j)}"
puts "product: #{i*j*(sum-i-j)}"
exit
end
end
end
<file_sep>/cleanup.rb
#!/usr/bin/ruby... | d9c7b5d7164c05ff55e55a762bdc9802b423373a | [
"Python",
"Ruby"
] | 9 | Ruby | oggnik/project-euler | 69234a002ca765d5573e4b1cea02e8b8830d5ae6 | 2b63b5185b6e62cf2a7e3ba538df63ef44dd851f |
refs/heads/master | <repo_name>Zuzzuc/dbmod<file_sep>/dbmod.sh
#!/bin/bash
# License: The MIT License (MIT)
# Author Zuzzuc https://github.com/Zuzzuc/
#
# This script is used to modify databases.
set -f # Note that noglob is active! Some regex operations might not work as intented.
# Exit codes
# 1=Unknown operation
# 2=No db path supp... | 016767bf677feb0720e7c49d3ea2ff26942364c5 | [
"Markdown",
"Shell"
] | 2 | Shell | Zuzzuc/dbmod | cfbd453cf8d884c2fd887cde5eda26c051f86769 | 3fcb2cf540130bdf6539484ce0748abb83017dae |
refs/heads/master | <file_sep>import React from 'react' ;
import "./App.css";
function Hello({name,msg}){
return(
<div className="Hello">
<h1>This is the hello component</h1>
<h3>{msg}</h3>
<h2>
{name}
</h2>
</div>
);
}
export default Hello;<file_sep>import... | 6ffe494a987893d070f50b33e20e5cde79248edc | [
"JavaScript"
] | 2 | JavaScript | Tharanidk/increment_numbers | f1e13710f165d3113b68c79b3d067f992cabb30d | 72e93948338559965644d863527dad79c9f287a2 |
refs/heads/master | <file_sep>FROM alpine
RUN apk add --no-cache ca-certificates curl
RUN curl -Lo /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.19.4/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl
ADD ./drone-kubectl /usr/bin/
ENTRYPOINT ["/usr/bin/drone-kubectl"]
<file_sep># drone-kubectl
D... | 1dbc9dfc6ec3a71b18748311145aaf2112bd2a28 | [
"Markdown",
"Go Module",
"Go",
"Dockerfile"
] | 7 | Dockerfile | metalmatze/drone-kubectl | 5ff4177802a2fe65f374eb426d17f6ac7e69eefa | 6ea2988a158e485a5b66e604c4dc3e3b1cf1e16b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.ComponentModel;
using System.Reflection;
namespace DailyProgrammer226_Connect_Four
{
public enum BoardSquareStatus
{
[Description(" ")]
em... | 228919be7d0d651d633d3b90dfe6547ffb537dd6 | [
"C#"
] | 3 | C# | andrewtackett/DailyProgrammer | 9f71bd4f1d39b7e99cf5d8a0e01f76a6373762fe | da080c112519c7ca2df3f233b331a7a5655cce95 |
refs/heads/master | <file_sep>import numpy.random as random
# Boolean variable on 50% chance
def coin_toss():
return random.random() >= 0.5
# Mean value between numbers
def mean(numbers):
return float(sum(numbers)) / max(len(numbers), 1)
# Sum of squares
def sum2(numbers):
return sum(x*x for x in numbers)
# Standard deviation... | 3ab5b20a823ae11b9a5c084dc043074e795f97fe | [
"Markdown",
"Python"
] | 10 | Python | cassioss/genetics | 62af87361ec72c5ebf9a47ab549eed8856d964f0 | 5a844a6a808f1a0cbb07c77e18380d797a9dd687 |
refs/heads/main | <file_sep> const tutorials = require("../controllers/tutorial.controller.js");
const router = require("express").Router();
router.post("/", tutorials.create);
module.exports = router<file_sep>const db = require('../models');
const tutorialService = require('../services/tutorial.service')
const Tutorial = db.... | 510c71c182d7a13ba89c7d9b85e4ad5e4c1582cd | [
"JavaScript"
] | 2 | JavaScript | sagar-adval/Node-Sql-CRUD | 099720b7b95e26370b6c22e091e6998179df23e5 | d85ccc276c1e60dc169930b206ea953b6f3f2da5 |
refs/heads/master | <repo_name>mtharmen/image-search<file_sep>/README.md
# API Basejump: Image Search Abstraction Layer Microservice
## User stories:
1. I can get the image URLs, alt text and page urls for a set of images relating to a given search string.
2. I can paginate through the responses by adding a ?offset=2 parameter to the URL.... | 237ad87a2a5788ac5406869b741666dd209a80a1 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | mtharmen/image-search | 0ab08c43e9d4655a3b155fd5ae32a9719c9c2af4 | 215b71e27b4b71a1d000310b4b8a2ea11b7f618e |
refs/heads/master | <file_sep>package ebay;
import main.SignUp;
import org.testng.annotations.Test;
import reporting.TestLogger;
public class SignUpTest extends SignUp {
//*****positive testing
//REGISTER to ebay
@Test(priority = 1)
public void ValidRegister() throws InterruptedException {
TestLogger.log(getClass(... | 6ed8a6c7702b795a23888b488a117c63847c0c3f | [
"Java"
] | 41 | Java | Syedhussain102/WebAutomationTeam9 | cccbd6149bdd0164278996fbead082f2b2ad8559 | 6c33c98c6912387cde54c07348a0659d8683ba34 |
refs/heads/master | <file_sep>カード決済手数料込み計算機
==========================
Square などで支払いを受けるとき、
手数料を引いてちょうど目的の金額になるように請求額を計算します。
http://komi.msng.info/
<file_sep>$('#methods a').click(function() {
$('#methods').hide();
$('#calc').show();
var method = $(this).find('dt').text();
var fee = $(this).find('dd').text().replace('%', '');
$('#... | 4e6fdd1b6ddce239a9c135b1eb98e2ecb3f5528c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | msng/komi | b5ddcdd4c6c14cc2dd77d07e6e36899353097f7f | 1ecfff79415d43d0263dd08f74a41fc8d43c92f6 |
refs/heads/master | <repo_name>JonahJana/lesson1<file_sep>/apps.js
//const stuff that can be copy pasta
//------------------------------------------
const express = require('express');
const app = express();
const https = require("http");
const server = http.createServer(app);
const LISTEN_PORT = 8080;
//----------------------------------... | 21a48a1347689d1ecf91850ce7c4ace15562090f | [
"JavaScript"
] | 1 | JavaScript | JonahJana/lesson1 | 6af3083637ac4a0938b18105ff5de0c175549db7 | a1f5ca21f75f02ff76c39a14e522b0cd9ca4a62f |
refs/heads/master | <file_sep>import frappe
#send_emails to attendees for conference invitation
@frappe.whitelist()
def send_invitation_emails(Name,Attendee,Agenda,Venue):
print "_________________mailing____________"
url="http://localhost:8000/desk#Calendar/Event"
msg = frappe.render_template("templates/email/conference_booking.html"... | f088eaefd34d6fcb714d780707914b1291d77785 | [
"Python"
] | 1 | Python | yashodhank/conference_management | caa34a947881dfe8ccb68a2b8e449008bd9ced47 | 3c5e39e37fcf3ed927536d448ac4e3de1d8f4905 |
refs/heads/master | <file_sep>import decimal
import json
from django.forms.models import model_to_dict
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
import datetime_to_decimal as dt
import models
def rsp(data):
return HttpResponse(json.dumps(data), content_type="application/json")
def _get_m... | 36f6c74e2cf5a65c75a68d565cf2f7ef3d2180dd | [
"Python"
] | 1 | Python | hungld/stacktach | 29ec82e186fdc32bc67c94eeb07197ee58f88871 | fbaf58295cd54be0a5e9a038455734c880ad6d2f |
refs/heads/master | <file_sep>#include<stdio.h>
#include<string.h>
#define num 1<<20
#define DUMBCOPY for (i = 0; i < num; i++) \
destination[i] = source[i]
#define SMARTCOPY memcpy(destination, source, num)
int main()
{
char source[num], destination[num];
int i, j;
for (j = 0; j < 500; j++)
SMARTCOPY;
// DUMBCOPY;
return 0;
}
| 9dd8e30da1392cdf785a647e8eee256749634b22 | [
"C"
] | 1 | C | tomxuetoy/cache_effect | 81c906a027745208d336da29d83eafa7e5e1a1ee | 085e25b1a4a7aec38a8faf1049276942fd722bdf |
refs/heads/master | <repo_name>SrivatsavG/calculator-nodejs<file_sep>/README.md
# calculator-nodejs
**BACKEND**: NodeJS <br/>
**FRONTEND**: EJS <br/>
**DATABASE**: MongoDB <br/>
**HOSTED ON**: Heroku <br/>
### Details
Basic calculator that stores the last 10 calculations performed by its users.
### Website
https://srivatsav-calculator... | 7f4042f3fae46866f1e90b44e1363c51ce33d1dd | [
"Markdown",
"JavaScript"
] | 4 | Markdown | SrivatsavG/calculator-nodejs | 8cb7a71705de1ac8371fb1a46d8670aa94717969 | 69891def2ca8bad4bf0ee75073c4fd50f57658c6 |
refs/heads/master | <repo_name>arasouli91/omniChess<file_sep>/README.md
### OmniChess
<file_sep>/Board.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Advertisements;
public class Board : MonoBehaviour
{
private readonly int ROWS = Settings.ROWS | 8, COLS = Settings.COL... | 5c0a4203b07606928d65a7d57addfd748682141b | [
"Markdown",
"C#"
] | 2 | Markdown | arasouli91/omniChess | b6f746d548a413e57f61674ac256f516ca983f3e | 2aeb5a5123fd7add993f56d078de372467b14f37 |
refs/heads/master | <repo_name>kirin123kirin/GitTest<file_sep>/hoge/src/hoge.py
# To change this template, choose Tools | Templates
# and open the template in the editor.
__author__="yellow"
__date__ ="$2013/01/31 21:31:43$"
if __name__ == "__main__":
print "Hello World"
<file_sep>/hoge/nbproject/project.properties
java.lib.path=
ma... | 3e7e3ebf3ef491fef201eb3ce5b54743b3e32097 | [
"Python",
"INI"
] | 2 | Python | kirin123kirin/GitTest | 081eb5505729b2a403dcc19da7ea1409b21565d7 | 53a8051361511daa5a56ea3efbec7f89a6be180c |
refs/heads/master | <repo_name>chenmiaohui/Login<file_sep>/app/src/main/java/com/god/mvp/mvp/model/LoginModelImpl.java
package com.god.mvp.mvp.model;
import android.util.Log;
import com.god.mvp.mvp.bean.User;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.FormEncodingBuilder;
import com.squareup.okhttp.OkHttpClient;
imp... | 0fd9e232a305f0a6caddb816bf65019c10c2d655 | [
"Java"
] | 1 | Java | chenmiaohui/Login | 1794937f1f0b85049b3b102ec185066cb4efb13d | 9aa44d0d608752e09962e8da23af3f210c7c8d48 |
refs/heads/master | <file_sep>#include<stdio.h>
#include<sys/types.h>
main()
{
char cmd [10];
int ch;
pid_t pid;
pid=fork();
if(pid==0)
{
do
{
printf("enter the command to be executed :\n");
scanf("%s",cmd);
system(cmd);
printf("enter 1 to enter more commands,0 to exit\n");
scanf("%d",&ch);
}
while ( ch!=0 );
}
wait();
}
<file_sep>#includ... | 943e2b215380c31fe652ccb1ecf0eddf482d01be | [
"C",
"C++",
"Shell"
] | 11 | C | 1we/SSOS | 4718df5bf7d2eec624f88b32fa7e5c763d3cd544 | 1e4a2e0d73076467fa2c7556ec09682d0d5e864c |
refs/heads/main | <file_sep>from pydub import AudioSegment
files_path = ''
file_name = '2_cut'
print (file_name+'.mp3' )
startMin = 0
startSec = 5
endMin = 1
endSec = 45
# Time to miliseconds
startTime = startMin*60*1000+startSec*1000
endTime = endMin*60*1000+endSec*1000
# Opening file and extracting segment
so... | 313152ecebee97c5e14308cf5002cac92d7e09e8 | [
"Python"
] | 3 | Python | flozender/PodCare | 012b4f1c8158524c80e2846be33dd7fc5bf13792 | f2e01c50f845583ada2195f7cc2187c9361b09fe |
refs/heads/master | <file_sep>#pragma once
#include <QtWidgets/QMainWindow>
#include "ui_MutiCam.h"
#include "ApiController.h"
#include "OpenCVVideoRecorder.h"
using AVT::VmbAPI::Examples::ApiController;
class MutiCam : public QMainWindow
{
Q_OBJECT
public:
MutiCam( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
~MutiCa... | c7a32d01f550a0097d35c6d8793e3adf2f20ab06 | [
"C++"
] | 8 | C++ | Jhuangsp/sync_multi_camera | 574bd7200246dfe737daa1b1f207a3bfa076e5e4 | 62f4262262327e2b1a448a3f8ace5c7b168fb659 |
refs/heads/master | <file_sep>import React from 'react';
import TodoListContainer from './todos/todo_list_container';
export default class App extends React.Component {
render() {
return (
<div>
<h1>Todo List App</h1>
<TodoListContainer />
<footer>
<ul>
<li>
<a href... | a25e73aef86e54b2b25fbf58ae5e08a12befab7e | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jlincodes/todo-list-app | aa5c9f30ff386a6b920c13b22004ec31e3850052 | 3f5e070e304cfbeea225caf082df38a448902426 |
refs/heads/master | <repo_name>edpasa23/carrental<file_sep>/src/main/java/com/eparadas/carrental/repository/BookingRepository.java
package com.eparadas.carrental.repository;
import com.eparadas.carrental.domain.Booking;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import... | a010f5dc5c4cad960f27869615e00ce96a81f15d | [
"Java"
] | 10 | Java | edpasa23/carrental | 857b91c2b78ed1d53375dbabd20d2d08dff7e6d2 | 4d9e60a23797248ea18543cbf77869953b21c6ec |
refs/heads/master | <repo_name>eltarkan/AnimeNamesFromMyAnimeList<file_sep>/README.md
# Anime Names From MyAnimeList
I HATE ANIMES </br>
How to be WebScraper? </br>
I wrote this using NodeJS
<file_sep>/pars.js
var osmosis = require('osmosis');
var fs = require('fs');
var sql = require('mysql');
var replaceall = require("replaceall");
... | 7bcc659e536fa7298b0e8b3108de36e5b3e49e49 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | eltarkan/AnimeNamesFromMyAnimeList | 2717370eb74d080234dae610ba798849ff593b29 | 319da4260aaf041f272fae11e20fa5ceac34ce3a |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.