branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep><?php
$host = 'localhost';
$username = 'Brandini';
$password = '<PASSWORD>++';
$dbname = 'world';
$dsn = "mysql:host=$host;dbname=$dbname;charset=utf8mb4";
$pdo = new PDO($dsn,$username,$password);
$countryName = $_GET['countryName'];
$stmt = $pdo->query("SELECT * FROM countries WHERE name LIKE '%$countryNam... | d27148da0421f8354ea8e65779b9fc2ae91b7946 | [
"PHP"
] | 1 | PHP | BeaTea109/info2180-lab7 | f5e8cc3b15977e9b748025b6b25a56c48157f455 | d1e3d8c8335569c7327c1ab136e7c368b0d19229 |
refs/heads/master | <repo_name>elvis460/git_test<file_sep>/app/controllers/session_controller.rb
class SessionController < ApplicationController
def create
end
def destroy
end
end
| 23b5806dd74e778e76f4ecb7808fb9f2ef163217 | [
"Ruby"
] | 1 | Ruby | elvis460/git_test | b0db3da1bba086d9b3fc7e5f69355e303bf31b04 | 9bc459d28f27c1321256bad70549c01e1d9fb594 |
refs/heads/master | <file_sep>def saluda
puts "hola hola hola"
end
saluda() | 8837a2ea6a79d4acb561ce18e5aa95753b7f847a | [
"Ruby"
] | 1 | Ruby | FMardo77/mi_codigo | 804cafc2e8b8c4605a08b2792116a1ff167d93e7 | 5f70c99115526f28c800198984a7019280477f2d |
refs/heads/master | <repo_name>hanefimercan/PythonUsefulCodes<file_sep>/getSizeOfAnObject.py
from cPickle import dumps
from sys import getsizeof
def getSizeOfObject(obj):
# size of an object in bytes
objectAsString = dumps(obj)
return getsizeof(objectAsString)
# Test
a = {'Mercan': [1,2,3,4,5], 1024: None, 'test':... | 7c8c812ca51641ad8290c116d26bd3d587acd355 | [
"Markdown",
"Python"
] | 2 | Python | hanefimercan/PythonUsefulCodes | f84c0aea3670365d34d36f1dd1691eb51a18db90 | cd145db8e75c4ecf3dbc8acb5a774fae89172e99 |
refs/heads/master | <repo_name>zjw/dkim_verifier<file_sep>/modules/libunbound.jsm
/*
* libunbound.jsm
*
* Wrapper for the libunbound DNS library.
* Currently only the TXT resource record is completely supported.
*
* Version: 1.0.0 (21 November 2013)
*
* Copyright (c) 2013 <NAME>
*
* This software is licensed under the terms o... | 77b46711aecd3d204c6f1866f2f0427ff65facf2 | [
"JavaScript"
] | 2 | JavaScript | zjw/dkim_verifier | 7dd453545fc46caa751579e42ed1aae49b3c7ccb | cb48ceba5325c3176fcc8bd412af476b7e3a58cd |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
namespace ConsoleApplication
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
// app.UseDefault... | d8cdfc9f678e300bc01923bcb55fbb4db4ab665a | [
"C#"
] | 1 | C# | runt18/training-tutorials | de6302c978033a54c7077f8789ff7579fcc2b1dc | 033246b8dcdad72d30ce43525372750292202557 |
refs/heads/master | <file_sep>apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'project-report'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.0'
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version
}
}
repositories {
... | c227ef77b8f561e974703790501b4ad8a6b31f65 | [
"Java",
"Python",
"Ant Build System",
"Gradle"
] | 13 | Gradle | echoGu/TestUI | 2d68a5fe9a68056724e033fbf286f9395553768e | 09e0c18b0e9b787425fd6e72665b2bb22586de76 |
refs/heads/main | <file_sep>#!/bin/bash
#
#RoboCup 2012 sample start script for 3D soccer simulation
#
AGENT_BINARY=apollo3d
BINARY_DIR="."
NUM_PLAYERS=11
export LD_LIBRARY_PATH=./lib
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:makelibs
#killall -9 "$AGENT_BINARY" &> /dev/null
for ((i=1;i<=$NUM_PLAYERS;i++)); do
case $i in
6... | bb65f4a97c8d2631905ca75747372ad97d819c0d | [
"Markdown",
"Ruby",
"Shell"
] | 17 | Shell | Robocup3DChina/ExecutableCode | c3039f3262b939073a45ad0098024b8c36e2cca3 | 9ab24252c8e41b60a3de8c8c511bea00e73ced62 |
refs/heads/main | <file_sep># ICS3U-Assignment-6-CPP-Program
[](https://github.com/Igor-Zhelezniak-1/ICS3U-Assignment-6-CPP-Program/actions)
<file_sep>// Copyright (c) 2021 Igor All rights reserved
... | 829c95f4d644612b8a1fc601cbd50b6bca8001e0 | [
"Markdown",
"C++"
] | 2 | Markdown | Igor-Zhelezniak-1/ICS3U-Assignment-6-CPP-Program | 99f92b134fbf94849d23ec082d2a736f301d510f | 968838149a9d2603de81ade35a1f4fd9d25058be |
refs/heads/master | <repo_name>Abby-Michigan/cass2017_vis<file_sep>/submissions/KingaAnna_Wozniak/EnergyPlot.R
#source("visutils.R")
### create laplacian
createLaplacian <- function( layerN ){
## prepend input N / append output N
layerN = cbind(H0 = 2,layerN, Hn = 1)
layerN = layerN[ layerN != 0 ] ## remove all zero layers
... | 0f33be2179d5f0356864d56b026c8941ef32b93c | [
"Markdown",
"R"
] | 6 | R | Abby-Michigan/cass2017_vis | c37b37e66b2e1a457050aed3cb3932272be6232c | 4914362676e287ee2f029bd3c109c42958a708a7 |
refs/heads/master | <repo_name>tattletaler/probable-octo-journey<file_sep>/cometname.py
#PROG: ride
"""
ID: vishnui3
LANG: PYTHON2
TASK: test
"""
def cometride():
cometname,groupname = input('enter a comet name comsisting of letters: ').split(" ")
cometname.lower()
groupname.lower()
l = len(cometname)
le = len(groupname)
... | c6e22ac4461eb5fdcb1a7674877bfb72b672c7e8 | [
"Markdown",
"Python"
] | 9 | Python | tattletaler/probable-octo-journey | 60a5ba0c95aa92430f286133428f50c4489ce5c1 | b791750c78427fd6e6e40234c1479c0a5c18c4eb |
refs/heads/master | <file_sep>security:
@gosec --exclude-dir=node_modules ./...
@echo "[OK] Go security check was completed!"
.PHONY: clean
clean:
@echo Cleaning project ...
@go clean
@rm -rf build/cmd
@echo [OK] Done!
.PHONY: build
build: security build-binary
build-binary: ./cmd/*
@echo Building lambdas ...
@for dir in $^; d... | 3e00dfba4adf0c1a13446da94dff6b60851bef1b | [
"Markdown",
"JavaScript",
"Makefile",
"Go Module",
"Python",
"TypeScript",
"Go"
] | 29 | Makefile | singlewind/sampleweb | d1b688c79e56470da5d2cbfa2c9ce6cd45501a43 | 33a6ed0f1588bcd42a909ff7d4623df8e3b01d89 |
refs/heads/master | <file_sep>/* ###################################################################
** Filename : main.c
** Project : prueba_KL25Z
** Processor : MKL25Z128VLK4
** Version : Driver 01.01
** Compiler : GNU C Compiler
** Date/Time : 2014-07-08, 13:59, # CodeGen: 0
** Abstract ... | 36902f55a48056d2e6f71ec1fd6713d530a10f1b | [
"C"
] | 1 | C | gilrieke/TFC_KL25z | bf30a9847bbaaafcfe07941fa0da014bb34029c3 | 90e8ac1599d27112fefce5a5ff87d1d37b7a9579 |
refs/heads/master | <repo_name>GaiusJuliusWtry/ND2_Reader_Wtry<file_sep>/README.md
# ND2_Reader_Wtry for windows only
## Import library
``` python
from ND2_Reader_Wtry import nd2reader
```
## Import ND2 file
``` python
filename = 'path\\name.nd2'
nd2_file = nd2reader.ND2_Reader(f'{filename}')
print(f'dimension = {nd2_file.frame_shape} * ... | b945c5c3ed26e17dc044961f12c9cc7ee607bc7f | [
"Markdown",
"Python"
] | 3 | Markdown | GaiusJuliusWtry/ND2_Reader_Wtry | 99e13be8905ff7df1b7b6fc555a7e7e4b0bdab99 | cf56a531d533b4298be0e0073795b20e2a922904 |
refs/heads/master | <file_sep>Welcome to the Coordinates Module!
This module deals with anything that has to deal with coordinate planes, such as slope, generating
coordinate planes, etc.<file_sep>"""Coordinates Module, made by <NAME>."""
"""To Do: Abs. Value, Perpendicular/Parallel, Exponents, Inequalities, Geometry"""
__author__ = "<... | f0a2bb0100068f65dfa5fe58d0f889336b593c6d | [
"Markdown",
"Python"
] | 2 | Markdown | JKodner/coords | 796ea532e4083db2a070f77c6c4b007360c9974c | a74470abb21e86f27a20b21ea6e6fe5b570ba6d7 |
refs/heads/master | <file_sep>#include <iostream>
#include <fstream>
#include "lab2.h"
using namespace std;
int main()
{
int k, realA, realB;
double as_a,as_b;
string start;
Game score_cal, rate_cal;
ifstream inFile("file.in",ios::in);
ofstream outFile("file.out", ios::out);
inFile >> k >> realA >> realB;
outFile << realA << "\t"... | 7eee1e3f004cbcb87002a75d471a06b037d17cfc | [
"Markdown",
"C++"
] | 4 | C++ | VoonShin/lab2 | 0da0a8d039e133d8bb171f7f57a588ff2a54d9d5 | bf9186e82b53b6f1c04169b7508456752d317e63 |
refs/heads/master | <file_sep>'use strict';
/**
* Code 201 Lab 02 Ask user for their name.
* Keep tally of correct answers the user gives to questions.
*/
var name = prompt('Hi what\'s your name?');
var tally = 0;
var QUESTIONS = 7;
tally = aboutMeQuestions(tally);
tally = question6And7(tally);
alert('Thank you for playing my About... | af35c7998de50e6bc5fcae52bdb52c44c39ffe85 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | biniamsea2/code-201-lab-02 | 07ebb3c96e2329b73f2c10adf8fac5197f3735a4 | a61b779dfb348eaca0f479a010bfc868767a2a2a |
refs/heads/master | <repo_name>zuoshangjiaoyu/jqkt<file_sep>/README.md
# jinqiuzhiku
金秋课堂APP
<file_sep>/src/components/tabBar/tabBar.js
import React, { Component } from 'react';
import {View, Button, Text} from 'react-native';
<file_sep>/src/components/search/searchInput.js
import React, { Component } from 'react';
import {View, Text, Im... | c18306d5e6edc2ca30710011d724bf569b97ee99 | [
"Markdown",
"Java",
"JavaScript"
] | 15 | Markdown | zuoshangjiaoyu/jqkt | c89b434a8e753644fe2037ea2bfaaeeea1e37430 | 3a5e0577a551fe91efc5ab8b4421e6ab1d5ab479 |
refs/heads/master | <file_sep>using System;
namespace ConsoleApp1
{
public class MatrixProblem
{
public static int days = 0;
public static void Main(string[] args)
{
int[,] test1 = new int[4, 4];
int[,] test2 = new int[10, 10];
int[,] test3 = new int[20, 20];
... | 9902cad4ee4ee198a7f464b802e688b6666d6dc8 | [
"C#"
] | 1 | C# | rafael-hs/2DmatrixProblem | 2ad8860cf352fc45a9d804540ef8d555dc54cac6 | 20a3f0c0930c7de0944364abe02587db71e90293 |
refs/heads/master | <repo_name>cambieri/ironika-calosso<file_sep>/fab_deploy.sh
source /home/workspace-django/virtualenvs/ironika-calosso/bin/activate
cd /home/workspace-django/projects/ironika-calosso/calosso/
fab live prepare_deploy
fab live deploy
deactivate
<file_sep>/calosso/apps/main/migrations/0005_auto__add_field_galleria_homepage... | 43783280acdf6eae743d92135a0255eb704fa1af | [
"Python",
"Shell"
] | 8 | Shell | cambieri/ironika-calosso | 3466da071320ed2c1f204fed4642812939d42240 | 2ae2dee1158f1a83fff82c58d1b144ebc235df6b |
refs/heads/master | <file_sep>package biz.pdxtech.daap.ledger.util;
import io.protostuff.LinkedBuffer;
import io.protostuff.ProtostuffIOUtil;
import io.protostuff.Schema;
import io.protostuff.runtime.RuntimeSchema;
import java.util.concurrent.ConcurrentHashMap;
/**
* Created by bochenlong on 16-11-3.
*/
public class MessageCodec {
... | 6100ffb8f6ce961782bfd43ffe9e19bb9a13b049 | [
"Markdown",
"Java",
"Maven POM"
] | 4 | Java | PDXTechnologies/daap-ledger | dc0e9ac18a1b86d4041ecf94247e4d77abee2611 | d9b2c5f4fb1437ec1e10e58c01c1de2987d378c7 |
refs/heads/master | <repo_name>wlingxiao/Flasky-FrontEnd<file_sep>/src/app/app.js
import angular from 'angular';
import '@uirouter/angularjs'
import 'bootstrap/dist/css/bootstrap.min.css'
import apiConfig from './api.config'
import routesConfig from './routes.config'
import './home'
import './login'
import './signup'
import './user'
im... | cad07a139752232c1d1a2d9e43192e6c7d6b7c68 | [
"JavaScript",
"Markdown"
] | 20 | JavaScript | wlingxiao/Flasky-FrontEnd | 68f67e9ed014e11de0da9fd86debce4273fa34bd | db2cb2701ca9bfaba2fe189977535d000bec4e19 |
refs/heads/main | <file_sep># ab_log_inserter
##Create db and table
```
CREATE DATABASE ab_log_db;
CREATE TABLE weather (
w_id serial not null primary key,
temp_val float NOT NULL,
hum_val float NOT NULL,
w_date timestamp default NULL
);
```
<file_sep>package main
import (
"fmt"
"strings"
"net/http"
... | 3b02dc297de5215ad134afa2f6ee33544cd0c174 | [
"Markdown",
"Go"
] | 2 | Markdown | enzo1920/ab_log_dht22 | b0333ad4bb1c298fee3fe63cb83586007b569009 | c89fb56820ed1672692cd06457519731cfe20eed |
refs/heads/main | <file_sep>require 'serverspec'
# Required by serverspec
set :backend, :exec
describe file('/usr/bin/go') do
it { should be_executable }
end
describe file('/usr/bin/gofmt') do
it { should be_executable }
end
describe file('/usr/bin/godoc') do
it { should be_executable }
end
describe command('go version') do
i... | 4b034e3f529e0c3ab46e61a65b4fa07cc49def4a | [
"Ruby"
] | 1 | Ruby | juju4/ansible-golang | cd0cc0718b79b8e6e332e829ef30ad033813eb23 | b0674a29d23ce24c33885ac787b46e1350bc26f0 |
refs/heads/master | <repo_name>AlaricZeng/AlaricLightStory<file_sep>/constants.py
# Uploaded image path
UPLOAD_IMG_FOLDER = 'static/images/'
UPLOAD_ZOOM_IMG_FOLDER = 'static/images/thumbnails'
UPLOAD_STORY_FOLDER = 'static/stories/'
ALLOWED_IMG_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
ALLOWED_STORY_EXTENSIONS = set(['... | 04c44054ca6e7a554fdbba0bdb99403192cb454e | [
"Markdown",
"SQL",
"Python",
"JavaScript"
] | 8 | Python | AlaricZeng/AlaricLightStory | 124520611098e808c8865bf629e7f8870d103d9c | 115a59c7968be605bf3afa72d983f0feed694918 |
refs/heads/master | <file_sep># Starting with Selenium-Java
<file_sep>package Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
public class SignInPage extends BasePage{
public SignInPage(WebDriver driver) {
super(driver);
}
public AuthenticationPage newUser(){
driver.findElement(B... | 7598b07b83a7b962596434535d674ec7bd5b3b13 | [
"Markdown",
"Java"
] | 2 | Markdown | robertoferraz02/Testing-with-Selenium-and-Java | c069a1734b33954dcf8cceed6421b8f2cb3a88b1 | f611fc96cc24ae6682884ec70bf98594ad33d5f2 |
refs/heads/master | <repo_name>patsonm/Algo_Python<file_sep>/dynArray.py
import ctypes
#implementing a dynamic array
class DynamicArray(object):
def __init__(self):
self.n=0
self.cap=1
self.A = self.make_array(self.cap)
def __len__(self):
return self.n
def __getitem__(self, k):
if not 0 <=k < self.n:
return IndexError(... | 8d2d804037a099afe364c630df1e88da56b80ec5 | [
"Python"
] | 1 | Python | patsonm/Algo_Python | 7cfda2b007747d9ef591ea1a4c36f8144935c9c3 | eff187c834416ba29ef357cf16d3de6e0284b0aa |
refs/heads/master | <file_sep>//This code is from TechTalk.SpecFlow/StringExtensions.cs
//The pre-release version of specflow 3 had these as public and we started using them in our testing.
//They were set to internal in Specflow commit #1408
using System;
namespace SeleniumSpecFlow.Classes
{
public static class StringExtensions
{
... | 72ba7be5a13424c7782178b5b4553834c1245407 | [
"C#"
] | 7 | C# | Mchalek8/SeleniumSpecFlow | 8a6d2f0dd02ba135681a9cec23d65d46b1fb4405 | 03330078579b7e0cb982be9c84a289bfd133e92c |
refs/heads/master | <repo_name>sauravsrijan/collective.collectionfilter<file_sep>/src/collective/collectionfilter/testing.py
# -*- coding: utf-8 -*-
from datetime import datetime
from datetime import timedelta
from plone import api
from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE
from plone.app.robotframework.test... | a7c930d1303d43b297f1978ba5405b2ba3538d24 | [
"Python"
] | 2 | Python | sauravsrijan/collective.collectionfilter | 22fe68309e6a4cd056dea44a84796d9477464cc1 | c4ca8ee7d4457b47ecbccea236d67da40f735064 |
refs/heads/master | <file_sep>import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import argparse
LOGDIR = "/tmp/mnist_tutorial/"
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)
def weight_variable(shape):
'''Create a weight variable with initialization'''
return tf.Variable(tf.truncated_... | 7c931ad5555bba1275f6ec02bc372371ca6a4a35 | [
"Text",
"Python",
"R"
] | 18 | Python | jeffreyjeffreywang/Applied-Machine-Learning | 1dcb4a304908e065c3b737ce4e025be1b5777b92 | 7f869c76a23c4349d13e459789d1801139d612c4 |
refs/heads/master | <file_sep>FROM python:3.6.2
# https://hub.docker.com/r/frolvlad/alpine-python3/
RUN apt-get update && \
apt-get -y install can-utils && \
pip install python-can
#ADD scripts/vcanup.bash /vcanup.bash
#RUN /vcanup.bash
<file_sep>#!/bin/bash
# install can-utils
git clone https://github.com/linux-can/can-utils... | 9a58ffb3e746fb73e8371caef082fe995616fb01 | [
"Dockerfile",
"Shell"
] | 3 | Dockerfile | folkengine/docker-can | c875e6007ecdc7ae56be9b4da30d8aa14e7ef97c | e8a2d0e959f481d5213d1d6d90fd02d8c45b6951 |
refs/heads/master | <file_sep>$(document).ready(function(){
$(window).scroll(function(){
var wScroll = $(this).scrollTop();
$(".logo").css({
'transform' : 'translate(0px, ' + wScroll/4 +'%)'
});
if(wScroll> $(".product-section").offset().top -($(window).height()/1.3)){
$(".prod... | 7287933defe5f0d9b759bd20d87a1fd73b28d52d | [
"JavaScript"
] | 1 | JavaScript | bizhe/Parallax-Design | c7f0feb8a5ba9ae45f04edf9cad325a65c421090 | 1fd66a4598e6c4fbacbddaa36b2c928076800fd5 |
refs/heads/master | <repo_name>falkemedia/pdf-extractor<file_sep>/src/Exceptions/FileDoesNotExist.php
<?php
namespace falkemedia\PdfExtractor\Exceptions;
class FileDoesNotExist extends \Exception
{
}
<file_sep>/src/Extractor.php
<?php
namespace falkemedia\PdfExtractor;
use falkemedia\PdfExtractor\Exceptions\BinaryNotFound;
use Inte... | 321e2d720aa942003a0528d6c2b7ddbc20de6c53 | [
"Markdown",
"PHP"
] | 8 | PHP | falkemedia/pdf-extractor | b6f9cd16444ee932df7aecdcc9b48499958ed280 | f8fba7d7cf2b8d27b0b98bd6879a5610daac2c35 |
refs/heads/master | <file_sep># CsharpStuff
C sharp apps I developed
WinFormsApplication1 - click on form changes the size and color of the form randomly
<file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Thre... | d1c7e6152657691bde8e44d55fbcdc7d6e840c9f | [
"Markdown",
"C#"
] | 2 | Markdown | megas333/CsharpStuff | a35bbe7c629e6c8f26bec6326b4782b9316d4559 | 045f128e6625a61bf60620ea3b3be3b49c6fe27c |
refs/heads/master | <file_sep> ///
/// @file constructor.cc
/// @author Islotus(<EMAIL>)
/// @date 2016-06-08 18:18:52
///
#include <iostream>
using std :: cout;
using std :: cin;
using std :: endl;
class point
{
public:
point ( int x, int y ) //有参构造函数
{
cout << "对象创建时构造函数被自动调用" << endl;
_xPos = x;
_yPos = y;
}
vo... | a8a2aee9020806e41f0828f0f6e7b2741314c151 | [
"C++"
] | 10 | C++ | Islotus/08062016 | 4d72f8d70c8c1091b443d771578a4f31efb27ccd | 9b8506a7b1e6b90573f928cb4d078fd2fe885b80 |
refs/heads/master | <file_sep>rootProject.name = 'serveranalytics'
<file_sep>gradle --daemon clean test distZip -x processResources
<file_sep>package de.tlongo.serveranalytics.test;
import org.hibernate.annotations.Type;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
i... | ff8096466a3b5fcfbd96e25c7fc2e39a6c938c4c | [
"Markdown",
"INI",
"Gradle",
"Java",
"Shell"
] | 9 | Gradle | TomasLongo/logfileservice | d201a9acb1028794587d62e31baaf8a3c8ab10c7 | b33eba523dbb0a6e567c5ab33094c6890b83acfd |
refs/heads/master | <repo_name>heathzj/70M<file_sep>/Drivers/External-Peripherals/oled_c1.h
#ifndef OLED_C1_H
#define OLED_C1_H
#include "define.h"
#include "TCPIP Stack/TCPIP.h"
#define I2C_nLOLOCK 0x01u
#define I2C_nALC 0x02u
#define I2C_nMUTE 0x04u
#define nLCDLEN 40
#define nBYTE_COMPARE 0
typedef struct {
const char* pcTitle;
ch... | f73a2d27df89b0bf604b6a37bc58b92ee119bb1a | [
"C"
] | 7 | C | heathzj/70M | 0cb18c7809d70481fc5dbe9e8ec283b5f18f43dc | 0c11d28d59af94a95403c11fb96dceed905b514b |
refs/heads/main | <repo_name>rcottrell0517/thermalConstantSearch<file_sep>/fetchTconstants.js
const result = document.getElementById('result')
const filter = document.getElementById('filter')
const listItems = []
console.log(listItems)
getData()
// gives us what is typed in
filter.addEventListener('input', (e) => filterData(e.target... | d8dad9fdd8f09cc64b5f4f4bf3a3d47bbecea6c9 | [
"JavaScript"
] | 1 | JavaScript | rcottrell0517/thermalConstantSearch | fe9741400c17ce87898d61e305b6e5c9eb17c749 | 9f3e15df74dc0dabe88a023750d404bf0bca4854 |
refs/heads/master | <repo_name>BilalRaja97/Sudoku_Solver<file_sep>/Sudoku_Solver.py
# <NAME>
import copy
#Create Sudoku class
class SudokuGrid():
def __init__(self, source_grid = None):
# whenever we create a sudoku grid this will start#
if source_grid is None:
# create these 'nine lists'
... | 9d80cf6a20ae1fb3eebd6f8b560bc175d052554f | [
"Markdown",
"Python"
] | 2 | Python | BilalRaja97/Sudoku_Solver | 1ac92a83bfb0a7f1ec65499febcda35813048f62 | 78991010131883bd39d5297332cfd5177dcfd7e5 |
refs/heads/master | <repo_name>samwu4166/LibraAssist<file_sep>/app/src/main/java/com/writerwriter/libraassist/AccountListAdapter.java
package com.writerwriter.libraassist;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
... | c21b2214f4c84b0bb5ace037998cd7435afd1284 | [
"Java"
] | 11 | Java | samwu4166/LibraAssist | c9a2e417e5fd2d6998584ac8c4ddc0f3152596f5 | 4d2a2ea5faa0e2ce08e99cf21e7399246d64df0f |
refs/heads/master | <file_sep><?php
/**
* Basic_MySqlManager_Service class file.
*
*/
ClassLoader::loadServiceClass('basic.abstract');
/**
* MySql connect exception
*/
class MySqlConnectException extends Exception {}
/**
* MySql query exception
*/
... | d863db604b82437eded66fed26f9d02ca9977ee9 | [
"JavaScript",
"PHP"
] | 23 | PHP | deniskucher/googlemaps | 29cefe62acfe54d2f2f414c9992bb4ec222ab33c | bac93455ac2f83b9b24d6d90596424fa39637432 |
refs/heads/master | <repo_name>leaffm/ParseAppsScript<file_sep>/README.md
Helps your Spreadsheets interact with Parse.com.
## Quickstart
The Google Apps Script gallery is being finnicky, so for now, this is the easiest way to get started:
1. Copy `parse.gs`.
2. Create a new Google Spreadsheet.
3. Create a new sheet and make sure it is ... | 347dade80c0069d0c75a194d58253b2ed5483768 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | leaffm/ParseAppsScript | 77634611e2097e9b8b3d49139c72c674f0895512 | 5c70cb5b961b013a08753c616117c7e523563350 |
refs/heads/master | <repo_name>linsudeer/note-source<file_sep>/source-zh/src/com/servlet/demo/listener/MyContextLinstener.java
package com.servlet.demo.listener;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import j... | e4c3c02cd2b3709c4b8a3d77b49ba588a702cc31 | [
"Java"
] | 2 | Java | linsudeer/note-source | 38e646e2e86a78a6ac76cf40cf8bfd4cbfbff471 | e9ca210cdc8c9771e7c249d322167860ca14caab |
refs/heads/master | <file_sep>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import datetime
import subprocess
from flask import flash, redirect, url_for, request
def error_cmd():
flash("Only show / traceroute / ping / whois / help commands are allowed !")
return redirect(url_for('bird'))
def launch_cmd(final_cmd):
try:
... | 334ce8989b20bf68bdc8e87ef993e4c331138f7b | [
"Markdown",
"Python",
"HTML"
] | 6 | Python | nicolasvion/birdy-src | 0f06d9a5e8f6ba96346c954958e3af94b8824372 | 371a14022564cfc48dd7de56c774bac878ec4495 |
refs/heads/master | <file_sep>import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'
//路由
import Message from './views/message.vue'
import Search from './views/search.vue'
import Me from './views/me.vue'
import Home from './views/home.vue'
import pullToRefresh from './dir... | d3e2aebbcb9b445bffd94f3b4739e6457b16f90a | [
"JavaScript"
] | 2 | JavaScript | a364514921/workplace-vue | 5b7f4ebf40328d9026317ef49a9c20f615c652ed | efb7a724e3479871d7a28c85b46e0a543cb05869 |
refs/heads/master | <repo_name>kotatsumuri/otenkikun<file_sep>/wdata.py
import serial,time
def write_data(ser,status):
#print(hex(status))
ser.write(chr(status).encode())
#time.sleep(1);
<file_sep>/rand.py
import random
import time
import sys
while True:
for i in range(208):
print(chr(random.randint(33,126)),end="... | 8cfbcd08c96d84a5d3159bb5ffced9710b247603 | [
"Python",
"C++",
"PHP"
] | 9 | Python | kotatsumuri/otenkikun | 2a59db34eb3b33388a5f0c79e872372dad2ecd5e | 581d761c3740e834dc7c4c80b5a8ee7d60765695 |
refs/heads/main | <file_sep>package main
import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/x509"
"encoding/pem"
"fmt"
"os"
)
const (
PRIKEY = "private.pem"
PUBKEY = "public.pem"
)
func main() {
// 生成公钥和私钥
buf, err := readKeyFile(PRIKEY)
if err != nil {
// 私钥不存在 生成并保存
privateKey, _ := ecdsa.GenerateKey(el... | e35e5ba3d64aa9f673988591f32a5e504e983f1d | [
"Go Module",
"Go"
] | 2 | Go | xushiwang/license | c3ba3250b8afadd9968fa30e37f22e1ef311c35a | 0d4cebe91788a7c5ffd982e3bf2eedf02e93defc |
refs/heads/main | <file_sep>package com.example.rimodesignpart;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class LoginActivity extends AppCompatActivity {
private Button l... | 1cc38ebcad1f33c56b148692e607d067fb1eb7ef | [
"Java"
] | 1 | Java | MdDoyalBabu/RIMOwalletProject | b4dabb1c92c9057f7f2c8b8dd99fc220a1f3895c | bdeddd61d67a3f32f0a52e86854ddf5e8352e9f2 |
refs/heads/master | <repo_name>EtsSimon9/BoardPro<file_sep>/BoardPro/src/map/ComposantMap.java
package map;
import utilitaire.Images;
/**
* classe abstraite de composantes contenant les proprietes propres a une map de
* celles-ci
*
* @author <NAME>
*
*/
public abstract class ComposantMap implements Comparable<ComposantM... | d8d825c7f8ebc9b8651acf9e12dd034ccfb4c9e9 | [
"Java"
] | 16 | Java | EtsSimon9/BoardPro | 39185ea268e86f3138f97865fc08cbe12ef44926 | 58c1ea46d67b0c6be238ec9fc0c7579dbbb6305b |
refs/heads/master | <repo_name>chiranthsiddappa/ProjectEuler<file_sep>/Problem34.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package projecteuler;
/**
*
* @author Chiranth
*/
/**
* 145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
*
* Find the su... | d9f48d376bb7e6b9e41fb0017692233c6464ef1b | [
"Ruby",
"Markdown",
"Java",
"Python",
"C"
] | 38 | Java | chiranthsiddappa/ProjectEuler | 7fa22c48d38333cb1ac2fa07e42fc4d8334809a9 | 5d753b8c19b84edf126b87d852102f5cdceadf6b |
refs/heads/master | <repo_name>sreeyushebusiness/devopscloudxlab<file_sep>/HelloWorld.py
print('Hello World')
print(3+4)
| 9f5fefc37828bbbe1ec9521dc38829f55c3dba6a | [
"Python"
] | 1 | Python | sreeyushebusiness/devopscloudxlab | 39476a52d0affb80e090a1b87e217ba5ab8f445c | 9e86bb96d3de9fdd711b7ed33cce4eef030a160a |
refs/heads/master | <file_sep># Palindrome
week2-day-1 Palindrome excersice using string and list objects
<file_sep>################################################################################
# hi. This program plays a game inspired by the TV show "BigBang Theory".
def cleanS ( string ):
cleanS = string.strip() # ... | d94868aff7c3e33bf2b02ec82707ad870b4e475b | [
"Markdown",
"Python"
] | 2 | Markdown | carloserodriguez2000/Palindrome | 28c2672d011605e01f564f6196dcb7ef3075fabf | 22a953eaa83c3c53d882022d82a8a744bfeacdc6 |
refs/heads/master | <repo_name>SHIHUAMarryMe/opengl_demo<file_sep>/transform/main.cpp
#include <cmath>
#include <iostream>
#include <glad/glad.h> // must include this before glfw(#error OpenGL header already included, remove this include, glad already provides it);
#include <GLFW/glfw3.h>
#define GLM_FORCE_CXX14
#include <glm/glm.hpp>
... | e930cc7c6c3fa034ec4c53c770b8fec91c26d604 | [
"Markdown",
"CMake",
"C++"
] | 22 | C++ | SHIHUAMarryMe/opengl_demo | 7e60c0c71c343191e25c49a381251b693e4b2a79 | 40828d20a3f0a138ffe5df9e59a5bc639039af36 |
refs/heads/master | <file_sep>import tkinter as tk
import sqlite3
import tkinter.messagebox
HEIGHT = 300
WIDTH = 400
database = sqlite3.connect('YourPlan.db')
c = database.cursor()
c.execute('''create table if not exists list
(contain varchar(50) primary key)''')
database.commit()
#---------------------运行所需函数--------------... | 70e7fa4a6ca193aacc5e9606ab0feff3e9eebc31 | [
"Python"
] | 2 | Python | Wb-Alpha/YourPlan | 382d2b4d872ac7dc88bd7f307c101c89c9448363 | b38c2abac29a7377ec311bb3f7a1e65f6492652f |
refs/heads/master | <file_sep>const path = require("path");
const config = {
api: {
port: 3000
},
timeout: 30 * 1000
};
module.exports = config;
<file_sep>const Router = require("express").Router;
const ws = require("../libs").ws;
const sockets = ws.sockets;
const router = Router();
router.post("/create", (req, res) => {
co... | b486cd3a75d6879ebecd7fc80a29a2cf39b4288b | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | VincentLinsanity/chatroom-server | 119161727bf6b394058e4a1cc881e8b2a5fb0918 | d6bddecd3f34a83a48fbeeff09ac6a2dcca7c1ec |
refs/heads/master | <repo_name>forki/Gjallarhorn<file_sep>/samples/WpfSimpleApplicationCSharp/Context.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Gjallarhorn;
using Gjallarhorn.Bindable;
namespace WpfSimpleApplicationCSharp
{
internal static class Conte... | e0a33254a85e51d8fa2a8dac454eaa6fc0ab8d2a | [
"C#"
] | 1 | C# | forki/Gjallarhorn | 9bfc49c6af0dfa12c09fc5fb90f066b5f186f2cd | ed1f88e87f226117290970a7392dc83a43687a4e |
refs/heads/master | <repo_name>mailbackwards/tt_imgfeed<file_sep>/requirements.txt
beautifulsoup4==4.4.1
feedparser==5.2.1
Flask==0.10.1
gunicorn==19.3.0
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
Werkzeug==0.11.2
wheel==0.24.0
<file_sep>/app.py
from flask import Flask, render_template
import feedparser
import random
from bs4 import ... | 729cf9e7dfd1d75758842ee9cc840753a8c21521 | [
"Python",
"Text"
] | 2 | Text | mailbackwards/tt_imgfeed | ff2ea576b75af9654f4f9ebdb531f7c58306c4b0 | 4e88c0d6b19aed4e4577014c112b0096c4bcaf86 |
refs/heads/master | <file_sep>## React hot reload v3 with react-router v3 with redux
Does hot reload work? **YES**
Does time travel work? **NO** (no router state)
Can child component access router state with connect? **NO** (no router state)
Note: There is no router state in Redux store. Breaks time travel debugging when the route has b... | f185fcd8dc57a9880e2d6fa71d11f69e738302f1 | [
"Markdown",
"JavaScript"
] | 13 | Markdown | supasate/react-hot-reload-v3-scaffold | 5685c12e5a80215dcc8756e409fdea3d3266b5ff | 0d073b422192691a6795bbfe2d16edd151c704b5 |
refs/heads/master | <repo_name>orestislef/Techblogproject<file_sep>/app/src/main/java/com/orestislef/techblogproject/MainActivity.java
package com.orestislef.techblogproject;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.... | 4e7260692ed031ed7b6111528be7116d429e8a68 | [
"Markdown",
"Java"
] | 3 | Java | orestislef/Techblogproject | c9a0eaea0c89eed30c2513b28b338d438069d98a | 547d243488307b16856c601278a3582892bcb4a0 |
refs/heads/master | <file_sep>// https://codeforces.com/contest/520/problem/B
// https://codeforces.com/contest/520/submission/17434691
#include <iostream>
using namespace std;
int main() {
int n, m, CNT;
cin >> m >> n;
for (CNT = 0; n > m; (n&1) ? n++ : n>>= 1, CNT++);
cout << CNT + (m - n);
return EXIT_SUCCESS;
}<file_sep>// http... | 5608723d4679080cf88d7ed25b10224e508e99a2 | [
"Python",
"C++"
] | 429 | C++ | AndreiMuntea/Contests | f76b00d36ce737a1921bdca946bc30eb476dca14 | 1a32e01f4ea19055529cb8206faed26381ef00b8 |
refs/heads/master | <repo_name>priyanshujain/STARTX2016<file_sep>/SRTX16E.cpp
/*
Author - <NAME>
*/
//#include <atomic>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <cassert>
using namespace s... | 81b7d62620ce539eac0cbb2ae9cb912b87effd98 | [
"C++"
] | 4 | C++ | priyanshujain/STARTX2016 | 529843216100c5a652d294156f553239735b7358 | 4388bc4ffe9357b4af94cef43f29cde76f0913e5 |
refs/heads/master | <repo_name>zaritskiy/shop<file_sep>/main.js
var http = require('http');
var express = require ("express");
var bodyParser = require ("body-parser");
var fs = require('fs');
var sticker = JSON.parse(fs.readFileSync('./sticker.json'));
// console.log(sticker);
var app = express();
app.use(express.static(__dirname + '/pu... | 36d10ea645250ff4392d599eb83e5860c0181ab6 | [
"JavaScript"
] | 7 | JavaScript | zaritskiy/shop | ff17c981c5057cfb9c83232bc6630a22e2667880 | 8a8c917b230781e21a4045d6b9d0198aa121f62e |
refs/heads/master | <file_sep>#include "allocator.hpp"
#include <cstdlib>
#include <cassert>
#include "utils.hpp"
void* detail::allocate_aligned_memory(size_t align, size_t size)
{
assert(align >= sizeof(void*));
assert(is_power_of_two(align));
if (size == 0) {
return nullptr;
}
void* ptr = nullptr;
in... | c4f3c224837fe2d808ee175ee0bb108d04f5ce37 | [
"CMake",
"C++"
] | 9 | C++ | marciso/skip_list | 164d2a1a91a9b8a4d3e6bbc08b4bfbdbe4473666 | 8eec2c4f7a78198da49d54b79b6fb9e1ed4330d0 |
refs/heads/master | <repo_name>Dauta/Nebula<file_sep>/src/nebula/player/Glass.java
package player;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Glass extends JPanel implements ActionListener
... | 879f1ad15dcf09462ce40a3c8d911aa4931c2f9f | [
"Markdown",
"Java"
] | 5 | Java | Dauta/Nebula | a56e0a026e6ddcce286d4c7640c946f65c66e9d3 | 8b0c416113eff6839dcc334a2eb420799694d6f9 |
refs/heads/master | <file_sep>Game2048.prototype = {
constructor:Game2048,
init:function(){
this.score = 0;
this.arr = [];
this.moveAble = false;
$("#score").html("0");
$(".number_cell").remove();
this.creatArr();
},
creatArr:function(){
var i,j;
for (i = 0; i < 4; i++) {
this.arr[i] = [];
for (j = 0; j < 4; j++)... | 99681464a299161574de0d20fab83578136aaa1b | [
"JavaScript"
] | 1 | JavaScript | hao302tx/2048- | 78cdac7492c4cec0152d5a1e8fcca3abb348530a | 0be8f70ba0c02ebc1315af82a26529e60fba8baf |
refs/heads/master | <repo_name>peterlpt/AdMonitor<file_sep>/README.md
# AdMonitor
以对业务实现层最少侵入为原则,在SDK层实现对Android原生广告View的曝光监听上报、点击监听上报,做到业务层只需调用统一注册方法告知SDK层该View为广告控件,剩余功能逻辑由SDK层内部完成。
功能实现细节见:[Android原生广告曝光点击监测实现](https://ptlpt.gitee.io/android-ad-monitor/)
<file_sep>/app/src/main/java/com/peter/admonitor/activity/MainActivity.java
packa... | f6d80283ff6a79982e3f6e0dab26c92fd225ae94 | [
"Markdown",
"Java"
] | 2 | Markdown | peterlpt/AdMonitor | 9ecc305e4ea6bb446b37c25ae4ed3b8d3760d87c | 8d832e94d01aed0cd3cd802d16dd9ef2f8255e24 |
refs/heads/master | <file_sep>package com.slamtheham.slampackage.commands;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import com.slamtheham.slampackage.utils.Utils;
publi... | 4f6eaf2a61cc6a889b73588bf777f991c559f172 | [
"Java"
] | 2 | Java | IamWTbro/SlamPackage | 92e20ef0a868bc9d04ec2d311ed3b73f52fdb661 | 330df0002a13863b9a31aeff880a9582efb1b901 |
refs/heads/master | <file_sep>#include<stdio.h>
int main(){
int i,n;
int large,secondLarge;
int arr[20];
printf("Enter Size of Array :\n");
scanf("%d",&n);
printf("Elements are : \n");
for (i = 0; i < n; i++){
scanf("%d",&arr[i]);
}
for(i=0;i<n;i++){
printf("Elements Are Arra[%d] = %d\... | e21950367b1da7d13e51ff8f53ae686bed881a12 | [
"C"
] | 16 | C | udamadu11/DATA_STRUCRURES_ALGORITHM_TUTORIAL | 744bbd0217911842978236724a8876a075ec4de7 | 23fbe8cc8a1846a95b2e42023bebc62d32392481 |
refs/heads/master | <file_sep>//
// test.swift
// test
//
// Created by TTOzzi on 2020/01/08.
// Copyright © 2020 TTOzzi. All rights reserved.
//
@testable import Problem2
import XCTest
class test: XCTestCase {
override func setUp() {
// Put setup code here. This method is called before the invocation of each test method... | aa977ea1c3a26142027ef7ce1a543f00f459057f | [
"Swift"
] | 3 | Swift | TTOzzi/Algorithm | 953108f558d90d4f13ca674b8c52fecfd3c2b4bd | 3bf11e71cba88780c46772f28c98805bef683eec |
refs/heads/master | <repo_name>cdla/dockerfiles<file_sep>/gollum-wiki/Dockerfile
From ubuntu:18.04
MAINTAINER <NAME> <<EMAIL>>
ENV DEBIAN_FRONTEND noninteractive
#update and upgrade
RUN apt-get update
RUN apt-get upgrade -y
#install dependencies
RUN apt-get install -y -q build-essential ruby-dev python python-docutils ruby-bundler lib... | ae9e6ab9da5d50c0dc3d525fb2757d00ccbbea7c | [
"Markdown",
"Dockerfile",
"Shell"
] | 5 | Dockerfile | cdla/dockerfiles | 54ebea4c0ca3e572a3bb45146f286bc6916ce4e7 | bf58b1c15cec27cf6beb0f11b9c56866aced1731 |
refs/heads/main | <repo_name>iyazici94/Comp437<file_sep>/SmartAlarm/app/src/main/java/com/example/smartalarm/MorningActivity.java
package com.example.smartalarm;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import andro... | b7fd2191462ca6eef6d03daf64044d65eb30ec6d | [
"Java"
] | 7 | Java | iyazici94/Comp437 | f003c82d1581e25abcb9fe6c6c9189f82dcbe6d2 | a08bf8ee9a3324a5bbda60dbc57246527fd2858c |
refs/heads/master | <file_sep><?php
/**
* Class definition update migrations scenario actions
**/
class ws_m_1607327729_perenos_opisaniya_tovara_iz_mnozhestvennogo_svoystva_v_detalnoe_opisanie extends \WS\ReduceMigrations\Scenario\ScriptScenario
{
/**
* Name of scenario
**/
static public function name()
{
... | bfc9b654a51fa0349319c7e14fbd9369881a5916 | [
"PHP"
] | 1 | PHP | Skyoll/migration | eb3785edd1b9e961edc18531ab7e01439e994ea6 | 4a0ea4df2035bcbe9e6494198432920700b2d050 |
refs/heads/main | <repo_name>aramiku/iniZappts<file_sep>/README.md
4/1/21 - Projeto iniciado sem nenhum arquivo
5/1/21 - Readme.md criado.
<file_sep>/AppDelegate.swift
AppDelegate.swift
-Alteração na ferramenta de edição do github.
-Segunda alteração no arquivo.
-Terceira alteração feita no macbook 13
| dac4cf621384d46a1c0b33ee609b1777d459154d | [
"Markdown",
"Swift"
] | 2 | Markdown | aramiku/iniZappts | 22ac007e8bb2e5e08e4d010de67801e0a1027d34 | caca235a1f40dc6c918caf2f2ba93c2599cd3033 |
refs/heads/master | <repo_name>ins-amu/cluster<file_sep>/matlab-to-update/compile.sh
#!/bin/bash
if [[ -z "$MATLAB" ]]
then
MATLAB=/soft/matlab2015a
fi
mainscript=$1
if [[ -z "$mainscript" ]]
then
echo "please provide a script to compile."
exit 1
fi
echo "starting MATLAB.."
$MATLAB/bin/matlab -nojvm <<EOF
fprintf('compiling $1..\n'... | 485a571f4976ca2f1d831ba3e5df96c894dcc7b3 | [
"Markdown",
"Shell"
] | 6 | Shell | ins-amu/cluster | ba873a357dece073e716f38a49b8d907589d5e63 | 30b277d7e4cf3ad79d2510693bc8a6b3b1a96303 |
refs/heads/master | <file_sep># mouse_embryonic_miRNAs
The miRNA-mRNA analysis during mouse embryonic development
<file_sep>
# reading the expression data and the cluster info
miRNAclusters = read.delim("miRNA_clusters_16.txt",header = FALSE, stringsAsFactors = FALSE)
colnames(miRNAclusters) = c("Symbol","cluster.number")
mRNAclusters = ... | a9ee7fdfc4c263d3cd6a6dbf763f45930f29d543 | [
"Markdown",
"R"
] | 5 | Markdown | sorenar/mouse_embryonic_miRNAs | eb2dc92f512377d04c4faf26a599f21e134d9b8c | 2d0afb3c884abe4c75a9a308596f13ca2f8eb2e3 |
refs/heads/master | <repo_name>bomzlab/study_go<file_sep>/src/model/comms/Interfaces.go
package comms
import ()
type GetMap interface {
Get(s string) string
}
<file_sep>/src/main/Test6.go
package main
import (
"fmt"
m "parsetest"
)
func main6() {
v := m.ToInt("3")
fmt.Println("toInt :: ", v)
s := m.ToString(33)
fmt.Println("t... | 3549a1af1b8c659560aeedcbbf6cf5c88a24c918 | [
"Markdown",
"Go"
] | 34 | Go | bomzlab/study_go | 073568ff0eef33908491445065dfa7a394806669 | 594c7c9eb330844e159377ab01dce8a0e7c80c96 |
refs/heads/master | <repo_name>LemonProxiesDev/LemonDCScript<file_sep>/PortCfg.h
/*
* Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files f... | 10fafdd806f34dce1523dd7e1b363c4c088e2c93 | [
"Markdown",
"Python",
"C++",
"Shell"
] | 6 | C++ | LemonProxiesDev/LemonDCScript | 74d8ea91e285a11a4e34981b133712121786113f | 0f9b68ae646ec81d84dec4c921647d7cd73b3bdc |
refs/heads/master | <file_sep>import os
import subprocess as sp
from shlex import split
import shutil
from shutil import rmtree, copytree, copyfile
from typing import List, Union
from .printing import *
def run_cmd(command: Union[str, List]):
"""
Wrapper on subprocess.run to handle shell commands as either a list of args
or ... | 203986955971f17a79fa97d49a9ab72176a1ae89 | [
"TOML",
"Python",
"Markdown",
"Shell"
] | 18 | Python | Fred-Barclay/shallow-backup | 05203bdddb041e4183b80cb79368adffc85e938d | 5dddedd7cba94b8234ac81675500cb8c6a908c88 |
refs/heads/master | <file_sep>import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class LanzadorCliente {
private static InputStreamReader isr = new InputStreamReader(System.in);
private static BufferedReader teclado = new BufferedReader(isr);
public static void main(String... | 7ba35ecaa47458ac41d74e4bec4cab0b61b89e3d | [
"Java"
] | 3 | Java | google-code/chat-java-filipinas | 70b00d8c49499a0514335979543040441885b7d2 | b491542283ef27a6930f8bc35436e0508ec99766 |
refs/heads/master | <file_sep>//
// Filter.swift
// Yelp
//
// Created by <NAME> on 9/25/15.
// Copyright © 2015 <NAME>. All rights reserved.
//
import UIKit
class Filter: NSObject {
var deal: Bool?
var distance: Int?
var sortBy: YelpSortMode?
var categories: [String]!
}
<file_sep>//
// ButtonCell.swift
// Ye... | 3514305b617f7846a91d7e62526097b9cb4899e7 | [
"Swift"
] | 3 | Swift | funnycat/Yelp | e10fb5f953048f0f462151da4aa7095e313d32cc | 6382e2273d213e5e4256878faab046d55b50cd5f |
refs/heads/master | <repo_name>ramonfe/embedded_systems<file_sep>/stats.h
/******************************************************************************
* Copyright (C) 2017 by <NAME> - University of Colorado
*
* Redistribution, modification or use of this software in source or binary
* forms is permitted as long as the files maintai... | b6ef15fce0ff59e32287fd169a534b57e4c71c2f | [
"Markdown",
"C"
] | 3 | C | ramonfe/embedded_systems | ebd3c35a417ae64d03f8e34597297a7d9459103a | cfd78ef9266414d07cbb17c8123f02e407359291 |
refs/heads/master | <repo_name>usaboo/TelosB-Sensor-Network<file_sep>/region 2 - tree1/2112/Sender.h
#ifndef BLINKTORADIO_H
#define BLINKTORADIO_H
enum {
AM_BLINKTORADIO = 6,
AM_BLINKTORADIOMSG = 6,
TIMER_PERIOD_MILLI = 5005,
TIMER_PERIOD_MILLI1= 1333,
TIMER_PERIOD_MILLI2= 2749,
TIMER_PERIOD_MILLI3= 3313,
TIMER_PERIOD_M... | 6c68dab98b3ce53bc1d4ea040f1af4bdf5f137e3 | [
"Markdown",
"C",
"Makefile"
] | 5 | C | usaboo/TelosB-Sensor-Network | 5bbbf5eb4fdde4cd69b2cb65cee984a841373ceb | 7ea943238f1d73b51b85a5a4d4a5c7d678868f5a |
refs/heads/main | <file_sep>/*
bspI2c.h
Board support for controlling I2C interfaces on NUCLEO-F401RE MCU
Developed for University of Washington embedded systems programming certificate
2018/12 <NAME> wrote/arranged it
*/
#ifndef ___BSPI2C_H
#define ___BSPI2C_H
#include "stm32l4xx_ll_i2c.h"
#define PJDF_I2C1 I2... | e75044657ae4544ef9b1e8430b2ce6ef15ebaa66 | [
"Markdown",
"C"
] | 26 | C | asahoo5/mp3-player | 9c0c0a97362f949598c002719f86afb0784d2c3e | 4e48b194bbfa51749b3791ca58abd926e6898add |
refs/heads/master | <file_sep>var mysql = require('mysql');
function User(name,surname,dateOfBirth,city){
this.name = name;
this.surname = surname;
this.dateOfBirth = dateOfBirth;
this.city = city;
}
var users=[];
users[0] = new User('Nermin','Demir',new Date(95,0,30),'Kakanj');
users[1] = new User('Amel','Sisic',new Date(95,1,8),'... | d2119d2b5a97f8389dea38e98825733725cb55b8 | [
"JavaScript"
] | 1 | JavaScript | NerminD/DBApp_SQL | 2493a627a499a23df33b38efde0d84a45368c57b | bff2af65edae84948ea86394d500ca1a501d964c |
refs/heads/master | <repo_name>MaQuiNa1995/WebServiceSimple<file_sep>/src/main/java/es/maquina/webservice/repository/GenericRepositoryImpl.java
package es.maquina.webservice.repository;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
/**
* Clase usada para la ... | 269583d6f317020e53c1d7fa62ea695732a98e0f | [
"Markdown",
"Java",
"INI"
] | 6 | Java | MaQuiNa1995/WebServiceSimple | fa689882062b90a476993a5e60d89d34cd8dac28 | d638becbf79a08d8c8fa43add420180ed5b7bde2 |
refs/heads/master | <file_sep>## Intro
* Try to make this app in es6: https://scotch.io/tutorials/setup-a-react-environment-using-webpack-and-babel
## Ref
* https://scotch.io/tutorials/setup-a-react-environment-using-webpack-and-babel
* http://demo.tutorialzine.com/2015/04/first-webapp-react/
* http://tutorialzine.com/2015/04/first-web... | cb8515512544ba8f37f4c3d6a168b5e49d6e7336 | [
"Markdown",
"JavaScript"
] | 12 | Markdown | tb-44/my_react_map | 7bec8debb3593c271a3b2f6beaae1911e73a1de1 | 368abb4a71bab1aa415b3b5498bc7a4a63c06207 |
refs/heads/master | <repo_name>santhoshrajr/TwitterSentiment<file_sep>/Dockerfile
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0-buster-slim AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/core/sdk:3.0-buster AS build
WORKDIR /src
COPY ["TwitterSentiment.csproj", ""]
RUN dotnet restore "./TwitterSentiment.csproj"
COPY . .
WOR... | 5e271a9f3f352ef711b0af42c2c810d95f202cd9 | [
"C#",
"Dockerfile"
] | 2 | Dockerfile | santhoshrajr/TwitterSentiment | fb0e9fc3464decbdd7c2b6103c68adbf175660f6 | b9e370a18254b627ed8db9a9da05b693840c9dda |
refs/heads/master | <file_sep>package Dep;
import java.util.Scanner;
public class Persona implements Registro {
static final Scanner entrada=new Scanner(System.in);
protected String DNI;
protected String nombre;
protected String apellidos;
protected String fechaNacimiento;
protected String direccion;
protected String ciuda... | 957f97abd00be1c0c08d0383ba87402051bbd25a | [
"Java"
] | 7 | Java | ricardopajarito/Departamento-programacion2 | 46d9396f58a38cc8c26e9ef15163c961abf891e1 | 62b64186ddb4fd5e83479d4b379ad7ae53524cb3 |
refs/heads/master | <repo_name>crunchcubes/angular-admin<file_sep>/src/app/modules/default/no-auth-guard.service.ts
//https://scotch.io/tutorials/protecting-angular-v2-routes-with-canactivatecanactivatechild-guards
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from... | 431cfbb635ff195e326f2d919c05f59fcbf6bac3 | [
"Python",
"TypeScript",
"Shell"
] | 34 | TypeScript | crunchcubes/angular-admin | 670657f1c7390ecbaaffccb3baa074a159a26c28 | c1b3ff7a0831ec804a6823abe4158556192982d0 |
refs/heads/master | <file_sep>import { SudokuCellPosition } from "./SudokuCellPosition";
describe( 'SudokuCellPosition', () => {
describe( '.row', () => {
it( 'returns 0 for too low out of range values', () => {
let cellPosition = new SudokuCellPosition( 0 );
expect( cellPosition.row ).toBe( 0 );
});
it( 'return... | 50c6b3b09e3ee1ce0a11d242851887ec08357c57 | [
"TypeScript"
] | 22 | TypeScript | RMo-Sloth/Sudoku | aa025ffc53d309b7d29c3f19ceb70225dcaa49a8 | de22d4ecc10fbea65bf756c9eed5d0413985fffa |
refs/heads/master | <file_sep>import React from 'react'
import { Link } from 'gatsby'
import styles from './header.module.css'
const Header = () => (
<div className={styles.navigationOuter}>
<div className={styles.navigationInner}>
<ul className={styles.headerul}>
<li className={styles.headerli}><Link to="/"
... | 0107860862fee08ea2020152fa16f5611a2db2bb | [
"JavaScript"
] | 3 | JavaScript | sashademyanik/pauls-motor | a96687db5f392c8023456c79f6b9fb7a75c820c3 | e56900561c48a81d1a5288970c1a12492052c5d3 |
refs/heads/master | <file_sep>from flask import Flask
my_app = Flask(__name__)
@my_app.route('/')
def root():
return "hello world route"
@my_app.route('/route1')
def route1():
return "you have reached route 1"
@my_app.route('/route2')
def route2():
return "you have reached route 2"
if __name__ == '__main__':
my_app.de... | c69540ae3b24f0b1ea78103b43c8c587a10d919e | [
"Python"
] | 1 | Python | henryz2000-stuycs/flask-intro | a1f755afc74fe0216991d54c985c2bf50215d490 | 1f039b5b7cb912cd1f29fda5343293dc6249d498 |
refs/heads/master | <repo_name>Lucardoo/LojaLPW<file_sep>/loja/admin/produtos/criar.php
<?php
require_once('../inc/conexao.php');
require_once ($base_path . 'inc/cabecalho.php');
if(isset($_SESSION['nome']))
{
?>
<form class="form-signin" action="<?php echo $base_url.'produtos/adiciona.php'; ?>" method="post">
<div class=... | 294ff40ffd17e9cc3ac60ff04c20db40cc709635 | [
"PHP"
] | 6 | PHP | Lucardoo/LojaLPW | 9c70812b2345c8ed52a4dac35988fb8b19f9fb5b | 7be3cc76c8486364d94474d1da866d9d50c2ab23 |
refs/heads/master | <file_sep># generator-rrr [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
> react redux router
## Installation
First, install [Yeoman](http://yeoman.io) and generator-rrr using ... | 753e85c8ca6a3a1e398d6e58e24da4ba012717bf | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kkpoon/generator-rrr | e2f7a2b5ae4ba3d484b454916fd0f4aa4f4100d6 | 9d97517dea17df0171c4c1f0e1afc8288d5890c9 |
refs/heads/master | <repo_name>kellymurray/simple-js-challenges<file_sep>/functional-javascript-solutions/README.md
My solutions to NodeSchool.io's Functional JavaScript course for reference when students are completing course.
<file_sep>/README.md
# simple-js-challenges
Simple JavaScript challenges for kids and beginning learners.
<file_... | aaf183c29793d7f551409d8f466bdde866bcb97c | [
"Markdown",
"JavaScript"
] | 5 | Markdown | kellymurray/simple-js-challenges | f4074e518a56a0a93fb8605543e24d653a0cc8da | 9f11f4cd3bc78ecf746137261fbc2743e8a0788b |
refs/heads/master | <file_sep>import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LoginFormComponent } from './login-form/login-form.component';
import { LoginRegisterComponent } from './login-register/login-register.component';
import { LoginForgotPasswordComponent } from './login-fo... | f63f3a24c5273f598ffd2f9b4a97bd51a5fda2b6 | [
"TypeScript"
] | 10 | TypeScript | EdsonFragnan/myteam | a617d7701f2cad3a9e658a986126e8357be236d3 | 0010da4c6851d0d4a3dc5535e20832b0fddce3a4 |
refs/heads/master | <file_sep>package com.lobinary.normal.cav.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import com.lobinary.normal.cav.... | d196fe08b1f103b904b3ce12ca71efd24291d015 | [
"Java"
] | 4 | Java | ljrxxx/Lobinary | 9252798dceaad84f745888fef21b21269cc611e1 | f93e6f6a40c70765ef48de8a22684a22fda9af54 |
refs/heads/master | <repo_name>getsolus/plasma-desktop-branding<file_sep>/mkrelease.sh
#!/bin/bash
set -e
rm -rf build
meson --prefix /usr build
ninja dist -C build
# Bump in tandem with meson.build, run script once new tag is up.
VERSION="4"
TAR="plasma-desktop-branding-${VERSION}.tar.xz"
mv build/meson-dist/$TAR .
# Automatically sig... | 0098943e09eb9286d87febc410363ecad9d477d3 | [
"JavaScript",
"Shell"
] | 3 | Shell | getsolus/plasma-desktop-branding | 3a698b5b62cdfa8bd5ee8bcca2b33e4371ea15b8 | edf8c39b3cb70576f6f45efa1ec44a57ee6269ea |
refs/heads/master | <file_sep>import React, {useEffect} from 'react';
import PropTypes from 'prop-types';
import {useDispatch, useSelector} from 'react-redux';
import CardItem from './components/CartItem';
import {
Grid,
Typography,
Card,
CardHeader,
CardContent,
CardMedia,
} from '@material-ui/core';
import {addToCart, remove... | 944fc49230268a6b0f21b050b29d0bc3bcd4942f | [
"JavaScript"
] | 14 | JavaScript | tvo007/the-shop-fe | 1081ffe02d32bc59ee5db3f314cefafccc47baf2 | f957e38ae2ae0a231e9892899196612c88dc3a8c |
refs/heads/master | <repo_name>tranvuongduy2003/express-lesson<file_sep>/controller/product.controller.js
var db = require('../db');
module.exports.products = function(req, res) {
var page = parseInt(req.query.page) || 1;
var perPage = 8;
var dropQuantity = (page - 1)*perPage;
if (page === 1) {
var hidePrevious = "disabled";
++... | f6cf60cfcd2f264206e14c8519072e305ed716bb | [
"JavaScript"
] | 1 | JavaScript | tranvuongduy2003/express-lesson | 21eec085cb503895c9b130558625410893e3164d | af7901fbc98b8abcd4887274144117d0260c8cdf |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.