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># nextjs-socketsio
An example of next.js working with sockets.io
<file_sep>import {Component} from 'react';;
import io from 'socket.io-client';
class Home extends Component {
constructor(props) {
super(props);
this.state = {
hello: ''
}
}
componen... | 8f0941e1c63463b0cd99d3f2f54ef6115ee164b2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | HDv2b/nextjs-socketsio | 9a7f3963295cbb585b17023dfc8090a07db6fb81 | 5e6cbd0eae05bf3b570180423911d40e56903da5 |
refs/heads/master | <file_sep>let express=require('express')
let router=express.Router();
let feedbackController = require('./controller')
router.post('/feedbackdetails',feedbackController.feedbackadd)
module.exports=router;<file_sep>let express=require('express')
let router=express.Router();
let loginController = require('./controll... | 29fe1e7d6c4d30fc6aa696f2c065666c7dc8a57f | [
"JavaScript"
] | 11 | JavaScript | sukumar-p/konnect-backend | 2617087cf99c5d1ec24c0bc297629bf3f6c11253 | 1447021ed467becb12c870f08065d59bd997b591 |
refs/heads/master | <file_sep>//
// main.cpp
// scrapeToUDP
//
// Created by <NAME> on 10/30/12.
// Copyright (c) 2012 Adobe. All rights reserved.
//
#include <iostream>
void printUsage(const char*name);
int main(int argc, const char * argv[])
{
if(argc == 1)
printUsage(argv[0])
int i = 1;
while(i < argc)
... | b02301ed8cc9b814ebdf291c57f77215bb40ba46 | [
"Markdown",
"C++"
] | 2 | C++ | kukulski/scrapeToUDP | c323979c6ac3ec1f60b25c661e04015ba00efa2a | 6a406cfb0b1d57ee9d85b0e717dd8e150c118081 |
refs/heads/master | <repo_name>raeynok/gathering-mean<file_sep>/app/models/competency.server.model.js
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Competency Schema
*/
var CompetencySchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fi... | f23b002b03f06bc993f4d1adb090352614ff67b3 | [
"JavaScript"
] | 10 | JavaScript | raeynok/gathering-mean | 19a5b0e78971141f827112e61bb7a040c780bdf5 | a514112a7236f85f18bd8712e66024aa45ba780c |
refs/heads/master | <repo_name>EmmanuelJoshua/TicTicToe<file_sep>/TicTacToe/src/tictactoe/PlayerO.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 tictactoe;
import javafx.scene.image.Image;... | 9f8d6750e36d237dd72d440b64ecdcac9712a89d | [
"Java"
] | 2 | Java | EmmanuelJoshua/TicTicToe | 886543e60d2728079486f5df2398589f511932d3 | eecd80e66a6a8a06034955a9d5a304005c407418 |
refs/heads/master | <file_sep>library(shiny)
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
#par(mfrow=c(3,1))
curve(input$a*x^0,-6,6,ylim=c(-6,6),xlim=c(-6,6),lwd=2,col="blue",ylab="f(x)",main="y=f(x)=a")
grid(12,12,col="red", lwd=1, lty=2)
abline(v=0,col="black", lwd=1,lty=2)
abline(h=... | ccb861448d04fe61361104e1d7e7e8b859f005c8 | [
"Markdown",
"R"
] | 3 | R | clobos/nose | e1f6038ce61a4b33a4354130da600fbfece8f6ab | 6315247fa924b394793c0556e2bbe32ec780a9cd |
refs/heads/master | <repo_name>pipo02mix/IseeClient<file_sep>/public/js/main.js
require.config({
paths: {
// Major libraries
jquery: 'libs/jquery/jquery-min',
async: 'libs/require/async',
underscore: 'libs/underscore/underscore-min', // https://github.com/amdjs
backbone: 'libs/backbone/backbone-min', // https://githu... | b39bb94f23dccef1b2cc7d850408ff3a19517521 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | pipo02mix/IseeClient | 861431d78abed02642bdcfbb6a94307ce1d0abb7 | 0085274f13a4153361d75fc8d17cbc512cadee12 |
refs/heads/master | <repo_name>swayamraina/Fix-Imports<file_sep>/testDir/innerTestDir/test_2.py
import pandas;
import tinytree;
<file_sep>/README.md
# Fix-Imports
<file_sep>/testDir/test_3.py
import django
print("another test file")
<file_sep>/testDir/test_1.py
import innerTestDir.test_2;
from . import test_3;
import tinytree;
from os im... | c57ce3a14db0d076eef5e999bdc496f75e8a8d56 | [
"Markdown",
"Python"
] | 5 | Python | swayamraina/Fix-Imports | 99b0189b90774dc5f319bf01596847c0e5df6712 | 004738d6e60521c1fcd1f7fd1b41b057a182eed4 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>Loteria</title>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td,
th {
border: 1px solid #dddddd;
text-align: left;
... | 94b8ec984e9b36ed2634e1f1eb2bd27353f0f96f | [
"Markdown",
"PHP"
] | 3 | PHP | Matheussg42/gerenciador-loteria | 9aae8fefbea269d819f8b807916e24e932a88115 | 092804f19af8ab44ea25bc6b3a18f9e7e903b4d9 |
refs/heads/master | <repo_name>mikrozone/ARM_SWIM-LCD-DEMO_LPC1788-SK<file_sep>/README.md
ARM_SWIM-LCD-DEMO_LPC1788-SK<br>
=============================<br>
<br>
Simple example of the NXP's SWIM graphics library on LPC1788 (IAR LPC1788-SK board)<br>
<br>
After starting, are printed demo 5 text lines with different fonts.<br>
<br>
Applicat... | 1feea3e14f40d194a8017a310bbff5401bf06abf | [
"Markdown",
"C"
] | 14 | Markdown | mikrozone/ARM_SWIM-LCD-DEMO_LPC1788-SK | 62b85a04062e05024b39c4aac7c631d76057574a | bc58ef7d7f713d81cc5e6ace50a9e440b28cf700 |
refs/heads/master | <repo_name>coderodde/JavaDB<file_sep>/src/test/java/net/coderodde/javadb/TableCellTest.java
package net.coderodde.javadb;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import org.junit.Test;
import static org.junit.Assert.*;
import static net.coderodde.javadb.TableCellType.*;
import s... | 4f644567986ffb5465790b96196020989ea5051d | [
"Markdown",
"Java"
] | 7 | Java | coderodde/JavaDB | 3a30df149cec9fc486dec4151f70a75e2c9720f6 | 5026198f4bc1346b89761d125357a6e3e9544706 |
refs/heads/main | <file_sep>#include <sys/types.h>
#include <sys/capability.h>
#include <dirent.h>
#include <stdio.h>
#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int readable = 0;
char fieldNames[8][20] = {{"NAME"},
{"PID"},
{"TID"... | b984bc762e6b1b463f3fbf941a7c3bd2aa6009d4 | [
"Markdown",
"C",
"CMake"
] | 5 | C | borodun/linux-capabilities | a960e50397fa73949af0b4f08353399923d7e10e | c6f2329776e9f014b26ff66630fe03a3907cdf43 |
refs/heads/master | <repo_name>cloverstd/restc-next<file_sep>/src/components/Main.jsx
import React, { Component } from 'react';
import Result from './ResultView';
import SideBar from './SideBar';
import styled from 'styled-components'
const Container = styled.div`
position: relative;
flex: 1;
width: 100%;
min-height: 0;
&.sidebar-collaps... | e2358c425bb6fc7922649cfbfb40f45260a5536d | [
"JavaScript",
"Makefile",
"Markdown"
] | 8 | JavaScript | cloverstd/restc-next | 9286bc4f4881843d5155b34ebc73c84e0c31647d | 8d8b9c14b51a9687cc813064024f8fb433e2bd8b |
refs/heads/main | <file_sep>import random
carac = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789*#<@.>_'
compr = 8
print("gerador de senhas")
print("senhas geradas:")
for i in range (compr):
senha = "".join(random.sample(carac, compr))
print(senha)<file_sep># Gerador_de_Senhas
Projeto: Gerador de Senhas... | 2a47b16f98302c9b2601172998a566b4cc8bd36d | [
"Markdown",
"Python"
] | 2 | Python | vivianemsilva/Gerador_de_Senhas | 924538b112f56aa7333e8c9a75a6bc00b7c66223 | 3a9919535195864913acefc90e692b0b4fb3fbec |
refs/heads/master | <repo_name>PowerClaw/PowerClaw_SDK_Java<file_sep>/README.md
# PowerClaw_SDK_Java
PowerClaw SDK Java
<file_sep>/PowerClawSDK.java
/**
* Copyright © VIVOXIE S DE RL DE CV
*
* @author <NAME><<EMAIL>>
* @version 1.0
*/
package com.vivoxie.powerclaw.sdk;
import com.fazecast.jSerialComm.SerialPort;
import java.io.Buffe... | 3783f750664111db585a11ddfc5d6f7d7b41b5a1 | [
"Markdown",
"Java"
] | 2 | Markdown | PowerClaw/PowerClaw_SDK_Java | df6c45e68d6b007103fe5afbe8903008c95365e4 | 494afcfcd5d2c1ed0b380f1984ee70f82e263d53 |
refs/heads/master | <repo_name>Jakelee24/Sentiment-Analysis-tensorflow<file_sep>/LSTM_module.py
import tensorflow as tf
import pickle
from tensorflow.nn import rnn_cell
from tensorflow.contrib.rnn.python.ops import rnn
from tensorflow.python.platform import gfile
import numpy as np
import os
from Helper import Helper
class DataFeeder:... | a97657bfda00441e91b8154e326e8c1ceb86f87f | [
"Markdown",
"Python"
] | 6 | Python | Jakelee24/Sentiment-Analysis-tensorflow | 4eb82a9890516bf6516e19141e93624d1c5c51b6 | 4a3dfda6be9784deba27f99d7999b5a71a427efb |
refs/heads/master | <repo_name>kalai15/tools-cookbook<file_sep>/recipes/gcc_update.rb
#
# Cookbook Name:: askci
# Recipe:: gcc_update
#
# Copyright 2013, Ask.com
#
# All rights reserved - Do Not Redistribute
if node.platform_version == "6.4"
yum_packages = {
'lapack-devel' => '3.2.1-4.el6',
'lapack' => '3.2.1-4.el6',
... | 17f0401bf73b21ae1afe8d5416d73670053d5cd6 | [
"Markdown",
"Python",
"Ruby",
"Shell"
] | 48 | Ruby | kalai15/tools-cookbook | 50ecc49aa7e39e53ad15c73323d8dfb73059146f | 539467b114766b2d1be20b48a0c422ee566332a8 |
refs/heads/master | <file_sep>package com.mavendemo.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.mavendemo.base.TestBaseFlip;
public class CartPage extends TestBaseFlip{
@FindBy(xpath="//span[text()='Place Order']")
WebElement pla... | 7efaeeab380649ec89d54085e7b34523f53877db | [
"Java",
"INI"
] | 3 | Java | pearl95/flipkartAutomation | fa2a0e12e54eb20d33187478bf568a6481087e3f | 0465280e31ab849e516c857af70e2880b72ca98f |
refs/heads/main | <file_sep><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Conversor de Bases - Universidad Francisco José de Caldas</title>
<link rel="icon" href="favicon.ico">
</head>
<body style="background-color:rgb(231, 219, 186);">
<h1>
<img src="logo.pn... | 7d619274c2720c7d096874925b176c5d8d877526 | [
"JavaScript",
"HTML"
] | 3 | HTML | MrPocketMonsters/conversor-de-bases | 9e00b63e5a68a2b00bad5eaad8223b2f195bcd2c | 5a372fc1d88a727562123b499fbd88702eaee94d |
refs/heads/master | <repo_name>NichoBrando/Avaliador-Tabela-Periodica<file_sep>/README.md
# Avaliador-Tabela-Periodica
Programa para auxiliar no processo de avaliação, referente à testes sobre a tabela periódica de química.
<h2><b>REQUISITOS:</b></h2>
<ul>
<li>Primeramente, para poder usar o software, será necessário a instalação do <a ... | a2784660c30ec5560d8764508650f105bbe99490 | [
"Markdown",
"Python"
] | 4 | Markdown | NichoBrando/Avaliador-Tabela-Periodica | 5ab464a66fba41630c6bfff01c032d13706d3294 | 2086b76448692b38bffbdd03f1090bcb26875937 |
refs/heads/master | <repo_name>satyamohlan/Arduinore<file_sep>/sketch_dec16b/sketch_dec16b.ino
#include <NewPing.h>
#include <AFMotor.h>
AF_DCMotor motor1(1, MOTOR12_64KHZ);
AF_DCMotor motor2(2, MOTOR12_64KHZ);
int sensor[3] = {0, 0, 0};
int echopin = 22;
int trigpin = 24;
int distance;
int duration;
void setup() {
// put your setup c... | 9899fe3ea51826f2ce2c669e361add24f714d593 | [
"C++"
] | 6 | C++ | satyamohlan/Arduinore | 2e10858a8c4437558ebe79e6f38ee0dbc72d0a5f | b11f92f78be3c8cb049d1552b56c7aff8d9f6688 |
refs/heads/master | <file_sep>package com.company;
import java.util.List;
public class Animal implements IObject {
boolean valid = true;
private Vector2d position = new Vector2d(2, 2);
private Direction direction = Direction.NORTH;
private int energy;
private Genes genes;
private int index;
Animal(Vector2d p... | 6856ccf0409c4d55bdcdec87b68e63ea437ba0a3 | [
"Java"
] | 19 | Java | JanTry/PO-2019-2020 | e8733c111541749bc8dfa8433bac8bc2afff5e77 | 389fb515dc137ac923f09f324f0c39c7d243242a |
refs/heads/master | <file_sep>const regex = /\{\{(.+?)\}\}/g;
function renderer(str, vars) {
for (var va in vars) {
if (vars.hasOwnProperty(va)) {
this[va] = vars[va];
}
}
this.str = str;
const renderVars = str.match(regex)
for (var i = 0; i < renderVars.length; i++) {
this.str = this.str.replace(
ren... | fd2c7f31ebb2c67ce7ef55931da25dcc9905a869 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | leahlundqvist/EaSSRy | 4327d1cb092ebe9d1e92cb5a718afb5ef53b559d | c1950169d4941a1d81355f877095f36dc3be7e52 |
refs/heads/master | <repo_name>timotech/LoginAuthSystem<file_sep>/LoginAuthSystem/Controllers/AdminController.cs
using LoginAuthSystem.Models;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namesp... | e3f52dfbc614aa589d4d2209d3fbf1a62c7bee98 | [
"Markdown",
"C#"
] | 5 | C# | timotech/LoginAuthSystem | 642bcba95fe02e40c618d88b556412d651c79b10 | 93840d2d8c6887a7818e639b3e259d0c2a998fd7 |
refs/heads/master | <file_sep>group 'com.example'
version '1.0-SNAPSHOT'
apply plugin: 'java'
repositories {
mavenCentral()
}
task compilej6(type: JavaCompile) {
source = fileTree(dir: "src/main/java")
classpath = sourceSets.main.compileClasspath
destinationDir = sourceSets.main.output.classesDir
includes = ['com/ex... | 4c04078467ad446713abd014f1b0eb12e69a8037 | [
"Java",
"Gradle"
] | 3 | Gradle | diesieben07/MultiJavaBuild | 53a51ae782f7a6dc30bc8d35ae87b6746bc57adc | a48a548dd65bd3c6af2b1edc130f942100529daf |
refs/heads/master | <file_sep>//go:generate npm run build
package main
import (
"log"
"net/http"
"os"
_ "github.com/iheanyi/go-vue-statik/cmd/sampleapp/statik"
"github.com/rakyll/statik/fs"
)
func main() {
port := os.Getenv("PORT")
if port == "" {
port = "1337"
}
statikFS, err := fs.New()
if err != nil {
log.Fatal(err)
}... | a3ce0fde56a4aa198cbb26fb2ef38b84c08c9144 | [
"Markdown",
"Go"
] | 2 | Go | iheanyi/go-vue-statik | 73f2089c4f2e7b60a4b54d70c1220c66e0d34012 | 556b932ee6bc935537b5df9da187f3bae1556c57 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DSW2_Proyecto_Huron_Azul.localhost;
namespace DSW2_Proyecto_Huron_Azul.Controllers
{
public class UsuarioController : Controller
{
Huron_Azul_Service ws = new Huron_Azul_Service(... | a7d9071f83eebfb69e6d1a215694228f7e9e0dfb | [
"Markdown",
"C#"
] | 9 | C# | hreinosoflores/DSW2_Proyecto_Huron_Azul_Cliente | 49f6dac6b33baea8d3408f58db4bcfbe521e1750 | 19dee2808142ba22e9d345faa9b174dfbd231032 |
refs/heads/main | <repo_name>chinni43/grade<file_sep>/grade.c
#include<stdio.h>
void main()
{
int marks;
printf("enter your marks");
scanf("%d",&marks);
printf("marks=%d",marks);
if(marks<0 || marks>100)
{
printf(" marks should not exceed 100");
}
else if(marks<40)
{
printf("you got E grade");
}
else if(marks>=85 && marks<100)
{
printf(... | 87e0232285d30db8b27d70c6f7db2a5e087bcb48 | [
"C"
] | 1 | C | chinni43/grade | 6d7b7e7b6783ff87f00c1d68a988dac77386acc3 | 7d0d727e7854e7135e654c28f277dbb0e672831d |
refs/heads/master | <file_sep>#====================== BEGIN GPL LICENSE BLOCK ======================
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any ... | 7d3013cb7754481e78b5fa4adc1a95e07b982e0d | [
"Python"
] | 1 | Python | fire-archive/blender-addons | 1416eacdbea17df75634fc972e75d0bb8dd195f9 | e4e8c856b015f56d32e50d764b5a0cb3365e0ccd |
refs/heads/master | <repo_name>kitchell/STRright<file_sep>/js/tractname.js
var tractname = 'STR_right';
var fulltractname = 'Right Superior Thalamic Radiation'
// color for surfaces and point
var surfcolor = 0xd4d170;
// 4a95a1
var pointcolor = 0x1a3f7a;
var cameraPC1y = 500;
var cameraPC2y = 2500; | d7e91651375810ac21d7c6ad0e462ceba8d72091 | [
"JavaScript"
] | 1 | JavaScript | kitchell/STRright | badf4e39a98595f83c8e7c7d5b35d383428808f7 | 4243df2e8a308307c7c926f63688d1d49bfed3da |
refs/heads/master | <repo_name>pekkast/docker-hy-2019<file_sep>/part1/start-1.10.sh
#!/bin/sh
cd frontend-example-docker
./node_modules/.bin/serve -s -l 5000 dist
<file_sep>/part1/README.md
## 1.1
```console
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ... | 8060aa32c66c5bee08a797ad15b32b372e80598e | [
"Markdown",
"Shell"
] | 3 | Shell | pekkast/docker-hy-2019 | 94c16fc07205d7ca0f6ff2e718ad3d269dff5667 | 99c99b97678444d636efb4810e38ecaf56de1dd7 |
refs/heads/master | <file_sep>#include <iostream>
#include <string>
#include <stdexcept>
#include <algorithm>
#ifndef SUPERNUM_H
#define SUPERNUM_H
class SuperNum
{
public:
std::string num;
SuperNum(std::string n);
SuperNum operator * (const SuperNum&);
SuperNum operator * (const int&)... | e2c21e1ce4a98e23ab25bcb4d59859adde3dbca7 | [
"C++"
] | 3 | C++ | cameronswinoga/SuperNum | 53bc1cde6897c0caf6eb46e900668140dc2a1b2e | 239a6c683cef32f583573299d408433347ba4403 |
refs/heads/master | <file_sep>String.prototype.capitalizeFirstLetter = function() {
return this.join().charAt(0).toUpperCase() + this.slice(1);
};
String.prototype.splitCamelCase = function() {
return this.join().split(/(?=[A-Z])/).join(" ");
};
String.prototype.join = function() {
return this.split(" ").join("");
};
funct... | 118b1e2479c0864b37e018bd247a03ba0d2d9d51 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | karachee/filler | cbb1bdd5682e0f1b40b6e75d2c64fe66f9aa1a1b | 4894a98ced59fbc6ba059e7a73df998f796c0636 |
refs/heads/master | <file_sep>{
"version":"1.2",
"md5":"06a142fa626a78c5faee3f0ba012535f",
"home_url":"Module_wifiboost.asp",
"title":"wifi boost",
"description":"wifi boost 路由器功率增强,强过澳大利亚",
"changelog":"",
"build_date":"2020-06-20_22:59:31"
}
| 9965aca99b4a05c793ff18b4a0a7618b36bd6052 | [
"JavaScript"
] | 1 | JavaScript | sy19890515/rogsoft | 9b7f766e76183d64e7398ed9b5d7ecaa5c5c7336 | 3110587380859efb553e7d142fca6a1132f6794d |
refs/heads/master | <file_sep>// main.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "Human.h"
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
Human human;
Student student;
Tutor tutor;
Student students(15);
Human people(4);
human = tutor;
cout << human;
cout << tutor;
cout... | 3b0b349d784edb8a095c1ba03e4f823c7310fbfa | [
"C++"
] | 1 | C++ | Magda-K/lab4 | 75f580e1007f67d73168ad8d92a560566f28d14c | e50e00cd0729d155f9a13bc507d728ad5cca53ac |
refs/heads/master | <repo_name>shubham4522/Solved-Problems<file_sep>/timeConverter.cpp
#include<iostream>
#include<cstring>
using namespace std;
string intToString(int i)
{
std::string s = std::to_string(i);
return s;
}
string timeConverter(string s)
{
string hour = s.substr(0,2);
int h=stoi(hour);
if(s[8]=='A')
{
if(h==12... | 367ca5c613420982167b4ad1dcfce5b8a406b412 | [
"C++"
] | 1 | C++ | shubham4522/Solved-Problems | 70e5b2a7c979ae7e3c2b912280b0ceb08a0d3121 | 9ceae5ffb3bfe9762ccecab32ffaf4883cbf41ad |
refs/heads/master | <file_sep>// Use this hook to manipulate incoming or outgoing data.
// For more information on hooks see: http://docs.feathersjs.com/api/hooks.html
const hooks = require('feathers-authentication-hooks');
// eslint-disable-next-line no-unused-vars
module.exports = function (options = {}) {
return hooks.restrictToOwne... | e6aeb32088a117b51babea63611e0da932e4f408 | [
"JavaScript",
"Markdown"
] | 11 | JavaScript | MohammedGomaaS/problemsolutions | 98b06259d4d7f14d7b2506641a8dbae66c51f4f1 | 7dfb8abac8d4d0ecb2dfba034d05f4ea080021a2 |
refs/heads/master | <repo_name>jhonson1jr/angular_apis_material<file_sep>/frontend/src/app/directives/for.directive.ts
import { Directive, Input, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
@Directive({
selector: '[myFor]'
})
export class ForDirective implements OnInit {
// Pegando o que vem após a palavra "em" do ele... | 8f0753ad351c2a0f2c6e7a92d2659b772ac60950 | [
"Markdown",
"TypeScript"
] | 4 | TypeScript | jhonson1jr/angular_apis_material | e3fd90273c998d9053a4e5b4deef791e2afd542c | a1bc9f53caaf003825513a551710fd9490d0b3de |
refs/heads/master | <file_sep>var express = require('express');
var router = express.Router();
const cont = require('../controller/admin');
/* GET home page. */
router.get('/', cont.index );
router.get('/add', cont.addGet );
router.post('/', cont.addPost );
router.get('/edit/:id', cont.editGet );
router.put('/update/:id', cont.updatePost ... | 900624444dbca62a2600a8836696db5dc84f3cfa | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mishradhirajmishra/exp-curd | b9e63858cad24ded7eae671d1d8d637b65e710a0 | edd9fb650a9f62c68b9e5f0c68759f5ae8aeeb8d |
refs/heads/master | <repo_name>jorgecosta06/Projecto-1<file_sep>/EasterEgg.js
class EasterEgg {
constructor(x,y) {
this.x = x
this.y = y
this.radius = 30
this.width = 10
this.height = 100
}
draw(ctx) {
ctx.save()
ctx.save()
// ctx.globalAlpha = 0.7
ctx.fillStyle = "red"
ctx.beginPath()
ct... | ac26810536878af75f9854e0b22f759348e6a4d0 | [
"JavaScript"
] | 7 | JavaScript | jorgecosta06/Projecto-1 | 5838b22ca468325ac1f3a36d69e80cb6c6e89c29 | 0c39ec4ea6e779a4216f7e91d19ff0bb1758e057 |
refs/heads/main | <repo_name>thisudre/nlw-compliments<file_sep>/src/controllers/ListUsersController.ts
import IController from "./IController";
import { Request, Response } from 'express';
import ListUsersService from "../services/ListUsersService";
export default class ListUsersController implements IController{
async handle(reque... | 36d43ddd22e12e41ca39fb1d41f93222f2787211 | [
"Markdown",
"TypeScript"
] | 14 | TypeScript | thisudre/nlw-compliments | 43992a33d3f240672db85554395de999e2365164 | 66cc22b58709b86e0397d11cd7536d7e5afd4fb4 |
refs/heads/master | <repo_name>maviswongkl/MyCalculator<file_sep>/app/src/main/java/com/example/mycalculator/MainActivity.kt
package com.example.mycalculator
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import kotlinx.android.synthet... | 34e2ed7bf4850cc47ea5d44fb4df5116cf21b859 | [
"Kotlin"
] | 1 | Kotlin | maviswongkl/MyCalculator | 8f98812dcec750d5ee376bde5d06e36d7ca665f3 | f9e10b3f3e7672246d8ab8e6d996393ff67a02e5 |
refs/heads/master | <file_sep>package Algorithmen.sort;
import Algorithmen.comparator.Comparator;
public class Bubblesort<T> extends Swapper<T> implements Sortable<T> {
@Override
public void sort(T[] students, Comparator<T> comparator) {
for (int i = 1; i < students.length; i++) {
for (int e = 0; e < students... | 66388c5b279b07de785315ba92ca32807467442c | [
"Java"
] | 6 | Java | Krysenkova/Algorithms-5 | 2562b8208178e38506d748ee29bd38382d4917a0 | ff2acff33c5b081429ba4cdb4661291a2231b9ea |
refs/heads/main | <repo_name>AnnabelleEllis/LearningJava-Week1<file_sep>/README.md
# LearningJava-Week1
Learning Java with Princeton University Through Coursera
Started this course but I need to be "commit"ted -- lol-- so I started a version control to track my progress.
<file_sep>/src/HelloWorld.java
public class HelloWorld {
publ... | 56b6bbfe3081ada32c799d5564dab6bfd0becec8 | [
"Markdown",
"Java"
] | 3 | Markdown | AnnabelleEllis/LearningJava-Week1 | 17bde7498457134ec647fef26cd8f09f53f853b3 | 8a521d72ba2bcd0a9cfacb56ba05be6205585a5e |
refs/heads/master | <file_sep># QR_CODE STUDY
1. [node.js로 QR코드 생성하기](<https://github.com/jungjai/QR_CODE/blob/master/QRcode_nodejs/README.md>)
2. [jQuery로 QR코드 생성하기](<https://github.com/jungjai/QR_CODE/blob/master/QRcode_jquery/README.md>)
3. [JSP로 QR코드 생성하기](<https://github.com/jungjai/QR_CODE/blob/master/QRcode_JSP/README.md>)
## 사용... | 0c0670b10cb76d411235009d6f45145dcc084a00 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | jungjai/QR_CODE | 6550264b6f10718d9c70082c5a8a729320d5e4c5 | 08b0cf2662a9e1d3b3a4d1c100850228acf7dfac |
refs/heads/master | <file_sep>import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './components/App'
import About from './components/about/About'
import CoursesPage from './components/CoursesPage'
import ManageCoursePage from './components/ManageCoursePage'
export default (
<Route path="/" compo... | cfb53f15cfc2cf13014576400425b0f23343936c | [
"JavaScript"
] | 4 | JavaScript | navarrorc/ejected-courses-app | d33c5ee90d2e1da9147396961fdcd7aa7ac94719 | c37984de5a315ad5b5b96324bdae0679a804bb34 |
refs/heads/master | <file_sep>package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
import org.firstinspires.ftc.robotcore.external.navi... | 40fee777b0120055413f6c98cb598224352d39a5 | [
"Java"
] | 5 | Java | taborrobotics12667/ftc_app | 92056161bba76143a4691a1866a5e262a3289695 | e78955901cb1b145a7610552b6a4e75414f7de5c |
refs/heads/main | <repo_name>alphagov/notifications-node-client<file_sep>/client/authentication.js
var jwt = require('jsonwebtoken');
function createGovukNotifyToken(request_method, request_path, secret, client_id) {
return jwt.sign(
{
iss: client_id,
iat: Math.round(Date.now() / 1000)
},
secret,
{
... | bb6c899b465f10ffcb10bb5334a3c6dab44695d8 | [
"JavaScript",
"Makefile",
"Dockerfile",
"Markdown"
] | 11 | JavaScript | alphagov/notifications-node-client | c88447a10c270c17f1614532c3809d578faa5341 | 1388f79aa34e407356bd71541f21c19e1f674a2e |
refs/heads/master | <file_sep>'use strict';
var part = {
etc: ':',
childIndent: '│ ',
childSiblings: '├── ',
childLast: '└── ',
spaces: ' '
};
function walkOnDirectories (crumb, state) {
var keys = Object.keys(crumb);
if (state === void 0) {
state = {
ste... | 75ff352eb6b8191debf36138e40cc58e4e539539 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | nvdnkpr/hierarchy | 89a9417716349856e2b1ace3b6a94b1315f764ef | 8c9b6932ecfdd5a98dba4f6a6ea46d41dbd05de1 |
refs/heads/master | <file_sep>require 'math'
require 'os'
GameOverState = {}
function GameOverState.load()
sprites.gameoveroverlay = love.graphics.newImage('assets/gameoveroverlay.png')
end
function GameOverState.setup(args)
math.randomseed(os.time())
fact = FACTS[math.random(1, #FACTS)]
score = args.score
ready = false
end
f... | f85f8f35c3fa9f68f9d10e7bf907948ff6c25447 | [
"Lua"
] | 4 | Lua | lachy-xe/forest-invaders | 660cb255ef26278552cefbde9e40a12157c44215 | 3f97bf06fd7f212cd5637da601898c6db14bc323 |
refs/heads/master | <file_sep>x, y = map(int, input().split())
x_list = [x]
y_list = [y]
while x > 1:
x = x//2
y = y*2
x_list.append(x)
y_list.append(y)
ans = 0
for i in range(len(x_list)):
if x_list[i]%2 != 0:
ans += y_list[i]
print(ans)
<file_sep>#C:Capacity, I:Items, v:value of items, s:size of items
#Cau... | 631ea166843fc0b5470da66395a506f4a59eadd3 | [
"Markdown",
"Python",
"C++"
] | 25 | Python | ymaquarium/algorithm | bba7ce003e7be9d49d1c3dfee1d6c3d314e71d8c | 678f0d71eaf3ebbc9cd9febc5a9ffaccaf767968 |
refs/heads/master | <repo_name>rw251/pvr<file_sep>/src/htsp/index.js
const fs = require('fs');
const net = require('net');
const crypto = require('crypto');
var HOST = 'media';
var PORT = 9982;
// MESSAGES FROM SERVER
/*
"{"method":"subscriptionGrace","subscriptionId":0,"graceTimeout":5}"
"{"method":"subscriptionStatus","subscription... | 15d496be5e6b8b70ff4f672f2c6518c817b2e68b | [
"JavaScript"
] | 1 | JavaScript | rw251/pvr | 8c4a93a0d041422a0d18612caaacab41f9c30076 | b1260a49fa25b0925e33933bfa667b1d184341b1 |
refs/heads/master | <repo_name>donsale/klotski<file_sep>/Makefile
IDIR = headers
CC = gcc
CFLAGS=-I $(IDIR) -Wall
VPATH = source;headers
DEPS = position.h queue.h
OBJ = main.o position.o queue.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
klotski: $(OBJ)
$(CC) -o $@ $^ $(CFLAGS)
clean:
del klotski* $(OBJ)
<file_sep>/README.md
# k... | b45969415a59a760b0b5afbedbabf0128338a05c | [
"Markdown",
"C",
"Makefile"
] | 7 | Makefile | donsale/klotski | ab61cbf40e8dfd5acbe705f06bc426a1ab5ed0ac | 96a390de67575371e414e82cb99e572367e0bfbf |
refs/heads/master | <repo_name>jerald-devOfficial/NoteApp<file_sep>/client/src/components/Header.jsx
import React from "react";
import GitHubIcon from "@material-ui/icons/GitHub";
import InfoIcon from "@material-ui/icons/Info";
function Header() {
return (
<header>
<a href="/">
<h1>Notes</h1>
</a>
<ul clas... | 66645f219a5e4fa0e6f5ad9a081a668faafed3d4 | [
"JavaScript"
] | 3 | JavaScript | jerald-devOfficial/NoteApp | 953e71738023186d8a534970c7199cfe0806dcc4 | fee13997fb034ef382f353ffc5199a0ffd024046 |
refs/heads/master | <repo_name>fabriciosmatos/sensebit-app<file_sep>/src/pages/sensor-detail/sensor-detail.html
<ion-header>
<ion-navbar>
<ion-title>{{ sensor.tipoNome }}</ion-title>
<ion-buttons end>
<button ion-button icon-only (click)="resetSensor()">
<ion-icon name="refresh"></ion-icon>
</button> ... | 31e0b8f9c6eea644678b0db1e179a8577c69ab9f | [
"TypeScript",
"HTML"
] | 20 | HTML | fabriciosmatos/sensebit-app | 864ea8ddf1c00b1a6576c2f8534abd7cb3ab370c | 7c71d8321421820b244f821c208ebbb6d1baf83a |
refs/heads/master | <file_sep>import {app} from 'hyperapp';
import {textarea, div, h1, h2, form, button, p} from '@hyperapp/html';
import {preventDefault, targetValue} from '@hyperapp/events';
import REST from './hyperapp-rest';
// VIEWS
const Note = note => div({class: 'note'}, [h2(note.id), p(note.content)]);
app({
init: [
REST.... | f9c3104934df650257f81a7210d1b5338094a9e6 | [
"JavaScript"
] | 2 | JavaScript | adamdawkins/hyperapp-rest | e250e0fa6e2eb3b79dcf15011ed60611fca8e14b | 27f00096eef5895cdba522decd25154a71ea35a2 |
refs/heads/master | <repo_name>DevMyong/webscrapper<file_sep>/internal/scrapper.go
package scrapper
import (
"encoding/csv"
"fmt"
"github.com/PuerkitoBio/goquery"
"log"
"net/http"
"os"
"strconv"
"strings"
)
type extractedJob struct{
link string
title string
company string
location string
salary string
summary string
}
fun... | 999f0b32b745da4212ba6d6b72b43244c87fa82e | [
"Go"
] | 1 | Go | DevMyong/webscrapper | 7df6da425c15427ff4078316ba2f89a005a6292b | d3cb1c9178f0a20c186005839acc5070212aa08d |
refs/heads/master | <repo_name>PaulBratslavsky/REACT-reactStoreHooks<file_sep>/src/utils/getData.js
import axios from 'axios';
import URL from './URL';
// Get Data Function
export const getData = data => axios.get(`${URL}/${data}`);
<file_sep>/src/utils/local.js
const LocalCtr = (function () {
function get(key) {
return localStora... | 506627af89d2b67cf667b2dd70537f94e1ea6314 | [
"JavaScript"
] | 8 | JavaScript | PaulBratslavsky/REACT-reactStoreHooks | 1b95cdfc7b0824d9792ea8c227cd504cf70edc35 | f32a2496c3c3de79ea87d39560359da9cf700c31 |
refs/heads/master | <repo_name>jxr9234/GetYourNailsOut<file_sep>/loadPage.php
<?php include 'navigation.php' ?>
<div id="load-header">
</div>
<div id="load-area">
</div>
<?php include 'footer-section.php' ?><file_sep>/README.md
# GetYourNailsOut
A made up nail salon website!
Sectioning off sections of a page into separate php files s... | 0f762acd4ba2704d1a7a178f614486969c1a7c85 | [
"Markdown",
"JavaScript",
"PHP"
] | 4 | PHP | jxr9234/GetYourNailsOut | 2f401b5ebd2a3ff0aa53ea21d7788258f4d46d8e | 0f1804f2bc34be2b0f153f6a6377628add2f9290 |
refs/heads/master | <file_sep>### Spring as backend and SPA(Vue in this project) as frontend both in a project.
#### This repository shows how to deal with spring and SPA in aspect of structure of project using webpack.
##### See how it works
`./gradlew bootRun`
`npm install && npm start`
Open browser, then go `localhost:3000`
### Bac... | 894977f5f88dd8a5f36f7d576c8dae39703f5f0a | [
"Markdown",
"JavaScript"
] | 3 | Markdown | starrybleu/spring-spa-demo | 15c4688a2fd73726e86ff4b9897fe398fbafb289 | b84f9de2dd40f87a3bbc0d57e6cc8de4def37880 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LibGit2Sharp.Core;
using LibGit2Sharp.Handlers;
namespace WindowsFormsApplication1
{
public partial class Form1 : F... | 1b5fa44e715a22bd167477b9d60ace6d2b4dd1fa | [
"C#"
] | 1 | C# | wangrenjay/gittest | 56ec8a753f259f3505ad08c7274cd52acea139da | e172bd4e939937915a1cc72e4545da3d226caada |
refs/heads/master | <file_sep>/*
* Copyright (c) 2018 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 9a9262bca79d79da89f4ef3f902332680cddfa40 | [
"Go Module",
"Go",
"Shell"
] | 7 | Go | romanwozniak/astro | 8766ea4397b912df9e2811c38fdd2ee161163eb5 | 999e59e26cee2267d52071d695f068f8197f4ba1 |
refs/heads/main | <repo_name>Troothe/CPSC349-HW3<file_sep>/scripts/payment_main.js
(function (window) {
'use strict';
var FORM_SELECTOR = '[data-payment="form"]';
var App = window.App;
var FormHandler = App.FormHandler;
var formHandler = new FormHandler(FORM_SELECTOR);
formHandler.addSubmitHandler(function ... | 7866271620e0034a826f1b061faf87efab86088d | [
"JavaScript"
] | 1 | JavaScript | Troothe/CPSC349-HW3 | bd17187ac541e060ef707970dc35a6cf72bf82b9 | 27c1818bbfee6a9aaaacd5d3d342c94eec8ac4bb |
refs/heads/main | <file_sep>import multiprocessing
import time
from random import random
def random_log_entry_generator():
name = multiprocessing.current_process().name
print(name, 'Starting')
count = 0
while count < 5:
number = round(random() * 10, 5)
random_number = "%d" % number
entry = 'The n... | e2742e7ec92746cd4ab408a9a0d17df240203cba | [
"Markdown",
"Python"
] | 2 | Python | handeyildirim/Determining-the-Current-Process-in-Multiprocessing-in-Python | d69e99ceeee9e8390e613ce710ea80b7ffb455f1 | b9ed0cea6f54ddde99ffc880111dbeac7b02c958 |
refs/heads/master | <file_sep>Title: Activity Menu
Desc: Activity Menu
---
## Mobile
```
<!--demo1-->
<div class='mobile_wt_con flex_none'>
<div class='mobile_wt_status_bar mobile_wt_status_bar_absolute'></div>
<div class='mobile_wt_title_bar mobile_wt_title_bar_absolute'>
<a class='transpart_back' ></a>
... | 44d6085c369881db8f506f14ffb4913954f7ab7d | [
"Markdown",
"JavaScript"
] | 54 | Markdown | uxCCDS/uxCCDS.github.io | 5cdd7c743ffbf4812465403c0ba51d6fc539cbb7 | 33f7633e9ac406fac94c21dd228b1ba72c8d07f8 |
refs/heads/master | <repo_name>JimmyBryant/Tank<file_sep>/UI.js
/****************************************
* 游戏场景模块
****************************************/
var Scene = Class(
{
static:{className:"Scene"},
Tanks: null, // 所有坦克 new Array(MAX_TANK)
Bonus: null, // 奖励实例
/**
* 本游戏地图大小(13*13),共169地块格子。
*
* ... | 7e81cb26e5f2610022448e41185f4fe9d60b437f | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | JimmyBryant/Tank | 0ea7ac377bfcd1acdfd5435aa252785903b49cfa | cbfb476f3cd84d4154864ce229e295c2e1885afc |
refs/heads/master | <file_sep>//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
var someTrueThing = true
someTrueThing == true
var someInt = 10
while someInt < 20 {
// run the same code
someInt += 1
print("hello")
}
someInt
var numLoops = 0
runTheLoop: while someInt < 10 {
... | 95d75b169460eef77b147f3b66e16a9572bbc558 | [
"Swift"
] | 5 | Swift | Kan1shka9/Learning-Swift | 3fe565174ae0a4404deaaef0be584db3a053639d | ffc0e8ad7d68a0dd39234be0aa0f900832b2754c |
refs/heads/master | <repo_name>brydon1/developers-against-humanity<file_sep>/README.md
# Developers Against Humanity
Developers Against Humanity: an online card game for terrible developers and system administrators.
## Language
Idk, Node.js, PHP, C#, C++?
## Dependencies
Hell if I know.
## Main Objective
Make a multi-player Cards ... | 59f26dfa4a8173b9da1aed8850d5a6bd4c400e1c | [
"Markdown",
"Shell"
] | 3 | Markdown | brydon1/developers-against-humanity | 5e8e2bb86c3ab3b1d2dd2e899d94bd7bcd1d27f5 | 76aaab3e34f7ee52eab68431d88e0c16c6c57afe |
refs/heads/master | <file_sep>#pragma once
#include <filesystem>
#include <vector>
#include <GL/glew.h>
#include "../Math/Vector.h"
namespace render
{
struct MeshLoader
{
std::vector<Vector4> vertices;
std::vector<Vector2> tex_coords;
std::vector<Vector4> normals;
std::vector<GLsizei> vert_ids... | 27eb0b7d16ed25281c40806f9d50075f7032c164 | [
"C++"
] | 42 | C++ | francisco-mendes/cgj-project | e08c939719dbd5b8da5ec4f3180fc9c1f994b979 | a1dc71bbc80d6b00316efde76f682e3f07b2071b |
refs/heads/master | <file_sep>class Hello_World
{
public static void main()
{
System.out.println("Hello World!!");
System.out.println("Welcome to Google Code In 2018");
System.out.println("I am changing file in the new branch");
}
}
<file_sep>import java.io.*;
class movieMagic extends hello //creation of class // inheritence of parent cl... | 4b3d7aafbda06827e8c0014e755caeae1895e8af | [
"Markdown",
"Java"
] | 3 | Java | chiranjeev13/Google-Code-In-2018 | 1659d2eadb3d6cce22d39210953e7dd01ccea97f | 998260d17b66b92a981437d12590303757284b33 |
refs/heads/master | <file_sep>import json
import sys
import argparse
from collections import OrderedDict
def parse():
parser = argparse.ArgumentParser(description='To merge multiple json files')
parser.add_argument('-f', '--folder_path', help='Folder path for json files')
parser.add_argument('-i', '--input_prefix', help='Fol... | 5ef0befe9a080c402d71f8ec836b52ef6af6218a | [
"Markdown",
"Python"
] | 2 | Python | VishakVeerasamy/Freshworks | 15b5267010c8b689aeefb5809b71ccc7f05d578a | f8f19b73a319e369d5c2d45af9acbed7baa05583 |
refs/heads/master | <file_sep>require 'spec_helper'
describe Execution do
subject { FactoryGirl.build(:execution) }
it "should require name" do
subject.name = ""
expect(subject).to_not be_valid
end
it { expect(subject.running?).to be_false }
it "run, wait and parse results" do
subject.should_receive(:create_tave... | 695dd98b6c4d04ef2b2315ab2427f8f7d6c86da1 | [
"Markdown",
"Ruby"
] | 29 | Ruby | upf-iula-trl/servitoros_lite | 6d0d3a8e1d1e005df2d657c5e3641c6796fb3bed | 00c7e3539745fffe2098bb65ff52d6da8b2ebb1e |
refs/heads/master | <repo_name>tvhung83/ibot<file_sep>/show.js
const builder = require('botbuilder');
const request = require('request').defaults({
jar: true,
headers: {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.10 Safari/537.36',
'Ocp-Api... | 48666de5eb6760ae2ff91bb0abd4198fcaa2a4a5 | [
"JavaScript"
] | 2 | JavaScript | tvhung83/ibot | d6a9ac8c595cc9d4c5de33896ae398a0a1ebaeae | 2ba495ba93b0243708c0ae7c6baaea3adc3b4d41 |
refs/heads/master | <repo_name>derek-silva/my-select-houston-web-071618<file_sep>/lib/my_select.rb
def my_select(collection)
i = 0
array = []
while i < collection.length
if yield collection[i]
array.push(collection[i])
end
i = i + 1
end
array
end
| 8953ea3841c2147a08d3c83a6bce3cb637da751e | [
"Ruby"
] | 1 | Ruby | derek-silva/my-select-houston-web-071618 | 7fba9fe795942f3c7cf5a0e788306a42f1ff7a55 | 2b6c614228bd44c78c49e566d771d19608c0adfb |
refs/heads/master | <repo_name>teddim/bootstrap_app<file_sep>/app/models/welcome.rb
class Welcome
def boostrap_me()
end
end
<file_sep>/app/controllers/welcome_controller.rb
class WelcomeController < ApplicationController
def index
end
def show
@welcome = Welcome.bootstrap_me()
end
end
| 7cd851617f186fe7655661fc9efcf5ed6e69dbcb | [
"Ruby"
] | 2 | Ruby | teddim/bootstrap_app | b31f8bfba611b9f9648ca1d5785bffc84fe20619 | a348f555a1142a01aa8cf281f252fdc77bbd655b |
refs/heads/master | <file_sep># User Guide
Duke is a functional todo-list for managing your all your tasks, using the Command Line Interface (CLI).
* [Quick Start](#quick-start)
* [Features](#features)
+ [1. help](#1-help)
+ [2. list](#2-list)
+ [3. todo](#3-todo)
+ [4. deadline](#4-deadline)
+ [5. event](#5-event)
... | 5ea925664a641798516b4231e0c9755f8e6e11c0 | [
"Markdown",
"Java"
] | 7 | Markdown | CFZeon/ip | 184be3cfc7e63e9e8e8f6576f2435153ecc0f429 | 8db7a149788a6e7f8dd1782e27b372120b83067c |
refs/heads/master | <repo_name>leaf-shinobi/trove<file_sep>/.github/ISSUE_TEMPLATE/component.md
---
name: Component
about: Assigned component
title: ''
labels: "component \U0001F525"
assignees: ''
---
**Description**
Short description of the component
**Paths**
Relevant paths
**Extended Description**
Longer description of the componen... | 1d17bbd314f52baedab5818da2b6ba8ca8d369cd | [
"Markdown",
"JavaScript"
] | 4 | Markdown | leaf-shinobi/trove | eb481f24cc63210311841287209294aee66709f5 | f92cba3d469bc1cccb8bbd7b861ef9bb2959b23d |
refs/heads/master | <file_sep>namespace OdeToFood.Migrations
{
using OdeToFood.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Migrations;
using System.Linq;
internal sealed class Configuration : DbMigrationsConfiguration<OdeToFood.Models.OdeToFoodDB>
... | 962654ce092cf1e5dfd571616683613e1f8aa853 | [
"C#"
] | 2 | C# | aamiransari111/mvclearning | 32f17bebbab350ec154a5c2654d0f79515e681b7 | 4602805fddf67a81a93e04e2d41dc9e65681ce31 |
refs/heads/master | <file_sep>#include<iostream>
#include<cstdio>
#DEFINE SIZE 10
using namespace std;
int getElement(){
int element;
cout<<endl<<"Enter an element(int): ";
cin>>element;
cout<<endl;
return element;
}
char command(){
char inp;
cout<<"\n-Press 'i' to insert an element\n-Press 'x' to delete an... | 1842210c2caf835204a1e010ee4078b87f9a456f | [
"C++"
] | 20 | C++ | Chait97/DataStructures2 | c27f7bfc7923a8d120ff2d51fc03055695739095 | 2009ae9aa5ad5b5bcaa2548ced88fc648dc65b25 |
refs/heads/master | <repo_name>achourMedHedi/d3otNet_Gmc_bank<file_sep>/GmcBank/Client/Client.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
namespace GmcBank
{
[DataContract]
public class Client<TAbstractAccount, TTransaction> : IClient<TAbstra... | a0e9ebd918563ad32396fc2869c6017f2f7990bb | [
"C#"
] | 2 | C# | achourMedHedi/d3otNet_Gmc_bank | d25401f210b6e6ef125898c3c01c4f57b30cdbb6 | 30d53f6c54b28247a3668eae64c31e6855d292e2 |
refs/heads/master | <repo_name>Raghavendra1992/DemoRepo1<file_sep>/src/main/java/com/qa/Login/LoginPage.java
package com.qa.Login;
public class LoginPage
{
public void Loginpage()
{
System.out.println("Login Page");
}
public void LoginSetMethod()
{
System.out.println("Login Set Method");
}
}
| 42cce10a410edb9f1f37bb7021c0129e10458a36 | [
"Java"
] | 1 | Java | Raghavendra1992/DemoRepo1 | 15f3453aad04e8abf2414b0d98da10462b4b7087 | d0ce17d7d731735b4f9e83e8aea6251a9ba22d8c |
refs/heads/master | <repo_name>CrismaruVlad/vpgc<file_sep>/src/app/service/auth.interceptor.ts
import { IHttpInterceptor } from 'angular2-http-interceptor';
import { Request, Response } from '@angular/http';
import { Router } from '@angular/router';
import { Inject } from '@angular/core';
import { Observable } from 'rxjs';
import { UserSe... | 5372ec40342741d614de2d42d4b0463f9681cdd4 | [
"TypeScript",
"Dockerfile"
] | 5 | TypeScript | CrismaruVlad/vpgc | e45791a697ee4051158b783456b9546790a7b67a | 746828f20af90c55e59d6679968d718ee1f991d7 |
refs/heads/master | <repo_name>mingzhangyong/ssmDemo<file_sep>/web-ssm/src/main/java/com/heitian/ssm/service/impl/UserServiceImpl.java
package com.heitian.ssm.service.impl;
import com.heitian.ssm.dao.DBUserMapper;
import com.heitian.ssm.dao.UserDao;
import com.heitian.ssm.model.DBUser;
import com.heitian.ssm.model.User;
import com.... | 365f5cb973077c5d0627f58936cb686729e851a0 | [
"Markdown",
"Java"
] | 3 | Java | mingzhangyong/ssmDemo | e8e7b72b8269c82ecf19fbdf48065a1dfed7d2ee | 05cf909a3cf15f9399005f7c66216091239f24f2 |
refs/heads/master | <repo_name>Akarshshrivastava/Typewriter-Effect<file_sep>/script.js
const app = document.getElementById("app");
let typewriter = new Typewriter(app, {
strings: ["Developer", "Designer", "Photographer", "Crypto Enthusiast"],
autoStart: true,
loop: true,
delay: 60,
pauseFor: 1000,
});
| 99e577d6166dda9a41a6fc82d3a5b724148e69a9 | [
"JavaScript"
] | 1 | JavaScript | Akarshshrivastava/Typewriter-Effect | fe414dad2b1efaab45b12481d50e7262ef10d0c1 | 3b90019272bb61a02aba1aa1ba3d1971b2d3a6da |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GestionTransporte.clases
{
public class Auditoria
{
DateTime fecha_hs;
Login usuario;//el usuario trae consigo la coneccion a la bd
string accion;
... | e82aa86b883124ec617c8caa96e188f0a84776d3 | [
"C#"
] | 30 | C# | pabloisaac/proyectolabo3 | 805cbcf570d5083d681dca464c6cc64990b200d1 | 47f3fa831fc58cf54eb94ecee21f7fb0d035fcae |
refs/heads/master | <repo_name>ericknajjar/ClickHeroeSaga<file_sep>/Assets/FacebookLoginControler.cs
using Facebook.Unity;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.Networking;
using UnityEng... | f8db485f4fd874193148843ae71911711635fc35 | [
"C#",
"Python"
] | 4 | C# | ericknajjar/ClickHeroeSaga | 84634289f3f6315cded8752a4e1267b1b356afc1 | b9e5cc8af93db5694bfd1c77246d43fafc9d3367 |
refs/heads/master | <repo_name>KalluruNarasimha/Narasimha<file_sep>/App/src/com/app/dao/impl/LocationDaoImpl.java
package com.app.dao.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Reposit... | 4bc46b075c4f4dea0b2bbb38bf0659b91a994e7d | [
"Java"
] | 4 | Java | KalluruNarasimha/Narasimha | 806455fa6c76b8784383bb8c986bfc6faed410f2 | 58ca6dee85aa988bca8b6a2e55ed0ec19771e1be |
refs/heads/master | <repo_name>fahreddinsvndr/Movie<file_sep>/app/src/test/java/com/fahreddinsevindir/movie/network/MovieServiceTest.kt
package com.fahreddinsevindir.movie.network
import com.fahreddinsevindir.movie.ZoneDateTimeProvider
import com.fahreddinsevindir.movie.ZoneDateTimeProvider.loadTimeZone
import com.fahreddinsevindir.movie... | 9e9734dc7bb77176460f416491a3caf788172ab8 | [
"Kotlin"
] | 3 | Kotlin | fahreddinsvndr/Movie | 44b87237d782648f8e921963873de78f9dc6c392 | 94d2f80d3f0bb3d89d029c7d00ee94fa207fb267 |
refs/heads/master | <file_sep>package resturant.view;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import resturant.model.entity.Address;
import resturant.model.entity.Customer;
import repository.MenuType;
import resturant.sevice.CustomerService;
import resturant.sevice.M... | 55894973b2ea73a70be215f160b7a57ad1d0a5da | [
"Java"
] | 8 | Java | fshirafkan/resturantSpringcore | 727eff6127cd1c011717a76bafe7e6984def00f9 | a2f5c0f21005f15193a2e886a8946649218e390b |
refs/heads/main | <file_sep>x=9
y=0
try:
print("error class open")
print(x/y)
t=int(input("enter number"))
print(t)
# print(me)
except ZeroDivisionError as e:
print(" cant divide by 0",e)
except ValueError as e:
print("was not asked for this")
except Exception as e:
print("its just wrong")
f... | 3eb6686b8a140bb3405cd4e90948f3aa1c03922e | [
"Markdown",
"Python"
] | 4 | Python | sudita07/learning-about-errors | 188e8f8f33131213eade0ddc813787adc55914c7 | c63ad9ff2af4d462e34dfea5c80af3b5ed1bb3f4 |
refs/heads/master | <file_sep>package local_Db;
import java.io.Serializable;
import local_Db.DaoSession;
import de.greenrobot.dao.DaoException;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. Enable "keep" sections if you want to edit.
/**
* Entity mapped to table FOTO_DB.
*/
public class FotoDB implements Serializable {
pr... | af6f753b6058bed44864072a4a425e3323163eca | [
"Java"
] | 18 | Java | robbStarkTFG4/Mantenimiento | 53a0c7579d3432f76cb406e0887eec367cf62929 | daacd7090d8b3e78f655b9a2907d9fe708e6ee4f |
refs/heads/master | <file_sep>using Tida.Canvas.Contracts;
using Tida.Canvas.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tida.Canvas.Events {
///// <summary>
///// 通知绘制对象集合,鼠标移动的预处理事件参数;
///// </summary>
//public class DrawObjectsMou... | 798d91a8455e02e4d5a4ccb06ed420953d7dd549 | [
"C#"
] | 2 | C# | Smathon1/Tida.CAD | 930a4df7e1fdaab776a5d79537bf10dbd9eb4004 | b97832331978a539984a7287aee941bec0facbb8 |
refs/heads/master | <repo_name>cubernice/complex<file_sep>/src/org/ant/demo/FunctionDemo.java
package org.ant.demo;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
public class FunctionDemo {
private static Log log = LogFactory.getLog(FunctionDemo.class);
public void saySomething(String words){
l... | 8f8828d62c522575f7411f22b110258e5fd358ef | [
"Java",
"Ant Build System",
"INI"
] | 3 | Java | cubernice/complex | 0bc9b70636b3103e0f136e0e6fa2587e8c737b88 | a49acc1d36e17768b93ccbec0259efb8d274f70d |
refs/heads/main | <file_sep># Open Targets: Platform-output-support overview
Platform Output Support (POS) is the third component in the back-end data and infrastructure generation pipeline.
POS is an automatic and unified place to perform a release of OT Platform to the public. The other two components are Platform Input Support (PIS)... | b0b0b66e1f842e7c0bca360d452781d50239ef98 | [
"Markdown",
"Shell"
] | 2 | Markdown | mbdebian/platform-output-support | fbad63158a26994737ef6156cd99b217cc9dd554 | 75a80334914d22faf90d93ae26991113b68bce68 |
refs/heads/master | <file_sep>package fi.observis.jsweet.issue;
public class ImplementationA8 implements InterfaceA<ImplementationB8>{
public void methodA(ImplementationB8 implementationB) {
implementationB.method();
}
}
<file_sep>package fi.observis.jsweet.issue;
public class ImplementationA1 implements InterfaceA<ImplementationB... | d4ed4cf09ac392d689bfc3b381131286de0f5184 | [
"Java",
"Maven POM"
] | 9 | Java | Smiche/jsweet-issue-example | b0ccd1a167ce81a440cbf780302209fe44b86cdc | fba1b5ef30469fae3a7b46bbda687f1d5b564fb1 |
refs/heads/master | <file_sep>package com.figengungor.bakingapp_udacity.data;
import com.figengungor.bakingapp_udacity.data.model.Recipe;
import com.figengungor.bakingapp_udacity.data.remote.BakingService;
import com.figengungor.bakingapp_udacity.data.remote.BakingServiceFactory;
import java.util.List;
import retrofit2.Callback;
/**
... | 2b1ebffccd1e054381d701b1bbb4c5366d39c1f5 | [
"Markdown",
"Java",
"Gradle"
] | 11 | Java | figengungor/bakingApp_Udacity | 3298d4cf45f616adf61fb38f9b8e0fdc9f43633f | 88780e8fab62cb5652b3797fac4ca4291eb1e27a |
refs/heads/master | <repo_name>onereallylongname/Space_Invaders<file_sep>/README.md
# Space_Invaders
My take on space invaders using p5.
<file_sep>/lib/sounds.js
function Sounds() {
this.sounds = {};
this.addSound = function(env, osc, soundName, freq, attackLevel, attackTime, susPercent, decayTime, releaseTime) {
var releaseL... | 8d6776ee604fe85fafd086740bf9db8ae7e88c26 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | onereallylongname/Space_Invaders | 67dfae64d2c422d713063b3b0de60c220c9aaaa8 | 784c9a84e2b5dea9ba5c5aee8191ffd1bb86884d |
refs/heads/master | <repo_name>tfursten/IBD-2N<file_sep>/src/Main2.cpp
#include "Main.h"
int main(int ac, char** av)
{
namespace po = boost::program_options;
using namespace std;
static int nGenerations, nMaxX, nMaxY, nOffspring;
unsigned int seed;
static float fSigma, param;
string dist_name, bound, infile, outfil... | 2922ba0b2335630145ba5a36edd80bf1fa1c66b7 | [
"C++"
] | 4 | C++ | tfursten/IBD-2N | 0d075e03f065dc465c9eb10df00dd89d6f994bf9 | 57ed84f5b2270e5c242e2e0ea68f3961bf35d4bb |
refs/heads/master | <file_sep># spring-eureka-hystrix-zuul-microservice
<file_sep>package com.fahrul.eureka.client1;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
@FeignClient(value="${feign.name}", url="${feign.url}")
public interface MyFeignClient {
@GetMapping
S... | 1e371836be411e6f8448fe15f1e04dd9d68c4d61 | [
"Markdown",
"Java",
"INI"
] | 3 | Markdown | fahrul87/spring-eureka-hystrix-zuul-microservice | 53ed5b9dd7f6992dd1ddb62d48b643fd61eee89e | 760eb096748cd1c5cb3ba706d0bb79ea4e28a95c |
refs/heads/master | <file_sep>
def #roll
puts #roll
expect(#roll).to be_a(Interger)
expect(#roll).to be > 0
expect(#roll).to be < 7
expect(#roll).to be rand(1..6)
end
| a6cc006ca16faa02a12d918c790561054f05465e | [
"Ruby"
] | 1 | Ruby | James-Mellow/dice-roll-ruby-online-web-prework | 9b782ee88f4f61535ed6caff7a141fda377b1d13 | 611bbd27c89d277424b30fda68bca08cee7caaec |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.