branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <repo_name>akinsbo/setupRecipe<file_sep>/Makefile
DEV_DIR = dev
DEV_FRONTEND_DIR = dev/frontend_dev/
UTIL_SCRIPTS_DIR = utils/
help:
@echo ""
@echo "Author: <NAME>"
@echo "Commands"
@echo " help - generates this"
@echo " install-all - installs docker(for amd64 systems), \
create-react-app (with nodejs and npm), ... | 8fe5dd7e96856979afde91d08c4bddb9f429f976 | [
"Markdown",
"Makefile",
"Dockerfile",
"Shell"
] | 7 | Makefile | akinsbo/setupRecipe | 6893096b961ac92368f47e6bd5fbd8d8e4897a6f | 97b68470db90e1ebfd7859b345cf7a402b4da474 |
refs/heads/master | <repo_name>svger/button<file_sep>/build/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable ... | a7eb5af2114fcb26876f7e8c39ed7cf5aa4c8eec | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | svger/button | e095e0fc15139d04162045ab3d47c99b69011211 | fcd19fed40504ccd89bed492686dc4dd6ff9d462 |
refs/heads/master | <file_sep>const http = new EasyHTTP();
//Setting Routes
const GETPOSTS = 'https://jsonplaceholder.typicode.com/posts';
const POSTPOSTS = 'https://jsonplaceholder.typicode.com/posts';
const PUTPOSTS = 'https://jsonplaceholder.typicode.com/posts/';
const DELETEPOSTS = 'https://jsonplaceholder.typicode.com/posts/';
//Lo... | 3960a093c2cb7f9154d7f0c87cb244ece3ea6218 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | compadrejunior/easyhttp | db71df07bdb9a80436cd227947551898b5a648fb | dac332a0681ac3b218a55e8e04b7633df47c5c5a |
refs/heads/master | <file_sep>#!/usr/bin/python3
import sys
def miles_to_km(miles):
return miles * 1.60934
if __name__ == "__main__":
miles = int(sys.argv[1])
print("{0} miles".format(miles))
print("{0} km".format(miles_to_km(miles)))
<file_sep>#!/bin/sh
xinput set-prop 10 279 1
<file_sep>alias e='emacs'
alias ne='ema... | a2d0cde511bf1b8d4c62965a963a4277af5547af | [
"Markdown",
"Python",
"Shell"
] | 20 | Python | Sun42/script | f737ae7d2c97ec67338cf0a6d60f2a2cb5b2c680 | 0b9b84895bcf6c1cdb66d80050822325bb16b54c |
refs/heads/master | <repo_name>Xufysz/Space-Invaders<file_sep>/SpaceInvadersGame/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace SpaceInvadersG... | 717747ad52cfbac80af26fb21adc0692e76bbcc8 | [
"C#"
] | 1 | C# | Xufysz/Space-Invaders | e9a980b3384a382034c3dd0f53a7b9a433ab1e9b | 6d6134f386479e82240db974253db0ff66eb5d52 |
refs/heads/main | <repo_name>rahul-sk/Simplilearn_Phase1_RainbowSchoolProject<file_sep>/README.md
# Simplilearn_Phase1_RainbowSchoolProject
Project submission for phase 1 of the .NET Full stack dev course
| 19f1e86076890f8621d5887ede03404c1fae4b7c | [
"Markdown"
] | 1 | Markdown | rahul-sk/Simplilearn_Phase1_RainbowSchoolProject | a0e893968321748c290b1eb9a9b248dd0a33ce7d | 3380fab5de5080c08e95e773dd39ab3fa115cf4f |
refs/heads/master | <repo_name>vasmarm/WeatherPyt<file_sep>/README.md
# WeatherPy
Creating a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator. To accomplish this, you'll be utilizing a simple Python library, the OpenWeatherMap API, and a little common sense to create a represent... | 6e3a6f7f279230af7e5aff5bba7b56b27f840055 | [
"Markdown",
"Python"
] | 2 | Markdown | vasmarm/WeatherPyt | 0889b5a1e5e7c71b361f4543eb5fe9e321bdc239 | fa527de195e755de310b842e9b71a2f0d6a6dc24 |
refs/heads/master | <file_sep>def merge(a,b)
la = a.length()
lb = b.length()
c = Array.new(la+lb) # c.length() = la + lb
ia = 0
ib = 0
ic = 0 # ic = ia + ib
while ia < la && ib < lb
if a[ia] < b[ib]
c[ic] = a[ia]
ia = ia + 1
else
c[ic] = b[ib]
ib = ib + 1
end
... | a87b1e3c43f4270ba7c0eee2e7c267968fdb067c | [
"Ruby"
] | 31 | Ruby | saceandro/programMethod | d41f06ced9a227ebd2b1af3fe1f987fd12d2b268 | 5cda248f394b93d14ac8a91142dd3f1ce8cec2af |
refs/heads/master | <repo_name>galactus009/ostat<file_sep>/main.go
// The MIT License (MIT)
//
// Copyright (c) 2016 <NAME>
//
// http://knowyourmeme.com/memes/deal-with-it.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | 8c0d735973d2c4c80bee3d9805dce01edde16e13 | [
"Go"
] | 1 | Go | galactus009/ostat | 9cecea79e0ad0c8594f7f067bd209a9491973538 | 8cf0c75dcf21a3c4c0e799d6f428c7a58d8a3543 |
refs/heads/main | <repo_name>rookiewangsl/Fashion<file_sep>/requirements.txt
matplotlib==3.2.1
numpy==1.18.2
prefetch-generator==1.0.1
scikit-learn==0.22.2.post1
tensorboard==2.2.0
tqdm==4.45.0
<file_sep>/train.py
import argparse
import datetime
import json
import os
import random
from tqdm import tqdm
import torch
import torch.nn as n... | 6a04fc4be886a46c2a290d54fdd7da9727c7a666 | [
"Markdown",
"Python",
"Text"
] | 8 | Text | rookiewangsl/Fashion | 6679f663e3aa385a07267e74135c910303f5fe86 | 0f48bb361e2c00cdcc8855f1e74aa2715cc35315 |
refs/heads/master | <repo_name>Dreamest/WarGame-Basic<file_sep>/README.md
# WarGame-Basic
A card war game android application - Basic version

