branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>const fs = require('fs')
const obj2gltf = require('obj2gltf');
var ifcConvert = require('ifc-convert')
module.exports = {
fileExists: (filePath) => {
return fs.existsSync(filePath)
},
convert: (filePath) => {
//console.log(filePath)
ifcConvert(filePath, 'dest.obj')
... | f6c7725ecfe585997adc7e07619adea3f67c1039 | [
"JavaScript"
] | 1 | JavaScript | PhilippRitzberger/ifc-to-gltf | d58afec7750afad1c52d5bdc9ae0c010f6c4923a | 15c13f2dada5ac69b7394ff50e1575fc600b2418 |
refs/heads/master | <repo_name>jakubkaczmarek/drawMe<file_sep>/webapi/drawMe.WebApi/Repositories/Repository.cs
using drawMe.WebApi.Contexts;
using drawMe.WebApi.Interfaces;
using Microsoft.EntityFrameworkCore;
using System;
using System.Linq;
namespace drawMe.WebApi.Repositories
{
public class Repository<T> : IRepository<T> where T ... | 2e64cea9e40aaf8d64ad24a53940cd7c8a534c9d | [
"Markdown",
"C#",
"TypeScript"
] | 79 | C# | jakubkaczmarek/drawMe | f003e0ece2aec989cfd7eea3d266101ab2a68f82 | 793e839fd03a3735c2525f4407804528b01359fd |
refs/heads/master | <repo_name>m074/Cripto<file_sep>/src/bmp.c
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include "general.h"
#include "matrix.h"
Img* read_bmp(char* filename){
Img* img= malloc(sizeof(Img));
img->filename=malloc(sizeof(char)*(1+strlen(filename)));
s... | 9f2ec7b051fbe93f58893fb3196520701952e471 | [
"Makefile",
"C",
"Text",
"CMake"
] | 12 | C | m074/Cripto | 8fbdf7cf9ceef4e5765891303d7923e999ac9f26 | 060f3341aa65ba92ac1ac599c259d495bf803e37 |
refs/heads/master | <file_sep> public class testTableConfig
{
public int id;
public string name;
public int costId;
public class positionClass
{
public double x;
public double y;
public double z;
}
public positionClass position;
public class nameMessageIdClass
{
public int id;
}
public nameMessageIdClass nam... | af6233a25e5a167c0d88c43b5d09275cc84f13f5 | [
"C#"
] | 5 | C# | Blizzardx/ConfigCenterDemo-Windows | 6405f84d89bbe8fa0ba4dab9f6ee9b15ec69cb05 | 7dd9580e885219d4f94398bac96a5d8e5291c301 |
refs/heads/master | <repo_name>rrohit20/Accionlabs<file_sep>/AccionLabs/ext-modules/alMenu/alMenuDirective.js
"use strict";
angular.module('alMenu').directive('alMenu', ['$timeout', function ($timeout) {
return {
scope: {
},
transclude: true,
templateUrl: 'ext-modules/alMenu/alMenuTemplate.ht... | eb3ccfbc4261b0d30504bd3c0a90d17d47ffbc73 | [
"JavaScript"
] | 3 | JavaScript | rrohit20/Accionlabs | 81b496de6fe130e69c153851fb431b36db0742f2 | e6066d4212c20adb83457a5cf493ff3972a51254 |
refs/heads/master | <repo_name>thejones/feathers-generator<file_sep>/src/utils/exists.js
import fs from 'fs-extra';
export default fs.existsSync || function existsSync(filePath){
try {
fs.statSync(filePath);
}
catch(error) {
if (error.code == 'ENOENT') {
return false;
}
}
return true;
};<file_sep>/src/app/m... | 031f4a3a432d84df989a75b8053d5e4f1a78274b | [
"JavaScript"
] | 2 | JavaScript | thejones/feathers-generator | b521f097dccb03ab32ccc1c9647c89bd8bf2e47d | 4addf08f524ece2e50e387b3ecaf8cd22a358704 |
refs/heads/master | <repo_name>nfjdu/Flutter_Redux_Gen<file_sep>/CHANGELOG.md
# Change Log
All notable changes to the "flutter-redux-gen" extension will be documented in this file.
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
## [Unreleased]
## [2.0.0] - 2020-09-26
- Create... | 1ad2af9d9054803f07f83c1e2e8e89b4e945a061 | [
"Markdown",
"TypeScript"
] | 12 | Markdown | nfjdu/Flutter_Redux_Gen | 1534e81e7f73047acd0c2f2b8195e66ac7e44aa7 | 80a64f044f119d03f5333e99bacca149d12089ef |
refs/heads/master | <repo_name>bernardoseven/Whatsapp<file_sep>/test/models/user_test.rb
require 'test_helper'
class UserTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
# def setup gets run before each test.
def setup
@user = User.new(name: "Example User", email: "<EMAIL>",
password: "<PASSWOR... | 655d44a12c5b44e8bb7ae34db961b7717a7dd7ae | [
"Markdown",
"Ruby"
] | 5 | Ruby | bernardoseven/Whatsapp | 8ada8f22ba522575fce5a414db516d94af5f1226 | 16d19e1b84b496a0b207fc9d44f228c8f0645fdf |
refs/heads/master | <repo_name>emnh/3d-workbench<file_sep>/src/index.js
const THREE = require('three');
const $ = require('jquery');
console.log("Hello!");
function main() {
// Set the scene size.
const WIDTH = 1600;
const HEIGHT = 1200;
// Set some camera attributes.
const VIEW_ANGLE = 45;
const ASPECT = WIDTH / HEIGHT;
... | 14c4363702d82a430f364d1714005c1de9403cb0 | [
"JavaScript"
] | 1 | JavaScript | emnh/3d-workbench | 31a949a3a84c8fe37eff28311cca7ac2c610b645 | ac0d80cbb8af2fae8e9e05575846751cd8f094c1 |
refs/heads/master | <file_sep>const Subject = require("rxjs").Subject;
const colors = require('colors');
const yargs = require("yargs/yargs");
const cliProgress = require('cli-progress');
const fs = require("fs");
const StepToJsonParser = require('./../dist/parser').StepToJsonParser;
// cli-tool setup
const argv = yargs(process.argv)
... | 508fbf9f7cc69e43dac90f9bdfd64956187889f0 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | aljoshakoecher/STEP-to-JSON | fecc45341b1b7802736cab19d5925375257dd490 | ccff2d47ea09fc995474b39cb994754d5d86ece4 |
refs/heads/master | <repo_name>Daniel-Seifert/LaserMaster<file_sep>/Assets/Scripts/CircleScript.cs
using UnityEngine;
using System.Collections;
public class CircleScript : MonoBehaviour
{
// Use this for initialization
void Start()
{
//Farbe zufällig setzen
this.GetComponent<Renderer>().material.color = Inst... | d8b5cc8918ff14995504194ca37ae3c30edd8f72 | [
"C#"
] | 5 | C# | Daniel-Seifert/LaserMaster | 367e454b1d0d3e436c5d8602b62a28beaab09059 | 14fdfac8b07987240ebcd7deb54f6b5551b4331b |
refs/heads/master | <repo_name>narwhalman13/Test<file_sep>/Visual Studio 2013/Engine.hpp
#ifndef ICE_ENGINE_H
#define ICE_ENGINE_H
#include "Types.hpp"
#include "Window.hpp"
#include "Time.hpp"
#include "RenderContext.hpp"
#include "Renderer.hpp"
namespace Ice
{
class Engine
{
public:
Engine();
~Engine();
... | 72d26099137ac40d50dfa8be07a8be10e2be8a48 | [
"Markdown",
"C++"
] | 57 | C++ | narwhalman13/Test | ff9564625589c06240f6fa74e82c78e64599d47f | f4d77fa6abe9e7f047a8b04ae48c1c875d45faab |
refs/heads/master | <repo_name>kumar-amarjeet/word-counter<file_sep>/src/main/java/org/ak/task/textprocessing/GreetUser.java
/**
*
*/
package org.ak.task.textprocessing;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author <NAME>
*
*/
@RestContr... | cd03343d768bdf18a1d549e793c94aa423b132c4 | [
"Markdown",
"Java"
] | 2 | Java | kumar-amarjeet/word-counter | ef72c62e18a8764d8f4b8bd1f9d3865fd200df09 | 63ce45b3eb89464290f65921efa17d40eddfc0a0 |
refs/heads/master | <repo_name>mareXT/Zadanie_9_1<file_sep>/js/scripts.js
function getTriangleArea(a, h) {
if (a > 0 && h > 0 ) {
return a*h/2;
}
else {
console.log('nieprawidlowe dane');
};
};
var triangle1Area = getTriangleArea(3, 12),
triangle2Area = getTriangleArea(6, 10),
triangle3Area = getTriangleArea(-3, 13);
console.... | 0dd141842359ada613c5863e876e063ac2c870e3 | [
"JavaScript"
] | 1 | JavaScript | mareXT/Zadanie_9_1 | 72283f68aab76237f57c36d20bc6d02dd53ae2c7 | c715e9cac562e5f1dca76160a8a6a9167147ce40 |
refs/heads/master | <repo_name>morristech/intellij-robolectric-plugin<file_sep>/src/org/robolectric/ideaplugin/StubIndex.java
package org.robolectric.ideaplugin;
import com.intellij.openapi.project.Project;
import com.intellij.psi.PsiClass;
import com.intellij.psi.stubs.StringStubIndexExtension;
import com.intellij.psi.stubs.StubIndexKey... | 44004cf311052b25b6867313d7649f9739d62a24 | [
"Java"
] | 1 | Java | morristech/intellij-robolectric-plugin | a62b7caeed0a7b5ecf62517112b45bdd6fa88a6f | cde8940b0fd262bce19ecfa19b0bb7bcd1920f96 |
refs/heads/main | <repo_name>DWEBANKS/Attendance1<file_sep>/editpost.php
<?php
require_once 'dbase/conn.php' ;
if(isset($_POST['submit'])){
$id = $_POST['id'];
$fname = $_POST['first_name'];
$lname = $_POST['last_name'];
$dob = $_POST['date_of_birth'];
$email = $_POST['email'];
$co... | 588870f81180075e69d286081e7045ea6c786f10 | [
"PHP"
] | 2 | PHP | DWEBANKS/Attendance1 | 546562443ed218086dc707e4adeed4af10693cde | c65e936b23987bb2e849cfdb31b87dd286630fa7 |
refs/heads/master | <repo_name>alouzao10/ReactNotesApp<file_sep>/src/Components/Header.js
import React from 'react';
function Header(props) {
return (
<header className='header'>
<h3 className='title'>Note Taker</h3>
</header>
);
}
export default Header;
<file_sep>/src/Components/NotePad.js
import React, { Component } ... | 6cb98816074b76f7eabbb736857c7f7e44304c43 | [
"JavaScript"
] | 2 | JavaScript | alouzao10/ReactNotesApp | 118acf577c223b4da4461371c05a8136dac7906b | e20f6d1426c54f3d80bee7feb27d5665a0c335be |
refs/heads/master | <repo_name>tanveer941/miscellaneous_supporting_app<file_sep>/microblog_docker/app.py
"""
-open command prompt in C:\Program Files\Redis
-execute redis-server.exe
Redis server has started on default address at 127.0.0.1:6379
- In the browser execute http://localhost:5000/
Each time you execute the count increase... | 364d173ccc8f916b54e2a0adf98ed5d46446a100 | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 37 | Python | tanveer941/miscellaneous_supporting_app | 25c79341573860abf97a803f3e28395159898314 | 117e73357f4ca11e2e7cf95621daebab162bf33e |
refs/heads/master | <file_sep><?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>de.ipbhalle.metfrag</group... | 21e0e2e30a7a05440d43493c4df8d54383b1a965 | [
"Java",
"Maven POM"
] | 3 | Maven POM | meier-rene/MetFragRelaunched | fe3d145ed719c1892b3127c97a55620c24c6b1ca | 482219187e7683c7728e7c11a652c936e4f00f46 |
refs/heads/main | <file_sep>import * as actions from '../../action-types'
import Axios from 'axios'
export default{
[actions.ADD_PRODUCT]({commit},payload){
Axios.post('/product', payload)
.then(res=>{
})
.catch(err=>{
})
}
}<file_sep>// for categories
export const SET_CAT... | d20dd228da1a7d77a171a20e0daea6bb0b45ab09 | [
"JavaScript",
"PHP"
] | 3 | JavaScript | jowel007/IMS | 01fcfa1e0c8f9d4bf94f7f5b922a1b6b0912d146 | 61f54ab4bda0a3389d2294cb066aff0f304e59a8 |
refs/heads/master | <repo_name>Romanua911/simple-mvc<file_sep>/model/Post.php
<?php
class Post {
public $id;
public $author;
public $post_url;
public $format;
public $width;
public $height;
public $filename;
public $author_url;
public function __construct($id,$author,$post_url,$format,$width,$height,$filename,$author_url)
... | 3d50fa095e5a8a095b093a17f75dca48144edb2a | [
"PHP"
] | 6 | PHP | Romanua911/simple-mvc | 5ff4375c1b3934aafa4aae8fc6aa57d830e703de | c5b534973f4f7928aae6a24a40543c9a0ed23764 |
refs/heads/master | <repo_name>strangesast/open62541_ua_server<file_sep>/nodeset.h
/* WARNING: This is a generated file.
* Any manual changes will be overwritten. */
#ifndef NODESET_H_
#define NODESET_H_
#ifdef UA_ENABLE_AMALGAMATION
# include "open62541.h"
#else
# include <open62541/server.h>
#endif
_UA_BEGIN_DECLS
extern UA_Stat... | 7f0c8e7e6f4012845ee1c4b0db26a4ab628985fb | [
"CMake",
"Markdown",
"Dockerfile",
"C",
"C++",
"Shell"
] | 17 | C | strangesast/open62541_ua_server | 7efa67c9bcc4ff5b3f4862bb98c1d42a2858e897 | 3282ed8b965131106d1ef0cbc8ee78dc17a29ae5 |
refs/heads/master | <file_sep># ComboBox Demo
import Tkinter
import Tkinter as tkinter
import ttk
import tkFont
from Tkinter import *
from ttk import *
# Get flyer name module
def foo(event):
#print v.get()
category = v.get()
# Main Root
root = Tkinter.Tk()
root.title("ComboBox Demo")
tab = ttk.Notebook(root)
... | 6efbf878a1983cbe44aba97e04b090bb6fbbf454 | [
"Markdown",
"Python"
] | 3 | Python | HumayunMulla/python-source-code | c8a6ea0055566d48361d69746307f98d760fca1f | c3ecad4eb8bd9a0b8bbf70b2704abcf9ae896308 |
refs/heads/master | <file_sep>#include "IdleCell.h"
/*
Constructors
*/
IdleCell::IdleCell() : Cell(CellLabels::Idle){}
/*
Member Functions
*/
bool IdleCell::in_action(){
return true;
}
bool IdleCell::out_action(){
return true;
}
bool IdleCell::idle_action(){
return true;
}<file_sep>#include "Agent.h"
bool Agent:... | 31e3c5377592100c0f0338ef2443592d17bad88c | [
"Markdown",
"C",
"C++"
] | 19 | C++ | danjrauch/depotech | 7a2956a52ade1db198f9541819d1ba764e5338b6 | 3c7621c7f366c200662701b1deb7df277b68726b |
refs/heads/master | <repo_name>hermex-trade/FreeArticles<file_sep>/src/Providers/FreeArticleServiceProvider.php
<?php
namespace FreeArticles\Providers;
use FreeArticles\Contracts\FreeArticleRepositoryContract;
use Plenty\Plugin\ServiceProvider;
use FreeArticles\Repositories\FreeArticleRepository;
class FreeArticleServiceProvider extend... | b0b91127266e18bdff6149e5b6f500f33691c011 | [
"PHP",
"INI"
] | 13 | PHP | hermex-trade/FreeArticles | 5676d21e455452180ef95f07534097da1fc5d109 | 0c2209b2b33a2d1a8fbd56562964238f43d148bf |
refs/heads/main | <repo_name>cthoyt/more_click<file_sep>/README.md
# more_click
<a href="https://pypi.org/project/more_click">
<img alt="PyPI" src="https://img.shields.io/pypi/v/more_click" />
</a>
<a href="https://pypi.org/project/more_click">
<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/more_cl... | 49665e368aad78f18974dd4a0544c8277b85977e | [
"Markdown",
"Python"
] | 6 | Markdown | cthoyt/more_click | a7b2ca24c8f922578def2a0e92a94c35a9dde226 | 7377c09b51dec59186e2a60b34b8787de2b8eb25 |
refs/heads/main | <repo_name>Shubham1201/shop_selling<file_sep>/shopmanage/shophome/migrations/0004_auto_20210308_2236.py
# Generated by Django 3.1.7 on 2021-03-08 17:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shophome', '0003_auto_20210308_2231'),
]
ope... | b12b2ee7ef6c639527be62c55f21c70622cb0db3 | [
"Python"
] | 11 | Python | Shubham1201/shop_selling | 4e49653dec4b290be32cbf49856dd18645ac4595 | 73265da6304aa75672374358399ec953c3df7172 |
refs/heads/master | <repo_name>adfuhr/homework7<file_sep>/src/edu/uwm/cs552/GoalCard.java
package edu.uwm.cs552;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observable;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import j... | 342766353ef0e98441068bbfef1c35fe41218244 | [
"Java"
] | 21 | Java | adfuhr/homework7 | de8dd85e29d7193a5524225e125f3222bbc8ff45 | fed43315ee28eef64fcc0c6fc0109f7bcc65add9 |
refs/heads/master | <file_sep>#include "types.h"
#include "param.h"
#include "defs.h"
#include "mmu.h"
#include "proc.h"
void sys_monopolize(int password){
#ifdef MLFQ_SCHED
argint(0,&password);
monopolize(password);
#endif
return;
}<file_sep>#include "types.h"
#include "param.h"
#include "defs.h"
#include "mmu.h"
#include "proc.h"
... | 708f6cb7a94a0fedfa14ab45a74ad3cee6d35365 | [
"Markdown",
"C"
] | 13 | C | BecomeWeasel/Operating-System-xv6 | c15f43b926666e9cceaae022e8eb27e1a53480bf | c2d3ef61f35a1042e4ebb4a2cf038f740d531d91 |
refs/heads/master | <repo_name>AthinaHilakou/DesignComp<file_sep>/tests/state_alt_test.c
//////////////////////////////////////////////////////////////////
//
// Test για το state_alt.h module
//
//////////////////////////////////////////////////////////////////
#include "acutest.h" // Απλή βιβλιοθήκη για unit testing
#include "ADTSet.... | 67bad8c0b0b0f7d9aead42b35b90da204f4e777e | [
"C",
"Makefile"
] | 8 | C | AthinaHilakou/DesignComp | 3ceb51054263d0441ceeb8d621d9ec0c29a0ed28 | 45eea8c8c09bc695cb989d1a9523349c8b172ce4 |
refs/heads/master | <file_sep>import {Registry} from './Registry.mjs'
import cp from 'child_process'
import {SZ, MULTI_SZ, EXPAND_SZ, DWORD, QWORD, BINARY, NONE} from './constants.mjs'
let ERR_NOT_FOUND
export let VALUE_DEFAULT = undefined
export let VALUE_NOT_SET = undefined
let errMessagePromise
let defaultValuesPromise
function get... | abbd5b7eb4fe9ca92a08b9b7cd1a628363301e0f | [
"JavaScript"
] | 2 | JavaScript | danielmorena/rage-edit | 6e18ee85437f2b97d493b93de43ed1e9e1e2c117 | b4a0e56c73d49162fec01ded1fd5322f71628a68 |
refs/heads/master | <repo_name>timexouts/PipTest<file_sep>/build/scripts-3.5/testpip.py
#!python
def sayhello():
print("Hey there!")
return 0
if __name__ == "__main__":
sayhello()
<file_sep>/Makefile
.PHONY: clean
clean:
rm -rf dist build *.egg-info
.PONEY: cleanall
cleanall: clean
rm -rf venv
build: clean
python3 setup.py... | 49a5061ee9467fe9663bdf77e4eefcf060cfce84 | [
"Markdown",
"Python",
"Makefile"
] | 5 | Python | timexouts/PipTest | bd4ce0cf22c1de1f47cd6e605e167bdc29f3cd8c | 43e9b407ab4971399c8e72bb39ff3cdecc5288a7 |
refs/heads/main | <file_sep>using System.Collections;
using UnityEngine;
public class WeaponManager1 : MonoBehaviour
{
public float switchDelay = 1f;
public GameObject[] weapon; //무기의 게임 오브젝트 배열
private int index = 0; // 무기의 인덱스
private bool isSwitching = false; // 딜레이를 확인하기 위함.
// Use this for initialization
... | 8b8d1598c69f5a9f6067d0a75527a73b573f5154 | [
"C#"
] | 1 | C# | seoohyeon/2021-Meta-Bus-Knights | f58fa0441b6db8f3d5741a2bad027981661cbf87 | 87683f7aff22b95ca66d767c6ec511003442f63d |
refs/heads/master | <file_sep>package com.previred.periodos.exception;
import com.previred.periodos.exception.dto.ResponseErrorDto;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
impor... | 0e8a68733cdce028180eeee3576a15b794b6ba18 | [
"Java",
"Gradle"
] | 3 | Java | diego-aguirre-rabanal/Desafio_Uno | 727611020496e72f6717da8ee7a72c00ef3e3eb6 | 5ae85704c76cadb9a15f6b5d094994f6ef831250 |
refs/heads/master | <repo_name>TylersDesk/fancy-ass-comparison-table<file_sep>/javascripts/lib/main.js
//console.log('Loaded Zblog Main.js');
var zproto = zproto || {};
(function() {
'use strict';
//Zblog nav scripts
zproto.nav = (function () {
var container = $('.zcontent')
, navSrc = $('.nav-ham')
, hamburger = ... | 0cf524c1de4b7455c898d50973efc6ac7c7e678d | [
"JavaScript"
] | 1 | JavaScript | TylersDesk/fancy-ass-comparison-table | b03753ef4da20b4b650a74204a6822ca4ce5e87a | 89b490fddd9445e8c8dfda3d8c602f858528a430 |
refs/heads/master | <repo_name>isaacguerreir/mindminers-project<file_sep>/src/components/table.js
import React from 'react';
import MaterialTable from 'material-table'
import { TableIcons, Localization } from '../service/utils';
const TableResult = ({data, results}) => {
const dataMergeResults = data.map((obj, index) => {
ret... | 52c406e0bad8f72bb6ff6c08e9e31828c8739b87 | [
"YAML",
"JavaScript",
"Markdown",
"Dockerfile",
"Shell"
] | 15 | JavaScript | isaacguerreir/mindminers-project | 96b982b66b682c351a5e191e5fa27da1f37d8d0d | e47061713506b1fae39459905aadccb8bc4c97eb |
refs/heads/master | <repo_name>topalov909/list_with_numbers<file_sep>/script.js
Ar = [];
var i = 0;
do {
user_answer = +prompt('Введите количество натуральных чисел:');
}
while (user_answer<=0);
function add_items_to_list(n)
{
for (i; i<n; i++)
{
Ar[i]=i+1;
}
}
add_items_to_list(user_answer);
document.write(Ar.join('<br>')... | ab8d9364148184b4928ade3bc378987284c7aa44 | [
"JavaScript"
] | 1 | JavaScript | topalov909/list_with_numbers | 0c583cc8c7547ddd07b27ef1818495ec310fb559 | ec2e7b07e7d826b609442cca3cc27ae42a1ad483 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _06.BinaryToHexadecimal
{
class BinaryToHexadecimal
{
static void Main(string[] args)
{
//Write a program to convert binary numbers to hexadecimal... | 0222ad7f3246abf7612ca9026b2608205b43f3b3 | [
"C#"
] | 4 | C# | VDGone/Homework---NumeralSystems | 5a2f0c29a99df5d75d385119146a5837fe1cbd89 | 7d85a731437a4be07d67148783c68a2a6e3bdd2b |
refs/heads/caf-9.0 | <file_sep>add_lunch_combo kaf_cedric-user
add_lunch_combo kaf_cedric-userdebug
add_lunch_combo kaf_cedric-eng
| 1132525c034ced283f0c1941875b901c4bb1401a | [
"Shell"
] | 1 | Shell | Kalil-Devices/device_motorola_cedric | 261d5c537f8ca1d7841198fd147dfd2b5d31f91e | 998621fb16be720cc5ba5419f730ae8245d04577 |
refs/heads/master | <repo_name>gerAlvarez/TestXamarinMobileApp<file_sep>/Listar/Listar/MainPage.xaml.cs
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Listar.Model;
namespace Listar
{
public p... | 2a9daa808f9359088e5845ca6e52196f5a434772 | [
"Markdown",
"C#"
] | 2 | C# | gerAlvarez/TestXamarinMobileApp | 70d17f94e7f1f24864ca449044a21cfa6a38e8bf | a6d206fc962fe2ea52cdc3a59e526ee52f5a4ef1 |
refs/heads/main | <repo_name>nguyenthanhtrung1996/Products<file_sep>/scripts/dashboard.js
var arrProducts = ["Nokia","Nokia 1"];
function show(){
var tbody = document.getElementsByClassName('tbody');
tbody[0].innerHTML = arrProducts.map((item) => {
var index = arrProducts.indexOf(item);
return `<tr>
... | 15fec83754eb9cb74d150aa1ce36be15557dcc01 | [
"JavaScript"
] | 1 | JavaScript | nguyenthanhtrung1996/Products | 6f94d73371deb5935a4b4bc1a58cddc3e57ccc99 | 723a78f144e72e951101f9b9dd3c7a960f8fda5a |
refs/heads/master | <file_sep># simpleAI
first python AI
<file_sep>import numpy as np
from NormalizingFunc import NormalizingFunc
training_data = np.array([[1,0,0],
[0,1,1],
[1,1,1],
[0,1,0]])
training_output = np.array([[1,0,1,0]]).T
weights = np.rando... | 2d17d91aa11fd4fc9af2ef4cd331e6ee9c0e3fe7 | [
"Markdown",
"Python"
] | 3 | Markdown | Runningsloths/simpleAI | b2b787663780023b0dcc61c44b691c12a05072e2 | 45c430f9173891344a071196fad76f0be158e646 |
refs/heads/master | <repo_name>albertyu1027/week-7-Train-Schedule<file_sep>/README.md
# week-7-Train-Schedule
Train Schedule HW
<file_sep>/train2.js
var config = {
apiKey: "<KEY>",
authDomain: "trainhw-cad24.firebaseapp.com",
databaseURL: "https://trainhw-cad24.firebaseio.com",
projectId: "trainhw-cad24",
storageBuck... | ab77dff2046a2b1a5f2c3c0a6fd25d7dc7223428 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | albertyu1027/week-7-Train-Schedule | 47c893e8a0dbbba0431f3a0e9bca8be1302505f5 | 52b2ce08166de5f9cf65faeec161c715d5d2af96 |
refs/heads/master | <repo_name>atcheri/cvatsu<file_sep>/src/Perso/CVBundle/Controller/DefaultController.php
<?php
namespace Perso\CVBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sy... | a339f633b4b650af31247a4a534a73e4a5f94bb0 | [
"Markdown",
"PHP"
] | 2 | PHP | atcheri/cvatsu | 16b2706564e19da5fa964a46bafb10d3d04b8b34 | 86d806602876044543a950e283395531bb0121cf |
refs/heads/master | <repo_name>rexhomes/PreciselyAPIsSDK-NodeJS<file_sep>/api.ts
/**
* Precisely APIs
* Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs.
*
* OpenAPI spec version: 9.5.0
*
*
* NOTE: This class is auto generated by the swagger code generat... | 9ef0f242332e9731e8a9e95acc007c1651f4c404 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | rexhomes/PreciselyAPIsSDK-NodeJS | f0963da718f72d11ddb15d8e114a6353f053965f | 1ce847b975136884be155fa8bfd8c05011255450 |
refs/heads/master | <repo_name>btimmie/TP<file_sep>/src/main/java/com/branwyn/cput/tp/DIP/violation/ErrorMessage.java
/*
* 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 com.branwyn.cput.tp.DI... | 1385be090faf3cb0ce6545b077f84a252291ccd9 | [
"Java"
] | 1 | Java | btimmie/TP | 4f38a9c502d7ce6948adbda80096d2096b96234c | fd6e60c1fb7fd48072b4f7ff8fcb9fc7e712378b |
refs/heads/master | <repo_name>GolKost/first<file_sep>/1.rb
str = 'asdf aaaayyyee oooo kjhsdp uuuuuu eeeee iiiiiiauu'
puts str.scan(/\b[AEIOUYaeiouy]+\b/).select.with_index { |e, index| index.odd? }
all? {} | 2a6daa0c83aca43d02ddcfded4d380d67ac3d168 | [
"Ruby"
] | 1 | Ruby | GolKost/first | 975e33218f7eb113802aee9d128ee7ff39a0c124 | eadca24db96d74dde1d669379e8f82bffe922793 |
refs/heads/master | <repo_name>sivertsenstian/UNITYBadlands<file_sep>/Assets/Badlands.Serialization/Save.cs
using System.Collections.Generic;
using System;
using Badlands.Blocks;
using Badlands.World;
namespace Badlands.Serialization
{
[Serializable]
public class Save
{
public Dictionary<MapPosition, Block> blocks = ... | 679c820c7379d2bbe300b50681988f2411c1e4e6 | [
"C#"
] | 19 | C# | sivertsenstian/UNITYBadlands | d2a1efcb73714913547803ef8de13102f71cf22a | fee843d1c5b0d312bda5598920bcdac1c3d35867 |
refs/heads/master | <file_sep>#include "wheel.h"
GLuint wheelIndices[] = {
0, 1, 2,
0, 2, 3,
};
GLfloat wheelVertices[] = {
// coordinates // color // texture
0.2f, 0.2f, -0.799, 1.0f, 0.0f,
-0.2f, 0.2f, -0.799f, 1.0f, 1.0f,
-0.2f, -0.2f, -0.799f, 0.0f, 1.0f,
0.2f, -0.2f, -0.799f, 0.0f, 0.0f,
};
GLfloat wheelRotAngle = 0;
v... | 6b36e156e6d50df8bd34d7d951b89a07798e4de3 | [
"C",
"C++"
] | 12 | C++ | Spinaker1/GKOM_BoatSimulator | 3030fffd9fbc1a754d83c87004243463dfd52e5e | 3f743c084b81a69b329ba511533ea97bbf651325 |
refs/heads/main | <repo_name>OkawaraTakumi/lendorborrowserver<file_sep>/controllers/users.js
const ErrorResponse = require('../utils/errorResponse');
const asyncHandler = require('../middlewares/async');
const mongoose = require('mongoose');
const User = require('../models/User');
const ObjectId = require('mongodb').ObjectId
//... | 7e19eb07bb4d7f14b9b16f9673602d5356495b55 | [
"JavaScript"
] | 6 | JavaScript | OkawaraTakumi/lendorborrowserver | dd3c62665a98c70b90a03364e378ae916fac7950 | 6b991c65e5950b773ef239fcb468afeb382d011e |
refs/heads/master | <file_sep>#!/bin/bash
#=================================================
# Description: DIY script
# Lisence: MIT
# Author: P3TERX
# Blog: https://p3terx.com
#=================================================
# Modify default IP
#sed -i 's/192.168.1.1/192.168.50.5/g' package/base-files/files/bin/config_generate
# git c... | 77985f84b0b7862e77d90899f1509b20dc1c3202 | [
"Shell"
] | 1 | Shell | syfirefox/Actions-OpenWrt | 7252bac78ff0f57fc9a31547ee30251719e97f39 | 4cbe432cb269cff8cfd04e361af9e8dae4bf082e |
refs/heads/master | <repo_name>Bangula/hotel<file_sep>/fe/src/components/admin/rooms/RoomTypes.js
import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import {
makeStyles,
Button,
Table,
TableBody,
TableCell,
TableHead,
TableRow,
Paper,
CircularProgress,
Collapse,
ListItemText,... | 357b6867ec7f1bf3eef4a5835792d678a8826adb | [
"JavaScript"
] | 61 | JavaScript | Bangula/hotel | cc51714dad99e6677453fb566484ebf5589e730e | 98f434b3a5e1e269aecf2b5103001eed6ee0a153 |
refs/heads/master | <file_sep>import numpy as np
import math
import matplotlib.pyplot as plt
import random
import time
class gift_wrapping:
def __init__(self, data, data_name=""):
self.data = np.array(data)
self.data_name = data_name
# Returns the point with lowest y coordinate and highest x coordina... | 674c1fe4a6cca57a1ac6d4040f5754eef4d95b8e | [
"Markdown",
"Python"
] | 2 | Python | gustavomccoelho/Fecho-Convexo | 54344d6d4af6e6da9ae1f1ed03859e491fdc1928 | 94c772299f96c2a0f7cbbf0a58682d54df168630 |
refs/heads/master | <repo_name>Mariemnoui/mqtt-servo-client<file_sep>/MQTT_client.servo.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <Servo.h>
Servo myservo;
const char* ssid = "LDV-CPP";
const char* password = "<PASSWORD>++";
const char* mqtt_server = "ajax-der-kleine.clients.ldv.ei.tum.de"; ///broker MQTT
... | 4e97f0ffcd10ef72a6a2953b3e8b78e58e243642 | [
"Markdown",
"C++"
] | 2 | C++ | Mariemnoui/mqtt-servo-client | 1f392ab06318d15dd502144b8a2b33e5799fbf54 | cd932914f04c11b5bde16007e14988e0d179b4b7 |
refs/heads/main | <repo_name>VaibhavJogdand/Portfolio<file_sep>/src/components/topbar/topbar.js
import React from 'react';
import './topbar.css'
import { FaInstagram } from 'react-icons/fa';
import { FaGithub } from 'react-icons/fa';
import { FaTwitter } from 'react-icons/fa';
import { FaFacebookF } from 'react-icons/fa';
export defaul... | 3ac7edd51b8607cda38569c6aebc4f4c8aa61d26 | [
"JavaScript"
] | 2 | JavaScript | VaibhavJogdand/Portfolio | aa0caa42e3a96a4c12a698f7f4f6de04e185d336 | 5e09818ed4d8612b9adfe8ee0cc6fc5859f36584 |
refs/heads/master | <repo_name>sun40/T1Contacts<file_sep>/T1Contacts/src/com/task1/contacts/contact/ContactAction.java
package com.task1.contacts.contact;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import com.task1.contacts.ContactListActivity;
public class ContactAction {
public static... | f15aa279bb47192720010103ffea0000ba28b6b9 | [
"Markdown",
"Java"
] | 5 | Java | sun40/T1Contacts | 375d93a92dfb93365fc0ddc8be9696810c931d33 | 5694ba3c8aab70849370c14a29f92a957ca9534e |
refs/heads/master | <repo_name>dterracino/asimov<file_sep>/Demo/Program.cs
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Asimov;
namespace Asimov
{
/// <summary>
///
/// </su... | c203adfc873a117fba996af69b1c9d3835549c23 | [
"C#"
] | 6 | C# | dterracino/asimov | 8ff1285e7885282b23632fcdd71cf002b8b2a758 | 964293b61ab24f7c12fe4f6e1bf2945ba50ee7ca |
refs/heads/master | <repo_name>crcsaenz/coolc<file_sep>/README.md
coolc
=====
CS-143: Compilers
<file_sep>/pa3/semant.h
#ifndef SEMANT_H_
#define SEMANT_H_
#include <assert.h>
#include <iostream>
#include "cool-tree.h"
#include "stringtab.h"
#include "symtab.h"
#include "list.h"
#include <map>
#include <set>
#define TRUE 1
#define FA... | f9e2ee5ba07f3ddec62ef7d337d5f42e1e8adb42 | [
"Markdown",
"C++"
] | 4 | Markdown | crcsaenz/coolc | f906e7694537c6faaa1f3279586f8f9c3588bdee | 9b0a8f64c9000519f434c1e9c396554a5533beeb |
refs/heads/master | <file_sep>import unittest
import StringCalculator
class testStringCalculator(unittest.TestCase):
def testEmpty(self):
self.assertEqual(StringCalculator.Add(''), 0, 'Should return 0')
def testAdd(self):
self.assertEqual(StringCalculator.Add('1,4,6'), 11, 'Should return 11')
def... | ebabc1736e34128d167aa53304d1f66b402a4254 | [
"Python"
] | 2 | Python | TimKeding/StringCalculator | 19126def42a98e909630d4bba8c33e06b81d3ace | 4c6f9d8e274351fe98361c45087c9f34fc9d6b0b |
refs/heads/master | <file_sep><?php
$array = [1, 1, 2, 3, 4, -51, 12, 12, 12, -51];
function getPair($array)
{
$pairCount = 0;
for ($i = 1; $i <= count($array) - 1; $i++) {
if ($array[$i] == $array[$i - 1]) {
$pairCount++;
}
}
echo $pairCount;
}
getPair($array);
| 7138ea0fff111dd02d8a580dd699f52129783ca2 | [
"PHP"
] | 1 | PHP | teaguru/test2 | cfca60ccf2ae7a043ed3cc53936408dfa265fa04 | 27986a08ec1fe156c9424c7b4acb872515b5d0c6 |
refs/heads/master | <repo_name>eileenguoo/GoFor100<file_sep>/README.md
# GoFor100
12B_PA8
<file_sep>/src/Violation.java
/**
* @author <NAME>
* @email <EMAIL>
* this class checks the violation types and print the violation
*/
public class Violation {
private int lineNumber;
private String name;
private String typ... | 238ec4906263539ca9d3aa25b14087f5b6cabe2a | [
"Markdown",
"Java"
] | 2 | Markdown | eileenguoo/GoFor100 | 7086dd1f741c51bba47229d63ace792d1ef09eb2 | 4ee8fb56fe98c91e07b2614d69a7ca7fe3b912d0 |
refs/heads/master | <file_sep>#include "problem.hpp"
#include "heuristik.hpp"
//#include <iostream>
//#include <string>
//#include <iomanip>
//#include <math.h>
#include <fstream>
#ifndef __GNUC__
#include <conio.h>
#else
#define _getch()
#endif
using namespace std;
int main ()
{
Problem problem;
problem.einlesen();
problem.calc_dista... | 0df325a1dd47e4bf428ca2fd8875a2ad7eef9524 | [
"Markdown",
"Makefile",
"C++"
] | 9 | C++ | eriu/cpp | 507449ced566f096d212ffd89f57154fe622238f | e992e3e20127279fce15123d4b7adb7fbd7b7e29 |
refs/heads/master | <repo_name>JRocks1092/Project72<file_sep>/Screens/ReadStoryScreen.js
import React, { Component } from 'react';
import { View, TouchableOpacity, Text, StyleSheet, ImageBackground, Image } from 'react-native';
export default class ReadStoryScreen extends Component {
render() {
return (
<View>
... | 5a1b47dab3fbc82b94a123e6e066df68f18a941b | [
"JavaScript"
] | 1 | JavaScript | JRocks1092/Project72 | 2a5b4ca8dc8da912bc393e2762b17d168277d0d5 | 65f4e595a481d6d436957da2a7ea38cabef9d3f1 |
refs/heads/master | <file_sep>package com.example.user.vandrova;
public interface Constants {
String LAT_LNG = "latLng";
String PLACE_ID = "placeId";
String PLACE_NAME = "placeName";
String BASE_URL = "https://api.foursquare.com/v2/";
String CLIENT_ID = "YPKP3PJOYNVPZQHGXYDD3KSBKPWUICDBFPZZ2SEPAEFXCFVM";
String ... | a55530aca3b7c33ebdb54ae95db1261354247c89 | [
"Java"
] | 5 | Java | arzumanyasha/VandroVa | 4eddad35db941feb92765b614c12c440b775c4de | 44e1d4050c8b3f02767f15ff2eeaeff57a186c1f |
refs/heads/master | <repo_name>aclodic/install-sot<file_sep>/README.md
install-sot
===========
[](https://travis-ci.org/stack-of-tasks/install-sot)
This script install automatically the Stack of Tasks and its
dependencies.
Quick Start
-----------
To sta... | ffce1638ab101f9ea32b6c76ddab5aab40883501 | [
"Markdown",
"Shell"
] | 2 | Markdown | aclodic/install-sot | 3dc92cb0bd4b6712b6299f234400c4c9b2096dbc | 8e5e8f30ec6e7e5cdf9d0f8622cb6e03b5b796e6 |
refs/heads/master | <repo_name>GolovchenkoA/RESTfulExample<file_sep>/src/main/java/ua/golovchenko/artem/rest/JSONService.java
package ua.golovchenko.artem.rest;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java... | 84911811b405b30aed650f73ebbb837c91846d16 | [
"Java"
] | 1 | Java | GolovchenkoA/RESTfulExample | 6d875f23c6234c72e6c71d51ede048941ead46e5 | d1b791fc780cc9e0f2b0dc0340e901d78a2c06e4 |
refs/heads/main | <file_sep># fingerspace
A fully responsive website made with react.
| b0626d0f54fe1738aae77a60ec13e0d86c70ae54 | [
"Markdown"
] | 1 | Markdown | JuniorBaymax/fingerspace | 2c2a75dbd9880d4a1ee0ae4591dca164bd64d5ae | 5e7c33e19a5ef6aae13f36e92804ec176bd6d0a6 |
refs/heads/master | <repo_name>iRyanBell/VolumeNotchUI<file_sep>/README.md
# VolumeNotchUI
An intentionally bad volume controller UI.

Hosted demo:
https://iryanbell.github.io/VolumeNotchUI/NotchedVolume/
<file_sep>/Assets... | 4991f78d1af8efaa6c60e2ba4bf4f1dff6639a3d | [
"Markdown",
"C#"
] | 5 | Markdown | iRyanBell/VolumeNotchUI | c9caa3e1ecb9f3e9ff718ef6c7bb5f42d4efd214 | 305002a688ba0b6bd780ff4586d5646aa648de07 |
refs/heads/main | <file_sep>package main
import (
"io/ioutil"
"log"
"net/http"
"github.com/labstack/echo"
)
//const url = "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?"
func main() {
e := echo.New()
e.GET("/", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})... | 86fd855481750f15f1fb57d8c05b5b12907051b8 | [
"Markdown",
"Go"
] | 2 | Go | vishalkprabhu/cowin-slot-fetcher | a3e9f99360c56c9bf3a8c4bfab88437cc07b9c6a | 1fb5138a9849dd01f3b9d324f963db691fafeac7 |
refs/heads/master | <file_sep># ud036_StarterCode
Source code for a Movie Trailer website. This website incluces several movie titles. Each movie title will have a box art and a link to the trailer.
## Generating the HTML
To generate website run entertainment_center.py
## Adding a new movie
1. Create an instance of the media.movie class... | f4454f0e05a7612801b1d00e0e4ea2dc4d0e0d47 | [
"Markdown",
"Python"
] | 3 | Markdown | CodeFish29/ud036_StarterCode | 3d0dff82cdd40d795baddc6ee7a30f88d5dc9e77 | 8720bd46d5524b75864b2fcf3b8d549c3b4e01da |
refs/heads/master | <file_sep>[SuiteResult context=Account Management System]<file_sep>package com.SDETtraining.Intro;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Introduction {
// Example Testing script using SDETtraining.com
public static void ... | 6dd823639f63ae6af1c5da47052d7f3ad6590477 | [
"Java",
"INI"
] | 12 | INI | AlecMillar/SeleniumTraining | 183db48d9ce59b731561c2e61f8dd58db36b2ea2 | d3d63dbf4482b7cb1fb40d1cb56339b3de23388b |
refs/heads/master | <file_sep>import { Update } from '@ngrx/entity';
import { createAction, props } from '@ngrx/store';
import { Customer } from '../../models/customer.model';
export enum CustomerActionsType {
LOAD_CUSTOMERS_ALL = '[CUSTOMER] Load Customers All',
LOAD_CUSTOMERS_ALL_SUCCESS = '[CUSTOMER] Load Customers All Success',
... | 583138d1d13538c9a18b96f47d29304460aecbd4 | [
"TypeScript"
] | 9 | TypeScript | PavelAsadchy/NgRx-app | 68efd69f117d838546c9e1101fa95e9e92470969 | 01f89234d0c80408df9c09bc8349da40800c03b6 |
refs/heads/master | <repo_name>praveenbanoth/space<file_sep>/src/App.js
import React, { useEffect, useState } from "react";
import "./App.css";
import Launches from "./Launches";
import { BASE_URL } from "./constants";
function getLaunchColor(launch, state) {
return launch === state ? "text-blue-500" : "";
}
function getCallApi(lau... | a4e9f46b3d725cb04634fdfc8703a8846c1aeb05 | [
"JavaScript"
] | 1 | JavaScript | praveenbanoth/space | a096256eedca541071b00396232ef9e56811c036 | 540cdc6029665f25ef3031217fbbb7b0ed4bccf2 |
refs/heads/main | <repo_name>Hoikmaster/p25newnew<file_sep>/sketch.js
const Engine = Matter.Engine;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Body = Matter.Body;
var ground,box1, box2, box3,paper;
var myEngine,myWorld;
var trashimg,trashcan;
function preload()
{
trashimg = loadImage("trashcan.png")
}
function s... | 48495a58ff2127a5f16b68138088d5acf18a92a3 | [
"JavaScript"
] | 1 | JavaScript | Hoikmaster/p25newnew | c69bcf9dbcb862f0c1b2b83e14df70d199fb6698 | f964326cc35ebeb52f50fc769b37cea8ca5879ca |
refs/heads/master | <repo_name>karenparente/guessing-game<file_sep>/guessinggame.sh
n_files=$(ls ~/Documents/Guess | wc -l)
echo "How many files do you think there are in here?"
function user_guess {
read guess
while [[ $guess -ne $n_files ]]
do
if [[ $guess -lt $n_files ]]
then
echo "You guessed too low"
else
echo "You ... | c54c1c54fe4aad42afffdcf826407f49f5be8db8 | [
"Markdown",
"Makefile",
"Shell"
] | 3 | Shell | karenparente/guessing-game | 613e26f655af1edbdb3ce62350a6031f8a72b337 | fe79a925c77d5fe8a3791e7af8246c04d3e313e3 |
refs/heads/master | <file_sep><?php
// use Newsletter;
Route::get('/test', function () {
return App\Tag::find(4)->posts;
});
Route::view('/', 'welcome');
Route::get('/result', function() {
return view('result')->with('posts', \App\Post::where('title', 'like', '%' . request('query') . '%')->get())
->with('tags', \App\Tag::all())... | 8a59b490e91b2df03156a112289775d0786099f1 | [
"JavaScript",
"PHP"
] | 7 | PHP | MosaabMuhammed/Laravel-s-Blog | 9601a92df38271757b2f755b9db8b098d7b15fbf | 907dc7c780cb67273606abb26e9dfa4ce12f1a22 |
refs/heads/master | <repo_name>pinkfluid/crt<file_sep>/crt2.c
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <ev.h>
typedef struct crt crt_t;
#define CRT_STACK_DEPTH 32
#define CRT_OK 0 /* Status OK */
#define CRT_ERROR ... | cd42040296622704eaaece239ada88d426880aee | [
"C"
] | 3 | C | pinkfluid/crt | f45208adb2d82bae641d2a8192fa2d25603773ca | 3fbc360a9f5a8391541cabcd4fdfc9db2482b329 |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
public class NavigatePosition : MonoBehaviour
{
[SerializeField]
private NavMeshAgent agent;
// Use this for initialization
void Start()
{
agent = GetComponent<NavMeshAgent>();
}
public void NavigateTo(Vector3 position)
{
agent.... | 3088e69a99131fcfe8be191614743834e16ed93f | [
"Markdown",
"C#",
"TypeScript"
] | 6 | C# | martin-fabbri/unity-node-mmo | 09bfd0e0eabb5de3e63df4b00172614c8d6291ee | d8a59ad85cbc9e27f0f2c62b76d8db4272886bb9 |
refs/heads/master | <repo_name>getziadz/CVP<file_sep>/README.md
# CVP Infrastructure
## Examples & Tracks
See Simulator options:
`./cvp`
Running the simulator on `trace.gz`:
`./cvp trace.gz`
Running with value prediction (`-v`) and predict all instructions (first track, `-t 0`):
`./cvp -v -t 0 trace.gz`
Running with value predicti... | 5d0a0e8fa6e66b7a227e060b93a6bd0b78c2d084 | [
"Markdown",
"Makefile",
"C++"
] | 18 | Markdown | getziadz/CVP | 2e19be02ec3591cf2c5fef4947b4a3c772b5f9b1 | 9b6f4e2c23f0695581ee40fbe28063a513671c52 |
refs/heads/master | <repo_name>hungryangie/fhquiz<file_sep>/app/controllers/notes_controller.rb
class NotesController < ApplicationController
def index
@note = Note.order("RANDOM()").first
end
def new
@note = Note.new
end
def create
Note.create(note_params)
redirect_to root_path
end
private
def note_params
params.req... | b0d0295e9bf49cfc7833f40a48de698906efd67c | [
"Ruby"
] | 1 | Ruby | hungryangie/fhquiz | 0d9affe3f6902cf17c17e94dfec42edba696aa26 | bd1757ec1a199c1198cb4f9288b0938907641b9d |
refs/heads/master | <repo_name>derekdileo/java-practice<file_sep>/src/Parenthesis.java
/*
* "Sometimes (when I nest them (my parentheticals) too much (like this (and this))) they get confusing."
* Write a method that, given a sentence like the one above,
* along with the position of an opening parenthesis,
* finds the corresponding cl... | e4cccfd0a53ffd3cbb5061cde048d18685fda146 | [
"Java"
] | 1 | Java | derekdileo/java-practice | f026cc07d97109882664095d9f955a2c84cc2de4 | d01681220e2e7dc1adebfb28112e0f499d8ea0f8 |
refs/heads/master | <repo_name>ottenokLeshi/ya-first<file_sep>/js/script.js
const lecturers = require('./lecturers.js');
const $ = require('jquery');
require('../css/normalize.css');
require('../css/common.blocks/header.css');
require('../css/common.blocks/school-select.css');
require('../css/common.blocks/schedule.css');
require('../css/... | 9c37ad1d309a4e6d591a49e70301d39ef1bdba9d | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ottenokLeshi/ya-first | 92ec72a6af71b925d498d50de1250c4006caaa48 | a0bfcd7ad06e0a8c268738cfdc675b23117ef37e |
refs/heads/master | <repo_name>BvE-HU/HotelApp<file_sep>/README.md
HotelApp
===================================
Clone dit project met de command-line of IntelliJ ([instructies](https://www.jetbrains.com/help/idea/manage-projects-hosted-on-github.html#clone-from-GitHub)).
Open het project met IntelliJ, en de applicatie kan gestart w... | e2a5678cf4b2ea40561a1252ddec2b85ead04cb4 | [
"Markdown",
"Java"
] | 2 | Markdown | BvE-HU/HotelApp | 397925759eab453dae11be337655bea62aa745d7 | 77bd46d4cdf5df794cd21ab5aa48928549f4d174 |
refs/heads/master | <repo_name>cran/useful<file_sep>/R/loadPackages.r
#' @title load_packages
#' @description Loads multiple packages
#' @details Allows the user to load multiple packages with one line of code. Delivers a message saying which packages have been loaded. If a user requests packages that are not installed there is an error... | a2eec2ac0031397469ac9d3842aacff9a873082d | [
"Markdown",
"R"
] | 3 | R | cran/useful | 1b9831ddb97ec68066c8cdf1eaa8b9f9f9eaa605 | 53f392ae3195e7ee964a6825010e6c0ace603637 |
refs/heads/master | <file_sep>import * as config from "../config.json";
export class Country {
//Get all countries
getCountries(){
return config.countryList;
}
}<file_sep>const expect = require('chai').expect;
const {Country} = require("../services/country");
const getCountries = new Country();
describe("Contr... | a88e7c7c45e5372a4b508adb6f26bc75341e3826 | [
"JavaScript"
] | 2 | JavaScript | blarzHernandez/youtube-trends | b7ca5557630fcbfd9ee789b82a694faa3ad64f1e | dcf61d72340abad57f4cac49c393b6e5e387478e |
refs/heads/master | <repo_name>mustyzod/react-advance-dropdown<file_sep>/src/App.js
import Default from './themes/default'
const App = () => {
return (
<Default />
);
}
export default App<file_sep>/src/themes/default/header/index.jsx
import React from 'react'
import NavItem from './NavItem'
import DropDownMenu from './dropdown/Dro... | 561ddd029eb1d5c4d026d6c0f998c9b8d5a82a9a | [
"JavaScript"
] | 2 | JavaScript | mustyzod/react-advance-dropdown | 7f48b2ada18ee14dcbbf3437f1f90135f50e925a | afc3912985c2430b7a14aa6d631cf9936fd40e33 |
refs/heads/master | <repo_name>xiemeigongzi/Cpp-primer-5th-Chinese-version-answer-<file_sep>/test 1.9.cpp
#include <iostream>
int main()
{
int sum=0, val=50;
while(val<=100){
sum=sum+val;
val=val+1;
}
std::cout<<"The sum of 50-100 is"<<sum<<std::endl;
return 0;
}
<file_sep>/test 1.10- standard.cpp
#include <iostream>
... | 61939a8cad29dc0c461a4d7404bd6f2eef2b00fb | [
"Markdown",
"C++"
] | 29 | C++ | xiemeigongzi/Cpp-primer-5th-Chinese-version-answer- | e5e7b0693f8bf6a839bdb6dbacbce73d09b419f1 | f21e0eebed467ec32fb9e049fc58c38d90621fdc |
refs/heads/master | <repo_name>mozgovoyandrey/test-groozgo<file_sep>/models/Users.php
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "users".
*
* @property int $id
* @property string $lastname
* @property string $firstname
* @property string $birthday
*
* @property Addresses[] $addresses
*/
class ... | c9b76c0715aa598a40951736a6a4c4a943a6f509 | [
"PHP"
] | 2 | PHP | mozgovoyandrey/test-groozgo | 052a958ea93c248582718d9359df0288c4bbf8b0 | a3702d5f59acbb15721bdcc1d7e4492a60db7260 |
refs/heads/master | <file_sep>#define ShiftOut 8
#define Clock 12
// when Control is H input is loaded by parallel inputs
// when Control is L the shift is allowed
#define Control 13
//asynchronous
void Load()
{
digitalWrite(Control, HIGH);
delay(50);
digitalWrite(Control, LOW);
delay(50);
}
void ShiftByOne()
{
digitalWrite(C... | f97184a9ab7b9358d9c64b7683ab71aaa55fdd66 | [
"C++"
] | 5 | C++ | IvoKara/Arduino | b7ae7109df1f98c0443a034d39fd60ca64d89343 | 0b40a72dc92ec09970bba4f08fe02a5a85b3a788 |
refs/heads/master | <repo_name>Enigmatrix/vuepress-plugin-blog<file_sep>/README.md
# @vuepress/plugin-blog
> Official blog plugin for VuePress.
Note that this plugin has been deeply integrated into [@vuepress/theme-blog](https://github.com/ulivz/vuepress-theme-blog).
## Install
```bash
yarn add -D @vuepress/plugin-blog
# OR npm insta... | d68c2fcd6b988e1c9cff21147d238c5e511ea97d | [
"Markdown",
"TypeScript",
"JavaScript"
] | 7 | Markdown | Enigmatrix/vuepress-plugin-blog | f1353a4f73b20e60d69c557ed24ee8fc82b6c5db | 278fdd6cc6ef6620ef5957bdd468ef64bdf64c34 |
refs/heads/master | <repo_name>okubo-0921/git-app<file_sep>/app/models/article.rb
class Article < ApplicationRecord
calidates :title, presence: true
end
| b1ee56945c814631c50073229067b788c8052522 | [
"Ruby"
] | 1 | Ruby | okubo-0921/git-app | ee9384228e6d5b3b9f25b872f2b19a1bc751ba92 | f9a241ccaab85732b5ee4622ee38dd73ae2722bf |
refs/heads/master | <file_sep>// Permet d'obtenir la hauteur de la fenêtre pour assigner une min-height au header pour un bon affichage de l'image
var x = $(window).height();
$("header").css("min-height", x + "px");
// Effet parralax entre le header et le h1
function parallax(){
var scrolltop = window.pageYOffset;
$("h1").css("top",... | 76cdd0a5b1e7cf0c191cb161a884cbf771043665 | [
"JavaScript"
] | 1 | JavaScript | Allandrow/allandrow.github.io | 7995f5533443aff20080e257d993b5853f7f0f2b | 3e3b1c0e05ed67d9bcb226b1ab4ef131d8734483 |
refs/heads/master | <file_sep># Field Labels
##### Defines a label for fields that is used for displaying content which can be different than the form label.
<file_sep><?php
namespace Drupal\field_labels;
use Drupal\Core\Entity\EntityInterface;
use Drupal\field_ui\FieldConfigListBuilder;
/**
* Provides lists of field config entities.
... | ce47ad001f1714c68c44fe7fe225cbf22b154317 | [
"Markdown",
"PHP"
] | 2 | Markdown | jacerider/field_labels | 56a72f86278642e3cdf1854216cf3d6be0e9a7b1 | cd41523889c9e4bb55c83f61cce29d9a312ad8d8 |
refs/heads/master | <repo_name>anweledig/PluginLoadSample<file_sep>/SomePlugin/Test.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SomePlugin
{
public class Test: MyApp.SDK.Plugin
{
public override void Loaded()
{
Consol... | ccc29cb4ad2ede99710eddde27a54aac5dfd3c5f | [
"C#"
] | 4 | C# | anweledig/PluginLoadSample | 1293df35f396c6cb87aa5c2a4de804b984ed7797 | 9b409497f00a806fb4ac9bcce449005b491aa891 |
refs/heads/master | <file_sep>import java.util.Arrays;
public class TransitCalculator {
private int numOfDays = 0; // up to 30 days
private int numOfRides = 0; // individual rides the person expects to take
private static double[] prices;
// Pay-per-ride
// 7-day Unlimited Rides
// 30-day Unlimited Rides
pri... | 39e8e8f833e2a8eff3f5df015eb7a2f3c07abf6c | [
"Markdown",
"Java"
] | 2 | Java | AbdulelahAdam/Best-Fare-Calculator | 0a3d9d421e85e6af49178c3fd92005d71845dd16 | f4a237a2cf8aca3456032ce1e1a5945f628c4aa1 |
refs/heads/master | <repo_name>sherpal8/volunteering_for_all<file_sep>/README.md
# volunteering_for_all
A team at CTC17 focusing on creating greater awareness around volunteering, and making it easier to match skilled volunteers to organisations
# Matching volunteers and charities needing tech skills
There are a few existing solutions w... | e616fd27056aa513d3f2f563fe4cf69ca894e4ad | [
"Markdown",
"Python",
"HTML"
] | 6 | Markdown | sherpal8/volunteering_for_all | 73cd704adb503c31ff0a7fadd5662034cd249c1e | e9be54c84241dda462d25d8bdc820ce52598ffc5 |
refs/heads/master | <repo_name>AugustoEA/Bamazon<file_sep>/bamazonCustomer.js
require("dotenv").config();
var mysql = require("mysql");
var inquirer = require("inquirer");
var Table = require("cli-table2");
var connection = mysql.createConnection({
host: "localhost",
port: 3306,
user: "root",
password: <PASSWORD>,
database: "ba... | cc01ca7299ce15a2e4f80068e40227f6b13b0f0a | [
"JavaScript",
"SQL",
"Markdown"
] | 3 | JavaScript | AugustoEA/Bamazon | 5bc3f22cc116a1c4e71683140a0deebb23b4ebc2 | 46d7263e9fbe89f1745c8f3a7f6cc96cccf9616b |
refs/heads/master | <repo_name>xiaotujiChen/LeetCode<file_sep>/src/com/xiaode/EasySolutions/TwoSumII.java
package com.xiaode.EasySolutions;
/**
* Created by leonard on 27/02/2017.
*/
public class TwoSumII {
/**
* 167. Two Sum II - Input array is sorted
* Given an array of integers that is already sorted in ascending order, find two n... | cd53ad512059983d461616c39392722b5413054b | [
"Java"
] | 3 | Java | xiaotujiChen/LeetCode | 73db8b6ad1215b9045e875ff49e6c3635c6bcff0 | 9b82cec3c8ba2d6d6a2b95bd10e66a60913a26fd |
refs/heads/master | <file_sep>memo={}
def maxVal(w, v, i, ws):
try:
return memo[(i,ws)]
except KeyError:
if i == 0:
if w[i] <= ws:
memo[(i, ws)] = v[i]
return v[i]
else:
memo[(i, ws)] = 0
return 0
without_i =... | ec90be4ec0f8acfbdcc5eb20b440d46c36e52219 | [
"Markdown",
"Python"
] | 23 | Python | ZmN5/practice | c5a109e42bd7f0984f77a3f1a90e06d467295846 | 7adfba260d91875b42ff639839781a2a6c68ff81 |
refs/heads/master | <repo_name>Hemanth4188/pythonp<file_sep>/testp.py
print("This HemanthKumar")
print("fuck off")
| 170f94ecb2afada9c10ca93b850e9ee302c52a42 | [
"Python"
] | 1 | Python | Hemanth4188/pythonp | 4f21c03bae995a224947231460830342cbf82c55 | 7f73e6f98daade3fcf05bd84677f81cfac2806e2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.