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/main | <repo_name>tarundeepV/APICall<file_sep>/test.py
import requests
response = requests.get('http://127.0.0.1:5000/app/api/courses?id=1')
print(response.status_code)
print(response.json())
<file_sep>/API.py
from flask import Flask, jsonify, render_template, request
app = Flask(__name__)
courses = [
{
'courseI... | b66caf8a507008a33ee8e20352f31c797668911e | [
"Python"
] | 2 | Python | tarundeepV/APICall | a20be3c0a7f2052387d590562c4d8e15a54ba7db | 89f4ef69f41c0f85d2fefbdfaf8586ca6819fb72 |
refs/heads/master | <file_sep>var str_age_min = "Um bei progettiamo.ch mitzumachen, muss man mindestens 18 Jahre alt sein."
var str_obl_filed = "Bitte überprüfe die Pflichtfelder"
var str_account_created = "Konto erfolgreich angelegt. Um das Konto zu aktivieren, wurde eine Bestätigungs-E-Mail an die angegebene E-Mail-Adresse gesendet"
va... | 8daa7680640035a49da3c2ab72017ddf7a2ee906 | [
"JavaScript",
"C#",
"PHP"
] | 10 | JavaScript | ivus84/progettiamo_ch | 1df8d8e1de5d6afcc6eef2bfc382c08790dc49f8 | 8c8e7461e583f7aa045e493db3dde1002c11862b |
refs/heads/master | <file_sep>Python user management utility
<file_sep>import uuid
import json
from thirdparty.ua_parser import user_agent_parser
from django.core.exceptions import MultipleObjectsReturned
from django.contrib.auth import authenticate, login, logout
from django.shortcuts import HttpResponse, Http404
from armutils.jsonrespon... | 0e1df26065837dbe642b5c1ef641a28f96bda925 | [
"Markdown",
"Python",
"Text",
"HTML"
] | 23 | Markdown | jacksonofalltrades/starwarp-web | e57e5d85a41f9b7b17359130183f18d3ef517748 | 8d37ac32d7126242e41e47b5213173d07c601174 |
refs/heads/master | <file_sep>import java.awt.*;
public class Ball
{
private int r=0, alpha=255;
private double x,y,dx,dy=0.0;
private double red,green,blue;
private Color col, target;
public Ball()
{
x=20;
y=20;
r=10;
dx=6*Math.random()-3;
dy=6*Math.random()-3;
col= Color.blue;
... | dd1b0a05faa659bdfd23ea3b26708e73e93bcf98 | [
"Java"
] | 1 | Java | amgodman/Website | 9d5cc51ffd974b02eec686672979f5dcee7e0a3c | 9a813378e72a06e073dbd4db54509195010df13e |
refs/heads/master | <file_sep>"use strict";
import {
default as React,
Component,
PropTypes
} from 'react';
import d3 from 'd3';
import {
default as ReactFauxDOM,
} from 'react-faux-dom';
import {
isTooltipUpdate
} from './utils/tooltipUpdate';
export default class Mesh extends Component {
constructor(props) {
super (... | 224b5e2b691f7d9af885bcbd1d52e963d257aff8 | [
"JavaScript"
] | 23 | JavaScript | jklinson/react-d3-map-core | e16a0b2dba102a4695499852c057f3cd7c2ed4a4 | ab9479fe7f3d43c97172ad3b64dedd21aaceac4b |
refs/heads/master | <file_sep>#!/usr/bin/python
# ---------------------------------------------------------------
# This script uses the airsensors.py module to readout the bme280
# and senseair S8 sensor. The acquired data is saved to the user-
# defined database.
# ---------------------------------------------------------------
# Note: ... | 1afa38e00ad72ee37da36ef66ba10d75f4425c93 | [
"Markdown",
"Python"
] | 4 | Python | EtienneEs/Co2-sensor | 848529e5964f37848b87fb50ebbbeaf143fd947a | 89ac9aa047e38ed8df34c75df39529f39275860f |
refs/heads/master | <file_sep>#!/usr/bin/env python3
#------------------------------------------------------------------------------#
# Just a few tools
# These aren't strictly plot-related functions, but will be useful for user
# in the context of making plots.
#----------------------------------------------------------------------------... | 9745c1f55511b73c7d8ad1902845d03d3cbdf9a9 | [
"Markdown",
"Python"
] | 16 | Python | lukelbd/pubplot | b6648baef49dabc7d410e5a152171393541b2b88 | 0c2973609486fc0bc34c83a66215db9a4d7ab1ad |
refs/heads/master | <repo_name>Peony27/Mafia<file_sep>/src/Suspect.java
public class Suspect {
}
| 12ce560444e1f36d811cb13d125c52401ed391c2 | [
"Java"
] | 1 | Java | Peony27/Mafia | 159fbe2872154e5bf1688ebd6ab173c3740885a9 | e5f709ecbe946222df0bf5271aea6f8b608f534d |
refs/heads/main | <file_sep># Shapes Intersection code test
<file_sep>using System;
using System.Collections.Generic;
using System.Drawing;
namespace Shapes_Intersection_test
{
class Program
{
static List<Shape> shapes;
static List<int> results;
static Dictionary<int, List<int>> intersectionDictionary... | b97f174f3cfa18789af5ab0e5c85f272f015ffd1 | [
"Markdown",
"C#"
] | 2 | Markdown | RabidChinchilla/Shapes-Intersection-code-test | 6f208121e674a49e5646129846a747201cdab8ce | 10e780f8d77b65f22816ea2dd53f42d7c063e770 |
refs/heads/master | <file_sep>package com.xiaobo.common.utils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang.StringUtils;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTar... | a2ea4671f0213c1188e6e4c5c8b94ad1c08e4753 | [
"JavaScript",
"Java",
"Maven POM",
"Markdown"
] | 64 | Java | changyongyong/employee_manage | 9c3ffbf2cf8c4fbb562f4d064fe6c59d5924da8d | bdb4bb4ca93e2180f164deb6ee5e8069f1a4fd8a |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
namespace Cobalt.Core
{
public class Agent
{
internal static SerialPort com;
private Agent() { }
static Agent()
{
com = new SerialP... | 66fc22205ccc071fccf6e675df76ca3e0fad117c | [
"C#"
] | 2 | C# | Dolan1998/cobaltmips | 9830370353c701ac3dcebff76fff2c64ff089c4c | 1448403943ea92fab91f8cd3cfa6f0f75dcb5eee |
refs/heads/main | <repo_name>Opake12/Text-similarity<file_sep>/README.md
## Text Similarity Project
# Pipeline that creates a trained model
CONTENTS OF THIS FILE
---------------------
* [Introduction](#introduction)
* [Requirements](#requirements)
* [Installation](#installation)
* [License](#license)
### Introduction
Project g... | 32db9e6a12088595b6b8cc4cf8da6ea74890ccc6 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | Opake12/Text-similarity | 4d86b15af8504bf849ef3cc2fdbc8a2240028e4e | 52cde4bdc9ff351d15ed2bf37d990a7137547857 |
refs/heads/master | <repo_name>fxgao/vuepress<file_sep>/docs/.vuepress/config.js
const blogConfig = {
title:'V房前端文档',
description: 'V房前端文档',
head: [
['link', { rel: 'icon', href: '/assets/favicon.ico' }],
['link', { rel: 'manifest', href: '/manifest.json' }],
['link', { rel: 'apple-touch-icon', href: '/... | 8be1017a3459c969b15def49b1f6256729eefad4 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | fxgao/vuepress | 30caac947a8b381f02f8fe2a712c5e7b2a37df83 | 5b64995626ecd39103762e4aa036f757372e53c3 |
refs/heads/master | <file_sep>(function(){
'use strict';
angular.module('virtualScrollingApp').controller('TableCtrl', function TableCtrl($scope) {
$scope.log = {
title: "None",
msgs: [{
time: new Date(),
message: "First thing that happened"
},{
time: new Date(),
message: "Second ... | 3f4566e06c7ed775a2d23d1c396eb91e1a151d56 | [
"JavaScript"
] | 1 | JavaScript | mrcljx/angular-virtual-scroll | bee2fc35483ba0bcddca0e2fe04c33615947a25d | 9560a1f9defefb30e775faf9ab709f740ba95633 |
refs/heads/master | <repo_name>fch910519/HandyControl<file_sep>/HandyControlDemo/UserControl/Styles/CheckBoxDemoCtl.xaml.cs
// ReSharper disable once CheckNamespace
namespace HandyControlDemo.UserControl
{
public partial class CheckBoxDemoCtl
{
public CheckBoxDemoCtl()
{
InitializeComponent();
... | 243afae8a388a57e726106153c98adb4da620e3e | [
"C#"
] | 21 | C# | fch910519/HandyControl | ad6083fe78497f35c50d37314f29e8feaa2ea6c9 | d17c7b79cca1a7fec3d4112713e6aa7ad583c65c |
refs/heads/master | <file_sep>package com.imran.dao;
public class MainDao {
}
| 84802cdb46ddbd7904baae65ef75f3188faaab5c | [
"Java"
] | 1 | Java | getimran/SpringHibernateCurd | 5d05308fa9b5fada5a0c4a5fa834eeb64eb4752b | d7f8bc3db1e5a5917fc028f85dc167247b68ab3d |
refs/heads/master | <file_sep>import productListReducer from './component/ProductList/Reducer';
export {
productListReducer,
} | e1645a532b360e9379206039fd386ccfdca09192 | [
"JavaScript"
] | 1 | JavaScript | nileshvarishe/edkal | d5e145b01a3f73d1b5d1fe64fbbd64371d3e5ab1 | ee4ad422a7a702f9a50f037de29bcd6160629617 |
refs/heads/master | <file_sep># Object Storage Java test app
This application is designed to undertake CRD operations on Object Storage app based on the Dedicated Bluemix (public Bluemix is also considered).
1. Please follow the below steps to deploy the app.
2. Please test the app
3. Please reference the app in the Test Dashboard app.
... | a1c0b15406aa41eea3e6572b4be1382e37bb9939 | [
"Markdown",
"Java"
] | 21 | Markdown | blumareks/BluemixTestDashboard | d32262c5dc207e6c489912a566c2dc2f17bdf9fa | 57ec8bcdafb1b6cdd788ed0f1765d1f3592f0e07 |
refs/heads/master | <file_sep>import javax.annotation.CheckForNull;
class PreferZeroLengthArrays {
public int[] foo(int i) {
return null;
}
public int[] bar(int i) {
return new int[0];
}
@CheckForNull
public int[] fooCheckForNull(int i) {
return null;
}
}
| 4048efd638b30cd8a49ee74962af177420956353 | [
"Java"
] | 1 | Java | kozhukhin/findbugs | 3873405c415bbd31e5fc19373866b63e3946c73a | 20ba16e5e81fedb26dbe9d8fbd6e50efd6467782 |
refs/heads/master | <repo_name>HighDivineFox/Posi-Chess<file_sep>/Server_Functions/user_repository.js
import axios from 'axios';
const BASE_URL = 'http://192.168.0.2:5000';
export function getUser(data) {
return axios.get(`${BASE_URL}/api/v1/user/email/${data.email}/password/${data.password}`)
.then(response => response.d... | 0f03ebc19fafb150e32c7cb94b545a6ca1ec9f93 | [
"JavaScript"
] | 5 | JavaScript | HighDivineFox/Posi-Chess | 9fd10a0b9dda617b0e12432b1d524600a340d2ed | 1946ea8fd9d54c31429bfc81ff2e7da970d2c886 |
refs/heads/master | <file_sep># for utilities
matplotlib
numpy
#gnuplot
<file_sep>This is a collection of tools, common things used by packages of material science.
Vis:
Contain a collection of matplotlib, pyplot, gnuplot methods
used for ploting common results from material science simulations.
Feel free to contribute
Intall
... | 3c2a15c2b29be89a8fce25c1694a5f480b103425 | [
"Python",
"Text",
"reStructuredText"
] | 3 | Text | be-zimmermann/masci-tools | fe9f6f3f8920796dc2364d9a8f669038b2797f31 | e0ed4f2732170fd9ce7c701f2ebcead77d184faf |
refs/heads/master | <repo_name>darthbatman/File-Synchronizer-Windows<file_sep>/Windows/directoryTest/directoryTest/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Th... | bb2a73f1b7d47f33f5f64626bb0da94d27c98cb5 | [
"JavaScript",
"C#",
"Markdown"
] | 3 | C# | darthbatman/File-Synchronizer-Windows | 8a1dca2d353fd5a4e9e1c1b3e527a843a29cc36a | 9a6b1709e1bb4631d831ae5e0a9d00a5d13abd70 |
refs/heads/master | <repo_name>Vasserman2000/angular-2-play-ground<file_sep>/src/app/child-two.component.ts
import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'child-two',
template: `
<span id="data">Child two says: this is from child one: {{ data }}</span>
`,
styles: ['#data {color... | e95d02af008c08bc912b651dcaed895297b06460 | [
"TypeScript"
] | 3 | TypeScript | Vasserman2000/angular-2-play-ground | 8723423226d5a59d31e0d97fcb5d7ee8b44e8e44 | 2746b2c2bf1656407d2dadaff14b029502ab5bb8 |
refs/heads/master | <repo_name>vans0011/mp2-lab4-queue<file_sep>/test/test_queue.cpp
#include <gtest.h>
#include "tqueue.h"
TEST(TQueue, can_create_queue_with_positive_length)
{
ASSERT_NO_THROW(TQueue q1(5));
}
TEST(TQueue, cant_create_queue_with_negative_length)
{
ASSERT_ANY_THROW(TQueue q1(-5););
}
TEST(TQueue, get_element_is_corr... | 96b145f4c98cb0da35bf9c41cfc0f36bcea5be1e | [
"C++"
] | 9 | C++ | vans0011/mp2-lab4-queue | 4480f720854d6cec7076db827f928a2ae3bae7dc | 213dbc58185cee90655832ec5bad06701320f30e |
refs/heads/master | <file_sep>#ifndef INTERSECTIONS_H
#define INTERSECTIONS_H
#include "Math.h"
#include "Object.h"
#include <iostream>
using namespace std;
struct Ray
{
XMFLOAT3 origin;
XMFLOAT3 direction;
Ray(XMFLOAT3 origin, XMFLOAT3 direction)
{
this->origin = origin;
this->direction = direction;
}
};
struct Sphere
{
XMF... | 15c24740464ef0675459ac4aa48f5df68722f73e | [
"C",
"Text",
"C++"
] | 59 | C++ | lunderot/3DProject | ebdace1508d9d6c749e25088d93d06f204e17aed | ca9006480b056b003813ae8e293b8f3db801604b |
refs/heads/master | <file_sep>## [1.1.1](https://github.com/etclabscore/react-monaco-editor/compare/1.1.0...1.1.1) (2020-12-07)
### Bug Fixes
* bump monaco to 0.21.2 to get bug fix for monaco.languages.json.jsonDefaults ([041dd99](https://github.com/etclabscore/react-monaco-editor/commit/041dd995fb6ee6788a9b3e39166d558af79f2ddc))
# [1... | 5d9e24006ac9c66724e4838cc96243b9f83b2526 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | etclabscore/react-monaco-editor | b9aefc3e0fb502d4d74f5e2677f85b7b6024f233 | d547b4c423eae1494438cd8ca4fdc614f65f87b6 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { MeasurmentSystemService } from '../../services/measurment-system.service';
@Component({
selector: 'app-header',
templateUrl: './header.component.html'
})
export class HeaderComponent implements OnInit {
private isCollapsed: boolean = true;
... | ce1127957434ff37adbf5fd423bb51c25df8c2f5 | [
"TypeScript"
] | 10 | TypeScript | pufanalexandru/trail-ratings | 02fb997e48e5e6e0e61bccb2c5e10226104747f5 | 825e4a4cf759e27f91c516cadb74294de8fe9299 |
refs/heads/master | <repo_name>stuffandahalf/qol-utils<file_sep>/README.md
# qol-utils
A series of scripts I use to simplify my workflow. Typically saved as ~/bin
<file_sep>/pokebox-counter.py
#!/usr/bin/env python
from __future__ import print_function
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def main(ar... | fe444ef0f50bd270496de4216019f4d9568498be | [
"Markdown",
"Python",
"Shell"
] | 3 | Markdown | stuffandahalf/qol-utils | cfd47d1d659d0a30e852be5f6d6b2b54b4fe6183 | 634ac2f250a5e865abb7e1b11b6c22f90f89b1f7 |
refs/heads/master | <repo_name>mchung/bootup<file_sep>/slicehost/add_vhost.rb
#!/usr/bin/env ruby
require 'erb'
require 'optparse'
require 'pp'
help = <<HELP
$0 is a friendly VirtualHost generating script
Basic Command Line Usage:
#{__FILE__} --host=foo.com --ports=5000-5010
Options:
HELP
DOMAIN = {}
opts = OptionParser.new do |... | 35503921c9624e550547eb845980ee4d2f3db67b | [
"Ruby",
"Shell"
] | 22 | Ruby | mchung/bootup | 1682c520fe2081534578f9341252aaf21f52462d | 970a61231c77b463375527694312e90d9f11739d |
refs/heads/master | <file_sep>#include <stdio.h>
#include "omp.h"
#include "CycleTimer.h"
extern void mandelbrotSerial(
float x0, float y0, float x1, float y1,
int width, int height,
int startRow, int numRows,
int startCol, int totalColumns,
int maxIterations,
int output[]);
//
// MandelbrotThread --
//
// Multi... | 293591c37106cdd07200ec302b9e09ff3ebb1836 | [
"C++"
] | 1 | C++ | ashish-17/mandelbrot | e781c5d497ab9c97f7223c6df4123c887862224d | f7710206aa02e72853f4812e91671d04b5bc03c3 |
refs/heads/master | <repo_name>half2me/cryptocard<file_sep>/Dockerfile
FROM gradle:4.6.0-jdk8
ADD . /home/gradle
<file_sep>/settings.gradle
rootProject.name = 'cryptocard'
include 'applet'
<file_sep>/applet/src/main/java/applet/ECCryptoCard.java
package applet;
import javacard.security.KeyBuilder;
import javacard.security.KeyPair;
pub... | 11d5a2840401ac885e756322ac55fa8e97a57ebe | [
"Java",
"Dockerfile",
"Gradle"
] | 6 | Dockerfile | half2me/cryptocard | d29914868ba036b4169239c4377eb9dab8ddb5ce | 97ac7d4345076c8000af0eb7ad28fe92f04d2b31 |
refs/heads/master | <repo_name>Akelan/TiMPlab-3-<file_sep>/.gitignore
/** @file derevo.cpp */
#include <iostream>
using namespace std;
void obhP (int node, int n, int *aa) /// functia obhoda v pramom poryadke (obhP), param: koren', kol-vp uzlov, massiv dereva
{///
cout<<node+1<<" ";///raspechatyvaem koren'
int *b=new int[n];///sozdae... | b5984d7c84f9f1815002865c7943e24611f22018 | [
"C++"
] | 1 | C++ | Akelan/TiMPlab-3- | 34a6ed5e5f8ece35c3f90899a09f8e226fe78c32 | 0e448c8db9dc002e7f4f6761a5bc27d4c25ca3cd |
refs/heads/master | <file_sep>app.controller("shoppingItem", function($scope, $http, $location) {
$http.get("./templates/data.json")
.then(function(data) {
$scope.items = data.data
})
$scope.Range = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
$scope.basket={}
$scope.subtotal = 0
$scope.addToCart = funct... | c29979e585ef8d68287d490ebea6a04aa5f836aa | [
"JavaScript"
] | 2 | JavaScript | NavidFa/shopping-cart | 2b97f627012240ba5abbc47f798db98050ce1c27 | 3ca612cb48c5eae510fcab2ec65d701da905c4cb |
refs/heads/master | <repo_name>Surajchopra/Session-2<file_sep>/JSON.R
library(rjson) # load package rjson
json1 <- fromJSON("text1.json") # import the first file as text1
json2 <- fromJSON("text2.json") # import the first file as text2
json3 <- fromJSON("text3.json") # import the first file as t... | 5a981751bbd2059c36e6a25f56e6f763ed6250c7 | [
"R"
] | 1 | R | Surajchopra/Session-2 | b95e8c02ecbeccd3fedb28fa8bb8e0106de22cb1 | cbf9ec0d93abaa42b6ee4bf4c3dcdc4400458632 |
refs/heads/master | <repo_name>FalsEDarKNess/Book-Library<file_sep>/database/seeds/TownshipSeeder.php
<?php
use Illuminate\Database\Seeder;
use App\Township;
class TownshipSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$township = ['Hlaing','Dagon... | f136820e12c3872765c753547195fb5349cabeaf | [
"PHP"
] | 3 | PHP | FalsEDarKNess/Book-Library | 0910d89a6effcff8db4c21b2f5f1efb3a7ef9a34 | 1273460bec2c7d2789e0129fecc9929112c75116 |
refs/heads/master | <repo_name>beneggett/coin_payments<file_sep>/lib/coin_payments/api.rb
module CoinPayments
class Api
URL_ENDPOINT = ENV.fetch("COIN_PAYMENTS_BASE_URL", "https://www.coinpayments.net/api.php")
API_VERSION = ENV.fetch("COIN_PAYMENTS_API_VERSION", "1")
include HTTParty
def post(body, openstruct: true)
... | a8b59a9055452268c9115783baab1b3eb6eebbff | [
"Markdown",
"Ruby"
] | 4 | Ruby | beneggett/coin_payments | 982d5e3fd42713dd4881065f15ddd77c2e00f8e2 | 61ded764f12f214ea9bcb8ae9f78b59b60095573 |
refs/heads/master | <repo_name>J0P/harjoitus-16<file_sep>/harj16.cpp
/*********************
* Tehtävä: <NAME>
* Tekijä: <NAME>
* Kuvaus: Ohjelma kysyy tietosi ja tulostaa ne
* PVM: 24.10.2014
* Versio: 1.0
*********************/
#include <iostream>
using namespace std;
struct ASD
{
char etu[25], suku[25];
int km, pn, kn;
};
int ma... | 532c8d9b7ef365d98e71ab1c08997e2853bb31c7 | [
"C++"
] | 1 | C++ | J0P/harjoitus-16 | 435213657469a9c91352fb67296f6aa7f0531b24 | a2db4ed2218a74de81f68f37a673488c863a3704 |
refs/heads/master | <repo_name>erickfama/Emotions<file_sep>/README.md
# Emotions
Analysis of emotions of the audience in pieces of Chopin, Mozart and Voiles.
<file_sep>/chopin_mozart_voiles.R
#############################################################
### Chopin, Mozart and Voiles emotions survey data bases ###
########################... | 529f4d908c66fa03d01a50ceb248e6016cdf7a58 | [
"Markdown",
"R"
] | 2 | Markdown | erickfama/Emotions | 200f5d2f1b68cf9c347a6e170c2e58a39df8eb9b | 4e97e9b2ea71edc0025e5f79ab2f73cb45e7c6ae |
refs/heads/master | <repo_name>abigartist/wuziqi2020<file_sep>/stack.cpp
//
// Created by 20694 on 2020/6/13.
//
#include "stack.h"
extern int player;
void push(stack*s,point p0){
s->p[s->top].x=p0.x;
s->p[s->top].y=p0.y;
s->p[s->top].score=p0.score;
s->top++;
}
point top(stack*s){
s->top--;
return s->p[s->top];... | 3b0c4cab29fcbda8698d616ba5a574a6dbf097b2 | [
"C",
"C++"
] | 12 | C++ | abigartist/wuziqi2020 | 1ede71e071892b8a437cd4eaa8bc3c05edbe3ca5 | 31af9de8b7d462dd284188e9b545e6726ee71ae7 |
refs/heads/master | <repo_name>wilhelmberg/delete-directory-tree<file_sep>/delete-directory-tree/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace delete_directory_tree {
class Program {
private static b... | 7a5e4954056d49b9d57e42944dfd44a61e4d761f | [
"Markdown",
"C#",
"C++"
] | 3 | C# | wilhelmberg/delete-directory-tree | 420c4f8499d799a3f041b1770fa5363673fd1e28 | 282835bb1385ee2c0f9a43bb1d66c5f27e01de43 |
refs/heads/master | <file_sep>#include "RP1210ProtocolModel.h"
#include <QSettings>
RP1210ProtocolModel::RP1210ProtocolModel(QObject *parent)
: QAbstractListModel(parent)
{
RawProtocolMap.clear();
IndexList.clear();
}
RP1210ProtocolModel::~RP1210ProtocolModel()
{
RawProtocolMap.clear();
IndexList.clear();
}
Rp1210Protocol* RP1210P... | c3f3cce4c635d075b36ba024f1fd797705fc3b9f | [
"C",
"C++"
] | 21 | C++ | CrazyWolf2014/RP1210App | 0304e2b6ef1458e6dc10e93ca43625d06fb5b71b | 24c3e2d74219f357ac3f75b50c18591cbe24ce6a |
refs/heads/master | <file_sep>//con esta función eliminamos las lasCookies
function comercookies(name, color) {
let tiempo = new Date();
tiempo.setTime(tiempo.getTime() - 1);
document.cookie = "name="+name+"; expires=" + tiempo.toGMTString();
document.cookie = "color="+color+"; expires=" + tiempo.toGMTString();
window.location.r... | 8e9b489d221a22c233d4452c92db6c322ef4dab4 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Oviedo404/Arcade_Maravilloso | 8c4f64d39301a9d3047909b60d3e2eb0074bf35e | c9f1df5a966494117f691d900dd86b7d58c267e0 |
refs/heads/master | <file_sep>const button = document.querySelector("#search")
const breedInput = document.querySelector("#dogFinder")
const imageDiv = document.querySelector("#searchResults")
const modal =document.querySelector("#modal")
const modalContent =document.querySelector("#modalContent")
const modalImg = document.querySelector("... | c71213ad980faac3a8dcc187d5841b7c2465b2db | [
"JavaScript"
] | 1 | JavaScript | AnthonyHorta/FuzzyFriends | b49f5b34eeef1fc2ca2d23c00bf011ca740288ad | 2f8e513d186cf080968f5c612699fba1dcdb8387 |
refs/heads/master | <repo_name>williamhuang03/Space-Invaders-TM4C123<file_sep>/PinMap.h
// Enumeration for GPIO Pin mapping
enum GPIO_PIN {
GPIO_PIN_0 = (1U << 0),
GPIO_PIN_1 = (1U << 1),
GPIO_PIN_2 = (1U << 2),
GPIO_PIN_3 = (1U << 3),
GPIO_PIN_4 = (1U << 4),
GPIO_PIN_5 = (1U << 5),
GPIO_PIN_6 = (1U << 6),
... | 761f335fe5ea8a5cc392f210ee47df5ed6414225 | [
"Markdown",
"C"
] | 15 | C | williamhuang03/Space-Invaders-TM4C123 | eb59e65640b0b2ff0ffc4f9ce5eaf0a81a8bc01e | e8b18bc5e01620125d9995310a1c41acb405b154 |
refs/heads/master | <file_sep>import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {FormsModule} from '@angular/forms'
import {HttpClientModule} from '@angular/common/http'
import {RouterModule} from '@angular/router'
import { AppComponent } from './app.component';
import {TestCompo... | e039e78b95d036e448952c7dffb27d01104b1d88 | [
"TypeScript"
] | 7 | TypeScript | github-2018-zensar/Angular7Online | 418a8fd7ef466dc7fc2f8efa0750d0cd2c5b98d2 | 508e1ec94e1e0a0ceac24f921611790a7f39a416 |
refs/heads/master | <repo_name>RaiaN/rokoko_houdini_plugin<file_sep>/OBJ_RokokoFrontend/RokokoSocketReader.cpp
// Copyright <NAME> 2020
#include "RokokoSocketReader.h"
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <system_error>
#include <string>
#include <iostream>
#include <UT/UT_NetSocket.h>
#include <UT/UT_WorkBuffer.h>
#inc... | c6a2caafdeb4cf5b064996bae5f51ce8aedac288 | [
"Markdown",
"Python",
"CMake",
"C++"
] | 14 | C++ | RaiaN/rokoko_houdini_plugin | 617b7213fefe62632f06218a72adc74ac69a085a | 965ff46c3ffd68a33e98f8fa591fb805b316caa6 |
refs/heads/master | <repo_name>sunilshrestha123/backend-ilamfashion<file_sep>/src/utils/crypt.js
// import bcrypt from 'bcrypt';
// export const hashing = async string => {
// console.log('tein', string);
// try {
// return await bcrypt.hash(string, 11);
// } catch (e) {
// console.log('tet');
// console.log(e);
// }
... | 3bafc8d6517711b0de0cb8bf77f4fe6f93aa2b46 | [
"JavaScript"
] | 19 | JavaScript | sunilshrestha123/backend-ilamfashion | e4364613394dca2d607dad41041fe4387c082fa9 | 9e2cb36ad4d361a358e0cef48a414211dd58c7e7 |
refs/heads/master | <repo_name>sabrina0904/Java7<file_sep>/src/soalan68.java
/*Bina satu program ringkas yang memaparkan nama, jantina
*warna kegemaran dan memberi ulasan mengenai warna kegemaran yang dipilih.
* Warna merah=membawa makna kekuaatan, kemarahan dan semangat
*Warna Biru=membawa maksud ketenangan, keikhlasan dan harapan.... | 668d4dfc3472fdd092719283e2c4d38690fdab7c | [
"Java"
] | 1 | Java | sabrina0904/Java7 | acfbe1834d1023b42915e1556be4eb3941c89a47 | 3c95a91dc46f466967bd104e4811588084c42ce8 |
refs/heads/master | <file_sep>// Weekly schedule
var scheduleDay;
// shows all the values in textboxes when the slider changes
function showValue() {
var hours0 = Math.floor(document.getElementById("sliderTime0").value);
var mins0 = (document.getElementById("sliderTime0").value * 60) % 60;
hours0 = ("0" + hours0).slice(-... | 6187b3ba292049d652efcc5c3f83bb3db6304942 | [
"JavaScript",
"Text"
] | 2 | JavaScript | General01L/2ID40 | 0236c032e7e30c593085eb91558ccd4e6f713085 | 6946638d86b864e0dd63f946ba363beb1d73aec5 |
refs/heads/master | <repo_name>kgodey/react-tags<file_sep>/dist-modules/components/DragAndDropHelper.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.dropCollect = exports.dragSource = exports.tagTarget = exports.tagSource = undefined;
var _reactDom = require('react-dom');
var _utils = require('... | 1881e1673cabf957bec53d24fd052b42f2a1b0c5 | [
"JavaScript"
] | 2 | JavaScript | kgodey/react-tags | 1643ac0585e2f54812a6089f4c7adb6aaac422a3 | b415893a7b1e85a6bfb03bfee63aa274fe6e089f |
refs/heads/master | <file_sep>#pragma once
class Floaters {
public:
static inline constexpr u32 maxFloaters = 32;
struct Floater : public Point2D {
Point2D* target;
} positions[maxFloaters];
enum Type : u8 {
None,
Credits,
} types[maxFloaters];
void addFloater(Point2D position, Point2D *t... | d33886db88b9ed5889a936ca4184b97645168bd2 | [
"JavaScript",
"C",
"C++"
] | 25 | C++ | felipemanga/1on1 | 37e092f66c751576b1f9ce7efcfdfe236f78e93c | 51c990ef0b9616713a61b7cc7e3ed87182ad7ace |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import sys
import os
import paramiko
from subprocess import run
import shutil
import re
import io
import plistlib
from pygit2 import Repository, RemoteCallbacks, Keypair
from pygit2 import GIT_SORT_TIME, GIT_SORT_REVERSE
from pathlib import Path
from config import *
def init_ssh():
... | c0b89d5696d73766c96024ba20bf4ee13f1b4c76 | [
"Markdown",
"Python"
] | 3 | Python | Nosskirneh/ios-app-headers-fetcher | 77984940ab9e553db61dfdd786a85d53a307264e | 561ec774df11f1d03eb972de8dd04a4b2358b6c6 |
refs/heads/master | <repo_name>StevenChoo/frontend-academy-nasa<file_sep>/projects/nasa-lib/src/lib/nasa-service/nasa-lib.service.spec.ts
import { TestBed } from '@angular/core/testing';
import { NasaLibService } from './nasa-lib.service';
describe('NasaLibService', () => {
beforeEach(() => TestBed.configureTestingModule({}));
it('... | 234aa008acef7bbebb805e893c2f4ab34e1def60 | [
"TypeScript"
] | 6 | TypeScript | StevenChoo/frontend-academy-nasa | 77df34bb27defc7bce8880103cedbe26896bd449 | d4af25e36131573a34079dc0456fdba94a46920c |
refs/heads/main | <repo_name>Michaelwahyu/Pemrograman-Berorientasi-Objek-Pertemuan-4<file_sep>/README.md
# Pemrograman-Berorientasi-Objek-Pertemuan-4<file_sep>/latihanmethod.java
Skip to content
Search or jump to…
Pull requests
Issues
Marketplace
Explore
@Michaelwahyu
Piluthfi
/
Pemrograman-Berorientasi-Objek-Pertemuan-4
Public
1
00
... | f37bfa70215a101ed10fded6289993ee55726865 | [
"Markdown",
"Java"
] | 2 | Markdown | Michaelwahyu/Pemrograman-Berorientasi-Objek-Pertemuan-4 | c9bacb5ea2a4792ff01ff5046bf7ff29cea446f6 | 49db57a40d5889fcb43410e4932be4b600a3241c |
refs/heads/master | <repo_name>iroperto/hyjservices<file_sep>/empresa.php
<?php require_once 'header.php'; ?>
<div>
<img src="img/aboutus.jpg" alt="equipo" class="d-block w-100" style="min-width: 100%;">
</div>
<div class="container" style="margin-top: 32px;">
<div class="row">
<div class="col-md-8 empresatxt">
<h1>Quienes s... | 69bb68d4af6c89f6f9e49c91b9c972d837601272 | [
"PHP"
] | 9 | PHP | iroperto/hyjservices | b7122b5f4075a7035c77572787cda9d7f091b819 | 36b5d58d267ee01363d88b7f7ecc09f3fc0f6d91 |
refs/heads/master | <file_sep>//<NAME> TIA: 32055161
#ifndef __STATIC_STACK_H__
#define __STATIC_STACK_H__
const int STATIC_QUEUE_CAPACITY = 8;
struct StaticQueue
{
int current;
char values[STATIC_QUEUE_CAPACITY];
};
StaticQueue Create();
bool Push(StaticQueue& stack, char elem);
char Pop(StaticQueue& stack);
char Top(const S... | 6bf85b58f4364a55602768efa3ae4f2e84626d9c | [
"C",
"C++"
] | 5 | C | Adriianooo/Pilha_fila | e08aaaa713a326c4df65451881a58dde145c8d41 | 3afd9be843264941a2c709bd75d294ed007a8604 |
refs/heads/main | <file_sep># portfolio-Abderrazzak-Elkhayari_Frontend | 84e138ec1c2be06023d4009fc175959982edf667 | [
"Markdown"
] | 1 | Markdown | elkhayari/portfolio-Abderrazzak-Elkhayari_Frontend | 889ced83bb1e0c0e97b53903df772e09028db8f4 | af75718c16cee1c76bf640a8856999f115e6b169 |
refs/heads/master | <file_sep><?php
echo "saluttttt".$titre;
?>
<file_sep># JyTravaille
Site internet J'y travaille
| e94a62a4b4bde5c803d55c7678a460fd29746d72 | [
"Markdown",
"PHP"
] | 2 | PHP | ginius4ginius/JyTravaille | 91e9989625105842774dd25a639cd323f21ebf29 | 517361ca05f4d358a99babc2a306a7732636cf3c |
refs/heads/master | <repo_name>noah-wisch/ReduxSimpleStarterPractice2<file_sep>/src/reducers/ReducerBooks.js
export default function() {
return (
[
{ title: 'The Dog Stars', pages: 321 },
{ title: 'The Buried Giant', pages: 304 },
{ title: 'Harry Potter & The Deathly Hallows', pages: 759 },
{ title: 'The Hung... | 2a3ecebe2e94c0451e0cd8994723536b737667bc | [
"JavaScript"
] | 1 | JavaScript | noah-wisch/ReduxSimpleStarterPractice2 | 0562c93290b614ff65741212a758be4242b0a8c8 | f2f8277d977aaf12ef87efaaa44aa63d6a8da59c |
refs/heads/master | <repo_name>LeewoodChan/LeewoodChan.github.io<file_sep>/README.md
# LeewoodChan.github.io<file_sep>/_posts/2019-04-03-Genki_Workbook_Audio.md
---
layout: post
title: Genki Workbook Audio
comments: true
# other options
permalink: "/genki_WK_audio/"
---
<style>
.list-group{
max-height: 300px;
overflow... | 6b3fa3a1e426453527c933b11f9bf42fe40d31c5 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | LeewoodChan/LeewoodChan.github.io | a55e22350a741e9bfbe49392576aca31089b3aca | afc3478aa497acc5c194675029a5ffb6a60da352 |
refs/heads/master | <file_sep>package service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import mapper.EasybuyOrderDetailMapper;
import mapper.EasybuyOrderDoMapper;
import mapper.EasybuyProductMapper;
imp... | c4b42cdea705725e2870d9ebb9f7d4df2ae6e751 | [
"Java",
"INI"
] | 15 | Java | QQxian/easybuy | 798ec9a0ad4cde6eb065709073affecf5c84b6b2 | f19568ebdd7347c0343aabfb6d49cd5ec12e59de |
refs/heads/master | <file_sep><html>
<head>
<title>Mengenal Manajemen Variabel</title>
</head>
<body>
<?php
$kampusku="STEKOM";
$alamat1="Jl. Majapahit 304 Semarang";
$alamat2="Jl. Majapahit 605 Semarang";
echo"<a href=\"Link2b.php?kampusku=$kampusku&alamat1=$alamat1&alamat2=$alamat2\">Kampusku</a>";
?>
</body>
</html> | c17104e002f83c94253825ab37af671c8ed5d61d | [
"PHP"
] | 1 | PHP | Afririko/Jobsheet7 | 83bf9554aaed5b34aa79ff1681941d60e450ddc7 | f6a251b46f926525661a7d7f14dd2d982ed0f782 |
refs/heads/master | <repo_name>cuchifrito/ritmodelavida<file_sep>/memnat_intro_es.html
<!DOCTYPE HTML>
<html> <head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MEMORIA DE LA NATURALEZA: EL RITMO DE LA VIDA - por <NAME></title>
<link rel=... | 00ab83de4c3ed6a19967afb0d565046950359e1b | [
"Markdown",
"Go",
"HTML"
] | 3 | HTML | cuchifrito/ritmodelavida | 5614e7bdfcfd8f1e636a6f5811f6d4eb1fdb04b1 | af30a19ce8f19f2fb58e2dc7bf6a36c497daeb2d |
refs/heads/master | <file_sep>#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
... | 28947785af00c6ef83b7cecd54b8b3fecd8934c3 | [
"C++"
] | 1 | C++ | Jasmamu1992/UnscentedKalmanFilter | fa432ec1f347a546598bd63a9e05e004e866d88f | c6c87c903f329a6e1d871049acea4fb07f09c7d0 |
refs/heads/master | <file_sep>package com.hit.view;
import java.awt.Font;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
@SuppressWarnings("serial")
public class PageFaultReplacementAmountPanel extends JPanel
{
protected static JTextField PageFault;
protected static JTextField PageReplacement;
... | aa7771756690d49cc877989cf42e9d6e76e7cee2 | [
"Markdown",
"Java"
] | 9 | Java | elads11/MmuProject | cfecfd3c5b879fb55aff17ac0f0ed5e49952c88d | 1e44f398064fe806309c95ac2b46bbcb0806ed01 |
refs/heads/master | <file_sep>package DAO;
import java.util.List;
import logica.AccesoDatosException;
import modelo.Cafe;
public interface CafeDAO {
public List<Cafe> verTabla() throws AccesoDatosException;
public void actualizarVentasCafe(String cafe, int ventas) throws AccesoDatosException;
public void BuscarCa... | 6c1ddcdfe9f5c707cb80e62fe514b15ffc09609c | [
"Java"
] | 3 | Java | Llorens92/AccesoDatos-Prac1 | 4a28001f4e77003b619d404c3c75ab4ac148f860 | 343bcb9fbca04c21cf4b34989e647e397c1b16d3 |
refs/heads/master | <repo_name>BassyKuo/GAN-tensorflow<file_sep>/01-VanillaGAN/README.md
# 01-VanillaGAN
## Python Version
* 3.6.0
## Python Packages Requirements
* tensorflow >= 1.1.0
* numpy >= 1.12.1
* scikit-learn >= 0.18.1
Pip insatll:
```sh
$ pip install -r requirements.txt
```
## Usage
Example:
* MNIST
```sh
$ python3 01-V... | fb3438fc17659a38fcc0ad05248b10c24a939335 | [
"Markdown",
"Python",
"Text"
] | 4 | Markdown | BassyKuo/GAN-tensorflow | f11f0f4479f0a4be3435a9dc1a7897c4f2a37015 | 4a1a1a5c292ed13f6ec82366ef3a2e473773cb2f |
refs/heads/master | <file_sep>package dev.arkav.ssgraves.events;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ActionResult;
import net.minecraft.world.World;
public interface PlayerDropDeathCallback {
Event<Pl... | 322dd90518d9e922274c84920174d9d9436e9f59 | [
"Markdown",
"Java"
] | 2 | Java | arkav/server-sided-graves | 0451a7971779eb4271c53a7135e870195eb8788f | 39330eeb012ab352bb21225edfffe5e650a45539 |
refs/heads/main | <file_sep>var searchData=
[
['x_916',['x',['../struct_cursor.html#a4dde988b1b2adba65ae3efa69f65d960',1,'Cursor::x()'],['../struct_mole.html#a6150e0515f7202e2fb518f7206ed97dc',1,'Mole::x()'],['../struct_avatar.html#a0f561e77fa0f040b637f4e04f6cd8078',1,'Avatar::x()']]],
['x_5fmole_917',['x_mole',['../struct_exit.html... | 82fe59f6e19aa10fe767fab95c8380b15f618156 | [
"JavaScript",
"C",
"Makefile",
"HTML"
] | 92 | JavaScript | sofiagermer/WHACK-A-MOLE | 881b39ed4ce10abaaf6f74f9084ffc29b93f23af | d35f0391acae4596264703b6c915048d1fe289d5 |
refs/heads/master | <repo_name>sudheersingampalli/TodoList<file_sep>/accounts/views.py
from django.shortcuts import render,redirect
from django.contrib.auth.models import User
from django.contrib.auth import authenticate,login,logout
from django.http import HttpResponseRedirect
import Todoapp
from Todoapp.models import Todomodel
from djan... | 3d43ff04f060c58c1c9a6771e4a890ecfb5099b9 | [
"Markdown",
"Python"
] | 9 | Python | sudheersingampalli/TodoList | 427c32ac8dfbbfe6345289843a7049d823f50dcc | f48ed6eda73ca1567d1489e4cf36a316dc564c8a |
refs/heads/master | <repo_name>mikemaccana/documentdb-arc-test<file_sep>/README.md
# DocumentDB/MongoDB calls in Express lambdas not returning
A reproduction case for https://github.com/arc-repos/architect/issues/354<file_sep>/src/http/get-index/index.js
const MongoClient = require('mongodb').MongoClient
exports.handler = async function... | d5f2b24cc2d3957a4223f45b0acdb3dd9f178a80 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | mikemaccana/documentdb-arc-test | afa8342d22804b954e3259b3169402e5b2ce7121 | 1e927b38f4a0f4ef4c1f83aed6abe34175c96b45 |
refs/heads/master | <file_sep>dependencies {
compile project(':storage:spi')
}<file_sep>package com.github.slamdev.messageswatcher.packager.spi;
import com.google.inject.Module;
public interface PackagerModule extends Module {
}
<file_sep>plugins {
id 'java-gradle-plugin'
id 'codenarc'
}
repositories {
mavenCentral()
... | 0f7ba2511855bae691608d3b7cd88d7f730edaf8 | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 21 | Gradle | slamdev/messages-watcher | ee666611492e9a7f9c1df2bd92e36dce58b32ceb | 28017831c725e45c2867310e3d7d5e3df27d92fd |
refs/heads/master | <file_sep>BLK_INTV = 0.0001
#
# BOARD PIN CONF
LED = '1'
TPIN = '2'
#
# DB Credentials
DB_USR = 'test_bot'
DB_PASS = '<PASSWORD>'
DB_HOST = 'localhost'
DB_DbName = 'TrainDb'
#
# SLEEP TIMES
TIME_SL_SURV = 5
TIME_SL_SPR = 1
# TWILLO
SID = 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'
AUTH_TOKEN = '<KEY>'
FROM_NU... | 3eb97e369d783d38d9d5868aae53e693109d22e5 | [
"SQL",
"Python",
"Text"
] | 7 | Python | LunaticMaestro/lock_dev | a7f6fb610d2680f0b98a5d3ae0d906d58e44af52 | 6651385d3e5f886511a5ae09ee41e5c69e5e6b60 |
refs/heads/master | <file_sep><?php
$config['abiti']=[
"maglia"=>["peso"=>2,"volume"=>1, "nome"=>"Maglia"],
"pantaloni"=>["peso"=>6,"volume"=>2,"nome"=>"Pantaloni"],
"camicia"=>["peso"=>3,"volume"=>1,"nome"=>"Camicia"],
"scarpe"=>["peso"=>10,"volume"=>3,"nome"=>"Scarpe"],
"calze"=>["peso"=>1,"volume"=>0.2,"nome"=>"Calze"],
"giacche"=>["pe... | 37b205f124efa13f1fee848e07df891970e12210 | [
"PHP"
] | 5 | PHP | andreamathieu1992/move_array | 23e5a14db060006b3d691e88129e8b2fe4613fae | 259a1fdccde9288c944ebe235368436a7e485328 |
refs/heads/master | <repo_name>REABMAX/voodoo-module<file_sep>/src/Contracts/ConfigurationProvider.php
<?php
namespace Voodoo\Module\Contracts;
/**
* Interface ConfigurationProvider
* @package Voodoo\Module\Contracts
*/
interface ConfigurationProvider extends ModuleInterface
{
/**
* @return array
*/
public function ... | 1c1fa5dabfcfc6e5d30ccec018489fab92f34fea | [
"Markdown",
"PHP"
] | 17 | PHP | REABMAX/voodoo-module | 1fafa22d22875a4bba753ab30a4223bf9ef46a5f | 9567edcfae430223555cdde0ef554e8bce157048 |
refs/heads/master | <repo_name>antoniotorres/hackernews<file_sep>/pages/api/posts.ts
import { NextApiRequest, NextApiResponse } from "next";
import { HNPost } from "../../types/post";
export default async (req: NextApiRequest, res: NextApiResponse) => {
const response = await fetch(
"https://hacker-news.firebaseio.com/v0/topstorie... | f465f51e4bc8d48c8f0491d802b36c3230e3e662 | [
"TypeScript"
] | 1 | TypeScript | antoniotorres/hackernews | 524bc399d163fd0c4af1ed227991982aabe76389 | 67ec15673e19c00bc726b9edcfa2534aba34faa5 |
refs/heads/master | <repo_name>russplaysguitar/wtf<file_sep>/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :load_current_user
private
def load_current_user
@current_user = User.find_by_id(session[:user_id])
end
end
<file_sep>/app/helpers/a... | 8c8981d2d87bf6007e707fa17b9b48de8fe8acd1 | [
"Markdown",
"Ruby"
] | 12 | Ruby | russplaysguitar/wtf | 3d5dc854061919ad7010b501635ba5776e154f17 | 5352521617bb3ae5cc48bd7d510693ce5f539e2e |
refs/heads/master | <repo_name>xckoo/opsys2<file_sep>/README.md
# opsys2
炫彩新版管理端
可配置化应用页面
后端docker部署
<file_sep>/mysite/mysite/opsys.ini
[uwsgi]
socket = 127.0.0.1:8989
workers = 1
wsgi-file=wsgi.py
chdir=/data/docker/xckoo_site/mysite/mysite
daemonize=uwsgi.log
<file_sep>/mysite/opsys/utils/makeconx.py
#encoding:utf-8
import os,sys
impor... | 85cfeda86e8b828c1749959db9932cc9208a014a | [
"Markdown",
"JavaScript",
"INI",
"Python",
"Shell"
] | 17 | Markdown | xckoo/opsys2 | 9daccf69e22f2af8837b35e4aab4e3748d72b4d0 | bf82a9d8665cb946845dd94a49d7a9f9ff10587f |
refs/heads/master | <repo_name>biojppm/c4cfd<file_sep>/src/c4/cfd/cfd.hpp
#ifndef _C4_CFD_HPP_
#define _C4_CFD_HPP_
/** @file grid.hpp this is a skeleton sketch for a CFD solver:
* -custom number of dimensions
* -custom storage: Structure-Of-Arrays vs Array-Of-Structures
* -row-major vs col-major tensors
* -cartesian and unstructured... | 8687748daf8a85796e376a942eb1dd5d4ffed445 | [
"CMake",
"C++"
] | 5 | C++ | biojppm/c4cfd | a41320707493f5544dfe089c36438413823254f8 | a1bc702c4dcd5fd5d89d9fc4c3f7d72717b5e623 |
refs/heads/master | <file_sep>//
// ShowMoreViewCell.swift
// Yelp
//
// Created by <NAME> on 9/7/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
import UIKit
@objc protocol ShowMoreViewCellDelegate {
optional func showMoreViewCell(showMoreViewCell: ShowMoreViewCell, clicked value: Bool)
}
class ShowMoreViewCell: UITa... | 7f7cfd9c789cdcd330f13c44dcb04348c2b0ae31 | [
"Swift"
] | 2 | Swift | wilkesybear/ios_yelp | aca2926aeb3d80da86a83b3a90c9f8ffb65402c8 | 018a04cb8f99dcac88af41cd264b0abd7f29dc62 |
refs/heads/main | <repo_name>MarcGravel/VuePlaylist<file_sep>/src/store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
state: {
emptyPlayMsg: "Click song list to add tracks.",
emptySongMsg: "Click playlist tracks to return them here.",
songList: [
{
titl... | 60a3eb3edae84b8911e8258dc1f260a4f5b812ad | [
"JavaScript"
] | 1 | JavaScript | MarcGravel/VuePlaylist | 9a2cc4617902cbc7e251976624e4092d397779e0 | b1336d637fb988813b237787e6d591b8b3f3a35b |
refs/heads/master | <file_sep>package com.example.android_v403_crud;
import android.app.Activity;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
impor... | 1bcc4dd8b7f399823d189c58cbe00c3e64fe2597 | [
"Markdown",
"Java"
] | 5 | Java | haradatmn/android-v403-crud | 8e7c8854e25b42048ac482771bd87653f6c4d71c | cce308b3063db5dee5bc102c9b0329c3e1baa10e |
refs/heads/master | <repo_name>Atul-Yadav-mnit/Confusion<file_sep>/src/redux/configureStore.js
import {createStore, combineReducers, applyMiddleware} from'redux'
import {Dishes} from './Dishes'
import {Comments} from './Comments'
import {Leaders} from './Leaders'
import {Promotions} from './Promotions'
import thunk from 'redux-thunk'
impo... | 72d428846ee924eeb1702be36473b498a3b7facf | [
"JavaScript"
] | 1 | JavaScript | Atul-Yadav-mnit/Confusion | f4723ae4f78d6d2d5a1015d28a9a397004295200 | 0fc46d46f2a60752fa8768fd6bb6548e7b9da2cf |
refs/heads/master | <file_sep>package alekseisivkov.ru.schedule.Model;
import android.util.Log;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
public class StudyDay {
public static final int FIRST_WEEK = 2;
public static final int SECOND_WEEK = 3;
priv... | a5e376b0d885a27a8b0debacc4962251ea1adc86 | [
"Java"
] | 2 | Java | alekseisivkov/Schedule | 81a700091f98fbce6fe7db72835d4d96f5dc2610 | d5b60c78319f0388c8086b9cbb56934b51d80dbf |
refs/heads/master | <repo_name>azelio5/java-courses<file_sep>/Calculate.java
public class Calculate{
public static void main(String[] arg){
System.out.println("Hello");
int first = Integer.valueOf(arg[0]);
int second = Integer.valueOf(arg[1]);
int summ = first + second;
int minus = first - second;
int decart = first * second;... | a862519a4f5a33b1342b2581b69ff853147d9188 | [
"Java"
] | 1 | Java | azelio5/java-courses | 28fbc0126c08d4c05f9c215fcf2dd70b76f6fec7 | 329c6cf70c4f5ff42c1c38fd5fb87b5538392d58 |
refs/heads/master | <file_sep>package DrawShapesProgram;
public class ShapeRectangle extends Shape {
double width;
double height;
//Constructor
public ShapeRectangle (
double newWidth,
double newHeight)
{
this.width = newWidth;
this.height = newHeight;
}
}
<file_sep>... | 6d6a7d9fa859d19f11c11b40f4583841859bffee | [
"Java"
] | 4 | Java | Bob-Utveckling/Labb_JavaProgLab3_DrawSimpleShapesProgram_useJavaFX | f72a2c2f6c82d19c5966984a80aa6a07851a0a8d | ca1db37605d086b0963b05c1eb39cc46e2c27519 |
refs/heads/master | <repo_name>Rifaz/WebScript<file_sep>/insert.php
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("sahara", $con);
$sql="INSERT INTO Products (ProductName, Description, Price)
VALUES
('$_POST[ProductName]','$_POST[Description]','$_POST[... | dd74d01a21c0dd3ad969b3290687a62e1c4da65d | [
"PHP"
] | 1 | PHP | Rifaz/WebScript | 850a63f89e8b93b5d91e2b4876fd1565c474f750 | 7dd8305f58a614b338c182881c23b1e58a68a5c6 |
refs/heads/master | <repo_name>luckywolf/misc<file_sep>/thread_safe_queue.cpp
/*
version 1
https://www.zybuluo.com/smilence/note/540
*/
template <typename T>
class BlockingQueue{
private:
queue<T> _queue;
mutex _mutex;
condition_variable _not_empty, _not_full;
int _capacity;
public:
Bounded... | 7d50014460a13299c5f81259d1d9b8af13e127e9 | [
"JavaScript",
"C++"
] | 24 | C++ | luckywolf/misc | aeb3f97559d17c35d591f811ca3ed4c17be58c0a | 6350e1b4ba5ba2906b451d1ff0fe869fed102164 |
refs/heads/master | <file_sep>package a.benri.notifications
import android.annotation.SuppressLint
import android.app.Notification
import android.util.Log
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
import android.app.NotificationManager
import android.app.PendingIntent... | 397fba2cb1f1991c2bd9ecc659ad2723964065d3 | [
"Kotlin"
] | 2 | Kotlin | Stelio3/NotificationFirebase | 6fefac02b6d1737873038cc6e74741807d9110d8 | 4dea79ebd44f2a686c9d717546fc52b73731f86f |
refs/heads/master | <repo_name>alicanyesiloglu/Sinif_icinde_geriye_deger_dondurmeyen_metot_4_islem<file_sep>/d 52 sınıf icinde geriye deger donduren metotlar/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace d_52_sınıf_icinde_geriye_deger_donduren_met... | bba1268a92060ffab93ea50a338bab1c1d4beaf0 | [
"C#"
] | 2 | C# | alicanyesiloglu/Sinif_icinde_geriye_deger_dondurmeyen_metot_4_islem | 7ca37f7bd9fd9a425232fd654d585c373c7f488d | 30375284c53058e4398e1592b17e00405b66490a |
refs/heads/master | <repo_name>davidjdclarke/scripts<file_sep>/matplotlib/main.py
import pandas as pd
import numpy as np
from matplotlib import pyplot as plt
PERIOD = 10
if __name__ == "__main__":
file = './demo4.csv'
df = pd.read_csv(file)
keys = df.keys()
l = len(df[keys[0]])
t = np.linspace(0, 10, num=l)
... | 5fd76ed8167e4259524e2fddfaca3945de0a2e90 | [
"Markdown",
"Python"
] | 12 | Python | davidjdclarke/scripts | acea0b687b2b096e5781ed3fda7d5462d0381082 | 87f71efadbfc873066541a23bc29f8d4044607aa |
refs/heads/master | <repo_name>ReeganArockiasmy/Github-Preview-in-Local<file_sep>/run-github-page.sh
#!/bin/bash
#
# Usage:
# filename="Readme.md" ip="x.x.x.x" port="8000" run-github-page.sh
#
FILENAME=${filename:-"README.md"}
IP=${ip:-"localhost"}
PORT=${port:-"8000"}
URL="http://$IP:$PORT/readme.html"
QUERY="?filename=${FILENAME}"... | f37a414ca386be0adbe0ca632ae24d3b6efe4e4e | [
"Markdown",
"Shell"
] | 2 | Shell | ReeganArockiasmy/Github-Preview-in-Local | cbd67ecbe17aa8b71f764933ccac386af9b910c9 | 508fc6ec3087457062803e6d1cb3a883e36c6576 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
cd ${BASEDIR}/../
PROTO_DEST=./examples/proto
OUTPUT_DEST=./examples/src/proto
BUILD_DEST=./examples/build/proto
mkdir -p ${OUTPUT_DEST}
# JavaScript code generating
node ./bin/protoc-gen-grpc.js \
--js_out=import_style=commonjs,binary:${OUTPUT_DEST} \
--grpc_ou... | 5c69643ebdadbeab55f954536e990c88af0a7da1 | [
"Shell"
] | 2 | Shell | nigele-stripe/protoc-gen-grpc-ts | d72448bb241167d33ec7491e477c8f940f41f106 | 2a56de49d432d4413341a97318e6056bceec3fc5 |
refs/heads/master | <repo_name>Akemi-Homura/APUE_Learn<file_sep>/Chapter10/L-10-14/README.md
# a
为进程打印信号屏蔽字
<file_sep>/Chapter10/L-10-8/a.c
# include <stdio.h>
# include <unistd.h>
# include <stdlib.h>
# include <signal.h>
# include <setjmp.h>
# include <sys/types.h>
static jmp_buf env_alrm;
static void
sig_alrm(int signo){
lo... | 52872ddd42fdeef2936163924c670cd4f1ab0eab | [
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 87 | Markdown | Akemi-Homura/APUE_Learn | 733f2bcc3b06cee9a25df40271ced8ba97379d77 | c586deb8d6ac68c599db03997efe3016a709d09f |
refs/heads/master | <file_sep>function main( con ){
}
| ddcea6d9ab0d03a51ba5a12cde8d1de06496ff3a | [
"JavaScript"
] | 1 | JavaScript | SatisKia/test | 4429a1ae2e3a4ec134c0f2c3afe170a8a63b5cab | 583b74c4ffbe25d242c3a41619decfb26d7e5769 |
refs/heads/main | <file_sep>import { OmdbClass } from './omdb-class';
describe('OmdbClass', () => {
it('should create an instance', () => {
expect(new OmdbClass()).toBeTruthy();
});
});
<file_sep>import { Component, OnInit } from '@angular/core';
import { OmdbapiService } from "./service/omdbapi.service";
import { MovieDetail }... | 40c5c758e380b78d79cbef5d039e4265b23efbe3 | [
"TypeScript"
] | 2 | TypeScript | tayyabxatti/movies-database | d30e4110050f0c016aaefb78d32a2dab1af5698d | 27b6a2266c04b5996f3e3dde12351cb0b866b467 |
refs/heads/master | <repo_name>asbjornh/kompis<file_sep>/CHANGELOG.md
# 0.5.0
- Adds `always`
- Adds `isOneOf`
- Adds docs
- Fixes `toFixed` returning `0` for `0`. `toFixed` now always returns a string
# 0.4.0
- Reimplements in typescript (non-breaking) to enhance developer experience in typescript capable editors.
# 0.3.3
- Adds `no... | 43dbb775c794c71792865c1b7435e58b2dd282e7 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 14 | Markdown | asbjornh/kompis | 9c827eb678871d386a4bb21f895890390fff39c2 | 94b4e12c35fa917e7f7ede456f14201bd6c0af00 |
refs/heads/main | <file_sep>package com.example.mvvm_room_rxjava.db.dao
import androidx.room.*
import com.example.mvvm_room_rxjava.db.entities.HomeItem
import io.reactivex.Completable
import io.reactivex.Flowable
import io.reactivex.Single
@Dao
interface HomeItemDao {
@Query("SELECT * FROM db_item")
fun getAll(): Flowable<Li... | b0feec6b86faef78e7369b493779e0dc65caddb0 | [
"Kotlin"
] | 11 | Kotlin | serhiibondarenko16/mvvm_room_rxjava | 8579700520a32b6f8bdff43bb4042e92db2b965f | fde28bd307a248a292095558a54408b5f0675388 |
refs/heads/master | <file_sep>//
// main.c
// StructDemo
//
// Created by liujunyi on 16/3/5.
// Copyright © 2016年 LJY. All rights reserved.
//
#include <stdio.h>
#include <string.h>
struct component {
char name[50];
char number[10];
int score;
};
struct component Person[] = {
{"传奇码农海事姐姐", "11099", 97},
{"大表妹", ... | f5a115dbc7a448cf20e58e77f5bf84fe9cb44e73 | [
"C"
] | 2 | C | liujunyi271828/SomeCDemo | f2701f75e1e019e9b54cda37b8215bff91a2b1ba | 1722e8faf18969d940544a7b536dbd4839f84a32 |
refs/heads/master | <file_sep>This is a web app running on Node web server using MongoDB that have endpoints to handle a basic school information system. This app:
- Creates Students’ resource
- Reads Students’ resource
- Updates and deletes students.
# Student-Resource-App
<file_sep>var express = require("express"),
app ... | cc636f74563af149e78b4fcb0a6c6de19a2d6f9a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jherey/Student-Resource-App | f275322bf444d7b43d2797e5729a98e9c3af20af | 6fe3e576de5e84f9f0cab926d73bd93dae162b7d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.