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>MattiasAerts/Robotic-controlled-gun<file_sep>/stepper_motor_x_en_y.ino
/*
* Besturing van twee stappenmotoren met Arduino en een joystick
*/
//Opname van bibliotheken
#include <AccelStepper.h>
#include <Bounce2.h>
//definitie van de constanten van de Arduino-pinnen
const int ledEnable = 13; //de led aa... | f6e1d6db3142575fe987443c909a0166bd01f616 | [
"Markdown",
"C++"
] | 3 | C++ | MattiasAerts/Robotic-controlled-gun | 119550113313afa3afb6eb739f0e8cdd3a8173f9 | 892a9ef13558fdadae3ded05351df124f370caea |
refs/heads/master | <file_sep>from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class User(db.Model):
uid = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.Unicode(32), unique=True, nullable=False)
information = db.Column(db.Unicode(1024))
def __init__(self, username, informat... | 10b0d8a08c2ec9c02a0b3d2dc386da9c44135734 | [
"Python",
"Text"
] | 4 | Python | Mang2015/chatbot | 66dcc74126cc28f4fecd8782bf315eb2d328c7ce | 2fd58d2f96e6522682c845b7c3db0e51141d5ccc |
refs/heads/master | <file_sep>import random
import math
from LectorDescriptores import LectorDescriptores
from DataPoint import DataPoint
from Centroid import Centroid
NUM_CLUSTERS = 3
TOTAL_DATA = 7
A_SEED = 0
B_SEED = 71
C_SEED = 141
BIG_NUMBER = math.pow(10, 10)
# SAMPLES = [[1.0, 1.0], [1.5, 2.0], [3.0, 4.0], [5.0, 7.0], [3.5, 5.0],... | 04d6462e059da23b47cb6bb02fcbfc651ead8533 | [
"Markdown",
"Python"
] | 2 | Python | weylermaldonado/kmean | 034824a42382824237a227284f62f561a6123625 | 8ee8eed6a51067a851dbb76f9114ed1c5806ba70 |
refs/heads/main | <file_sep>/*Calcular y presentar cuantas cifras tiene un determinado valor numerico introducido por teclado*/
#include <cstdlib>
#include <stdio.h>
using namespace std;
int main() {
int numero = 2;
int cifras = 1;
while (numero >= 10) {
numero /= 10;
cifras++;
}
printf("tiene &d c... | ada8eb6fac3983a9b96eb39e5c129b1d2d4165e1 | [
"C++"
] | 1 | C++ | kadirBernardo/sumativa-9 | 7d36c648428f34da6d6853e3fe2ca73dcfdad706 | d990c0f0459b8d078349121bdf5452d36808cd3c |
refs/heads/master | <file_sep>using System;
using AppKit;
using Foundation;
using LocalAuthentication;
namespace SuperSecureApp
{
public partial class ViewController : NSViewController
{
public ViewController(IntPtr handle) : base(handle)
{
}
public override void ViewDidLoad()
{
base.ViewDidLoad();
UseTouchID();
}... | 5efff93dcbfd7d1501d9cafc4317d8bdb5ce2578 | [
"C#"
] | 1 | C# | dmsheets/SuperSecureApp | 465e4fa39a8a8428fdeae0b6ccbb955f69c7e913 | ea733d2072e4f2d8ea8e025162f4e6a27711620c |
refs/heads/master | <repo_name>LorenK96/UITestUnity<file_sep>/UnityTest/Tests/Android/AndroidTests.cs
using NUnit.Framework;
using Xamarin.UITest;
using Xamarin.GameTestServer;
using System.Linq;
using System.Threading;
namespace UnityTest.Tests.Android
{
class AndroidTests : TestEnv
{
[TestFixture]
public class ... | c25ef4d19c31f70b6c6ee8e85e9c0b99dcec6ffa | [
"C#"
] | 1 | C# | LorenK96/UITestUnity | 5cf54069aa39fb3e3492ff219bbf157e4b157708 | 2683ea3ba2e8c69ea5cc5bcd50f88963fb894334 |
refs/heads/main | <file_sep><?php
require_once('vendor/autoload.php');
$f3 = Base::instance();
$f3->config('config.ini');
$f3->config('routes.ini');
/*$app->route('GET /',
function(){
echo 'Bienvenidos';
}
);
*/
/*
$app->route('GET /',
function(){
echo 'Acerca de este proyecto...';
... | 4d633c461e0d368c1caa980527068077f02a5020 | [
"PHP",
"INI"
] | 4 | PHP | rpariona81/myapp-fatfree | 97d90be7195473568ec86e4f859f7aae143ae55b | f21bc02c04e879f153af7de6d5388ad399bb9b9e |
refs/heads/master | <file_sep># 2014WeMedia H5
<file_sep>var pages = document.querySelectorAll(".container > div");
var index = 0; // 页数
var startY = 0;
var moveY = 0;
var endY = 0;
var comY = 0;
var scoll = 0;
whatpage();
qiangpiao.addEventListener('click',function(){
window.location.href = "qiangpiao.html";
})
chuanyue.addEventLis... | c67e2c12da5ddee2f7bd6167eb97635be69e4a32 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | 346865538/2014WeMedia | 2e9542ff1d5250129286666df0eac4bc957ddc14 | 7c40c80a7b6f84aaa5ebc8e5d6cd1cf6c6b6ecff |
refs/heads/master | <repo_name>hublemeer/magicaespeculo<file_sep>/public/javascripts/weather.js
'use strict';
var weather = function () {
$.simpleWeather({
location: config.weather.location,
woeid: config.weather.woeid,
unit: config.weather.unit,
success: function (weather) {
... | c7a533949f7faba6cef9128d9f431f075c286c32 | [
"JavaScript"
] | 2 | JavaScript | hublemeer/magicaespeculo | 93563aaccdfd4181cb8724bf2101890d05baa75e | b644fc782e9162925cf8d17dbbf2ecf3cd6bbb19 |
refs/heads/master | <file_sep>package com.twq.parser.utils;
import com.twq.parser.utils.ParserUtils;
/*网站URL信息
包含:
rawUrl -> https://www.underarmour.cn/s-HOVR?qf=11-149&pf=&sortStr=&nav=640#NewLaunch
schema -> https
hostport(domain) -> www.underarmour.cn
path -> /s-HOVR
query -> qf=11-149&pf=&sortStr=&nav=640
fragment -> NewLaunch
*/
... | dcda196dda76f0415589d27cc453f147f1e93b45 | [
"Markdown",
"Java",
"SQL"
] | 4 | Java | Madcue/web-traffic-analysis | 6afc7db7a6f219fddb1555fa169bdb542aa78a11 | 029ead7af850600cef501762a71e5fa77adb88c3 |
refs/heads/master | <file_sep>import pandas as pd
import scipy
import scipy.cluster.hierarchy as sch
from scipy.cluster.hierarchy import fcluster
from scipy.cluster.hierarchy import dendrogram, linkage
data = pd.read_csv('/Users/jrobertson/Desktop/Heidelberg_snp_mat.txt',sep='\t',header=0,index_col=0)
data_labels = data.columns.values
di... | 028462db2457e6a1b55077a374f47135e6ffb5f0 | [
"Python"
] | 1 | Python | jrober84/population_genetics | b59c3ac7dea54de5c15e80ce3ee5229eb280ec47 | 84076f3998987f412bd71439dec69e67fb49d12c |
refs/heads/master | <file_sep>//<NAME>, группа 108, семинар 7, задача 22
//Создание архива: название файлов, в него включенных, размеры, содержимое
# include <stdlib.h>
# include <stdio.h>
int main()
{
char fname1[1000]; char fname2[1000]; char c; //массивы для ввода названий файлов
FILE* f = fopen("Archive.txt", "w"); //открыт... | dc2364b30069977ff7b05874df814cad4a7a956e | [
"C++"
] | 1 | C++ | koil257/Task6 | bc5bbbca015284e3abb85972bb89ec703de512ea | cd5c1347de1b22e0620b2ce341880253f3a25045 |
refs/heads/master | <file_sep>let sum=0;
let numofvalues=0;
function Targil1(mat){
for( i = 0; i< mat.length; i++){
for(j = 0; j < mat[i].length; j++){
sum+=mat[i][j];
numofvalues++
}
}
console.log(sum / numofvalues );
}
Targil1([[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15]]);
funct... | 6662f5d4901a39f1c34dae2160c6068feff9a0d5 | [
"JavaScript"
] | 7 | JavaScript | omer-checkmarx/StudyCourse | f9dedbb60143748720c654c3ef00538472420fdf | 3e7d70009c881d4d7d9b78a936ba120bde1c4524 |
refs/heads/master | <repo_name>jackiehoon/coderbyte<file_sep>/FirstFactorial.rb
def FirstFactorial(num)
k=1
1.upto(num) do |x|
k = x*k
end
num=k
# code goes here
return num
end
<file_sep>/ABCheck.rb
def ABCheck(str)
str=str.split(//).to_a
k=false
a=0
str.each do |x|
if x=="a"
if str[... | 0ee9c8a5b79dcc3cea0d63b335c9c255c948c92b | [
"Ruby"
] | 13 | Ruby | jackiehoon/coderbyte | dfad885880bc88c1f6b47ef41f8c80fa3272be43 | 74232c026cb56b0d96f9ee631f6f0e4cd8eb88b6 |
refs/heads/main | <file_sep># DataEntrySystem
it is complete example of Repository pattern with .net core and ef.
| 675c3b2930c3412c67e79b67146c04f379c1977f | [
"Markdown"
] | 1 | Markdown | kalusinghrao07/DataEntrySystem | f4a1e59a199e3107f0c2a094cd7e038a7e8ba27e | 1eb8169f9718d9f4b23d4a33eebf6910e257f2cd |
refs/heads/master | <repo_name>penguinn/prpc<file_sep>/common.go
package prpc
import (
"sync"
"reflect"
"log"
"errors"
"io"
"strings"
)
type methodType struct {
sync.Mutex // protects counters
method reflect.Method
ArgType reflect.Type
ReplyType reflect.Type
numCalls uint
}
type Common struct {
mu sync.RWMutex... | 2e10705ac4b6991114b68d876ea0d08f4194d698 | [
"Markdown",
"Go"
] | 11 | Go | penguinn/prpc | 177e541b586ba2a08e61def09c9cd286f3f961d6 | 7ab392e5d8a800cdb780c2b5395b4f44792ecaf7 |
refs/heads/master | <file_sep>let fluffyBunny = document.querySelector('.paragraph');
let listUl = document.querySelector('ul');
fluffyBunny.addEventListener('mouseover', () => {
//change it to uppercase
fluffyBunny.textContent = fluffyBunny.textContent.toUpperCase();
});
fluffyBunny.addEventListener('mouseout', () => {
//change it ... | f9d8ce55f15c590b42a9d2d3bcf5b56607b94c0d | [
"JavaScript"
] | 4 | JavaScript | FCC-Dallas/JavaScript_Class_Projects | aae422cf51546863fba5ab592caffc37a4a9423a | 93e5e47531e2cdd55ec87f009701a7206c602916 |
refs/heads/master | <file_sep>#test comment
# Grid-Mapping
Test programs for grid object identification and mapping
#test comment 2 - gd<file_sep>import AstarAlgo
c=1
b_object = []
temp_object = []
output_1 = [] # first required output
output_2 = {}
def first_out(board): # extract all the obstacles' and obje... | 66d6eba6a4ba8129fcdff95a6b1af3371c604884 | [
"Markdown",
"Python"
] | 5 | Markdown | sudarshan-samal64/Grid-Mapping | b8a4b266acbd26669d419901c4073fe1fcba44f3 | f47624e498bbf7a00925330cb80bed6a9b773c01 |
refs/heads/master | <repo_name>royaghorashi62/work-sample<file_sep>/Dissertation/C++.cpp
//Gerrymandring // FORMING WISCONSIN POLITICAL DISTRICT
#include <cmath>
#include <vector>
#include <cstdlib>//needed for rand()
#include <ctime>//needed for time()
#include <math.h>//needed for ceil()
#include <cstdlib>
//#include<stdio.h>
#include <... | a4f490d08a9672b917ebfe2601b27d3914c28152 | [
"Python",
"C++",
"RMarkdown"
] | 4 | C++ | royaghorashi62/work-sample | 012ac4b0d183ec1483e77f2cb2bec3fb3b5fad33 | 2a8976b203d19638c1d124fc3e3405eee96dd78d |
refs/heads/master | <repo_name>cmscardoso/djangohunter<file_sep>/djangohunter.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Title: Django Hunter
# Date: 2018-11-08
# Author: <NAME>
# Shodan Dork: ('DisallowedHost at /', 'DisallowedHost', 'KeyError', 'OperationalError', 'Page not found at /')
try:
from pyfiglet import Figlet
exce... | 89ef2f902b86e4257185cd129a56c6c798f119ee | [
"Markdown",
"Python",
"Text"
] | 4 | Python | cmscardoso/djangohunter | cb05dad131655bc5f923d9d94341551b32d175de | 1de1399f6f2c4c9ce146ccd15abfd52cd144cfb7 |
refs/heads/master | <repo_name>victorvoid/layden<file_sep>/src/main.rs
extern crate gtk;
mod gui {
pub mod gtk3;
}
fn main(){
gui::gtk3::launch();
}
<file_sep>/src/gui/gtk3/mod.rs
use gtk::{self};
use gtk::prelude::*;
pub fn launch(){
gtk::init().unwrap_or_else(|_| panic!("panic!"));
let builder = gtk::Builder::new_fro... | 5b83f019de0acb75a6d4dc42263240691d3dfc10 | [
"TOML",
"Rust",
"Markdown"
] | 4 | Rust | victorvoid/layden | 1b9e6848ea95986668520a31e8f3fc75e9289b03 | e05089b183287f1e8278979c2dee8562beb4229d |
refs/heads/master | <file_sep>import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/animate.min.css'
//全局注册 axios
// import axios from 'axios';
// import vueAxios from 'vue-axios';
import './plugins/vant.js'
import 'lib-flexible/flexible'
impor... | b88a17cb9694f27bcf24873fd1431693d5be78d6 | [
"JavaScript"
] | 2 | JavaScript | Thh123-gif/vue_coffee_store | a572ea29b989e5ae18214807d99743d846c9f6ee | 447ef7900e3a871f38906d9c380cdf5bb559eb4e |
refs/heads/master | <file_sep>'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
Component,
TouchableHighlight
} = React;
var App = React.createClass({
getInitialState() {
return { name: 'Jerome' }
},
renderScene(route, navigator) {
if(route... | 59e6a38fd8a98e6663dd8e6e123df383f9b1dcb4 | [
"JavaScript"
] | 1 | JavaScript | mrjerometw/reactnativeJS_SimpleNavigator | 193c8c536228ee19d52656954ea6585853832b31 | d035a7cfa8555d93d4b764652ac1d630d600c49f |
refs/heads/master | <file_sep>package com.baojie.cache.dao;
import com.baojie.common.entity.User;
import com.baojie.common.mapper.MyMapper;
/**
* @author jbj
* @create 2019-07-04 11:21
*/
/**
* readWrite=false表示只读,返回同一个对象
* readWrite=true表示读写,经过序列化返回两个个对象,实体必须序列化
* flushInterval
*/
//@CacheNamespace(flushInterval = 2, readWrite ... | a61f99975b7037e0f8e5724139a4f0d9a2fd21f4 | [
"Markdown",
"Java",
"Maven POM"
] | 29 | Java | jibaojie/mybatis | be76c2ac2ca351e4fcdbd1769849e03a7e3acc69 | a5ca4f4cbc28c3fff9bb2cd6e2faebd71c14032e |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GISModel.Entidades
{
[Table("tbPerigoPotencial")]
public class PerigoPotencia... | 9831fe408d9daaf0ca2ec5cb93f7f36aebbb39a0 | [
"JavaScript",
"C#"
] | 42 | C# | tonihenriques/GestaoSST | 82280fa2c4f0c264d2ed290dc899e387dd339b59 | 4de9f3cf851d3b16123a6acf3aa301103b7c7253 |
refs/heads/master | <file_sep>-- MySQL Script generated by MySQL Workbench
-- Thu Apr 5 15:31:09 2018
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQ... | c45d198a4df7718ed5c225e3ceb309333a14c8c8 | [
"Markdown",
"SQL",
"PHP"
] | 5 | SQL | jarvis76/php | d6de919e8cae8bc9798635e6c6760e96a04bab92 | a3188299eea277b1950f4a98b14a40bcdb9c60e3 |
refs/heads/master | <repo_name>rpitonak/colin<file_sep>/colin/checks/abstract/containers.py
from colin.checks.abstract.abstract_check import AbstractCheck
class ContainerCheck(AbstractCheck):
pass
<file_sep>/colin/checks/labels/name.py
from colin.checks.abstract.dockerfile import LabelCheck
class NameCheck(LabelCheck):
def __... | 0d328a5fd6718d5e58c20118a1cee307834ed570 | [
"Markdown",
"Python"
] | 8 | Python | rpitonak/colin | 93a8b193b5f1285ceeb66d7a97170de9a06f662a | aa76cc303616ea19d85fcd44822930ffa1b6eeb0 |
refs/heads/master | <repo_name>Poludzku/Lightbox<file_sep>/app/src/main/java/com/poludzku/lightbox/lightbox/di/LightboxModule.java
package com.poludzku.lightbox.lightbox.di;
import android.arch.lifecycle.MutableLiveData;
import android.content.ContentResolver;
import com.poludzku.lightbox.app.di.qualifier.ForAlbum;
import com.poludzku.l... | 2867d7cbb13801449d558c0477def93a7f6dcbc6 | [
"Java",
"Gradle"
] | 13 | Java | Poludzku/Lightbox | b2472e41086ebe2e73bf49fff35e5356597dd8a2 | a660b15a4b59af55b9b320cf304554ed8f8425fd |
refs/heads/master | <file_sep>import Vue from 'vue'
import ElementUI from 'element-ui'
import VueResource from 'vue-resource'
import 'element-ui/lib/theme-default/index.css'//element ui 所需css
import App from './App.vue'//引入主vue模板
//使用vue组件
Vue.use(ElementUI)
Vue.use(VueResource)
//初始化vue,将app.vue渲染到index.html中<div id="app"></div>处
new V... | 578ec9a1608654609677b347852d47d7298f1ac7 | [
"JavaScript"
] | 5 | JavaScript | leidawt/webapp | e2f0abd284257f5c119a81cf98812f26abce3d92 | 60167dd31de331d019445b0f080e041554e46bda |
refs/heads/main | <repo_name>AhmedYoussef95/Ecoli-dynamic-interactome<file_sep>/Scripts/computeRemodelingScores.R
#' @name computeRemodelingScores
#' @title Compute PPI remodeling scores
#'
#' @description Compute conditional change in PPI similarity scores relative
#' to reference condition.
#'
#' @param conditionalSimilarities Data... | 279be1a5a9885ab61fd0dc5de4ee0b4372004ff7 | [
"Markdown",
"R"
] | 7 | R | AhmedYoussef95/Ecoli-dynamic-interactome | 3c0d9126b5d3d579a169bfce17f4faf487c69eab | 0c85f22eb8775f4b0876cf0032547c907cd21130 |
refs/heads/master | <file_sep>// Copyright 2017, Square, Inc.
// Package status provides system-wide status.
package status
import (
"time"
"github.com/square/spincycle/job-runner/chain"
"github.com/square/spincycle/proto"
)
type Manager interface {
Running() ([]proto.JobStatus, error)
}
type manager struct {
cr chain.Repo
}
fu... | b73502b075716ffd038df794c92f54e3fc3a1dc1 | [
"TOML",
"SQL",
"Go"
] | 18 | Go | fkorotkov/spincycle | 75c07477f481e60866804747650a935fe9cec739 | 74bb27856530279cd077179d2c3d6395aedc8bf6 |
refs/heads/master | <repo_name>samblake/meerkat<file_sep>/src/main/kotlin/com/github/samblake/meerkat/services/BrowserService.kt
package com.github.samblake.meerkat.services
import com.github.samblake.meerkat.edge.Database.query
import com.github.samblake.meerkat.model.Browser
import com.github.samblake.meerkat.model.ViewBrowser
object ... | c386327fed1b5da9313e10661c2f346945f2f305 | [
"SQL",
"YAML",
"Markdown",
"Maven POM",
"Dockerfile",
"Kotlin"
] | 26 | Kotlin | samblake/meerkat | 2cb0eec7ebec8dfca95aab2ba7e201390917eb6b | d0b1b76d4081bcd6527f5b550679715eb52a8f46 |
refs/heads/master | <repo_name>llucasmarques/Double-Linked-List<file_sep>/main.c
#include <stdio.h>
#include <stdlib.h>
#include "inverte.c"
int main(){
tipoLista *lista;
lista = NULL;
//Inserções
insereFim(&lista,1);
insereFim(&lista,2);
insereFim(&lista,3);
insereFim(&lista,4);
printf("Li... | 9fad3613520529c725652a072d6dcd59ceeaac3e | [
"C"
] | 2 | C | llucasmarques/Double-Linked-List | f27bb0eb05f1e6e059d4b5721f9050d050d80b6b | 44db048c555dba58e79a3a72b8c17e6a2247a2a2 |
refs/heads/master | <file_sep>package com.paruspringapp.jpa.models;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@Entity
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
public class Person {... | 3e5795e41777f3de17f62220ad1c910f01a875c8 | [
"Markdown",
"Java",
"Dockerfile"
] | 8 | Java | shadowfacsimile/paruspringapp | ec518bc276c903825dcadb579e96a590cdc4fe89 | 831ed427c660c48f09b07aa1ff2a82bf8cc8db3e |
refs/heads/master | <repo_name>Slaedr/EllipticFEM2D<file_sep>/libfem/fem.py
""" @brief Assembly routines of local and global FE matrices.
"""
import numpy as np
import numpy.linalg
from numpy import sin, cos, arctan
#from numba import jit, jitclass, int32, int64, float64, void, typeof
import scipy.special as scp
from .mesh import *
from ... | cc9f38e6641a3f19b5569f52e5c79ba6875c501f | [
"Markdown",
"Python"
] | 15 | Python | Slaedr/EllipticFEM2D | e83b31c800acde810572a85651f9342de223bc12 | d373795f1ce874990c7e01ff88d71d9ab7a5ebf8 |
refs/heads/master | <file_sep>import React from 'react'
import {StyleSheet, View, Text} from 'react-native'
import ViewPager from '@react-native-community/viewpager'
export default function MyPager () {
return (
<ViewPager style={styles.viewPager} initialPage={0}>
<View key="1" style={styles.viewOne}>
<Text>First page... | 256858e1c3c56d73b50d0214143c21d1639ff30e | [
"JavaScript"
] | 1 | JavaScript | coffescript/react-native-swiper | cf5eda5a94195b65e74a7fa07bebc3c6ee77d1e0 | 29ede7db460a6ba20d9420ec61f25a3932bb5a04 |
refs/heads/main | <file_sep>function modalPlus() {
var modal = document.getElementById("modalPlus");
modal.style.display = "block";
}
function closeModalEdit() {
var modal = document.getElementById("modalEdit");
modal.style.display = "none";
var text = document.getElementById("textEdit");
text.style.display = "... | e6f5733dd4a0ca1a2ed9bc3c9cb4cd2168038ddf | [
"JavaScript"
] | 1 | JavaScript | NatyaBA/CRUD | 4da24f1041a4815691850f8ca56ab97a59d705be | 209d8cde84140b7f7e3e9059a1673d872f033558 |
refs/heads/master | <file_sep># snow-probability-map
The 'Snow Probability Map' is a simple web-based tool for showing maps of snow probability in Czechia based on remote sensing,
crowdsourcing and meteorological station data.
The crowdsourced data (volunteered geographic information) comes from the Strava, Garmin Connect and in-pocasi.cz... | 73d38b35a0cba2d8d159234bc0f923b2360a9902 | [
"Markdown",
"Python"
] | 2 | Markdown | jirikadlec2/snow-probability-map | 342d0bf4dd3a9729f5c13d050dd3da2319834b7a | f341274c31f048688908093fb8e48954fdf59ce9 |
refs/heads/master | <repo_name>seimmuc/antispambot<file_sep>/main.py
import json
import os
import sqlite3
import time
from typing import List, Dict, Any, Tuple, Optional
from discord import Client, Status, Member, Message, Intents, Guild, TextChannel, ChannelType, PartialMessage
class ActivityLimit:
def __init__(self, time_window: ... | 649bf3352395870c3e9aff1c06feb4c4787c86b1 | [
"Python"
] | 1 | Python | seimmuc/antispambot | 195d0ec5345f12186d79c821d232b0d3879d3056 | 1738bbfc8e2eebf833675befb0683201960b75ac |
refs/heads/main | <file_sep>import {remote} from "electron";
import fs from "fs";
import path from "path";
import SendFeedback from "@electron-elements/send-feedback";
const {app} = remote;
customElements.define("send-feedback", SendFeedback);
export const sendFeedback: SendFeedback =
document.querySelector("send-feedback")!;
expor... | 3374f2f427a5bf0122ab5d5e406057d1f51f8afc | [
"TypeScript"
] | 1 | TypeScript | dulianshuizhongyue/zulip-desktop | 90a65ab6ccf3a5f165cb57caf1ddd3a0b26cd894 | d3f07e65040789ff3e2958d4228f5f9544a14d41 |
refs/heads/master | <repo_name>akhadimer/TD-scripting<file_sep>/moreorless.sh
#!/bin/bash
nbrrandom=$(( ( RANDOM % 10 ) ))
i=1
read nbr
while [ $nbr != $nbrrandom ]
do
if [ $nbr -le $nbrrandom ]
then
echo "Plus"
else
echo "Moins"
fi
read nbr
i=`expr $i + 1`
done;
if [ $nbr -eq $nbrrandom ]
then
echo "Trouvé après $i ess... | 343aa2c0493f48732b4054e619659cd4cedfb479 | [
"Shell"
] | 1 | Shell | akhadimer/TD-scripting | a8214667c9f903f068ec9f14b73f44480dd992bd | 1a59cd4c1a1d4eea6278408cd05f6a66b05905e0 |
refs/heads/master | <repo_name>achmadsyafri/resume-ku<file_sep>/src/components/Menu.jsx
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
// import Button from '@material-ui/core/Button';
// import Tooltip from '@material-ui/core/Tooltip';
import InstagramIcon from... | 363756eba6b87743a7ccf34783bd301ff2ad377a | [
"JavaScript"
] | 1 | JavaScript | achmadsyafri/resume-ku | cb09424033b3115d64e8429c149f1733b4634fbf | 391d2f17c202ac24b3d0550ef33ca4864cd63537 |
refs/heads/main | <repo_name>marto123456/python-networking<file_sep>/code.py
import marton
servers_login = marton.login('192.168.100.1', 22, 'martins', 'cisco')
server_shell = marton.platform_shell(servers_login)
marton.enter_command(server_shell, 'enable')
marton.enter_command(server_shell, 'cisco')
marton.enter_command(server_shell, ... | 64246dd1915aa9322bd7ae921a572b0525b6468e | [
"Markdown",
"Python"
] | 3 | Python | marto123456/python-networking | accd72e5641b56d2f7f5d3cd9e70534b65c8e582 | 16a7284408f1a031147f8736b123055f7c11696b |
refs/heads/main | <file_sep><?php
use Faker\Factory;
use App\Entity\Books;
use Doctrine\Persistence\ObjectManager;
use Doctrine\Bundle\FixturesBundle\Fixture;
class BookFixtures extends Fixture
{
public function load(ObjectManager $manager)
{
$faker = Factory::create('FR-fr');
for($a =1; $a<=10; $a++){
... | 2d0b1d0e74fd317e16a0d791bf93d48d6bb9415f | [
"PHP"
] | 2 | PHP | noemie96/le-bouquineur | c7b94e8da2b4f7eff4aba8c1c1e5796995814d71 | a9ebac6332db71e5f375b40ef759573a71eafcd0 |
refs/heads/master | <file_sep>/* selfedu ino, EchoLocator v.0.1
* measure distance by obstacle in cm
* sending values to serial and display via I2C
* alarming obstacle closer < 20cm
*/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int trigPin = 9; //triggerPin on ultrasonic SR04
const int echoPin... | 0840cee4cf9b5349d8e62fe8df83a58926f95edf | [
"Markdown",
"C++"
] | 2 | C++ | radarixos/Distance-meter-demo | bfc089c83578704d3d3f48e9f503d76f40ac15dc | 9904871d708df142be18bbd6b48fd4c39b1d6776 |
refs/heads/master | <file_sep>using System;
namespace Sanofi.Core
{
public class Class1
{
}
}
<file_sep>using Sanofi.Core;
using Sanofi.Core.EntitiesModel.Administrator;
using Sanofi.Core.EntitiesModel.IdentityCore;
using Sanofi.Infrastructure.DbContext;
using System;
using System.Collections.Generic;
using System.Diagnosti... | 7eb5928e01cb2f9b88e827a94ddba3838731309f | [
"Markdown",
"C#"
] | 17 | C# | tryagung/Abhimantras.Sanofi-master | 8369e63cde9c7073c3692eed2d54a76749dfd851 | 50114793a36e5161680ba1487fc193f030743a59 |
refs/heads/master | <repo_name>abrickaday/fend-project-memory-game<file_sep>/js/app.js
// list of 8 font awesome icon suffixes that shows up when a card is open
var icons = ['diamond', 'paper-plane-o', 'anchor', 'bolt', 'cube', 'leaf', 'bicycle', 'bomb'];
// array to hold a a total of 16 cards
var cards = [];
// duplicate the 8 icons twi... | fe828e82f0be8827b62f5ca03dedfd10b192d24f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | abrickaday/fend-project-memory-game | b19ce2e5e4d73844755c978d912e22dc15a4da06 | fc1d8ef585baaf4314f4e8ada6c63496dbc8b251 |
refs/heads/master | <repo_name>ashiqf/SharepointApps<file_sep>/ConsoleApplicationSample/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplicationSample
{
class Program
{
static void Main(string[] args)
{
... | df2ac3822cf9f42f39367a470bff0399bb9e90cc | [
"C#"
] | 1 | C# | ashiqf/SharepointApps | f074cd65af99d5f0dff3cb1557c67b614a3e3434 | 62343af0b7674c4307c49f574b133b80abcfdfeb |
refs/heads/master | <repo_name>XiaoMutt/Cloveriver<file_sep>/scheduler.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<?php
include_once '_basics.php';
CheckUser();
$cOpt = new OperateMyEquipment();
$aaEquipment = $cOpt->getAuthEquipment();
if (count($aaEquipment)) {
if(isset($_GET["eq... | dafa470f5d3cb89e9be554f173d8f464e410d26d | [
"Markdown",
"PHP"
] | 16 | PHP | XiaoMutt/Cloveriver | 220e8aa50e31b30407a4484018f852826b4bdf1d | b7141cf53413e79187207b1627ef6fbf146a35b7 |
refs/heads/main | <file_sep>FROM node:15-alpine3.10
# FROM node:10
# Setting workdir to /web
WORKDIR /
# Copy package.json & package-lock.json to workdir
COPY package*.json ./
RUN npm install -g copyfiles typescript
RUN npm install
# Copying everything into workdir
COPY . .
# DEBUG
RUN ls
# Building the typescript files
RUN npm ru... | bda7a63cee95bf86ecddb189c92234c521826aed | [
"TypeScript",
"Dockerfile"
] | 2 | Dockerfile | linus-jansson/binder | 2bb8b62dcc2c7751d9de661449d4650bb19e7a79 | 527c3cc7e3ac9fd8baa460cca7ce372099a1f705 |
refs/heads/master | <repo_name>MJ-sfo/Starting-Rails-Guides<file_sep>/blog/app/controllers/articles_controller.rb
class ArticlesController < ApplicationController
def new
end
def create
# render plain: params[:article].inspect
@article = Article.new(params[:article])
# using Cap - referring to class Article, defined in ... | 7ce68bdb6c8163286496addb5b324f68090e0d14 | [
"Ruby"
] | 1 | Ruby | MJ-sfo/Starting-Rails-Guides | 754356a922128a85a0b9f3131c45f5702cc2f378 | 0be62763242ca002ed2d5728e0e1d5d11453cc9d |
refs/heads/master | <repo_name>aur-archive/xfce4-indicator-plugin-git<file_sep>/PKGBUILD
# Maintainer: <NAME> <<EMAIL>>
_pkgname=xfce4-indicator-plugin
pkgname=xfce4-indicator-plugin-git
pkgver=259.f722729
pkgrel=1
pkgdesc="Plugin to display information from applications in the Xfce4 panel"
arch=('i686' 'x86_64')
url="http://goodies.xfce... | f1f5adb46f3d6c209ef295116acc97d9240eaec0 | [
"Shell"
] | 1 | Shell | aur-archive/xfce4-indicator-plugin-git | 8bceffa4b681c9aaa4ddb446405be32e4843df91 | 5b6127db558a5226324c231aa027f6b85a4c18d3 |
refs/heads/main | <file_sep>import * as crypto from 'crypto';
import { Injectable } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { Exception } from 'handlebars';
@Injectable()
export class Encrypter {
key = '';
algorithm = '';
ivLength = 16;
constructor(private configService: ConfigService) {
... | 2f33a3fab9b05830f44692b5dc7745faf168b380 | [
"Markdown",
"TypeScript",
"Shell"
] | 70 | TypeScript | folajubril/nest-postgres-Multi-entity | 94c7b5dcbd75ecdfe0ae708eaa7b78e6eb41aa01 | 2935e4f5caaac5c5c274c59e6f6e81bee87ee3ff |
refs/heads/master | <file_sep>from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.preprocessing import StandardScaler
from nltk.corpus import stopwords
from nltk.stem import WordNetLemmatizer
import nltk
import re
import numpy as np
import pandas
from nltk.tokenize import word_tokenize
from collections import defaultdict... | 44ffc6e9b50dc07d05ff4f9dc6fc6f88654d6f71 | [
"Python"
] | 5 | Python | marvel18/FakeNewsDetection | f315dacc4dd03ffff85970985db4f584ed2eaa3c | f1fa189e203287e8a87aa53cfb42320b4602b50b |
refs/heads/master | <file_sep>package edu.cnm.deepdive.njb.audioexample;
import android.media.AudioAttributes;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.Env... | 90a1cb03cb6e3f35df114efa44babae9eadce8ff | [
"Java"
] | 1 | Java | nick-bennett/AudioExample | db2d8813cf8fcfb17bc13820a0a73fc6139f771f | 73ecd36302fb0001aa7f8f64e5d4693f94b378aa |
refs/heads/master | <repo_name>Qman-joe/test<file_sep>/src/app/from/from.component.ts
/* tslint:disable: member-ordering forin */
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { forbiddenNameValidator } from '../shared/forbidden-name.directive';
import { iden... | 3ed6315c978976304ab9a51bf78cdb04e17582ab | [
"Markdown",
"TypeScript",
"JavaScript"
] | 3 | TypeScript | Qman-joe/test | 4e781d24bef73c8dd1ede9f66b9375302d9ca009 | 06a25625c147af7815d37c59a9cb95014393def4 |
refs/heads/master | <repo_name>dylanlott/jjdl<file_sep>/README.md
# jjdl
> a super simple programming language in Go
- take a file as input (*.jjdl file extension)
- tokenize the file
- parse the tokens
- operate on the parsed tokens
- output the operations
<file_sep>/go.mod
module github.com/jjdl
<file_sep>/main.go
package main
import... | 128ac9d03a469608d9e0e3d34ecdcb09739a4c25 | [
"Markdown",
"Go Module",
"Go"
] | 3 | Markdown | dylanlott/jjdl | 268035320dae13cdae486cfd10a139daac97d23f | 7d65cc46e7507061dccab2fd7d23395a1468d47a |
refs/heads/master | <file_sep>// Proyecto segundo parcial
// <NAME>
// <NAME>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <iostream>
using namespace std;
// Tamaño de la ventana
GLint width = 800;
GLint height = 600;
static int window;
static int menu_id;
static int submenu_id;
static int value = 0;
... | 6bad8242f10fd6e06329ecd90882f782877a2f17 | [
"Markdown",
"C++"
] | 3 | C++ | diegozr1/graficasComputacionales2parcial | 705256e5ef046bf87f58591d05e94678bbe70e6b | 1862eb99970fdf750864b72c2a0027c8cb5f47a1 |
refs/heads/main | <repo_name>Atharva222002/LMS<file_sep>/public/js/fetch.js
var pieButton = document.getElementById('pie');
var abcd = document.getElementById('abcd')
pieButton.addEventListener('click', () => {
abcd.style.display = 'block';
var open, closed, validated, rejected;
fetch('/api/data')
.then(
... | a12a33b242fadf18342c0a32d1b69df1fd0c3a81 | [
"JavaScript",
"Markdown"
] | 10 | JavaScript | Atharva222002/LMS | aa8491c94832fe051e8eb1dc0218f183eef321fd | 3f0734ae6ee163329d94914c53939367478259d8 |
refs/heads/master | <repo_name>Ryzee119/SDL_audio_tests<file_sep>/Makefile
XBE_TITLE = sdl_audio
GEN_XISO = $(XBE_TITLE).iso
SRCS = $(CURDIR)/main.c
NXDK_SDL = y
new_all: copy_resources all
include $(NXDK_DIR)/Makefile
copy_resources:
@mkdir -p $(OUTPUT_DIR)
@cp $(CURDIR)/assets/500hz48000.wav $(OUTPUT_DIR)/500hz48000.wav<file_sep>/m... | 45e193779d4e31f5727c8b2c3436090b0b6731d0 | [
"Markdown",
"C",
"Makefile"
] | 3 | Makefile | Ryzee119/SDL_audio_tests | bb1b45c2887c6fa441ad10399677c038e231fb16 | a30f9228c113d647daab4fe57729efb15fbe4b74 |
refs/heads/main | <repo_name>saefullohmaslul/crack-bcrypt-password<file_sep>/crack-bcrypt/sample database dump/db.sql
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `photo`, `email`, `password`, `id_privileges`, `created_at`, `updated_at`, `status`) VALUES
(1, 'Super Admin', 'uploads/1/2021-01/sadmin.jp... | ebf457d7eec23a5ea8ed80c43f3fa9b468fa969d | [
"Markdown",
"SQL",
"Java",
"Go"
] | 5 | SQL | saefullohmaslul/crack-bcrypt-password | c7aeb33654576e1b84becb5c9653dc5a5c35278a | 60329160fb210f385bd8b66ae6ea4c9b65420d20 |
refs/heads/master | <file_sep>module Ssosdk
class YufuSdkRoleConstants
ROLE_IDP = "ROLE_IDP"
ROLE_SP = "ROLE_SP"
end
end<file_sep>module Ruby
module YufuSsoSdk
VERSION = "0.1.0"
end
end
<file_sep>require "ruby/ssosdk/version"
module Ruby
module YufuSsoSdk
class Error < StandardError; end
# Your code goes her... | edd73abe31fc48f199cf251b064e1412a379d24f | [
"Markdown",
"Ruby"
] | 10 | Ruby | yufuid/sso-ruby23-sdk | f365c49051070447aeeab5f4601e47e7d6bc40c0 | 776d1ed3a9215c58e83785cb9201570091f4db1c |
refs/heads/master | <repo_name>stjernaluiht/semeion-digits<file_sep>/script_practica.R
##
## Lectura y preparación de los datos
##
semeion <- read.table("semeion.data", quote="\"")
semeion$digit <- NA
semeion$digit[which(semeion$V257 == 1)] <- 0
semeion$digit[which(semeion$V258 == 1)] <- 1
semeion$digit[which(semeion$V259 == 1)] <- 2
se... | 2294d9982f2f4d80be7eaf7c933f1d2c2081613c | [
"Makefile",
"R",
"C++",
"Markdown"
] | 5 | R | stjernaluiht/semeion-digits | 54a3d4346916ccf18ff44b9835f94101bdd19d61 | eab60928b4b70a25e2b12b5b086c75ac36fc6109 |
refs/heads/master | <file_sep>import matplotlib
matplotlib.use('agg')
import nose
nose.main()
<file_sep># -*- coding: utf-8 -*-
__author__ = '<NAME>'
__version__ = '0.0.1'
__license__ = 'BSD 3-clause'
from . import validate
from . import utils
from .gridplot import GridAesthetics
<file_sep>import numpy.testing as nptest
import nose.too... | dc7f2354ae6491ca7f2d43e7bfcf07da348e415c | [
"Markdown",
"Python"
] | 9 | Python | Geosyntec/pygridplot | bc4c9ad3ab9acd9bfd6a72d2f19a4dff68c1cdd5 | 08baa43a188e70d79c1329daaabbe900fca2c5fa |
refs/heads/master | <repo_name>TuAnhTo/beatvn_test<file_sep>/routes/index.js
const express = require('express');
const {auth} = require("../middleware/auth");
const {insertData, getData} = require("../module");
const router = express.Router();
/* GET home page. */
router.post('/echo',auth, async function (req, res, next) {
try {
... | cde528a21aa646aae62c209f9a77059b22759d07 | [
"JavaScript"
] | 5 | JavaScript | TuAnhTo/beatvn_test | e94fc6b2bab751eb1a2850db0ce0e39182fbba72 | ae258ecf9e18262afa57219a5f62ae7567773dd2 |
refs/heads/master | <file_sep>from django.shortcuts import render
from django.views import generic
from django.http import HttpResponseRedirect, HttpResponse
from .models import *
import re
# Create your views here.
class IndexView(generic.TemplateView):
template_name = "posts/index.html"
class ProjectsView(generic.ListView):
templ... | fa722747c8d931508fdbbf2e4fe7b5e9f0315b17 | [
"Python",
"Text"
] | 5 | Python | ryanbabida/babida-website | ccc0b0030e4bf56caf835a4a83dc0efd4d19bc0c | b00f2a8f4a4105893258a45003e6aed41c1dcbbb |
refs/heads/master | <file_sep>// Wow
var Wow = function() {
'use strict';
// Handle Wow
var handleWow = function() {
var wow = new WOW({
boxClass: 'wow', // default
animateClass: 'animated', // default
offset: 0, // default
mobile: true,
live: ... | a0885914064e72b5f94e678f2a01c4066c32e66d | [
"JavaScript"
] | 1 | JavaScript | onestopgraphic/oneStop | f374f57909ab589bc3b8ac51a497560dfcccbe8a | 0b8e38de2f403ff9b87288964e06a33769a7aad0 |
refs/heads/master | <repo_name>johan--/blog<file_sep>/server/routes/authors.js
/**
@module app
@submodule routes/authors
@requires app, rethinkdb_adapter
**/
var debug = require('debug')('authors');
var node_env = process.env.NODE_ENV || 'development';
var db = require('../lib/rethinkdb_adapter');
/**
Exports {Function} routes f... | c203aad0aff9dd9fb3f51a28a44218b18a0be3d6 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | johan--/blog | 3aacbc9da51951d95983f8b2fdaedfee6af31660 | 870b67ad79f627340664cea0b43aeaa15707b3cd |
refs/heads/master | <repo_name>JPlante9117/scraping-flatiron-code-along-online-web-ft-100719<file_sep>/lib/scraper.rb
require 'nokogiri'
require 'open-uri'
require 'pry'
require_relative './course.rb'
class Scraper
def print_courses #makes the courses, and then prints them out in the specific format
self.make_courses
... | 8a1ab448c16e5c6e66f0f99335e0eb0d7945ddc8 | [
"Ruby"
] | 1 | Ruby | JPlante9117/scraping-flatiron-code-along-online-web-ft-100719 | 925f72f56468bf8d1799b35a99dae56ff3d93d13 | d9051bcbc8e6119fd6ea4d37d836659733b0280c |
refs/heads/main | <repo_name>mgalang229/Codechef-Check-Algorithm<file_sep>/sol.cpp
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define ar array
typedef tree<int, null_type, less<int>, rb_tree_tag,
tree_order_statistics_node_update> indexed_set;... | 7f01e2c62d42434ac4cb469c52827e4ffadf6bb3 | [
"Markdown",
"C++"
] | 3 | C++ | mgalang229/Codechef-Check-Algorithm | ece77f85388f670949b449057474a5412e9ecd74 | c7c98d49a950f0cb3f66633c15d64f3757730725 |
refs/heads/master | <file_sep>package com.junbaor.huxblog.service;
import com.junbaor.huxblog.common.AppUtils;
import com.junbaor.huxblog.common.CacheManager;
import com.junbaor.huxblog.dao.ArticleMapper;
import com.junbaor.huxblog.dao.ArticleTagMapper;
import com.junbaor.huxblog.dao.TagMapper;
import com.junbaor.huxblog.model.*;
import... | 704721a1dbb81fb6f4ee97ca933ce63408db136c | [
"Markdown",
"Java",
"SQL"
] | 7 | Java | junbaor/huxblog | 0cce8a00b59f6c135edd5d0c656558351c2af81b | dc105e428f2c0d37342ab4e0235c083782e74bad |
refs/heads/main | <file_sep>package com.step.model.mobila;
public class Noptiera {
private String culoare;
private int inaltime;
public int getInaltime(){
return inaltime;
}
public void setInaltime(int inaltime){
this.inaltime=inaltime;
}
public String getCuloare() {
return culoa... | d838a64c4214a8d2512644c96f3687ec1bcb9653 | [
"Java"
] | 19 | Java | radvanall/temapentruacasa | d60b7a4de386a49e23a16bd9c14db91a7144bf99 | 5efde774271e4678ade51818a43bbcf9432e8462 |
refs/heads/master | <repo_name>matthewwier/java-design-patterns<file_sep>/combinator/src/main/java/com/iluwatar/combinator/GoldenLynx.java
package com.iluwatar.combinator;
public enum GoldenLynx {
BlueStoneOfTreason, GreenStoneOfJudgement, RedStoneOfFaith;
}
<file_sep>/combinator/src/main/java/com/iluwatar/combinator/ButterFlyLampS... | 572bef88ba141912d048b5a84df98d3ad763974d | [
"Markdown",
"Java"
] | 5 | Java | matthewwier/java-design-patterns | a1984d644172e614ce74ef4828a6536291ec0d13 | fad17f425daebeaedb897de829d51d468056da51 |
refs/heads/master | <file_sep>
int busca (int x[],int qtd, int num){
if(x[qtd] == num){
return 1;
}
else if(qtd == 0){
return 0;
}
else if (qtd !=0) {
return busca(x,qtd-1,num);
}
}
#include <stdio.h>
int main(int argc, char **argv)
{
int i[3],n;
i[0] = 2;
i[1] = 4;
i[2] = 1;
... | d364c33efb7df8db36894e1ef79b41f992bbd70f | [
"Markdown",
"C"
] | 34 | C | jeffersonxplode/C | 4c8b84844c20b26b55c728c56bed9a0a6402119c | 72b3dcc28fda24b8abe9c771b321f6fbfebbd35b |
refs/heads/master | <file_sep>//递归法
#include<bits/stdc++.h>
#define maxn 1000
using namespace std;
int n;
struct node
{
int lson;
int rson;
}tree[maxn];
void pre_order(int x)//先序遍历
{
cout<<x<<" ";
if (tree[x].lson==-1&&tree[x].rson==-1) return;
if (tree[x].lson!=-1) pre_order(tree[x].lson);
if (tree[x].rson!=-1) p... | a3a5205fc6eaba2bbacb4eb660e636397f4c9f14 | [
"Markdown",
"C",
"Python",
"C++"
] | 21 | C++ | centurion-crawler/data-structure-homework | 2f47687aebdfbff7fb44c4e87cd23a3abc91920d | e53f5554e97cd36325cedd65ca6f82c6933c54bd |
refs/heads/master | <file_sep>from datetime import datetime, timedelta
from nose.tools import raises, assert_items_equal, eq_
from forge import get_files_and_intervals, get_timefile_exact, round_timefile,\
get_timefile, mp3_join
eight = datetime(2014, 5, 30, 20)
nine = datetime(2014, 5, 30, 21)
ten = datetime(2014, 5, 30, 22)
def... | 807ca91fac731327c447d43ed1dbf77b3b4b228f | [
"JavaScript",
"Markdown",
"Python",
"Text",
"Shell"
] | 11 | Python | vinc3nt/techrec | 3c707bb47fe310d15cbc58434cb1bbaeb62edd15 | 4f2eee71f3248a2265a74ba0108456b613fd18a3 |
refs/heads/master | <repo_name>DJL0504/Git<file_sep>/aisile-parent/aisile-sellergoods-service/src/main/java/com/aisile/sellergoods/service/impl/SpeciflcationServiceImpl.java
package com.aisile.sellergoods.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com... | bdb5aff0c56781c43837e404d77807673e35f9ef | [
"JavaScript",
"Java"
] | 28 | Java | DJL0504/Git | 720607a145401362d7c29c1cc56b7f7e0c1ad520 | 65de5be7cb9d6e107b54b78ce9ca513369996949 |
refs/heads/main | <repo_name>shabna21/shabna_keralatourism_ictkerala<file_sep>/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Kerala Tourism</title>
</head>
<link rel="stylesheet" href="./css/css/style.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="style... | 0e90eb5f2823e13c26d7641e37ad34bc2a2761d5 | [
"JavaScript",
"HTML",
"Markdown"
] | 5 | HTML | shabna21/shabna_keralatourism_ictkerala | a85b7b999a97f826121ab658e354f177a902c686 | 11ce80bd10a9976499104e61fe5bb4dade41b96c |
refs/heads/master | <file_sep>const mongoose = require("mongoose");
const { Schema } = mongoose;
const userSchema = new Schema({
name: {
first: String,
last: String
},
boards: {
type: Array,
default: [],
required: false
}
});
const User = mongoose.model("users", userSchema);
module.exports = User;
<file_sep>i... | e2bcab78dbd3e164cc2cfc26f94e03db328c9b6b | [
"JavaScript"
] | 9 | JavaScript | tlm04070/trello-clone | d8e675396288e0ec3d8504377d04962120ea6812 | e16b901a3c6c406b79d764b18766416a9c26add4 |
refs/heads/master | <repo_name>jefersondeoliveira/JavaWebCodigoAulaDudu<file_sep>/README.md
JavaWebCodigoAulaDudu
=====================
Projeto que esta sendo desenvolvido em sala de aula.
<file_sep>/br.com.javaweb.aula-ejb/src/java/br/com/javaweb/aula/service/IModeloService.java
/*
* To change this license header, choose License Header... | 22c7678b1a3d85f856bf70e280c87e9065e2b9c3 | [
"Markdown",
"Java"
] | 12 | Markdown | jefersondeoliveira/JavaWebCodigoAulaDudu | 7310992051c09890abc905d8a5996e34d9b42f9d | 086b2371f8fe5f9007310d4218725b25953210bd |
refs/heads/master | <file_sep>DROP TABLE IF EXISTS user_roles;
DROP TABLE IF EXISTS menu_dishes;
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS menus;
DROP TABLE IF EXISTS dishes;
DROP TABLE IF EXISTS restaurants;
DROP SEQUENCE IF EXISTS global_seq;
CREATE SEQUENCE global_seq START WITH 100000;
CREATE TABLE users
(
id INT... | b08d7e48115efe9a8442cd19636b2dd4d3bea7d2 | [
"Java",
"SQL"
] | 8 | SQL | codacy-badger/votingsystem-1 | 81ed7230196f993c845a9287bb47c8b0e063d876 | c666a5263966c72b278b2a31451ec9b35906fd93 |
refs/heads/main | <repo_name>bhavya-netizen/Project-28-Plucking-Mangoes<file_sep>/sketch.js
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
const Constraint = Matter.Constraint;
var tree, stone, ground, launcher;
var mango1, mango2, mango3, mango4, mango5, mango6, mango... | ec9d96aed328b5d5454fff36037fbcd680224c37 | [
"JavaScript"
] | 1 | JavaScript | bhavya-netizen/Project-28-Plucking-Mangoes | ad9b9cf5546e3371fca9c66427a0084ef632318c | 885806fa1c4d73d02bb1759c439be8d5f92696be |
refs/heads/master | <repo_name>Allitems/nurseaid<file_sep>/src/main/java/com/nurseaid/security/Security.java
package com.nurseaid.security;
public class Security {
public boolean validate()
{
return true;
}
}
<file_sep>/src/main/java/com/nurseaid/controller/AuthController.java
package com.nurseaid.controller;
import java.util.L... | 07b6cd722e7153d6bd264e2b4f515a22e75718f1 | [
"Java"
] | 5 | Java | Allitems/nurseaid | f1ce1427fce5eea335dc86a8474290b981a531f8 | 022bbb69381088b6ae728c31904ef233eeae5284 |
refs/heads/master | <repo_name>wangsheng332526/myrpc<file_sep>/README.md
看了一段时间dubbox的源码后,写了几个功能完成自己的rpc框架.
整合了spring,用netty通讯,zookeeper为注册中心.
服务提供者用netty发布服务并将服务地址注册到zookeeper,等待调用.
服务调用者在注册中心找到服务提供者的地址,使用动态代理,传递调用方法和参数去调用netty服务端,然后服务提供者使用反射执行方法后将结果返回给调用者
先运行TimeServer.java,再运行Test.java查看执行结果
<file_sep>/fly-demo-myrpc/src/main/java... | 25e3fa43886fb7577e8cb6ada1563c7c06d50fb5 | [
"Markdown",
"Java"
] | 11 | Markdown | wangsheng332526/myrpc | 9060b8766499fdfc1e26a9faa3eedbd7858868f3 | 2b08cca4cb9e24d43319552450ecda9df42cbb63 |
refs/heads/master | <repo_name>alexistbell/QuestionMarks<file_sep>/script.js
let QuestionMarks = str => {
let numberIndexes = [];
let numberValues = [];
for(c in str)
{
if(isNumber(str[c]))
{
numberIndexes.push(parseInt(c));
numberValues.push(parseInt(str[c]));
}
}
if(numberIndexes... | bfc50390587b37d5dfb1695423872e23f9de2244 | [
"JavaScript"
] | 1 | JavaScript | alexistbell/QuestionMarks | 9081ea4a60911216dcf73b8bb7ec9a8cfaf8d4cf | 38d0cf5c337c98c881f078ddc8032bd759ae30ac |
refs/heads/master | <file_sep>public enum Status {
CONTINUE(100),
STOP(101);
private int code;
Status(int code) {
this.code = code;
}
}
<file_sep>public class Test2 {
public static void main(String[] args) {
System.out.println();
Test1 test = new Test1();
System.out.println(te... | 9ce75b731d8c2c7cf7550dcc1755678e6e08cd80 | [
"Java"
] | 2 | Java | ff200037/imooc | 1924eea12c8fb2f8b4bdd8d8547d05ad5386e10c | 5c536f39ddda079c8c036f7dd744d8740ce11ad4 |
refs/heads/master | <file_sep>var express = require('express');
var app = express();
var fs = require('fs');
var bodyParser = require('body-parser')
var compression = require('compression');
var topicRouter = require('./routes/topic');
var indexRouter =require('./routes/index');
// /topic으로 시작하는 주소들에 대해 미들웨어 topicRouter 를 제공하겠다.
app.use(... | 5bb09bbc8fc0a29b0ca466a2f5f83e5d5a8d5b7b | [
"JavaScript"
] | 1 | JavaScript | dydrkfl/nodejs-master | 99303571d41f0aac4be754a0f28d902041a755d8 | af5ce39cd56f83bd667d4defa727303630143378 |
refs/heads/main | <file_sep>package com.logback;
import ch.qos.logback.classic.PatternLayout;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.Layout;
import org.apache.commons.lang3.StringUtils;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import jav... | cf41f7db5061e6eabd8ff25674134c60ebcb7cce | [
"Java"
] | 1 | Java | micah-java/com-spring-logback | 1fd8bcd007e66f0aaecaa72bf3e1d50fa08f989a | 1e8576fb033c70a09ccdeeadae453c20e2784f56 |
refs/heads/master | <file_sep>const express = require('express');
const mongoose = require('mongoose');
const morgan = require('morgan')
const session = require('express-session');
const MongoStore = require('connect-mongo')(session);
const passport = require('passport');
const flash = require('connect-flash')
require('dotenv').config()... | 8455c0190e76696ddf53cd53bf8f0c56860edbe1 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | The4star/eliza | 713bc2223454beb4b75bf9db9087120eacd4d345 | 60c1820062da5cadc795a875f7afc9531f3e185d |
refs/heads/master | <repo_name>rohegde7/javascript-Basics<file_sep>/functions.js
function fun_innerHtml(){
document.getElementById('text1').innerHTML="Function call Success!"
}
function fun_documentWrite(){
document.write("Habibi clear all")
}
function fun_windowAlert(){
window.alert("You just created an alert!")
}
functio... | af1f2de851e5f20221c978b91a3c592455b68969 | [
"JavaScript"
] | 1 | JavaScript | rohegde7/javascript-Basics | e8397927fd12970a6d3f2f12537ff5ada9354a52 | 7d1dfac9c499ba77ec45066d6ad46bf604fdb0bf |
refs/heads/master | <repo_name>lund0n/test-doubles<file_sep>/src/mock-fns.test.js
import React from 'react'
import { mount } from 'enzyme'
import TransformList from './transform-list'
// wraps the function in a call counter
const createMock = fn => {
const handler = (...args) => {
handler.count++
return fn.apply(null, args)
}... | 7f9f41283c28e8367a02ad87e4dbf64a46820214 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | lund0n/test-doubles | 7819411d5d0139e0dfe6c6d6f397c5ce544947a7 | 23ce12d7f47afbde416089286c1224786ce916a0 |
refs/heads/master | <file_sep>describe("dummy", () => {
it("test 1", () => {
expect(1 + 1).toEqual(2);
});
});
<file_sep>import React from "react";
import Slider from "@material-ui/core/Slider";
import { withStyles } from "@material-ui/core";
const EnhancedSlider = withStyles({
root: {
height: 4
}
})(Slider);
export defa... | 2066cfa33b6807be183e8c6d5a1d195e785a5dc0 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 6 | JavaScript | Eylon-sargon/react-list-picker | cc1145493353f01ffb0a3e99e6b2e27e92189908 | 11daaa13c082036fb0e344b30074ca1b3888cffd |
refs/heads/master | <file_sep>package com.demo2;
import java.util.*;
public class demo_hashmap {
public static void main(String[] args)
{
HashMap hm = new HashMap();
Emp emp1 = new Emp("s001","name3",20, 6.2f);
Emp emp2 = new Emp("s002","name2",21, 7.2f);
Emp emp3 = new Emp("s003","name1",22, 4.2f);
hm.put("s001", emp1);//Hash... | 989d342143b36437e2bbb7010f7d997d46c031be | [
"Java"
] | 7 | Java | ilikecandice/TankGame-java | a1027740601263edf2219661af96720ea6f1abf5 | 484e4333b8cf81ee3a5726f6d04c29602d17307c |
refs/heads/master | <file_sep>export class Role {
// cách viết tắt khai bao biến trên TypeScript
constructor(public id: number, public name: string) {}
}
export const ROLES: Role[] = [
new Role(1, 'admin'),
new Role(2, 'moderate'),
new Role(3, 'User'),
new Role(4, 'Support'),
];
<file_sep>import { AppRoutingModule } from './a... | f1f79ceba909a25a8a4007836a2ddcbebe7bc5f9 | [
"TypeScript",
"HTML"
] | 17 | TypeScript | hungnguyenmanh82/angular-helloworld | 10cc446f40c9a0616bcb6f2641618bd3fce39c40 | 0cee2cdd2ef853ff6174f36600cf4739ee15e3fe |
refs/heads/master | <repo_name>hannaliebl/sandramathern.com<file_sep>/portfolio/js/jQuerySlider.js
/* This work is licensed under the Creative Commons Attribution-ShareAlike
* 3.0 Unported License. To view a copy of this license, visit
* http://creativecommons.org/licenses/by-sa/3.0/.
*
* jQuerySlider by <NAME>
* (http://coding-c... | f5bcea4b78e13f7f8b4cf673b1023146c632a30e | [
"JavaScript",
"PHP"
] | 10 | JavaScript | hannaliebl/sandramathern.com | e7eaa64af5f7e1c40c10bcffc4712590bbfd9824 | 07405dd1a43e1c31f7fd45af5e8cecd8ef7ac9c1 |
refs/heads/master | <file_sep>using Microsoft.AspNetCore.Mvc;
namespace LoadGeneratorService.Controllers
{
[Route("probe")]
public class HealthController : Controller
{
// GET api/load/5
[HttpGet("health")]
public bool Health()
{
return true;
}
// GET api/load/5
... | 98f0f2e3c3b3f598143d9e405706234bed1224ba | [
"C#"
] | 14 | C# | destanoglu/LoadGeneratorService | ccf1caa859b339a339e4c6379d46ea3b489ce69c | e36ec26d404de3f32de6c8865de94fc856b8a64a |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package mandatoryassignment;
import java.io.File;
import javax.swing.JTextArea;
import javax.xml.parsers.DocumentBu... | 47c396e4031712f192c8ce93f372ef0170d7729b | [
"Java"
] | 4 | Java | nicaa/MandatoryAssignment-sysint | 6dabf4a252bb446263b59c35c540f129cc43b700 | 07ab1dea3eae1282830224c00894ccc5c7c862ec |
refs/heads/master | <file_sep># battleships
## https://dreadlocker.github.io/battleships2/
<file_sep>import Vue from "vue";
import Vuex from "vuex";
import * as types from "./types";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
// game_grid can go up to 26
game_grid: 10,
alphabet: ["A", "B", "C", "D", "E", "F", ... | bc5a54a85c1e670ab48f4833d401394c40cee5e1 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | dreadlocker/battleships | e0e1722cdf103a963d44557fc330035833c3689c | c93070080178a2437189f40e5590ca5ef804387d |
refs/heads/master | <repo_name>thareUSGS/camera_model<file_sep>/python/generate_isd.py
import json
import pvl
import spiceypy as spice
def find_in_dict(obj, key):
"""
Recursively find an entry in a dictionary
Parameters
----------
obj : dict
The dictionary to search
key : str
The key to find i... | 79219512c960adbf4283c14d150cce02d678161a | [
"Markdown",
"Python",
"CMake",
"C++"
] | 32 | Python | thareUSGS/camera_model | d69bd6be1656f9a17b28a41a196165ef94fc3c03 | 19e77b73030135a8f2dcb9fd2efeae427ed949d6 |
refs/heads/master | <repo_name>xatiamacharadze/MT<file_sep>/src/js/main.js
$(".main-container").mousemove(function(e) {
parallaxIt(e, ".name-container", -80);
parallaxIt(e, ".mt-container", -30);
});
function parallaxIt(e, target, movement) {
let $this = $("#container");
let relX = e.pageX - $this.offset().left;
let relY = e.pa... | b9659bc05bf279753a8f24020c7e13e1fa3ae4da | [
"JavaScript"
] | 1 | JavaScript | xatiamacharadze/MT | 19071271e2ffc431da9f2c7bf03f9755a0c66af3 | 8916035d072a5c253b50a974442ae7e4eee66ae5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.