branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>erwingaitano/FolderStructuresTemplates<file_sep>/jquery/plugins/toggler/jquery.toggler.2.js
/* eslint prefer-arrow-callback: 0, prefer-template: 0, no-var: 0, object-shorthand: 0 */
/* global define */
/*
* jQuery lightweight plugin boilerplate
* Original author: @ajpiano
* Further changes, comments: @ad... | 1e41a220b6064a689d5f59be5d2166fa0fe97d15 | [
"JavaScript",
"Markdown"
] | 17 | JavaScript | erwingaitano/FolderStructuresTemplates | 52e048ccd47648d951a1a5b4134ab2ee78b16c35 | e7f92a4a56e26888cd4daac7d5ebac7cfcf4c1ae |
refs/heads/master | <file_sep>Do like the template:
<code>
import psycopg2
def cridentials_test(user, password):
connection = psycopg2.connect(user="db_admin",
password="<PASSWORD>",
host="localhost",
port="5432",database="Test_1")
# TODO
return something
</code>
https://github.com/SafariGit... | 3bf649ce32fabb2243386eba73b216d7f3764d93 | [
"Markdown",
"Python"
] | 14 | Markdown | SafariGit/sw_back | f81f60486dcdf83916075e42b27a0a294295b8ec | 5ada41c2ea58dbc363238bee4500d22811ba292f |
refs/heads/master | <repo_name>avano/lastpass-cli-wrapper<file_sep>/README.md
# Something-like-LastPass-extention-but-in-bash
a.k.a. lastpass-cli-wrapper
## What?
Allows you to input your passwords using xclip and xdotool and save your passwords in lastpass using [lastpass-cli](https://github.com/lastpass/lastpass-cli). In case of mult... | 9875365557f8625c9f7e2d3de1820deb66461b3f | [
"Markdown",
"Python",
"Shell"
] | 3 | Markdown | avano/lastpass-cli-wrapper | 72fcff4de580ca6aa6ad48c45cacc3ce0adb3dc7 | 84ff536b8e3391ba84882a9a61e7fe0dcb313e7b |
refs/heads/master | <repo_name>Neim-z-young/Learning-spring-in-action<file_sep>/Chapter_05/Spittr/src/main/java/spittr/web/WebConfig.java
package spittr.web;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import ... | 10fe314c70b8a392d2c6d7e497d9bca613a55fcb | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 7 | Java | Neim-z-young/Learning-spring-in-action | a968bee4724e343e155038bcace1d58c714bf5b2 | 2f2c66351b5344765594fdb1462a246fe9f593d0 |
refs/heads/main | <file_sep># python_questions_stuff
personal ideas about some questions found at interviews
<file_sep>class fox():
def __init__(self, ):
self.cache = { 2: 2, 1: 1, 0: 1 }
def climb_up(self,n):
if n in self.cache:
return self.cache[n]
self.cache[n] = self.climb_up(n-1) ... | a0d32a52fc5ce3e6d47e32208e5ae4c23dede3e0 | [
"Markdown",
"Python"
] | 2 | Markdown | sp3cni/python_questions_stuff | b746cc62cc43ee55c6f8c2ac9d38f52d20318b4e | a0e6530781dbe0cb9abf6208c71da77c2c6f68c9 |
refs/heads/main | <repo_name>shi85/Notes_APP<file_sep>/script.js
showNotes(); //Calling this function here so that when our page loads all added notes will be there....
let button = document.querySelector('.btn');
button.addEventListener('click', addNote);
//Function to add notes to localStorage....
function addNote() {
let you... | 4a2eab4e8130fc90393d4d854fd95da1362b48fc | [
"JavaScript"
] | 1 | JavaScript | shi85/Notes_APP | e9a8f9678c013ad1a1dc358ff979b805e1b28585 | e2ea21a18121dce97d6aec29e640c0b9e979bebe |
refs/heads/master | <repo_name>MeatAss/PixelWar<file_sep>/src/main/java/com/PixelWar/domain/Lobby.java
package com.PixelWar.domain;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name= "lobbies")
public class Lobby {
publ... | e755535688dcd813ef931cf1c676f89dbdf0e398 | [
"JavaScript",
"Java"
] | 7 | Java | MeatAss/PixelWar | 9df112e3acf2025071198f2743008fd1c40139ce | d4476060952dcc6cff9c1de836e18c8bf5cccf43 |
refs/heads/master | <repo_name>Rohanchaudhari98/Software-Engineering-Project<file_sep>/db.sql
CREATE TABLE User
(
RollNo VARCHAR(20) NOT NULL,
Accounttype VARCHAR(20) NOT NULL,
Name VARCHAR(25) NOT NULL,
Surname VARCHAR(25) NOT NULL,
MemberCount VARCHAR(25) NOT NULL,
Email VARCHAR(20) NOT NULL,
Password VARCHAR(20) NOT ... | 717af02d8ea23a26b382fefd0001366e45cf7698 | [
"SQL",
"Python",
"Text"
] | 3 | SQL | Rohanchaudhari98/Software-Engineering-Project | c75c24d72ba6cffa2c180222898edab40376c91d | 41930d3ea38c3c988563fe55d50ef3cac3d0727e |
refs/heads/master | <repo_name>rumatoest/jsconnect<file_sep>/setup.py
from distutils.core import setup
setup(
name = 'jsconnect',
version = '0.1.0',
description = 'Django javascript binding for ExtJs (ExtDirect) and others.',
author = '<NAME>',
packages = ['jsconnect',],
url = 'http://code.google.com/p/jsconnect',... | 008d0860a892a0b8ead132c34681a576dfae6d2a | [
"Python"
] | 1 | Python | rumatoest/jsconnect | 29c24fd13c52d6d65231e12970ee0d99d9d34300 | 1895d8d122714d46f6a78567a3c7e2456c835ce6 |
refs/heads/master | <repo_name>Gegcuk/MouseRecorder<file_sep>/Reapeter/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Reapeter
{
public partial clas... | c6ca4aea3fd0e91891ab4013552890c08308001f | [
"C#"
] | 1 | C# | Gegcuk/MouseRecorder | dc4502e8170f2095eed1f2b2ef64f6ead7c49204 | 2649829a7de215739fb751a6bffe07783bfc2a3d |
refs/heads/main | <repo_name>mohammad3020/django-zibal<file_sep>/zibal/models.py
from django.db import models
from django.contrib.auth import get_user_model
User=get_user_model()
class PurchaseHistory(models.Model):
user = models.ForeignKey(User , on_delete =models.CASCADE , null=True , blank=True)
amount = models.IntegerField... | e628397aa9a853634feca17d0acfa59e6ba402e7 | [
"Markdown",
"Python"
] | 4 | Python | mohammad3020/django-zibal | 6a8d164956daec32b4907e45c96c99e350c28496 | b15049ba112fb64ea6e556497d6687934018f7a2 |
refs/heads/master | <file_sep>package com.md.utm.dao;
import com.md.utm.model.Employee;
import java.sql.SQLException;
import java.util.List;
public interface EmployeeDao {
void createEmployee(Employee employee);
Employee getEmployeeById(int employeeId);
List<Employee> getAllEmployeeDetails();
void deleteEmployeeByI... | 4430462e1b02969c0971fd892838d975f7678a28 | [
"Java"
] | 2 | Java | ionisac94/SpringJDBC | 071ae66b3cdf6bd9138f7348141c06f5cbd94c81 | 8bf7ca37cc70979d26b468e214d9ccc9412f0f4c |
refs/heads/master | <file_sep>----
# SFML SNAKE README
## **Deprecated/ancient school project.**
----
## Compile Instructions
Simply type MAKE in a command window so long as the requirements are met.
----
A Windows binary is also included (Win32 IIRC).
Just a "stream of conciousness" quickly bashed-out implementation of Snake in C++... | afd0cc31b03cf73203cbcca86bbdd84f811051fd | [
"Markdown",
"C++"
] | 2 | Markdown | ajshepley/SFML_Snake | 81bbdc7b20c8411693d0c1dafa881916e374ae69 | c437d3eb64bdcd6f8dd54192996c844c89cfa2ac |
refs/heads/master | <repo_name>Talha5/deprecation_toolkit<file_sep>/lib/deprecation_toolkit/behaviors/record.rb
# frozen_string_literal: true
module DeprecationToolkit
module Behaviors
class Record
extend ReadWriteHelper
def self.trigger(test, collector, _)
deprecation_file = recorded_deprecations_path(test)
... | 5e49559c64755da4f0133cddb148b4d01b291088 | [
"Ruby"
] | 3 | Ruby | Talha5/deprecation_toolkit | 05f7bfebb86e21856d39ee2a5f7091df5c7cfa7f | 414bab981550bac536ff60f6f9680191f6f679e4 |
refs/heads/master | <repo_name>akurhanovich/LogisticSystem<file_sep>/LogisticSystemAPI/src/main/java/edu/bsuir/logistic/rest/service/AddressService.java
package edu.bsuir.logistic.rest.service;
import edu.bsuir.logistic.rest.model.Address;
import java.util.List;
/**
* Created by Alesha on 07.11.2016.
*/
public interface AddressServic... | db502484c4cd769799890390750d3885c9bbd932 | [
"SQL",
"JavaScript",
"Markdown",
"INI",
"Java"
] | 57 | Java | akurhanovich/LogisticSystem | 634362498534f73500dbd674e32bb9cdadb49487 | 8326a2064e82ee4f2a72630b395d45bb5c641bf6 |
refs/heads/main | <repo_name>abnerztrada/cmiwebservice<file_sep>/cmiwebservice/lang/en/block_cmi.php
<?php
$string['pluginname'] = 'Personalizado cmi';
$string['cmi'] = 'Personalizado cmi';
$string['cmi:addinstance'] = 'Add a new Personalizado cmi';
$string['cmi:myaddinstance'] = 'Add a new Personalizado cmi to the My Moodle page';
$str... | dfed1424f0aa4eeeb56ac29a0c8506f917853c1b | [
"PHP"
] | 4 | PHP | abnerztrada/cmiwebservice | a3b214cb6ef3597da3f593fe0d3e242275d6c4ae | 52ffdc91611f28128e55d338f7864e5e77f948a8 |
refs/heads/main | <file_sep>// Print out all odd numbers from 1 to 20 //
for (var i = 1; i < 21; i += 2) {
console.log(i);
}
// Sum numbers from 1 to 5, printing out the current number and sum so far at each step of the way //
var sum = 0;
for (var i = 0; i < 6; i++) {
sum = sum + i;
console.log("Num: ", i, ", Sum: ", sum)... | bff35ff3763b67c5a30b603252bd17c494e5cd75 | [
"JavaScript"
] | 1 | JavaScript | JasonVolkoff/Loops_Algorithm_Practice | 205b6ebf62bcaa64e7cefed13759a1e9e91a28a8 | d6a5586680e0e67758ca0f530bd883796aea7ad7 |
refs/heads/master | <repo_name>jviloria96744/geo-albums-poc-lambda-functions<file_sep>/user_lambda.py
import json
import boto3
import os
dynamodb = boto3.resource('dynamodb', 'us-west-2')
table = dynamodb.Table(os.environ["TABLE_NAME"])
s3 = boto3.client("s3")
def create_login_user(username, password):
response = table.get_item(Key... | 7451a4d04a2c165f2f57d9414550d52ae7cec6b2 | [
"Markdown",
"Python"
] | 3 | Python | jviloria96744/geo-albums-poc-lambda-functions | b1b7d18a8e8cc894f9b3d8f8788386e6298f0d05 | c9a7626e183eea0951cf14210b181fb5c269d73b |
refs/heads/master | <repo_name>christiansaavedra/devoto-home-design<file_sep>/js/index.js
let zoomBg = document.querySelector(".zoom-bg");
let zoomBgPlanos = document.querySelector(".zoom-bg-planos");
let cerrarPlanos = document.querySelector(".cerrarPlanos"); //Es un div fantasma que uso para poder cerrar el carrousel al tocar fuera del ... | 0c8601b5bf257e99ab361d14ff39414a729ab692 | [
"JavaScript"
] | 1 | JavaScript | christiansaavedra/devoto-home-design | bf02432da0cf6f8d86429b4d01afb7f3ae382842 | eccdfbb88ce218779c888663c81d4000696ef05c |
refs/heads/master | <repo_name>Kwyper/internal<file_sep>/src/gripper_task.h
#ifndef GRIPPER_TASK_H
#define GRIPPER_TASK_H
#include "ch.h"
#include "hal.h"
#include "chassis_task.h"
#include "canBusProcess.h"
void gripper_task(pid_s_t* gripper_pid);
void gripper_pneu(void);
void gripper_init(void);
#endif /* end of include guard: GRIP... | b9da9e6d28e1eb8f47cd33b5d6bb4e9eaf365fa1 | [
"C"
] | 3 | C | Kwyper/internal | 3f13dc8b2e6ee30d0cc1d95b432833ab1db2d242 | 7f8ff50bc9a53ae9c240b5ee8aeb165cf196d131 |
refs/heads/master | <repo_name>OakleyJ/uq4covid.github.io<file_sep>/vignettes/data/MetaWards/vignette/ModelDescription.Rmd
---
title: Model Description
author: "<NAME>"
date: "`r format(Sys.time(), '%d %B %Y')`"
output:
html_document:
code_folding: show
highlight: zenburn
css: css/main.css
---
The basic model structure i... | 7d1d22adde9c5543182210f2bd2adf1208df5ac8 | [
"Python",
"R",
"RMarkdown"
] | 6 | RMarkdown | OakleyJ/uq4covid.github.io | c3d3a89ae25094aebae92207834dc7a495f00ad0 | 6f577342b21eb3005b787ef3171eee397697978a |
refs/heads/master | <file_sep>#ifndef AES128_DECRYPTION_H_INCLUDED
#define AES128_DECRYPTION_H_INCLUDED
#include "AESConstant.h"
namespace Decryption {
namespace AES128 {
void InverseCipher(BYTE srcBytes[16], const UINT32 srcExpandedKey[44]);
void KeyExpansion(const BYTE srcKey[16], UINT32 dstExpandedKey[44]);
}
}
#endif // AES12... | 9bb7a5c365004bd86c1a4300a5af3d7a40709f0e | [
"C++"
] | 13 | C++ | UnforeseenOcean/FileEncrypt | 7ee8eee62d7c06ed83e7c7a9e888f93afbf0dd0c | 8cd0cc3141b05327e72861e09f8a4dabd775a0f2 |
refs/heads/master | <repo_name>spod/vspdbparser<file_sep>/README.md
# VSB daily bulletin parser & scraper
My kids school posts a useful daily bulletin on their website which I rarely remember to check.
Based on a quick google it appears a number of other VSB High Schools have a similar daily bulletin page.
This is an incomplete project... | 13d14b760bd2735157c52a4d4cc45d3c0d2b141c | [
"Markdown",
"Python"
] | 3 | Markdown | spod/vspdbparser | 56fca89e9949aff0356b48fa0027c6470446d3a9 | caf20155fbd3d0a468a4d903f71ac55111a4f0af |
refs/heads/master | <repo_name>manasupes/Google-API-using-Python<file_sep>/ytapi.py
from googleapiclient.discovery import build
api_key = '#collect it from google api'
youtube = build('youtube', 'v3',developerKey=api_key)
request = youtube.channels().list(
part='statistics',
forUsername='#your channel User Name'
)
response = req... | c6919663c17225888854b2cdcc032672a566ba61 | [
"Python"
] | 1 | Python | manasupes/Google-API-using-Python | 2dd63479277980c679b0653a30867c60e2ca6450 | b1863444497b3a1f18825433e61330604cb2d461 |
refs/heads/main | <repo_name>JeffyLapter/GSR-Door<file_sep>/README.md
# GSR-Door
GaitSet Recognization Based Intellgent Door
### 项目架构:

