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>SuperBo/TMEMotorwayProcessor<file_sep>/src/create_txt_anno.cpp
/*
* Create annotation file for TME Dataset for using with Caffe-SSD
* Author: SuperBo <<EMAIL>>
*/
#include <iostream>
#include <fstream>
#include <vector>
#include "TMEMotorwayProcessor.h"
string data_path;
string anno_path;
using namespa... | 6d9e51092706600ba788c14f0c7ab3f046fc1cfc | [
"Makefile",
"C++",
"INI"
] | 9 | C++ | SuperBo/TMEMotorwayProcessor | 74983be8ea66ee33d0af005fa0197ff4e15f714d | a578e01794b7e9da45f06906c079ff501d61bd84 |
refs/heads/master | <repo_name>outofjungle/knife-info<file_sep>/spec/unit/info_spec.rb
require File.expand_path('../../spec_helper', __FILE__)
describe KnifeInfo::Info do
let(:username) do
'user'
end
let(:host) do
'test'
end
let(:domain) do
'chef.org'
end
let(:organization) do
'org'
end
let(:url) do... | 253aa4135194f39278c16827a45873154f9e2c40 | [
"Markdown",
"Ruby"
] | 6 | Ruby | outofjungle/knife-info | 43807c75c25f5bd34699441d28d6fb366ce70c53 | 11cd9cc2c97ab8c9bef6e7a83bd1409ca793f68b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using Internship.DAL;
using Internship.Models;
namespace Internship.Controllers
{
public class TicketsController : Controller
{
... | 7f4b3917b0bd9c611bcec7aaa7e762916a6130c9 | [
"C#"
] | 5 | C# | johnnyataisg/Internship | 193e7e3949ecfc29a6c2eea18c05501de76e0fb4 | 8b7a2f9089b4ce1807262d104e2b8b6460702bd4 |
refs/heads/master | <file_sep><?php
require_once './autoload.php';
$logout = filter_input(INPUT_GET, 'logout');
if ($logout == 1) {
$_SESSION['user_id'] = null;
}
if (!isset($_SESSION['user_id'])) {
header('Location: index.php');
} else if (isset($_SESSION['user_id'])) {
echo '<div class="logout"><a href="?logou... | bd22c8a0942db1b550486433bc93f11105368fc8 | [
"PHP"
] | 12 | PHP | jmorriseau/PHPAdvClassFall2015 | fe632484ac35b4105dd1536f02d8fa5d53b8697a | 68dc01514986d57ce4290e19ae159d3cd614abe4 |
refs/heads/master | <repo_name>abraeva98/pairexExercise_nodeShell<file_sep>/cat.js
const fs = require('fs');
module.exports = function (fullPath){
fs.readFile(fullPath, (err, data) => {
if (err) throw err;
process.stdout.write(data)
process.stdout.write ('\nprompt > ')
})
}
| d1009a03b67552c622245f0eafe3aa0b236b868a | [
"JavaScript"
] | 1 | JavaScript | abraeva98/pairexExercise_nodeShell | 80440b2edbd48d21d56a3c8a603cecc60770d85b | aca35d4191d718ea76ae3fb3b70a5fb7894c29a4 |
refs/heads/master | <file_sep>package AAR;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.TreeMap;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import org.mcavallo.opencloud.Cloud;
import org.mcavallo.opencloud.Tag;
pu... | 05118f8a127de1642aa895062129510431452fac | [
"Java"
] | 3 | Java | Nik0l/Valuation | ab98db28686d67ec85f33bbee48b2db028355d4b | cc0f34871eff4c59fbc18fab630b4857d68adb89 |
refs/heads/master | <file_sep>package br.com.isaccanedo;
import com.amazon.sqs.javamessaging.ProviderConfiguration;
import com.amazon.sqs.javamessaging.SQSConnectionFactory;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.sqs.AmazonSQSClientBuilder;
import com.fasterxm... | 235b332b662d1b176a80361b0ec6f44444594eac | [
"Markdown",
"Java",
"INI"
] | 3 | Java | isaccanedo/spring-cloud-aws-sqs-jms | 9be0d8d1f74a9b127dc1dbfa3166c941f39eb0bd | 51feb9efe8480fe271baea21997cd1bd5d9a2975 |
refs/heads/master | <repo_name>MeyCry/flux-template<file_sep>/source/js/app.js
// Generated by CoffeeScript 1.10.0
var $, Category, Main, React, ReactDOM, ReactRouter, Route, Router;
$ = require("jquery");
React = require("react");
ReactDOM = require('react-dom');
Main = require("./flux/views/Main");
Category = require("./flux/views/... | cf88b4b2099dd705cca5ec429bf06b7094bbf396 | [
"JavaScript"
] | 4 | JavaScript | MeyCry/flux-template | 911d36f1123b5cd8c47ab61b77e7499ddb64f574 | b6d9aa2da3325ff8b5ca5c28eaae7c48b8e2a701 |
refs/heads/master | <file_sep>/*jshint esversion: 6 */
// Подключаем необходимые модули
const {
series,
parallel,
src,
dest,
watch
} = require('gulp');
const concat = require('gulp-concat');
const autoprefixer = require('gulp-autoprefixer');
const babel = require("gulp-babel");
const cleanCSS = require('gulp-clean-cs... | 247a58fbee70786f2b598f4fe15474b245da3a0a | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | RZ3DDD/front-project-template | dfdff276da97caba315d8eb51365a1ff4ff7d8f0 | cb0e7783e1b3c3f416d983c5fc422f670d5fa455 |
refs/heads/master | <file_sep>const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
var engine, world;
var ball, rope
var rope2,rope3,rope4,rope5;
var ball2,ball3,ball4,ball5;
function preload(){
// background = loadImage(Newton.jpg);
}
function setu... | 3b7755a6e4f3458e50abb63ff6048f061a98bb33 | [
"JavaScript"
] | 1 | JavaScript | Aditya-Srivastava105/project34 | 3de4da50e1fd4ddf7040f361a1aae8c7a39ec658 | 8dfb03d4a492a062b4c84201686d0374abc17563 |
refs/heads/master | <file_sep>package gmailSpam.webdriver;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
// Singletone pattern example
public class Browser {
public static WebDriver driver;
//private Browser (){};
public static WebDriver getIns... | ce4fc2f11ba069a6f625f670c48b3f059a5774c5 | [
"Java"
] | 2 | Java | Alex-Galavach/GmailSpamBDD | 15461ca4a4aa09147461c0cf601bef74a525f07b | fc777704cd068555aef868790d0b11e30a32436a |
refs/heads/master | <repo_name>barce/exclusive_scope<file_sep>/README.md
exclusive_scope
===============
<file_sep>/app/models/post.rb
class Post < ActiveRecord::Base
# TODO: Look into not even using ActiveRecord
def self.default_scope
raise "Must use .secure_* methods"
end
def self.secure_by_letter(letter)
with_exclusiv... | 558389c05258ffff81d2c904dad9fb0deabb6375 | [
"Markdown",
"Ruby"
] | 2 | Markdown | barce/exclusive_scope | f76131f9239fdeab6e75e57719fcd97b84f5b94c | 7af109feae042ec185f159a09841a222949b0b32 |
refs/heads/master | <repo_name>linyjme/snake<file_sep>/Snake/Snake/snake.h
#pragma once
#include <iostream>
#include "wall.h"
#include "food.h"
using namespace std;
class Snake
{
public:
Snake(Wall& tempWall, Food & food);
// 节点
enum
{
UP = 'w',
DOWN = 's',
LEFT = 'a',
RIGHT = 'd'
};
struct Point
{
// 数据域
int x;
... | 85930e983afa49c84d5c78a6b424f691c22d7260 | [
"Markdown",
"C++"
] | 4 | C++ | linyjme/snake | fb77a768c3078ac0d7a88f040a9522c36289f579 | ae7182cdadd0434cadcd5b5caebf137793627da2 |
refs/heads/master | <repo_name>moonstar-x/react-twitch-embed<file_sep>/src/types.ts
export interface OnPlayData {
sessionId: string
}
export interface OnSeekData {
position: number
}
export interface OnAuthenticateData {
displayName: string
id: string
profileImageURL: string
}
export interface PlayerQuality {
bitrate: numbe... | 612811ddcc1da4f958a2ab2d40dfdb088a584d40 | [
"Markdown",
"TypeScript"
] | 21 | TypeScript | moonstar-x/react-twitch-embed | c198a9f4f08eb58fcb68e06fb59c520cc51fc5db | 0e88f530c57bd074dc19d3cda88c5420e3a1e8a3 |
refs/heads/master | <file_sep>import os
import csv
month_count = 0
total_revenue = 0
this_month_revenue = 0
last_month_revenue = 0
revenue_change = 0
revenue_changes = []
months = []
# Read and open CSV file
csv_path = os.path.join('PayBank', 'Resources', 'budget_data.csv')
with open(csv_path, newline="") as csvfile:
... | 7285a0d10c94fefa5a45d069a75a7e61750c9ceb | [
"Python"
] | 1 | Python | nmansoorabadi/python-challenge | 1d85eecb3e39a4a8df601da51ded692e3927cb1f | e17a13f7cb23ffa0058622e32fc9d9749ef60552 |
refs/heads/master | <repo_name>yarynakor/COVID-19-vs-Pollution<file_sep>/static/logic.js
function numberWithCommas(x) {
return x.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g, ",");
}
// Retrieve data from the CSV file and execute everything below
d3.json("http://127.0.0.1:5000/data", function(covidData) {
console.log(covidData)... | 28905bbdaeac47cde89a19e9897d4fe8c6b8fc73 | [
"JavaScript",
"Python",
"Markdown"
] | 3 | JavaScript | yarynakor/COVID-19-vs-Pollution | 0f72e03de101d35c1953804585083b6aa6c783f0 | e5e90537e1be3df6671b1eacc49a75a9190d0f3b |
refs/heads/master | <repo_name>dheeraj510/722f04ad85d64cdee6e5<file_sep>/README.md
# README
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How t... | 4ca31fbf5e20db1a2c3717d542dc3f4d2a22450b | [
"Markdown",
"Ruby"
] | 2 | Markdown | dheeraj510/722f04ad85d64cdee6e5 | e093a8c343c48a1ef4cf18668d54e87127a4ae6f | 8bb2202178379639455142fbc115e1076b0ade75 |
refs/heads/master | <file_sep>package com.cs.constants;
/**
* Created by olgac on 31/05/2017.
*/
public enum PaymentMethod {
CREDITCARD,
CUP,
IDEAL,
GIROPAY,
MISTERCASH,
STORED,
PAYTOCARD
}
<file_sep>package com.cs.controller;
import com.cs.constants.Status;
import com.cs.model.error.Error;
import com.cs.mo... | 4990a7e94ad926dfd3dd5ee3994e32abbbfd50bc | [
"Markdown",
"Java"
] | 11 | Java | olgac/cs-api | d709de9ea460ce27f31f2594e41cd8d116345f72 | 86c688aedd3c467ba45e0f47d1a53ca32cb7c10e |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TouchableOpacity,
Image
} from 'react-native';
import ClubView from './ClubView';
import * as axios from 'axios';
import PropTypes from "prop-types";
import { update } from 'tcomb';
import Overlay from 'react-native-modal-ove... | daaa20f9e8e772634591abe88efb4749d1d76e7f | [
"JavaScript"
] | 15 | JavaScript | sangeunAhn/dLite_Prototype | 5594ab3cd7649bb61bf4316d288df0eee252536a | 026f6a74e680e2a219c529f112a8f68144fbf3db |
refs/heads/master | <repo_name>drawwithcode/2019-09-DoksaVPC<file_sep>/sketch_start.js
//variable for the start button
var startButton;
function setup() {
frameRate(12);
createCanvas(windowWidth, windowHeight);
//creating the button
startButton = createButton("DONE");
}
function draw() {
background("RosyBrown");
//drawing ... | 6d4f61c80a96ec72e67d0d8c5893d03aac27f1ba | [
"JavaScript"
] | 2 | JavaScript | drawwithcode/2019-09-DoksaVPC | 3568ce0033d7cc22ae826720d5c767f369744280 | f0c7a6c91aa3b6701d9b1f212c435dc73729bf73 |
refs/heads/master | <repo_name>izelnakri/bookshelf<file_sep>/index.js
var express = require('express');
var pug = require('pug');
var fs = require('fs');
var app = express();
var dataInMemory = JSON.parse(fs.readFileSync('data.json').toString())['books'];
function findBook(slug) {
// iterate through the slugs in the array of object
... | bfdc95c30f361201c79a608321a4c5ad67695a89 | [
"JavaScript"
] | 1 | JavaScript | izelnakri/bookshelf | ea6845fddaa6d286769a73edf8cc0f43894fe282 | 829c5407d5ed5e456ecd8947c9dcdb9c223737aa |
refs/heads/main | <file_sep>const stringName="<NAME>";
console.log(stringName.length); | 5d8c3e58cd3deff5d0cdc90c56af0b31485cd9c1 | [
"JavaScript"
] | 1 | JavaScript | masum-diucse/string-method | afe172e6c5c0597f23373e8725f3917df60de6cd | 1d07809e93fc6edad8ada3d92a803277f207a2e7 |
refs/heads/master | <file_sep># vue-transition-demo
一些 Vue 官方的 tarnsition 组件案例,以及和第三方库结合的使用方式。
<file_sep># 第一次关联两个仓库
git init
git add .
git commit -m "first commit"
git remote add github <EMAIL>:uphg/vue-transition-demo.git
git remote add gitee <EMAIL>:uphg/vue-transition-demo.git
git push github master:master
git push gitee master:mast... | e98097346c30ae97a7c37fb76dbc95acffe58691 | [
"Markdown",
"Shell"
] | 3 | Markdown | uphg/vue-transition-demo | a9853c14f09edb66cf85a001c3d121339e75df81 | d4df28363278eb30acb6f41c5b1c0075bf577b4a |
refs/heads/master | <repo_name>pawel-prochniak/StateMachine<file_sep>/StateMachine.playground/Contents.swift
import Foundation
public class StateMachine<S: State, E: Event> {
public typealias EventToState = (E, S)
public private(set) var state: S
private var eventsTransitions: [E : [Transition<S>]] = [:]
private var condi... | 1fd592574fc5e1a0baf82ade3f50146c68c56a04 | [
"Swift"
] | 4 | Swift | pawel-prochniak/StateMachine | ceacc45a733eac083f3be7d98bfba11528b68631 | b94d0db68835aef88cb7dd36953a1df4def623dc |
refs/heads/master | <repo_name>AlexanderC/DiseaseControl<file_sep>/Dockerfile
FROM mhart/alpine-node:12
WORKDIR /web
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN mv .docker.env .env
EXPOSE 8000
CMD [ "node", "./web/server.js" ]
<file_sep>/web/server.js
const path = require('path');
const fs = require('fs-extra');
const ... | 150858114cca80888b1803aa94a80931b499981e | [
"JavaScript",
"Dockerfile",
"Markdown",
"Shell"
] | 38 | Dockerfile | AlexanderC/DiseaseControl | 43a7849568471b50bce97c2283769d7320dba68a | d36fb2089e880af06b50bf7d99ddbab23605a52a |
refs/heads/main | <file_sep>a=0
b=0
try:
a=int(input("enter a number"))
except:
print("error")
b=int(input("enter anthor number"))
div=0
div=a/b
print(div)
<file_sep>l=[1,2,3]
t=(1,2,3)
d={"name":"ashna","age":23}
c={5,7,"ash"}
print(d)
print(d["name"])
d["name"]="anu"
print(d["name"])
s={}
a=input("enter name")
b=int(input("age"))
... | 47e33a4fd5fe1a513c5535227e5efa9d36d63ee2 | [
"Markdown",
"Python"
] | 5 | Python | Ashna-mansur/Enterprise-employee-operations-management | 8a6f03a2875f68141eb41d10c392edf0009dfc9e | 0f8eead7c8b0e1583f71fcc78f5f9b7d13ad2c9a |
refs/heads/master | <file_sep>"""
pip install git+https://github.com/brennerm/python-apt-repo.git@master
pip install apt-repo
Python2
ImportError: No module named lzma
import urllib.error
ImportError: No module named error
Sources listed at
https://github.com/OSGeo/OSGeoLive/blob/master/sources.list.d/ubuntugis.list
deb http://ppa.la... | edce6d895dadd16742260532aa153bff7c64ee35 | [
"Python",
"reStructuredText"
] | 3 | Python | geographika/GeoPythonNotebooks | 288a0ed21820f4ad8ecfd989c288992122d9c46c | a1143a204b995b344cbf8cda457b99fc4cb3545f |
refs/heads/master | <repo_name>jprogrammers/SpringSample<file_sep>/src/main/java/com/jprogrammers/spring/ConfigurationRunner.java
package com.jprogrammers.spring;
import com.jprogrammers.spring.config.Configuration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Created by alireza on 9/19/15.
*... | 03c67b156b1555931375c34476d1a40b65e4a18f | [
"Java"
] | 2 | Java | jprogrammers/SpringSample | ceed4bc53433ca3b02b61ab27782369e064ba0d6 | 66ccf6beb862a5640e606003ec25c3f4da568a6a |
refs/heads/master | <repo_name>Hdonge/Algorithms<file_sep>/Array/word-search_79.js
/**
* @param {character[][]} board
* @param {string} word
* @return {boolean}
*/
var exist = function(board, word) {
let rows = board.length;
let columns = board[0].length;
for(let i = 0; i < rows; i++){
for(let j = 0; j < c... | 111448ca661296d1a03f13644be4a31472a27a67 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | Hdonge/Algorithms | a9f1e3e1825ebc6b3252409b74640c4c7dc4db07 | bd8bc60a170e0e69f90d75f69275024dae66b9ef |
refs/heads/master | <repo_name>Mikhail1988/interview-task<file_sep>/src/main/java/my/infobip/task/data/ShorterStorage.java
package my.infobip.task.data;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public interface ShorterStorage {
String save(String url, String userName, int redirectType);
Shorter... | e86375a17913ab193e03405e34fc1fea6aa36d24 | [
"Java"
] | 3 | Java | Mikhail1988/interview-task | ff39dc52ac823485b6b6f904801ad30e164bfda3 | f2c09a213e0fe97c557e83d8f6d12a1da463c96e |
refs/heads/master | <repo_name>veditor/veditor<file_sep>/packages/editor/src/plugins/utils/predictions.js
/**
*
* @param {string} tagName
* @return {function(Element): boolean}
*/
export function isElement (tagName) {
tagName = tagName.toUpperCase()
if (isElement.map[tagName]) {
return isElement.map[tagName]
}
const predic... | 81decf1978bfe5af936b71092b4d7b37b6af0121 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | veditor/veditor | 2af696811fad92e4442b7c73ea1b71973ab5c1f9 | c0f685eb81922e1372829055f8901800d2e36e31 |
refs/heads/master | <file_sep>import csv
import hw2
from sklearn.svm import *
def get_svm_accuracy(train_data, train_labels, validation_data, validation_labels, kernel):
linear_svc_instance = SVC(kernel=kernel, gamma=1.2)
linear_svc_instance.fit(train_data, train_labels)
validation_accuracy = linear_svc_instance.score(val... | 35b8eff04b26ba6e70cf179a7fdb9acc24200ae8 | [
"Python"
] | 39 | Python | akafri/machine_learning | 142ecdd57b31991b766218c5bf219cc2284c1bd9 | 534d3bfdff8fa685ea7b8fc2155df45eaae2731d |
refs/heads/master | <file_sep>import { buildCustomElementConstructor } from 'lwc';
import Header from 'sb/header';
import Services from 'sb/services';
customElements.define('sb-header', buildCustomElementConstructor(Header));
customElements.define('sb-services', buildCustomElementConstructor(Services));
<file_sep>import { LightningElemen... | 0de34f37842d4792b498117e6222fe607e6f7cd1 | [
"JavaScript"
] | 2 | JavaScript | ebordeau/sbm-www | 6084aee6858deb7b831aae3457c4413f1385a6dc | b39c18f230a66dc340cfd18e082cd8c7201840d6 |
refs/heads/master | <file_sep># shellcheck shell=bash
field description "Modern, cross-platform, distributed IRC client based on the Qt framework."
field homepage https://quassel-irc.org
field license "GPL-2.0|GPL-3.0"
field version "0.0.0"
field architecture.\"32bit\".url "_"
field architecture.\"32bit\".hash "_"
field architecture.\"6... | 8d908ea61e63546d24fcb41e5ff7fed1a30fba26 | [
"Markdown",
"Shell"
] | 10 | Shell | icedream/scoop-bucket | e9edc82ebc9f83266024cc155739813c949a67f6 | 8d790aaca9a31aa101b7d054de31ea5dc5c52278 |
refs/heads/master | <repo_name>ling0322/troubadour<file_sep>/QQClient.py
# -*- coding: utf-8 -*-
'''
Created on Jun 18, 2011
@author: ling0322
'''
import tornado.web
import tornado.auth
from DB_sqlite3 import DB
import urllib
from tornado import httpclient
import logging
import tornado.escape
import base64
import time
... | c81369db65bb3c5c2985a1ddc37d115bf6be6848 | [
"JavaScript",
"Python"
] | 5 | Python | ling0322/troubadour | 6b1f858d3ed296e6a99428cda66118a036764404 | 3728dc11521c225c19b7a730279ef0cf2ae4049f |
refs/heads/main | <repo_name>santhosharani/student-info<file_sep>/delete.php
<?php
session_start();
$roll1=$_SESSION['roll'];
$con=mysqli_connect("localhost","root","","student_registration");
$row="DELETE FROM student WHERE Roll_number='".$roll1."'";
$re=mysqli_query($con,$row);
echo "<script>alert('Account deleted successfully,'... | 241afb169b900e1dbaff512b0bd61b044bff9908 | [
"PHP"
] | 5 | PHP | santhosharani/student-info | 7939b5d22c0adc7e615f06cd4b64106cb8715d25 | 33828358415e9ec10f9c0f8cc6663f87af80789e |
refs/heads/master | <file_sep>Collection of go tutorials found over the internet
<file_sep>Taken from https://www.toptal.com/go/go-programming-a-step-by-step-introductory-tutorial
<file_sep>package funding
type Fund struct {
// private because lowercase
balance int
}
// Function returning a pointer to a Fund struct
func NewFund(... | c9a5cab054966fe405aafe15f4df03c07b5715f4 | [
"Markdown",
"Go"
] | 3 | Markdown | lilorox/go-tutorials | 7d6b7b5d07872cc5f839e0951a2082fcc3e577d3 | 29e741a8db3df87dacd77424ed28da03e6bf3a6f |
refs/heads/master | <repo_name>fay3r/Unforgotted_Debts_client<file_sep>/app/src/main/java/com/example/udclient/HttpSevice.java
package com.example.udclient;
import com.example.udclient.classes.LoginDto;
import com.example.udclient.classes.MeetingDetailsDto;
import com.example.udclient.classes.MeetingListDto;
import com.example.udclient.c... | 8858aa57548b33e34892c704c96bd97589cbc623 | [
"Markdown",
"Java",
"Gradle"
] | 3 | Java | fay3r/Unforgotted_Debts_client | 90169eca0b2c4cfbf497d01bd0fa0c9dc6bafe65 | a022406de9d3c1bc7a1b7cf086a724a508f34042 |
refs/heads/master | <file_sep>'''
1.先将滑块验证的图片给下载下来
'''
import selenium
import time
from selenium import webdriver
import lxml
from lxml import html
from PIL import Image
from io import StringIO
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.c... | 189564e6ac725380aeb661a933d3d0359d5413db | [
"Markdown",
"Python"
] | 2 | Python | bluewold/slideCpatcha | 95f9337bcd19c83e39d09e13aefa1793738f9c90 | 01fd2dbf4f8e855c79fd45c38ef58829f584991a |
refs/heads/master | <repo_name>Lukasz-Kowalik/AuthenticationWithJWT<file_sep>/BackEnd/Repositories/IMongoRepository.cs
using BackEnd.Helpers;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Threading.Tasks;
namespace BackEnd.Generics
{
public interface IMongoRepository<T> where T : IDocume... | ef3ef8a0200d8630a4e6c77fe6d227458d2e6c25 | [
"Markdown",
"C#"
] | 20 | C# | Lukasz-Kowalik/AuthenticationWithJWT | 857cf412b4be8a1c7b0a8af09df143cc1d93d0d7 | 738aaef7df87b40ace07cd48cf023bde194d3c91 |
refs/heads/master | <file_sep># Ctlos keyring gpg-key
pkgname=ctlos-keyring
pkgver=stable
pkgrel=2
pkgdesc='ctlos PGP keyring'
arch=('x86_64')
url='https://github.com/ctlos/ctlos-keyring'
license=('GPL')
install="${pkgname}.install"
source=('Makefile'
'ctlos.gpg'
'ctlos-revoked'
'ctlos-trusted')
sha256sums=('SKIP'... | c786899229b93225c79fc89b434e18691360cfb9 | [
"Markdown",
"Shell"
] | 2 | Shell | ctlos/ctlos-keyring | fd41f36c19c30903a950942b2ca9589db5d8b0c1 | dbf81c037be90c42adf2ced0804baaab516f9a58 |
refs/heads/master | <repo_name>heintzyuan/Face-Detection<file_sep>/DetectShush.py
import numpy as np
import cv2
import os
from os import listdir
from os.path import isfile, join
import sys
def detectShush(frame, location, ROI, cascade):
mouths = cascade.detectMultiScale(ROI, 1.05, 14, 0, (2, 2))
for (mx, my, mw, mh) in mouths:
... | 2fb77496f6eb46a7b25d5567117f86c8dcfc1607 | [
"Python"
] | 2 | Python | heintzyuan/Face-Detection | 06b86ed2f58f11515e2ecf9a524b6b909f868149 | ffe63cc16fa659c40f24795cfeea9553831fa27b |
refs/heads/main | <repo_name>Ralph250/SUPHERO-BUILDER<file_sep>/main.js
var canvas = new fabric.Canvas("myCanvas");
var block_width = 30;
var block_height = 30;
var player_x = 0;
var player_y = 0;
var player_object = "" ;
var block_image = "";
function player_update(){
fabric.Image.fromURL("player.png", function(... | 1b27b81b3d52f89c6f6e0611a3ea5e8717542a7c | [
"JavaScript"
] | 1 | JavaScript | Ralph250/SUPHERO-BUILDER | 4778fb2323b5322535b8a1e0d3dd497dbff3b6d9 | 5d6d80270a3dd858c6c201785ac6ea9fa4626982 |
refs/heads/master | <file_sep>var $TABLE = $('#table');
var $BTN = $('#export-btn');
var $EXPORT = $('#export');
$('.table-add').click(function () {
var $clone = $TABLE.find('tr.hide').clone(true).removeClass('hide table-line');
$TABLE.find('table').append($clone);
});
$('.table-remove').click(function () {
$(this).parents('tr').d... | f101400cd2a0aa1a4b0d5be12942a6e00d8eadd3 | [
"JavaScript"
] | 1 | JavaScript | rizwanhaque1994/apilocks-site | c082416a073dcb10207c8bdf014a411f0bd8c529 | a42a12bff91469ce90a6a1376537292c9311ab4b |
refs/heads/master | <repo_name>esrfree/Ironhack-lab-javascript-greatest-movies<file_sep>/starter_code/src/movies.js
/* eslint no-restricted-globals: 'off' */
/************** TOOLS ****************/
// Utility function to sorted an array
function ordered ( val1, val2 ) {
return typeof val1 == 'number' && typeof val2 == 'number' ? val1... | 9a9e01355cea99ad974d91ab3b5952b68e282602 | [
"JavaScript"
] | 1 | JavaScript | esrfree/Ironhack-lab-javascript-greatest-movies | bac348c388b919df46e99aa0da113999145c4281 | 78a448af6a6b7ebae1ba857d80ec7513822ac265 |
refs/heads/master | <repo_name>meadhikari/Link-Extractor<file_sep>/hello.py
from flask import render_template
from flask import Flask,request
import mechanize
br = mechanize.Browser()
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/links/', methods=('GET', 'POST'))
def link():
url = ... | d344181619ef8766dc46f68a7ccafb738af99145 | [
"Python"
] | 1 | Python | meadhikari/Link-Extractor | 857fd402e7eee1eed35f579f42c9bfbcb53aaabe | c94f5c52edf4a33c1f22072128ddf0e583c92ec1 |
refs/heads/master | <file_sep>//
// AppDelegate.swift
// Assignment2
//
// Created by skistams on 1/24/17.
// Copyright © 2017 skistams. All rights reserved.
//
// I give right to the instuctor and the University with the right to build and evaluate the software package for the purpose of determining my grade and program assessment
//... | 7a0461f81afa5b0917f7434d14dcb7884e4337e6 | [
"Swift"
] | 3 | Swift | susmithak16/Assignment2 | 78c9b1d55580f938baa02b1479328950108b204a | c5a565f5d9ea2dc7cc3be67e493d6e77aed15362 |
refs/heads/master | <file_sep>import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class VoteLogistic {
public static void main(String[] args) throws FileNotFoundException {
List<Example> examples = new ArrayList<>();
examples = ... | e5dc983b684c888f7f74bc12b79f48badc74e00f | [
"Java"
] | 3 | Java | waynexu1998/LC | 34c4252664ddf312eb8ad0688da6804c77602c05 | 91bbb76ea8994eba41e7c78a286e61e87ddc4110 |
refs/heads/master | <repo_name>ekcasey/bosh-bootloader<file_sep>/commands/version_test.go
package commands_test
import (
"bytes"
"fmt"
"runtime"
"github.com/cloudfoundry/bosh-bootloader/commands"
"github.com/cloudfoundry/bosh-bootloader/storage"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Version",... | ea483791b84f099e03327d95b9c33f472e7719ef | [
"Markdown",
"Go",
"Shell"
] | 235 | Go | ekcasey/bosh-bootloader | 8f334c4fc2740e4114cef30e9b3320b61c36a25d | 5426c8fb53d047455f058f8c046ce9be5fb9eb43 |
refs/heads/master | <repo_name>Inoeng85/pawoon_test<file_sep>/rest_client/application/views/template.php
<div id="container">
<h1>REST Client Tests</h1>
<h3>Accessing the REST Server Using the Curl Library</h3>
<br/>
<div id="body">
<h4><a href="<?php echo site_url('curl-test/get_users'); ?>">Testing a GET all user requ... | bef8721dd61c0d779bfadea645e9d7d2b2a31b69 | [
"Markdown",
"SQL",
"PHP"
] | 10 | PHP | Inoeng85/pawoon_test | eca805ce787ae4a2a7450f10ba79569e4fcef849 | 52c79a86f7c5969e5901b82903611224709ba69a |
refs/heads/master | <repo_name>mdunleavy0/Labyrinthine-Caves<file_sep>/Assets/Scripts/PosRot.cs
using UnityEngine;
public class PosRot {
public Vector3 pos;
public Quaternion rot;
public PosRot(Vector3 pos, Quaternion rot) {
this.pos = pos;
this.rot = rot;
}
public static void DrawPosRot(PosRot pr) {
... | 4330b85d1c2b322cc25d4e1b571811624a3cc8c6 | [
"Markdown",
"C#"
] | 6 | C# | mdunleavy0/Labyrinthine-Caves | c54e6c4bf52fae6161cd6223721200b67dab6652 | 7794bef686582e477e47bbbc7f7bf9e60a4c36ca |
refs/heads/master | <file_sep>using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using System.Collections.Generic;
using System;
using System.Linq;
namespace KazooQuestCS
{
public class World
{
public Tile[,] Tiles;
private List<WeakReference<Tile>> nonFlo... | 91acf3f2b36c2226545ab12da28e44912796250a | [
"C#"
] | 16 | C# | Awoonar/KazooSharp | bd3deffe5298872344b1903356733017dbdbce33 | f96351d2e2e16faee1cac2fe5adc5e061a9b1a04 |
refs/heads/master | <file_sep>var work = {
"jobs":[
{
"employer": "Frontier",
"title": "sys admin",
"location": "Gresham, OR",
"dates": "Apr 2016 - Present",
"description": "troubleshoot and extend application"
},
{
"employer": "Verizon",
... | f4980244f8ed88138431ca2274b0fa17c1a06c56 | [
"JavaScript"
] | 1 | JavaScript | victorjz/frontend-nanodegree-resume | e20455e0b8632eece44e2081ac84ba066f28eabb | 86f364e11510d91a5f035805a24a65904debc7ec |
refs/heads/master | <repo_name>mixereqv1/cars_without_sort<file_sep>/add__user.php
<?php
session_start();
include_once('connect.php');
include_once('functions.php');
// if(checkPrivileges($mysqli,4) == true) {
$user_name = $_POST['user__name'];
$user_password = $_POST['user__password'];
$user_role ... | d0154eabaea079327a71a7041516f5f928aa4334 | [
"SQL",
"PHP"
] | 14 | PHP | mixereqv1/cars_without_sort | 606841916d169db157ed01841beb31a9807cc6fe | 2bc36a9f29547ba5c8bcb48580f7822fa8187c9f |
refs/heads/master | <repo_name>LahariReddyMuthyala/StudentManagement<file_sep>/classproject/onlineapp/admin.py
from django.contrib import admin
# Register your models here.
from .models import College, Student
admin.site.register(College)
admin.site.register(Student)
from rest_framework.authtoken.admin import TokenAdmin
TokenAdmin.raw... | 514fefbe4a5ba8302df6443bcfd70283be0a5bc5 | [
"Python"
] | 14 | Python | LahariReddyMuthyala/StudentManagement | 0eb21d90336292a554657d35ef42ac11f2b7f212 | 6a002c710a211056800b785e53dbb137357d87a2 |
refs/heads/master | <file_sep>#!/bin/sh
#
#
# Quick and dirty way to run picard metrics on entire set of files
#
# Created by <NAME> on 6/23/14.
#
usage()
{
echo "WGS_analyze.sh -r Reference_genome.fa -1 Read1.gz -2 Read2.gz"
}
parse_arguments()
{
#Grab Read1 and Read2
echo "blah"
}
#Trim adaptors and write trimmed reads
trim_a... | 687a47a1760c1bdd3682f1ca714a8adac8f0a5af | [
"Markdown",
"Shell"
] | 3 | Shell | bkudlow/analysis | cfb83f2a370d56cb046a5d81f44000c857d019ab | 3ad022eeccff4bf9c5e8468b7ad1b4a827ac9883 |
refs/heads/master | <file_sep>$(document).ready(() => {
$("#submit").click(function(){
let a=$("#idTextBox").val();
let b=$("#titleTextBox").val();
let c=$("#yearTextBox").val();
$("#cardContainer").html("");
if((a==="")&&(b===""))
alert("Please enter atleast Id or Title");
else{
... | 1ad89cea93a7821ed2c49dd9c52db6f2b9ba815b | [
"JavaScript"
] | 1 | JavaScript | Ayush-jaiswal/MovieApi | 55a1e0d0b315ed5c1b83a017ae2c0304224e95a7 | 278342fa4d88964fe7a960966fb63c253d3883b4 |
refs/heads/master | <file_sep><?php
/**
* The template for displaying Projects on index view
*
* @package wpportfolio
*/
// get Jetpack portfolio taxonomy terms for portfolio filtering
$terms = get_the_terms( $post->ID, 'jetpack-portfolio-type' );
if ( $terms && ! is_wp_error( $terms ) ) :
$filtering_links = array();
fore... | eee918a4fc5a8208f46717c6cbac97f76d7a9dea | [
"PHP"
] | 1 | PHP | diversethemes/portfolio | f91784e33bd41a1e733e469b39f2b9d200522fbd | 8e6241d1d1c63801774b6a698cc13a09fe3613fe |
refs/heads/master | <file_sep>var lastStopTime = new Date()
var lastStop = [0,0,0,0]
var lastStopDuration = 0
function printTime(time) {
return time.getDate() + "/"
+ (time.getMonth()+1) + "/"
+ time.getFullYear() + " @ "
+ ('0' + time.getHours()).substr(-2) + ":"
+ ('0' + time.getMinutes()... | 18135ca6df74ccd22bdb2a9684fe24ba6fa1a5d5 | [
"JavaScript"
] | 1 | JavaScript | JoaquinFernandez/SAPDemo | 5376c0051f0182a0228ff1ce63ddf61ba70e92ae | d146ef1f7a14f502ba9431211e1e5ea7311263c9 |
refs/heads/master | <repo_name>kritikaumashankar/rails_postit<file_sep>/app/controllers/post_its_controller.rb
class PostItsController < ApplicationController
def index
@post_its = PostIt.order(created_at: :asc)
end
def show
@post_it = PostIt.find(params[:id])
end
def new
@post_it = PostIt.new
end
def create
... | e6009254d88085815d321dd3de36c61dc4b23ca9 | [
"Ruby"
] | 1 | Ruby | kritikaumashankar/rails_postit | 4205a154652df22a495fae16a7d9742c385d8d39 | 0d2da69dba4e711be77bc48993d6e68d6001f788 |
refs/heads/master | <repo_name>shibiana/myWebserver<file_sep>/webserver.h
#ifndef WEBSERVER_H_
#define WEBSERVER_H_
//定义webserver类
#include <sys/socket.h> //socket
#include <netinet/in.h> //socketaddr_in htons等
#include <arpa/inet.h> //inet_pton等
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#includ... | 83d87868647f9946722c599bc5913a023fc2528b | [
"C++"
] | 1 | C++ | shibiana/myWebserver | 1530c07b6fb3bbcff50db684ef67dc12104977cf | 4d8713d5b8e00057d49e11ba651c521cb7a0c5ff |
refs/heads/main | <repo_name>pravinkumarsp/CS50-C-Programming<file_sep>/new.c
// Online C compiler to run C program online
#include<cs50.h>
#include<stdio.h>
int main(void)
{
int n;
do
{
n = get_int("Height: ");
}while (n <1 || n>50);
for(int i = 0; i < n; i++)
{
for(int j = 0; j < n; j++)
... | ff786b6ff02a95a4990c00055d81445ff7571aa0 | [
"Markdown",
"C"
] | 7 | C | pravinkumarsp/CS50-C-Programming | 30e896d09ce9795fb69c4d09915a517ec50fdd69 | ea18cafecad22085ce477afbfdaedc931767ca85 |
refs/heads/master | <file_sep>/*
A fork of CanonicalArduinoRead by <NAME>
www.chrisheydrick.com
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
#include <termios.h>
#include <errno.h>
#include <sys/ioctl.h>
#define DEBUG 1
int setup(int * pfd, char * tty_dev, ... | 0c8d597f1fca2b9249d90632fef1f32387766650 | [
"C"
] | 1 | C | mattlkf/Canonical-Arduino-Read | e5b7485c2be1492a7af47bbdd451610ffdbca2d1 | cd2fc5dfa38a5d984ac68e028af2a59a396133c8 |
refs/heads/main | <file_sep>import React from 'react'
import HeaderLine from '../../common/components/HeaderLine'
const User = () => {
return (<div>
User
</div>)
}
export default User<file_sep>import styled from 'styled-components'
const HomeWrapper = styled.div`
box-sizing: border-box;
height:100%;
`
export {
HomeW... | 660a56a57625e79e9b03a5129e73fe8add2075a7 | [
"JavaScript"
] | 25 | JavaScript | publicjob/music-player | 97394dc64fb3f2bebcb050bd15a0dfb6c036514d | 5452d622cd775996681b004699a86fa6d710d061 |
refs/heads/master | <repo_name>Brando-Commando/TARS<file_sep>/TARS.py
# This will be a Personal Voice Assistant following various tutorials listed below:
# https://www.geeksforgeeks.org/personal-voice-assistant-in-python/
# It seems that several aspects of the tutorial are outdated, and those aspects need to be redone
# What needs to be ... | 75d21c42c7409aaadbb550bbf631c988ec18de76 | [
"Markdown",
"Python"
] | 2 | Python | Brando-Commando/TARS | 28dff3a78b7b6082699b1f8e36c0c50ea38784af | d5c43ce50dc4bec45f8be66862df256f5bf268b1 |
refs/heads/master | <repo_name>jamesmehorter/honeycomb<file_sep>/php/When v3/When.php
<?php
/**
* Name: When
* Author: <NAME> <<EMAIL>>
* Location: http://github.com/tplaner/When
* Created: September 2010
* Description: Determines the next date of recursion given an iCalendar "rrule" like pattern.
* Requirements: PHP 5.3+ - makes ex... | 84de0749cd45d471beb78ab1fbdb0afe46d247de | [
"Text",
"PHP"
] | 14 | PHP | jamesmehorter/honeycomb | 11c117fe412d5626e2f498da060b7700ada8cb70 | 2c68912810c09a55fb6b9545b42d6e014f17b769 |
refs/heads/master | <repo_name>magicst0ne/go-rsubl<file_sep>/README.md
# rsubl
## Description
Edit files on a remote server over ssh in Sublime 3
### Binary install linux
```bash
curl -LJO https://github.com/magicst0ne/go-rsubl/releases/download/lastest/rsubl-linux.tar.gz && \
sudo tar -zxf rsubl-linux.tar.gz -C /usr/local/bin
```
<fil... | 6a85660456115edf32cfaf54be506f301f2d8c1d | [
"Markdown",
"Go"
] | 3 | Markdown | magicst0ne/go-rsubl | 52a73953e18b8d0f63fea83df901e1abc1614270 | b6b234c375cbb720908bb995c0082f28a1fed121 |
refs/heads/master | <repo_name>Baton1956/HomeWork401<file_sep>/src/main/java/ru/geekbrains/main/site/at/HomeWork/DZ1/Start.java
package ru.geekbrains.main.site.at.HomeWork.DZ1;
public class Start {
}
<file_sep>/src/main/java/ru/geekbrains/main/site/at/HomeWork/DZ1/Road.java
package ru.geekbrains.main.site.at.HomeWork.DZ1;
public class R... | 83509f55643fdc5cc2c8558651448bdef9da6f49 | [
"Java"
] | 6 | Java | Baton1956/HomeWork401 | 1466cffaddc35ed0a93cb20e4124d6ff9ea61ab7 | 4be9b4e96d6f94376eb5f2b7859ce03b739608e3 |
refs/heads/master | <repo_name>Patrick-Ren/search-form<file_sep>/src/components/App.js
import React from 'react';
import SearchForm from './SearchForm';
import DataTable from './DataTable';
import ErrorBox from './ErrorBox';
import { GlobalContextProvider } from '../context/GlobalContextProvider'
import '../css/App.scss';
function App() ... | 28b4918824f7c8b37e05197d786bc1a3fab2d3a3 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Patrick-Ren/search-form | cc85a8b62dcc8f3dc72357dee050092ee632e3aa | 53d2fe11749197cc9dc54fc100999381fb73d9ac |
refs/heads/master | <repo_name>gutaoainibei/ShopSSHE<file_sep>/src/com/gt/model/Product.java
package com.gt.model;
// Generated 2015-9-22 20:01:58 by Hibernate Tools 4.0.0
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import s... | 6b0ee5c229d5094a37ad9a478312f8789688d061 | [
"Markdown",
"Java",
"INI"
] | 23 | Java | gutaoainibei/ShopSSHE | b93b356f6ab59691da7a34e8c1ee0c4861d44434 | 0ead90df3d0c658d2afd9b731b4de850d0d5a41d |
refs/heads/main | <file_sep><?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBooksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('books',... | 2f9dde7a079dabc93ad14971b1a1c63feb23f877 | [
"Markdown",
"PHP"
] | 8 | PHP | joyanbarai/book-tracker | 424b2d002d95f91afb75e5745d924418da7fe5c7 | 5ea979fe7f1d2606dd8f09daa496a3a8a5a7b043 |
refs/heads/master | <repo_name>ecutler718/pingpong<file_sep>/Objects/ping_pong.cs
using System;
using System.Collections.Generic;
namespace PingPongList
{
public class PingPongGenerator
{
private int _userInput;
// private int _id;
private static List<string> _items = new List<string> {};
public PingPongGenerator (in... | 7df5e69e27ea9a173424f1944853096e4c88ff84 | [
"C#"
] | 2 | C# | ecutler718/pingpong | 73e42c11fea64b403517c9a37e6176872501118d | 3971dfc90cd426bf058d8a176027eaf0d5e729b6 |
refs/heads/main | <file_sep>package nepu.metro.tigercard.faircalculationengine.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.time.LocalDateTime;
import java.time.... | 1d2d5993af9a72a07faba2f6ec3d14e0985f2e35 | [
"Markdown",
"Java"
] | 13 | Java | mohitkanwar/sahaj-tigercard | 9423f30d59d259d1cb70c6e85252331fb8c60b77 | b40a484f565c13dde69b940e8e854da78d86235a |
refs/heads/main | <repo_name>AnnaKhanina/fenya<file_sep>/frontend/src/components/App/App.jsx
import { Route, Routes } from "react-router-dom";
import Header from "../Header/Header";
import Footer from "../Footer/Footer";
import HomeScreen from "../../screens/HomeScreen/HomeScreen";
import ProductScreen from "../../screens/ProductSc... | 2a85c34731976b228d2bc7058060bc87a06ce56d | [
"JavaScript"
] | 12 | JavaScript | AnnaKhanina/fenya | ab658ce391c73c218b66e0eb28973ef35e2a98dd | ed6a31d408a6ef2caaf94469adf9287d49fef4ae |
refs/heads/master | <repo_name>michaelPysmenytskyi/home_work<file_sep>/home_work1.js
// 1) Оголосіть три різні змінні за допомогою "let", "const", "var"
let first
const second
var third
// 2) Оголосіть одну змінну якій можна міняти значення і одну змінну якій не можна міняти значення
let changable
const unchgable
// 3) Напишіть 1 комент... | d6fa067a3b17350997aa7a37cbb31a38d6cef3f0 | [
"JavaScript"
] | 12 | JavaScript | michaelPysmenytskyi/home_work | b04dcd7d45e637d51da1dd25443747d779abf311 | 926199c74696ddd7d98b5b64e8215efbe9c056fe |
refs/heads/master | <file_sep>$(function() {
var allow_editing = false;
$('body')
.click( function() {
})
$('.handle')
.click( function() {
allow_editing = !allow_editing;
$(this).siblings('.content').attr('contentEditable', allow_editing);
// save the new contents... | 3b869fbf733a3fddd4a7df04b9e265be16b72f3d | [
"JavaScript",
"Python"
] | 2 | JavaScript | mdenchev/Wiki | 698f158cb8e0335223f50d5c78d0f2fd88e0094d | 02bbf3391c3542ebb5e04d6f8d3f9544ac0428d8 |
refs/heads/master | <file_sep>import { Component, OnInit, ViewChild } from '@angular/core';
import { Router } from '@angular/router';
import { DatePipe } from '@angular/common';
import { UsuarioService } from './usuario.service';
import { FormBuilder, Validators } from '@angular/forms';
import {UsuarioClass} from './usuario.class';
import... | 28e37e4cbe3b32701c037ccd14c93c0c045ff4e8 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | ArgomedoKir/all | 797301ebee66d17b31edc67d5a8f0fcb2911dab0 | 45c333061e912d660134c92a6af0c5f04211dc90 |
refs/heads/main | <repo_name>ujz344/ujz344<file_sep>/39.py
print(549 + 348)
| c51ea6ee177a3ba45cbabdd0ef4ac727c0071e3c | [
"Python"
] | 1 | Python | ujz344/ujz344 | a633622282a6f57e3e6be1fd59e477ef51f9334f | 93de32023ad9d965c5cb682c92c1d9d25e98b637 |
refs/heads/master | <file_sep>COVID19_JSON_DATA_FILEPATH=/Users/albert/Developer/IdeaProjects/COVID-19-DATA-CONVERTOR/output.json<file_sep>package com.ah.covid19.api.model;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
public class Location {
private final String coun... | 62355dbdfe4654010477892c8926c97760a31982 | [
"Markdown",
"Java",
"INI"
] | 4 | INI | alberthhk/covid-19-api | 21edc63d292465fc542145a0035b1656016def7d | 20bf91718e591193fd68872684f442027a2c3502 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include "client.h"
static void initialisation_si_windows(void)
{
#ifdef WIN32
WSADATA wsa;
int err = WSAStartup(MAKEWORD(2, 2), &wsa);
if(err < 0)
{
puts("WSAStartup failed !");
exit(EXIT_FAILURE);
}
#e... | df90e75387ae24793ce4567f8459c4c385d5f6ab | [
"C",
"Makefile"
] | 3 | C | ccenyo/ReseauxClient | d67ef7b4f3a686a8e758aaafd23b11147082f1be | 7a82855256b1e930421f6219fcd98d81c2b18b86 |
refs/heads/master | <file_sep>## Below are 2 functions that are used to create a special object
## that stores a matrix , computes and caches the inverse of the stored matrix.
##`makeCacheMatrix` creates and stores a special "matrix".
##This function also caches the inverse of the "matrix" object.
##Input Parameters: 'x' - An invertible... | 76a4d8dacc32008444c5c517a333f43a91a37bf9 | [
"R"
] | 1 | R | yogendrapatil/ProgrammingAssignment2 | 7a050fc9cb5460f4b1ef0ac06c47420c642b0d49 | 2fafc402699f49f5544f14911678efd6a9874968 |
refs/heads/master | <file_sep>### CS389 HW2: Hash it out.
####
<NAME>
<NAME>
#### IMPORTANT
Compile using:
`g++ -std=c++17 main.cpp`
#### Part 2: Testing
To test the two different evictors, `evictor_type_` must be changed in the `Impl` declaration. For FIFO evictor, use `"fifo"` and for LRU evictor, use `"lru"`. Also, uncomment the ... | 4103add74f054585f9f021d5ae865b41345028ce | [
"Markdown",
"C++"
] | 3 | Markdown | Continuousbutnotdifferentiable/csci_389_hw2 | c56fccf30884b729439b503137adbe76d0314b62 | 2e2b5472740b79fc2315663a9f73146c8afc265a |
refs/heads/master | <repo_name>korynewton/Sorting<file_sep>/src/recursive_sorting/recursive_sorting.py
# TO-DO: complete the helper function below to merge 2 sorted arrays
def merge(arrA, arrB):
elements = len(arrA) + len(arrB)
# temporary list with 0 as placeholders
merged_arr = [0] * elements
# TO-DO
# initialize ind... | 6fa3533b0e8f0787b1cd3c9d831d56487001fa03 | [
"Python"
] | 2 | Python | korynewton/Sorting | 478b747176368b03265509fe4a792c3a6ec1ac9c | 46188ab457bc89799776a182cb46c348cd263a18 |
refs/heads/master | <file_sep>'use strict';
const path = require('path');
const moment = require('moment');
const express = require('express');
const app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(path.resolve(__dirname, 'client')));
app.get('/:timestamp', (req,res) => {
let time = moment(req.pa... | c8d03e4c30dcafb29d9eb15f75d4067db38bc060 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ltegman/timestamp-microservice-api | 0f4584c3a7f66420627fca638a321c608d13b541 | c9af6bd4d85af6f867d055a9479315d2518f03af |
refs/heads/master | <file_sep>import { Controller, Get } from '@nestjs/common';
import { UserService } from './user.service';
import { createConnection } from 'typeorm';
import { TUser } from '../entities/TUser';
@Controller('user')
export class UserController {
constructor(private readonly userService: UserService) {}
@Get('get_all'... | d67540f47905a4613cf8ba6173491659056fce4b | [
"TypeScript"
] | 8 | TypeScript | najongjine/nestjs | 1ba4672fdb51e6a685d4ab1ba43a7eabacf2297e | fcb87050978cf3963bfe671888cf49acd846cdd6 |
refs/heads/master | <repo_name>m4rcelpl/PodatnicyVAT<file_sep>/BialaLista.Standard/VatDataReader.Standard.cs
using BialaLista.data;
using System;
using System.Net.Http;
using Newtonsoft.Json;
using System.Threading.Tasks;
namespace BialaLista.Standard
{
public class VatDataReader
{
private readonly HttpClient httpClient;... | d7871b4b36cad5050a3cb0786f84a8099e49f641 | [
"Markdown",
"C#"
] | 7 | C# | m4rcelpl/PodatnicyVAT | cfd82904563df00f732ceabbdc3024d04cbd0e39 | e6da9deffaf37f6c6b91bd89b35b96a70e41fe09 |
refs/heads/master | <file_sep>import { Video } from '@andyet/simplewebrtc';
export class VideoChatRoom extends React.Component {
constructor(props) {
super(props);
}
render() {
return <h1>ruin</h1>
}
}
<file_sep>const jwt = require('jsonwebtoken')
export default function validateUserData( req, res ... | f901a11a52de5395ef97a547b29e9b92184631dd | [
"JavaScript"
] | 6 | JavaScript | Leefeater/bistromatic | 72540ec2237e2d69a686cedd22553adff5e7cca4 | e6b133df5292e4a2cfd224e31fc9fe15708baea5 |
refs/heads/master | <repo_name>MadMaxOfYore/PrisonTextGame<file_sep>/PrisonTextGame.Unity/PrisonTextGame/Assets/Scripts/PrisonIntroScene.cs
using UnityEngine;
using UnityEngine.UI;
namespace Assets
{
public class PrisonIntroScene : MonoBehaviour
{
private GameManager gameManagerScript { get { return GameManager.Instance;... | f615344ef1f6c613262edfc38dc543af9f1384a3 | [
"C#"
] | 17 | C# | MadMaxOfYore/PrisonTextGame | 41d9fcf7576e0ee25b2b3b81bc173b8a5788faaf | ef70723c351c349cae6434e20880ba345ff471a3 |
refs/heads/master | <repo_name>Axorion/shingshang<file_sep>/src/presentation/MainConsole.java
package presentation;
import java.util.List;
import abstraction.Board;
import abstraction.BushiType;
import abstraction.Cell;
import abstraction.Game;
import abstraction.Player;
/** Class gathering all the stuff linked to the console (output a... | 4202a60f7f70bb9205e69a1e2283717293766e6e | [
"Java"
] | 6 | Java | Axorion/shingshang | 38ea7e1b6572cbb5b18f62675078708341857d7a | b0b144f0f099f0077d0cd210c4076e03afd4e389 |
refs/heads/main | <repo_name>MichaelFCoyle/GPSError<file_sep>/GPSError/GPSError/MainForm.cs
using GPSError.Models;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;
namespace GPSError
{
public partial class Mai... | 8161e2893ccc7de477992e873598b02ee3f06717 | [
"Markdown",
"C#"
] | 8 | C# | MichaelFCoyle/GPSError | 71c118f361a4bcffa7ec806e5834813c07b69444 | 7902773dce8fa05ded80b469613d009ec963ac7a |
refs/heads/main | <repo_name>Christian-Magdiel/unititle5<file_sep>/src/LISTA DE N CANTIDAD.kt
fun main(args: Array<String>) {
var Lista = MutableList(10){
(1..10).random()
}
Lista.forEach(){
var i= 1
println("En la posicion $i hay un $it")
}
fun Buscar ( cont:Int , valor: Int ){
... | 62d6f9fe3bf3a97fffc80630d16110fda38f806d | [
"Kotlin"
] | 1 | Kotlin | Christian-Magdiel/unititle5 | 891122652a1d283c846b7d46340456aff1514d1e | b9ffec1b2af37d17293aa7ba27c8408ca347d508 |
refs/heads/master | <file_sep><?php
require_once 'User.php';
require_once __DIR__.'/../Database.php';
class UserMapper
{
private $database;
public function __construct()
{
$this->database = new Database();
}
public function getUser(string $email):User {
try {
$stmt = $this->database->con... | 1276e1a0acd8e1c9e7918456b60120d234fc515f | [
"JavaScript",
"PHP"
] | 20 | PHP | kaoleksy/meme-generator | 533231a3273b58ab19e614278cd05b6f2a13561d | cf80ad2e995264ebc029c015cb519e591ecc21a0 |
refs/heads/main | <file_sep><?
// accesscontrol.php -- this file was missing from the original distribution from the seller
?>
<file_sep><?php
session_start();
require_once "../main.php";
if(!isset($aid)) {
?>
<font face="Tahoma, Arial, sans-serif" color="#000000"><strong>Admin Login</strong>
<p><form method="p... | f9f02cccf13a4fd4561e74a2e972b78570ca06e1 | [
"HTML",
"JavaScript",
"INI",
"Text",
"PHP",
"Shell"
] | 198 | PHP | raychorn/svn_php_projects | 616e01d6bfd24c7de980f91ef1b07f20c76e959e | 9066ab7b04f01c3d59712d3b0f77a0875bf245fd |
refs/heads/main | <file_sep>let date = new Date();
document.getElementById('footer-date').innerHTML = date.getFullYear();
$(document).ready(function() {
AOS.init();
}); | 2af9c6b7d777c4c494cda344dd9c75ebd5021db6 | [
"JavaScript"
] | 1 | JavaScript | stefan41/webserver_starter | 5552d40bc09fd6c521964d31cf33270be7463666 | 852370c93e19513ca6219f8129cd7923a7a9715a |
refs/heads/master | <repo_name>litalico-internship/201708-team-c<file_sep>/team-c/php/Util.php
<?php
class Util {
// emotion_type -> phrase
public static $phrase = array(
'interesting' => '楽しい',
'happy' => 'うれしい',
'sad' => '悲しい',
'tired' => 'つかれる',
'angry' => 'むかつく'
);
// emotion_type -> color
public static $color = array... | 5fd4da928deb409ebe83faca2261b5daffe82927 | [
"JavaScript",
"PHP"
] | 5 | PHP | litalico-internship/201708-team-c | 4d90edc1f9ef0c4709ac0887fbd804fe4830b347 | 4c1f19f40081eb38471d435d431f0b8765ec3faa |
refs/heads/master | <file_sep>################################################################################
#
# Class: Stream Health Parser
#
# This class takes a file handler, and reads every line of the file. With each line
# it creates a LiveStat object and saves them in an array.
#
#################################################... | 2cb92f7c6e95420a0d1705db21dd5ff86c6854b7 | [
"Text",
"Ruby"
] | 4 | Ruby | QuinnAtDejero/stream-health-parser | 2ca2db131fcdf1ae8144d72fe3bd880c5deed56b | be18c664bf29bc300e4df3921c5f105d9182aa22 |
refs/heads/master | <file_sep>const tab1 = $('.tab-1');
const tab2 = $('.tab-2');
const tab3 = $('.tab-3');
const tab4 = $('.tab-4');
const content1 = $('.contents-container-1');
const content2 = $('.contents-container-2');
const content3 = $('.contents-container-3');
const content4 = $('.contents-container-4');
tab1.on('click', () => {... | e3f2c641a5be3bd6d253e565d8d98e4870712a7b | [
"JavaScript"
] | 1 | JavaScript | buji405/pattrn-party | 8fb470a80da6bcafd78f07e66b1401297c3ae02b | 338ebf28b305763c8e3e0c97a1b1702e56e06995 |
refs/heads/master | <repo_name>Segevz/Homework<file_sep>/HomeWork5/src/SVM.java
import com.sun.org.apache.xml.internal.security.utils.Constants;
import weka.classifiers.functions.SMO;
import weka.classifiers.functions.supportVector.Kernel;
import weka.core.Instance;
import weka.core.Instances;
public class SVM {
public SMO m_s... | c6d96dbccabba04d3a1d2e5eea5326cde1edf8cc | [
"Java"
] | 2 | Java | Segevz/Homework | eb155ee20e62358acf724a7e20633a7643569bfd | ba84a0022cfa315a835ada10000380c98a9d7d7f |
refs/heads/master | <file_sep>/home/awakewebmaster/anaconda3/lib/python3.6/os.py<file_sep>###Monitoring awake-web-server.cern.ch###
To monitor the website, go into the AwakeApp directory and run the command
sudo systemctl status awakeapp
To view access and error logs you can go to /var/log/nginx.
###Updating the app###
If you want t... | e15bb33f984b86fd01ab5f54abd79068275dca8c | [
"Markdown",
"Python",
"reStructuredText"
] | 57 | Python | dillonberger99/awake | 142998155c03fd70b8b0af3a977c70f52450bee0 | 4a593dbeb285dcdce94210d61fc141d0ccb9040b |
refs/heads/master | <repo_name>NilsBohr/JS_modules_Z-Way<file_sep>/ConditionerManager/index.js
// ----------------------------------------------------------------------------
// --- Class definition, inheritance and setup
// ----------------------------------------------------------------------------
function ConditionerManager (id, cont... | 5f4bfb28221ac1d80e7c4ba671a70b8f67e30842 | [
"JavaScript"
] | 11 | JavaScript | NilsBohr/JS_modules_Z-Way | e5341b50e016b8d09efa784d9b26e32cef206bd2 | b80f13f3b4eee1e90929a4508724a1cdcc0f6b1d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.