branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>danielpattaro/PattaroDaniel_A_Verifica16<file_sep>/Verifica16.ino
long numeroRandom;
int r1=13;
int g1= 11;
int b1= 7;
int v1=5;
int ripetizioni=0;
void setup() {
// put your setup code here, to run once:
pinMode (r1, OUTPUT);
pinMode (g1, OUTPUT);
pinMode (b1, OUTPUT);
pinMode (v1, OUTPUT);
Seri... | b9a57fce02aef302c4fcee6a98d1e98dca606043 | [
"C++"
] | 1 | C++ | danielpattaro/PattaroDaniel_A_Verifica16 | 2d1eb279960c2c2b374299eea43d9c359ba6c3d2 | 7115dfcbf6d41a58a78727fa5d38f0709d76bc67 |
refs/heads/master | <repo_name>shawwn/unixpath<file_sep>/README.md
# unixpath
> unix-style path processing functions
## Why?
My goal was to provide `posixpath` path processing functions in pure Python (e.g. `normpath`, `join`, `split`, etc) *minus* any functions that rely on any kind of "filesystem" concept (`stat`, etc).
Basically, ... | 88dde4d48e94dcfae7d909d395841f53692b4cc0 | [
"Markdown",
"Python"
] | 3 | Markdown | shawwn/unixpath | fda363ee9734189ea2a5bdd87a091b931b8dbe47 | 0e94e8c355d682935b48576a32f6474bcf98f606 |
refs/heads/master | <repo_name>Jspharmando/PBO2-10117077-Latihan35-ProgramTunjangan<file_sep>/src/com/company/Tunjangan.java
package com.company;
/**
*
* @author <NAME>
*/
public class Tunjangan {
public double gajiAwal;
public String status;
public double tunjangan;
public double hitungTunjangan(){
tunjangan... | 15f6326a1d93665897d1c801b49d13ebc87d03d4 | [
"Java"
] | 1 | Java | Jspharmando/PBO2-10117077-Latihan35-ProgramTunjangan | 1748c3e65bbbe43409b764da83e1dd7be4855b66 | 456afda200e40f92af0be14739c6c6f07a246624 |
refs/heads/master | <repo_name>rnpatil/TM3<file_sep>/files/tm3.c
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netdevice.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <net/route.h>
//#define DEBUG_DUMP
#pragma GCC diagnostic ignored "-Wdeclar... | c7552ea1e1e922105c06dc1c3d689a1c36065347 | [
"C"
] | 1 | C | rnpatil/TM3 | e420d0d339f85f605b145e2e0be093a8ad7dfa1f | 64d0a76b176d8683860cafb90d28b72b58fe6438 |
refs/heads/master | <repo_name>bailongmahaha/Study-C<file_sep>/1.c
# include <stdio.h>
int main(void)
{
int i = 33;
printf("i = %#X\n", i);//%X是以十六进制打印,并且a到f打印出来的是大写的A,B,C,D,E,F
//如果是%#X,则会在打印的十六进制结果前面加上0X。
return 0;
}
<file_sep>/README.md
# Study-C
郝斌C程序
<file_sep>/andshiyong.c
# include <stdio.h>
int main(void)
{
int i = ... | 4aef8c87af7fc6fa013092a7331308ad9e89e38d | [
"Markdown",
"C"
] | 3 | C | bailongmahaha/Study-C | 03c1d3383f6c42292ee891d0ec3b6c6837354937 | 13b97eb056cfd8f417bf3acd8fb3016014719ee7 |
refs/heads/master | <file_sep>using Microsoft.Owin;
using Microsoft.Owin.Cors;
using Microsoft.Owin.FileSystems;
using Microsoft.Owin.StaticFiles;
using Owin;
using System.IO;
using System.Reflection;
using System.Web.Http;
[assembly: OwinStartup(typeof(Cake23.Connection.Server.Cake23Startup))]
namespace Cake23.Connection.Server
{
... | bdf8306fc003780d544c89dea3aac3326b8d18ac | [
"C#"
] | 2 | C# | lUllLabs/Cake23 | 1f45d09aa4ac182464ff37d6aeaeafc7a6a0cad6 | 259db8b3f49b80740b25ae82ff6255da2577aa66 |
refs/heads/master | <repo_name>romanslex/callback-example<file_sep>/database/factories/WidgetFactory.php
<?php
use App\Models\Widget;
use Carbon\Carbon;
use Faker\Generator as Faker;
use Webpatser\Uuid\Uuid;
$factory->define(Widget::class, function (Faker $faker) {
return [
"id" => Uuid::generate(4),
"url" => $faker... | 198473de965d70b1b0ed163b2db6f25d06ab696e | [
"JavaScript",
"PHP"
] | 42 | PHP | romanslex/callback-example | 2c2eb16f1460450f6db15a9e56c8df91b4dcf764 | 162a9d78d86ed961b509aeabbbd9d8f5e25a22cf |
refs/heads/master | <repo_name>lankunyao/dictation<file_sep>/dictation/dataset.py
# coding:utf-8
import pymysql
import random
host = "localhost"
user = ""
pwd = ""
db = "words"
class Dataset:
def __init__(self):
self.conn = pymysql.connect(host=host, user=user, password=pwd, database=db)
self.cursor =... | cc6e3df46b6ac96a42828f88bbbcfe6328f11c5c | [
"Markdown",
"Python"
] | 6 | Python | lankunyao/dictation | be287902be5bc5cdb5fc1db6757f8528e2ae0c4a | 3a0b0d4a396b30a8f565cb3f0f53f1e2b5b8a4ee |
refs/heads/master | <repo_name>kavyamithra14/assignment<file_sep>/src/comments.js
import React from 'react';
import Home from './home.js';
import PostItem from './postItem.js';
/* On view comments button click,data received is displayed in Comments component*/
const fulldata=(props)=>{
console.log(props);
if(props.length()>0){
conso... | 0761bd6972c8e8520d62df157205760a5945e20c | [
"JavaScript"
] | 4 | JavaScript | kavyamithra14/assignment | 84e01ce7179d582db774368ddf34efdcc09c88c3 | e72196b89d41032cee6d5e22f8732eb280cbb489 |
refs/heads/master | <file_sep>package com.besttocode.serverproductmanagement.model;
import lombok.Data;
@Data
public class StringResponse {
private String response;
}<file_sep># Spring Boot Server Product Management Project
Backend of Server Product Management Project Using Spring Boot and MySql
<file_sep>#docker image build -t pr... | adb208304a04bd4f784cacf93cb26f2723eaac22 | [
"Markdown",
"Java",
"Dockerfile"
] | 3 | Java | yacinebest/server-product-management-project-backend-spring-boot | 1511e39729e3e2c16de4106863f48915ad0e3d79 | 5e1a87340e7356ef585139f98227a60aba6abc1e |
refs/heads/main | <repo_name>pallavi980/pro28<file_sep>/sketch.js
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var shinchan,stone,tree,mango;
var m1,m2,m3,m4,m5,m6,m7,m8;
function preload()
{
shinchanImg=loadImage("shinchan.jpg")
stoneImg=loadImage("stone.jpg")
... | e7d5cd546be597c320fdd10e671914bcd07d509f | [
"JavaScript"
] | 1 | JavaScript | pallavi980/pro28 | 76502bdbec5e39a625f93ba810336f7fef23e15c | 3f6bf88fac90fb9f818b0b064452e1c8bddf648b |
refs/heads/master | <repo_name>paulopilotti/Scripts<file_sep>/qrcode.sh
#!/bin/bash
# AUTOR: <NAME>
# DATA: Seg 02 Mai 2011 BRT
# SCRIPT qrcode.sh v1.0
# DESCRICAO: Sript que utiliza Google Chart Tools para gerar uma imagem
#com um QR code.
#
# Script feito com base em outras dicas do site http://www.dicas-l.com.br
... | 9a3237a93daaa3cce924c0e6eeb2af69e36d962d | [
"Shell"
] | 11 | Shell | paulopilotti/Scripts | 31e0c520f210475e6d79b0757ebbc9f63155c989 | 2aeac6755a83ed7b57f93ff4bac8dce749046845 |
refs/heads/master | <repo_name>devious/wiconfig<file_sep>/README.md
#wiconfig
Simplified wifi on OpenBSD
##EXAMPLE
Manually configure a wireless interface
`# sh /etc/wiconfig iwi0`
Automatically scan for wireless networks and, using previous
manual
configurations, configure the wireless interface based on the
strongest
wireless signal... | b747c3ce922d4bb2d8c33be17f87a09d4ca36007 | [
"Markdown",
"Shell"
] | 2 | Markdown | devious/wiconfig | 969b97afe4bf828443a00a896b8f4cc16b963fd8 | 771bc868bf8665121443404366102aa3992d505d |
refs/heads/master | <file_sep>import tkinter
def employee_reg():
rootE = tkinter.Tk()
rootE.title('EMPLOYEES REGISTRATION FORM:')
rootE.geometry('400x400')
var = tkinter.StringVar(master=rootE)
head = tkinter.Label(rootE, text='REGISTER EMPLOYEES:', fg='grey', font='arial 10 bold')
head.place(x=50, y=20)
l1... | e1b810bba889302b185b2c9431e114c2daa9f8c9 | [
"Markdown",
"Python"
] | 8 | Python | Collumbus/Hospital-System-Using-Python | c5b1cdf51f2cd44f30603e89e7ad8a20cdd2506d | 463d9ac42de641d5cc3599920990d4b14dd4dcbd |
refs/heads/master | <file_sep>CREATE TABLE STATE_TAX_BRACKET(STATE CHAR(50), RATE REAL, STATUS CHAR(50), MIN REAL, MAX REAL);<file_sep><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Redirect!</title>
</head>
<form action="addCustomerDetail" method="post" id="formid" class="transbox" style="width... | 2d21d978b5e8b7e3f3ec80f86e0b2c129a171ca6 | [
"SQL",
"Python",
"HTML"
] | 6 | SQL | varshareddydvr/Pay_Check_Calculator_Python | 4298f80c708d41f83baf3fc0b2e3807dd344b2f9 | bfdf0e55306a044703d553e652868b7997b3470c |
refs/heads/master | <file_sep>#bin/sh
# Search for a ".sh" function in the current directory and the subdirectories
find . -name "*.sh" | cut -d . -f 2 | rev | cut -d / -f 1 | rev
<file_sep>#bin/sh/
ifconfig | grep "HWaddr" | cut -d "H" -f 2 | cut -d " " -f 2
<file_sep># fonction-sh
print_groups.sh "Search for a .sh function in the cu... | 5fc1ab7f26432acbf79d4748063abf551451b576 | [
"Markdown",
"Shell"
] | 6 | Shell | himuraxp/fonction-sh | f140660174b34d9fc4048719eee445b219fba5d2 | 696927884fedf151ef96818127a080ca29c41749 |
refs/heads/master | <file_sep>import entobn
#a = entobn.googel_translate('do')
translet = entobn.translate_bengali('What are you doing now?') # Translate To Bengali From Google, Bing, Yandex, Baidu.
tobangla = entobn.en_bn('What are you doing now?') # Translate To Bengali From English.
toenglish = entobn.bn_en('তুমি এখন কি করছো?') #... | d5b91b91c29fa33c77a3a47b7273a53aa806b768 | [
"Markdown",
"Python"
] | 5 | Python | jabedparadox/englishtobengali | bd28fca3583d297f114364450a8f1d5c100b8a27 | 991c9036661749886d0513b6931fe5a23815d74b |
refs/heads/main | <repo_name>rtequida/Paramiko<file_sep>/Dead_Ports/findDeadPorts.py
import paramiko
import sys
import time
import xlrd
import xlsxwriter
def main():
loc = ("switches.xlsx")
wb = xlrd.open_workbook(loc)
sheet = wb.sheet_by_index(0)
switches = getSwitches(sheet)
info = getInfo(switches)
writeData(... | e2c988e6cf20d07244a29335d9e022ef25ec5c5c | [
"Markdown",
"Python"
] | 8 | Python | rtequida/Paramiko | 27a34b49267ac5b56c06f195bb27a59109a22055 | 2d1b84c5e380923ea28d2eec02dc27dc4274a8e5 |
refs/heads/master | <file_sep><?php
namespace App\Repositories;
use App\User;
class IndexRepository
{
public function getFirstUserName()
{
return User::cursor()->first()->name;
}
}
<file_sep><?php
use Illuminate\Database\Seeder;
use App\User;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.... | c28a0a87c89e9d136db9b3b13de4d1be92a14bfb | [
"Markdown",
"PHP"
] | 5 | PHP | leoku7020/laravel61Demo | ca6e22a60835cf803bc1f02e9da3f5044d5fd9e7 | 77c53180f3bf16708b8884a52368654ecd38a132 |
refs/heads/master | <file_sep><?php
include('../db/dbconfig.php');
include('../inc/function.php');
if( $_GET ){
$pay_id = $_GET['pay_id'];
$sql=$conn->query("CALL delete_payment('$pay_id',@p_msg)");
if ($sql){
echo show_p_o_msg();
}
else{
echo 'Something Wrong';
}
}
?><file_sep><style type="text/css">
#exc... | 2a72dd759ea6b4d1cd23857534a210df7ce91459 | [
"Markdown",
"SQL",
"PHP"
] | 33 | PHP | sabbir268/CNF | 6e3cb6503471d38ae8a98a48e146c5d51ae3e453 | 73620a4c75a9b2fbda39741cf74be31e6ef6d663 |
refs/heads/master | <file_sep><?php
$pages = [
"Template:Test" => "Template/Test.mediawiki",
"Category:Test Category" => "Category/Test_Category.mediawiki",
];
<file_sep>Page Importer
=============
[](https://travis-ci.org/enterprisemediawiki/PageI... | f8f1db99322ffd69a46e51cc261e43ce4e0b00e6 | [
"Markdown",
"PHP",
"Shell"
] | 10 | PHP | enterprisemediawiki/PageImporter | ab90aab31e94ec8d404160d66e951ae08851b43f | 665ebe9fc30d43077136795d781a9a77c4e0ff2b |
refs/heads/main | <file_sep>#!/bin/bash
cd backend-datasource-plugin
yarn install
yarn dev
cd ../
cd datasource-plugin
yarn install
yarn dev
cd ../
cd panel-plugin
yarn install
yarn dev
cd ../
<file_sep>version: "3.5"
services:
grafana:
image: grafana/grafana:7.2.1
restart: always
ports:
- 3010:3000
volumes... | adafce403d4a2d71780a2901f92cc671394a370e | [
"Markdown",
"YAML",
"Shell"
] | 3 | Shell | samples-projects/sample-grafana-plugins | 831c1fc494d2c8eb6bbd29d6f81d802b326897ef | 531a7b164d9e860954735253d703c553d15853b8 |
refs/heads/master | <file_sep>package ru.netology;
import java.util.Scanner;
public class CalculatorApp {
static final int NUMBER_OF_MONTHS_IN_YEAR = 12;
static final int NUMBER_OF_SIMBOLS_AFTER_COMMA = 2;
public static void main(String[] args) {
System.out.println("Кредитный калькулятор");
Scanner scanner ... | 9384d49101382a2a58df1c41291ffb437373f982 | [
"Java",
"Gradle"
] | 2 | Java | MaryGavrilova/LoanCalculatorApp | b5b1d84dcabd367ceb517492af81313066239157 | 3562161bdd55c204d83886df34030a619a205f21 |
refs/heads/master | <file_sep>/**
* Created by imran on 8/17/2016.
*/
/* Popup Model box html -->
<form class="form-horizontal" enctype="multipart/form-data" role="form" method="POST" action=" ">
<div class="model" onclick="model()" style="display:none" >
<div class="col-sm-8 model-body">
... | 5d61b983ef2d17b2735a98eb5242919e488a81ee | [
"JavaScript"
] | 1 | JavaScript | emrancu/ModelBox | 47affa50582064c65897c55ad4472e8d6023d77e | 192693c321cd2b56e9f2d8e2cf15dbc086a5c936 |
refs/heads/master | <file_sep>IPcamera
========
视频监控demo
这是一个android项目,可以通过adt直接导入
<file_sep>package com.ipcamer.demo;
import java.nio.ByteBuffer;
import java.util.Date;
import object.p2pipcam.nativecaller.BridgeService;
import object.p2pipcam.nativecaller.BridgeService.p2pPlayListener;
import object.p2pipcam.nativecaller.NativeCaller;
... | 006523e93387283cf4736e6725fb6b1139fe5012 | [
"Markdown",
"Java"
] | 2 | Markdown | XoYoKing/IPcamera | 33334aa4b0353e787fcb672eaf4259345be72671 | ef956849cbddf7edbc4bfc542d997928a621ee96 |
refs/heads/master | <repo_name>heatherstafford/unit2.5<file_sep>/name.py
#<NAME>
#2/9/18
#name.py
from ggame import *
name = input('Enter your name: ')
colorCode = input('Enter an RGB color code: ')
color = Color(colorCode,1)
black = Color(0x000000,1)
colorOutline = LineStyle(2,color)
colorRectangle = RectangleAsset(1000,2000, colorO... | 0ef20c226d0dbbb761a6d0196e90bfa8c73fc6ee | [
"Markdown",
"Python"
] | 6 | Python | heatherstafford/unit2.5 | a09f19456bd80155e2dfd8f8f24af44db879223e | 3579b46ae0a302cd6a53369b19455b795dd78809 |
refs/heads/master | <file_sep>const {
getList,
newBlog,
delBlog,
getDetail,
updateBlog
} = require('../controller/blog');
const { ErrorModel, SuccessModal } = require('../model/resModel');
const loginCheck = (req) => {
const { username } = req.session;
console.log('username', username);
if (!username){
return Promise... | fa54cae82e2f40e3a28aa861b47add98d488bae1 | [
"JavaScript",
"Markdown",
"Shell"
] | 16 | JavaScript | fangfeiyue/nodejs | 703f2a8010e2aabf6956faa3e5840b4478441460 | 52ac952bf21dbc8539284a7e406092175abcb617 |
refs/heads/master | <repo_name>AndraCoteanu/2A4-ProgramareAvansata<file_sep>/Laborator 2/Laborator 2 (optional)/src/Solution.java
/**
* @author <NAME>.
* @version "%I%, %G%"
* <p> Se calculeaza o solutie pentru problema creata </p>
*/
public class Solution {
/**
* <p> Class empty constructor </p>
*/
public Solution()... | 65ab240e53d8d5acf4836487086040ca4d62f1b6 | [
"Markdown",
"Java",
"SQL",
"INI"
] | 58 | Java | AndraCoteanu/2A4-ProgramareAvansata | 22a28367ce0528c75f5f759652f73fc9fff9235e | 1d7cb36fc0fe1fb25bb7676e9ca495bda11add54 |
refs/heads/master | <repo_name>CodingMan95/starbucks20190826<file_sep>/src/main/java/com/eim/service/WechatService.java
package com.eim.service;
import com.eim.entity.DecodeInfo;
public interface WechatService {
/**
* 获取微信用户信息
*/
String decodeInfo(DecodeInfo info);
}
<file_sep>/src/main/java/com/eim/mapper/StoreInfoMap... | 6c675a2c9e274aff6011cdaa6127c9ad7402ea06 | [
"Java"
] | 19 | Java | CodingMan95/starbucks20190826 | adde64d6a5f9db0610bda2196cf55c47b10f67a1 | 072cfc594b7b6e668b469be259450ab8c6931ad3 |
refs/heads/master | <file_sep>package envi
import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
)
// Config is struct to model enviroments configs
type Config struct {
Database struct {
Host string `json:"host"`
Port string `json:"port"`
User string `json:"user"`
Dbname string `json:"dbname"`
Password string `jso... | 21191ded739123ac8c1a24652745e26f3f7882f7 | [
"Go"
] | 2 | Go | danilodesousacubas/go-gionicjwt | 221a9c74ba3572b08d94db2985002acda2768d2e | 4e2f3b54bf4b8eee5c220390676a1ae69267a455 |
refs/heads/master | <repo_name>ditunes/unit-test-share<file_sep>/src/main/java/person/ditunes/example/db/UserLoginLogInfoDAO.java
package person.ditunes.example.db;
import java.util.List;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.tra... | f3b615a611126ddd82746e50719fb26610546d10 | [
"Java",
"SQL"
] | 7 | Java | ditunes/unit-test-share | 5d2ab793fa58eddb23cbb4379c2eefdd60a31785 | f6bfa229475179b01edb6efbba2bea009c55376e |
refs/heads/master | <file_sep>package com.hucheng.loancalc;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
public class LoanCalcActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate... | d308bbac2eb461fe3af5b7f56e27b290cfd70dcf | [
"Java",
"Gradle"
] | 3 | Java | SmallSmallProgrammer/LoanCalc | f2efb34f3a8308d65e5ea877dbfe03215ffcb79a | 245fae65a1c346809f356d4eaad1c66d4162efe3 |
refs/heads/master | <repo_name>KingJA/IndexHelper<file_sep>/app/src/main/java/sample/kingja/indexhelper/City.java
package sample.kingja.indexhelper;
import android.support.annotation.NonNull;
import android.util.Log;
import com.kingja.indexhelper.FirstLetter;
/**
* Description:TODO
* Create Time:2017/4/24 10:24
* Author:KingJA
* Em... | 30e8777afc855e277ae4a4326bac348019512e59 | [
"Markdown",
"Java",
"Gradle"
] | 4 | Java | KingJA/IndexHelper | f65181018f5aaf809e49a1fcd232d78b208e268c | 760f53ec4a89cabd17e4ef8d141a615113a81d6e |
refs/heads/master | <file_sep>#define SCMARG(n) FPARG(IMM(n+2))
#define SCMENV FPARG(IMM(0))
#define SCMNARGS FPARG(IMM(1))
#define SOB_BOOLEAN_FALSE 0
#define SOB_BOOLEAN_TRUE 1
#define MAKE_NUMBER(i) PUSH(IMM(i)); CALL(MAKE_SOB_NUMBER);DROP(1)
#define MAKE_INTEGER(i) PUSH(IMM(i)); CALL(MAKE_SOB_INTEGER);DROP(1)
#define GET_INTEGER MO... | d91e2b8f6046e81294374293e54c066b5a38f0d8 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 9 | C | hagai-lvi/compilation-final-project | 1dcb55e4697cc38b963481eef4a64a31d1948d68 | 1a508cc276a3e0f8e09057e38e98e76d22019471 |
refs/heads/master | <repo_name>dev-donghwan/CustomCalendarJava<file_sep>/app/src/main/java/com/example/customcalendarjava/base/BaseActivity.java
package com.example.customcalendarjava.base;
import android.os.Bundle;
import android.util.DisplayMetrics;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
... | 54432b53ba3fba43a6aebf665483ef06086da21e | [
"Markdown",
"Java",
"Gradle"
] | 5 | Java | dev-donghwan/CustomCalendarJava | 3a92440e5e24be8a903023d096611b8316bf94f5 | 984136a12615b2a155282694d2bd962088c5e8ff |
refs/heads/master | <repo_name>hujimori/go-algorithms<file_sep>/numeric/gcd_test.go
package numeric
import "testing"
func TestGcdBase(t *testing.T) {
tests := []struct {
a int
b int
expected int
}{
{
3,
6,
3,
},
{
1,
12,
1,
},
{
12,
12,
12,
},
{
352342100,
34343659132,... | 89db49716d3d47046e5b8730f7ef500deb9f7d5e | [
"Go"
] | 8 | Go | hujimori/go-algorithms | 56e984396cf27a4960067e50e98a79562feec66b | 579c454141675ea6b1cdbdc62c0b7871bfb25180 |
refs/heads/master | <repo_name>seba--/sugarj<file_sep>/deployment/cli-scripts/u/extract.ruby
#!/usr/bin/ruby
# cai 19.09.12
# script to copy classes out of a built sugarj project repository
# the script cli-script/u/classpath builds a classpath that contains
# the bin directories of known SugarJ projects.
$this_dir = File.expand_path(F... | 88b943db18b68d539ffb200474dd7b0276d10076 | [
"Markdown",
"Ruby",
"Shell"
] | 8 | Ruby | seba--/sugarj | 1ac5018cbccb248d9116cb59d43c7da0f8d49262 | c22237775bedee612e0179ca1e7be703089f5fc5 |
refs/heads/master | <repo_name>Artogn/safenet<file_sep>/src/safe.js
var Request = require('./request.js').Factory,
storage = require('./storage.js');
var namespaces = {
auth: require('./api/auth.js'),
dns: require('./api/dns.js'),
nfs: require('./api/nfs.js')
};
/**
*
* @param app obj containing name, version, vendor, and id... | 6089ff7334a3150c4eaa10b9a71d36ecffcb49d0 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | Artogn/safenet | 8438251bf0999b43f39c231df299b05d01dd4618 | 42e2c720b2dac14daea8ba943ad0c04fe4cff92a |
refs/heads/main | <repo_name>dobby12/XGGYH<file_sep>/src/dao/impl/AdminAskDaoImpl.java
package dao.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import common.JDBCTemplate;
import dao.face.AdminAskDao;
imp... | be1bdea16c07e8bd0f76fd1badce91f485b10d38 | [
"Java"
] | 53 | Java | dobby12/XGGYH | 67f3d1570416a1aa88ef3af8a541e82d5e91436e | 55230df7a0526a04cabe44ba18505e25bcad706a |
refs/heads/master | <file_sep>import axios from 'axios';
export const apiowm = axios.create({
baseURL: 'https://api.openweathermap.org/data/2.5/weather',
});
export const apispotifycategories = axios.create({
baseURL: 'https://api.spotify.com/v1/browse/categories',
});
export const apispotifytracks = axios.create({
baseURL: 'http... | 343a013cab2b336f5674e9d3ed00884e2ae2941f | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | endhesoarescnx/music_climate | 8bd6e5592828c915df992cbb885952d93e1ca57b | c6e94a4eafd496af373d23895291a25b9c1d993b |
refs/heads/master | <repo_name>jessicakfl/fountain<file_sep>/pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.restboot</... | 658039b4d1b69547ef6c56a75b0daf4991c70b42 | [
"Text",
"Java",
"Maven POM"
] | 11 | Maven POM | jessicakfl/fountain | 973d607939ce176a785edaade9212728ce69ecc2 | a157d724886ed199fa4e3aba3b89aad86fef54a9 |
refs/heads/master | <repo_name>locaulker/gatsby-starter-tutorial<file_sep>/src/components/button.js
import styled from 'styled-components'
export const Button = styled.button`
background-color: green;
color: #fff;
font-size: 2rem;
display: inline-block;
padding: .8rem 1rem;
font-weight: 100;
border: none;
` | e818b41d86fa35d926319dd42a0469188c552249 | [
"JavaScript"
] | 1 | JavaScript | locaulker/gatsby-starter-tutorial | 61c085f440103fee4c33e4d3770aa7567f81a34d | 73ab6bdd0f42330b8df2b9d3a9310d1a51d9b464 |
refs/heads/main | <file_sep>import requests
import time
base = "http://127.0.0.1:5002/"
alphanumeric = {"1":'o','2':'t','3':"t",'4':"f",'5':"f",'6':"s",'7':"s",'8':"e",'9':"n",'0':"z",'.':"d"}
time = time.time()
slug = ""
for i in str(time):
slug += alphanumeric[i]
print(slug)
response = requests.post(base +"shorter/",json={"an... | 9ee4c3394ed83c46a900414411591b3fa03f8f18 | [
"Python",
"Text"
] | 5 | Python | titoelfoly/shorter-server | 50234a34e53b262e07cbc16625133de3def5b354 | f8bbb423c76e2ad8aba238029ca5bd7d726b994e |
refs/heads/master | <repo_name>Aiadictive/threeSum<file_sep>/threeSum.py
class Solution(object):
def threeSum(self,num):
num.sort()
res=[]
i=0
while (i < len(num)-2):
if (i == 0 or (i > 0 and num[i] != num[i-1])):
lo = i+1
hi = len(num)-1
... | 2d37b04c946fd865db052239ab14534348fec6f2 | [
"Markdown",
"Python"
] | 2 | Python | Aiadictive/threeSum | f5c26e8d53d52811867478db742354efd91fdef5 | d7079b9ad65268ce5248269a3baa8662713a8cba |
refs/heads/master | <file_sep>#include<iostream>
using namespace std;
class complex
{
private:
float imag,real;
public:
complex(float x,float y)
{
real=x;
imag=y;
}
complex()
{}
complex operator +(complex c)
{
complex temp;
temp.real=real+c.real;
temp.imag=imag+c.imag;
return te... | 819a1c2715e0b226dc6df595078d120be7199577 | [
"Markdown",
"C++"
] | 13 | C++ | Trmpsanjay/Lab-Programs | 13fa9d7ba277a78865ce161abbcf4bd738ad8aad | 2b7b3efd3a1461c8f0b78e7be3fa3585405c77b7 |
refs/heads/master | <repo_name>zerokun1999/Test<file_sep>/Class_Demo.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BTH2
{
public class Class_Demo
{
public static double Power(double x, int n)
{
if (n == 0)
return 1.0;
... | 7a024fa4d67c27f7e92d6eced62cfcbef5159865 | [
"C#"
] | 1 | C# | zerokun1999/Test | 1bb1e2afc861be97afd2a8aa9b794c58ed61c590 | fa35020fe798cd15f8f774f195d297b7a60de5a4 |
refs/heads/master | <repo_name>acidburn0zzz/nativefier<file_sep>/src/infer/inferOs.ts
import * as os from 'os';
import * as log from 'loglevel';
// Ideally we'd get this list directly from electron-packager, but it's not
// accessible in the package without importing its private js files, which felt
// dirty. So if those change, we'll u... | 89c272cd65a689958b8600bc4620ad39110fd39e | [
"Markdown",
"TypeScript"
] | 3 | TypeScript | acidburn0zzz/nativefier | 4c6d0b185bf3aa41d346c4ce754101666a28a5d4 | 58e10d3e713c4b71c7f5ec5fbb73b9dd1faa1390 |
refs/heads/master | <file_sep>#include <FirebaseESP8266.h>
#include <ESP8266WiFi.h>
#define WIFI_SSID "" // YOU SSID
#define WIFI_PASSWORD "" // YOU <PASSWORD>
#define FIREBASE_HOST "" // YOU HOST KEY
#define FIREBASE_KEY "" // YOU FIREBASE KEY
#define ledPin D0
void setup() {
pinMode(ledPin, OUTPUT);
Serial.begin... | 9b7fd0aa13098f7c1adaa2d114425754f355b3af | [
"C++"
] | 1 | C++ | xNewz/Arduino-realtime-database-led-control | cd4d8508d2f3338481d7cc3717afdc980d730621 | 8c71eceb5465ef8cb3e24d2c0390782dd211a309 |
refs/heads/master | <repo_name>ranadeavani/bon-appetit<file_sep>/bon.sql
SELECT * FROM bon.user;
use bon;
alter table user add constraint primary key(username);
insert into user values("sheetal","rathore","srathore","jaipur","123");
select * from user;
insert into item values(1,0,'Pizza',6,'');
select * from user; | 58eef07e48e5b69df78a28001520d1c078603478 | [
"SQL"
] | 1 | SQL | ranadeavani/bon-appetit | 6e5e8e49f2f1e4e95a0039152b6da75af6ca0c7c | cfa781101d36fe79f6c41381e627d4615e6a1fcf |
refs/heads/master | <file_sep>export MOZ_USE_OMTC=1
export PATH="$HOME/.cargo/bin:$PATH"
<file_sep>git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
vim +PluginInstall +qall
<file_sep># ~/.bashrc: executed by bash(1) for non-... | bdb09238e8f51c40441db017a703498e8663fae2 | [
"Shell"
] | 4 | Shell | robertbak/linuxconfig | 11a5a44370c70c73fd633f758d4b56af56946c76 | 5c99863804d8c4d415d1b9557c0181eeed2e0391 |
refs/heads/master | <repo_name>jerseypaint/red-llama<file_sep>/src/components/projects/index.js
export * from "./projectsList"
export * from "./projectsBody"<file_sep>/src/components/common/layout.js
/**
* Layout component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.org/docs/use-static-... | 28bd6d8b1e53f13aded6f1948f8d92e280884dc3 | [
"JavaScript",
"Markdown"
] | 30 | JavaScript | jerseypaint/red-llama | 588583cdd77da4a06fc53705e085065a2a4a37e3 | c5cdeb4f23d656abb3a8944924e3d20d3a5897e5 |
refs/heads/master | <repo_name>vinodphilip/seleniumcrawler<file_sep>/webcrawl.py
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Key... | 349b0ccae8671962e4aba8da130213e6689e8494 | [
"Python"
] | 1 | Python | vinodphilip/seleniumcrawler | bc4dafa588cd4bdf27483e175fa928f242fe2394 | 92602db43cf148e35ac589a8e51180f1a6753faf |
refs/heads/main | <file_sep>import java.util.InputMismatchException;
public class ValidaCPF {
public static boolean validarCPF (String CPF) {
if (CPF.length() != 11) {
return (false);
}
char digito10, digito11;
int soma, i, resultado, num, peso;
try {
// Calculo do primeiro digito verificador.
soma =... | 6ef8d39c9f7473e561c33abf7bb704760582400b | [
"Java"
] | 2 | Java | alexfferro/SD_PLE | db401a5d0ee614497ac104cbdc2036ece540d0b8 | 1590cea99c568a93f2f32bb692646f8d10c82118 |
refs/heads/main | <repo_name>JiangWeibeta/Answers-to-Codeforces-Problemset<file_sep>/1472C.cpp
#include <algorithm>
#include <iostream>
#include <stdlib.h>
#include <vector>
using namespace std;
int main()
{
int cnt = 0;
cin >> cnt;
for (int i = 0; i < cnt; i++)
{
int size = 0;
cin >> size... | 03865b47085ede07ac03511541b9d9f054076c26 | [
"Markdown",
"C++"
] | 87 | C++ | JiangWeibeta/Answers-to-Codeforces-Problemset | f258ed0d441f587551ae0fc55215dca189a9dcef | 23bb39c88ecca3070dc0358784d18497bb826040 |
refs/heads/master | <file_sep>import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
/**
* Created by AFrangopoulos on 4/22/2017.
*/
public class PrimeNumberTest {
private final int EVEN_BOTTOM = 4;
private final int EVEN_TOP = 100;//Pick any even number you ... | 1bb872b7d47bbe38cfa1bac99dc3c29ab148c59e | [
"Java"
] | 1 | Java | AMF1107/PrimeNumberGenerator | 3fd227ae2489376ae1c3d3952dd9838611b14211 | aa557a7f5aab0e9fe39dca2dd91714ceb9884a2f |
refs/heads/master | <repo_name>ZeeCoder/vk-elso-epizod<file_sep>/game/Scripts/Mirror_effect.rb
# NOT UPDATED !
#==============================================================================
# ■ Sprite_Mirror
# Based on Sprite_Shadow, modified by Rataime
#==============================================================================... | 79025a07a21f6cb07527232adab3815453c2aff2 | [
"Markdown",
"INI",
"Ruby",
"Shell"
] | 13 | Ruby | ZeeCoder/vk-elso-epizod | 30b232e4a92fc09b2f0816b190f969d83f152755 | e9a690acc4c45348404f1d39ae70d06403178c06 |
refs/heads/master | <repo_name>guilehm/data-analysis<file_sep>/README.md
# Data-Analysis
**Built with Python, Matplotlib and Pygal**
## Generate a simple graph with file mpl_squares

## Generate a simple graph using scatt... | a05e22945bbe7c2bfee4ef64aa74f75957d4a064 | [
"Markdown",
"Python"
] | 5 | Markdown | guilehm/data-analysis | 36d33a8468a8136403b9d29649d51a748b9a477e | 4bd5a2810e49fa67d2864c4efd64c01ed67466a5 |
refs/heads/master | <file_sep>
//BACK TO TOP
$('.scroll-top').click(function(){
$('html, body').animate({
scrollTop: $( $(this).attr('href') ).offset().top
}, 1000);
return false;
});
//EXPLORE
$('.explore').click(function(){
$('html, body').animate({
scrollTop: $( $(this).attr('href') ).offset().top
}, 1000);
... | 407e271216378c341322fa2629e83e2f9795b996 | [
"JavaScript"
] | 1 | JavaScript | avikothari/OpenPathCollective | b5c4d97ccb0cbf418533d5b97e146b8c1bcc0052 | 35e1e6ecb0869af0e2e866fcae5ba5b523ca96b2 |
refs/heads/main | <repo_name>teja-kishore/Rest_api_python_user<file_sep>/Rest_api_user.py
from flask import Flask
from flask_restful import reqparse, abort, Api, Resource
app = Flask(__name__)
api = Api(app)
TODOS = {
'todo1': {'name': '<NAME>','age':21,'email':"<EMAIL>"},
'todo2': {'name': 'kishore','age':21,'email':'... | e7ce4ebba9f3f801bfa4471de5d01cf0be728826 | [
"Python"
] | 1 | Python | teja-kishore/Rest_api_python_user | dd2dc90eb644f4e40fcba13810e2568563a52704 | 697c35634e38a3bc5975186ed37b8250da9d87af |
refs/heads/master | <file_sep>function count(str, char){
var i = 0;
var index = [];
while(i < str.length){
if(str.indexOf(char,i) >= 0){
index.push(i);
i += str.indexOf(char,i) + char.length;
}else{
i += char.length;
}
}
console.log("Numero de veces que se repite '" + char + "' en '" + str + "'");
console.log(index... | 2fe09ee0ece6a1a6692f1cb6220d0c0a1ce1913e | [
"JavaScript"
] | 1 | JavaScript | MiguelAngelGutierrezMaya/MakeItRealTest | 3d1391a86cb127dd6d604d7ac4567fc62c7e06a4 | 81e442275a72c1a444a0cb1ca169ea207b29b81e |
refs/heads/master | <repo_name>Pepinonte/ProjetJsEstiamCG<file_sep>/src/db.js
const { connect } = require("mongoose");
const bcrypt = require("bcryptjs");
const mongoose = require("mongoose");
mongoose
.connect("mongodb://localhost:27017/projet_rere", { useNewUrlParser: true })
.then(() => console.log("Connected to Mongo…"))
.catch... | 4bc58beb350cc4cda79210681da0e5d27b6f6eb4 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Pepinonte/ProjetJsEstiamCG | f32050051ca4425e577b862e995c7e1690f6449c | 3cddde5648843de007e46682a4650f05a71b584e |
refs/heads/master | <file_sep>//
// MapViewController.swift
// PlayingTemps
//
// Created by <NAME> on 24/05/16.
// Copyright © 2016 MLBNP. All rights reserved.
//
import UIKit
import MapKit
class MapViewController: UIViewController,MKMapViewDelegate {
var mapView: MKMapView!
let locationManager = CLLocationManager()
... | eae1ad3cd08fab68c6da908bea32334f16be6099 | [
"Swift",
"Markdown"
] | 4 | Swift | nishant3171/PlayingTemps | f5b05f13c97f3fcf4aff5a65e99881206fda0d94 | 0f25b02f280fc2fde361d92a2699c6e4817adcbd |
refs/heads/master | <repo_name>daitran33/RinvexCountryPHPlibraryExamples<file_sep>/index.php
<?php
use Rinvex\countries\data;
// Load Composer's autoloader
require 'vendor/autoload.php';
// Get single country
$egypt = country('eg');
// Get country name // Get country native name
echo $egypt->getN... | ee80532bc5859bfa1e3f5c16a9c3cf80d4526e59 | [
"Markdown",
"PHP"
] | 2 | PHP | daitran33/RinvexCountryPHPlibraryExamples | c43d856b49fbd86ede828382b1c816f3e74be95d | 595baed35f748f542b648e1c087fa74cce44ec21 |
refs/heads/master | <file_sep>#The data has been filtered before I loaded to R
electric <- read.table("/Users/pedrovela/Downloads/household_power_consumption.txt",
header = TRUE,sep = ";")
#Create a new variable for the date time
datetime <- strptime(paste(electric$Date, electric$Time, sep=" "), "%d/%m/%Y %H:%M:%S"... | df15819f06a22dd9eb2306290b7a19909899f7d5 | [
"R"
] | 4 | R | pedro-vr/ExData_Plotting1 | 4e0d59f644ba8158f45c184e6c0fb9248721c4c7 | a41b3c9b9070409adef2be57485bbfdb0da9e6a8 |
refs/heads/master | <file_sep>from dataclasses import dataclass
from dataclasses_json import dataclass_json
@dataclass_json
@dataclass
class CellPos:
"""座標"""
x: int # X座標
y: int # Y座標
<file_sep>import json
from functools import lru_cache
from typing import List, Tuple, Set
from model.CellPos import CellPos
from model.Ce... | d670433c9963809a880ac3bc52da57f714c94a17 | [
"Markdown",
"Python"
] | 10 | Python | YSRKEN/puzzle_sunglass_solver | 05162ba48a2949a893f62ee896f1922c1c3f597d | 50888bec5da6dc57cdbfdad80efdd4def8c4153b |
refs/heads/master | <file_sep>input.onButtonPressed(Button.A, function () {
RingbitCar.freestyle(10, 10)
basic.pause(500)
RingbitCar.brake()
})
radio.onReceivedValue(function (name, value) {
if (name == "x") {
xValue = value
} else {
if (name == "y") {
yValue = value
}
}
})
let r... | 0f9bdd412d3c50b59c7efc83cffff8c1ed7a314b | [
"TypeScript"
] | 1 | TypeScript | jegyed50/ring_bit_car_01_car | 18831c12b9dc5c51e89cdeb00c5b77f9feca038d | b0c5cdaf973c4e6dedd5b7ea757edb5e5350f996 |
refs/heads/master | <file_sep>var fs = require('fs');
var path = require('path');
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 80;
var ping = require('net-ping-hr');
var session = ping.createSessi... | 006f64f38cd17dbb679d03851d322e8450c958c5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | NSReverse/node-ping | a67863e9f14084dbafefd8619aa1e488680ada9f | 5f7da1064bc3b044cc99146f3568664e660eced9 |
refs/heads/master | <file_sep># iotop-log-parser
This is a parser for the iotop monitoring logs.
<file_sep>#!/usr/bin/python
###############################################################################
# This is an extractor for the log file "iotop.log" output by the "iotop" command:
# "sudo iotop -botqqqk -d 10 > ./iotop.log"
#
# I... | 0db3b0f58acedd04de6bc9a4a96b4c40babe700e | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | lvying603/iotop-log-parser | 19ed289f051ceec1a31a1f2d6cef8a68c0db7e11 | 84513d6a59d5da87745fcf2b08455ad17740c95e |
refs/heads/master | <repo_name>wrightling/.vim<file_sep>/bin/vimbundles.sh
#!/usr/bin/env bash
# script stolen directly from https://github.com/hashrocket/dotmatrix/blob/master/bin/vimbundles.sh
# modified to work with my .vim directory structure
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
get_bundle() {
(
if [ -d "$2" ]; then
echo... | c6ec27ae8b95560b87775b6a9b7b8bc7d5cc4718 | [
"Shell"
] | 1 | Shell | wrightling/.vim | 0ac81fbcdea4cc863aa6063846b68be2b335ed53 | 872d0e206609292216a036650c58526b97117700 |
refs/heads/master | <file_sep>import requests
import json
import time
import tkinter as tk
from bs4 import BeautifulSoup
from googlesheet import delsheet
from googlesheet import getsheet
from googlesheet import writesheet
def clickbtn():
try:
output.delete('1.0',tk.END)
except:
print("start")
pconedetect()
... | 487356a3b24c0b9a907888e284b12c8dbe35495d | [
"Python"
] | 17 | Python | yashichi05/shopee-prd | 0973f5a07b6d37d9ea4aec0d27628d2a85fcaeef | 00357435d860ecf9fea26f0420cbd7ca178f9cde |
refs/heads/master | <repo_name>aserunix/python3_book_HeadFirstPython<file_sep>/hf_py_c6.py
#!/usr/bin/env python3
#-*- coding:utf-8 -*-
class Athlete:
def __int__(self,value=0):
##the code to initialize a "Athlete" object
self.thing=value
def how_big(self):
return(len(self.thing))
d=Athlete("Holy Grail")
... | 9e92eda3dcc2a220044187fad0f84246d2daa6ea | [
"Python"
] | 6 | Python | aserunix/python3_book_HeadFirstPython | fb4caa5a0abd94134e7f40a77efcc78e3c8358ba | 0ae0e4d0f684695688ec8bd3a2b2e0c123f362c4 |
refs/heads/main | <repo_name>miguelgrinberg/aioflask<file_sep>/tests/utils.py
import asyncio
from greenletio.core import bridge
def async_test(f):
def wrapper(*args, **kwargs):
asyncio.get_event_loop().run_until_complete(f(*args, **kwargs))
return wrapper
<file_sep>/examples/aioflaskr/tests/conftest.py
from datetime i... | 38d8a72059f2c364ba4cc8844d7ed4e3ae4829b8 | [
"Markdown",
"INI",
"Python",
"Text",
"Shell"
] | 36 | Python | miguelgrinberg/aioflask | 7f447e79c81ce7ca46edc5f5852845ff9806ce6a | 9d14c06747e13d4d12aabe61254e48e91860c4dd |
refs/heads/master | <file_sep>{
init: function(elevators, floors) {
var NUM_ELEVATORS = elevators.length;
var NUM_FLOORS = floors.length - 1;
var IDLE_ELEVS = [];
const OK_LOAD_FACTOR = 0.7;
function dedup(arr) {
let s = new Set(arr);
let it = s.values();
... | 72d88657f70d5533ccc239928770143429c3f850 | [
"JavaScript"
] | 1 | JavaScript | nonbeing/elevator-saga-challenge | a900c49b3676b0ede218e59a195c0d094cd69f3a | c80f568fe91d164833a6843364e8de361002ca13 |
refs/heads/master | <repo_name>estefaniag08/RecursividadModelos<file_sep>/200218_Recursividad.py
def sumarDigito(numero):
if numero<10:
return numero
else:
return sumarDigito(int(numero/10))+(numero%10)
def potencia(numero, numerito):
if numerito==0:
return 1
else:
return potencia(numero,nu... | df6c95325768533d02323543b55b73c8f1ec0ddc | [
"Python"
] | 1 | Python | estefaniag08/RecursividadModelos | 84f9abdc9b48cd84dd8359354924f8ccf7ce5367 | 5e4e5a5aa59d2d92fbdeed99bb4d09c91135bbef |
refs/heads/master | <file_sep>using System;
namespace Iterative
{
class Program
{
static void Main(string[] args)
{
// Console.WriteLine("Enter the number: ");
// int num = Convert.ToInt32(Console.ReadLine());
// int fibNum = Fib_Recursive(num);
... | d6d657bedf800581c847d5c1cec4fb7b621b3a17 | [
"C#"
] | 1 | C# | dipanbhusal/5th-sem | 110b66d10a3a603c859978be2622c719c9b2ef88 | 2f54586b401dd03a1a54b0fa34d14c83ed0f51c0 |
refs/heads/master | <repo_name>SergiooOliveira/Kermit<file_sep>/app/src/main/java/ipca/cm/kermit/Scores.kt
package ipca.cm.kermit
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.Button
class Scores : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
sup... | 6e3b8a5a379c847dc1b095880b7530c882ae0a50 | [
"Kotlin"
] | 14 | Kotlin | SergiooOliveira/Kermit | 503a0efd29e12a6cf06f488432c7aa6640074951 | ae25c93c8f0ed4cd82f3efab2c514d7d80956d3f |
refs/heads/master | <repo_name>foodie-trackie/backend<file_sep>/src/info/api/urls.py
from django.urls import path
from .views import UserItemListView, UserListCreateView, ItemDetailView, ItemCreateView, UserDetailView, signup_view, login_view
urlpatterns = [
path('users/<owner>/items/', UserItemListView.as_view()),
path('items/<... | 8a669f060255ffa8a08d905708bd00d82e273a1e | [
"Python"
] | 4 | Python | foodie-trackie/backend | ff9c7f506dfefd363cc4533ecabec0675003112a | 785c6053c2088a81c3fef9b4665e6cf254ccb45e |
refs/heads/master | <file_sep>////
//// OperationDataManger.swift
//// Blah Blah Chat
////
//// Created by Екатерина on 09.03.2019.
//// Copyright © 2019 Wineapp. All rights reserved.
////
//
//import Foundation
//
//class OperationDataManager: DataManager {
//
// let profileHandler: ProfileHandler = ProfileHandler()
//
// func ... | cabbfe03d69343e00ba30382d9544782ef723a4d | [
"Swift"
] | 46 | Swift | yukim17/Blah-Blah-Chat | 704d5eb09d724fc3b24af74c8345885f123386d8 | 996607744a8dd8518c7fcb2cd298845f49025de7 |
refs/heads/master | <repo_name>ashishtayal89/create-node-basic-app<file_sep>/src/cli.js
import getOptions from "./options";
import { createProject } from "./main";
export async function cli(args) {
const options = await getOptions(args);
await createProject(options);
}
<file_sep>/Readme.md
# Create a basic node project
Tutorial : tw... | 918b79cf0f28e0166c69cb644603cd555d0b477b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ashishtayal89/create-node-basic-app | b118cc686b44bee146183d187e9984236e115b78 | 17539142e7f90f6ab5cc2080fe11d64437d1a693 |
refs/heads/main | <repo_name>libhide/mincast<file_sep>/app/src/main/java/com/madebyratik/mincast/NavGraph.kt
package com.madebyratik.mincast
import androidx.annotation.StringRes
sealed class Screen(val route: String, @StringRes val resourceId: Int, val iconIdRes: Int) {
object Explore : Screen("explore", R.string.explore_label, R.... | 323485d6313a8327a9761179446fcf0cf39fef36 | [
"Markdown",
"Kotlin",
"Gradle"
] | 24 | Kotlin | libhide/mincast | 6f933b453833f4046b3bd950b99b5218300a787c | 972525877fab55dbe550e70280ebc4651bb9d6a8 |
refs/heads/master | <file_sep># Import smtplib for the actual sending function
import smtplib
import email.Utils
# Import the email modules we'll need
from email.mime.text import MIMEText
# Open a plain text file for reading. For this example, assume that
# the text file contains only ASCII characters.
textfile = 'message'
# Create a t... | 771bfb71a2525a9e555684389e7c3a9a2f2f2520 | [
"Python"
] | 5 | Python | ethan-bogdan/independent-study | 06653770ce8b35326bc30526ec268a00ffc873c3 | cc52ab2e50f9943b363085605834902ce843c814 |
refs/heads/main | <repo_name>helenamin/Perth-City-Properties<file_sep>/requirements.txt
Flask==2.0.1
gunicorn==20.1.0
pandas==1.3.2
sklearn==0.0
SQLAlchemy==1.4.23
<file_sep>/README.md
# Perth City Properties

## Table of Contents
- [Introduction](#Introduction)
- [Structure](#Structure)
- [... | 5617908657bd473e05aa0dda8dba93936269e42c | [
"HTML",
"Markdown",
"JavaScript",
"Python",
"Text"
] | 8 | Text | helenamin/Perth-City-Properties | f553140b96863a1b8cd4fe96f3b4a49303e5caa7 | 44a73736efe3b3db65666da823c30a2bad73c93b |
refs/heads/master | <repo_name>vgirbes/docker-laravel<file_sep>/docker/app/local-fpm.ini
; Post size
upload_max_filesize = 100M
post_max_size = 100M
; Opcache
opcache.memory_consumption = 128
opcache.interned_strings_buffer = 16
opcache.max_accelerated_files = 16229
opcache.fast_shutdown = 1
; Xdebug
xdebug.default_enable = 0
xdebug.rem... | 0f6bc0db22a302c51669ddd25a7484c6cac52b64 | [
"Shell",
"Dockerfile",
"INI"
] | 5 | INI | vgirbes/docker-laravel | 9490a8364a3ea8eb1cac7bfb322325ad6c41ed32 | f45edf717f41711a4c86ae3f7a8b737891494d6a |
refs/heads/main | <repo_name>WEB-20-1-1/programming<file_sep>/ap.js
let name1 = prompt('Введите ваше имя?');
alert(name1)
let name2 = prompt('Введите вашу фамилию?');
alert(name2)
let name3 = prompt('Введите ваш возвраст?');
alert(name3)
| ba6c1b5cc86c1badf00bbefc02b4d0b2bef939fb | [
"JavaScript"
] | 1 | JavaScript | WEB-20-1-1/programming | ba9adc0b07392b85306eb784b1230959c71331ea | eba81e4e67389d4b172ac57b8ab658734766b916 |
refs/heads/master | <repo_name>Wirtos/dyad<file_sep>/example/httpserv2.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dyad.h"
/* An example of a simple HTTP server which serves up files. We make use of
* `udata` and the DYAD_EVENT_READY event to send files in chunks as needed
* instead of loading the entire file... | 4ce4b969b678809724e739dc4662998f1e5e9022 | [
"Markdown",
"C",
"Python",
"CMake"
] | 8 | C | Wirtos/dyad | f6503d1ad2f158b5e5c9dc19227bf733036b42f5 | f3759dc3b9955ec95b020dd06e4e8142f807ed63 |
refs/heads/master | <repo_name>jherrm/flipbot<file_sep>/arduino/pinball/pinball.ino
#include <Servo.h>
#define MOVEMENT_DELAY 0
#define RIGHT_SERVO_PIN 10
#define LEFT_SERVO_PIN 9
#define RIGHT_START 85
#define RIGHT_END 133
#define LEFT_START 85
#define LEFT_END 47
Servo right;
Servo left;
int rightPos = 0;
int leftPos = 0;
int IN... | bd123f120d36aff7f080523dd2d443d3e29a375b | [
"Markdown",
"Python",
"C++"
] | 5 | C++ | jherrm/flipbot | cd34a512b9df2d0783e09c8aa4410bdf5f9a6a62 | 78f094c0fd35572f4e7c70adad23b457ded360cb |
refs/heads/master | <repo_name>RomainMorlevat/rails-mister-cocktail<file_sep>/app/models/dose.rb
class Dose < ApplicationRecord
validates :description, presence: true
validates :cocktail_id,
uniqueness: { scope: :ingredient_id,
message: "This cocktail already has a dose with this
... | d6c3ce80dfd245131118de6ff4edd3d171624c52 | [
"Ruby"
] | 1 | Ruby | RomainMorlevat/rails-mister-cocktail | 95c52c5a7c4d5fb52caf4a0aeaa77c3f595bf93a | 04d12ef3ecbe5905f653fa87a0520dec00459eef |
refs/heads/master | <repo_name>Kakashi-19/PYTHON<file_sep>/RANK.py
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the divisibleSumPairs function below.
def divisibleSumPairs(n, k, ar):
ways = 0
ar.sort()
for i in range(n):
for a in range(i + 1, n):
if (ar[i] + ar[a]) %... | 6e24dab6442976b5d5255c63273a3900d1389ddd | [
"Python",
"INI"
] | 66 | Python | Kakashi-19/PYTHON | 2488b106d1442624c1a9cddc205e2e9d2a0ff66b | 870a856cc7c3c481af3f21a479cf1c66324e35b1 |
refs/heads/master | <repo_name>xnphu/GameRocket<file_sep>/src/game/enemy/CreateEnemy.java
package game.enemy;
import action.*;
import base.GameObject;
import base.GameObjectManager;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class CreateEnemy extends GameObject {
private Random random;
... | f620a74353c9ee51383f4f5fab9b1755c3c12295 | [
"Java"
] | 2 | Java | xnphu/GameRocket | 0347e8ba2ead2e340cdaf5e6365814d46de99b9f | 8cc7ce2368614721d94fa84e2e165a0e5deb0025 |
refs/heads/master | <file_sep>using ProductBL;
using ProductDTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace ProductAPI.Controllers
{
public class ProductController : ApiController
{
ProdBL blObj;
pu... | f025515e5199a641135612d1f0e8aba6f95568da | [
"C#"
] | 3 | C# | Bhuvana-295556/vg | 6543c4b1ed09fc7b277209ac9ec2bbbd98565f70 | b134eb0a9f52e570c08773c9b987b4a6020bfb31 |
refs/heads/master | <repo_name>Viktor-V/MagentoMailCatcher<file_sep>/app/code/local/ViktorV/MailCatcher/Model/Core/Email/Template.php
<?php
/**
* Created by PhpStorm.
* User: viktor
* Date: 15.5.10
* Time: 22:54
*/
class ViktorV_MailCatcher_Model_Core_Email_Template extends Mage_Core_Model_Email_Template {
/**
* Retrieve m... | 9dad80667e64feb9267debba7659ed43c3b5f4e0 | [
"PHP"
] | 3 | PHP | Viktor-V/MagentoMailCatcher | 85f93a184240d8bf97a91de468b83d71b243545d | 1ffeaba79453822bac11bacf17d97a7afdc5487b |
refs/heads/master | <file_sep>package com.peninsula.nuunn;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Butt... | 2070a0657055ecad72d7ce9e95cd0675d6574b1e | [
"Java"
] | 1 | Java | Mylo1993/Nuunn3 | f0574a2fc8ea3cc63e80e78ad26d41ee4417b94e | b18259cd1c94422bc67c87df5b67d64fcdcce20d |
refs/heads/master | <file_sep>/* Suppose an array in ascending order is rotated at some pivot unknown
to you beforehand. You are given a target value to search. If
found in array, return its index, otherwise return -1. Assume no
duplicate exists in the array. */
/* input: [4,5,6,7,0,1,2]. element to search 0. If search for 8, ret... | 0f05b41583cb73dd062c0e83731615dbe237539b | [
"Java",
"Python"
] | 5 | Java | asmitajoshi/quiz | fc8a56d855997ad82025f90065e15b033bd15588 | 19a0b09ce3ff9b4905443d2edc0a4c5c7ebdb539 |
refs/heads/master | <repo_name>ravyt3ja/ravi<file_sep>/neural.py
# ravi
from numpy import exp, array, random, dot
class NeuralNetwork():
def __init__(self):
random.seed(1)
self.synaptic_weights = 2*random.random((3,1))-1
def _sigmoid(self,x):
return 1/(1+exp(-x))
def predict(self, inputs):
r... | df9689b9403167cbc94078d564f3aef986cccc41 | [
"Python"
] | 2 | Python | ravyt3ja/ravi | 343d8ac528157c84795f9ea85e65f21239bcba98 | 32791310f6df9def34d03e29627772f46e657e61 |
refs/heads/master | <repo_name>sarkiroka/progbot<file_sep>/source/common/event/on/escape.js
/**
* handle escape key
* @author sarkiroka on 2017.06.02.
*/
var debug = require('debug')('progbot:event:end-of-game');
var drawTheEnd = require('../../draw/the-end');
var onEndOfProgramming = require('./end-of-programming/end-of-programming');... | e76d4f4c083f6fc601a25c929fbcc808c2dd976f | [
"JavaScript",
"Markdown",
"Shell"
] | 43 | JavaScript | sarkiroka/progbot | 298ad87ffbe2742a462af62b294f40f1ac728668 | eb638660fbef7df2ff6278228c20adc5c5a4bab1 |
refs/heads/master | <file_sep>import { ContextType } from 'server/types/apiTypes';
import { requestLimiter } from 'server/helpers/rateLimiter';
import { toWithError } from 'server/helpers/async';
import { appUrls } from 'server/utils/appUrls';
import { request, gql } from 'graphql-request';
const getBaseCanConnectQuery = gql`
{
hel... | 427cc0c6a486c566a4970c4d24cae5a0c0cac0d9 | [
"TypeScript",
"Dockerfile"
] | 4 | TypeScript | fiatjaf/thunderhub | f070d2d7de4afcbe0e41b4c6d390b8c2174a96db | afd1c012e92c288b3089e45539262f3a73618e74 |
refs/heads/master | <repo_name>samarv/Sprint-Challenge--SQL<file_sep>/queries.sql
CREATE TABLE Organizations( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(128) NOT NULL, channels_id INT REFERENCES channels(id));
CREATE TABLE Channels( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(128) NOT NULL, users_id INT REFERENCES users(id... | e6e35148a1ce3da54e5d60510c208577f810fdd4 | [
"SQL"
] | 1 | SQL | samarv/Sprint-Challenge--SQL | 55a154060d5d123086ec017e9e33fea612ab0564 | 27b7368aa6506a077ddea6d4c264e516e817dd15 |
refs/heads/main | <file_sep>const startBtn = document.querySelector('button[data-start]');
const stopBtn = document.querySelector('button[data-stop]');
startBtn.addEventListener('click', onStartBtnClick);
stopBtn.addEventListener('click', onStopBtnClick);
let isChangeThemeActiv = false;
let intervalId = '';
function onStartBtnClick(e... | c41000263fd0f5fed713e228a9b0fc7ffb587979 | [
"JavaScript"
] | 1 | JavaScript | DennyZ24/goit-js-hw-11 | 5836d623e104d57e7de415d49b9d47351e51f0cf | 586dea9761126aa7fbc07b41d4e8693ba6fb985b |
refs/heads/master | <repo_name>mesutgolcuk/AccelerometerTestApp<file_sep>/app/src/main/java/com/mesutgolcuk/accelerometer_hw/MainActivity.java
package com.mesutgolcuk.accelerometer_hw;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
i... | 6b87c502f24c075f8d781420f36e84fb26b5801d | [
"Java"
] | 1 | Java | mesutgolcuk/AccelerometerTestApp | 297f746dfbcfe196734486034721fae6a9bfda99 | 23f9d9c9d0df5a1c34186c3568668d20c6d46f16 |
refs/heads/master | <file_sep>import ReactDOM from 'react-dom';
import React, { Component } from 'react';
import { createStore } from 'redux';
import reducer from './reducer';
import PropTypes from 'prop-types';
import { Provider, connect } from 'react-redux';
import TodoList from './TodoList';
import AddTodo from './AddTodo';
import Filt... | b42fce74df0b54f3ba76fb3a6471d55db4679989 | [
"JavaScript"
] | 5 | JavaScript | vnscriptkid/todo-react-redux | 7e40612b44780d4f575e1f686cf2a0807b37ee5d | ffeff77b44a6e4423e6cb92e5cb175e35d1c8ff2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.