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>hipobali/phpmyadmin-data<file_sep>/lvOne.sql
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 20, 2019 at 02:20 AM
-- Server version: 5.7.25-0ubuntu0.16.04.2
-- PHP Version: 7.0.33-5+ubuntu16.04.1+deb.sury.org+1
SET SQL_MODE = ... | 4b87a105a472741c960b471175474f4278fbae03 | [
"SQL"
] | 3 | SQL | hipobali/phpmyadmin-data | 2f11aa00546221a0e86344dcb29c27b95f805abc | 418e863f83883629d58fe27eb90dd484689fcfb0 |
refs/heads/master | <repo_name>joaopaulogalvao/sead40_hw3<file_sep>/AuthService.swift
//
// AuthService.swift
// sead40_hw3
//
// Created by <NAME> on 8/19/15.
// Copyright (c) 2015 jalvestech. All rights reserved.
//
import UIKit
class AuthService {
class func performInitialRequest(){
UIApplication.sharedApplication()... | 08ff42c5e9b991a74f88a33589f856e8f25ddb6f | [
"Swift"
] | 15 | Swift | joaopaulogalvao/sead40_hw3 | 1cbebd2cab10010c89c087dc765d730b0d5e4d79 | da0a1b3ec48a2390078d24eee3efd0b00e7ac768 |
refs/heads/master | <file_sep>package demo.concurrent.optimizations;
/**
* Java concurency optimisations benchmark based on article:
* http://www.infoq.com/articles/java-threading-optimizations-p1
* http://www.infoq.com/articles/java-threading-optimizations-p2
*/
public class LockTest {
private static final int MAX = 20000000; //... | 052a77b54b6345bfa16132743216d036f3884816 | [
"Java"
] | 1 | Java | piczmar/JavaConcurrency | 91a95a2f7b1e4b382472a0e637753bd9f0c3293c | 2947900618853559ffe9a31ed245c5ad24b3cedd |
refs/heads/master | <repo_name>ShevtsovDmitriy/Monopoly<file_sep>/src/sample/MyGame/Field.java
package sample.MyGame;
import java.util.ArrayList;
/**
* Created by Дмитрий on 06.10.2014.
*/
public class Field {
public static Field GetGameField(){
if (gameField == null){
gameField = new Field();
}
... | 54f2169adfa8677db7d0a2e53fab59911ce4eea7 | [
"Java"
] | 5 | Java | ShevtsovDmitriy/Monopoly | e70d3ef338926c8c49db540fe734163df4676524 | 393ef7432727ab95b83b85f4e7ed047265fcf99b |
refs/heads/master | <repo_name>algo-88team/Hidato<file_sep>/Generator.cpp
#include <random>
//
// Created by thdtj on 2018-11-21.
//
#include "Generator.h"
#include "Cell.h"
#include <random>
#include <algorithm>
#define GET(map, p) (map[p.y * width2 + p.x])
Generator::~Generator() {
for (int i = 0; i < height; ++i) {
for (int j =... | afd207e6e47887067e04d2aa2f903fbfbaf39d18 | [
"Markdown",
"CMake",
"C++"
] | 13 | C++ | algo-88team/Hidato | 6bfe5ea7660434d39c4bf69e75f7c436dbbf73d1 | f87e988d536ae7c9759fa54f81d9efd5aafa13a9 |
refs/heads/master | <repo_name>gavioto/gwt-polymer<file_sep>/src/main/java/br/com/rpa/client/_coreelements/CoreIconElement.java
package br.com.rpa.client._coreelements;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.TagName;
@TagName(CoreIconElement.TAG)
public class CoreIconElement extends Element {
public... | 3f72e72ae54fc4c734cd929de613c5588cb09a47 | [
"Java"
] | 1 | Java | gavioto/gwt-polymer | e6f8fdf5ec9a35f747a348365f40507985299db5 | 87e50057bbc074b85b0fed53c97624487286ec11 |
refs/heads/master | <repo_name>Nareshbojja/Decra_serviceProvider<file_sep>/src/providers/generic/generic.ts
import { Injectable } from '@angular/core';
import { LoadingController, ToastController } from 'ionic-angular';
// import { StorageProvider } from '../storage/storage';
import firebase from 'firebase/app';
/*
Generated class for ... | ddd87607b8f5256ea35e1d600890c5d0e1d32c23 | [
"JavaScript",
"TypeScript"
] | 10 | TypeScript | Nareshbojja/Decra_serviceProvider | 07d1f526563de61999861bdfe8244fbeebd52139 | 79c74f6c2bde001b4911f7c9063251e9973e25c0 |
refs/heads/master | <repo_name>Udaypalmewada/spring_transaction<file_sep>/JDBCtransaction/src/com/app/txmgmt/TESTtxmgmt.java
package com.app.txmgmt;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Scanner;
import com.mysql.jdbc.PreparedStatement... | 03da93007624631fc0b3410f4ee50ab9151f2f02 | [
"Java"
] | 1 | Java | Udaypalmewada/spring_transaction | 5e7357fd99f18b7357a95913afbe8955b673658d | bb53806bbec225d740ba003d29355861e355a22e |
refs/heads/master | <file_sep>#!/usr/bin/env python
import telepot
import time
import sys
from pprint import pprint
class TheBot:
def __init__(self):
TOKEN = '<YOUR TOKEN>'
self.bot = telepot.Bot(TOKEN);
self.bot.notifyOnMessage(self.handle_msg)
def handle_msg(self,msg):
pprint( msg )
content_type, chat_type, ... | 4d9332d9b7488ba3492171577fac8fc893c652d4 | [
"Python"
] | 2 | Python | viticlick/teleBot | 79affbaf2290f1edbebdf55e39c684bb36ed70d7 | 572b5a68b245e4d539727c7d688f9596c2bcc7b0 |
refs/heads/master | <file_sep># 常用分词用具比较
hanlp jieba
# 集成要求
- 不能太大
- 内存不能太高
- java?python?<file_sep>package com.idss.demo;
import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.collection.AhoCorasick.AhoCorasickDoubleArrayTrie;
import com.hankcs.hanlp.corpus.dependency.CoNll.CoNLLSentence;
import com.hankcs.hanlp.corpus.dependency.CoNl... | 87752022b77b787390fb1ab031d8188b05f9812c | [
"Markdown",
"Java"
] | 2 | Markdown | huoqubing/chineseanalysis | 5b5620d550379ef66a4510934563f91a4373e893 | 66c42ac74b0298f24002aea572c37ddcd17b7f38 |
refs/heads/master | <repo_name>NathansStuff/PlatformerGame<file_sep>/src/anims/index.js
export default anims => {
anims.create({
key: 'hit-effect',
frames: anims.generateFrameNumbers('hit-sheet', {
start: 0, end: 4
}), frameRate: 10, repeat: 0
})
} | 86491196d2ff400ff6a37660f3c22d967db7d3fb | [
"JavaScript"
] | 1 | JavaScript | NathansStuff/PlatformerGame | f6002411d6e50a22301f08195cf5aa2724df927b | fce1890c0d2d2d986e174aad4b422296b4b31134 |
refs/heads/master | <file_sep>console.log(process.argv);
// Protractor config
exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://127.0.0.1:4444/wd/hub',
specs: ['spec/modularized.spec.js'],
capabilities: {
'browserName': 'chrome'
},
onPrepare: function() {
var SpecReporter = require('jasmine-spec-reporte... | 0b98ddc6221d026ee1e1450d9924f57ab73d0033 | [
"JavaScript",
"Markdown"
] | 27 | JavaScript | BTplc/AIS-E2E | f94d3d26036bcaba3a954687bdd885b6970ce1a4 | b4633f3b96c60df16b2f7ba04b714d8ce99682f0 |
refs/heads/master | <repo_name>irinfox/collocations<file_sep>/interface/index.php
<?php
//строки, кот. формируются по параметрам. 1ая для поиска файла (чтоб не считать, а сразу выдать), 2ая для запуска соотв. запросу программы
$filename = "";
$launch = "perl ";
$launchDict = "perl ../newProgr/freqs_count.pl -f ";
$launchDict1 = "perl... | 216062b63f10ab90329b687ed52340652dac22e4 | [
"PHP"
] | 3 | PHP | irinfox/collocations | 780a2154a0eeba1ae241deabc925a15d9f28c6ca | cb034563874ef310bebb33ded1f14573c81ce4c9 |
refs/heads/master | <repo_name>diegoalpin/SA-NETCore-Solution<file_sep>/SA-NETCore-Solution/Controllers/SearchController.cs
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using SA_NETCore_Solution.Models;
namespace SA_NETCore_Solution.Controllers
{
pub... | ff051a9e390837ab76002f15a89b3cc8299d67c9 | [
"C#"
] | 5 | C# | diegoalpin/SA-NETCore-Solution | e8ae136f7032ce97636db46b053c17999da056c2 | 5c27043ae1e5ff8b16e7544ba35d87c3660925f4 |
refs/heads/master | <repo_name>mgarlanger/VirtualH89<file_sep>/VirtualH89/Src/Terminal.h
/// \file Terminal.h
///
/// \date Apr 12, 2009
/// \author <NAME>
///
#ifndef TERMINAL_H_
#define TERMINAL_H_
#include "SerialPortDevice.h"
/// \class Terminal
///
/// \brief Base %Terminal.
///
/// Base class for generic terminal.
///
class Term... | 258d3714d321572b6d4fe1cf7a6462d44fd333d7 | [
"Markdown",
"Makefile",
"C",
"C++",
"Shell"
] | 170 | C++ | mgarlanger/VirtualH89 | 093ebb6be8a2d2a37b6e2e59f16b7c422b71665d | ef6db117ba08c8ec0a456f96d61180a64c9352bc |
refs/heads/master | <file_sep>from bs4 import BeautifulSoup
import requests
import datetime
import os
import sched, time
import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
urlSIMM = ("https://www.medellin.gov.co/simm/mapas/camaras.html")
r = requests.get(urlSIMM)
s = sched.scheduler(time.time, t... | 6e1b648d88c79616896d8ef4bc87aeef46ba80f4 | [
"Python"
] | 1 | Python | alkeyandro/python_projects | 4763c218fd377f8498b1f701b0cad14de1ed2e68 | bee85b5ba706dcd7ad4806e280b4dd6d4003d9bc |
refs/heads/master | <file_sep>def square_array(array)
index = 0
while array[index] do
array[index] = array[index] ** 2
index += 1
end
array
end | 80b1520589d15c4b6a22f4fb45c58c5477817c6c | [
"Ruby"
] | 1 | Ruby | steve-alex/programming-univbasics-4-square-array-london-web-082619 | 3e211ca8e5626faaa450960309a8e31f0040352e | c6d07b31664e20915c1895ee02fd5040605e0df0 |
refs/heads/master | <file_sep><?php
namespace dwa15p3\Http\Controllers;
use Illuminate\Http\Request;
use dwa15p3\Http\Requests;
use Faker\Factory as Faker;
class UsersController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function getCreate(... | 00e3cb1e245347d65dfd2e25c028d991e02578b0 | [
"Markdown",
"PHP"
] | 5 | PHP | rcb4t2/dwa15p3 | d50af93490490dfd48360fe5566816d3dfb44e94 | 3f4144dfc12cd21e8367bb48884c33a8fe8bc7de |
refs/heads/master | <repo_name>dkw5877/SwiftyContainerViewController<file_sep>/SwiftyContainerViewController/TableViewController.swift
//
// TableViewController.swift
// SwiftyContainerViewController
//
// Created by user on 12/30/14.
// Copyright (c) 2014 someCompanyNameHere. All rights reserved.
//
import UIKit
class TableViewCont... | ecf781883f8fb566cf9d7b8d93f076c8abfa035b | [
"Swift"
] | 3 | Swift | dkw5877/SwiftyContainerViewController | aa8fbb383037d3947b20b38363e387898c8fc5e0 | bf3292ba6c214cba0c55eb6ac6f8aa984e378120 |
refs/heads/master | <repo_name>dipikaspatil/Database_Systems<file_sep>/Backend_Source_Code--PLSQL/Package_Body_Spec/STUDENT_REGISTRATION_SYSTEM_SPEC.sql
CREATE OR REPLACE PACKAGE STUDENT_REGISTRATION_SYSTEM AS
/*
Global Types
*/
TYPE REF_CURSOR IS REF CURSOR;
-- COMMON EXCEPTION
EXCP_INVALID_B# EXCEPTION;
... | 241c60928aaeb96dabe156df6f6d3c3c057da991 | [
"Markdown",
"SQL",
"Java"
] | 18 | SQL | dipikaspatil/Database_Systems | 373ade411850bf6edc33447c3cba41c5f2d80914 | d606bb291136a46e22dd7b6c9f5643377ccc5ec8 |
refs/heads/master | <file_sep><?php
/**
* @copyright dadeh kavi rezvan Co.
* @author <NAME> <<EMAIL>>
* @license http://opensource.org/licenses/mit-license.php The MIT License (MIT)
* @package yii2-widget-datatables
*/
namespace faravaghi\datatables;
use Yii;
use Closure;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\Acti... | 24b97c9a6e77f70d7759b26716deb3e93517c7c1 | [
"PHP"
] | 6 | PHP | faravaghi/yii2-widget-datatables | 5bba81b45944e812355114a560089a10524e8496 | 5fd7ab279b320e04f5ba1dcc4acea1f1a1eee8de |
refs/heads/master | <file_sep># crime-over-time
How Did Birth Control, Abortion Policies, and Lead Emissions Affect the US?
<file_sep>create table codes (
MSN varchar,
Description varchar,
Unit varchar
);
create table data (
Data_Status varchar,
State varchar,
MSN varchar,
_1960 varchar,
_1961 varchar,
_1962 varchar,
_1963 varc... | 2656dc490bd91821e7ea53fa5967ff4c9d462183 | [
"Markdown",
"SQL",
"JavaScript"
] | 6 | Markdown | qwertey6/crime-over-time | 3a426c5d6bc62751505e1ce4b1a3cecb9a2e6e09 | 62dfe668a6039e3a2a7c164c96f33a8d3d431939 |
refs/heads/master | <file_sep>/* Drop Tables */
DROP TABLE IF EXISTS account CASCADE;
DROP TABLE IF EXISTS client CASCADE;
DROP TABLE IF EXISTS credit_card CASCADE;
DROP TABLE IF EXISTS disposition CASCADE;
DROP TABLE IF EXISTS district CASCADE;
DROP TABLE IF EXISTS loan CASCADE;
DROP TABLE IF EXISTS permanent_order CASCADE;
DROP TABLE I... | 3a9aa1cd2b4f56b6ccaed8cd31ff214573bc89f1 | [
"Markdown",
"SQL"
] | 7 | SQL | chvostom/datovy_sklad | cda3a20acdc1e14c69275854eb4119af82933862 | 770f0f4e9798588405f166a56f6d627fd46f2e22 |
refs/heads/main | <repo_name>madyciss/machine_learning_model<file_sep>/main.py
"""nom = "Mady"
print("Je m'appelle " + nom)
print("Mon nom c'est bien " + nom + " CISSE")
prenom = input("Quel est ton prenom? ")
print("Je m'appelle " + prenom)
print("Mon nom c'est bien " + prenom + " CISSE")"""
"""ton_nom = input ("Quel est vous... | 049eee063ac0cf51961fa0c9ab0131f5ffe30663 | [
"Python"
] | 1 | Python | madyciss/machine_learning_model | d046a95753f48935f9c7ba2d2fb3695802e53666 | e8217d381a22c2541900eb50376db3af16479040 |
refs/heads/master | <repo_name>joship18/ML<file_sep>/dt.py
import numpy as np
import pandas as pd
df = pd.read_csv("iris.csv")
#df.head()
from pandas.api.types import is_numeric_dtype
for i in range(df.shape[1]):
if(is_numeric_dtype(df.iloc[:,i])):
mask = df.iloc[:, i] < df.iloc[:, i].median()
df.ix[mask, i] = 0
... | 72123887135fe96134db0b652b7b3d442567756b | [
"Python"
] | 1 | Python | joship18/ML | 5da67023c557927f0756f78163861d511ca1be3b | ab9b381cfc3a7400caaa8a9ceb19ae7f2e83e6fa |
refs/heads/master | <repo_name>NDM-123/wargame-a<file_sep>/Soldier.cpp
//
// Created by Naor on 5/21/2020.
//
#include <iostream>
#include"Board.hpp"
using namespace std;
<file_sep>/ParamedicCommander.hpp
#pragma once
#include "Soldier.hpp"
class ParamedicCommander : public Soldier {
public:
ParamedicCommander(int pn): So... | 5a13fcec7a34416c0490bfff4df70a957b096184 | [
"C++"
] | 9 | C++ | NDM-123/wargame-a | 11c64393d98cf90dd780e22bcb3ad48abaed44ac | 899b98d33ba19d65a028d7213ed1aba40aa5c4c4 |
refs/heads/master | <repo_name>ltpech/random_number<file_sep>/get_number.rb
# Get My Number Game
# Written by: you!
puts "Welcome to 'Get My Number!'"
print "What`s your name? "
input = gets
name = input.chomp
puts "Welcome, #{name}!"
#puts input.inspect
#p input
# Сохранение рандомного числа в переменнную
puts "I have got a random n... | ba081deecfa2afbf34d5e4d27671af85cdc7ab89 | [
"Ruby"
] | 1 | Ruby | ltpech/random_number | b50a29b80d0d0fd6c7d4d466941be65c1e7c45b3 | 6093e444e9ea0520e59fa284557ab19b59b0bde3 |
refs/heads/master | <repo_name>ckddls1321/play_pytorch<file_sep>/data/pets.py
pets = DataBlock(blocks = (ImageBlock, CategoryBlock),
get_items=get_image_files,
splitter=RandomSplitter(seed=42),
get_y=using_attr(RegexLabeller(r'(.+)_\d+.jpg$'),
'name'),
item_tfms=Resize(460),
batch_tfms=aug_transforms(size=224, min_scale=0.75))
dls = pets.... | e1f8c3af727dac32f5f93435123c45c620c79f9c | [
"Markdown",
"Python",
"Shell"
] | 31 | Python | ckddls1321/play_pytorch | 1f5b02eb5557e113e84b531021ab7cb9fa4ebf45 | 905b4487ef8c09dde9403bac32a8430295ebfb54 |
refs/heads/master | <file_sep>public class Voter
{
private int initialVote;
private int realignedVote;
private int precinct;
public Voter()
{
initialVote = 0;
realignedVote = 0;
precinct = 0;
}
public void setInitialVote(int vote)
{
initialVote = vote;
}
pu... | f1a1cc29fb1d1f7cb4bdb837619f489e9590da1a | [
"Java"
] | 3 | Java | dibahey/projects | 00736ba1def0aa7db5fee6561258bd9eaf88f9cd | 66289d3a63eb82e59b2cdb3ae455d5a5bb786b36 |
refs/heads/master | <file_sep>// import React , {Component} from "react";
// import ReactDOM from "react-dom";
// import MUIDataTable from "mui-datatables";
// import FormControlLabel from "@material-ui/core/FormControlLabel";
// import Switch from "@material-ui/core/Switch";
// import Cities from "./cities";
// class MUI extends Compone... | 3e95d0368dd023ab8173810d9e51198b1c1c38a8 | [
"JavaScript"
] | 12 | JavaScript | lalithaeti/AdminLTE3.0 | 69ed4e25e6581496b89a8b7cd38d813ed37f8a6d | 97e8af5935b74968bfcc887dfb35cc3b80675f4a |
refs/heads/master | <repo_name>fbfb6123/animals-app<file_sep>/README.md
# README
# ツール・ライブラリの名前
G.A.Reward
- G(Goal).A(Achievement).Reward
## 簡単な説明
自分で報酬を設定したうえで、達成に向けて頑張ったことや他人から褒められたことなどを投稿していくモチベーション向上を目的としたアプリ。
## 機能
- 報酬に紐付けられた頑張ったことをDBに保存
- 頑張ったことをより可視化するためにグラフを連携して表示。
## 開発環境
- Ruby 2.5.1
- Rails 5.0.7
- mysql 5.6.4... | 6bb0fb9140fbbe6ac0b5b230bd6ecda4e57134b9 | [
"Markdown",
"Ruby"
] | 4 | Markdown | fbfb6123/animals-app | 9e0ca9f03e823af93eb3dd71fffd60d4ef5c1128 | d2f651f7b52f3c19ca0332d5961131661627e7dd |
refs/heads/master | <repo_name>prologic/bitcask-bench<file_sep>/go.mod
module bitcask-bench
require (
cloud.google.com/go v0.44.3 // indirect
github.com/akrylysov/pogreb v0.0.0-20190204011455-cc74c6f0272e
github.com/coreos/bbolt v1.3.3 // indirect
github.com/coreos/etcd v3.3.15+incompatible // indirect
github.com/coreos/go-semver v0... | 45d05685cd6fcf67800614976aa6137fa58e706c | [
"Go",
"Go Module",
"Markdown",
"Shell"
] | 11 | Go Module | prologic/bitcask-bench | 3436d9d62e66299ec8cbb7e8ffd0fa036b91d730 | e193cafcbacad6160f3d9a02f5842a6b2c7e24c6 |
refs/heads/master | <repo_name>walterieur/Module_2_2<file_sep>/process_2_2.R
#### load libraries ####
#install.packages("caret", dependencies = TRUE)
#install.packages("gdata", dependencies = TRUE)
#install.packages("pander", dependencies = TRUE)
#install.packages("doMC", dependencies = TRUE)
#install.packages("arules", dependen... | 53991c25ea896e9824f8eac6e538e3b78be92efd | [
"R"
] | 1 | R | walterieur/Module_2_2 | e29ea524c27b5a686137a5c54411798a8360385f | cc8687206e926130a9393a6f8aa793011f46f547 |
refs/heads/master | <repo_name>cran/OSMscale<file_sep>/R/earthDist.R
#' distance between lat-long coordinates
#'
#' Great-circle distance between points at lat-long coordinates.
#' (The shortest distance over the earth's surface).
#' The distance of all the entries is computed relative to the \code{i}th one.
#'
#' @return Vector with dist... | 0b59923950c179f7a8c3cf3d352b52d12ef65570 | [
"Markdown",
"R"
] | 5 | R | cran/OSMscale | c3335d3987eae9da9aa7e7f51468afda350b7795 | e11b4569046410d2df08ad0d17e8955962dcf858 |
refs/heads/main | <file_sep>-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 20, 2021 at 09:28 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!4010... | 105e6a2323f81c1ca5a5285d481eab628f9189ea | [
"Markdown",
"SQL",
"PHP"
] | 8 | SQL | 90-HAQ/Employee-Management | fe6c49152803ffbe5077dd7108c2819c28eac9b7 | a94d885d506bbf3262fbd488bb973979a38654e8 |
refs/heads/master | <file_sep>import Vue from 'vue'
import * as constants from '@/store/constants'
import * as types from './language_types'
const state = {
languages: []
}
const getters = {
languages: (state) => {
return state.languages
}
}
const mutations = {
setLanguages: (state, payload) => {
state.languages = payloa... | 00e7387deddca644103c4d0fb2ad9ebf2a189071 | [
"JavaScript"
] | 39 | JavaScript | laputafish/oa_mpf | c7bc4cc2eda957f5711438d13b01a483ae04cc7f | 55c93c4ef3e064677cad10a56b7bf6c7bca77b1b |
refs/heads/master | <file_sep>package com.astoma.ccsf.drawingGui;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing... | fc719097c77f66ac7df7da21c7d59f80c9af4034 | [
"Java"
] | 2 | Java | sky2day/Project_Drawing | bd683946c2f751b2182e6cfdba0bb1dd4a5912ad | 97eea69d7461570c0d7584bc5dba6331e724cd9d |
refs/heads/master | <repo_name>itggot-Lowe-Blank/standard-biblioteket<file_sep>/lib/sum.rb
# Public: Takes an array of integers as inputs and gives the sum of all numbers as output.
#
# array - any Array.
# array2 - any Array.
#
# Examples
#
# concat([1,2,3],[1,2,3])
# # => 12
#
# Returns the sum.
def sum(array,array2)
output = 0
... | 0890aabf1f526a05e26cdfd2c0d4b0c71995450a | [
"Ruby"
] | 26 | Ruby | itggot-Lowe-Blank/standard-biblioteket | fc6d908aefafc75fad9f614c53d3ee66900578ca | eaeab082a23ab97c2e1490bae625c11a1fcf533a |
refs/heads/master | <repo_name>Mandor99/waste-time-in-javascript<file_sep>/pure.js
var test = document.querySelector('.test');
function multiStyles(ele, styles){
for( var css in styles ){
ele.style[css] = styles[css];
}
}
// function slideUp( ele, duration = 500 ){
// // var elem = document.querySelector('.'+ele);
//... | 82838a369d65efa4403a253b005954043de78287 | [
"JavaScript"
] | 1 | JavaScript | Mandor99/waste-time-in-javascript | 8c0be1f6d74a4c0c86b9bfcf2d0f7d29657fc0e5 | d636332a44978a031afba9667ac214b294915016 |
refs/heads/master | <repo_name>aemoe/golff-pool<file_sep>/README.md
# golff-pool
<file_sep>/migrations/2_deploy_token.js
// ++++++++++++++++ Define Contracts ++++++++++++++++
//Token First
const GOF = artifacts.require("./GOF.sol");
// ++++++++++++++++ Main Migration ++++++++++++++++
const migration = async (deployer, network, accou... | ea7b2f757ab68bafd6d9c518ddb182129b887128 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | aemoe/golff-pool | d7373baba1fc2b6eaf0fcfbb5903faafb3caf57d | 44c57266a82e3b16c40a9140b37331100658ef29 |
refs/heads/master | <file_sep>[{
id: '34324dfea',
name: 'Ryan',
room: 'Cool Room'
}]
class Users {
constructor() {
this.users = [];
}
addUser(id, name, room) {
var user = {id, name, room};
this.users.push(user);
return user;
}
removeUser(id) {
var user = this.users.f... | d1c8069704725a16722fca44f39a335e455f994d | [
"JavaScript"
] | 2 | JavaScript | gomteng218/socketio-chat-app | 4d541c8d751981fc06f29803ec603bfe35d412d0 | 928cfe11dd641812e9607dc1a51fbce5854bf244 |
refs/heads/master | <repo_name>AtlasAerospace/EridaCopter_Android<file_sep>/app/jni/jmavlink.cpp
#include "include_v1.0/ardupilotmega/version.h"
#include "include_v1.0/mavlink_types.h"
#include "include_v1.0/ardupilotmega/mavlink.h"
#include <string.h>
#include <jni.h>
//#include <android/log.h>
// Declare each of the known java classe... | 008b6bf40d66bc4aed346d2bf325254d04e551da | [
"Java",
"C",
"C++"
] | 9 | C++ | AtlasAerospace/EridaCopter_Android | 53492ec7786047650ac62131b29eeb97d927aee3 | 2bb277a8d0818111c4009b7f72ed1eb77fde3514 |
refs/heads/master | <repo_name>Jialing-Huang/MEAN-Full-Stack-Project<file_sep>/src/app/Students/list-students.component.ts
import { Component, OnInit, Input } from '@angular/core';
import { Student } from '../Models/Student.model';
import { StudentServiceService } from '../Services/student-service.service';
import { HttpClient } from '@a... | 41f6fe03fa96d3261d8a084d3f64c8b6a3eac990 | [
"JavaScript",
"TypeScript"
] | 2 | TypeScript | Jialing-Huang/MEAN-Full-Stack-Project | 2a68cd69948008c487ec2633de6de5b7dc4c50b5 | 3dbb638d49562a5c4374e9b826101a5e86dc93c6 |
refs/heads/master | <repo_name>ramses429/cloudming<file_sep>/welcome.php
<html>
<body>
<select>
<option value="volvo" id="volvo">Volvo</option>
<option value="saab" id="saab">Saab</option>
<option value="vw" id="vw">VW</option>
<option value="audi" id="audi">Audi</option>
</select>
<script type="text/javascript">
var de... | b566297a3ca8a1b9390bc5e78436aad6b40dc955 | [
"Markdown",
"PHP"
] | 2 | PHP | ramses429/cloudming | fcc917f9d94d09ae48087d4fd83c0f3b63748d55 | c32b113c6031eec94bbb0740e42a25fe8083f2c9 |
refs/heads/master | <repo_name>maeda-naoya-fk/Constrained_ILC<file_sep>/show.py
import healpy as hp
import numpy as np
import matplotlib.pyplot as plt
def moview(alm, nside = 512, fwhm = 1.0):
map = hp.alm2map(alm, nside = nside, fwhm = fwhm*np.pi/180, verbose=False)
hp.mollview(map, cmap = 'jet', max = 0.2, min = -0.2)
plt... | 6e21c4341b3519eeb4ddbe81a39060cad0573061 | [
"Markdown",
"Python"
] | 4 | Python | maeda-naoya-fk/Constrained_ILC | f41ddc2aa031ef1a3681da915b9905df388c5057 | 46099680ea9e6fb73e4d1b0d3d1333b41be5f1f2 |
refs/heads/master | <repo_name>palmtoy/node-native-boilerplate<file_sep>/app.js
var NativeExtension = require('./');
console.log(NativeExtension.aString());
console.log(NativeExtension.aBoolean());
console.log(NativeExtension.nothing());
console.log();
console.log(NativeExtension.aNumber());
console.log(NativeExtension.anObject());
cons... | 35b03921bb9053268cae3a32bf489e72ae4da767 | [
"JavaScript"
] | 1 | JavaScript | palmtoy/node-native-boilerplate | 5a5a731569a1f01370d80c0441451a740d1a3a04 | 3ecd00dbfe4731024dfeef8743837a1348c3c49d |
refs/heads/master | <repo_name>Parnni/First_Genetic_Algorithm_code<file_sep>/Guess_word_using_GA.py
'''Class for guessing words.'''
# Importing modules.
import random
import string
import matplotlib.pyplot as plt
class guess():
'''This class guesses given string.'''
def __init__(self, target_string, iterations):
'''Init... | c402305c583c65f62961932bc962dd08e9dd3770 | [
"Markdown",
"Python"
] | 3 | Python | Parnni/First_Genetic_Algorithm_code | 5dbda8c76cafb91a7391133dd20b796ed78f3ee8 | 680b12f5e317cb81ec187b8a04fb979fc43761a0 |
refs/heads/master | <repo_name>mmina001/cs425_fall18_hw03<file_sep>/scores.php
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="title" content="Questions Game">
<meta name="author" content="<NAME>">
<meta name="desc... | 966c108a8d0b418c992a344cab37fe835820bb7f | [
"PHP"
] | 3 | PHP | mmina001/cs425_fall18_hw03 | a654859a766dd00ec68111ccbf6911efab2f4dd7 | 7402e01ee6accdb26043fb491b25c04a7c20ca7d |
refs/heads/master | <file_sep>import collections
import os
import json
from pprint import pprint
from collections import Counter
def read_json(file_path, max_len_word=6, top_words=3):
with open(file_path, encoding='utf-8') as new_file:
news = json.load(new_file)
description_words = []
for item in news['rss'][... | 5388d189c5e73ba48c6f9facc0003f27ce35eb68 | [
"Python"
] | 1 | Python | nvetrov/hero | c388333f2c2faa4fa5d1e53638725226a86775f5 | 6a28792457d00e576be65e8802c26c2971f3da72 |
refs/heads/master | <file_sep>"""
Post
Represents a post made by a user
"""
import re
import random
class Post():
def __init__(self, idnum: int = -1, author: str = "No Author", contents: str = "CAW CAW CAW", points: int = -1):
self.idnum = idnum
self.author = author
self.contents = contents
self.point... | 76b7ae8df988defe9802f4123a7fc40842e2f9d2 | [
"Markdown",
"Python"
] | 5 | Python | Chris-Johnston/CROBBER | 30aca339fa2294d4e7e9001cff2c049189dda39e | 44da2eb0437587c9b985e6858d52a64dcea12874 |
refs/heads/master | <repo_name>HwangToeMat/MASRN_Pytorch_HTM<file_sep>/data_augment.py
import argparse, os
import glob
import h5py
import cv2
from PIL import Image
import numpy as np
# AUGMENT SETTINGS
parser = argparse.ArgumentParser(description="PyTorch MASRN")
parser.add_argument("--HRpath", type=str, default='data/DIV2K_train_HR')
pa... | f71e5008722da412580bd021ff78444195702742 | [
"Python"
] | 6 | Python | HwangToeMat/MASRN_Pytorch_HTM | f1150edcee52b8d8ed9029b6870f72b3d9882b0e | 092d8fb617690777fb007f9d6246c672a1747c5b |
refs/heads/master | <file_sep>export function createGLShader(gl: WebGLRenderingContext, type: number, source: string) {
const shader = gl.createShader(type)
if (!shader) {
return null
}
gl.shaderSource(shader, source)
gl.compileShader(shader)
const success = gl.getShaderParameter(shader, gl.COMPILE_STATUS)
if (success) {... | 2b9e1301a7ee9529c5c7c69927e21dc1ad65347c | [
"TypeScript"
] | 1 | TypeScript | xiaomingTang/webgl-sample | a92bc70c6dd2d2e85d392f2bd4f8f85db64a3445 | 02f0de092a2ac6c5c62548389ec9f82274d3fa94 |
refs/heads/master | <repo_name>MichaelSipayung/Eigen-Lecture-1<file_sep>/README.md
# Eigen-Lecture-1
Eigen++ is the matrix library and another numeric solver . this repository is intended for remembering and acess from every where .
Eigen++ is the matrix library and another numeric solver .
this repository is intended for remembering and... | a330010e992238db5c17a6f7370ba3e6c66208ef | [
"Markdown",
"CMake",
"C++"
] | 3 | Markdown | MichaelSipayung/Eigen-Lecture-1 | 99ad319396cb5f7d0f97f19724ddf524dd39499b | 783f5cf2dc155682acadc5a6b8dbe18a0756e328 |
refs/heads/master | <repo_name>dwaxemberg/dotfiles<file_sep>/zshrc
setopt PROMPT_SUBST
autoload -U promptinit compinit zmv edit-command-line
promptinit
prompt grb
compinit -Cu
HISTFILE=~/.history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
export TERM='xterm-256color'
export EDITOR='vim'
set -o emacs
setopt inc_append_history
zle -N edit-com... | 7fafbd22c6af31c5a376030b2fda773628dd1dd8 | [
"Markdown",
"Shell"
] | 2 | Shell | dwaxemberg/dotfiles | d6eb515343969266168691666484e1428175fdb6 | 774d45d1fe80df3317f38bbc945e16c593b1b12d |
refs/heads/master | <repo_name>nickschiffer/discord-soundbot<file_sep>/Dockerfile
FROM node:carbon-alpine
LABEL maintainer="<NAME> <<EMAIL>>"
# Install ffmpeg and other deps
RUN apk add --no-cache --quiet build-base ffmpeg git make python
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn --silent
COPY . /app
# Cleanup
RUN apk del ... | b196430d63a937c207178bf4c1f4cf3323194dd6 | [
"JavaScript",
"TypeScript",
"Dockerfile"
] | 10 | Dockerfile | nickschiffer/discord-soundbot | 1085b3f6c08ce272ed222c41f918ccdb36a9c28a | 79acdfe23f416851760ab71a70290179ae1c76c8 |
refs/heads/master | <file_sep>import io
import numpy as np
from conllu.parser import parse
import os
import itertools
#####INIT DATA###########
def readFile(txtFile):
with open(txtFile,encoding='utf8') as myfile:
return myfile.read().lower()
def parse_sentence_conllu(conllu_raw_string):
#list of POS access: parsed[id_sent... | 953dd60d6aff75c4d2744c488c70bb31debd7a0b | [
"Python"
] | 2 | Python | sashinovitasari/POS_Tagger | 58d54526b2f0492fb708e3591d634d9b70dd2ad9 | 86ca126345417a4563cee076254794d9b28219d0 |
refs/heads/master | <file_sep>#include "Program.h"
int main(int argc, char* argv)
{
Program program(std::to_string(argv[1]));
program.Run();
}<file_sep>#include "Program.h"
#include <Stream.h>
Program::Program(std::string file_name)
{
this->file_name = file_name;
}
void Program::Run()
{
}
<file_sep>#pragma once
#include <string>
cl... | 6313c07ed8d7516fb0efcf1f9536fcf39664b2da | [
"C++"
] | 3 | C++ | prevostcorentin/mla | 3a58b4ffbba3eb8236f01d44767c89dfd7bea856 | 5f884835f58b0db9a401c8491b2b4e5727a35892 |
refs/heads/master | <file_sep>"""App configuration."""
from os import environ
import os
import redis
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
"""Set Flask configuration vars from .env file."""
# General Config
FLASK_APP = environ.get('FLASK_APP')
FLASK_ENV = environ.get('FLASK_ENV')
# Flas... | bb5673531f3e34861d9d41792d4fb92f09dc9187 | [
"SQL",
"Python",
"Text",
"HTML"
] | 6 | Python | ohdowon064/timetable_web | 9d5065ed36c27d7c7080ff0ad2983bc151b0f699 | 7db454bda67e68c86b4468472ac58fc517a790f0 |
refs/heads/development | <file_sep># frozen_string_literal: true
# Services: Module ChecklistService and its Class SetAuditData
module ChecklistService
class SetAuditData < ApplicationService
def initialize(checklist)
@checklist = checklist
end
def call
unless @checklist.audit
@checklist.build_audi... | 3b3ecf252998989439e824058d17d4e4e9b3209b | [
"Ruby"
] | 9 | Ruby | VitalinaLiane8/ssandbox | e23589059bbd585f20444165ba2c345eb7347dc8 | 3cfed475f36ed1e8bfe8b79d871f6566dcfe776a |
refs/heads/master | <repo_name>gartenkarte/unfairtobaccomap<file_sep>/testing.js
if(L.Browser.retina) var tp = "lr";
else var tp = "ls";
var lyrk = L.tileLayer('http://tiles.lyrk.org/'+tp+'/{z}/{x}/{y}?apikey=701dcc16672d4781b03ca506db3ef046', {
attribution: '<a href="http://geodienste.lyrk.de/copyright">Lizenzinformationen</a>, T... | b497f17327d1f591ba52694651e879a06efc0868 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | gartenkarte/unfairtobaccomap | 7081e7d14172fccfb93c5057149dc103f59cbc18 | a43115c3f8020d695639ed754da4b917e0cec348 |
refs/heads/master | <file_sep>## Loading Data From Text File
HPC <- read.csv("F:/RWorkingDir/household_power_consumption.txt", sep=";", header=TRUE)
## Creating Subset of the data for date '2007-02-01' and '2007-02-02'
x <- subset(HPC, as.Date(Date,format='%d/%m/%Y') == '2007-02-01')
y <- subset(HPC, as.Date(Date,format='%d/%m/%Y') == '... | ff924869619c7c708d3298455dafd9b477ff2e8a | [
"R"
] | 4 | R | ApurbaPandey/ExData_Plotting1 | 01070fe2fe3f5defc8e4454fe85db60f636ffd1e | 97c347dca5220064da61969d313cc475066f3a48 |
refs/heads/main | <file_sep><?php
include('includes/tabledata.php');
?>
<html>
<head>
<title>RESERVATION </title>
<link rel="stylesheet" type="text/css" href="css/table.css">
</head>
<body>
<div class="main">
<div class="logo">
<img src="logo.png">
</div>
<ul>
<li><a href="bb.html">Home</a></li>
<li><a href="palle... | 5986c00dcae5dbc480a990bcb413e9f51606d411 | [
"Markdown",
"HTML",
"PHP"
] | 3 | PHP | ujjwaltiwari07/ujjwal-kumar-tiwari-int219-project | ae2c98c5ee1e5a6b61156a950774aca03e1f0e4a | 28c78c5fd77df7630145ef2bb7ee1524ee7ab85d |
refs/heads/main | <file_sep>const Joi = require("joi");
Joi.objectId = require("joi-objectid")(Joi);
const mongoose = require("mongoose");
const startupDebugger = require("debug")("app:startup");
const dbDebugger = require("debug")("app:db");
const config = require("config");
const helmet = require("helmet");
const morgan = require("mor... | ef41180dce739308e7c70dee6c1a46efa55e2077 | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | cristian-custodio/node-js-sample | 390d36ebe2503600392d0431fb51dc755c50272f | 40781bb425cc962686f8b015b6097852cceb9e89 |
refs/heads/master | <file_sep>package Collision;
import Sprites.Craft;
import Sprites.Missile;
import javax.accessibility.AccessibleIcon;
import javax.swing.*;
import javax.tools.Tool;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyList... | fd721cb9c0d98d59b56d54791043ef45f02f792f | [
"Java"
] | 4 | Java | h3dg3-Wytch/Java-2d-Games | 2d9dde5601334a581fd8d4c2d14fc68c27ffef07 | 1fae9f130c68f6ea0400dc3cb1da3d5d50922bd2 |
refs/heads/master | <file_sep>package maybe
import (
"encoding/json"
"math"
)
// Float64 is an option type: it is either Some (a float64) or None
type Float64 struct {
Some float64
None bool
}
// NewFloat64 creates a Float64 from value. If the given value is NaN then it is
// assigned as None, which will be serialised as `null` in ... | ac0d8db0ae0ebb0d1de74a0ae9bf7286d2378205 | [
"Markdown",
"Go Module",
"Go"
] | 5 | Go | dangreenhalgh/maybe | fe71a89171a9d7b87263ff0f9ad990f76c8fa4d0 | 233865390af3b15da4a3ecada79e2482ab98e9d6 |
refs/heads/master | <file_sep>/*
<NAME>
AM: 1115201300196
*/
#include <cstdlib>
#include <random>
#include "Randoms.h"
using namespace std;
std::default_random_engine generator;
unsigned int getRandomInt(int M, int N) {
int r = M + (rand() / (RAND_MAX + 1.0))*(N - M + 1);
return r;
}
unsigned int getRandomInt() {
return... | 23a99e54445d4926667cd32ac96e21428df5dd73 | [
"C",
"Makefile",
"C++"
] | 30 | C++ | Chavellas/Project2 | e58e2ccaf5beae29603ff987f62b4e6f08c97c0d | 94759f7396f1e0bed37f5a3ed191737ad0c5a9f2 |
refs/heads/master | <repo_name>cnxtech/aws-extensions-for-dotnet-cli<file_sep>/test/Amazon.Lambda.Tools.Test/UtilitiesTests.cs
using System;
using System.Collections.Generic;
using System.Text;
using Xunit;
namespace Amazon.Lambda.Tools.Test
{
public class UtilitiesTests
{
[Theory]
[InlineData("dotnetcore2.1", ... | 8b028f0cd21cd9e7759e8ede5967e9dcf84d3920 | [
"C#"
] | 1 | C# | cnxtech/aws-extensions-for-dotnet-cli | 24bb07227cdcb0b1d0bdbe314acf5c2474439849 | 6be70088b1eb577c21bd285d3e349287b9b48685 |
refs/heads/master | <file_sep># Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
# The following is needed for Firefox, as it doesn't handle mime type application/json correctly
#Mime::... | 23036b7aca55d85a31b160557cb4d20fe6816249 | [
"JavaScript",
"Ruby"
] | 5 | Ruby | perspilling/store | 4b0e07aece6707038f2b2b3befc9ffb0ee0a9e5f | 81e4de7d9f4c7f8d19787b2cfa8ab3f04cfcdf75 |
refs/heads/master | <file_sep># ScriptsVirtualMachine
**How to:**
- Place le script dans le dossier qui servira de VM
```shell script
$ bash ./awesomeScript.sh
```
- Suis les instructions, attends d'arriver dans la VM.
- Une fois dans la vm, faire:
```shell script
$ bash /var/www/html/install.sh
```
- Choisir sa version de PHP
- Atte... | 86409f7169e2205b92fb863223891058d6b17a06 | [
"Markdown",
"Shell"
] | 2 | Markdown | Kara-tatouille/ScriptsVirtualMachine | 1ecd613c1edbf15582318ae6638844a80dc97448 | eea126fd02bb3c744508e29ad6a410fd971671c2 |
refs/heads/master | <file_sep>from neo4j.v1 import GraphDatabase
import csv
from itertools import islice
'''
This program will import the roadNet-CA.txt file (containing 1965206 nodes and 5533214 edges)
into a Neo4j graph and then query a small subset of that and add it to a network x graph.
All nodes within 3 steps of road id 0 are sto... | 4de26196841341becf3511ea701720f412de4f30 | [
"Python"
] | 1 | Python | brian-cuny/620assignment2 | 7a95f9f800fc417fa2707527f0b934aaf6d40a61 | 58f845fd4cd56a1cf2545f28bf42c4433f99d5d1 |
refs/heads/master | <file_sep>package com.javatest.yunpan.dao;
import com.javatest.yunpan.dto.UserInfo;
import com.javatest.yunpan.entity.MoreUserInfo;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface MoreUserInfoDao {
UserInfo findUserInfo(int id);
int finishUserInfo(MoreUserInfo moreUserInfo);
int u... | e36135be0bec9b92f83be0a189a99ee97eb2b377 | [
"Java",
"INI"
] | 6 | Java | wwwwwzy/yunpan | 05700478ae1f3ea54376d1c92f275918dd7cc046 | 4d82ce2867167fbed3eeb8a1ed5f40bff1846599 |
refs/heads/master | <file_sep>class User < ActiveRecord::Base
has_secure_password validation: false
has_many :comments
end
| 4fa48da8fca03a8dd0c1aba3510509c464b534a7 | [
"Ruby"
] | 1 | Ruby | p9690110/ruby-on-rail-food | 0bc413d38bc409f5de33c6655ea24643643c99c9 | a7775094e4f3393b21e002a2819891d15a834bed |
refs/heads/master | <repo_name>msinha132/FCMtest<file_sep>/README.md
# FCMtest
Everybody needs a push notification feature in their app
This is just a simple application of push notification.
What's different:
Once it is complete, I will be putting proper comments in the code so you don't need to study the whole code for its mere applica... | 70c80644a158bff6a762ec7020a9105f5b485472 | [
"Markdown",
"PHP"
] | 2 | Markdown | msinha132/FCMtest | 9f862801ee3fea456fb9f102af4459478343c9f1 | 8652c5af2f943529c21cf8da9012023198385483 |
refs/heads/master | <file_sep>import pygame
import random
from math import sqrt
FPS = 60
WIDTH, HEIGHT = 600, 400
GRAVITY = 980
RUNNING = True
class Target:
shape_radius = 10
color = (255, 255, 0)
speed = 10
def __init__(self, x: int, y: int):
self.x = x
self.y = y
self.speed = Target.speed
... | 9b5bc2c5a62deda48dcae4af80656f04fd69c696 | [
"Python"
] | 1 | Python | DJan03/Pygame-Cannon_vs_Invaders | d687150ab20cd74fdc7bd6fad94211e27f93e427 | b0e6cfc02338ac0d39c68773590fdd55912c42a4 |
refs/heads/master | <file_sep>#include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModulePhysics.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
circle = box = rick = ... | fb2d344d87b213f2cec6dc7c5b5a6a4b47a0e838 | [
"Markdown",
"C++"
] | 3 | C++ | peterMcP/physics-2-dev | edf1371b5bebf4c44c5f7a102a4189b0602d1fcd | 1301941a373d327403f65a84edf5d50ac0aa387d |
refs/heads/master | <repo_name>silverXnoise/waveforms_linux<file_sep>/main.h
#ifndef __MAIN__H__
#define __MAIN__H__
#include<stdio.h>
#include <stdlib.h>
#include <unistd.h>
//The main header file, handling the running of the interface
void getInfo(HDWF * pDevice);
void configure(HDWF * pDevice, int channel, int * bufSize);
void run(HDWF... | 7146e6a928cb000cfc70b655662e36d169567077 | [
"Markdown",
"C",
"Makefile"
] | 4 | C | silverXnoise/waveforms_linux | 162975a6f0c3d8fe92391d469e9c9fbfe4b21ada | 42bfaa37f8141f0b447f97ec029c9083344f1aa6 |
refs/heads/master | <file_sep>[English Version](./README-EN.md)
# vuejs-pwa-sample
## はじめに
本プロジェクトは、[Vue.js](https://jp.vuejs.org/index.html)、[Vue Material](https://vuematerial.io/)と[PWA(Progressive Web Apps)](https://developers.google.com/web/progressive-web-apps/)を用いて実装したサンプルである。
本サンプルでは、[Connpass Web API](https://connpass.com/about/a... | fb9e9a71a740f549d63c3faf422bc70d393e0c6c | [
"Markdown",
"JavaScript"
] | 3 | Markdown | ybkuroki/vuejs-pwa-sample | 86b58974d89d450779e4076bb40b7753da8251e2 | 1b7f460facf028fe2df8f7a696d4c05452153ccb |
refs/heads/master | <repo_name>LastStranger0/Huffman<file_sep>/TestProject/Huffman.cpp
#include "Huffman.h";
Huffman::Node::Node(Node* L, Node* R)
{
left = L;
right = R;
a = L->a + R->a;
}
Huffman::Node::Node() {
left = right = NULL;
}
bool Huffman::MyCompare::operator() (const Node* l, const Node* r) const {
return l->a < r->a;
}... | a7ec24767a4b9224a9f8fa69c71f90686a7c5bc0 | [
"C++"
] | 4 | C++ | LastStranger0/Huffman | e557fa13b14fbdba8f3062d04caf38d02e9c67c1 | e6e5c143344ad9008f4b1cb6a6284a6a8538229c |
refs/heads/master | <repo_name>SomuBhandari/UI_Improvement<file_sep>/assets/js/toucheffects.js
/** Used Only For Touch Devices **/
var slideIndex = 0;
showSlides();
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");
for (i = 0; i < s... | f4065fb8f2e071e28396508d47100426659b4184 | [
"JavaScript"
] | 1 | JavaScript | SomuBhandari/UI_Improvement | e4675c4888f11f7be333deb0c644341308a9aa0d | da70b1e2fe4f385dbe6b407c36530992bc65aa45 |
refs/heads/master | <repo_name>arvindspal/stock<file_sep>/app.py
from flask import Flask, request, jsonify, render_template
from test import Test
app = Flask(__name__)
@app.route('/')
def home():
return '<h1>hello</h1>'
@app.route("/predict")
def predict():
test = Test()
predictedvalue = test.predict()
... | 29327771efe1f1b5251395db7e1c36c7025d249b | [
"Python"
] | 2 | Python | arvindspal/stock | 39d18211d6c0bfe0c17075697be5ec9cf6d37f19 | 859d126657a68eb7253baa470c8eb15468be3014 |
refs/heads/master | <repo_name>StasOverflow/stm32_flash<file_sep>/app/utils.py
import wx
from itertools import cycle
import threading
def print_kwargs(**kwargs):
for key, value in kwargs.items():
print("The value of {} is {}".format(key, value))
def execute_every(func):
# def wrap(func=None):
def decorator(self=Non... | 0a8c0b0ca3faa7d057c6ec4de3c87e028798a4eb | [
"Python",
"Text"
] | 11 | Python | StasOverflow/stm32_flash | dd042b33c1252f78d16b3d8227cea67f053a750b | 83e97083d9eecd524e7a58307afdfb372651ac14 |
refs/heads/main | <repo_name>AleczeHarness/ff-dotnetcore-server-sdk<file_sep>/CfClient/client/cache/IMyCache.cs
using io.harness.cfsdk.HarnessOpenAPIService;
using System;
using System.Collections.Generic;
using System.Text;
namespace io.harness.cfsdk.client.cache
{
public interface IMyCache<K,V> : ICache<K, V>
{
Dicti... | f28a58dd3233927931098d4847b7a302ed8b0a8a | [
"C#"
] | 2 | C# | AleczeHarness/ff-dotnetcore-server-sdk | dbf35ddfe4607133425ccb1c35c8fa543a2f0d7f | 02506ff174b6007f225f671dbceba0fbb86cc58d |
refs/heads/master | <file_sep>var fs = require('fs');
var path = require('path');
var join = path.join;
var mkdirp = require('mkdirp');
var FirefoxExtension = require('???firefox-xpi|jpm???');
function Plugin(options) {
this.options = options || {};
if (!this.options.updateUrl) {
this.options.updateUrl = "http://localhost:8000/";... | 43a8ecaaead3d8ad2e9c3e6def4a6b807570a5eb | [
"JavaScript"
] | 1 | JavaScript | gonzazoid/crx-webpack-plugin | 6b17de3ea1158f4b7fdf904f02e8573eea396c44 | d32c54ebe80b3163479ece6cde7f09281adbebb4 |
refs/heads/master | <file_sep>package Inventario;
public class Inventario {
public Inventario(int numerosLibro, int cantidadLibro, String codigo, String autor, double precio) {
super();
this.numerosLibro = numerosLibro;
this.cantidadLibro = cantidadLibro;
this.codigo = codigo;
this.autor = autor;
this.precio = preci... | f15fd6208feb8fe9d87026aae25aa6b01b5c489d | [
"Java"
] | 2 | Java | Evelyn-B-E/PROYECTO-DE-INVENTARIO | 9baf3926de67655c67dde324f4dea106fba87fe3 | dcddff3e003306ac9bb7d20460829bacbeca81be |
refs/heads/master | <repo_name>Zedmarstarboy/files<file_sep>/writetext.cpp
/*#include <iostream>
#include <fstream>
using namespace std;
int main( )
{
//create some data
short int a = -6730;
float b = 68.123;
char c = 'J';
//cout <<a " " << b <<" "<< c;//display data to console (i.e. as formatted chars)
ofstream ... | 55093b2276f416a0081993734ee42e48ce8a7cef | [
"C++"
] | 1 | C++ | Zedmarstarboy/files | 611e511df018f4ea7edb7279f7b598fcdde728c2 | c35819d72e0b7af7bcd21458834cc3d14627a6cc |
refs/heads/master | <file_sep>
"# AndoidCalc"
<file_sep>package com.example.muszkie.calc;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class WriteMethodTest {
@Test
public void IfSignWrittenAndWritingSign() {
MainActivity mv = new MainActivity()... | 045f650be41ebeff82811b34e97ce7c03b1fc3d9 | [
"Markdown",
"Java"
] | 3 | Markdown | muszkie/AndroidCalc | ec142ae8fcf7863ebc9d36425e3fa001a15a3602 | c50ef1c58bc0829d2361c1d681239bdf73a8b62c |
HEAD | <repo_name>HolzbaumStudios/MichaProductions<file_sep>/Circle Game/Assets/GameOverScript.cs
using UnityEngine;
using System.Collections;
public class GameOverScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void goBackT... | c211040d6c6a8fff4791c722fd5dbd1b685450fc | [
"C#"
] | 5 | C# | HolzbaumStudios/MichaProductions | 6aa4ed959fa5d317596249f7757fb2c9689269ac | 22ab6727aa2bedd12b3194142a889f39bdb6e15a |
refs/heads/master | <repo_name>bdjenkin/omdb-search<file_sep>/src/Search.js
import React, { Component } from 'react';
import './Search.css';
import Movie from './Movie';
class Search extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
searchResults: []
};
... | 146ed65ea80c46b5b80fa1ae3b2c0e0abaac3d84 | [
"JavaScript"
] | 4 | JavaScript | bdjenkin/omdb-search | 131ccb69ca30dd6a2335ed5b67d3d6e29aa0dee6 | 41484867eee17a3d9dc430ac41ffb66fe0cafea7 |
refs/heads/master | <repo_name>alinurzaman/TugasBesarGPCOCR<file_sep>/README.md
TugasBesarGPCOCR
================
Tugas Besar GPC
Anggota Kelompok : (IF-2)
- <NAME> (10110059)
- <NAME> (10110057)
- <NAME> (10110083)
Cara menggunakan aplikasi:
- Klik Load (Huruf yang tersimpan dari A - Z)
- Klik Begin Training
- Gambar di Draw Area
- Kl... | 884a639d5ce97d6c1af635b3cbcc5a4e94f44b8c | [
"Markdown",
"Java"
] | 2 | Markdown | alinurzaman/TugasBesarGPCOCR | 63ac8461b6cf4da744e1551fdd8f08a270dc3aa9 | ccab24b793a636dbcda2d8aa5f4939901e6eef84 |
refs/heads/master | <file_sep>/*
MIT License
Copyright (c) 2018 Obrazcoff
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 53c7a148c93e75e3b494d831780f0a2d8ed039a3 | [
"JavaScript"
] | 1 | JavaScript | Obrazcoff/verifyBrackets | b5051fc9ce09bd5191c1cde92e84741ed23f952c | 255c7d9b7c7545bd91c70b633cac3a309099531a |
refs/heads/master | <repo_name>sathya050801/Flight-Management<file_sep>/README.md
# Flight-Management
Flight management using Python
Flight Management project is written in Python.The project file contains a python script (main.py) and login in details is given in (USERNAME AND PASSWORD) document file.The admin can manage all the manageme... | b200431ba11e0aa304a05476793d614e8a715bed | [
"Markdown",
"Python"
] | 2 | Markdown | sathya050801/Flight-Management | 2b23e229a7aaa514a6c8b39371b2d5a81979be12 | 602358dfefd5d1522d3a6e5670f4ff157992da36 |
refs/heads/master | <repo_name>galinabelyaeva/javascript-logging-lab-js-intro-000<file_sep>/index.js
console.error("This is an error, but don't worry!");
console.log("Log it like it's hot. You know what I'm sayin'");
console.warn("Careful...Careful");
| 414865658d87a7b699ef594496208926e061e99d | [
"JavaScript"
] | 1 | JavaScript | galinabelyaeva/javascript-logging-lab-js-intro-000 | c0e43eff95f6e2bcad597c7023f924a209104943 | 969e86f68e4e971dd50ec25eb922f9bf6c4a8859 |
refs/heads/main | <repo_name>samuelguedesalves/backend-setup<file_sep>/src/server.ts
import 'reflect-metadata';
import './database';
import express from 'express';
const server = express();
const port = process.env.PORT || 3333;
server.listen(port, () => {
console.log(`Server is running in port: ${port}\nPress ctrl+c to stop thid pr... | 46fc660a6c70c1492dbd8dae195a8650401f3a30 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | samuelguedesalves/backend-setup | a43f7b911b0ccfc11c73d47a847b6721168e8600 | 2d3232e40989d9ed144b608927cbfee046f450e1 |
refs/heads/main | <file_sep><?php
use App\Http\Controllers\DataSiswaController;
use App\Http\Controllers\UserController;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here ... | 7d32da5ec72f572ff167c28fbafa470e6492eee8 | [
"PHP"
] | 2 | PHP | kaylarahma/laravel-dasar | c7a64a47ec36fc177c0c6ed04d9a373ae4e2e449 | eec46537b68e1ac8e5327549b52a41f52a5306f5 |
refs/heads/master | <repo_name>BrandonC98/Voxel-Editor<file_sep>/Project V2/Project V2/Source/ShaderManager.h
#pragma once
#include <GL\glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <string>
#include <iostream>
#include <fstream>
//using namespace std;
class ShaderManage... | 7382d2f574bbbc42b59c04c56e37f7de08dd854c | [
"Markdown",
"C++",
"INI"
] | 30 | C++ | BrandonC98/Voxel-Editor | 128d322a2a50831cec58b140b832af28fa85409e | 8911cbbed199ab42b4b6d7b42edd76f9364ded17 |
refs/heads/master | <repo_name>olejabiz/Pizza<file_sep>/server/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
namespace server
{
class Program
{
static void Main(string[] args)
{
... | c6849211e377481fb02e90d494ac3c85ce548ac7 | [
"C#"
] | 2 | C# | olejabiz/Pizza | b82e1ad1731e63e26ae402d8c54186d4769d6d61 | 6e1db7e0554c864c787b0a6240ca9ad39fb145c7 |
refs/heads/master | <file_sep>declare namespace cc {
interface Node { // tslint:disable-line
angelTo(point: cc.Vec2): number;
getWorldPosition(): cc.Vec2;
getAttr<T>(key: string): T;
}
interface Graphics { // tslint:disable-line
dashedLine(startPos: cc.Vec2, endPos: cc.Vec2, lineLength?: numb... | 125b45e9cce094e81400638ba602dca617d84c55 | [
"TypeScript"
] | 7 | TypeScript | insraq/LD44 | 4a66cb1c28ba65b65617cc2986b24257d3b687ea | 16342bbd1680a7862dfa0d1ee4c7acea795c0040 |
refs/heads/main | <repo_name>VictoriaAnufrieva/Form<file_sep>/Form/js/script.js
const valid_fields = {
f_name: false,
l_name: false,
email: false,
password: <PASSWORD>,
password_conf: <PASSWORD>,
code: true,
phone: false,
country: true,
city: true,
// zip: false,
}
const keys_valid_fields = [
... | ad40c2c6bb5c5ad0288064666cab339df5c2e975 | [
"JavaScript"
] | 1 | JavaScript | VictoriaAnufrieva/Form | e7456219855d4a6c187c6321befa8c80493b9622 | e1c4590f30c1dd29ea2e05bde17aecb5a26e92b2 |
refs/heads/master | <repo_name>aveselovalova/micro-frontend<file_sep>/packages/container/webpack.config.js
const HtmlWebpackPlugin = require("html-webpack-plugin");
const { ModuleFederationPlugin } = require("webpack").container;
const path = require("path");
const htmlPlugin = new HtmlWebpackPlugin({
template: "./src/index.html",
});
... | aeb0e5a268adea9c85d6529e9de8050d9cdc291f | [
"JavaScript",
"TypeScript",
"Markdown"
] | 3 | JavaScript | aveselovalova/micro-frontend | 3b7b883b7d8c6f0b39ea2a15bfcf913f319751ed | 81c010fffe83ffafa9dbfc2afe04ddbfb5fe6570 |
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 dip;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
... | b76af1abf669d4a64bf0923e759ed372ce77acd4 | [
"Markdown",
"Java"
] | 3 | Java | Chaphlagical/Image-Convolution-Calculator | 0e2bea27d83d0574b4b9375294b54fd774b08773 | ecba475d40baade2d9a0ef3087bb29faa7bad723 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.