branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>pfrazee/dat-network-simulator<file_sep>/test-single-subnet-mdns.js
var test = require('tape')
// var cp = require('child_process')
var execspawn = require('npm-execspawn')
// var spawn = require('tape-spawn')
test('local network, 2 nodes, dat share and dat clone, mdns', function (t) {
buildImage(function ... | 244e16fb0300aaa99695d932260f7e23771aef99 | [
"JavaScript"
] | 1 | JavaScript | pfrazee/dat-network-simulator | fe7b3ff0113616e9e662d3ccb339e80d9a4a848b | 390f72073ca9f4de85767beb32539de01ee38287 |
refs/heads/master | <repo_name>bdelbosc/nuxeo-core-ehcache-mapper<file_sep>/README.md
# Nuxeo Unified VCS Row Cache
This addon implements a VCS CachingMapper that use a unified ehcache.
This is an EXPERIMENTAL implementation, not for production use.
## Configuration
The name of the ehcache is "unifiedVCSCache".
To enable this addon yo... | 0aa2f920a08c7ffd1fe7ee1d2438e9d99be52f7e | [
"Markdown",
"Java",
"Maven POM"
] | 3 | Markdown | bdelbosc/nuxeo-core-ehcache-mapper | 0d49ea3f117ba6c7ab6794ee11003efac4f3bbc2 | ff7fa5303f04d5de3d82af39245e99e681917a58 |
refs/heads/master | <repo_name>Remet0/Giphy-Search<file_sep>/assets/javascript/app.js
let searchTerms = ['matrix', 'deadpool', 'shrek', 'avengers'];
//appends a button for each object in search terms array
function populateButtons(){
$('.buttons').empty();
for (let i = 0; i < searchTerms.length; i++) {
let buttons = $('<b... | 51fea22e7cd96d67b426bb5eaf92c5cbbc1be9ed | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Remet0/Giphy-Search | 49bba41270ed9d4c92f4e8afca211196249d494c | 2f2e1c9548fa1426a0ff4fd9bd487c6f1ae07ca7 |
refs/heads/master | <repo_name>dnmingo12/animalcracker_repo<file_sep>/homework1.rb
puts 'what type of arithmetic do you want to use?'
puts 'Press 1 for addition'
puts 'Press 2 for subtraction'
puts 'Press 3 for multiplication'
puts 'Press 4 for division'
num3 = gets.chomp.to_i
def choice_arithmetic(num1, num2, num3)
if num3 == 1
put... | bc35b6219354e88f4e61a920304f01043b25b619 | [
"Ruby"
] | 2 | Ruby | dnmingo12/animalcracker_repo | 8ec165756a1fe7fb0cb24e6e7006b778fe9a5147 | 8c8bb8dc1b054083f7dadb686300097af6f5370e |
refs/heads/master | <repo_name>kostayanych/graphs<file_sep>/graph_func/graph_func.py
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
def graph_err(x, y, xerr=None, yerr=None, xargs='', yargs='', title='', xlims=[], ylims=[], dots=.5, dpi=300):
"""
Функция, рисующая график с крестами погрешностей с о... | b34fe2ea19456b0f6dce6571305152c6a3883af8 | [
"Python"
] | 1 | Python | kostayanych/graphs | d32efe116c37f4225416b901eef1e6219c7b1108 | 936c710e6cb224425abe608d3bf6228b4d144212 |
refs/heads/master | <file_sep># Sylvia-PythonDemo
**A miniblog using Flask**
Method:
GET|POST|DELETE|PUT
<file_sep>from flask import make_response, abort, jsonify
from config import db
from models import Person, PersonSchema
def read_all():
print("read all - before query")
# Create the list of people from our data
peop... | f53af03d4f61982db9b5ba56284482f6352ff305 | [
"Markdown",
"Python"
] | 3 | Markdown | sylviatang1206/Sylvia-PythonDemo | ab1a9003aef2f339e0c114e0a70b2d0dc6fb970a | 7029bee76c31388876422a25b1baa7a1079dd83b |
refs/heads/master | <file_sep>
context("Function updateOutputSettings")
# Setup study -------------------------------------------------------------
path <- tempdir()
# Unzip the study
setup_study(path, sourcedir)
# set simulation path in mode input
opts <- antaresRead::setSimulationPath(studyPath, 'input')
# Tests --------------... | cae8ae3b1ae42251f1e52e432ea709f07d669dff | [
"Markdown",
"R"
] | 7 | R | MahmoudMobir/antaresEditObject | b2f74117ecd0b482dab81efb4f62b677b6c80de7 | a13a93384dd22c7df5253067972a522ff0b1b3e8 |
refs/heads/master | <file_sep>var arrayImage = "120x600_international_0 160x600_house_0 160x600_house_0 300x120_raovat_0 300x250_international_0 300x250_raovat_0 300x600_international_0 320x50_raovat_0 468x90_local_0 670x90_international_0 728x90_house_0 728x90_raovat_0 922x558_international_0 970x90_local_0 120x600_local_0 160x600_intern... | b2d3c72ccdb2a51d2dc753fa07d74ef51f040b55 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | phatpt8/shuffleImage | c38e219dc335edb7713ae5ae7c6c5701daf505da | c26531bb88329ca8b3cc5361fcd447d1e2bf0125 |
refs/heads/main | <file_sep>
function valuesButton(e){
form.screen.value += e.value;
}
function Clear(){
form.screen.value = null;
}
function calculate(){
form.screen.value = eval(form.screen.value);
} | 0bf4ccf58acb80d7d08b15eb5c158c376f8e5b13 | [
"JavaScript"
] | 1 | JavaScript | AbhilashMajumdar/Calculator | f3f5b37c4be25ca30727c76a07c4e11873e4ed83 | f082de28c5dec7c189e5921015f7c01bcca70a8e |
refs/heads/master | <file_sep>import React from 'react';
import './App.css';
import MyView from './component/MyView';
function App() {
return (
<div className="App">
<MyView title="这是第1个" caption="first"/>
<br/>
<hr/>
<MyView title="这是第2个" caption="second"/>
<br/>
<hr/>
<MyView title="这是... | 8e52de3cdc252e5e6945da134db2391b4bc7ae57 | [
"JavaScript"
] | 1 | JavaScript | LqDeveloper/ReduxDemo | b4ef63a5d11b5e3df6218e3f2df683915101c35d | be6ec471d11ef6e809c04371eee653bd179e900d |
refs/heads/master | <file_sep>//-- Urchin Tracking Module Version 4 (UTM 4) $Revision: 1.15 $
//-- Copyright 2004 Urchin Software Corporation, All Rights Reserved.
/*--------------------------------------------------
UTM User Settings
--------------------------------------------------*/
var __utmfsc=0; /*-- set client ... | a9341a575f2583759c09995d8701c3dc0411eaad | [
"HTML",
"JavaScript",
"Makefile",
"Python",
"PHP"
] | 135 | JavaScript | vnwala/cs851-s15 | aec42f5242424b103d6e348c4461aa3dc0ba8bfa | f460f8a40e970614c3fe032b8ad7ef60689754c6 |
refs/heads/master | <file_sep>package jp.kadowaki.cordova.plugin;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CordovaWebView;
public class ViewportWidthPlugin extends CordovaPlugi... | 30247241549b548f2a6c8675a5c875abe68d1981 | [
"Java"
] | 1 | Java | hiroki-kadowaki/cordova-plugin-viewport-width | fbe0066f96e6d1cb6ef2493cdea4c764fb28435f | e491c444ee270977fefa92f102ed3f6cd67f2da0 |
refs/heads/master | <repo_name>aligeekk/SmallWorld-1<file_sep>/Scripts/R/CorrelationAnalysis.R
# The Raw Data file contains 5 columns:
# 1) "intra", equals 1 if the row belongs to intraoperative network and 0 if to postoperative network (we have 13 intra- and 13 postoperative rows)
# 2) "net_no", ranges from 1 to 13 for intra- and posto... | 15edcbb2ff6f3560ab0b954e17ea1360a2c9d51a | [
"Markdown",
"R"
] | 2 | R | aligeekk/SmallWorld-1 | 746799a62ee2f61e0e228ecfafcd9e4327e34f2b | 19cb436100aab11b8a8f38c02f9c1e5907f1397e |
refs/heads/master | <repo_name>maciej-krzyzowski/project-theatre<file_sep>/src/component/Spectacles/List/List.js
import React, { Component } from "react";
import styles from "./List.module.scss";
import { connect } from "react-redux";
import { addItemToCart as addItemToCartAction } from "../../../actions/index";
import { NavLink } from "r... | ab0fa083738fd4d7c10e7b94fa868397389a36fa | [
"JavaScript"
] | 19 | JavaScript | maciej-krzyzowski/project-theatre | 912daae0223a5274cfd4f908e230cf6b68885837 | c37fd711bd757fc56f22d546e802eb034a175b12 |
refs/heads/master | <file_sep>from flask import Flask, render_template, url_for, request
import numpy as np
import pandas as pd
import joblib
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/breast_cancer', methods=["POST", "GET"])
def cancer_predict():
if request.m... | e51a652d0057d11424cb8253d7eecce34cfd89a5 | [
"Python"
] | 1 | Python | ridhoaryo/modul3_materi_flask | 15bce9aaa21b46d717fe2061e4327cd57932169a | 660c54f2527643e9cd6696ccc5a40f5a055e3e88 |
refs/heads/master | <repo_name>Yoka416/drinking<file_sep>/制作饮品.cpp
#include<iostream>//标准库
using namespace std; //标准输出库
#include<string>//字符串库
class AbstractDrinking
{
public:
//煮水
virtual void boil()=0;
//冲泡
virtual void Brew()=0;
//倒入水杯
virtual void PourIncup()=0;
//加入辅料
virtual void putsomething()=0;
void ... | d986823e69318dfc4558e8f27b6763b40163c31b | [
"Markdown",
"C++"
] | 2 | C++ | Yoka416/drinking | fbfb7638f6e21e95293eebf2326cdd402deee048 | bc7f04d4ba62e14999d0a84241c5c561f9d29da3 |
refs/heads/main | <file_sep>from django.shortcuts import render
from .models import Member
from .utils import get_tenant
# Create your views here.
def our_team(request):
tenant = get_tenant(request)
members = Member.objects.filter(tenant=tenant)
return render(request, 'tenant/our_team.html', {'tenant':tenant, 'members':mem... | 517519d8ce9a62db9e86027e72084f6eef3fb6df | [
"Python"
] | 3 | Python | imimran/multitenant-using-subdomains | a3f0f3796cf3bf3030388839b7d6794a0e4eba86 | 4eb32df487951e1b5ea142c07fd2e36d441b4f2c |
refs/heads/master | <file_sep>/**
* MIT License
*
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | bc6bcb81dedbf57d4a3d512ac4f68e3f6df7f47a | [
"JavaScript"
] | 3 | JavaScript | M3TIOR/qss-translation-loader | 0695daf9a1edec84fd22da1cb1151d702b79a1d4 | 3f47d7c73a4ccdb101a0ec7dc0f6ac3046a63ba7 |
refs/heads/main | <file_sep>const handleRegistor = (req, res, dbpsql, bcrypt) => {
const { email, name, password } = req.body;
//server validation
if (!email || !name || !password) {
//To end an execution you have to run 'return'
return res.status(400).json("incorrect form submition");
}
//encryt password before storin... | 5fd71d3e55058652d919cf5188fe715edb9677ea | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Tebogo11/SmartBrainApi | 911f25e3ab3f8a3d55dc8d0eae9270c7e5b84ac8 | ba02db7729025b4608405403b57c785f04ec9491 |
refs/heads/master | <file_sep>function random_posts(json) {
for (var i = 0; i < randomposts_number; i++) {
var entry = json.feed.entry[i];
var randompoststitle = entry.title.$t;
if ('content' in entry) {
var randompostsnippet = entry.content.$t
} else {
if ('summary' in entry) {
... | 0c3e1774a2d9ed35584ecb59dbbffc584361f5fd | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | menarik/menariklagi | d1ab8641ac3b66caf03a435a0dae7a3b81e534b9 | 12b45886fe0c15c6d08c0fe0f189386c9e3ab88b |
refs/heads/master | <repo_name>firuznanocoding/note-app<file_sep>/src/app/services/note.service.ts
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { Note } from '../../model/note.model';
import { AngularFireDatabase } from 'angularfire2/database';
import { map } from 'rxjs/operators';
import * as fire... | e038e48221a9e82a14f3957a55a50dc46e24bc31 | [
"TypeScript"
] | 4 | TypeScript | firuznanocoding/note-app | 17d451594ebf3cc129a2378457cefdc51d3edd43 | ad1344ecffbfa09c631de30b8a4d8a4fbed136ce |
refs/heads/master | <file_sep>import firebase from 'firebase';
//create archieve leads
export function addArchieveLead(data, usId) {
let userId = firebase.auth().currentUser.uid;
let store_date = new Date();
return new Promise((resolve, reject) => {
firebase.database().ref().child('/archieve_leads').push({
... | d8d0d034f8356ac5aa96115b1bdeeef8f700fda9 | [
"JavaScript",
"Ruby",
"Markdown",
"Gradle"
] | 31 | JavaScript | notifylead/reactnative | b6b1ea814604bfd0a95c4298a12d774445bca539 | 5c7852f0f2a2bad5a78dada7b7ca0fe517f7ad0a |
refs/heads/dev | <repo_name>StormGrace/restaurant-reserv-aspcore<file_sep>/rest_reserv/Data/Repository/Interface/IListingRepository.cs
using rest_reserv.Data.Model;
using rest_reserv.Data.Repository.Interface.Common;
namespace rest_reserv.Data.Repository.Interface
{
public interface IListingRepository : IRepository<Listing>
{
... | f0f4a92048a0bb13c16c05cfe1b9ccc826addf68 | [
"Markdown",
"C#",
"TypeScript"
] | 54 | C# | StormGrace/restaurant-reserv-aspcore | 1aa32f6a342ca3ccbbdbd6010d1bcadd8517bfb0 | a5f6e1022237fc0cf97cf5127f69e6f1842604d9 |
refs/heads/master | <file_sep>const Discord = require('discord.js');
const fs = require('fs');
const firebase = require('firebase')
var config = {
CONFIGHERE
};
firebase.initializeApp(config);
module.exports = {
name: '-wish',
description: 'Lets you make a wish',
command: '`genshin-wish`',
async execute(message, args,... | 2f56db601eed324909d1c5b7f43a77e8592f119a | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Ephrem-Adugna/genshin-discord-bot | 38fbcd228b7f4571f5c1c3d2ff8ea712617b7847 | d3cdf637b00b1b83dc5cf2ed327f85bc3f907c50 |
refs/heads/master | <repo_name>aot5454/Current-Time<file_sep>/README.md
# Current-Time
This project create with javascript. Show current time.
:grinning: 1Day1Project :grinning:
DEMO: https://aot5454.github.io/Current-Time/
Screen 
<file_... | b5ab2541c5090315aa03b4db51c67198012ccb04 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | aot5454/Current-Time | faf983d1fe5161a883f982fbbd2f19d178dd39fd | e93c0cf32054882ff99be58e87cf819d45641de9 |
refs/heads/main | <file_sep><?php
$n=$_GET["n"];
$s=0; $a=$n;
while($n>0)
{
$s = $s + $n% 10;
$n = $n/10;
}
echo " la suma de los digitos $a";
echo " es: $s";
<file_sep><?php
$a=$_GET["n"];
$b=$_GET["n1"];
{
$suma=$a+$b;
$resta=$a-$b;
$multiplicacion = $a*$b;
$division =floor($a/$b);
$modulo = $a%$b;
}
e... | e888eaa2a341249bc2354fb3af1e4f74ebb19b80 | [
"PHP"
] | 5 | PHP | Raymundo-acarapi/practicaphp | 175593e35a6e28d0a4e6dea1f0eda8d04492e709 | ba0d1f93dc0e66c1cd14f1b720520b895e993c86 |
refs/heads/master | <file_sep>package de.tum.in.ase.eist.gameview;
import javafx.scene.control.*;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.text.Text;
import java.util.Optional;
/**
* This class visualizes the tool bar with start and stop buttons above the game board.
*/
public class GameToolBar extends Tool... | dca30b4dcd4884b81d2d9386c2980da9e83b4d88 | [
"Markdown",
"Java"
] | 7 | Java | babyygemperor/EIST-2021SS-Corona-Bumpers | 7030de85e83f637bf033a8f59554f47a43cbf890 | 57004af952018bed0e9a4cdccdbdac508ab1291f |
refs/heads/master | <file_sep>package main
import (
"fmt"
"log"
// "github.com/wizardkeven/stringutil"
// "math"
"bufio"
"os"
"strings"
"strconv"
)
func main(){
loop,_:= getInput(0,0)
// fmt.Printf("Loop times: %d\n", loop)
callForSub(loop)
}
func getInput(tt,lp int) (int, []int){
var inp int
var ina []int
if tt == 0... | 4311c3de0bb491eecbb4e619b5417d2f2a255f22 | [
"Markdown",
"Go"
] | 2 | Go | wizardkeven/hello | 32e5dbbd405194dcc95206f078b706c4b82c398d | 2ef4b16887fb8053b43947e37c444e9b8d23c924 |
refs/heads/main | <file_sep>import React from "react";
import { StatusBar, Text, View, Image } from "react-native";
import styles from "./styles";
import LoginForm from "../../components/LoginForm";
const Login = ({ navigation }) => {
return (
<>
<StatusBar
barStyle="dark-content"
backgroundColor="rgba(0,0... | f8e9d24a41a3591af46852ee7c0888dcb9620564 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | marcelofeitoza/CyberGenios | c35177168f9ef471e0d8fa29da40a6222024d560 | e2860d667fc499834735d316a6411e17e0fa355f |
refs/heads/master | <repo_name>raulmorenogaldon/AppCESM<file_sep>/create_experiment.sh
#!/bin/bash
function xmlchange {
OPT=$1
LABEL=${@:2}
if [ -n "$LABEL" ]; then
echo "$OPT => '$LABEL'"
./xmlchange $OPT="$LABEL"
fi
}
echo "================================"
echo "--------------------------------"
icc -v >& /dev/null
if [ $? -e... | e7a18de304766c95c55d711a4bea456b332aba88 | [
"Markdown",
"Shell"
] | 3 | Shell | raulmorenogaldon/AppCESM | 211531d9ee3e3a2ade66c5158d239c4f585ad50d | e15c18a9d49160d3d6950714d92a2dbfac2aaf3b |
refs/heads/master | <repo_name>seqan/iGenVar<file_sep>/test/benchmark/BAM_file_informations.md
# GRCh37
## Short reads
### HG002.hs37d5.2x250.bam - NIST Illumina 2x250bps Paired-end
#### samtools view -H HG002.hs37d5.2x250.bam
@HD VN:1.0 SO:unsorted
@PG ID:novoalign PN:novoalign VN:V3.02.07 CL:novoalign -d /cluster/... | c152ef7184c7eb51a0a6d3200edb342b14c48854 | [
"CMake",
"Markdown",
"Python",
"R",
"C++",
"Shell"
] | 103 | Markdown | seqan/iGenVar | 501e0644be56e9bbdae5a6d9f1cf4868ba0be716 | 6ad7810a1ed24f6a9fc29acd70a2347ab474de09 |
refs/heads/master | <file_sep># eggCatcher
https://girolle.github.io/eggCatcher/
<file_sep>setTimeout(()=>{
$$('#guy-1').style.opacity = 1;
$$("#left").style.backgroundImage = "url('images/l" + 1 + ".png')";
}, 600);
setTimeout(()=>{
$$('#guy-1').style.opacity = 0.02;
$$('#guy-2').style.opacity = 1;
$$("#left").style.backgroundImage... | 51f9e2ecbc44100f22864ae0d5f590c23989356a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | girolle/eggCatcher | e8f2ccf0faeac26ebc9c3e611852a9e364621800 | a3022c70f7f53375fc3887621c7e33dcd8aa989e |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
namespace PostManager
{
public class PostManager
{
private List<Post> listOfPosts;
private void GiveIntroduction()
{
Console.WriteLine("Welcome to the post manager! :)");
Console.WriteLine("");
... | 16dcf5fe53cff56cd2d5e89839b1f72a45ba3f7c | [
"C#"
] | 3 | C# | juzalt/PostManager | bdb3dd84d70d14b03f0060184cdef80bd8aa35b9 | 3f76ae8bf201654e06d980dab770b4086d72e3a8 |
refs/heads/master | <repo_name>PsychotherapistSam/PerWorldTablist<file_sep>/src/de/sam/perworldtablist/main/Main.java
package de.sam.perworldtablist.main;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerChangedWorldEven... | d6f72795d18a13d2dcd126624edb012cdf353645 | [
"Java"
] | 1 | Java | PsychotherapistSam/PerWorldTablist | acf1ca2310942a45d126dfafeacf9ca8b42b4c57 | 89a32490848b42db94e1c219f5c8cf5c00f96b81 |
refs/heads/master | <file_sep>/*Customers can have two kinds of address: a main office address and a shipping address. The accounts department wants to ensure that the main office address is always used for billing, and have asked you to write a query that clearly identifies the different types of address for each customer.
Write a query ... | 6b84ba495bf3da7281f0d0aa5cab8ffa720701cc | [
"Markdown",
"SQL"
] | 8 | SQL | mrStasSmirnoff/edX_Courses | fa23ab15bc556f5e969a0cba7d4f80fee7263e9a | 94bee7b9717fe127a90c09afeac51e89541d540f |
refs/heads/master | <repo_name>Chsilent/springboot-learning<file_sep>/springboot-dubbo-consumer/src/main/java/com/walker/springbootdubboconsumer/controller/HelloController.java
package com.walker.springbootdubboconsumer.controller;
import com.walker.demo.HelloService;
import com.walker.springbootdubboconsumer.bean.entity.ResultInfo;
//im... | e62f5f612a9f97c6f7bf496ca31d59445cfa20fb | [
"Markdown",
"Java",
"Maven POM",
"INI"
] | 37 | Java | Chsilent/springboot-learning | 2593afceee0b7417ac4b3447eff0f7b2339de46c | 95c5fc282f9711dad0307383b20423dfc43affeb |
refs/heads/master | <file_sep># hexo-typographer
A plugin for static site generator Hexo to apply beautiful typography to posts.
## Fatures
Coming soon...
## Install
You can install this plugin via NPM:
```bash
npm install hexo-typographer -S
```
## Usage
You can configure the plugin by adding some code to the `_config.yml` of your sit... | eea2a84f851beeba5db9480cbbd5a014512c37fc | [
"Markdown",
"JavaScript"
] | 3 | Markdown | Laokoont/hexo-typographer | ef7a3c52d616f96ac3727e5ec390da5ad60972c0 | e49779aa7e73e59eee3d84d305e322df09451a60 |
refs/heads/master | <file_sep># 災害情報
[](https://travis-ci.org/c4w/disaster-information-client)
## デモサイト
http://c4w.github.io/disaster-information-client
## 概要
このサイトは、災害情報を配信するための実験的なプロジェクトの一環として作成したものです。詳細は、[c4w/GitHubページを使った災害情報配信用のJSON API@Github](https... | ded51b8f8e076f3d65d7edb2ef9feadf26d31ae4 | [
"Markdown",
"Shell"
] | 2 | Markdown | c4w/disaster-information-client | 36b46a144f934eb779e800fbb2e5f477acd37492 | 980127fd6fb822502394ad53040b242760b38f9e |
refs/heads/master | <file_sep><?php
function postTimeLimit()
{
$activityQuery = mysql_query("SELECT * from activity where Id NOT IN (SELECT DISTINCT Id FROM activity WHERE create_datetime >= now() - INTERVAL 1 DAY)");
//select all activities with biteCount
while($row1=mysql_fetch_array($activityQuery)){
$Id = $row1['Id'];
if (... | 312de974f8df9e0cacf7cee0f4f030af1064026e | [
"PHP"
] | 26 | PHP | dalelicious/Inbite | 00c62d06ec9d814df21307b88926b9e187079ab3 | 837f533cb3e176865abfc71a7dfa7cf06e8e4726 |
refs/heads/master | <repo_name>Raviraj2017/Design-Patern<file_sep>/DesignPattern/src/com/design/pattern/SingletonDesignPatternExample.java
package com.design.pattern;
public class SingletonDesignPatternExample {
}
<file_sep>/DesignPattern/src/com/design/pattern/singleton/eager/EagerRegistry.java
package com.design.pattern.singleton.eage... | 58a4a08d92a6d2e632722f0f125364e506951587 | [
"Java",
"Text"
] | 3 | Java | Raviraj2017/Design-Patern | 31c7f02e1c2c5b6dc3a0c9ba66c750a334026d50 | 50057c77e57afacba2f395a38904d558151c31dc |
refs/heads/master | <repo_name>bilalmahmood1/IP-watcher_good<file_sep>/ip_watcher.py
# -*- coding: utf-8 -*-
"""
This application displays the External IP of the given machine by parsing the
html file returned when a request it made to an url that constains
my ip information.
@author: bmahm
"""
import requests
import time
import Tkinter
... | a3229aa40a8bf36eddc3de2351d48b66d7444d96 | [
"Python"
] | 1 | Python | bilalmahmood1/IP-watcher_good | 1e45d38503c91921a07b0e41a346ceff714ecc5a | 17c43c21cadab6b720d3c8bed402229af495ab61 |
refs/heads/master | <file_sep># CollisionDemo
A demo of the Separating Axis Theorem (SAT) to calculate collisions between convex polygons. This demo was created with JavaFX.
## Purpose
I created this project to test out collision detection using the SAT since I needed it for my game [HexagonClone](github.com/jeff-pancho/HexagonClone), wh... | 6d3f7d83ca355fa95c783231a05598baf8963297 | [
"Markdown",
"Java"
] | 4 | Markdown | jeff-pancho/CollisionDemo | de34a174722947cf87d84060c8abcaf6a210dcea | 2997b1f0f8bf514ce9ecf8c1e048aa1d8d7610c1 |
refs/heads/master | <repo_name>piluohen/vueTuv<file_sep>/src/service/user.js
import address from '../../config/address.config'
exports.checkAutoLogin = function () {
var promise = new Promise(function(resolve, reject) {
// 用户未登录
window.userNotLoginCallback = userNotLoginCallback;
// 用户已登录
window.userL... | 3d2be39e5395adbf84af75188b680dc1719a59b0 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | piluohen/vueTuv | 3dcd52c33b280cef8de5354c9e25ca8309d26d98 | cf5173c1fbf00771a05cbf90cf39641ccbd51478 |
refs/heads/master | <repo_name>hai2014bk/fakeSale<file_sep>/native-base-theme/components/Input.js
import variable from "./../variables/platform";
export default (variables = variable) => {
const inputTheme = {
".main": {
backgroundColor: 'rgba(255,225,240,0.2)',
borderRadius: 20,
paddingLeft: 15,
borderWidth: 0,
... | b26a81fa2bab243e4bd45489f37ddc90466ef98b | [
"JavaScript"
] | 9 | JavaScript | hai2014bk/fakeSale | 1ea6ad04460eb74b1d3d05be2ac24af29fbd279e | aeb92b4b9aa5cbcd2c24e3bd7ef6342821007f6c |
refs/heads/master | <repo_name>Zuzzuc/Basi<file_sep>/Basi.sh
#!/bin/bash
# License: The MIT License (MIT)
# Author Zuzzuc https://github.com/Zuzzuc
if [ "$(caller 0)" != "" ];then
exit_mode="return"
else
exit_mode="exit"
fi
# Colors
lightblue='\033[1;34m'
nocolor='\033[0m'
# Default vars
config=""
dlbar="true"
cont="true"
sdlb="false... | 6e6293c0a390e5d002e27662534f52b050c7d918 | [
"Markdown",
"Shell"
] | 2 | Shell | Zuzzuc/Basi | c80bbc70e72693c1e353d5526cdffff495654610 | f1c8974454b932030aceba51d318486a1404f5d2 |
refs/heads/master | <file_sep>package my.apps;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
public class Synchronizer {
private TaskService taskService;
private LocalRepository localRepository;
public Synchronizer(TaskService taskService, LocalRepository ... | 3637c9291861f3edcad25d08c3af2e880db732be | [
"Java"
] | 9 | Java | austincodedojo/GToDo | cf4e904bba0a90bde5e77638a2905764921625fa | c08de06b92fc8f84851b781aade2250bf3818bf9 |
refs/heads/master | <repo_name>collatz-troll/collatz<file_sep>/README.md
collatz_traj_all_seeds.cpp -- gives all starts and ends for all (partial) Collatz
trajectories up to a length given in the command line argument.
To compile with gcc:
```
g++ -std=c++11 -O3 collatz_traj_all_seeds.cpp -o collatz_traj_all_seeds
```
To run:
```
collat... | 9429cdebbc7a606cbcabb0d1d9b77eba145488fe | [
"Markdown",
"C++"
] | 2 | Markdown | collatz-troll/collatz | e7012425afea7ffb1720a210af23e9eadb514f39 | 609a249b4ac2c6cc75c593ad86f10eb82c46a563 |
refs/heads/master | <repo_name>hug-dev/rust-pkcs11<file_sep>/pkcs11-docs/README.md
<!--
Copyright 2017 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requ... | be64535f318faaa3e1acb7a23e97781e69df77d7 | [
"Markdown",
"Rust",
"TOML"
] | 9 | Markdown | hug-dev/rust-pkcs11 | b47b97e38c9b895cd79d967aed4e06262617b51c | cda8cae4207c47be39e7558e966b29a2737adb89 |
refs/heads/master | <file_sep>#Wed Feb 15 01:48:29 BRST 2017
<file_sep>//URL_BASE = "http://192.168.1.106:8010/";
//URL_BASE = "http://192.168.122.1:8010/";
//URL_BASE = "http://0.0.0.0:8010/";
URL_BASE = "http://menuweb.com.br/";
// URL_BASE = "https://serene-atoll-63219.herokuapp.com/";
function getTokens(){
var tokens = []; ... | 197283856877cba707755a970e0023d0080888a0 | [
"JavaScript",
"INI"
] | 2 | INI | lucassantos/game7app_r | bdff124977c221bf5cfd9d9eb25d63a97517d6cd | 3c9cc89ad9d5ef62416de2c2b67912e02528d693 |
refs/heads/master | <repo_name>salluspeaks/SpringLearning<file_sep>/SpringStruts/src/com/virtual/price/to/Price.java
package com.virtual.price.to;
public class Price {
private String regPrice;
public String getRegPrice() {
return regPrice;
}
public void setRegPrice(String regPrice) {
this.regPrice = regPrice;
}
}
<file_sep>/Sp... | beb2a1416306942a2321c9e8bd88cef1151539d3 | [
"Java"
] | 2 | Java | salluspeaks/SpringLearning | 6bed24a70f18e2382f51d650b4537d43b64c6ec4 | 982ad353357be09a0c258c9fc98c26b374fe57ec |
refs/heads/master | <file_sep>// bad
var item1 = new Object();
// good
var item2 = {};
// Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61)
// bad
var superman1 = {
default: {clark: 'kent'},
private: true
};
// good
var superman... | 851d5223b5a760a1b02816a7abd77fa2db1685ea | [
"JavaScript"
] | 1 | JavaScript | instalator/javascript | 4291437495c1a5c941e97eb5838795d58337bb4b | 6e97e4e7e7519cba0345fa99a6a3968a6da778eb |
refs/heads/master | <file_sep>business_shortCode = "174379" # Bussiness short code
phoneNumber = "254720460519" # phone number making the transaction
lipa_na_mpesa_passkey = "<KEY>"
consumer_key ="wT0AcFrWsS77p8teJ4DDGAD6OiEhy1GV"
consumer_secret = "<KEY>"
<file_sep>import requests
from datetime import datetime
import base64
from request... | 8fb3763ab2377e48a1d197e525cd90b849aacc94 | [
"Python"
] | 2 | Python | davisnyabwari1/lipa_na_mpesa-flask | 59f6249ce4e83e960f144f022f18051cba8e8d2b | 74394e47041b0acec4ee4ea029886ae5e0962850 |
refs/heads/master | <file_sep>// eslint-disable-next-line import/prefer-default-export
export const answerIdRoute = () => '/answer';
<file_sep>const greets = 'Well hello';
console.log(greets);
<file_sep># Qriously Front End Test
## Instructions
### Versions used
* Node: >=8.9.0
* NPM: >=6.1.0
### Install and run
* To install depende... | 5d0fd7581f8ac5947b15b5a5f9ef3bb1f93df471 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | sengeezer/qriously | 848026b9673b04fa317ee1b46932222148c13e74 | 3a823a98eeb2101f3ccde537731ad1fac98e40bb |
refs/heads/master | <repo_name>voluzian/pub<file_sep>/8.php
<?php
phpinfo();
define ("FURUNCUL");
| f7f7450fdbfa9abd99c9a280f8e61c1d6f480c55 | [
"PHP"
] | 1 | PHP | voluzian/pub | a6f4af5db7d13fa9fff87e910ff63ac41e1e2ceb | d670f4a283b4d3d221927bf17a360fcc4404a994 |
refs/heads/master | <repo_name>Shailendra1118/digital-archiver<file_sep>/README.md
REST Document Archive
=====================
A simple document archive with REST interface.
Mainly inspired by https://murygin.wordpress.com/2014/10/13/rest-web-service-file-uploads-spring-boot
Build and run
-------------
REST API
--------
* **Add a doc... | 1688074fc5928ddad59ac11a65162aaa51d76c41 | [
"Markdown",
"Java"
] | 2 | Markdown | Shailendra1118/digital-archiver | 2262b6ddec102bfba4bf9b5af410aa514c25ff79 | a1b45f02463f5b1a52484e2427589b388c3ea28d |
refs/heads/master | <file_sep>package com.example.multikskills.journal_app;
public interface AddentryMVP {
interface view{
void showsave();
}
interface presenter{
void buttonsave();
}
}
<file_sep>package com.example.multikskills.journal_app.View;
import android.os.Bundle;
import android.support.v7.app.Ap... | bb984da4922130d07945518d041ffa0c817041c4 | [
"Markdown",
"Java"
] | 5 | Java | wise4rmgod/Journal_App | 8108d1ee9fc5fd8d5d94e63a644342322e9ba68e | 7e82d616eef5bf70ab8e79eba906684512ac4ccd |
refs/heads/master | <repo_name>iamstuartwilson/plywood<file_sep>/tests/plywood.spec.js
var plywood = require('../')({
prefix: '[test]'
});
// Mocking console
var mockLogger = {
stream: [],
write: function(val) {
this.stream.push(val);
return this.stream.slice(-1);
}
}
plywood.logger = mockLogger;
plywood... | 4ec29fa1fa018fa4d848c98998a65b459984ef62 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | iamstuartwilson/plywood | 0c3322dad005fb95be850885699bc3e9dbfe2ec1 | 9bdb126b5ecbb71cc73aed352ee942f9e8a0ff52 |
refs/heads/master | <file_sep>.SUFFIXES: .F .o
OBJS = grid_gen.o STRIPACK.o module_grid_params.o module_grid_constants.o \
module_data_types.o module_sphere_utilities.o module_voronoi_utils.o \
module_grid_gen_utils.o module_scvt.o module_write_netcdf.o module_grid_meta.o
all: $(OBJS)
$(FC) $(PROMOTION) $(LDFLAGS) -o grid... | 07c7b49afff9182b8350001a8ce4f1acf300e188 | [
"Python",
"Makefile",
"Shell"
] | 22 | Makefile | pedrospeixoto/MPAS-PXT | 550149a942ad27d8bb4134e7166f18d058bed8d5 | 4defc5bf574f31d14674090adaf445c50e1b15a7 |
refs/heads/master | <file_sep># RxJS State Management Bug
**Issue:** https://github.com/ReactiveX/rxjs/issues/5855
<file_sep>import { Component } from '@angular/core';
import { TodosFacade } from './todos.facade';
@Component({
selector: 'app-todos',
template: `
<h2>Todos</h2>
<p *ngIf="loading$ | async; else todoList">Loadi... | b695a3d1f5697d474509d8513b6618e6c874ad11 | [
"Markdown",
"TypeScript"
] | 4 | Markdown | markostanimirovic/rxjs-state-mgmt-bug | 8c155f85249ce1c699584b87ea268bda3485b1fb | 04b3dc6917c513d037c7e77a087ddda481a7b615 |
refs/heads/main | <file_sep>package kubernetes
import (
"fmt"
"github.com/fenixsoft/fenix-cli/src/environments"
"github.com/fenixsoft/fenix-cli/src/internal/krew"
)
func RegisterEnv() (*environments.Runtime, error) {
if c, err := New(); err != nil {
return nil, err
} else {
return &environments.Runtime{
Prefix: "kubectl... | 35941946690007f33865bc1f10052fbbddb983b4 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 29 | Go | happylql/fenix-cli | 445aaa2f896cb91b3541576c996fe2f1cb6fe557 | bce9c5284985bc9aaa6dce46dfef4e7396ac0003 |
refs/heads/master | <file_sep>let friend = {
name: 'Derek',
age: 28,
married: true,
likes: [
'futsal',
'coding',
'his wife'
]
}
console.log('Linked!')
console.table({ a: 1, b: 2 })
console.table(friend)
console.error('Mainframe error!')
console.warn('Just an warning, continue')
console.time('Time')
//
console.log('t... | 315053ed158f8e6fab3c6046a0acad29211f4e0a | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | T90allred/JavaScript-Practice | 1cd7fe0fa193402b6b004aa80505d865e6a7dc5b | f82b51ce7927092a5b0aab9c5bd39b0dc6f6d110 |
refs/heads/master | <repo_name>fernandoespinosa/xello-tooltip<file_sep>/README.md
# Xello Tooltip Assignment
## Annotated Requirements
### Objective
1. Create a single page Angular 4+ app with simple routing that has one state/view.
- Project was generated with latest Angular CLI, using Angular 5 and Sass by default.
1. In it, place t... | ba6183fb31c25a6200c37049122ff7df72b61046 | [
"Markdown",
"TypeScript",
"HTML"
] | 3 | Markdown | fernandoespinosa/xello-tooltip | aa35c75c9e13f8a59074b9f432310fdd902e6af4 | 2ce48388eb9695b37ab5fb28c8ad2a587989ae27 |
refs/heads/master | <repo_name>Manasvi-kaplay/Demo<file_sep>/controller/default.js
var express=require("express");
var router=express.Router();
router.use("/",require("./home"))
router.use("/login",require("./login"))
//router.use("/update",require("./updateproduct"))
router.use("/addproduct", require("./addproduct"));
router.use("/logout... | 1d1285d89b3ae711065e2e957716fb6ee026f0d9 | [
"JavaScript"
] | 4 | JavaScript | Manasvi-kaplay/Demo | 6793a99c625b28f6b8f8383b4ed857b106956902 | b0b4e3a1128664162ff3dfda6c51e296b806c545 |
refs/heads/master | <file_sep># set the png device
png(file = "plot3.png", width = 480, height = 480)
#create the graphic
plot(hpc$datetime, hpc$Sub_metering_1, type = "n", xlab = "", ylab = "Energy sub metering")
points(hpc$datetime, hpc$Sub_metering_1, type = "l", col = "black")
points(hpc$datetime, hpc$Sub_metering_2, type = "l", col ... | 9b5a2852471d6ee65d87844a18ec7951ee8133db | [
"R"
] | 5 | R | evandroarmelin/ExData_Plotting1 | 88bc6ff6b0acf4283a11517d1771c6e09fffa1be | d95577f4ffb0ffc16cdde1c746e9317174303486 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace WebApiApplication1.Controllers.MVCcontrollers
{
public class BookCollectionsController : Controller
{
// GET: BookCollections
public ActionResult Index()
{
... | 8a5132b297e233b6e5a29a58ca435f91e57924ee | [
"Markdown",
"C#"
] | 13 | C# | kerberonix/Web-Api-Application1 | 7bd7e5cc521d71736e20ec1a856b6fde13b755f6 | c82b4b085930f7e7b617bcab9f2ab94abc9308ca |
refs/heads/master | <repo_name>japjeet26/imad-2016-app<file_sep>/ui/main.js
console.log('Loaded!');
alert("hello@");
var maadi= document.getElementById('maadi');
maadi.onclick = function(){
var x = setInterval(moveRight, 5);
};
var marginLeft=0;
function moveRight(){
marginLeft=marginLeft+1;
maadi.style.marginLeft= marginLeft ... | 0aa939e3dbd21a082fc959ab594f60f86d9550f1 | [
"JavaScript"
] | 1 | JavaScript | japjeet26/imad-2016-app | a4d895cc9d0236cb7996bea766941cda36f45557 | 52cd8b796f0d357fdf169f9954ac5582c662ad02 |
refs/heads/master | <repo_name>boywangqin/News<file_sep>/src/main/java/com/sss/configuration/ToutiaoConfiguration.java
package com.sss.configuration;
import com.sss.interceptor.LoginRequiredInterceptor;
import com.sss.interceptor.PassportInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewor... | 0c2104ef766f1c4bd9de3240dcf47196c7668c45 | [
"Markdown",
"Java"
] | 8 | Java | boywangqin/News | b2783d5b3a73421ba5f966072272a6bb38f0d182 | 42ea902e3b62472dff20ed5c417cad5aea71b40c |
refs/heads/master | <file_sep>module Githug
module UI
class << self
attr_accessor :out_stream, :in_stream
@out_stream = STDOUT
@in_stream = STDIN
def puts(string = "")
out_stream.puts(string)
end
def print(string)
out_stream.print(string)
end
def gets
in_s... | cee0662110cd676d53d87030771ebd813c68bc52 | [
"Makefile",
"Ruby",
"Markdown"
] | 61 | Ruby | sujiadu/githug | cffc04c919899e0bf51a64bd576e85da59ae2ed2 | 07baff05b3df5a708fb1f2da145018947a5ca1aa |
refs/heads/master | <repo_name>gorqkop/twitter_stream<file_sep>/README.md
twitter_stream
==============
Сбор твитов по ключевым словам в реальном времени
______________
Скрипт основан на библиотеке TwitterAPI (https://github.com/geduldig/TwitterAPI). Для запуска необходимо зарегистрироваться как разработчик в твиттере и получить consumer_... | c47fbff4f3b59dbbb94beb5bc831b678003bdcef | [
"Markdown",
"Python"
] | 2 | Markdown | gorqkop/twitter_stream | 955b98dc30dd35be91642af88801de76a5258718 | ad55c3ada1455eb25f6fd82a82320bd7186d021d |
refs/heads/master | <file_sep>
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(9, HIGH);
delay(1000);
digitalWrite(8,HIGH);
delay(1000);
digitalWrite(7,HIGH);
delay(1000);
digitalWrite(6, HIGH);
delay(1000);
digitalWrite(9, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(... | b94e462222be41b474177bac1b4291ea257a7ea7 | [
"C++"
] | 6 | C++ | abhishekove/Arduino | d06a06a107696e417ce28e1234635e231f500053 | 1f5307988f07b0cd2a547a4a4f7b417ad51f807e |
refs/heads/main | <file_sep>package dao.order;
import entity.db.AIMSDB;
import entity.order.OrderDB;
import entity.order.OrderInterface;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
/**
* @author
*/
public class OrderDAO {
private static O... | a362d1178c668780f3c287b4bd058b2024ccbdec | [
"Markdown",
"Java"
] | 17 | Java | nvvu99/DP.20202.16 | 5547234fb224f907284016a0e1f35088d10094c4 | 7035b982113cdfeba79b6599043723657df9b753 |
refs/heads/master | <file_sep>main_url= ""
l_username=
l_password=
browser=<file_sep>package Base;
public class Base_Class {
}
| 80da360e55397433018f7475a6d37715ac8f3190 | [
"Java",
"INI"
] | 2 | INI | SoftwareLearningTutorils/Travel_Website | 99ba4d068ed87f354f032207b86dae53f145b0c4 | 735dc694b2050ce7f02dc3007f156b13aff53f2e |
refs/heads/master | <file_sep>apply plugin: 'com.android.application'
apply plugin: 'android-apt'
def AAVersion = '4.0.0'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "cn.boweikeji.explorer"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
... | ec7e85cae1a4147fd1ef56bd7d60ae10b65c4823 | [
"Java",
"Gradle"
] | 2 | Gradle | wuqingnan/Explorer | 6fc3ce6bf4669932237cddc32ef1f751eedd573c | af8b5cd240b17e906f4a50f5c5bac72a60e236d2 |
refs/heads/master | <file_sep>import os.path
import pngQuestScan
##
## module: PngQuestScan
##
## qaFilesCheck( ...) looks for qa png file types, finding returns in list
## def qaFilesCheck( qPath, qNum, retList):
##
## fileExist( ...) checks if a file is on the local drive
## def fileExist( filename):
##
##
## testRe... | 1957584eabb96d758f78cd49d455a4aca0ef72ad | [
"Python"
] | 4 | Python | mcsd70480/qa | bb27427b03a997fa1a90f65b2a910ac476a3f9fa | b5c7b2b34a43c9bfb4143a0be4bd3a6f466f4142 |
refs/heads/master | <repo_name>c0d33py/news_template<file_sep>/news/migrations/0015_auto_20191224_2106.py
# Generated by Django 2.2.3 on 2019-12-24 21:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0014_auto_20191224_2051'),
]
operations = [
migrations... | 4c68d8054149f1a3f6f9e8d7a2dd4eb269849f97 | [
"Markdown",
"Python",
"HTML"
] | 16 | Python | c0d33py/news_template | 79891ab6a11d576417de080f6c5e9d20b1125e86 | 7988272a6c03e47312123fdc924c3f76091d937b |
refs/heads/master | <repo_name>isabella232/detect-audio-autoplay<file_sep>/media-element.js
var getSrc = require('./lib/get-src')
var DEFAULT_TIMEOUT = 300
var noop = function () {}
module.exports = isAutoplaySupported
function isAutoplaySupported (cb, timeoutDelay) {
if (typeof cb !== 'function') {
throw new TypeError('must specif... | 54e2e625a96b889e8ea1e0c1496865048d5d9a79 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | isabella232/detect-audio-autoplay | a2670a2b0f813b505cc55faa7f93f75851a2ca61 | dc4b190ae3879816f04c8c6eeac819ed8deb1e73 |
refs/heads/master | <file_sep>package com.fifa.restaurant.controleur;
import android.annotation.SuppressLint;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import androidx.annotatio... | 35d8773f19886f666b2f63730230cc7a2df9d571 | [
"Markdown",
"Java"
] | 12 | Java | Archaia-Jun/fifApp | ed357a4c4e0844906ad1e58cbcc27255ab049313 | 9c2e3fe00c0be89f56b96126291bc3f8ec619b33 |
refs/heads/master | <file_sep>import os
import numpy as np
from PIL import ImageFont, ImageDraw, Image
import cv2
def makeimage(fontpath='', txt='test', imgsize=(128, 128, 3), txtsize=128, name='data', folder=''):
img = np.ones(imgsize, np.uint8) * 255#白背景
color = (0, 0, 0)#文字色
font = ImageFont.truetype(fontpath, txts... | 643dcb4f8953f34d9bd887b09f8f64e102c6f2bb | [
"Markdown",
"Python"
] | 2 | Python | suku1/Charimg_generator | aebde91da1b5ec42e5393ce3502cffc0beba4414 | fa49011eee24233aabc5259979f6ff07dfcabfd3 |
refs/heads/master | <file_sep>/* opcode.c */
/* オペコードに対応した命令・オペランドを設定 */
#include <stdio.h>
#include "disasm.h"
/* 1バイトオペコードに対応した命令・オペランドを設定する関数 */
void Set_opc1(t_disasm *da){
switch (da->opc[0])
{
case 0x03:
strcpy(da->instruction, "ADD");
da->operand[0] = R32; da->operand[1] = RM32; da->operand[2] = 0;
break;
case 0x05... | f858961110679e056a487a67cc8d4835d7004883 | [
"Markdown",
"C"
] | 7 | C | o1210033/PEfile | 9ec9b03a564c2941599f6fe07a8b08490266d513 | 2d7bd2cee15ffb9f0f774ba96a84837185e85496 |
refs/heads/master | <repo_name>chrisjstott/lunchin<file_sep>/app/views/api/businesses/index.json.jbuilder
json.array! @businesses do |business|
json.id business.id
json.name business.name
json.photo_url business.photo_url
json.location business.location
json.latitude business.latitude
json.longitude business.longitude
json.d... | 7d9aa73a86b042e1c4fe12d9018cda8846771733 | [
"JavaScript",
"Ruby",
"Markdown"
] | 31 | Ruby | chrisjstott/lunchin | 225fca47e685c64375d29f2902bcbb53d5fc70c8 | 6f32f430b4c4f2210afb944d99fca909bbe6b4db |
refs/heads/main | <file_sep># tictactoe
java made tictactoe
<file_sep>package tictactoe;
import java.util.*;
public class Main {
public static void display(char[][] table) {
System.out.println("---------");
for (int i = 0; i < 3; i++) {
System.out.print("| ");
for (int j = 0; j < 3; j++) {
... | 3340fb2073973e559f8b2944c646958293173508 | [
"Markdown",
"Java"
] | 2 | Markdown | Attupatil/tictactoe | fb770057de1f7dbcaaeab96df1f82cec2f67eb12 | 4f81b1a31c49da2c02391ac953321e32effacedc |
refs/heads/master | <file_sep># Level 8
class Player
def play_turn(warrior)
# 表示不打算救了,因为法师的杀伤力是11,哥的血才20,救完退两格还是会被射死。
# select是一个映射函数,取出每个格子,判断是否是有东西的。这一句话的作用是判断前方三格是否有东西。
# unless等同于if not
unless warrior.look.select { |e| not e.empty? }.empty?
# 有的话就射之~
warrior.shoot!
else
# 没有就走~
warrior.w... | f785741133acf490a00ba25b91cf3b9bac6a9efa | [
"Ruby"
] | 1 | Ruby | stranbird/ruby_warrior | 034167b20b5fb3b97794b86d51764f4f93e590dc | c1447d7be94804f5d5bf58c177c48ca8309bd6f8 |
refs/heads/master | <file_sep>"# Inverser-Couleur-Au-clic"
<file_sep>(function app() {
"use strict";
var divEnfant = document.getElementById("enfant");
var divParent = document.getElementById("parent");
var btn = document.getElementById("bouton");
var changeColor = function changeColor(clic) {
... | 0b034cd2928e2e0df153bf531c4e8f85d23aaa25 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | StanDevWebJunior/Inverser-Couleur-Au-clic | 45745713d62b1b1c1bee2aa13deabbf39a82bf2e | 4391f6484a390b46ea99d17cbef43f4c94235cb8 |
refs/heads/master | <repo_name>huangguilin123/php-ext-collection<file_sep>/example/has.php
<?php
$collection = \Vtiful\Kernel\Collection::init([
'name' => 'viest',
'age' => 21
]);
$true = $collection->has('age');
$false = $collection->has('address');
var_dump($true, $false);<file_sep>/src/method.c
/*
+----------------------... | f313095b93d3db263c7451f5e333fd8144982e8b | [
"Markdown",
"C",
"JavaScript",
"PHP"
] | 71 | PHP | huangguilin123/php-ext-collection | 8bf52852a2160186a74acd825be8b692b0685aa0 | ca5852afa10a0b554e120f82d4a7bfaecf55ad04 |
refs/heads/master | <file_sep>class Noise
Noise_words = ["about", "after", "all", "also", "an", "and", "another", "any", "are", "as", "at", "be", "because", "been", "before
being", "between", "both", "but", "by", "came", "can", "come", "could", "did", "do", "each", "for", "from", "get
got", "has", "had", "he", "have", "her", "here", ... | 5673f508c0ad5278f4361501f3cc16b576f8df10 | [
"Ruby"
] | 8 | Ruby | wildfauve/cards | 84a43f449695579a3420cd60c340986750a11451 | 045a0cb5424b8be6e0f3e9ff4c1c94b89646b0d4 |
refs/heads/master | <repo_name>blippyblips/gsl_assimp<file_sep>/aiWrapper.h
#pragma once
#include <gsl/gsl>
#include <assimp/scene.h>
#include <assimp/cimport.h>
struct aiUtils {
static float animation_time(const aiAnimation* animation, float time_in_seconds)
{
float time_in_ticks = time_in_seconds * ticks_per_second(animation);... | 35b27b18c827b0415b53de4a3f87e4bc0c3472be | [
"C"
] | 1 | C | blippyblips/gsl_assimp | 86dba20f6c17128fbf96a353e3b6e651680ed4a0 | 9f9bce742ea6e2f0d306a66d592b4b533a7999ee |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import os
import ssl
import socket
from modules.export import export
R = '\033[31m' # red
G = '\033[32m' # green
C = '\033[36m' # cyan
W = '\033[0m' # white
Y = '\033[33m' # yellow
def cert(hostname, sslp, output, data):
result = {}
pair = {}
print(f'\n{Y}[!] SSL Certificat... | 010a9a7beb6f4b1e87b8436564d86e3e096b0083 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 26 | Python | thewhiteh4t/FinalRecon | 2f64052c51dc53cbaa8ecf3a17975004f9a51748 | 24ac05c9eaced37be1709049e9a344c49e6a9f8d |
refs/heads/master | <repo_name>DelBianco/ClassicalMechanics-II<file_sep>/README.md
ClassicalMechanics-II
=====================
Exercícios de Mecânica Clássica II
Os arquivos encontrados aqui foram feitos para estudo da Disciplina Mecânica Clássica II, do curso de Física Computacional, a idéia é resolver os exercícios propostos de forma ... | adcdb04b3013f3489ab06a9a203df832926167de | [
"Markdown",
"Python",
"Shell"
] | 5 | Markdown | DelBianco/ClassicalMechanics-II | 67686f5993d7140c2593e82dde6898e86764b27e | 13aa3682bef8c0469cddc7c74226e5fba7c4f2de |
refs/heads/master | <file_sep>package me.first.project;
/**
* @author SCT_Alchemy
* @date 2019/1/22 7:44 AM
*/
public class M2 {
/**
* public private final
* 公共 私有 只能赋值一次
*
* @param y
* @return
*/
public static int getResult(int y) {
int sum = y + 10;
return sum + 1;
}
... | 73d88b6dc944337dbd99feff1bd10b662fa04400 | [
"Java"
] | 2 | Java | Sugardr1nk/JavaCourse | bbae8d5ef74b4b6a52a622f6acc71fd2678510b6 | 0bd7ecc8d879eac3cc6cd59389bb8a3393c2b2c1 |
refs/heads/master | <repo_name>Erilysse/Cursus_ISI<file_sep>/include/MYSQL/config.php
<?php
// Connexion � la base de donn�es
$serveur = 'mysql:host=localhost;dbname=lo07';
$utilisateur = 'root';
$mot_de_passe = '';
?><file_sep>/Importation_Cursus.php
<html>
<head>
<title>Ajouter un étudiant</title>
<link rel='stylesheet'... | b68b6efce776054ced9e281b94f685d2ec7af0e2 | [
"JavaScript",
"SQL",
"PHP"
] | 18 | PHP | Erilysse/Cursus_ISI | 8d05d079184f30320c9a2486b8c2859170e53442 | dc3460c34d72f8b5175c7ad9089b68d3c9eae963 |
refs/heads/master | <file_sep>#include <iostream>
#include <vector>
#include <algorithm>
#include "customvec.h"
using namespace std;
class A
{
private:
int x;
public:
A() = default;
A(int x) { this->x = x; }
void get() { cout << x << endl; }
};
int main()
{
customvec<A> veco;
veco.push_back(A(12));
veco.push_back... | b16f0f1a33bdfb43378d88e78a3a38f45b155207 | [
"Markdown",
"C++"
] | 4 | C++ | Mher-av/Custom-STL-Vector | a7b7852b97af4f4114cbbb852dc5da662f65c471 | 32439b4086637a5610ddbb12c0e3afc1e430df1f |
refs/heads/master | <repo_name>qrohlf/lair<file_sep>/modules/concat/spec/system/empty_spec.rb
require 'spec_helper_system'
describe 'basic concat test' do
context 'should run successfully' do
pp = <<-EOS
concat { '/tmp/concat/file':
owner => root,
group => root,
mode => '0644',
force => true,
... | 245627e56abf1b987d1e0e854bd5d032abaa5528 | [
"Markdown",
"Ruby",
"Shell"
] | 11 | Ruby | qrohlf/lair | 949fb3a1646c8ad51d51d3bba54e373f7bc3a2a2 | da2051e6f9012c7c3d543293d41174378b779ee5 |
refs/heads/master | <repo_name>jsgf93/VisualDisabilitiesPatterns<file_sep>/Codigo/Proyecto/src/app/home/home.component.ts
import { Component, OnInit } from '@angular/core';
import {Http, Response} from "@angular/http";
import {MasterUrlService} from "../services/master-url.service";
import {NgForm} from "@angular/forms";
@Component({
s... | c840673875a0a92f00cd5e484df8eb310462a9d3 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 4 | TypeScript | jsgf93/VisualDisabilitiesPatterns | 6819962f55221b144342993a4f7ac34fb89b0cad | 0176c62dd240a71ebb1717de0cc15c9c7219f49d |
refs/heads/master | <file_sep>#ifndef _MARIO_H
#define _MARIO_H
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include <sys/types.h>
#include <fcntl.h>
#include "trace.h"
#include "ipcopr.h"
typed... | 35ba4898e277aa26f482b9083fbb8a9de5e11676 | [
"C",
"Makefile",
"Shell"
] | 8 | C | weicooler/agent_aix | 79eb0807653767ac65fdbe43068c3850084a6c8b | b33031cb1b060651c8551ad6d545aaa66472df30 |
refs/heads/main | <repo_name>iamsam14/Data-Structures<file_sep>/LinkedList/README.md
# Linked Lists
These are my notes on creating a linked list in javascript utilizing classes and in addition a few simple algorithms with detailed explanations
<file_sep>/LinkedList/DoublyLinkedList.js
const Node = function(val = null, prev = null, next... | e358d881b6e910d987429debb738eb82dd295198 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | iamsam14/Data-Structures | 98574172bc6f825a5936a359a26c8db5f4675410 | fc48a8693ebf9b3189b336806332bc54e22dda2c |
refs/heads/main | <file_sep>const express = require('express');
const app = express();
const MongoClient = require('mongodb').MongoClient;
const bodyParser = require('body-parser');
const cors = require('cors');
const fileUpload = require('express-fileupload');
require('dotenv').config()
app.use(cors());
app.use(bodyParser.json());
app.... | 23ccd62aafaa37c95eb04ddeed8eaa58f94e7527 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | masum-diucse/doctors-portal-server | 07c5b68089736faa6c718ee7b914cbf37374bb7d | c861855752e7670bcadf025f57a91284aedecae2 |
refs/heads/master | <repo_name>gurovandry/Task9<file_sep>/Task9/Task9/Forms/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Task9.Forms;
namespace... | 251fec7338fd44704fb9ed2b6947511d95e11594 | [
"C#"
] | 3 | C# | gurovandry/Task9 | f788c2ae62ca811c78b171b70fcc459cee3a9cec | 156c184d8e755ed17565dba643501d5b8b0470fb |
refs/heads/master | <repo_name>jkaveripakam/hello-world<file_sep>/restful-web-service/src/main/resources/messages_fr.properties
good.morning.message= France GOOD MORNING<file_sep>/restful-web-service/src/main/java/com/rest/webservices/restfulwebservice/user/UserDaoService.java
package com.rest.webservices.restfulwebservice.user;
import... | e4aaff823e31b66d9198e331cd16b087b6bc9d84 | [
"Java",
"SQL",
"INI"
] | 5 | INI | jkaveripakam/hello-world | be014f07852becef8f5c364e83ffa52da422ef52 | bfca17ce00a68d43450ef08ef76f7268d6fe7e9a |
refs/heads/master | <repo_name>GregoryDias29/Java<file_sep>/ExercicoDaAulaTresNomes.java
import javax.swing.JOptionPane;
public class ExercicoDaAulaTresNomes {
public static void main (String [] args) {
String nome1 = JOptionPane.showInputDialog ("Digite o primeiro nome:");
String nome2 = JOptionPane.showInputDialog ("Di... | 4052e48b1720c93b81e9c74ba28b5ad91673c8bd | [
"Java"
] | 30 | Java | GregoryDias29/Java | b1bd404b68b0207b7aba17ece546674fc9491ad0 | fb1342a1b5ae0bcaaf2723c59da8c8edd16b4f05 |
refs/heads/main | <repo_name>abelar-henrique/Landing_Page<file_sep>/js/index.js
document.getElementById("submit").addEventListener("click", saveData);
function saveData(e){
var phone = document.getElementById("phone").value
var email = document.getElementById("email").value
var textArea = document.getElementById("textArea"... | a4d12ae4c5a7e046f58d5d9ff8b2192353707278 | [
"JavaScript"
] | 1 | JavaScript | abelar-henrique/Landing_Page | 7d33e511264eb03446d2b6db64a54606363e85b7 | 08887bc5cb2616cd089a0d30c0a146885d9452dc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.