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># CSV_tool
CSV_tool
My first python project. Sorry for the bad coding ;)
Frank
<file_sep># -*- coding: utf-8 -*-
'''
Created on 24.02.2015
version: 0.0.1
@author: frank
'''
import tkMessageBox
from tkFileDialog import *
from Tkinter import * ## Tkinter importieren
def buttonBeendenClick():
... | 826396f7baaea8e19edc5c781a1d9bffa90b235d | [
"Markdown",
"Python"
] | 2 | Markdown | bullet64/CSV_tool | 9b14ae4f5aaa75f883ebea7383416a6f6685ba73 | 467ae2eceee1de5ba041a79fdaddfd53727a39c7 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SelinaNo
{
public static class GameConstants
{
public const double MAX_SPEED = 0.35;
public const int SCREEN_WIDTH = 1280;
public const int SCREEN_HEIGHT = 720;
public cons... | 525da0431726039f9a4625380980d42bc8d21212 | [
"Markdown",
"C#"
] | 5 | C# | Roymond35/SelenaNo | 7c52771dd30427ce32c74a01ad6f0fa3884e3b97 | 01dc7cfb7ace0d92e5da2a0594c2b2edaa676f75 |
refs/heads/main | <repo_name>Yuu2002/react-tutorial<file_sep>/src/components/Button.jsx
import React from "react";
import clsx from "clsx";
export const Button = (props) => {
return (
<div className="navigation-button-group">
<button
className={clsx(
"navigation-button",
props.isActive ? "navigation-active-button" :... | 40c5a814a12c4ea1c6e1e4a2e193b7f52eda23b3 | [
"JavaScript"
] | 5 | JavaScript | Yuu2002/react-tutorial | 8a2d5240fc4a7669fcda70d96f989d6e1b39a105 | 963c236a13a45b7237a6387aaa499b0ed247f018 |
refs/heads/master | <file_sep># ImagePicker
Using UIImagePickerController.
<file_sep>//
// ImageObject.swift
// ImagePicker
//
// Created by <NAME> on 1/20/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Foundation
// always have an object for5 all data - used to sved data
struct ImageObject: Codable {
let image... | d1e659165407b32c061b036f0c4d1f0f14ca13e6 | [
"Markdown",
"Swift"
] | 3 | Markdown | EricDavenport/ImagePicker | 18db9d69fe8d74af83315f6301ad9f1ca46724e2 | 3321f8ab04548b7530536e29d75e4d9ddb1bff24 |
refs/heads/master | <repo_name>m-enani/a3<file_sep>/app/Http/Controllers/Restaurants.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class Restaurants extends Controller
{
public function index(){
return view('welcome');
}
public function search(Request $request) {
# store search re... | 5a5f8eefeda7e910c087a8888213eec2d7dd60e6 | [
"PHP"
] | 2 | PHP | m-enani/a3 | d26dd8e05e5f6910b329c42dbd9b366b44e97f18 | b6eb70a38420e01ee04d8aba43115ad16e3b35af |
refs/heads/master | <repo_name>psymike/tapout-api<file_sep>/spec/support/test_web_server.rb
# frozen_string_literal: true
require 'sinatra/base'
class TestWebServer < Sinatra::Base
get '/api/v1/campaigns' do
json_response 200
end
get '/api/v1/campaigns/:id' do
json_response 200, params['id']
end
private
def json_r... | 5eab6d55f910dae1768f6babf5ebc1ee269b2bd9 | [
"Markdown",
"SQL",
"Ruby"
] | 23 | Ruby | psymike/tapout-api | 27c94c4a736eff42b4e9764786ad54e3a9ce716c | b68aa8a6bd2181fec3224c398027f3ee383f00dd |
refs/heads/master | <file_sep>#include <MQTTClient.h> // Be sure to install the MQTT client from Arduino Library Manager authored by <NAME>
#include <MQTT.h>
#include "heltec.h" // includes library that makes it easier to use OLED
#include "WiFi.h"
#include <ArduinoJson.h>
#include <WiFiClientSecure.h>
#include "dht11.h"
#... | 227bf4c989f556d5cfe51fb9fec0dad7cfa210be | [
"Markdown",
"C"
] | 3 | C | matwerber1/arduino-heltec-esp32-aws-iot-shock-sensor | 0f1ca8c1a6438ad5c6dd46b194d1284164e73db2 | caa9b83bbb9f1c52b7117432240bd9fcb4d06b0b |
refs/heads/master | <repo_name>adamaveray/static-site-starter-template<file_sep>/dev/nunjucks/index.js
const appendAssetHash = require('./../common/appendAssetHash');
module.exports = function(env) {
env.addGlobal('asset', appendAssetHash);
};
<file_sep>/dev/sass/index.js
const appendAssetHash = require('./../common/appendAssetHash')... | 74a9240136a763cff1c043a1f04da5af3ed4ed4f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | adamaveray/static-site-starter-template | 3bb7034ce8a0fbbd9e8638629431516c034c2037 | e7025ac5fa22d184a9fca7d0c07f1f8bac47b407 |
refs/heads/master | <repo_name>Aragret/alya<file_sep>/create_cds_table.py
#!/home/aragret/anaconda3/bin/python
import os
import re
path = '/home/aragret/Alina/other_projects/alya/1_CDS_by_species'
# path = '/home/aragret/Alina/other_projects/alya/noverlaps'
with open('genes.txt', 'w') as outfile:
for file in os.listdir(path):
wit... | 45fa5cc909f260129c94d8fc7293adcfe9826104 | [
"Python",
"R"
] | 2 | Python | Aragret/alya | 0e6d188a754fda67ac29dfc6f9e48537f8cb69a8 | 82df672c9ea866fb63f6ae1b20b07a625a603117 |
refs/heads/master | <repo_name>tlevine/recherchevirgule<file_sep>/search.py
def search(db, column):
this = summarise(column)
those = db.something
<file_sep>/connect.py
import numpy
def load(data):
'''
[[str]] -> [numpy array]
List of rows to list of numpy arrays,
one numpy array per column, in order
'''
... | 3a01004b999bf9d2e99fb2e2a9dec82b14309818 | [
"Python"
] | 3 | Python | tlevine/recherchevirgule | acddc704fdb3a206feec43c344b907fff7fe49da | a7a321a223904ee6caf797adea85729b76c6753d |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using NppPluginNET;
using System.IO;
namespace AutoIDs
{
public partial class frmMyDlg : Form
{
public string Mask
{
get { ret... | e9f809eb79fe5616cbbee37998eccfa8231a29b5 | [
"C#"
] | 2 | C# | Alpalhao/AutoIDs | e0955e50ccca65de7daab986e16e45c16bf81788 | b2708116925a8b5c2be3e2f9fa97e6ff752bc7f6 |
refs/heads/master | <repo_name>citmp2015/server_config<file_sep>/hadoop/hadoop-env.sh
export JAVA_HOME=/opt/jdk1.8.0_45
<file_sep>/.bash_aliases
# ls aliases
alias l='ls --color'
alias ll='ls -la'
alias lt='l -rt'
alias la='l -A'
alias llt='l -lrt'
alias lla='l -lA'
alias llat='l -lArt'
alias h='history'
# hadoop aliases
unalias fs &> /d... | 318af7842a54a61d7bda64247bcc08fd752da81b | [
"Markdown",
"Shell"
] | 3 | Shell | citmp2015/server_config | f9be331b38a516d5402aae953e31b43167909d49 | f818a356ebe23ae6d95b962bab0a3809ae973e98 |
refs/heads/master | <file_sep>---
id:
- 6448c55e-557c-4113-8c5b-0de969a7ddb9
name: <NAME>
company: Tikal
position: Mobile
description: s
subject: eee
image: /img/moti-bar-tov.jpg
language: he
twitter: s
linkedin: s
---
<file_sep>import React from "react";
import styled from "styled-components";
import Fade from "react-reveal/Fade";
imp... | 910f98d128cbb64a2ac01ba8f380209909e864fc | [
"Markdown",
"JavaScript"
] | 52 | Markdown | NahumLandau/netlify_cms_blog | 12d5458653e0f6cadb5217878eacb24990329193 | 1d3ef34bb50a9fd138bc4824466def4f1ea4b3dd |
refs/heads/master | <file_sep>package books;
/**
* @program JavaBooks
* @description: 剪绳子
* @author: mf
* @create: 2019/08/25 15:55
*/
/*
给你一根长度为n的绳子,请把绳子剪成m段(m,n都是整数,n>1并且m>1),
每段绳子的长度记为k[0],k[1],...,k[m]。请问k[0]xk[1]x...xk[m]可能
的最大值乘积是多少?例如,当绳子的长度是8时,我们把它剪成长度分别2、3、3的三段,
此时得到的最大乘积是18
*/
public class T14 {
public static void ma... | 66a455be4ca757eee7a7f7bd044809c5cb039c70 | [
"Markdown",
"Java"
] | 188 | Java | DreamCats/JavaBooks | 2ad85514ea4367c075cb476dd5d6f1e40ecda9cf | 65a7e7b1a1632fe500a0dc4f76727ce62b2f759e |
refs/heads/master | <repo_name>binbsr/ExData_Plotting1<file_sep>/load_data.R
library(httr)
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
dataFolder <- "data"
if(!file.exists(dataFolder)){
dir.create(dataFolder)
}
dataFileArchive <- paste(getwd(), "/data/household_power_consumptio... | 9157a4d37292e19251acf5bc99eff4165873a3ea | [
"R"
] | 1 | R | binbsr/ExData_Plotting1 | 92873a95f25e232252eac57145fd0445fd188e23 | 52a67865adce96a60af8b8da188e8b41a55e1de5 |
refs/heads/main | <repo_name>FA-MatSci/Who-wants-to-be-a-millionaire-<file_sep>/README.md
# The game!
After the popular TV quiz show, here it is written in Python.
# Instructions
The game consists of 10 questions with 4 possible answers. The complexity of questions (relatively speaking) is increasing from 1 being the easiest and 10... | 28d8b35dc23075e57a05bd053db6b206ebe143f8 | [
"Markdown",
"Python"
] | 2 | Markdown | FA-MatSci/Who-wants-to-be-a-millionaire- | 089c1fdc39cb565f5fe770dd7b8ba5b4092aee01 | aa503d8f86f4079c8ba7bc6d5879252141519ee4 |
refs/heads/master | <repo_name>tht/jeelib<file_sep>/examples/RF12/smaRelay/smaRelay.ino
/// @dir smaRelay
/// Read out SMA solar inverter via Bluetooth and relay readings using RFM12B.
/// @see http://jeelabs.org/2012/11/06/accessing-the-sma-inverter-via-bluetooth/
/// @see http://jeelabs.org/2012/11/07/relaying-sma-data-as-rf12-packets/
... | e72f2834ca4b897162423b0f43f498563016311e | [
"C++"
] | 1 | C++ | tht/jeelib | 28808ab459ce89176626bc214f9b66a0294db754 | f50ba908c695274f31c5eaeac291776ae1bd3b16 |
refs/heads/master | <repo_name>chainlinq/boatkeeper<file_sep>/src/boatkeeper.c
/*
* Copyright © 2017 Astonish Inc. All Rights Reserved.
*
* Main source file for Boat Keeper.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the Licen... | ff5c918dd4c5b32dbed60fd749f709ef104aa08f | [
"Markdown",
"C"
] | 8 | C | chainlinq/boatkeeper | 802f788242166deefef94fb62aae098a70698e61 | 9ef5fc5ed32f48b0beade1037eb18349840c96c1 |
refs/heads/master | <file_sep># basic-color-classifier
Basic color recognition based on KNN algorithm. It reads the very first pixel of the provided PNG image and predicts its color.
### How to use it?
Before you can use this classifier you have to create the training data file. Once it's created it doesn't need to be regenerated unless... | 0c62754d5df4fb3e539a30d57cc95182b2aaee62 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | catchmareck/basic-color-classifier | eddc4cf16b2a8eb6d7ea11055d10366bec8d2b78 | da2fd81a587cc5f2c17f9c7471b16d0d520b99fb |
refs/heads/master | <file_sep>DO $$
/* Copyright (c) 1999-2011 by OpenMFG LLC, d/b/a xTuple.
See www.xm.ple.com/CPAL for the full text of the software license. */
var sql = "select dropifexists('VIEW', viewname, schemaname, true) "
+ "from pg_views "
+ "where schemaname = 'xm';",
result;
result = p... | aaa3817913f8be9be63437a02eebd2a32fb5856e | [
"SQL"
] | 1 | SQL | msinclairstevens/orm | 8daf0d684d9c60ef831c7a169d8032bbcbe45d75 | a4108a6716db6ba939793463cf35d84bc35cee2c |
refs/heads/master | <file_sep>// Import required modules
const keypress = require("keypress")
const colors = require("colors/safe")
module.exports = {
// Contains state variable for throttle and both the horizontal and vertical axis
state: {
thr: 0, // Throttle
hor: 0, // Horizontal axis
ver: 0 // Vertical axis
},
/**
* Star... | 326a83c55dbaeabd5b0017d235b9170ef89161d2 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | boltgolt/rcl-rc127 | 044b3404a706f76b75bcabde5d44c5d69d69672f | 5e0bf78daa5ceb598f85324ca441411bc23df76f |
refs/heads/main | <repo_name>cmarincia/Aya<file_sep>/test/integration-test/src/tests/load.rs
use std::{process::Command, thread, time};
use aya::{
include_bytes_aligned,
maps::Array,
programs::{
links::{FdLink, PinnedLink},
KProbe, TracePoint, Xdp, XdpFlags,
},
Bpf,
};
use log::warn;
use crate::test... | b89fd0b1d5c6c892789c5cf55c1a670143016532 | [
"TOML",
"Markdown",
"Rust",
"C",
"Shell"
] | 125 | Rust | cmarincia/Aya | 890e8c9340d46f931dbbaf43d884593e012ef9f9 | 00d5e493e501eef059317117a40d7c8f110f0847 |
refs/heads/master | <repo_name>rrozenv/swift-structL-lab-ios-0217<file_sep>/StructLove/PizzaDeliveryService.swift
//
// PizzaDeliveryService.swift
// StructLove
//
// Created by <NAME> on 8/18/16.
// Copyright © 2016 Flatiron School. All rights reserved.
//
import Foundation
struct PizzaDeliveryService {
let location: Coordinate... | 07269c2cb52bff6352f33d2eaf22fa36b88a4dc9 | [
"Swift"
] | 1 | Swift | rrozenv/swift-structL-lab-ios-0217 | 04da179e111ae2ca5f5686b58195b97c00adb341 | 938a3a66dc266b8da78f29230648b4974a9600b4 |
refs/heads/master | <repo_name>JerSoh/mean-stack-app<file_sep>/src/app/recipes/recipes.service.ts
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { map } from 'rxjs/operators';
import { Router } from '@angular/router';
import { Recipe } from './recipe.... | 13274d9eb9fa6be1bf14e91407813467736e0c45 | [
"TypeScript"
] | 4 | TypeScript | JerSoh/mean-stack-app | 8441ae457dc48766bc18d933aa08aa4ab089238d | 2c3fdf9d585c0401a13176c4584ac6dbcaa7dfa1 |
refs/heads/master | <file_sep>#!/bin/sh
[ -x /usr/sbin/nvme ] || exit
PROC="$(basename "$0")[$$]"
log() {
FACILITY="kern.$1"
shift
logger -s -p "$FACILITY" -t "$PROC" "$@"
}
raw_ebs_alias() {
/usr/sbin/nvme id-ctrl "/dev/$BASE" -b 2>/dev/null | dd bs=32 skip=96 count=1 2>/dev/null
}
case $ACTION in
add|"")
BASE=$(echo "... | 39bb19244989a9c23a864ff876265c35ea658ea4 | [
"Markdown",
"Python",
"Shell"
] | 11 | Shell | denzuko-forked/alpine-ec2-ami | b578a39eb7054b93993488f10cfdc41d324540f7 | b12758cd20331c39072302f88025b9c3269c4fe1 |
refs/heads/master | <repo_name>fariborz89/mytomorrows<file_sep>/models/price.py
class Price:
def __init__(self, min, max, avg):
self.min = min
self.max = max
self.avg = round(avg, 1)
class CityPrice(Price):
def __init__(self, min, max, avg, city):
Price.__init__(self, min, max, avg)
self.c... | 42e24cb6bda88f4a73b1fecef1639180e5784dbc | [
"Markdown",
"Python",
"Text"
] | 8 | Python | fariborz89/mytomorrows | 1a6b098040bf26df413dbabfb334dbba817f7334 | fb2c1d3a17ec8be005ea1eef3dbda13dd111f526 |
refs/heads/master | <repo_name>chris510/Poke<file_sep>/src/app/services/data-storage-service.service.ts
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { PokemonService } from './pokemon.service';
import { tap } from 'rxjs/operators';
import { Pokemon } from '../pokemon.model';
@Injec... | f4b32e0a1fd054f53eea2abd4503ec659314cf0a | [
"TypeScript"
] | 8 | TypeScript | chris510/Poke | 13888becf51134774d438f9feeb8a7c8ccee0f06 | 23db9393114838e8eee4bc7e422530100e55bdbc |
refs/heads/master | <repo_name>arscrift/web<file_sep>/src/app/navegacao/navegacao.component.ts
import { Component, OnInit } from '@angular/core';
import { Categoria } from './navegacao.model';
import { NavegacaoService } from './navegacao.service';
@Component({
selector: 'navegacao',
templateUrl: './navegacao.component.html',
styleUrl... | 19865e59d79a06a5d95c42d35a4758be2b3a085f | [
"YAML",
"Markdown",
"TypeScript",
"Dockerfile",
"Shell"
] | 19 | TypeScript | arscrift/web | e2fb04ae594255949bca6fdbcd5a10fce2c41cee | b642eac4c942ee552d7a7d2b421f8eab0f4a6a0e |
refs/heads/master | <file_sep>package flags
import "github.com/clipperhouse/typewriter"
var flags = &typewriter.Template{
Name: "flags",
Text: `
// {{.SliceName}} is a slice of {{.Type}}.
type {{.SliceName}} []{{.Type}}
// ErrMutex says that a result had more than one mutually exclusive bit set.
var ErrMutex = errors.New("attempt... | 6dc6b0b447ba997c821b0232d114f58da64637df | [
"Markdown",
"Go",
"Shell"
] | 9 | Go | msmprojects/flags | b979f69f750e9f4f7a03fa60d6c58158803c70a0 | 5eeda8a9c35f6fd404d4c1cae5b704fc11d63f3c |
refs/heads/master | <repo_name>mtjarrett/fancy-index<file_sep>/README.md
# Fancy Index
`This fork allows for icons to be replaced with thumbnails of image and pdf files. It also includes a thumbnailer to use when dealing with larger images as well as a number of smaller features to improve UI such as grid/list view.`
A responsive Apache... | 95c8ea904988e303a5ad57932e747a1f5c6bd297 | [
"Markdown",
"Python",
"JavaScript"
] | 3 | Markdown | mtjarrett/fancy-index | d6df74ea415c830391c3b2261fcc18f05ecac1fe | d4ce4d1096f310af50b6175b2cddaea3d28c3208 |
refs/heads/master | <file_sep>function Node(uID, x ,y){
this.id = uID;
this.vertex=new Vertex(x,y);
}
Node.prototype.position = function() {
return this.vertex;
}
Node.prototype.equals = function(node) {
var rv = false;
if (this.id == node.id) {
rv = true;
}
return rv;
}
<file_sep>function MapGenerato... | f601a02999f4008d5b82d3a506ebb01c4be773e0 | [
"JavaScript",
"C"
] | 9 | JavaScript | Callaghan/thecollectors | e140b6af45d14a600c01e66c1f66ba55d21f9194 | 0e4194aab75cb24ba98876b9b6a7f27b78c858ef |
refs/heads/master | <file_sep>import {initializePhraseAppEditor} from '../src/functions';
beforeEach(() => {
const scripts = document.getElementsByTagName('script');
for(let i =0; i< scripts.length; i++) {
scripts[i].remove();
}
})
test('with old ICE: translation should be rendered by default', () => {
let confi... | 534ba04d18fc9ca054032ee90cf49569ef22bdb1 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 8 | TypeScript | phrase/react-intl-phraseapp | 34af11414209bcd1eb005c742ebdd8a188a221b2 | fe7b017e61655f578de3a1938fa512621a4d9215 |
refs/heads/master | <repo_name>ebtenorio/Password-Encryptor-Decryptor<file_sep>/EncryptDecryptApp/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PTI.Security;
using System.Diagnostics;
n... | 7a5642789a1ac186a9580a42f3b0af4066baef6b | [
"C#"
] | 1 | C# | ebtenorio/Password-Encryptor-Decryptor | a963aa5391849dbe2d1bcce38fed24191f2ed894 | 05a546c807b803a766bcdffc1efd4ecd923cb91c |
refs/heads/master | <file_sep>package test.java;
import java.time.Duration;
import org.junit.*;
import static org.junit.Assert.assertEquals;
import main.java.Song;
public class SongTest {
@Test
public void getPrettyDurationTest() {
Song mySong = new Song("Title","Artist",Duration.ofSeconds(205));
String prettyResult = mySong.getDu... | 7e061bc70e32b4c3b34c12bf15d3116057ad0a4d | [
"Java"
] | 2 | Java | playbball212/TDD-Java-Music-Playlist-Completed | 3124d4cd87356dd10525f344c5d890c03e89d02b | f8c6821d5a42743ad0b67ac2b71896503e6fb686 |
refs/heads/master | <file_sep><?php
class Basetut_Createorder_IndexController extends Mage_Core_Controller_Front_Action {
protected function _getOrderCreateModel() {
return Mage::getSingleton('adminhtml/sales_order_create');
}
/**
* index action
*/
public function indexAction() {
/** @var Mage... | a0d0ccf5d060fd2b28a2309c5b8224f53ab096be | [
"PHP"
] | 5 | PHP | tuandvsmartosc/magento1 | 15255b767d00c6cd0d4e6c68ae777fa5acc3a496 | 0d1624460a262f433eb0d84bb72555f9ff587d01 |
refs/heads/master | <repo_name>OmarMAmin/Snake-Game-Tutorial<file_sep>/Snake/Snake/Main.cpp
#include <iostream>
#include <conio.h>
#include <math.h>
#include <thread>
#include <future>
#include <stdlib.h>
#include <chrono>
#include <thread>
using namespace std::this_thread; // sleep_for, sleep_until
using namespace std::chrono_litera... | 1332b906ff5470ffd8212bbee4bd9a6b9832eb0b | [
"C++"
] | 1 | C++ | OmarMAmin/Snake-Game-Tutorial | 36e42fba5fa0e936758a44c42f27bf69d5ba57fe | 62497c13f5cb4d7b22a1397b647d172794328384 |
refs/heads/master | <repo_name>sagarpaliwal111/Messaging_App<file_sep>/settings.gradle
rootProject.name = "Messaging App"
include ':app'
<file_sep>/app/src/main/java/com/example/messagingapp/CreatePostActivity.kt
package com.example.messagingapp
import android.content.Intent
import android.os.Bundle
import android.view.Window
import andr... | 43f1e66f307697a1949da34be8e3305cc9d0d40d | [
"Kotlin",
"Gradle"
] | 3 | Gradle | sagarpaliwal111/Messaging_App | 0482e33f587a2869bb509af80b3dc994790b7635 | 2c8085246deaeba07eb674c4c4da133be26ed302 |
refs/heads/master | <repo_name>datalyticsllc/hci-solver<file_sep>/Solver/Models/Driver.cs
using System;
using System.Collections.Generic;
namespace Solver
{
public class Driver
{
public long id { get; set; }
public string name { get; set; }
public Location location { get; set; }
public int maxStops { get; set; }
public int ma... | 01c8ead1769b3e2ad9060d31cfe36308d97d9702 | [
"C#",
"Shell"
] | 30 | C# | datalyticsllc/hci-solver | 5d63e740d12d7036a10b2b57f5b20e1eacdbbb8a | b6e5da773af2bb899a686c9b248734db2df52adf |
refs/heads/main | <repo_name>sonusagar98/Covid-Analysis-and-Tic-Tac-Toe<file_sep>/CovidAnalysisAssignment/CovidAnalysisAssignment/Models/ICheckHeader.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CovidAnalysisAssignment.Models
{
/// <summary>
//... | b87af8ff1706e5ce2ce456768360ffb01814e640 | [
"C#"
] | 15 | C# | sonusagar98/Covid-Analysis-and-Tic-Tac-Toe | 988a88be7e395172be011d55ee9701c24aa36fa3 | 13e2cca4fdd24c4d3236e869b629de1b4f3929c2 |
refs/heads/master | <file_sep>// creates a new game before each spec
beforeEach(function () {
testGame = Object.create(Game);
testGame.init("Bob", "John");
});
// if player1 selects position 1, there should be an 'X' in position 1
// if player1 selects position 11, board should not change
// if player 2 selects a position that is occ... | 6ca752d703b94c71cfe61cea99e69bff1de3f3bb | [
"JavaScript"
] | 1 | JavaScript | roykim79/tic-tac-toe | c21483e7047a5f76243f7188abed09d15a2d6189 | 6d2abf762591a9f18a8b6cfba409460a04133a17 |
refs/heads/master | <repo_name>Almighty-Satan/gradle-macro-preprocessor-plugin<file_sep>/samples/basic/build.gradle
apply plugin: 'application'
apply plugin: 'com.github.hexomod.macro.preprocessor'
buildscript {
repositories {
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
... | db94344ea2c7419ba288010b52298f19d30506e7 | [
"Markdown",
"Java",
"Gradle"
] | 5 | Gradle | Almighty-Satan/gradle-macro-preprocessor-plugin | 9c3961bb83dc481909e650eae2ddd552f8c40002 | f34a407281d9ba5a643d50070876b873277ea960 |
refs/heads/master | <file_sep>x = 1
while x <= 100:
mod3 = x % 3 == 0
mod5 = x % 5 == 0
if (mod3 and mod5): print "FizzBuzz"
elif (mod5): print "Buzz"
elif (mod3): print "Fizz"
else: print x
x += 1
<file_sep>def sortcat(n, *args):
maxLen = 0
for i in range(len(args)):
if len(args[i]) > maxLen: maxLen = len(... | 7abc6192aeef56eb6a14ac7bab5de15179bc25b0 | [
"Python"
] | 8 | Python | jsani0102/crimsononline-assignments | 81510c902ec116bc5ba6dcb962e14f3415dd2368 | 8503a1806e0d2f3b6b6bdec78d9760f890999657 |
refs/heads/master | <repo_name>ayush1999/tourist-database<file_sep>/README.md
# Database of Tourist Places in Odisha (3rd Semester Project)
## Dividing the work into 5 parts:
--> Collecting data about all tourist places.
--> Describing all these places. (A few lines should be enough.) [Abhipsha and Anisha]
--> Building the transport ... | cb3a174d31ffe434ad978863b61d77c6009665af | [
"Markdown",
"C++"
] | 6 | Markdown | ayush1999/tourist-database | 4bde9dd24355fdce152a6be7094323bd4d62bfa9 | e8c940ec3acabd2acd01ea2adbff0fa374880dc2 |
refs/heads/master | <repo_name>MustafaSeyrek/Sorting-Algorithms<file_sep>/IntroSort.java
public class IntroSort {
static HeapSort heapsort = new HeapSort();
static QuickSort quick = new QuickSort();
public static void sort(int[] arr) {
int depth = ((int) Math.log(arr.length)) * 2;
sort(arr, depth, 0, arr.length - 1);
}
priva... | 975b9b8e38581689bbbea26c528de100759ab2c3 | [
"Java"
] | 1 | Java | MustafaSeyrek/Sorting-Algorithms | d385bfa00eea2e3dd2cd81ff9e8fc9a1e36bb4bd | 6d3f7421ad5b7f7507b65a39df23350d5a18b8cf |
refs/heads/main | <file_sep>// let test = document.querySelector('#content')
// console.log(test);
// let test1 = document.querySelectorAll('#content')
// console.log(test);
// let test3 = document.querySelector('.important')
// console.log(test3);
// let test4 = document.querySelectorAll('.important')
// let transition = Array.... | 8ac6845c06e1aa953d3f626ba8a640e5a0169372 | [
"JavaScript"
] | 1 | JavaScript | Achraf-100/js_dompart2_recupelement_exercice3 | b897861ad2c650a17e19b9b328db6dd1c07e8dbf | 93667f23137ecbf865110c1180218dda2f82518d |
refs/heads/master | <repo_name>oniram88/RunnersBikers<file_sep>/db/migrate/20180106185236_change_session_points_to_decimal.rb
class ChangeSessionPointsToDecimal < ActiveRecord::Migration[5.1]
def change
change_column :performances, :points, :decimal, :precision => 15, :scale => 3
change_column :users, :total_points, :decimal, :... | 12a2c16aefa164dded76e19ac3964f17af409331 | [
"Markdown",
"JavaScript",
"Ruby"
] | 60 | Ruby | oniram88/RunnersBikers | 8ffb40262b831ef0ad5cc30ae74f769a73a9ad52 | 2305ba2779b88718d036eb576e17a79ec1e819ce |
refs/heads/master | <file_sep>MATLAB for R Users in Computational Finance
Demo 1 - Data Import & Exploration
This example contains the files necessary to demonstrate interactively importing and visually exploring data in MATLAB. priceData.xlsx contains electricity market prices for the New England region. These can be imported using t... | 5a5add96c88be6f38e4953c0424b549cea10de5e | [
"Text",
"R"
] | 5 | Text | mura5726/copula_matlab | 7049cee5c1fa9b1b7ce9a70bde63c1ae0aae4aff | e62d67825b1eed461f4ecfb0d35000cf2bf26809 |
refs/heads/master | <repo_name>AiverReaver/stackoverflow_clone<file_sep>/stackoverflow_frontend/src/components/Navbar/Navbar.js
import React from 'react';
import { connect } from 'react-redux';
import { Input, Menu, Button } from 'semantic-ui-react';
import { Link, withRouter } from 'react-router-dom';
import { fetchposts, logoutUser } f... | e167a685794bc8a46dce31a5e6e0b88bd67375d5 | [
"JavaScript",
"Markdown",
"PHP"
] | 20 | JavaScript | AiverReaver/stackoverflow_clone | 0b5bc32a23d5448e8e63578458a31104df242341 | a0a165f8bf504288bfae54cc473dbd46c7dfa19e |
refs/heads/master | <repo_name>orckrn/PatientaDB<file_sep>/checkform.cpp
#include <QMessageBox>
#include "main.h"
#include "checkform.h"
#include "ui_checkform.h"
CheckForm::CheckForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::CheckForm)
{
ui->setupUi(this);
connect (
ui->saveButton,
... | 9c4d15ee985cdabd54d6db924d5b129cbff55f16 | [
"Markdown",
"C++"
] | 8 | C++ | orckrn/PatientaDB | 8d29c502569e37b7ffe4d1ca1099f4ff0638371d | ea0a25469a36c31cbcdd74e93dbb61a61911df84 |
refs/heads/master | <repo_name>exitcodezero/aams-payment-api<file_sep>/app/api/payment/handlers.js
var fs = require('fs');
var path = require('path');
var util = require('util');
var async = require('async');
var ejs = require('ejs');
var sendEmail = require('./mailgun').sendEmail;
var sendEmailToBilling = require('./mailgun').sendEmailTo... | 9d2baa074fe8e8f4a3d8298238335f9379094308 | [
"JavaScript",
"Dockerfile",
"YAML",
"Markdown"
] | 6 | JavaScript | exitcodezero/aams-payment-api | 22308f53c69925df51d61a6aa171263b1c95c6e3 | 0404be191048a4ba6157292381542308418acdba |
refs/heads/master | <file_sep>#define _XOPEN_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <pty.h>
#include <stdlib.h>
#include "hl_vt100.h"
struct vt100_headless *new_vt100_headless(void)
{
return calloc(1, sizeof(struct vt100_headless));
}
void delete_vt100_headless(struct vt100_headless *this)
{
f... | 4071d1fc8f1c95b0113bfb787e4f42c6627d1a5e | [
"reStructuredText",
"Makefile",
"Python",
"C",
"Shell"
] | 8 | C | math4youbyusgroupillinois/vt100-emulator | a2f8b7e68689733626b4a90191b26dff3b453e76 | c3172f7e71c3c96915a087db5454bf40567a75ae |
refs/heads/master | <file_sep>import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {PodcastsComponent} from './podcasts.component';
import {MdCardModule} from '@angular/material';
import {ActivatedRoute} from '@angular/router';
import {Observable} from 'rxjs/Observable';
import {PodcastsEffects} from './podcasts... | a5a00ffc7b00208990435581e3501e5b5ce4745f | [
"TypeScript"
] | 1 | TypeScript | whosoonhwang/Podcast-Server | b7ad4a48ebdd2d514d73ce13ee77b959db04865d | 11c59c46cc54c291661d558ca02fb7dd0785f370 |
refs/heads/main | <repo_name>matgim4btest/17b19<file_sep>/src/main/java/rs/edu/matgim/zadatak/Program.java
package rs.edu.matgim.zadatak;
public class Program {
//Ponovo poslato.
public static void main(String[] args) {
DB _db = new DB();
_db.printNotUsedRacun();
_db.prikazSvihRacuna();
Sys... | 3388dde869194416389f6adafe6668669d784cdb | [
"Java"
] | 1 | Java | matgim4btest/17b19 | 9f02639cd7d0b65009dc82c7507113ba8c88e641 | b0591aa52130ea2cf35a0f8277a90721807476d3 |
refs/heads/master | <file_sep>import csv
from xml.etree.ElementTree import Element, SubElement, ElementTree
import time
from time import mktime
from datetime import datetime
import xml.sax.saxutils as saxutils
import sys
from ftplib import FTP
import os, sys
reload(sys)
sys.setdefaultencoding('latin-1')
lines_seen = set... | d9a39dabf228f8b242bc6a56e1d7edf380322546 | [
"Python"
] | 3 | Python | marianina8/Python | 52825b541c980d566173858b7c175e24171149c2 | cf0b5a9233d5be790a154c96bca4762d3369084f |
refs/heads/master | <repo_name>LeG3nDz/v3.1.stephane-richin.lan<file_sep>/app/a-propos.md
---
layout: page
title: À propos
permalink: /a-propos/
---
<section class="small-4 block-section is-block">
<h2>Hello world :)</h2>
<p><b>Moi c'est Stéphane, j'ai 24 ans et j'habite à Lyon. Passionné d'informatique depuis très longtemps, j'a... | d1b4cecd24043200750e582852c58596d35b136c | [
"Ruby",
"HTML",
"Markdown",
"JavaScript",
"Text"
] | 25 | Markdown | LeG3nDz/v3.1.stephane-richin.lan | 9d6ba60346450d7850da8c87c2d12b60e268a184 | 0c213587d78e0c7dc6aab9a9b6d94f521be3ff82 |
refs/heads/master | <file_sep># Pizza Bot
This project is about making a pizzabot, where you can order pizza.
## The problem
We chose to make a form, where the user can choose which pizza they want and how many. When pressing an order button a message is displayed where the order is confimed.
We chose to mainly focus on the javascrip... | 7bc5735a2fb47c15fcf22176fc1b9c663154cd0c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | stjernberg/project-pizza-bot | c5ec5375346488e656555478fb3048f0436beae2 | c271c9f47f8c14768a3951c7403641a0e16025c1 |
refs/heads/master | <repo_name>Sehyo/NuggetNugget2<file_sep>/NuggetNugget2/Game1.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using TiledSharp;
using System.Collections.Generic;
namespace NuggetNugget2
{
/// <summary>
/// This is the main type for your game.
/... | 9dbafd38252b6530be3105c74fdfa252b9f47ada | [
"Markdown",
"C#"
] | 13 | C# | Sehyo/NuggetNugget2 | 0c4cd40e499dbcaa71441351f332d51166e98492 | 21aeb0b01c5189153a1a5b3de634659cfed3023a |
refs/heads/master | <file_sep>/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package ballotage2015;
/**
*
* @author vaio
*/
public class Ballotage2015 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
BDPASO2015 bd =new... | 1bde8c2a47929f142a1d15df1c339133bef74a9f | [
"Java"
] | 1 | Java | zxero23/Ballotage2015Misiones | 547cba756342668f60dbdc6464e6722df57256fa | e9c50856d658a671fcca6a86812fb172ae836356 |
refs/heads/master | <repo_name>sjjensen2004/learningflask<file_sep>/README.txt
This is just to learn both flask and GIT. Disregard any poorly written code you may observe here.
<file_sep>/mail.py
from flask_mail import Message
from hello import mail
from hello import app
msg = Message('test subject',
sender ='<EMAIL>',
recipients =['<EM... | 37ad4cc25e809ad91e491e3734cb0d24ff9690e8 | [
"Python",
"Text"
] | 2 | Text | sjjensen2004/learningflask | 7915f1c8eb21efdb49f46299cb98aa51cb210910 | 8e301f3d811f9ccd45ae3093a50830001e3854de |
refs/heads/master | <repo_name>nikhil-kartha/aws<file_sep>/app.py
from flask import Flask, request, jsonify
import json
import boto3
import datetime
import userdoc
from collections import defaultdict
app = Flask(__name__)
@app.route('/')
def index():
return f"{userdoc.html}", 200
@app.route('/zappa/pinfo', methods=['POST'])
def ... | 704df4d2d84d365ff0feea31e18e1a5363353bd9 | [
"Markdown",
"Python",
"Shell"
] | 4 | Python | nikhil-kartha/aws | 6de54e0d6af8df49d4820b135f7835e4c9e007c7 | 5a213654881207af2802a70488f8bbb4ff72dfc0 |
refs/heads/master | <repo_name>wszostak/java-bank<file_sep>/src/main/java/pl/training/bank/aspect/CashFlowLogger.java
package pl.training.bank.aspect;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;
import pl.training.bank.BankException;
import java.math.BigDecima... | 3262aaa1419be11e7a677f056c4a373344e4ddc0 | [
"Java"
] | 3 | Java | wszostak/java-bank | cb075c93bf02b191ae04cf3830d82a938cc74edf | 88e252b3d9b2ebb2a4afa8a184dd9d27cf916c6c |
refs/heads/master | <file_sep>package com.taosj.shts.repository;
import com.taosj.shts.entity.Contact;
/**
* Created by taoshijun on 16/6/3.
*/
public interface ContactRepository extends BaseRepository<Contact> {
}
<file_sep>package com.taosj.shts.entity;
/**
* Created by taoshijun on 16/6/3.
*/
public enum RecordStatus {
NEW,... | 38d2519f9a2ff16a235e1fbb0914856fa48ac6f0 | [
"Java"
] | 3 | Java | taoshijun/shouhutianshi | 3dfd3d5fc0001cc3598f7cae882c244e641634b9 | ef64790ec7f49bf57943f42863509e3fe672b4f4 |
refs/heads/master | <file_sep>package com.example.tripwithyou;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface Retrofit_sign_up {
//회원가입
//PHP에 전송하는 부분
@GET("sign_up.php")
//id라는 키로 id값을 보낸다, pw키로 pw밸류를 보낸다
Call<Retrofit_result> getlist(@Query("id") String id, @Query("p... | b1960c0d960ee8af1b636a03160b02925b46d35b | [
"Java",
"Gradle"
] | 17 | Java | leegise-lab/TripWithYou | c18a52adb9af4cd4953240edd3b982d66a3a1091 | 72576bc97d289b8bdfde8c90f326445f1129a7ef |
refs/heads/master | <file_sep># encoding: utf-8
require 'bundler'
Bundler.require(:default, :test)
require 'simplecov'
SimpleCov.start
require "minitest/autorun"
class TestClass < Minitest::Test
require 'URLcrypt'
def assert_bytes_equal(string1, string2)
bytes1 = string1.bytes.to_a.join(':')
bytes2 = string2.bytes.to_a.joi... | 504c15e782bac57da5f42d9b42686833768f344d | [
"Markdown",
"Ruby"
] | 7 | Ruby | cheerful/URLcrypt | a88d5340892349d0db10f20220a12940e581ca38 | c550b81404c062c9d31d460973cbe20fbac4b585 |
refs/heads/master | <file_sep>/**
* @file filerev.js
* @author <NAME> <<EMAIL>>
* @copyright 2015 Middle of June. All rights reserved.
*/
'use strict';
module.exports = {
// Renames files for browser caching purposes
// https://www.npmjs.com/package/grunt-filerev
options: {
algorithm: 'md5',
length: 4
},
all: {
src: [
'... | 69f6bb3022196baba5b72003cc72a46cc49f1b02 | [
"JavaScript"
] | 3 | JavaScript | jericho1ne/flashcards | 9b0340ec6ae027d7d2e70f098620f0947c916307 | 7596a98eed0de21f35433730a5e15c362e8b8e97 |
refs/heads/master | <repo_name>HybridiSpeksi/hybridispeksi<file_sep>/readme.md
# HybridiSpeksi
Website project for HybridiSpeksi ry and it's yearly theatre production.
## Tech stack
Client is a React application with Redux state management. Backen is a Node REST server with Express.js. MongoDB. Production application runs on Digitaloce... | 32063be2be727a42a880caf108d6ce1b77ec0622 | [
"Markdown",
"JavaScript",
"Dockerfile",
"Shell"
] | 127 | Markdown | HybridiSpeksi/hybridispeksi | e4a7c07c3286d218233cb99a177e5d5b6360fba0 | 2776551ab5a766b1464c9d5785bdaa3ab635c0ff |
refs/heads/master | <file_sep><?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\MainController;
use Illuminate\Support\Facades\Auth;
// Route::get('/', function () {
// return view('welcome');
Auth::routes([
'reset' => false,
'confirm' => false,
'verify' => false
]);
Route::get('/',[MainController::... | f40c2beb6f5ab497f855a79e9ab7076910e18f10 | [
"Markdown",
"PHP"
] | 5 | PHP | afluttershy/ip-moodle-heroku | 53654e6031d47c84345a2f4da9902acddad4c2f5 | 1cab1fd0c3e64b93fd4f83c69e636af2e81d7624 |
refs/heads/master | <repo_name>WMdaini/cars-managment-frontend<file_sep>/src/app/core/service/comment.service.ts
import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {Car, Comment} from '../generatedResource';
import {environment} from '../../../environments/env... | b76679da63397c05ac988f1e4bc27b07aee6884b | [
"TypeScript"
] | 7 | TypeScript | WMdaini/cars-managment-frontend | 9b4127884fdcd6fe151e4e1c4f78ee648ad04c3f | d63f3f5535b73ff10b6e500b4af6e6389a3fedbb |
refs/heads/master | <file_sep>var now;
var fileName;
var inputElement = document.getElementById("input");
function handleFiles() {
var fileList = this.files;
fileName = fileList[0].name;
// Create a root reference
var storageRef = firebase.storage().ref();
// Create a reference to 'images/tree.jpg'
var treeImagesRef = sto... | c3e891368ea702e0110119122d23be4e15e29ba9 | [
"JavaScript"
] | 1 | JavaScript | emiliodib/hyperdev | a9fe3ebb4b7da278836ec62f0031ac7814871376 | 2ac2ce6add11553d2e328159da1d863f9de479ec |
refs/heads/main | <file_sep>### Qn1
Estimate the magnitude and phase shift given h\[n\]
We calculate H(z) from h\[n\], then sub in the omega of x\[n\] to see the magnitude and phase shift
for xn = cos(0.1pin) and hn = {0.1,0.2,0.3}
Punch in matlab:
0.1*exp(-0.1*pi*i)+0.2*exp(-0.1*pi*i)+0.3*exp(-0.1*pi*i)
\[Out\]:0.5706 - 0.1854i
Ma... | 6559bdade5168624e9464d791ae017eb0a59f2b7 | [
"Markdown",
"Python"
] | 11 | Markdown | malavika002/NTU-CE3007_DSP | 5413042e649cb2f1a63d89fdd1ebc8d7ca673c3b | 4cfa21fc7d347e5c911369a3f016a835d41b9e28 |
refs/heads/master | <file_sep>app.directive('keyListener', function(listenerService) {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var keyboard = element.find('keyboard');
element.on('keydown', function(e) {
var keyNum = listenerService.getKeyNum(e);
... | 74facf46ef581492df3cf7d268f1e0a5a32cb481 | [
"JavaScript"
] | 3 | JavaScript | bossjohnson/web-synth | 18120193880f475a7c6d7ca9f3db587e73fa5bb8 | b09d504496f3850673ceb5d290aaa7c6fd128f1e |
refs/heads/master | <repo_name>shvetsiya/ICIAR2018<file_sep>/train_lgbm.py
#!/usr/bin/env python3
"""Trains LightGBM models on various features, data splits. Dumps models and predictions"""
import pickle
import numpy as np
import lightgbm as lgb
from sklearn.metrics import accuracy_score
from utils import load_data
from os.path import jo... | e187d265741c77d8722f6702d703ea1f8b02464a | [
"Python"
] | 1 | Python | shvetsiya/ICIAR2018 | 05beeab5c27125f17185736df49c9eddce39875f | 4f9e9ed999288d1a3cee55a27d46747815213c11 |
refs/heads/master | <repo_name>ndelangen/react-movie-carousel-app<file_sep>/server/dev-middleware.js
const Promise = require('bluebird');
const webpack = require('webpack');
const dev = require('webpack-dev-middleware');
const hot = require('webpack-hot-middleware');
const config = require('../webpack.client.config.js');
const notify = r... | 9671ba46ebbd03fb3417caca48715a3d602239ce | [
"JavaScript",
"Markdown"
] | 18 | JavaScript | ndelangen/react-movie-carousel-app | 05bc57db1d030ad8c8c7539b8750fcb262ed9065 | a3168ff38ce7bfb0ad7914ffa3332c246c6d1546 |
refs/heads/master | <file_sep>library('cccd')
G1 = nng(alldata,k=10)
plot(G1)
<file_sep>library("KRLS")
gauss_similarity_matrix = gausskernel(X = alldata, sigma = 1)
plot(var1,col='red',pch=22,bg='red',xlim=range(0,max(alldata[,1])),ylim =range (0,max(alldata[,2])))
points(var2,col='green',pch=24,bg='green')
points(var3,col='blue',pch=... | 82aa06edecc8dd6e1e511e66321b8da51ccca910 | [
"R"
] | 5 | R | kristyspatel/Spectral-graph-Clustering-in-R-ML | 8865734284e0b846f39b8edc74722da2a69b2bb0 | 0805e88ebf84ab413189cab3e536c87f8ad15ff4 |
refs/heads/master | <repo_name>diptigautam/TheMemeTeam_EverestHack<file_sep>/notification3/call.js
window.onload = function() {
fetchData()
}
function fetchData() {
let postsArr = []
fetch("http://127.0.0.1:8000/memeapi/").then(res=>res.json()).then(data=>{
//fetch("http://localhost:800[0/api.json").then(res=>res.json()).then(data=>{... | e4bd47bc2119e099e456234c7c71dc5f9c05eac1 | [
"JavaScript",
"Python"
] | 2 | JavaScript | diptigautam/TheMemeTeam_EverestHack | 1f906b041ac4100e3e1551ed0e5c9925c25f34dc | d43a90e99c1f70f0aaf9e3cb0b87f3c4167239be |
refs/heads/master | <repo_name>valgilbert/java-drone-delivery<file_sep>/README.md
# Drone Delivery Analysis
## Analysis
- How did you implement your solution?
- Ans. I implement my solution with SpringBoot and Java 8 Stream API
- Why did you implement it this way?
- Ans. It is much easier to manipulate several list using the Stream AP... | a5e459e3f5a45c5264bfdf26abb73a73f5620198 | [
"Markdown",
"Java"
] | 7 | Markdown | valgilbert/java-drone-delivery | 453ae0f57891ebb340553116e2e12a82554ce096 | c27b2682f90c10b4741751109cba506b04f4c67c |
refs/heads/master | <file_sep>app.factory('todoService', ['$resource', '$firebaseArray', function($resource, $firebaseArray) {
return {
get: function() {
var ref = new Firebase("http://firebaseio.com");
return $firebaseArray(ref);
}
}
}]);<file_sep># todo_firebase
This is a simple todo app with integration of Firebase for dat... | 512206df015062dbd5788f8fed71bd715abe6b8c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | estherylau/todo_firebase | f3354890b083802ace68e789ea14c730fec72336 | 17e9ae5ea5555b84f9438ba9036427670206156d |
refs/heads/master | <repo_name>pravl/react-input-select-fields<file_sep>/src/Select/Select.stories.js
import React from 'react';
import Select from "./Select.jsx"
export default {
title: 'Select',
component: Select,
argTypes: {
backgroundColor: { control: 'color' },
},
};
const Template = (args) => <div><Se... | 1c4dc9ff155c9bbd1b10a6e0cc3482c29974535f | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | pravl/react-input-select-fields | c99915a0bee042abe097ee0c2f7d3878dde49073 | c21718bc73ebd434b29b419d10e2fba8889aeddb |
refs/heads/master | <file_sep># EmbedMask
Unofficial implementation for EmbedMask instance segmentation
office: https://github.com/yinghdb/EmbedMask
arxiv: https://arxiv.org/abs/1912.01954
## Log
#### 2020/6/3
|config|bbox|mask|weight|
|-|:-:|-:|-:|
|MS_R_50_2x.yaml|40.399|34.105|[google drive](https://drive.google.com/file/d... | dafa7f4f37b50b6a3f8d2f24fb941947519be644 | [
"Markdown",
"Python"
] | 2 | Markdown | gakkiri/EmbedMask | a31538a5b7338a3fdcd4e270d3750da919b95214 | f6d4c2b60612c42b81f38fdae27ff9465d07f1be |
refs/heads/main | <file_sep>package tqs.projet.airquality;
public class Pollen {
private String city_name;
private String country_code;
private String state_code;
private double lat;
private double lon;
private int pollen_level_tree;
private int pollen_level_grass;
private int pollen_level_weed;
private int mold_... | 5f33c4174b1fbc3e44d6b47e9b04c3af5c862cef | [
"Java",
"Shell",
"INI"
] | 7 | Java | Barroqueiro/tqs_individual_project | 59ff275e734e3ed5e52ed8f6dc585d8e9e6b41b8 | 4a47080807109dab011dcd1161c67e18a88b8df8 |
refs/heads/master | <file_sep>const Discord = require('discord.js');
const db = require('megadb');
let bank = new db.crearDB('bank');
let game = new db.crearDB('games');
/*
*
* "channel_id": {
* "time": miliseconds
* "bets": {
* "betN": {
* "user": "userID"
* bet: money
* number: [num]
* ... | d714147509687b2ae28573d0693fd56a376885e4 | [
"JavaScript"
] | 4 | JavaScript | AlguienSama/random | 20ecea70a124fdcf0dd16dcff19c958c837c46e8 | fa740436348d25cad27173aee90e815ed400d7b8 |
refs/heads/master | <file_sep>/*
* Copyright (C) Institute of Telematics, <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 004fe60fd3c17f78ac6dba0482f1938ad7360d8a | [
"Markdown",
"Java",
"INI"
] | 9 | Java | TVLuke/SensorDroneDynamixPlugin | 06bb69a38a6dd46ba0c984ec06d4ff75427265e9 | 42e9743036abe0e2141e7dbe83480ed7bc59d447 |
refs/heads/main | <file_sep># project-pairs-jihed-ines<file_sep>
$(document).ready(function(){
$(".loginbox").hide();
$("#btn").on("click",function(e){
e.preventDefault();
var name=$("#name").val();
var pass=$("#pw").val();
localStorage.setItem("name",name);
localStorage.setItem("pass",pas... | 9e950f2ccb4e0e3e010694bdace3cdc5b0b78157 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | Iness-Jihed/project-pairs-jihed-ines | 334744b65a3d85720b903383b20deba0f1c9f8fb | b09ed8a679e0c702ad6bb6701eedd0822bce98e1 |
refs/heads/master | <file_sep># Yummy
## 网页版饿了吗
### 技术栈
#### html+js+css
#### springboot+mysql+jpa<file_sep>package com.dao;
import com.model.Customer;
import com.util.ResultMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.... | 6edd134e0a8faf1c0a3a7ff5f196b4bb2cfb0692 | [
"Markdown",
"Java"
] | 19 | Markdown | zhping5678/Yummy | 7fbd75547aa3eb7bd23ff23e74c168df0bcff2e6 | 7a2c47a6efa9bc09ce5bec9a623b3f074111c59d |
refs/heads/main | <file_sep>package main
import (
"flag"
"fmt"
"os"
"strconv"
"text/template"
)
type C struct {
Organization string
Port int
Couch int
}
func main() {
count := flag.Int("count", 1, "number of organizations")
withDocker := flag.Bool("docker", false, "is docker-compose files needed")
flag.Parse... | dac4717a9cfaabd38c652252684a4ac76aa992c6 | [
"YAML",
"Markdown",
"Go",
"Go Module",
"Shell"
] | 11 | Go | illya-havsiyevych/hyperledger-fabric-samples | d22d17cd19720a839e29281ca7ed1bd1e1eeaf5e | c1564fb53638d51399f3e66d3d89af747b506734 |
refs/heads/master | <file_sep>'use strict';
four51.app.controller('CategoryCtrl', function ($routeParams, $sce, $scope, $451, Category, Product) {
$scope.productLoadingIndicator = true;
$scope.trusted = function(d){
if(d) return $sce.trustAsHtml(d);
}
Product.search($routeParams.categoryInteropID, null, null, function(products) {
... | a1cab77b94e050148fa13a86ef1872f77341e0ef | [
"JavaScript"
] | 1 | JavaScript | jrasmussen451/MickyThompsonCustom | d6324f334e8d3562a9f85763cd5c307f53859919 | b93e82f8e06f50c95826ff4dea6bc9a9806598c2 |
refs/heads/master | <file_sep>import React from "react";
import { Link, useParams } from "react-router-dom";
import styled from "styled-components";
import { useHistory } from "react-router-dom";
function CategoryPage() {
const data_glasses = require("../db.json");
const { category } = useParams();
const history = useHistory();
... | 324b3d0c265e36507f13375fec5d22b558b9c5d3 | [
"JavaScript"
] | 4 | JavaScript | prasheel888/Lenskart-webapp | a886dc741aac7b378cdacc68af432be156e30464 | 189a80e21dc34ab10e20f265ccb29d0826cd5d6b |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
namespace Payables.Data
{
public class PayablesDB
{
public static SqlConnection GetConnection()
{
//string connectionString =
... | 182771a20aa232fb1e1ea07840ea3288ddf8bf77 | [
"C#"
] | 3 | C# | WouterKenis/wpfDisplayInvoicesDue---Start-solution | 53520fae1fa1a43b878d92457bcc38e1c5bcada5 | 5d4e6df232628b6488007638e9c12a01e22a00f2 |
refs/heads/master | <repo_name>AilinMcDermott/films<file_sep>/app/models/movie.rb
class Movie < ActiveRecord::Base
belongs_to :genre
validates :title, presence: true
validates :rating, presence: true
validates :title, uniqueness: true
end
| 14d94850298bff836a9f06150ece178aefcacdbc | [
"Ruby"
] | 1 | Ruby | AilinMcDermott/films | 90ba81cf36b3cff06130870dbd177ec5fd234d1e | 4a42d41fb82f73c78a2f2b5dac73eec010a846f1 |
refs/heads/master | <file_sep>import sys
import os
import math
pfile = open('pfile.txt').read()
bfile = open('bfile.txt').read();
hfile = open('hfile.txt','w')
for prow in pfile.split('\n'):
pword = prow.split()
ppn = int(pword[0])
pcd = int(pword[1])
flg = 1;
for brow in bfile.split('\n'):
bword = brow.spli... | 544472a52042fa3d4660e102676a81446e3bc409 | [
"Markdown",
"Python",
"C++"
] | 17 | Python | hardcao/PCI | 835c46dad2759dd833070114827105312830497b | b514af4f8c87fb377025d76c00d018ad66ba5532 |
refs/heads/master | <repo_name>Arnokeuh/Curriculum-Vitae<file_sep>/js/app.js
$(document).ready(function(){
$("aside").addClass("bringAside");
fillSkills("french_rating", 3);
fillSkills("english_rating", 4);
fillSkills("dutch_rating", 5);
fillSkills("office_rating", 5);
fillSkills("photoshop_rating", 5);
fillSki... | 96a52d82af785796ca866e1e1adee8127db1fec2 | [
"JavaScript",
"HTML"
] | 2 | JavaScript | Arnokeuh/Curriculum-Vitae | ce618e0dfa74608872776fd4a772dfe4251946cd | bef09370d3f8c35b808fa949fb448f78ca5c9f2e |
refs/heads/master | <repo_name>jbardliving/ruby-homework-day-1<file_sep>/hw.rb
def string(strings)
print "#{strings}" + " only in america"
end
def biggeestNumber(someNumber)
print someNumber.max
end
biggestNumber([12,24,36,48,60])
def arrays()
array1=[:toyota,:tesla]
array2= ["prius","model s"]
hashes= array1.zip(array2)
Hash... | 167b12082a45a2e565dc762a26e2f2f228c6a171 | [
"Ruby"
] | 1 | Ruby | jbardliving/ruby-homework-day-1 | f854736a27432997aacc2047b6da6fca767b5ed2 | 2079950c36784725d90788babceb11b8b6d244cb |
refs/heads/master | <repo_name>aaltowebapps/hungrybunch<file_sep>/public/scripts/api.js
//
// FeedMe! Javascript busines logic main file
// by <NAME> and rest of the Hungry Bunch
//
(function(FeedMe) {
FeedMe.lounasaikaApi = {
isReady : false
}
// Api related constants
var api_url = "http://www.lounasaika.net/api/";
var api_req_k... | 7861d637ddb562114b252ddf6a9b0c94a4345f4f | [
"JavaScript",
"Ruby"
] | 6 | JavaScript | aaltowebapps/hungrybunch | 4427743b0cce71ae845cb3ba13b4435dadbe0044 | 3c2acb0512781078dfdd005ffc6d924fe6000397 |
refs/heads/master | <file_sep># Hacker News Dashboard
> The Hacker News Dashboard is a full-stack web application which utilizes the Hacker News API to provide a dashboard for data analysis and visualization.
## Team
- __Product Owner__: <NAME>
- __Scrum Master__: <NAME>
- __Development Team Members__: <NAME>, <NAME>
## Table of... | 6bfefe8bab54fd80b4190f70ca40493281c214aa | [
"Markdown",
"JavaScript"
] | 6 | Markdown | Oleg24/Scheming-Lion | 7e9111b801414d6189367a6b28a62b00908f45d4 | b1d527fc94572f3e5487f506b2f76ffead24aa7d |
refs/heads/main | <repo_name>IreshOG/bus-booking<file_sep>/MyBusWS/src/routes/routing.js
const express = require("express");
const routing = express.Router();
const carBookingService = require("../services/users");
const CarBooking = require("../model/carbooking");
//showmy car database
routing.get("/show",async(req,res,next)=>{
tr... | c4391e3b6dc48212438accc0d42e040716afe2de | [
"JavaScript",
"TypeScript"
] | 10 | JavaScript | IreshOG/bus-booking | ec0646556ab0a8cc8be87ce4a2e29f1e0df09184 | 29db60d7d87769ba59ff90206dba73e1e0b4561c |
refs/heads/master | <repo_name>ibayrak/project1<file_sep>/project1/csv_parser.py
import csv
import sys
f = open('C:\some.csv', 'rt')
count=1
try:
reader = csv.reader(f)
next(f)
for row in reader:
print("Person %d" % count)
print("First Name:"+row[0])
print("Last Name:"+row[1])
if row[2] != '':... | 662178c188c54a3acd525c34cf7339baa6454f38 | [
"Python"
] | 3 | Python | ibayrak/project1 | 7f47c3804db7fe6daae7f7f6d7da2093257ae64e | 2e196fc4e0a5b76d3140383438f11cc2932c663e |
refs/heads/master | <repo_name>ccamiletti/family-cost<file_sep>/app/family-cost-backend/src/main/java/com/ccs/familycost/repository/impl/UserRepositoryImpl.java
package com.ccs.familycost.repository.impl;
import com.ccs.familycost.repository.UserRepositoryCustomer;
public class UserRepositoryImpl implements UserRepositoryCustomer {
... | 0020f6d372a7f56395598c5d417e0b69cafc0cb4 | [
"Java"
] | 3 | Java | ccamiletti/family-cost | c39d8af449f816cfc1c01260df3eccc7b6443994 | 1b744116fef18230b9f2d14902c955141a8304d9 |
refs/heads/master | <repo_name>baixiaosh/react-typescript-tools<file_sep>/README.md
## 说明
ts tool<file_sep>/src/redux/index.ts
import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk';
import reducers from './reducer/combineReducer';
let createAppStore = applyMiddleware(thunk)(createStore);
export const Store ... | b9d17afc046c535c003ebcb2bfe1480736af8be7 | [
"Markdown",
"TypeScript"
] | 4 | Markdown | baixiaosh/react-typescript-tools | 6e8f7884f88b859a5567ae0eb73b8d917137d822 | 62bd856f95d0f0c4854f1078b7839ee2cbd245ab |
refs/heads/master | <file_sep>function userTracker(_rupu,username){
var me = this;
this._rupu = _rupu;
this.bind();
this._db = new ajaxQueue({url:'usertracker.php',dataType:'json',type:'POST'});
this._userData = {
'user_id':username,
'start_time':Date.now(),
'window':[window.innerWidth,window.innerHeight],
'screen':[w... | 2d5759fcf996e57f88a5f602ee9e43ffd3f123c9 | [
"JavaScript",
"PHP"
] | 5 | JavaScript | heikkipesonen/testirupu | 7f810acc8af6e3a51b8e44212bc6ca4b347eccb9 | 77b3ae2baaef2f885baeb7d63e15ae8026445fea |
refs/heads/master | <file_sep>namespace Mps.Enums
{
/// <summary>
/// Перечисление индексов колонок
/// </summary>
public enum ColumnIndex
{
/// <summary>
/// Индекс колонки Лямда
/// </summary>
LamdaColumnIndex,
/// <summary>
/// Индекс колонки Мю
/// </summary... | b562589bfe8acd6fa4798798478a2ce0bb16918b | [
"C#"
] | 9 | C# | ajupov/mps | 5f82e80f75892df6fffc36f3d9af20b0f85d74bf | e2d79a1bf7fc9d3758bb7d8473e5613aff127e48 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.