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>class Comedian < ActiveRecord::Base
has_many :specials
validates_presence_of :name, :age, :city
def self.average_age
average(:age)
end
def self.unique_cities
select(:city).distinct.map { |comedian| comedian.city }
end
end
<file_sep>RSpec.describe Special, type: :model do
describe '... | 1362963fa0277b16e55a6b8f85488c5926796325 | [
"Ruby"
] | 8 | Ruby | chitasan/LaughTracks | 87fceab0058a96f7389a0fb247373d5f39ed00b9 | ee3e9928396aae00f7fd59924f183730dfeec611 |
refs/heads/master | <file_sep>/*eslint no-use-before-define: [2, "nofunc"]*/
/*eslint-env node, mocha */
/*global inject, angular, module, expect*/
/*eslint no-unused-vars: 1*/
/**
* Unit-test for GoogleSheetsService.js
*/
describe("Online Google Sheet test", function(){
"use strict";
var $window, gsService, gs, httpReal;
var works... | b974d7d716e69e4b086e9be09f73ffbfd0b9ea7e | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | denis-kalinin/google-sheets-ng | d681388d8dbb7f570774b17bf2d7ff74d7da9c29 | aae93ddf574ef6dd0a4f64b9cfe241aef19d2236 |
refs/heads/master | <repo_name>Farahnoz/dictionary<file_sep>/ConsoleApp1/ConsoleApp1/Program.cs
using System;
using System.Collections.Generic;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Dictionary<char, string> people = new Dictionary<char, string>();
pe... | 7c723490be3b57cb41992da59d4d577db3d9898d | [
"C#"
] | 1 | C# | Farahnoz/dictionary | 7f6a12307b2acfc94bb69525efc52cb4729fd1e6 | 983aea85849a30d405433734b694f2358accffbb |
refs/heads/master | <repo_name>ishowta/Shogi<file_sep>/src/library/shogi/shogi.ts
import { BitBoard, Board, PieceBoard } from "./board"
// tslint:disable-next-line:max-line-length
import {
BoundError,
CantMoveError,
CantPromoteError,
DoublePawnFoul,
DuplicateError,
FoulError,
MoveError,
NeglectKingFoul,
NoPieceError,
NotOwnedPie... | 8c7c72a4098e861105833ee4b39b18d746049dc1 | [
"Markdown",
"TypeScript",
"JSON with Comments"
] | 17 | TypeScript | ishowta/Shogi | bc7216d01c660df546ead2ec5222f9cddf04ea82 | bded723e2a02e3f59da25357d43b472d221cd4df |
refs/heads/master | <repo_name>vlasovOleg/PySimpleKeyloger<file_sep>/keyloger.py
import requests
import hashlib
import base64
from Crypto.Cipher import AES
from Crypto import Random
import pyxhook
import os
SERVERPATH = "http://127.0.0.1:8080"
LOGER_FILE = "CLIENTfile.log"
FILE_BUFFER = 50
SERVER_BUFFER = 2000
class loger(object):
"... | 5e7c8b87d08158f66e62435757fec3382bbd07d5 | [
"Python"
] | 2 | Python | vlasovOleg/PySimpleKeyloger | fda2364571cf10297920539771adff943110a6da | a8d64defec9817691173e174f014d01e5affe8e3 |
refs/heads/master | <repo_name>sm3304love/choi<file_sep>/hello.c
#include<stdio.h>
int main()
{
3+4;
printf("%d \n",3+4);
return 0;
}
<file_sep>/robot.c
#include<stdio.h>
int main(){
for(int num=1;num<101;num++){
if((num%10)%3 == 0 && (num%10) != 0){
printf("* \n");
}
else{
print... | 15b33c8c896e427fedc67fac97546350bf05c9c2 | [
"C"
] | 4 | C | sm3304love/choi | fba12927b183fbf7281d52bac0a95118756baeb3 | 91f001dabedc242eaacd5633026057a1bd44423d |
refs/heads/master | <file_sep>const express = require('express');
const app = express();
var path = require('path');
var http = require('http').createServer(app);
var io = require('socket.io')(http);
var nbJoueur = 0;
var nbrCoupJoue = 0;
//Sauvegarde du dernier joueur
var lastPlayer = "";
//Matrice carré de 3x3 qui représentera notre ... | 04c02c4290722ae62c36bc7c217b0e400293172c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | xavier-maisse/NodeJsMorpion | 27558219ec795aa51c3e8db278476f04cafda62b | 790e67d4e156fa5abb185855a1a1b18f646cc7f8 |
refs/heads/master | <repo_name>rubind/multiplanelensing<file_sep>/multiplane.py
import numpy as np
import decimal
decimal.getcontext().prec = 50
D = decimal.Decimal
def mydot(a, b):
return a[0]*b[0] + a[1]*b[1] + a[2]*b[2]
def myadd(a, b):
return [a[0] + b[0], a[1] + b[1], a[2] + b[2]]
def mysub(a, b):
return [a[0] - b[0], ... | 1c2e6630f35bbe248bd7859a114f1107e3a53656 | [
"Python"
] | 5 | Python | rubind/multiplanelensing | b2ccf4f1e31d2c4117c7324666c0961f677ddf54 | 56ff630d0d07ffed071f1c65fe0686b0375442d0 |
refs/heads/master | <file_sep>package com.mvppoa.codechallengeswarmup.hackerrank.thirtydays;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
//https://www.hackerrank.com/challenges/30-bitwise-and/problem
//Objective
//Welcome to the last day! To... | b02007c0d7b5b66785f37519921b8f9f782ac06c | [
"Java"
] | 2 | Java | mvppoa/code-challenges-warmup | 99897229bbcf9a06b53cc1bcfcba4b36bdceb62a | c8f27050818aa0ffbc58e45fb4ae7340de2bf4bb |
refs/heads/master | <file_sep>#!/bin/bash
# ----------------------------------------------
# This script checks the temperature using the ambient temperature sensor
# and if it is high it will run IPMI command to re enable dynamic control of fan
# otherwise it sets the fan tho low speed to be less loud
# Requires ipmitool to be insta... | 15c70ba621ca7f0d929236852df1225666fe9ebb | [
"Shell"
] | 4 | Shell | YamiFrankc/scripts | 745ab111b341157758843bd104eb2f0310981be6 | 96ff3389a5cd72b987963204e18a5c2dc291979a |
refs/heads/main | <repo_name>vaulier/tk<file_sep>/baseDatos.py
import sqlite3
import os
from time import strftime
class BaseDatos(object):
def __init__(self):
self.listaErrores = []
self.iniciarDirectorios()
self.__error = None
self.directorios = []
self.registroBaseDatos = str... | 0ff4f570a686a61cf7bcd0f1903cdb721bcf7ebd | [
"SQL",
"Python"
] | 7 | Python | vaulier/tk | e188fc7ac2a419c190e49119147013fdd3ef1ada | 2b05c6e15386fc997e0cb7e52307152b03df9b36 |
refs/heads/main | <file_sep>console.log("hello rest!")
const express = require('express')
const { v4: uuidv4 } = require('uuid');
const app = express()
app.use(express.json())
let persons = [
{
id:1,
name:"<NAME>",
number:"0642962786"
},
{
id:2,
name:"<NAME>",
... | 1ae9f1ce27399b66da92faca34a7dd2c9194bf22 | [
"JavaScript"
] | 1 | JavaScript | 8mn/simple-phonebook-REST-api | bb96fdb3f7655ae193a520dd49528fba15da47f8 | 5b49d4341bcff3a2c7f2cd52b31f73c1d0cbe852 |
refs/heads/master | <repo_name>vis-kid/ember_github_sniffer<file_sep>/js/app.js
var devs = [
{ login: 'wycats', name: '<NAME>' },
{ login: 'tomdale', name: '<NAME>' },
{ login: 'vis-kid', name: '<NAME>' }
]
Github = Ember.Application.create();
Github.Router.map(function() {
this.resource("user", {path: "/users/:login"}, function... | 40d0cbe8bcc8e4771fae40ba51b6f15e64063cf0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | vis-kid/ember_github_sniffer | 2900d360f8a62942d5664060ab772f80441336c8 | 2cf11096b5cb7212ba2b433e3f6be3e562a6baa7 |
refs/heads/master | <repo_name>mhjuan/tcdc-covid-investigation-form<file_sep>/client/components/FormBody.js
import React, { Component } from 'react';
import { Form, Card, Row, Col, Button, Spinner } from 'react-bootstrap';
import { StringColumn, DateColumn, SelectColumn, RadioAndInputColumn, RadioAndDateColumn, OtherSymptomsColumn, Checkb... | 41a1cf842df2bc41db645e403b0f7e032ab1dd72 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | mhjuan/tcdc-covid-investigation-form | 008f1bf5bbbc50b5fb3323b7d666f57a9932ecad | a5216485d0fc6c92d4622a51422e858678b48be4 |
refs/heads/master | <repo_name>13535048320/mybatis-plus-demo<file_sep>/mysql/test.sql
/*
Navicat MySQL Data Transfer
Source Server : 本地
Source Server Version : 80015
Source Host : localhost:3306
Source Database : test
Target Server Type : MYSQL
Target Server Version : 80015
File Encoding : 65001
Date:... | 08769b16725f3584cdf9f4683b04dbba32c0c415 | [
"Java",
"SQL"
] | 6 | SQL | 13535048320/mybatis-plus-demo | f48b18b3f8ab49214eb56f001837dd6879478052 | fd61365694e88cb096aa3847227df3175a2b3784 |
refs/heads/gh-pages | <file_sep>'use strict';
$(document).ready(function() {
// Put app logic here
var $stacks = $('[data-stack]');
var $block = {};
var gameover = false;
$stacks.click(move);
function move(){
if (gameover === false) {
if ($.isEmptyObject($block)) {
if(!($(this).children().length === 0 )) {
... | 1b5553615d1fcbb042450df7f19233f4faef5e22 | [
"JavaScript"
] | 3 | JavaScript | matthew-s-howard/javascript-workbook | 52e5cec0f8ac5649d4ed6b956cfce958ad4e79f5 | 6417f3bf345c65152d581ff58d4dc559c0612cf6 |
refs/heads/master | <file_sep><?php
$options['vagrant'] = array (
'username' => 'andrew',
'uid' => '501',
'gid' => '1001',
'git_name' => '<NAME>',
'git_email' => '<EMAIL>',
'home' => '/Users/andrew',
'project_root' => '/Users/andrew/vagrant/projects',
/*'dotfiles.profile' => '/Users/andrew/.profile',*/
'ssh_keyspublic' ... | 7b54fc394331086341d4681f9c523b0ea64c28c3 | [
"PHP",
"Shell"
] | 6 | PHP | andrewoke/dotfiles | 4b4b65d09ba4612d6c55032577c99e5d7031b726 | abf1874bc959fa34f4d61d2c73f9b248f1f009c4 |
refs/heads/master | <repo_name>Ssamirr/Pickbazar<file_sep>/pickbazar3.js
const domain = 'http://172.16.58.3';
var svg = `<svg class="mr-4"
xmlns="http://www.w3.org/2000/svg" width="18px" height="18px" viewBox="0 0 18 18">
<g data-name="Layer 2">
<g data-name="Layer 3">
<path data-name="Path 16"
d="M10.235 3.966a2.9... | 5681293760a1ee65f7d48fa51528dec3e0cd8e5f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Ssamirr/Pickbazar | e9b9bbdfe2d03d4b63daa505944c638f1222bda0 | a20eab4e9b9eb20aa8f6cd4b7bfaebc78f3b871e |
refs/heads/master | <repo_name>GubenkoEA2018/Mishpahug-julia<file_sep>/src/app/main/events-page/event-card/event-card.component.ts
import {Component, ElementRef, Inject, Input, OnInit, ViewChild} from '@angular/core';
import {MishEvent} from '../../shared/models/event.model';
import {MAT_DIALOG_DATA, MatDialog, MatDialogRef} from '@angula... | cb846b57c7b4f8aa93c9bed4914c5231eac2cc06 | [
"TypeScript",
"HTML"
] | 36 | TypeScript | GubenkoEA2018/Mishpahug-julia | b2b7518bf72b30aa72115a0b42e649dd68ea6687 | ae085a9e2917bf471d29800a7e75797a5f898b5c |
refs/heads/master | <repo_name>codecamp-bonapp/bonamiApp<file_sep>/app/pipes/price-pipe.js
import {Pipe} from 'angular2/core';
@Pipe({
name: 'money'
})
export class Money {
transform(value, args) {
var currency = Number(value);
return currency.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
}
}<file_sep>/README.md
# BonApp
BonA... | 8e935fad24a12812a85a331a0e71e7e479173d6c | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | codecamp-bonapp/bonamiApp | 90914ff515cce7e25dfac3beea23df735a904669 | d1acd9d0245ba9128126ee144838c97c9b76c67d |
refs/heads/master | <file_sep>export const insertCharacter = char => ({
type: 'CHARACTER_TYPED',
char,
});
export const removeCharacter = char => ({
type: 'REMOVE',
char
});<file_sep>var path = require('path');
var webpack = require('webpack');
var src_root = __dirname + '/src';
var pkg_root = path.normalize(__dirname + ... | a0ac5b8065347a5ba740c6ecce3cbe07b3a8ecc6 | [
"JavaScript"
] | 4 | JavaScript | enixdark/reactive-front-arch | 490a6beb71f9428849e0190c61c5a2d4f7324fd9 | 544f9fa28a6a147f73f58c602f5d4ae99fab6a05 |
refs/heads/master | <repo_name>Kimseona34/Chap4<file_sep>/src/Chap04/PhoneBook.java
package Chap04;
import java.util.Scanner;
class Phone {
private String name;
private String tel;
Phone(String name, String tel) {
this.name = name;
this.tel = tel;
}
public String getName() {
return name;
}... | 0f939500193c260badf2a97353dab11f518db26a | [
"Java"
] | 1 | Java | Kimseona34/Chap4 | 622f13d53d4937f6650630d7566db21464763a7a | e41f05af2d95b8d4fe11fc892b69888a8b159817 |
refs/heads/master | <repo_name>AkemiNoJutsu/AkemiNoJutsu.github.io<file_sep>/themes/Minival/README.md
# Minival
Un thème clair au style minimaliste et qui s'adapte à toutes les tailles d'écran. _Minival_ est le thème proposé par défaut avec _Narval_.
Il fonctionne parfaitement avec les templates du même nom : _Minival_.<file_sep>/hiragan... | 1cd7f7f1e30095871c029e18b0fb7552b8997318 | [
"Markdown",
"JavaScript",
"HTML"
] | 7 | Markdown | AkemiNoJutsu/AkemiNoJutsu.github.io | c8bfe3c3778010c110a69e3715f3ec5214b3ccd9 | 729ed7aad52552ec52b2cfa0e6638261e7d29c75 |
refs/heads/master | <repo_name>jmm38125/blogz<file_sep>/hash.py
import hashlib
def pwd_hash(password):
return hashlib.sha256(str.encode(password)).hexdigest()
def check_pwd_hash(password, hash):
if pwd_hash(password) == hash:
return True
return False<file_sep>/templates/blog.html
{% extends "base.html" %}
{% block ... | 05c61ff7249bb1dda0a4e629265ef08c163088dd | [
"Python",
"HTML"
] | 3 | Python | jmm38125/blogz | 01ed07f252652cfb65bd200be0ee8ca08731c792 | 31911629685cc84311836cf90f4f2a22021a7955 |
refs/heads/master | <file_sep>#passRandomDraw.py
import numpy as np
import scipy.sparse as sp
import scipy.linalg as sp_linalg
from mpi4py import MPI
import time
from sklearn.preprocessing import normalize
from bLARS_tournament_2 import bLARS_tournament_2
# Fix seed
np.random.seed(seed=10)
#np.random.RandomState = 10
# Just a useful fu... | 07fa8afd716730bbdbca2fe1aa0c69c3cbb9aa80 | [
"Python",
"C++",
"Shell"
] | 19 | Python | dasswap/calars | 7c8dd542fb6e50b4946ba45482634ab0e2cb31e4 | a0d7f43bd826250bd4f307bb5e423cb3cf9b5e42 |
refs/heads/master | <file_sep>import request from './request'
export default class graphql {
static async query (query) {
const results = (await request.get(`/public/graphql?query=${query}`)).data
return results.data
}
}
<file_sep>FROM node
RUN mkdir -p /www/admin_herhairworld
WORKDIR /www/admin_herhairworld
#移动文件
COPY . /ww... | 716b0ede3a2d024d66b4bcf2e3b39aaa5499eeaa | [
"JavaScript",
"Dockerfile",
"Markdown"
] | 18 | JavaScript | CNBlackJ/admin_herhairworld | c611d986845708cc4596e0bb058b532bf270d99b | 7987ed07086d17bdc4a2547b2e0b05e231a93cfa |
refs/heads/master | <file_sep>import os
from simtk import unit
import foldamers
import cg_openmm
from simtk.openmm.app.pdbfile import PDBFile
from foldamers.cg_model.cgmodel import CGModel
from cg_openmm.simulation.tools import run_simulation
###
#
# This example demonstrates how to run an NVT
# simulation for a coarse grained model in ... | ee4ee4a7083b0becbb0c160a6a3aa60d1bc962d3 | [
"Markdown",
"Python"
] | 4 | Python | suman-samantray/cg_openmm | dc27543dfd2d92d9c079fa3643710aa273ab0b00 | ae32342f50d2db96412675819c57bac5b0f669ae |
refs/heads/master | <repo_name>geekdenz/selenium-cucumber-java-examples<file_sep>/README.md
How to run
==========
```
./gradlew clean test -DWebDriver=Firefox -DHeadless=false
```
See
===
https://github.com/geekdenz/selenium-cucumber-java
<file_sep>/build.gradle
// Apply the java plugin to add support for Java
apply plugin: 'java'
appl... | ad42d38c52a9feadb0892242cac7fa7e7911c06c | [
"Markdown",
"Java",
"Shell",
"Gradle"
] | 4 | Markdown | geekdenz/selenium-cucumber-java-examples | 1ec644bb00d37df027c1206ff683a7e9c041bf45 | f9ee0a482007a0141b0a3dcf6ac7bf1fff1d77a8 |
refs/heads/master | <file_sep>
//到一定位置之后出现滚动条
$(function () {
//当前窗口滚动事件
$(window).scroll(function () {
// 定义top=滚动条离窗口顶部的距离
var top = $(window).scrollTop();
console.log(top)
//当滚动到top>800时,滚动条固定到顶端;否则不显示
if (top>800 && top<1200) {
$('.mod-header').addClass('active')
... | 0af7a6e7457dd7b7a19e000c21deb9d3299fbc12 | [
"JavaScript"
] | 1 | JavaScript | morris-he/0715test | ea72c52790942de91fbce33c3e1cba13e4861ccf | dcd659b22ae992ea21e99dd8ecd989d3ac74b199 |
refs/heads/master | <repo_name>HelloMarisaMorris/hotel<file_sep>/lib/block.rb
# block
require 'date'
require 'securerandom'
module HotelManagment
class Block
attr_reader :amount_of_rooms, :check_in_date, :check_out_date, :id
attr_accessor :rooms
BLOCKRATE = 100
def initialize(check_in_date, check_out_date, amount_of_r... | 65a3f9a5d89c65c3a8a7764460cb001b80ff3a34 | [
"Markdown",
"Ruby"
] | 11 | Ruby | HelloMarisaMorris/hotel | 2261275aa00717d6adebd272af300babcd8d24c6 | d2fb42bfc46257c6e73fb8cbcfc52649907fb793 |
refs/heads/master | <repo_name>RangoZhou/TMD<file_sep>/src/recycled/score.cpp
#include <iostream>
#include <sstream>
#include <istream>
#include <ostream>
#include <fstream>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <cmath>
#include <iomanip>
#include <algorithm>
#include <unordered_map>
#include "score.h"... | e826eec055551a79559a699555ef23a6f32f6058 | [
"CMake",
"Markdown",
"Python",
"C",
"C++",
"Shell"
] | 57 | C++ | RangoZhou/TMD | e91d5fbe60183890f3f678cf3f83eadccd1ffdc5 | e93ebdad80c2f4accf592976a7762d41f321d924 |
refs/heads/master | <file_sep>package controllers;
import play.mvc.*;
import java.util.Set;
import models.Book;
import views.html.books.*;
import play.data.Form;
import javax.inject.Inject;
import play.data.FormFactory;
public class BooksController extends Controller {
@Inject
FormFactory formFactory;
// For all books
public R... | 1c7a7400b4bb80d6a0ef47286e04833d6ac8650b | [
"Java"
] | 1 | Java | diegocruz10/Play_example | eb7c4b86a7bbe37f2b4fc9643d849b5a2d724143 | 4ab51f8d45397fe7cb3c9d85a77c39729f751f97 |
refs/heads/master | <repo_name>kametaro/gci_report<file_sep>/sql/201608_dock_available.sql
select status.station_id, station.dockcount, avg(docks_available), max(docks_available)
from babs.201608_status status
inner join babs.201608_station station on status.station_id = station.station_id
group by status.station_id, station.dockcount<fil... | 2ac1f6ff3b715df88b0af2d636c5054ab63b51a0 | [
"Markdown",
"SQL",
"Python"
] | 65 | SQL | kametaro/gci_report | 68b4733bc788d2fbf5532f32453211531ae33132 | fdbafa638c6cd61c2f074cd1c710e24f7a8ef97d |
refs/heads/master | <file_sep>import unittest
from calc import add, subtract
class CalculatorTest (unittest.TestCase):
def testAdd(self):
self.assertEqual(4, add(2,2))
self.assertEqual(5, add(2,3))
self.assertEqual(8.3, add(2.8, 5.5))
def testSubtract(self):
self.assertEqual(0, add(2,2))
self.assertEqual(-1, a... | 77b07ca84c059d264cbfabc872d03d66b454aa44 | [
"Python"
] | 1 | Python | 10376086/AdvancedProgramming- | 7ef3e94042dbde19a177a700017b2e9ed016fda6 | 44784a9acf58f5d83c55de8b30abb49ad61de866 |
refs/heads/master | <file_sep>[![Community Forum][forum-shield]][forum] [![Buy me a coffee][buy-me-a-coffee-shield]][buy-me-a-coffee] [![PayPal_Me][paypal-me-shield]][paypal-me]

This script needs Home Assistant `python_s... | 0614ca507e519aaf4a105896fbafc7d918e0a524 | [
"Markdown",
"TOML",
"Python",
"Text"
] | 6 | Markdown | bieniu/ha-shellies-discovery | ddb81ea7aae4f570d1f32846ea19b5300425e253 | 7aef8095903bf0d70c9221781330d5ddd899112c |
refs/heads/master | <file_sep>import fetch from './practicaReact/node_modules/node-fetch/@types';
let pokemones = [];
async function favoritePokemon() {
const response = await fetch('https://pokeapi.co/api/v2/pokemon/bulbasaur');
const data = await response.json();
console.log(data);
}
async function pokemonList(){
cons... | 74b504c9b0dab9c918bd77dda82e20aba4dddb9f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mdcanas/EjerciciosBootcampFront | 03997e05e90cb2c0d409ff077d2fd9cfdb3e70e1 | f143ed788154685d408588ec3b5e4d857003de53 |
refs/heads/main | <repo_name>Derling/cold-warZ<file_sep>/src/components/Map/assets/mapData.js
export const GRID_SCALE = 1000; // coords come from 1000px by 1000px image
export const MAP_CIRCLE_SHAPE = 'circle';
const OBJECT_NAMES = {
// misc
ammo: "Ammo Station",
mysteryBox: "Mystery Box",
craftingTable: "Crafting Tabl... | 6d8207be32993a511c7bf1b555cfcef6c4e4c795 | [
"JavaScript"
] | 4 | JavaScript | Derling/cold-warZ | c363e242d672a5ff06b13c34b3b36c6cfbc72b31 | 90734900aedc4b243cb37dfe91d6380ccee70bec |
refs/heads/master | <repo_name>aptvaibhav/Techno<file_sep>/src/components/Pages/Diseases/CKD.js
import React, {useState} from "react";
import './disease-details.css';
import './popup.css';
export default function CKD() {
const [enteredAge,setEnteredAge] = useState('');
const [enteredBp,setEnteredBp] = useState('');
const [enteredSg,se... | 2297c0c4b241f31fad17c9f43e09a5c71352d709 | [
"JavaScript"
] | 1 | JavaScript | aptvaibhav/Techno | 359e104f0f3ee1d1dd3af6b8e619aea813710884 | f7734843566a6e9339bf2698ec3fdf00a536c92d |
refs/heads/master | <file_sep>
require 'ws_cli'
host = 'ws.websocketstest.com'
port = 8080
proto = :hybi07
describe WSClient do
before :each do
log = Logger.new(STDOUT)
# log.level = Logger::DEBUG
log.level = Logger::ERROR
@c = WSClient.new(log, {:host => host, :port => port, :proto => proto, :frame_compression => tr... | ab65fd1c3237d16b64d78d4e848c152a15b3834f | [
"Markdown",
"Ruby"
] | 8 | Ruby | caryfitzhugh/ruby-websocket-client | 072e64dc600228bac0b305481b74a0ec33a48c59 | fb3a29caa2558ef959b7e03e94c679e0976c2b0e |
refs/heads/master | <repo_name>abbott/samsoff.es<file_sep>/spec/factories.rb
Factory.define :post do |f|
f.title 'Some post'
f.content 'Lorem ipsum'
f.html_content '<p>Lorem ipsum</p>'
f.sequence(:permalink) { |n| "some-post-#{n}" }
f.published_at Time.now
end
Factory.define :tag do |f|
f.sequence(:name) { |n| "tag-#{n}" }
en... | fad5488dc672c5906cef25c9ba5864ed1e97f98e | [
"Ruby"
] | 11 | Ruby | abbott/samsoff.es | 4fe87ec8f71d4540e881aa79a54a5df72861e39f | bc98c6587139a1910b07c4de24a47bd71cd4294b |
refs/heads/master | <file_sep>#!/usr/bin/env ruby
# frozen_string_literal: true
CHANGE_CMD = <<~CMD
Please change the CPU governor:
$ for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do [ -f $CPUFREQ ] || continue; echo -n performance > $CPUFREQ; done
CMD
def check_perf
puts 'Checking CPU governor of all CPU... | 36f145de2bd073c04dc55038b0d2bafe456f875a | [
"Ruby"
] | 1 | Ruby | nim-viet/benchmarks | cd5c46f119085b4ff79c5369596b662bb43bc6a0 | bd7d80c0c19db4fef30db72428917343804a721a |
refs/heads/master | <file_sep># flask-reg-react
Building a flask registration app with react https://www.youtube.com/watch?v=BNdIOnn-wik
<file_sep>from flask import Flask, jsonify, json, request
import sqlite3
from datetime import datetime
from flask_cors import CORS
from flask_bcrypt import Bcrypt
from flask_jwt_extended import JWTManage... | ef28fe2d74620591aef91cb46ff41f44923bbeb4 | [
"Markdown",
"Python"
] | 2 | Markdown | eadaradhiraj/flask-reg-react | d245953bbdff52066669432a3edb63ad9b1d704a | c79d903328962a2b7e06b18ae890c9b8fdad3caf |
refs/heads/master | <file_sep>using System;
using System.IO;
using System.Xml;
using System.Xml.Serialization;
namespace updater
{
[Serializable]
public class XmlSettings
{
public static string filePath = "Settings.xml";
[XmlElement]
public string CurrentVersion { get; set; }
[XmlElement]
... | 684a54f92ee6c6457119f420418af5f3436a53f7 | [
"C#"
] | 5 | C# | alejandro7x/CalipsoSense | 581458a23ba5de9c22f94c68d299475205ecc012 | 63245dcfa9ac358d17df316b5fa6189903a11842 |
refs/heads/main | <file_sep>package engine
import org.w3c.dom.CanvasRenderingContext2D
data class Vector2d(val x: Int, val y: Int)
data class Rect(val position: Vector2d, val width: Int, val height: Int)<file_sep>package engine
import kotlinx.browser.window
import org.w3c.dom.Image
import kotlin.js.Promise
class Game(val client: Cli... | 9be89711dc469a700f08704c2224d8e301521112 | [
"Kotlin"
] | 9 | Kotlin | mistersourcerer/snakeroo | d1ddd90649a3c49f3c85726ff971bd6af0e45b5d | d987460a6f62796f5e33dac1d932ffd4578523a8 |
refs/heads/master | <file_sep>
local function test1()
c(2, 2, 'X')
print(check_status())
play_round(1, 1, '0')
print(check_status())
play_round(1, 2, 'X')
print(check_status())
play_round(1, 3, '0')
print(check_status())
play_round(2, 1, 'X')
print(check_status())
play_round(2, 3, '0')
print(check_status())
play_round(3... | 343bd092cb69712f3aeab93ad282285e947fb764 | [
"Lua"
] | 2 | Lua | capr/xsizero | 2f42126568c678f702e5472a7de63c1b1bedd9f2 | 9a83a4e363d43d39645503e6a38f3966262aaf56 |
refs/heads/master | <repo_name>wjlafrance/swift-bnclient<file_sep>/Sources/ProtocolEnums.swift
enum PacketIdentifier: UInt8 {
case PING = 0x25
case AUTH_INFO = 0x50
}
enum ProtocolPlatform: UInt32 {
case Windows = 0x49583836 // 'IX86'
case MacOS9 = 0x504d4143 // 'PMAC'
case MacOS10 = 0x584d4143 // 'XMAC'
case... | 6990900967a6a000fa950ceb17128a5faaccd0bb | [
"Swift",
"Java"
] | 4 | Swift | wjlafrance/swift-bnclient | 321a9fb73feee63a17982efa9759cb50185bfe19 | 0e8e955d46ce8e9343881bd6b675672baaffd706 |
refs/heads/master | <file_sep>#文鶴
##書在crane_book.json裡面<file_sep>require 'rest_client'
require 'nokogiri'
require 'json'
require 'iconv'
require 'uri'
require 'capybara'
require_relative 'course.rb'
# 難得寫註解,總該碎碎念。
class Spider
attr_reader :semester_list, :courses_list, :query_url, :result_url
include Capybara::DSL
def initialize
... | db4a61f2a8a75c19e259379a5684c1ce9213353f | [
"Markdown",
"Ruby"
] | 3 | Markdown | yoxisem544/crane_books | 34b8d3a72b6685cdd24d7741ff00d46f686f9a1b | 48f4a94109b8de0a0df89c9281d9cee2fe07b855 |
refs/heads/master | <repo_name>bgkriegel/iua-so-2015<file_sep>/Entregas/0-Soluciones/P2/e3.c
#include <stdio.h>
#include <unistd.h>
int main() {
int pid, ppid;
pid = fork();
pid = getpid();
ppid = getppid();
printf("PID: %d - PPID: %d\n", pid, ppid);
return 0;
}
<file_sep>/Recursos/README.md
Material de ... | dcaa90b8ad339d47393870789750bfe68167dd39 | [
"Markdown",
"C"
] | 85 | C | bgkriegel/iua-so-2015 | 80bec7bbed7adcf491bec67136ae0536a1824bb0 | 6131ff9ba5ef04b1047d6d1bf7aef7e0b1fc5c55 |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include <filesystem>
namespace fs = std::filesystem;
void open_file(std::ifstream &config_file, const fs::path &file_path)
{
try
{
config_file.open(file_path.string());
if (!config_file.is_open())
{
throw std::exception();
}
}
catch (cons... | f633d2388348ee3c30a3945ce95f5b03e8f4cccb | [
"Markdown",
"CMake",
"C++"
] | 15 | C++ | evelez7/Turing_Machine | 534b70594e0a258f8637fe4c656360ec990c7635 | 3f1ac97654c7aa67157461b7039a318f24e18cff |
refs/heads/master | <file_sep>import React from 'react';
const WandDetails = (props) => {
if (!props.character) return null
return (
<div>
<h2>{props.character.name}'s Wand:</h2>
<ul>
<li>Wood: {props.character.wand.wood}</li>
<li>Core: {props.character.wand.core}</li>
<li>Length: {props.character.wand.l... | a798d3507e595288521087c69e6f3139252889dc | [
"JavaScript"
] | 3 | JavaScript | this-is-simon/harry_potter_wands | 0a64b2ed8bf570e271365e545014bacfa33a8f96 | c2b61284fe21fda8a8f59c1278174760f60559e3 |
refs/heads/master | <repo_name>Kitamuro/C-<file_sep>/Project2/Source.cpp
// ConsoleApplication1.cpp: определяет точку входа для консольного приложения.
//
#include <iostream>
#include <conio.h>
#include <thread>
#include <Windows.h>
#include <vector>
#include <chrono>
class Point {
public:
int x, y;
Point(int x, int y) {
this->x = x;... | 93b322064b1798b474b860c88422c7b07f58b96a | [
"C++"
] | 1 | C++ | Kitamuro/C- | f8a4e2d4d7479355c98b57c26320c384aa6cc259 | edcbbebbfa077647fb6630554b2813a06cee3989 |
refs/heads/master | <file_sep>const hideNotificationCenter = () => {
document.getElementById('nc').style.display = "none";
}
document.getElementById('close-button').onclick = function() {
hideNotificationCenter();
}
window.onkeyup = key => {
switch (key.keyCode) {
case 37: {
plusIndex(-1);
... | 86e141b258b0ba6698eceb4a569b610ad7582927 | [
"JavaScript"
] | 1 | JavaScript | Tarsupon/JsNotification | 6a80d389ecca2fd1c81cc6ff454d5d5e10b12381 | 71e490a672729754c6d6fb7dc263b2dbc8d046f9 |
refs/heads/master | <file_sep>path.variable.maven_repository=/Users/jonahss/.m2/repository
jdk.home.android_api_18_platform=/Users/jonahss/Android/adt-bundle-mac-x86_64-20131030/sdk
javac2.instrumentation.includeJavaRuntime=false<file_sep>'use strict'
let path = require('path');
function TwitterStream () {
var self = this;
this.ini... | fe00b46bb5cd6c55846774c2b3d9c1315633c772 | [
"JavaScript",
"Markdown",
"INI",
"Java",
"Python",
"Shell"
] | 10 | INI | classam/5rat | 3470e7d00426d4bb014f8964a9b5225e386e6d9d | b401f0d0113de38cd8ceee3283e9887466c4ff21 |
refs/heads/master | <repo_name>ShotaOki/NLPDate.github.io<file_sep>/_includes/usageext-howto-date.md
<!-- Start -->
{% capture my_include %}
# How to, get date
## 今日の時間を取る
「今日」と書くと日付だけが設定され、「現在」と書くと日付と時間が設定されます。
```javascript
// 「今日」と書くと、今日の00:00:00が取得できます
let date_object = NLPDate("今日");
// 「現在」と書くと、今日の現在時刻が取得できます
let now_object = N... | c9a5c6c1a36b5323c8b4bc4b5e87bf6545b152eb | [
"Markdown",
"JavaScript",
"HTML"
] | 10 | Markdown | ShotaOki/NLPDate.github.io | fa0473909049426153b258007503baca767395e9 | 37137909be815c1b8a8f6702f7a54b958a418e02 |
refs/heads/master | <repo_name>AlbertChomicz/PRO1_S15245<file_sep>/API_PIZZA/API_PIZZA/Controllers/Pizza_CompositionController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using API_PIZZA.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityF... | b4a249f483bd97d639edd906b9e82ff81d4cb303 | [
"C#",
"SQL"
] | 41 | C# | AlbertChomicz/PRO1_S15245 | 452beee1e367dde932aa94d8a67c223e5c375685 | 873e8fbccc1ed833df6ae5a75fca3fd2361166f5 |
refs/heads/master | <file_sep>Daily Trade Reporting Engine
The daily trade reporting engine is intended to process instructions related to various customers. The input instructions are read from the sample txt file, with the
default format and output is the report for :
a. Amount in USD settled incoming everyday
b. Amount in USD settled ... | 4989630698b73960a3f28ad4e2e41993d167c2f5 | [
"Java",
"Text"
] | 4 | Text | AmritaSawhney/DailyTradeReportingEngine | 3bae5fc05d4a789571262820e2489522fe1d0927 | 3e05176ab3d0da619cafc21a20f82ef6d07c15f4 |
refs/heads/main | <file_sep># numcpp-dev
numpy C++ development tutorial
<file_sep>#define PY_SSIZE_T_CLEAN
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <Python.h>
#include <numpy/ndarraytypes.h>
#include <numpy/arrayobject.h>
#include <set>
#include <random>
// typedef unsigned int uint;
static auto engine = std::defaul... | 354fbc7e359e0f7d0cc8a69aa9913b789977d321 | [
"Markdown",
"C++"
] | 4 | Markdown | sonogoto/numcpp-dev | dbd06837709c1668b07621cd5269ff3cc39419a8 | 449c9c9d945cbed1ebbe184cbe785f35234f75a0 |
refs/heads/master | <repo_name>Ekito/mapMyCost-server<file_sep>/app/models/MappingInfo.java
package models;
/**
* The form sent by the client to map a transaction to a picture and a location.
*
* @author ndeverge
*
*/
public class MappingInfo {
public String id;
public float longitude;
public float latitude;
// TODO picture... | 3b8c30d54bf77cad8dca33ef8adae31ae5bc8a00 | [
"Java"
] | 6 | Java | Ekito/mapMyCost-server | 3fe433586316bad8e1654397c86723c425837fec | e5062e36fe717ca831c3688f3df6e8e51d434885 |
refs/heads/master | <file_sep>from tkinter import *
root = Tk()
canvas = Canvas(root, width=500, height = 300)
canvas.pack()
blackline = canvas.create_line(0,0,200,50)
redLine = canvas.create_line(0,100,200,50, fill="red")
greenbox = canvas.create_rectangle(25,25,120,60, fill="green")
root.mainloop()<file_sep>from tkinter import *
impor... | 8b5df4b0ab2a448d33bdfb3db9480e904fc694a0 | [
"Python"
] | 8 | Python | misrapk/tkinter-Tutorials | ef04bb71e2eb02885e5a36dc63bb5a3f9b6ebfa4 | bd2179824060a9c65f44e254f4843cf767931fcf |
refs/heads/master | <repo_name>hoangngk/AuthNodeJs<file_sep>/config/database.js
// config/database.js
module.exports = {
'url': 'mongodb://root:root@localhost:27017/auth'
} | 4abf3f9ab2dbf6964de96ce4181d0be836cb9135 | [
"JavaScript"
] | 1 | JavaScript | hoangngk/AuthNodeJs | 29392efd16639b43798babdf23a1fb912180ba39 | e6f1be5b1398fb9ef41349e894d292b819371cdc |
refs/heads/master | <repo_name>TechEducationPlusPlus/Admin-Panel<file_sep>/ss/status.php
<?php
echo $_COOKIE["session_id"];
echo $_COOKIE["username"];
?>
<file_sep>/judge/get_columns.php
<?php
include_once ($_SERVER["DOCUMENT_ROOT"] . "/mysql.php");
$dbname = "judge";
$conn = new MySQL ($dbname);
$result = $conn->query($sql = "S... | 82b1906807ce2d8879e7179608a10a0036eb7fda | [
"PHP"
] | 12 | PHP | TechEducationPlusPlus/Admin-Panel | 01b23170adb73eb2f366fcf2b3534482f8700e62 | d8e0c669a2e5b67e09150e6b5382f17e3d2e6f83 |
refs/heads/master | <repo_name>jarronbowman/DataViz<file_sep>/Class notes/week-01-notes.Rmd
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
getwd()
library(devtools)
install.package... | 4f90b61d0b9845aef63754b3a7a09ca7e168a56d | [
"R",
"RMarkdown"
] | 2 | RMarkdown | jarronbowman/DataViz | 6ab494d716966cec5099b8800aa16f87d3f76d62 | eccba23e22b81164f33b9faed6bde868d7ec6271 |
refs/heads/master | <file_sep>
cd SLT/ects-1.1.30-x86_64-linux-rel-b38fb8122
echo -n "enter Mark ID:"
read ID
echo "Mark ID=$ID" | tee -a uuid_mark.txt
uuid=`./efsmt -otp uuid | grep "UUID"`
echo "$uuid" | tee -a uuid_mark.txt
creat the dev branch
Creating a new branch is quick and simple
| 0dfd22c9b13c786b97602bfdc5e06597d628c77e | [
"Shell"
] | 1 | Shell | GuanWoW/learngit | 6d24bda482d92639b371e3a154ff1ddbd9addab4 | 596e5825975a8ab4d3ff8e4264cb03d5590605d2 |
refs/heads/master | <file_sep>module AnimalQuiz
module ConsoleIO
private
def read_input
gets.chomp
end
def print_output(output)
puts(output)
end
end
end<file_sep>require 'spec_helper'
describe AnimalQuiz do
it 'has a version number' do
expect(AnimalQuiz::VERSION).not_to be nil
end
end
<file... | 1105de9dadd4c24eea0202753fbb4008f3d20bf9 | [
"Markdown",
"Ruby"
] | 13 | Ruby | asehra/animal-quiz | 2cb98cb5cd82b76830e0e42deaec1100f5fad4ce | 3e518c57cfe5c7b3d499d71503d71db140367597 |
refs/heads/master | <repo_name>SmartBeananana/Password-Vault<file_sep>/docs/html/search/functions_4.js
var searchData=
[
['removedata',['removeData',['../HashTableAPI_8h.html#a18cc8f1a1a49cf9f0db185d9d44e3d40',1,'HashTableAPI.h']]]
];
<file_sep>/src/HashTableImpl.c
/**
* @file HashTableImpl.c
* @author <NAME>
* @date June 2018
* @br... | 30ca7ce2dc41815480589e1c032683e8c08b89ad | [
"JavaScript",
"C",
"Makefile"
] | 6 | JavaScript | SmartBeananana/Password-Vault | d099f27f05e53372d588152c9412d6faf5c18c12 | 95653812bfdaee4550ddcd5111d54a388f5005ef |
refs/heads/master | <repo_name>chefache/MyRecipes<file_sep>/Services/MyRecipes.Services.Data/RecipersService.cs
namespace MyRecipes.Services.Data
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using MyReci... | e541b014c2323b92d96a862f6f6133aaf8b58359 | [
"C#"
] | 14 | C# | chefache/MyRecipes | 01cb9f0392987adaaae1a77470e01c13d57c022e | ba8c6dfc3c1af056d250c3e8b1a50712f6fe9993 |
refs/heads/master | <repo_name>rogerhutchings/bpho<file_sep>/contentful/src/news.js
import Handlebars from 'handlebars';
import fsp from 'fs-promise';
import path from 'path';
import * as helpers from './helpers';
import config from './config';
import logger from './logger';
const getNews = (client) => {
logger.info('Downloading news... | 821c5ff15a0ef690e0bb48933a95c391acd084c8 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | rogerhutchings/bpho | 445ba47d2ab531e7029b500397f469c779a4c72a | 5a0ba4c7cb5675cf47fc3877e44c0eeb5c4a1535 |
refs/heads/master | <repo_name>deshetti/project-documentation<file_sep>/src/main/java/com/factly/documentation/repository/package-info.java
/**
* Spring Data JPA repositories.
*/
package com.factly.documentation.repository;
<file_sep>/src/main/java/com/factly/documentation/service/mapper/package-info.java
/**
* MapStruct mappers for ma... | 5e126524edfc748ee454d2d0a8b5f0c977d54385 | [
"Java"
] | 3 | Java | deshetti/project-documentation | 00c073ec41c5590fa74dee049e6bb162a3b0f15a | f66a1dabc86aac96beb3bfa97345314bc26f9506 |
refs/heads/master | <repo_name>ianwitherow/WeddingInvites<file_sep>/rsvp-app/server/model/contacts.js
var mongoose = require("mongoose");
var Contact = mongoose.model("Contact", contactSchema);
exports.GetContact = function GetContact(email, callback)
{
Contact.findOne({ email: email }, function(err, contact)
{
callback(err, contact)... | 29194a26d8225a92b698ba3f2240d0cfd3363cfe | [
"JavaScript"
] | 6 | JavaScript | ianwitherow/WeddingInvites | 23aa9fa97e2575bc87476cc4949252041443bb8c | 82fec6c4cad051cbe193b1ff6a7cd905dba42337 |
refs/heads/master | <file_sep>package com.pet_space.models.essences;
public enum StateFriend {
REQUESTED, REJECTED, APPROVED
}
<file_sep>package com.pet_space.models;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Objects;
import java.util.UUID;
public class Message {
private UUID messageId = UUID.rando... | 105e4ec1abe03326f5958fc664de9bbd771c818f | [
"SQL",
"Markdown",
"JavaScript",
"Maven POM",
"INI",
"Java"
] | 24 | Java | WeDism/PetSpace | 9bdc6d84cd5d765038bce68c25b1bdf9f238a25a | 128475209618ad60501cec7bf09a9d85b9b33d79 |
refs/heads/main | <file_sep>import taskmanager.ProcessPriority;
import taskmanager.Process;
import taskmanager.TaskManager;
import taskmanager.TaskManagerFIFO;
public class MainFifo {
public static void main(String[] args) {
TaskManager taskManagerFifo = TaskManagerFIFO.getInstance(3);
Process chrome = new Process(... | 9f5d1b606286a5971bbf1825a82914bbb25968e7 | [
"Java"
] | 3 | Java | aureliavoicu/task_manager | d1ad9c7996407dce3f6ae8d13a62f40352b66c3b | a2db08ffbd7cc0c60d2bc9d47fd368e4f90a3c21 |
refs/heads/master | <file_sep>import { Component } from '@angular/core';
import {CountryService} from './services/country.service';
import {UserService} from './services/user.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title =... | 268974237b56df05bf669ad1335f78758cbb7550 | [
"TypeScript"
] | 10 | TypeScript | AdrianZelada/ng-providers-database | fbee4f48c84700a554c0fa5e9effc45a1d05f952 | cdebed0398beb199fa1505da67d70e50a19c7641 |
refs/heads/main | <file_sep>#el comienzo en python
#print ("hello fucking world")
#PRACTICA 1 DETERMINAR SI UN NUMERO ES PAR O IMPAR
#numero = int(input("Ingresa un numero : "))
#if numero % 2 == 0:
# print("el numero es par")
# exit(0)
#print("el numero es impar")
#PRACTICA 2 - determina si un numero es primo:
#numero = int... | 7dbfc795cca369440aef9af17e6ded0d6ecf96c5 | [
"Python"
] | 3 | Python | felixcicilia/python-practica-primos | 2d933d6f31fe13a6ce793a3ea0ecce08a55cbc0e | d6cf0a2a79f99202cd23e8ebc14fde58a2b9ac76 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import logo from '../logo.svg';
import '../App.css';
import Person from '../component/person';
class App extends Component {
constructor(props) {
super(props);
this.state = {
father: '<NAME>',
show: true
}
}
changeFather = () => {
c... | 8bc4d994a61e6f5c7892000816a9f424f3ddcfd8 | [
"JavaScript"
] | 1 | JavaScript | Ianpig/interviewTest | 0b35dc9293f14a9e05915024d925e683fb62ea08 | 6ee26ed9f4d2341da6fe318552d7656632b2827b |
refs/heads/main | <repo_name>TF3sun/js_study<file_sep>/script.js
function myFunction() {
document.getElementById("demo").innerHTML = "first func";
}
| 387e4f100e70a2f206a021653c3350a884ff7a99 | [
"JavaScript"
] | 1 | JavaScript | TF3sun/js_study | eb216da894663bf3aeadcd0c2d38516c4016802b | d7fa8432705d3760c7b09b0eaead5e4d54b223cc |
refs/heads/master | <file_sep># Python section of bootcamp. Python, Python OOP, Flask, Django.
Python stack in bootcamp
<file_sep>""" The owner of a store wants a program to track products. Create a product class to fill the following requirements
Attributes: Price, Item Name, Weight, Brand, Status: default "for sale"
Methods: -Sell: ch... | fad63dc24d71acdf3803d056a7a3bfd4beac4e6a | [
"Markdown",
"Python"
] | 28 | Markdown | 4Empyre/Bootcamp-Python | a63cec1b98ec78d1480d5badf87bfa319a5e2f4f | 180d0bc64490bc8096110c26dbf3d5d55a15dc71 |
refs/heads/master | <repo_name>FalconDylan/Project<file_sep>/Schedule.h
#ifndef SCHEDULE_H
#define SCHEDULE_H
#pragma once
#include <string>
using namespace std;
class Schedule
{
//Private Variables
private:
char stop;
string schedulingPlan;
//Public Methods
public:
//Methods for reading excel files
v... | cf1d915d1f3f5b0a043861a0b25f15d3fca6b630 | [
"C++"
] | 1 | C++ | FalconDylan/Project | c4b6e9aac3408e0c83d26c474fa555968274d2bb | 46a7142ef9728d0fb92055191b872da4be909786 |
refs/heads/master | <file_sep># BNP-Paribas-Insurance-Claims-Project
This project is for predicting one of the two categories of the claim based on the given parameters.
<file_sep>
############# user defined functions
pmiss2 = function(x){sum(is.na(x))}
replace_missing = function(x){
if(is.na(x))
x = -999
}
#########... | d9cffcff11eef8fa40d1a201e95c0dc428273a73 | [
"Markdown",
"R"
] | 2 | Markdown | shashank102005/BNP-Paribas-Insurance-Claims-Project | 7371ce555e5bf1215dfd3826e0053cdf37d143d2 | f5d7fecd1f366994b511e2a32ddd70f8d320e729 |
refs/heads/dev | <repo_name>Rob4579/HomeCalendar<file_sep>/src/main/resources/static/js/add.js
$(function() {
$('#bgColor').colorpicker();
$('#txtColor').colorpicker();
$('#startDate').datetimepicker();
$('#endDate').datetimepicker();
});<file_sep>/src/main/resources/static/js/calendar.js
$(function() {
var testCa... | 3237369d3edb8d956e2b8663cd25c8d972871e0f | [
"JavaScript",
"Java",
"INI"
] | 4 | JavaScript | Rob4579/HomeCalendar | 6e86ec904df7f5056d0fbf8dd1d523bedfa5a246 | 5cb035c401911c61fea7569fd6afc32d09911281 |
refs/heads/master | <file_sep>import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
public class SetOperations {
public static void main(String[] args) {
// TODO Auto-generated method stub
Set<String> colourset1 = new LinkedHashS... | 266d49ef0c667febf86c57a9e53bfcfbe794e4e3 | [
"Java"
] | 6 | Java | viradia2/Dexter | 0a585d1bdb95d66549f45795eb1c659c78610b30 | 3d70aea7cffd1284ac0053936c6596404017e134 |
refs/heads/master | <file_sep>print ('hello world')
a=1
c=2
b=2
| 5b0d8d42bc45eee8b0a8164695fdc016ad0d1414 | [
"Python"
] | 1 | Python | lyh0715/text | 8f20c6cc49515741277e051a6ffce88648ea6d46 | 7aa25c1b2d801d9d930f02aa8c357c0e462bda86 |
refs/heads/gh-pages | <repo_name>jacksonhenry3/Puzzle_Game<file_sep>/js/move.js
function domove(i,j,dir,inv = false) {
if (!sound_start) {
init_sound()
sound_start = true
}
if (i==6||i==-1) {return};
if (j==6||j==-1) {return};
board[i][j].flip(dir,inv)
if (dir == 'right') {setTimeout(function(){move(i-1,j,"right",inv)},100*Ma... | dcfd51e69e060c595b0d17477c27f42f77f38aee | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jacksonhenry3/Puzzle_Game | ef9f9939f90852c028ecd1e5162ef59b8026db37 | 0fb4ed00affb7eb0d06f19b9e1239d21f4b3b814 |
refs/heads/1 | <file_sep><?php
namespace SilverStripe\Admin\Tests;
use SilverStripe\Admin\AdminRootController;
use SilverStripe\Admin\CMSMenu;
use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Assets\File;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Manifest\ModuleLoader;
use... | ba70972bd1a2c367321936891b75274208fda376 | [
"JavaScript",
"Markdown",
"PHP"
] | 60 | PHP | mooror/silverstripe-admin | 69e830e569446f8a9e079619f436d08e9346720c | 92b967b8816f3461aff99ec22461be65cb577f04 |
refs/heads/master | <repo_name>cyroul82/Exo9<file_sep>/ClassesMetiers/MSections.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
namespace Exo9
{
/// <summary>
/// classe qui gère la collection des sections
/// </summary>
public class MSections
{
... | 840047e732bd004cdbadea8f9ae809b5a580a0e9 | [
"C#"
] | 8 | C# | cyroul82/Exo9 | 06e52d5c5873bf28947dcebc5ccb046e3cb80979 | f2cd71a3dbb7b731449c6ce78e0cd02c40188b4e |
refs/heads/master | <repo_name>00120717/Simu_Labo3_00120717<file_sep>/main.cpp
/*
Se trabajo en el Codigo base realizado por el grupo de instructores de la materia
de Tecnicas de Simulacion por computadoras.
Derechos a los respectivos creadores del codigo
*/
#include <iostream>
#include "math_tools.h"
#include "classes.h"
#include "too... | d39bd3e278316fb5cb7e563e0e8ca35147919244 | [
"C++"
] | 1 | C++ | 00120717/Simu_Labo3_00120717 | 3876485172916b9e2589804a4cab8018284e50c8 | e31bc1ddc523b2f9e042dea6c48919df1bfe62c9 |
refs/heads/master | <file_sep><?php
if(isset($_POST['login'])){
require "db.inc.php";
//Set Variables
$email = test_input($_POST['email']);
$password = test_input($_POST['pwd']);
if (empty($email) || empty($password)) {
header("Location: ../index.php?EmptyFileds");
exit();
} else{
//Sql ... | 07f377aa19209c6cbcb4060be5043d69ec88ef43 | [
"PHP"
] | 5 | PHP | DanteFrank/Chat-App | b534e9940b81b424eb522fec27dc4d91b134dd9c | 143046c909838ac78ffa9723b8ed5f4e227eab65 |
refs/heads/master | <file_sep>package template
type baseTemplate struct {
}
func (btmpl baseTemplate) pkgdbmysqlTemplate() string {
return `package db
import (
"database/sql"
"log"
_ "github.com/go-sql-driver/mysql"
)
var mysqldb *sql.DB
//user:password@tcp(127.0.0.1:3306)/goslayer_db?charset=utf8
const mysqlconnstring string = ... | 6c4ce6fd4abde7a87e2a3365e7f1c4e45fa7bed6 | [
"Markdown",
"Go"
] | 13 | Go | hansli/goslayer | 64d8f2536db3a6902737f5a07065f6cec7107f0e | 61e6ee6015444da3008874baa3b13ecd9db0f154 |
refs/heads/main | <file_sep>// <NAME>
// PRN - 20070122091
// Batch - CS(B2)
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
#include<time.h>
struct candidate{
char name[50];
char symbol[1];
int votes;
};
//print the maximum
int max(int a,int b)
{
return a>b? a:b;
... | ce708119db26518eba69263f36acfc12a5cce6a0 | [
"C"
] | 1 | C | omiiii21/Electronic-Voting-Machine | a3d25405b822d62f95b3c4567f208a6370be47a1 | 53eaca0763ed465cd823f4add1e35962635a7404 |
refs/heads/master | <repo_name>longshine/calibre-web<file_sep>/src/main/java/lx/calibre/web/config/RedirectLoginUrlAuthenticationEntryPoint.java
package lx.calibre.web.config;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.core.AuthenticationException;
imp... | 84a7b9a4b7fb3a47b72cbfa382238bc35a2575eb | [
"Markdown",
"Java",
"Maven POM"
] | 23 | Java | longshine/calibre-web | 91974c049a320320dadf854b0f290c42983e6070 | 7aaa7c1118ab08377cd3630e6d6fa6bab889913d |
refs/heads/master | <repo_name>sdevine188/android_balloon_tap<file_sep>/main.lua
-----------------------------------------------------------------------------------------
--
-- main.lua
--
-----------------------------------------------------------------------------------------
-- create tap counter
local tapCount = 0
-- set background ... | 97bfde086ff6509cefdeecd82099353910c99be3 | [
"Lua"
] | 1 | Lua | sdevine188/android_balloon_tap | cbda8f9fb090c0d03c7801c6fd78724665759c30 | a76063c0ff9823469f76cb3c8ea9a8117eeed42e |
refs/heads/main | <file_sep><h1 align="center">
山东打卡填表保洁职业技术学院-易班自动化
<br>
</h1>
上有填表抗疫 下有shell糊弄傻逼
自动生成数据并上报 解放你的宝贵时间——知名打工人FlyIWind
git clone或下载zip本项目后,修改main.py 搜索#TODO按照注释修改即可。
2021.1.10初代版本
2021.1.10 Merge Xizi's Pull Request 增加延时处理 优化脚本结构
2021.2.18更新
适配保洁职业技术学院全新表单
原作者looyeagee迫于压力已经将项目删除,从csdn到bilibili 完全不留痕迹
```sh... | 507d1176a88839d66eaaaa4a1811df8471d155e1 | [
"Markdown",
"Python"
] | 2 | Markdown | 1963077475/RandomFuckSICT | bec9789ed6afe56cdde1eb08c1bb5c39bec79877 | 8588c69af9c6e724951a3503e14b09a6d5e19dd6 |
refs/heads/master | <file_sep># AutoCtags.nvim
##自分用
##### ファイル保存時に ctags 実行
- tags ファイルの名前は "ファイルタイプ".tags ( python なら python.tags )
- ファイルの保存場所は編集しているファイルと同じディレクトリ
- 隠しファイルにもできる (.python.tags 等)
- 隠しディレクトリに保存もできる (.tags/python.tags 等)
- tags ファイルを保存したくないファイルタイプを指定可能
- 保存は非同期
##### ファイル読み込み時に set tags="tags ファイル" を実行
- lcd %:p:h しちゃ... | 5975b21674fd50381d8c3e17463d65b3eb94dc83 | [
"Markdown",
"Python"
] | 2 | Markdown | fujinori84/AutoCtags.nvim | e79c3fb18c6e87a685848ace6363f61fadb81436 | 74dfef94c771c199f742040a07f933500d474448 |
refs/heads/master | <repo_name>karenpinto1602/Sign_Up_Authentication<file_sep>/app/src/main/java/com/example/signuppage/SignUpDetails.java
package com.example.signuppage;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
impo... | 3d1dbe9236913c21d5c68a6e8f533a6c8c8cf609 | [
"Java"
] | 1 | Java | karenpinto1602/Sign_Up_Authentication | 819b14f16ec809aa11408f922acd6d6aee545ce2 | 9f741a956cf3554902836167b69d36657d0a1370 |
refs/heads/master | <repo_name>ufukdogan92/KNN<file_sep>/knn.php
<?php
include("readCSV.php");
//unset($rows[0]); // title elamanları diziden silindi
function elemanEkle($file,$x,$y,$k){
$rows = readCSV($file);
$eleman[0]=$x;
$eleman[1]=$y;
$uzakliklar=array();
foreach($rows as $key => $row){
if($key=... | c8000029d703a380a60da4cbd32c064eddfd0b4d | [
"Markdown",
"PHP"
] | 2 | PHP | ufukdogan92/KNN | 23fec416c5a9c87c3aa00c71587502f9f30ce0ea | 52b6a61291d7e005ba2b229ba3715aa327cee429 |
refs/heads/master | <file_sep>use fountaincode::soliton::Soliton;
use rand::{distributions::Distribution, rngs::StdRng, SeedableRng};
#[test]
fn soliton_compare_test() {
// Once we have done enough iterations,
// The random numbers getting generated by RobustSoliton must total higher than IdealSoliton
// Simply because IdealS... | 5be661c098dd40ae2235ec12786d808df22bb1db | [
"TOML",
"Rust"
] | 13 | Rust | vihu/fountain | aebeeb09b327e2d3105da926cb64d845bfc8ef2c | 57042aa738096e5d030514710df947714d50e812 |
refs/heads/master | <repo_name>hejianhua/take_food<file_sep>/src/xc/take/service/impl/RoleVoServiceImpl.java
package xc.take.service.impl;
import java.util.List;
import xc.take.dao.IRoleVoDao;
import xc.take.dao.impl.RoleVoDaoImpl;
import xc.take.domain.RoleVo;
import xc.take.service.IRoleVoService;
public class RoleVoServiceI... | b4330fc7bb21900b4edba5748d7a109017115fd2 | [
"Java"
] | 28 | Java | hejianhua/take_food | f8f420a7013cdb412ee7e93ed7f8f7c21c6ee7e3 | 141838b7e8ca60421d6462b7bf7022ae3d366a03 |
refs/heads/master | <repo_name>winokurow/randomTasks<file_sep>/components/Backup.js
import React, { useState, useCallback } from 'react';
import { useDispatch, useSelector, shallowEqual } from "react-redux";
import { StyleSheet, Text, View, Button, Icon, TouchableOpacity } from 'react-native';
import { Header, Left } from 'react-native-el... | 030315e4814bf76a353878722971a2e351855709 | [
"JavaScript"
] | 6 | JavaScript | winokurow/randomTasks | 0755736bbb2a350af681d9e5e2f50bb21d7f73d0 | 9954e04f701b5012c735edf1ea80aca1841e0125 |
refs/heads/master | <repo_name>sstraw/csci201-Group<file_sep>/csci201-Group-client/src/client/WaitingRoomGUI.java
package client;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.KeyEventDispatcher;
import ... | 8ab59532a8c41f343583142ebea2dbbb4fef92a9 | [
"Markdown",
"Java"
] | 15 | Java | sstraw/csci201-Group | 22ff88259206d752bca7fa63e0e842a73446c5e3 | d75fb03e3ff9d46c132933c8687052bc464947cb |
refs/heads/main | <repo_name>vuvanthanh2311/WebBanGiay<file_sep>/src/app/controllers/ProductController.js
const Product = require('../modules/Product');
const Comment = require('../modules/Comment');
const User = require('../modules/Users');
const { MongooseObject } = require('../../util/mongoose');
const { mutipleMongooseObject } = req... | f1ccd870d9b7da434851561f84c7f18d5b237087 | [
"JavaScript"
] | 10 | JavaScript | vuvanthanh2311/WebBanGiay | 3e23e2dc2a349c91b4806d1a0ff8f10097200796 | 4b0f375cc4cac30efc4832fede74257b3ce229a3 |
refs/heads/master | <file_sep> getData();
async function getData() {
const response = await fetch('/api');
const data = await response.json();
for (item of data) {
const root = document.createElement('p');
const comment = document.createElement('div');
const image = document.createElement(... | aa4e0b66d21d2aff5a5bd7bb842d4af797deda4a | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Little-Bro/drawing_app | 6a6fc5574c2ed4b7a15126a365423cb24ffacb1b | 67850537f11f305963d568114fd0fac35e3d9e5e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.