branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>/* ①book.h文件的完整内容 */
#ifndef _BOOK /*条件编译,防止重复包含的错误*/
#define _BOOK
#include <string.h>
#define NUM 20 /*定义图书常量,此处可以根据实际需要修改常量值*/
struct Student /*学生记录的数据域*/
{
long num; /*学号 */
char name[20]; /*姓名 */
};
struct Book
{
char title[20]; ... | 71d9eeb3952ac7aafd44d297d0c57dffde6b325d | [
"C",
"C++"
] | 4 | C | B15090806/B150908 | ab1b31b18ccdaea75881c1d2175474e6e7ed248b | fe7dd24b47b21ec2532763514e11e81ab1ae7ea7 |
refs/heads/master | <repo_name>ciena/ZeroTouchProvisioning<file_sep>/main.go
package main
import (
"bytes"
"flag"
"fmt"
"github.com/tmc/scp"
"golang.org/x/crypto/ssh"
"log"
"os"
"time"
)
const (
//onosIP = "10.0.0.1"
TIMEOUT = 3
)
func main() {
ip := flag.String("ip", "", "IP address of the switch")
host := flag.String("ho... | f1ea56528cc76499a1b9432584f73db9daf45b2a | [
"Makefile",
"Go",
"Dockerfile",
"Markdown"
] | 4 | Go | ciena/ZeroTouchProvisioning | a262fc3630a17ff415ce06d1ff82af7550a20804 | da75719b39a6cb8b0175a4d7cacdf17f143e5658 |
refs/heads/master | <file_sep># RNCryptor
RNCryptor加密解密Python代码
#### **Dependencies**
/assets/pycrypto-2.6.1.tar.gz
```bash
tar -zxvf /assets/pycrypto-2.6.1.tar.gz
sudo python setup.py install
```
#### **用法**
```bash
python RNCryptor.py
```
```python
cryptor = RNCryptor()
#加密
cryptor.encrypt(Data,password)
#解密
cryptor.decrypt(Data,pa... | d8886da4e3098fb83fd93885d69621c798535c4b | [
"Markdown",
"Python"
] | 2 | Markdown | Vxer-Lee/RNCryptor | 53ff159a47300ddaa6d4a5be7948a056710992ba | efe9d22f0767dc3d5649dcd4b0c070192ab928c8 |
refs/heads/main | <file_sep>const colors = ['#DE6E51', '#E8A339', '#68B253'];
const sampleData = [
{
"name": "Feed",
"unit": "Kilograms per hector (kg/ha)",
"values": [
{
"timestamp": "2021-01-15T10:00:00.000",
"value": 0.5
},
{... | 1e74e259fb9dd3bd84443645366dbca06af15be9 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | JeffACDev/shrimpy-d3 | 6c086ae77ea29d89a1a31292b9c00a8947626231 | cdc03ee410bddf726c301163255df8cbc9f4c1dd |
refs/heads/main | <file_sep>
# solver.py
def solve(gr):
find = find_empty(gr)
if not find:
return True
else:
row, col = find
for i in range(1,10):
if valid(gr, i, (row, col)):
gr[row][col] = i
if solve(gr):
return True
gr[row][col] = 0
re... | e019fe2e2875978aeca2e015d1d2f81fc0811ab2 | [
"Markdown",
"Python"
] | 2 | Python | shubham25121999/Sudoku-solver-py | 26e4e49ea5c597683ef8c057c028fcf29fcdf8c2 | 72aa15a3ae387e7bf930fec2dd5f38c86afb7326 |
refs/heads/master | <repo_name>eduardoacv2/StoreApp-EL-ICOM5016<file_sep>/appjs/account.js
function Account(uId, uFirstName, uLastName, uBillingAddress, uCreditCard, aType, uBuyHistory, uSellHistory, uPInventory, uPassword)
{
this.uId = "123";
this.uFirstName = fName;
this.uLastName = lName;
this.uBillingAddress = address;
this... | 3c3b17422cfd9ab200caaecd2304876ea7648dc8 | [
"JavaScript"
] | 3 | JavaScript | eduardoacv2/StoreApp-EL-ICOM5016 | 97beddc119fe83b6107545d71859eb9e6adbd2ef | d002af41659536480e0843973442a226de1d9230 |
refs/heads/main | <repo_name>Gideon-Zozingao/express-sessions-and-cookies<file_sep>/README.md
# express-sessions-and-cookies | c3c0d430d0130cb0f31a6aa5764f9bf78ad2c0b5 | [
"Markdown"
] | 1 | Markdown | Gideon-Zozingao/express-sessions-and-cookies | cad4265f3dcdcc9ad52c585bb36d70c300b5ca14 | 4460bfbd9308779bc59ce91a4571b808d64e9c94 |
refs/heads/main | <file_sep># :oncoming_bus: Real Time Bus Tracker :oncoming_bus:
On this project, the goal was to make an API connection to gather the bus geolocation every 20 seconds and tracks its route.
# :bomb: How to run
1. Download the repository files
2. Get an API token at MapBox's website and replace it on the mapanimation... | 41ea3281db549d3c2add7b65d22278aedeb6aa9d | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ejhenriques/Real_Time_Bus_Tracker | 38b094bd6852613c528425537d69f40462eec6d8 | 041722a438b978b4ba7ecca8aaf9e208da79111c |
refs/heads/master | <file_sep>import numpy as np
import cv2
from matplotlib import pyplot as plt
# 1.載入原始圖像並灰值化,原始影像為1000x2000 ,3 channel #灰:1 #RGB:3
img = cv2.imread('digits.png')
print("img shape=", img.shape)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)#RGB變成GRAY
print("gray shape=", gray.shape)
# 2.切成每一小塊20x20 pixel
# 先將gray 1000x... | 950bee852e439323a5683c2a6648c158dbaefb14 | [
"Python"
] | 1 | Python | luyihsien/knn-project | 6370415f6795eeaa6cfbbba08f796e4c758cbee7 | 1f03fa2cd39e49a9c8e07946ff2e4f6476d6d770 |
refs/heads/master | <repo_name>JaarenDSacharow/BurgerBuilder<file_sep>/src/containers/BurgerBuilder/BurgerBuilder.js
import React, {Component} from 'react';
import Aux from '../../hoc/Aux/Aux';
import Burger from '../../components/Burger/Burger';
import BuildControls from '../../components/Burger/BuildControls/BuildControls';
import Modal... | 4b232894468459ece3f685749997ba6103855980 | [
"JavaScript"
] | 5 | JavaScript | JaarenDSacharow/BurgerBuilder | 3db50112c25508a03373a180d3896cb4e7f1509b | a111dc291d3157f4e5abae74740f32a6cf4be7e2 |
refs/heads/master | <repo_name>jane-great/ChainBook<file_sep>/README.md
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# run unit te... | 52eec035f0791c854a584ce20bea748dd21b2d9c | [
"Markdown",
"JavaScript"
] | 33 | Markdown | jane-great/ChainBook | 08982919a022bab116aeaa2c06ad78e174cb776f | c667ef319b86487a60ee9f0fb337b3e6dbdaed67 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-11 11:28
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
op... | 1334aa2be1b6f1a452f8c4dacdcce0e2df77ab51 | [
"Python"
] | 4 | Python | khortur/michalbiernacki | 3912786d75e804762b4f13e6cb18c005abcbecac | 1fc8da61fd4a4cd2af07ea5bc6b176803eec0c81 |
refs/heads/master | <file_sep>var video = document.querySelector('#video');
var cPallete = document.querySelector("#doit");
video.addEventListener('click', takeimage, true);
cPallete.addEventListener('click', takeimage, true);
//---------------
//normalize window.URL
window.URL || (window.URL = window.webkitURL || window.msURL || w... | 17ddc8f2ceb19161876405026eec6b7d084784e5 | [
"JavaScript",
"PHP"
] | 4 | JavaScript | serg1mm/lapse | c1f1772dee3cf05072f51077714c75279b2fb30a | 53cfb60c7ac04538019a1c6cf861d68508bb66cf |
refs/heads/master | <repo_name>kdbanman/oneDim<file_sep>/ruleDoc.py
cond1 = '111'
cond2 = '110'
cond3 = '101'
cond4 = '100'
cond5 = '011'
cond6 = '010'
cond7 = '001'
cond8 = '000'
responses = []
for i in range(0,256):
responses.append(0)
responses[i] = bin(i)[2:]
prepend = []
for j in range(0,8-len(responses[i])):
prepend.append('... | 7bfa091fafaa1974c4a5360377096961cd8cd1ec | [
"Python"
] | 2 | Python | kdbanman/oneDim | 8ff37dc56d7ede799a6fce5665d057b517a38ee5 | 4b9b52adc652018c493d160eb678ae46e23d5e94 |
refs/heads/master | <file_sep>//Description:
//This time no story, no theory. The examples below show you how to write function accum:
//Examples:
//accum("abcd"); // "A-Bb-Ccc-Dddd"
//accum("RqaEzty"); // "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy"
//accum("cwAt"); // "C-Ww-Aaa-Tttt"
//The parameter of accum is a string which includes onl... | 9517e4976fdb019c7f7f3f2f70208d378d95b550 | [
"JavaScript"
] | 1 | JavaScript | myraha/codewars1 | bbfbdd9ea6a58938aabd6c6b98f5aeb18b7912f4 | 919d3aeee2890521eb8f21657700075e48a57492 |
refs/heads/main | <file_sep>package basic;
import util.Util;
/**
* In a sorted array, use binary search to check the existence of given value
*/
public class Code004BinarySearchExist {
public static void main(String[] args) {
final int testSum = 1_000_000;
int[] arr, arr1;
int size = 100, range = 30;
... | 9c7ced14f26d68218ba3a934c70737637da60126 | [
"Markdown",
"Java"
] | 2 | Java | nickchen-dev/algoexpert | a009acc6601f17e4cd6feb8670522e9a708ac460 | e5390649345925cc6a55f3ee37ec2100b7cfbf1d |
refs/heads/master | <repo_name>timeconsumer/elevate<file_sep>/models/maincontroller.py
from events import Events
from models.elevator import Elevator
class MainController:
def __init__(self, elevators: list):
self.elevators = elevators
self.available_elevators = elevators
def add_elevator(self, elevator: Elevat... | da64724948e15bcd2fa31435927e2314403c0273 | [
"Python"
] | 3 | Python | timeconsumer/elevate | e8d62f59111623a4f123401cbc6e4e18644a7237 | 1216d85927b1a042cdd81ea4b83a6801195b1d11 |
refs/heads/master | <repo_name>mmarzio67/tt4ep<file_sep>/handler.go
package main
import (
"encoding/json"
"fmt"
"net/http"
"strconv"
"time"
"github.com/gin-gonic/gin"
_ "github.com/lib/pq"
)
func rectime(w http.ResponseWriter, r *http.Request) {
queryValues := r.URL.Query()
ac, _ := strconv.Atoi(queryValues.Get("a"))
pj, _ :... | ce833b0904ab671c7253c18ab47a9ff71207eada | [
"JavaScript",
"SQL",
"Go"
] | 7 | Go | mmarzio67/tt4ep | 03eef7bd1629002b39237a39b14941e1cda78a81 | c1495764498354ccd57c06df60cbfb9a42a42f98 |
refs/heads/master | <repo_name>angus-ai/angus-gateway<file_sep>/README.rst
=====================
Angus Gateway Service
=====================
Configuration
=============
* PORT (default 8080): listen port
* SERVICE_FILE (default /etc/angus-gateway/services.json): the service
directory
Mono service option
+++++++++++++++++++
* SERVICE... | c810cc6fe7385f4f42741b7599f63d1c7ac9f38f | [
"Python",
"Dockerfile",
"reStructuredText",
"Shell"
] | 4 | reStructuredText | angus-ai/angus-gateway | 94a1067c776df239921cfb5aeff126d1a0ce6423 | 3f183dbf68c8944ec301e3d4d19adf6b758890b0 |
refs/heads/master | <repo_name>intoyuniot/CGQ01<file_sep>/src/CGQ01.cpp
/*
******************************************************************************
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either... | b71d7fa27c41d87a20da1a2e390b09dea3da85af | [
"C++",
"INI"
] | 3 | C++ | intoyuniot/CGQ01 | 564006ae1e436ed361b1471b07a566cec07ce413 | 832650acab1b545a00b8f65da48ae9513aa4858d |
refs/heads/master | <repo_name>josephxwf/Bookstore-Flask<file_sep>/coreapp/__init__.py
# __init__.py
from flask import Flask
app = Flask('coreapp')
import views
<file_sep>/main.py
# used to local test your code by command python main.py
from flask import Flask
from coreapp import app
app.debug = True
if __name__ == '__main__':
app.ru... | 9b04f7ab63f40c1cfa62638edbaad83d4a46f5bd | [
"Markdown",
"Python"
] | 4 | Python | josephxwf/Bookstore-Flask | 08bdc03ef6710cba3c303bb244d93517b873e673 | 2be7d790acc98410d75d00299d7797033a9987e3 |
refs/heads/master | <repo_name>saranvananvasu/ReactDemo<file_sep>/src/Login.js
import React from 'react'
import Button from '@material-ui/core/Button'
import TextField from '@material-ui/core/TextField'
import classNames from 'classnames';
import {Router,Route,Link, Redirect, withRouter } from 'react-router-dom'
class Login extends Rea... | e16ad5c39b84be23ff62b4d10b6d28f31745c6da | [
"JavaScript"
] | 1 | JavaScript | saranvananvasu/ReactDemo | 7aa2bd66880bb76bf2e0f8b1bdbf3bce21111ae7 | 2c9be55c104bcce46d14ee24c576467e59b7c5d7 |
refs/heads/main | <repo_name>CadmiumC4/mal-linguist<file_sep>/baskasey.rs
use std;
| 7cf960696747aee050ea68380d38589812bdc30d | [
"Rust"
] | 1 | Rust | CadmiumC4/mal-linguist | 3dfc3c16afa14fa2532997f534a5ef7cfc6a54c0 | f0de99961572844215124943b0317adb8253642e |
refs/heads/master | <repo_name>YousufQadri/Campus-Recruitment-System-react-client<file_sep>/src/Components/Dashboard/CompanyDashboard.js
import React, { Component } from "react";
import { getJWT } from "../../helpers/jwt";
import axios from "axios";
import JobsView from "../Display/JobsView";
import CompanyProfileView from "../Display/Com... | d7dc601285810d826a816518980eb4691dbe89b8 | [
"JavaScript"
] | 13 | JavaScript | YousufQadri/Campus-Recruitment-System-react-client | 905bd3aa28e1096105d8dc15ed4ee5562fa171b1 | 555acd3c62827ab69dd8b583e9986da6ce98a3c1 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include <stdio.h>
int main() {
int a, b, max;
printf("Enter first number: ");
scanf("%d", &a);
printf("En... | f39884b15e673dd4b62df662364006cc0805f444 | [
"Java",
"C",
"Makefile"
] | 21 | C | gvnwlt/java-projects | 644a65003b54b2852b5802834e4d24b09d29b6c9 | 3960c40e5cf02cf5b8f847d598aa4a9a1dcdcf69 |
refs/heads/main | <repo_name>vladkulikov/NCPalindrome<file_sep>/IPalindrome.java
package com.company;
public interface IPalindrome {
boolean isPalindromev1(int x);
boolean isPalindromev2(int x);
boolean isPalindromev3(int x);
}
<file_sep>/PalindromeTest.java
package com.company;
import org.junit.Assert... | 38798ca95ec68ef2f4cb7cacf49a6b05a7e58ccd | [
"Java"
] | 2 | Java | vladkulikov/NCPalindrome | 3be8880c1a8723c9b959a07d4cde027ea108c3c9 | 8a42d57c5bd074dd957a8c21662c60ed13478526 |
refs/heads/master | <file_sep>using Npgsql;
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;
namespace OtelOtomasyon
{
public partial class Form1 : Form
{
... | 27f8e19cb6b3bb551d59d407cc746182b36f34b1 | [
"C#"
] | 1 | C# | emreharman/VeriTaban-YonetimSistemleri | 02115df1b05c4e9d4526f2c09731260c550876f8 | c68de2c11339f678a34bde170e00849b1bfe23dc |
refs/heads/master | <repo_name>SHRISHRIKANT/Python<file_sep>/beta.py
def run(): # defining a function
print('Hello, Python.')
print("Hi, Github")
run() # calling a function
| b5f0820a15259afb56d03082bb24a61be15c90cc | [
"Python"
] | 1 | Python | SHRISHRIKANT/Python | a54d164f8e3f45e5b5d691e172a588c4eecc8d7a | 33499751186edc7dda6ddfb47447078ce53d488a |
refs/heads/master | <repo_name>guer0157/nodejs<file_sep>/mongo-db/deleteDoc.js
const mongoose=require('mongoose');
mongoose.connect('mongodb://localhost:27017/mongo-exercises',{useNewUrlParser:true})
let courseSchema= new mongoose.Schema({
author:String,
tags:[String],
name:String,
isPublished:Boolean,
price:Number,
... | 45da02a281f596dfe36b853f56340c97205f6ef4 | [
"JavaScript"
] | 14 | JavaScript | guer0157/nodejs | ac98a3aea16c5a450ac5807f755890072e40e444 | 49024cae198dfa73ba508888de8df8737cadeb6c |
refs/heads/main | <repo_name>bharat123-anki/directory_user_interview<file_sep>/application/controllers/User.php
<?php
defined('BASEPATH') or exit('No direct script access allowed');
require("App.php");
class User extends CI_Controller
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://exa... | 7ed425562b19e65826bd2f853a9a7755382d5690 | [
"SQL",
"Text",
"PHP"
] | 12 | PHP | bharat123-anki/directory_user_interview | 1c6d78f88da5cc38ee489a0144d5b70d50d2da2d | 50601b5eaa1954054c90056fd45c2d9a56e8b4a9 |
refs/heads/master | <file_sep># Movie Data
## Updated Jan. 3, 2019 ##
### This has been archived because nothing will change except the data. If you would keep up with new stats, send me a message and I will send you the updated Excel. If you would like to make any changes to the code, also feel free to send a message, and I may unarchi... | a45673c93c66d9b23816841238541826bd104f60 | [
"Markdown",
"C#"
] | 3 | Markdown | rzhou10/Movie-Data | b4a9a4e1dad17e0176de8424b4d59d338a55157a | 43c990623e1310c1085cab127b22da30dfa49c87 |
refs/heads/master | <repo_name>aholston/user_dash<file_sep>/README.md
This is one of the first full stack assignments I did when I was learning Python. It needs to be debugged. Admin and User models being seperate are affecting the functionality. I am saving it as a side project to practice debugging when I have more free time.
<file_sep>... | 13c57b5ac707fe210da9fa5f471eae0221c0fd31 | [
"Markdown",
"Python"
] | 2 | Markdown | aholston/user_dash | 7b6185bdd8829644802b5c28d99b157275c4a9b4 | 7c57179e67f2c97db5d4c678ba068cc1983721b3 |
refs/heads/master | <file_sep>require 'spec_helper'
describe "skills/show" do
before(:each) do
@skill = assign(:skill, stub_model(Skill,
:level => 1,
:one_click_freight => false,
:one_click_mail => false,
:one_click_passengers => false,
:passengers => 2,
:storage => 3,
:local_trains => 4,
... | 617a3e5f46206b664ce9f0dfeb3638448369258e | [
"Markdown",
"Ruby"
] | 17 | Ruby | ivdmeer/ts_admin | 2d7c2934e636e7790ee9f7819ca09ee36ebe68e8 | 6dbdabd48d671a3cda01d4abbbd4b002b124cbfc |
refs/heads/master | <repo_name>huhai0403/react-TodoList<file_sep>/README.md
# react-TodoList
************************************
#####began in 2015.11.1
#####upload in 2016.3.16
*************************************
`React v0.14.3` `Sortable 1.4.2` `open by firefox` `code by webstorm` `not used webpack or gulp ...`
****... | 4e8be8eac72857888e0eea7e64e9c770fcec2219 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | huhai0403/react-TodoList | c715cd3ffb2b6e1528d4a7188fa04367d4e8ada0 | 25542a23d51872ae5cdefedb1688275e673ed3db |
refs/heads/master | <repo_name>remipichon/jmpresseditor2.js<file_sep>/js/kernel_composant.js
/*
* Classes :
* Slide
* Element
* Text
* Image
* Méthode :
* Object.size
* selectSlide(callback, param1, composant) return slide's matricule
* getSlideMother(matricule) ... | 4b1699fd7f9ce6db5c3f70e74c0e0f045439c8c1 | [
"JavaScript",
"Markdown",
"INI"
] | 10 | JavaScript | remipichon/jmpresseditor2.js | 73d9374d8e849d1f9d5488fe36a526c48da1830f | 0b3c48e0978ea0d702df7a04c476d999c29780b2 |
refs/heads/master | <file_sep>import os
import pickle
import numpy as np
def unpickle(file):
with open(file, 'rb') as f:
dict = pickle.load(f, encoding='bytes')
return dict
def create_master_dataset(directory):
trainFormat = os.path.join(directory, 'data_batch_{}')
testFile = os.path.join(directory, 'test_batch')... | 8c6779f2ecceeb1704e5389ece6497b379d6412e | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | Brian-Paulsen/CIFAR-10-Classification | f9431d5a97975cea45d589fa105658d4078bea22 | ef8df0393171b4ac688e5a822db67eb5fec9980a |
refs/heads/master | <repo_name>theloneplant/GameRev<file_sep>/routes/index.js
var path = require('path');
var Parse = require('parse').Parse;
Parse.initialize('8ND8FWpNrWD1j2zkGymXBFAGWebC7xiuA2GT7zAk', 'tYcMRGV7XEpjFv782VzQ2ezItHVuU40vsCMZ71DU');
module.exports = function(req, res) {
var createReviewHref = 'href="/login"';
console.log... | 9167842a73bedba6d910a3e5e83cad51385e26fc | [
"JavaScript"
] | 11 | JavaScript | theloneplant/GameRev | de9026862daa3d2e603fbafa76d318455e12c8d6 | 381b60b99c6b779ceb8066b868e378fb90a022ad |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
# In[94]:
import csv
import os
# In[96]:
input_file = open("budget_data.csv")
csv_read = csv.reader(input_file)
next(csv_read)
# In[97]:
count = 0
total = 0
# In[98]:
newL = []
# In[99]:
for row in csv_read:
if row[0] != 0:
count = 1 + coun... | ede395d4be56a4d84d5d915c322d5a8e0e79e949 | [
"Python"
] | 2 | Python | gemmavo/python-challenge | 19f6cacd04831e5b5f1776d10c80c44679986b45 | c7b757baac1b28b174cad9a34afda9dfef3093b7 |
refs/heads/main | <file_sep>WARNING!
THE AUTHOR DISCLAIMS LIABILITY FOR LOSSES CAUSED BY THIS PROGRAM.
YOU RUN IT AT YOUR OWN RISK!
<file_sep>import os,getpass
path = 'C:/Users/'+getpass.getuser()+'/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/CREEPER.bat'
open(path, 'w').write('shutdown /r /t 0')
os.system('shutdown ... | f5f1d96f1427d5bba422539c85f1678d9af8caf9 | [
"Python",
"Text"
] | 2 | Text | ItMasterAntoni/CREEPER-virus | 5f8214af6e1c0cb36f33ea35359ce5ace2b5ea4f | 857fae6e4b89e4629f6ca3b1ee4a014a6769e940 |
refs/heads/master | <file_sep>// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.Networ... | 1c4e162fe3a1c19241ba6cd56f1fbbaf16e6f34d | [
"Java"
] | 1 | Java | team4909/WPI-Swerve | ec983ad326b21faaa97ddf4620a4c5a0c5e2b1c6 | a74e6a730c590ece4b5292bcb0356302a4f8448f |
refs/heads/master | <repo_name>carriercomm/chatServer<file_sep>/chat_client
#!/bin/bash
#usage: chat_client ipaddress
#example: chat_client localhost
#example: chat_client 192.168.3.11
telnet $1 $CHAT_SERVER_PORT
<file_sep>/README.md
# chatServer By <NAME>
* Basic Chat Server implemented in haskell
* chat room like functionality
* github ... | bbbbaa5fc3b880437d08cb04014f895a652f0f26 | [
"Markdown",
"Shell"
] | 2 | Shell | carriercomm/chatServer | ef48a781ee410742fece1de3f0cd9b0fee748f87 | bddfef9c514d8bc5f280791610d6fd0dc0aacac9 |
refs/heads/main | <repo_name>hfdpx/boltdb<file_sep>/freelist.go
package bolt
import (
"fmt"
"sort"
"unsafe"
)
//freelist 空闲page列表
type freelist struct {
// 空闲页列表,db文件中一组连续的页,用于保存中db使用过程中由于修改操作而释放的页的id列表
ids []pgid // 可以分配的空闲页列表id
pending map[txid][]pgid // 按照事务id 分别记录了中 对应事务期间新增的空闲页列表
// pending需要单独记录的原因:
// 1.某个写事务(txid=7)已经... | ff1cc39e104e68d61cad47e339e250911d2b44b4 | [
"Markdown",
"Go Module",
"Go"
] | 11 | Go | hfdpx/boltdb | 7e20f4eb8d5ba25ac101b2c32c1a83d9df96cfa1 | 25f6c7805018ff962bee39d0fcf6681743186db4 |
refs/heads/master | <file_sep>import socks
import socket
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050)
socket.socket = socks.socksocket
import urllib2
#print(urllib2.urlopen("http://icanhazip.com").read())
<file_sep>import socks
import socket
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050)
socket.soc... | 1757b39e78f545c75b82e33b3e266c8a6e572b8b | [
"Python"
] | 5 | Python | dot-Sean/PythonHacking | 2711e52110229e1fe061299bd27e30d0f9c157e6 | 8e80032612d02797242b6fa98ef3aa816281260b |
refs/heads/master | <repo_name>michele-deluca/ita.deluca.tools.ldap.framework<file_sep>/src/ita/deluca/tools/ldap/framework/commons/tcpdecoder/functions/dao/ModifyRequestDAO.java
package ita.deluca.tools.ldap.framework.commons.tcpdecoder.functions.dao;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.Lo... | 45f7a978709acd582622f0b293c945c571859ae6 | [
"Java",
"SQL"
] | 36 | Java | michele-deluca/ita.deluca.tools.ldap.framework | 1be36b5bdbf5e2a2096191c706a9388537e73dcc | ca4ff12a7e07714c7809a0179d6e6537e2eb24e4 |
refs/heads/master | <repo_name>pefarrell/firedrake<file_sep>/tests/regression/test_function_spaces.py
import pytest
from firedrake import *
from tests.common import *
@pytest.fixture(scope='module')
def mesh2():
return UnitSquareMesh(1, 1)
@pytest.fixture(scope='module', params=['cg1cg1', 'cg1vcg1', 'cg1dg0', 'cg2dg1'])
def fs(req... | 2dd1deb89047bdc540f5ec568567c89d5f58fa2c | [
"reStructuredText",
"Markdown",
"Makefile",
"INI",
"Python",
"Text",
"C"
] | 138 | Python | pefarrell/firedrake | 673e1120e55c0eab0b5b447d0337385d571f6775 | d7dfd4d0df44ab45544fd8509fe6c32a04b18ef2 |
refs/heads/master | <repo_name>Tigana13/legitimate-tech-test<file_sep>/src/app/modules/app-common/models/column-config/column-config.ts
export interface ColumnConfig {
definition?: string;
heading?: string;
sorting?: boolean;
type?: string;
class?: string;
}
<file_sep>/src/app/_services/chamas.service.ts
import { Injec... | 679522259a2c71f6e1039298110e2e3a803c10e8 | [
"TypeScript"
] | 31 | TypeScript | Tigana13/legitimate-tech-test | 3ff06eac7e5d56fbb201b80635185301a5e7e240 | 9c1feee5600cf9ca020bd269113a2ba8417b8af4 |
refs/heads/master | <repo_name>aolteanu00/blog<file_sep>/blog.wsgi
#!/usr/bin/python3
import sys
sys.path.insert(0,"/var/www/blog/")
sys.path.insert(0,"/var/www/blog/blog/")
import logging
logging.basicConfig(stream=sys.stderr)
from blog import app as application
<file_sep>/blog/README.md
# QUACKHEADS- BLOG
## TEAM
##### <NAME>- Proje... | 8f27c9792c2214172951bea732e0774a9e576385 | [
"Markdown",
"Python"
] | 5 | Python | aolteanu00/blog | a3966ddbac64e6425968dc600c14dea539b2df47 | fc24016df32a4b8368a5a6e6cf2d037b50d3967d |
refs/heads/master | <repo_name>meganecummings/legislators<file_sep>/spreadsheet.py
import gspread
from oauth2client.service_account import ServiceAccountCredentials
import pprint
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
creds = ServiceAccountCredentials.from_json_keyfile_name('client_sec... | b082620d77ba295359fffe8a03965c07fa1eec63 | [
"Python"
] | 1 | Python | meganecummings/legislators | 485d73240866684eac18e80cba31e7078e018685 | 7f842898298c5052370f8302e1bf2f48e760d82c |
refs/heads/master | <file_sep>package com.example.mvphelloworld.view;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.mvphelloworld.R;
import com.example.mvphelloworld.contract.MainActivityContra... | a79efdf9eb811dd41be9f33afe20461548204bab | [
"Java"
] | 2 | Java | RajputNaveenLalTiwari/MVPHelloWorld | 977a0b405b2b4ddef71e5a5a8e96110c07b6acda | a00960c32f712dd216469dd646b7e33bc91acda9 |
refs/heads/main | <file_sep>/** Object Containers
* Objects are typically Constants
* We can change the properties of the object inside the container
* We can't remove or replace the object from the container
*/
/** Object Properties
* Describe different aspect of the object
* Syntax: Key: "Value",
* Property names can only consist... | 5e2fe4400e062d0ab62cd7b34f0d0428790d0e7b | [
"JavaScript"
] | 1 | JavaScript | anibidar/JavaScript | 3bd60171625ddb287da63329958b23de5490e6b1 | c82104511603d22f0e9281bbf9466c05f5736709 |
refs/heads/master | <repo_name>rafa761/decision-tree-example<file_sep>/README.md
# Decision-Tree-1<file_sep>/Decision_tree.py
# Decision Tree
# Fist 2 Columns is the Features
# The last Column is the Label
# Each Line is an example
training_data = [["Verde", 3, "Manga"],
["Amarelo", 3, "Manga"],
["Vermel... | 7585d5d3eba71c084827210c8f247f494a6f183f | [
"Markdown",
"Python"
] | 2 | Markdown | rafa761/decision-tree-example | 25e153521200cbf331f57d73c5afaf03224f5ca7 | e659d503af690e54307d082180fc512c0ac9eb99 |
refs/heads/master | <repo_name>Jomzi/3rdYearProjectWhatsApp<file_sep>/ChattingApplication/ChattingClient/ClientCallback.cs
using ChattingInterfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Chatt... | b39e1dbeb3671962d0c0feeca90e51de3912f490 | [
"Markdown",
"C#"
] | 4 | C# | Jomzi/3rdYearProjectWhatsApp | 7ec2d0705358c1dab1f11d4781b4020bd2d76ade | 1b4631fcf6b0ec7a5d537591bb4afbc337c4e8dc |
refs/heads/master | <file_sep>=== Debt Reduction Calculator ===
Contributors: prasunsen, <NAME>
Tags: debt reduction, debt payoff, calculator
Requires at least: 2.0.2
Tested up to: 3.4.1
Stable tag: trunk
This plugin displays debt reduction calculator
== Description ==
This plugin displays functional debt reduction/debt payoff calculat... | 573569ab9e5c51bfd04601f92037121a97f7b779 | [
"Text",
"PHP"
] | 2 | Text | kazi-shahin/debt-reduction-calculator | 2884700f30769b5dea5f5eea22e799cfdbfa5203 | b52eeb745d98df25824f42d760cf12a506984aeb |
refs/heads/master | <repo_name>jacknichao/test-reference<file_sep>/src/jmetal/nichao/testreferences/test.java
package jmetal.nichao.testreferences;
import java.io.File;
import java.io.PrintWriter;
import java.nio.file.FileStore;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Scanner;
i... | 4e694edb876a57280c4be25568f44eb1cdf27eb5 | [
"Markdown",
"Java"
] | 4 | Java | jacknichao/test-reference | 882b2c3b0fbe37c6295c961d06c70c492c0d26b1 | 0a826dfdeb97b8bf0c16ba51f628cabe4eb9220f |
refs/heads/master | <file_sep><?php
namespace Models;
use Illuminate\Database\Eloquent\Model as Eloquent;
class User extends Eloquent
{
const CREATED_AT = 'date_created';
const UPDATED_AT = 'date_modified';
protected $table = 'users';
protected $dateFormat = 'U';
protected $fillable = [
'name',
'dat... | 7c9dba47c4839e4dabb41fea5d13fd6d7fa9fe5a | [
"PHP"
] | 2 | PHP | dmokhtari/laravel-db | 4ef04b5f46c30fd3e66958ecb1122c05349373ba | 66697bc8194a94520587846d2d129869997d06a8 |
refs/heads/master | <file_sep>from __future__ import print_function, division
import nltk
import sys, os
import random
from collections import Counter
from nltk import word_tokenize, WordNetLemmatizer
from nltk.corpus import stopwords
from nltk import NaiveBayesClassifier, classify
import pickle
import smtplib
import time
import imaplib
i... | 314184f82e96a74b553f585a7ae4a434a8e7c12d | [
"Markdown",
"Python",
"Dockerfile"
] | 3 | Python | Valeriekrm/valfelprojekt | ff88081f289d1394a2e6b2e5e1c902fc81b40740 | 213cb59e24a8c9967cd08b3a6ac036fdc848380e |
refs/heads/master | <file_sep>import collections
import operator
import re
def make_histogram(d):
histogram = [(l, len(i)) for l, i in d.iteritems()]
histogram = sorted(histogram, key=operator.itemgetter(1))
return histogram
class Hex(object):
"""
Data we store about a hex.
"""
def __init__(self, location, ... | f5acf36d60ff19348fa9c4a05811ca5c82de177b | [
"Python"
] | 1 | Python | dauten/hexenbracken | 5aa0010310ec9c946d91864df5cba882536bcf53 | 0971bc21549a6eadb423e91f4e58b58b6f455cd5 |
refs/heads/master | <file_sep>/**
* @file 工具函数集合
*/
/**
* @name 生成[0, n]范围内的随机数
* @param {Number} 范围上限
* @return {Number} 随机数
*/
const rand = (n) => {
return parseInt(Math.random() * n)
}
module.exports = {rand}<file_sep>/**
* 小程序样例 - 首页
*/
const app = getApp()
const fakeData = require('../../utils/mock')
const ... | 6e18e8ec97f91c1c5da6d2df7225629b60ceb3bc | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Yidadaa/miniapp-example | ce9370c3fccfefe07631194279df9496a271ffe3 | 0e7b980a26548c8ed3c475a440838504c103bab0 |
refs/heads/master | <repo_name>golsby/async<file_sep>/README.md
async
=====
A simple example of how to use the async/await pattern in C# 4.5.
Goal: actually perform a time-consuming operation that isn't already wrapped up in a task. That is, I've found myriad examples of how to write code that does asynchronous HTTP requests using code ... | 209029999855658662aae5eedd6bd3f844e3689b | [
"Markdown",
"C#"
] | 2 | Markdown | golsby/async | 53b3c3169901bec2ff17c6950c522748c44fa86a | e3435f85ede6693d81fbc1b4b2fc57d93421c885 |
refs/heads/master | <repo_name>echoywp/getWordContent<file_sep>/test.php
<?php
use Word\action;
require 'vendor/autoload.php';
$class = new action();
$class->setLoadPath('./test.docx');
$res = $class->getHtml();
print_r($res);
<file_sep>/README.md
# getWordContent
PHP获取Word内容
<file_sep>/src/Word/action.php
<?php
namespace Word;
use Php... | 0b884fb35e778f477a9b9c33dcdde3918464119e | [
"Markdown",
"PHP"
] | 3 | PHP | echoywp/getWordContent | 55b3fdb3bf3338f88ba6201ded8e45eaa89ffff6 | 889a4e7db06476338184e077bac8cefefb5181d4 |
refs/heads/master | <repo_name>marcofuentes05/Figuras<file_sep>/src/Comportamientos/Describible.kt
package Comportamientos
interface Describible {
//Un objeto describible ha de tener un atributo alto y un metodo pedirDatos()
var alto: Int
fun pedirDatos()
}<file_sep>/src/Figuras/Cuadrado.kt
package Figuras
import Comportami... | 263a91cd3085676d5218e542ad1f4628a96db283 | [
"Kotlin"
] | 6 | Kotlin | marcofuentes05/Figuras | 8c695a8319e1256a5bbacdc5d1b8dfd02c5dbf1a | ea45425115770547bb38d6fcc4964047d5edb95b |
refs/heads/master | <file_sep>MQTT Practice
========
This if for [OpenIRC](https://github.com/openirc) project
```bash
# Install dependencies
bundle
# Set username & password
cp secret.toml.example secret.toml
vim secret.toml
# Try it!
./run pub
./run sub
```
###### Prerequisite
- Ruby *≥2.0.0*
<file_sep>#!/bin/bash
# Change to scri... | 0d3422e07fb0062ede95c55245e71536da8c73ef | [
"Markdown",
"TOML",
"Ruby",
"Shell"
] | 5 | Markdown | simnalamburt/mqtt-practice | 9a5fec8132311a364d451dff4e1d0ad4e71ad070 | 976871b42bee302f52bb5a4d8c8777333ce3eb7a |
refs/heads/main | <repo_name>franklaguy/react-app<file_sep>/README.md
# react-app
React App Concept
| ebaf9f38f9ba221e817d04fd6b0770af2b057ce8 | [
"Markdown"
] | 1 | Markdown | franklaguy/react-app | 5e7284df5d5c5b83ed3328f83505e27e9fe6f3cd | af0ae2978420a0bff08a63e6e8f284c17d3ed8fc |
refs/heads/master | <file_sep># SCpersonal
Aplicación de desarrollo web con PHP, Mysql y Bootstrap.
<h3><font color='blue'>Sistema de Gestión de Personal.</font></h3>
Es una aplicación realizada con tecnología Bootstrap. la cual se integra con PHP, Mysql, Jquery y mas...
Para iniciar debes de tener el la guia de desarrollo del sistema... | db3fcc9882776be9bac4c33bef768f4e162a79e0 | [
"Markdown",
"SQL"
] | 2 | Markdown | jeefernandez/SCpersonal | 1a751564d89476de9051ba29419e04cfa1d283af | a2b6476c5e5fcc7955f906aa467b8b6c5792b086 |
refs/heads/master | <repo_name>candrec/curso_programacao<file_sep>/src/TesteString.java
public class TesteString {
public static void main(String[] args) {
String original = "abcde FGHIJ ABC abc DEFG ";
String s="Potato apple lemon";
String[] vect=s.split(" ");
String s01=original.toLowerCase();
String s02=original.toUpperC... | df006e14864f37d693ed61d48275b3156b400b99 | [
"Java"
] | 4 | Java | candrec/curso_programacao | d84d7b5652c9e08622573059d6bc5fa365066e26 | bf10072d79419da6922fa21320a1968d94298572 |
refs/heads/master | <file_sep><?php
class Csv {
private $fh;
protected $eol;
protected $delimiter;
protected $enclosure;
function __construct($fileName = '', $savePath = false, $eol = "\n", $delimiter = ",", $enclosure = '"') {
if ($fileName) {
$this->fileName = $fileName;
}
// NOTE: I don't think custom new lines work ... | 68242827d2192ec62a204750c2823218ac43311b | [
"Markdown",
"PHP"
] | 2 | PHP | matthewfedak/php-eol-csv | 9e125ff95e1edc974e32f0aed664bfe5974aba9b | 58629f7ebc4c609d689a08cf47e2c222b2104337 |
refs/heads/master | <file_sep>using Emgu.CV;
using Emgu.CV.OCR;
using Emgu.CV.Structure;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
u... | 41f20f700a7fc693df3e0614ef3e8d66a5682d7f | [
"Markdown",
"C#",
"SQL"
] | 3 | C# | yesim142536/PlakaOkuma-EmguCv- | ebca5a10f5ccd76ab4dec36823d0023895b447fb | 6be08b802f60bff573348f8d14cb0541bd9a8220 |
refs/heads/master | <file_sep>from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z=mc.player.getPos()
a=0
while a<20:
mc.setBlocks(x,y-1,z+30,x,y-10,z-30,19)
x=x-5
a=a+1<file_sep>from mcpi.minecraft import Minecraft
mc = Minecraft.create()
x,y,z=mc.player.getPos()
mc.setSign(x,y,z,63,0,"我愛","Minec... | 56352eac8431205e58b301d07194d09999dd7ebc | [
"Python"
] | 5 | Python | felix20080608/mPython2020-8 | 0c6b90cf3ec3d14c13af52f26ba0ae6f3f995783 | 9e5d434966c4c6a3870e79aa1375a8ad11e3a3a9 |
refs/heads/master | <file_sep>from testpy import myclass
def self(args):
pass
myclass.run(self)
<file_sep>import sfml as sf
mwindow = sf.RenderWindow(sf.VideoMode(640, 480), "SFML Application")
mplayer = sf.CircleShape()
class myclass:
mplayer.radius = 40
mplayer.position = (100, 100)
mplayer.fill_color = sf.Color.CYA... | 6244f35542a7b404c69cc5bd2cb3e420bdcd9033 | [
"Python"
] | 2 | Python | Thizze/AWPP | adc3adcf191c50992a1c9fdd414fd5d13f273fe1 | 02265dc2114dc4a29c8f4ea450dc3ab7a0db3988 |
refs/heads/master | <repo_name>mguterl/twallaby<file_sep>/dist/js/twallaby.js
this["JST"] = this["JST"] || {};
this["JST"]["app/templates/overview.us"] = function(obj) {
obj || (obj = {});
var __t, __p = '', __e = _.escape;
with (obj) {
__p += '<div id="overview" class="step" data-scale="' +
((__t = ( this.collection.size() / 3 )) == nul... | 8f7c4a56ce65d8ea7ce0521624b478275375b3e4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mguterl/twallaby | bcf9ab1bf728c6e6fc02ba95149e4ffeca9b9a51 | 764b5b2f4f5729f6d844e43f9f7db9762b508750 |
refs/heads/master | <file_sep>// Copyright 2020 The Moov Authors
// Use of this source code is governed by an Apache License
// license that can be found in the LICENSE file.
package imagecashletter
import (
"strings"
"testing"
)
// mockCredit creates a Credit
func mockCredit() *Credit {
cr := NewCredit()
cr.AuxiliaryOnUs = "01091... | 7c227a3e2f4b653b5d277e530335319df3aea7f5 | [
"Go"
] | 2 | Go | adamdecaf/imagecashletter | 85b706f7edf5beb4218ce6390f88911ee63aa06b | 38f719fff4edc08b75c1e61ad15e72cecf4ccd42 |
refs/heads/master | <repo_name>pmoulos/metaseqr<file_sep>/man/get.bs.organism.Rd
\name{get.bs.organism}
\alias{get.bs.organism}
\title{Return a proper formatted BSgenome organism name}
\usage{
get.bs.organism(org)
}
\arguments{
\item{org}{one of metaseqR supported organisms.}
}
\value{
A proper BSgenome package name.
}
\descri... | f06961d1fc7fd9fe4860f75cd76e4269c00d46d7 | [
"Markdown",
"R"
] | 146 | R | pmoulos/metaseqr | 81b42a9120c1830a46e68a50ce9dddb975975edf | 175f4e1f79593697fc98aa8b775cbd8c9d6ff3d7 |
refs/heads/master | <file_sep>public class SomeProgram {
public static void main(String[] args) {
System.out.println("We are learning to use Gitzmiana.");
}
public static void main(String[] args) {
System.out.println("Zarządzanie rakietami.");
} | 66eeb14294eb51c24599ab90b42b765d44206bb5 | [
"Java"
] | 1 | Java | michalowska11/mwo-git | 7728d665e61a51b58c08eb5eaf0d1a498a856b28 | 6877d21cf1a0d6aba1eb30feb9a46d74e4ac5e2c |
refs/heads/master | <file_sep>*Work in progress, adding sweet pics as I go.*
# Features
- Live OpenGL rendering
- Wavefront object loading
# Rendering
- KD tree for bounding boxes
- Cosine importance sampling
# Gallery


<file_sep>R"(
#version 330
i... | 1f741ab0ca6e6a101ea6bf39db0ba5ee2b3f6035 | [
"Markdown",
"CMake",
"JavaScript",
"C++"
] | 26 | Markdown | CLaverdiere/pathtracer | 73d17fe3316068f467869355694afff8e5722c7c | 8c60b2a470b6126ed142265a66784e27c14056ac |
refs/heads/master | <file_sep>---
title: 大前端笔记之03 🔍 CSS 选择器
date: 2020-01-20 16:57:55
abbrlink: 1lc5rbtd
tags: CSS
categories: 大前端
excerpt: 要修改元素的样式,那么首先要将这些元素找出来。CSS 提供了丰富的选择器用来选择想要修饰的元素。
---
# 大前端笔记之03 🔍 CSS 选择器
要修改元素的样式,那么首先要将这些元素找出来。CSS 提供了丰富的选择器用来选择想要修饰的元素。
## 简单选择器
下面是一些最为基础的选择器。
### 元素选择器
元素选择器也称为类型选择器,它通过 HTML 元素的名称选择对应的元素... | 195536556dd045067102d160be69cb6ece47a8fd | [
"Markdown",
"JavaScript"
] | 41 | Markdown | ChickenPopcorny/chicken-blog | 36e7348e30863d079a3af383bd7a1f14c2be4597 | 011c7745a706af0a0ce04da9cfcfc47e5fd52dca |
refs/heads/master | <file_sep>/* This program uses code from "Algorithms in C, Third Edition,"
* by <NAME>, Addison-Wesley, 1998.
*
*/
// Modified and added functions by <NAME>
#include <stdio.h>
#include <stdlib.h>
#include "list_hw.h"
struct node_struct
{
Item item;
link next;
};
struct list_struct
{
li... | 1f6cc7e90270bd466f08f3dcb87b287efe4e1066 | [
"C"
] | 7 | C | Iam-El/Algorithm-and-Datastructures | 875719d13c473575a5dba3deb7f54af1f3472956 | 9af6411f607f8e4126d33ca8f7b1d389e3a61d09 |
refs/heads/master | <file_sep>'use strict';
const mongoose = require('mongoose');
mongoose.set('useFindAndModify', false);
const alertSchema = new mongoose.Schema({
search: { type: String, required: true },
email: { type: String, required: true },
time: { type: Number, required: true },
createdAt: { type: Date, default: Date.now }
... | 93c505fe709b53dd6ffbaa929651903596a9832f | [
"JavaScript",
"Markdown",
"Shell"
] | 20 | JavaScript | PatrickRNG/RankMyApp_challenge | 066a090c1b0031a32eb761dbcdd43ad92670ee35 | 5f761e74053a14c5c1475f97d695005b292863b8 |
refs/heads/master | <repo_name>gfall94/PyTrinamicMicro<file_sep>/PyTrinamicMicro/platforms/motionpy/examples/modules/max/max14912pmb.py
'''
Example using the MAX14912PMB.
This script switches all the outputs to high and then back to low.
Created on 15.02.2021
@author: JH
'''
from pyb import Pin
from PyTrinamicMicro.platforms.motionpy.mo... | 58ce54411518a1ec8f540e6e3a93508a8109717d | [
"Python"
] | 4 | Python | gfall94/PyTrinamicMicro | 62da5c980c9f3b2ee75b37b0de0f843f6f9b0a68 | 0e89464d957f4cd9311484b488b995dfece65b9f |
refs/heads/master | <file_sep>package org.example;
import com.google.protobuf.ByteString;
import io.grpc.*;
import java.io.File;
import java.io.FileInputStream;
import com.google.flatbuffers.FlatBufferBuilder;
import com.google.protobuf.LiteralByteString;
import io.grpc.stub.StreamObserver;
import org.example.ProtoFileTransfer.TransferM... | ce74d7a23caa1a6766246249c7d49f98cad2a77c | [
"Java",
"Maven POM"
] | 3 | Java | anshkhannasbu/grpc-flatbuffers | 1c72356490b7959c0e423b2a5ec05a292f7a902c | 7b829c04005e7c3e569c9d0ee9ccd3e26c080209 |
refs/heads/master | <file_sep>它们 ByteBuffer 分配内存的两种方式。HeapByteBuffer 顾名思义其内存空间在 JVM 的 heap(堆)上分配,可以看做是 jdk 对于 byte[] 数组的封装;
而 DirectByteBuffer 则直接利用了系统接口进行内存申请,其内存分配在c heap 中,这样就减少了内存之间的拷贝操作,如此一来,在使用 DirectByteBuffer 时,
系统就可以直接从内存将数据写入到 Channel 中,而无需进行 Java 堆的内存申请,复制等操作,提高了性能。既然如此,为什么不直接使用 DirectByteBuffer,
还要来个 HeapByteBuffer?原因在于, Direc... | e2546dc70fc03ec9276dc3fb2387938305e89641 | [
"Markdown",
"Java"
] | 47 | Markdown | Shkin1/D-NOTEBOOK | 0dbaaac6b0a3157e86fe1bea6781e57a8165a047 | 00c8d7c940a2427c918ba5833c8f13ab8c36175e |
refs/heads/master | <repo_name>kupchenko/spring-boot-notes-demo<file_sep>/README.md
# Notes management system
### Getting started
### Setting up UI:
* Install dependencies UI part with ```npm i```
* UI Prod-Build ```npm run build:prod```
* Move output from ```ui/dist``` folder to ```src/main/resources/static```
### Run the application... | 1a2d70167bbf3b1a895780cb3c435a3f5948dd00 | [
"SQL",
"Markdown",
"JavaScript",
"Gradle",
"Java",
"Dockerfile"
] | 40 | Markdown | kupchenko/spring-boot-notes-demo | 1b2529658de5616980f288c7d06e50c72a7c1a76 | 2786931cbec73bf30eb49942c10848689b2f4831 |
refs/heads/main | <repo_name>chiranthancv95/EpAI2.0_CapStone<file_sep>/conftest.py
'''
This is the default script for pytest module to enable the arguments passing to the testing script which test_capstone.py script.
'''
import pytest
def pytest_addoption(parser):
'''
Defines the alternate to parser.add_arguments of parser_args to s... | a9d3bdbe9d2cab671f67ce962cad70b818a98b8b | [
"Markdown",
"Python",
"Text"
] | 11 | Python | chiranthancv95/EpAI2.0_CapStone | a50bbe9f65e091766e245a50a32a1379b75122af | 5e42ef148f92eaaf608fa881a39cca258ca7035b |
refs/heads/master | <file_sep>import com.google.api.ads.common.lib.auth.OfflineCredentials;
import com.google.api.ads.common.lib.auth.OfflineCredentials.Api;
import com.google.api.ads.dfp.axis.factory.DfpServices;
import com.google.api.ads.dfp.axis.utils.v201708.StatementBuilder;
import com.google.api.ads.dfp.axis.v201708.Company;
import ... | f4ced0ada723cc3fcb03ecee70c06b5367b1194f | [
"Java"
] | 2 | Java | m4292007/dfp | 49f31b46e6792d05224bf5e488167a875668fa54 | cdf1175de3adc23d95c1f2c81414fd1893842300 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using FindAssocE... | 99189009eddd13480ee220939cda29afb5cfa3ea | [
"C#"
] | 6 | C# | ShiraiShiika/Graico | 8ffc8e2c569a0281fbb3ae7545540551af13f53f | 0f3ba23ac9d5bd0dfd48b5dfd421443d97365f04 |
refs/heads/master | <file_sep>#!/bin/bash
#===========================================================================
# Title : ctuppi.sh
# Description : Script for setting up my dev environment
# Author : aristaako
# Version : 2.3
# Notes : Check readme.md for commands cheatsheet
# Usage : Just run the thing a... | adf3313ac4bad64a2c03d97e35a710cb68218614 | [
"Markdown",
"Shell"
] | 5 | Shell | aristaako/ctuppi | 73e2b17db30ad93fcb0ebfff592c3e2075fa3e45 | d67e4c241bcfb7f9a8b9c759e0fa71d8f9933e44 |
refs/heads/master | <file_sep>#include <vector>
int fib(int n) {
static vector<int> memo;
if (memo.size() == 0) {
memo.push_back(1);
memo.push_back(1);
}
if (n >= memo.size()) {
memo.push_back(fib(n-2) + fib(n-1));
}
return memo[n];
}
int climbStairs(int n) {
return fib(n);
}
<file_sep>#include <stdio.h>
int m... | 6550b65311e13a84242cffa9fedd461c4fbe143e | [
"C++",
"Shell"
] | 25 | C++ | szhongren/probs | 5ce1008dd91be6bdc01a4b7d145c3a75051d9e68 | 3da25a6c5bd9ddae34b41f3bc9eb5dc62849f8b0 |
refs/heads/master | <repo_name>Frankie937/Python_basic<file_sep>/python기본_11.py
# #**11-1 모듈(쉽게 설명하면, 필요한 것끼리 부품처럼 만들어진 파일이라고 보면 됨.
# # 예를 들어, 자동차를 타다가 타이어가 마모가 되면 타이어만 교체하면 되는 것 처럼
# # 소프트웨어도 부품만 교체하거나 추가할 수 있게 만들면 유지보수도 쉽고, 코드의 재사용도 수월해지는 장점이 있음
# # 이런식으로 딱 필요한 것들끼리 부품처럼 잘 만드는 것을 '모듈화'라고 함
# # 파이썬에서는 함수 정의나 클래스 등의 파이썬 문장들을 담고 있는 파일을 모듈... | 5ba9c291ae17342b9d86b80d77613fd2b16a1e4e | [
"Python"
] | 8 | Python | Frankie937/Python_basic | d2fb5cc5ae254b10425874f6191204732644627b | 60aa070de66bb9cc74867d0a7304eb9c5e94e861 |
refs/heads/master | <repo_name>mohamed0328/PieShop-Asp.net-Core-2.2<file_sep>/BethanysPieShop/Iconfigurstion.cs
namespace BethanysPieShop
{
public class IConfigurstion
{
}
} | 420d1e423edac3c0926aaf04144d96487db8644c | [
"C#"
] | 1 | C# | mohamed0328/PieShop-Asp.net-Core-2.2 | fbed67400b056f31551875b23a38164b74608055 | f620c8acfe043907aeb901527a6b885444ae3e7c |
refs/heads/master | <repo_name>snehasingi/ReactAssignments<file_sep>/src/Components/TSkills.js
import React,{Component} from 'react'
class TSkills extends Component{
state = {
emplist : this.props.employeeDetails
}
componentDidMount = () => {
this.setState({emplist : this.props.employeeDetails});
}
r... | efa7fbd5609e818471e51d0a2b2fb82bd5d5240d | [
"JavaScript"
] | 6 | JavaScript | snehasingi/ReactAssignments | 76d78c5f48447d4ef3ce3e2880edc8545b32afaa | 70cc1e22f40adb516eed92b815457bd54ddd75aa |
refs/heads/master | <file_sep># -*- encoding: utf-8 -*-
module XmppServer
#drb interface
class Pusher
def push(username, content)
m = XmppServer::M.new(username, content)
XmppServer::QUEUE.push m
return nil #from : http://ruby-china.org/topics/5550
end
end
end
<file_sep>require 'spec_helper'
describe "XmppServer.p... | 4b8b711690008e83959f2ffc3640d208edd349ad | [
"Markdown",
"Ruby"
] | 14 | Ruby | chucai/xmpp_server | 699d398c24a840b687c63148aefe9b469a8ae20c | bd80ed739d414743f82b84a72210d96e25b756a9 |
refs/heads/master | <repo_name>chrispicato/TickrTaker<file_sep>/app/components/cart.jsx
import React, {Component} from 'react';
export default class Cart extends Component {
constructor(props) {
super(props)
this.state = {
sum: 0
}
}
componentDidMount () {
var context = this;
setTimeout(function () ... | b84bc664254557bffc1cfc0bdaeed11d7fccd0c9 | [
"JavaScript"
] | 2 | JavaScript | chrispicato/TickrTaker | 0b28fa904ed5bd6c88c448d19aedd7a02a21783d | 6767a09a954940c4301b4688c20b967aaf9cfc75 |
refs/heads/master | <repo_name>leoliuzhou/SinaVideoSdkDemo<file_sep>/SinaVideoSdk/sinavideosdk2/src/main/java/com/sina/sinavideo/sdk/widgets/VDVideoPlayButton.java
package com.sina.sinavideo.sdk.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.Log;
impor... | 5f621a8abad937374021dc975ea54dd6d40f3d47 | [
"Java",
"Gradle"
] | 18 | Java | leoliuzhou/SinaVideoSdkDemo | cf2f04af95845dbd336bc37c1753d1f9567cac59 | 71ed9436b27e6d8416006e08f8f1e01e72ce5fb4 |
refs/heads/master | <file_sep>source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
target 'SideMenu_Example', :exclusive => true do
pod "SideMenu", :path => "../"
end
target 'SideMenu_Tests', :exclusive => true do
pod "SideMenu", :path => "../"
end
| d71b2e2d4097970ef32890236d68d13c21dd3832 | [
"Ruby"
] | 1 | Ruby | JeffGuKang/SideMenu | c1de417520114653e7d6a3106ebea4c545c2afc1 | 8f8ea9fbc5fea6891f8722bbd78b00ffbb653fd7 |
refs/heads/master | <file_sep>//
// TIMETABLEViewController.swift
// MSRIT CONNECT
//
// Created by Apple on 05/02/20.
// Copyright © 2020 KARTLA. All rights reserved.
//
import UIKit
class TIMETABLEViewController: UIViewController ,UIPopoverPresentationControllerDelegate{
@IBOutlet weak var button: UIButton!
overrid... | bc292e6865e55a2b3a1ab9432d54d1bc573e2e58 | [
"Swift"
] | 2 | Swift | sjain117/msrit-connect1 | fc4aec6b7df8167b5556faab2225858c893e210d | 18d1f6c1751cad72c21925495e2595ec2d0c130e |
refs/heads/master | <file_sep>import express from "express"
import bodyParser from "body-parser"
import {MongoClient} from "mongodb"
import path from 'path'
const app = express()
app.use(express.static(path.join(__dirname,'/build')))
app.use(bodyParser.json())
const dbURL = 'mongodb://localhost:27017/'
const setDB = async (operations) ... | 236a60763ef983c89acb0c5b6f9c996bf96bda57 | [
"JavaScript"
] | 1 | JavaScript | AbhishaShah/my-blog | ec19a4426ae6815a44e4d53fc6fb55edb324681e | 95f2d46abcc48faa3e98719595b0dd9f32bfe71d |
refs/heads/master | <file_sep>import statistics as es
hitoria_n1 = float(input('Digite a primeira nota: '))
hitoria_n2 = float(input('Digite a segunda nota: '))
lista_notas = [hitoria_n1,hitoria_n2]
media = es.mean(lista_notas)
if media >= 7:
print('aprovado')
elif media >= 5 and media < 7:
print('recuperação')
else: print (... | 084656dccc5e78fe59acf5a9b1232d674a54cedf | [
"Python"
] | 1 | Python | AbnerAbreu/Media-Aritimetica | aa9d0aca052446e618674c21ba75607394ba1ee5 | 2ef0ccab7ec1bdb1fa6cc94aebc1c1dcac7b9d82 |
refs/heads/master | <repo_name>easonlin404/limit<file_sep>/example/example.go
package main
import (
"github.com/easonlin404/limit"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.Use(limit.Limit(200)) // limit the number of current requests
r.GET("/", func(c *gin.Context) {
// your code
})
r.Run()
}
<file_sep... | a53a83c269a2c0e4ce95f051ab5ccf7b477dd227 | [
"Markdown",
"Go"
] | 4 | Go | easonlin404/limit | 3d7b09b656e270910ab648115ee537628574de87 | 569c40adf1759327a4291ec7c2066c27f3245a26 |
refs/heads/master | <file_sep>
$(window).on('load', function(){
$('#loader-container').fadeOut();
$('#show-after-window-load').fadeIn();
})
<file_sep>// Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "flashy-84f3e.firebaseapp.com",
databaseURL: "https://flashy-84f3e.firebaseio.com",
projectId: "flash... | 373783e6fbb854b918909faeca5fc08a2a7ace16 | [
"JavaScript"
] | 2 | JavaScript | vijaylama/nl-test | f1100e1d52de31c21454eaf4257b7f84257891df | 64e158a9449c021214d18f4e7e0e8d43f91abac5 |
refs/heads/master | <repo_name>tato-rj/thesciencebreaker<file_sep>/app/Providers/AppServiceProvider.php
<?php
namespace App\Providers;
use App\Category;
use App\Article;
use App\Highlight;
use App\Tag;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Se... | 70257a968b836d232f6d5da267cd2a7716ff213b | [
"JavaScript",
"Text",
"Markdown",
"PHP"
] | 115 | PHP | tato-rj/thesciencebreaker | 05589cb4a27d4cd07fc04f08f13ab1479c48aae1 | f929b7f8cbb2d5d5f85bae84b28d02d6deb38496 |
refs/heads/master | <file_sep>function law_id(key_){
var searchArray = location.search.split('&');//获取URL的search部分并且以"&"为界限分割
var key = {};
var value = {};
for(var i=0;i < searchArray.length;i++)
{
if (searchArray[i].split('=')[0] ==key_)
{
console.log(searchArray[i].split('=')[1]);
... | ed4572be5d9cc15720343019610ea40044510398 | [
"JavaScript"
] | 2 | JavaScript | lw664256297/tupianshangchuan | 7e4cfb58c8535db62cdd123ecc7d42b880ea55e1 | 934aa14d52f38a5aba09e349fa09d4543da8554e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.