branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/main | <repo_name>idkjs/ppx-install-test<file_sep>/src/MonadPpxLetExample.bs.js
// Generated by ReScript, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("rescript/lib/js/curry.js");
var Printf = require("rescript/lib/js/printf.js");
function $$return(x) {
return x;
}
function bind(x, f) {
return Curry._1(f, x)... | 2e23c61bd4ddb021d63ef9132f16932e9e44094d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | idkjs/ppx-install-test | e3843ad6b56599dbad705eefeb0fbc2a32e99c69 | 5b37c18cf5def25ec59afbba50cd989ee6d23c62 |
refs/heads/master | <file_sep>using IBSApps.Web.Areas.Lottery.Data.Entities;
using Microsoft.AspNetCore.Mvc.Rendering;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace IBSApps.Web.Areas.Lottery.Models
{
public class HourViewModel : LottHour
{
[Display(Name = "Banking ")]
[R... | 8075cbb3cc29e102cf15f09cffc6b1530215d41a | [
"C#"
] | 40 | C# | EnriquePaulino/IBSApps | ffe055fa275bfd8dd349fde72371953c3c804c3e | c766286a0ea475af3b59c1ace7e46525017372c1 |
refs/heads/master | <repo_name>matthewricecampbell/ReactNativeUserAuthBoilerplate<file_sep>/src/routes.js
export default Routes = () => {
return(
{
Login: {
screen: LoginScreen
},
Home: {
screen: HomeScreen
}
}
)
} | eb9b23536fe6c05524ec5ff62728a438d9c598cd | [
"JavaScript"
] | 1 | JavaScript | matthewricecampbell/ReactNativeUserAuthBoilerplate | fa181ec3877c6c68dabd4ccf28d80ad8964e7d23 | 5e39c9b59b17478f5898401059a5216d5435008b |
refs/heads/master | <repo_name>jfjessup/node-cloudfront-invalidate-cli<file_sep>/README.md
# node-cloudfront-invalidate-cli
A CLI for creating invalidations on CloudFront, that's a bit easier to use than the
official AWS CLI.
## Install
```shell
npm install cloudfront-invalidate-cli -g
```
## Use
```shell
cf-invalidate [--wait] [--config... | b05f2ac62f0d96b5069a0ac28004bfd6ba071135 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | jfjessup/node-cloudfront-invalidate-cli | 7b286a9912dab923d6221cae79a41cad6e591ae0 | f6c6fc7b341d1bf710d31d459edc9aca958bb94f |
refs/heads/master | <file_sep># PrettyParadiseAdminUi
This project is one of many microservices. This microservice serves the purpose of being a front end to the pretty-paradise-admin microservice. Other microservices and links to their github repositories are listed below:
1. [pretty-paradise-admin](https://github.com/PrettyParadise/pret... | 6541b1f0577b12b34a569f64b0dbcfa38d5015bd | [
"Markdown",
"TypeScript"
] | 9 | Markdown | PrettyParadise/pretty-paradise-admin-ui | 4881944d21ed5aa1e8c522e1f3e289988fd3c34f | c628f96865f48554ca272b059681ff0856a79f76 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using FortuneTellerMVC.Models;
namespace FortuneTellerMVC.Controllers
{
public class CustomersController : Controller
{
pr... | 80c14b926d675d1139df8a48713703b0ce09727c | [
"C#"
] | 1 | C# | lwesley08/FortuneTellerMVC | 229912675b938186e34f9515b096c34acf9e2191 | 7ad402543efa77ebc3cf30201be85b95bc242c4c |
refs/heads/master | <file_sep>/* CyclicIterator from C++ snippets
* Cyclic iterator for STL containers.
* @author <NAME>
* @url http://kacperkolodziej.com/
* @github https://github.com/kolodziej/cppsnippets
*/
#ifndef CYCLIC_ITERATOR_HPP
#define CYCLIC_ITERATOR_HPP
#include <iostream>
#include <iterator>
template <typename Container... | 22cccdbda7fe0bab3c1c1973cc3da1b0777ebe0e | [
"Markdown",
"C++"
] | 2 | C++ | kolodziej/cppsnippets | 35356656c04ac673794518f95b93a7876e696064 | a58eb24ef6d25820dfb5bde7956832d772e788cb |
refs/heads/master | <file_sep># Game-of-life
My interpretation of Conway's game of life
Game-of-life is two-dimensional orthogonal grid of square cells, each of which is in one of two possible states, alive or dead.\
Every cell interacts with its eight neighbours, which are the cells that are horizontally, vertically, or diagonally adja... | 38fbe79313d21d1dc93fc9730a4a64bcd215c21f | [
"Markdown",
"C++"
] | 2 | Markdown | borislavvv00/Game-of-life | dace7c682a0f706dd72ddca3c21fa0bdc01c74f1 | 05c131e11f4b5f6482ff633fe491716040b1bb75 |
refs/heads/master | <file_sep># SCSS Spectre.css
This is a fork of the current Spectre.css framework, modified to use **SCSS** rather than **LESS** precompilation. I have kept the original LESS `src/` folder to allow future updates and merges to be simpler, but the SCSS is located in the `scss/` sub-folder.
The `package.json` and `gulpf... | 65397f9bbb9d9c0909248744f3a6f0d993caef55 | [
"Markdown",
"Shell"
] | 2 | Markdown | trilbymedia/spectre-scss | dc67f24b261ab6f3f9b0d13af387fccacfcfc1cd | a538f7fe9bdd206706ab0d17d972e6e181bafec3 |
refs/heads/master | <repo_name>mars-rover-society/gps<file_sep>/src/gps_node.cpp
/***************************************************************************************************
* NOVA ROVER TEAM - URC2018
* This code is a ROS package which periodically retrieves data from a Waveshare NEO-7M-C GPS module.
* The data is retrieved via ... | 7ff4a712c9fbc84bbc11b33b4c640fc6548bc459 | [
"Markdown",
"C++"
] | 2 | C++ | mars-rover-society/gps | 5b824f4a6877c3c2f57450d89432b4e1fb8b0e42 | 8ad523a2a561f8263a456a4495179db4457f4f3b |
refs/heads/master | <file_sep>from django.contrib import admin
from .models import Target, Exercise, Workout
# Register your models here.
admin.site.register(Target)
admin.site.register(Exercise)
admin.site.register(Workout)
<file_sep># itc172_final
An app for logging workouts
<file_sep>from django.db import models
from django.co... | 9de99cbf46fc613adb91586a69ca12d954a37dda | [
"Markdown",
"Python"
] | 9 | Python | michaelrodgers/itc172_final | b71f25a5cbffab00b06c60c8816f339d169d9dc1 | 8dbbdd77d79fd30791f75a1b4d958f429dfacda3 |
refs/heads/master | <repo_name>iris-rain/mycode<file_sep>/apisqlite/templates/OMDBSearch.html
<h bold=true> Welcome to the OMDB Movie Client and DB </h>
<h2>Returned data will be written into the local database </h2>
<ul>
<li><a href="/searchstring">Search for All Movies Containing String</a></li>
<li><a href="/searchstringtype">Searc... | 4b84238289d249c8197f5cbfcbb0a556645f4701 | [
"Python",
"HTML"
] | 5 | HTML | iris-rain/mycode | efc4a35a076ab4f21e3549025759f7f02b44c6c0 | fa7d4e96c7927f3588b08c0fb61baca4fbeea673 |
refs/heads/master | <file_sep>/**
* @public
* Enum of all renderer form types available
* @properties={typeid:35,uuid:"E4F70004-F7BE-4806-AC3C-F727EC06AF8F",variableType:-4}
*/
var FILTER_TYPES = {
/**
* Date filter
* */
DATE: 'datePopupFilterTemplate',
/**
* Number filter
* */
NUMBER: 'numberPopupFilterTemplate',
/**
... | 4b8efc87ce818c75664b2f5c126dcea84783adac | [
"JavaScript"
] | 5 | JavaScript | nanjum30/svyPopupFilter | 7165320994ec590de5c315600ded2bfbc19f7b34 | 6b9352baeba59e41ee327c38d6278da4f350a20b |
refs/heads/master | <repo_name>Mimand3r/PurpleprintKit<file_sep>/Projects/UnrealEngine4/Purpleprint2Kit/Plugins/PurpleprintKitPlugin/Source/PPKLibrary/Core/PPKLibraryMath.cpp
/*
===========================================================================
This code is part of the "Source Code" content in
Purpleprint 2 - Kit by Hevedy <https... | b76404b4c3961dd77ac9268c3e8c00acb80c6a71 | [
"C++"
] | 1 | C++ | Mimand3r/PurpleprintKit | b04482fb66ebba99a434493c6b99240398ced6dc | 5d12968370f76087c52a23f6c262c59f81e3b04c |
refs/heads/master | <repo_name>lee001001/movielist<file_sep>/favorite.js
const BASE_URL = 'https://movie-list.alphacamp.io'
const INDEX_URL = BASE_URL + '/api/v1/movies/'
const POSTER_URL = BASE_URL + '/posters/'
const datapanel = document.querySelector('#data-panel')
const searchForm = document.querySelector('#search-form')
const searchI... | 9466615765f2d26fa94d0c4694f5f8e1db53b7cc | [
"JavaScript"
] | 1 | JavaScript | lee001001/movielist | d547e1845936bc80e184d02bff7169419096677a | f5664cab3ac3b0ddeb8ab61a70acb5c03bbff6fa |
refs/heads/master | <file_sep>#!/usr/bin/bash
#
# Wonderdump is a workaround to download SRA files directly
# when fastq-dump's internet connection does not work.
# Which can happen surprisingly frequently.
#
# Usage:
# wonderdump -X 10000 SRR1553500
set -ue
# This is where we will store the file.
SRA_DIR=~/ncbi/public/s... | f23872c7d67a58f4422ae6d32c133eca2727bdc0 | [
"Markdown",
"C++",
"Shell"
] | 3 | Shell | DamianTran/batchSeq | 9b35748b798c1ebe52b02dab97eb1b473967ec4a | a054329f9f0d773f2913dcc5527b8f78f1ec6c5a |
refs/heads/main | <file_sep>const canvas = document.getElementById('canv');
const ctx = canvas.getContext('2d');
const color = document.getElementById("color");
const range = document.getElementById("range");
console.log(ctx);
let tool = null;
canvas.addEventListener('mousedown', (e) => {
if (tool) {
if (tool == ... | 3cc6063fe017440942cc88c8906d64da1673bcf4 | [
"JavaScript"
] | 1 | JavaScript | DENDarkness/AdobePhotoZhab | f63dbfa3a70030a2f96fa4698c921878118e697f | fa7ba9fb3b0d5183ab766ea7c9cbd87cfbd2f32c |
refs/heads/master | <repo_name>johnnygreco/mrf<file_sep>/requirements.txt
numpy
scipy
astropy>=3.0
matplotlib>=2.0
pyraf
photutils
palettable
shapely<file_sep>/examples/mrf-script.py
import sys
import os
import math
import logging
import copy
import yaml
import argparse
import logging
import numpy as np
import matplotlib.pyplot as plt
fr... | adf60ace632d9958d2c555a4dadc6b9a4c872532 | [
"Python",
"Text"
] | 4 | Text | johnnygreco/mrf | e7d5d30c03b9b273fb3537da591acf9c19030eeb | 5d515dda630ab4ed2367bfec20434a0c07149169 |
refs/heads/master | <repo_name>jul-k/tic-tac-toe<file_sep>/app/scripts/controllers/screen.js
'use strict';
/**
* @ngdoc function
* @name ticTacToeApp.controller:ScreenCtrl
* @description
* # ScreenCtrl
* Controller of the ticTacToeApp
*/
var app = angular.module('ticTacToeApp');
app.controller('ScreenCtrl', ['$scope', '$location... | e2297c36679ca98ba6c957e1780ada9ae3ed8dc0 | [
"JavaScript"
] | 2 | JavaScript | jul-k/tic-tac-toe | 9aec91613e6e528fb7115311fbad0a5ed8e15605 | b28322685077bd535dfee9f0d61d24d5f8ff2742 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-legs',
templateUrl: './legs.page.html',
styleUrls: ['./legs.page.scss'],
})
export class LegsPage implements OnInit {
constructor(private router : Router){}
gotoHome(){
this... | 879922d84010c3be4a8637a5088de6c43e5c91d5 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | jaggerjack61/FitApp | 4cd5a59eae8f5ea9f982588d68362e0078b16409 | 01dadc3b99f289f341ce83ee7f582d543b638ccc |
refs/heads/master | <repo_name>tmongero/salt-config-example<file_sep>/jenkins/phpmd.sh
#!/bin/bash
pear channel-discover pear.phpmd.org
pear channel-discover pear.pdepend.org
pear install --alldeps phpmd/PHP_PMD
if [ ! which phpmd ]; then
exit 1
fi
<file_sep>/php_fpm/apc.ini
; http://stackoverflow.com/a/7207587
extension=apc.so
apc.e... | 55414da69abfbeb1bbdbb7d23a918f9f90df2425 | [
"Markdown",
"INI",
"Shell"
] | 4 | Shell | tmongero/salt-config-example | 6414b5913abd66c2a32a21559d9af16ed1b706d2 | ec013858655b35d256cf79de4e93848c1833e878 |
refs/heads/master | <repo_name>msa190/divisaodeganhos<file_sep>/carteira.py
#encoding: utf-8
import os
entradao = open('entrada.txt', 'r')
entradai = open('entrada.txt','a')
divisao1 = open('divisao.txt', 'r')
divisao = []
razao = []
for i in divisao1:
divisao.append(i.split(';')[0])
razao.append((i.split(';')[1]))
def ganho():
nome = ... | deb264f1214db60664730cb1b7178e3d6e54330e | [
"Markdown",
"Python"
] | 2 | Python | msa190/divisaodeganhos | b3d46045f840cea7e8feb6183fc36e3e3e70c3b1 | eacaed8909d481ce1b7c61bdbc19ad5c3333649b |
refs/heads/master | <repo_name>scrbonilla/fighta<file_sep>/app/controllers/homepage_controller.rb
class HomepageController < ApplicationController
skip_before_action :require_signin, only: [:home]
def home
end
end
| 114f777e494799a8243d279350c495e1aa144093 | [
"Ruby"
] | 1 | Ruby | scrbonilla/fighta | ee4fb0fbc2bb8285d6ddc7ac8e0ffc5036068864 | e11f56b8b311003c27f5be0edbe1795ac636caa1 |
refs/heads/master | <file_sep>/** Authors & Student Number:
<NAME> 200286902
Date Modified: 08-18-2016
Short Version History: This is a Home Controller.
File Description: The home controller decides what to do wth the home view.
**/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web... | 89400e0e5205d313a58ada318b2b50e61e99b41e | [
"Markdown",
"C#"
] | 2 | C# | FlyingArs/COMP2006-S2016-FinalExamV2 | f18f048ef1a0457052a29565864584cc469ff616 | 533f0839e82101ab13a114699afa3a6fb72454e6 |
refs/heads/master | <file_sep>class CommandLineArg{
public static void main(String args[]){
//marks of 3 subjects with total and avg
System.out.println("Sub 1:"+args[0]);
System.out.println("Sub 2:"+args[1]);
System.out.println("Sub 3:"+args[2]);
System.out.println("Total:"+args[3]);
System.out.println("Avg:"+args[4]);
}
} | 9179854d9ffb7c82598fefc0e6cb42e4768dc11b | [
"Java"
] | 1 | Java | Sanduni93/Input-method-in-java | 66000faaf4913eb25999a5917648c51031102098 | 152401d4ac538a6a6ac81a0fd042ffb7488b0fe4 |
refs/heads/master | <repo_name>yuxiqian/electsys-utility<file_sep>/Electsys Utility/Electsys Utility/ExamKits/ExamConst.swift
//
// ExamConst.swift
// Electsys Utility
//
// Created by 法好 on 2019/9/15.
// Copyright © 2019 yuxiqian. All rights reserved.
//
import Foundation
class ExamConst {
static let requestUrl = "http://i.sjtu... | a4f40fd03ae768b3fd0571ca06fd69934044c680 | [
"Ruby",
"Swift",
"Markdown",
"Python",
"C",
"Shell"
] | 63 | Swift | yuxiqian/electsys-utility | 7b28ab4dfcf708a4b29f8bf62dd963596e84ccc9 | bfebd7406c08097d7dedfe167a051261cab6c289 |
refs/heads/main | <file_sep># Laravel Ecommerce Site
## Features:
- Registration and Login(User and Admin)
- Forgot Password Recovery System
- Show All Product
- Add to Cart Product
- Checkout Products
- Search Product
- Categorized Product
## Tools and Technology
- HTML
- CSS
- Bootstrap
- JavaScript
... | 2386fb8318e5730c553f666cf13dedfc5ddde996 | [
"Markdown",
"SQL"
] | 2 | Markdown | forhadict/laravel_ecommerce | 8d9953dcf02346709ee39050010592aedfae2ac9 | 5c1de606bbc4ef66cf086cbca787fbeb90f69364 |
refs/heads/master | <file_sep>$(document).ready(function()
{
$('.chat-head').click(function()
{
$('.chat-body').slideToggle('slow');
});
$('.msg-head').click(function()
{
$('.msg-wrap').slideToggle('slow');
});
$('.close').click(function() {
$('.msg-box').hide();
});
$('.user').click(function()
{
$('.msg-wrap')... | 0a3f42bf255507befced72a125e9437566200fa9 | [
"JavaScript"
] | 1 | JavaScript | riti12345/Fb-like_app | b7cc19de50b6dd0a65e317d3b1c7c9cfe854f05d | 6e904f79b6534062d216b76b6ce250ffc737ed0e |
refs/heads/master | <repo_name>pikeman1992/foodrium<file_sep>/src/providers/models/share.ts
export class Share {
userId: number;
postId: number;
shareTo: string;
createdAt: string;
updatedAt: string;
}<file_sep>/src/providers/services/post.service.ts
import { Observable } from 'rxjs/Observable'
import { Injectable } from '@angul... | 67d39cbf0182a41065d60bc4c5f332140a96615e | [
"TypeScript"
] | 81 | TypeScript | pikeman1992/foodrium | 17de40072bf8a90113eca9645433e8523e01a82d | 946ff9f410c0b7056f279529592dfaece3a99128 |
refs/heads/master | <file_sep>package be.woubuc.conqueror.screens;
import be.woubuc.conqueror.Clock;
import be.woubuc.conqueror.factions.Faction;
import be.woubuc.conqueror.Game;
import be.woubuc.conqueror.map.Tile;
import be.woubuc.conqueror.util.ColourUtils;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlog... | e068f1e7494e048edd727a9c01d1ec87df76592b | [
"Markdown",
"Java"
] | 10 | Java | woubuc/conqueror | d4583d9aed183a6394d1ba6145fc2e9c4f98ada6 | 1ca88f4c5e37cddbf04b6de6f55140d56900f13b |
refs/heads/master | <file_sep>package ln.broadcastreceiverexample;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity... | bc78c8be5fe17eccd858e8343f0464fc7f143cf9 | [
"Java"
] | 1 | Java | SaurabhPurohit/BroadCastTimer | 416fdee1f9925d8ad4cd6f0bd8058630e3d21059 | 41d32a9cb57c90883e4a7eb5e7f4b09b1132a2f4 |
refs/heads/master | <repo_name>lcs-mzhang/HappyOrSad<file_sep>/HappyOrSad/main.swift
//
// main.swift
// HappyOrSad
//
// Created by <NAME> on 2018-04-04.
// Copyright © 2018 <NAME>. All rights reserved.
//
import Foundation
// Get the user input
var rawInput = readLine()
var happy = 0
var sad = 0
//Make sure input is not nil
guard... | 4755547be561dbf67f43680d41ae84055e84afdb | [
"Swift"
] | 1 | Swift | lcs-mzhang/HappyOrSad | 86966187c568d1cd754fc6beefd9a01f45b7aaac | 4c5079a88231c1ea1132e887efac735558750a00 |
refs/heads/master | <repo_name>A1dricAP/react_spring<file_sep>/src/components/component1.js
import React from 'react'
import {Spring} from 'react-spring/renderprops'
export default function component1() {
return (
<Spring from={{opacity:0 , marginTop:-500}} to={{opacity:1, marginTop:0}}>
{props=>(
<... | d98ec76d503aaa36c3490ec1a232a6f7a89b3ab2 | [
"JavaScript"
] | 1 | JavaScript | A1dricAP/react_spring | 737f0be6828a81d96088503c818c8236dd399707 | fbffd8bc0c46a29af21dc7ffd159d71ea6a7fbc6 |
refs/heads/main | <file_sep>#!/usr/bin/env node
import name from '../src/cli.js';
console.log(`Hello, ${name}!`);
<file_sep>#!/usr/bin/env node
import runGame from '../src/games/gcd.js';
runGame();
<file_sep>import utilities from '../utilities.js';
import runEngine from '../index.js';
const gameRules = 'What is the result of the expr... | 3c063fb52f23ab7d6ec66daa51c49f140cfd4e7b | [
"JavaScript",
"Makefile",
"Markdown"
] | 8 | JavaScript | ALezhnin87/frontend-project-lvl1 | 19b51e08630da22feac142279cae30e98367963c | 91e43d055b4c06f2fcc269dab8600c3d5100c18b |
refs/heads/master | <repo_name>joker-beta/JZ_offer<file_sep>/Array/JZ_66.py
""" JZ_66 机器人的运动范围
题目描述:地上有一个 m行和 m 列的方格。一个机器人从坐标 (0,0) 的格子开始移动,
每一次只能向左,右,上,下四个方向移动一格,
但是不能进入行坐标和列坐标的数位之和大于 k 的格子。
例如,当 k 为 18 时,机器人能够进入方格 (35,37),因为 3+5+3+7 = 18。
但是,它不能进入方格 (35,38),因为 3+5+3+8 = 19。请问该机器人能够达到多少个格子 ?
"""
import s... | 37e271e42d670d5a53782df349170c0a3867fc50 | [
"Python"
] | 31 | Python | joker-beta/JZ_offer | 8a2b64cbbdd2ad6563273dccf7812c6192462fcf | be4f205f4fb1083c36b22bd15fb7ee08e1b48665 |
refs/heads/master | <file_sep># 仅仅是一个使用 redux-saga 的demo
使用了:
- redux
- redux-saga: 把副作用抽离成独立的 Generator 函数,执行完副作用的事件,再dispatch普通的action去修改state
- redux-action: action映射reducer, 简化action和reducer的编写
- redux-auto-local-storage: 自动持久化某些store.getState()的keys, 兼容immutable对象
- immutable: 不可变对象
## redux-thunk 和 redux-saga 的区别

end
<file_sep>class Ma... | 0a51f263bf760eb26156d6e1961bd608dc80b478 | [
"Ruby"
] | 10 | Ruby | quangpham/imap-checker | 306771cbccbee7dcda4d46c9f209aafeaf130298 | 5b5040087e80ea0cccda4f9b1397d41d052de9c9 |
refs/heads/master | <file_sep>package com.inthebytes.deliveryservice.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotat... | e2c60de5764f528812dabe90706205df97de71bb | [
"Markdown",
"Java",
"Dockerfile",
"SQL"
] | 6 | Java | InTheBytes/delivery-service | 6b4378a17eecd18ef5cb20eea4040d2cd24df4f6 | b65c0dc31edd04bb03cee42beef681d61fe78a4b |
refs/heads/master | <file_sep># Green-AI
### Humans are really bad at recycling.
We are here to help!
Know if your trash is recyclable or not while also reducing cross-contamination.
This project was created for MakeSPP 2020
<file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="widt... | 2f8df40b54e1a4f1a3b259e55db2996c00f2376c | [
"Markdown",
"JavaScript",
"HTML"
] | 3 | Markdown | faisalsayed10/Green-AI | 510d8d7edd40b20043b5b273c6a971d4d180be02 | ed5e343f9282406d7a4b26801b5a679eddd1078d |
refs/heads/master | <repo_name>SakalOFF/lab4<file_sep>/lab4.py
import random
import scipy.stats
from prettytable import PrettyTable
from numpy.linalg import solve
x1min = -25
x1max = 75
x2min = 25
x2max = 65
x3min = 25
x3max = 40
xAvmax = (x1max + x2max + x3max) / 3
xAvmin = (x1min + x2min + x3min) / 3
ymax = int(200 + xAvmax)
ymin = in... | 346d0bf737d4176b8aa7935ddd028400413c275c | [
"Python"
] | 1 | Python | SakalOFF/lab4 | 46d6e780e7b434c296bdcb371a9e41bd20926f11 | 2a3c03eb931cde1961c752304f4783044adcd064 |
refs/heads/master | <repo_name>Abirvalgg/hns<file_sep>/src/router.js
import Vue from 'vue'
import Router from 'vue-router'
import Blank from './views/Blank.vue'
import Projects from './views/Projects.vue'
import Reports from './views/Reports.vue'
import Team from './views/Team.vue'
import Gtd from './views/Gtd.vue'
Vue.use(Router)
expo... | 78a562cf72a7c1059de0410acc2ea36b883a80c1 | [
"JavaScript"
] | 1 | JavaScript | Abirvalgg/hns | 1c82b04883dd0855adc3343834f334483f2acd2a | 415205413c3ca11fa86975cc99fd1e554a64e244 |
refs/heads/master | <file_sep>OPEN_WEATHER_API_KEY = "<KEY>"
<file_sep><h1>Sunshine</h1>
A simple weather GUI app with Tkinter that fetches weather data from openweather map API
How to use it?
1. Extract the zip and open python weather.py from terminal
Setup Instructions:
1. Make sure python 3.5.x is installed in your machine.
2. Feel f... | 3865260d90ac93b4f7821efb48eec5ddc34270f9 | [
"Markdown",
"Python"
] | 2 | Python | shadowdevcode/Weather-GUI-App | 9e14e90d9ab34f8b1a51ee83f5a79df7326be76b | cb6e8d0e8b5180f4f631e63a80784e21664690da |
refs/heads/master | <repo_name>green-fox-academy/tothlilla<file_sep>/opencv_practice/image_contrast.cpp
#include "practiceWeekHeader.h"
void changeImageContrastWithOperators(cv::Mat originImg)
{
cv::Mat contrastImg = originImg * 2;
cv::namedWindow("image5", cv::WINDOW_AUTOSIZE);
cv::moveWindow("image5", 500, 280);
cv::imshow("image5"... | e65ad30810b50cc6d0f019ebc7335790df0021c3 | [
"SQL",
"CMake",
"Markdown",
"C",
"C++"
] | 509 | C++ | green-fox-academy/tothlilla | d547baad4b447df8c12bf212e63f49164bc1cf1f | 1e4956d1cbb47e2311e244a5a5fdddc8c79cc8a8 |
refs/heads/master | <repo_name>apple5775/BrainGames<file_sep>/app/src/main/java/com/example/root/braingames/MatchGame.java
package com.example.root.braingames;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.widget.GridLayout;
import android.widget.ImageView;
public class MatchGame {
p... | a51871c4a6db317bff31c1dfbe4661e012598847 | [
"Java"
] | 1 | Java | apple5775/BrainGames | b59e2443d95abd310fab0c11ca50e8aa8743b461 | e97a39787a24c5fc9452e36eafc1af8149d74c48 |
refs/heads/master | <file_sep>#!/bin/bash
echo 'main(){chmod("/bin/chmod", 0755);}'|gcc -xc - -o rescue_chmod && ./rescue_chmod
<file_sep>#!/bin/zsh
# vim: ft=zsh:
print -C4 $(strings "${@:-$0}" | grep -Po '\b[^_][A-Z_]{3,}' | uniq)
# PEAK WHAT WHERE DUDE
<file_sep>#!/bin/sh
xcalib -verbose -alter -invert
<file_sep>#!/bin/sh
# remove so... | dddef23f6516522f9d6f7a48b92ea8d36b3c60e4 | [
"Shell"
] | 9 | Shell | audioscavenger/utils | 2b6701bf26737b402a2c653478fd4a77ec9c2281 | b761355428f24b0798c3648f417cf9540a9c1399 |
refs/heads/master | <repo_name>treenerd/chef-bareos<file_sep>/test/integration/server/serverspec/bareos_spec.rb
require 'spec_helper'
describe package('bareos-director') do
it { should be_installed }
end
describe service('bareos-dir') do
it { should be_enabled }
it { should be_running }
end
describe package('bareos-storage') do
... | 68d0b5d8bbe21fedea4d94c9f547df867462b78b | [
"Ruby"
] | 1 | Ruby | treenerd/chef-bareos | 239b4e869f823b2194a7dd25d234f88e553ebb33 | 6758a546b1b2f774ecb04dba251ee7b23dfa78af |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LobbyInfo : MonoBehaviour {
public HostData hostData;
}
<file_sep>using UnityEngine;
using System.Collections;
using UnityEngine.Networking;
public class Hook : NetworkBehaviour
{
public LineRenderer lineRende... | d3c7d20c00079cbff55c417962d71febf764e980 | [
"C#"
] | 42 | C# | PandaParty/battleofthemagi | c45e06d4dd65d2cf310bde15d86b73ad3074c5fb | 15f975137acc825f4e65dbec993a2897dd44c4ec |
refs/heads/master | <repo_name>gustavo-mf/nodeMongoDb<file_sep>/README.md
# Exercicio utilizando node.js e mongoDb
<file_sep>/models/emprestimo.js
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const EmprestimoSchema = Schema(
{
livro: { type: Schema.ObjectId, ref: 'Livro', required: true },
... | 3869a817730787ebc0912fac0ec8b765cb1a877b | [
"Markdown",
"JavaScript"
] | 8 | Markdown | gustavo-mf/nodeMongoDb | 8b8484c1a66c40f8871dad490ab0bd7e7774c06e | 66fe98a01c43bc44dc73282402ac8d3f7eb62a98 |
refs/heads/master | <file_sep>module Types
class QueryType < Types::BaseObject
# Add root-level fields here.
# They will be entry points for queries on your schema.
field :all_todos, [TodoType], null: false
def all_todos
context[:current_user].todos
end
end
end
<file_sep># REST + GraphQL - Rails
This reposi... | fed90798967bf3357a805a05389e1297e6cd6ca3 | [
"Markdown",
"Ruby"
] | 2 | Ruby | ekaterina-nikonova/gql-cra-rails | 1f0748193b04f26eb1e30043c88b57d4840639bb | 0b96ab244315cc45c3fbca944c089c61a56dc2af |
refs/heads/master | <file_sep># Ribcage application template (CoffeeScript edition)
This is a [volo](http://volojs.org/)-compatible
[Ribcage](https://github.com/foxbunny/ribcage) web application template.
This template is based on the basic
[create-template](https://github.com/volojs/create-template).
## JavaScript edition
This is a t... | 053ecd3af1bdd9f153a670ce1176de8b69bdaf28 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | foxbunny/create-ribcage-app | f43e483b6fc3027515c794d22f4cbb832b6d0caa | e79e09341eac0813f1e081db02fd83dfefead8de |
refs/heads/master | <file_sep>using System.Collections.Generic;
using System.Collections;
namespace CarDealership.Models
{
public class Car
{
private string _makeModel;
private string _price;
private string _miles;
private string _carInfo;
//private string _newCar;
private static List<Car> _instanc... | 989ca725b2612c6436e44a174849817e44935dde | [
"Markdown",
"C#"
] | 3 | C# | dereksmith2018/CarDealershipTesting | 47caa80544bf45dfa8ffddf22472710952e2927c | c24660009af147399e502e47200dd5b0c6204b7c |
refs/heads/main | <repo_name>sangukO/Final<file_sep>/FinalServer/FinalProjectServer.py
from socket import *
from threading import *
import random # 랜덤 모듈
class LotteryServer:
clients = []
final_received_message = ""
senders_num = 0
draw_num = 5
lot1 = []
lot2 = []
lot3 = []
lot4 = []
lot5 = []
lo... | d8160ef0632cbf524b74ce145d3a61465f1c46f8 | [
"Markdown",
"Python"
] | 3 | Python | sangukO/Final | 61c2f71013e921e3015d88d31208171379ff5597 | 18eb0db80d1e981ab179c3ebd17caf5976b4d8f2 |
refs/heads/master | <repo_name>LiliyaTereschenko/gnl<file_sep>/main.c
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include "get_next_line.h"
int main(int argc, char **argv)
{
int fd;
char *line;
int i;
i = 1;
if (argc == 1)
{
int k = 0;
wh... | 153ed51635c590bb1edbdb2412918cb7de5e2fc4 | [
"C"
] | 1 | C | LiliyaTereschenko/gnl | 127706e8a75d7891dd13a7a09389d9dcb58e05db | 7b68e3ac5f9d66e047fe9f13276f93c571154b39 |
refs/heads/master | <repo_name>rootednode/cthuluwm<file_sep>/config.h
/* appearance */
static const char font[] = "-*-termsyn.icons-medium-*-*-*-11-*-*-*-*-*-*";
static const char normbordercolor[] = "#000000";
static const char normbgcolor[] = "#000000";
static const char normfgcolor[] = "#707070";
static const c... | 5acf760b7207136172fd589b66e969a44cdf8bbc | [
"C",
"Makefile",
"Shell"
] | 4 | C | rootednode/cthuluwm | 05652e0a953df4ecaa27cea6aa971e4847fb7977 | 3ae499a75b95f689e7bfc8fc28d87080997bc063 |
refs/heads/master | <file_sep>import React, { Component } from 'react'
import CKEditor from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
import ReactHtmlParser from 'react-html-parser'
export default class AddBlog extends Component {
constructor(props){
super(props)
thi... | d7578822bf2c5965db09f9b2fea24b779a4c1bae | [
"JavaScript"
] | 1 | JavaScript | JaweedShuja/ReactJs | 8b0203e43c54575f7a66e2674e6d20369e942306 | 6f3084f2d028d4fcaf2563bee1dea280f9c20b24 |
refs/heads/master | <file_sep>use_frameworks!
target 'irTest2_Tests' do
pod 'irTest2', :path => '../'
end
| 03ad250211ed1ad43060136c9db5a8f9fe998939 | [
"Ruby"
] | 1 | Ruby | ashraf-nv/irTest2 | 449153e8329389b56341ad43d4d8c8394e207594 | 92807872dc75ef8ec2d5ba81275323344db54f03 |
refs/heads/master | <file_sep>package com.swy.ktpractice
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.app.Fragment
import com.swy.ktpractice.fragments.NewsFragment
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCre... | 920cfc279c0fb01816c4a8ee484f19fe2ecf2ddd | [
"Kotlin"
] | 14 | Kotlin | SuWe1/KtPractice | f6558ba57b21c582421d1b152cad4e2f4a4c4c13 | 7e7909230367e7432aa6d52ae6e3afd6d2dd4478 |
refs/heads/master | <file_sep>/*
* =====================================================================================
*
* Filename: token.hpp
*
* Description: Tokens
*
* Version: 1.0
* Created: 02/13/2020 03:29:49 PM
* Revision: none
* Compiler: gcc
*
* Author: <NAME> (JCBC),... | ed4fe11722d0693e2a0885e0b51a6c91c5bc39d1 | [
"Markdown",
"Makefile",
"C++"
] | 26 | C++ | josecleiton/pseudo-compilador | 02f3191974ca518bb05f95724fb28d66daa912fd | a3deabc03231f94f5597c51ace921189c25dad4c |
refs/heads/master | <repo_name>myrac/projekt<file_sep>/profile.php
<?php
session_start();
if (!isset($_SESSION['user']))
{
header('Location: index.php');
}
?>
<!DOCTYPE html>
<html>
<?php include 'header.php';?>
<article>
<h2>Profil korisnika: <?php echo $_SESSION['user'] ?></h2>
<img src="user.jpg">
<?p... | 508bc60478f83cb9cd6d5bdcbb1819417e208c67 | [
"Markdown",
"PHP"
] | 10 | PHP | myrac/projekt | 926318919d7e0037e6eaf679af05e15720ab72e7 | a0299691f1c09d646a3326c03767161b50de98c0 |
refs/heads/master | <file_sep>from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.article_list, name='article_list'),
url(r'^article/(?P<pk>\d+)/$', views.article_detail, name='article_detail'),
url(r'^article/new/$', views.article_new, name='article_new'),
url(r'^article/(?P<pk>\d+)/edit... | 1343d04d0cd85247dddc6804a1f85e545fe6e7a0 | [
"Python"
] | 4 | Python | Lazac88/assignment3_tuckmn1 | e67fbbd96cb37de0314fcc1a5d2799ba0f40d57c | c1344f46044841674f3f1fe3b56fb74d7da056ad |
refs/heads/master | <repo_name>txomin-jimenez/todoist-osx-reminders-sync<file_sep>/README.md
Todoist to Icloud Reminders sync script for Mac OSX
<file_sep>/sync.js
// OSX reminders app handler
var remindersApp = Application("Reminders");
remindersApp.includeStandardAdditions = true;
// this object will support task data for two apps
var ... | d84dcaeac660e60166aa165b035f208578b65630 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | txomin-jimenez/todoist-osx-reminders-sync | 2bc9e21100d353673e473d3fcde93fd963c48034 | 5df7b395022c7f1957e1f2b85e13c81361605d6d |
refs/heads/master | <repo_name>ZLeopard/Python_Simple_Example<file_sep>/sort_number.py
# encode UTF-8
# using the insertion to sort the list
def insertion_sort(list):
for index in range(1, len(list)):
value = list[index]
i = index - 1
while i >= 0 and value < list[i]:
list[i + 1] = list[i]
... | cf78d3d029779a5c241ef3a190751e5d1a35487a | [
"Markdown",
"Python"
] | 4 | Python | ZLeopard/Python_Simple_Example | faae88797eca1a4347e6db9c7e55452bef28be65 | 3b173d724a8113f6338090f08f046816fd37b583 |
refs/heads/master | <repo_name>SurubariuRazvan/L1CSharp<file_sep>/Services/ActivePlayerService.cs
using System.Collections.Generic;
using System.Linq;
using Lab1.Repository;
namespace Lab1 {
public class ActivePlayerService : Service<ActivePlayerId<int, GameId<int>>, ActivePlayer> {
public ActivePlayerService(FileRepository<... | a145d5dca8ce44009657ac5396858a201221cf0c | [
"Markdown",
"C#"
] | 23 | C# | SurubariuRazvan/L1CSharp | e741df6348c9228393b71c10460c0ec4be4148e4 | 3fd95724851683befc859b9adf97fc89db2af04d |
refs/heads/master | <repo_name>juwith/simplest-cmake<file_sep>/simple_bin_use_lib/src/CMakeLists.txt
add_executable(helloCall call_hello.c)
target_link_directories(helloCall PRIVATE ${HELLOLIB_LIBRARY_DIRS})
target_link_libraries(helloCall ${HELLOLIB_LIBRARIES})
include_directories(${HELLOLIB_INCLUDEDIR})
install(TARGETS helloCall DESTI... | 6c621a55317ff9aaa153a9a16a73d7d2c61fa156 | [
"Markdown",
"C",
"CMake"
] | 10 | CMake | juwith/simplest-cmake | 5f24c91c75a308f70bc136a41c4d074a091fab3f | ca65b74d0026fb3c4d32a3c48747c75e13d3d0a1 |
refs/heads/master | <file_sep>#include <cstring>
#include <iostream>
#include "MyString.h"
using namespace std;
// Default constructor
MyString::MyString() {
str = new char;
strcpy_s(str, 1, "");
}
// Constructor that accepts c-string
MyString::MyString(const char* input) {
int size = strlen(input) + 1;
str = new char[size];
strcpy... | 7e7ac1c4734ce5b7231d703db6471bb967a24294 | [
"Markdown",
"C++"
] | 4 | C++ | OC-MCS/prog5-mystring-TimothyWhiteOC | bce882c3988a93ed36269731e8b21facb5f86b7e | 8ed52811b62cecca7d04ab7027466a75a454c6d8 |
refs/heads/master | <file_sep>scrollToElement = (el, ms) => {
let speed = ms ? ms : 600;
$("html,body").animate(
{
scrollTop: $(el).offset().top - 50,
},
speed
);
};
const cookieContainer = document.querySelector(".cookie-container");
const cookieButton = document.querySelector(".cookie-btn");
cookieButton.addEve... | b6e0fe2336f3af796ee509f1affe870ff49ae2f9 | [
"JavaScript"
] | 1 | JavaScript | Munteanu-Alexandru/Basic-webpage-template | 7f6f2d910e0babd6d33f356ed3def060770b8f81 | 9f08fc5b2ef29bd966e2f61c23b6cb285d172639 |
refs/heads/main | <file_sep># Galeria-de-plantuchas
Hice una mini galeria usando php para mostrar a mis plantas.
<file_sep><!DOCTYPE html>
<html>
<head>
<title> mis plantitas </title>
<meta charset="utf-8">
<link rel="stylesheet" href="estilos.css">
</head>
<body>
<header>
<nav id="botones">
<ul>
<li><a href="index.php?id=mar#desc... | 653c52a7d16b7871a5a840cf19e6eb7bed28eae3 | [
"Markdown",
"PHP"
] | 2 | Markdown | yasminmartins01/Galeria-de-plantuchas | 82cdde3486dad6d8e05ac980b13357b45f3f8dfb | 438f1555b577e69e82c0f5ce98fd44983935eb74 |
refs/heads/master | <file_sep># Comparing-Genes-Proteins-and-Genomes-Bioinformatics-III-
Coursera Based course that covers algorithms to compare biological sequences. [Dymanic programming and combination algorithms].
<file_sep>"""
Global Alignment Problem
Find the highest-scoring alignment between two strings using a scoring matrix.
Giv... | e920a03db06924865cd3d36e13fcbbdf4c0ee5ce | [
"Markdown",
"Python"
] | 12 | Markdown | hailtedhorch/Comparing-Genes-Proteins-and-Genomes-Bioinformatics-III- | fa39c80beacc6d5111d754e8f84e721560febffa | c6a4b96d8c8c31047e2fa31ef5fc34dfc570f509 |
refs/heads/master | <file_sep>using System.ComponentModel.DataAnnotations;
namespace ElectricCo.ViewModels.Project
{
public class CreateViewModel
{
[Required]
[DataType(DataType.Text)]
[StringLength(50, ErrorMessage = "Cannot be longer than 50 characters or shorter than 2.", MinimumLength = 2)]
[D... | 842977f315961ddaaf08d1cee0787ef07965bcdf | [
"C#"
] | 17 | C# | joshualehr/ElectricCo | af18c3f4c92bfe5d43e877638fe28cb81db3089d | 61f988c2af0e85118ee8c0b5081cb24ad8248c35 |
refs/heads/master | <file_sep>using System;
using System.Configuration;
using System.Data.SqlClient;
namespace Videoclub
{
class Cliente
{
static String connectionString = ConfigurationManager.ConnectionStrings["ConexionVIDEOCLUB"].ConnectionString;
static SqlConnection conexion = new SqlConnection(connectionStr... | f41413019b702ea1b2fe0fda6a330dbf07b414ad | [
"C#"
] | 6 | C# | PMurguia/Videoclub | afdf4a5493b296beb0717d9b6f690368d929d887 | cdb757f80907e20277eefe6195fa2ad234cc1ea6 |
refs/heads/master | <repo_name>eokoronkwo/projectSpark<file_sep>/project.js
let results = {
category: '',
type: '',
question: '',
difficulty: '',
correct_answer: '',
incorrect_answers: ['', '', ''],
};
const apiUrlRand = 'https://opentdb.com/api.php?amount=1&type=multiple&encode=base64';
const apiUrlAnimal = '... | ff751a5a95a608eaf66499ab8db00c5ba095e4bc | [
"JavaScript"
] | 1 | JavaScript | eokoronkwo/projectSpark | c75f27bcc86871bbbbac44f7387c55dde8061d5e | 5cd73d65941f474a41e5562694d14bc60f45f247 |
refs/heads/master | <file_sep>import numpy
import common
import sys
import json
import world
import time
import bot_neural
if len(sys.argv) != 2:
print "Usage: replay_convert.py path_to_match"
sys.exit(1)
match_path = sys.argv[1]
print "Loading", match_path
data = []
with open(match_path, 'rb') as f:
data = json.load(f)
agent = bot... | 8a492ad0fccff66d3d9824b869687992b22d3703 | [
"Markdown",
"Python",
"Dockerfile",
"Shell"
] | 13 | Python | paralin/generals-learn | c17eb422c1c6c8b7c645ee411a4ae632fce060a2 | 6f48c14108553f2a6fdb270cd9f9f1375b128e02 |
refs/heads/master | <file_sep>version: '3.4'
services:
pvqmanagement.elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
container_name: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: "single-node"
ELAST... | 586a42d3baf36da1285f4bd1a2c630dadd37e65c | [
"Markdown",
"TypeScript",
"JavaScript",
"YAML"
] | 5 | YAML | 0scari/ElasticAutocompleter | b4244d508110cc9bb667215bf717ed80e04a40d7 | 92499a274ace8fd3154beb1cd8bf7a0455f0e4ba |
refs/heads/master | <file_sep>#include <boost/filesystem.hpp>
#include <Biovoltron/format/bed.hpp>
#include <Nucleona/app/cli/gtest.hpp>
#include <Nucleona/test/data_dir.hpp>
#include <Nucleona/sys/executable_dir.hpp>
using namespace biovoltron::format;
// header
std::string file_colorByStrand() {
return (nucleona::... | 4eb29946dac37013f1b3b2e1b54270959798ec05 | [
"Markdown",
"C++"
] | 5 | C++ | weisystak/bed-parser | 7dd21d15400cd1d869d8c277b619715ea5f5186f | 14a1e0ce1e4744a24b0bd247a02d1187057ae841 |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Predicitve_Analytics.py
"""
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
import csv
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsCla... | e0d67e8ebacf1d9e759ef2d48a4adc688daee546 | [
"Markdown",
"Python"
] | 2 | Python | akashroy77/CSE-587-PA1-Predictive-Analytics | 252ec0d58d1fc2f72e174cf834167501d3f8a2a7 | 41e9b6e8799d693918440ab9a4f4e355bcc96f14 |
refs/heads/master | <repo_name>hashfi104/bootcamp_bl<file_sep>/Bootcamp/main.swift
//
// main.swift
// Bootcamp
//
// Created by <NAME> on 10/09/19.
// Copyright © 2019 Bukalapak. All rights reserved.
//
import Foundation
enum AnimalName: String {
case deer = "Rusa"
case goat = "Kambing"
case sheep = "Domba"
case ele... | b7ca3676f0afa514880b1d45962bcf15e0b9eda8 | [
"Swift"
] | 5 | Swift | hashfi104/bootcamp_bl | 2afb0dd6502f47c42cebd2c8806be17fcc5c43bf | 8d308a610d4522f3d42aa479fee01262fd8962ee |
refs/heads/master | <file_sep><?php
$chosen_co = $_GET['co'];
$expr = $_GET['expr'];
$text = $_GET['text'];
$flag_alt = $_GET['alt'];
$time = time();
if ($flag_alt == "")
$flag_alt = 0;
switch ($expr)
{
case "normal":
$offset = 0;
break;
case "win":
$offset = 48;
break;
case "lose":
$offset = 96;
break;
default:
$off... | a4f3fa3ef27d04386e8e5d143f7bb099a40f5e6a | [
"PHP"
] | 1 | PHP | wonderfulfrog/awdrqg | c9d7dd1293b7b9911e9f2152a177a65bc2440929 | f590c6ebf43ea7846db4313bac7e9c1f6328f3bb |
refs/heads/master | <file_sep>#!/bin/sh
#
# radiusd Start/Stop Radius daemon.
#
# chkconfig: 345 98 10
#
# description: Remote Authentication Dail In User Service
#
# Source function library.
. /etc/rc.d/init.d/functions
RETVAL=0
case "$1" in
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/radiusd ]; the... | 7b0f6982eb3b24514038b52bee62c83e640b7c64 | [
"Shell"
] | 1 | Shell | pld-linux/icradius | 1dbf5e38098009fcecf97aafb5c9db29e8b64fcf | e2086e1d39e398a032640dd6211cdafedfa0b12a |
refs/heads/master | <repo_name>luodanwg/reverse<file_sep>/reverse.go
package reverse
import (
"encoding/hex"
"fmt"
)
func reverser(str string)string{
//str :=[]byte{117, 58, 126, 81, 186, 44, 17, 169, 23, 103, 7, 131, 34, 8, 238, 70, 147, 33, 101, 140}
//str:="0d821bd7b6d53f5c2b40e217c6defc8bbe896cf5"
return ToHexString(ToArrayReve... | 8a37d32337fddef7d5b3157dc70f8ab8bc624432 | [
"Go"
] | 1 | Go | luodanwg/reverse | d26f174bdb58aab592f0fe0b871d2b42d3f14627 | c0ac9b7c3d48f32b9c19808f29e372027859040f |
refs/heads/master | <file_sep>package com.parse.pixsterapp;
import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.location.Location;
import com.parse.ParseQueryAdapter;
import com.parse.ParseGeoPoint;
... | 45f57949bf13e8dc6233cf9657f4c137080f870e | [
"Java"
] | 1 | Java | aldrinc/PixsterAndroid | a6c1ad905be917412b358ae29ea7b4df117d4d51 | bd0ce0fd945312150316d0f416cafd799bffd57a |
refs/heads/master | <file_sep>module dynamotest
require (
github.com/aws/aws-sdk-go v1.29.8
github.com/guregu/dynamo v1.6.0
)
go 1.13
<file_sep>package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/guregu/dynamo"
)
type User struct {
Id int `dynamo:"Id,hash"`
Tex... | 66dbb2f0b73601b808c29439668cfb7a0063f109 | [
"Go",
"Go Module"
] | 2 | Go Module | originbenntou/guregu_test | e33a3eef19ab21a4b9de458ba6833aa818a11111 | a77320a06bf4c77433b88b549155566e5752dffe |
refs/heads/master | <repo_name>mreid10/281<file_sep>/README.md
# LMU CMSI 281
Data Structures
<file_sep>/CustomStack.java
public class CustomStack{
private Node end;
private Node current;
public CustomStack(){
this.end = new Node();
this.current = this.end;
}
public int pop(){
Node p = this.current;
current = p.next;
... | 65e756582cda1b2ae55385bfe98f40491179576a | [
"Markdown",
"Java"
] | 3 | Markdown | mreid10/281 | eac9679004d5fc5ba946b8e47afc43e3afa129e3 | 76ede973939420b9f2fd6dce3ce495a8b6ba3bde |
refs/heads/master | <repo_name>JackRossProjects/EE2-Ultrasonic-Lock<file_sep>/ultrasonicLock.ino
#include <Servo.h>
int servoPin = 3;
Servo Servo1;
int LED1 = 12;
int LED2 = 11;
const int pingPin = 7; // Trigger Pin of Ultrasonic Sensor
const int echoPin = 6; // Echo Pin of Ultrasonic Sensor
int counter = 0;
void setup() {
Serial.begi... | 94f7db6fedd6821fc0c9ebc1964c09e22622abe4 | [
"Markdown",
"C++"
] | 2 | C++ | JackRossProjects/EE2-Ultrasonic-Lock | 3cf54e3a26c8971c108a70d2099e134ccf83e067 | 7d7e6be7cf4649094776a69b21a78d3276879705 |
refs/heads/master | <file_sep>/* template for plugins */
#include <glib.h>
#include <gmodule.h>
gchar *g_module_check_init(){
/*
load all symbols,
return NULL on success,
error string on fail
can be used like plugin_main()
*/
}
void g_module_unload(){
/*unload all symbols, then g*/
}
<file_sep>](https://maven-badges.herokuapp.com/maven-central/org.thepavel/spr... | 94cfac1b65c2c454bb484d6af12a03766dfaa2eb | [
"Markdown",
"Java",
"INI",
"Gradle"
] | 12 | Gradle | pavel-grigorev/spring-resource-reader | 038e1d20860e38584016f049d253d50d317dc3a0 | 0a5e8500c1e43087c3aca6f4ffe5724701947e73 |
refs/heads/master | <repo_name>ksuhr1/BoozeBuddy<file_sep>/app/src/main/java/com/example/katelynsuhr/boozebuddy/contactsearch.java
package com.example.katelynsuhr.boozebuddy;
import java.util.ArrayList;
import android.Manifest;
import android.app.Activity;
import android.content.ContentValues;
imp... | f47ea1d3d364a743e82aa123b43434f796ae752e | [
"Java"
] | 10 | Java | ksuhr1/BoozeBuddy | 3477d6c591246ce8e903f78181939bfbc00a3b86 | 4cb91df5fdcb3671cd5af2d63727a497d1a9f13a |
refs/heads/main | <file_sep>using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace ProxyChecker
{
internal class ProxyList
{
private List<Leaf.xNet.ProxyClient> proxyClients;
private object lockerProxy;
private int indexOfCurrentProxyFromPool;
public ProxyList()
... | 6eecb20a50129ebfb8e93e1ebf2bc732ea7ca809 | [
"C#"
] | 2 | C# | AlexWanderer/ProxyChecker | 3b845be9c2cbb4578525df25d0335514ea3ad957 | c671c0ae4a733f228a887f88aedddc029851c8ad |
refs/heads/master | <repo_name>fuxuewei/learning_c-<file_sep>/hello.cpp
#include <iostream>
using namespace std;
void func()
{
//必须重新声明
using namespace std;
cout << "http://c.biancheng.net" << endl;
}
int sum(int n)
{
int total = 0;
for (int i = 1; i <= n; i++)
{
total += i;
}
return total;
}
//内联函... | acb1e00274031a5cdda81efc08f51486586bae2c | [
"C++"
] | 1 | C++ | fuxuewei/learning_c- | 2b76fc2368acb876009d254da86859eceb0d228e | 13e65743060b37558a6395bef50a8e1305d41824 |
refs/heads/master | <repo_name>hwillson/Meteor-Griddle<file_sep>/README.md
# Meteor-Griddle
A smart Meteor wrapper for the [Griddle](http://griddlegriddle.github.io/Griddle/) React component
### Installation
`meteor add utilities:meteor-griddle`
### Usage
#### React Component
The `<MeteorGriddle/>` React component takes the same opt... | 0ca2ba6d3492e1543d88de73693c795aad5c2726 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | hwillson/Meteor-Griddle | 0f076b6ac5b777f87d5125058b9c4f8b13ac91e2 | 2ac798d9f7428bc3a52003c46e247f898a54b4c4 |
refs/heads/master | <repo_name>n1try/pyquadkey2<file_sep>/tests/__init__.py
import os
import sys
from unittest import TestLoader, TestSuite, TextTestRunner
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
def run():
from tests import test_quadkey, test_util
from tests.tilesystem import test_tiles... | 692b29e7fc261575c686955c089cb031c4f18ebd | [
"Markdown",
"Python",
"Text"
] | 15 | Python | n1try/pyquadkey2 | 24e68e48edbd96a357aa533943921e5fda1cc052 | 5f20a71e919078b4c36a14b0b267d20b02e5f458 |
refs/heads/main | <file_sep># 情感分析
from snownlp import SnowNLP
import codecs
import os
import pandas as pd
#将爬取弹幕得到的csv文件转化为txt文件并保存
data = pd.read_csv(r'C:\Users\86136\Desktop\ciyun2\bili_danmu2(1).csv', encoding='utf-8')
with open(r'C:\Users\86136\Desktop\ciyun2\bili.txt','a+', encoding='utf-8') as f:
for line in data.valu... | 8884d30317dfe9743c23e7349c7bc88493e40005 | [
"JavaScript",
"Python",
"HTML",
"Markdown"
] | 15 | Python | Alymdeer/juexingniandai | b2b6d19e6570e6501a10a16da0c5efee96fc7af7 | 88da9292033840e236f4a8b901de40add0d7e420 |
refs/heads/master | <file_sep>package formasGeometricas;
public class CalculoQuadrado implements FormaGeometrica {
public void CalcularArea(int lado) {
// lado = (lado * lado);
System.out.println("A área do quadrado é: " + lado * lado);
}
public void CalcularPerimetro(int lado) {
// lado = (lado * 4);
System.out.println("O ... | e0ce0ffa8dbc3003528534890760fb5ee361ebe0 | [
"Java"
] | 1 | Java | Ronei1301719/Interfaces | b3ad6e811d8ed8659da1563266e2a31de6dc4481 | cdeb53273dd85aceaa0acc32d738b0a87494b167 |
refs/heads/master | <repo_name>pomeo/insalespartner<file_sep>/config/deploy.rb
#========================
#CONFIG
#========================
set :application, "partner.salesapps.ru"
#========================
#CONFIG
#========================
require "capistrano-offroad"
offroad_modules "defaults", "supervisord"
set :repository, ... | 5b108f5afe0f8ce71222d3936446d639628c80b2 | [
"JavaScript",
"Ruby"
] | 3 | Ruby | pomeo/insalespartner | d5c38652d4984ae1a0e7efeca7e6b7afbf8fb8ae | 7722f8e30c622c87da702308b8535b74fd6d89ce |
refs/heads/master | <repo_name>emacsway/go-api-boilerplate<file_sep>/cmd/user/internal/interfaces/http/router.go
package http
import (
"database/sql"
"net/http"
httpcors "github.com/rs/cors"
"github.com/vardius/gorouter/v4"
"golang.org/x/oauth2"
"google.golang.org/grpc"
httpformmiddleware "github.com/mar1n3r0/gorouter-middleware... | acef12220747f79115c1e633396b6920f8cfde30 | [
"Go Module",
"Go"
] | 4 | Go | emacsway/go-api-boilerplate | a0476d556fc59f42ac219931d6d8f1772597e4f9 | 3f805ce0581c09a712b5c52ad76db7206e35298a |
refs/heads/master | <repo_name>Getabalew-F/CBE-Birr-App-Updated<file_sep>/github.properties
gpr.usr=79740874
gpr.key=<KEY><file_sep>/app/src/main/java/com/example/navdrawerdemo/SignUp.java
package com.example.navdrawerdemo;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import a... | 9c5764b8dc57256d69a4d4d9f89047d11f3317ac | [
"Java",
"INI",
"Gradle"
] | 3 | INI | Getabalew-F/CBE-Birr-App-Updated | c6e24ff4f07f0752d6a45a38c0d4cbd6bd0c2930 | 5ec35b4bb87ca5f923760fb713a9ec99978888ca |
refs/heads/master | <repo_name>iliy/LeoBase<file_sep>/AppPresentators/Components/IAdminViolationTableControl.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AppPresentators.Components
{
public delegate void ViolationEvent(int id);
public interface ... | 5fe104fb5622cadca0fbf993e45d8a4809fb847c | [
"C#"
] | 291 | C# | iliy/LeoBase | 890f337f51a942db737812251323dc638886d55b | 8c6a094b5594e24fdd05838c79533a6cf714b857 |
refs/heads/master | <repo_name>spbsu-student-projects/permanent<file_sep>/readme_english.md
# permanent
## What is it?
permanent is a program for counting [the permanent](https://en.wikipedia.org/wiki/Permanent "Permanent") of a matrix using Ryser's formula with `O(2^n * n^2)` time complexity. Not only numbers but also polynomials in man... | e8019dc50d8be7b2af4b1777a2362eef4718dda0 | [
"Markdown",
"Makefile",
"C++"
] | 6 | Markdown | spbsu-student-projects/permanent | 86e8d9c185fa075d910e4fe76a8236297d838ae1 | dad2a39d797434b1f7afed05d26933f13f10faf9 |
refs/heads/master | <file_sep>import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core';
import { faTrashAlt } from "@fortawesome/free-regular-svg-icons";
import { faPlusSquare } from "@fortawesome/free-solid-svg-icons";
import { icollection } from 'src/app/interfaces/icollection';
import { idocument } from 'src/app/i... | 57330df27d4f2f6611b9ffa9f463429f9d358e87 | [
"Markdown",
"TypeScript"
] | 19 | TypeScript | HNematiMovil/test_task | 3d7a13abcd26c6d95a3b39561e5c14d64bfab9d8 | c4200fdafbbd61a3085d6bdffc7ebe677596a869 |
refs/heads/master | <file_sep>package com.yhwxd.suguoqing.securitysetting2.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import and... | ce59c7b3d7622d1a17416031959638d767fd1342 | [
"Markdown",
"Java"
] | 6 | Java | Suguohei/SecuritySetting | 67447b300517823d6e413fbb9818ca1ae60a3a00 | c43c8d461fa52931364dfeaf8236edb4220d1690 |
refs/heads/master | <repo_name>WPPlugins/invit0r<file_sep>/uninstall.php
<?php
// *sighs* :(
if ( function_exists('register_uninstall_hook') ) {
register_uninstall_hook(__FILE__, 'invit0r_uninstall_hook');
}
/**
* Remove the table and all the options from the database and delete the scheduled cron.
*/
function invit0r_unin... | 93b3916e2f7bb92ebc6e2f7811bbc65e0fc8c0cb | [
"JavaScript",
"Text",
"PHP"
] | 13 | PHP | WPPlugins/invit0r | 588b34d1b6ae94c78dbb53613ad89605d1b13b9d | ddc915a0eced2530956391b5f16ed11fd001d7fa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.