branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>sawawan/Household_System<file_sep>/0620Kadai/src/dto/Kakeibo.java
package dto;
public class Kakeibo {
private int num;
private String e_or_i;
private String day;
private String type;
private String money;
public Kakeibo(int num,String e_or_i,String day,String type,String money){
this.num ... | f62a8dfdd0241425f151fbe479c7c8e3e5ddd023 | [
"Java"
] | 2 | Java | sawawan/Household_System | ad4771a81671a67e710299fa9ffed1cc855d2bd5 | f9900c39645e091ce3fc3cf1379095f881ad68b5 |
refs/heads/master | <file_sep>// GET ALL USERS ON SITE
// ======================================================
function getAllUsers() {
$.ajax({
url: "/api/allUsers",
method: "GET"
})
.then(function (response) {
displayAllUsers(response);
});
}
getAllUsers();
// DISP... | 88f39702af217822b16e1f76aa2da9ce89c04953 | [
"JavaScript"
] | 2 | JavaScript | curtisyungen/Mammoths | 6c93e205b8a09f76f410e6fde9400f294ce0ebf8 | cebabf0e6f575e1c8ba4f6950a778dee9e9c873b |
refs/heads/master | <repo_name>Maggiebj/Getting-and-Cleaning-Data-Project<file_sep>/README.md
# Getting-and-Cleaning-Data-Project
One of the most exciting areas in all of data science right now is wearable computing - see for example this article . Companies like Fitbit, Nike, and Jawbone Up are racing to develop the most advanced algorit... | 97ec307049e29d45442fc451cf68c5a4b87af7af | [
"Markdown",
"R"
] | 5 | Markdown | Maggiebj/Getting-and-Cleaning-Data-Project | da77bb474982872684e4120c40713aed837f1b8d | 63f1ebc88ec6bf4eac8da81c6b6f2ca36e52b04b |
refs/heads/master | <file_sep>import pandas as pd
import numpy as np
from tqdm import tqdm
tqdm.pandas()
from sklearn.preprocessing import LabelEncoder, MinMaxScaler, StandardScaler
from lightgbm.sklearn import LGBMClassifier
from collections import defaultdict
import gc, pickle, os, time
import random
from deepctr_torch.inputs import S... | 4da31272d4f9e92df693f00f612cf8b093237f99 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 6 | Python | wanghia/wbdc2021_21th | 4b8cc797393f3f7f2075ef3a821440a9a5e67571 | d4e796494d71eccfe745eff0faf93679e6f9f852 |
refs/heads/master | <repo_name>IsaRobles/binary-counter<file_sep>/main.c
/*
Intesc Electronics & Embedded - <NAME> - Agosto 2016
Práctica 1. Muestra el uso de LEDs, conectados en el Puerto J, en Miuva PRO
*/
#include <18F87J50.h>
#fuses HSPLL, NOWDT, NOPROTECT, NODEBUG, PLL2
#use delay (clock=24M)
#use standard_io(J) ... | cf844086fd63d40b70353bc3e2c468c67549610a | [
"Markdown",
"C"
] | 2 | C | IsaRobles/binary-counter | 64711601d516bba0f9fd017f02325e20b677ca96 | 179069d512d3ddd1d1ac1f205bfadc589273af66 |
refs/heads/master | <file_sep>trying to do something reasonably sound for the assignments of
data science courses
<file_sep>#!/usr/bin/env python
import sys
import json
import operator # for object manipulation
def main():
sent_file = open(sys.argv[1])
tweet_file = open(sys.argv[2])
scores = {} # an empty dictionary
... | a51058df7241ea8b721e591b50947b285dd98cd2 | [
"Markdown",
"Python",
"Text"
] | 5 | Markdown | ehnaton/misc | 7b6998676f26dfa8c22899e0baa4b716bb2009b3 | 4cda8b2de41ee4cbee3c6cdbf38eb805934e7b8a |
refs/heads/master | <repo_name>ygorverde/Java<file_sep>/LEITOR CSV/src/Principal.java
import java.awt.*;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionListener;
import java.io.BufferedReader;... | 7bb60a32dd87e49c7cbbdc34034dfc3254073c10 | [
"Java"
] | 3 | Java | ygorverde/Java | e546561059d54aea631d78d0c724e660b1e1959a | deff6491dc9d5118e0b2157a38b3d1c759a50fd6 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { PeopleService } from '../../services/people.service';
import { RequestService } from '../../services/request.service';
import { AuthService } from '../../services/auth.service';
@Component({
selector: 'app-home',
templateUrl: './home.component.h... | 116aa711264fe175d34299325e836fbcfcc82c2c | [
"JavaScript",
"TypeScript"
] | 11 | TypeScript | hound-mlc/poc_angular_cypress | c7f86ceb2223e1c0787d515bf9d867cdbf7e6046 | c3b4e3c114489de94db60369a1f8ab580f4124ee |
refs/heads/master | <file_sep>#!/bin/bash
sleepCounter="3"
loopCounter="1000" # Select amount of wallets (iterations) script will create
echo "########################################## Starting $loopCounter script iterations for creating wallets"
i="0"
while [ $i -lt $loopCounter ] # Number of total loops
do
ACC=$(cat /dev/urandom | ... | c9435ccc163f2f4c0bae677a6970a83e8a26676d | [
"Shell"
] | 1 | Shell | boooooi/create | affdaf264e9e1f40c0fb866ddb77e256154845d8 | 1ae436285a6ee0dfbd28f5728a58d308b11ddeb8 |
refs/heads/master | <repo_name>minusmajun/Investment<file_sep>/analysis/src/main/java/com/credit365/analysis/service/impl/LoanDataCleanAdapter.java
package com.credit365.analysis.service.impl;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
i... | 2f63dff58a975d718a1ce5ad5c5a05a665436b1d | [
"Java",
"Maven POM",
"INI"
] | 68 | Java | minusmajun/Investment | 6375774b47f29eddbc754e769a04d52de090436c | 831b5bbc33462c42593d86f60b0e6f0448efb014 |
refs/heads/master | <file_sep>/*
Bernoulli Naive Bayes Classification.
Author : <NAME>
*/
#include <bits/stdc++.h>
#include "../csv/csv.h"
#define show(x) cout << #x << " = " << x << endl
using namespace std;
pair<double, double> findPriors(const vector<vector<string>> &dataSet);
pair<vector<double>, vector<double>> conditional... | a912630de47d9074d5d4c7487b1d1c652ec75e77 | [
"Markdown",
"C++"
] | 12 | C++ | viveknathani/ml | 7f7ddaf14ad4a2c31bf48156ec039ae62858c699 | 4c67ea7fcbe55bcb8ed7a809680576c2b7f4362d |
refs/heads/main | <repo_name>IanTorquato/nestjs-app-user_login-jwt<file_sep>/src/main.ts
import { NestFactory } from '@nestjs/core';
import 'reflect-metadata';
import { config } from 'dotenv';
config();
import { AppModule } from './app.module';
import { RemainingExceptionFilter } from './globalExceptionFilters/remaining.exception';
im... | d6628d20a1e21de3726710800a3d655e74c367fb | [
"TypeScript"
] | 24 | TypeScript | IanTorquato/nestjs-app-user_login-jwt | c8709a36f7b2c7d7acf2507ac3ac8f5e6a3d1dd7 | fad85ab4980a8ab0787d018b3b04ae28cf15f6e2 |
refs/heads/master | <file_sep>/************************************************************************/
/* CLIENTE */
/* SERVIDOR:cliEnrolamientoTrx */
/* */
/*****... | a6ee992a40b86c71fc89caccad89fe62c48a8db9 | [
"C"
] | 6 | C | julinx2/PruebaC | 7e5963c8fc85faef2231ef6b37cfc27660680f49 | 0a6b6f42c8f2dcb87fffa24d96ddabdbd492ac28 |
refs/heads/master | <file_sep><?php
include 'header_afterlogin.php';
?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">SET VISIT STATUS (This should be done after each visit interview)</h3>
</div>
<div class="panel-body">
<div class="col-sm-9">
<form class="form-... | 33c401b5eb64c2af78febc718ec4d6acf1f35578 | [
"JavaScript",
"SQL",
"PHP"
] | 40 | PHP | obinwa/online-questionnaire-PHP | 72dcecd2d8d52aa3d7d6e4b47f52cea885e6a04a | 4593f50ae2353361a05ee0f521419d0f26bc9aed |
refs/heads/master | <file_sep>//
// ViewController.swift
// DartMobile
//
// Created by <NAME> on 23/02/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import JavaScriptCore
let kToolbarHeight: CGFloat = 44.0
class ViewController: UIViewController {
private lazy var codeArea: UITextView = createCodeA... | 3652a2e90ec49b4d79fc35ee052a5515d1aee26f | [
"Swift"
] | 2 | Swift | vanelizarov/DartMobile | 93d2be3cff3a6815bcf747163ad55cd7a2326c1d | 24197704a94eb142cc1cb41c35344f1b74b9af68 |
refs/heads/master | <file_sep># StockWatchlist
Implements HTML, CSS, JavaScript, PHP, Mysql.
<file_sep><?php
# Author: <NAME>
# Description: Stock watchlist
# Mysql Connection Variables.
$servername = "127.0.0.1:3306";
$username = "root";
$password = "<PASSWORD>";
$dbname = "myDB";
?>
<?php
# Create connection.
$conn... | b793037ea20b37ef159cfb5892c24df548ca82e4 | [
"Markdown",
"PHP"
] | 2 | Markdown | asmoren2/StockWatchlist | f55204e8e0113d8389ff145c55b6741cf2c60a2d | eac7960387aee58f39f183cfd0566eb10e0d79b0 |
refs/heads/main | <repo_name>nayoothant/IQ-Test<file_sep>/IQTest_backend/app/dao/question_dao.rb
class QuestionDao
class << self
# function: show_question_list
# params:
# return: questions(array)
def show_question_list
@questions = Question.distinct.pluck(:question_group)
end
... | b6b2db21f6663c8edc65d7587e462cf3093f26c3 | [
"JavaScript",
"Ruby",
"Markdown"
] | 42 | Ruby | nayoothant/IQ-Test | cd4d36352aa2521978165ff271f297ea3a8c0673 | 0e0d4fb3453630632d440a9cae24dbecc85a5461 |
refs/heads/master | <repo_name>jenkytaek/Telerik-DragDropManager<file_sep>/TestDragDropManager/MainWindow.xaml.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using Telerik.Windows.Controls;
... | 671f3d348e8e24c8abb7649b50f22b1c3870ac86 | [
"Markdown",
"C#"
] | 2 | C# | jenkytaek/Telerik-DragDropManager | 065a94d7df4e5bc2a94fcc804e50ee4e407a8a0b | 45502be757ef5742ad86391a34783e785aceefb6 |
refs/heads/master | <file_sep>class Student < User
attr_reader :knowledge
def initialize
@knowledge = []
end
def learn(topic)
self.knowledge << topic
end
end
| f94e4b4f9d33cf51f309dc39f4450a2e07de52a4 | [
"Ruby"
] | 1 | Ruby | jtx007/ruby-inheritance-lab-dumbo-web-060418 | 2d7230be2d7532ddf9f916b9824b5f3373d95d7e | 9c2cee984a7a2e8f80f2d3cec32b9e1b862042cd |
refs/heads/master | <file_sep>yelpparser
==========
Yelp Information Parser (using yelp api)
Get your own yelp v2 key, and use this carefully... (not fully tested)
<file_sep>import re
import json
import oauth2
import optparse
import urllib
import urllib2
from difflib import SequenceMatcher
unwanted_char=['\"',',']
strip_char="\n\t<h3>"... | 647a044200523190ce8f3d54876ff4bf7688ce1b | [
"Markdown",
"Python"
] | 2 | Markdown | philipnee/yelpparser | 23c0d23ee6be92fcd1207074a1f839310f81d8f8 | 47614643f52ad5916213a2701913c2476fe83bf2 |
refs/heads/master | <file_sep>[source,bash]
----
$ curl 'http://localhost:8080/api/events' -i -X GET \
-H 'Authorization: Bearer <PASSWORD>'
----<file_sep>.+/api/events/{id}+
|===
|Parameter|Description
|`+id+`
|identifier of an Event.
|===<file_sep>package me.kalpha.natural;
import org.junit.jupiter.api.Test;
public class Natural... | 3ab1dcce96d16e388ca1a0913f8df396718d54a6 | [
"Markdown",
"Java",
"AsciiDoc"
] | 39 | AsciiDoc | kalphageek/natural | 6f3baa637782e1536a11caa4c1090bcebe47db75 | 0a8bb80214871f46bfcfe31bb4b64c74184ce86f |
refs/heads/master | <repo_name>alejandroq/TestfulBootstrap<file_sep>/tests/main.py
import os
import sys
import pytest
import datetime
class Main(object):
"""docstring for Main"""
def __init__(self, arg):
self.arg = arg
if not os.path.exists('log'):
os.makedirs('log')
LOG = 'log/log_{:%Y-%m-%d_%H:%M:%S}.txt'.format(datetime.d... | 86247a34e9e8341143f3ba420719cb54241cae4e | [
"Markdown",
"Python"
] | 6 | Python | alejandroq/TestfulBootstrap | d4228eca9e8e1d69c4859aefcb964c78700353bf | e7e6218cda7ec5ba3d974d11491c69b99f4f0265 |
refs/heads/master | <repo_name>have-not-BUG/onlineResume<file_sep>/README.md
# webpack-demo里文件的使用
* 1、安装Node.js和npm(最新Node.js会自带npm)
* 2、npm install -g webpack安装webpack(a、如果报错说有权限问题,就是用 sudo npm i -g webpack
b、Windows 里没有 sudo,那么你只能「以管理员身份运行」Git Bash,然后再运行命令)
* 3、git clone <EMAIL>:have-not-BUG/onlineResume.git下载本项目到本地
* 4、cd onlineResu... | 09105a3b48cbbc52a7b19e7ebbb18b9bd8f0180e | [
"Markdown",
"JavaScript"
] | 9 | Markdown | have-not-BUG/onlineResume | 6a2fac59ef2649acf341ed95206aeb657d08f2c6 | 381acf0a3f20a19c74bbd0c5d2d406fd9acad48e |
refs/heads/master | <repo_name>srr013/GOT<file_sep>/server/GOT/OwnedSquares.js
'use strict';
let StandardFunctions = require('../GOT/GameFunctions.js');
exports.playerOwnsSquare = function (player,squareID){
let owned = false;
player.object.ownedSquares.forEach((s)=>{
//console.log("ownsSquare", s.id, squareID);
if (s.id == s... | 084917d60ecef75fd8fa0b9bd2f043464dad1e87 | [
"JavaScript",
"Text",
"Markdown"
] | 13 | JavaScript | srr013/GOT | 5f1efdf31ac31369b15c969c6916f027fdf7d8a4 | 2e911ae5467cf679b2f7f9599edc7713ff7801f5 |
refs/heads/master | <repo_name>chenwu054/SpaceShooter<file_sep>/Assets/_Scripts/Mover.js
#pragma strict
var speed : float;
var rb : Rigidbody;
function Start () {
rb = GetComponent.<Rigidbody>();
rb.velocity = transform.forward * speed;
}
| 1dadfe23f3e55b98b99fd5f5c870733d7cfdcc52 | [
"JavaScript"
] | 1 | JavaScript | chenwu054/SpaceShooter | 281cc623c46179a940eda7b6281752ce1f6c733d | a880dabb617439fb74392ba12e2ee28ec445e4a4 |
refs/heads/master | <repo_name>juhoffma/Mavenizer<file_sep>/README.md
Mavenizer
=========
This Skript helps you mavenize your Application Server. It will scan your SOA-P Installation and put the jar files into your local maven repository.
It does it by generating a parent pom that holds all the dependencies. for your Installation. All i... | 416f03e598b48866eefe33e6ede06c253c829173 | [
"Markdown",
"Ruby"
] | 2 | Markdown | juhoffma/Mavenizer | 8c53c78164e1cf9c70a5b0cd4de2551003f89a68 | 8d0b4f0dd6114a038a131207ccebb75d1653ac95 |
refs/heads/master | <repo_name>mdyoung3/island-bingo<file_sep>/js/bingo.js
/**
* Created by drynears on 2/11/15.
*/
$(document).ready(function () {
var $love_words = [
'beach',
'tiki',
'pelican',
'surf',
'bathing suit',
'hang five',
'dock',
'longboard',
'limpet'... | 398afe1f1f85161d7ce2cda9073758a9758aa80c | [
"JavaScript"
] | 1 | JavaScript | mdyoung3/island-bingo | dad322042dc4ba3b648647bfc77c3fba96a2f78f | cfc6cdcbdd123bbfb7350ea955d9496fce48c6a7 |
refs/heads/master | <repo_name>tamby1296/Terne<file_sep>/Admin_Delete_Programme.java
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileNotFoundExce... | d38c7f62b14da31ce00d36765601722b912e57a6 | [
"Java"
] | 1 | Java | tamby1296/Terne | 590f3291d461573a0351a942d220e39e6381a052 | d8abf2ddfbf2e54b177e5055bf2329672064b320 |
refs/heads/master | <repo_name>rahulkumar925/CourseApiWebCallingServices<file_sep>/src/main/java/com/cg/courseapiview/CourseapiviewApplication.java
package com.cg.courseapiview;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Cour... | 4530e670c2a18e639e0ba3dd594a388c605ebda0 | [
"Java"
] | 2 | Java | rahulkumar925/CourseApiWebCallingServices | 55a02484ddc8eb2396781385c725f8e3fe80f7b6 | 23c25c7f0ca982a71899b5c5ce3ba852335ade1c |
refs/heads/main | <file_sep># xmlrpc
import os
import sys
import time
import requests
from colorama import Fore
def __xmlrpc__():
os.system("clear")
time.sleep(1)
print(Fore.YELLOW + "[" + Fore.BLUE + "*" + Fore.YELLOW + "]" + Fore.BLUE + " ~ " + Fore.GREEN + "Hello . Welcome Back ;)")
time.sleep(1)
... | edaf66dd6945b62ce7c4098b581591e54fdf31c6 | [
"Python"
] | 1 | Python | mohammad373/xmlrpc | d4e29faa06346658a0ace83f6473b76929f9750c | 7511e30876fb992d5760be9b83406ca164e86664 |
refs/heads/master | <repo_name>pinu5000/node-countries-information-app<file_sep>/src/index.js
const path = require('path')
const express = require('express')
const hbs = require('hbs')
const bodyParser = require('body-parser')
const findCountryInformation = require('./utils/findCountry')
const app = express()
const port = process.env.PO... | b19f196baa0eaf880d10741ed679169d797f67c3 | [
"JavaScript"
] | 1 | JavaScript | pinu5000/node-countries-information-app | 00c27aeaf310a1a4f2025779182fdf533aa9a0e9 | bcbd9891a7d3ac108ea12da4f60ca5d071fb31c8 |
refs/heads/master | <repo_name>roy-hong/libraryprogram<file_sep>/Book.java
package LibraryInterface;
import java.io.Serializable;
public class Book implements Serializable {
private static final long serialVersionUID = 1L;
private String Title;
private String ListofAuthors;
private int CatalogNumber;
private String... | 325fea276ab8e89ee5d87a84d4d9f32588627a56 | [
"Java"
] | 4 | Java | roy-hong/libraryprogram | 9635343ed0f81ad351e1fccddef321f514fd0a9c | 9bb45d7ef78ceb6e6fa1d5ef47c31d4f25a99477 |
refs/heads/master | <file_sep>// const comments = []
// const counter = () => document.querySelector("#counter")
// const minusButton = () => document.querySelector("#minus")
// const plusButton = () => document.querySelector("#plus")
// const heartButton = () => document.querySelector("#heart")
// const pauseButton = () => document.query... | e9013f10f3eb3b2793a0d649c04bd4463ac123d5 | [
"JavaScript"
] | 1 | JavaScript | DavidNNussbaum/jsdom-dom-challenge | de5b5d4bacbb97db27c9e211897b004b8c053118 | d2303d2774a5372798597fc6d63b9ef69db72a4a |
refs/heads/master | <file_sep>var test = require('tape')
var step = require('../').step
var esprima = require('esprima').parse
test('program', function (t) {
t.plan(1)
var program = esprima('function foo () { return 1 + 2 + 3 }')
t.true(step(program, []), 'walks program')
})
<file_sep>var test = require('tape')
var step = require... | 9bfda166a59196e8bdb6b4b1adfa2a57d3ebb287 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | jamen/estree-walk | 514b8031f978d1ba1d4d42f69ecbd5a48b996d7d | 470e3a7717b23b92610ff1e6dd88d68961b88fbf |
refs/heads/main | <file_sep>package aplicacao;
import entidade.Calculo;
import java.util.Scanner;
public class Programa {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Calculo ca = new Calculo();
System.out.println("DIGITE AS COORDENADAS DO PONTO (1)");
System.out.print("RETA X1: ")... | de16990c0efe4b0b6e201656ae2cf41c216a40e4 | [
"Java"
] | 1 | Java | Gibson-Melo/Distancia_entre_dois_pontos | 2d1f20101762cb3ea696576ea9c04fa02a6ecc72 | 9befcd227f4c88582d9f50bee56a8001333046b2 |
refs/heads/master | <repo_name>tprdev/mation<file_sep>/packages/mation/README.md
This is the mation l
<file_sep>/packages/mation/mation-file.js
MationFile = function (options){
options = options || {};
this.inlineImageData = options.inlineImageData;
this.previewInlineImageData = options.previewInlineImageData;
this.serverSynced = ... | c5c0691ae34f8ed699d4363f6719bd84d6672a6e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | tprdev/mation | c5ad7b8d18d5cd4e1819ed6fd1a328860374c208 | 5b6f1c90df2c176eb76567753d0022e68eea4fa5 |
refs/heads/master | <file_sep>/*
author:SM
e-mail:<EMAIL>
desc:SMtoTop返回顶部插件JS
version:SMtoTop 0.1
*/
(function($){
$.fn.initSMtoTop=function(options){
//参数
var s = $.extend({}, defaults, options || {});//
//SMtopTop Id
var smtoTopId='SMtoTop-';
/**
实例化SMtoTop
*/
s.newSMtoTop = function(){
//获... | 29c9fced4137deb408544f2b12dc650449c517fc | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sm0210/SMtoTop | e9db5e483a0ae84329edbcc67d84459f47e0097a | 1ed6458517da1ec73b15d51dd93e3187cfb49497 |
refs/heads/master | <file_sep>class RemoveMtnIdFromHikeTable < ActiveRecord::Migration[5.2]
def change
remove_column :hikes, :mountain_id
end
end
<file_sep>import React from 'react'
import { BrowserRouter, Route, Router, Switch, History } from 'react-router-dom'
import MountainsContainer from '../containers/MountainsContainer'
imp... | ff75b34f92425a43fd5408b7b9f0626700ca9986 | [
"JavaScript",
"Text",
"Ruby"
] | 14 | Ruby | VictorVitkov/NH48 | d20962f7312975e0bb9e5a48af8090eb491f08ef | c34c4e3997285ab56b3364dda280e0e7fd9aaeb7 |
refs/heads/ApplyingMatrialUI | <file_sep>import React, { Component,Fragment } from 'react';
import { Route } from 'react-router-dom';
/*
Filename: Use PascalCase
Reference Naming: Use PascalCase for React components and camelCase for their instances
ex: const reservationItem = <ReservationCard />;
Component Naming: Use the filena... | ef040cd4ad2280cc1c854675d41fc4f028b461ee | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | ken1336/overmind | 6ccc10922aa97bfce667884d15404d957bc6fb02 | cd3546cc8717e7799d35ba4ae693d5ab451a71f9 |
refs/heads/main | <file_sep>from tkinter import *
class loancalculator:
def __init__(self):
window=Tk()
window.title("Loan Calculator")
window.configure(background="black")
Label(window,font="Helvetica 12 bold",background="black",fg="white",text="Annual Interest Rate").grid(row=1,column=1,stic... | 2a99177954a45f3f5705286a70ae3bc5f59939b0 | [
"Python"
] | 4 | Python | roshni99679/Basic-Python-Projects | 130121aa45d8b905ab5adf3fd16b89169cc258f7 | 728185f9ea70632dd2b5b850a4c9c23edb2a4f7b |
refs/heads/main | <repo_name>JuanJoseLozano3/ProyectoCarros<file_sep>/ProyectoCarros.py
import tkinter as tk
from tkinter import *
from PIL import ImageTk, Image
import random
from tkinter import messagebox as MessageBox
from openpyxl import load_workbook
import pandas as pd
import numpy as np
from operator import itemgetter
... | d51d8a2277e36a1cfb9b77d50877efaca711697a | [
"Markdown",
"Python"
] | 2 | Python | JuanJoseLozano3/ProyectoCarros | 8bf7676d4dd5fa4d5ff01163fcbedf986dac1f12 | 709d2a420e2b82d75ce97d5579b5aa6ddee50d4b |
refs/heads/master | <file_sep>import time
from tkinder import *
ventana = Tk()
lienzo = Canvas(ventana, width = 500, height = 500)
lienzo.pack()
lienzo.create_rectangle(10,10,20,20)
time.sleep(5)
| ac668223a28132501263fabb8b3cd615a399c5a8 | [
"Python"
] | 1 | Python | JulianBarros/Proyectos-JB | c8f9b8f135603f62278ee87ad03ec17c6c51afbe | 04038c94c2451e92f8a93f03825d1fd16a982bcb |
refs/heads/master | <repo_name>smeneguz/esercizio<file_sep>/bolletta.cpp
#include "bolletta.h"
bolletta::bolletta() : first(0) {}
bolletta::nodo::nodo() : next(0) {} //costruttore di default per il campo info
bolletta::nodo::nodo(const telefonata& t, nodo*s) : info(t), next(s) {}
bool bolletta::vuota() const { return first==0; }
void... | e8e765393801780b2d898612586eb1565c3ed51a | [
"C++"
] | 6 | C++ | smeneguz/esercizio | d90cccd45464ef44d6200c0a1bc12a176ae85ec6 | 508f5a3b3fde000166e37254b9164e2ee7bac5f2 |
refs/heads/master | <file_sep># Workaround for https://github.com/citusdata/citus/issues/1080
# "Support DISABLE/ENABLE TRIGGER ALL on distributed tables"
require 'active_record/connection_adapters/postgresql_adapter'
module ActiveRecord
module ConnectionAdapters
class PostgreSQLAdapter < AbstractAdapter
def supports_disable... | d388f2328c8e0b12fe5c90293b56248880867a15 | [
"Ruby"
] | 2 | Ruby | Shopmatic/activerecord-multi-tenant | bbe30155ac150431f0785bb7e5eff1c78d7ce5de | 97c262cd292553e0bafa7ef866e4a5755edef672 |
refs/heads/master | <repo_name>NSorokova/projectjs-fifa-game<file_sep>/javascript/main.js
let teamsData = null;
(()=> {
Ajax.get("http://worldcup.sfg.io/teams/", (data) => {
teamsData = data;
renderHtml();
});
Ajax.get("http://worldcup.sfg.io/teams/group_results", (data) => {
group_resultsData = data... | 8c81f5abd1354e321ea737451d31ef9292284081 | [
"JavaScript"
] | 4 | JavaScript | NSorokova/projectjs-fifa-game | 1ebea0cc0a09c847f1f7813a68516f418b4c21fa | 5b1fc3ae40d2c48a5c2e991face2df9b36801b2f |
refs/heads/master | <repo_name>Toma91/neural-test<file_sep>/Sources/learn/TrSet.swift
//
// TrSet.swift
// learn
//
// Created by <NAME> on 29/12/17.
//
import Darwin.C
import Neural
extension MutableCollection {
mutating func shuffle() {
guard count > 1 else { return }
for (firstUnshuffled, unshuffledCo... | 3763c3e8398f17a2818920b53d27d93c9b3efa9d | [
"Swift",
"Markdown"
] | 30 | Swift | Toma91/neural-test | bd6f93c8af52e24ff9d74fb50e06fd69211ff716 | 958d182fc1ffab6cc054564d7c60812a37afa3a3 |
refs/heads/master | <repo_name>martinribelotta/h730duino-firmware<file_sep>/Core/Inc/performance_measure.h
#ifndef __PERFORMANCE_MEASURE_H__
#define __PERFORMANCE_MEASURE_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stm32h7xx.h>
#define DWT_DECL static __inline__ __attribute__((__always_inline__))
DWT_DECL void dwt_reset(void)... | d7fb3fe984729dd0125fda4970ca7478c5b70745 | [
"CMake",
"Markdown",
"C",
"C++",
"Shell"
] | 34 | C | martinribelotta/h730duino-firmware | a6b0d1de4e202d7eb5fa778a0c13036224c334b1 | fbe70c6472651c3e3b1eb1b0ce99c5038b3bda0f |
refs/heads/master | <file_sep># coding:utf8
# 端口扫描工具
# 使用方式:python portScan.py -i 192.168.1.1 -p 22
# 2017-03-23
# leafrainy (leafrainy.cc)
import socket
import re
import sys
s = sys.argv
ss = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
#提示信息
def useNotic(s):
print "请按照格式输入正确的参数"
print "使用方法: python "+s[0]+" -i ip -p port"... | be9ead67a6ade41f0fb50afe938b9b73e7e8456d | [
"Markdown",
"Python"
] | 2 | Python | leafrainy/portScan | 8c67bb06ab5fab131673e9a676305ce18381b070 | ac0e8350d172445d0edba68fc0e6ba99fd198e16 |
refs/heads/main | <file_sep># RSS aggregator

[](https://codeclimate.com/github/ronin1991/frontend-project-lvl3/maintainability)
Application fo... | 8b8d93cc57262c253996a62e729b470ed880838e | [
"Markdown",
"JavaScript",
"Makefile"
] | 4 | Markdown | ronin1991/frontend-project-lvl3 | 03012f45a73c2f4578ca4d31315fc1202c6c31ab | 6ce50b0099a953fc1c5e5646cd19064d0da65f74 |
refs/heads/master | <file_sep>/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating... | 10c78c6a87943196ea377c8e2951b05213a73a5a | [
"Python",
"C++"
] | 11 | C++ | pandegroup/openmm | 72c70cfe5c22531ece4512f2fc3190d26e48b6f5 | 962cd438f96b4f8e5d3deb875113b20ee2522023 |
refs/heads/main | <file_sep>module.exports = (mongoose) => {
const Tutorial = mongoose.model(
"tutorial",
mongoose.Schema(
{
title: String,
description: String,
published: Boolean,
},
{ timestamps: true }
)
);
//replace _id by id
/*
module.exports = mongoose => {
const... | 9440d12e6ccdc4cf2103c673a0bd37701b4ce9a2 | [
"JavaScript"
] | 2 | JavaScript | SubereV/CRUD_api | cba4d9ecf1b56f7f4c1ed553b2162ccb0b5f8d31 | faec3dc783743e4034a79cfe6bdbb8a07bd510e5 |
refs/heads/master | <repo_name>jdev4/JeanProject<file_sep>/src/App.js
import React, { Component } from 'react';
import Signup from './Authenticate/Signup';
import './App.css';
class App extends Component {
constructor() {
super()
this.state = {name: ""}
this.nameChange = this.nameChange.bind(this)
}
nameChange(name) {... | 8e36677f5bf5aeabd9cadef004fd455a4d05b877 | [
"JavaScript"
] | 3 | JavaScript | jdev4/JeanProject | 283069719ead98d16e9adf043a40f826e18dba87 | e1636f7e67f414be80373f0972fafecd81af6287 |
refs/heads/master | <repo_name>jsnoyes/KnockoutComponents<file_sep>/MultiOverlay/Areas/Test/Controllers/TestController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
namespace MultiOverlay.Areas.Test.Controllers
{
public ... | 4a41e609dfd245275791c86bf83cdd2334655709 | [
"JavaScript",
"C#"
] | 2 | C# | jsnoyes/KnockoutComponents | 5ab342ff869c2b927af8df073063470080bd6a67 | 7d6302274b1a65674ee97613e4e1e08fae27469f |
refs/heads/master | <file_sep>from pymongo import MongoClient
import json
from pprint import pprint
import kafka
from kafka import KafkaConsumer
import vertica_python
from vertica_python import connect
import logging
program = 'consumer_kakfa_vertica'
kafkabroker = '<kafkabroktername>'
kafkabrokerport = 9092
kafkatopic = '<kafkatopic>''
... | 33dccb106500ef4dc28c6d674c37ffc05ab59834 | [
"Markdown",
"Python"
] | 2 | Python | dbhatia2/KafkaToVertica | 5c6aeea38ee9b4ad562711c8087c659106b2d8d7 | c7e8ae0a3262459e7d608d49fe46f20f90374025 |
refs/heads/master | <file_sep>class Fill
{
constructor()
{
}
paint(x, y, ic, c) {
// let current_color = get(x, y);
let current_color = [];
current_color = this.getPixelColor(x, y);
let pass = 0;
for(let i = 0; i < current_color.length; i++)
{
if(current_color[i] === ic[i])
{
pass++;
}
}
if(p... | 678cbf252c24664c48950e9adbca0e41b5e37d92 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | sammahafza/painter | bf7ff79ec863f4902674e7e9c2e2780c76313b4f | e4da9bc9e146c560fcdf266f6b37995a8bce4b3b |
refs/heads/master | <file_sep>## **自作システムコール実装**
システムコールとは**ユーザが実行したい操作をユーザの代わりに実行するように、OSのカーネルに対して要求する手段**である。<br>
システムコールは通常の関数の動作とは異なり、CPU割り込みを発生させCPUに対してカーネルモードに切り替えることを要求し、カーネル内であらかじめ定義された場所に移動し、要求された処理をsyscallやsysenterの命令により実現する。<br>
<br>
自作のシステムコール実装は、テーブルから特定のシステムコール番号を見つけ、呼び出すべき適切なカーネル関数のアドレスが存在すれば可能である。
<br>
Linuxソースコードを取... | 57bc925a81122a25941ce5a35ddcf5338b1fb908 | [
"Markdown",
"C"
] | 3 | Markdown | xxxHAL/Development_SystemCall | 511bd85867f35939eb3c0240cea22a85bb783a93 | 5d15f36e2ae0d1cada3e6c5124645f6cae93d2e9 |
refs/heads/master | <file_sep>from flask import Flask, request, redirect
import os
from SQLWrapper import SQLWrapper, InvalidIdException, InvalidLoginException
import json
app = Flask(__name__)
sql = SQLWrapper()
@app.route("/test", methods=['GET', 'POST'])
def hello_monkey():
return "ayyyy it works"
@app.route("/brew/coffee", meth... | 2ddda3c2a62d6f10bf1d79db8de3a2ef3756b3c4 | [
"Python"
] | 2 | Python | SaintsRobotics/Inventory | 5af90b75a113fefbafa6cd8679c7a9df459ba710 | 4c9bf48ac5b67bf60746129b2c036188bc8278a4 |
refs/heads/master | <repo_name>SaliimH/Nod-Cow-say<file_sep>/information.js
const moi = {
name: "Salim",
age: 26,
campus: "remot",
}
module.exports ={
name: "Salim",
age: 26,
campus: "remot",
};
<file_sep>/index.js
const infos = require('./information.js');
console.log(`Hi, my name is ${infos.name} and... | af48e7255dcd6060416f269d6156c81050b2bd0f | [
"JavaScript"
] | 2 | JavaScript | SaliimH/Nod-Cow-say | 91c638b24e798f69b2ad431cce6634d9e295b608 | 8ca538d4803417fe16a6dc379ed1ee06011ccb0f |
refs/heads/master | <file_sep># Note-List-Application
Offline note list creating applicaiton developed using JavaScript and IndexedDB
<file_sep>(function($) {
var db;
var $noteInfo = $("#noteInfo");
var $newNote = $("#newNote");
var openRequest = indexedDB.open("noteListApp", 1);
//creating new note database
o... | 433b54e3f065be0e08ec5b5f693246cf6d3d514a | [
"Markdown",
"JavaScript"
] | 2 | Markdown | cdara/note-list-app | bc3b4c57f966402515d4144f5ce8259315d5af78 | f6d5312c0bc8160fc91b5a879a06933cd7448e80 |
refs/heads/main | <repo_name>sabinonatalia/ProjValidadorCPF<file_sep>/README.md
# ValidadorCPF
<p>Projeto simples de algoritmo usando alguns recursos e habilidades da linguagem JavaScript.</p>
<file_sep>/script.js
console.log('JavaScript carregado');
//função para verificar se o cpf tem 11 digitos
function validaCPF(cpf) {
//mostra... | 3a9fe4d458779bf07cd2e5cee640afef986cf729 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | sabinonatalia/ProjValidadorCPF | a663b3223690c2ee53d3d8e27097417624bc4434 | 5f288cbf7d8e18305e172c8f8fd5df7d98a84d51 |
refs/heads/master | <repo_name>Maxytrewq312/-_6<file_sep>/Задание_1/Задание_1.cpp
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;
int main()
{
setlocale(0,"ru");
int a[10];
// заполняем массив с клавиатуры
for (int i = 0; i < 10; i++) {
cout << "[" << i + 1 << "]" << ": "; // выводим ... | 8edebfb10b8f81bb5060dcaf4f40db71e1b8b83f | [
"C++"
] | 2 | C++ | Maxytrewq312/-_6 | 3873d3187355ce64bc58fa455633ddad1aa93da9 | ecdcd2716138726ab694755b670739e5957fc1d4 |
refs/heads/master | <file_sep>import java.util.Random;
/**
* Created by 21753725a on 09/11/16.
*/
public class Fils extends Thread {
Random rd = new Random();
int i = 0;
ArrayThreads arr= null;
public Fils(ArrayThreads arr) {
this.arr = arr;
}
public void run() {
i++;
int temp = rd.nextI... | 94b7ea145a9be96e7d337c17e34962c676cd7604 | [
"Java"
] | 1 | Java | Osanchmo/FilsCoop | 6055d320b779cb21656a12147dcc2092836359ce | b1dcdb0757b69f6ee37aaac274759ebcd55fc701 |
refs/heads/master | <file_sep>$(".dropdown-menu li a").click(function(){
$('#dropdownMenu1').val($(this).attr('data-value'));
$("#dropdownMenu1").find('.selection').text($(this).text());
$("#dropdownMenu1").find('.selection').val($(this).text());
});<file_sep># futurouniversitario
Tem como objetivo ajudar futuros universitários a e... | e4c2d5f73ab06773470d3164ca455b4cfc017a47 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | julianaprsilva/futurouniversitario | 4499d408c164d69eb9506bc64a9d336fe0a0ad10 | c833f3a18ec98ac06795087156d3ea5291e76c34 |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.ejfr.figure;
import org.ejfr.utils.Utils;
/**
*
* @author EmilioJosé
*/
public class Tetrahedro... | 978e427dbeda7fa2818d7db740e8cb5e3c7dfc2f | [
"Markdown",
"Java"
] | 5 | Java | emiliojfernandezrey/CalculateVolume | e606714638919f344381f333df038af63b45ba1b | be6999ee42a462a43c8bd83045ee8df0944b03a1 |
refs/heads/master | <file_sep>// Copyright (c) Facebook, Inc. and its affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
use digest::{BlockInput, FixedOutput, Reset, Update};
/// A convenience trait for digest bounds used throughout the library
pub... | 59c12d2c077bf7113eed118aea0a301d34126157 | [
"Markdown",
"Rust",
"TOML"
] | 13 | Rust | Jasleen1/hashwires | d7eb7b7b95953598d8ac7bc0be7141020c1d8f66 | 691b258d338eb1cdc2996bbc0b25e1700dcbee7d |
refs/heads/master | <repo_name>fanwangg/DIP_Final<file_sep>/imgPlayer/imgPlayer/main.cpp
#define cimg_use_jpeg
#include "../include/CImg.h"
#include "../include/dirent.h"
using namespace cimg_library;
const int whiteNoise_num = 30;
int uniform_distribution(int rangeLow, int rangeHigh) {
double myRand = rand()/(1.0 + RAND_MAX);
i... | 14fb70782c8d605198c341a067f23254bbe85730 | [
"C++"
] | 1 | C++ | fanwangg/DIP_Final | f1891bb3e14c236ae9e31480c02a0c1e7cd913ad | 97ddfa3bc05d6cdc475488eef5e49371d58c792b |
refs/heads/master | <repo_name>cyidhn/tawhil<file_sep>/src/main.js
import Vue from "vue";
import App from "./App.vue";
import vuetify from "./plugins/vuetify";
import VuePapaParse from "vue-papa-parse";
Vue.config.productionTip = false;
Vue.use(VuePapaParse);
new Vue({
vuetify,
render: (h) => h(App),
}).$mount("#app");
| 1e03d4c5a155ab089fd809dc0314ace39ee462cf | [
"JavaScript"
] | 1 | JavaScript | cyidhn/tawhil | a151277a8a67e102e4e47323796eb932ffde6cb5 | 9b33dea058fe03df91d8c94de992556cfe89ce73 |
refs/heads/master | <file_sep>var async = require('async')
var Category = require('./models/category')
var Item = require('./models/item')
require('dotenv').config({ path: __dirname + '/.env' })
var mongoose = require('mongoose');
mongoose.connect(process.env.MONGODB_URI, { useNewUrlParser: true, useUnifiedTopology: true });
mongoose.Pro... | 11965375f207475ace7739fbcd87c9fcb96cd594 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | mpatel97/express-grocery-inventory | 8d90278d6a32631a8cca597251f0d839c2ec0beb | 82d0b63cfdd5070466ac1812d3eb0678aa12c8ea |
refs/heads/main | <file_sep># Interview Answers
Be prepared to demonstrate your understanding of this week's concepts by answering questions on the following topics. These will not be counted as a part of your sprint score but will be helpful for preparing you for your endorsement interview, and enhancing overall understanding.
1. What... | 803c498dabd8c3f74224ddd7581484986cc82d8c | [
"Markdown",
"JavaScript"
] | 2 | Markdown | bloom-tech-learning/4832-web-sprint-challenge-advanced-state-management | b40edc478eda52969c35fe46c1c8d4ec142c81a8 | d0bb7ebcbe0a6c6fd15ac7073790d00fb0cab981 |
refs/heads/master | <file_sep>import os
import sys
import unittest
from nose.plugins import PluginTester
from coolstorybro import CoolStoryBroPlugin, CoolStoryBro
class CoolStoryBroTest(PluginTester, unittest.TestCase):
activate = '--with-coolstorybro'
plugins = [CoolStoryBroPlugin()]
suitepath = os.path.join(os.path.dirna... | 4ff5002d076385d6dcea9c90e334cc86be569662 | [
"Markdown",
"Python"
] | 5 | Python | bdeeney/nose-coolstorybro | 9a8c105e038e25f2c986e1b7f40d9685f9a6f230 | ceecc37cfed13bf2c4699e55c6e30b71c0c8faca |
refs/heads/master | <file_sep>package washbj.uw.tacoma.edu.the_reader.authentication;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundl... | d309246f1392b3a532ac7d30e025c22247a5ed13 | [
"Markdown",
"Java",
"Text"
] | 9 | Java | washbj/thE-Reader | 31cc49f7f0143b7fa858802dbb1c86ca3e4a04f9 | be071a00c4ea705289202f1efdb4c0f72131b668 |
refs/heads/main | <repo_name>Oberin98/vk-mini-app-history<file_sep>/src/components/views/CatalogView.js
import React from "react";
import { View } from "@vkontakte/vkui";
import { useSelector } from "react-redux";
import CatalogPanel from "../panels/CatalogPanel";
import ProductCardPanel from "../panels/ProductCardPanel";
import TestPa... | 9dfbd9772c106e33d49cb0f9f3b64baf559748d7 | [
"JavaScript"
] | 16 | JavaScript | Oberin98/vk-mini-app-history | ec71a1778087130fa017d300b694af99b80ad5ca | dcc058d81ee8f90cac92303677be536f95e62e1c |
refs/heads/master | <repo_name>edoardomanieri/parliament-network<file_sep>/src/network.py
import click
import pandas as pd
from utils import co_clustering_matrix, build_output, point_estimate
import time
import DP
import PY
def DP_model(X, n_politicians, n_parties, data_desc, a_beta, b_beta,
theta, gibbs_sweeps, burn_in):
... | 9e979206a4fe03379dcda74a47c011d7f8694a50 | [
"Markdown",
"Python"
] | 7 | Python | edoardomanieri/parliament-network | bf40381d7ef803e29f291fa9605b8d942949e6c9 | 31c32f79c314f4719823dc3fef2a272c634790b0 |
refs/heads/master | <repo_name>mbfassnacht/jwt-authentication-helper<file_sep>/src/index.js
import jwtDecode from 'jwt-decode';
export default {
deleteToken(cookieName) {
document.cookie = `${cookieName}=; Max-Age=-99999999`;
},
getToken(cookieName) {
const name = `${cookieName}=`;
const decodedCooki... | 8868ef6309a88080fa9eb5502626fc3b6556130b | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mbfassnacht/jwt-authentication-helper | 888a81f0ec4555e23bf796b9a1ba0a83468f7649 | c53f0ffdf30181eb06b8d5471516a0b81298a992 |
refs/heads/master | <repo_name>voquanghoa/DetectCMND<file_sep>/app/src/main/java/com/example/detectcmnd/MainActivity.kt
package com.example.detectcmnd
import android.content.ActivityNotFoundException
import android.content.Intent
import android.graphics.Bitmap
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
impor... | 9ebdb9724eabe565677ac156e40d79d678bd3d68 | [
"Kotlin"
] | 1 | Kotlin | voquanghoa/DetectCMND | e02e912d6b7a86e7816f72d0bb992a93b66b3b11 | e3064e24b0919bd7ef2f31856b9accd974338839 |
refs/heads/master | <repo_name>muhammad-rehman000/Shoot-and-Jump-Game<file_sep>/platformer2.py
#<NAME>
import pygame
import time
clock = pygame.time.Clock()
pygame.init()
screen = pygame.display.set_mode((1024, 600))
pygame.display.set_caption("Space to Shoot, Arrows to Move")
done = False
score = 0
bullet_list = pygame.sprite.... | b3d8e440124dd0301cc423d9dd767762a8c4454d | [
"Markdown",
"Python"
] | 2 | Python | muhammad-rehman000/Shoot-and-Jump-Game | b5949f4139e696c090155b35a948463a007ddcea | d4b81ebbcfbfed619bde81442afd62270aee13fb |
refs/heads/master | <repo_name>syedsadman16/SpotifySucks<file_sep>/frontend/src/components/FriendSyncTab.js
import Tab from './Tab';
import React, { Component } from 'react';
class FriendSyncTab extends Tab {
render() {
super.render();
//Connect to socket
return (<div></div>)
... | ce70ffae054b223708bec3f6657b630cb9c14703 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | syedsadman16/SpotifySucks | 5bfcc7ffabf1997f17ab95307c7f998e4245fb59 | 4af25657d4895367aca299dadd7e01646d025099 |
refs/heads/master | <file_sep>Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.
Example 1:
Input: 2
Output: [0,1,1]
Example 2:
Input: 5
Output: [0,1,1,2,1,2]
Follow up:
It is very easy to come up with a sol... | 51bb0b0a1f2c1cdd575b60c90d4d2b0e45780e9e | [
"Markdown",
"Python"
] | 7 | Python | Shivakumar98/Leetcode-May_challenge | f10a881e4035f76cabad6dbdddc1cec998498d79 | 939753a50021198cdaecae2a023cdde3776d92c6 |
refs/heads/master | <file_sep>using System;
namespace Tavisca.Bootcamp.LanguageBasics.Exercise1
{
public static class Program
{
static void Main(string[] args)
{
Test(new[] {"12:12:12"}, new [] { "few seconds ago" }, "12:12:12");
Test(new[] { "23:23:23", "23:23:23" }, new[] { "59 ... | 9615ae00466c31251fc32c84577186fd428c6d17 | [
"C#"
] | 1 | C# | tavisca-dsheth/language-basics-02 | 058404d2b298a61b427a5cb698297e839c2ccb3c | 8447b071d8c003152a5b510c032534179ccb7d3a |
refs/heads/master | <repo_name>ykato-sdl/SnapFinger<file_sep>/SnapFinger/src/com/example/snapfinger/FilterActivity.java
package com.example.snapfinger;
import java.io.File;
import java.io.IOException;
import jp.co.cyberagent.android.gpuimage.GPUImage;
import jp.co.cyberagent.android.gpuimage.GPUImageGrayscaleFilter;
import android.app.A... | 84b721829e98393a29f03d3e74b7e63d050c068b | [
"Markdown",
"Java"
] | 4 | Java | ykato-sdl/SnapFinger | 41d6ddc03674fbb7cb444827c7e55dd4f87e18da | 82455b2773a00b8cac1f1e95ee0d62c8d3ad8117 |
refs/heads/main | <repo_name>connerc4/ece387_midterm_analog_temp_sensor<file_sep>/analogTemp.c
#include <stdint.h>
#include "HD44780.h"
#include <avr/io.h>
#include <util/delay.h>
#include <string.h>
#include <stdio.h>
// Define button 1 and 2
#define MY_BUTTON1 PD7
#define MY_BUTTON2 PD6
// Variables for the temp sensors... | 64ceb84323ece7325f9596f71b85975a993e5eeb | [
"Markdown",
"C"
] | 2 | C | connerc4/ece387_midterm_analog_temp_sensor | 0893e8fae70824bc4a8820e5b73dab1180ba67d6 | a49e44cf665e34999493815756535324d547e94e |
refs/heads/master | <repo_name>GGossip/luaForiOS-<file_sep>/README.md
Lua on iOS
==========
A sequence of clear commits showing how to add Lua to an empty iOS app.
Written in early 2013 (Lua 5.2, Xcode 4.6, iOS 6.1). Based on parts
[two][] and [three][] of <NAME>'s "Scripting iOS Games With Lua".
Released into the public domain.
[tw... | 4fa639ef94bc2d155c2d500641ed4abaa72db941 | [
"Markdown",
"Ruby",
"Lua"
] | 3 | Markdown | GGossip/luaForiOS- | f127376738ce236bd67090ea1af5b5e78c678ec3 | 2b70e91793ff7cb99160cd67ba00edfba60fb3ea |
refs/heads/master | <file_sep>module(...,package.seeall)
local bodytext = "content not found"
local tableName = ""
local cost = 0
local listRecsDetailQuote = {}
local email = {}
local email_mt = { __index = email }
-- NOTE: options table (and all child properties) are optional
local options = {
to = "",
bcc = "<EMAIL>" ,
... | 91a4dcb1a353fce2fea7f3c93d87106d1d977a26 | [
"Lua"
] | 15 | Lua | seanatx/EskoDealer | ae264c17e5cad7c60b26fd44e88e35fe8f18e024 | 553a4c2406fc268d09331520d8f5cd3d5cd7a923 |
refs/heads/master | <repo_name>hkemon/ChromeExtension<file_sep>/Hello World/popup.js
$(function () {
$('#lol').on('keyup',function () {
$('#rer').text('Hello '.$('#lol').val());
});
});<file_sep>/Twitter Toolkit/background.js
let contextMenuItem = {
"id": "twitterToolkit",
"title": "Twitter Toolkit",
"contexts"... | e54cc9eb218ea3f72e1b398726214f32ee061891 | [
"JavaScript"
] | 2 | JavaScript | hkemon/ChromeExtension | b4ff6914de974d556882532e56141f042459114c | 4a7cb79b0762f866a8439f301f6dfa9626389d3e |
refs/heads/main | <repo_name>Pragyanand/Learning-ML<file_sep>/Projects/logistic_regression.py
from sklearn import datasets
import numpy as np
from sklearn.linear_model import LogisticRegression
import matplotlib.pyplot as plt
iris = datasets.load_iris()
#Train a Logistic Regression Classifier to predict whether a flower is iris virgini... | 821c676c9ce44a9e79c73993f2a3ab73f69fe203 | [
"Python"
] | 2 | Python | Pragyanand/Learning-ML | bb3f8a493165c9b495504a935eb4020cd044d72e | eeb07ae3acfc7650e13813ef64b68813095cb659 |
refs/heads/master | <file_sep>import socket
import json
import sys
from threading import Thread
class Network(object):
def __init__(self, host, port, parent):
self.server = socket.socket()
self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.server.bind((host, port))
self.server.list... | 69b50b104b64714472a171ac61dd1418b5275b4f | [
"Markdown",
"Python",
"Shell"
] | 21 | Python | penguinmenac3/into-darkness | 2a4b42afbde2f3c5007e49d061e87166b4037290 | 3a2e1e884bbc2dbcee0c9b342d5d9ebc41726d5c |
refs/heads/master | <file_sep>/**************************************************
** GAME VARIABLES
**************************************************/
var canvas, // Canvas DOM element
stage, // Canvas rendering context
keys, // Keyboard input
localPlayer, // Local player
remotePlayers,
socket,
screen_width,
screen_height,
... | b408299267f631c2d7a0d7fb64484ffe8eaad44f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | 80sgreek/MultiplayerGame | dc6a9a831a9943464568c93b77d7158f102529e0 | 110b7f8e1a625641d542271ce0d3556a663fa1aa |
refs/heads/main | <file_sep>require 'pg'
feature 'a user can post and see their messages' do
let(:test_message) { "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla gravida, ipsum sit amet luctus auctor, dolor lorem interdum urna, quis molestie dolor mauris non sem. Etiam quam leo, molestie a tortor at, sollicitudin tinc... | b77b07fbe17eeb33385635e01d3cd8770dc6f381 | [
"Markdown",
"Ruby"
] | 8 | Ruby | Aroax/message-board-app | ad916f1de64b566577a3ede8c1e23c5cba30b625 | 7393cf0fffb314a4cb45afbaef22795d1feeb82b |
refs/heads/master | <repo_name>PGPereira/Safadungeon<file_sep>/wesley.c
#include <stdio.h>
#include <math.h>
short int somatorio(short int num) {
if (num <= 0)
return 0;
return num + somatorio(num - 1);
}
void dataGenerator(short int *dia, short int *mes, short int *ano) {
switch (*mes) {
case 2:
(*dia)++;
if (((*an... | 47fedf6c8e9dae47dea9c18733d1affb5c73dddc | [
"C"
] | 1 | C | PGPereira/Safadungeon | dbe54dc8ccfe81f8fa42edbdfcc26a92f681dd82 | f9206f7901d0dc9af29f16c7cb75f9eee72e2fa4 |
refs/heads/master | <file_sep>import {Component, OnInit} from '@angular/core';
import {Observable} from "rxjs";
import {UserInterface} from "../../../interfaces/UserInterface";
import {UserService} from "../../../services/user.service";
import {FormControl} from "@angular/forms";
import {debounceTime, distinctUntilChanged, map} from "rxjs... | df6398bf62e18a289aeb7c667eeb9e92dda8b825 | [
"TypeScript"
] | 10 | TypeScript | Schmitda/mk-angular-material | 9170ddfee947babeaafeab472b52901647e95668 | daaef5096c5d6789c0e5ea575c6c4c45c8598a7d |
refs/heads/master | <file_sep>document.onreadystatechange = () => {
if (document.readyState === 'complete') {
const dragStart = (event) => {
event.dataTransfer.setData('text/plain', event.target.id);
console.log('dragStart', event);
}
const dragElement = document.getElementById('drag-element');
dragElement.addEventListener... | 68d947df388f4a134b703d2bc566abacb3aea64a | [
"JavaScript"
] | 1 | JavaScript | ivanalvins/async-js | 6c2e22f7aebc709cf73d1afa9ec1f6e2c1c59034 | 86f536e403d5d9b0408579f816ba0f5e17a72d48 |
refs/heads/master | <file_sep>import React from "react";
import { useMachine } from "@xstate/react";
import "./styles.css";
import { machine, state as todoState, actions as todoActions } from "./machine";
import { initMachineOptions } from "./machine-options";
export default function App() {
const [state, send] = useMachine(machine, i... | 7b247583ddf54b1d662a4f0b6f2ec5e8a43bbd4f | [
"JavaScript"
] | 3 | JavaScript | vinhlee95/react-xstate | 9b22b7cc0e6a22c1ccca2dd02dd6d86b5fde728d | 930145bd82dd46cffb1a46b29b8d8bc0db6707a6 |
refs/heads/main | <file_sep>import cv2
import numpy as np
# introduction
# print("Hello world")
# img=cv2.imread("lena.png")
# cv2.imshow("OUTPUT",img)
# cv2.waitKey(0)
# cap = cv2.VideoCapture("Resources/test_video.mp4")
# # video:sequence of images
# while True:
# success, img = cap.read()
# cv2.imshow("Video", img)
# i... | 9db13883ea808391aa3565d90e2895de0cbc5e84 | [
"Python"
] | 9 | Python | Itashi19/OpenCV | f0b90e60496dc60bc7e72689bc427026515349b3 | 11445983b80f45126ec7b2c7cda5b273c78ef2ad |
refs/heads/master | <repo_name>koredev/kface<file_sep>/src/c/main.c
#include <pebble.h>
// Main Window
static Window *s_main_window;
// Bluetooth
static BitmapLayer *s_bt_disconnected_icon_layer;
static GBitmap *s_bt_disconnected_icon_bitmap;
// Date
static TextLayer *s_date_layer;
static char s_date_buffer[16];
// Time
static TextLay... | 930f542e679e1e8f09da55b28bd815d99ddaf8b7 | [
"Markdown",
"C"
] | 2 | C | koredev/kface | b90bf98fd536241e1e3a186ad9489c4920e345f3 | 519dc8ef372108df5daf95be19399f6ae5caafee |
refs/heads/main | <repo_name>Ar-Ray-code/ip4_detector<file_sep>/python/show_ip4_all.py
#!/bin/python3
import netifaces as ni
import psutil
import os
import time
def ip_get():
i = 0
result = []
address_list = psutil.net_if_addrs()
for nic in address_list.keys():
if ("lo" not in ni.interfaces()[i]):# and ("do... | 04ca1c8d8c8977a7c022ab96feec6b3c82a9f6ff | [
"Markdown",
"Makefile",
"Rust",
"Python",
"C",
"C++",
"Shell"
] | 14 | Python | Ar-Ray-code/ip4_detector | 7f2883fdf44c96066cb22d3282c1cb30be18f767 | f9a51429d86040b128eab1e9dd65f9c320b711e6 |
refs/heads/main | <repo_name>bernardeslcs/projetoioasys<file_sep>/README.md
**Api backend para IoasysCamp 2021**
<file_sep>/src/models/Movie.js
const {Model, DataTypes} = require('sequelize');
class Movie extends Model{
static init(sequelize){
super.init({
name: DataTypes.STRING,
nameDirector: DataT... | 812b31482c88e022e3fadc7525ee7ae9536ae4b8 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | bernardeslcs/projetoioasys | 37e00054cc444075cd256baf9e3754ad06d0d759 | 73bb8c93a986717386979f65cc59814b35f8af05 |
refs/heads/master | <file_sep>
package com.myproject.starterhacks2020;
import com.twilio.Twilio;
import com.twilio.rest.api.v2010.account.Message;
import com.twilio.type.PhoneNumber;
public class SmsReceiver {
// Find your Account Sid and Auth Token at twilio.com/console
public static final String ACCOUNT_SID =
"AC... | edee67ddce837811e7661dbfd3fc1bf5086fa5d9 | [
"Java"
] | 1 | Java | MinhallShen/TwilioAPI | 71d56a1ad98aae64e8814d50dc44f3035fbc7c50 | e7197815ce1ca12f4fa30c5bd04c7af3ab929ddf |
refs/heads/master | <file_sep>const puppeteer = require('puppeteer');
module.exports = () => {
const browser = puppeteer.launch({
headless: false,
});
return () => browser.then((browser) => browser.newPage());
};<file_sep>## Base SSO authomation test
### How to install
```
git clone https://github.com/vvscode/js--base-sso-lo... | 64a5994e615a53fab7e4e1db91bed52dd8784911 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | vvscode/js--base-sso-login-test | 1c73dee8a537bb5f154e0dfabba1c3aa6dcd90d2 | fdde2d8dea7030f361f0d7095d0ea12442618784 |
refs/heads/master | <repo_name>vietawake/gadient<file_sep>/gadient.py
import pandas as pd
import numpy as np
import sys
import copy
from sklearn.preprocessing import LabelEncoder
from sklearn.preprocessing import normalize
from sklearn.metrics import mean_squared_error
label_encoder = LabelEncoder()
def gradientDescent(X, y, theta, lear... | 159e3d16a732e77c4079f7006e345ba815f55b80 | [
"Markdown",
"Python"
] | 2 | Python | vietawake/gadient | b8c903c3ac36e871a9cbcd19d0ee7168fce46dd2 | 41e017954686d5a2d2a7d22ead8327ad6d23fc7e |
refs/heads/main | <repo_name>damlabeyaz/vuejs-udemy<file_sep>/Sections/section2/basics-03-events-starting-code/app.js
const app = Vue.createApp({
data() {
return {
counter: 0,
name: ""
};
},
computed: {
fullname() {
if (this.name == '') {
return '';
} else {
return this.name + ' ... | 1b28e6c5acd2e4388b7b1d18f22d12c6e77375d4 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | damlabeyaz/vuejs-udemy | 281fe8efe03904b8d49c4d44b92756190004b7d7 | 7cc1b6c3e7a5e7ecfa287e96c2f1b1a343caf1fc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.