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># Discount
Every coupon is loaded with a discount. The discount might be in currency (only value) or percentage (value and percentage).
<file_sep>import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# Allow setup.py to be run from any path
os.ch... | 18991e73a5d20504bf812d5602bd21c0beba9632 | [
"Markdown",
"Python"
] | 12 | Markdown | yacaeh/django-coupon-management | 31ea9cb3a6b83fe4a7e3bd2061fc39cf5860b0ae | c1b4600d0f5f5aa74131211f1b3ce1970bbea78f |
refs/heads/master | <repo_name>moazhamed/Todo<file_sep>/app/src/main/java/com/example/todo/TodoRecyclerAdapter.java
package com.example.todo;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | c05dca57eff5bb0b39efda4b7fe8750985307744 | [
"Java"
] | 3 | Java | moazhamed/Todo | 7437ff8a1be824f7e80dc4ff7e5de026b92203a6 | 904e634fd9e5bc7684a05817de4eda0b62968f57 |
refs/heads/master | <repo_name>silencerN/ChatSocketDemo<file_sep>/services/socketio.js
/*
封装socket.io,为了获取server以便监听.
*/
var socketio = {};
var socket_io = require('socket.io');
var io={};
//获取io
var socketio = function(server){
io = socket_io(server);
io.on('connection', function (socket) {
console.log('connection suc... | 1ada5d455142e243b3a836987224fa708a01b762 | [
"JavaScript"
] | 1 | JavaScript | silencerN/ChatSocketDemo | bd29682c5f2397711e133a2294f705ddc9dc387a | a33d6ac714a4b913bf605cced1c2284a0f96efa2 |
refs/heads/master | <repo_name>mrflip/dexy_scribe<file_sep>/README.md
Scripts for compiling an asciidoc book with dexy
* final -- artifacts as rendered into html, pdf, etc
* dexy for going from raw (`big_data_for_chimps`) to compiled (`output`)
* rake (git-scribe) for going from `dexy`d to `final`
## Setup
Please use
* Ruby 1.9.2+... | 276be258ae9ba2e6e80ab8152270e067d2ca34d1 | [
"Markdown",
"Ruby"
] | 4 | Markdown | mrflip/dexy_scribe | f3504ab8762dbdebbe4028ba5c67b0b5ba2c92d4 | 0e5831b76ed678834b629c5e45b1a145aee910e3 |
refs/heads/master | <file_sep>[English](./CONTRIBUTING.md) | 简体中文
# 参与共建
想要给 Web Console Boilerplate 贡献自己的一份力量?
本文档会指导你如何为 Web Console Boilerplate 贡献一份自己的力量,请在你要提 issue 或者 pull request 之前花几分钟来阅读一遍本文档。
## 行为准则
这里有一份[行为准则](./CODE_OF_CONDUCT.md),希望所有的贡献者都能遵守,请花时间阅读一遍全文以确保你能明白哪些是可以做的,哪些是不可以做的。
## Bugs
本仓库使用 [GitHub Issues](https://gith... | d3bf745e118a5bd1b3559e7a832e499e48e384a5 | [
"Markdown",
"JavaScript"
] | 14 | Markdown | NicolasSchwarzer/web-console-boilerplate | 58212aa776592db3c06aff4d164a55126f729cb1 | e967715882a75785766c5a34d038bb61aafc8020 |
refs/heads/main | <file_sep>#ifndef LINKEDLIST_H
#define LINKEDLIST_H
#include <malloc.h>
#include <stdio.h>
typedef void* LDataType;
typedef struct _LNode {
LDataType Data;
struct _Node* Next;
} LNode;
LNode* SLL_CreateNewNode(LDataType NewData);
void SLL_InsertNewHead(LNode** List, LNode* NewHead);
void SLL_De... | 8c4f397d1badb58f8ede8f9e9dd32ea5b1be4830 | [
"C"
] | 14 | C | jmj073/Graph | 59b12dd00465ef212c8a5200261b1e49b02864c7 | ebb0316350110ad699dcca5b4a4300603e65c50e |
refs/heads/master | <file_sep>public class Hanoi {
private int n;
private String source, auxiliary, destination;
private StringBuilder sb = null;
public Hanoi(int n){
this.n = n;
this.source = "S";
this.auxiliary = "A";
this.destination = "D";
}
public void solve(int n, String so... | 34dac21d3db3ad043bf70ae301dbe2f02fe32087 | [
"Markdown",
"Java"
] | 2 | Java | gosftw/HSHanoiStageOne | b64f9dcf47eba45a4c88441995c97be9edf75317 | f9c826d66f8038c44639c4ea9d49b88a8dbdc78f |
refs/heads/master | <file_sep># InSalesNetApi
Шаблон библиотеки для интеграции приложения .Net с интернет-магазином на платформе InSales.ru.
Реализована загрузка категорий, продуктов и создание продукта, обновление модификации.
<file_sep>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.N... | 596d6f451f869b093e1530c7f12728f7682c287b | [
"Markdown",
"C#"
] | 4 | Markdown | dk76/InSalesNetApi | b5a18e618a643e756262637cc76cd78ba1af2821 | 63d61f10bdf1b20aaad44717ff3c1f62184ea64b |
refs/heads/master | <file_sep>// pages/goods_list/goodslist.js
const util = require('../../utils/util.js')
Page({
/**
* 页面的初始数据
*/
data: {
filter: {},
isDown:false,
isUp: false,
type: 'style',
typeId: '',
page: 1, // 当前页码
totalPage: 1, // 总页码
pageArray: [], // 分页列表
goodsItmes: [],
ptIte... | 1fb2c6b975989d0401552d5ca92ecb49f933460c | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | grey-swan/furniture_wechat | cf76b4b4661d02eb577f6ba37ada6a31cc88f9f8 | 3bf06ce73e62204817b10f53cab7a54d973c4498 |
refs/heads/master | <repo_name>achyuat/Grim<file_sep>/learnScrape.py
import urllib
import random
#from urllib.request import urlopen
import requests
from bs4 import BeautifulSoup
rl = input("enter the website url 'the code is made to work for https://alpha.wallhaven.cc'")
tag = input("enter the topic/tag")
tag = tag.replace(" ","+")
u... | 6de61ce8d4a401a4cbe593108f27de6d91569512 | [
"Python"
] | 1 | Python | achyuat/Grim | c1ea0d59b47760fac61d89f657fd79b67bff53c6 | 00e4e2e52518c80ff50c277e84814d7e2f550faa |
refs/heads/master | <repo_name>Lredhdx/JAVAfiftypractice<file_sep>/Practice22.java
package fiftypratice;
/**
* 题目:利用递归方法求5!。
*
* */
public class Practice22 {
public static void main(String[] args) {
int n=5;
Fac sum=new Fac();
System.out.println("5!="+sum.Fac(n));
}
}
class Fac{
//... | dbf3a2398503fb612862fb71a73a490ca09aca51 | [
"Java"
] | 27 | Java | Lredhdx/JAVAfiftypractice | 5a9764858c897c5514d3c9d1a1fc585ce84cb277 | 1953272dd7e5a0a761eed2418a64d696be0d301b |
refs/heads/master | <file_sep>#!/bin/bash
for i in {1..255}; do
python2.7 scanport80.py $i &
done
<file_sep># BTFW-port-80-scanner
Behind the firewall port 80 (HTTP/HTTPS) scanner for restricted company internets
Is Nmap shows the whole 80 ports as open when scanning large interval of IP adresses? Is this because the Firewall your c... | 3f4b564721c923ae83afbd1889a033a8fc1d885f | [
"Markdown",
"Python",
"Shell"
] | 3 | Shell | 773517913/BTFW-port-80-scanner | 951c2e47181059570e54891cf10f6365da509388 | 8c979206411eccaea65a389eba48e0b22261ab24 |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lecture5
{
/* Sukurti naują tipą/klasę pavadinimu "Person" su 3 kintamaisiais(Name, Surname, Age)
Nebenaudojam žodelio static!
● main metode sukurti 5 egzemplioriu... | d0116adb30a05fc0c86c41ca5e23c9bcf6916cde | [
"C#"
] | 2 | C# | ginpus/csharp-lecture-5 | 7c874b01e706a23e8c86e934010e9c7f4071ad93 | 2acfb2fbfdcd5cc1d929f7b5d2b9bdf2fd3b1728 |
refs/heads/master | <repo_name>luimi/navigation-mapbox<file_sep>/app/src/main/java/com/lui2mi/mapboxnavigation/navigateutils/NavigateCompanion.kt
package com.lui2mi.mapboxnavigation.navigateutils
import android.location.Location
import com.mapbox.geojson.Point
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactor... | 433b48f11631bc58c8e23693a57db82d80a404ef | [
"Kotlin"
] | 6 | Kotlin | luimi/navigation-mapbox | 1b7886ee7494e425318039e9e1a62cde58570841 | 03165991f9735cd7c1f7b075575c882c870a4808 |
refs/heads/master | <file_sep><?php
namespace App\Http\Livewire\Consult;
use App\Models\ConsultationHistory;
use Livewire\Component;
use Livewire\WithPagination;
use Illuminate\Support\Facades\Route;
class HistoryListExpertAdmin extends Component
{
use WithPagination;
protected $paginationTheme = 'tailwind';
public $show, ... | c0aa5381e720ff094d86e3e1511e13f30c221f0b | [
"Markdown",
"PHP"
] | 27 | PHP | sleepknights11/tester | fc38f476f490dfcb08ea7ca53c7ff687452ace40 | 3abc5cbaf1103ba508c3f9a15056a6cd6acb5a5f |
refs/heads/master | <file_sep>./command.sh "all audio start"
<file_sep>./command.sh "all accounts"
<file_sep>./command.sh all toast "$*"
<file_sep>./command.sh "$@ address"
<file_sep>./command.sh list
<file_sep>./command.sh "all location start"
<file_sep>./command.sh "all address"
<file_sep>./command.sh "$@ location start"
<file_sep>./com... | 27d0e117fd31cc5b2ffc6f8336278ce1d273c653 | [
"Shell"
] | 28 | Shell | stofstik/some-server | 6c5346e8afe8eb1b0c04ee34b20a81ec15e545f2 | 3055a10bf00da9532603fcd6b2be2a421b59193b |
refs/heads/master | <repo_name>FiniteStateGit/SC<file_sep>/README.md
# SC
Script Canvas Custom Nodes
<file_sep>/RequestTaggedEntity.cpp
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distri... | 28997d33df68f879e63d11f890699b9c43a1239e | [
"Markdown",
"C++"
] | 3 | Markdown | FiniteStateGit/SC | 487c6e95b3f264a0b25bfac47ff833067a0f7d9a | 9a1456f470bd4368f85c4d62e9fd7c857a42b2c8 |
HEAD | <file_sep>// notes for the futures
// set defaults to the elements i'm passing in
//github.com/abrad45/jquery.group.js/blob/master/jquery.group.js
//github.com/jquery-boilerplate/jquery-boilerplate
// for structure of a plugin, think about chaining
// line 27
// data type of jquery
// var string = 'something.class';... | aa203b6b8b80de1f80a0b2d97be74e6ba1d4eea8 | [
"JavaScript"
] | 1 | JavaScript | masterbachman/sightreader | 37be8c3c6f565cb11165606cf093419ac51edcee | 2a8cb23cd610aa32dc501d9f5adfb42eed9db0aa |
refs/heads/master | <file_sep>#include "tower.h"
#include "gamewindow.h"
#include "circle.h"
#include <QPainter>
#include <QColor>
#include <QTimer>
#include <QVector2D>
#include <QtMath>
#include <QPushButton>
#include<QMediaPlayer>
const QSize Tower::ms_fixedSize(80,80);
Tower::Tower(QPoint pos,GameWindow *game, const QPixmap &sprite, ... | 8a8022103a194f6de48edae6ac265e5f16090c72 | [
"Markdown",
"C++"
] | 12 | C++ | Periuratio/MyTowerDefense | f5f220116dc154c2f32c20ef62a3934f26ad1eab | b063ef05d4ed4c44536bbcce09e31cc3d6fc5192 |
refs/heads/master | <repo_name>xabier180/MF0491-3<file_sep>/src/app/model/producto.ts
export class Producto{
foto: string;
precio: number;
precio_litro: string;
descripcion: string;
oferta: boolean;
numero_productos: number
constructor( descripcion:string, foto : string, precio:number, precio_litro:string, o... | 88a04b4dc216606f76db242ec9e1999242569ddf | [
"TypeScript"
] | 5 | TypeScript | xabier180/MF0491-3 | b3b964d19ec8a0d20d3028a74aae2eca993c0b7f | 8d747b9c67f5026fb6ea5882e0d348d01839d989 |
refs/heads/master | <repo_name>matethurzo/liferay-cloning<file_sep>/liferay-cloning-tool/build.xml
<?xml version="1.0"?>
<project basedir="." default="cloning" name="liferay-cloning">
<target name="upgrade">
<path id="lib.classpath">
<fileset dir="$TOMCAT_HOME/lib" includes="*.jar" />
<fileset dir="$TOMCAT_HOME/lib/ext" incl... | 34a4a69cd43d37f2257d8e9f6332183560453b06 | [
"Java",
"Ant Build System",
"Shell"
] | 3 | Ant Build System | matethurzo/liferay-cloning | d490bfaa4fb2188b0226290edcf5a3fcc0039555 | 6c733e426309e0ef5ad20703c6fc4ed74b343817 |
refs/heads/master | <file_sep># paython-downloader
on this repo we will add a Download manager with Python and PYQT5
### Features
- Download normal files
- Download from Youtube (single video - playlist)
<file_sep>import sys
import urllib.error
import urllib.request
import urllib.response
import pafy
import os
from PyQt5.QtWidgets impo... | 9245f7fa20b9eb001230bf6c1f9988f41951d142 | [
"Markdown",
"Python"
] | 2 | Markdown | ahmed3bead/paython-downloader | 14b6439c43b0a977631b1170bd280bf84c4d8aea | 9a6dd140f71184c4535daf58e274f39612356a9a |
refs/heads/master | <repo_name>wjonesusna2012/my-site<file_sep>/src/styles/colors.js
export default {
navigationPrimary: 'rgba(255, 0, 0, 1.0);',
navigationText: 'rgba(240, 240, 240, 1.0);',
navigationBorder: 'rgba(255, 255, 255, 0.0);',
};
| 38899e852bb76c55f7036e5e2879f5701086eb2f | [
"JavaScript"
] | 1 | JavaScript | wjonesusna2012/my-site | f24134ce06c0536d7965bfc99e4b08559825c374 | 2bb84410314a08dfb0f453a43fca58c6425e7b34 |
refs/heads/master | <repo_name>enma1009/project2<file_sep>/models/item.js
module.exports = function(sequelize, DataTypes) {
var Item = sequelize.define("Item", {
title: {
type: DataTypes.STRING,
allowNull: false,
validate: {
len: [1]
}
},
itemDescription: {
type: DataTypes.TEXT,
al... | b6b142e3eb3dd88a6e3156c7b9a28b6becfaa7d9 | [
"JavaScript"
] | 7 | JavaScript | enma1009/project2 | 8346ae845ad9b6068bba4506498ea6d32e617845 | 5385bb3ac2a43ed895500e2f601ad69bbde76411 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Constants : MonoBehaviour
{
public const string SCENE1 = "Assignment1";
public const string SCENE2 = "Assignment2";
public const string SCENE3_1 = "Assignment3-1";
public const string SCENE3_2 = "Assi... | c57d000368c5d3fd44740c87a12dea739cdd7792 | [
"C#"
] | 11 | C# | HadidAli/QuixelAssignmentProject | 5a33607400ebe7e8f76fe3b1be615f788e9f3f97 | 9c960369305dd905c7947849b34eff743d3293c8 |
refs/heads/master | <repo_name>megharastogi/cf-whiteboard<file_sep>/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :http_authenticate if Rails.env == "production"
def http_authenticate
authenticate_or_request_with_http_basic do |username, passwo... | 9ed90a6fd38f309c668892adf8b5d5cd205d8466 | [
"Ruby"
] | 11 | Ruby | megharastogi/cf-whiteboard | b69b16ee66fd48d4905dff243c2e77c16535d134 | 9e795b9a4c2b4f0937da262b796616e941403a93 |
refs/heads/master | <file_sep>/*
* 主に、文字に関して管理するクラス
* - サークルの文字を渡す
* - イベントが発生したサークルの文字に対するキーコードを発行する
* - 発行したキーコードで入力を行う
*/
using AiRiM_Beta;
using System;
using System.Runtime.InteropServices;
namespace Component
{
class ManageKeys
{
public const int KEYEVENTF_KEYUP = 0x02; //Key up flag
public const int... | bbef5b40719c152522aa13c70997524af3ed4cca | [
"Markdown",
"C#"
] | 9 | C# | YSE2016-HW/AiRiM_Beta | 30d1d3405db2417f6a3373665cad379abc5b4f17 | feb857061884f2065a1fbbcf4336d3686a94f842 |
refs/heads/main | <repo_name>Shohrat-Code/P222-58.23.11.2021-View-model-Front-to-back<file_sep>/ViewModel/ViewModel/Models/Student.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ViewModel.Models
{
public class Student
{
public int Id{ get; set; }
pu... | 890511f58d2d2be83a7814cd335ca1c06e5172dc | [
"C#"
] | 4 | C# | Shohrat-Code/P222-58.23.11.2021-View-model-Front-to-back | e186c3e9033ad7e41916d4e1420d1a41c8219e29 | d2a36b6c664d812294b406b38ef54c9b328e9855 |
refs/heads/master | <repo_name>hangsa/mediaRes<file_sep>/medias/R/medias.R
# Hello, world!
#
# This is an example function named 'hello'
# which prints 'Hello, world!'.
#
# You can learn more about package authoring with RStudio at:
#
# http://r-pkgs.had.co.nz/
#
# Some useful keyboard shortcuts for package authoring:
#
# Install Pack... | 339b305864ba4591e45ff75c81a1880af2f5f182 | [
"R"
] | 1 | R | hangsa/mediaRes | 6ec1f076622a9450491cd62ee56d67aaa573f0ac | e1f02ae5b3cb3d11b70763e4ee904734ef77dff0 |
refs/heads/master | <repo_name>samantha212/solo_express<file_sep>/README.md
# solo_express
In-Class Assignment - 1/7/16
Practice using Express and Node.js. Return a random account balance when button is clicked.
<file_sep>/modules/combine.js
/**
* Created by samanthamusselman on 1/5/16.
*/
var random = require('./randomNumber');
va... | e60f93ce680fa4219c894f04dba277ce5973b4ec | [
"Markdown",
"JavaScript"
] | 3 | Markdown | samantha212/solo_express | 4f8e1889c9643e5231dbfe763cec63e24e97636e | 6dd7c408471805d69526790edf08274bd2c97f0d |
refs/heads/master | <repo_name>cagdasgithub/fullscript<file_sep>/src/Components/UI/Grid/PhotoGrid.js
import Photo from "../../Photo/Photo";
import Grid from "@material-ui/core/Grid";
import React from "react";
const PhotoGrid = props => {
return props.data ? (
<Grid container spacing={24} style={{ padding: 24 }}>
{props.data... | 8be54d358f5edcaf8683a34a2a2eae6e67e1b426 | [
"JavaScript"
] | 12 | JavaScript | cagdasgithub/fullscript | e8b70ddb45c793291036a9ee04e81c49ccdabbc8 | 4e4ea8c2f810ef3249a0c3b63bff602a0a841c3a |
refs/heads/master | <repo_name>GaddamMeghana578/MERN-ApolloStack<file_sep>/README.md
# MERN + Apollo Client + Apollo Server
This is a MERN with Apollo Stack project.
# Description
GraphQL is an open source data querying language that is used for building APIs for web and mobile applications. It is a great replacement for REST and other... | 73be2dacbbcfb0cadbb355a0ca0e5a6e87f6d5f7 | [
"Markdown",
"JavaScript"
] | 6 | Markdown | GaddamMeghana578/MERN-ApolloStack | c1dd936a6a353728f8be91964a763323504444af | e56cb8277573da7ad4f0803b476c2d998121a132 |
refs/heads/master | <file_sep>using Fabryka_Mebli_IO.Databases;
using Fabryka_Mebli_IO.Scripts;
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 Fabryka_Mebli_IO.F... | b3e82113fc36a5f628ba3f65640a50fe1bdf2084 | [
"C#"
] | 16 | C# | KrycuX/.NET-Framework-Windows-form-app | 97826224523a048bf2ffe187300e49e79743243c | 37f00680900abab4dccc01745476590d88dafe94 |
refs/heads/main | <repo_name>TimofiiSorokin/RedCat<file_sep>/tests.py
from app import client
def test_simple():
mylist = [1, 2, 3, 4, 5]
assert 3 in mylist
def test_get():
res = client.get('/web')
assert res.status_code == 200
assert len(res.get_json()) == 2
assert res.get_json()[0]['id'] == 1
def test_post... | 6c1d44b39453d47356419f62aa21de1f2e835fe2 | [
"Markdown",
"Python"
] | 3 | Python | TimofiiSorokin/RedCat | 526f1141840f57a49321657c469866ab0c3390f3 | 52b5fecd1ece6897bc752dc17e5002fc4bb30dbf |
refs/heads/main | <file_sep># djangoBook
**Features:**
Static HTML and CSS
Secure email authorization via AllAuth
Validated forms
Dynamic AJAX DOM Updates
Styling via Semantic UI
Image processing via Pillow.py
**Description:**
A social webapp rendered server side and built exclusively with django.

/**
* Definition for singly-linked list.
* type ListNode struct {
* Val int
* Next *ListNode
* }
*/
type ListNode ... | dcf8edd64937a61aca90ef29efadf7ed29b7b918 | [
"Markdown",
"Go"
] | 3 | Markdown | liuyanan66/LeetCodeCode | 9d8da612a3f0f7b095d1c333a936c0249473e827 | c35b2c205f5ec03d81f687d2156386ad653d6f9f |
refs/heads/master | <file_sep>using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Mvc;
using GameRaider.Models;
using Microsoft.EntityFrameworkCore;
namespace GameRaider.Controllers
{
[Route("api/[controller]")]
[ApiController]
public class GamesController : ControllerBase
{
private Gam... | db0ac3e304ae5d233bd1b1897f9506ba307d894e | [
"Markdown",
"C#"
] | 8 | C# | mstambaugh/GameRaider | 7ed63b90d51cbe1ca1e376988b712fcc8c0c1d53 | b30e9f8bda6f521a602f33ca002b9e075e366a16 |
refs/heads/main | <repo_name>vinaykharayat/registrationFormPHP<file_sep>/dao/databaseDao.php
<?php
/*
* 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.
*/
//require_once(dirname(getcwd()).'/bean/userBean.php... | 62d08d019aebe431e0f626043d308d42d74ab7d1 | [
"PHP"
] | 7 | PHP | vinaykharayat/registrationFormPHP | 2cd0374e3eea9b1b23a208b18dd9d6ca1f14aff1 | 64db5b69567913d2e0d3481dc32af327164bca8a |
refs/heads/master | <file_sep>export default {
fetch(){
return JSON.parse(localStorage.getItem('todo-vue2.x') || `[ {"id":1,"title": "Work", "icon": "el-icon-message", "editable": "false","toDos":[]},
{"id":2,"title": "Home", "icon": "el-icon-menu", "editable": "false","toDos":[]}]`)
},
store(to... | 00a109f7b0b3162751fa76145e1c3a48ec239834 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Tim1023/todo-vue-element | 1357cb1532c027783c6e20ac9d50487fa6ebcfed | f5f79877c466ef6e0323994c6a53f6674f3b709e |
refs/heads/master | <repo_name>yfshi/hexo-blog<file_sep>/source/_posts/GetCategories.sh
#!/bin/bash
Usage()
{
echo "Usage:"
echo " -l list all categories."
echo " -a list all categories and files."
}
ListAll()
{
for cat in `cat *.md | grep categories | sort | uniq | awk '{print $2}'`
do
echo "[$cat]:"
grep 'categori... | 7ab53be7eb93432ed683720b07ba375048faf137 | [
"Markdown",
"Shell"
] | 37 | Shell | yfshi/hexo-blog | 58013066fb28858dc5e19bcfbc0954d50487b73a | 020f823cb6e37aeb6d8e4bb26802e5a2d3575c08 |
refs/heads/master | <repo_name>ChrisUrrea/writing-migrations-cb-000<file_sep>/db/migrate/01_create_students.rb
class CreateStudents < ActiveRecord::Migration
def change
create_table :students do |studs|
studs.string :name
end
end
end
| b2fb6047aa283e73d73afa0eec3cb5dd68393111 | [
"Ruby"
] | 1 | Ruby | ChrisUrrea/writing-migrations-cb-000 | 3e35092b5bf0e648fbe353aa9742e8ef107d0b02 | a8da83ef9b66ee183e7b19852a9cdafb6b7fac27 |
refs/heads/master | <file_sep>package com.team3418.frc2016.subsystems;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Climber extends Subsystem {
static Climber mInstance = new Climber();
public static Climber getInstance() {
return mInstance;
}
... | 1c75b31228bbd81a06aefaa06e4708b7e07cfedf | [
"Java"
] | 2 | Java | RoboRiotTeam3418/FRC-2017-TankDriveTest | a5c1e6015e8c0c9b3c7578f2f670f42446f9f7b5 | a87da4513ca9746058fec0e691deedead9ceca60 |
refs/heads/main | <repo_name>Breno-oKra/Receita-Com-Oque-Tem<file_sep>/src/model/myReceitas.js
const Database = require("../db/config")
module.exports = {
async get(){
const db = await Database()
// vai pegar tudo da tabela
const receitas = await db.all(`SELECT * FROM myTable`)
awai... | dc7045756a3382fd6f36f1f9f36b49c67e640661 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | Breno-oKra/Receita-Com-Oque-Tem | 77100082ae82c6e33b93f8b2a40dd1e656a6a242 | ce5d35374b62ef9fffcc88cbecc1f7e5292a27ae |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.4)
project(ListaJednokierunkowa)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.c)
add_executable(ListaJednokierunkowa ${SOURCE_FILES})<file_sep>#include <stdlib.h>
#include <stdio.h>
struct Lista{
int value;
struct Lista *next;
};
s... | 5848563c2221050e32f74d872039cef687141fd4 | [
"C",
"CMake"
] | 2 | CMake | okraskaj/ListaJednokierunkowa | a961cfee9288a1901bc2a8bdb79a086e27182232 | b09ed39f413bf85300e831f47f75da0900076783 |
refs/heads/master | <repo_name>obadasemary/Customer-Transaction<file_sep>/Customer Transaction/Common/Offer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Customer_Transaction.Common
{
class Offer
{
public int ID { get; set; }
publi... | 155f182bd06b6b1c9f923ac7c59665a18f8e4f49 | [
"C#"
] | 7 | C# | obadasemary/Customer-Transaction | 21d89a3da89ee70449e6631b9ea086fbe115f6d7 | 542010cc185e328193d878c3d08017fe0fe4c086 |
refs/heads/master | <repo_name>sahilsaiyad/Compiler<file_sep>/icode.cc
Instruction_Descriptor::Instruction_Descriptor (Tgt_Op op, string nam, string mnn, string ics, Icode_Format icf, Assembly_Format af){
inst_op = op;
mnemonic = mnn;
ic_symbol = ics; /* symbol for printing in intermediate code */
name = nam;
ic_format = icf; /... | 746b47dc3c71be2bfa24ae5fa35014a2e45084be | [
"C++"
] | 4 | C++ | sahilsaiyad/Compiler | 26205d03066a9499770290a5bcce017e4bef173f | b6b631000d3515c29d8066b5410a03dc28246593 |
refs/heads/master | <repo_name>goelprateek5/TARP_PROJECT<file_sep>/mysite/mediaAccess/models.py
from django.db import models
# Create your models here.
class media(models.Model):
name=models.CharField(max_length=100)
media=models.CharField(max_length=500)
category=models.CharField(max_length=250)
def __str__(self):
... | da3826aa53eb0ba7cd3e96e792054740a944c652 | [
"Markdown",
"Python"
] | 6 | Python | goelprateek5/TARP_PROJECT | 4f414cbcd34cddd5007869423ade6aaf2d2445b1 | e7692411e061d481b43c1a381a2732f3f53275ee |
refs/heads/master | <file_sep>import java.util.Map;
public class testClass {
private class myclass{
public Integer f;
}
public void test2(int tag)
{
myclass a = new myclass();
a.f = new Integer(10);
Integer y;
if(tag > 0){
y = a.f;
}
else{
a... | c4e2d719f04582a61acbb327d4b650b612c62631 | [
"Markdown",
"Java"
] | 3 | Java | Xuyuanjia2014/soot-tools | f6bdf6f6484c3c64fc3ae7707390a8e06e51903d | 7e6ade71a90717be284ca6ea1271cac233aa0e20 |
refs/heads/main | <repo_name>Prasanna1112/KMeans-Clustering-for-Image-Segmentation<file_sep>/image_seg_kmean.py
import numpy as np
import cv2
from sklearn.cluster import KMeans
from sklearn.cluster import MiniBatchKMeans
#Reading the original picture
picture = cv2.imread('picture.jpg')
(h1, w1) = picture.shape[:2]
#Reshaping ... | 73474ed701da9245110c67759876d018fad147ae | [
"Markdown",
"Python"
] | 2 | Python | Prasanna1112/KMeans-Clustering-for-Image-Segmentation | 00adc268b9c9d45c1f46cca3528258cd2ca121e6 | 89d85a2429ce0f7dce3af5b993e9587cdffc169f |
refs/heads/master | <repo_name>OnceApp/abandoned-strings<file_sep>/AbandonedStrings/main.swift
#!/usr/bin/env xcrun swift
//
// main.swift
// AbandonedStrings
//
// Created by <NAME> on 2/1/16.
// Copyright © 2016 iJoshSmith. All rights reserved.
//
/*
For overview and usage information refer to https://github.com/ijoshsmith/abandon... | c4bca7dfea757eef216852c7a7d1869210d49609 | [
"Swift",
"Markdown"
] | 2 | Swift | OnceApp/abandoned-strings | 4da9558b6ea157e67fa656e7836bf274b67a3bef | 109131d7103b4e9c6e0c0d47e5eb7667a6f87d89 |
refs/heads/master | <repo_name>vlad-vetlin/UX_keyboards<file_sep>/mixins/timeEntryMixin.js
import {texts} from "../assets/js/texts";
import {levenshteinDistance} from "../assets/js/helper";
let timeForPrepare = 10000;
export const timeEntryMixin = {
data() {
return {
timeLeft: timeForPrepare,
interval... | d3da7137cf4c86ab58456d208a022c21a43820df | [
"JavaScript"
] | 2 | JavaScript | vlad-vetlin/UX_keyboards | 0a9ce04778a4159a1bc54020c9390db05a7c469f | 98b8cb63f307003c0e01be8bf7f0b513451b3f3d |
refs/heads/master | <file_sep>import os
import csv
input_file = csv.DictReader(open("election_data.csv"))
for row in input_file:
print (row)
# Path to collect data from the Resources folder
# csvpath = os.path.join("election_data.csv")
# with open(csvpath, 'r', newline="") as csvfile:
# csvreader = csv.reader(csvfile, delimiter... | f932d42e82fa35a3a71a4f94bdbcf39fb50c47bb | [
"Python"
] | 4 | Python | arivargasb/python_challenge | e3bc8c6060e643d6d49c396396a8d373e4dc74c5 | 9f9daccf951d04f7eb4a3117b48f4b83f3b6af8b |
refs/heads/master | <repo_name>addisonhellum/CaptureCore<file_sep>/src/us/capturecore/core/common/game/gameutil/Shopkeeper.java
package us.capturecore.core.common.game.gameutil;
import org.bukkit.Location;
import org.bukkit.entity.ArmorStand;
import org.bukkit.scheduler.BukkitRunnable;
import us.capturecore.core.Main;
public class Shopk... | 97ea8096d22813ebd930a3001f50ba518e5fb7c0 | [
"Java"
] | 18 | Java | addisonhellum/CaptureCore | e8a9e4646538804cd47bf12961809346ba6d49ae | 0d339087b5d70b9e6994dbb8497708f4d2bdbc44 |
refs/heads/master | <repo_name>styladev/npm-quilldto-to-html<file_sep>/QuillDeltaToHtmlConverter.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const str = {
/**
* Splits by new line character ("\n") by putting new line characters into the
* array as well. Ex: "hello\n\nworld\n " => ["hello", "\n... | 721f811fae5e7cd675acc7b63ffda0e0dd2a7e9c | [
"JavaScript",
"TypeScript"
] | 2 | JavaScript | styladev/npm-quilldto-to-html | 3895ce3b1d5c01e167ffd73fc98c0c5e05322b55 | 18379e997d597e49148ffac9b276535a1b043a4b |
refs/heads/master | <repo_name>whgest/RandomWinner<file_sep>/SMS_Server.py
from twilio.rest import TwilioRestClient
import twilio.twiml
import os
import json
import re
import shutil
from flask import Flask, request, make_response
app = Flask(__name__)
app.debug = True
app.secret_key = '<KEY>'
ACCOUNT_SID = "<KEY>"
AUTH_TOKEN = "<PASSW... | bfedf6de4aa338065553a436d57879674b8fbcc9 | [
"Python",
"Text"
] | 3 | Python | whgest/RandomWinner | adced0a4ddcdd06969e4021032c4f300fca77ea7 | ba75b2d21911bd26642695aa4937e6f9be78a70d |
refs/heads/master | <file_sep>front_end_quiz
==============
To run:
1. Install node dependencies with npm
$ npm install
2. Install webpack globally:
$ npm install -g webpack
3. Run webpack
$ webpack --progress --colors
4. Run express
$ npm start
5. Open http://localhost:3000/
Some notes:
-The save button dumps the e... | 4b18ab4bad01278a31d28a53f3cde079933a5ce5 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | theopaja/front_end_quiz | 8e98f27d5f47a5e19b35dabd2009d6ddbcbe4364 | a6b5a8e7bd069c2883b219c9bb0dfef1feae5c2c |
refs/heads/master | <file_sep># This R script file is for generation of the plot 3.
# read files into R:
project <-read.csv('household_power_consumption.txt', sep=";")
# Subset only data from dates 2007-02-01 and 2007-02-02:
project2 <- project[ which(as.Date(project$Date, "%d/%m/%Y") == "2007-02-01" | as.Date(project$Date, "%d/%m/%Y... | 961d36fdaa44bc486308a145e75148ede813447f | [
"R"
] | 2 | R | wql168/ExData_Plotting1 | 0abb39ae453c941fd98d4bc5d16c401682131091 | 7f5d6fb20225199d49f28e0d33f9afbef0d1f1f1 |
refs/heads/master | <repo_name>sjoerdk/codalab<file_sep>/codalab/apps/web/templatetags/codalab.py
import os
from django import template
register = template.Library()
@register.filter
def filename(value):
return os.path.basename(value.file.name)
# by mikeivanov (on April 16, 2007)
@register.filter
def in_list(value, arg):
ret... | edd0eaf546362fa59252aad08c0bbaff7ac61160 | [
"Python"
] | 3 | Python | sjoerdk/codalab | 7fde6a3e1067ce58a1d9aa7dda53c7be6788f738 | 7814e6d44da195e6766b248dbd2325eaf7592c16 |
refs/heads/master | <repo_name>7thhouseofk/FEBUARY<file_sep>/main.3/main.3/ok.cpp
#include<iostream>
using namespace std;
int main() {
for (int i = 0;i < 200;i++) {
cout << "i AM IRON MAN " << endl;
}
}<file_sep>/Project3/Project3/Source.cpp
#include <iostream>
#include <windows.h>
int main(void)
{
HWND stealth;
AllocConsole();
st... | cfa5d6010c0ac1571af08d34813f367017d318f3 | [
"C++"
] | 28 | C++ | 7thhouseofk/FEBUARY | df7e207b664b2e977459f4d6d11070174af75f0f | 61ae5e341f378947ee4a58532ef6027f09773611 |
refs/heads/master | <file_sep>package com.example.textcontrols;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
impor... | 8a45878182c14a041d5f988535beba171298a533 | [
"Java",
"Python"
] | 2 | Java | cs-shadow/BookReader | 6f9c0e3306dd0da592a60ceb4350bc80f54774ee | b7df25f73eef9bb34770cc583a5983b1b5714416 |
refs/heads/master | <repo_name>mitharet/newwwww<file_sep>/app/src/main/java/com/mitha/mvicall2222/activity/RegisterActivity.java
package com.mitha.mvicall2222.activity;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Vi... | c5b0356531d25f020583b267af67cd18291d3712 | [
"Java",
"Gradle"
] | 4 | Java | mitharet/newwwww | 81f5ecf495a32a398db5d4d6ecb4f43ada9a7a82 | 3f70a52599826618d946ce2928e64f0ffd6cf96e |
refs/heads/master | <repo_name>ste001/advent-of-code-2018<file_sep>/Day_3/day_3.rb
$inches = 1000
def create_fabric size
fabric = Array.new(size) { Array.new(size)}
size.times do |i|
size.times do |j|
fabric[i][j] = '.'
end
end
fabric
end
def populate_fabric input, fabric
input.each_line do |claim|
claim_arra... | 22e99f0596b5401278dae3f5318c7b421fc23bef | [
"Markdown",
"Ruby"
] | 5 | Ruby | ste001/advent-of-code-2018 | 53112369114ac92ee4325e24a3cfd123b5bd6716 | 5a9d1a2361c72e434ad69e6cc5e2d8ecdeca7a95 |
refs/heads/master | <file_sep>using System;
using GraphQL.Types;
using Orders.Models;
using Orders.Services;
namespace Orders.Schema
{
public class OrderType : ObjectGraphType<Order>
{
public OrderType(ICustomerService customers)
{
Name = "Order";
Description = "This is an order from the c... | 4b86fc2ad0d403c63b201adbcaa75b6b4093c99c | [
"C#",
"Shell"
] | 7 | C# | zim1992/MyGraphQlServer | c9be7528b7d36377fc65ab2f3dca698ab0e7dc76 | 2215f58f3e692233d7c61b65d2759ca896cef80f |
refs/heads/master | <repo_name>flintlouis/SnakeAStar<file_sep>/README.md
# AI Snake
Snake with A* algorithm

## Install Pygame
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Pygame
```bash
python3 -m pip install -U pygame --user
```
## Run
```bash
python main.py
```
## Controls
Up Arrow - sp... | 1ec77f447892f34c9879b6dcd1d1767777d14e88 | [
"Markdown",
"Python"
] | 7 | Markdown | flintlouis/SnakeAStar | 208f2be72fc0ef1ecff45bda77d4d4fa3e6de4c8 | 05e6bb875fe95c3d6a317d3c6fc2267231f6a69d |
refs/heads/master | <file_sep># TFC/E Migration Tool
This tool is designed to help automate the migration from one TFE/C Organization to another, whether that’s TFE to TFC, or vice versa. The following migration operations are currently supported:
* Migrate Teams
* Migrate Organization Membership
* Note: This sends out an invite to a... | 7c81342cce0103991557774a489d7467f0719226 | [
"Markdown",
"Python"
] | 4 | Markdown | andrefcpimentel2/tfe-tfc-migration-tool | a36cdc9daeb0b81d3c60ccc0c30ded8f47e8aeae | ae57d65416e8394e7881b8744fdc3c99d4876a9b |
refs/heads/master | <repo_name>doogrammargood/indep_num<file_sep>/test_ga.py
from sage.all import *
from ga import GA
import functions as FUN
import bronkerbosch as BON
#from main import cr3, cr4, fit_eigen_values
import numpy as np
import lovasz as LOV
def fit(x):
return 10 - (x[0] + x[1]) ** 2
def mu(x):
new_x = x.copy()
i... | aec99bca38bed86448b471156a3218a13f817129 | [
"Python"
] | 4 | Python | doogrammargood/indep_num | 5a45d6d42034df092665471ac7bc68cacad76fda | 6b3bf5de16195be1474c520a4f67897fa024a584 |
refs/heads/main | <file_sep>import React, { Component } from 'react';
import { Card } from "react-bootstrap";
class ProductCard extends Component{
render(){
const product = this.props.product;
return (
<Card style={{ width: '18rem', margin: '20px' }}>
<Card.Img variant="top" src={product.... | 669934b810fd160666af63aaf674812dc5df6bd0 | [
"JavaScript",
"Dockerfile"
] | 10 | JavaScript | elad4884/shopping-app | ff395bfb230e05305fa8bded0ade6a226f82ee4e | 7e760bcfffd201e73e1b7aa9e4f2e49d550386c6 |
refs/heads/master | <file_sep>const mongoose = require('mongoose')
const validator = require('validator')
mongoose.connect( process.env.MONGO_URL , {
useNewUrlParser: true,
useCreateIndex: true,
useFindAndModify: false
})
//here we define the mongoose models of the data to be inputted to the db
//it set types like string, b... | 7e84a0abb01d48a1debfc7f44ed06dec2a0c6001 | [
"JavaScript"
] | 5 | JavaScript | Tueloper/Task-Manager | 2a2c342b49e11e4dc556d7ef03b8fb014835666a | 073f44d852ca8b27720ee28e72ec15f2f47f0969 |
refs/heads/master | <file_sep>#ifndef __DELAY_H_
#define __DELAY_H_
#include "stm32f4xx.h"
void Dealy_Config(void);
void Delay_ms(uint32_t time);
void Delay_nus(uint32_t time);
void Delay_nms(uint32_t time);
#endif
<file_sep>#include "hp6.h"
//CRC校验表
const uint16_t crc16_tab[256] =
{
0x0000, 0xC0C1, 0xC1... | d2c02b562b61a09ddf4ca9dc2319d15768c2e71d | [
"C"
] | 30 | C | FLIPPEDz/STM32_Project | 930dc5112df282804fd0bebb4a242fbf514f48b8 | 282606060435311047033cdf8a56489f9091ec7f |
refs/heads/master | <file_sep>import React from 'react';
import './App.css';
import { Line } from 'react-chartjs-2';
import { Card, CardBody } from 'reactstrap';
import { ToastContainer } from 'react-toastify';
//import dataHumedad from './Data'
function lineOptions(labels = []) {
return{
responsive: true,
maintainAsp... | 1b4e752952f4826ba5934b72dc3ed6b10806fca5 | [
"JavaScript"
] | 3 | JavaScript | Ferchu060100/Aaaa | e3fb248e3f2eda925c38c2ea3bf6d949d575ebde | 152d954947ac0e940121f55332a9d97ee5056e6c |
refs/heads/master | <file_sep>#include<stdio.h>
main(){
int ID[13],i,CID[13],sum = 0,x = 0,C13 = 0;
printf("Enter Digit One by One\n-----Digit Only--------\n");
for(i=1;i<=13;i++){
printf("Enter Digit%d:",i);
scanf("%d",&ID[i]);
CID[i] = ID[i] * (14-i);
}
printf("--------------------------------\n");
for(i=1;i<=13;... | 00bbb8c4d6f87b207cb20b2e29bdaed6f3f7f4f0 | [
"C++"
] | 1 | C++ | Tues1999/ETE183_2_7Program | ddd2c572a68f52776698fd83eeae5ff7a65d5735 | 086ff5532c8b31379d8736c2cccf61dc9baae762 |
refs/heads/master | <file_sep>//This is where we put js i suppose
<file_sep>APScheduler==3.0.0
beautifulsoup4==4.6.0
certifi==2017.11.5
chardet==3.0.4
click==6.7
cycler==0.10.0
Django==2.0
flake8==3.5.0
Flask==0.12.2
Flask-PyMongo==0.5.2
gunicorn==19.7.1
idna==2.6
itsdangerous==0.24
Jinja2==2.10
lxml==4.1.1
MarkupSafe==1.0
... | 08acaeaaf4ad8fea05c4991c8cc18d97cdf7d417 | [
"JavaScript",
"Python",
"Text"
] | 3 | JavaScript | devsdevsdevs/AntAlmanac | 6f73f77a379a0be408a0c09db698e46a5e1ba9fc | 5b9665838fcaa724c02902d2000d4686b8e498e5 |
refs/heads/master | <repo_name>XincoZero/ruby-enumerables-hash-practice-emoticon-translator-lab-chi01-seng-ft-080320<file_sep>/lib/translator.rb
require "yaml"
def load_library(emoticon_file)
new_hash = {}
emoticons = YAML.load_file('lib/emoticons.yml')
emoticons.each do |key, element|
new_hash[key] = {}
new_hash[key] [:english] = e... | 5e04829137a813d2f36aea384b83aae316442d69 | [
"Ruby"
] | 1 | Ruby | XincoZero/ruby-enumerables-hash-practice-emoticon-translator-lab-chi01-seng-ft-080320 | 66b918507973d75125d8df7d8e226eb0e6e64aac | c70112eeedc720e7ba4faa903c3e0e5c2651a98d |
refs/heads/main | <file_sep>
const fs = require('fs');
const colors = require('colors');
const crearArchivo = async (base,l,h) => {
try {
let salida = '' ;
let consola = '';
for(let i = 1 ; i <= h ; i++){
consola += `${colors.brightGreen( base)} ${colors.cyan.underline('x')} ${colors.bold(... | 20c493d7ef0d10b0a7e63fec60af45fac6d81705 | [
"JavaScript"
] | 1 | JavaScript | matias293/Tabla-de-multiplicacion | 924e9f8ef8a6b96ba4a46fa8f751b20a8a3f45d9 | a6f7593d97a72a25578c27cdbd7cb95daf1e5b99 |
refs/heads/master | <repo_name>ferentino/GoogleDriveApi<file_sep>/README.md
# GoogleDriveApi
<file_sep>/app.js
const app = require('express')();
const http = require('http').createServer(app);
const io = require('socket.io')(http);
var counter = 0;
app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html');
});
io... | 54343220a55350ac68acafef930d15f86f616aac | [
"Markdown",
"JavaScript"
] | 2 | Markdown | ferentino/GoogleDriveApi | c05063f6f3dc04afed69ddffae6afb52ad232ab2 | 49fbef23b2fae5543cf870a22c0333736ee81e61 |
refs/heads/master | <file_sep># File: datetime-example-1.py
import datetime
now = datetime.datetime(2003, 8, 4, 12, 30, 45)
print(now)
print(repr(now))
print(type(now))
print(now.year, now.month, now.day)
print(now.hour, now.minute, now.second)
print(now.microsecond)
<file_sep># File: datetime-example_1.py
import datetime
# import d... | 7484918f06fca116c280b46e52a2cb1b9adb4ddb | [
"Markdown",
"Python",
"Text"
] | 17 | Python | johnfkraus/python_public_data_hacking | 0faa0551d3ec99823037df77c281ad9b3a546e0c | 862472adc6ce1eb8681b07e1ca7ffb417a6b6a4d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static HW_MazeGame.PlayableChar;
namespace HW_MazeGame
{
class MazeMap
{
public static bool clear = false;
public static int stack;
static int h = 30;
... | 3124a1232e08da342f598f418084d154b8044f61 | [
"Markdown",
"C#"
] | 2 | C# | Liranple/HW_MazeGame | 51b1a06b2c2e1377aea9f2cb374f63d4ceca65af | 660bbb6be3cf2654c2ec2002c7223447a548fe2f |
refs/heads/master | <file_sep># Homepage: http://mzj.beijing.gov.cn/jhyy/marryout/marry/index_yy.jsp
# Homepage: http://mzjgfpt.caservice.cn/jhyy/marryout/marry/index_yy.jsp
import re
import time
import datetime
import urllib
import urllib.error
import urllib.request
span = 2 # months: 1/2/3/4 (bad: 5/6/7..)
cookie = 'JSESSIO... | c16081714e1005366fcd37cda436f17b3c6177b9 | [
"Python"
] | 5 | Python | znsoooo/MarriageStatistics | d878ce6acd1db40c5c2b1de16bc8d4c124ba96db | 977e1f2d4d5b40d21f6850a44358b8b6d57a58c1 |
refs/heads/main | <file_sep>const fantasyTransfers = {
playerNames: ['<NAME>', '<NAME>', '<NAME>.', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', 'Rodri', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>', '<NAME>'],
clubs: ['Real Madrid', 'Barcelona', 'Ajax', 'Porto', 'Juvent... | 3a0ccbd153659ea631ded95d4d011a5b42c9fa41 | [
"JavaScript"
] | 1 | JavaScript | cshoresy78/Mixed-Messages-project-Codeacademy | bfae48f96a72a3eee79f5e91d2be35a9d81245de | f072dc7aaeb6473f013ca17b3215731339364b07 |
refs/heads/main | <repo_name>M1-134-HamzaFaisal/SANAD<file_sep>/admin/includes/add-admin.php
<div class="col-sm-6" >
<div class="card" >
<div class="card-header">
<h6>Add New Admin</h6>
</div>
<div class="card-body">
<form action="" method="POST"... | 08720041a92b1afb06e4b93ad3b7c7a9eaa056b1 | [
"Markdown",
"PHP"
] | 15 | PHP | M1-134-HamzaFaisal/SANAD | 7dbe6964595a190f10f3f3b4f1286fb3e565127b | 3868be98c74cd595a389b1a01652dc4c4bd2c12b |
refs/heads/main | <repo_name>tbonesteaks/FoliumFixArray<file_sep>/root.py
import os
import time
import datetime
from dateutil.parser import parse
import shutil
import requests
import wget
import pandas as pd
import numpy as np
import folium
from folium import plugins
##Function to download csv if newer version exists.
def download(url... | 920d9b6809f0002c9927188d87d116568f165f31 | [
"Python"
] | 2 | Python | tbonesteaks/FoliumFixArray | eed05376882ab6ab295c9df4f847ea58974ca91d | 1b7897ea340edcccb6b391ddd1f933799985e62f |
refs/heads/master | <repo_name>tamoorshahzadDAM/M6_Persistence<file_sep>/src/model/Adreca.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 model;
import java.io.Serializable;
import ... | 568b93f649ead280abda4ed8ae23eaae5e4a8906 | [
"Java"
] | 5 | Java | tamoorshahzadDAM/M6_Persistence | 77dfc67cc116ba39614427bfcc390159cea6075b | cfc01ac44f783d2d00518f603e7c75c6e9c34ae5 |
refs/heads/master | <repo_name>OyebisiJemil/HandI-thumbnail-service<file_sep>/src/ThumbnailService/Function.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Amazon.Lambda.Core;
using Amazon.Lambda.S3Events;
using Amazon.S3;
using Amazon.S3.Model;
using ImageMagick;
// Assembly attribute to enable the Lambda function'... | 48edd5b66079fe117ef46e5c456af680bb24bde3 | [
"Markdown",
"C#"
] | 2 | C# | OyebisiJemil/HandI-thumbnail-service | c240580e650ead513f1c24a50ed65871908ff5fa | 167729b8a28a9c2f9a124586b925d9778385f086 |
refs/heads/master | <repo_name>soteria-nou/debian-systemd<file_sep>/soteria.sh
#!/bin/sh
[ "`id -u`" = "0" ] && {
echo "Do not run this script as a root user!"
exit 1
}
[ -f /etc/soteria.conf ] && . /etc/soteria.conf
[ -n "$DNS_PARTS" ] || DNS_PARTS="hsr hsn jur jun rtl"
[ -n "$DNSMASQ_HOSTS" ] || DNSMASQ_HOSTS=/usr/share/soteria/h... | e9fce458fc300ce5a914cd28176022a5d84e0ddb | [
"Shell"
] | 1 | Shell | soteria-nou/debian-systemd | 307af9106393e346ffdf2651c1a1c7a9c1bb8500 | 874f7cebbdd89a9cf79d8c4652c966045183a2fb |
refs/heads/main | <file_sep>package co.g2academy.bootcamp.ecommerce.orderfulfillment.model;
import co.g2academy.bootcamp.ecommerce.orderfulfillment.entity.Order;
import co.g2academy.bootcamp.ecommerce.orderfulfillment.entity.OrderItem;
import org.junit.Test;
import java.lang.reflect.Array;
import java.util.ArrayList;
import ja... | 920add1deb1960fce5fb10dca9788341fa548687 | [
"Markdown",
"Java",
"INI"
] | 20 | Java | mvadlil/ecommerce_backend_apps | e420c08ec8a2199a2e61988008f0cdaf77ad7329 | 53dbe90a5dea0d1c1cb5c7215343a12a6e921585 |
refs/heads/master | <repo_name>NigelDcruz/developed_components<file_sep>/source/domcacheES6.js
export default new class App {
constructor() {
this.setDomMap();
this.previousScroll = 0;
// dom ready shorthand
$(() => {
this.domReady();
});
}
domReady = () => {
this.initComponents();
this.handleUser... | 8138c657af33ac35e90e2cee2a4f0eb5b27a406f | [
"JavaScript"
] | 2 | JavaScript | NigelDcruz/developed_components | 1b3ec52e0f5078753c44d6a9dab7b29a80840b46 | b4baf2e7d94ddafe08abd6a6ed21e9620f5dc7d7 |
refs/heads/master | <repo_name>shreshthmohan/experiment-sm<file_sep>/src/formatElapsedTime.js
export const formatElapsedTime = (elapsedMilliSeconds) => {
let parsedTime = parseInt(elapsedMilliSeconds, 10);
if (isNaN(parsedTime)) {
return '00:00.00';
}
// Format - Time less than an hour
// '00:00.00'
// m... | 4c6c232bc60921015cfaf47d35ebdeb9b48e98e2 | [
"JavaScript"
] | 2 | JavaScript | shreshthmohan/experiment-sm | e8b468136ad385b302fd990e691db3f4553aab63 | 56caa063f64c2eac30595c77f9291ce5b737aecf |
refs/heads/master | <file_sep>import socket
import sys
print ('Enter your DNS Or Target: ')
hostname = input()
ip=socket.gethostbyname(hostname)
print ('Host Name Is: ', hostname, '\n' 'Target Ip Is: ',ip)
#just put any site like that www.google.com | 494500bedff7de7632872e5a57702e0a6fd87a08 | [
"Python"
] | 1 | Python | zacafran380/site-ip-gathering | 0acdef160df553e7af93a43f15ea64dda7a846a1 | ea9403903ba386e55bb4ed819810e2a7528d70d2 |
refs/heads/main | <repo_name>maxpromer/iSERVO<file_sep>/iservo/iSERVO.cpp
#include "iSERVO.h"
iSERVO::iSERVO(int bus_ch, int dev_addr) {
channel = bus_ch;
address = dev_addr;
polling_ms = 100;
}
void iSERVO::init(void) {
memset(last_set_angle, 0, 16);
for (int i=0;i<16;i++) {
t_min[i] = 0.5;
t_max[i] = 2.5;
}
state... | 6affef724c3ae7f1824f922d7c838d40a7c50735 | [
"JavaScript",
"C++"
] | 3 | C++ | maxpromer/iSERVO | db17e9e0ec37fb835b4ec60226a6dbe6fa8f8ceb | 1212bbd23d95b2002e2a7c492d2f3c8157a7d555 |
refs/heads/master | <file_sep># leitore
Projeto de identificação de palavras em java
## Guide ##
### Main ###
[Principal](https://github.com/thaianyrocha/leitore/blob/master/leitore/src/leitore/main.java)
[KeyBoard](https://github.com/thaianyrocha/leitore/blob/master/leitore/src/entites/keyboard.java)
[latter](https://github.com/t... | 2356b11522019d7866bda52c7dc4f908db978495 | [
"Markdown",
"Java"
] | 2 | Markdown | thaianyrocha/leitore | b0ae4889fa57d5a4b521a7325fffed5790c2e228 | da813f339ddf31d457db8abe5ffee40b5767d39a |
refs/heads/master | <file_sep>from bottle import route, run, request
@route('/')
def hello():
return request.remote_addr
run(host='localhost', port=8080, debug=True)
| daa7a962566195c47ccb7c3e4aa9279adab80dfc | [
"Python"
] | 1 | Python | niranjfantain/myip | 877ac39e74fbe3896f4f0e265869febc1c381690 | 39060dbf2592bb0f1d3ae9a5e0dd8cc53527d25b |
refs/heads/master | <repo_name>rajeshpillai/rails-codebox<file_sep>/app/models/code.rb
class Code < ApplicationRecord
belongs_to :category
has_many :taggings
has_many :tags, through: :taggings
end
<file_sep>/README.md
# README
- yarn add codemirror<file_sep>/app/models/tag.rb
class Tag < ApplicationRecord
has_many :taggings
ha... | 6c03dd429bde6aedafbb1f14aa71f367f71a9b98 | [
"Markdown",
"Ruby"
] | 9 | Ruby | rajeshpillai/rails-codebox | 6dd6b28ae518d91691f5202f6f47983c52128dfd | 6efa8dfbb72a6da7e12613a8cc3b2ef5932a970f |
refs/heads/main | <repo_name>Mizer-Mi/LetMeRepair_Comments<file_sep>/README.md
# LetMeRepair_Comments
LetMeRepair şirketinde Kullanılan ERP programı için Arızaya gelen cihazların servis formuna yazılan; arıza açıklamaları ve yapılan işlemler için üretilen hem ingilizce hem türkçe kaynağını sahip otomatik yorum üretici yazılımdır. Servi... | 38cc0feb953abfb86ac0134760f65aa02bc6db8f | [
"Markdown",
"C#"
] | 10 | Markdown | Mizer-Mi/LetMeRepair_Comments | 0ada8ef5dc3fb1176e0a8af8007fe4a8e7d5d039 | 1e74d05999c5d67c50d9c401f9e11f73914a5d61 |
refs/heads/main | <repo_name>Bo-Varvil/ElevatorSystemAdvancedJava<file_sep>/ElevatorSystemProject/src/CS4120/ucmo/LaffertyVarvil/ElevatorServer.java
package CS4120.ucmo.LaffertyVarvil;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.ScrollPane;
import jav... | aca631f41063b5f70e88ca32fc2d96926ececbc1 | [
"Java"
] | 2 | Java | Bo-Varvil/ElevatorSystemAdvancedJava | d618e1325b46543bca69754bdfe39e341e18ae99 | fc66baffdb8290b67325d47528124395abe2e54f |
refs/heads/master | <file_sep># hdp_management
This is a python client that enables managing a hadoop stack.
manage_cluster.py allows to start/stop an entire cluster.
```
usage: manage_cluster.py [-h] [-u USER] [-p PASSWORD] [-l HOST] [-t PORT]
[-s PROTOCOL] [--unsafe] [-a {dry-run,stop,start}]
... | 0c69ed448662ca8bdadc33d3da603c0ddfd0422d | [
"Markdown",
"Python",
"Shell"
] | 9 | Markdown | SalahAmine/hdp_management | d43594a1313bf80d3bc8201865d35feb0253f2d4 | c4e288910aab1346fac84e4974d3db8f35937f56 |
refs/heads/master | <file_sep>#include <stdio.h>
int arr[100];
int main()
{
int len, tmp, cnt = 0;
scanf("%d", &len);
for (int i = 0; i < len; i++)
{
scanf("%d", &arr[i]);
}
for (int i = 0; i < len; i++)
{
int max = len - i;
for (int j = 1; j < max; j++)
{
if (arr[j - 1] > arr[j])
{
tmp = arr[j-1];
arr[j-1]... | c9b02fabcd12ff371f6f5cf0ea78ef371f511c66 | [
"C"
] | 8 | C | honyacho/ALDS | 1e4244763eb0cd7e71d49021a58071f962d1dd15 | f2af667ac55edad0e68345eabe1df2796a0331ab |
refs/heads/master | <repo_name>redcliver/restaurante<file_sep>/produto/urls.py
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^novo_prod', views.novo_prod),
url(r'^nova_refe', views.nova_refe),
url(r'^buscar_prod', views.buscar_prod),
url(r'^edit_prod', views.edit_prod),
url(r'^buscar_refe... | ef7a77cfcc32830f055e22dae56df4ed501fd205 | [
"Python"
] | 9 | Python | redcliver/restaurante | b9c34188c71e7141a731355cd9c9984c680fc959 | 3607a5a326387d5f3fd453acced97caa5d332f00 |
refs/heads/master | <repo_name>Shabsiem/NPSAPI<file_sep>/index.js
const apiKey = '<KEY>';
const baseurl = 'https://developer.nps.gov/api/v1/parks?';
(function($) {
console.log("Locked and Loaded");
const app = {
init: function() {
app.parksearch();
},
parksearch: function() {
... | 29e47827013d3201b09a8e0b5da37149d9af8310 | [
"JavaScript"
] | 1 | JavaScript | Shabsiem/NPSAPI | caddbae4b736a61bef46d9a2d1e20cc25bc11838 | 36ab6082618a0e2154acb1dd55094ea5c5911214 |
refs/heads/master | <repo_name>Grzanekkk/Rejestracja-Czasu-Pracy<file_sep>/RejestracjaCzasuPracy/ClientApp/src/components/Login.js
import React, { Component } from 'react';
const DpkTitle = () => {
return (
<div className="title-section">
<p className="line anim-typewriter">Welcome to DPK System</p>
</div... | 86a6d39876de5e1506199ba8c9b01729ee462383 | [
"JavaScript",
"C#"
] | 11 | JavaScript | Grzanekkk/Rejestracja-Czasu-Pracy | 8403d57324c357541cd1a66a06341e889c87a89c | a1c5ae342009f0b56c8ff632b95bc51fd953bf80 |
refs/heads/master | <file_sep><?php
interface DBInterface
{
public function connect($host, $username, $password, $database, $port);
public function query(string $sql);
public function error(): string;
public function errno(): int;
public function numRows($result): int;
public function selectDb($database);
... | 94484d106c1777ed8955d5636550957884280a6f | [
"PHP"
] | 6 | PHP | xiaomlove/nexusphp-php7-polyfill | b8d641eb9bc07437d44a7a71689abaa876f59ad1 | 772f40e81842e688e8ef21afb336ba38a378cb8d |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.