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>XZolon/cosc190as1<file_sep>/README.md
cosc195as1
==========
COSC195 AS 1
<file_sep>/BlackJackActivity/src/com/siast/cst/blackjackactivity/Player.java
package com.siast.cst.blackjackactivity;
import java.util.Vector;
public class Player
{
Vector<Card> cards;
public Player()
{
cards = new Vector<Car... | 9e6b491f77261d5a79c3b332d8c4e526ed8a762d | [
"Markdown",
"Java"
] | 2 | Markdown | XZolon/cosc190as1 | 54f73a532a4087161d1dc38bc3e1ef13c4c99273 | 7ee143015f535e0626cd8b3bd88bad7cb6668c19 |
refs/heads/master | <repo_name>lockejustin/GC_Lab4<file_sep>/GC_Lab4/Program.cs
using System;
namespace GC_Lab4
{
class Program
{
static void Main(string[] args)
{
bool continueProgram = true;
while (continueProgram)
{
int num = PromptForInteger("Pl... | 310a86293002f6f329d1a6700669380e7ed42727 | [
"C#"
] | 1 | C# | lockejustin/GC_Lab4 | 1ca626e48d6d65dbf25248359a317ecd552c0d2d | 42f2d85331d84d3fe11d202bdde95e826d16dac8 |
refs/heads/master | <file_sep>import React from 'react';
function Blue() {
const blockStyle = {
height: '500px',
width: '500px',
backgroundColor: 'blue'
};
return <div style={blockStyle} />;
}
export default Blue;
<file_sep>import React from 'react';
function Red() {
const blockStyle = {
height: '500px',
... | 1c4733ea0597521e01f7167d3116f32bd8e2f3f3 | [
"JavaScript"
] | 3 | JavaScript | UncleJerry23/react-routes | 64e496c2c1e21bf6482d48105d1eca8c54c847f4 | 5d47fe57c3bba9da3f50e99bf95c2fd1cdfdf1e4 |
refs/heads/master | <file_sep><?php
namespace NodePub\Provider;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use NodePub\Monolog\JsonFormatter;
use Silex\Application;
use Silex\ServiceProviderInterface;
use Symfony\Component\HttpFoundation\Request;
/**
* Configures Monolog to log messages as json objects
*/
class MonologJso... | eaa1f9c145c254b791e3642d2c21c0532a7ba851 | [
"Markdown",
"PHP"
] | 3 | PHP | nodepub/monolog-json-service-provider | 043c74503c36aea608cae2286776809580762d85 | 4b27f253dab4970a5bf9d9ea935ff5d3334e8b04 |
refs/heads/master | <file_sep>"use strict";
IScoreLog;
{
penalty: number,
advantage;
number,
score;
number,
timeStamp;
Date;
}
<file_sep>export default (req,res,next) => {
res.status(404);
res.send('404 Not Found');
}<file_sep>"use strict";
exports.__esModule = true;
var express_1 = require(... | 483b2056e1fd07fea8e1c9a51ba90f01647e1a42 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 24 | JavaScript | omriwa/competition-app | 84a7462a991f08420c71a7a61220640558a471a5 | 239821ecb2d24ef0e2e41e503723a905f4750323 |
refs/heads/master | <repo_name>severli93/Dashboard-Design-Practice<file_sep>/script/usMap.js
const margin = {top: 20, right: 20, bottom: 30, left: 20};
// MAP SVG //
const width = d3.select(".mapDiv").node().clientWidth;
const widthLeft = d3.select(".productImgDiv").node().clientWidth;
const widthRight = d3.select(".salesDiv").node().clie... | 211e0f9de1c6953c1b7bd367474817abc2abfe94 | [
"JavaScript"
] | 1 | JavaScript | severli93/Dashboard-Design-Practice | 7276636f4e2572c30d57d99667f1d219a5ced8a8 | 017cffc4670061d0d19be36a722c9b4c7fb259ce |
refs/heads/master | <repo_name>katherineRamirez/cumplo<file_sep>/src/components/Navigation/Navigation.js
import React, { Component } from 'react';
import logoCumplo from './../../logoCumplo.svg';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import UfExt from './../Uf/UfExt';
import DolarExt from './../Do... | c5c72af48ef4f8cdee68e2c0095b84d21f87d44b | [
"JavaScript"
] | 7 | JavaScript | katherineRamirez/cumplo | 2767cff3d8875288fc39605f5e4e2849c7a9114d | 8e29fe580718931ef0299049b3123c311c4150d3 |
refs/heads/master | <file_sep>import React from "react";
import "./MapView.css";
import SearchBox from "../SearchBox/SearchBox";
import UseMyLocation from "../UseMyLocation/UseMyLocation";
import MapUI from "../MapUI/MapUI"
export default class MapView extends React.Component {
constructor(props){
super(props)
this.state = {... | fdf8c7c6e3eb1d0c15a16c9a385a5b439366c565 | [
"JavaScript"
] | 2 | JavaScript | yellowspectre/yelp-clone | b5ec06e17b0714133f6fbd23a9923f23a00a0dfb | b6de88a4a005e39012ec048073bc9482bd711c99 |
refs/heads/master | <file_sep>const express=require('express');
const router=express.Router();
const userController = require("../../controller/userscontroller");
// user register routes
router.post('/register',userController.register);
router.post('/login',userController.login);
router.post('/verify-user-email',userController.verifyEma... | eb8bee1526dd4d27c5b700c8eee9571ecd605c78 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | subhamoydeb/Ecommerce | f4f0cc48376549721824fae76f510a59438bc0aa | e3ee9e134907ccf52fb5cb82609a1604cb4fbd0d |
refs/heads/master | <repo_name>MiliciaUX/thirstalert<file_sep>/app/controllers/static_pages_controller.rb
class StaticPagesController < ApplicationController
def home
end
def about
end
def dudes
end
def chicks
end
end
<file_sep>/test/controllers/pages_controller_test.rb
require 'test_helper'
class PagesControllerTest <... | d06218caee2be6fd8f322fe4dd672e5174038d1c | [
"Ruby"
] | 3 | Ruby | MiliciaUX/thirstalert | d15b941af2af52e6a8c7042ee3dc24ca05e301ca | 8e8680c4ea767965d3f388e69008041f932dd0bc |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Model\Member;
use Illuminate\Http\Request;
class MemberController extends Controller
{
//验证是否登录
public function __construct()
{
$this->middleware('auth');
}
public function index()
{
$members = Member::paginate(5);
... | 676acc22189c1cc64b2e088ec0aa8233ec6eb235 | [
"PHP"
] | 7 | PHP | tangzejun/admin.eleb.com | 5fabb53fe9808744069e305d311d44fdfbb992a3 | d20d6372d069cd14a49b1df7ccda94b7fb9a2fbe |
refs/heads/master | <repo_name>HannahLuter/Intro-to-xCode<file_sep>/About Me/About Me/ViewController.swift
//
// ViewController.swift
// About Me
//
// Created by Apple on 7/9/20.
// Copyright © 2020 Hannah. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var helloTitle: UILabel!
... | 5b0c433d4938583216eb5a6f5dc3ea1128baeda3 | [
"Swift"
] | 3 | Swift | HannahLuter/Intro-to-xCode | a8e9c9ce520aad45e40ba78b73119e1d159b199b | 383f87e3aa5a643f4bd4e4d153549a1ea13a9004 |
refs/heads/main | <repo_name>CyberHanterBangladesh/mck-a<file_sep>/main2.py
version="1.1.4"
#IMPORT
import getpass,time,os,sys
import signal
import time,os,sys
import sys, random
import threading,time
import os,requests
#CVALUE
blue= '\33[94m'
lightblue = '\033[94m'
red = '\033[91m'
white = '\33[97m'
yellow = '\33[93m'
green = '\033[1;3... | 36cb3642de156b51d251dc1d5f2ed52f4ca3f199 | [
"Markdown",
"Python"
] | 2 | Python | CyberHanterBangladesh/mck-a | 90cbc23002b7c2e2dfc186c00ae42ec04ade27b6 | 264ce481cf710dad4761154a4edfdef8e5251d1c |
refs/heads/master | <repo_name>Inuits/drupal-cats-plugin<file_sep>/README.md
drupal-cats-plugin
==================
A module that receives latest Job orders form an openCATS instance, generates job apply forms and allows to post user submitted data back to openCATS
Drupal core = 7.x<file_sep>/cats_joborders.forms.inc
<?php
/**
* Job or... | 7dbaacf9443682641fe9d2a067f412bd65baac64 | [
"Markdown",
"PHP"
] | 3 | Markdown | Inuits/drupal-cats-plugin | 2d4c87e19e4995842b6b0abcc7b18a0c518d8237 | f4a0346c49506e0faf29adade7ce7d6d4b00a298 |
refs/heads/master | <file_sep>//
// THWebview.swift
// THWebview
//
// Created by <NAME> on 22/10/2019.
// Copyright © 2019 james. All rights reserved.
// Version 1.0.2.
import Foundation
import UIKit
import WebKit
public class THWebview: UIView, WKNavigationDelegate, WKUIDelegate {
private let webView = WKWebView()
pr... | 2f857108313065f0c825e4f168ff478ed772cb25 | [
"Swift",
"Markdown"
] | 4 | Swift | aboutyu/THWebview | 906e96f9600f26b9850ed9c336232d15f1f53310 | a66878fb4eebf867bd074e7f694edc5e40c8216a |
refs/heads/master | <repo_name>sywl-ds/test<file_sep>/halaman/submit.php
<!DOCTYPE html>
<html > <!--<![endif]-->
<head>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../css/flexslid... | 7eac6571bead238805ccf4eca020a2bf80002e92 | [
"SQL",
"PHP"
] | 18 | PHP | sywl-ds/test | 5997b2604ec281fa3b4a77659e0ac74e6e700ba1 | 70b507a54e2e513b94287535a711a86ad1fce776 |
refs/heads/master | <file_sep>package com.noname.setalarm.repository;
import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.ForeignKey;
import androidx.room.PrimaryKey;
import androidx.room.Relation;
import androidx.room.TypeConverters;
import androidx.annotation.NonNull;
import com.noname.setalarm.model.Clock... | 18322ed8c191b3f179fbdb44a264897a0dbaf89c | [
"Markdown",
"Java"
] | 9 | Java | dabin3178/setAlarm | e9bfd552a95751d9d07f4e0fef2fb20d430e5f25 | 7c630ff76b3b49f970860131a78f5f8482043db5 |
refs/heads/master | <repo_name>gabrielibarbosa/redesII_sniffer<file_sep>/README.md
# redesII_sniffer
Código sniffer implementado
<file_sep>/sniffer.py
#encoding: UTF-8
#enconding: ISO-8859-1
import pyshark
import csv
from datetime import datetime
captura = pyshark.LiveCapture(interface="eno1", only_summaries=True)
captura.sniff(packet... | 94de144e3dab5341a0355a37ff6fc8e16e1ba8a8 | [
"Markdown",
"Python"
] | 2 | Markdown | gabrielibarbosa/redesII_sniffer | a9c7b9f7f31b7156029cdda755ca9d5b8cf40f64 | 5528515fad8c94003f71f834d09bb3fe7f6b6f94 |
refs/heads/main | <file_sep># Extracción de links en sitios web
Ejercicio de prueba. Dado una URL, extrae todos los links contenidos en ese sitio. Accesible tanto como endpoint de API (/scraping/) o como comando ejecutado en el container Docker. Se implementó generando una aplicación en FastAPI, con una base de PostgreSQL administrada ... | 999f883b0bbaf4caa878f660a53e310e5404abd4 | [
"Markdown",
"Python"
] | 9 | Markdown | joacosaralegui/ejercicio-web-scraping | 7fc87eaaf4d0767733d4447a30d2cf6f3d50a582 | 880d7438736496cf6f0f2e8712657fc4c22564eb |
refs/heads/master | <repo_name>BrynjarUlriksen/BrynjarUlriksen.github.io<file_sep>/sketch.js
// Screens
const LOADING = 0;
const MAIN_MENU = 1;
const PLAYLOAD = 2;
const PLAY = 3;
const HIGH_SCORE = 4;
const SETTINGS = 5;
const TESTINGSCREEN = 6;
let currentScreen = TESTINGSCREEN;
let currentButton;
//loading
let loadingCounter = 0;
let... | deea70aa972cef0379485963cbc85300634d1f03 | [
"JavaScript"
] | 1 | JavaScript | BrynjarUlriksen/BrynjarUlriksen.github.io | c4d680acb0dc4708b2acc40e7cfbeddbd57fa256 | 9b02a07271c13ca68f88adc784a428a0c71682bd |
refs/heads/master | <repo_name>jim-lightfoot/MondoCore-MongoDB<file_sep>/MondoCore.MongoDB/MongoCollectionReader.cs
/***************************************************************************
*
* The MondoCore Libraries ... | 830fe548eb0acfda3d5bc61899caffb16509856f | [
"Markdown",
"C#"
] | 7 | C# | jim-lightfoot/MondoCore-MongoDB | 5d7f407a032a61b96ae0f277054f9eb5ae0df78f | cf8bafbeba357cec4dbae2d31cda528d3394873d |
refs/heads/master | <file_sep>import java.util.Arrays;
public class Solution {
public int solution(int[] T){
int marker = 0;
boolean found;
for (int i = 1; i < T.length; i++) {
marker = i;
found = true;
int[] winter = Arrays.copyOfRange(T, 0, i);
int[] summer = ... | e52b571a8fb16fc79287b4de6d44cce0f5a10aa8 | [
"Java"
] | 1 | Java | COJ123/WinterAndSummer | 402b7db83038737135a3bc49687e2691250f5ee2 | b2629b5cc34b3d29edd32f352c58f5fd3c0e4b5e |
refs/heads/master | <repo_name>JasonHhhhh/stackgan<file_sep>/StackGAN-hjr/StackGAN/stageI/run_exp.py
from __future__ import division
from __future__ import print_function
import dateutil.tz
import datetime
import argparse
import pprint
import sys
import os
# Allow relative imports when being executed as script.
# if __name__ == "__main... | 219114db6803c2bbbb6671336c4ac9233400458c | [
"Python"
] | 5 | Python | JasonHhhhh/stackgan | 81f76f5c2de7a57f5ab1c7adf0421dbe375f1388 | de63a42702917f40d4a183928d8d6c94fb555336 |
refs/heads/main | <repo_name>jkchuong/Chess<file_sep>/README.md
# Chess
Creating a Chess game in C# with WPF.
This project is to practice use of interfaces and decoupling in OOP.
When completed, this will be combined with the AccountManager project at https://github.com/jkchuong/AccountManager
<file_sep>/ChessApp/ChessTests/CellTests.c... | 2df5b24ab4ede265ff7747b9c5dd21f6dfb7e656 | [
"Markdown",
"C#"
] | 4 | Markdown | jkchuong/Chess | 31bffc2a7e2e9477a7305183794965fce1024ed3 | f4a3c52fd292db058b5c06ed6de4889dbadc9b70 |
refs/heads/master | <repo_name>philipjohn/add-shortlink-to-posts<file_sep>/readme.txt
=== Plugin Name ===
Contributors: philipjohn
Donate link: http://philipjohn.co.uk/
Tags: shortlink, shorturl, tinyurl
Requires at least: 3.2.1
Tested up to: 4.0
Stable tag: 0.3.3
Adds a link to the shortlink for each post below the content.
=... | 7c3ed19809facc43ff8c12d89942224758fb75af | [
"Text",
"PHP"
] | 2 | Text | philipjohn/add-shortlink-to-posts | f7f0dd7931adc9a49b092fe19abe1151ef8e51a2 | 071b28ae37e6b2c564771d85f0df3b22fd6c4220 |
refs/heads/master | <repo_name>nghiatran0103/c4ejs108<file_sep>/session4/index.js
// alert('hello');
let Hung = {
tuoi: 25,
chieuCao: 180,
congViec: 'lap trinh'
}
let movie = {
title: 'batman',
year: 2012,
rate: 8.4,
}
// cach dung .
// console.log(movie.title);
// cach dung object['prop']
// console.log(movie[... | 4f5e8c600c8b4911c7c8f06360b32fb33a2f22fb | [
"JavaScript"
] | 5 | JavaScript | nghiatran0103/c4ejs108 | 6c71f4bd1be98b03030c9e02d5155b0c1040ca81 | 91db107d3dd3182d22e03356873339701dbd271e |
refs/heads/master | <file_sep>package jp.co.scsac.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import jp.co.scsac.entity.Book;
i... | e94bc3c06a25ddd771c156f497fd823ce72a6642 | [
"Markdown",
"Java",
"SQL",
"INI"
] | 10 | Java | sha-dev/spring-jpa-rest_test | 69fb7733d972af81fc3730083519bda28defd387 | 36c5e9497972909a61bff6a1a3ce339b74939541 |
refs/heads/master | <file_sep>package com.example.wall_i.utils
object Constants {
const val baseUrl = "https://pixabay.com/"
const val apiKey = "11809334-b8b2b529a4dd728dc8663833a"
}<file_sep>package com.example.wall_i.data.api
import com.example.wall_i.utils.Constants
import retrofit2.Retrofit
import retrofit2.converter.gson.Gs... | 6e07c78a9d671174a14199cdca869d4ff5745666 | [
"Kotlin",
"Gradle"
] | 13 | Kotlin | Abhishek38/Wallpaper | f5a01071a0dc2e97952b44d1f71ffcd0230f25ca | bf47ba3b7af274fb23ca56d063940b1ea03897fa |
refs/heads/master | <repo_name>radoslawglowacki/hangman-python<file_sep>/hangman.py
import random as random
import file_reader as file_reader
IS_RUNNING = True
TRIES = 6
FILE_WITH_WORDS = "countries-and-capitals.txt"
list_of_words = file_reader.read_file_to_list(FILE_WITH_WORDS)
def preparing_word_to_answer():
underscores = []
... | b9736f27c81f89ec829e310fed63471e463da936 | [
"Python"
] | 2 | Python | radoslawglowacki/hangman-python | ccb154995a2b971c61c158be66ae10275152d353 | 3b5e57283eef4d4c694e896dc82c2b6764c1038f |
refs/heads/master | <file_sep>(function() {
'use strict';
window._ = {};
// Returns whatever value is passed as the argument. This function doesn't
// seem very useful, but remember it--if a function needs to provide an
// iterator when the user does not pass one in, this will be handy.
_.identity = function(val) {
//not... | 19678da1f64eb25610d3a0cc2566ace12d493e42 | [
"JavaScript"
] | 1 | JavaScript | alohaglenn/underbar | 7770375dff9d15641aadf512a8f9d20ffdbe72bd | 38f3771580f8186d51e76350aea31eba97100f1b |
refs/heads/main | <repo_name>alpha-oss/HYDRA<file_sep>/gen.py
import string
import random
if __name__ == "__main__":
s1 = string.ascii_lowercase
#print(s1)
s2 = string.ascii_uppercase
#print(s2)
s3 = string.digits
# print(s3)
s4 = string.punctuation
#print(s4)
plen = int(input("Enter th... | 419e3a812377040945b1603cb35830494d28af1e | [
"Markdown",
"Python"
] | 2 | Python | alpha-oss/HYDRA | 04d04147b92f85f24f45f1253e38538374760916 | 0b1570aece0bdb926fdfb1a1a1571f417eb1fff8 |
refs/heads/master | <file_sep>
export class EbayCalls {
let
} | 30e07035d9ffc266a08e40655db53c2e80f38497 | [
"JavaScript"
] | 1 | JavaScript | HarMinas/ProductSearch_Angluar2_Node | 685d397e295918fa264a93691a32728da96b650d | 6aa27975d9b41c0b4a913b851b5f7d163e66ef8c |
refs/heads/master | <repo_name>jeffreyerikson/Jest<file_sep>/jest/src/test/java/io/searchbox/core/IndexIntegrationTest.java
package io.searchbox.core;
import io.searchbox.action.Action;
import io.searchbox.client.JestResult;
import io.searchbox.client.JestResultHandler;
import io.searchbox.common.AbstractIntegrationTest;
import io.search... | 1a0c97740e11a7de5c6271023b3d0f37b3458e72 | [
"Java"
] | 1 | Java | jeffreyerikson/Jest | 06dcef1e2bf52de43205bca98c5b66f1b5b42a4d | 6531a31b2cc174591da940fcef4656b26491c40a |
refs/heads/master | <repo_name>SDIBTACM/2018-Fun-programming-contest<file_sep>/D/program.c
#include <stdio.h>
#include <math.h>
//只有相邻的两个点斜率才可能是最大
double max(double a,double b){return a>b?a:b;}
int main(){
double MaxK,x,y; //当前点
double frontX,frontY; //前一个点
int n;
scanf("%d",&n);
int i;
for(i=0;i<n;i++){... | f8f3e0204f3eeaeba8224e39f0a0ca45f7374538 | [
"Markdown",
"C",
"C++"
] | 18 | C | SDIBTACM/2018-Fun-programming-contest | 32cb234857157880ca5733e7c5ed915e6788cd97 | b932da7d9ce523ba823e733958ebd8be90907962 |
refs/heads/master | <file_sep>import log
import config
import GenericNode
nodes = []
nodes_inst = {}
def init(collector):
if not len(nodes) == 0:
raise BaseException("Already Initialized")
for node in config.nodes:
module = None
try:
module = __import__('collect.newnodes.%s' % node, fromlist=['%s' % node])
#globals()[nod... | 82475f727472b51696eb2e802d0a76208409db9e | [
"Markdown",
"Java",
"Python",
"Text",
"C",
"Shell"
] | 60 | Python | origliante/hgw | 17f40fc62f69e32be7119cac027fbc88af7e54e1 | c9f5c53bc360bae48b1ec417b0930bc02c7f81da |
refs/heads/master | <file_sep>var inputTemp = 0;//input中的内容
var first = 0;//第一操作数
var second = 0;//第二操作数
var operator;//储存运算符
var one;//一步运算操作
var pointer=1;//对一或二操作数操作的标志
var afterCaculation=false;//是否运算的标志
function clearAll()//清空所有
{
inputTemp.value = 0;
first = 0;
second = 0;
pointer = 1;
operator = false;
afterCaculation = fal... | 358e22c1fa407fc5926528274dc21f7f5718e742 | [
"JavaScript"
] | 1 | JavaScript | lizlizlizlizliz/ITstudio | ebed734f7284f3413b01df11e05fe189e4e7686b | 0166f5ee73f147e83ae694042701922a2d1ade41 |
refs/heads/master | <repo_name>fR33Q/kolokwiumPUM<file_sep>/app/src/main/java/com/example/damian/myapplication/LekiAdapter.java
package com.example.damian.myapplication;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;... | ce55d67cee2afdf72ad945b586bb0bfdff148c07 | [
"Java"
] | 2 | Java | fR33Q/kolokwiumPUM | b945214b830654da1ccdca0e0d93d6246d63daff | 7f5db199eb3b6697d514523eeff8ae9c480a906e |
refs/heads/master | <file_sep>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 28 12:56:49 2017
@author: jojo
"""
import string
import porter2_jojo
import re
#processing email.
#start by counting characters.
SU = string.ascii_uppercase
SL = string.ascii_lowercase
No = string.digits
def get_char_counts(string):
"... | 2efe86e7117110a95e5aa1c87d2ef72e84ca756c | [
"Python"
] | 2 | Python | JoHoughton/Data-Mining-Demo-Code-18-19 | 9ac5bd7143f454a39e5f56884c97b019c13bab2c | d8b6751ddb9ae6b66108921b67674731b3cf9ee8 |
refs/heads/master | <repo_name>league1991/WRayEngine<file_sep>/WRayEngine/WRayEngine/main.cpp
#include "Application.h"
#include "Mesh.h"
//#include <util_init.hpp>
int main(int argc, char* argv[]) {
//const char *filename = "E:\\Code\\WRayEngine\\WRayEngine\\WRayEngine\\cornell_box.obj";
//ObjLoader loader;
//loader.Load(fi... | 90a483ec6a29be34c3d3ca64371619aedec38662 | [
"C++"
] | 9 | C++ | league1991/WRayEngine | 8afd117e8a1cf10c51f6826795d691527dadbb79 | 44f860af52b8d5ecc22359a6e52227d57e2af43e |
refs/heads/master | <repo_name>yunieju/leetcode<file_sep>/two_sum.py
class Solution:
def twoSum(self, nums: List[int], target: int) -> List[int]:
seen = {}
for i, num in enumerate(nums):
temp = target - num
if temp in seen:
return [seen[temp], i]
else:
... | 78a9d14d05967beb5433a00bd5920dd87a901d4f | [
"Markdown",
"Python"
] | 28 | Python | yunieju/leetcode | d4c2cf38fb3547c4e1701ba6d87889fecfb1ded1 | 56044395fb9844fe47e331344725bd9f35ee3af9 |
refs/heads/master | <file_sep>
getRandom=()=>{
const quotes = [
"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time.",
"Don't watch the clock; do what it does. Keep going.",
"The secret of getting ahead is getting started.",
"Well done is better... | dfe8dcb2f1731e2ec1e6a661891e31fe5ed441c5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | 123aadina/QoD | 39958465be5837a1c9616c65fe9475b6a90f6073 | 3dd981eb778f62844d4b370b29bed92ffda75ea3 |
refs/heads/master | <file_sep>var nombre = prompt("Digite su nombre por favor");
document.write("<p>"+nombre+"</p>");
| 92de5846d91b4a48c603aea4bf5ac5f954d658cd | [
"JavaScript"
] | 1 | JavaScript | ozkrmora/pSimple | c49109568ad27eb2c81d1e82faa18932b4221d5f | f57dda0c5c5aa43bb3259144566535370a87f845 |
refs/heads/master | <repo_name>damonsong/node-spotify-playlist-export<file_sep>/main.js
require('dotenv').config();
const fs = require('fs');
const SpotifyWebApi = require('spotify-web-api-node');
const Promise = require('bluebird');
const moment = require('moment');
const _ = require('underscore');
/**
* INPUT PLAYLIST ID HERE
*/
var ... | ee8b7eb6d909c73e9384b1f85da348522b086427 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | damonsong/node-spotify-playlist-export | f634b3630c27f114485f420855cdaf15fffe8dfc | a44e33dba61e3200b832706a56afd945b513765a |
refs/heads/master | <file_sep>import speech_recognition as sr
def ListenToVoice():
mic = sr.Recognizer()
with sr.Microphone() as source:
mic.adjust_for_ambient_noise(source)
print("Please say something")
audio = mic.listen(source)
print("Recognizing Now .... ")
try:
phrase ... | 4cdd75e616602ea0d4ad366804c5717eee1af6f4 | [
"Markdown",
"Java",
"Python",
"Gradle"
] | 12 | Python | smith-gj/SeniorDesign | f794af403ecfd392ecde7a46021910b42b1b03f0 | 3e77ff459afce8bdff043d32e724652a1cc9b722 |
refs/heads/main | <file_sep>from model.tft5 import SnapthatT5
from model.lr_schedule import CosineDecayWithWarmUP
import tensorflow as tf
def get_model(strategy=None,
metrics=None,
model_fn=SnapthatT5.from_pretrained,
P=None):
with strategy.scope():
if metrics is None:
... | 20830dc61248e39c30774b06aed0055a99c9f02a | [
"Markdown",
"Python",
"Text"
] | 11 | Python | hyang0129/aspect-sentiment-dashboard | 431727ef02de651e1d4cb0fa2abd9ee12c2277fa | b6f3398d942e9b9297c541cf7934efa5548164d2 |
refs/heads/master | <repo_name>BlaHaws/Thinkful<file_sep>/Mesa/c_agent.py
from mesa import Agent
class CivilianAgent(Agent):
def __init__(self, unique_id, model, agent):
super().__init__(unique_id, model)
self.age = int(agent.ages)
self.gender = int(agent.gender)
self.religion = int(agent.religion)
self.agr_bhv = float(agent... | 45c675c1c249ac8a2d52c9b1dc128c28ea27ad5d | [
"Python",
"Text"
] | 9 | Python | BlaHaws/Thinkful | d198af722e4145bb93bd6cb3761e3c1dbd2f8409 | 7bd3feb2ad956e1b615c3d9c61a604cff736e7f8 |
refs/heads/master | <repo_name>js-30/PC-Verwaltung-Volz-<file_sep>/PC_Verwaltung_mit_DB - Start/PC_Verwaltung_Ver1/DbAdapterPCVerwaltung.cs
using System.Collections.Generic;
using System.Globalization;
using MySql.Data.MySqlClient;
namespace PC_Verwaltung_Ver4
{
public class DbAdapterPCVerwaltung
{
/*SQL Querys aus MySql... | 0cc5eebcfbcbc746c63cc3a7c45cc0c41c54e36a | [
"Markdown",
"C#",
"SQL"
] | 6 | C# | js-30/PC-Verwaltung-Volz- | a160ba2a38d1d92aa9cb96a57870d23449ce4330 | cdb98043ea5753df5a8119ba5088eb60e1754e37 |
refs/heads/master | <repo_name>boss-srithong/sutxlane-project-admin<file_sep>/src/components/Profiles/Profiles.js
import React ,{useState, useEffect}from 'react'
import { View, Text ,Button, Dimensions, Image, ImageBackground, KeyboardAvoidingView, TouchableOpacity} from 'react-native'
import { FlatList, ScrollView, TextInput } from 'reac... | f36000bb322f35e863580076a6b1c76a9c3f5e9a | [
"JavaScript"
] | 9 | JavaScript | boss-srithong/sutxlane-project-admin | 8ca7184eb42c72e5ef7739e77e01f2990468505f | 8b7aa2dd7ecccbdf9971c6abc2589d65d7d4434a |
refs/heads/main | <file_sep>from django.apps import AppConfig
class AlbumProjectConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'album_project'
<file_sep>from django import forms
from django.db import models
from django.db.models import fields
from .models import Albums, Tracks
class AlbumsForm(... | b848f5abc8573743c1ff3806bbc56a6c4cb770ee | [
"Python"
] | 6 | Python | Connorh223/django-music-Connorh223 | 6fca2bf249a6d7e9dbb69f3c99024e885d44a2ea | 4bf1d2faad366b86d5be04ebb2f200a8ee07a980 |
refs/heads/master | <repo_name>Andirie/ProgrammingAssignment2<file_sep>/cachematrix.R
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
invMat<- NULL ##holds the value of inve... | c242fe59d5c9d1017d100cb2373c037fd3213ece | [
"R"
] | 1 | R | Andirie/ProgrammingAssignment2 | 09aaffba5e2b36196b957b162618aa6b8d87bc9f | a88ffba2e86b5380e4b75302516bc4acf8ccfc6a |
refs/heads/master | <repo_name>Asvor93/PetShop.CrashCourse2019<file_sep>/PetShop.Core/ApplicationService/Services/OwnerService.cs
using System.Collections.Generic;
using System.Linq;
using PetShop.Core.DomainService;
using PetShop.Core.Entity;
namespace PetShop.Core.ApplicationService.Services
{
public class OwnerService: IOwnerServ... | 5f633d23d3b32813c81f34887af9f4fca72da947 | [
"C#"
] | 8 | C# | Asvor93/PetShop.CrashCourse2019 | 2c7cf69f3c46d1331a61b67a2f5410e8e673a964 | cd10ae861e60d00a69d9945ef9ce22ecd61e5b29 |
refs/heads/master | <file_sep>//
// Created by sulin on 2017/9/29.
//
#ifndef UILIB_WINDOWITEM_H
#define UILIB_WINDOWITEM_H
#include <QQuickItem>
#include <QWindow>
#include <QQuickWindow>
/**
* @brief For native drag
*/
class WindowTitleItem : public QQuickItem {
Q_OBJECT
public:
explicit WindowTitleItem(QQuickItem *p... | d689ec745e45d47b9242e682371c76c6f0f88a05 | [
"C",
"CMake",
"C++",
"INI"
] | 38 | C++ | go-eden/goxui-cbridge | 6661aa8bd3ab0d3d95805bcbd0efa4ae12a2867d | 9f9ba6ef6758629d6897e44a3628f970d07269e8 |
refs/heads/master | <repo_name>Sploradorali/Tetherball<file_sep>/README.md
# Tetherball
Core JS test of basic 2D collision detection.
<h2>Concept</h2>
The ray/line rotates on the center point of the canvas by incrementing/decrementing the x- and y-coordinates of both ends. Coordinates between the start of the line, the end of the line, ... | 9df9da6d954a48f101203a3607e560f64bea7114 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Sploradorali/Tetherball | 42461c926b3f968e27fa564e60818aefb1acb191 | cc428152d5faddc67a851b3f43cdb5165beb273c |
refs/heads/main | <repo_name>sakil-g/Projet-Adrie<file_sep>/controller/Valid_inscription.php
<?php
function validerDonneesFormInscription($data ) { // Création de la fonction qui va nous permettre de verifier les données
$champs = [ // Ici on crée un tableau ou l'on récupere les champs dans n... | 699d5f2fad38e9ddaa34d2e5a6bd86d337407efe | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 27 | PHP | sakil-g/Projet-Adrie | 0262f62221404db9ad29d1fb8eaebbb77ebfa363 | 15d8e59a90b039b1354bc285ca035081e68f0bda |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
namespace TournamentTracker.Models
{
public class Tournament
{
private readonly IPairingGenerator _pairingGenerator;
private IEnumerable<Player> _players;
public int Id { get; set; }
public string Nam... | 64240f6dde910ae4d2803d987095e5453de4b5e7 | [
"Markdown",
"C#"
] | 9 | C# | akukolu/tournamenttracker-lib | d91c398a8fb6ec28f4e7b5291d7a26af1dee2d82 | e191454a7f023332525a823abce48e0bd540e89a |
refs/heads/master | <repo_name>Mukulikaa/bookroast<file_sep>/requirements.txt
alembic==1.4.2
astroid==2.4.1
cachelib==0.1
certifi==2020.4.5.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
Flask==1.1.2
Flask-Cors==3.0.8
Flask-Session==0.3.2
Flask-SQLAlchemy==2.4.1
Flask-WTF==0.14.3
Flask-Login
gunicorn==20.0.4
idna==2.9
isort=... | 3fe56d33edc6ff9435b666b2603435e73f3b13e3 | [
"Python",
"Text"
] | 3 | Text | Mukulikaa/bookroast | 05a0b66f89db5aba239146405d3cc4ee80f1d018 | ce39a6851f37e7937d29fe64f7c5805ca90e14e1 |
refs/heads/master | <file_sep>#include "coin.h"
Coin::Coin()
{
location = {0, 25, 0};
radius = 10;
thickness = 8;
rotationSpeed = 0.1;
color = {1.0, 0.8, 0.1, 1.0};
hoverPeriod = 60;
tickNumberModHoverPeriod = 0;
hoverSpeed = hoverPeriod / (2*PI);
hoverAmplitude = 6;
hoverScaleFactor = hoverAmplitu... | 66d83f5b5df0d9d6650b5145dae324ad7f72a531 | [
"Markdown",
"C",
"CMake",
"C++"
] | 23 | C++ | marcus-elia/streetnight | 3d99e623ce35c3ec6c722e46168b0bc65aeef301 | 7e9a3a2798f17a89956f118fd890e9b841a33a53 |
refs/heads/master | <file_sep>
<?php
header("Location: /html/register.php");
die();
?>
<file_sep><!-- TODO: watch, games, campus -->
<?php
session_start();
if($_SESSION["id"]==null) {
header('Location: register.php');
// console_log("PENIA");
}
// console_log($_SESSION["bday"]);
function console_log($output, $with_script... | cf2a5b9e46fe718f433f3e54610b5dc4b5221c83 | [
"JavaScript",
"PHP"
] | 3 | PHP | larryz1230/webredesign | b2ec9632d7dd8ea8cc415b8259f947bffe757f00 | e990fbbdddfe3c45a07285b95eff170571d27d8f |
refs/heads/master | <repo_name>meeoh/CSGO-Wallpaper-Downloader<file_sep>/README.md
# CSGO-Wallpaper-Downloader
downloads all the pictures from every page from http://www.mossawi.nl/csgo/
Run imagescraper.exe in windows folder or run imagescraper.py, a folder in where the script is being ran named csgoBackgrounds will be created, and all ... | c86778dea1df95ed03b02d7e6dbff7f6f5651e6c | [
"Markdown",
"Python"
] | 3 | Markdown | meeoh/CSGO-Wallpaper-Downloader | 5428689785d887ecc17df0575735382fdea4e13a | bccbe5c094a33a799c1ee8127b598e42bb3ed14e |
refs/heads/master | <repo_name>denBot/dmenu_nordvpn<file_sep>/nord.sh
#!/bin/bash
typeset -A menu
menu=()
show_status () {
# Show the nordvpn status info if available
while read -r line; do
menu+=([$line]="nord")
done <<< $(nordvpn status)
}
show_settings () {
# Show current settings and allow user to toggle
... | 5c8ab631cfc0c8efb6cb3f1d37980c1c0879425a | [
"Markdown",
"Shell"
] | 2 | Shell | denBot/dmenu_nordvpn | 5940641770f7f52ea49e62762ba96c59b0a3fdf0 | 5394cb917184494e3a465cadd7fc7008d035d6fd |
refs/heads/master | <file_sep>package com.example.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class Main2Activity extends AppCompatActivity {
String name;
String roll_no;
String phone_number;
String schoolname;
String saikat;
String saikat34;
... | f3eeb36b70f6e0f2a9b8b308f89799f550a7cf76 | [
"Java"
] | 1 | Java | sakky16/SampleGit | 3702a63f61fc2f82b1e5bdea4036903f5d8f70e2 | 99d877c893b7e7ae597c06bb0f196512aecb564d |
refs/heads/master | <file_sep>import React, { useContext } from 'react';
import { AuthContext } from '../Authentication/Firebase/Context';
import Authorized from './Authorized';
import NonAuthorized from './NonAuthorized';
import Private from '../Authentication/Private';
const Navigation = () => {
const { currentUser } = useContext(Aut... | 2b2e6eb82fe2c8fccc9e4c4b869046179ffde3c8 | [
"JavaScript"
] | 2 | JavaScript | 415CA/react-redux-toolkit | c44a2247d23cca882c80170df33e264a301623c8 | 6205789e3525b64c89cf956caf3cf534da3baea8 |
refs/heads/master | <file_sep>/**
* @author Rube
* @date 15/12/15
*/
var http = require('http');
var mq = require('mq');
var connect = require('./lib/connect');
var request = require('./lib/request');
var response = require('./lib/response');
var cookies = require('./lib/cookies');
var app = Application.prototype;
var methodCollectio... | 30497ca5ded06b1144e30051c71123e1130176b7 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | treejames/fibx | 143b1077d59ee2907d6c58a456d4787403944bad | 499195cce777a50fe3b82a89d399add803963d77 |
refs/heads/master | <file_sep>// Package parser transforms a raw request into map[string]interface{} or []interface{}.
// Loosely based on github.com/martini-contrib/binding.
package parser
import (
"encoding/json"
"errors"
"fmt"
"io"
"mime/multipart"
"net/http"
"strings"
"github.com/go-martini/martini"
)
type (
// Request par... | a49cf50481874f102e5d6efd57203c6a03d0e722 | [
"Go"
] | 1 | Go | gavv/martini-parser | bb4bd01e45aabdc3e851108c47b4de1a2b6425c1 | 978a61129947483140d5bf96c781584c69d54cdd |
refs/heads/master | <repo_name>mikiasgv/realtimeApp<file_sep>/app/Http/Controllers/LikeController.php
<?php
namespace App\Http\Controllers;
use App\Model\Like;
use Illuminate\Http\Request;
use App\Model\Reply;
use App\Events\NewLike;
class LikeController extends Controller
{
public function likeIt(Reply $reply) {
$reply->li... | 0c764dd6707fb9e7d175ab4e53fa94f27d967d9f | [
"JavaScript",
"PHP"
] | 3 | PHP | mikiasgv/realtimeApp | 77fc5747c13c04a6e24d2dffbc95d0311d5d8c05 | 838011961522a3b862f601ab4c0d80c884f23283 |
refs/heads/master | <repo_name>NiNJAxFREEZu/Organizator-nut<file_sep>/funkcje.h
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#define DATA_FILE "database.dat"
#define ID_FILE "id.dat"
#define CAT_FILE "category.dat"
#define CATID_FILE "catid.dat"
#define MAX_SIZE 51
#define AND &&
#define OR ||
#define WORK printf... | 24a4f6f04f4ed147546fc5d716ad12e286c31d98 | [
"Markdown",
"C"
] | 3 | C | NiNJAxFREEZu/Organizator-nut | d6f9fb7815e8e8074cfaacc2cc0cd680afbe0aa3 | 756b0431babe40760c7c832507d950f84e75aeae |
refs/heads/master | <file_sep>//
// GameScene.swift
// dbz
//
// Created by BM on 2019-03-14.
// Copyright © 2019 BM. All rights reserved.
//
import SpriteKit
import GameKit
let wallCategory: UInt32 = 0x00000001 << 0
let playerCategory: UInt32 = 0x00000001 << 1
let enemyCategory: UInt32 = 0x00000001 << 2
let attackGCat... | eb822dee8c1f71eddeecd247cfefc46f9a7a8792 | [
"Swift"
] | 4 | Swift | BMerlo/DBZiOS | 1b969c96765f42a9d1578900abb7c52e05a5423f | 6a4da817b64e86c7b255ad0229adae552b2ef5e1 |
refs/heads/master | <repo_name>nallerooth/packpub-downloader<file_sep>/main.go
package main
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
"net/url"
"os"
"packtpub-downloader/tagparser"
"regexp"
)
// packtPubBaseURL Base URL
const packtPubBaseURL string = "https://www.packtpub.com"
// packt... | 471f596aa8bff1965020e31f719295b6a4ce6e77 | [
"Go"
] | 2 | Go | nallerooth/packpub-downloader | d62f033c4b5485fe1b3bb3f5e0a147c171953465 | bb61f6de5b31af2406bb4603200337d455e9ac32 |
refs/heads/master | <file_sep>//
// Created by michal on 01.06.18.
//
#ifndef UNTITLED_GAMEOPTIONS_H
#define UNTITLED_GAMEOPTIONS_H
#endif //UNTITLED_GAMEOPTIONS_H
<file_sep>#include <iostream>
#include <cstring>
#include <cstdlib>
#include <vector>
#include <algorithm>
using namespace std;
int board_size;
unsigned int ... | 7abbd075b776de32665a2b036f6911e311806331 | [
"C",
"C++"
] | 2 | C | MBocian96/tictactoe | 2d9d609fdb7abdd68a71f0ba5804ade104b452e5 | 6a8f98d73aa9d4bc58802ca3c454dac1c73fc71d |
refs/heads/master | <repo_name>pangbo4cnic/ciomp_dataTrans<file_sep>/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
... | 7c92cffda94f8522e2e1d1cb055ceb223dc58b93 | [
"Java",
"Maven POM",
"INI"
] | 4 | Maven POM | pangbo4cnic/ciomp_dataTrans | b1df2b667bec8f0b8f124581d52b59ee837655a5 | da9ff0de9bb57e2c77a0d951cc48289e162aadb1 |
refs/heads/master | <file_sep>'use strict';
var housingRegex = /housing\.com/gi;
chrome.tabs.query({
currentWindow: true,
active: true
}, function(tabs) {
var data = {};
console.log(tabs);
var url = tabs[0].url;
var queryString = {};
var searchString;
var domain;
function openVM(){
var path = domain.split('//')... | 81d9c6f3c3371bcbe9e80fbcc266b3f9d6382f49 | [
"JavaScript"
] | 1 | JavaScript | ritz078/housing-chrome-extension | b57c8695728596e4d4fc9e836fda36d78f6914c1 | 7fcc3a9499fee4c03a018b309ca8834ad76ce851 |
refs/heads/master | <repo_name>athanri/shortlink_neueda_pj<file_sep>/angularshortlink/Dockerfile
# # Pull the latest Node image from Docker
# FROM node:latest
# # Copy the current directory contents into the container at /app
# COPY ./ /app/
# # Set the working directory to /app
# WORKDIR /app
# # Install Node Modules
# RUN npm install... | 24378e282d6a505ba56c9f6e574a62597aec15dc | [
"Markdown",
"TypeScript",
"Dockerfile",
"YAML"
] | 8 | Dockerfile | athanri/shortlink_neueda_pj | 200194b81fe9f94b14eb3163dc7cdb1d3364212b | 064c1327a134c3a34f9fae4f1a8531d9e1fac811 |
refs/heads/master | <file_sep>package com.accenture.sfdc.utils;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Base64;
import javax.imageio.ImageIO;
/**
* Clase para gestionar la codificación de los datos
*
*/
public class Encoding {
/**
* Método para obten... | 12000b5d303ddcd69955125f0dbd3bba292e16e1 | [
"Markdown",
"Java",
"Maven POM"
] | 5 | Java | mucori/IOhanathonHeroku | 95665ef602da586e0b6867575a774ffa8273abcd | c14e9394f8b0d302bf17bcf44d33c7d569832495 |
refs/heads/master | <file_sep>package pepinazo;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import cucumber.annotation.After;
import cucumber.annotation.Before;
import cucumber.annotation.en.Given;
import cucumber.annotation.en.Then;
import cucumb... | 8ae8ffe160169ab299bf2f5a727288b0d38675c6 | [
"Java"
] | 1 | Java | SandraFloresB/pepinazo | 343e28d4016b44fd3418e391c15b5847a317059f | db93bbeb68a97dc1712fdbe136078630134dc953 |
refs/heads/master | <repo_name>paulwolo/Meditate<file_sep>/Meditate/ViewController.swift
//
// ViewController.swift
// Meditate
//
// Created by <NAME> on 4/30/18.
// Copyright © 2018 paulwolo. All rights reserved.
//
import UIKit
import AVFoundation
class ViewController: UIViewController, BWWalkthroughViewControllerDelegate {
... | dd3ac35d91804daff2fcf18e294936393aec8120 | [
"Swift"
] | 1 | Swift | paulwolo/Meditate | 41a4234959472930f86f3690071cc16369eef61e | f98562990e3de6d55c414e5cc0ef54daaef556e0 |
refs/heads/master | <repo_name>Fenimorkin/norsu<file_sep>/norsu/utils.py
import subprocess
from .exceptions import Error
def execute(args, cwd=None, output=True, error=True):
stdout = subprocess.PIPE if output else subprocess.DEVNULL
p = subprocess.Popen(args, cwd=cwd,
stdout=stdout,
... | ef229f17b1d23c78a0ec3e3eacf2abc0a4a20331 | [
"Python"
] | 5 | Python | Fenimorkin/norsu | 64946db38cefdc7a4c49cfbae089048378dfda24 | 7290a248835d7bef4f78241f8d8456b25fbd441f |
refs/heads/main | <file_sep>// using recursive method
package main
import "fmt"
func binarySearch(datalist []int, target int) (result int, searchCount int) {
mid := len(datalist) / 2
switch {
case len(datalist) == 0:
result = -1 // not found
case datalist[mid] > target:
result, searchCount = binarySearch(datalist[:mid], targe... | 159327e63a2fbece923455ad7bc6a187ead068f7 | [
"Markdown",
"Go"
] | 6 | Go | fatematzuhora/data-structures-algorithms-with-go | 4f5f877bf6efa7e79df1a387167ec98530710517 | 6abb98acf72027ee154f37efbea7ae4ac1ccac4c |
refs/heads/main | <repo_name>DameinCode/tech-culture-internship-2021<file_sep>/Week1/ToDo/3.js
function func(x) {
if (typeof(x) !== 'string') {
alert('It is not a STRING!')
}
else {
x = x.trim()
if(x.length > 30) {
x = x.substring(0, 31)
x += '...'
}
return x
... | d54380c2a05b34eba69ecbcdbf02354fd3bf28cc | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | DameinCode/tech-culture-internship-2021 | 45fef593aeb872da0862bf53db708c827fc86bf3 | b3c8d274edbd1cd5c8141d67bf931b8f4004c769 |
refs/heads/master | <file_sep>#include "config.h"
#include "debug.h"
#include "string.h"
#include "uart.h"
const char* cfg_area_status_names[] = {
"empty",
"dirty",
"open",
"modified",
"closed",
"completed"
};
static inline unsigned char cfg_type2tag(struct cfg_type const* t)
{
return t ? t - g_cfg_types : ~0;
}
static struct cf... | be1d47fbe8d78eacb691191675d5e04de7a3643d | [
"Markdown",
"C"
] | 27 | C | bwp530/micro-config | baf5b2307afa24d122f47f9961b3e036a98a5d4b | f93ec9f865c1f241782db63e4ec07c11b9e5c68f |
refs/heads/master | <file_sep>package co.grandcircus.lab.Coffee_Shop.dao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import co.grandcircus.lab.Coffee_Shop.entity.Items;
import co.gr... | 5ec8d6d69639933167b89f6dfaadc7ae32bb40ff | [
"Java"
] | 1 | Java | Maltheos/Lab_22_23 | acc4224bc312f8a34753d7261e9d15066ff983f6 | d52a3d3b128debbaa9d511f58569e5ac08221fbb |
refs/heads/main | <repo_name>itairozen/dealer_choice<file_sep>/server.js
const { db, syncAndSeed, models:{Item} } = require('./db');
const express = require('express');
const path = require('path');
const app = express();
app.get('/styles.css', (req,res)=> res.sendFile(path.join(__dirname, 'styles.css')));
app.get('/', (req,res)=> res.... | d61c1bbce7b5590a7b010415661ae347917f9d50 | [
"JavaScript"
] | 1 | JavaScript | itairozen/dealer_choice | 3fc01801261c9210999359632ab1869fbffacc8a | 9d2008e3529a3857fa155033f0db8d09b87925e3 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.ComponentModel;
namespace ImageProcessing
{
public class DerivateiveEdgeDetectorParms
{
[NotifyParentProperty(true)]
public Channels Channel { get; set; }
... | f281cd8d6feadbe310e21ab8251857cfb1766bff | [
"C#"
] | 12 | C# | tjm5114/ImageProcessing_0.2.1 | 328e1610c32386108359a80f8ecc2832d795707a | 9d4478574046700ad0c807fcec43e8410b4f8580 |
refs/heads/master | <repo_name>niharr7/chatAppRepo<file_sep>/extension1/panel.js
var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
menuRight = document.getElementById( 'cbp-spmenu-s2' ),
menuTop = document.getElementById( 'cbp-spmenu-s3' ),
menuBottom = document.getElementById( 'cbp-spmenu-s4' ),
showLeft = ... | 4b15aabf3eb7c9c4b76370c5483c0ac2aed36b75 | [
"JavaScript"
] | 4 | JavaScript | niharr7/chatAppRepo | 7fc95b9febe53ddbaaf8d2bcb2e7d860b510aa51 | f65992e48033fe3ab8c40025eabb3bcb84bd75c0 |
refs/heads/master | <file_sep>var map;
var markers = [];
function initMap() {
var sanDiego = {lat: 32.7913085, lng: -117.1523774};
// Constructor creates a new map - only center and zoom are required.
map = new google.maps.Map(document.getElementById('map'), {
center: sanDiego,
zoom: 11
});
// Create a marker for e... | 97740c55ae6d95d2823ead28459fc9ea000a2dca | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | caesarsalad93/neighborhood-map-project | c8de211b1fa580904a5f4165dc4c44124775419c | 1f0734b30531e4baa8d41262fde23cf46f420c0d |
refs/heads/master | <repo_name>sairina/pokedex<file_sep>/src/Pokecard.js
/**Shows a single Pokemon, with their name, image, and type. */
import React from 'react';
import './Pokecard.css';
function Pokecard(props) {
const { id, name, type, base_experience } = props.pokemon;
const image = `https://raw.githubusercontent.com/PokeAPI/spr... | 2b6457dd397341b673a96ea861dbe9a1e80d3048 | [
"JavaScript"
] | 1 | JavaScript | sairina/pokedex | fb7b13a3989f5179db8130c72b590110aca7bfeb | 7fcf9cad3a0795e6a2cc5317150b1752235dc47b |
refs/heads/master | <file_sep>class Photo < ActiveRecord::Base
mount_uploader :file, Uploader
end
<file_sep>class Uploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
process :resize_to_fit => [200,200]
storage :file
def store_dir
'image'
end
end
<file_sep>require 'haml'
get '/' do
@photos= Photo.all... | 7b0acf5943ce21fd47dcd73f11aa5cfbc28a0542 | [
"Ruby"
] | 3 | Ruby | wontwon/toybox | 62fe43d16e9a0b4c36bfbe84d59502928f0d0649 | 83d7043b50c8cff865343f7d0c9debd0759a96cd |
refs/heads/master | <repo_name>luclx/Android-Architecture<file_sep>/AndroidArchitecture/domain/src/main/java/tisoul/dev/domain/domain/usecase/GetUserProfile.java
package tisoul.dev.domain.domain.usecase;
import tisoul.dev.domain.domain.usecase.base.UseCase;
import tisoul.dev.domain.model.UserProfile;
public interface GetUserProfile
... | 08fe8097fa3f39f21d8358ce7309c2482cf68427 | [
"Markdown",
"Java",
"Gradle"
] | 6 | Java | luclx/Android-Architecture | 4e70bceef462414142f3b71a5dd6948f36a21d1e | 1488c039a2e63d5e8f21c9f5064d0f4c528d8050 |
refs/heads/master | <file_sep>import React from 'react';
import GitHubIcon from '@material-ui/icons/GitHub';
import LinkedInIcon from '@material-ui/icons/LinkedIn';
import EmailIcon from '@material-ui/icons/Email';
function Footer() {
return (
<section>
<div>
<a className="icon" target="_blank... | ba8589f3930cc5248825b66fdff12b0cf31335e1 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | jbeedle19/react-portfolio | 9396e3477d9bc157ab9b350937afceebefc2eef3 | 08f242c3713d53bbd355be08168381f2d1e60293 |
refs/heads/master | <repo_name>AlessiaYChen/gcpe-hub-api<file_sep>/Gcpe.Hub.API/Startup.cs
using System.Data.SqlClient;
using AutoMapper;
using Gcpe.Hub.Data.Entity;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCor... | 44fec2b954c477d356616a9fdd4404f47d58696a | [
"C#"
] | 2 | C# | AlessiaYChen/gcpe-hub-api | 282ec53fbc30f76d59e046d51403a06d2567a39e | 8785b62c99523ae7b3b36db20d483b22c5bee5f5 |
refs/heads/master | <repo_name>Luisburgoro/Compania<file_sep>/src/main/java/Departament.java
import java.util.ArrayList;
// Se crea clase Departament
public class Departament {
public Employee managedBy;//atributo perteneciente a la clase Employee
private ArrayList<Employee>employeeArrayList;
private ArrayList<Office>officeA... | da9e0f432e3ef1e5e1d4591a37619f0ca054df25 | [
"Markdown",
"Java"
] | 4 | Java | Luisburgoro/Compania | f0efbb79cd037b6deb0612d795d0fde96c401190 | 08f18bf815a559fe3c783042cc9ec60e17fc62c4 |
refs/heads/master | <file_sep>import React from 'react';
import { WButton, WRow, WCol } from 'wt-frontend';
const TableHeader = (props) => {
const buttonStyle = props.disabled ? ' table-header-button-disabled ' : 'table-header-button ';
const clickDisabled = () => { };
//const { data } = props;
const handleSortByT... | 5361238d3cd53c07ce27f0b983b6ec02dfeaa295 | [
"JavaScript"
] | 2 | JavaScript | KevinD65/CSE-316-HW3 | 68ffca6c7d580bdd2084a9e28c6b5f54d7feab24 | 36a816ba20f7be1344a87234d1d04502e5b0e900 |
refs/heads/master | <file_sep><?php
/*
* Copyright 2018 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | d0f427219b64970fab3342c70d2979eb05a7c957 | [
"Markdown",
"PHP"
] | 4 | PHP | dhawton/backups | 9ba767cbc84918a98b300ea36eecf512a3ce9660 | 92632645efac1a760b87fb4971512404a22bb1e3 |
refs/heads/master | <file_sep>/**
* Created by Nastushka on 08.11.2014.
*/
document.addEventListener('DOMContentLoaded',homeAccess,false);
document.addEventListener('DOMContentLoaded',loggedUser,false);
function homeAccess(){
var params = sentUser();
var xhr = new XMLHttpRequest();
xhr.open('GET', '/homeAccess?' + params... | 768ce7c6ac8c261916bb6a8527606f5ce1ecfb17 | [
"JavaScript"
] | 6 | JavaScript | sharitonchik/bonfireNode | 978dab230f0c097e7379d828bbe72c7227361818 | c59fa3a4f9d297033f2ef077791157d358df3a09 |
refs/heads/master | <repo_name>WildflowerSchools/pi-gen<file_sep>/stageWF/01-k8s/00-run.sh
install -m 644 files/daemon.json "${ROOTFS_DIR}/etc/docker/"
rm -rf "${ROOTFS_DIR}/etc/systemd/system/dphys-swapfile.service.d/"
<file_sep>/stageWF/02-startup-checks/files/startup.sh
#!/bin/bash
export TERM="linux"
export MACs=$(ifconfig -a | g... | a4ecde8d75962645e551cccdf8bd6def2b7f867d | [
"Shell"
] | 4 | Shell | WildflowerSchools/pi-gen | fa1ff8e1bcb4eea4406b8ef6e87c7dfda0662527 | f5e68b106b308959ae76511d9fb39ef84ec4ca51 |
refs/heads/master | <file_sep>const Firebase = require('./firebase');
const Mailer = require('./mailer');
const Stripe = require('stripe')(process.env.STRIPE_API_KEY);
const build_address_object = ({address_line1, address_line2, city, state, zip}) => Object.assign({ address_line1, city, state, zip }, address_line2 ? { address_line2 } : {... | dd40318874575104d94b85dfbe6b8d3a51d156b4 | [
"JavaScript"
] | 6 | JavaScript | atulmerchia/fultonhhc-api | bc0d98c02b3098b2234e147b55c3004bc1d0e34f | 87b01a47d3b206bd1e6b4fa876e1cd01bc2f3e54 |
refs/heads/master | <repo_name>Chris-Miracle/oauth-google<file_sep>/redirect.php
<?php
require_once 'vendor/autoload.php';
// init configuration
$clientID = '534290604425-elo1t7b6jo6jclf6lm85ha1mqi5j26p0.apps.googleusercontent.com';
$clientSecret = '<KEY>';
$redirectUri = 'http://localhost/redirect.php';
// create Client Request to... | 1d2976e45722238451d817343111acc3e81deefc | [
"PHP"
] | 1 | PHP | Chris-Miracle/oauth-google | 64f8cf81b958e229841744add8b05b3cd3322280 | a038b653f8e2054bad0e4d9fa69314c70decda62 |
refs/heads/master | <repo_name>demon1772/deface<file_sep>/install.sh
green="\033[32;1m"
yellow="\033[33;1m"
blue="\033[34;1m"
red="\033[35;1m"
echo $red
echo "sabar";
sleep 0.1;
echo $red
echo "sabar";
sleep 0.1;
echo $red
echo "sabar";
sleep 0.1;
echo $red
echo "sabar";
sleep 0.1;
echo $red
echo "sabar";
sleep 0.1;
echo $red
... | 6943819eb49a9aa0119f58e7f65ec5e5c5abcee5 | [
"Shell"
] | 2 | Shell | demon1772/deface | 408cdcc65b0e7d44ab7d3422949be6a4e6351833 | bf2d81179024e0669985042ac468d5c6bf0392da |
refs/heads/master | <file_sep>import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import DataCatalogGroup from '../../../DataCatalog/DataCatalogGroup.jsx';
import DataPreview from '../../../Preview/DataPreview.jsx';
import AddData from './AddData.jsx';
import ObserveModelMix... | 0df3ce845a0e56855d9b94f7f552ef20050b4ea7 | [
"JavaScript"
] | 1 | JavaScript | rsignell-usgs/terriajs | 243b46b4db7350200172312fbe986f18762d0dc9 | 77902bac09ca6241d0c36a232ade41f3a00ce71b |
refs/heads/master | <repo_name>AshleyCano-JuanCandia/movies-application<file_sep>/src/index.js
// "use strict";
/**
* es6 modules and imports
*/
// import sayHello from './hello';
// sayHello('World');
/**
* require style imports
*/
const $ = require('jquery');
const {getMovies} = require('./api.js');
let movieData = {};
let movieData... | d62b29526119a8cd7be99775f6644a3d8ad0ace5 | [
"JavaScript"
] | 1 | JavaScript | AshleyCano-JuanCandia/movies-application | 845274bd1e1280d35b62316e5afc3285e5ed5a49 | 5018285062ca795a1ca7df2e4aa33d1233bf5afa |
refs/heads/master | <file_sep>def quicksort(array, sortFunc):
totLen = len(array)
if totLen <= 1:
return array
pivot = array[totLen/2]
array.remove(pivot)
less = []
greater = []
temp = []
for x in array:
if sortFunc(x, pivot) < 0:
less.append(x)
else:
greater.... | 2c430929a9d5b3f0237ae207dd456df6d15c2a8a | [
"Markdown",
"Python"
] | 12 | Python | butshuti/planbuilder | 915a76a9167a578bd4a12809837e0fcef5105e7d | e3c3ec5861c1682291228953e73467c7b1ab7e6b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.