### 项目物理结构:

### 主要分工:
王京首、王睿思:负责主控制模块与捕获模块开发
朱庆晨、李阳:负责步态识别模块开发、门锁机械结构设计、实验模型搭建
### 项目时间轴
1. 确定项目基本结构 √
2. 确定... | 36175c6eeaef9377911f0c8231b883024028a0bd | [
"Markdown",
"Python"
] | 2 | Markdown | JeffyLapter/GSR-Door | 031c80e4ce29806b711021537b9f300c891360c5 | 83a67bd692df05eacdddf374b7b01c410b905e8e |
refs/heads/master | <repo_name>rubiquinones/Expo-Dyte<file_sep>/startbootstrap-sb-admin-2-1.0.8 - Copy/dist/js/sb-admin-2.js
$(function() {
$('#side-menu').metisMenu();
});
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
// Sets the min-height of #page-wrapper to window size
$(function() {
... | 76823af138a871bc3968ccf88d10974c95873fd5 | [
"JavaScript"
] | 2 | JavaScript | rubiquinones/Expo-Dyte | 333ec745771c632caf9318c655e8ed1e9c830850 | c1016fe5d3efb87ee32ddb97847878665f11ac7e |
refs/heads/master | <file_sep>def main():
w, h = 5, 4
Matrix = [[0 for x in range(w)]for y in range(h)]
print Matrix
if __name__ == '__main__':
main()<file_sep>import matrix
def main():
print 'Hello world'
x, y = 5, 4
#Matrix = [][]
#want to make a matrix
matrix.main()
if __name__ == '__main__':
main() | ff9da594176e522ca8761540abb8b2cc9b6aa1f8 | [
"Python"
] | 2 | Python | kraemrz/learning-git | 031d1f9e05a91cd8687be1d9725d59299bfd7c44 | a8c78a3a5f3f731bd052846227e1d3b1b689cf1d |
refs/heads/master | <repo_name>arcmena/cryptobytes-api<file_sep>/src/server.py
from flask import Flask, json, jsonify, request
import requests
from flask_cors import CORS, cross_origin
app = Flask('__name__')
cors = CORS(app)
app.config["CORS_HEADERS"] = "Content-Type"
r = requests.get('https://api.coinmarketcap.com/v1/ticker/')
coins =... | e7663f95cc34503ffc768ee565bec99703ecc0a8 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | arcmena/cryptobytes-api | dc667c4693129866fe74aef11bcf24e136bab2c0 | a7742ca5bf99d7756ffba12630244cf351f2d772 |
refs/heads/master | <file_sep># Reporting an issue or Requesting new features
Click [here](https://github.com/7AA/7aa-core/issues/new) to create a new issue and tell us what happened, or what divine inspirations you have had for new features we could implement! Make sure to use a descriptive title and fill out the issue template with as m... | 870d37237b1d126c5d7336115e0790ccfd586ed4 | [
"Markdown",
"C++"
] | 4 | Markdown | Saborknight/40-commando-mod | 6945d464c5c3694c45879e4ff4ae9938449bab1f | 66c0abc8fca8321fd614aaf641ad6994aaeffd8c |
refs/heads/master | <file_sep>class PlayerParser < Parser
attr_reader :body_content_div
attr_reader :infobox_table
attr_reader :url
def initialize(body_content_div, infobox_table, url)
@body_content_div = body_content_div
@infobox_table = infobox_table
@url = url
end
def parse_player()
player = parse_playe... | 7997b18d3a67445566d07b356469f4e570fb2682 | [
"Ruby"
] | 21 | Ruby | jensamoller/pepe | 674a18646f837366fcd109d73696cb59c2a6392f | 3e4526327509e43ae10d06ad61b85cf38b4a22b9 |
refs/heads/master | <repo_name>admsm/smartinboxBackEnd<file_sep>/AppAuth/config.js
exports.appSecret = '$/\\/\\@|~+|/\\/|30X';
exports.msAuthUrl = 'http://localhost:3000/authorize';
exports.appSecret = '$/\\/\\@|~+|/\\/|30X';
exports.teamMemberCollectionName = "teamMember";
exports.mongoConfig = 'mongodb://127.0.0.1/issuetrackerDB';
expor... | 30ca6846e24b227b9567d2ffb0803b96db1b9be7 | [
"JavaScript",
"Text",
"Markdown"
] | 38 | JavaScript | admsm/smartinboxBackEnd | 8024053c3d2c6feb2063ec4074a2bcdbd4fc959f | 57f06a887b4aaefd91dcf97b6aecd862d3f900b7 |
refs/heads/master | <repo_name>nicolasMoura25/TP1_1.0<file_sep>/estacao.cpp
#include "estacao.h"
estacao::estacao(){
ID = 0;
nome = "0";
latitude = longitude = 0;
}
estacao::estacao( int _ID, string _nome, float _latitude, float _longitude){
ID = _ID;
nome = _nome;
latitude = _latitude;
longitude = _longitude;
}
void... | 5d661746ebe6cf3bfedbb5d1c097bb76aae908ba | [
"C++"
] | 12 | C++ | nicolasMoura25/TP1_1.0 | 5596e6503128941e3a8692b68eeb284388388fd2 | 8fa47c62d9a71325ac51804bf402ff670fa7a386 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package main;
import java.awt.Image;
import java.util.Random;
import javax.swing.ImageIcon;
/**
*
* @author kairon
*/
pu... | 4778f6176eecda3131f3c03490f9fbed26a6a257 | [
"Java"
] | 3 | Java | truongnguyen5x/game-may-bay | f456c0f7f52d89753f8492ea4dcf976bea20a4ba | ad69f9a7fc1a46fcf89d6a1236fc2a14e5512704 |
refs/heads/master | <repo_name>Korifey69/admin_dashboard<file_sep>/front-end/src/components/header/Header.js
export default function Header(props) {
const exit = () => {
const date = new Date(0);
const cookie = [`token=""`, `expires=${date}`].join(",");
document.cookie = cookie;
window.location.pathname... | 6b013af87e0cd6037dc7457e1d5abe198a660b92 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | Korifey69/admin_dashboard | a5bfa70fdc1cc683581c482d2d17d14575955a07 | 4f54dff901d077fa3653a8c6e8d3aa8ce1ae1e49 |
refs/heads/master | <repo_name>TheSolly/MoviesDB-React-Redux<file_sep>/src/Containers/MovieBrowser/MovieBrowser.js
import React from "react";
import { connect } from "react-redux";
import { Grid, Row, Col } from "react-bootstrap";
import { AppBar } from "material-ui";
import TextField from "@material-ui/core/TextField";
import * as movie... | e5988f333533ffb23bc4ac8ef2a108e19d778620 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | TheSolly/MoviesDB-React-Redux | 4d86e0452d509f814bb4cc761956f5094c1e860c | fed036f25d1bf22be1687551fd0aa948ea2c83b4 |
refs/heads/master | <file_sep>
/**
var foods = [
{id: 1, name: 'Ribeye Steak', description: 'Beef steak from the rib section', price: 25},
{id: 2, name: 'Flank Steak', description: 'Beef taken from the abdominal muscles or lower chest of the steer', price: 27},
{id: 3, name: 'Sirloin Steak', description: 'Sirloin steak comes from th... | 72b819b3ef82e810a2d9bb80104b51c719c3cca3 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | josecmarcucci005/steakzMIS | ed6bf520b0d56e96b2ae08b4a10f2aa5db573195 | cb4d2745ec13d9f3a087f0a7515d946d23290e31 |
refs/heads/master | <file_sep>package com.github.peacetrue.learn.servlet;
/**
* @author : xiayx
* @since : 2020-10-24 09:20
**/
public class NestRuntimeException extends RuntimeException {
public NestRuntimeException(Exception cause) {
super(cause);
}
}
<file_sep>package com.github.peacetrue.learn.servlet;
import lomb... | acdaea33e96397efd85ec6581a3d2ce5de8a3e7b | [
"Java",
"Gradle"
] | 8 | Java | peacetrue/learn-java | 5c0b84bfc595a0d55f86cc44a6d1d466cd5be7e3 | 123ddc1a58314f2156ceba030f4f4e47f93e83cf |
refs/heads/main | <repo_name>abhishukla87/Conference<file_sep>/ConferenceAPI.Data/MockTopicRepository.cs
using ConferenceAPI.Data.Entities;
using System;
namespace ConferenceAPI.Data
{
public class MockTopicRepository : ITopicRepository
{
public Topic GetTopic(int id)
{
throw new NotImplementedExce... | 644932b6dc5f379454acc5179f6bc8571b63114a | [
"C#"
] | 31 | C# | abhishukla87/Conference | 821451416efb7c649d1710bcf2aeb74a81b4015b | 444de7b1ef54cb3681cb018ea874114c9b6a2029 |
refs/heads/master | <repo_name>ProjectMOA/goraytrace<file_sep>/camera/pinhole_test.go
package camera
import (
"fmt"
"testing"
"github.com/ProjectMOA/goraytrace/math3d"
)
func TestPointIterator(t *testing.T) {
camera := PinHole{
FocalPoint: math3d.Vector3{},
FoV: 0.3490659,
Right: math3d.UnitX,... | 3b62e31d9de14817a091d7b721a1e9fbe232bf11 | [
"Markdown",
"Go"
] | 21 | Go | ProjectMOA/goraytrace | cec525074af7a049b63599f98fc1a84b2e674b7e | 9a4ce7aaa68df75e4d1d723a9879aef27c343b30 |
refs/heads/master | <repo_name>vrinda-jain28/CazyFileMultiplier<file_sep>/README.md
# CazyFileMultiplier
This application generates an excel sheet of protein data given its name and number from the Cazy Database using FASTA files from the HTML Parser and from the FASTAREADER file it loads every single protein sequence in fast format in s... | 79a898869437019317b6c4805b399d6b6e547bee | [
"Markdown",
"Java"
] | 2 | Markdown | vrinda-jain28/CazyFileMultiplier | b3e02aa95687a08dd21f79caa9c67299dbb2360a | c8fbb55e1cc1e290ef6953447e031bc8f131241e |
refs/heads/master | <repo_name>davidkvists/getting_cleaning_data_project<file_sep>/README.md
Course Project
===================
Description of run_analysis.R
-------------
- Downloading all necessary files for analysis
object **train_data** [7532x561]holds training data
object **test_data** [2941x561holds test data
object **train_labe... | 2de040c83b771cf462494504606f01f62d19216b | [
"Markdown",
"R"
] | 2 | Markdown | davidkvists/getting_cleaning_data_project | 59ca8a6c192f5daedd034be1d8a0c8700cdf7dda | 85da8657c71ceece90cc0e4ea660a9ae7ae51056 |
refs/heads/master | <file_sep>package com.ec.proyectodemoandroid;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.FileProvider;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
impo... | e47b57dd579753d83852c2c0c0e3e3d5a940d40e | [
"Java",
"Gradle"
] | 6 | Java | SmartFastSolution/Proyectodemoandroid | d83e088df26380585e9ace3fda8126c3913f0e2e | fcdf26ca8bc7b6295983cf2b5c83e2419afaf86c |
refs/heads/master | <repo_name>KevCM7/AlgoritmosBasicos<file_sep>/src/com/AlgoritmosBasicos/main/AppMostrarmiNombre.java
package com.AlgoritmosBasicos.main;
import java.util.Scanner;
public class AppMostrarmiNombre
{
public static void main(String[] args)
{
int cont2 = 0;
String sNombre = " ";
System.out.println("E... | 737fb25ea1ce9925ee836fecb10c433af68b8d2f | [
"Java"
] | 1 | Java | KevCM7/AlgoritmosBasicos | 1ef1f53849dfd433e18399e181587ce248bf7a27 | eaf33ad0f6b889c8244cadd2502093a2ce339ed4 |
refs/heads/master | <repo_name>petarliovic/bubble_trouble<file_sep>/bubble_trouble/Assets/scrypts/bulletScrypt.cs
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class bulletScrypt : MonoBehaviour {
public GameObject ball2_1;
public GameObject ball2_2;
public float distance;
void OnCollisionEn... | d91a8d172142d93fc691f923348d5830bd9bffe0 | [
"C#"
] | 3 | C# | petarliovic/bubble_trouble | c7de858fc63a65de87042826bffd799b34239401 | 83e374402eaf549d68e8fe8394357e84d38bace8 |
refs/heads/master | <repo_name>harunmahfud/yii2-queuemanager<file_sep>/README.md
Yii2 Queue Manager
==================
[](https://packagist.org/packages/ignatenkovnikita/yii2-queuemanager) [;
var fs = require('fs');
var Q = require('q');
var path = require('path');
var walk = require('walk');
var AdmZip = require('adm-zip');
var archiver = require('archiver');
var bsdiff = require('node-bsdiff');
/**
* get hash of file
* @param {String} fileName file path
* @re... | 6632ff3683c6273ac7c4567ad1eebf207c1c9146 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | alexayan/folder-diff | 2cca7d5fda6cc533d4d68ec1b2a09730431c8e92 | 4e8c66a9b84007c9bcae72b6873dff66a2b74ef0 |
refs/heads/main | <file_sep>// SPDX-License-Identifier: BSD-2-Clause
#pragma once
#ifndef __cplusplus
#error "This header requires C++"
#endif
#if (__cplusplus < 201402L)
#error "This header requires at least C++14"
#endif
#if (__cplusplus >= 201703L)
#define _CXX_HAS_FILESYSTEM
#endif
#include <algorithm>
#include <istream>
#include ... | bfff90832db7db28d5fee0b8a319e1861ee3061c | [
"Markdown",
"C++"
] | 2 | C++ | qzdanis/lzmafstream | a90ca97d5710885c86f70aa759c3aa143b82abea | c159015a8fef41e13239a3d8a55442289975635b |
refs/heads/main | <repo_name>GuyTevet/motion-diffusion-model<file_sep>/data_loaders/tensors.py
import torch
def lengths_to_mask(lengths, max_len):
# max_len = max(lengths)
mask = torch.arange(max_len, device=lengths.device).expand(len(lengths), max_len) < lengths.unsqueeze(1)
return mask
def collate_tensors(batch):
... | e993a7972529f60210d9dd6d7c4097c62c37bcdf | [
"Markdown",
"Python",
"Shell"
] | 74 | Python | GuyTevet/motion-diffusion-model | 8139dda55d90a58aa5a257ebf159b2ecfb78c632 | 64756013105a80ea2a3180a73ac86519b361e53b |
refs/heads/master | <file_sep><?php
/**
* Pagina php che offre il servizio di azzeramento della lista clienti.
*/
require_once $_SERVER["DOCUMENT_ROOT"] ."/mythos_pr/src/manager/ClientsManager.php";
$res=clearOrders();
echo json_encode($res);
?><file_sep><?php
/**
* Pagina php che offre il servizio di modifica de... | c007fa71820a0b2c58d41bf1517e244bef12c419 | [
"Markdown",
"Java",
"PHP",
"SQL"
] | 45 | PHP | Marioegidio/Mythos-IS | 1086b49b92ea4849259d06b72253b00a70bb19b7 | 64071ee366957e8adb4aa6ef47f2c5d9843a30aa |
refs/heads/master | <file_sep>import numpy as np
import netCDF4
from math import pi
from numpy import cos, sin
class Tunnel_fast(object):
def __init__(self, ncfile, latvarname, lonvarname):
self.ncfile = ncfile
self.latvar = self.ncfile.variables[latvarname]
self.lonvar = self.ncfile.variables[lonvarname]
# Read latitude and lo... | 595cb9ef9b982f0525fea2231c4170bd2a6d13ba | [
"Markdown",
"Python"
] | 14 | Python | smwCEH/accessing-netcdf-data-by-coordinates | f0f6f24ed989baf80884dcb36c680e69ea37a261 | f206eacddb6337e240dd2b1eb5e33067d0065155 |
refs/heads/master | <file_sep>main.js
function PeopleController($scope) {
$scope.people[
{name:"<NAME>", phone:6155551212, city:"Nashville"},
{name:"Jennifer", phone:6155551212, city:"Nashville"},
{name:"Pam", phone:6144881212, city:"Columbus"}
];
} | 2c900e0fb6725590d31c301d370595cbf9afd541 | [
"JavaScript"
] | 1 | JavaScript | nss-evening-cohort-04/ng-contacts-jduttondesign | 590f63b1e630095ce6fde0c1f956fdaef271c1e5 | 638921dcbddc7af261288b3cce63b6a2fb634f35 |
refs/heads/master | <file_sep># ngTemplateOutlet vs ngContent
*Content projection* is a way to import HTML content from outside the component and insert that content into the component's template in a designated spot.
The **problem** is that 'nested' components are **immediately initialized and not destroyed** when removed from DOM.
T... | a967ef6a07844530ab20056c533a1148b55b16f5 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | martinobordin/ngTemplateOutlet-vs-ngContent | 31c771ea50cd20cdf79be6ebcf0e6bd3fdd7c1b9 | 65d16bcb48486eaf3db2026b905fbe3b04c5f96f |
refs/heads/main | <file_sep># 文件上传-多名字多文件上传
> 代码文件:`0702, index-07-04.js`
## 前端代码准备
新建文件 `0702/index.html` ,这里只新增了一行代码,即新增了一个上传的文件不同的 name:
```html
<input name="photo" type="file">
````
具体代码为:
```html
<body>
<form>
<!-- 单文件版本 -->
<!-- <input name="file" type="file"> -->
<!-- 多文件版本 -->
<input name="avatar" type=... | dd7da2288462d8efb1fc597795393eb92af3d15d | [
"Markdown",
"TypeScript",
"JavaScript",
"Text"
] | 52 | Markdown | Jsmond2016/node-study | 3e24fa6f1c323abdb2a2eb7d5fca12b2b4add1a3 | 208ae6fad94d5319abf9d187f6ba2d90fa09e59b |
refs/heads/master | <file_sep>const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
require('dotenv').config({path: 'variables.env'});
const Recipe = require('./models/Recipe');
const User = require('./models/User');
const cors = require('cors');
const path = require('p... | 482e39ff0e85293ead6ae2e9c7cdc2d45b3d6eb1 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | cmlugoce/cookin- | 8dd0c3231401e7f727e8885dce9d52fe59227382 | 66b34eb64d5f59bc5f5d92835999d601a7c0707a |
refs/heads/main | <file_sep>
function handleSubmit(event) {
event.preventDefault();
var year = document.getElementById("year");
var branch = document.getElementById("branch");
var batch = document.getElementById("batch");
var sequence = document.getElementById("sequence");
var pspace = document.getElementB... | 457d201a7ad146e6fa163d87208b6ec368ad05bb | [
"JavaScript"
] | 1 | JavaScript | srsubodh/hihi | 4be7595fd6ec2cb02802d1362000a481aa8b3852 | 6c1eed5de0f6b218ef2c928d111fdc8cd9fbf36d |
refs/heads/master | <repo_name>kanagayo/auto-number-place<file_sep>/README.md
This repository is a program written in JavaScript that automatically solves Number Place.
Please play from this [link](https://kanagayo.github.io/auto-number-place).<file_sep>/draw.js
let newTable = document.createElement("table");
newTable.innerHTML += "<colg... | c2ba32f1f33c9a02fdca7c31a0f32bd029f3b736 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | kanagayo/auto-number-place | a6fa5ecfa4a29e456edc025d4c39ee5f702cb990 | bfaa07bc28afeed4c63ed24b2b0436aec6045789 |
refs/heads/master | <file_sep>Backbone.keys
=============
Easily add keyboard support in your Backbone views
## Usage ##
Backbone.keys is made to work with your existing views.
To add arrow navigation to your app simply do:
```javascript
MyView = Backbone.View.extend({
keys : {
'a+shift' : function(e, name) {},
'le... | e4485f3e4f6662c2144fe521948d5e2852996890 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | backbone-input/keys.git | e841607cf4c6d51c9c940a4970cddbe8a71baa69 | 32e9a5c6daa4a725fbaf8004b295f3cc91483701 |
refs/heads/master | <repo_name>SullysMustyRuby/hackathon-oasis<file_sep>/spec/routing/catagories_routing_spec.rb
require "spec_helper"
describe CatagoriesController do
describe "routing" do
it "routes to #index" do
get("/catagories").should route_to("catagories#index")
end
it "routes to #new" do
get("/catagori... | cde69efd10ea7f3c4aad93d0f8104bbbdecf9da4 | [
"Markdown",
"Ruby"
] | 5 | Ruby | SullysMustyRuby/hackathon-oasis | 6aa73e7f2688d7f37346b431ecb8f8be557c4794 | da72bbdb4ee5602379c967485f8c148c2d585fd8 |
refs/heads/master | <file_sep>var mysql = require("mysql");
var inquirer = require("inquirer");
var connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: "<PASSWORD>^",
database: "bamazon"
});
// connection.connect(function (err) {
// if (err) throw (err);
// console.log... | fa341c902878d6f84611f0c79b2cb7f77860f92d | [
"JavaScript",
"SQL"
] | 3 | JavaScript | fxtzhou/bamazon | a398d6a04e239aff05bdd943df06927f79883c0a | fa4bdc7561b3554511cc4e93dff6b0b74c54502d |
refs/heads/main | <file_sep>from datetime import datetime
from selenium import webdriver
from haversine import haversine
from folium.features import DivIcon
from email.mime.text import MIMEText
import requests
import json
import time
import googlemaps
import folium
import polyline
import os
import boto3
import smtplib
from bs4 import Be... | 529faa6f4d692bebf5be68a2d4edcb30bba3f416 | [
"Markdown",
"Python"
] | 2 | Python | blackhoal/Toy-Project---Auto-JOP | 6ff87c79f64899a5c27541a57fc281b529eac86b | 87f2e88f8bf8ed553415efc0068ac40b2f45ed92 |
refs/heads/master | <repo_name>anirudhmittal1989/share-app<file_sep>/app/controllers/home_controller.rb
require 'rubygems'
require 'net/dav'
require 'pony'
class HomeController < ApplicationController
def index
dav = Net::DAV.new("http://10.23.10.162:8080/webdav/", :curl => false)
dav.verify_server = false
dav.credentials('... | 27e33eead11b5be5f9333fa83052a7c506cea9c4 | [
"Ruby"
] | 1 | Ruby | anirudhmittal1989/share-app | 7ef070e9f33679b9a249f6464c177861abf5f0e2 | acf00299bce7429dead8a2a9c1008c7088de7a22 |
refs/heads/master | <file_sep>## 说明
当前项目属于 energyScreen 项目的子集,用来提供oracle数据库数据的获取。<br>
后期可以扩展为其他项目使用。<br>
## 准备
1. 安装 jdk1.8,下载地址: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html <br>
2. 下载 Oracle Db Driver,下载地址: https://www.oracle.com/database/technologies/jdbc-ucp-122-downloads.html <br>
3. mvn 导入driver:
mvn install:... | f9cbc9de2c8605ed911236e466917ab8d820ac92 | [
"Markdown",
"Java"
] | 2 | Markdown | uncarman/orcale-conn | f2d8be771c15b3ebd2cdf158417178012b80be00 | 279bc6ae48d2a9f1fe42e3aa3eadd83c211705bf |
refs/heads/main | <file_sep>import numpy as np
import matplotlib.pyplot as plt
import sys, os
import torch
import torchvision
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torchvision import transforms, utils, datasets
from torch.utils.data import Dataset, DataLoader, random_split, SubsetRandomSa... | 92032ad932a88ccf554f2ea2a1266984ada5de82 | [
"Python"
] | 2 | Python | HelenShao/symbolic_regression | d6081989ca2a62121989513d0317a5cabb7d4a96 | 94acea5faf587c4268fc4269b2b0219caaaa9333 |
refs/heads/master | <file_sep>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
int deamonize(int nochdir, int noclose)
{
pid_t pid = fork();
if (pid < 0)
{
return -1;
}
else if (pid > 0) /*parent*/
{
exit(0);
}
/*child*/
umask(0);
/*create new ses... | c52bc89a752e3a36f6d7c69718af8055802009b8 | [
"C",
"Makefile",
"C++"
] | 13 | C++ | hankai17/High_Performsnce_linux_server_programming | 8f54c12e262385d51feabacf607c5d6fa40f7cd9 | 1d1fd789a2b19f008f3b8af171e50e90f0914a14 |
refs/heads/master | <repo_name>ducky92fr/FoxIntelligence<file_sep>/app.js
const fs = require("fs");
const cheerio = require("cheerio");
const { formatHour, formatMoney, formatDate } = require("./util/format");
class scrapeHtml {
constructor() {
this.finalResult = {
status: "ok",
result: {
trips: [], //in charge ... | 065db5e3e74fc9153616f15b3b1749fe5e899a0b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ducky92fr/FoxIntelligence | a717cdf6f189fd6b3686711c4d256ab44dc5d2b3 | 3f7e678ad9dff18e45ec2efbf0ee364c8189953c |
refs/heads/master | <repo_name>ytung/mitoces<file_sep>/mitoces/templates/add_outcome.html
<!DOCTYPE html>
<html>
<head>
<title>Create New Outcome</title>
<script type="text/javascript" src="{{ STATIC_URL }}js/mitoces.js"></script>
</head>
<body class="popup cas_client-outcome change-form">
<h1>Create New Outcome</h1>
... | 2eff40ed7bf9a54bf3a0dd6745441b696e20899f | [
"Python",
"HTML"
] | 4 | HTML | ytung/mitoces | cecbac61439302f1f59f7ef213ff38c0bea9a920 | 38e387a71b9a68e792623d18b8d4c5c011d45980 |
refs/heads/master | <file_sep>class ChangeCarAgeToDate < ActiveRecord::Migration
def change
change_column :cars, :age, :date
end
end
<file_sep>class Car < ActiveRecord::Base
attr_accessible :make, :model, :age, :Reg, :color, :version, :garage_id, :photo, :price
belongs_to :garage
has_many :rentals, :dependent => :destroy
has_m... | c92151432f5e5d4a419ab6489ba7aa46b2ff5615 | [
"JavaScript",
"Ruby"
] | 27 | Ruby | gabriel-roberts/garageapp | 34f27c2bdd232dfa6240f471d613c4b6c16cb63d | 1bb553ee178071ce795f406bbae7fe57e2f240fa |
refs/heads/master | <repo_name>pierreprinetti/qcap-web<file_sep>/Dockerfile
# https://registry.hub.docker.com/u/google/golang/
FROM google/golang
WORKDIR /gopath/src/app
ADD . /gopath/src/app/
RUN go get app
RUN curl -sL https://deb.nodesource.com/setup | bash - && apt-get install -y nodejs
RUN npm install -g gulp bower
RUN npm install... | 1ea6f309979e0959f8c2e9e6e38eb3d98da5b411 | [
"Markdown",
"Go",
"Dockerfile"
] | 8 | Dockerfile | pierreprinetti/qcap-web | 89b74850188d0629b0947d7823657f41e1a5d561 | eb364b27496c21075807ebe24ed9247821569949 |
refs/heads/master | <repo_name>hbata/opt_prjct<file_sep>/processing_sgd.py
from __future__ import print_function
import IPython
import sys
from music21 import *
import numpy as np
from grammar import *
from qa import *
from preprocess import *
from music_utils import *
from data_utils import *
from keras.models import load_model, Model
fr... | 91eb0e026297f4eb785cf53fe3b414f351c3337a | [
"Python"
] | 1 | Python | hbata/opt_prjct | 46cd3b95cc51fc7a63f877b384785131ca13bafe | 87a5e4c6f7f506c3ea07f4822281e31b634b63f0 |
refs/heads/master | <file_sep>import React from "react";
import { car_all } from "./queries";
import { useQuery } from "react-apollo-hooks";
export default () => {
const { data } = useQuery(car_all);
console.log(data)
if(data && data.car_table_all){
}
return <h1> hello wolrd</h1>
}
<file_sep>import gql from "graphql-tag";
expo... | 26419064f6562af665abe5e789bb130cdfd3eae7 | [
"JavaScript"
] | 2 | JavaScript | hrygit/dongseong-QL-client | 9ec08dca40b06071927ca1ed503e58be34a47585 | e5432d3ffce78a170878c9b3de6608bb1a967007 |
refs/heads/master | <repo_name>orientationsys/html<file_sep>/js/golf.js
jQuery(document).ready(function($) {
var $panels = $('.galleryThumbnails .imgslide a');
var $parent = $('.galleryThumbnails .imgslide'); //或许当前li的最近一级的父元素
var $length = $panels.length; //获取指定length值
var $first = $panels.eq(0).clone().addClass("panel cl... | cb439196420d3da9389acc759a0bf864d6aed172 | [
"JavaScript"
] | 1 | JavaScript | orientationsys/html | 2eb8875602b036e791ccf685d103a1d963019223 | 3db1b670e3b63b6492bf19d02f0fb37f5d70c6ea |
refs/heads/master | <file_sep>const path = require("path");
const fs = require("fs");
const chai = require("chai");
const dom = require("dts-dom");
const AssertExtensions = require("./AssertExtensions");
const assert = AssertExtensions.extend(chai.assert);
const DeclarationGenerator = require("../lib/DeclarationGenerator").default;
co... | 9a9fc632298312fb32f3e98e4b48162f080b6a10 | [
"JavaScript",
"TypeScript",
"JSON with Comments",
"Markdown"
] | 11 | JavaScript | hulu/splitshot | 80accdf2a53e96f5732ffdd885fdc7892b71dbb4 | 2527d51b8e5ea13b9a16e7496d582d4b722aeb8f |
refs/heads/main | <repo_name>shakir-fjd/JythonUtils<file_sep>/JythonUtils/src/JythonUtils.java
import java.util.*;
import org.apache.poi.ss.formula.functions.T;
import org.python.core.*;
import org.python.util.PythonInterpreter;
/**
* @ClassName: JythonUtils
* @Description:TODO(jython 工具类)
* 注意:
*/
public class JythonUtils {
... | 9bf495d92d3874250edc0e0be212845ab8f05d80 | [
"Markdown",
"Java",
"Python"
] | 4 | Java | shakir-fjd/JythonUtils | f1efbdb451f3f940925b84deaf9c45ef02a24f0f | 965ce8d0fec0f0f8714118c8b75c2165d83d1a67 |
refs/heads/master | <repo_name>ellismarte/FakeDoor<file_sep>/app/assets/javascripts/pages.js
$( document ).ready(function() {
loadSignUpForm();
});
var loadSignUpForm = function(){
$('.signUpLink a').on('click', function(e){
e.preventDefault();
path = this.href
$.ajax({
url: path,
type: 'GET'
}).done(funct... | 26a30e036600b94327b5fb37b3f61a46433202b1 | [
"JavaScript",
"Ruby",
"Markdown"
] | 5 | JavaScript | ellismarte/FakeDoor | 96548e5974dea1f62fb7a7fde15498b3656b8a70 | 8eecef9fa1ff7f2c7e611fb7c0631ccc965ea6bc |
refs/heads/master | <file_sep>package br.com.felippe.springdatajpa.application.managedbean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import br.com.felippe.springdatajpa.domain.service.IBookService;
@Compon... | 1a96c69805eb82210e391a1529d88890242a0187 | [
"Java",
"Maven POM"
] | 3 | Java | flppsilva/spring-data-jpa | 0800a88140a814cb51f079f52710920a384dab96 | 543ba54844ba3eca8f8af54778c158b0d742c15e |
refs/heads/master | <file_sep># importing required packages
'''
How to use this file:
How to initiate bokeh server using this file:
type bokeh serve --port 5003 widgets_part3.py in your terminal
Then you may go to the FirstStop landing page to click the calculating monthly cost link
'''
from bokeh.io import curdoc
from bokeh.layouts ... | e7b287e1ff940c3ae73b5081df29efc73f6b6495 | [
"Markdown",
"Python",
"Text"
] | 12 | Python | yukgu/UWHousingTeam | 40049c61e158e419c4645d13e97326885131e572 | 60ea008d7b10e9c87bb5f4ad278b08874e96c7f0 |
refs/heads/master | <file_sep>$(document).ready(function() {
$('.header__burger').click(function(event) {
$('.header__burger, .head__menu').toggleClass('activate');
});
});
<file_sep>const dropdown = document.querySelector('.index__guests-dropdown');
const guests = document.querySelector('.label-guests');
guests.addEventListene... | aaeb748390ab96fd8086361984bd198b24ef277e | [
"JavaScript"
] | 2 | JavaScript | Scket4/fsd2step | d2c416ca2f9c306f646a9b3d82b25b357ee1c0fc | b027f41c7fe1a72c3396769dc5720423d4ee3f1c |
refs/heads/master | <repo_name>PublicaMundi/ckanext-helloworld<file_sep>/ckanext/helloworld/commands.py
import sys
import re
import os.path
import json
import logging
import optparse
from optparse import make_option
import ckan.model as model
import ckan.logic as logic
from ckan.logic import get_action, ValidationError
from ckan.lib.cl... | de53d6b9f06192f9fdb15a10ecd25d7ed380996f | [
"Markdown",
"Python",
"reStructuredText"
] | 9 | Python | PublicaMundi/ckanext-helloworld | d7fc2fecaff8428ce0771d920e4e4a92ba29621c | 8b636f498ff3b3bd4dc7e6752617288b8968eeb5 |
refs/heads/master | <repo_name>chyacinth/videoSegmentationToGif<file_sep>/main.py
from __future__ import print_function
import numpy as np
import cv2
import sys
from video import *
import IO
from graph_segmentation import *
if len(sys.argv) == 1:
source = '13.mp4'
else:
source = sys.argv[1]
# groundTruth = False
# visualize = Fals... | 3d028dc0ae8399b14a52b3390f7c7dd2198de616 | [
"Markdown",
"Python"
] | 7 | Python | chyacinth/videoSegmentationToGif | bf052d7170955e575ebc468a94233e9c2083551e | 5ab3ed081355be62f41ea709b4dd7267dc591280 |
refs/heads/master | <file_sep># Raspberry Pi as USB Keyboard (HID)
### Example Use Case
You are working remotely on a PC, which has BIOS or BitLocker password enabled. The PC ocasionaly needs to be rebooted (for example for OS updates). You cannot connect to it remotely until the password is entered (before OS boots).
### Possible Solu... | ac7a21cb604af9eb8bcfa5c9e00453c5b70f1098 | [
"Markdown",
"Shell"
] | 2 | Markdown | OpossumPetya/pi-as-keyboard | 7b87505fb14fa17521f60c1a5d4ca43ed15f01b6 | b7ae164929509b76b03a2f2e773215d394d47fd7 |
refs/heads/master | <repo_name>kunalntpa/graphcut-qt<file_sep>/mainwindow.cpp
#include "mainwindow.h"
#include <QtGui>
#include <ctime>
const QString WIDGET_NAME = "ImageView";
const QString WINDOW_TITLE = "GraphCut";
const int TOOLTIP_STRETCH = 5000;
const int VIEWER_WIDTH = 800;
const int VIEWER_HEIGHT = 600;
GrabCutNS::Imag... | 70edd0d9185d9ebbd45d1ade0a577b6b9031a6e4 | [
"C++"
] | 3 | C++ | kunalntpa/graphcut-qt | a564fee28a73ce16ed9e5bda82f72412bb85879c | 67dce8ea44277b72239d80f119f91022a9ad2db7 |
refs/heads/master | <file_sep>package com.texpilot.medcard;
import android.content.ContentValues;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import ... | 2f8d291129bf05738f829deed57c64340a9b7885 | [
"Java"
] | 3 | Java | wildcat966us/MedCard | 01aba917291255e90a4650af09f75ddb0f811a5b | acf0940426c606f3c809d31dd726338b7959c5c8 |
refs/heads/master | <file_sep>const body = require('body-parser');
const express = require('express');
const app1 = express();
const app2 = express();
const app3 = express();
const apps = [app1, app2, app3];
apps.forEach(app => {
app.set("view engine", "ejs");
app.use( express.static( "public" ) );
app.use(body.json());
});
con... | 5ef609e2e5cde2e74abdef8e8f491d3cf1e2dac4 | [
"JavaScript"
] | 1 | JavaScript | jainkeval/loadbalancer | 84ab848159f4f4325c7ad8c3e8db56db96cd12fb | 4fe153c91f2c8cf412f5fc6f22d2c2838ad4863a |
refs/heads/master | <repo_name>Piyush3dB/primer<file_sep>/files/run.sh
NAME="template_garamond"
#NAME="template_arial"
#NAME="template"
latex -interaction=batchmode -halt-on-error -output-directory=$PWD ${NAME}.tex
dvisvgm ${NAME}.dvi -n -v 3 -o ${NAME}.svg
| 51eb77b4d54d0784fb74cb023e1878fd663997e4 | [
"Shell"
] | 1 | Shell | Piyush3dB/primer | 76da196682ca2ff1ad2983b73233a1a86af7979c | 4806588602f6cacda37260539789b47ed8129637 |
refs/heads/master | <file_sep>/*
* Copyright (C) 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 5efbd6b819f7eced7f1dbc2a0e2adb19c2c989df | [
"Java"
] | 3 | Java | jbduncan/copybara | cada1911299795df1ee11f4d0239c3ef1c62d23d | 982633739666ee8f96678b2969668a605bbeb305 |
refs/heads/master | <repo_name>IdiotGrace/gogo<file_sep>/src/ch1/helloworld.go
// See page 1.
// Helloworld is our first Go program.
//!+
package main
import "fmt"
func main() {
fmt.Println("Hello, Weird Go Lang")
}
<file_sep>/src/ch1/echo4.go
// Page 6 Practive 1.1 & 1.2
package main
import (
"fmt"
"os"
)
func main() {
fmt.Prin... | e46edb9143d8b9db9740492f319c6cc171938294 | [
"Markdown",
"Go"
] | 3 | Go | IdiotGrace/gogo | 2bc636518349169cc2c43032d79429780a641e8a | f5b368ff5388ddba3a55b08ef7e879c8ad251e2e |
refs/heads/master | <repo_name>ddelcastillor/appDemo<file_sep>/src/main/java/com/autentia/demo/web/SampleController.java
package com.autentia.demo.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
... | 5ced91ae2badfd44b41385ebb489a3fdbe1a5607 | [
"Java"
] | 1 | Java | ddelcastillor/appDemo | 5c95f296f1ad572906af80cb6e75b6ed778b807f | 99562158022da2f96a5604f173230a38fd2a650c |
refs/heads/master | <file_sep># Strings and Regular Expressions
# Part I
def hello(name)
# YOUR CODE HERE
"Hello, #{name}"
end
# Part II
def starts_with_consonant? s
# YOUR CODE HERE
if s.empty?
return false
elsif ( /[a-z]/ =~ s[0].downcase && /[^aeiou]/ =~ s[0].downcase)
return true
else
return false
end
end... | 2f764c46caa2167911e0138112ab8220198cdd52 | [
"Ruby"
] | 3 | Ruby | cmyrick2/ITSC3155_SPRING2019_CMyrick2 | ee95b0b5ece0f0a409dadde6436687c6128dd564 | 3a3934e7defbc7cd1c5b6502a4b7a366f2dfcaa7 |
refs/heads/master | <repo_name>tylersimko/CodeAbbeySwift<file_sep>/1.playground/section-1.swift
// Playground - noun: a place where people can play
import UIKit
var num1 = 2958344
var num2 = 4652392
var solution = num1 + num2
<file_sep>/6.playground/section-1.swift
// Playground - noun: a place where people can play
import UIKit
impor... | a8d238c752fb944818d02ed8dff468241dae4ace | [
"Swift"
] | 6 | Swift | tylersimko/CodeAbbeySwift | 9d8b39f3b12105192af125ddb0d49220a2367bc2 | 529bbd8ba1907474be77a215db9cab4ba69060f1 |
refs/heads/master | <file_sep>const connection = require("../configs/db");
module.exports = {
getAllBooks: () => {
return new Promise((resolve, reject) => {
connection.query(
"select * from book inner join category on book.id_category = category.id",
(err, result) => {
if (!err) {
resolve... | a45ecf33b41fa3c071cdcb12b279eed797787c91 | [
"JavaScript"
] | 5 | JavaScript | rezhariansyah/Book-Management-API | 0d053a668404f15e01c4b41e60aeb867e7cfaca8 | 7294808e9299c8313935879c34329f1f92ea44f2 |
refs/heads/master | <file_sep>function radix_sort(arr) {
var place = 0;
var mod = 10;
var div = 1;
var biggest = arr[0];
while (place < biggest.toString().length) {
var sorted = [[],[],[],[],[],[],[],[],[],[]];
for (var i = 0; i < arr.length; i++) {
if (arr[i] > biggest) {
biggest = arr[i];
}
... | cec9c26b40c4aca2e8dbb8a20016f8054e95cde5 | [
"JavaScript",
"PHP"
] | 3 | JavaScript | chrisdclark3/Sorting-Algorithms | e9b99cfbaafecd31e706472253f0b76986ea3d01 | 700fe5b97bd7759d5bd8b8ebca1383b61edc9e01 |
refs/heads/master | <repo_name>100-i/100-Examples<file_sep>/Python/Python-and-Blender/simple_room/src/simple_room/__init__.py
# -*- test-case-named: simple_room -*-
"""
simple_room: A simple room.
"""
def _checkRequirements():
import sys
version = getattr(sys, "version_info", (0,))
if version < (2, 7):
ra... | 9a7ab24b086c19f642e829ff1758618430346177 | [
"Makefile",
"Python",
"Ruby"
] | 10 | Python | 100-i/100-Examples | 1d48fd63ad2f4d7815f7e14b6a7f589f4c8c7314 | 282985c775f7bdef23b15e20fade8e73eea996f0 |
refs/heads/master | <repo_name>john-new9/f-Ano-GAN<file_sep>/anomaly_detection.py
"""
Anomaly scoring
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without ... | f5dd79b1cecaca47a93bd8f2c02b35accd75356c | [
"Python"
] | 4 | Python | john-new9/f-Ano-GAN | d64ea7e9f5e9a2f0ded3893cd64bf818989e47ab | 3d4f2ec13c8afeea5af6f2270863a4f21d52e097 |
refs/heads/master | <repo_name>vassald2/Rails_Search<file_sep>/language/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chic... | 5af4b6ccfac191bca3d6f2d7730d62ba7eba26c5 | [
"Ruby"
] | 1 | Ruby | vassald2/Rails_Search | 2eb40492e5444f8fb156bcd3a9904110a7937e5d | 99c8fea8627291966a1b28e6ab8ddd5ef040bb68 |
refs/heads/master | <repo_name>allisonjulian/CODA-GrechellesKitchen<file_sep>/app/models/orderline.rb
class Orderline < ActiveRecord::Base
has_many :products
belongs_to :order
belongs_to :customer
end
<file_sep>/app/models/product.rb
class Product < ActiveRecord::Base
acts_as_sellable
belongs_to :orderline
belongs_to :order
bel... | 49fc9bab37706fe33b4213d34aa9d3d3436c4b93 | [
"Ruby"
] | 7 | Ruby | allisonjulian/CODA-GrechellesKitchen | b59ac56eb4feac2c0053ef9fb59dc2616b0bdadb | 22183cdec1a3019c2e3bc7b4da5400daa0f7af61 |
refs/heads/master | <file_sep>const state = {
appName: 'admin',
stateValue: 'abc' // 测试vuex 的双向绑定
}
export default state
<file_sep>const getters = {
appNameWithVersion: (state) => { // 该处的state对象表示处理同级别的state.js中的对象state
return `${state.appName}v2.0` // es6模板语法
}
}
export default getters
| 91929ebfbe127f635b9967d74ef8caac9298b243 | [
"JavaScript"
] | 2 | JavaScript | whatishadoop/vue-cource | dfb8708818be4a7d1d45dc3762b7365a78cb0b40 | 973a9f1769496d3bf8172f4d104b434c3c05ee14 |
refs/heads/master | <repo_name>hanlizhihao/luck-system<file_sep>/addons/hu_couda/wxapp.php
<?php
/**
* [WeEngine System] Copyright (c) 2013 WE7.CC
* User: fanyk
* Date: 2017/12/10
* Time: 14:46.
*/
include "model/prize.mod.php";
include "lib/Wxadoc.php";
include "lib/WxpayAPI_php_v3/WxpayAPI_php_v3.php";
include "lib/Select.mysql.ph... | b410843f76be4de0318574657cfc6a13b0a50ddd | [
"HTML",
"PHP"
] | 6 | PHP | hanlizhihao/luck-system | 425ce3df3dc4f4ab9040a0467d18cb64fe10d7c3 | 68b98a6b6c74f54acb0cf283bf41944d5e25cb6d |
refs/heads/master | <file_sep>'use strict';
var app = app || {};
(function(module) {
const mainPage = {}
let map, infoWindow;
let pos = {};
let des = [];
let elevPos = {};
let statusE = false;
let statusD = false;
let hours = [];
let ordSearchResults = [];
let phone = [];
let markers = [];
localStorage.setItem(... | f18e9e64afddf273467a4c6646d83d3e5de9300c | [
"JavaScript"
] | 2 | JavaScript | Iamheathsmith/Elevation-app | f937ab49eab3fbbc465e715debdbbaf436a012f9 | 6d3fc969fa985b2c164145f697166742391da842 |
refs/heads/master | <repo_name>lucasvo/bellman-in-wasm<file_sep>/out/index.js
const js = import("./bwsm");
js.then(js => {
js.run_mimc();
});
<file_sep>/out/bwsm.d.ts
/* tslint:disable */
export function run_mimc(): void;
<file_sep>/README.md
# bellman-wasm
This is a work in progress to get bellman to generate a circuit and return it'... | 6e6d001a983c426da07782d3498a1b89e68d8c0e | [
"JavaScript",
"TOML",
"TypeScript",
"Markdown"
] | 4 | JavaScript | lucasvo/bellman-in-wasm | bf2456d1331d12d58b34db3dfc6517b6fcc8e45f | db5dcd5f1b3dc41c66eff5582f3fa8ea93f1f827 |
refs/heads/master | <file_sep><? php
/**
*
*/
class Person
{
function __construct($name,$sex)
{
this->name = $name;
this->sex = $sex;
# code...
}
function showName()
{
echo this->name;
}
}
$s1 = new Person('dzq','renyao');
$s1->showName();
?><file_sep>var set_But = document.getElementById('set_but');
... | f6a7011509ffcc2d201aa553afca3e86ec780bc1 | [
"JavaScript",
"PHP"
] | 3 | PHP | HbeH/WebLearn | f0ec8a6a31400320a0a9da713be4ab4fe1c3a87b | 26c8935546979dddd4230cbec11a0396b8479d25 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.