branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>package lab05;
public class BinarySearchSetTester {
static<T>void out(T o) {System.out.println(o);}
static<T>void err(T o) {System.err.println(o);}
static<T>void slp() {try {Thread.sleep(1000);} catch (InterruptedException e) {e.printStackTrace();}}
public static void main(String[] a) {
//do... | b0f66b91e4e4cc7f9bb9fa569d8411b04d75f6f2 | [
"Java",
"INI"
] | 4 | Java | JBWalrider/lab_assignments | cc28a83b9241edb6b436fa7146c8eb608b1b54cd | 169a00f42b5d31d9e207548acbf2e52506a9f42e |
refs/heads/master | <repo_name>melissa8717/appli_frais<file_sep>/cAllJustificatif.php
<?php
/**
* Script de contrôle et d'affichage du cas d'utilisation "Se connecter"
* @package default
* @todo RAS
*/
$repInclude = './include/';
require($repInclude . "_init.inc.php");
// est-on au 1er appel du programme ou non ?
$etape=(cou... | 427df7c9ade1dc2d09cd85818b1cd1ab4b5157d0 | [
"Markdown",
"PHP"
] | 17 | PHP | melissa8717/appli_frais | f9fb6cf08d3125f72a1e8535adebea27c623c871 | c4d6d802c499ff30e1b9987df04eccc241cebcae |
refs/heads/master | <repo_name>skatkov/danger-rubyc<file_sep>/lib/danger_plugin.rb
require "rubyc/plugin"
<file_sep>/README.md
# danger-rubyc
Danger plugin to validate syntax for ruby files
## Installation
$ gem install danger-rubyc
## Usage
Add this to your Dangerfile:
rubyc.lint
## Development
1. Clone this repo
2. Run `b... | a265586d5e1ebd16f729d1338566aa586ac8da14 | [
"Markdown",
"Ruby"
] | 4 | Ruby | skatkov/danger-rubyc | f0bf10c1ec9be6ae232243c73f23582343c09a32 | b26be4639a1add060ba548cb4889c396cfc5cfda |
refs/heads/master | <file_sep>/*
This is a skeleton and a reference application for a simple Arrowhead-compliant consuming system.
Read more about Arrowhead Framework: http://www.arrowhead.eu/
Here you can download the Arrowhead G3.2 Framework (Milestone 3): https://github.com/hegeduscs/arrowhead
*/
#include <WiFi.h>
#include <H... | e66222b96ec5935041978164d25d06d5aa51d37e | [
"Markdown",
"C++"
] | 3 | C++ | tramuntana/Arrowhead-Ref-App | 9568de8913a9086f2471a1367581f3e3675472d1 | 7b9d9fd6da74a35ea33063d7816503043274806c |
refs/heads/master | <repo_name>santerihanninen/markdown-thesis<file_sep>/README.md
# markdown-thesis
A simple setup I used to write my thesis in Markdown and export it to a PDF with Pandoc. The purpose is to be able to use Latex's citation and typography abilities without having to bother with its tedious syntax.
Configuration happens m... | b553e5db654eaea289632470ade282c4d6db99d1 | [
"Markdown",
"Shell"
] | 5 | Markdown | santerihanninen/markdown-thesis | e501b5eaf26f90a98248afb202d4d9fd3359a435 | 983bf52dea0a5f2732cd801281d0bf0310392494 |
refs/heads/master | <file_sep>package com.sprint.ride_along;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
public class DriverActivity extends ... | 1f9ac408a059f887d0e41c2834d1391f4b4810f2 | [
"Java"
] | 1 | Java | AntonioSoto/ride-along | 196f11764222551fd30f0432f72b5faff6557350 | 23ff5b05d2e2b5f7b7ba9cb66a42157c5f38397e |
refs/heads/development | <repo_name>odekyc/FunFinder<file_sep>/public/script/social/socialService.js
angular.module('funfinder.social')<file_sep>/public/script/volunteer/volunteerService.js
angular.module('funfinder.volunteer')<file_sep>/public/script/entertain/entertainService.js
angular.module('funfinder.entertain') | 6fc72014ddde4d09bbd2f34feedfdaf5e637b3ca | [
"JavaScript"
] | 3 | JavaScript | odekyc/FunFinder | 67d7b0a01a00055d3762e081893acdd40291ce5a | 9ea1514e973e41501cb64456d6b4450968a2da3a |
refs/heads/master | <repo_name>dafurApp/myAugmentedReality<file_sep>/myAugmentedReality/ViewController.swift
//
// ViewController.swift
// myAugmentedReality
//
// Created by <NAME> on 06.02.19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import SceneKit
import ARKit
class ViewController: UIViewController, ARSCN... | ce4cc09453640d12de0b5fd54379e96008f53956 | [
"Swift"
] | 1 | Swift | dafurApp/myAugmentedReality | 26eb78f9d705f9e9b6b55ec84d2504189b751ac6 | a4b8e00b407c8e46cc36adcf8d7b74352ac04273 |
refs/heads/master | <file_sep>import React from "react";
import styles from "./Item.module.scss";
import ItemImage from "../../Assets/Images/image1.png";
import { Link } from "react-router-dom";
function Item({ itemDetails, loading }) {
return (
<>
<Link to="/detail" className={styles.link}>
<div className={styles.car... | b8d3a9f80343fa40b3839387433e6fa20cd3e442 | [
"JavaScript"
] | 2 | JavaScript | gilbertliem/vouch | 8910ba7108599af4799190cc2d21ad235abc0762 | 6b6ef84de2890d4cbc28cdcf597790012b1b50b2 |
refs/heads/develop | <file_sep>## Deploy and configure Context-Aware Configuration in AEM
[Apache Sling Context-Aware Configuration][sling-caconfig] is part of the AEM product since version 6.3. You can also use it in AEM 6.1 or 6.2 by deploying the required bundles and adding some basic configuration. And if you want to use the latest fe... | ee6783c2ad95477e71e3884babb255142d202b5a | [
"Markdown",
"JavaScript"
] | 3 | Markdown | shadyeltobgy/wcm-io-caconfig | d7de835eba36e57d0419e0719c1e15059d1385e7 | 6b784d12210f1476c98fcdb15dcea9defd894200 |
refs/heads/master | <repo_name>MD-Shibli-Mollah/jsCodes<file_sep>/main.js
//alert(greetz);
//call(), apply(), bind()
var person = {
firstname: "<NAME>",
lastname: "Mollah",
getFullName: function () { //not global
var fullname = this.firstname + " " + this.lastname;
return fullname;
}
}
var logName = functi... | f6b8ed167d9e7df7fee6edfa213f4cfdabcfc645 | [
"JavaScript"
] | 1 | JavaScript | MD-Shibli-Mollah/jsCodes | 770be7f3c2afaa9ba62b956d113b55d06f51de7b | 3f58fc87199a339d5a9f039776bf0d00a94d8f96 |
refs/heads/master | <repo_name>varungoel123/scrape_utils<file_sep>/chrome_launch.py
from selenium import webdriver
import random
seconds = 5 + (random.random() * 5)
path_to_chromedriver = '/Users/wanderlust/Documents/scraping_utils/chromedriver'
browser = webdriver.Chrome(executable_path = path_to_chromedriver)
url = 'http://lus.dacnet.... | c08be8fe72e43816538c5d8f2aa196b66ebc0c6a | [
"Python"
] | 2 | Python | varungoel123/scrape_utils | 189c7e4fc9381da28b880c499538d9ffe4691690 | 4de1f56e0bdd9b18bb7af7369836642701d1eae5 |
refs/heads/master | <repo_name>antonrodin/medjsalg<file_sep>/sorted-union/sorted-union.js
/**
* Sorted Union, using the ...args variables, with this one you can pass any number of aruments to a function
* @param {...any} args one or more array
*/
function uniteUnique(...args) {
console.log(args);
let res = [];
args.... | 9774e7fc5d55b5e1404d76cd165f4e56fceac770 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | antonrodin/medjsalg | b5e82c8c834e13afdb9b41cc42bd97980634c8d4 | ac1a94019c72ab999deb7d2ed148638017cf6813 |
refs/heads/main | <repo_name>kazparaz/tribe-payments-test<file_sep>/src/pages/api/_helpers.ts
import { NextApiRequest } from 'next'
export type CmcResponseStatus = {
credit_count: number
elapsed: number
error_code: number
error_message: string | null
timestamp: string
}
export type CmcResponseError = {
status: CmcResponseS... | 55a5f03da293a190ae4ba538cad67dcee0c0f574 | [
"TypeScript"
] | 7 | TypeScript | kazparaz/tribe-payments-test | 7a0c588ee0df2e6f41be3f996f7389ff606e29e8 | cb13d39ff128925ca622b7f3912b2ce59def47c7 |
refs/heads/master | <file_sep>package com.fjdantas.cscmcourse.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.fjdantas.cscmcourse.domain.Category;
/*
* CategoryRepoitory Interface annotation by JpaRepository
* interface of operation of data acces... | 795a32dd667bf4d2183db52719db0f1c2601b8f0 | [
"Java"
] | 8 | Java | fabiojd/cscmcourse | d8c7b9f959ee55c80c573f2464ca9d69b21d053a | db3a5cc66c3e8834a047c00209667eaac2926f46 |
refs/heads/main | <repo_name>REngie-engineer/0x02<file_sep>/script/script.js
console.log('hello world')
let car = {
make: 'ford',
model: 'f-450',
passengers: 6
}
console.log('the ' + car.make + ' ' + car.model + ' carries' + ' ' + car.passengers + ' people') | d3b796b22b1ed029755cb9bf79a28ee11b01b95b | [
"JavaScript"
] | 1 | JavaScript | REngie-engineer/0x02 | fb30c946040f46dda396d9d5dec2e46c1fd57189 | 7d3156790bcb0d7af99e471d73572cc07446d839 |
refs/heads/master | <repo_name>EsC369/Node.js-NodeModuleBasics<file_sep>/app.js
// BEFORE:
// var my_module = require('./node_modules/my_module');
// my_module.greet();
// my_module.add(5,6);
// After:
var my_module = require('./my_module')(); //notice the extra invocation parentheses!
console.log(my_module);
my_module.greet();
my_mo... | 65acd17edce83c035d8b8cc7bbee81a92881ef2b | [
"JavaScript"
] | 1 | JavaScript | EsC369/Node.js-NodeModuleBasics | 22cf31728fd5e4bb5f2debebe463ddda19c9a8b7 | b4e6bc62f669ce0421f54b59c6786e82afbf6451 |
refs/heads/master | <repo_name>Huentelemu/mcts-vis<file_sep>/app.js
var width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
var height = 1100
var nMaxLayers = 10
var mainSVG = d3.select('body').append('svg').attr('width', width).attr('height', height)
document.body.style.background = "#006400"
var colorScale = d3.scaleLi... | 66f5b53b9d902826414f5c9cd14f307293c000cf | [
"JavaScript"
] | 4 | JavaScript | Huentelemu/mcts-vis | d2de04bac13afb0303d7ed62ac656b3c4dc2ec20 | a5fce68d2a770ae9145a5c8d1e1947995a460ab2 |
refs/heads/master | <repo_name>faruqfadhil/learn-go-docs<file_sep>/shipper/binarysearch/main.go
package main
import (
"fmt"
)
func main() {
var testCases int
fmt.Scan(&testCases)
for i := 0; i < testCases; i++ {
var N int
fmt.Scan(&N)
arr := make([]int, N)
for i := 0; i < N; i++ {
if _, err := fmt.Scan(&arr[i]); err != ni... | a56752899522497bbc5390ef52b53261c3a72710 | [
"Go Module",
"Go"
] | 28 | Go | faruqfadhil/learn-go-docs | 2c38fd9626ec0a9a2b14fdc75d0421904e632889 | cbb44f9715a809d91e5def4a1b0a1f2f7a55be1d |
refs/heads/main | <repo_name>TDuong90/DVD-Rental<file_sep>/Query.sql
--Use SELECT statement to grab the first and last names of every customer and their email address.
SELECT first_name, last_name, email FROM customer;
--A customer wants to know the types of ratings we have in our database
SELECT DISTINCT rating FROM film;
--A custom... | 18b8c9fcbf518b06c7068169a51a8155ddbc9703 | [
"Markdown",
"SQL"
] | 2 | SQL | TDuong90/DVD-Rental | 2a2c376ff93711def4b7857da2df9bfdb01fda9e | 8576b339ba263fb16c803c35d50e2c510f009ac9 |
refs/heads/master | <file_sep>
import numpy as np
#Functions to be used in plots
#Defining constants
alpha = 1/137.036 #Fine-s[i]tructure cons[i]tant
e = np.sqrt(4*np.pi*alpha) #Electron charge
sinWein2 = 0.2397 #sin^2(theta_W)
mw = 80.379
gw=e/(np.sqrt(sinWein2))
mH = 125.18
gammaH=0.013
mz = 91.1876
#gz = ... | e6a86459d641a6e21f1359b578a70dccaa7ed3aa | [
"Python"
] | 6 | Python | fosheimdet/FYS5555 | ee2002fb71684a62c2ca15ea206e14180eef89da | 058ea6ce539bb98125f81a3b3645947180494c2f |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<!-- link to external files -->
<link rel="stylesheet" href="./style.css">
<link rel="shortcut icon" type="image/x-icon" href="images/Brand_Favicon.png">
<!-- added for temporary navbar -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js... | 1968e7865627cfc86ba682dde2b83734910c5ace | [
"JavaScript",
"HTML"
] | 4 | HTML | KNortheastern/Speed-Dataing | 784a9b61f25fdfed06d823abe1d6d6b64d4067fd | b015a525d8a31f4f10101bbe51487099e517c092 |
refs/heads/master | <repo_name>AldemirGomesDev/react-bootstrap<file_sep>/src/ui/Footer.js
import React from 'react';
import {Link} from 'react-router';
const Footer = (props) => {
return (
<footer className="container col-12 pt-3 footer bg-dark text-light text-center">
<container className="container col-6 col-md-... | 9768006585b66afefcb4fa4265f0ba9fadeb49f6 | [
"JavaScript"
] | 2 | JavaScript | AldemirGomesDev/react-bootstrap | c0205524e4ab2540010e48e9266999fbe50b6df4 | d81d7d80cf64ff2ef30240dc159af6b9848fc242 |
refs/heads/master | <repo_name>senamit2708/GuessTheWord<file_sep>/app/src/main/java/com/example/android/guesstheword/screens/score/ScoreViewModel.kt
package com.example.android.guesstheword.screens.score
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class ScoreViewModel: ViewModel() {
private val TAG... | f1c96d76f92652a52e096df6d2159c9ece0f7a8b | [
"Kotlin"
] | 1 | Kotlin | senamit2708/GuessTheWord | 86f6e7732d680c2b0be8aa2c3e72e36e1e2cf637 | 73ed398de1ed5efb9dcb9e4b72f7b7a8c1618f5e |
refs/heads/master | <file_sep>import urllib.request
from bs4 import BeautifulSoup
'''
Scrapes all links and images from a user provided url
and prints them out based on user's request.
'''
def print_list(lst):
print('\n'.join(lst))
print('\n====================\n')
# protect for import
if __name__ == '__main__':
url ... | 0c62fb1443244c55195d313d734f2afd8ea4c44a | [
"Markdown",
"Python"
] | 2 | Python | clui951/WebScraper | ad257a694ebc6d64d05b01c7f64791a747522f65 | 790d4d217834bd8c3919e5e4e9d077474ac1486d |
refs/heads/master | <repo_name>YimiCGH/LightmapTest<file_sep>/Assets/Script/MouseManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class MouseManager : MonoBehaviour
{
public LayerMask m_clickableLayer;
public EventVector3 OnClickEnvironemnt;
priv... | dcc8df23ed777ebe95168bbf5c533dafbe55e04a | [
"C#"
] | 1 | C# | YimiCGH/LightmapTest | 1a235de37fa6457052311651b020221ec236f9d4 | 2c21786557760051aa014896b47f45f750957d29 |
refs/heads/master | <repo_name>canyugs/pyuia-example-wordpress<file_sep>/lib/wpauto/android/__init__.py
from .signin import *
from .main import *
<file_sep>/lib/wpauto/android/signin.py
from pyuia.appium import AppiumPageObject as AppiumPO
__all__ = ['SignInScreen']
class SignInScreen(AppiumPO):
def _username_field(self):
... | 69afcb1a0ef209925174b0efcd83f382c3571201 | [
"Markdown",
"Python"
] | 8 | Python | canyugs/pyuia-example-wordpress | 18d7bd0f68b222658d856ac40ff6569d80ce5e24 | b889913f9313f771508b78573c40e52468c510a2 |
refs/heads/master | <file_sep>/* global $ */
$(document).ready(function() {
// Point Variables
var outboxerPoints = 0;
var swarmerPoints = 0;
var sluggerPoints = 0;
var boxerPuncherPoints = 0;
var highestOfTwo = 0;
var highestOfAll = 0;
var highestOfThree = 0;
// Slide Id Variables
var introSlide =... | d79dddd47ceb72e3b9ec1f358af501bacba0f75f | [
"JavaScript"
] | 1 | JavaScript | gio1880/quiz | 3d12fb583e2d4b74f362945f5deceaf2c3f9dc92 | e80a74c506adaf664543b1b75912c09c2a311d30 |
refs/heads/master | <file_sep><?php
namespace Pepe\GameOfLife;
class GameOfLife
{
private $array;
/**
* GameOfLife constructor.
* @param array $array
*/
public function __construct(array $array)
{
$this->array = $array;
}
/**
* @return array
*/
public function getData()
... | e77595678bc4dc11b541522e12f279962b85fde0 | [
"Markdown",
"PHP"
] | 6 | PHP | KeeYoMEE/GameOfLife | d72d70d78d3b3c3c9ba598625ec5840f9b674eef | a58597e4e99a00ce7cb1d6c3089f92b9566eb3f9 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/8/27 14:06
# @Author : way
# @Site :
# @Describe: 通过 ip 获取所在省份
import sys
import requests
AK = "" # 百度 ak 自行申请 http://lbsyun.baidu.com/index.php?title=webapi/ip-api
def ip2province(ip):
url = f"https://api.map.baidu.com/location/ip?ak={AK}&... | ccb699e8d5566d0dbfbe982585871793f36d96ba | [
"Markdown",
"SQL",
"Python",
"Text"
] | 7 | Python | JasonHans/bigdata_practice | dbd100cb61f2389c279a30b8735aa4e8fc6f0624 | bebdf4a5b02d141c9bcb63ecb04a513a1d92a44b |
refs/heads/master | <repo_name>Mcprince12/bookSantaApp<file_sep>/components/AppTabNavigator.js
import React, { Component } from 'react';
import { StyleSheet, Text, View, Image } from 'react-native';
import {createBottomTabNavigator} from 'react-navigation-tabs'
import {createAppContainer} from 'react-navigation'
import BookRequestScreen f... | 6cd3b1d4802d57b4083c35a2b79d5c2e83675af4 | [
"JavaScript"
] | 2 | JavaScript | Mcprince12/bookSantaApp | e8081a1768b9e622d19e9c540a760fbf120812f8 | 53334a90676fa14e478010c758ec6aa12f469606 |
refs/heads/master | <file_sep>import datetime
import sys
import subprocess
import os
from glob import glob
import shutil
import numpy as np
local_tmp_save_dir = "/local/tmp/bmmorris/stsp_tmp/"
stsp_executable = "/astro/users/bmmorris/git/STSP/bin/stsp"
stsp_executable_astrolab = "/astro/users/bmmorris/git/STSP/bin/stsp_astrolab"
run_name... | 279c4a3ad46e2a56cb2cd389f19cb730360b1918 | [
"Markdown",
"Python"
] | 18 | Python | bmorris3/hat-11 | 28737f4158e3f57fc015f7db169bab52d4c2fefd | c50fbad00bcd8fa856e27996408502096af47c4e |
refs/heads/master | <repo_name>peytondodd/EithonCop<file_sep>/README.md
# EithonCop
A Cop plugin for Minecraft.
## Release history
### 2.4 (2016-12-29)
* CHANGE: Bukkit 1.11.
### 2.3 (2016-08-20)
* CHANGE: Refactored the DB parts.
### 2.2 (2016-06-30)
* CHANGE: Minecraft 1.10
### 2.1.2 (2016-06-04)
* BUG: Frozen players could st... | 356bf7ab15b269da92803e9cd5f9c0623f7d2480 | [
"Markdown",
"Java"
] | 8 | Markdown | peytondodd/EithonCop | 342fa63591d988e868efea18b6306f65cf445c63 | 1333a23e4071b38fe8aa393c62164b772f596ac8 |
refs/heads/master | <file_sep>#include<iostream>
#include<cstring>
#include<cstdlib>
using namespace std;
#include"myqueue.h"
myqueue::myqueue(int queuecapacity) {
m_queuecapacity = queuecapacity;
m_ihead = 0;
m_pqueue = new customer[m_queuecapacity];
m_tail = 0;
m_queuelen = 0;
}
void myqueue::clearqueue() {
m_ihead = 0;
m_t... | 98ee469dcf1de54128f778a5418d1f5a0fa37b4c | [
"C",
"C++"
] | 33 | C++ | ZFancy/hello-world-1 | ce23113b933584ef0f3f7d717f8da285ae46ea69 | bfeb1161a27dd9dce04ac1d09f0c99c749bcf585 |
refs/heads/master | <file_sep>package com.example.huangxinhui.erpapp.Fragment;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import androi... | 6452c5eaaed914426be3cc99ba088a832f7a37d0 | [
"Java",
"Gradle"
] | 12 | Java | H-494/ERPApp | 4033fa6fcaf17646ea87206034b74b23454eef50 | 133b2084ead33b79498121d80fd855fb8429ad73 |
refs/heads/master | <repo_name>bugger-caihao/ch<file_sep>/src/main/resources/static/asset/js/shop.js
/*获取登陆信息*/
$(function getUserType(){
$.ajax({
type : "GET",
url : "getLoginInfo",
data : {},
dataType : "json",
async : false,
cache:false,
success : function(result) {
... | 52510204f03dbf8541a460f5f69c9e0806505345 | [
"JavaScript",
"Java"
] | 33 | JavaScript | bugger-caihao/ch | bd6668b1de30d3000cf16affa1fbf88fbd255859 | e6cc662dccedf421cd752fe58a83a46542cd90cc |
refs/heads/master | <repo_name>SavKS/liquor-tree<file_sep>/webpack.config.js
const { VueLoaderPlugin } = require('vue-loader');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const base = mode => ({
mode,
devtool: mode === 'development' ? 'source-map' : false,
entry: {
main: {
import: './... | 267114b8995354da97897c57fbd88302598c16c5 | [
"JavaScript"
] | 1 | JavaScript | SavKS/liquor-tree | 012eb6cd74a4707cb44e48f09391b707c0aaedd8 | a780c17f83d256c3d75b3889722688989c74bfb0 |
refs/heads/master | <repo_name>jnelson1010/py-fun<file_sep>/.ipynb_checkpoints/Beginner Excercises-checkpoint.py
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# practice python beginner excercises"
]
},
{
"cell_type": "code",
"execution_count": 8... | ef2f4f72cd5a0c169a1d4a180907702dc4004941 | [
"Python"
] | 1 | Python | jnelson1010/py-fun | 24e4654b8199b41b4460a3ce74c4241bb49cbb75 | 43b94c9f358463d5e0b5eedf69957085ea56d6fd |
refs/heads/master | <repo_name>likeaboy/snaptoy<file_sep>/src/main/java/com/rocky/snaptoy/multithread/pcm/Model.java
package com.rocky.snaptoy.multithread.pcm;
import java.util.Random;
public class Model {
private int id;
private String name;
private String desc;
private Random random = new Random();
private String[] names = {"Jo... | 7292aea61a0b9f2cef3e7b3515fe6158ea0d33b1 | [
"Markdown",
"Java"
] | 3 | Java | likeaboy/snaptoy | 86998bcfbd5311522a5f245ae55590803a1cbe78 | 5f25ea683f4c0916536ac91ecc9bf56f7a0d1a38 |
refs/heads/master | <repo_name>wanmaoor/sign_up<file_sep>/src/com/jeelearning/Login.java
package com.jeelearning;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.ht... | 7b1b5439a82df0ee9b707128cae5d95ce5c3960f | [
"Java"
] | 1 | Java | wanmaoor/sign_up | 2cbc11bc06f88e3793150e9dbacfe8cdf18cd450 | 4292cb2594fd7454ea1decc5a1f0255bf9e7a2e4 |
refs/heads/master | <file_sep>class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
map<int,int> nummap;
for (int i = 0; i< (int)nums.size(); i++)
{
if (nummap.count(target-nums[i])!=0)
{
vector<int> ans = {nummap[target-nums[i]],i};
... | 9bde3ee493b84a387a544f99fe878eedda99200a | [
"Markdown",
"C++"
] | 5 | C++ | yodahuang/Smashing-Leet-Code | c9481f95a3ff29062dd44d6e07fb66916d317cd3 | 963d3efa60d0728e311aa6dc71c5c85a290daad9 |
refs/heads/master | <repo_name>xdu/cmdline-podcasts-downloader<file_sep>/README.md
# cmdline-podcasts-downloader<file_sep>/config.js
import os from 'os'
import path from 'path'
import fs from 'fs'
const filename = "feeds.json"
export default function getConfig() {
console.log("__dirname : " + __dirname)
console.log("os.homedir(... | df8142f114018bb7b5ad1831477cf8122f3cd3c7 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | xdu/cmdline-podcasts-downloader | 3494feff2ca74fac15f7515648039024bd1838c7 | 4f266c29263b50f80750653a2de1dd6de7a578fe |
refs/heads/master | <repo_name>nicholasblack-g/alwayslearn<file_sep>/c-programing-from-tsu.c
//eg.1.1
# include <stdio.h>
#include <math.h>
int main()
{
//section 1 hello world
printf("Hello World!\n");
//section 2 basic calculations
double x, y;
x = sin(0.19199);
y = cos(0.19199);
printf("%f^2 + %f^2 = %f\n", x, y, x * ... | 02704a56798a84e7ab5c58d50e182db14fb31347 | [
"Markdown",
"C"
] | 2 | C | nicholasblack-g/alwayslearn | c7ffc188e7ab5259b2ae0923f9e793b325f5671e | bdc021576ccb8a2cf3453b045152d21acfe4386a |
refs/heads/master | <repo_name>Saphiresurf/sidescroller<file_sep>/src/hardoncollider.lua
local HC = require "libraries/HC"
collider = HC.new(32)
return collider
<file_sep>/src/entities/player.lua
local collider = require "src/hardoncollider"
require "src/entityinteraction/controls"
Player = Object:extend()
function Player:new(x, y)
... | ce550efb956f387d8c215af96e0f750c077e5f21 | [
"Lua"
] | 7 | Lua | Saphiresurf/sidescroller | 55c238f736d2647553520570f0a00230d4275c46 | 7144e9f15da414d7279d2ea795fb85c256ee9be2 |
refs/heads/master | <repo_name>RestOpenGov/RestOpenGov<file_sep>/crawler/RELEASES.md
## RestOpenGov Crawler
### Releases
#### 0.1.4 (16/09/2012)
* Major refactor/rewrite. CKAN part is now decoupled from the indexer
* Now it's possible to index a single file from a given URL (CSV or zipped CSVs)
* Updated the Elasticsearch ve... | f1290e3d23b6a93bd27e2012ccf6f6c67ee3b224 | [
"Markdown",
"Java",
"JavaScript",
"Shell"
] | 47 | Markdown | RestOpenGov/RestOpenGov | e2da2b966ec1a7c5b8ada518697cda65887dd237 | d52661ffb496ed7956d217bcb9f786430a60453c |
refs/heads/master | <repo_name>machiapply/svelte-webpack<file_sep>/src/router.js
import Navigo from 'navigo';
const base = process.env.SITE_PUBLIC_PATH;
const useHash = true; //Defaults to false
const hash = '#!'; //Defaults to '#'
// const router = new Navigo(base, useHash, hash);
const router = new Navigo(base);
export default router... | b4505d004e357d549fc928a90a4a17bb8a7fbd10 | [
"JavaScript"
] | 1 | JavaScript | machiapply/svelte-webpack | 504fac6c676f40b8c0b65c8d4a5a6d9fd9891d08 | 486fb580f4e1659dd979eddef2afe44a90687eec |
refs/heads/master | <file_sep>import { useState, useEffect } from "react";
import { motion, AnimateSharedLayout } from "framer-motion";
import router from "next/router";
import { AiOutlineArrowRight } from "react-icons/ai";
import { Button, Rate } from "antd";
import { LeftOutlined, StarFilled } from "@ant-design/icons";
function numberWi... | 2113b775cf576d5ae9db617520524fb56c132f03 | [
"JavaScript"
] | 7 | JavaScript | AtheerAPeter/fikraFood | ca5506e19e76644a9af1d7e967a9392b11d7b7ba | 049e58d3cb3dc3d1daed7acc93c246d6385c3240 |
refs/heads/master | <file_sep>// JavaScript Document
$(document).ready(function(e) {
// document.addEventListener("deviceready",function(){
$('#btndatos') .on ('click', function () {
//alert ('hola');
$ ('body').pagecontainer ("change", "#datos", {transition: "flip"});
});// alerta de java
$('#btnresultado') .on ('click', functi... | d702b3d083462b1eba71cd750423258147ea84fc | [
"JavaScript"
] | 1 | JavaScript | AL17F13/aplicacion05 | c2871e88c2a43f2157435e5ea977df5cf816850c | ebc012d7b14b25af1c627c8c086a9368c650f70d |
refs/heads/master | <file_sep>
jQuery(document).ready(function() {
var p = $.ajax({
type:"GET",
url: "text",
cache:false
//context: document.body
});
p.done(function(text) {
$("div.texto").html(text);
});
$("button").click(function(){
$.ajax({
t... | fc21f4b79d8a79e729a9f5c564cbe0d7e5c052e6 | [
"JavaScript"
] | 1 | JavaScript | asu88/X-NAV-JQ-Ajax | 3ad6f614d4d2d2ffbd3b5cdc2c306ba5724d4667 | 8b07733c250c61f3b998583289deb7e0745872f5 |
refs/heads/master | <repo_name>Hanan712/js-data-structures-objects-lab-re-coded_sanaa_web001<file_sep>/index.js
// Write your solution in this file!
const driver = {}
function updateDriverWithKeyAndValue(driver, key, value){
const newdri = Object.assign( {},driver)
newdri[key] =value
return newdri
}
function destructivelyUpdateDri... | 290bc2db75ac07f42649c686ef062013cefb2570 | [
"JavaScript"
] | 1 | JavaScript | Hanan712/js-data-structures-objects-lab-re-coded_sanaa_web001 | 54b9594550e5b7092f153190a7eb0dd6a62fb6e0 | 5db70019c15b58d95a251ff1b27092a77751ffac |
refs/heads/master | <repo_name>AhmadAlkurdy/The-Ascending-Order-<file_sep>/README.md
# The-Ascending-Order-
the ascending order of three numbers
<file_sep>/assignment3.cpp
// <NAME>
// Assignment 3
// the ascending order of three numbers
#include <iostream>
using namespace std;
int main ()
{
// Declaire variebals
int num1 = 0;
... | 5bce8530a34bc6d998b23d02a053e3edf80c4cfd | [
"Markdown",
"C++"
] | 2 | Markdown | AhmadAlkurdy/The-Ascending-Order- | 4d2766bfacc411269998bf153b17e5cdd3f91706 | 8efa8a7a90425c0a5d9947e43660995ee4debcb2 |
refs/heads/master | <file_sep># essentiavitis.vin
<file_sep>jQuery(function ($) {
$(document).ready(function() {
/* SIDE MENU */
$(function () {
$(".toggle-side-menu").click(function(e) {
$("#side-nav").toggleClass('push-left');
$("#main-container").toggleClass('push-left');
e.stopPropagation();
});
$("#main-container").cli... | 57f763252571cdd95f5dcc6565c9097e7e923adb | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | Markdown | essentiavitis/essentiavitis.vin | af40575c3a109a32edb8d6fc643d665c89544220 | 0f743d3e27d65c82b1d6721f0d24d5259bef1956 |
refs/heads/master | <file_sep>
dependencies {
// https://mvnrepository.com/artifact/commons-net/commons-net
compile group: 'commons-net', name: 'commons-net', version: '2.2'
}<file_sep>package com.moduscreate.plugin;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
imp... | f8a511fb40aa887c4fc00c5bd54cfd105370f547 | [
"JavaScript",
"Java",
"Gradle"
] | 3 | Gradle | swcho/ex_cordova_plugin | e02fe782ffce4321c044099d2f0b83ce05848262 | 64e8e72f1d49bc38e3375f8991bba6fdf3da4bbb |
refs/heads/master | <repo_name>faizana/WeblogChallenge<file_sep>/web_log_challenge.py
# coding: utf-8
# In[2]:
# As written in instructions all libraries are allowed except SparkSQL therefore I will be using PySpark and Pandas for my
# data wrangling.
import pandas as pd
import re
import time
import datetime
import numpy as np
from pys... | 241592a9e194b8f23f8f8baf161303e254b3b34a | [
"Python"
] | 1 | Python | faizana/WeblogChallenge | bf2048fa14ea136f69d1919dc942d9fca27648c8 | 64687a17bb3285ae0e0047bcd840efc1f48f30c4 |
refs/heads/master | <repo_name>key-amb/fireap<file_sep>/spec/fireap/data/event_spec.rb
require 'fireap'
require 'fireap/data/event'
require 'base64'
require 'json'
payload = {'name' => 'foo', 'version' => 'v1'}
describe 'Transform to Model::Event' do
describe 'Valid Event data' do
evt = {
'ID' => '5bce61f8-eaad-ff09-b5a3... | a94cf27828bf5bdd4204cf68b87229f5c6b2b37c | [
"Markdown",
"TOML",
"Ruby"
] | 51 | Ruby | key-amb/fireap | 77cee9e47a86e4ba18cdeb31b273d6f8545cbeeb | 054fe122b192fac8439207ddf0cdb031c5fc0a38 |
refs/heads/master | <file_sep>/*var userName = prompt("What is your name?");
alert("Nice to meet you, " + userName);
console.log(userName);
var number = Math.floor(Math.random() * 10) + 0;
var guess = prompt("Guess number: ");
while(Number(guess) !== Number(number))
{
if(Number(guess) > Number(number))
{
alert("Too high... | e02645bc496b1d86764cbe84b2e76c527f758917 | [
"JavaScript"
] | 1 | JavaScript | SpencerJSaunders/SmallProjects | c6c5bec1e482120146f70662ca883dc08e743ea8 | 25967a6175e7b3dbd1bdc49081ecc26e2721633e |
refs/heads/master | <repo_name>aslupin/cpe31-task<file_sep>/aum_task/calender.py
m = int(input())
n = int(input())
Day = [31,28,31,30,31,30,31,31,30,31,30,31]
LeDay = [31,29,31,30,31,30,31,31,30,31,30,31]
def leap(n):
if n%4 == 0:
if n%100 == 0:
if n%400 == 0:
return True
else:
... | b958551bde844d2bfaa4dd7cb670c4ebab4ff17b | [
"C",
"Python"
] | 68 | Python | aslupin/cpe31-task | c15ec9be94b899120db39b076a4d1c644f0af24b | d97d3e495634826d6752c1ee82192cc58045a883 |
refs/heads/master | <file_sep>package webscraper;
public class AppMain
{
public static void main(String[] args)
{
Scraper s = new Scraper();
s.loopAndGrab();
s.closeBrowser();
}
}
<file_sep># webScraping-seed
Assuming you have a Java IDE and the latest JDK, this will get you started with a basi... | 4064c797ca249d2008ff202182932a57e5c8bbb7 | [
"Markdown",
"Java"
] | 2 | Java | spencercope/webScraping-seed | 3e3813abe2b31591037091d0dd896f5e5ddfd682 | c4a954a182bc5b1d165232d645c7da319c78fd19 |
refs/heads/master | <file_sep>#!/bin/bash
set -e
# Create directories
mkdir -p /data/clients \
/data/torrents
cp /default/clients/* /data/clients
if [ ! -f /data/config.json ]; then
cp /default/config.json /data/
fi
java -jar /joal/joal.jar "$@"
| 5648d23a55c06126a443869598a266155d762008 | [
"Shell"
] | 1 | Shell | Nomuas/joal | c1f58be7be52156e07703a97e96319b0259fe8e5 | ad9416077a07861e1dd41fcc21e3ff1a9f5c9e7d |
refs/heads/master | <repo_name>HenryMameds/4tech-backend<file_sep>/src/services/user/user.service.ts
import { Injectable, BadRequestException } from '@nestjs/common';
import { UserRepository } from 'src/repositories/repository/user-repository'
import { UserViewModel } from 'src/domain/user.viewmodel';
import { LoginViewModel } from 'src/d... | cef635e923d85b0d315cc58646c5a7ea0eade0d2 | [
"TypeScript"
] | 2 | TypeScript | HenryMameds/4tech-backend | 803c961976400c00a7862803cda5df3ebd369017 | 1d48665d81824a9bbc9ae2ecfaabef0836747c31 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
namespace wesingchangescore
{
public partial class Form1 : Form
{
string datapath = @"C:\Users\" + Environment.UserName + @"\\AppData\Roaming\Tencent\WeSing\User Data\KSongsDataInfo... | d3d850f1414443e8b1408f18797e43b03c5ae0b4 | [
"C#"
] | 1 | C# | nitezs/WeSing_Score_Changer | 66a26f02283b6954861369c1c4854a5a4571e8ba | c1b552fc8db104b01c246a5f653d987502bceba7 |
refs/heads/master | <repo_name>MAJOR-BEAST/Project<file_sep>/project_cbs/quickstart-file.py
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from azure.cognitiveservices.vision.computervision.models import TextOperationStatusCodes
from azure.cognitiveservices.vision.computervision.models import TextRecognitio... | 12a8077f4a2f46841bf89e8dd21ed42940ffc25a | [
"Python"
] | 1 | Python | MAJOR-BEAST/Project | 330e256bf3848a344e3374eedc4736c465d5a9e4 | d6cc4615e9ce6c8a81dfec096f712eade31295d8 |
refs/heads/master | <file_sep>import { CURSOR_DIRECTIONS } from "../constants";
import { useCallback, useEffect, useMemo, useState } from "react";
import { Keyboard } from "react-native";
import usePuzzlesContext from "./usePuzzlesContext";
const generateLine = (currentLine, line, y) => {
const currentChars = currentLine.split("");
... | 1dca6f57a21caf2b6ec23f392c7b7e228742df44 | [
"JavaScript"
] | 13 | JavaScript | wouterraateland/woordgraptogram | 3f687a4f75515b3b96ccc7f845ba513d8966bbf4 | 3e6735462c0e8840782bc55cff41e06442ea6590 |
refs/heads/master | <repo_name>Raging-Tiger/SE_project<file_sep>/app/Http/Controllers/ApartmentController.php
<?php
namespace App\Http\Controllers;
use App\Models\Apartment;
use App\Models\ApartmentInhabitant;
use App\Models\Inhabitant;
use Illuminate\Http\Request;
class ApartmentController extends Controller
{
public function... | db62e2cb62408f8922f8b572666cc0ee3f8dcbb2 | [
"PHP"
] | 20 | PHP | Raging-Tiger/SE_project | 1b6f57591c0be2ae2a6f95d03cc5cb0ed7247bf1 | 4676ec7a79a111f7a487929c6b61435c3d3f8ac4 |
refs/heads/master | <repo_name>blackspherefollower/video-mre<file_sep>/src/app.ts
/*!
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as MRE from '@microsoft/mixed-reality-extension-sdk';
/**
* The main class of this app. All the logic goes here.
*/
export default class Hell... | ad3f3fde24621ecbb06e8c277c699850c486b1a1 | [
"TypeScript"
] | 1 | TypeScript | blackspherefollower/video-mre | ce194aa5f3f359619c8694ab0d19987d5c8c822d | a3478691ab0e5fb31288ff52ff7e69b58be2d83d |
refs/heads/master | <file_sep>using System;
using System.Data.SqlClient;
namespace Grau_James_991443203_Assignment_3 {
public partial class Profile : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
// Check if there is no active session
if (Session["signedIn"] == null || !S... | 2a690be8f23b3e7dd86f18ce58c9d0f76bfdde4e | [
"C#"
] | 4 | C# | backartificial/Grau_James_991443203_Assignment_3 | 710770fa8c2e18b41c11f3f1c759501499bb20b4 | 30be5b427926dfcd8f9c6e9e151ade568b5f800f |
refs/heads/master | <repo_name>chungdeveloper/SubtitleConvert<file_sep>/nbproject/private/private.properties
compile.on.save=true
do.depend=false
do.jar=true
file.reference.hamcrest-core-1.3.jar=C:\\Users\\shoot\\Documents\\Project\\EclipseProject\\audiolib\\hamcrest-core-1.3.jar
file.reference.jl1.0.jar=C:\\Users\\shoot\\Documents\\Proje... | ad4951df5305c70ff31a10520bbd5be976878497 | [
"Java",
"INI"
] | 2 | INI | chungdeveloper/SubtitleConvert | e96083658ed575e84d3fee28df6053cc6a006f63 | 4eac5696ba0a3eccf7df02e176e962f3f0034a19 |
refs/heads/master | <repo_name>volumeskies/Vanilla-JavaScript-Quiz<file_sep>/README.md
# Vanilla-JavaScript-Quiz
Quiz using only HTML + CSS + JavaScript
## Live demo
[Click here](https://volumeskies.github.io/Vanilla-JavaScript-Quiz/)
:herb::herb::herb:
<file_sep>/index.js
(function(){
/* FROM START SCREEN TO QUIZ SCREEN */
var ... | b9f0bb6e9d36f106fc8c12008c8f74db37602df1 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | volumeskies/Vanilla-JavaScript-Quiz | 0fcfcfcfdac6c6b83571ed82e2023cb016a67800 | 95369bf7435d676313f632f14f2c7d899b8d05f2 |
refs/heads/master | <file_sep># GDot5-Real-Estate-System<file_sep>-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 28, 2018 at 12:57 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;... | 4ef51fe2eeb36af15e081a07663ff7abcbb33cd6 | [
"Markdown",
"SQL"
] | 3 | Markdown | GithinjiWanjohi/GDot5-Real-Estate-System | d8afa96be8d5d1318b9c683096f4d9175fcf87ce | c371b8f22c945709127041220bf366390d5e97b8 |
refs/heads/main | <repo_name>SabrianJ/6426-1822<file_sep>/6426-1822/Week6/DoublyLinkedList.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Week6
{
public class DLNode
{
public DLNode forward;
public DLNode backward;
public int data;
public DLNode()
{
... | c2292cc294d44451d2d11cc6d092d0aa20d01f0d | [
"Markdown",
"C#"
] | 35 | C# | SabrianJ/6426-1822 | be1596973efe8b2ba7fdfc6a351eed5a436acbc2 | 513349c1f123b6716fc24185eba0d408759c0276 |
refs/heads/master | <repo_name>dherik/check-password<file_sep>/src/main/java/io/github/dherik/CheckPasswordRS.java
/*
* 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 io.github.dherik;
import io.git... | d61f203f0bd18777aba5e137fb3777cdb0d15dc4 | [
"JavaScript",
"Java",
"Markdown"
] | 4 | Java | dherik/check-password | dc819584036cdf06ef5bced4908252a0ef5e3536 | e31d5229b3df62984d3118b032d55ccbab4d5c23 |
refs/heads/master | <file_sep>let name = prompt('<NAME>','');
let fname = document.getElementById('inp')
console.log(fname)
fname.innerHTML = `welcome ${name}`;
let input1 = document.querySelector('#name')
let input2 = document.querySelector('#num')
let input3 = document.querySelector('#address')
let addToCart = document.querySelector('#... | 4b15c1fc7c9459fd4d65fc3f8cc633cf94126a03 | [
"JavaScript"
] | 1 | JavaScript | BlessedEmoefe/japhets-project | 6d70f0fc06e380cc1e1d3ee7e07d9f1d878b9406 | 39d077af83b179e80b3f6e8fe75698000012fdc7 |
refs/heads/master | <file_sep>$( document ).ready(function() {
$('.form-search').on('submit',function(){return false;});
$('.form-search .btn').on('click', function(e){
var query = $.trim($(this).prevAll('.search-query').val()).toLowerCase();
$('div.product-grid__product-wrapper .product-grid__title').each(func... | 6d9881927c45d8c5d94737914b840110ea73cc25 | [
"JavaScript"
] | 2 | JavaScript | Thejashwini96/e-commerce | 0bbe40b55f53ccb196d88b876433c941ada9a835 | 15140ad3bc18d0814c6944da8a37195b8a33aa74 |
refs/heads/master | <repo_name>mbondyra/inspector-dom<file_sep>/src/index.js
var VALID_CLASSNAME = /^[_a-zA-Z\- ]*$/
var constructCssPath = el => {
if (!(el instanceof Element)) return
let path = []
while (el.nodeType === Node.ELEMENT_NODE) {
let selector = el.nodeName.toLowerCase()
if (el.id) {
selector += `#${el.id}... | f3f839593985e652377d4cb7e8453e138f2a1a48 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mbondyra/inspector-dom | 7986d375cf9ef6ec68a50e205bff54d1b0984782 | 1898f005348862ec912fdd174c2d3cb5ec9bef11 |
refs/heads/master | <repo_name>freezeChen/blog<file_sep>/src/api/Mock.js
// var axios = require('axios')
// let MockAdapter = require('axios-mock-adapter')
//
//
// export default {
// init() {
// let mock = new MockAdapter(axios);
//
//
// mock.onGet('/getList').reply(200, {
// code: 0,
// msg:... | 068e080fed21a2a1233dd203484f29683aa38a0b | [
"JavaScript"
] | 3 | JavaScript | freezeChen/blog | 0ba619b03956974d846054b92b5e79e685e1c417 | 3febd940844c525bd6d664177796ab66ff71e0e3 |
refs/heads/master | <repo_name>vishal1565/Networking<file_sep>/misc/README.md
# README
This contains some of miscellaneous networking codes.
<file_sep>/tcp_server_single_request.c
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<netinet/in.h>
#include<unistd.h>
#include<string.h>
#define PO... | 2eb9ff8420ac5fdc3e7cc9f99892be97b0360994 | [
"Markdown",
"C",
"Python"
] | 17 | Markdown | vishal1565/Networking | 808213b47f4613e4a9bd03fb917edcc5445949df | 87575126707ee8d0e7380b39635ab1483bbc6388 |
refs/heads/main | <repo_name>workmodeactivate/3D-Creator-Website<file_sep>/README.md
# 3D-Creator-Website
#### link: https://professorcodedz.github.io/3D-Creator-Website/
<file_sep>/js/app.js
//VARIABLES
let base = document.querySelector(".base");
let block = document.querySelector(".block");
let colorInput = document.querySelector("... | ec6c8d1eed66b82101ea459f1158b76dbd1b2466 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | workmodeactivate/3D-Creator-Website | e3dcb29af36757623d47eafdbdf76d29f07bab2d | 24661696e05de88ef053730fdbe279a4e2ae8556 |
refs/heads/master | <file_sep>import React from "react";
import logo from "./logo.svg";
import "./App.css";
import Header from "./components/Header";
import TodoList from "./components/TodoList";
import "react-bulma-components/dist/react-bulma-components.min.css";
import { Button, Card } from "react-bulma-components";
import SubmitForm fr... | e8227918c3c95d8d5b55ed4ae4e9a51e961b97bf | [
"JavaScript",
"Markdown"
] | 21 | JavaScript | potential-octo-parakeet/100DaysofCode | 534d5c91a75d4be28cd1424051ce8654d64f0880 | 0410b2c87eec42c3a6a45ee558e5edb8e7ab7bcc |
refs/heads/master | <file_sep>const seedData = require("../../../seedData");
const createNotes = (knex, note) => {
return knex("notes")
.insert(
{
title: note.title
},
"id"
)
.then(noteId => {
let notePromises = [];
note.listitems.forEach(item => {
notePromises.push(
... | f5dfed9cbcea457794324b70f15f0e6c23ef943b | [
"JavaScript"
] | 3 | JavaScript | MatthewKaplan/trapper-keeper-api | 934b80c4d341354787d5d43432bc77d2044ff332 | 419d71b3b126a4153357c64be524c97a0bd7d3df |
refs/heads/master | <repo_name>kareypowell/CakePHP-InPlace-Editing<file_sep>/src/View/Helper/InPlaceEditingHelper.php
<?php
namespace InPlaceEditing\View\Helper;
use Cake\View\Helper;
/*
* ----------------------------------------------------------------------------
* Package: CakePHP InPlaceEditing Plugin
* Version: 0.0.1
*... | 4f3d3540e128c3442fe1118833e683b643f060ae | [
"Markdown",
"PHP"
] | 2 | PHP | kareypowell/CakePHP-InPlace-Editing | 84b887c2fc5036e0f3d2534d56ec2b6f7ee3a12c | 9fd3ca9b9b55b86cf8ebc364a4ca52e12a8bbe5f |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers\Frontend\Job;
use Auth;
use App\Notifications\Frontend\Job\UserHired;
use App\Http\Controllers\Controller;
use App\Repositories\Frontend\Job\EmployeeRepository;
use Illuminate\Support\Facades\Notification;
class EmployController extends Controller
{
protected $emplo... | e1b93b573077ee640943ecfe81a7c106d02ce4d0 | [
"PHP"
] | 18 | PHP | NicholasStone/Ultra-Dog | fe6f6f865533aafa9e2427bd0f44dd398ffd3a9d | da24899048360cd70cea9097848bfaf4e0943bca |
refs/heads/master | <repo_name>lmhieu612/AI_SpamMail<file_sep>/Main.py
__author__ = 'madlife'
import sys
def read_input_and_train(filename,word_to_index,spam_likelihood,ham_likelihood,prior):
fd = open(filename, 'r')
line = fd.readline()
count_ham = [0 for i in range(0, 100000)]
count_spam = [0 for i in range(0, 100000)]... | 665e1687040744421c950aeac9ad856c89775d4c | [
"Python"
] | 1 | Python | lmhieu612/AI_SpamMail | bfa49a1692711d8f849e92559b9f489c45c7a039 | 14f2ca3eef570aa17d8badb392462af22125d5f9 |
refs/heads/master | <repo_name>Implexx/algorithms<file_sep>/lession_1/task_7.py
"""
Задача 7
https://drive.google.com/file/d/1lmUebi6gGXK6OeAX-bDrUL3R3FU6YhN6/view?usp=sharing
По длинам трех отрезков, введенных пользователем, определить возможность существования треугольника, составленного из
этих отрезков. Если такой треугольник существу... | 461f74ab2bd25c005cbc2a6b64852d17b7ae1f22 | [
"Python"
] | 5 | Python | Implexx/algorithms | 45852894a9fc7c0663f71e27d5e1ebc91ae4fff2 | ef19ee05a0bc3b0f44d4eaf7263329739ca9973c |
refs/heads/master | <repo_name>dhutson2/react-atm-homework<file_sep>/src/Account/index.js
import React, { Component } from "react";
class Account extends Component {
constructor() {
super();
this.state = {
balance: 0
};
}
depositCash = e => {
const cashIn = parseInt(this.refs.amount.value);
this.setState... | 8a01f3eeb6f4dcc53ee9cc255b7ae59e9d1dc696 | [
"JavaScript"
] | 1 | JavaScript | dhutson2/react-atm-homework | 6b95a8b8a8efb2d29c666dce50aa81b27fe881a3 | 6246416ed73370358387129f8294df5f55f5d367 |
refs/heads/master | <repo_name>beckodyy/mappingitout<file_sep>/mapitout/ViewController.swift
//
// ViewController.swift
// mapitout
//
// Created by <NAME> on 6/11/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad... | 3790fd0816cbe7cfc702d40ab8752d1ccd48ac80 | [
"Swift",
"Markdown"
] | 6 | Swift | beckodyy/mappingitout | 5c834725e80b0b5e9257986a92300991f8202f60 | 34c79b22df43137699a867ab286cc4fd1cd1dee3 |
refs/heads/master | <file_sep># vueInitProject
a vue initial project includes scss slide, loading-bar fetch and common style etc
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:1024
npm run dev
# serve with api localhost:3000
npm run api
# build for production in dev environment
npm run ... | 445219b4b9d9cf233050579efb053f235476855a | [
"Markdown",
"JavaScript"
] | 6 | Markdown | WinnerGirl/vueInitProject | bd6ff61d4bdf347562e39b6448f5fde8155754b5 | 05b1763ce5bcdb678d1f5e23322cd994040d9724 |
refs/heads/master | <repo_name>snakista/Image-Search-React-App<file_sep>/src/components/imageList.js
import React from 'react';
import './imageList.css';
const ImageList=(props)=>{
const imgs=props.foundImages.map(img=>{
return <img key={img.id} src={img.urls.regular} alt={img.alt_description}/>
});
return(
<d... | 2c8e5ac303fc4f035089aa272c70173b68ecad17 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | snakista/Image-Search-React-App | e902b78463f9d90e4d514ba3f456ff05e821d202 | 2b01e42abf8b7a01e168a0e9a5bbf20631e9136d |
refs/heads/master | <repo_name>akshatkarani/jus_for_laughs<file_sep>/README.md
# jus_for_laughs
Twitter bot to mirror Jokes from reddit and post it on [twitter](https://twitter.com/jus_for_laughs).
To access Twitter API I have used Tweepy and to access Reddit API I have used PRAW.
The bot runs every two hours automatically, for this ju... | 23c03d73342ec9e0c6ea8d74706aaaaddd5a3c1d | [
"Markdown",
"Python",
"Shell"
] | 5 | Markdown | akshatkarani/jus_for_laughs | acfa49872e8e715c755a1d67684e553dfec61b89 | 7db2c60247adaab89c2a71dbc8885caa7fe94108 |
refs/heads/master | <repo_name>at-shota55/follow-button<file_sep>/src/js/vdom/utils.js
//isEventAttr関数で 渡された attrs がonClickやonChengeなど先頭に on が着くかでイベントかどうか判定
export const isEventAttr = (attr) => {
return /^on/.test(attr)
}
//文字列でなければ仮想 DOM オブジェクトとして判定する関数
export const isVNode = (node) => {
return typeof node !== "string";
... | 7fd12f8e75991a2a3f126809a913a22e0fc1c6af | [
"JavaScript"
] | 2 | JavaScript | at-shota55/follow-button | 793a9acfe02048b7055709e652eae22a3033f8a5 | e92c26cc7f6c389cd3194ab3cd1af97f477d1e6d |
refs/heads/master | <file_sep>package com.example.kamal.saatzanhamrah.VisitLastDateEmployerToEmployee;
/**
* Created by kamal on 12/19/2017.
*/
public class LastTimeConfirm {
private boolean isSelected;
private String startWorkDate;
private String startWorkTime;
private String endWorkDate;
private String endWorkTim... | 6ff5c53c94079209b685f57e37222f41be0a5e86 | [
"Java"
] | 26 | Java | sayedkamalhoseini/MyApplicationwork | 5a8af6c6ee963fa3daa94defe29acec67181b21d | bac36ddcc1310aa354d8fe839474e48c74b58062 |
refs/heads/master | <repo_name>gedarufi/gcfglobal-front<file_sep>/src/app/@shared/course-item/course-item.component.ts
import { Component, Input, OnInit } from '@angular/core';
import { CourseEnrollment } from '../course';
@Component({
selector: 'course-item',
templateUrl: './course-item.component.html',
styleUrls: ['./course-item.... | 9557e878216879c00b7ad26fb2228c1a6b7010fb | [
"TypeScript"
] | 19 | TypeScript | gedarufi/gcfglobal-front | c69d63356aa6b9216be83a90b2a5e76b5df7a01a | a6bbf7eb4cc9baf2befda5e8eef8ab5aef5e428b |
refs/heads/master | <repo_name>zakharovre/JavaHomework<file_sep>/src/homework11/Task1.java
package homework11;
import java.util.ArrayList;
import java.util.Arrays;
public class Task1 {
public static void main(String[] args) {
String[] words = {"cat", "pet", "job", "dog", "cat", "dog", "sun", "dog", "top", "mad", "mug", "sit... | 81c09a62f2342a2badbb6de0e8c5d5a0c9178926 | [
"Java"
] | 16 | Java | zakharovre/JavaHomework | 2f2a531e323f4bd547611d0226aa5dbde43bdb04 | 974f4b3d7244a9c33caf6d8e53931d8fbcaaa894 |
refs/heads/master | <file_sep>#!/bin/ python3.8
#Projet numéro 2
#Read Definition for more medical description.
#Read Readme for more sources.
# DataFrame : CSV - UTF 8
import pandas as pd
# Windows :
#data = pd.read_csv("DATA/heart.csv", encoding ="utf8")
# Ubuntu :
data = pd.read_csv('/media/jhy/JHY/Etudes/Projets/Work in progress/... | ac889d59b88870f389ba75cfdfaba8c02adf42c7 | [
"Python"
] | 1 | Python | Jhy-Red/heart | a53d36f33445a068f395f8e8a59a775f1bcc59b3 | 009f7d12dd77f7271f121a30640890ef7c73e431 |
refs/heads/main | <repo_name>littlejo/python-rabbitmq-client<file_sep>/settings.py
protocol = 'amqps' #amqps or amqp
user = 'user'
password = '<PASSWORD>'
host = 'hostname'
port = '5671' #default port for amqps (5672 for amqp)
raw_url = f'{protocol}://{user}:{password}@{host}:{port}'
<file_sep>/Dockerfile
FROM python:3.9.0-alpine3.12
... | 5fc22e0fd01b87893996a6361fec9da2c6f8496a | [
"Python",
"Dockerfile"
] | 2 | Python | littlejo/python-rabbitmq-client | f93ff9bba9ad3e00cd78de6b2e80f746c3966a1a | 97b943825b0e973e2890e753266913960c64fc61 |
refs/heads/main | <file_sep>export default class Pixabay {
static async makePixabayApiCall(userSearchInput) {
try {
const response = await fetch(`https://pixabay.com/api/?key=${process.env.API_KEY}&q=${userSearchInput}&image_type=photo`);
if (!response.ok) {
throw Error(response.statusText);
}
retur... | 20cdc710e870380b6a1e3b993f7d0cceb0d599a9 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Pingel88/space-api | 97c4b315be2ad797f392d58ceee36c49124e4f63 | c18dca30810686c7293b3a46d2208a5ec4f7a3bc |
refs/heads/main | <file_sep># kanban
Kanban board
| 510d9f055b88dc83072f21392ac1d26a0babea06 | [
"Markdown"
] | 1 | Markdown | antoniokelvin/kanban | e0792c07b935690f8946e563f93919e96ace282a | a9d0684d2689f8965ab3ffe079e538164daba163 |
refs/heads/master | <repo_name>CoyoteNET/CoyoteNET-frontend<file_sep>/CoyoteFrontend/FakeLocalStorage.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace CoyoteFrontend
{
public static class FakeLocalStorage
{
// temporary work around to hold JWT somewhere
... | ba2a249429c5b333c17d549fc2dc2f50120ab92c | [
"C#"
] | 2 | C# | CoyoteNET/CoyoteNET-frontend | 40e59a27a88f0005f9125295994428c4d50ef9a8 | 986eb82247f203b81260590dc0a4c07ae8a203cf |
refs/heads/master | <repo_name>SneakyG/kits<file_sep>/CalculatorEx/src/exercise/CalculatorEx.java
package exercise;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class CalculatorEx {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.print("First nu... | 4c46d91d7f4a865b6058cfb16306c8cec64a3da7 | [
"Java"
] | 1 | Java | SneakyG/kits | 40fc80efd643d9e4d524ceed46b675e10fec0150 | 14b0cce73b0cffcbbd805618c853dbdc2f3b3cb4 |
refs/heads/master | <file_sep>{
'name': 'Customize login page',
'version': '1.0',
'description': "This module will change the display of login page",
'category': 'web',
'complexity': "easy",
'description': """
This module will change this login page.
=================
Change login homepage, logo and some CSS propertie... | e2fc295e0cc3b312a72d4bff63c5a4d849a93451 | [
"Python"
] | 1 | Python | sadana/customize_login | 5e96b214ba75441d361fb372fda80fab86c71aef | 354fd9759d31f9ea2d867ccc2082117106c989fb |
refs/heads/master | <repo_name>xohail/TRM---Test<file_sep>/tests/MyTest.php
<?php
use TheRMTest\StringCalculator;
use PHPUnit\Framework\TestCase;
class MyTest extends TestCase
{
protected StringCalculator $string_calculator;
public function __construct(?string $name = null, array $data = [], $dataName = '')
{
parent... | 143c076e0ad704932648a85e79be1b691046bb6f | [
"Markdown",
"PHP"
] | 4 | PHP | xohail/TRM---Test | cd23baa581219083f3a8238e7b737bdc63bca2d6 | b58c32f272cf9f16e7af0fb6638a76ceb3d38d71 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.