Upon starting the application, a deck of cards will be created, shuffled and split into two halves, one for eac... | 839f46851b9b946678b413ddbe4f2416c5186d96 | [
"Markdown",
"Java"
] | 3 | Markdown | Dreamest/WarGame-Basic | ad7d1db9d0ac09f7c73c8c2d7826462d3ebc223f | cded4ed75f5ad928265d1b036c6933ae30303cdb |
refs/heads/master | <repo_name>Ashishw2022/S1_MCA_Ashish_wilson<file_sep>/ADS_Lab/5. Set Data Structure and set operations (Union, Intersection and Difference) using Bit String/5 set operation-ashish wilson (1).c
#include<stdio.h>
#include<stdlib.h>
void main()
{
int ch,A[50],B[50],C[50],m,n,i;
printf("\nEnter cardinality of first set: ... | 474565bbf83eead843ab004bb4e40f56963b25bf | [
"C"
] | 4 | C | Ashishw2022/S1_MCA_Ashish_wilson | 0a7ce09dda92fd197d0a572506724c992a8aa9d5 | e18d9fde078d007118e4f00cf9b5ca9837e35bcd |
refs/heads/master | <file_sep>const Joi = require("joi");
module.exports = {
validatePackagePurchase: (body) => {
const schema = Joi.object({
subscriberNumber: Joi.string()
.length(12)
.alphanum()
.regex(/^233.+/)
.required()
.messa... | fcc12a076f0599bee9faa03d7566c5f17c7ee98a | [
"JavaScript"
] | 1 | JavaScript | egyapolley/ussd-flytxt-api | d4887858dc91ce411396ac362016d8e8cb9938b8 | cdf4c7c222531a8ea490459bb8f951ae9f58e671 |
refs/heads/master | <repo_name>CarryItForward/spark-lambdas<file_sep>/src/utils/responses.ts
export const successResponse = (body: any, statusCode = 200) => ({
statusCode,
body: JSON.stringify(body),
})
export const errorResponse = (body: any, statusCode = 500) => ({
statusCode,
body: JSON.stringify(body),
})
<file_sep>/src/utils... | 6d81bb23aff310b3ac0615276f5666eb2e047a41 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | CarryItForward/spark-lambdas | d96be66a170ec224291c65ca4a355aec79859d13 | 4b8589bcc915f7fa5673093e82c02fb2ac67c301 |
refs/heads/master | <repo_name>wassertim/kafka-docker<file_sep>/docker-compose.yml
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
build: .
ports:
- "9092:9092"
- "9093:9093"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTIS... | cfca1e1670172dcb10efa124e4afc4099339809d | [
"YAML",
"Shell"
] | 3 | YAML | wassertim/kafka-docker | a39be63a05cf4369177e24447e84517526e4747e | 7a1099faee12c19b0c4e0240d863cd295dbdf4a0 |
refs/heads/master | <repo_name>AriefDR/blogGogreen<file_sep>/assets/js/script.js
document.getElementById('subs').addEventListener('click', () => {
let emailSubs = document.getElementById('emailSubs')
if (emailSubs.value == "" || emailSubs.value == null) {
alert("email anda kosong")
} else if (emailSubs.value.length < 5... | 1b676fe643f061d64ab2ec23f3cba4f09297c2a4 | [
"JavaScript"
] | 1 | JavaScript | AriefDR/blogGogreen | 9c9130b2424762602881d90d51fbe999c35d5f87 | c7b33dfb8e86bc79c362ad3ca24ea402008a9335 |
refs/heads/master | <repo_name>abhishek9910/CSC-535_new<file_sep>/vowelCon.java
package week3program;
public class vowelCon {
public static void main(String []args){
System.out.println("Hello World");
printVowels("AbhiSHEK");
printConsonants("Abhishek");
printDigits("ReadDead2@2017");
... | e887f954e2a65fcbba44bc1d1695ed76efc3cca5 | [
"Java"
] | 1 | Java | abhishek9910/CSC-535_new | 99865f798f0e09800f0418f9e20db743fc60f612 | c3dfc0e410d1021b8665f5dfca0fa2d80790dd91 |
refs/heads/master | <file_sep><?php header( 'Location: /presents.html' ) ; ?>
<file_sep>"use strict";
function createReceiver(name, ocassion, present, ifBought, price) {
if (price === 0 || price === "") {
return {
name: name,
ocassion: ocassion,
present: present,
ifBought: ifBought,
price: 0
};
... | 88bc8cc6cb20ee8b8957b2b96b0534e4d47f4054 | [
"JavaScript",
"Markdown",
"PHP"
] | 3 | PHP | agkoryl/Presents-List-App | 00fb36a5ecc97daf67237088283befb3832becfa | 825f3c497aceaf15cb8f131160c8767960703ec3 |
refs/heads/main | <repo_name>kslotes/front-control-ingreso<file_sep>/src/components/DatosPersonales.jsx
import React, { useState } from "react";
import { Form,Button } from "react-bootstrap";
import "./Formulario.css";
import axios from 'axios';
import { Link, Redirect } from "react-router-dom";
const URL_HOST="http://areco.gob.ar:9528"... | 447f8ef1588a9dac679c9c28d492f29898cfae1c | [
"JavaScript"
] | 5 | JavaScript | kslotes/front-control-ingreso | b9463da6869f42ab3e00f9a0157fc22e5a330c93 | f519cb981853ad4249184bad9db21b9ec275c67c |
refs/heads/main | <file_sep>import React, {useState, useEffect} from "react";
export default function Meal({meal}){
const [imageUrl, setImageUrl] = useState("");
useEffect(()=>{
fetch(
`https://api.spoonacular.com/recipes/${meal.id}/information?apiKey=<KEY>&includeNutrition=false`
)
.then((r... | 6e7ddde2fad7605933314302389b0942e464c738 | [
"JavaScript",
"Python",
"Markdown"
] | 13 | JavaScript | Ce-bit/Meal_Planner_App | e1cd47c8d3f6bf064f45a434b06a52ed13be18ba | 230f4107b92d54abc1332136374595660a1d216e |
refs/heads/master | <repo_name>AdamOrtolf/reactEmployeeDir<file_sep>/src/components/GenerateEmployees.js
import React, {Component} from "react";
import API from "../utils/API";
import SearchFilter from "./SearchFilter";
import ResultSearch from "./ResultSearch";
class GenerateEmployees extends Component {
// need to create a state ... | 20a589ce7aaf536e9e8a480c4a036214aca22609 | [
"JavaScript"
] | 2 | JavaScript | AdamOrtolf/reactEmployeeDir | ee9f032f0093262ea47b166a991d74212a4ed962 | 0b0956ac2ee3f7c68afe3c47cc724c12c78256bf |
refs/heads/master | <file_sep>module.exports = {
IP:'10.0.0.169',
PORT: 50541,
MOVE_UP_KEY: "w",
MOVE_DOWN_KEY: "s",
MOVE_LEFT_KEY: "a",
MOVE_RIGHT_KEY: "d",
EXIT_KEY: '\u0003',
};<file_sep># -snake-client | 4cc7f74535561c9d31c3ea161e28a6eac350c44e | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | RongxinZhang/-snake-client | 16b6a1b2bb0485e894f390dc5c3bce55105638a3 | 4167bb83be4ffe6ae8d2670e68e12d7cf1e4a700 |
refs/heads/master | <file_sep># RedisResourceMap
COVID-19 Resource Dashboard is a project leveraging the power of RediSearch, RedisGears, and Redis PubSub to create a live-updating, crowdsourced dashboard to connect places with excess supply of masks, oxygen, and vaccines to places lacking in such supplies. Users can add locations to ind... | b94cfd9f2487f4e2e69938aa33a6254e81874cd4 | [
"Markdown",
"Python",
"JavaScript",
"Text"
] | 9 | Markdown | pranavmk98/RedisResourceMap | f0cb22c4d63cdcfb56bfbfa645529577dcb3a60a | 7a02d7db4a197a35134dfb7cf9daa30321607e37 |
refs/heads/master | <repo_name>ez-webcomponents/ez-groupby-tree-mixin<file_sep>/src/components/ez-groupby-tree-mixin.js
/**
@license
Copyright (c) 2018 <NAME>
This program is available under MIT license, available at
https://github.com/ez-webcomponents/ez-groupby-tree-mixin
*/
/**
* @file ez-groupby-tree-mixin.js
* @author <NAME> <<... | 9752c8082c0c50bd4dbd3ccb4868a0e6a3b253a2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ez-webcomponents/ez-groupby-tree-mixin | c277827282cc32755b9dcb2bce8813af93fd6646 | 0229d4e7413d6383f7bf95a353549d62a482c7f0 |
refs/heads/master | <repo_name>DiegoSalas11/Line<file_sep>/src/ofApp.h
#pragma once
#include "ofMain.h"
#include"ofMath.h"
class ofApp : public ofBaseApp {
public:
int x, y, x1, y1;
int dx, dy, a, b,d, difE, difNE, Subebaja , unoOmenosUno;
bool filtroDeAlberca;
ofTexture textura;
ofPixels pixeles;
void putPixel(int x, int y, int ... | 3c65f8033f5ee7b0a50b272535412f72a2b16830 | [
"C++"
] | 2 | C++ | DiegoSalas11/Line | d9d8560489cdbf33d5a02bdf4d4c5ba1a0ed3eb7 | 4a144833d4007c832101a5ddb95f4b9d79201092 |
refs/heads/master | <repo_name>austingibb/SnakeGame<file_sep>/SnakeGame/Timer.cpp
#include "Timer.h"
Timer::Timer()
{
_running = false;
_paused = false;
}
Timer::~Timer()
{
}
void Timer::start()
{
if (!_running)
{
_running = true;
_paused = false;
_start_time = SDL_GetTicks();
}
}
void Timer::stop()
{
if (_running)
{
_... | 8ff5b007c83bb24eb00d4388a4d888783b1576c7 | [
"C",
"C++"
] | 26 | C++ | austingibb/SnakeGame | 23a46c74984448628c80e90a03365039f504dd0e | 9b6592c54a1c9816206df9daf63764abb682cf0b |
refs/heads/master | <repo_name>kylemarshall962/Monte-Carlo-Ex<file_sep>/Monte Carlo Example.R
##Monte Carlo Simulation to determine pi given a jpeg of a circumscirbed square and an ratio of areas of pi/4
## Libraries
library("jpeg")
library("raster")
##Cicle Image
jpg <- readJPEG("squareCircle.jpg")
res = dim(jpg)[1:2]
plot(1,1,xlim=c(1... | bf9d127a36e3a740c657ebee9616e677348086ec | [
"R"
] | 1 | R | kylemarshall962/Monte-Carlo-Ex | 19f0b92f5c0921f14866e97db1fddb0d5c1b90cd | 90e65a6ddc306faa2b63721f43b109e33c58dee7 |
refs/heads/master | <repo_name>mbakhoff/sockets-template<file_sep>/readme.md
# TCP sockets in Java
TCP sockets enable communication between programs within the same machine or across different machines.
Data can be sent/received using the regular Java OutputStream/InputStream.
```
Socket s = connect();
InputStream in = s.getInputStream(... | a37af60832cad899f0791bc7b26a0fdf924e1ac3 | [
"Markdown",
"Java"
] | 2 | Markdown | mbakhoff/sockets-template | f4e55264a82d664855c522044060ac7bff5647e9 | a407708a0fed8363e69e2c0b67d76c6950d4e95e |
refs/heads/master | <file_sep>//je crée une variable firstname et j'attribut comme valeur une chaîne de caractères 'sylvie'
var firstname = 'Sylvie';
//je demande à ce que ma variable firstname s'affiche dans une boite de dialogue grace à la fonction alert()
alert(firstname);
| a795859de8f8011330908916569cdacdaec0e11d | [
"JavaScript"
] | 1 | JavaScript | lenavenecsylvie95/JavascriptPartie1Exercice1 | f210cb63c935236b7045a0e0330e1e34abe4292a | 4eab023f0cdf2d6cb1bf55abdd20307dd522736f |
refs/heads/master | <file_sep>/*!
* @overview Simple data layer for ember
* @copyright Copyright (c) 2013-2014 <NAME>
* @author <NAME> (<EMAIL>)
*
* @license Licensed under MIT License
* see: https://raw.github.com/BowlingX/simple-data/master/LICENSE
*/
(function (window, $, Ember) {
"use strict";
/**
* Init ... | 72ca1d81a85d567e4ed39b9a717d389510d4bcc1 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | BowlingX/simple-data | e7119acdbd9746eb98eaa420216aaceeea8352b9 | ccac11cec45b59f88dc76e3bce3fd5853caeb680 |
refs/heads/main | <file_sep>require "rest-client"
require "json"
require "csv"
# Get all posts from remote url
posts_url = "https://jsonplaceholder.typicode.com/posts?_start=0&_limit=20"
posts = RestClient.get(posts_url)
# Create CSV File for posts
def create_csv_doc(source, file_link)
# Get all headers
@headers = []
JSON.parse... | 2c362aceb0bfbd6054fbf783a978a747ecda795b | [
"Ruby"
] | 4 | Ruby | medericgb/16-08-2021 | 1115ee9c6e33c5b628335d1ce90a0065bb01e520 | 4bd475998eeb62c559ed32e91d8e633f021ceb49 |
refs/heads/main | <file_sep>const express= require('express');
const mongoose= require('mongoose');
const app= express();
app.use(express.json());
mongoose.connect("mongodb://localhost:27017/pokemon_api",{useNewUrlParser :true},()=>{
console.log("connected to database");
})
//schema
const pokeschema = new mongoose.S... | 3c85b6c8c800158729eb4cf2b395eff6fd02010c | [
"JavaScript"
] | 2 | JavaScript | Adarshvarghese/Node_asignments | 90d2c9281c7c3c566474f6e80b25e418b50a970d | 154e99962f2b68c52273c71e78d962eb2276e051 |
refs/heads/master | <file_sep>package com.example.kamil.justjava;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.TextView;
import java.text.NumberFormat;
public class MainActivity extends AppCompat... | e1c609b5346dbbc6ca2da0c7ba4130ea44b2567f | [
"Java"
] | 1 | Java | GlaDdos/JustJava | 32e93fc8ef00d7f53d8dc04adf077946f6ccb882 | 0da610d6fa40c4643472aa1a481a4cf316446f97 |
refs/heads/master | <file_sep>https://www.python.org/downloads/
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python -m pip install -U matplotlib
pip install pandas
pip install numpy
pip install seaborn<file_sep>import math
import pandas as pd
import numpy as np
from sklearn.metrics import mean_squared_error
from sklearn.model_... | 5c000ca3852901624e2e6fcda33e60807a6fffe9 | [
"Markdown",
"Python",
"Text"
] | 3 | Text | sultanguvenbas/Data_mining | bb2c69ce4716fd4c5d34d460ed64c2cd2e0a9dc6 | 55440b9ce2407b8c7d6cfcbe0c4ac33c3231d74c |
refs/heads/master | <repo_name>lukebrowell/vscode-python-starter<file_sep>/README.md
# Polyglot Python Development Starter (Containers)
As a Polyglot Software Engineer, a significant part of your work will require you to ensure that your code always works consistently no matter where it is run. Please follow through these instructions ... | 00e36a95b24aac55489499f3cdbdcf8c6f2a4e26 | [
"Markdown",
"Java"
] | 2 | Markdown | lukebrowell/vscode-python-starter | 8bef7866fc51cf9acfaad20cb0e0c263aff6359c | e0d15ef3aaace94b1b92a42d534f5dd16b669d8e |
refs/heads/master | <repo_name>jnibrahim/flaskappengineskeleton<file_sep>/src/main.py
import logging
from flask import Flask
app = Flask(__name__)
from handlers.helloworld import get_helloworld
get_helloworld(app)
@app.errorhandler(500)
def server_error(e):
# Log the error and stacktrace.
logging.exception('An error occurred ... | f5271f74ed9f07961b99edbcea30f03e5dd74214 | [
"Python"
] | 1 | Python | jnibrahim/flaskappengineskeleton | 11f58975798113c57419f369793ba5e8c0dfeb61 | 81e462c66b1f42fceef404396216ab531d343ece |
refs/heads/master | <repo_name>wildchild97/COMP1004-W2017-MidTermAssign-200311158<file_sep>/COMP1004-W2017-MidTermAssign-200311158/FinalForm.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sys... | b320e09b6f991f3bf0317c500bcdf59611162dba | [
"C#"
] | 4 | C# | wildchild97/COMP1004-W2017-MidTermAssign-200311158 | 06c1197521a7440765c3feeb00c2b5ac55c9a347 | c95e971014b1c1eda771529d4ae92554c1cc8a62 |
refs/heads/master | <repo_name>carlosisairomero/spring-mvc-demo<file_sep>/src/com/luv2code/springdemo/mvc/HelloWorldController.java
package com.luv2code.springdemo.mvc;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.... | 03cc3c872d2f42dba674712b5a7c1614e875693b | [
"Java"
] | 1 | Java | carlosisairomero/spring-mvc-demo | 7e0eba42864187f73370792aa513f58d399504c9 | 7830fd3c2740e24239c2414f791efcbcbdcb0431 |
refs/heads/master | <repo_name>nicolasnobelis/Explorers_Springboot<file_sep>/src/main/resources/application.properties
server.port=9090
dbServerURL=http://localhost:5984
dbTable=/expeditions<file_sep>/src/main/java/nino/explorers/dao/couchdb/ExpeditionDocument.java
package nino.explorers.dao.couchdb;
import com.fasterxml.jackson.annotati... | 93c21d0105d7436b523b3b0ee8a8aaf415e86943 | [
"Java",
"INI"
] | 4 | INI | nicolasnobelis/Explorers_Springboot | b4eef5aa4613786f999f29e45ffde60fa65f54eb | 9325da9d8a5bff439a98bb93ce5219e13abba08f |
refs/heads/master | <file_sep>分享几个实验的数据处理小程序。具体保留有效数字位数自行参照要求,一般为3~4位有效数字。
实验平台地址:http://192.168.127.12/
### 使用方法:
(C++)在可执行文件的目录下,将仿真实验测得数据存入in.txt文件中。各数据间以空格分隔。
输入数据格式可参考解压所得的in.txt数据,用实际测得数据覆盖即可。in.txt保存完毕后,运行exe文件,秒出结果。

... | 88b9771e09649d1c98695eee895411f7b636396c | [
"Markdown",
"C#",
"Python",
"C++"
] | 6 | Markdown | CHxCOOH/SimulationPhysicsExperiment-Calculator | 251306dfdb526c781e0d28c66fb0bc5684110109 | 34ba8a304c18a20fc98ab35971833f9382a9e872 |
refs/heads/master | <repo_name>sablesoft/yii2-stuff<file_sep>/src/interfaces/IsDefaultInterface.php
<?php declare(strict_types=1);
namespace sablesoft\stuff\interfaces;
/**
* Interface IsDefaultInterface
* @package sablesoft\stuff\interfaces
*
* @property bool $isDefault
*/
interface IsDefaultInterface
{
const FIELD = 'is_defau... | 6f7aab2a7061e61d6f2c680ea6643f9ff01749bc | [
"PHP"
] | 20 | PHP | sablesoft/yii2-stuff | 9fd99c593d616a64bfd3964e86945bc3f483bf5b | 54a17acae9e0fa28186bea203a781ca9e4d69777 |
refs/heads/master | <repo_name>SeonMyungLim/context-menu<file_sep>/README.md
# context-menu
light weight right click context menu library.
download or clone repo and play with it.
<file_sep>/src/main.js
$(document).ready(function() {
//basic example
console.log('ready');
var target = $('#target1');
var options = [];
v... | 4e17b6b0be8e06fb5729956cd18154624f717cc3 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | SeonMyungLim/context-menu | 43fc77711f04a296cd0af8fc6b28a15e30e36a3a | e076eaebdf1d118138a7568c244707801d82ccda |
refs/heads/main | <file_sep><div class="supercard cont">
<div class="card" >
<img src="../assets/colosseo.jfif" class=" img-card card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Colosseo</h5>
<p class="card-text">Some quick example text to build on the card title and make up... | 5c72f52a041569fa0740b61b31542dadd7cec7fc | [
"TypeScript",
"HTML"
] | 2 | HTML | FedeBon/EsameAngular | 2386b6decccce8be4a047dc4cc1daefafba49813 | 8f6db7e36a300d604a29cb579d2c1280c37e3879 |
refs/heads/master | <repo_name>vctrmn/poc-proxydata-app-engine<file_sep>/README.md
# poc-proxydata-app-engine
<file_sep>/app.js
'use strict';
const express = require('express');
const helmet = require('helmet'); // Protection / Creates headers that protect from attacks (security)
const morgan = require('morgan'); // logs requests
const {... | 5cbccee1b8e57f16fb1b27c116de49f3baa18ceb | [
"Markdown",
"JavaScript"
] | 2 | Markdown | vctrmn/poc-proxydata-app-engine | 774bdfb9cfaace5890a3efff0e14770c87f2ab9a | d5225cf9030a1ad5f214aff8015e276e87186f4c |
refs/heads/master | <file_sep>names = []
surnames = []
phones = []
cities = []
emails = []
def add_to_directory():
new_name = str(input())
new_surname = str(input())
new_phone = str(input())
new_city = str(input())
new_email = str(input())
if (new_email in emails) is False:
names.append(new_name)
... | e2f9655b941646f73f5b2718f9911d902d5e7fed | [
"Python"
] | 1 | Python | Foxovsky-bit/Python_directory | f54937f658abb6357b4023d0000196abf326a97f | 14d7e95bb3b8e4b0e6b12e2befcf9985e7ee6fbe |
refs/heads/master | <repo_name>Arion9228/Automation-features-using-Selenium-Framework<file_sep>/README.md
# Automation-features-using-Selenium-Framework
Task 3 of GRIP Phase-2
<file_sep>/sendEmail.py
#!/usr/bin/env python
#
# In[40]:
#Importing the required Modules
from selenium import webdriver
from selenium.webdriver.support.wait impo... | 4d95326c435a80d8181b43fd66eb092f85887782 | [
"Markdown",
"Python"
] | 4 | Markdown | Arion9228/Automation-features-using-Selenium-Framework | d3b42d62327c0a2aec01a11e8aea4923652aa35b | d12b8f94eb30ead0a4089bdd279bb75d2472f141 |
refs/heads/master | <repo_name>djvanderlaan/kykloop<file_sep>/discord_bot/bot.js
const Discord = require('discord.js');
const SerialPort = require('serialport');
const fs = require('fs');
// ========= Kykloop class ================
// Keeps track of the current pan and tilt and sends commands to the
// arduino device
class Kykloop {
... | 6d10f8b6eb9490714beb0bde1b915f78a86ee308 | [
"JavaScript",
"C++",
"Markdown"
] | 3 | JavaScript | djvanderlaan/kykloop | a964cb6ea031e8ffacc5ed5fe55680a0d9fb4377 | e3553c78015667b718305331d29f126dd7a0669a |
refs/heads/master | <repo_name>KatsiarynaMuzyka/Parking<file_sep>/src/com/epam/service/impl/SlotServiceImplementation.java
package com.epam.service.impl;
import java.util.*;
import com.epam.bean.entity.Slot;
import com.epam.service.SlotService;
public class SlotServiceImplementation implements SlotService {
public List<Slot> slots ... | 859c323da3290c3dac3b5da1801c1ac1418feb09 | [
"Java"
] | 14 | Java | KatsiarynaMuzyka/Parking | ef5676b59fc657fc1a055ec1a5ba46b3a10a56d0 | 3147d8092114f8a306d82db5dbb266feee03d560 |
refs/heads/main | <repo_name>BaYramKad/StyleES6.github.io<file_sep>/script.js
'use strict';
let incomeAmount = document.querySelector(".income-amount"),
expensesTitle = document.querySelector(".expenses-title"),
expensesAmount = document.querySelector(".expenses-amount"),
incomeTitle = document.querySelector(".income-title")... | a0e8fc53bc8e475efac0447e33fb4ccb9d6616fe | [
"JavaScript"
] | 1 | JavaScript | BaYramKad/StyleES6.github.io | 1b93a94ca3a14985fe0670ce080decf999d9c4d3 | f6e3fa7d16e041b9a8df96d19dd15f2fbc1ea156 |
refs/heads/master | <file_sep>console.log("Hello");
var audio = new Audio('Audio/notify.mp3');
var last;
var count = 0;
var liveFeed = ["YoungCheezy", "This site is such a good idea. I hope the donation quota is reached",
"<NAME>", "Wow, Really? The javits center for laborday? YES PLZ",
"<NAME>" , "I don't think this is a good id... | 491c1f534b1b1eaaa88a412f8df24679d6275e2e | [
"JavaScript"
] | 1 | JavaScript | GilbertoCanela/Awsome | e889263217f5510cdb8631a7a5fe98dc44635b23 | c2d1e764b44215c0f77afdd9aae9c33005b21f30 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"net/http"
"github.com/gin-gonic/gin"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Root Url", r.URL.Path[1:])
}
func main() {
router := gin.Default()
router.Static("/", "./assets")
router.get("/api/root", handler)
router.Run(":... | 627befad78be1bf68cf6a659788333582128a1d1 | [
"Markdown",
"Go"
] | 2 | Go | carsonwright/tframe | 6af8640877ae69b3648c4ee4d9e74e88a28ab12c | 71856be22a5a289498e0cd6aed506e90b263e612 |
refs/heads/main | <file_sep>'use strict';
/**
* Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers)
* to customize this controller
*/
module.exports = {
// find: ctx => {
// const result = strapi.query('provider').find(ctx.query, [
//... | a83fc20afda3e5783de0e38ea604ec6131fa20cb | [
"JavaScript"
] | 1 | JavaScript | deinKaiser/ozzy-backend | 572ed77b26ee9dcca002fcde407ee6c0331142c6 | a320ca0cd0c928049bf1a970c43f425c3747bbe7 |
refs/heads/master | <repo_name>Chebotin/labs<file_sep>/19-26.cpp
#include "pch.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <chrono>
#include <cstdio>
using namespace std;
int Search(int arr[], int requiredKey, int arrSize)
{
for (int i = 0; i < arrSize; i++)
{
if (arr[i] == requiredKey)
return... | e5b03531e1e6e86b329441eda4f10b8b8865e986 | [
"C++"
] | 1 | C++ | Chebotin/labs | 0acfa4d5be5d3ea7ac6d42999fa51770871bdf60 | f853b4161cfd7753c6894faf85432314ce4e253d |
refs/heads/main | <file_sep>import string
letters_left = string.ascii_lowercase
d=['d','f']
for i in d:
letters_left=letters_left.replace(i,'')
print(letters_left)<file_sep># hangman
This is about hangman game
| 6967181f8957cac7cfdfdd2c87a8d8f310416fde | [
"Markdown",
"Python"
] | 2 | Python | shubham7999/hangman | 077685302c7418454509aa00c017e1c6428f1053 | afe3b594b5214ba164aaebe3a227efd120ca2b5b |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders', function (Blueprint $table) {
... | ef94354a41b9966788ae1dc772ee45921251bdf5 | [
"Markdown",
"PHP"
] | 6 | PHP | webdevqn/tdc | e8ca7d0404c9f8c952c42e1575ff000c723cca62 | bcea0830bae1db7916138fd08190ff2faa7253c6 |
refs/heads/master | <file_sep>const express = require('express');
const bodyParser= require('body-parser');
const fs = require('fs');
const app = express();
app.use(bodyParser.json({limit:'50mb'}));
app.use(bodyParser.urlencoded({limit:'50mb',extended : false}));
app.post('/makePDF', function (req, res) {
console.log('post api... | b18f6b28841560dcf9514d6db0dacadd2ca74e51 | [
"JavaScript"
] | 1 | JavaScript | ayushigarg056/Image-To-PDF- | 8f448ee3c38122bcfdf545bd085b3f40f5db2411 | d2bca48f9fdf860e8f5b7589bf8ba93792bf11cc |
refs/heads/master | <file_sep>package week1;
//import edu.princeton.cs.algs4.QuickFindUF;
//import edu.princeton.cs.algs4.WeightedQuickUnionUF;
import edu.princeton.cs.algs4.WeightedQuickUnionUF;
/**
* Created by janbrusch on 29.06.15.
*/
public class Percolation {
private int gridSize;
private boolean[] openFields;
//p... | d881626ef7c556999d7b219921260804df5dc557 | [
"Java"
] | 1 | Java | Bruschkov/algs4 | 35b07adba4b1b35c1082a2b350ad94c6af06ff7b | 21d37e9435f97c719665f233525151f38c775d43 |
refs/heads/master | <repo_name>JoacimV/FridgeBook<file_sep>/backend/src/main/java/jsonMapper/UserJson.java
package jsonMapper;
import entity.User;
import java.util.ArrayList;
import java.util.List;
public class UserJson {
private String username;
private String pin;
private List<RecipeJson> recipesCreatedByUser;
private... | d895f392733b1fabafbe78ac04c85c3e15d3cf9b | [
"JavaScript",
"Java",
"Markdown"
] | 28 | Java | JoacimV/FridgeBook | f7b64009a341ba6971fc780c4cc41e1dbaa201a0 | bc5d57c28b66e6405dc13bd1b68ac98eaa03ea8e |
refs/heads/master | <file_sep>import { ref } from "@vue/reactivity";
import { porjectAuthentication } from '../firebase/config'
const error = ref( null)
const login = async ( email, password ) => {
error.value = null
try{
const response = await porjectAuthentication.signInWithEmailAndPassword( email, password )
if... | 449a009429b8177f7347314c70bee96336a19144 | [
"JavaScript"
] | 1 | JavaScript | herbnspice/realtme-serverless-chat | 3a775e119b3df6790f818a266852ec0161e5931d | b9cee6d5af593e0c19bcf326bfa538e5313763b1 |
refs/heads/master | <file_sep>using System;
using System.Collections;
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using System.Web;
using Mannex;
using Mannex.Threading.Tasks;
using Mannex.Web;
using Newtonsoft.Json;
using System.Configuration;
namespace Elmah.Io
{
public ... | 94975ccaa9d601da2b927b4547c6769307b37e94 | [
"C#"
] | 1 | C# | teiles/elmah.io | 20942af9fae8f01c72e24f15c0a66e2391460cfd | 800dcbb8ca2ecfb41d0fe5eb5c5d8952866f7386 |
refs/heads/master | <repo_name>startspecial/yad1<file_sep>/app/src/main/java/com/example/start/yandix/Class4CL.java
package com.example.start.yandix;
/**
* Created by start on 12.04.2017.
*/
public class Class4CL {
private String firstName;
private String lastName;
private int id4Photo; // resource
public Class4CL(St... | 1819a8409db5b70563433eba208f304b50d8c120 | [
"Java"
] | 6 | Java | startspecial/yad1 | 4ee32f91007f545875569c186e23b12add7e382b | 89ed684d25ee25b7da56bc3b1a44a678cc230dfd |
refs/heads/master | <repo_name>malcolm77/PiPythonCode<file_sep>/nettest.py
import os
address = "192.168.1.1"
ret = os.system("ping -c 3 -w 3000 " + address)
if ret != 0:
print "alive"
<file_sep>/sunrise-sunset.py
import ephem
import datetime
Canberra=ephem.Observer()
Canberra.lat='-35.246669'
Canberra.lon='149.070136'
Canberra.date ... | a94c3a8f4bb9b9789f6d3bc05bfa4bdd2deaafd4 | [
"Markdown",
"Python",
"Shell"
] | 15 | Python | malcolm77/PiPythonCode | 5e1991b16533a264cdec0ba06146ce20af2fce02 | b23244c14cc6bfe8bfd174aedd370bfafe0b3516 |
refs/heads/main | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <setjmp.h>
#include <unistd.h>
#include <fcntl.h>
#include <wait.h>
jmp_buf env;
void handler(int signum) {
fprintf(stderr, "read timeout in second child, killing both children.\n");
longjmp(env, 1);
exit(1);
}
... | a5ce2d1bd135ee08999fae397af68f87e4c4e5f7 | [
"Markdown",
"C",
"Text",
"Makefile"
] | 16 | C | SoumyajitKarmakar/CS232_Operating-Systems-Lab | 777536f9deea5cd1150a0565178fb1c0b0bfae80 | 08640618d0c336c1df97dd305bfa795ffc4855c4 |
refs/heads/master | <file_sep>package com.zhaoyan.juyou.adapter;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.graphics.Color;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Base... | 6aa0d889ebf29d81998fec87f767345965b3d0f2 | [
"Markdown",
"Java"
] | 78 | Java | liangxiaofei1100/ZhaoYanJuYou | 57e80e477c687d422cc8558d2d1d7f13665277fd | de57c05180c20fb3e91719a0d7ac581242ab33c1 |
refs/heads/master | <file_sep>/*
Copyright 2017 Vector Creations Ltd
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 applicable law or agreed to in writi... | 23b7df64e8add513801208248854152b73d02e66 | [
"JavaScript"
] | 1 | JavaScript | jamieabc/riot-web | 67150662eba68c946e4f5dc7f51e1b82da0cb70c | fcfa5ef2a70c8048958b886d55263ae4c3d96ddb |
refs/heads/master | <file_sep>/* generator DKA za 1. labos iz afjjp */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int kodiraj_stanje (int *parovi, int broj_parova, int m)
{
int i, kod;
for (kod=0, i=0 ; i<broj_parova ; ++i) {
if (fabs(parovi[i])>m) return pow (2 * m + 1, broj_parova);
kod += (pa... | dc86d5d3cd117665d752574b78d77da91d13e3c8 | [
"Java",
"Python",
"C",
"C++",
"Shell"
] | 138 | C | ipozgaj/playground_sources | 6709519d6006256d5a491b107e07beaf5fdc0184 | 1a27e0ba03ca623c2e414de1e6364c866297228b |
refs/heads/master | <file_sep>tensorflow>=1.13,<2.0
sphinx==1.8.*
sphinx_rtd_theme==0.4.*
recommonmark==0.5.*
<file_sep># Copyright 2019 The AdaNet Authors. All Rights Reserved.
# 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 t... | 5f3c4400126a875b1506f04481170473e931e9a6 | [
"Python",
"Text"
] | 2 | Text | lsheiba/adanet | 7af1f76a86ed610d3998c81b649e44276a529a39 | 154c7ade861139ee85924d53d3af492bcaa54237 |
refs/heads/master | <repo_name>robbiev/godup<file_sep>/main.go
package main
import (
"fmt"
"math"
)
const prime = 1021
func naiveIndexOf(s string, pattern string) int {
Outer:
for i := 0; i < len(s)-len(pattern); i++ {
for j := range pattern {
if s[i+j] != pattern[j] {
continue Outer
}
}
return i
}
return -1
}
fun... | 0602fac850299541acfdd253c7a804de4304ea7c | [
"Go"
] | 1 | Go | robbiev/godup | 49d5f5249a6725a92bae3e39029cc5f81a640413 | 3cfadf3cb473dd3812db35365c9d838c5cc90ce0 |
refs/heads/master | <file_sep>######################
##title: make shots charts
##description: analyze shots data of NBA
##inputs: data of Andre, Draymond, Kevin, Klay, Stephen
##outputs: several charts
######################
court_file <- "../images/nba-court.jpg"
court_image <- rasterGrob(
readJPEG(court_file),
width = unit(1, "npc... | e26f5924c22e7536d83d51ac3219a9ce4af16483 | [
"Markdown",
"R",
"RMarkdown"
] | 13 | R | stat133-sp19/hw-stat133-xihuanzhang | a2bf17ccc8b8136ddde7858927dcef6d5d639269 | 1cd3e35a8a7be73f2174296c3c04dc07dbfb84d4 |
refs/heads/main | <repo_name>ariespirgel/vized<file_sep>/R/download-ipeds-files.R
ipeds_download <- function(filename) {
if (!file.exists(paste0("data-raw/", tolower(filename), ".csv"))) {
download.file(
paste0("https://nces.ed.gov/ipeds/datacenter/data/", filename, ".zip"),
paste0("data-raw/", filename, ".zip")
)... | f0ec3ae068ddfe95125e8bffa7c2c578dd365ef8 | [
"Markdown",
"R"
] | 8 | R | ariespirgel/vized | 1ede72c4581d10aeaa3cd6ef0f17f3999a55d9bd | f52664ba61c05082b550f8eb2f312c9473e60d15 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Global : MonoBehaviour {
public static int sc;
// Use this for initialization
void Start () {
sc = 0;
}
// Update is called once per frame
void Update () {
}
}
| 8ad368747ef073006d7a2dab7ad503f34e382196 | [
"C#"
] | 1 | C# | DevOpHBLICT/Hungry_Hanson | 3bf58b652a3fbcff54d20054eb941152e6e8ea18 | f1b11445b62b2301bf9478015cea2d38d7256676 |
refs/heads/main | <repo_name>renanetec/MilhasParaKm<file_sep>/Program.cs
using System;
namespace milhasparakm
{
class Program
{
static void Main(string[] args)
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("conversor de milhas em km");
... | 7766c4c6037f2ec48f63a29ee06ef6e047308cac | [
"C#"
] | 1 | C# | renanetec/MilhasParaKm | 69cd245693660ed8d0ec61f9bb747b6e6164803f | 19aea1ad5746f6ad2f99c51a4ba5a04f593ceedf |
refs/heads/master | <repo_name>rajatmore13/Roger---The-Angularbot<file_sep>/src/app/chat/chat-dialog/chat-dialog.component.ts
import { Component, OnInit } from '@angular/core';
import { ChatService,Message } from '../chat.service';
import { Observable } from 'rxjs';
import { scan } from 'rxjs/operators';
import { AuthService } from '../..... | 2b07abdaca26084c00b5a10b7820f3ce92820fca | [
"TypeScript"
] | 1 | TypeScript | rajatmore13/Roger---The-Angularbot | e65cb751ccc05b0d5489cd803141a7064d1fe040 | 665c8cca2be36fd91e22d8838d5d5afa117a8a8b |
refs/heads/main | <repo_name>Kaihua-Chen/URP-Application-of-IoT-in-Agriculture<file_sep>/Hardware Part (using Arduino)/DHT11_BH1750_spg_data.ino
#include <Wire.h>
#include "Adafruit_SGP30.h"
#include "DHT.h"
Adafruit_SGP30 sgp;
//#define ADDRESS_BH1750FVI 0x23 //ADDR="L" for this module
//#define ONE_TIME_H_RESOLUTION_MODE... | 68158aaf5356766c566197be170f1c12e0672348 | [
"Markdown",
"Python",
"C++"
] | 5 | C++ | Kaihua-Chen/URP-Application-of-IoT-in-Agriculture | f7e57b55c8cad83f1e45368d7b9f168725fed4d8 | 659f382922827571453599eb50d11c9e5cd6f4b3 |
refs/heads/master | <repo_name>yang0010/ddns<file_sep>/src/main.cpp
#include"alisdk.h"
#include"unistd.h"
#include"cstring"
int main(int argc,char *argv[]){
if(argc==2 && strcmp(*(argv+1),"ipv4")==0){
cout<<Ddns::ipv4()<<endl;
return 0;
}
else if(argc==2 && strcmp(*(argv+1),"ipv6")==0){
cout<<Ddns::ipv6()<<endl;
return 0;
}
else if(argc=... | 4cff439a8bae15aebe63141929658f2c994a496f | [
"Markdown",
"CMake",
"C++"
] | 7 | C++ | yang0010/ddns | 20582ba699e901a4425682ab13fe5e6ca49efa7c | 04d464d92f002f3e8807e9726f7b1afec44204f9 |
refs/heads/master | <file_sep>import { ProxyState } from "../AppState.js"
import Pokemon from "../Models/Pokemon.js"
import { pokemonApi } from "./AxiosService.js"
class PokemonApiService {
async getAll() {
let res = await pokemonApi.get('/pokemon?limit=30')
ProxyState.apiPokemon = res.data.results
}
async getDetails(name)... | 9514795753eb761dbb76dc7dd27c60a198d9de8c | [
"JavaScript"
] | 1 | JavaScript | kelseybcrow/pokemon-api | ec8cdeab56831c989d056784aacbffbd18456868 | 102c1fe6d7d4ba815ee6925132ec17e8b5d46d0d |
refs/heads/master | <repo_name>showgames/C_programming3<file_sep>/game.c
#include <stdio.h>
#include "game.h"
/*探索ライン*/
const int LINE[8][3] = {
{0,1,2}, {3,4,5}, {6,7,8}, /*横のライン*/
{0,3,6}, {1,4,7}, {2,5,8}, /*縦のライン*/
{0,4,8}, {2,4,6},}; /*斜めのライン*/
void
init(GAME_STATE* game){
/*ゲーム開始状態に初期化する*/
game->teban = 1;
game->tesu... | fe06e302aee134f50f896322c086337a8e041950 | [
"Markdown",
"C",
"Makefile"
] | 5 | C | showgames/C_programming3 | 3cd61eb84cb746e0a386d77a1e8bc004f5ca29e2 | 64938b9eafe5aca9e34080694a2e7fcd2241ddbe |
refs/heads/main | <repo_name>EnzoMeertens/RichGetRicher-Clarity<file_sep>/README.md
# RichGetRicher-Clarity
A simple lobby that can host multiple games.
<file_sep>/tests/richgetricher_test.ts
import { Clarinet, Tx, Chain, Account, types } from 'https://deno.land/x/clarinet@v0.6.0/index.ts';
import { assertEquals } from 'https://deno.la... | 45664d22abe65f489a461827ccf578a6da295205 | [
"Markdown",
"TOML",
"TypeScript"
] | 3 | Markdown | EnzoMeertens/RichGetRicher-Clarity | f516de2baf6fce6849172d7cc502ec72acfce431 | d512d74cc1b1baa39e217d7ca7d68c901f2b0f74 |
refs/heads/master | <file_sep>package org.usfirst.frc.team1160.robot.subsystems;
import org.usfirst.frc.team1160.robot.OI;
import org.usfirst.frc.team1160.robot.RobotMap;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.Joystick.AxisType;
import edu.wpi.first.wpilibj.Timer;
import edu.wpi.first.wpilibj.command.Subsyst... | da1300798b5fccac6bc6186ae804d0764cf5eccc | [
"Markdown",
"Java",
"Text"
] | 16 | Java | FRC-Team-1160/2016-Stronghold | bc0d7fc11d8e4af88029b9c4817b914995d6e4dd | 58fececaee0889d4288b7ef97f5eb3c07be58739 |
refs/heads/master | <repo_name>VioletGiraffe/websearch<file_sep>/crawler/src/cmainwindow.h
#ifndef CMAINWINDOW_H
#define CMAINWINDOW_H
#include "compiler/compiler_warnings_control.h"
#include "cmyhtmlparser.h"
#include "cwebdownloader.h"
DISABLE_COMPILER_WARNINGS
#include <QMainWindow>
RESTORE_COMPILER_WARNINGS
namespace Ui ... | 3dd9253a34905f4fffaeba7491a671ddb850e645 | [
"Markdown",
"C++"
] | 3 | C++ | VioletGiraffe/websearch | f6e615664a8536160cc853c383627d1523c52ea0 | 9ddef391ceda3dd0446ef3e526709a69a509bca7 |
refs/heads/master | <repo_name>daucloudlab/Django_Demo_Site<file_sep>/article/forms.py
#-*- coding: utf-8 -*-
from django.forms import ModelForm, Textarea, TextInput
from models import Comments
class CommentForm(ModelForm):
class Meta:
model = Comments
fields = ['comments_text']
widgets = {
'comme... | 352e34225ef3766ef9ab279f1fbf30cc9e766bfb | [
"Python",
"HTML"
] | 4 | Python | daucloudlab/Django_Demo_Site | 6a61fc84d7c32f80f5d38aa34256cfb1ed5fac23 | 3a0f50b2e9caadd954bd0dfe8052137f81e68387 |
refs/heads/master | <repo_name>heyu-rise/ig<file_sep>/ig-core/src/main/java/org/heyu/ig/core/service/impl/UipRecordServiceImpl.java
package org.heyu.ig.core.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.heyu.ig.core.UipRequestRecord;
import org.heyu.ig.core.service.UipRecordService;
import org.heyu.ig.core.util.JsonUtil;
imp... | 8c2f2e81d1752ad36371bf6462602b56c899c28a | [
"Java"
] | 1 | Java | heyu-rise/ig | 9ad9f04e6ba54bc4963c927ac459e95b45016e32 | a08eed53772c07e56218739d72b52fc01a2ab8b1 |
refs/heads/master | <file_sep>#!/bin/bash
echo $REDIRECT > ./redirects.json
go-wrapper run
<file_sep># qr-platform-docker
Very simple docker container to run qr-platform.
It is an exercise for the user to figure out how they want to get redirects.json into the docker container. I am currently using an environment variable to pass in the ... | 1dfefc301655f197c5a57f3e0fceda9fc565d3c3 | [
"Markdown",
"Dockerfile",
"Shell"
] | 3 | Shell | BasiliskLabs/qr-platform-docker | bdf16f552795348f4d8b3ceb2f40627ee122d35b | 55889d251ae00709c314f64a485b48ff2f9c6cea |
refs/heads/master | <repo_name>rubaimushtaq/intellij<file_sep>/src/SquareRoot.java
public class SquareRoot {
public static void main(String[] args) {
double a;
a = root(2);
System.out.println(a);
}
static double root(int x) {
return Math.sqrt(x);
}
}
<file_sep>/src/CircleArea.java
public cl... | 129602b62d350bf5a9ad3d00458f872a917ca748 | [
"Java"
] | 7 | Java | rubaimushtaq/intellij | 6fc1a10739dabc2ef07dedf23094af845800e5fe | 866774c2212f3779f5bb9049179d09f37cf0035b |
refs/heads/master | <file_sep><?php
namespace DarkGhostHunter\Captchavel\Http\Middleware;
use Closure;
use DarkGhostHunter\Captchavel\Captchavel;
class VerifyReCaptchaV2 extends BaseReCaptchaMiddleware
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
... | 37cd6f372852125fbe16394543efeadac77d6b69 | [
"PHP"
] | 14 | PHP | kaiusk/Captchavel | e660554c4fab4a2bbb341ac9d6bbb169eb34c734 | 14f2e6c33fdb461ec5eec915e1b8340465783ff2 |
refs/heads/master | <file_sep># coding: utf-8
# A sample Gemfile
source "https://rubygems.org"
gem 'sinatra'
gem 'sinatra-contrib'
gem 'sinatra-activerecord'
gem 'sqlite3'
gem 'rake'
gem 'bcrypt'
gem 'hirb' #sqlite3 見やすく
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
<file_sep>require 'bundler/setup... | f9e3cfe8933a4e62f261947328b95a9c941e87a0 | [
"Markdown",
"Ruby"
] | 3 | Ruby | hinatades/itunes_api | 30ff32b6547a18455268f8f520202692293d7c70 | 9b9ab7b3bc81308b8afdd51e05e6b77a44283982 |
refs/heads/main | <repo_name>sarvesh873/clashrcbackend<file_sep>/rc/urls.py
from django.urls import path
from .views import login , signup
urlpatterns = [
path('signup', signup, name='signup'),
path('login',login, name='login'),
# path('logout',logout, name='logout'),
# path('result/',result),
]<fil... | 76793a19d746bde343832e65e516866ec7e91936 | [
"Python"
] | 6 | Python | sarvesh873/clashrcbackend | 7d5b33ff377fc220ed5191c73ae2c0109487c611 | b90ea223990bf38462d1ef315b05098479ab8f86 |
refs/heads/master | <repo_name>chiragsharma991/GRN<file_sep>/app/src/main/java/com/gayatry/model/TaxListModel.java
package com.gayatry.model;
/**
* Created by Admin on 04-May-16.
*/
public class TaxListModel {
public String Amount;
public String PrintName;
public String getRate() {
return Rate;
}
public v... | 2694a8135b996409f7cef4b7ce026359f74c726f | [
"Java"
] | 18 | Java | chiragsharma991/GRN | 8f52cd8614e552c8a44e146443228b290922495d | 9c01b206b2d6c44aaca5665f54819208df904999 |
refs/heads/master | <file_sep>import pygtk
pygtk.require('2.0')
import gtk
import server
labelText = """ Webrift server running at ws://localhost:1981.
Close this window to exit the server."""
class WebRiftApp:
def delete_event(self, widget, event, data=None):
return False
def destroy(self, widget, data=None):
... | 7f363c9e43204939deb0ceb1929f728dbbe8e7ae | [
"Markdown",
"Python"
] | 3 | Python | brianpeiris/webrift | 90b91acfb4204524fef71782702443db8eb79800 | 247800bbdd421be0621586c1218dbe4744054242 |
refs/heads/master | <repo_name>mbyse/WarCardGame<file_sep>/Deck.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MegaChallengeWarGame
{
public class Deck
{
public string Suit { get; set; }
public int Value { get; set; }
public string Card { get; set; }
... | 7add59d12213177a6d86f9c9ce5a9e34a5431ab8 | [
"C#"
] | 2 | C# | mbyse/WarCardGame | 3565f2fc2cead70c092ea13ddd879bf9e1d8d677 | af0b81b71f067727923d0c11bda5f3db25f1ef8e |
refs/heads/master | <repo_name>tahir-u/js-data-structures<file_sep>/README.md
### Data Structures in JavaScript
#### The Array Data Structure
From [Wikipedia](https://en.wikipedia.org/wiki/Array_data_structure):
*An Array is a data structure consisting of a collection of elements (values or variables), each identified by at least one a... | fcc421beafd528f2f52d7b4b517a0b76053b80ea | [
"Markdown",
"JavaScript"
] | 6 | Markdown | tahir-u/js-data-structures | 233b516e8933d89b4f3e584bc6be40805b45c5d7 | bacdf7e570a47265acae34a1ca9108a57c802925 |
refs/heads/master | <file_sep>
var expect = chai.expect
var assert = chai.assert
describe('Test para reservar un horario', function(){
it('Eliminar Horario reservado', ()=>{
aplicacion.listado.reservarUnHorario(1, "13:00")
var restaurante = listado.buscarRestaurante(1)
expect(restaurante.horarios).to.not.include... | 848cc83cb4b6ef0fa6684815a6628aad2c473732 | [
"JavaScript"
] | 1 | JavaScript | catalinasy/reservando | 08b7226e2ba0849dec37fdb17c3aaa1dbcd8e21a | d61130c0e344fafc565e38caffaa181987e82d7a |
refs/heads/master | <file_sep>[package]
name = "lc3vm"
version = "0.1.0"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
[dependencies]
getch = "0.2.0"
byteorder = "1"
nix = "*"
ctrlc = "*"
rustyline="3.0.0"
nom = "^4.1"<file_sep>// Parser for debugger commands
// st print PC and COND
// p R[0-7] direct print
// p x[... | ca961f51241354cc2e154202ae491a3972bdb33e | [
"TOML",
"Rust"
] | 5 | TOML | laynor/lc3 | bbe63443fd47b44c2296587acad5db7942c1a48b | 7a1d3fc78c7d91ca122b94b0403a517fa1105a62 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <math.h>
#include "source.h"
void simple_sum(void)
{
}
void simple_math(void)
{
}
| 554b871aed4d005fe463bf071688a1c145e36bb3 | [
"C"
] | 1 | C | calsaviour/aalto-c | f9cabbbb420a13ac9cec2e60ccc9ee48d82708b3 | f2a09fd6a54a8ccca0be4142e2271fa7b7dd2d79 |
refs/heads/master | <file_sep>--[[
ScoreState Class
Author: <NAME>
<EMAIL>
A simple state used to display the player's score before they
transition back into the play state. Transitioned to from the
PlayState when they collide with a Pipe.
]]
ScoreState = Class{__includes = BaseState}
--[[
When we enter the score state, we expec... | 6d3ebd52aa0cefb1d60025262511858589aadc63 | [
"Markdown",
"Lua"
] | 3 | Lua | nabeelmohammed1/cs50g-kurt | 748245274b202a44335f32d247579660721fbc88 | 1b5b76ca2e21380e17a522340164abfc7803a57e |
refs/heads/master | <file_sep>import java.awt.Color;
import javax.swing.JFrame;
public class Start extends JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
Main parentMain = new Main();
public Start(){
World world = new World(this);
add(world);
setTitle("Tree Evolution");
setSize(150... | b33dc044ff01b504efb7811def4e2887bcaf39f4 | [
"Java"
] | 4 | Java | alan850627/TreeEvolution | cf38e891bf291ebb96b4304249b9814555eb61e3 | 2f857d85efc930f6a92bbfcaa1e57e0a7dee2de5 |
refs/heads/master | <file_sep>#!/usr/bin/python3
# accept commands form cli
import argparse
import json
def main():
inventory = {}
if args.list:
inventory = example_inventory()
elif args.host:
inventory = empty_inventory()
else:
inventory = empty_inventory()
print(json.dumps(inventory))
de... | b8aa9bb1d6f5488efce3fbe22fa43fdb1716a11d | [
"Python"
] | 1 | Python | cami2casi/20200323openstack | 5d641d6942c3a1e64bebecb8d4b6bd3536fa1fc9 | 2e8cab629c19db00dcd7468e09917025c08ea974 |
refs/heads/master | <file_sep># News_Classification
[](https://pytorch.org/)[](https://www.python.org/)
#### 介绍
基于pytorch实现的 TextCNN 模型
#### 环境
python 3.6
pytorch 1.8.1
jieba 0.42.1
gensim 4.0.1
#### 数据集
分类... | 6330ecd271fd3a462c0a6909ae818b65bc3cda48 | [
"Markdown",
"Python"
] | 9 | Markdown | zzq142/News_Classification-master | d9039fc8c205991783e16acac3e7e3017e2da9c3 | 54efbdeda9d9ab0b2a9eb2fca5367027ee2744ad |
refs/heads/master | <repo_name>kylehotchkiss/waypoints<file_sep>/readme.md
## Waypoints Game (for Arduino)
A GPS-based Driving game built on Arduino
[Check out the Project Page for project details and for the gameplay details!](http://kylehotchkiss.com/blog/waypoints/)<file_sep>/waypoints.ino
/**
*
* Waypoints Game (for Arduino)
* Co... | 878cbcc44fba81cfa45c0b14ff3c0ff726a6433b | [
"Markdown",
"C++"
] | 2 | Markdown | kylehotchkiss/waypoints | 61916685b6f5b9f1c652a1cc315d980cbcfca6dc | e8ba3e92a4534ca20d0ce6bd1c91b757c074ca2e |
refs/heads/master | <repo_name>daaawx/test_django_microservice<file_sep>/pizza/admin.py
from django.contrib import admin
from pizza.models import Pizza
@admin.register(Pizza)
class PizzaAdmin(admin.ModelAdmin):
pass
<file_sep>/README.md
# Test Django Microservice
A test project where we build a pizza microservice with Django.
<fil... | 504ccda3b0eaf78beb6ce8e098c34107982537f0 | [
"Markdown",
"Python"
] | 6 | Python | daaawx/test_django_microservice | a35b6b724c50aa59e8d3387a5bc86084bef74833 | 8ce85cb55845546d28ab371408cd2e23ddc17aca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.