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>lmy766/lmy766.github.com<file_sep>/README.md
# lmy766.github.com
lmy766 github pages
# Test
test github pages<file_sep>/js/readfile.js
var fileUrl="./logs/log.txt";
$(document).ready(function(){
$("#b01").click(function(){//比如再按钮的单击事件中
htmlobj=$.ajax({url:fileUrl,async:false});//通过ajax读取test1.... | 194812ac7fe405255b98025b2df8c012f11101da | [
"Markdown",
"JavaScript"
] | 4 | Markdown | lmy766/lmy766.github.com | 250d7212743c86b6d544cfefdc72a31b60201e7b | 605d4aefccb307044b2bb0ae56700405f4fb4862 |
refs/heads/master | <repo_name>ivoivano/moiazza<file_sep>/admin/libs/utility.lib.php
<?php
$smarty->assign('tpl_page_title', 'Gestione utility');
# set the current language
$_SESSION['lang_id'] = isset($_REQUEST['lang_id']) ? $_REQUEST['lang_id'] : (isset($_SESSION['lang_id']) ? $_SESSION['lang_id'] :'IT');
$smarty->assign('lang_id', $_S... | 45d1009fc171a34d618116693d22f23776fe300f | [
"PHP"
] | 10 | PHP | ivoivano/moiazza | 1ac9f123663cbc7919d8ebba1461da86f62ecc7f | fa87b95346c055a5e92bf214d92c1c8a21a0d80d |
refs/heads/master | <file_sep>export default{
api_url: 'http://192.168.127.12:8081',
}<file_sep>import React, { PureComponent } from 'react';
import styles from './Login.less';
import { formatMessage,FormattedMessage } from 'umi/locale';
import {connect} from 'dva';
import logo from '../../assets/logo.svg'
import banner from '../../asset... | ca0b12520359c44e47e0c0f50fcd456e5e74316d | [
"JavaScript"
] | 17 | JavaScript | dadawanan/react-admin-web | ca9ee084480ad133ce804cbc20a8f32152cc7bf9 | 76ad8bc695cda5698335260e0bc1f0721a5de0f2 |
refs/heads/main | <file_sep>import styled from "styled-components/native";
import colors from "~/styles/colors";
export const Container = styled.View`
background-color: ${colors.white};
flex: 1;
justify-content: center;
align-items: center;
`;
<file_sep>export default {
primaryColor: "#006400",
secondaryColor: "#FFA500",
... | 15d80a8ca1bdf169b8c9111af9b96d079f2b17cf | [
"JavaScript"
] | 5 | JavaScript | fernandosev/PayMeMobile | 285f4a5dfbd3c7fd0c094256389d9402ea7bee4b | b36f5ad56455bc0480c03aa702f9fc4161952f81 |
refs/heads/master | <file_sep>package com.jiangew.service.contacts;
import com.jiangew.protobuf.contacts.Contacts;
import com.jiangew.protobuf.contacts.Person;
import java.io.FileInputStream;
/**
* 读取 Protobuf 序列化文件
* Author: Jiangew
* Date: 30/03/2017
*/
public class ListPerson {
/**
* 打印通讯录中联系人信息
*
* @param co... | 6b9db2796b7c32085e083167bab3a67ae8d357c6 | [
"Markdown",
"Java"
] | 2 | Java | Jiangew/protobuf-java-learning | 634dd4a2db75f60124a2d3ad248dd607ed329ab4 | a6cdd91383b8277fc67aa82937dcdeab7289236a |
refs/heads/master | <repo_name>loganetherton/dyson<file_sep>/lib/loader.js
var _ = require('lodash'),
fs = require('fs'),
path = require('path');
// Array to hold complete results for each require type
var completeResults;
var load = function(configDir) {
var methods = ['get', 'post', 'put', 'delete', 'patch'],
configs = {},
meth... | 368ab55e89fb7e173952c599d51b400b049580e1 | [
"JavaScript"
] | 1 | JavaScript | loganetherton/dyson | 2e955e4ebc39fe3b844df49454ad8fcaf09ea61e | 0f4d6f0e03b2b9da74b6d870583fd28a4f17e87b |
refs/heads/master | <repo_name>luobotang/lazy-invoke<file_sep>/index.js
var DEFAULT_DELAY_TIME_MS = 50
/*
* @param {function} fn
* @param {number} [delay=DEFAULT_DELAY_TIME_MS]
* @param {Object} [context] - used as `this` when call fn
* @returns {function}
*/
module.exports = function (fn, delay, context) {
if (typeof fn !== 'func... | e8b85a4d361e0810cf4d6a68091dcfee692c2a02 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | luobotang/lazy-invoke | 320e07009843f6c8bd50ad6717ae47e046cad582 | cee1e6623d10986b42cd3718d9aea4544f5c4639 |
refs/heads/master | <repo_name>RobertPastor/calculator<file_sep>/hello/calculator/TestFileFile.py
# -*- coding: utf-8 -*-
import time
import profile
from antlr4 import FileStream, CommonTokenStream
#from antlr4.PredictionContext import PredictionContextCache
#from antlr4.dfa.DFA import DFA
#from antlr4.atn.ParserATNSimulator import Parse... | f3d7745c26823447992482a8b8b80dde7b2f234f | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 17 | Python | RobertPastor/calculator | 59ad441455c8540c2099e09fed1bada876cca9db | 0066bf190c0c3b0c3c3d5ae0380b75a81455a239 |
refs/heads/master | <repo_name>Miroku87/reboot-docker<file_sep>/client/app/scripts/controllers/LiveEventsManager.js
/**
* Created by Miroku on 11/03/2018.
*/
var LiveEventsManager = function () {
return {
init: function () {
window.localStorage.removeItem("evento_mod_id");
this.setListeners();
... | 975b8e0f0011ef50c6fdfaac0e432b4674617e63 | [
"SQL",
"JavaScript",
"Markdown",
"Makefile",
"PHP",
"Dockerfile",
"Shell"
] | 58 | JavaScript | Miroku87/reboot-docker | 66c37ace47178ba3c5e21920339c99a6ad89e2fb | 65c8ebe09495ebaa9e650812add07851fc716aff |
refs/heads/master | <repo_name>jamoji100/bannerPrototype<file_sep>/js/app.js
"use strict";
let overlay = document.getElementById('overlay');
let loadbg = document.getElementById('loadbg');
let open = document.getElementById('open');
let close = document.getElementById('close')
// close the lightbox and prevent mouseover
function closeli... | ab3342a2b4ce0772357f97ed182bcda10b6191fa | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | jamoji100/bannerPrototype | 5a77f9934352718590c89c7c2da88ed957d785f5 | 393ebea2207ee7c78b6b2fbbc36342af5601888c |
refs/heads/main | <file_sep>from random import *
import turtle as t
t.shape('turtle')
t.speed(2)
vy=20
x=0
y=0
k=0.75
while (1):
x += 1
y += vy
vy -= 1
if (y<=0):
vy = k*abs(vy)
t.goto(x, y)
t.exitonclick()<file_sep>import turtle as t
n=int(input())
l=40
a=15
k=1.2
t.shape('turtle')
t.spe... | 92494526e2841d187337325c5c0c2d6cf40e5b27 | [
"Python"
] | 16 | Python | firsovviktor/14.09 | e7cec2ca69f9dec831f5259750af135a840ea0a6 | 9df0165f977ecccf94619321569eaf2a6622721b |
refs/heads/master | <repo_name>DanielBrozoski/TrabalhoPdP<file_sep>/Knight.java
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class Knight extends Personagem{
static String imagens[] = { "a_front0.png", "a_front1.png", "a_front2.png",
"a_left0.png" , "a_left1.png" ... | e8576436330185684601873e1e4e6346b52b7515 | [
"Java"
] | 4 | Java | DanielBrozoski/TrabalhoPdP | bebf2c11f50d163764768b91fad8309053aba149 | dc0bd251c2401b082d6cc60892b955480bbc42d8 |
refs/heads/master | <repo_name>peta727/dotfiles<file_sep>/dotfilesLink.sh
#!/bin/sh
ln -sf ~/dotfiles/.vimrc ~/.vimrc
ln -sf ~/dotfiles/.gvimrc ~/.gvimrc
ln -sf ~/dotfiles/_vimrc ~/_vimrc
ln -sf ~/dotfiles/_gvimrc ~/_gvimrc
| d46dd4a55f98378d57b790560bc01a69d87492a6 | [
"Shell"
] | 1 | Shell | peta727/dotfiles | 50d9f3e54e968ecb79d70cd8fb673744f427aae6 | 47d86d0bbd5f47b3115e4fbcdc4046d923be4fa5 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model.User
{
public class UserChangeMoney
{
/// <summary>
/// 总列数
/// </summary>
public int rows { get; set; }
/// <summary>
... | ee9d3a787235b547917c5882ee58a59a02cdf34c | [
"C#"
] | 18 | C# | WuJunYin/Game | f1654f4a6e540d206c3723be7dbf2e3e1c2207b3 | c602e0cf0da20beebcd525aea2a39cb0710327c6 |
refs/heads/master | <repo_name>snowdrop/istio-java-api<file_sep>/scripts/generate_metadata.sh
#!/usr/bin/env bash
set -e
DECL_DIR=${PWD}/istio-common/src/main/resources
CRD_FILE=${DECL_DIR}/istio-crd.properties
APIS_TMP=${DECL_DIR}/apis_dir.tmp
ADAPTERS_TMP=${DECL_DIR}/adapters_dir.tmp
TEMPLATES_TMP=${DECL_DIR}/templates_dir.tmp
PACKAGE... | f2dfd32799d1e8a0de661f42e361bca7731b7011 | [
"Maven POM",
"Makefile",
"AsciiDoc",
"INI",
"Java",
"Go",
"Go Module",
"Shell"
] | 50 | Shell | snowdrop/istio-java-api | ae90eed49f42c10f66cd8f89448695e4139bdedf | 9ff5d04b2d8faad33992ca731c1ddfdf7650e5e7 |
refs/heads/main | <file_sep>module github.com/glassechidna/lambdaeip
go 1.16
require (
github.com/aws/aws-lambda-go v1.24.0
github.com/aws/aws-sdk-go v1.40.0
github.com/pkg/errors v0.9.1
)
<file_sep>package main
import (
"context"
"encoding/json"
"fmt"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda... | 0928277d2b59a51b99d6d9741233f75c79e12ede | [
"Go",
"Go Module",
"Markdown"
] | 5 | Go Module | syllogy/lambdaeip | a9f1b4cf58b83338c4e203e838e14554df8f3f34 | 35d4c3ae5765a03cd24f8d10b9ef19b514f103e5 |
refs/heads/main | <repo_name>mapurva49/Hacktoberfest2021<file_sep>/Overloading of [ ] operator.cpp
#include<iostream>
using namespace std;
class array
{
private:
int a[10];
public:
void insertdata(int index, int value)
{ a[index]=value; }
int operator [](int index)
{ return(a[index]);}
};
int main()
{
array obj;
int i;
for(i=0;i... | fd93f79cc01e61034abfc6c09008335a2357f357 | [
"Markdown",
"Python",
"C++"
] | 7 | C++ | mapurva49/Hacktoberfest2021 | 2cd8cf6690b92ad0b946ed6842d6e953fe617acd | 4da42527074751a4798fdfd73ea15342214f292a |
refs/heads/master | <repo_name>mdullah10/MyFirstWork<file_sep>/DataType.java
package Core.java;
public class DataType {
// class-- access modifier of a object --blueprint of a object
public static void main(String[] args) {
String firstName = "Md";
String lastName = "Ullah";
System.out.println(firstName+" "+lastName);... | 491ef3bd58844015cdda39f221c4eddbec127be8 | [
"Java"
] | 4 | Java | mdullah10/MyFirstWork | 10cdf9593a985098b0bb061df4dd8f2894cbea3f | 803d20317277c244a8e67b19c848b64a99939f7f |
refs/heads/master | <repo_name>Buyaya/spider<file_sep>/venv/Lib/site-packages/pooled_multiprocessing/__init__.py
from multiprocessing import get_context, current_process
from threading import Thread, RLock, Event
from time import time
from psutil import cpu_count
from more_itertools import chunked
import logging
import os
from .waiter imp... | 6f808b0978c4a6907ed07ba693b5fd5bf4db0bb9 | [
"Python"
] | 3 | Python | Buyaya/spider | d19cd6d78115e342484f905103370024173d5c45 | ca308fbf4cc61c13b1ad2fa54b3b94e013889a0b |
refs/heads/master | <repo_name>mariiapaniutina/js_application_design<file_sep>/src/js/controller.js
var controller = function(){
return 'CONTROLLER!';
};
console.log(controller());<file_sep>/CHANGELOG.md
<a name="1.1.12"></a>
## [1.1.12](https://github.com/mariiapaniutina/js_application_design/compare/v1.1.11...v1.1.12) (2016-01-31)
... | a14ac983503ef5248def8ba7a99e92eca1ff42c6 | [
"JavaScript",
"Text",
"Markdown"
] | 10 | JavaScript | mariiapaniutina/js_application_design | f279fb7f0534623a7f140c05810a97c0a3169c84 | d9c097f211382dd6d5c76189f97a29f7224e2b39 |
refs/heads/master | <file_sep>#grpup1:
#The Goal: Like the title suggests, this project involves writing a program that simulates rolling dice. When the program runs, it will randomly choose a number between 1 and 6. (Or whatever other integer you prefer — the number of sides on the die is up to you.) The program will print what that num... | aa6fbadadda8df988f83c9eaa20497d774b2a05f | [
"Python"
] | 1 | Python | NehaAgarwal20/Rolling-dice | f4c4fc2cce9456d658be4de04f47b6bca63ff10c | 44e2a9529d16558eda8629942ac53c399508ce14 |
refs/heads/master | <file_sep><?php
/**
* patching arc eslint into an extension so we can
* version control it in Site development
*/
phutil_register_library_map(array(
'__library_version__' => 2,
'class' =>
array(
'ArcanistESLintLinter' => 'src/ArcanistESLintLinter.php',
),
'function' =>
array(
),
'xmap' =>
arr... | 560956c43d516e7789754ab06868a5268a27915d | [
"Markdown",
"PHP"
] | 2 | PHP | ninacfgarcia/arcanist-extensions | 578eed691cc69043b97fee951803f2e94929b608 | 9c0761c057cec5484abe2d975e438c4b6e97dd9f |
refs/heads/master | <repo_name>edgrduan/gitdemo<file_sep>/src/com/duan/log/Log.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.duan.log;
import org.apache.log4j.Logger;
import o... | a9b1778500a0b67c80a498ecaf7dd82775480521 | [
"Java"
] | 1 | Java | edgrduan/gitdemo | 2f9c65cce739339ec80a8dc6c5d1cfcdef96d6bd | 816503302c9ae8aee99e2b9fdae54dceb2d9a688 |
refs/heads/master | <file_sep>var app = angular.module('trip', []);
(function () {
'use strict';
app.config(function () {
});
})();
'use strict';
describe('TU : Flights controller ', function () {
var createController;
var ryanAirFlightsService;
beforeEach(module('trip'));
beforeEach(m... | 59eba28a07b3cebabd5d7668838200863f3d4b0e | [
"JavaScript"
] | 4 | JavaScript | frasp/fair | 227cca61e69869f365ddd63d293b4ad07dc57c71 | 99a82343b1e6c2e7a9cabf1b688d05285c1f3c72 |
refs/heads/master | <file_sep>import binascii
string_input = open('s1c8.txt').read().splitlines()
for line in string_input:
line_bytes = binascii.unhexlify(line)
blocks = [line_bytes[start:start+16] for start in range(0, len(line_bytes), 16)]
for block in blocks:
if blocks.count(block) > 1:
print("Detected!... | 80d7f27159f99fe0834c74ff67b7ec7191689101 | [
"Markdown",
"Python"
] | 6 | Python | allrounder27/cryptopals_set1 | 4cf23fe0ff73298b01a59653b5a138ff4234d7d5 | 0433474b1dedd12fc8e64ccada89fddc231c5169 |
refs/heads/master | <file_sep>spring.application.name=eureka-consumer
server.port=8101
eureka.client.serviceUrl.defaultZone=http://localhost:8000/eureka/
eureka.instance.lease-renewal-interval-in-seconds=5
eureka.instance.lease-expiration-duration-in-seconds=5<file_sep>spring.application.name=upload-server
server.port=8004
eurek... | ec524762cd494313fbd44cbf87a1132b642f0f71 | [
"Java",
"INI"
] | 7 | INI | kevinYuan2017/spring-eureka-server-quickstarter | f3bd6340dd68aa6a205db35a8cd5c2749a9d43a3 | fe37666daf4b655ec3dffbfb95d9d886709f2963 |
refs/heads/main | <file_sep>import numpy as np
def update_mspk(mspk, sspk, nspk_vec, group_units, clu, ignoredClu=[]):
unique_clu = np.unique(clu)
unique_clu = np.setdiff1d(unique_clu, ignoredClu)
n = len(group_units)
x = np.where(unique_clu == group_units[0])
sum_spk = np.squeeze(mspk[:, :, x] * nspk_vec[x])
... | 0bf96987c91e043c5a97bd3b83a0fb4ea080cbba | [
"Markdown",
"Python"
] | 14 | Python | EranStarkLab/AutomatedCurator | 35760cb7482ea7b2bb5224bc501a16470f8e2345 | 5422e13f7eb0f55b9b3918bd1411b9a5016cee30 |
refs/heads/master | <file_sep>// CRUD: Simple Create, Read, Update, Delete api operations for data management.
import { Router } from 'express';
const request = require('request');
const path = require('path');
const fs = require('fs');
import log from '../../helpers/bunyan';
import appConfig from '../../helpers/config';
import { Result... | f695145478c620f9c10bef9d6e4594002c17cac4 | [
"Markdown",
"TypeScript",
"Dockerfile"
] | 3 | TypeScript | fyun89/whos_next | 785f1dcc3ffa3f3a6441ae733c635bcc7a03ce4d | a92e196e12102a23074dbca98e41bb3d1ca8361a |
refs/heads/master | <file_sep>package core;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import util.Constants;
import util.Constants.CellColor;
public class ColorCell extends Cell {
private CellColor cellColor ;
public ColorCell(int row, int col, CellColor cellColor , GridCell gridCell) {
super(r... | 322ecbf22f247e2e818091eaf5f9fb95fa00ad8c | [
"Java"
] | 4 | Java | cuviengchai/progmeth-1 | c1e2b2b119172bebf26324878e04075be693ccbe | 4ade229c3456ff994abb4bd1d7da0dc08614cd5f |
refs/heads/master | <repo_name>YosefLehrer/pokemon-teams-nyc-web-062419<file_sep>/pokemon-teams-frontend/src/index.js
const BASE_URL = "http://localhost:3000"
const TRAINERS_URL = `${BASE_URL}/trainers`
const POKEMONS_URL = `${BASE_URL}/pokemons`
const whereTheStuffGoes = document.getElementById("whereTheStuffGoes")
let fetchArr;
fetch(T... | afaca0d87066c7ab3deeec43311110ac0d9e63aa | [
"JavaScript"
] | 1 | JavaScript | YosefLehrer/pokemon-teams-nyc-web-062419 | 92d302910b20cfd118010f5eb131ebeb9f22fe5e | caab07aaad0dcada8a364b9bedb69b3fd7dc0d84 |
refs/heads/master | <file_sep>package level3.maps;
public class PathMap {
}
<file_sep>package level2.web.diagrams;
public class IncludesViewer {
}
<file_sep>package utils.storage;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
pu... | a029dbcf746c6f74b9cdf3420a4e6e32b5ff5595 | [
"Markdown",
"Java",
"INI"
] | 37 | Java | x29a100/NodeBase | 40124ddd3d8b2fbf47b6a97049f59ede48caf46d | 02c585caaf561db32ee8916916b522f470532f3b |
refs/heads/main | <repo_name>abdelrahim-hentabli/Skychart.js<file_sep>/src/padzeroes.js
function padzeroes(number, size){
return number.toString().padStart(size, "0");
}
export default padzeroes;<file_sep>/src/csvreader.js
import stars from './topstars.js'
import Star from './star.js'
import {currentTime} from './globalvars.js'
... | 05599a7f39e61af3ed5f4c9e4f8b8b0ca74ccca7 | [
"JavaScript"
] | 7 | JavaScript | abdelrahim-hentabli/Skychart.js | 2354635bc596c3ecb8200eeb9caaa217bf655e3e | b03bdcff7465aa03d5424bb70d58532545d8a241 |
refs/heads/master | <file_sep>
#include <thread>
#include <ros/ros.h>
#include <nodelet/nodelet.h>
#include <image_transport/image_transport.h>
#include <sensor_msgs/image_encodings.h>
#include <gst/gst.h>
#include <gst/app/app.h>
namespace gst_video_server {
namespace enc = sensor_msgs::image_encodings;
GstClockTime operator "" _sec ... | 884b8634842c2691e92367cd27d39d11db738aaf | [
"Markdown",
"CMake",
"C++"
] | 4 | C++ | kuang93/gst_video_server | 0eef9857f32b509769f630d78dacc5275e0a2724 | 1e724421f7eecc6c3d7a3a3f0a4eae0b81647976 |
refs/heads/master | <file_sep>source 'http://rubygems.org'
used_installer = File.exist?("USED_INSTALLER")
USING_WINDOWS = !!((RUBY_PLATFORM =~ /(win|w)(32|64)$/) || (RUBY_PLATFORM=~ /mswin|mingw/))
# to avoid bundle install problems in Windows
if USING_WINDOWS
gem 'eventmachine'#, '1.0.0.beta.4.1'
else
gem 'spawn', '0.1.4'
end
gem ... | 8d0ad559d4ec94e365e37f41a755956ad1b5d324 | [
"Markdown",
"Ruby"
] | 2 | Ruby | sunil-sharma/awetest_windows_gemfile | 1858c432cccb2c1d2fb007ff173dd6308779928d | a92c706f8d3b0145fb524e5196572751a484b122 |
refs/heads/master | <repo_name>baldguysoftware/postfix_exporter<file_sep>/postfix_exporter.go
package main
import (
"flag"
"fmt"
"net/http"
"os"
"sync"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
)
const (
namespace = "postfix" // For Prometheus metrics.
)
var (
listenAddress = flag.String("te... | 0f2e7c7adccaf800c5ab51e7b22116a0a6394269 | [
"Markdown",
"Go",
"Makefile"
] | 3 | Go | baldguysoftware/postfix_exporter | 979a35dfed564a16c7619e80ecb6293b5eacd9bf | 2592b00f4a3e90b8b8d8ccc1d8d54ceaa540198b |
refs/heads/master | <repo_name>niftit/learning-strategies<file_sep>/js/scripts.js
var SliderProfileTeamItem = function() {
$('.profile-team-item').on('click', function() {
var index = $(this).index() + 1;
console.log(index);
//
if($('.profile-inf-item:nth-child(' + index + ')')) {
$('.profile-inf-item:nth-child(' +... | d656afba45b9135b7e9d7ea5a2030f4e20d84f4b | [
"JavaScript"
] | 1 | JavaScript | niftit/learning-strategies | 294784f0ff5cf371219ba1abfdb46ef7bf2b8e43 | 012d8c34a998b4dcaceedaa9ce1d569f308e19dc |
refs/heads/master | <repo_name>Tsite2007/Threejs-vue-webpack<file_sep>/src/router.js
var context =require("../src/libs/interface/context.js");
module.exports = [{
path: '/',
name: '/',
meta: {
title: '导航',
author:"马腾"
},
component: resolve => resolve(require('./views/nav.vue'))
},
{
path: context.n... | a0708f8d876e3ef4c19b147c6bfe5e135af61168 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Tsite2007/Threejs-vue-webpack | a359a7e396336e2be9f0e397c4e560158d8bf8bf | a820f4f71c05810b9905606a34ef91551bfee0df |
refs/heads/master | <file_sep>import React, {Component} from 'react';
// 弹出框组件
import { Prompt } from 'react-router-dom';
export default class Add extends Component {
constructor() {
super();
this.state = {
blocking: false,
}
}
handleSubmit = () => {
let name = this.name.value;
let userStr = localStora... | 98a23d40315407fecf605c7adb61cd09c62d45bf | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | zWorker9902/20180807reactrouter | 02090492008b5be9b1fecc1680b45771f31f3d67 | 806e01bb3ecfd16d491cdf8782956072d5f604dc |
refs/heads/master | <repo_name>james-zedd/simple-todo<file_sep>/app.js
const express = require('express');
const exphbs = require('express-handlebars');
const app = express();
const bodyParser = require('body-parser');
// Express Handlebars Middleware
app.engine(
'handlebars',
exphbs({
defaultLayout: 'main',
layoutsDir: __dir... | 3e91352d15068da478fb254ac8cc0076cc3f8d35 | [
"JavaScript"
] | 1 | JavaScript | james-zedd/simple-todo | 7272ba54ae7590b7ab0021103c8e0d117467fd74 | 4b0330bee42db553e757552328d3651d5d444f4d |
refs/heads/master | <repo_name>samyuktaprabhu/APT-sem4-EndSemQuestionPapers-solution<file_sep>/07-05-2016Q4C.py
def decimalToBinary(num):
"""This function converts decimal number
to binary and prints it"""
if num > 1:
decimalToBinary(num // 2)
print(num % 2, end='')
def dectohex(num):
if num>1:
dectohex(... | 8bd470d383676a47cccc496277fa9928c0dca42b | [
"Markdown",
"Python",
"Ruby"
] | 12 | Python | samyuktaprabhu/APT-sem4-EndSemQuestionPapers-solution | c0c966e376211490ef20330ecef53d2a9f97e94c | ccc9972356522ae1e512328ce054154a718fd021 |
refs/heads/main | <file_sep># Rock-Paper-Scissors-Game
My first python program, created a simple rock paper scissors game that compare the users input with a computer generated option selected randomly out of 3 choices.
<file_sep>import random
rps = ["rock", "paper", "scissors"]
pScore = 0
aiScore = 0
rndmPick = ""
playerChoice =... | 9b86a1809f6e5064a271e98e082a1644a306d447 | [
"Markdown",
"Python"
] | 2 | Markdown | EthanHunter08/Rock-Paper-Scissors-Game | cffc608681abd5f741841d21c03b846554d20ba7 | 4671f37e3cd3f8769d9960920c736c66c3e82561 |
refs/heads/main | <repo_name>StewedChickenwithStats/Answers-to-Python-Crash-Course<file_sep>/chap2/2-9.py
num=12
message= "My favorite number is "+str(num)+"."#要把非字符串值表示为字符串
print(message)
<file_sep>/chap2/2-2.py
message="you"
print(message)
message="me"
print(message)<file_sep>/chap5/5-7.py
favorite_fruits=['banana','apple','pear']
i... | 647f3dad23077ef7bbdb8bb79c4ad6b78d1b648c | [
"Python"
] | 89 | Python | StewedChickenwithStats/Answers-to-Python-Crash-Course | 9ffbe02abba5d111f702d920db7932303daf59d4 | df818245985b092729c92af2f0d80f3b71b8eb20 |
refs/heads/main | <repo_name>juansevargasc/SwiftUIIntro<file_sep>/Platzi/Platzi/TextMod.swift
//
// TextMod.swift
// Platzi
//
// Created by <NAME> on 16/09/21.
//
import SwiftUI
struct TextMod: View {
var body: some View {
Text("Hola mundo!!!,")
.font(.largeTitle)
.foregroundColor(Color.blue)
... | a93cbcbd874ad1a3a9a47d0c9c3cbbbcb99c87f4 | [
"Swift"
] | 13 | Swift | juansevargasc/SwiftUIIntro | 9d4de098400f38ac9972174cc060b0fd5eb94e77 | 6ccb2494d2db0e967c36f1a68ac6ebb6b883dd88 |
refs/heads/master | <file_sep><?php
require("mysql_DB.php");
// initialize database
open_database();
header ('Content-type: text/html; charset=utf-8');
?>
<html>
<head>
<?php
if ((!array_key_exists('date_von',$_REQUEST)) or
(!array_key_exists('date_bis', $_REQUEST)) )
{
$today=time();
$date_bis=date('d-m-Y', ... | 2e4c67b397f2142f4bbc9adf3839d3ead53adb47 | [
"Markdown",
"PHP",
"Shell",
"Lua"
] | 12 | PHP | roman65536/weather | 45e0bc949b859c8cd9c6a3240640f5b48bebf9b2 | 6d51d9149e39cc474d604fe4c96a5058e846314b |
refs/heads/master | <file_sep>using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Calamari.Common.Commands;
using Calamari.Common.Plumbing.Logging;
using Calamari.Common.Plumbing.Pipeline;
using Calamari.Common.Plumbing.Variables;
using Microsoft.Azure.Management.R... | b51b6a572433f534634fd0c1bf48610778a47185 | [
"Markdown",
"C#",
"Python",
"Java Properties",
"Shell"
] | 1,025 | C# | OctopusDeploy/Calamari | 6bc2bd56eb30c6c27aef6a13c53d1c5fb51231f7 | 0f338fa24f394036921cecbac487786b8ccfca0c |
refs/heads/master | <file_sep>package com.frozen.tankbrigade.map.paths;
import com.frozen.tankbrigade.map.model.GameBoard;
import com.frozen.tankbrigade.map.model.GameUnit;
import com.frozen.tankbrigade.map.model.TerrainType;
/**
* Created by sam on 09/03/14.
*/
public class AStarBoardAdapter implements AStarMap {
private GameBoard b... | 41b6dba60e1081331451a1f594046bc07c90bb5c | [
"Java",
"Gradle"
] | 22 | Java | sammyer/tankbrigade | 0904105fda0fa5e6c46ac3898eb683e238d0371d | 7a83f2d2741f44710e1b32da54bfaff09cad3e04 |
refs/heads/master | <repo_name>wammamms/ProjectTB<file_sep>/app/src/main/java/com/seventyseven/projecttb/utils/DatabindingHelper.kt
package com.seventyseven.projecttb.utils
import android.app.Activity
import android.content.Intent
import android.graphics.Color
import android.graphics.Paint
import android.view.View
import android.widget.G... | c00023212b517090b6d9bbb819e9ad168f743e88 | [
"Java",
"Kotlin"
] | 3 | Kotlin | wammamms/ProjectTB | a0eea9322ec9a1e86b931a9a691f7fdd66f4edbb | 252bf6624c0db31a97c59fb2b3acff0ae6d08f2f |
refs/heads/master | <repo_name>Bob-Paulson/ShotInTheMouthPHP<file_sep>/frame.php
<?php
function __topFrame__ ($num_stars) {
for ($i = 0; $i < ($num_stars * 2) + 2; $i++){
echo "*";
}
echo "<br>";
}
| b6d46d15ec7c414346a2a76afc66b1d4b794b888 | [
"PHP"
] | 1 | PHP | Bob-Paulson/ShotInTheMouthPHP | 72f33b7b6631a948ffa9ab02729a245caebed02f | 174257d6ae622621540f9e04d128f94bc5d0afda |
refs/heads/master | <file_sep>-- 工具
-- yueqiumao (<EMAIL>)
-- 获取开机到现在经过的毫秒数
function millis()
return rtos.tick() / (16384 / 1000)
end
<file_sep>## 大球车
这里是大球的小破车,大球的小破车将来可是要上天的
QQ群:227819081<file_sep>-- 负责与服务器交互
-- yueqiumao (<EMAIL>)
Network = class("Network", Component)
local TAG = "Network"
function Network:get_setup_priority... | 71ca9b994b2725d0571c6ca4f810b62dd03dcb34 | [
"Markdown",
"Lua"
] | 3 | Lua | bpiq/bbc | 28c6eccb027776c909afc5ba0cbee5a5bbfde319 | 60b385edcd52a13361f94d7a254d68f97b09a1b3 |
refs/heads/master | <repo_name>lzhice/visualization<file_sep>/src/exceptions/configloadexception.cpp
#include "configloadexception.h"
QString ConfigLoadException::context;
<file_sep>/includes/wysiwyg/editsignal.h
#ifndef EDITSIGNAL_H
#define EDITSIGNAL_H
#include <QPointer>
#include <QWidget>
#include <QLayout>
#include <QPushButton>
#i... | d63c0ac5915151e98a12287598a707b3a229b189 | [
"Markdown",
"INI",
"Python",
"C",
"C++"
] | 67 | C++ | lzhice/visualization | 568f110f221c6c4e081b07016a0499e28176cf21 | efdb9597d7dc8f3ab90b852cf330a9dd4741e644 |
refs/heads/master | <file_sep>/*
Copyright 2016 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | a6b18dc2013a64e4deef6f205916f2a59f9d43ea | [
"Markdown",
"Go"
] | 16 | Go | vjkoskela/gosteno | 0c748325dfdf41b86cf66d71c72514edd93c1a54 | 0b8890a5d3ca7141e71ce402fc95f6af520f50d4 |
refs/heads/master | <repo_name>ctestabu/GNL<file_sep>/GNL/get_next_line.c
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c ... | 13313eb260fd36ad5e5bd844437555f855f930fb | [
"C"
] | 1 | C | ctestabu/GNL | 14abd2363a5aab76d2b53f0ce1b82eae9e7bb050 | 2c0e4caa0ee388842e3766578eb4f16f7999640d |
refs/heads/main | <file_sep>var express = require("express");
var server = express();
var bodyParser = require("body-parser");
const morgan = require('morgan');
const model = {
clients: {},
reset: function() { this.clients = {} },
addAppointment: function (name, date) {
// Update date object
date = {...date, status: 'pend... | 93650ecc453ed32bd2c360fd8f89d92dd292493f | [
"JavaScript"
] | 1 | JavaScript | donmonty/RepasoM3-main | 4640dc93d9c41b97938867ec2c33d01b8e290393 | 163270ff35eea1aaffa6e948a6073b013d66b837 |
refs/heads/main | <file_sep>#include <iostream>
#include <ctime>
/// <summary>
/// TripleX Small Game to learn C++ || cl main.cpp /EHsc <- Removes Unnecessary Warnings
/// </summary>
void PrintIntroduction(int Difficulty)
{
//print welcome messages to the terminal :: Statements
std::cout << "\n In the medieval times, there was one ... | e0f080fa7bf26cc545ce039ca6635d8baca9a8a9 | [
"C++"
] | 1 | C++ | Pimmez/TripleX | 18634fcd423bef0bf17fb519af57145873f8ae65 | 641ef910a1baac20c59d8833fe8f30b95afdcf68 |
refs/heads/master | <file_sep><?php
$filename_replace = array('\\', '/', '*', '|', '?', '<', '>', '"', ':');
$maximum_matching = 10;
$matching_start = '<div class="matching_section">';
$matching_seta_start = '<ul id="set_a">';
$matching_setb_start = '<ul id="set_b">';
$matching_sets_end = '</ul>';
$matching_end = '</div>
<div class="... | f9d8eeaf7162255d8be71bf56f94d2e2b49ee824 | [
"JavaScript",
"Markdown",
"PHP"
] | 3 | PHP | nagyistoce/kyukards | 41253c3b6e5cf47090dad354e4ffa4ce3678ccd4 | 8db42a4c06ceb90102e98a8ab3345d539310915b |
refs/heads/master | <file_sep>import re
running = True
print("\nWelcome to The Multiplication Table!")
while running:
max_val = input("\nChoose your highest number: ")
# Continues running if anything but int is input
max_val = re.sub(r'[^\d]+', '', max_val)
if max_val == "":
continue
max_val = int(max_val)... | 9b77d4994463073f015d1e2a94e52294dfc2bf4c | [
"Python",
"Text"
] | 2 | Python | jsusca/Multiplication_Table | 65590d2f8d7c717059c2ba664f608d5c6b71a414 | 03e8dd82260f1c24e299d002e48d949f659d3b80 |
refs/heads/master | <file_sep>namespace Shyjus.BrowserDetection
{
/// <summary>
/// A type representing the browser information.
/// </summary>
public interface IBrowser
{
/// <summary>
/// Gets the device type.
/// Possible values are
/// 1. Desktop
/// 2. Tablet
/// 3.... | 5a48d78de5f58109c4e7c167e5dbb7ff24b1e45b | [
"Markdown",
"C#"
] | 24 | C# | alicoskun/BrowserDetector | e3ea187caf17a3f8ed4496d66cb7d4abb5fa77d6 | 30f0d9ae0b2c268d1b781e21496e83432ee40b04 |
refs/heads/master | <repo_name>BenMtl/squid<file_sep>/examples/test.py
from squid import *
import time
rgb = Squid(18, 23, 24)
rgb.set_color(RED)
time.sleep(2)
rgb.set_color(GREEN)
time.sleep(2)
rgb.set_color(BLUE)
time.sleep(2)
rgb.set_color(WHITE)
time.sleep(2)
rgb.set_color(WHITE, 300)
time.sleep(2)<file_sep>/build/lib.linux-armv6l-2.... | 06a3c3d5ee4bfebf784d335e6347f5a62ba82090 | [
"Markdown",
"Python"
] | 6 | Python | BenMtl/squid | dcaaf0faa917f0b78ea2870b3ba79da2ae080c1f | 659493b3d8e18824ef6a83cd075e13101f962ea4 |
refs/heads/master | <repo_name>Alx-Ang/Alexis_Angeles_Segundo_IC_0602_Taller_SO<file_sep>/Unidad_1/Programa_Desarrollo_1_Competencia_1/cola.h
#include <stdio.h>
//#include <conio.h>
#include <stdlib.h>
#include "proceso.h"
typedef struct nodo {
struct proceso info;
struct nodo *sig;
}nodo;
struct nodo *raiz=NULL;
struct nodo *f... | 5c64ac2e1d1b44178059212d6d3b69f6fea3ee89 | [
"C",
"Makefile",
"Shell"
] | 29 | C | Alx-Ang/Alexis_Angeles_Segundo_IC_0602_Taller_SO | f93ce5055a36b28eb2ad2c9a723b9328d4226922 | de3a623fcce78168aad43917608561fc37ed9a66 |
refs/heads/main | <repo_name>Justlesia/get_next_line<file_sep>/README.md
Study project for 21 School (42cursus), 2020.
(without bonus)
This project will not only allow you to add a very convenient function to your collection,
but it will also allow you to learn a highly interesting new concept in C programming:
static variables.
<file... | d3b6e9e01d2a28dc27c5cf6a003028fd43f0d9bf | [
"Markdown",
"C"
] | 2 | Markdown | Justlesia/get_next_line | 4a4f8f7b4c4681092fb8839f7d2b712bfe4cf1f5 | eaba0dfcbccafe6fce0c324486a83cf6b4c8b4e7 |
refs/heads/master | <file_sep># Colorimeter
This is a simple example of how to connect an Angular 4 application to a Particle Photon. You can read more about [this post on my website](http://acostanza.com/2017/10/17/angular-4-app-photon-iot-colorimeter/).
## Start project
Run `ng serve`
## Questions?
Send me an email at <EMAIL>
<file_s... | 6c97f28e3a790cf8a58e91405f5a9aa713e92095 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | adcostanza/colorimeter-angular | ef6213cb63b738d98050ae10d4e0a7422a872ab6 | d5e232315cd7ec167449af61bd184dc2d7523773 |
refs/heads/master | <repo_name>cezarystefanski/csddApps<file_sep>/app.js
//TODO: add blog module, get jQuery from bower modules
var App = function () {
"use strict";
var version = "0.0.1",
githubLink = "https://",
mainAppContext = this;
this.logger = function (module, error, params) {
var errorMsg = mo... | 47c122db41bb0bd0f9f69d399601f450a8d22af4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | cezarystefanski/csddApps | 412b36b4de8da5acb534c67a86456e824f5c3ea3 | cef73fd220b01a51e13b86d433ceb929cbdfc004 |
refs/heads/master | <file_sep>import { Component, ElementRef, ViewChild } from '@angular/core';
import { chart } from 'highcharts';
import * as Highcharts from 'highcharts';
@Component({
selector: 'app-sm-highcharts',
templateUrl: './sm-highcharts.component.html',
styleUrls: ['./sm-highcharts.component.css']
})
export class SmHighc... | 5fc4d698a7b91d22c5f2718d47eb8643e1652bb7 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | SrikanthEnuguru/Angular-POC | 486caa1c77a4c5bafbf7a15e7dfec5e57e60bd6e | 7dced6a50421ef862ed1280cda29091a9ba79410 |
refs/heads/main | <repo_name>Mnabawy/crud-app<file_sep>/frontend/src/app/service/data.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({
providedIn: 'root'
})
export class DataService {
constructor(private httpClient: HttpClient) { }
getDate() {
return thi... | 8753877bc19add9e427adc021dd598344195b3eb | [
"TypeScript"
] | 1 | TypeScript | Mnabawy/crud-app | 15dca600d6b97751fdbf4e0298cbec40a3fb33b1 | 605865787ca4583b9fec0b8e713229a52182c742 |
refs/heads/master | <repo_name>barkalovnik123/barkalovnik123.github.io<file_sep>/aboutscript.js
// замена текста в основном блоке.
function mainblock() {
if (document.getElementById('lang').innerText == 'English version') {
document.getElementById('mainonindex').innerHTML = `
<h3>
Я <NAME> (barkalovnik123)!
Начинающий програ... | 1009d6fe35657d0d1f8eb1e89b5b883ee47e4e3c | [
"JavaScript"
] | 7 | JavaScript | barkalovnik123/barkalovnik123.github.io | 2c18288fa0fd6953b31d315926ff8b57b423d092 | 8fdab5433d65814456e3e7df9cca7ea9476fe2c1 |
refs/heads/master | <repo_name>Naddy706/FoodWasteManagment_Project<file_sep>/app/src/main/java/com/creativodevelopers/foodwastagemanagment/myevent_adapter.java
package com.creativodevelopers.foodwastagemanagment;
import android.app.Activity;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
impo... | ce6317250c1e6532294d7df40fe33ce9074caa54 | [
"Markdown",
"Java",
"Gradle"
] | 5 | Java | Naddy706/FoodWasteManagment_Project | 75e19608267b2a14b98f95daa7bcbfdc32e10653 | 5229cc314453b614522b280070422bbbcf0adc0f |
refs/heads/master | <file_sep>package com.example.exercise3;
import android.content.Intent;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import java.io.Buffered... | b75a67be803bc141a4f636bc1de6aeaf3901f888 | [
"Markdown",
"Java"
] | 3 | Java | liaozeming/JSON-XML_Resolve | aff8f7696ab692614ed44b1097b074ded458e4a0 | 58ca112aab8f41557676644137094029a6800948 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using WebApiPaises.Models;
namespace WebApiPaises.Controllers
{
[Route("api/PaisApi/{PaisId}/Provincias")... | 5f16a30d437e58dc6085e362ec21738cd44b21f9 | [
"Markdown",
"C#"
] | 2 | C# | sergio-balanda/apiPaises | 1c0ebf44e057846fa253f484711d14d66d350f31 | b761766808541e4423de407a41584786a528830f |
refs/heads/master | <file_sep># -*- coding:utf-8 -*-
import re
import numpy as np
import pandas as pd
import jieba
import time
import gc
def word_cut(data):
stoplist = [line.strip() for line in open('../data/stopword.txt').readlines()]
# jieba.load_userdict('userdict.txt')
def get_cut(text):
r1 = '()' # 应该考虑多种... | b4e8be59b56cef4a3ffa93ae0d015de870b5bb4b | [
"Python"
] | 1 | Python | Ming-H/SenAna | 3770a982c89beedda87611b2301ca7554567bc17 | 2848a54a2c1ce198c06a0cb561adbc638b0f9898 |
refs/heads/master | <repo_name>edu-kajiwara/05-lesson-database-access-u21611357<file_sep>/src/main/java/com/example/demo/DemoApplication.java
package com.example.demo;
import com.example.demo.DAO.UserDAO;
import lombok.val;
import com.example.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | 43fc218371bdf98267812f0d1f17ecdeff9db7b7 | [
"Java"
] | 1 | Java | edu-kajiwara/05-lesson-database-access-u21611357 | 43964d2f310c811cdc4e35652352b48b7d0ec517 | 613d06305049aa7347983943b4728d358ed9d94a |
refs/heads/master | <file_sep>json.extract! match_player, :id, :user_id, :match_id, :created_at, :updated_at
json.url match_player_url(match_player, format: :json)
<file_sep>class PlayerCard < ApplicationRecord
end
<file_sep>class MatchPlayersController < ApplicationController
before_action :set_match_player, only: [:show, :edit, :updat... | e8b3b0772826d55f1f92b9a141c5e0b6686ac1f2 | [
"Markdown",
"Ruby"
] | 17 | Ruby | JijoBose/SetGame | 28dd04abfae611e24b7de09f4a6cb007f93034a8 | 53adf8073183455d8ed98ddf7f0ef1ab60dfe98a |
refs/heads/master | <repo_name>mlycookie/Car<file_sep>/app/src/main/java/edu/qau/car/LsjyZjmActivity.java
//package edu.qau.car;
//
//import android.app.Activity;
//import android.content.SharedPreferences;
//import android.os.Bundle;
//import android.preference.PreferenceManager;
//import android.view.View;
//import android.widget.EditTe... | 07c179dc5ef495704864491c80c85300fb104ae5 | [
"Java",
"INI",
"Gradle"
] | 17 | Java | mlycookie/Car | 738b6dbf7a9f03b31671cd42dfa72a14a770cfb6 | 04710e552e2b587db7bea9fc64a7a2928a35102d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cwiczenie8
{
class Program
{
static void Main(string[] args)
{
/*
int liczba1 = 0;
//Console.WriteLine(liczb... | 11ec9d43223449b2016b69f5db50d9f12e113f3d | [
"C#"
] | 2 | C# | polubis/Cwiczenia8 | 07fd6ef498e068605ea968164738ef8e555ab2e3 | 380733eefd3be5ff109a0b1de461c2dbb869b801 |
refs/heads/master | <file_sep>#Declared parameters
#Note that h is obtained using Maple. We don't have to find it each
# time we run the program, since the declared parameters
# aren't going to change.
#igcdexOfFG is also obtained using maple. It doesn't have to do
# anything with any changes to ASCII Values
q = 232092
f = 23
g = 241
h... | a0d55466c598c1d9b51eebe26f57a96b573a90ca | [
"Python"
] | 3 | Python | turjumann/CMSE491-NTRU-Encryption-Chat-System | 61477efc71e1c9e7efb7d0625a22054310685046 | 99927165e6ac9be50efd24547a4e7050529b4f62 |
refs/heads/main | <repo_name>jay-sb/Streanime<file_sep>/Streanime/views.py
from django.shortcuts import render
from django.http import HttpResponse
import requests
from requests_html import HTMLSession
import os
import googleapiclient.discovery
from django.shortcuts import render
import urllib.request
import json
f = open('ep... | 861b95410dbbf314d0c493eeb778098f9db50a43 | [
"Markdown",
"Python"
] | 2 | Python | jay-sb/Streanime | 0f3c460eafc560b36fab0cc53de50b69086bcfb8 | 7c58b6b2127480368985e6845d8d5b0e816138c0 |
refs/heads/master | <repo_name>GDGNorthAmerica/chrome-extensions-codelab-gdg-oakdale<file_sep>/step-04/js/background.js
function updateUser() {
chrome.storage.local.get('githubToken', function(data) {
if(data && data.githubToken) {
GitHub.getMe(data.githubToken).then(function (me) {
chrome.storage.local.set({
... | df3ecb1bed607ddb551af147d93bb865b4947589 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | GDGNorthAmerica/chrome-extensions-codelab-gdg-oakdale | 30977189f206fc749a1d46acea6a537440c10400 | 8331683129dc6a36c9891c66d974680308e0da47 |
refs/heads/master | <repo_name>viethungbk/NMCNPM<file_sep>/README.md
# NMCNPM(Web bán điện thoại online)
<file_sep>/PHONE/application/views/site/product/catalog.php
<div class="box-center"><!-- The box-center product-->
<div class="tittle-box-center">
<h2><?php echo $catalog->name ?> (<?php echo $total_rows ?> sản phẩm)</h2>
</div>
<... | eb620e4f71fdaef1ace90a7cbb26b913c3d75626 | [
"Markdown",
"PHP"
] | 7 | Markdown | viethungbk/NMCNPM | 232ebf2ddfa969c3c37ca3e3686ab78e042f97b4 | 6efaa6067d66ca451d4d02c83993a28d8d89c68c |
refs/heads/master | <file_sep>from os.path import abspath, dirname, join
with open(join(dirname(dirname(abspath(__file__))), "VERSION"), encoding='utf-8') as version_file:
version = version_file.read().strip()
master_doc = 'index'
project = "DNS-Lexicon"
release = version
<file_sep>"""Module provider for IBM Cloud"""
from __future__... | c3dc068ae6e233208fe91d7cb751bac38685dc2c | [
"Python"
] | 2 | Python | drjeep/lexicon | a18a4a325080c2da3e0a0fde4b64385c2de29716 | d753ab92b44b2ad8db1d1697f80018b52919f6d3 |
refs/heads/master | <repo_name>bgyhnddr/vue-block<file_sep>/build/test.js
var express = require('express')
var config = require('../config')
var opn = require('opn')
var webpack = require('webpack')
var webpackConfig = require('./webpack.test.conf.js')
var rm = require('rimraf')
var ora = require('ora')
var fs = require('fs')
// d... | c526be4079ca46a2b9ed33570d189b24f36eb3b0 | [
"JavaScript"
] | 8 | JavaScript | bgyhnddr/vue-block | 1074a64461b602bf423f3757401be03462c91f10 | e5d51bed5dbdc7b19a50538ae1c0240d18b7c299 |
refs/heads/master | <file_sep>-- MySQL Script generated by MySQL Workbench
-- 04/18/15 10:16:41
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
-- -----------------------------------------------------
-- Schema DELTAPLUS Creation
-- -----------------------------------------------------
CREATE DATABASE deltaplus... | 27d256fde58fadc4a6774ffcb588fa7de85b1dce | [
"JavaScript",
"SQL",
"Markdown"
] | 9 | SQL | stkwx-phabricator/nfc_deltacard | c08cacb3e154be329bb5ebd2234f90500c494c00 | 7f6a4f16e169fcd8594939c860ca92e91c857301 |
refs/heads/master | <repo_name>zealprajapati/sudoku<file_sep>/CSP.cpp
//
// CSP.cpp
// Sudoku
//
// Created by cpsfaculty on 02/10/18.
// Copyright (c) 2018 ___<NAME>___. All rights reserved.
//
#include <stdio.h>
#include "CSP.h"
#include<cmath>
/************************************** Below are the three functions you n... | fd75d1eb1dda4b2351e970b9a2be46c22c6fab63 | [
"C++"
] | 1 | C++ | zealprajapati/sudoku | 59c13a3d351182084ca63346e9abbe35f55e3ec8 | 4132d4745f7f5ea015171b0c6ec6388d2fa44d78 |
refs/heads/master | <file_sep># post-form-google-forms-client
Sometimes, the client wants to store data in google forms along with storage at their end.<br/>
check the embedFormHandler.js
## Basic logic
form has action defined with the default google-form-response url,<br/>
if invalid, we ensure event.preventDefault() which prevents the... | 4919462c182d0e894e209f76aed4ea9c0b7b75ae | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ThekhoN/post-form-google-forms-client | b04c40baa254ef3f107b16fb85ad87acfdea09ff | efe6e95c81716d3ec18883070ce449fca4344472 |
refs/heads/master | <file_sep>import requests
while True:
question = input("Quesion:")
if question == "exit":
break
else:
post_data = {"question":question}
res = requests.post(url="http://127.0.0.1:5000/question",data=post_data)
print(res.text)<file_sep>from flask import Flask, request
im... | b375c73d94afcc28463b2b2bc995d156da9165e7 | [
"Python"
] | 3 | Python | Yi-Yuanzhe/wk | db0469b479d9f7af35832191fbef6c35eb1255b8 | 3610fef7fe8003323583e211420d66c019b0533e |
refs/heads/master | <repo_name>sandrt/greenery<file_sep>/greenery/website/Models/EmailFormModel.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
namespace website.Models
{
public class EmailFormModel
{
[Required, Display(Name = "Naam")]
... | b90e7f97863f649c52008b77035dac6775b1a0ae | [
"C#"
] | 21 | C# | sandrt/greenery | 4547151bb5d7b7cbb1b53882fb13dc3ff830c168 | d0e3e8ec5a622f7434488421e721632553b85c9a |
refs/heads/master | <repo_name>Yaxin1996Z/BP_algorithm<file_sep>/netbp_mutihidden_v5.py
# Layer类里自动更新权重
# 能定义隐层层数和每个隐层的单元个数
import numpy as np
from load_mnist import load_train_images,load_train_labels
import os
import pickle
# sigmoid激活函数
def sigmoid(net):
y = 1/(1+np.exp(-net))
return y
# 均方误差
def loss_mse(y_true: np.ndarray, ... | aa53aafd122b8981ebbd41925ceec0d539d2abf6 | [
"Python"
] | 4 | Python | Yaxin1996Z/BP_algorithm | 84a337c8f23289c6f120c492d1a1e0f47760dd05 | 2ef020dbf91263e1edbd9433b0f6cfd5b5134a87 |
refs/heads/main | <repo_name>vipul2511/Swapp-Function<file_sep>/src/Containers/OnBoarding/Styles.js
import {StyleSheet,Dimensions,Platform} from 'react-native';
import { heightPercentageToDP as hp, widthPercentageToDP as wp } from 'react-native-responsive-screen';
let width=Dimensions.get('window').width;
let height=Dimensions.get('w... | 8762fc148335bf74b11d06444338c5a54578cc99 | [
"JavaScript",
"Swift"
] | 66 | JavaScript | vipul2511/Swapp-Function | 6c74590c035e3ce1242c23aac035d62ac14a4200 | 5d9fd2c51e9a09744d1000d0f2a8d21bd85e4ca0 |
refs/heads/master | <file_sep># android-reactor
<file_sep>package com.example.androidreactor;
import ioio.lib.api.AnalogInput;
import ioio.lib.api.DigitalOutput;
import ioio.lib.api.IOIO;
import ioio.lib.api.PwmOutput;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.util.BaseIOIOLooper;
import ioio.lib.util.IOIOLoo... | b596c9518b60a24c668575c6fc2d611a65fce212 | [
"Markdown",
"Java"
] | 2 | Markdown | bt-uci-17/reactor | e79c8ccf848bcfe3abd049000a04a8f26b8e8596 | f5134511239b9bb7fee27fc97d25b5832623a5dc |
refs/heads/master | <repo_name>MarlonMunozWebDev/PAGINACION-PHP<file_sep>/conexion.php
<?php
/*DEFINIMOS LOS VALORES DE LA CONEXION MYSQL Y EL NOMBRE DE LA BD*/
$link = 'mysql:host=localhost;dbname=glosario';
/*DEFINIMOS NUESTRO USUARIO Y CONTRASEÑA DEL SERVIDOR*/
$usuario = 'root';
$pass = '';
//CONEXION Y VERIFICANDO LOS DATOS
t... | 934c6b64e3f6acf5b95a89836b5825508ec62c83 | [
"PHP"
] | 2 | PHP | MarlonMunozWebDev/PAGINACION-PHP | 2de8bae3d6874ad9fb722d4354480eea18c10b76 | 3eee050c58f0f98e5069838cb7d59bada6ece79c |
refs/heads/master | <file_sep># Unit Test for the TestCombinationalCircuits class
import unittest # import unittesting
from MIPSPhase1 import BoolArray
from MIPSphase2 import CombinationalCircuits # import your stage two class
from stage3outline import RegisterFile,Memory
class TestUnitClass3(unittest.TestCase):
... | d7451fa06000975c1b320e45948bd4281820e9bb | [
"Python"
] | 6 | Python | salewi/MIPS_Simulation | 8277812a41eaeb5dd009383f07b0957fd49d4f3a | 364d4afa29adcf54b4c640bc477b75557d20b6f7 |
refs/heads/master | <repo_name>byunjuneseok/pr-scouter<file_sep>/go.mod
module github.com/byunjuneseok/pr-scouter
go 1.15
<file_sep>/cmd/pr-scouter/main.go
package main
import "log"
func main() {
log.Println("Work.")
}<file_sep>/README.md
# PR-scouter
*Work in progress...* | 74598f4db1ac988b68ee41059e9e6f36dd48452c | [
"Go",
"Go Module",
"Markdown"
] | 3 | Go Module | byunjuneseok/pr-scouter | bc1f6c48681d9655a6a74dd1c9208d463c0d0517 | af7dd0f9346630a58b9b0274e3583538af7c7ad1 |
refs/heads/master | <repo_name>ms77er/divelog<file_sep>/app/controllers/toppages_controller.rb
class ToppagesController < ApplicationController
def index
if logged_in?
@user = current_user
@diving = current_user.divings.build # form_for 用
@divings = current_user.divings.order('created_at DESC').page(params[:page]... | 936b9eee96593c37989bc97fe231496b83037d5d | [
"Ruby"
] | 5 | Ruby | ms77er/divelog | 22ae5532d8e56b630018902ab950ed151167e976 | 54e6320b0f2b51dd069aec4838b6597af6cddd9c |
refs/heads/main | <file_sep>import Head from "next/head";
import Link from "next/link";
// import products from '../products.json'
import { fromImageToUrl, API_URL } from "../utils/urls";
import { twoDecimals } from "../utils/format";
export default function Home({products}) {
return (
<>
<img src="/banner.jpg" alt="banner" c... | 52d4fde9a1b238f7b5cd9a609ede30077cb79978 | [
"JavaScript"
] | 6 | JavaScript | unsiga25/ecoms-proj3 | 3d99e7ff2d1f25089723de0d262cca0b1c4bef44 | 233f18a2a0d6aada8ace75ed32931bc5d2da93ab |
refs/heads/master | <file_sep>watch('decorators.*.rb') do
system 'rspec -c ./decorators.rspec.rb'
end
<file_sep>watch('.*\.rb') do
system 'ruby metakoans.rb knowledge.rb'
end<file_sep>require_relative 'equality_by_attributes'
require_relative 'author'
require_relative 'book'
require_relative 'order'
require_relative 'reader'
require ... | 36a6e9f3ed2d1b70bb612011bc0fee0ff5302979 | [
"Ruby"
] | 14 | Ruby | BjornMelgaard/rubygarage_homework | eebb814df4ca42a77596ac5d1a01d5fce7ffea6f | bdf9837dfbc081b5591bde22e82eb1d3e1f12dcc |
refs/heads/master | <file_sep>//add.js
```
module.exports = function add(a,b) {
return a + b;
}
```
var add = require('./add')..
它是同步的,浏览器除了加载该文件,什么事情也做不了。
提出了异步模块AMD<file_sep># 升级某版本xcode后,执行git命令
问题:Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license”
and then retry this command.
解决:sud... | 5bfe1aac5c7a8fdfb823fffe42b689225863c845 | [
"Markdown",
"JavaScript"
] | 10 | Markdown | SeekYou/in-web-3.0 | 0470d4e723e1a8d4aad09b24e3cdb8b3a2e3098a | d13f7d5a9020397acfadc55fb74a1db3d01b5cf0 |
refs/heads/master | <repo_name>hifghg/bots-dota2<file_sep>/mode_farm_generic.lua
local functions = require(
GetScriptDirectory() .."/utility/functions")
local constants = require(
GetScriptDirectory() .."/utility/constants")
local player_desires = require(
GetScriptDirectory() .."/utility/player_desires")
local move = require(
... | c98d81b1a16f2bd0b34a3be1349ef1d1466ba173 | [
"Lua"
] | 1 | Lua | hifghg/bots-dota2 | 43bb2be2fef231b72e9bd866733b03c745659e7c | c341521dfdc7940af824c7f376487acd8ba8027f |
refs/heads/master | <repo_name>5ju4ypzz/QL_SinhVien<file_sep>/QLY_Sinhvien/frmLop_03.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespa... | 2bcbb6fad8dc19b866ce04dcf08fed3b3d2c088d | [
"Markdown",
"C#"
] | 9 | C# | 5ju4ypzz/QL_SinhVien | 9fdfaf1cd8ced629910810b8eedbca2c4c4eaa96 | b3fe0bac61727a3cb4312c7e73664deb56d90d15 |
refs/heads/master | <repo_name>vejvarm/clear_networks<file_sep>/dense_mnist_classifier.py
import tensorflow as tf
from matplotlib import pyplot as plt
from tensorflow.keras.datasets import mnist
from helpers import console_logger
from Models import DenseClassifier
LOGGER = console_logger(__name__, "DEBUG")
TEST_SET_SIZE = 8000
BUFFER_... | 0951f189fd0c9b9feb0dfa979549aef977d3720a | [
"Python"
] | 4 | Python | vejvarm/clear_networks | 870fdd93f63f42d8e1c1050a4684bd2b82010b77 | 52998f4be58dbd6e7a651873b34b22d8b513851a |
refs/heads/master | <file_sep>
##################################
### Payroll Tax15 from KVS #######
##################################
# Load Payroll Tax15 File from KVS
kvs15 <- read.csv(file='KVS15.csv', header=FALSE, skip=65, nrows = 102573, na.strings =c("", NA), stringsAsFactors = FALSE)
# Have to fill the NA at the bottom ... | 7b6bd4d021d4388dd28d830d604cee38830874e0 | [
"Markdown",
"R"
] | 4 | R | Karagul/Finance-2 | 58186d77b4d6d95ce777d3f79b807d892f63cfa1 | 725149906d00a004f7174dfc303ec06d8f082353 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows.Input;
using Windows.ApplicationModel.Resources;
using Windows.Storage;
using Windows.Storage.Streams;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Views;
using Microsoft.Practi... | 4ba7d2f15de3d369f47e8bd000d13ef51aed2602 | [
"C#"
] | 23 | C# | ahosic/GeoShopper | 22c9900b54c7d9e8a686aedfbe107500aa535ebb | e8c86cf3ee3ef9774cbbf603ec6904d91e450c29 |
refs/heads/master | <repo_name>deanbodenham/rcpptime<file_sep>/R/microbench.R
#' Compare R and Rcpp implementations
#'
#' Use the \code{microbenchmark} package to compare the performance (speed)
#' of (pure) R and Rcpp implementations of a couple of algorithms.
#'
#'
#' @param showBoxplot A boolean to decide whether or not to show boxp... | 05a5f48ddaa851cd60a605cd1b9695c4aff8bc08 | [
"Markdown",
"R",
"C++"
] | 13 | R | deanbodenham/rcpptime | c4e08b8c4b4c5ada579260053fab5691c490705a | dbbb804aa36ef3dec794960b0890949f1c8aa235 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.