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 com.jx372.springex.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework... | 792198384bf669bed7d1df5b318e9260526b0af4 | [
"Java"
] | 2 | Java | Pgahye/springex | 67c5527e29edd0089853af3f10621f0569236c46 | 10adfdba52554bf5220d64c008754e8cdeef77b1 |
refs/heads/master | <repo_name>marbrb/Scripting-with-python<file_sep>/networks/serverTCP.py
import socket
import threading
import sys
bindIP = sys.argv[1]
bindPort = int(sys.argv[2])
clients = []
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((bindIP, bindPort))
server.listen(5)
print "[*] listening on {}:{}".fo... | 00e70694f75388a95436658009a0ff11f54ba498 | [
"Markdown",
"Python"
] | 20 | Python | marbrb/Scripting-with-python | 63f12bac7943bf54e3bfcb469dd3b6118d9ae61a | 66699526c156c8097f8f9d4e27b929ea1b043749 |
refs/heads/master | <file_sep>import find from 'lodash/collection/find';
import omit from 'lodash/object/omit';
import {ListIterator, objectDiff} from './utils';
/**
* Handles the underlying data structure for a {@link Model} class.
*/
const Backend = class Backend {
/**
* Creates a new {@link Backend} instance.
* @param ... | bc6c4b16a50192eb1a95847646ff835d42d0370e | [
"JavaScript"
] | 3 | JavaScript | jef-rl/redux-orm | 0d072835ae1b2af68f11aef5da8f31a9d4286c43 | 8b0719b17f4d0e639d51ad85811f2fa7992f7764 |
refs/heads/master | <repo_name>chrisswhitneyy/cs418_virtualWorlds<file_sep>/README.md
#CS413 Virtual Worlds (Summer 2016)
Code repo for all course projects. Simple games devoloped in Javascript using the Pixi lib.
<file_sep>/project1/game.js
/*******
CS 413 Project 1-Minimalism
Purpose: To demostrate basic understanding of the core tech... | 971c6147974d3ac1d372789ccfaced570f231ad8 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | chrisswhitneyy/cs418_virtualWorlds | 0e20d65d5bf3d684489cd0a3c1ce62a60538d716 | eea3dc63b9845780b0e576b80fcfc56d9f0e996c |
refs/heads/master | <file_sep>using System;
using Grind.Common;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI;
using Windows.UI.Xaml.Media.Imaging;
using Windows.UI.Xaml;
using ... | e2d5aae7a70e44691925375e02681d6d27de40e5 | [
"Markdown",
"C#"
] | 6 | C# | zachatrocity/Grind | 696420ebf9c7051b1c481062529a89efbf940390 | 151f1ee9072843d699f6b96ae17e99d7fc188cc1 |
refs/heads/master | <file_sep>package edu.berkeley.guir.prefuse.action;
import java.util.ArrayList;
import edu.berkeley.guir.prefuse.ItemRegistry;
/**
* The ActionSwitch multiplexes between a set of Actions, allowing only one
* of a group of actions to be executed at a given time.
*
* @version 1.0
* @author <a href="htt... | cdc2b89c953ced0f5a8f62618697203e7773e0da | [
"Java",
"HTML"
] | 72 | Java | sahlaK/vizbook | 9a5b4a28a0aeeb250ad82050af8e9ae375d56305 | f36ad1034bfcdc1361de6f6e315e40305cd6c782 |
refs/heads/master | <repo_name>sarunasdubinskas/DataTreesDepthCalc<file_sep>/DataTreeDepthCalc/DataTreeDepthCalc/Saka.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace DataTreeDepthCalc
{
class Saka
{
private int depth = 0;
private int maxDepth = 0;
... | 50bcaf2d3e669db3ca17d2fcf65751ef8bb00f58 | [
"C#"
] | 2 | C# | sarunasdubinskas/DataTreesDepthCalc | 3da27454908646729480f414be1290303cee95dd | f4a8c1a06fbdc012c4c9f4f5ef93be8373928f85 |
refs/heads/master | <file_sep>package com.zhao.dao;
import java.io.InputStream;
import java.sql.*;
import java.util.Properties;
public class BaseDao {
private static String url;
private static String username;
private static String password;
// 静态语句块,在类创建时首先加载MySQL驱动
static {
// 加载流文件
try {
... | ba750ade97b9672bb41fe25a3088727761949177 | [
"Java"
] | 2 | Java | yuyun-zhao/smbms | 7996f29a186dd7e7f7c9388fa185102afb93e50c | 80189eb88b07238ffce92791d7d6cd1d9e8450fa |
refs/heads/master | <file_sep># awall-e
Firewall update scripts for PF.
There are 4 scripts.
1 fwadd / Add an item to be on the permanent blocked list.
2 fwdel / Delete an item on the permanent blocked list.
3 fwprep / It scans /var/log/authlog and blocks all items that meet the following conditions which are the following:
"Did not... | dedf6524160da95911298fff2f6cc3be4bb86aae | [
"Markdown",
"Shell"
] | 4 | Markdown | sillkongen/awall-e | 724980c4739906e4cd51fe1b5472f59238dbf585 | 518e79bd6e7efb54c8e0dc02ce64e583adb36581 |
refs/heads/master | <repo_name>arcadu22/flight_micro_backend<file_sep>/src/main/java/com/example/demo/controllers/controladorDestino.java
package com.example.demo.controllers;
import java.util.ArrayList;
import java.util.Optional;
import com.example.demo.models.Destino;
import com.example.demo.services.destinoServices;
import org.sprin... | 45bc8daf21e500c4f0fbd74ed45cc386645c0865 | [
"Java",
"INI"
] | 13 | Java | arcadu22/flight_micro_backend | a1b364a2e6417a824ed02195508d0c7538a2e69d | 7ec5b6e719ef9c8fc3c4541a06a043ad046b456b |
refs/heads/master | <file_sep>/**
* This class is used for parallelizing the SP algorithm.
*
* Ref.: <NAME>. and <NAME>. (2013).
* On an exact method for the constrained shortest path problem. Computers & Operations Research. 40 (1):378-384.
* DOI: http://dx.doi.org/10.1016/j.cor.2012.07.008
*
*
* @author <NAME> & <NAME>
* @... | 161668d8c77b96f5fdb7ae590fc8f8619b09d969 | [
"Java",
"Python"
] | 21 | Java | DCorredorM/SaRP | c8ca8a593f2faaa05e473ab694d21566d97e33e8 | 73c32f03c6d1c5ec14304f6767c09e5f375cee73 |
refs/heads/main | <file_sep># -*- coding: utf-8 -*-
import math
def deg2grad(deg):
grad = (deg * 10) / 9
return grad
def grad2deg(grad):
deg = (grad * 9) / 10
return deg
def grad2rad(grad):
pi = math.pi
rad = (grad * pi) / 200
return rad
def rad2grad(rad):
pi = math.pi
grad = (rad * 200) / pi... | 84f159192b69aeccc4bd10001ca3ea300a481adc | [
"Python"
] | 1 | Python | Pepusiek/kod | 42abcd6c0914bb02ef0da1fc8c7d860b841723b5 | 5d6f36630ef0470967b75ec03b7219a143ab07fd |
refs/heads/master | <repo_name>StarredOuyang/NewsSharingWebsite<file_sep>/login.php
<!DOCTYPE html>
<head>
<meta charset="utf-8"/>
<link href="base.css" type="text/css" rel="stylesheet" /><!-- connect to css style sheet-->
<title>Login</title>
</head>
<body><div id="main">
<h1>Let us login</h1><br><br>
<form name="input" ... | ae6cc03a984dd24de597ed4e140c172099206bce | [
"Markdown",
"PHP"
] | 18 | PHP | StarredOuyang/NewsSharingWebsite | 8e168f1d50576ff0a07b1bea11c89dec86bcf975 | 2775d389f3aa75f5675578cd0ae1e82777b10ea1 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerRotation : MonoBehaviour
{
void Update()
{
if (!GameController.instance.GameOver)
{
RotateWithMouse();
}
}
//rotate player com a posição do mouse
private... | d96bd547dc95b60d5b1582cdd5d43b30d7d822c3 | [
"Markdown",
"C#"
] | 13 | C# | jerffesonj/Cannon-Lord | 68e04698e3d25b6b911d6ccceb27db83a7bd380a | 8f59690ee1589959aa2b81cc8c6e4a9b431c620f |
refs/heads/master | <file_sep>/*
* Copyright 2014-2015 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 8987c21c37b4881c0384587ce26ef58ea6fb99aa | [
"Markdown",
"Java"
] | 3 | Java | tkrille/dropwizard-environment-config | d22d11d03cdc60282c50d5b49fa8d64b72d1f362 | a82edfbe223dfd478fedbddff66efb741a9ba404 |
refs/heads/master | <repo_name>ola1289/parent_detector_all<file_sep>/all_sensors/all_sensors.cpp
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <wiringPiI2C.h>
#include <time.h>
#include <iomanip>
#include <string>
#define FIXED_FLOAT(x) setprecision(2)<<fixed<<(x)
#define SOUNDPIN 6
... | 7b051f1cfc8c2ed79b7ded8ad22cf5e982b30d91 | [
"C++"
] | 1 | C++ | ola1289/parent_detector_all | 04a2eb899a33654aa15d616fc6fab69274ac3e42 | 44e8ef342950045f35fc4535c7379abaa0ff2465 |
refs/heads/master | <file_sep>.PHONY: FORCE
all: FORCE
$(MAKE) -C .. gasbit_qt test_gasbit_qt
clean: FORCE
$(MAKE) -C .. gasbit_qt_clean test_gasbit_qt_clean
check: FORCE
$(MAKE) -C .. test_gasbit_qt_check
gasbit-qt gasbit-qt.exe: FORCE
$(MAKE) -C .. gasbit_qt
<file_sep>all:
$(MAKE) -C .. gasbit_test
clean:
$(MAKE) -C .. gasbit_tes... | 91412d0be54ecc7deb6ef6fc15efb631cc5ede70 | [
"Markdown",
"Makefile",
"C++",
"Shell"
] | 6 | Makefile | mirzaei-ce/core-gasbit | 8dfcb19abd74373c8432d8bbaa7887b2590ed2ae | 77740eaae2176b95d48dc7804277f83eae2e128e |
refs/heads/master | <repo_name>beto2030/TallerEnClase<file_sep>/tipodemotordebomba.js
function resultado = Tipodemotor(){
var tipodemotor = prompt('Escriba tipo de bomba en numeros')
switch (tipodemotor){
case 1 :
alert( La bomba es una bomba de agua )
break;
case 2... | a076c2c3f47b232de3ad20dff2c0555b1d226cea | [
"JavaScript"
] | 1 | JavaScript | beto2030/TallerEnClase | 41a06f7058b63e41c1a373f3b40975f6fbe485bf | 8427bef15d824502cf088050e2e1bd0938f3865f |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.AspNetCore.Mvc.Rendering;
using HRApplication.Models;
using Microsoft.AspNetCore.Identity;
using HRApplication.Data;
name... | dba80eef967f905508e2258603cf11c2c6292741 | [
"C#"
] | 14 | C# | andersonda/hrapplication | a58c963bd4acc81473cd2ada094f275463249494 | ab542268aa6df0ae37cfd8e4db76c6bf58dbe04e |
refs/heads/master | <repo_name>alexokok/CirclesDetector<file_sep>/app/src/main/java/com/example/mazaevav/myapplication/ui/settings/SettingsPresenter.kt
package com.example.mazaevav.myapplication.ui.settings
import com.example.mazaevav.myapplication.ui.common.BasePresenter
import com.example.mazaevav.myapplication.utils.PrefUtils
/**
* ... | 52a526fa4f98f72a17ea4b7f1b839c2bc33f9327 | [
"Kotlin"
] | 12 | Kotlin | alexokok/CirclesDetector | 7da16e046ebd6bc92e71b67ed69ed4ecf8bba7d4 | 0bc36953347a0f083e9a0b4285b05b9bad35f322 |
refs/heads/master | <repo_name>Misha842911/Connect_auto<file_sep>/src/test/java/test/pages/LoginWindow.java
package test.java.test.pages;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.seleniu... | 9443e756c1b4eda2ad04981a699314439b4f4cd8 | [
"Java"
] | 2 | Java | Misha842911/Connect_auto | a72f39cd2aeffe31ac396b019765f9bb5ddf2325 | f83273342400d145d6c664266dbd3f9b19b83da6 |
refs/heads/master | <repo_name>nickupx/ahj-events-1<file_sep>/src/js/tasklist.js
/* eslint-disable max-len */
/* eslint-disable class-methods-use-this */
import Task from './task'
export default class Tasklist {
constructor() {
this.tasks = []
this.input = document.getElementById('tl-input')
}
add(title) {
const task =... | 07a241519113ed34e361830301a1a5e8db0f1d56 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | nickupx/ahj-events-1 | abdd3d38a3458a04b0735be139b238c5ca699d7c | 4f603fffd4cdc1d662abd7caa287137b059299a8 |
refs/heads/master | <file_sep>/**
* JPA domain objects.
*/
package com.daphne.cloud.gateway.domain;
<file_sep>/**
* JPA domain objects.
*/
package com.daphne.cloud.microservice1.domain;
<file_sep>import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { GatewayCountryMySuffixModule } from './country/country-my-suffix... | 34724af49ca93f091be551016adf5ccb110020c6 | [
"Java",
"TypeScript"
] | 6 | Java | jf8/spring-cloud | a88d11da3eafc76de83fc2f7d8c1b77edce32a7f | 59b0e3143458bdcec3368230a539b2e85d68f1f9 |
refs/heads/main | <repo_name>GRy82/RepoSweepstakes<file_sep>/Sweepstakes/MarketingFirm.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sweepstakes
{
public class MarketingFirm//This class functions to create a sweepstakes
{
public ISweepst... | d9623c523a7533ce2e479b742a86e12fc839e29f | [
"Markdown",
"C#"
] | 8 | C# | GRy82/RepoSweepstakes | 42e054b969990a0752fc49fda6a2f69c1e220906 | e39d9c1f6c649a0dcab38dfb4145cd92753c0921 |
refs/heads/master | <repo_name>jissmoljames/mysqljdbc<file_sep>/sample/src/main/java/io/sample/app/Laptop1Application.java
package io.sample.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import io.s... | 379309471f84fb649d100490e4f074f0790a8128 | [
"Java"
] | 4 | Java | jissmoljames/mysqljdbc | 9970c9c26ee666f4279f215f176dc9674c839e7a | f29c23b44acf7bf90099ef976fca4cf0c0b19054 |
refs/heads/master | <repo_name>rikingurditta/particles-python<file_sep>/sorting.py
from typing import Callable, Any
def bubble_sort(l: list, key: Any = lambda x: x) -> list:
done = False
for _ in range(len(l)):
for i in range(len(l) - 1):
done = True
if key(l[i]) > key(l[i + 1]):
d... | 1a940aa6798e6cd7aaf218dafa08b9a3dae38def | [
"Markdown",
"Python"
] | 4 | Python | rikingurditta/particles-python | 1d7037fb9aa094f6ad5ed6e67a85bb460392e7e5 | e1a6467424087be4bed55341bdc472c0262bb87a |
refs/heads/master | <file_sep>package rds
import (
"os"
"strconv"
"github.com/go-redis/redis"
"fmt"
)
type TypeRedis struct {
RDShost string
RDSport string
RDSname string
}
func (r *TypeRedis) NewConn() *redis.Client {
dbname, err := strconv.Atoi(r.RDSname)
if err != nil {
panic(err)
}
connection := redis.NewClient(&redis.... | b3e1fb9239a284c0e778a9d62f332ef5a458bb5d | [
"Makefile",
"Go",
"Dockerfile",
"Shell"
] | 9 | Go | Music-Room/api-server | 32c860dabde1a79e8a5761d8d1fdea3454a5051d | b637438eb72fc7d5befe1138236b233c0f872725 |
refs/heads/master | <repo_name>amast09/RayTracer<file_sep>/model.cpp
#include <omp.h>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <cassert>
#include <cstring>
#include <cmath>
#include "vector.h"
#include "pixel.h"
#include "camera.h"
#include "light.h"
#include "material.h"
#include "object.h"
#i... | fa329a8d5569e404e127eb8386a5469a035b04f3 | [
"Makefile",
"C++"
] | 10 | C++ | amast09/RayTracer | 5221e3ecf552dea44a964a0f0edb7cce495cd47c | cea95a60ae434a014a16f035a8c989dac9ff72f7 |
refs/heads/master | <repo_name>cheahjs/hyperoptic_tilgin_exporter<file_sep>/internal/tilgin/scraper.go
package tilgin
import (
"crypto/hmac"
"crypto/sha1"
"encoding/hex"
"fmt"
"io/ioutil"
"net/http"
"regexp"
"strconv"
"strings"
"sync"
"github.com/PuerkitoBio/goquery"
"github.com/gocolly/colly"
"github.com/pkg/errors"
"gith... | 75bb319c308d24a1f4ae53986067093701e4c200 | [
"Markdown",
"Go"
] | 2 | Go | cheahjs/hyperoptic_tilgin_exporter | bc267823d99cecb5c7cb331f28fdd83642cbd583 | 89bfb5930e8bb300282eff63f92942c8cd1db3fc |
refs/heads/master | <repo_name>KhDuelistKh/libckit<file_sep>/include/ckit/debug.h
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Macros for printing debug information, which can be disabled at
* compile time.
*
* Authors: <NAME> <<EMAIL>>
*
*/
#ifndef CKIT_DEBUG_H
#define CKIT_DEBUG_H
#include <s... | 821b46828d531aa9b92c8eae0ed70d831df8a56b | [
"C"
] | 1 | C | KhDuelistKh/libckit | fa3d949488dffd49ced2dcc52a38607e145031a1 | 656f43eeb1c3eb9da0d1fa76099d6afdfc96127a |
refs/heads/master | <repo_name>mbraga24/rails-cru-form_for-lab-nyc04-seng-ft-041920<file_sep>/db/seeds.rb
Artist.destroy_all
Genre.destroy_all
Song.destroy_all
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside t... | 7a31127bbd85e7d71e4e921c6b766462fb6d614d | [
"Ruby"
] | 1 | Ruby | mbraga24/rails-cru-form_for-lab-nyc04-seng-ft-041920 | 50bb5f0fb90f2d463cdeaae2beb682d8240d06e7 | b6b0a072037519c3a4765ac0c9d079750d9ca298 |
refs/heads/master | <file_sep>package capgemini.firstproject.welcome;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class Labbook7_Seventh {
int size = 0;
public static void main(String[] args) {
// TODO Auto-generated method stub
Labbook7_Seventh mObject = new Labbook7_Seventh();
Sc... | 6e8621515396f776174a1ff01548a5a1d4f9fc9e | [
"Java"
] | 19 | Java | pankajchamyal/Capgemini.Java.FullStack | b6d05cbabffe00cdb5e703e4666111edede92175 | 0b575c9748bd276319e1ddc2646b176627326dd7 |
refs/heads/master | <repo_name>helloitsjoe/lessons<file_sep>/lesson-03/colors.js
function randomChannel() {
return Math.floor(Math.random() * 256);
}
function randomColor() {
return `rgb(${randomChannel()},${randomChannel()},${randomChannel()})`;
}
<file_sep>/lesson-04/README.md
# Lesson 4
## To Use
```
# Install dependencies
n... | b2b64f23ed1760fd36236de866a0eb6cbf8ef831 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | helloitsjoe/lessons | 1b6c20df8d810d6ec54e38411031d56d5b286732 | 731c5cfaa9b112395b9423f26eb62806852bb37b |
refs/heads/master | <repo_name>AlanJinqs/Python-QQ-Tools<file_sep>/README.md
# Python-QQ-Tools
一些用Python写的QQ小工具
---
* QQNewsPush:将一个QQ空间国际新闻自媒体的消息使用QQbot推送到指定群里
* QQMessage:分析QQ聊天记录(词语频率与聊天时间)
<file_sep>/QQMessage/Main.py
# encoding=utf-8
print("模块加载中,请稍后…")
import codecs
import time
import re
import matplotlib.pyplot as plt
import jieba... | 073d66a651143a7f3c9979091617d36f2d7c0275 | [
"Markdown",
"Python"
] | 3 | Markdown | AlanJinqs/Python-QQ-Tools | a424aed151d08524f9804e5e71b4d90b8ae86a15 | 3700dfd1bd2ff4eb9db207412a1d43e1668234a1 |
refs/heads/master | <file_sep>import React, {Component} from 'react';
import {withTracker} from 'meteor/react-meteor-data';
import "./main.css";
import Navbar from "./components/layout/Navbar";
import {Demand} from "../api/demand.js";
import {Materials} from "../api/materials.js";
import {Recipes} from "../api/recipes.js";
class App ex... | 5617460b722e21d21a67bdd745e7d45f87d73dfb | [
"JavaScript"
] | 7 | JavaScript | bgamba10/ProyectoFase2 | 166ed6d4c0adb71432bbbedd6f98b36b672b2a61 | 7c6842b7fb18ca068022d5f70ae7174a476e0d43 |
refs/heads/master | <file_sep>$ cd ~/IdeaProjects/bdp && cp ../dse-demo/target/dse-demo-1.0-SNAPSHOT.jar resources/solr/lib/ && cd -
insert into solr (id, json) values (1, '{"city":"brasilia","state":"df", "country":"brasil"}');
insert into solr (id, json) values (2, '{"city":"goiania","state":"go", "country":"brasil"}');
insert into... | 464e15ae830fec4280d11bc34ce311efaa3a81a4 | [
"Markdown",
"SQL",
"Java",
"Maven POM"
] | 6 | Markdown | eribeiro/datastax-fit-demo | 3078b6cd2bf34b1c35ad4329fd85e21beb82c374 | 7e35f31f2a9b31c6f19e1947c7b46e9e97ecd8bf |
refs/heads/master | <file_sep><?php
class HtmlInput extends HtmlWidget
{
public function __construct($name_or_attrs = null, $parent = null)
{
if(is_string($name_or_attrs))
$name_or_attrs = array(
'type'=>'text',
'name'=>$name_or_attrs,
'id'=>$name_or_attrs);
parent::__construct('input', $name_or_attrs, $parent);
}
... | ad04fef83a1d5d438f20e8f12283011660bc3412 | [
"Markdown",
"SQL",
"PHP"
] | 86 | PHP | boban-dj/PhpSkelet | 086b49789274118973df596de0a6845d4542b211 | 5d7ae6d82c91f8d4cd122c5ececbdc1f1baab19f |
refs/heads/master | <file_sep>const toggle = document.getElementById('toggle');
const icon = document.getElementById('icon')
toggle.addEventListener('change', (e) => {
document.body.classList.toggle('dark', e.target.checked);
icon.classList.toggle('fa-sun');
icon.classList.toggle('fa-moon');
})<file_sep>const text = "Graphic... | 5291aff9278666126d344575dfa9e810599bd52e | [
"JavaScript"
] | 2 | JavaScript | shanelbb/fpop-ten-js-proj-one-hour | 6677574f3ed74a1d99684311b385cec99a1d1a9b | f7efd78edce3332323496246ab4afb47f94dee48 |
refs/heads/master | <file_sep>'use strict';
var Q = require('q');
var _ = require('lodash');
var moment = require('moment');
var deferRequest = require('defer-request');
var TheMovieDB = function (args) {
if (!args || !args.path) {
return console.error ('The TMDB provider requires a path argument');
}
this.config.tabN... | 5f04ed6db0c85be2a47688fb750a2ed97e025567 | [
"JavaScript"
] | 1 | JavaScript | LanternVideos/butter-provider-tmdb | b36710bf58430c8f85eb9f5dec17832083fde1e6 | bcb1dedea277a8a8cfaf36ddc333654ffbeec910 |
refs/heads/master | <file_sep>application =
{
content =
{
graphicsCompatibility = 1,
width = 320,
height = 480,
scale = "zoomStretch",
imageSuffix =
{
["@15x"] = 1.5,
["@2x"] = 2.1,
},
fps = 30,
}
}
<file_sep>--[[
@author <NAME>
]]
local composer = require( "composer" )
local helper = require( "helper"... | afc5a23e0c2bf45a7352aa78dca68365f0c2ec69 | [
"Markdown",
"Lua"
] | 9 | Lua | fgleilsonf/subway-run | 50eb4585f13220b07784c0040dd08a7d2cc88337 | 95d82d6adf91b26ee89c740579cf641d5c4d3bb9 |
refs/heads/master | <repo_name>GHunique/Unity3D<file_sep>/nguiApi/NGUIDocs/search/functions_68.js
var searchData=
[
['haschanged',['HasChanged',['../d1/db1/class_u_i_node.html#a9e00977230a7d2e85516a9f9fe8664c2',1,'UINode']]],
['hasequipped',['HasEquipped',['../db/ded/class_inv_equipment.html#a61c3c3d9ba4a9bd6ff8bfe03f6f20ee4',1,'InvEq... | 7fef665106651e7319c68c629d80271dbe56f155 | [
"JavaScript",
"HTML"
] | 121 | JavaScript | GHunique/Unity3D | 8124c27b57415bb8ef2610a735f77e6e7102ff20 | 75faba18a7218eb6da0102d4df0b36babfeffd47 |
refs/heads/master | <repo_name>unixunion/swift_solace_semp_client<file_sep>/solace_semp_client/Classes/Swaggers/APIs/AboutAPI.swift
//
// AboutAPI.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//
import Alamofire
public class AboutAPI: APIBase {
/**
Gets an API Description object.
... | a0423df0aa3bef3479287dea9bd4a9e4d6fe14c9 | [
"Swift"
] | 39 | Swift | unixunion/swift_solace_semp_client | 77756c5e659e8360704ce76089946105ce6ac347 | a82a88e3ab1cf10def2bf80cb7fb1948eb5697f9 |
refs/heads/master | <file_sep>using System.Collections.Generic;
namespace ScheduleTask2
{
public class DependenceTree
{
public Job Root { get; }
public List<Job> Jobs { get; }
public DependenceTree(List<Job> jobs, Job root)
{
this.Jobs = jobs;
this.Root = root;
}
... | ba2abd2b8141caa3b2bd5aca36e932753f12eddd | [
"C#"
] | 11 | C# | rdsalakhov/ADSLab3 | 461caa174736a25254dfac068a37e3f783d12d8e | a43a09ab4879ad117c1e0715ef4094c71626bc01 |
refs/heads/master | <file_sep>/* eslint-disable */
import React from 'react';
import { CardContainer } from './containers/cards';
import { FooterContainer } from './containers/footer';
import { HeaderContainer } from './containers/header';
import { JumbotronContainer } from './containers/jumbotron';
export default function App() {
ret... | c490b64c25bc4509859c89b207411aadef5c3b64 | [
"JavaScript"
] | 11 | JavaScript | calmest/pinterest-test | b0814e943cc5fb96b200f9c65770868f083a1b14 | 0e62dc7caa7f5262619863e4aacd0f1dd8ff3404 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
public class paradigm
{
public static void Main()
{
var input =Console.ReadLine();
var charArray = input.ToCharArray();
Array.Reverse(charArray);
var reversed = new string(charArray);
Console.WriteLine(reversed);
if( reversed == input)
{
Con... | c8542f9ecdf163f4436047304450e5ab59cacce9 | [
"C#"
] | 1 | C# | ryanleslie33/paradigm | e1ca8bb946928de5e87cbcece83b5eb24fdc8eed | 89066feb6712e5c57cbf6b4107a555618a619959 |
refs/heads/master | <repo_name>enterdevstudio/seagrass-microbiome<file_sep>/R/ud-functions/clean-ordination.R
## define location metadata in data frame
nmds.mat$site <- rep(NA)
nmds.mat$above.below <- rep(NA)
nmds.mat$host.env <- rep(NA)
nmds.mat$is.leaf <- rep(FALSE)
nmds.mat$is.roots <- rep(FALSE)
nmds.mat$is.sediment <- rep(FALSE)
nmds... | 06db3514da70a73c191b240f103d537dcde5caa3 | [
"Markdown",
"R",
"Shell"
] | 7 | R | enterdevstudio/seagrass-microbiome | 3d9b88625ef156a49b644a13e0d9b87d74db6c2e | ac53e052b6c120c074d49a17fda676c8b95dba9c |
refs/heads/master | <repo_name>PrismaPhonic/Warbler<file_sep>/static/js/client.js
$(document).ready(function() {
$('#messages').on('click', '.fa-star', function(evt) {
evt.preventDefault();
let $clicked = $(evt.target);
let action;
if (/far/.test($clicked.attr('class'))) {
action = 'add';
... | 8224c7c048cf6dc16131eec32142739982d9e1ec | [
"JavaScript",
"Python",
"Markdown"
] | 4 | JavaScript | PrismaPhonic/Warbler | bca92217c5ad366b4986482a9668261945f7b4d7 | 19861e211aa19443cde6f6196e0d77361e9ad1b0 |
refs/heads/master | <repo_name>drorsimon/DataHack<file_sep>/Flow/model.py
from sklearn.ensemble import RandomForestClassifier
from sklearn import cross_validation
from sklearn.cross_validation import KFold
from sklearn import metrics
kfold = cross_validation.KFold(len(ex_features), n_folds=10)
model=RandomForestClassifier(n_estimators=10... | 03bfc078de9ef3152d59093d54b88a723b0f317a | [
"Python"
] | 15 | Python | drorsimon/DataHack | 784c7831f70d4974b1615519eda581fdb654e68d | e9749dac42119cc26ac7440cf4501376fd7f1b82 |
refs/heads/master | <file_sep>public static int balancedSum(List<Integer> arr) {
int i;
int lsum=0,sum=0;
Scanner s= new Scanner(System.in);
int a[]=new int[arr.size()];
for(i=0;i<arr.size();i++)
{
a[i]=s.nextInt();
}
for(i=0;i<arr.size();i++)
{
... | 79ab516e981126ec9e0dfb3bbf6518fb476e2dee | [
"Java"
] | 1 | Java | Jayashree190/WiproTalentNext2017-2021 | 55c1da4ac779009394016b34d89ff0f619446c0e | d2fe0b98e4cf7eb796c7b3052bb7fc09bfdf9dfd |
refs/heads/master | <repo_name>3vilware/SiiauDivec<file_sep>/dataDownloader-Full.py
import sqlite3
import urllib.request
import requests
import pandas
import re
import html
import unicodedata
from bs4 import BeautifulSoup
from decimal import Decimal
from connect import db
cmd = db()
ciclos = ['201310', '201320', '201410', '201420', '2015... | 47bec9d0322d3f50a28042386ffa2a005fadcbe4 | [
"JavaScript",
"SQL",
"Python"
] | 6 | Python | 3vilware/SiiauDivec | a795d0a2b4b653e1bfd10bae4e3d6b127f796591 | 1cd779514b8b7b7540174de5d6565a045a37ab5e |
refs/heads/master | <repo_name>davidkowalk/ca_engine<file_sep>/src/cellular_automata.py
def next(array, function, wrap = False):
next_array = []
height = len(array)
for y in range(len(array)):
row = array[y]
next_row = []
width = len(row)
for x in range(len(row)):
# Coords x and y o... | 335db36030ce955ba1a27e0a547199db41c0bb12 | [
"Markdown",
"Python"
] | 2 | Python | davidkowalk/ca_engine | fafaaea4be9392e0147d0f6342f6df7bfd29d3ca | 26321174d39fc92a578f662ca67e7f34ddb52504 |
refs/heads/master | <file_sep>package io.github.codessive.ubank;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import an... | e59d6e9f5affde75a0cbc5e752c0993b88d690c6 | [
"Java"
] | 3 | Java | jae-mon/3U-Banking | 03ed8c8fa85a308c3b8c52763998f34b0005c1ac | 9a6883c2f078bd4ba27ef1be80dc41c0d308c66c |
refs/heads/main | <file_sep>// --- Moms find Moms ---
// Creative Technology - Living and Working Tomorrow Project Prototype
// Group 17 - Mommification
// by <NAME> - <EMAIL>
// April 2021
// ----------------------
//Initialize Javascript of Materialize framework
$(document).ready(function(){
M.AutoInit();
});
//M... | a7d88930ad73c331cf063f536e0fa5e05c1c8c1b | [
"JavaScript"
] | 1 | JavaScript | thomasvklink/moms-find-moms | 856dbdd5a7ba9e5fc92236ad4f059fe3c9630cc0 | cd85abb9865c30dfb8ab02af661e21dba2dad5bb |
refs/heads/master | <repo_name>wkrysmann/4x<file_sep>/install.sh
#!/bin/bash
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-precise.deb
sudo dpkg -i puppetlabs-release-pc1-precise.deb
## wybrac odpowiednia wersje
##https://apt.puppetlabs.com/
wget https://apt.puppetlabs.com/puppetlabs-release-pc1-wheezy.deb | dpkg
dpkg -i puppetla... | a9352e4cb8d654074093b242ce532afed5015a8a | [
"Shell"
] | 1 | Shell | wkrysmann/4x | f3d9bb5c95e00e2169e34b40c9adf2fb65dc71f9 | c6bf59fb07afddf46495032c004f72ef04a53043 |
refs/heads/master | <repo_name>Xufuja/YGO<file_sep>/YGO/Battle.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YGO
{
public class Battle
{
public static void Attack(Card Attacker, Card Attacked)
{
if (Attacker.Attack > At... | 6d45b608ff5a5c8d53410bb73fe5dc391087381b | [
"C#"
] | 5 | C# | Xufuja/YGO | 8f1679aa09f778a750f78546ae450a2c2bce6d1e | 0c7c3a014a4f66daa3ce540416eb093abab497f1 |
refs/heads/main | <repo_name>Apeksha-Gowda/travelWebsiteMobile<file_sep>/app/src/main/java/com/example/trawell/RegistrationActivity.java
package com.example.trawell;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appco... | 2d366232494d5527a9e71b42682329d3bf0c95d7 | [
"Java"
] | 2 | Java | Apeksha-Gowda/travelWebsiteMobile | c39aa6cc7c8d3698f82633beab5c266fadbd8471 | e6145cf89e016c83841d219d747809405d56d9d0 |
refs/heads/master | <file_sep>document.getElementById('grayButton').onclick = switchToGray;
document.getElementById('whiteButton').onclick = switchToWhite;
function switchToWhite(){
document.body.style.backgroundColor = "white";
document.body.style.color = "black";
}
function switchToGray(){
document.body.style.backgroundColor = "g... | e22a6f6cec5eeaa65236a25a1e7c4ce500c8f336 | [
"JavaScript",
"HTML"
] | 4 | JavaScript | Navix101/fewd21dev | 5a21422e1e487f5be31837e07690e5f14b2d95b2 | 73b85c1ff4abb65025da1dd211ddf9986a4c95c5 |
refs/heads/master | <repo_name>mastermalone/game-modules<file_sep>/scripts/models/TrayModel.js
(function () {
define(["Subclass", "BaseModel"], function (Subclass, BaseModel) {
"use strict";
var subClass = new Subclass();
function TrayModel () {
//Empty Constructor
BaseModel.cal... | 780dfad5ddc26c57e32d06033f066fb52249b4c0 | [
"JavaScript"
] | 20 | JavaScript | mastermalone/game-modules | 707f801d1023c9fbca64d2ae5334bec6567d4262 | 7a4ac88021a6d16ba8a25d360e9dea874201745d |
refs/heads/master | <file_sep>import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom'
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import Me... | 3ab64cd0b1ac993bde0e2b13deb7283f8710c831 | [
"JavaScript"
] | 8 | JavaScript | ErSachinVashist/videojsdemo | 90b81c44d8362938401210dad45da03e61c9511d | 7db72af5b5313ed69c4174c21763ee0f01b41a3a |
refs/heads/master | <repo_name>afifkhaidir/sg-tkpd<file_sep>/lib/custom/cpt.libs.php
<?php
namespace Banana\PostTypes;
function gallery() {
//Thumbnails Gallery for Visit Tokopedia
if ( function_exists( 'add_theme_support')){
add_theme_support( 'post-thumbnails' );
}
add_image_size( 'admin-list-thumb', 80, 80, true... | aab25f5ee1ad8ac0444c90ee5da210aebc9ba1b9 | [
"JavaScript",
"PHP"
] | 13 | PHP | afifkhaidir/sg-tkpd | a23b435131ced254d766123ae61a50d314514582 | 63897b8d7806492fc242d154292530e1e619bb0a |
refs/heads/master | <file_sep>package Manager;
import Entities.Player;
import Entities.Product;
import Entities.User;
import Services.SalesService;
public class SalesManager implements SalesService {
@Override
public void buy(Player player, Product product) {
if (player.getBalance() < product.getPrice()) {
System.out.println("Un... | 1643061f5ab0c80247f3c66fc51ee528f6a028a8 | [
"Java"
] | 3 | Java | MHakanEkici/Gun4Odev3_GameMarket | d99739e9fea2deaf3ab5619e962eb830c8b77857 | c83a182fe4820cb8bc08573e6027a64cf11b7155 |
refs/heads/master | <repo_name>mike-ct/bitcoinrb<file_sep>/spec/bitcoin/store/spv_chain_spec.rb
require 'spec_helper'
require 'tmpdir'
require 'fileutils'
describe Bitcoin::Store::SPVChain do
let (:chain) { create_test_chain }
after { chain.db.close }
describe '#find_entry_by_hash' do
subject { chain.find_entry_by_hash(target... | 67661c9aba5331fbf3889a485cf7dabd46ad8bdf | [
"Ruby"
] | 1 | Ruby | mike-ct/bitcoinrb | 39396e4c9815214d6b0ab694fa8326978a7f5438 | 4f5a23b6d564460b033854ac865001e6b485d339 |
refs/heads/master | <file_sep># Business Service
### Server-side setup
#### 1. Setup Environment Variables
1. Copy and save the ``` example.env ``` file in the env folder as ``` development.env ```.
2. Enter your desired ```APP_NAME``` (this will your mysql database name)
3. Replace the ```PORT``` with your desired port and ente... | c160c4690bbd463bf0317a279f249a6a05b18416 | [
"Markdown",
"JavaScript",
"Dockerfile"
] | 4 | Markdown | mashybuttons/rice-business | 7db2d4984ae1c62ab6560a9be9825a6b23b2c941 | 25145392f719a52f50871f1755dbac7bb33cfbcc |
refs/heads/master | <file_sep>
import cv2
import glob
for x in glob.glob('./*.jpg'):
img = cv2.imread(x)
h, w, c = img.shape
s = 600.0 / h
print(x, s)
if s < 1:
print(x)
h, w = int(h*s+0.5), int(w*s+0.5)
img = cv2.resize(img, (w,h))
cv2.imwrite(x, img)
<file_sep># sanmumould.githu... | 5b462b03e852550be41a9bd0467bbb98faea2521 | [
"Markdown",
"Python"
] | 2 | Python | sanmumould/sanmumould.github.io | 7664faec9f16ed2b409990076d0e274e6ce94c7d | d28d9b48dcef1e64bdf3543780c9099ed0f5b029 |
refs/heads/master | <repo_name>liuhang0727/lh_slam<file_sep>/include/common/common_headers.h
#ifndef COMMON_HEADERS_H
#define COMMON_HEADERS_H
// The headers that maybe used
// C++
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <utility> // pair
#include <map>
#include <unordered_map>
#include <set>... | 6e212c9ae53373bd9bfcab288f7258d1bab65afa | [
"Markdown",
"C",
"CMake",
"C++"
] | 22 | C++ | liuhang0727/lh_slam | 03a98589d4642172026d8421c3405e3bd9fe3b70 | dac9c15475bde5a2ac4c5f3b58e1735b5f31b74a |
refs/heads/master | <file_sep>package com.empelo.myaliceapp.ui.home;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.androidnetworking.AndroidNetw... | 9bd988e5899cfb692c61b04e95dc50a02a393ed9 | [
"Java",
"Gradle"
] | 2 | Java | empelogi/MyAliceApp | 13cb6cc684bd6f8b28a371cd465f242554859947 | c1068cb48d32fa45156d306adf00bdb47f760a85 |
refs/heads/main | <file_sep>class Generator
attr_accessor :passLengthSelected, :upCase, :numbers
def initialize(passLengthSelected, upCase, numbers)
@passLengthSelected = passLengthSelected
@upCase = upCase
@numbers = numbers
end
def password
alphabetEnVowels = "uoiea"
alphabetEnCons = "zxwvtsrqpnmlkjhgfdcb"
... | 4270015dda25dbe80ab0b53ee2b876d38ebcbd3d | [
"JavaScript",
"Ruby"
] | 2 | Ruby | rsguseinov/password-generator | a118bbd8da20ae77aa5a39f9869eeef8f798040d | 7fb39e82cde1182dbe256facdb8b1713e50d0e88 |
refs/heads/master | <repo_name>ShahmanTeh/Xamarin.Forms-TabCarouselPage<file_sep>/TabCarouselPage/TabCarouselPage.Droid/Widget/ViewPagerIndicator/CirclePageIndicator.cs
/***************************************************************************************************************
* CirclePageIndicator.cs
*
* Copyright (c) 2015,... | 38d2feff84f44681ba0bb5de663b1d56d5d64152 | [
"Markdown",
"C#"
] | 24 | C# | ShahmanTeh/Xamarin.Forms-TabCarouselPage | de2a7a72ed007aaffc48ceffbf64d8b6647e112c | df242cfc2d0dbff7cfb40b597c43f9475450bdab |
refs/heads/master | <file_sep># Hello-World
#my first program to push by git
<file_sep>msg=input("Enter Message to Print: ")
print("Hey "+msg) | ea04759b89770afb868f06565b9f1bb5dbc36d40 | [
"Markdown",
"Python"
] | 2 | Markdown | RajpalSM/Hello-World | 8c2a0f08bc738f3d4f76a389dc1ce5e3babf5f82 | ae1490545d2061d77e78553e1d9428a5f48db4f4 |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const bookSchema = new Schema({
_id: { type: Schema.ObjectId, auto: true },
_creatorId: { type: Schema.ObjectId, required: true},
name: {type: String, required: true},
page: { type: Number, required: true},
// date: { t... | 9419259c33ce73aa4cd72dfb01954907f1cf55de | [
"JavaScript"
] | 3 | JavaScript | rimazk123/libkeep | c04d13c849485d6f582284f8e62f2bf78fc7022e | a04b3de1826a04c86cc559283469cf36ea048fd9 |
refs/heads/main | <repo_name>tacallegari/COP2220<file_sep>/Module6Activity2.cpp
// <NAME>
// 2428774
//COP2220 Fall 2020
#include <iostream>
#include <string>
using namespace std;
//Declare functions
int getRandomNums(int array[], int SIZE);
void displaySort(int count, int array[], int SIZE);
void bubbleSort(int array[], in... | fa3abb6a1585897b0762de51db53635f613ae31b | [
"C++"
] | 13 | C++ | tacallegari/COP2220 | eb81774e5c665050fd27a8c97e501511805b9c81 | bdf1e06830380201dd7cfdc58211cbdc11ccca87 |
refs/heads/master | <file_sep>require 'rest-client'
require 'json'
class DocumentsController < ApplicationController
# GET /documents
# GET /documents.json
def index
@documents = Document.all
@api_token = "<KEY>"
respond_to do |format|
format.html # index.html.erb
format.json { render json: @documents }
... | a02d01e1251c2569e9ae04577c1dd94cc803d2b5 | [
"Ruby"
] | 3 | Ruby | scottweisman/metadoc_app | 5ed290123eae6c06c9f042aedee1b4ef3edbc770 | 8a369b5b86e0b70e3b58d5e69221ef7be2086780 |
refs/heads/master | <file_sep>package com.test.hrsmproject;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class HrsmprojectApplication {
public static void main(String[] args) {
SpringApplication.run(HrsmprojectApplicatio... | 013cdf4a536fd391019ff28f984b7c632b2eb8a5 | [
"Markdown",
"Java"
] | 4 | Java | ozzgurplt/Spring_Boot_Thymeleaf | b56fb3980991b4ddcfb57c7a336036d0f8e71a84 | 19f78aa6c460d92f67d9370a7fe74d63b4fa379f |
refs/heads/master | <repo_name>JeffPit/idea-game<file_sep>/Wizards/Wizards/Particle.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace Wizards
{
//basic particle class that maintains information about its own locati... | da97611a537feabd305fd096d34984a5c8d0e371 | [
"Markdown",
"C#"
] | 10 | C# | JeffPit/idea-game | 7a72f8e509d371b27eae1f3acec7eeb258c8af15 | 125c314fdab14f413a3a47b42d73239a78bdce20 |
refs/heads/master | <repo_name>anjeprol/MyMVC<file_sep>/app/src/main/java/com/example/prolan/mymvc/Model/CounterBalance.java
package com.example.prolan.mymvc.Model;
/**
* Created by Prolan on 21/01/2016.
*/
public class CounterBalance {
private int imCount = 0;
public int increment(){
return ++imCount;
}
}
| 90eeb1bb4a8943436f6f83d97296b0697aee22bf | [
"Java"
] | 1 | Java | anjeprol/MyMVC | 08b70f7039f124bc24a16697d5f242b81c6a73d5 | c6a4ae442255f82aa462b32ec49d50bb866d9731 |
refs/heads/master | <repo_name>ManeMR25/docker_test<file_sep>/Dockerfile
FROM mysql
Env MYSQL_ROOT_PASSWORD=<PASSWORD>
Env MYSQL_DATABASE=MYSQL_DATABASE
COPY queries.sql /docker-entrypoint-initdb.d/
EXPOSE 3306<file_sep>/queries.sql
create table emp ( id int, name varchar(20));
insert into emp values (1 , 'Megha');
insert into emp valu... | 48977f0c0e0aff172947e1fb50439ad1184c530c | [
"SQL",
"Dockerfile"
] | 2 | Dockerfile | ManeMR25/docker_test | 377eebc2451bfc186fdf65c3a756963e16ed6336 | e2fec5fece6589a657f22a54478ad85f95274e99 |
refs/heads/master | <file_sep>var searchData=
[
['create',['create',['../class_config_parser.html#a7525ed2717618bab9644cec9cb77bbdd',1,'ConfigParser']]]
];
<file_sep>var searchData=
[
['_7eanimal',['~Animal',['../class_animal.html#a16d8b7f94611cc65f5cdb58cc105527b',1,'Animal']]],
['_7edisplay',['~Display',['../class_display.html#ac2... | b57001a7924f68d7ebf3f8e5d99909eee5304980 | [
"JavaScript",
"Makefile",
"C++"
] | 89 | JavaScript | Adrien-Luxey/Neurones | a35ca698e7baa5107c0ff11058583fee753da480 | 752642a6c46b30e70f27d9511e4591d8ff2491df |
refs/heads/master | <repo_name>hunterhang/user_mgt_svr<file_sep>/user_mgt.h
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under th... | d7ac12f8363d7c79058b24a814218e3346ebd07f | [
"C++"
] | 7 | C++ | hunterhang/user_mgt_svr | ecbaf9074b1c9a22d3cd135b6b3ec44a1d545a07 | 59ded9b7c94fce526b4f2ff7bc1acc45fe5334a6 |
refs/heads/master | <file_sep>package Chapter3.chapter3_1;
class FullStackException extends Exception {
}
class EmptyStackException extends Exception {
}
public class chapter3_1 {
//use a single array to implement three stacks
int stackNum = 3;
int stackCapacity;
int[] values;
int[] sizes;
public void init (i... | 30dec0d530e8154feaab8857ecb8fd861b9f7cdf | [
"Java"
] | 11 | Java | zhengyang2015/CC150 | 069c4ebf7994fea3eb4393134ab689b4591bbd13 | 6f23845a218f23fb42a45feb543bcfb517eefff9 |
refs/heads/master | <file_sep>// Your code goes here!
//console.log("Test")
let TODOS = [];
function addItem(count) {
if (count === 1) {
return "item";
} else {
return "items";
}
}
function update () {
const $todoList = document.querySelector('.todo-list');
//we use the next line to cleane eveerythi... | c6b42b74e620590defac19ae993a3164aea7d125 | [
"JavaScript"
] | 1 | JavaScript | HackYourFutureBEHomework/Class1-pauljackob | cd3267f4ad0b3806674a581a53ffeb48a12ba2c7 | cd119d8c0b384d90b1cbae3942df6e77b1cdedaf |
refs/heads/master | <repo_name>KikiTheMonk/Bluetooth-Toolkit<file_sep>/app/src/main/java/com/kyriakosalexandrou/bluetoothtoolkit/bt/classic/spp/SPPManagerUiCallback.java
package com.kyriakosalexandrou.bluetoothtoolkit.bt.classic.spp;
public interface SPPManagerUiCallback {
/**
* called when data is received from the remote BT cl... | d782f8e57181af782902f50b6c8b89824197772a | [
"Java"
] | 14 | Java | KikiTheMonk/Bluetooth-Toolkit | 31728a9a0878f408edf9b0de136349373d602eed | 8d6f417cf584788af6155f97b33c90d852be0564 |
refs/heads/master | <repo_name>bsdpunk/contesh<file_sep>/shell/contexts/events/events.go
package events
import "time"
import "fmt"
type Event struct {
// Event Id
Id int64 `json:"id"`
// Event Description
Desc string `json:"description"`
// Latitude
Lat float64 `json:"lat"`
// Longitude
Lon float64 `json:"lon"`
//Action func()
... | d9652e2cdf87d41f53f874e054488d0b2f9e7083 | [
"Markdown",
"Go"
] | 3 | Go | bsdpunk/contesh | 757bd59ea4e8b7f6c14e679cba144883f6a61e3b | a0352246e8be42d0ce4948c2213bc253f5cdcc4d |
refs/heads/master | <repo_name>Billmetal/desenvolvimento-basico-java<file_sep>/Digital Innovation Java/src/main/java/Digital/Innovation/Java/orientacao_objeto/part03/heranca/exemplo003/Funcionarios.java
package Digital.Innovation.Java.orientacao_objeto.part03.heranca.exemplo003;
public class Funcionarios {
private double salario;
... | efc71a7efdcb6510dd00fa7723bc0b5067b64c69 | [
"Java"
] | 12 | Java | Billmetal/desenvolvimento-basico-java | 0fcc6f5d0e8945297b27bc12beb1a182c3dab3c7 | 5cf9406b327f2909a19da8f17df716e1afc87eba |
refs/heads/master | <file_sep>#!/usr/bin/env bash
# exit 0
set -ex
yum groupinstall -y 'gnome desktop'
yum install -y 'xorg*'
yum remove -y initial-setup initial-setup-gui
systemctl isolate graphical.target
systemctl set-default graphical.target # to make this persistant
<file_sep>name 'chef-demo'<file_sep>Vagrant.configure("2") do |co... | 3795f8f42ba2d9e1b40cc41d9966ad4c459d7f0e | [
"Markdown",
"Text",
"Ruby",
"Shell"
] | 19 | Shell | coateds/Vagrant | dcdf9e9aae62ec5e61e16663683169bd7fe63c5b | e92bbb3f98b8651a79e6647916dd208f91f0a307 |
refs/heads/master | <repo_name>elCanarioVidal/pantallaHey<file_sep>/js/canillas.js
var canillas = [
//Cambiar solo donde dice Variedad Birra y Marca Birra
'<span class="variedad celeste">Blonde</span><span class="marca amarillo"> Volcánica</span>',
//Cambiar solo donde dice Variedad Birra y Marca Birra
'<span class="variedad naran... | a3166c53663855b1e7c5ea2f724e60213724b090 | [
"JavaScript"
] | 1 | JavaScript | elCanarioVidal/pantallaHey | 9ed8afe0154626066c376263b975ef302814913e | 80b692e37eeb3c52c53082d8a3801e91ac4ae449 |
refs/heads/master | <repo_name>Amar-dev-code/Mudra<file_sep>/index.ts
import express from "express";
import { router } from "./api-routes";
const app = express();
app.get("/", (req, res) => {
res.send("Well done!");
});
app.use("/api", router);
app.listen(3000, () => {
console.log("The application is listening on port 3000!");
});... | 6d5622c397e1ba9474cd8d7b4ee8fda83feb674d | [
"TypeScript"
] | 2 | TypeScript | Amar-dev-code/Mudra | c3fd75ea1b4bfaf9924e077ddf4d879a6fe3d503 | 6f070f8a8ce554c1fff5cf74ba46ed205da4cc39 |
refs/heads/master | <file_sep>import random
class Hand(object):
def __init__(self):
self.cards = []
self.suits = ["H", "D", "C", "S"]
self.ranks = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"]
# void -> array(cards)
# puts random card in cards
def add_card(self, card = None):
if card == None:
self.ca... | a95349f30e6da62378e6cd996796794798846327 | [
"Markdown",
"Python"
] | 4 | Python | KitaeK/blackjack--python- | ba2e827106f40b34aa0ae0ca80c407ead545dcff | fddde913ad87fe47dad6a70e1a8c37179937446e |
refs/heads/master | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router, Route, Link} from 'react-router-dom';
import Games from './components/games';
import Header from './components/headers';
import Streams from "./components/streams";
import GameStreams from "./components/gamestreams";... | 882a0388858c384097bf2ab4e9a1fecc1a2b6851 | [
"JavaScript"
] | 1 | JavaScript | williamye07/Twitch-Dashboard | 8e2cf6132b2c096b2bff3f1c5062c028718737e0 | 92badf873f6b38a754ff9b823ba03d43c079c82c |
refs/heads/master | <repo_name>jeffponce/Budget-App<file_sep>/budget_app.js
////// Budget App /////
// Budget Controller
var budget_controller = (function() {
var Expense = function(id, description, value) {
this.id = id;
this.description = description;
this.value = value;
this.percentage = -1;
};
... | 8cc0063727ff233244302a3886d7df9bacffddcb | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jeffponce/Budget-App | 85df4dcfb5dd53ff98bbee972629c7a47d214561 | bc298954d77c537217d6d4ff0766e251b67c736c |
refs/heads/master | <file_sep>// FINDX.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "afx.h"
#include <stdio.h>
#include "base64.h"
#include <winsock.h>
#include "smtp.h"
//#pragma comment( linker, "/subsystem:\"windows\" /entry:\"wmainCRTStartup\"" )
#define DEEP_DG (5000)
unsigned int file_find_cnt = 0,file_add_cnt = ... | 0ce7e98a52d4e02d92f2d50561f6cde495b46f64 | [
"C",
"C++"
] | 3 | C++ | niu14789/FINDX | 5f5dde6666db51d02bb4ba17539b64cec27e818e | 673746e48146d7f90d35b75c7fc97bb617fc2988 |
refs/heads/main | <repo_name>EZ4ZZW/Memorize<file_sep>/Memorize/MemoryGame.swift
//
// MemoryGame.swift
// Memorize
//
// Created by <NAME> on 2021/3/31.
//
import Foundation
struct MemoryGame<CardContent> {
var cards: Array<Card>
func choose(card: Card) {
//card.ChangeFaceUp()
print("card chosen: \(car... | 5ab7faeb85de5c4b538b7f263c2905841b2f0524 | [
"Swift",
"Markdown"
] | 2 | Swift | EZ4ZZW/Memorize | 6f747795682cb892c760c2e0b9d72ee6ee677a1c | 4b28103f8a01a35d3e925aae02ff4231df363e35 |
refs/heads/master | <repo_name>JaredRamirezDiaz/JaredRamirezDiaz.github.io<file_sep>/src/containers/Prueba.js
import React from "react";
import { MyImage, Hero } from "../components";
const Prueba = () => {
const formConfig = {};
return (
<>
<Hero />
<div className="columns borde has-background-primary is-dark">
... | 4bd7602b36ae6b590c9d0081a4cdcf6d50c37ce7 | [
"JavaScript"
] | 10 | JavaScript | JaredRamirezDiaz/JaredRamirezDiaz.github.io | c10ee95cf0be06341cbbd56c9b24706cad78d375 | 1637de546fc7dd857e66488cabbbcb297ae057d4 |
refs/heads/master | <repo_name>xyt0056/PhyssiBird<file_sep>/README.md
PhyssiBird
==========
##Demo
https://www.youtube.com/watch?v=Ep8aZGkzRHI
##Intro
A mac game that capture user gesture to enable tangible interaction with the Angry bird game
I used ```penCV``` to detect user hands frame by frame.
Then we have two points
... | f13c1c8533f117888eca56911b6aff274ca7e271 | [
"Markdown",
"C++"
] | 2 | Markdown | xyt0056/PhyssiBird | b59fbdc5acf16060c103eb11d561188af14cb965 | 42049f1d57b846ef642885a2107e68d9589bd651 |
refs/heads/master | <file_sep>$(document).ready(function() {
$('div.aboutMeCaption').each(function(index) {
if ($(this).css("-webkit-backdrop-filter") == null) {
$(this).css({"background-color": "rgba(240, 240, 240, 0.95)"});
}
})
})
| 6f47c1ad551efd2526b64d1775fd11fddc0ffcca | [
"JavaScript"
] | 1 | JavaScript | janant/janant.github.io | d8090066852318b0da897119ebe472508d31fba2 | 90a171b0063bdb804b9708eaa57f721107dc9cc7 |
refs/heads/master | <file_sep>const glob = require("glob");
const fs = require("fs");
const args = process.argv;
let mode;
if (args.indexOf("--mode") === -1) {
throw "Must supply the --mode agument [all | rename | patch].";
} else {
mode = args[args.indexOf("--mode") + 1];
}
let folder;
if (args.indexOf("--folder") === -1) {
throw... | 53ec18c58b3379d7b65c726016677bb248e0c27e | [
"JavaScript"
] | 1 | JavaScript | harperj1029/html_suffix_remover | ecfb21f86fd44bbd7dc2c524e20bd163ee082f79 | ac386c5a7eeaa1d727b5f0a2f090a932ab803e41 |
refs/heads/master | <repo_name>cyw116/RefreshMyMind<file_sep>/addphrasedialog.py
import tkinter
from tkinter import *
class AddPhraseDialog(Toplevel):
def __init__(self, parent):
Toplevel.__init__(self)
#self.geometry("300x200")
# Label
hintLabel = Label(self, text="Enter a new phrase here:")
hintLabel.pack(side=TOP)
#... | 50a46193227bf5485f16e505770036634c9e1268 | [
"Markdown",
"Python"
] | 4 | Python | cyw116/RefreshMyMind | c72622312808889f6d2b4cf91cea89074e5a699a | bdb9414a4e84b15cfa1a76023a336d04cd28534c |
refs/heads/master | <repo_name>JuMoKan/BoardGameGeek<file_sep>/readme.txt
boardgamegeek.com API
# Dependencies
- bs4
- boardgamegeek2<file_sep>/API_Test.py
###Anzahl und Liste der gespielten Liste
from boardgamegeek import BGGClient
bgg = BGGClient()
plays = bgg.plays(name="schrobe")
print("Anzahl gespielter Spiele: %d" % (len(plays)))... | 17dc836cd670173d338f696ef5c2f4082a3623e5 | [
"Python",
"Text"
] | 2 | Text | JuMoKan/BoardGameGeek | 8fe145a4eaf74ad645f9774d29cc001d212525a7 | 1f1d57e1d9deb7884ce12fcf5c85e936efeec880 |
refs/heads/master | <repo_name>hahiserw/mproto<file_sep>/src/message.c
#include <string.h>
#include "main.h"
#include "message.h"
void debug_message(struct message *m)
{
LOG(DEBUG, "index = %10u", m->index);
LOG(DEBUG, "size = %10u", m->size);
unsigned int c = m->checksum;
LOG(DEBUG, "checksum = %10u (%3u %3u %3u %3u)", c, ... | 343fd49bbda035ccf2a078bdedbcc48f6bf30e95 | [
"Markdown",
"C",
"Makefile"
] | 13 | C | hahiserw/mproto | 86d738c7fb095c179dc8696ad33622bea8632ddb | 79456297b7e408c25ed13783f1567bfbf9db6353 |
refs/heads/master | <file_sep>const { kMaxLength } = require('buffer');
const fs = require('fs');
const readline = require('readline');
(function main() {
const { s, c, filesPath } = getArgs(process.argv);
let filesObjects = [];
for (const idx in filesPath) {
const file = readFile(filesPath[idx], s);
const fixedFile = fixLi... | 31df45e6d9bd03297fc11d45da594c600cf26e6e | [
"JavaScript"
] | 1 | JavaScript | haotenks/qualified-sidebyside | 502bb14522552adfbc970f3ee64b044ab7d11459 | e13ccc7b7ddfa2798aa25fd107e314aa2d17b44c |
refs/heads/master | <file_sep>/*
* Copyright (c) 2019 <NAME>
*
* This file is part of cs4233-strategy.
*
* cs4233-strategy is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... | bcca3b871b33ac3fb92a458e04d7e844a646b8c3 | [
"Markdown",
"Java",
"Gradle"
] | 9 | Java | C7C8/cs4233-Strategy | 8a852a7f7591d3e86edf357876b40df132edb950 | e4e3453be9001582cc04a8075a9d2ca49af1e040 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.