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>
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.awt.geom.Line2D;
public class lineIntersect {
public int num;
public double x1,y1,x2,y2;
public lineIntersect(int n... | ec3fb349e2a6dbcfc874a02f87ccc1ac8dcb427c | [
"Java"
] | 1 | Java | danishshaikh556/BayBridges | 3112b2a7b095551a3bd3cdd57210967d95c82306 | 37e8be2bfd1a35bdcaf3cc672f023c1c2df90c31 |
refs/heads/main | <file_sep>import { createApp } from 'vue'
import { store } from './store.js'
import App from './App.vue'
import router from './router'
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import axios from 'axios';
import VueAxios from 'vue-axios';
const app = createApp(App);
app.use(router);
app.use... | e3aef183087b7cb6a9a9656ce662c3b6d78c7c43 | [
"JavaScript",
"PHP"
] | 11 | JavaScript | dalinda28/room_reservation | 6a781be20f559c70507a1218ee74eb17d7e62f9d | 9bee7fb8c4d18d674038a1163c57347000ebb269 |
refs/heads/master | <repo_name>kensingtoine/webomnia<file_sep>/public/app/sunburst.js
/**
* Created by Kenni on 17-12-2015.
*/
var scene = document.getElementById('scene');
var xhr = new XMLHttpRequest;
xhr.open('get','/images/sunburst.svg',true);
xhr.onreadystatechange = function(){
if (xhr.readyState != 4) return;
var svg = ... | 04e89f1f0d33ed67abd46384e5440bc7886443b0 | [
"JavaScript"
] | 3 | JavaScript | kensingtoine/webomnia | dbaae5ea6f28b11c7201b02aae5dd1cd9a130575 | fe25392fbca1f1a9252d06028ed40783637f8ab3 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: sandruse
* Date: 10.09.17
* Time: 16:20
*/
namespace app\models;
use yii\db\ActiveRecord;
class Notification extends ActiveRecord
{
public static function tableName(){
return 'notification';
}
public function attributeLabels()
{
... | 3b9cd9db7ea42c800ea41d6de817a8bfd34b6e12 | [
"JavaScript",
"PHP"
] | 26 | PHP | sandruse1/matcha | 85f8c2a4c54372268e589cc5559b5934cc26b8fa | 0e8da62f968d43ff0368c3668b16827d69f73f6f |
refs/heads/master | <file_sep>server '192.168.127.12', user: 'deployer', roles: %w[web app db]<file_sep>Rails.application.routes.draw do
get '/quiz', to: 'quiz#index'
post '/quiz', to: 'quiz#create'
root to: 'quiz#index', as: 'index'
end
| 5260435061d78fb505005d7a834503da006e9fd1 | [
"Ruby"
] | 2 | Ruby | uragap/pushkin-contest-bot | f701d57074c77710e77607eb3e374d647b0ee623 | 7ed2aa2d32aa310bfed8aef1dd18b7576c2d5542 |
refs/heads/main | <file_sep>from django.shortcuts import render
import json
import urllib.request
def index(request):
if request.method == 'POST':
city = request.POST['city']
source = urllib.request.urlopen('http://api.openweathermap.org/data/2.5/weather?q=' + city + '&units=metric&appid=fe55faa7bf11571932bf0... | dfa807bcdadbcfaa3d6c0853b75fac578ac5f94f | [
"Python"
] | 1 | Python | sraziz/Django-Weather_App | f47b54882290af9c926bb32a0661720404864208 | 9fa647c6b1244009bb67df828bd278a5b691aa4b |
refs/heads/master | <repo_name>gmcnutt/iso<file_sep>/iso.c
/**
* Functions for rendering to an isometric grid.
*/
#include "iso.h"
#include "log.h"
/* XXX: replace hard-coded values with something else, like an iso context. */
#define VIEW_HEIGHT 10
#define VIEW_WIDTH 10
#define TILE_WIDTH 36
#define TILE_HEIGHT 18
#define TILE_WIDTH_... | 25e9f490dfd707d425e572a6eb706174eec47717 | [
"Markdown",
"C",
"Makefile"
] | 16 | C | gmcnutt/iso | 892a4578b6fed23236a506f714cd28949c7df06b | 67b1db4a940585fc08074aae1b38440dff892cb0 |
refs/heads/main | <file_sep>#!/bin/bash
#SBATCH --cpus-per-task=8
#SBATCH --mem-per-cpu=2G
#SBATCH --time=0-20:00:00
#SBATCH --output=slurm_out/%x-%j.out
#SBATCH --array=0-10000
# --time is set with the assumption that these runs should take no more than 17 hours with some slop.
helpstr="$(basename $0) [-c,--chunk INT] [-o,--out PATH]... | 6091e473069b94b3368a304adadb47206b391964 | [
"Markdown",
"Python",
"Shell"
] | 9 | Shell | neurodatascience/tractoflow_UKBB | 95e453bfa3e055306169fb4756466a9fbdf4ad84 | c6482e50299acba619f7f2001a3a50ef8f477192 |
refs/heads/master | <file_sep>
package calculadora.ws.jaxws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* This class was generated by Apache C... | bd39d9a8930410bb1686b94949fd6ae08198c473 | [
"Markdown",
"Java"
] | 9 | Java | danilojsouza/projetos-jetbrains-academy | 99160c9076d149debfff781d54e3df854e8fd5e5 | f8e5f28654e15083512709f05f6e7a0282307e52 |
refs/heads/master | <file_sep>#!/bin/sh
java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar spigot.jar | 26a937d4fb860f7bfa9af5141f146865d38a9230 | [
"Shell"
] | 1 | Shell | Gelmes/Spigot-Server | 73b091738867e99a7136a8a04990ca8843100d01 | 6013d7f43febb57b2a4f48071048badf79ac8c36 |
refs/heads/master | <repo_name>stewartm83/Hangfire-Workflow<file_sep>/src/Dashboard/Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-stretch AS build
WORKDIR /src
COPY Dashboard/Dashboard.csproj Dashboard/
COPY Hangfire.Lib/Han... | 975ac000f48e9dc1fec6216aaca77878b7e26429 | [
"C#",
"Dockerfile"
] | 10 | Dockerfile | stewartm83/Hangfire-Workflow | 6cc6a74dad0d64f736da00ab48e9da7744879b44 | b0970e9119777b0c3cc1c6f00d73d850aa1208e7 |
refs/heads/master | <file_sep>#from openpyxl.writer.excel import ExcelWriter
#from nltk.stem.snowball import SnowballStemmer
print "======================================================================================="
print " Initializing LIBRARIES . . . "
print "Loading Pand... | 15691581343e822546a061f67ec2dd14bce0facd | [
"Markdown",
"Python",
"Text",
"PHP"
] | 9 | Python | Mihir2/MEGAS | 4629f73c29ecbe4eb81d70bd7e55c5de811d8b98 | 205abcc31b2bc435fdaed30d962138b2a80d538f |
refs/heads/master | <file_sep>#!/usr/bin/env node
const axios = require('axios')
const moment = require('moment')
const _ = require('lodash')
const baseUrl = 'https://clients6.google.com/calendar/v3/calendars/<EMAIL>/events'
axios.get(baseUrl, {
params: {
calendarId: '<EMAIL>',
singleEvents: true,
timeZone: 'America/New_Yo... | 05042c8bcdad8b944c4084697038ca0b72208a94 | [
"JavaScript"
] | 1 | JavaScript | contrivancecompanychicago/harvard-food-trucks-cli | 6bc53b90fdabeb9fd0f2400be8a2bd4bf77427e2 | e67ccf99850876ae02108e7d0cc06ed4c0420b1b |
refs/heads/master | <file_sep>import { Component, VERSION } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
heroArray=[{'name':"s","fly":true},{'name':"sa","fly":false},{'name':"san", "fly":true},{'name':"sanj","fl... | c1921e811e505673945df83af24029f15b58e0b3 | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | sanjayshahu/angular-ivy-7i8yra | 1abe685ede6e502da57e353e3fd9f6faeee9f44f | c971e62ffd1aa0f095ac19d5668c3b46c965df73 |
refs/heads/master | <file_sep>'''
60日最高买入,十日最低卖出
'''
#加载库函数
import numpy as np
import pandas as pd
import talib as ta # 加载技术分析库
from jqdatasdk import *
import datetime
#输入聚宽接口的账号和密码
auth('******','*******')
#初始化回测环境
start = '20200708'
end = '20201013'
#初始化策略... | eef65c89ed6a95eccdf93477ad3a381d841a3328 | [
"Markdown",
"Python"
] | 2 | Python | wpicon/gui | 7cbc867ab435c3edb290326c85575ea3c1f8d3eb | 2661dfef662a9c55969292834f3e7cd0b95e6c82 |
refs/heads/master | <repo_name>kuzkok/grk<file_sep>/grk.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "contiki.h"
#include "contiki-net.h"
#include "dev/button-sensor.h"
#include "erbium.h"
#define TRUE 1
#define FALSE 0
#define DEBUG 0
#ifdef DEBUG
#define PRINTF(...) printf(__VA_ARGS__)
#else
#define PRINTF(..... | d9b58ce5c57fcbf2c415d68e578ab9263bacd13f | [
"C",
"Makefile"
] | 2 | C | kuzkok/grk | e0fbb13a8c9dcdf95e444068bba5190f3b6ffda7 | 12e3b895be6a3923457c22acec5d6a6476e63bea |
refs/heads/master | <repo_name>MikioOsaki/report_form<file_sep>/public/script/savelocation.js
jQuery(document).ready(function () {
// Get element references
var confirmBtn = document.getElementById('confirmPosition');
var onIdlePositionView = document.getElementById('onIdlePositionView');
// Initialize locationPicker plug... | e7294183fadc9c730677ef69b57bd4e5de1f9b4c | [
"JavaScript"
] | 3 | JavaScript | MikioOsaki/report_form | 2664aea42bc02c2b93b68e66740e2372cfd21155 | 131ed05b9b1df76d1f4da3c1e286c5580ec7610f |
refs/heads/master | <file_sep>using System;
using System.Linq;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.PhantomJS;
using OpenQA.Selenium.Support.UI;
namespace BasicExample
{
[TestFixture]
public class When_searching_Duck_Duck_Go
{
[Test]
public void Sh... | 3d53ff5ecfbd068a3558e24e47f8b88193f22600 | [
"C#"
] | 1 | C# | shirley-ng/intro-selenium | 1e7d65868c721699f1a34ee614a79e60a3e07b48 | 80315c6ae216cee60fa5a7f1127cb6471fdcd03b |
refs/heads/master | <file_sep>// pages/styletmpl/index.js
var app=getApp();
Page({
/**
* 页面的初始数据
*/
data: {
domain:app.domain,
curtemid:"",
tmplarr: [],
tmplclassarr:[],
curclassid:"",
//wedding_id:"",
page:1,
limit:10
},
selTmpl(e){
var id=e.target.dataset.id;
this.setData({
cu... | 496d85d71145570fe44b14be27ef3695451f1436 | [
"JavaScript"
] | 8 | JavaScript | caigongda/wedding | b2c6d1e53ee5780a4e3f956f82272959feda0891 | 0deed8a2bcdbcaccf0093a30dbb2defad389c68c |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Phuket.Models
{
public class Tag
{
public int TagID { get; set; }
[Required]
[Strin... | f815308ae6688d51633cb58b51b1a468acf40ac2 | [
"C#"
] | 14 | C# | jacetensmeyer/PHGBTU | aa7a92f612b368dfede26efa3c80a1c18df8008f | d256a2dc9dc411ce583f3a74d75afc710bab5ac5 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2018-04-06 14:16
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True... | d0f1123beb5b8f98748714e0442cbde78849f83b | [
"Python"
] | 5 | Python | mannuan/spider_selenium | 61bfe99d6e0ed643780c84afc7707cd8effd1664 | 7b38438b687488f3cd4a1b9e4104e0a0877fc854 |
refs/heads/master | <file_sep>#! /bin/bash
genderprocess(){
local arms=2
local legs=2
if [ $1 = 'female' ]
then
echo 'female'
female $arms $legs
elif [ $1 = 'male' ]
then
echo 'male'
male $arms $legs
else
echo "error in input"
fi
}
male(){
arms1=$1
legs1=$2
... | 49c6b24f0700f74899f558932c6f7953c1d00d4b | [
"Shell"
] | 21 | Shell | vedakumar06/vedakumar_i-transform_Devops_batch_2assignments | 612959992f7327b17032c1f141ffcbfadd65d1ff | 3b86e6e52181e84f56098e6969978d448cd19f84 |
refs/heads/master | <file_sep>package clasesEjercicios;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class Colecciones {
public static void main(String[] args) {
//Creaciones de colecciones con el factory methods
//retorna un ImmutableCollections. No permite modificaciones
List<String> divisibleB... | 07e07e42007b66f49cabd2210346754ecaddc9c7 | [
"Java"
] | 2 | Java | cardozo-gv/Java9 | e0f042432fec2994ecd4b5909ab18d4b9ff07c2c | 54a813dc9d551e0f020efb6a0d2367da8a16462b |
refs/heads/master | <file_sep>from torahbot.lib.torahbot import TorahBot
def run():
torahbot = TorahBot()
torahbot.run()
if __name__ == "__main__":
run()
<file_sep>import requests
import json
from configparser import SectionProxy
import logging
from bs4 import BeautifulSoup
from random import choice
class YUTorahClient:
... | e165e903e95f03097d2f947d19672c046fb9059c | [
"Markdown",
"Python",
"Text"
] | 7 | Python | AlexAbraham1/TorahBot | 071260f8892e569ac87d74df2750af5d0fdb5e19 | 807f85388500587a67cc5c3b0b271e224cdb8f1b |
refs/heads/master | <file_sep>#include "replica.hpp"
#include "argparse.hpp"
#include <thrift/transport/TServerSocket.h>
#include <thrift/transport/TBufferTransports.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransport.h>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/server/TThreadedServer.h>
i... | 4bc5bea246ee14e74f3775b9d72b52be20daaf94 | [
"CMake",
"Markdown",
"Dockerfile",
"Python",
"C++"
] | 16 | C++ | gwint/mystore | 4450c1381f993fa4b094583db216e494cd58bc7f | 999508a376c1cb778dfb5bf907997d76c5f34cfe |
refs/heads/master | <file_sep>package ise308.baran.murat.aircrafthw2
import android.util.Log
class PassengerPlane(brand: String, aModel: String, avgAirSpeed: Double, val numofSeat: Int,val isCargo: Boolean,
val from: String,val to: String,val flightCode: String):Airplane(brand, aModel, avgAirSpeed) { // numofSeat :... | 1ddfad7801d895ba02b563144b3c4cae7097b721 | [
"Kotlin",
"Gradle"
] | 7 | Kotlin | Rexilious/HW2_160308011 | c0d8eafe00d125d6705502df8bcc7d04412d1033 | 86022a446272301a9e97369ad3a278696a368988 |
refs/heads/main | <repo_name>dcduncanson/Springboard<file_sep>/mapsetexercise.js
new Set([1, 1, 2, 2, 3, 4]) // Set(4) {1,2,3,4}
[...new Set("referee")].join("") // "ref"
let m = new Map();
m.set([1, 2, 3], true);
m.set([1, 2, 3], false);
// Map(2) {Array(3) => true, Array(3) => false}
hasDuplicate([1, 3, 2, 1]) // true
has... | 6836f519718611dd4db798f8b891e00404137bae | [
"JavaScript",
"Python"
] | 4 | JavaScript | dcduncanson/Springboard | f1d7b58138069eb1d75ec9e5c4424cb5da31b079 | 160713fcdf1d2314125e317b7ebec93cb728d9fc |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package streaming.service;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.... | 8376d3d125f6e881cb3ceb08e8a903a9201db667 | [
"Java"
] | 2 | Java | quicotte-formation/atelier_struts2 | 04a9362361e4fd01a4eee73d8554f2d7b06c6671 | 2556fc4f1ed2d09436a8cd096d5b728ed1ef1bae |
refs/heads/master | <repo_name>themitvp/Biometric<file_sep>/src/histogram.cpp
/*
* facerec_hist.cpp
*
* Created on: 17/06/2016
* Author: <NAME>
*/
#include "opencv2/core/core.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/imgproc/i... | 0b75726fc5bd443e284efa02614b814be27613f7 | [
"Makefile",
"Text",
"C++"
] | 5 | C++ | themitvp/Biometric | d270ec39974480279f14c39f2d10b717002e8c58 | 2472904a86163da3d89925f1ad03be495e67547a |
refs/heads/master | <file_sep>#pragma once
#include <string>
#include <alsa/asoundlib.h>
class CArecord
{
public:
CArecord(std::string device);
virtual ~CArecord();
bool Init();
void Dispose();
bool Record(unsigned int millis);
char* GenerateHeader();
char* GetRawBuffer();
unsigned int GetBufferSize();
protected:
voi... | 362a032bc5f7310fcf6fda51af2cf6abf497b740 | [
"JavaScript",
"Markdown",
"Dockerfile",
"Python",
"C++"
] | 10 | C++ | rhocheck/soundcapture | dfcb489c5339d41ceaeb50c75abd6eac2441f5c1 | c907c6497a2b554aef1288eae3c543a1a67661f4 |
refs/heads/master | <repo_name>loocat/iot-nodejs<file_sep>/test/app.spec.js
import { default as library } from '../src/index.js';
import { expect } from 'chai';
import sinon from 'sinon';
import mqtt from 'mqtt';
import events from 'events';
console.info = () => {};
describe('application', () => {
describe('constructor', () => {
... | da96a080ca329e2083efb8f150061a8feafc4ba6 | [
"JavaScript"
] | 4 | JavaScript | loocat/iot-nodejs | 6b653326ff6ef6698059e8edfd5dc863ec519f0f | 0fc26dd925308660f355c924c605431ce8526ed7 |
refs/heads/master | <repo_name>Mediumcore/gstream-rtsp-work<file_sep>/README.md
# gstream-rtsp-work
Work samples done for Gstreamer RTSP server
I am new to gstreamer, so i decided to create samples that suits my objectives/requirement
Initial requirement is as follows :
1. gstreamer server with the following capabilities
a. Strea... | 78250c08fae5ceb92ec3807f48193fab6445c2fd | [
"Markdown",
"C++"
] | 2 | Markdown | Mediumcore/gstream-rtsp-work | b3713b125b4e219f30047a3fb7a85cf6641faa8f | 1d38ec3152e807a3e674e0191c572452bef4197b |
refs/heads/main | <file_sep>function test(){
return <div>hello asd world</div>
}
| 095bb1cfe333fde6597dd8baf8078421be0400e5 | [
"JavaScript"
] | 1 | JavaScript | gvr37leo/socketserver | 1e487ec2d34da377dda2a202cfe7e86a3241f58c | 885ed742e148487ea5926bd306bd4d585e8389f9 |
refs/heads/master | <repo_name>AlineSanqueza/SAP004-data-lovers<file_sep>/src/pagination/pagination.js
import {generateCard} from "../card/card.js";
let currentPage = 1;
let recordsPerPage = 10;
let currentArray = [];
export function prevPage() {
if (currentPage > 1) {
currentPage--;
changePage(currentPage, currentArray);
}... | 803009b9824667709c4be01e573812d64cc8b3f0 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | AlineSanqueza/SAP004-data-lovers | 17539ffc4909b2ffc2574e28706e74fc40207d1d | 7f19dbd52a7a6e01f9da57d9cad6fc89ace81198 |
refs/heads/master | <file_sep>using CurrencyConverter.Core.Services.Responses;
using Newtonsoft.Json;
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace CurrencyConverter.Core.Services
{
public class ConversorService : IConversorService
{
private CurrentCurrencyObj... | 5f6792bd70bf6be9c90026f7947907c003adbb32 | [
"C#"
] | 3 | C# | leobononi/CurrencyConverter | c856eff253248206cdb19b10dfb9103c2465fe4b | 0d24358a8fc40440c2fc5d0ddae3719cb41f3289 |
refs/heads/master | <file_sep>A(3)
{
A(2)
{
A(1)
{
A(0)
{
exit braces
}
print 1
A(0)
{
exit braces
}
exit braces
}
print 2
A(1)
{
A(0)
{
exit braces
}
print 1
A(0)
{
exit braces
}
exit braces
}
exit braces
}
print 3
A(2)
... | df9bbca2758c227e6b0faa9d44cba0fe1780d9e6 | [
"C++"
] | 1 | C++ | Mehar-04/Recursion-for-newbs | 1c8d6c00b80c813f8023f5e0793f84c0271687a2 | 4c0ffa610b0ae8c12aae85aef81221e7ad78aea5 |
refs/heads/master | <file_sep>package moneycalculator;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Scanner;
public class MoneyCalculator {
double amount;
double exchangeRate;
String currencyFrom;
Str... | a676e22ddd5cc09e138829b46d79d56f538be289 | [
"Java"
] | 1 | Java | AlvaroAfonso/MoneyCalculator-PA1 | 3b9d99df9bb1c415a56f3a83b3ef44abc4566a36 | 68ed0cce7c98fa69f9165251ce414d63197a54d8 |
refs/heads/master | <file_sep>from ranger.api.commands import Command
class setwal(Command):
def execute(self):
from os.path import join, expanduser, lexists
from os import makedirs
import re
self.fm.execute_console('feh --bg-scale' + str(self.fm.thisfile))
| 1a6174f42570eb2fb81f689136d81aca1b36033b | [
"Python"
] | 1 | Python | halitdincer/dotfiles | 19b4e7eec09878ea3b78ea035e7f05b6bfc7e6de | 659d2f087f7da8accf4fec76f738e0cbebe43387 |
refs/heads/master | <repo_name>skyformat99/nriet-sw2-vpx-zynq<file_sep>/src/udpapp.h
/*
* udpapp.h
*
* Created on: 2013-9-22
* Author: Administrator
*/
#ifndef UDPAPP_H_
#define UDPAPP_H_
#include <stdio.h>
#include <string.h>
#define SLOTINDEXMAX 12
#define SLICEIDMAX 4
#define REBOOTBOARDMAX 12
extern s... | 472a51dcae20763d0063fd611853180e3efdc082 | [
"Markdown",
"C",
"Makefile"
] | 21 | C | skyformat99/nriet-sw2-vpx-zynq | 7801bc0661ea9084aeed884eaf01517d211e218f | a8a7d3a1d61e7b949fd3cfb60eb37b6bc61a23db |
refs/heads/master | <file_sep>import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { logout } from '../../actions/session_actions';
import { withRouter } from "react-router";
class Navbar extends React.Component {
constructor(props) {
super(props);
this... | e98c7397389dad72ed8496ea4cc03dcbb305162d | [
"JavaScript",
"Ruby",
"Markdown"
] | 53 | JavaScript | ZackSyed/Itadaki | 2db027f877e6884a749744ecd43073e6e6d46ef0 | d06b316e604fc9668e032097569bfde9c9e68d73 |
refs/heads/master | <repo_name>gomezivan/ms-hello-word<file_sep>/README.md
# ms-hello-word<file_sep>/settings.py
APP_NAME = 'Hello-word'
APP_VERSION = '0.0.0'
PORT = 8080 | 5176204042db2f0ff076685bfa4a0f788b51767a | [
"Markdown",
"Python"
] | 2 | Markdown | gomezivan/ms-hello-word | 40d3d3b256db1249f82d76340c102f15174ecef6 | 651a0425e611e7e61bac785f5e2ad9c6fda09c10 |
refs/heads/main | <repo_name>swapchat/Products-Listing-app<file_sep>/src/App.js
import React, { useEffect } from "react";
import { connect } from "react-redux";
import { getAllCategories } from "./actions/categoriesActions";
import SelectDropdown from "./components/SelectDropdown";
import Header from "./components/Header";
import { getP... | 9d89aae504b4f4a0b21edaeaff683cce39e125eb | [
"JavaScript"
] | 5 | JavaScript | swapchat/Products-Listing-app | 7cd12450112217e0d0f9fc3c1b4e1c75bb9df4ff | 81f08ee79195f997b872263dd80818e9533ff3e4 |
refs/heads/master | <file_sep><?php
/**
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to newer
* versions in the future.
*
* @category Smile
* @package Smile\ElasticsuiteCustomEntity
* @author <NAME> <<EMAIL>>
* @copyright 2017 Smile
* @license Open Software License ("OSL") v. 3.0
*... | 3c7880cacf2711814c58eb102284275b2c3023c9 | [
"Markdown",
"PHP"
] | 33 | PHP | Smile-SA/magento2-module-elasticsuite-custom-entity | 88e3b8bc74acf8aced61fd4e5e9b4bd3af76e1cd | a91bf1c6f91d88104f15afc32d5ad95e8c197bc1 |
refs/heads/master | <repo_name>Tillkoeln/PoS-and-what-means-this-line-inside-insertrandomfilename<file_sep>/whoopwhoop.cpp
bla bla bla bla bla
if someone else read that text and know it better or
if something isnt correct, feel free to post the correct explain / example
bla bla bla bla
bla bla bla
bla bla
bla
Hello Bhokor ^^
you aske... | 9e35671697dfebc1a2c1e9800ea4a2ea935a85a4 | [
"C++"
] | 3 | C++ | Tillkoeln/PoS-and-what-means-this-line-inside-insertrandomfilename | 4afd7b4565c31f85746d2f1d8a52848c48627630 | c02b76016967cff9089275e96bd46e3185280873 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
from contextlib import nested
import testify as T
from mock import MagicMock
from mock import patch
from threat_intel.exceptions import InvalidRequestError
from threat_intel.util.http import MultiRequest
class MultiRequestTest(T.TestCase):
def mock_responses(self):
"""... | fbed960ccb5094831c1ed2239dab2d8f492f613d | [
"Python",
"Text"
] | 2 | Python | burdzwastaken/threat_intel | 3132cd901dea3b507f3a393416237d53f17e3c75 | 54112d34a49f34da9f4a531f11de2bb3a7b1c11f |
refs/heads/main | <file_sep>var menu = document.getElementById("menu");
menu.addEventListener("click", function (e) {
e.stopPropagation();
});
document
.getElementsByClassName("menu-mobie")[0]
.addEventListener("click", function (e) {
e.stopPropagation();
menu.classList.toggle("active");
});
document.addEventListener("c... | 27c2f38dcf5b91f18939a05864e8d710098cd2b2 | [
"JavaScript"
] | 1 | JavaScript | anhtuankkrb/Fashion88 | ba4d87b0576f40de08ab8ce67d6ce0d17fc6da13 | 1a8960c17de7099d499d85c76273803763578103 |
refs/heads/main | <file_sep>import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.text.ParseException;
public class RegistrationPanel extends JPanel{
private RegistrationGUI frame;
private JLabel patientNameLabel, patientDOBLabel, patientZipCodeLa... | 31bff20fe75e4708c1e2f41679e5ef37df00d709 | [
"Markdown",
"Java"
] | 3 | Java | trsaund/VaccineRegistrationApp | a3a2d98cb3ecaf3571de86956ff2b35f3f50d786 | 69ec6a1576befc04b7e8123dc1a2f4ceb4fe01f7 |
refs/heads/master | <file_sep># go-roman [](https://travis-ci.org/mvader/go-roman) [](http://godoc.org/github.com/mvader/go-roman)
Golang library to manipulate roman numbers.
<file_sep>package roman
imp... | 4f9a295f47fe97298cc4aff479fcc47aebec2293 | [
"Markdown",
"Go"
] | 3 | Markdown | mvader/go-roman | eeb88e8a2051c4da12f39a8601db0f4e8e63823c | d2033083058aa0ff75a6576146ca2219f2b59b80 |
refs/heads/master | <repo_name>jpremo/task_list<file_sep>/app/seeds/lists.py
from app.models import db, List
def seed_lists():
newList = List(title='To Do')
db.session.add(newList)
db.session.commit()
def undo_lists():
db.session.execute('TRUNCATE lists RESTART IDENTITY CASCADE;')
db.session.commit()
<file_sep>/... | 7846f8480498f21b1a401a79a09c8095744403b0 | [
"JavaScript",
"Python",
"Markdown",
"Shell"
] | 27 | Python | jpremo/task_list | 5a63e95ceb3460a2627771d6f80c23a108ca07a5 | 3506019d195a3eb0da6701414b2579b4ea94e99c |
refs/heads/master | <repo_name>lyhiving/dog<file_sep>/readme.md
# DOG [](https://github.com/lukeed/dog/actions/workflows/ci.yml)
> Durable Object Groups
## Features
* Supports `Replica` workloads using the HTTP and/or WS protocols
* Creates or reuses a... | 6bfad802be8c0ea0212f4639a6871501572e68d6 | [
"Markdown",
"TOML",
"TypeScript",
"JavaScript"
] | 18 | Markdown | lyhiving/dog | 2994d9e85adaedce6befdc54cc1ee05ab5548fb4 | 8988611f1ea50f2d9985d06c22cd2010b87cd811 |
refs/heads/master | <repo_name>Simba14/makersbnb<file_sep>/app/controllers/requests.rb
class FourM < Sinatra::Base
post '/set_space' do
space_id = params[:space]
redirect "/requests/new/#{space_id.to_sym}"
end
get '/requests/new/:id' do
@space = Space.first(id: params[:id])
erb :'guest/requests/new'
end
post '... | b790de4070080139604025b12901ebf4016c41bd | [
"Markdown",
"Ruby"
] | 20 | Ruby | Simba14/makersbnb | 427bf789310978dc46c66926863cf6a1a85209c1 | eb25fcb8f1537b185f51e05d05c500e845fa4957 |
refs/heads/master | <file_sep>package com.practice.mobliesafe.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.practice.mobliesafe.R;
/**
* Created by 赖上罗小贱 on 2016/4/25.
*/
public class Setup1Activity extends Activity {
@Override
protected vo... | d0e3c67e46b6fa629b35dd685e8fa148e89386cd | [
"Java"
] | 2 | Java | soulgo/MoblieSafe | 4b56822ed2ce5263d38b86693294b7583de3bd77 | 36ebf3cc945485a65a05b3c6728b58dddc607d2a |
refs/heads/master | <repo_name>Manx98/HTML<file_sep>/Home_Work/js/font_size_change.js
var content = document.getElementsByClassName("content");
var font_size_up = document.getElementById("font_size_up");
var font_size_down = document.getElementById("font_size_down");
var max_size = 30;
var min_size = 15;
window.onload = function(){
for(l... | 6527caf68c0ba9f767ba95afa246f1781fca6dd4 | [
"JavaScript",
"HTML"
] | 2 | JavaScript | Manx98/HTML | 27ca07e930396c568c6260d3f75b7d626bfb2777 | e758fe10eb62533d95da5ca924facbcba29cccaa |
refs/heads/master | <repo_name>AngelicaGuaman/Servicios<file_sep>/RESTful/CalendarioRESTful/src/java/servicios/CitaFacadeREST.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package servicios;
imp... | 97681eb5e8281c3eca05f0b995159c4646acfb35 | [
"Java",
"SQL",
"INI"
] | 9 | Java | AngelicaGuaman/Servicios | 32316ac728f529379767426b3e7af6039a383b5d | 53c39f93648b65d4a400ab67a55b1c299a7e7038 |
refs/heads/master | <repo_name>Howard725/offer<file_sep>/45_LastNumberInCircle/main.cpp
#include <iostream>
#include <list>
#include <stdlib.h>
using namespace std;
int lastNumberInCircle_Math( int n, int m )
{
if ( n <= 0 || m <= 0 )
return -1;
int last = 0;
for ( int i = 2; i <= n; ++i )
{
last = ( las... | 5f68034bffeb6ccec7e06e6222c698b1c564b23f | [
"C",
"C++"
] | 63 | C++ | Howard725/offer | 3a9fe795773681cdb29034fab6a2e9bf2b4ca0f7 | 98194ebb32c1a840330fd2a9ddc512db3583a7a1 |
refs/heads/main | <file_sep>def has_flagship(units):
return any(map(lambda u: u.name == "flagship", units))
def has_mech(units):
return any(map(lambda u: u.name == "mech", units))
def above_average(units, hits):
# determine whether this number of hits was above the expected amount for this set of units
expected = 0
... | e114b45263e24dbaf4ab97acc240cd1332f080ac | [
"Python"
] | 1 | Python | systemicsmitty/TI4_battle_sim | b4ed142ff57d19ed50705ba40f83b8b3b7e3a774 | e948579fc55b1976cdfb959f4e9ef72e00dcf399 |
refs/heads/master | <repo_name>mirakl/dns-aaaa-no-more<file_sep>/getaddrinfo.c
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#define __USE_GNU
#include <dlfcn.h>
#include <stdlib.h>
int
getaddrinfo(const char *node, const char *service,
const struct addrinfo *hints, struct addrinfo **res)
{
const static in... | eefc40fea3c2590a9825ddfb7555185a0d3d7d15 | [
"Markdown",
"C",
"Makefile"
] | 3 | C | mirakl/dns-aaaa-no-more | 6df454a0f952c81762aa5d55d8677b22d5309c10 | ca2d71d12635af7db63ea3927888d0ff23422d99 |
refs/heads/master | <file_sep>
rootProject.name = "Exercicio4While"
<file_sep>fun main(args: Array<String>) {
/*
4 - Crie um programa que leia 10 valores e identifique a quantidade de números pares e ímpares
*/
var arrayNum: Array<Int> = arrayOf(2,5,12,17,24,31,38,45,52,57)
var par = 0
var impar = 0
for (x i... | a6ba23962697c6fc9c41ef56ecb3953f3ade0c7a | [
"Kotlin"
] | 2 | Kotlin | Ademir-Oliveira-Dev/LoopWhile4 | 2c8f0700687c9d30b880b7af340412c267ca09e4 | 1543bae04c5713d8fdee033a8f7f2e091def33e7 |
refs/heads/master | <file_sep>const express = require('express');
const bodyParser = require('express');
const mongoose = require('mongoose');
const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended: false
}));
app.use(express.static('public'));
//connect to the database
mongoose.connect('mongodb:/... | fa065e4648ad6e7501a328d1db3994cd5e45fe20 | [
"JavaScript"
] | 1 | JavaScript | GabrielSuttner/cp4.gabrielsuttner.com | 3ef46af0a91b4f4414d788324027fe5d8dabdda1 | a913f9a976ffb89c227d5fcac6df7f4c1ff5bfd3 |
refs/heads/master | <repo_name>greghuber/phase-0-tracks<file_sep>/ruby/nested_data_structures.rb
# Construct nested data structure. Create structure representing
# a company with three hotels, including data from each in a
# mixture of hashes and arrays, with various data types
andel_hotels = {
dressler_inn: {
name: "<NAME>",
ge... | 348476fb88c1caf9699cc4c0691020c1b7137355 | [
"JavaScript",
"Ruby",
"HTML",
"Markdown"
] | 26 | Ruby | greghuber/phase-0-tracks | 1aaeb75251497f278c4d4b1c083b6a3d2829eaf1 | 86b3b638ff3c683129f361c74553230bc75ad3b6 |
refs/heads/master | <repo_name>maitzeth/my-theme-wp<file_sep>/functions.php
<?php
//SOPORTE Y CONFIGURACIÓN GENERAL DEL TEMA
add_action('after_setup_theme', 'theme_setup');
add_action("wp_enqueue_scripts", "add_js", 11);
add_action('wp_enqueue_scripts', 'add_css');
if ( !function_exists( 'theme_setup' ) ):
function theme_set... | bc8680d7b8a92cf6748476ffe51405126a87b3fe | [
"JavaScript",
"PHP"
] | 4 | PHP | maitzeth/my-theme-wp | 9520123ec840cf942f589ff7280bbd8f80de58dd | d7250f143b26ad4307e1ab5f2c3bb572e3089e6b |
refs/heads/master | <repo_name>chrislarson/python-deep-dive<file_sep>/08-modules-packages-and-namespaces/06-using-main/run.py
# run.py
import timing
code = '[x **2 for x in range(100_000)]'
result = timing.timeit(code, 100)
print(result)
<file_sep>/08-modules-packages-and-namespaces/02-how-python-imports-modules/example3a/main.py
# mai... | 4f96911ca9273675c4511f87ec69a89fcc002c72 | [
"Markdown",
"Python"
] | 5 | Python | chrislarson/python-deep-dive | 2497c729fd41b58514305b069d4172f668eb7e05 | 98550b8f38a508f5c1d5ebecd7c0105356e4aa60 |
refs/heads/master | <file_sep>
#include<iostream>
#include<conio.h>
using namespace std;
int main(){
int p;
float a;
char ch;
cout<<"Enter any value "<<endl;
cin>>p>>a;
cout<<"choose any operator(+,-,*,/,<,>) ::"<<endl;
cin>>ch;
switch(ch)
{
case '+':cout<<"addition "<<"="<<p+a<<endl;
break;
case'-' : cout<<"subtractio... | e18f7c736b9ec9f93276677990b9d50a1d7b4601 | [
"C++"
] | 1 | C++ | som22/calculator-1 | 80c9abee2fdaa5f119e82444e4013eb6db635980 | c12a36c7fe921d7f668d12081975cbbac13b9b8a |
refs/heads/main | <repo_name>AmandaJones33/MiniprojectTWSM<file_sep>/server.php
<?php
session_start();
//Users
$username = "";
$email = "";
$first_name = "";
$last_name = "";
$phone_number = "";
$csgo = false;
$lol = false;
$admin = false;
$errors = array();
//USER REGISTRATION
//setting up connection to the database
... | b7fa50576b19bc3a8856477cc01d3b16d2a09d69 | [
"SQL",
"PHP"
] | 12 | PHP | AmandaJones33/MiniprojectTWSM | 88348dbc69e618d797635af1c1b6677b8f50fd3f | 587249bd759e903981e42136b879eb9f04e1f725 |
refs/heads/master | <repo_name>richardbmatic17/Cheat-Sheet<file_sep>/async-function-with-error-handling.md
# Async-Await function with Error handling
### Code Example - using async/await to catch errors
```javascript
async function executeAsyncTask () {
try {
const valueA = await functionA();
const valueB = await functionB(valu... | ca053ad639215a918a975da11c6e991674efd207 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | richardbmatic17/Cheat-Sheet | 0961a628db051adf9dbe3ae18e89cad8717628f7 | 081a962821c3808008c15fa0f5688118353f104c |
refs/heads/master | <repo_name>skuhnow/elements<file_sep>/tests/Factory/TableFactoryTest.php
<?php
namespace SKuhnow\Elements\Tests\Factory;
use PHPUnit\Framework\TestCase;
use SKuhnow\Elements\Factory\TableFactory;
use SKuhnow\Elements\Table;
class TableFactoryTest extends TestCase
{
public function testCreate()
{
$ta... | a63ab2e9dddd4ae1fd5682d25c0bef1f5fbb1b22 | [
"PHP"
] | 6 | PHP | skuhnow/elements | f0680965cad1e1f3b8af86d013243a05077d7d04 | ce3810e8ea5b5739e9193f82b34743da99faf7aa |
refs/heads/main | <file_sep><?php
$destino = "<EMAIL>";
$nombre = $_POST ["nombre"];
$telefono = $_POST ["telefono"];
$correo = $_POST ["correo"];
$mensaje = $_POST ["mensaje"];
$contenido = "Nombre: " . $nombre . "\nCorreo: " . $correo . "\nTelefono: " . $telefono . "\nMensaje: " . $mensaje;
mail($... | 830c9a963d9dae9f2213fef39b1d9da00398e198 | [
"PHP"
] | 1 | PHP | andreyaraque/lawtech | 720b9a97506bb142cb657499aaadf640554c1c4c | 4faa0d84a417f0b1d4879615683d4758aa3c3467 |
refs/heads/master | <file_sep>import os
import sys
from urllib.parse import urlparse, parse_qs
from datetime import date
from googleapiclient.errors import HttpError
import praw
import httplib2
from googleapiclient.discovery import build
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from o... | 357d2292a6032e3cddb343b49587b29617f9c5c0 | [
"Markdown",
"Python"
] | 2 | Python | howardad/reddit-music | b1c95b542bcc82f2f876c8d8829ed1a3cade2dc3 | de641424584f02de9c71541a09616ded14d7b4b7 |
refs/heads/master | <file_sep>package com.database.dao.model;
import java.io.Serializable;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_foo")
public class Foo imp... | d9bdeb82655bc8db766cf8c9651e07a09ec17909 | [
"Java"
] | 1 | Java | afonsompp/persistence-layer-spring | 176dbd504979e75dd3c798521ed5542f32e0f201 | 7def6a7e37a1b74de7bb1ae2c6bfc2a53d6645f3 |
refs/heads/master | <file_sep>import { CardContent } from "@material-ui/core";
import { Typography } from "@material-ui/core";
import { Card } from "@material-ui/core";
import React from "react";
import { makeStyles } from "@material-ui/core";
const useStyles=makeStyles({
title:{
fontSize:60,
fontFamily:"OCR A",
... | 212ee2fb5689af96f8d2091c3f4fde4b9807e021 | [
"JavaScript"
] | 2 | JavaScript | Surasak5/react-deploy | 66cfd372ea351d990284ab26a66c978efe16c85a | ff16797c4dc2c0c33acfe973633b832e4b0c6f70 |
refs/heads/master | <repo_name>manpenaloza/manpenaloza-website<file_sep>/content/blog/homeoffice-tipps-how-to-work-well-from-home/index.md
---
title: Homeoffice like a boss! How to work well and productive within your own 4 walls.
date: "2020-03-12"
---

_Photo by <NAME> on Unsplash_
🏡 💻 is not a work option I’ve done ... | 5b90b37da786e96fa6ea0a263c83275ffd38b705 | [
"Markdown",
"JavaScript"
] | 11 | Markdown | manpenaloza/manpenaloza-website | 509681f8d60d948597ab1cc7db9a6948d5378b09 | bb9aa6c40e43eac79879df09e0aad6747ffff131 |
refs/heads/main | <repo_name>TariqRiza/AntrianPuskesmas2<file_sep>/pages/index.js
import Image from 'next/image';
import Link from 'next/link';
import styles from '../styles/Isi.module.css'
import Navbar1 from '../component/Navbar1';
import {Anak, Lansia, Umum} from '../assets/img';
export default function Home() {
return (
<div ... | 9df872fe032d0bace941cd13ae6a45034ee4f23b | [
"JavaScript"
] | 6 | JavaScript | TariqRiza/AntrianPuskesmas2 | dd8bab15decfca4ae3a44cd243fdc17502e03806 | 2797b90755cb1862e8d5544646956fe143bcc387 |
refs/heads/master | <repo_name>gcman105/middleman-bss<file_sep>/Gemfile
# If you have OpenSSL installed, we recommend updating
# the following line to use "https"
source 'https://rubygems.org'
gem "middleman", "~> 3.3.4"
gem "slim", "~> 2.0.3"
gem "bootstrap-sass", "~> 3.2.0.1", require: false
gem "font-awesome-middleman", "~> 4.1.1"
gem... | 2d2a45c10c2a3b46d32d00f7a726f54dd40ddd28 | [
"Markdown",
"Ruby"
] | 2 | Ruby | gcman105/middleman-bss | f9aa02cc3e36beacb49528d3306947d473feae7d | 8ee17dbf151c9bae6190d43fb0fa706274028750 |
refs/heads/master | <file_sep>#include<stdio.h>
int isLeapYear(int year){
// return 1, if year is Leap Year
// return 0, if year is not leap year
return ((year % 4 == 0) && (year %100 != 0));
}
int isLastDate(int d, int m, int y){
int lastDate[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};
if(m==2){
if(!is... | f8a85f67fec94cb22efd1bf26212eb6059fd2b5d | [
"C"
] | 10 | C | Amitesh-patil/c-program | 69b6d12697c7a4076e2e534d16cada1db21d5231 | 9e4a80dda05f457abb915d6f2d7ee264d3d9d29e |
refs/heads/master | <file_sep>
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.FSDataOutputStream;
im... | ed024571c374163cc8c73b964c59deff64483652 | [
"Java"
] | 1 | Java | zhouzhengsuc/MapReduce-SentimentAnalysis | cf9072bf647a5cb80330e82acdd85bfdfcd86beb | 57b30e662d6ce3e7f6cb4800cf1d71a76244bb10 |
refs/heads/develop | <file_sep># Auto-scaling Experiment Design
## Environment Requirement
- Kubernetes cluster with 1.6.x installed.
- PaddleCloud with latest develop branch installed.
- At least 4 kubernetes nodes, each node should have 2 GPU cards at least.
- Dataset prepared to multiple files with the RecordIO format.
## Experiment ... | 947b00a6d67ca12c80dba71c1a7caf6fbc1cc262 | [
"Markdown",
"Python",
"Text",
"Go",
"Dockerfile",
"Shell"
] | 10 | Markdown | drinktee/cloud | 193157221cf8395143f294bed02054f88ed4c096 | b29c0520b87e7a9eb4db1d262c5d887861a4a916 |
refs/heads/master | <repo_name>andrewgazelka/AndrewLearnsDjango<file_sep>/001_mysite/polls/admin.py
# Register your models here.
from django.contrib import admin
from .models import Question, Choice
admin.site.register(Question) # Adds question to admin interface
admin.site.register(Choice) # Adds question to admin interface | 173c735b67151e9735478938463b5692139c9ab5 | [
"Python"
] | 1 | Python | andrewgazelka/AndrewLearnsDjango | c308e94fec43db6b2f6ec4ee06641e981fa672fc | 0c8c952151080ef8512177e69e4d9dc7e19d70cd |
refs/heads/master | <repo_name>jliu212/Contoso<file_sep>/Contoso/ViewModels/RegisterViewModel.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Contoso.ViewModels
{
public class RegisterViewModel
{
[R... | 680edfd0006215e6e3493d596a3d10ef1cb40c46 | [
"C#"
] | 2 | C# | jliu212/Contoso | 0b9420ac00ce8b458fba6c1ce586d4fdb336ab28 | 6c8b738d4426a18eb20d05cc8bef0a2a2cb8414b |
refs/heads/master | <file_sep>import { combineReducers } from 'redux';
import pageHeaderReducer from './pageHeader.js';
const appReducer = combineReducers({
pageHeaderReducer
});
export default appReducer;
| 87f67b884f19d87025d19f9f13991b82a2c9b7e1 | [
"JavaScript"
] | 1 | JavaScript | qq785478075/React-Less | 6d8ce2be0846713fc9e73b32155ee6ff0addcd91 | 9b39eb63e60a8246c4e7e8ede0a139f8a2c69160 |
refs/heads/master | <repo_name>leonguyen1988/ArrayListA.D.T<file_sep>/arraylist.hpp
template <typename T>
void ArrayList<T>::grow()
{
T *tmp;
m_max == 0 ? m_max++ : m_max;
tmp = new T[m_max*2];
for(int k= 0; k<m_size; k++)
{
tmp[k] = m_data[k];
}
delete [] m_data;
m_data = tmp;
m_max *=2;
}
templ... | 7c083a0fdea74d26fe40233af7bee8e14fbe484a | [
"Markdown",
"C++"
] | 3 | C++ | leonguyen1988/ArrayListA.D.T | 64994f20ed5cdd072768235d38ea8c53f20b493d | 62ca56777f5fa1e73e84adaee22ab992d959f7a7 |
refs/heads/master | <file_sep>
class Guild:
def __init__(
self,
id,
name,
icon,
splash,
discovery_splash,
owner_id,
region,
afk_channel_id,
afk_timeout,
verification_level,
default_message_notifications,
explicit_content_filter,
... | 7566a0936990b86016b96746ca15f0539d6e2ff5 | [
"Markdown",
"Python"
] | 22 | Python | erick-dsnk/tameris | 4a6ac8d1bcd2b621a20956aea18e57339c037bb5 | 667c0cda9c0311f15072f9f9cd7ba650694c6355 |
refs/heads/master | <file_sep>const mongoose = require('mongoose');
const Reply = require('./Reply');
const postSchema = new mongoose.Schema({
postPic: {
type: String,
required: true
},
postContent: {
type: String,
},
userId: {
type: String,
require: true
},
regDate: {
... | e3a67871e884dd89bd4cc745fa1cb6e0fd83b482 | [
"JavaScript"
] | 6 | JavaScript | dksalsgus/NODEINSTACLONE | ca71e1d49ee44318332de2a9a78819ce7005c64c | 20a81d4cde977540a80e650a82fa73854c1611ed |
refs/heads/master | <repo_name>ackoroa/TrackMe<file_sep>/src/TrackMe.java
/* CS2105 P1
* <NAME>
* A0092101Y
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileRea... | 085493c2c202634169c82ab8db5015d13b4403ee | [
"Java"
] | 1 | Java | ackoroa/TrackMe | 864b05301f1ea797f0ac3f6475c63d3b9b58b600 | bacdb8f1859e8e7d70f8b47b000d361f124f461d |
refs/heads/master | <file_sep>import Vue from 'vue'
import Vuex from 'vuex'
import courses from './modules/courses'
import user from './modules/user'
Vue.use(Vuex)
export default new Vuex.Store({
modules: {
courses,
user
}
})
<file_sep>import axios from 'axios'
function areEqual (a1,a2) {
if (a1.length === a2.length)... | 893c4aa1b04850ac9d9296eb5dd4bf5774c7fe52 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | rishisurana13/stride-ui | 5e17665dd1182a5357ca7cad5d2ea11c8c25fb83 | acd363e98a5002bf47e8f6a845315bad2c8016c9 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication51;
import java.util.Scanner;
public class Calculadora22 {
private int num1;
... | 10331d86fa97ec877c1a5987e764e5f1eb3aee88 | [
"Java"
] | 1 | Java | Aaronlzt35/Trabajo3 | 1e926441e60f614196d8e66337abd1f4f2c9af4a | 89117f536cd02a2341486cab6901c5d1fd7eb5ca |
refs/heads/master | <repo_name>LittleStone9527/styleEleSibling<file_sep>/demo.js
/**
* Created by Administrator on 2015/5/28 0028.
*/
//思路:找出紧跟在指定元素后面的那个元素,并且给该元素添加样式
function setSiblingStyle(tag,Tclass){
if(!document.getElementsByTagName) return false;
var elems = document.getElementsByTagName(tag);
var nextEle;
for(var... | c16bfa801559c5be8d7b8d3395f4cea7001ebe56 | [
"JavaScript"
] | 1 | JavaScript | LittleStone9527/styleEleSibling | 238ec5077d177ac78f8642bbaff0716455766062 | ac52968e1a1e62a57dc4682e2f883549479fdeff |
refs/heads/master | <repo_name>Sammaye/ng-auth<file_sep>/src/app/authentication/change-password/change-password.component.ts
import {Component, OnInit} from '@angular/core';
import {FormGroup, FormBuilder, Validators, ValidatorFn, AbstractControl} from '@angular/forms';
import {NotificationsService} from '../../common/notifications.servic... | eaac87cede4d1ca52b6bf24bf9df649fd3357588 | [
"Markdown",
"TypeScript"
] | 10 | TypeScript | Sammaye/ng-auth | 73d5242d14fa90486e5210366fcde2e8eca4eb6a | 386da5ea4c383a1f916e2a0813404684e5657951 |
refs/heads/master | <repo_name>washucode/Image_Search<file_sep>/show_images/views.py
from django.shortcuts import render
from django.conf.urls import url
from django.http import HttpResponse, Http404
from .models import Category,location,Image
# Create your views here.
def home(request):
images = Image.allphotos()
return rende... | ef0ed2fbb7be01c9a336a658bf1965f4f3eb876c | [
"Markdown",
"Python"
] | 4 | Python | washucode/Image_Search | 54946e43a16cde4f54fe0a7229e38d12eb798cba | f7973e4752ad306bec7816453605c7401d163c0d |
refs/heads/main | <file_sep>import java.util.Scanner;
public class B extends A {
int y;
void inputValue () {
Scanner input = new Scanner(System.in);
try {
System.out.println("Please enter Y number: ");
y = input.nextInt();
} catch (Exception e) {
System.out.println("Pl... | 12264b2dc4248760376f3958ef73a08ebadd1a53 | [
"Java"
] | 2 | Java | AnanoBB/JVM-university | bafedcc131bda822d175ee63121042d75b94eb8f | 08772670a9410f86ea3c4e2520e4e31e225ce33c |
refs/heads/master | <repo_name>jcthalys/hacker-rank-solutions<file_sep>/src/main/java/com/arrays/ArraysLeftRotation.java
package com.arrays;
import java.util.Arrays;
public class ArraysLeftRotation {
static int[] rotLeft(int[] a, int d) {
for (int i = 0; i < d; i++) {
int tempNum = a[0];
System.array... | b2e411c2d6d83bf881481792ec35be8a38fc39b5 | [
"Java"
] | 2 | Java | jcthalys/hacker-rank-solutions | 77facde698b5b57f8b681098de3ea2140f4c205e | 2fea286ad07c4772669b7fd6925eb5b6fb27f1d9 |
refs/heads/master | <repo_name>mariogaleano/testingbower<file_sep>/test.js
function mensaje(mensaje){
console.log(mensaje);
return alert(mensaje);
}; | 67d7248ef26fed556a9d5739fc4e38d14a24588d | [
"JavaScript"
] | 1 | JavaScript | mariogaleano/testingbower | 5b96f12705ae48b49e45849074c99c0e8e68d4de | 3ed7f6eaab68397a47e4489c62ea8a4174f86290 |
refs/heads/main | <repo_name>mnabarro/curso-node-tabla<file_sep>/helpers/multiplicar.js
const fs = require('fs');
const { arch } = require('os');
const crearArchivo = async ( base = 1, listar = false, hasta =10, archivo = false) => {
let colors = require('colors');
try {
let salidaConsola = '';
let salidaTxt = '';
l... | 471061545eb14380cc7ea21a18b39f50634b4eae | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mnabarro/curso-node-tabla | 4f82a74a76f912c3c4ee7bb645032ee6a972f704 | 882a415a93fa91484dfbeeb12cab8c3c8621ec59 |
HEAD | <repo_name>lazaki/LovackoUdruzenje<file_sep>/python/databaseConection.py
import json
import mysql.connector
__author__ = "Lazar"
config = {
'user': 'root',
'password': '<PASSWORD>',
'unix_socket': '/Applications/MAMP/tmp/mysql/mysql.sock',
'database': 'spisakLovaca',
'raise_on_warnings': True,
}... | 57a368bbb535b3b71c1502460921bd4b40538aa3 | [
"JavaScript",
"Python"
] | 3 | Python | lazaki/LovackoUdruzenje | 740ef5e409c2ecdc2b7861951855f960e9d2e797 | 70f93c8689bbc80a8d2279b3b5ecedce4907f095 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
git fetch --all
git reset --hard origin/master
rm test.db
rm -rf migrations/
python manage.py db init
python manage.py db migrate
python manage.py db upgrade
<file_sep># import pandas as pd
# # https://bokeh.pydata.org/en/latest/docs/user_guide/categorical.html#visual-dodge
# from bokeh.io... | 9abe89e68f086d78acf833bbbbfa9e88e051191c | [
"JavaScript",
"Python",
"Shell"
] | 6 | Shell | gpamfilis/georgepamfilis | 0e1dc5f6e20cd95b64f6168b82a15354b59fe6ea | cfbd2b6cc0e8efd6244e872f5832819a0a7a7cbb |
refs/heads/master | <repo_name>TylerJensen1107/raps<file_sep>/php/main.php
<?php
$myfile = fopen("../raps.txt", "r") or die("Unable to open file!");
echo file_get_contents("../raps.txt");
?><file_sep>/README.md
# raps
markov chain raps
| 8cf984b12a98d12f5ce8cbe3c703b64f7fec0cc7 | [
"Markdown",
"PHP"
] | 2 | PHP | TylerJensen1107/raps | 075f03f3c1cd8e45aadac9537782d2a8f183300e | ebe66eb2dfe47f19d431a7375675430e176df72d |
refs/heads/main | <file_sep>import { Request, Response } from 'express';
import pool from '../database';
class FlightsController{
public async list (req: Request, res: Response): Promise<void>{
// For pool initialization, see above.
pool.query('SELECT * FROM FLIGHTS',
function (error, results, fields)... | 111ae68db183175f313031388fc8b8e3d1ba4c22 | [
"TypeScript"
] | 1 | TypeScript | FrontEnd-ProjectIdeas/server-nodejs | 7319808b7f48ff345bd19410026881566e6d34fa | 912d3902e93702da225ef4308d9becec5a105e9c |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//ESSAS SAO AS BIBLIOTECAS QUE DEVEREMOS ADICIONAR EM NOSSO PROJETO
using System.IO;// A BIBLIOTECA DE ENTRADA E SAIDA DE ARQUIVOS
using iTextSharp;//E A BIBLIOTECA ITEXTSHARP E SUAS EXTENÇÕE... | 370b4bf6ac6d3f6226634146e821944e5127bf5c | [
"JavaScript",
"C#",
"Text",
"Markdown"
] | 79 | C# | melquelima/WEB | 95b8af46e38025d004320d4fc8adc1187e50ba82 | f456f123639b8d3231223b7c58c6fa188095b64f |
refs/heads/master | <repo_name>banxia1994/torch_frame<file_sep>/data/Normal_dataset.py
import os.path
import torchvision.transforms as transforms
from data.dataset import DatasetBase
from PIL import Image
import numpy as np
from utils import cv_utils
# read data from txt
class Normal_dataset(DatasetBase):
def __init__(self... | 193179d3c797239c20c1a7154abf9be5b7461e1b | [
"Python"
] | 3 | Python | banxia1994/torch_frame | 982e6124eba45325a32d2168b6a8032a16108881 | 5d97e1a8e2820ef26ad8b08b1210c8f633ccddb8 |
refs/heads/master | <repo_name>lupopescu/springBootJokeapp<file_sep>/src/main/java/guru/springframework/joke/JokeappApplication.java
package guru.springframework.joke;
import guru.springframework.joke.controllers.JokeClontroller;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBoot... | ae96e0ad26194b8afb3a44713c7b61f99ed6684a | [
"Java"
] | 1 | Java | lupopescu/springBootJokeapp | de5e565d86bd45acb6428689eb105eb311fbd4be | 52e138feefb482fe44814ca62460dfb792f8c9e4 |
refs/heads/master | <file_sep>//command to build client & server & run server: gradle clean build run
//command to run client (launch in a different console window/tab): gradle :elevatorClient:openClientPage :elevatorClient:run
//TODO don't forget gradlew, readme, github
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'applicat... | 11be11ef5f148a43e0cb2e3115a23bf2915d9c13 | [
"Markdown",
"Java",
"Gradle"
] | 6 | Gradle | rickywx/algelevader | f69a4b1bfcbc87e4872135774e6aa9638800be15 | 073b15a38aa1ab856a401f81175463e023b35932 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.