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>yuvraj-coditas/login<file_sep>/src/main/webapp/WEB-INF/resources/data.properties
user.pincode=411213
user.street=User Street<file_sep>/src/main/webapp/WEB-INF/classes/labels_zh_CN.properties
test.label=Hello World Chinese<file_sep>/src/main/webapp/WEB-INF/classes/labels_en_US.properties
test.label=Hello Worl... | dae66a7b62c98fbefe8481d8b851693af4af3b7d | [
"Java",
"INI"
] | 7 | INI | yuvraj-coditas/login | f72b1cfc018f04997f51619d934128454b9712f7 | 5288f4f8dc138b1182f2399bc5bf49033f83de29 |
refs/heads/main | <file_sep>const express = require('express')
const http = require('http')
const path = require('path')
const socketio = require('socket.io')
const {generateMessage , generateLocationMessage} = require('./utils/messages.js')
const {addUser ,removeUser , getUser , getUsersInRoom} = require('./utils/users')
const app = ... | 19319aa262d6aeb61c5f60df1e3899185408ac45 | [
"JavaScript"
] | 2 | JavaScript | Drigger91/Chat-app | 511d90e005c0a47213f9d5fffffd900441dbb28b | d09fb4337624ab0d359c272508fcec3629231c28 |
refs/heads/main | <file_sep>var sum = function (acc, x) { return acc + x; };
var updateTotProductCosts = function (ele) {
var quantity = parseFloat($(ele).children('.ucost').text().slice(1));
var unitCost = parseFloat($(ele).find('.qty input').val());
var totCost = quantity * unitCost;
$(ele).children('.tcost').html("$" + totCost.t... | 711032d0df45941b00660be4fb4544b5fd974c33 | [
"JavaScript"
] | 1 | JavaScript | DrDraenor/SimpleShoppingCart | d3c52d96bc77f731d690238db5488016a696c7f3 | 5396b5be1861247994d6bfb9cfc00822b375eb8c |
refs/heads/master | <repo_name>hrs2203/news_backend<file_sep>/util/dataTypeCheck.js
class TypeValidator{
isString(input_var){
return (typeof(input_var) == String);
}
isInteger(input_var){
return (typeof(input_var) == Number);
}
isBoolean(input_var){
return (typeof(input_var) == Boolean);
... | 14d3014302b6cd61161b912dc545c5e8094fe924 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | hrs2203/news_backend | 62781e5fdd5306b46465aa67cf6895033e0e8bef | 3f843e95fa5d15d3fa30cec87f2dd8688502d4a4 |
refs/heads/master | <repo_name>ERICKLEO-ING/DESA<file_sep>/ERICK/Infomatica/Restaurante/Model/ProductoModel.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace Infomatica.Restaurante.Model
{
public class ProductoModel
{
string Codigo { get; set; }
string Descripcion { get; set; }
... | f6895c0dda225ec90b6d6480df8ff14a087a9962 | [
"Markdown",
"C#"
] | 13 | C# | ERICKLEO-ING/DESA | 408ad6aa9dfbcecc8514463e5b8fbc6faa9f98ea | 2b26e13e78078f461b34a3f1965a89db7fd61359 |
refs/heads/master | <repo_name>Adriano-Diogo/primeiro-repositorio<file_sep>/Site-novo/js/page.js
var div_historia = document.getElementById("history");
var historias = ["Soul music ou apenas soul é um gênero musical popular que se originou na comunidade afro-americana dos Estados Unidos nos anos 1950 e no início dos anos 1960. Na década ... | 1904e3e170059e91b2daa91dea8dd561bc8f378e | [
"JavaScript"
] | 1 | JavaScript | Adriano-Diogo/primeiro-repositorio | ae6a81e8344dfc812d41922db48fc49000d7bdd9 | 8ae168bc326d35a232b9e4fadeb476e5d886c28f |
refs/heads/master | <file_sep>package test;
/**
* Created with IntelliJ IDEA.
* Author: CuiCan
* Date: 2017-9-4
* Time: 10:51
* Description: 发短信测试
*/
public class SmsTest extends BasicTest {
/**
* UserId 东方般若提供的用户名
* Password 东方般若提供的密码
* Mobiles 手机号码(支持多手机号,以英文逗号分隔,
* Get最多不超过1000个手机号;
* Post无限制,建议不超过1万个,手机号越多响应时间越长)
* Conten... | 94f2a737265acb81bff638f979944acb7eac9ac1 | [
"Java",
"SQL"
] | 4 | Java | yyccbbz/evergrande-employee | 29024d9afcfb6c391b6fbae7f1733f0f4829529b | 5ad0c222275c85859ccd080a72da1b9838d6e09e |
refs/heads/master | <repo_name>ewerton-augusto/frontend-test<file_sep>/src/resources/js/app/models/ExtratoTransacoes.js
export class ExtratoTransacoes{
constructor(){
this._transacoes = JSON.parse(localStorage.getItem('transacoes')) || [];
this._total = (localStorage.getItem('total')*1);
}
adiciona(transacao){... | ef5bf527889ba54a19178ceb6e06b24158222141 | [
"JavaScript"
] | 4 | JavaScript | ewerton-augusto/frontend-test | 29c2ae2d3779313a31340fa35fd06dd18a1f08d9 | c08dc5be8d01e73a8a00986b047af8dfb2c0cead |
refs/heads/master | <repo_name>wap300/backuper<file_sep>/README.md
backuper
========
Backup system consisting of a pair of client and server. Working, but not fully finished.
It works in the following way:
- Setup and run your server.
- Enter the ip and port of the backup server:
.split('').reduce(function(r, n) {
return r + parseInt(n)
}, 0))
<file_sep>
function candies(n,m){
var c = 0;
c = m/n;
c= parseInt(c) * n;
return c;
}
console.log(candies(3,10));
module.exports=candies;
<file_sep>function checkPalindrome(aux) {
... | 53e7044899806941407e8038c83c9408426ab777 | [
"JavaScript"
] | 3 | JavaScript | mairaingrid/laboratorio | c4a3cbee3deaa1a83b4f22617af2b52f7a7bc604 | cf28581c1ee18b5659b1fdb14405e2754515a036 |
refs/heads/master | <repo_name>DXBrazil/GetStarted-iText<file_sep>/readme.md
Desafio: Gerar os arquivos XML a partir de PDF
================================================
Exemplo: Documento _p40.pdf_ ([download](ConsoleApp1/samples/p40.pdf))
Nesse documento, existem 6 atos (total de 8 ao somar um incompleto e uma retificação), que são... | 3ea8ea01571c4de131907c71624d773806efbd49 | [
"Markdown",
"C#"
] | 5 | Markdown | DXBrazil/GetStarted-iText | ede09f9609b6dd51bdd0ed9c43c2d5c36cad436f | a8263dd8a52bdf055299a8cc693e3104b97eae73 |
refs/heads/master | <repo_name>ry-pe/ry-pe.github.io<file_sep>/ad.js
document.getElementById("advertisement").style.display="block"
| 149fb67cc12e8fb8a45b12f72f74d008291f71bc | [
"JavaScript"
] | 1 | JavaScript | ry-pe/ry-pe.github.io | c93ded59bd5700f23da45d9d885cee76207bf0fa | dad06ba2f49797283deed451f82b6da7ae41c798 |
refs/heads/master | <file_sep>
#logistic
scl <- function(x){ (x - min(x))/(max(x) - min(x)) }
scl <- function(x){x^2}
cancel<-(dataset_1$cancel)
dataset_1$V7<-dataset_1$tenure/dataset_1$len.at.res
dataset_3<-data.frame(cbind(scl(dataset_1$tenure),scl(dataset_1$n.adults),scl(dataset_1$n.children),scl(dataset_1$len.at.res),scl(dat... | 0f17ff53eedc76d545a8536fc75fd6a958a65833 | [
"R"
] | 4 | R | roshanzubair/Travelers-claim-prediction | 672a068ddd2a75eb41ceb1eafaeb28748a7e4c89 | 8c911824dc0715a8492d9983f3229788ad155bc7 |
refs/heads/master | <file_sep>import React from "react";
import StripeCheckout from "react-stripe-checkout";
export default function StripeGateway({ amount }) {
const API_URL =
"http://localhost:5001/buy-with-stripe/us-central1/makePayment";
//https://us-central1-buy-with-stripe.cloudfunctions.net/makePayment
//http://localhost... | 959771b5e53a0a23e0cfcf0f9c1c5d3e1e165f1c | [
"JavaScript"
] | 1 | JavaScript | vivekrao007/buy-with-stripe-react | d9560d749a91314c69a8f6359d331859d732461b | bcb6496e53178b0f8d70f7c57431064352a0b05b |
refs/heads/master | <repo_name>frenchbread/tomatoo-blogging<file_sep>/core/templatetags/filtrs.py
from django import template
register = template.Library()
@register.filter(name='addcss')
def addcss(field, css):
return field.as_widget(attrs={'class': css})
@register.filter(name='ph')
def ph(field, ph):
return field.as_widget(a... | 6b86599cc65df5cf838b3c67a26a3185c09a5960 | [
"JavaScript",
"Python",
"HTML",
"Markdown"
] | 10 | Python | frenchbread/tomatoo-blogging | dd57e52fdd9aa2d64f90fdde6c4ee7fccd8019db | 14d7fb249925cea03f47e5f59cf28b9539915b04 |
refs/heads/master | <file_sep>import sys
user_input1 = input("Enter List1 with space in between numbers: ")
list1 = user_input1.split(" ")
user_input2 = input("Enter List2 with space in between numbers: ")
list2 = user_input2.split(" ")
def diff(l1, l2):
return[x for x in list2 if x not in list1] # Check values in List2 if in List... | 3e638f87521bffa785b371b031cb482546c1dae2 | [
"Python"
] | 4 | Python | alexandrehuynh/Metis-Challenge-Questions | 66b9f322c7cda6412d05ddb9dcf810737750514a | 8eb9c94295f32b7e4653cd3a6dcfe2f8f419a9b4 |
refs/heads/main | <file_sep>import { ComponentDisposer } from '../../utils/ComponentDisposer';
import Alert from './Alert';
const targets = Array.from(
document.querySelectorAll<HTMLButtonElement>('.js-alert')
);
const instances = targets.map((target) => new Alert(target));
module.hot.dispose(() => {
ComponentDisposer(instances);
... | d27c446cd13c0a108c749871734f37f661182bd7 | [
"JavaScript",
"TypeScript"
] | 13 | TypeScript | jffr/baardagaam | 350870e79a26b638d9ead65c62d1fb4b8a8bd880 | 75dcb882af3af936175f3d6af47c18d291e58b8c |
refs/heads/master | <file_sep>import React from "react";
class TwitterMessage extends React.Component {
constructor() {
super();
this.state = {
value: '',
chars_left: 140
};
}
maxChars = event => {
var input = event.target.value;
this.setState({
chars_left: 140 - input.length,
value: ... | 88488970ee200f987f2d10df9edbfcf9e1e90126 | [
"JavaScript"
] | 2 | JavaScript | aimeemcgrenera/react-forms-lab-v-000 | 759de7c10fc4fe98b7c3010534729e014fbc15f9 | 4032b8aeb46d0abf05a5c533d886d3c636335817 |
refs/heads/master | <repo_name>AngelinaT-t/BooleanRetrival_PostingLists<file_sep>/README.md
# Boolean Retrival(布尔检索) and Posting Lists(倒排索引表)
## 问题描述
>利用文档和词项的布尔关系建立倒排索引表,根据倒排索引表进行布尔表达式查询.这里只实现AND操作.
## 布尔检索
>布尔检索模型反应了文档和词项集合的关系
布尔检索模型为一个关于词项-文档关联的二维矩阵,其中每一行表示一个词(term),每列表示一个文档(document).当词t在文档d中存在时,矩阵元素(t,d)的值为1,否则为0
 {
println("Hello, Kotlin JS!")
}<file_sep>Kotlin JS Hello World Demo
==========================
This project is created by IDEA.
`Build` -> `Build Project` will compile `src/*.kt` to javascript files in `out/`.
Open `index.html` to run the javascript code.
How to debug th... | da15b45a43a76e0ed33bcd530e728ffc2e92dfd0 | [
"Markdown",
"Kotlin"
] | 2 | Kotlin | freewind-demos/idea-kotlin-js-hello-world-demo | 86d0bf0663ab12c3d39411bb4fc3ed6a8d5f1637 | 86b79f761487d3b1e7bb2e89f058d824db72c638 |
refs/heads/master | <file_sep><?php
/**
* Plugin Name: JSON Basic Authentication
* Description: Basic Authentication handler for the JSON API, used for development and debugging purposes
* Author: WordPress API Team
* Author URI: https://github.com/WP-API
* Version: 0.1
* Plugin URI: https://github.com/WP-API/Basic-Auth
*/
function... | 2a950c3b6d68fad4b10066b0d79da994562f2472 | [
"PHP"
] | 1 | PHP | ashucg/Basic-Auth | 020237598089cc9d859b053f891b4343bf50de35 | ed2f8b1d22b8e0bd82036345c2533943eab001c0 |
refs/heads/trunk | <file_sep># $NetBSD: Makefile,v 1.5 2019/05/07 08:50:36 adam Exp $
DISTNAME= certbot-nginx-0.34.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= security python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/certbot-nginx/}
COMMENT= Nginx plugin for Certbot
MAINTAINER= <EMAIL>
HOMEPAGE= https://github.com/certbot/certbot
LICEN... | f81b00acb16519b6ee9bc6ad742db0342725c446 | [
"CMake",
"Makefile",
"Rust",
"Python",
"C",
"C++",
"Shell"
] | 70 | Makefile | realzhtw/pkgsrc | 77e604449bf22ee3df039bab5a8169bce4deef38 | f37ea4f9c0321cae1ef98090882fd09961af08be |
refs/heads/master | <repo_name>wilmercity93/Proyecto-Escuela<file_sep>/preguntas/edit.php
<?php
include('conn.php');
$id=$_GET['id'];
$pregunta=$_POST['pregunta'];
$a=$_POST['a'];
$b=$_POST['b'];
$c=$_POST['c'];
$d=$_POST['d'];
$respuesta=$_POST['respuesta'];
mysqli_query($conn,"update pregunta set pregunta='$pr... | 086fa146f7008cf37898595491b60a623b6efeb4 | [
"Markdown",
"PHP"
] | 9 | PHP | wilmercity93/Proyecto-Escuela | ebe4ead621246fc439c58d7b50a164463d607bd7 | bb07a983d104acba6ae28d30922394f9252839e0 |
refs/heads/master | <repo_name>weakit/GCI19-NewsScraper<file_sep>/README.md
# News Scraper
A simple news scraper in python.
Finds articles of interest from [newsapi.org](https://newsapi.org/ "News API"), renders html with the articles, and then opens them in your browser.
You need to set `API_KEY` in `newslist.py` for the script to wor... | 708cf111c634456df11ad1df21f05a28a73497ae | [
"Markdown",
"Python"
] | 2 | Markdown | weakit/GCI19-NewsScraper | 7d139e5413e548f6117f1d656d8513a2a3f987aa | d4a22c2a06602b1190a3630ea9e5272372efff3d |
refs/heads/master | <file_sep>//Modelos de negocio
import User from '../models/User';
import Task from '../models/Task';
import ItemTask from '../models/ItemTask';
//Schemas de la base de datos
import { ItemModel } from './schemas/itemTaskSchema';
import { TaskModel } from './schemas/TaskSchema';
import { UserModel } from './schemas/User... | 8d4eb2b4fb11bf47fd56d33542c410abce9d49ac | [
"Markdown",
"TypeScript",
"Shell"
] | 14 | TypeScript | spaezsuarez/to_do_graphql_server | 517ff7dd2af4a82673b6ef3dc543204aae0a2d8d | 5087eeebf001710388fe6a221884e95f45d9e191 |
refs/heads/master | <file_sep>var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var TopstorySchema= new Schema({
title: {
type: String,
requied: true
},
imagelink: {
type: String,
required: true
},
titlelink: {
type: String,
required: true
},
comm... | ad2b97f98889030e0a7a8e63e669510d335fd520 | [
"JavaScript"
] | 1 | JavaScript | Elhanang2/Scrap | 85af8ade8e874dc8d1f9581969f68cb4120883a8 | 60c6754a80defd384bd0e0f573fec46f73a49df2 |
refs/heads/master | <file_sep><?php
/*
Plugin Name: Comments Plus
Plugin URI: http://premium.wpmudev.org/project/comments-plus
Description: Super-ifys comments on your site by adding ability to comment using facebook, twitter, and google accounts. Once activated, go to Settings > Comments Plus to configure.
Version: 1.5.3
Text Domain: ... | 65489aa7add1f7dc406e637a6fb7dcfc369dce61 | [
"JavaScript",
"PHP"
] | 24 | PHP | cgaubuchon/private-pooch | bd385c793e94eb60c6dbf027ec42023f72a34fe4 | 20a02cb8c97a539c379cd51ece9d1ff08eea44e9 |
refs/heads/master | <repo_name>gulpjs/docs<file_sep>/website/siteConfig.js
const siteConfig = {
disableHeaderTitle: true,
disableHeaderTagline: true,
url: 'https://gulpjs.com/docs/',
baseUrl: '/',
organizationName: 'gulpjs',
projectName: 'docs',
customDocsPath: 'converted-docs',
headerLinks: [
{href: './', label: 'Docs... | 7b9634e8bf42e1497038ad34d6264e86027dcc52 | [
"JavaScript"
] | 2 | JavaScript | gulpjs/docs | d1beb2e2290ce13965381a501aa750062a7ca565 | ccfa7f1337facb2f663165bdabd578c117a59c0c |
refs/heads/master | <file_sep>package persistence
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
)
func init() {
createTable()
}
func connect() *sql.DB {
user, password, host, database := "admin", "root", "127.0.0.1:32768", "dev_logger"
db, err := sql.Open("mysql", user+":"+password+"@tcp("+host+")/"+database+"?parseT... | ac7ce694c17605d9440bbd1d1290943ab0b839e5 | [
"Go Module",
"Go"
] | 7 | Go | MihaiBlebea/go-blackjack | f34ba4d51bae1cce01237377c31a3dc69ee85963 | 0f566ee414a59d23d2e3c8acfd0fda444554632e |
refs/heads/master | <file_sep>messages.welcome=Bienvenue au support. Veuillez vous connectez
<file_sep># Asynchronous message board with Spring 4 and Servlet 3 - Long polling technique
Allows multiple users to connect a chat room and exchange instant messages, using long polling.
Manages timeouts for unactive users and automatically ... | 862daf144ac2ea12ded3d06cea8f51cc3bc59d9a | [
"Markdown",
"JavaScript",
"INI",
"Gradle",
"Java"
] | 11 | INI | sashokbg/company-web | ab6262a0a6693965ffa2ed6be6e93370d52eac7c | bb706ee6c065f1d2ac519cde1b5e06fe51182bc3 |
refs/heads/main | <file_sep>import socket
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
ip, port = "127.0.0.1", 50
client.connect((ip, port))
Client = True
name = input("Nom du joueur ? ")
while Client:
chat = input(f"{name} > ")
client.send(f"{name} > {chat}".encode("utf-8"))
<file_sep>import pygame
class Joueur:
... | 141380c502e9427d41b72c02c2af9f9685db597c | [
"Markdown",
"Python"
] | 7 | Python | O-58-K/Projet-Dev-Logiciel | de014269d04621ab4511c4b89e7693cbb8c21824 | b799a10da1138771e809916de04b0e9008cd151d |
refs/heads/master | <repo_name>ArseniyZhivyh/test_seus<file_sep>/test_seus/pdf_parse.py
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 23 12:42:14 2020
@author: ars14
"""
import fitz
import pandas as pd
import os
from sqlalchemy import create_engine
import psycopg2
import numpy as np
#перечисление серверов и создание датафр... | 2bf7481e2c118cf28d195beeead7e4436daa1583 | [
"Markdown",
"Python"
] | 4 | Python | ArseniyZhivyh/test_seus | 261a2eef374485f593c208ae5f65589752544523 | 1b3b10076e2ce6e79deff2aeb69ca86ac4061251 |
refs/heads/master | <repo_name>aserv/Roguelike<file_sep>/Assets/Scripts/CameraController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour {
public float leftBound;
public float rightBound;
public float upBound;
public float downBound;
public float lerp... | c6d3780d24b43f854285e27f503f419da6f85d3a | [
"Markdown",
"C#"
] | 15 | C# | aserv/Roguelike | 2671653eb653a4e8de2bb4098bfd768a208092d3 | 7d2734862918fbe44ecbf5cf5843875f0ffdae62 |
refs/heads/main | <repo_name>ishitajain99/musicperk<file_sep>/README.md
# musicperk
internship task
<file_sep>/ticker.py
from datetime import datetime
import mysql.connector as SQL
import pandas as pd
conn = SQL.connect(user="root", passwd="", host="localhost",
database="musicperk")
cur = conn.cursor()
d... | 0a78a1ce2e98145f215ed20779b6c30a26d1500a | [
"Markdown",
"Python"
] | 2 | Markdown | ishitajain99/musicperk | a604cb912bcf583ab289abff4317bf4a8b96d7e6 | 3019fedb70369c712c80927986a31c4b44ed780d |
refs/heads/master | <file_sep>bl_info = {
"name": "Texture Retriever",
"author": "Quaddy9779",
"version": (1, 1),
"blender": (2, 77, 0),
"location": "View3D > Tool Shelf > TexRet",
"description": "Copies all your textures and paste it to a target Directory",
"warning": "",
"wiki_url": "",
"cate... | 7302fc1473603fe4b6c126dc12e126eb056974f3 | [
"Markdown",
"Python"
] | 2 | Python | quadlegacy/TexRet | 40a49fb33bba5a854c9cb7848a19c301780a27d3 | bd8cc19e2072bda6f367329f4f01c121dc245bce |
refs/heads/master | <file_sep># Generated by Django 2.2.7 on 2019-11-27 14:17
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('todo', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='todoitem',
... | 758edaf6ce5f578b59b9feb8df85322dc81a0505 | [
"Markdown",
"Python"
] | 2 | Python | greenszpila/DjangoProject | 7c52d17ec86872c5f46cb57422cdc249c3d821f2 | 61a02189b3887100cef147e1e1f4b6e36726b279 |
refs/heads/master | <repo_name>bventel/django-deployment-example<file_sep>/learning_users/basic_app/urls.py
from django.conf.urls import url
from basic_app import views
from django.urls import path
# TEMPLATE_URLS
app_name = 'basic_app'
urlpatterns = [
url(r'^register/$', views.register, name='register'),
path('user_login/',vi... | c04882208e4f3d6d755016cb918b2b6158deda2a | [
"Python"
] | 1 | Python | bventel/django-deployment-example | aa7e4dd36b2d41536a0d786c02b526f2a85e903f | 83d507dda6b5ef0f673e303643519f4d940d05fb |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.salsamobi.university.repository;
import com.salsamobi.university.daoimpl.Student;
import java.util.HashMap;
/**... | c90093b6fa1ae09932be0b713ee46c234f9b689f | [
"Java"
] | 10 | Java | aduranv87/salsamobi | 6901cb787328c6e0844b22a61a64ff990913c2f3 | 17ef11d88ffb376a30819c3e74d8086bfac7add5 |
refs/heads/first-example | <file_sep>export const SET_DATA = 'SET_DATA';
export function setData(data) {
console.log('===== 5 =====')
return {
type: SET_DATA,
data,
};
}<file_sep>import * as actions from './actions';
import { combineReducers } from 'redux';
function ProductInfo(state = {data: 0}, action) {
switch (action.type) ... | 50c9b5c4b189710159fa0f3dd382f50312beb25a | [
"JavaScript"
] | 2 | JavaScript | v123582/react-redux-sample | 381c905b0a5bfd91bb510b16bb7719a57108f34a | a0f6b73a933a2c4ccf5928699dbe1d6b75f68365 |
refs/heads/master | <file_sep>lista_inicial = ['im1 4,14', 'im2 33,15', 'im3 6,34', 'im4 410,134']
lista_nueva = []
print (lista_inicial)
for i in lista_inicial:
name, space, tupla = i.partition(" ")
x = int(tupla.split(',')[0]) #asignamos a x el primer valor de tupla y lo convertimos a int
y = int(tupla.split(',')[1]) #... | 49ce33f2d8dea71e7dc5dec8963b17640324696f | [
"Python"
] | 1 | Python | robolfba/cualquiera | 22f1033f84d00625641bd48a23a6e3a07f4e6023 | 5cedf40fc7eedee2b279a520e3cae2222519cdac |
refs/heads/master | <repo_name>Xotabu4/api-integration-tests<file_sep>/test/1.ts
import * as chai from 'chai'
import { expect } from 'chai'
import chaiHttp = require('chai-http')
chai.use(chaiHttp);
//TODO: add global .use(errorMiddleware)
let errorMiddleware = function (request: ChaiHttp.Request) {
console.error('ERROR MIDDLEWARE W... | 2ac786bdaeb9af16401ed7fde49abd0744c9641c | [
"TypeScript"
] | 1 | TypeScript | Xotabu4/api-integration-tests | ed25d04f3082162dc2186661d7e30b3ce1fbc907 | 2aeea011c4499e75853430cec2e726b2dd73b51f |
refs/heads/master | <file_sep>import { Store } from 'redux';
import { Container } from 'inversify';
import {
ILogger,
LoggerFactory,
} from 'ts-smart-logger';
import { IEffectsAction } from './effects.interface';
export class EffectsService {
/**
* @stable [15.03.2020]
* @param {string} actionType
* @param {boolean} over... | 0e7f49c6aa522af535acc729117f7836857b8f7a | [
"Markdown",
"TypeScript"
] | 8 | TypeScript | apoterenko/redux-effects-promise | 4998fe6da0df32097623889fc4c6487554c1ddb7 | db2b5eb44c136de423ee1dd922f2ac04b6963910 |
refs/heads/master | <file_sep>package com.fdh.simulator.utils;
import java.io.ByteArrayOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.fdh.simulator.Simulator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Utils {
private static final Logger logger = LoggerFactory.getLogger... | 0f4770b4c6027b960e58197e8e56ad183908c5c3 | [
"Java",
"Maven POM"
] | 12 | Java | endlessc/virtualTbox | 64086854bb3851f86eba6ab9b3b0d856acd23048 | 98d2a9d7d5eaddbb6b4fa360b6ba545a7e287931 |
refs/heads/master | <repo_name>Msalpdogan/Asp.Net_Mvc_News_Portal<file_sep>/Models/haber.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace obajans.Models
{
public class haber
... | 28f00e0ad374bce4de2f732d8d31d8b465f76dd2 | [
"C#"
] | 9 | C# | Msalpdogan/Asp.Net_Mvc_News_Portal | cdf270f3cf3ba8e04df99a671f496f1b51e4ffef | 311005d222648b3313e8a3e194ed645c4c89b26d |
refs/heads/master | <file_sep>print("Penentuan Bilangan Genap dan Ganjil")
def bilgenapganjil(bil):
sisa_pambagian=bil%2
if sisa_pambagian==0:
print("Bilangan ini bilangan Genap")
else:
print("Bilangan ini bilangan Ganjil")
return
nilai_bilangan=int(input("Masukkan bilangan bulat: "))
bilgenapganjil(nilai... | d5ed9d7b96652f82e2d0bbb8baf87a1191eb4fae | [
"Markdown",
"Python"
] | 4 | Python | azispc/Python | 52d9d28468c7493938ca27063ee1f551d44210a2 | 3fb3feed15c5a68545e0fb18c289e10bab8f2c7c |
refs/heads/master | <file_sep>import Link from 'next/link';
// style
const linkStyle = {
marginRight: 15
};
// header function
export default function Header(){
return(
<div>
{/* link to home */}
<Link href="/">
<a style={linkStyle}>Home</a>
</Link>
{/* l... | 3d5ccc6e715559cc92c5890cb2b5faff8a70ad92 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | mmsesay/nextjs-boilerplate-project | e98bd448627ab344314ba9b6c89e438968d3b406 | b6468fa1c4f4950f4d8836aa3ce1a3481ab64ee9 |
refs/heads/master | <repo_name>kmala/controller-sdk-go<file_sep>/api/appsettings.go
package api
// AppSettings is the structure of an app's settings.
type AppSettings struct {
// Owner is the app owner. It cannot be updated with AppSettings.Set(). See app.Transfer().
Owner string `json:"owner,omitempty"`
// App is the app name. It can... | 858f88335fa885bf3cadf350a67f0eecdaa6f049 | [
"Go"
] | 1 | Go | kmala/controller-sdk-go | 0dfe5494265c3517a2d201569b7aea3f7cce0035 | e80eb0fcbbcbb02cb205769e91ff38829bfba623 |
refs/heads/master | <repo_name>rozdolski/JSON-tutorial<file_sep>/JsonTutorials/src/main/java/com/rozdolskyi/jackson/databinding/JsonRowDataBindingUserExample.java
package com.rozdolskyi.jackson.databinding;
import org.codehaus.jackson.map.ObjectMapper;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import jav... | 7aa8447402eadd1851fb2c2d06416c1af1bd186c | [
"Java"
] | 4 | Java | rozdolski/JSON-tutorial | 6bb903edc0ac6c6e239b09930574465052b4d371 | 18168cf50791add84734cc8bce15b1d5539173b7 |
refs/heads/master | <repo_name>liuxiaogou/vue-self<file_sep>/index.js
function defineReactive(obj,key,val){
observe(val);
const dep = new Dep();
Object.defineProperty(obj,key,{
get(){
console.log('值为'+val);
//依赖收集在这里
Dep.target&& dep.addDep(Dep.target)
return val
... | 18c4738814c94448ce217d8bad9fe42e94ff85d0 | [
"JavaScript"
] | 2 | JavaScript | liuxiaogou/vue-self | d621e815fb700f7a1791b27b0c8dd399233bffba | 3508d9f0064dbad60625c855503e336aa1d94361 |
refs/heads/master | <repo_name>abhishekjd/node-todo-api<file_sep>/server/test/server.test.js
const expect = require('expect');
const request = require('supertest');
var {ObjectID} = require('mongodb');
var {app} = require('./../server.js');
var {Todo} = require('./../models/todos.js');
var todos = [{
_id: new ObjectID(),
text : ... | c2e2ab52f9a5d83fc9a85ccf1a880d61b0ac0a79 | [
"JavaScript"
] | 1 | JavaScript | abhishekjd/node-todo-api | 753313de11783b0af5013af7055bd03b770d2926 | f7cd0cc2628951da236af9d02a87c0f6dfda43e5 |
refs/heads/master | <file_sep>#!/bin/bash -x
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile "$1" "$2" --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
| 7ab01041b22539abf3caafa840dd56056b3e3290 | [
"Shell"
] | 1 | Shell | codeoneclick/SNContanct | 98db0a3e6f0571b929e56fa5183c27738699487a | 64ef06be66c494b32eab4c8df96368b50e67d4d2 |
refs/heads/master | <file_sep>#!/bin/bash
echo "Step 1"
mkdir session_1
mkdir -p task_1/mirantis/files
echo "Step 2"
echo "Hello, world! 43 *******************************************" >> task_1/mirantis/files/text
echo "10 world: worldworldworldworldworldworldworldworldworldworld" >> task_1/mirantis/files/text
echo "10 world: worldw... | 6254f57d5e9a54eb2fe23ca98ff7df714cd65af7 | [
"Shell"
] | 2 | Shell | Anonymousfvr/bash | 95cc54b39bd5e6c5b86f50963f2c0b0f73feb356 | 0344af0a55667c5b7976f89ba5157036b22a6ea4 |
refs/heads/master | <file_sep>let express = require('express');
let router = express.Router();
let User = require('../Database/modals/User');
let passport = require('passport');
router.get('/login', function(req,res){
res.render('login');
})
router.get('/register', function(req,res){
res.render('register');
})
//re... | dee81a1161c4fe2b829e39c36eb426074ca6d351 | [
"JavaScript"
] | 2 | JavaScript | sairamalugala/Login-auth-passport | b5385a20a1d76b5aac317b3f89d78ceb5aef3977 | 3aa6d14a0c883f642ef7af8951214919b9518f55 |
refs/heads/master | <repo_name>Zeitwaechter/petitio-exponere<file_sep>/resources/lang/ru/roles.php
<?php
return [
/*
|--------------------------------------------------------------------------
| Языковые ресурсы названий ролей
|--------------------------------------------------------------------------
|
| Следующ... | ba1b2fdb3797662b6eeeb8e6908fa5c942bbd25f | [
"Markdown",
"PHP"
] | 30 | PHP | Zeitwaechter/petitio-exponere | 3c76cc59e1a7729c52afc99875ef5fdaf8f3e279 | 2c9a6ad918e34c3807e1152efa72200f3e86619d |
refs/heads/master | <repo_name>Gautham-JS/LargeScaleMapping<file_sep>/sfm_reconstruct.cpp
#define CERES_FOUND true
#include <opencv2/sfm.hpp>
#include <opencv2/viz.hpp>
#include <opencv2/calib3d.hpp>
#include <opencv2/core.hpp>
#include <iostream>
#include <fstream>
using namespace std;
using namespace cv;
using namespace cv::sfm;
int ... | ffea9e89b5298cfe8420bf4b41e203358666072c | [
"CMake",
"Markdown",
"Python",
"C",
"C++",
"Shell"
] | 26 | C++ | Gautham-JS/LargeScaleMapping | e8e88f0a8a79a9d0abf4e2afe26aa94a741b3ab9 | 97e4072f9fe9709760e35604898fca121722c7d6 |
refs/heads/master | <repo_name>talmor/LWC-For-Canary<file_sep>/src/com/griefcraft/util/Updater.java
package com.griefcraft.util;
import com.griefcraft.LWCInfo;
import com.griefcraft.logging.Logger;
// import com.sun.net.ssl.internal.ssl.Provider;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
... | 2821d6d777532c5393d03ffef2042565b6702e03 | [
"Java"
] | 6 | Java | talmor/LWC-For-Canary | 569770a20d8f68c1d5cfb6c197acc178fbe197f9 | e33d33625da26993ee317ed153a3ea7100934d5b |
refs/heads/master | <repo_name>hjw0968/shuadan<file_sep>/js/page/taobao_account.js
var km = new Vue({
el: '#seek_apper',
data: {
BindingList: ""
},
methods: {
getdatd() {
var BindingList = {},
th = this
BindingList.key = localStorage.token
BindingList.plat... | 7375df9f4c2f263a60fbbece7443919b7eaf0502 | [
"JavaScript",
"HTML",
"Markdown"
] | 13 | JavaScript | hjw0968/shuadan | 84c9727b703385ce427705e77261f785a2fec2b0 | 857dc89d4b379881d7881b5686d2ec20c5087972 |
refs/heads/master | <repo_name>natdew/coding_final<file_sep>/sketch.js
//final project
//interactive illustration narrative
//give variable to the first page
var currentPage = "actOne";
//give variables to each image
//variables for the backgrounds
var actOne;
var checkPhone;
var actOnePartTwo;
var actTwo;
var actTwoPartTwo;
var actTwoP... | 6aba80f455786f53abc5e80920831ae0ea21703f | [
"JavaScript"
] | 1 | JavaScript | natdew/coding_final | cef2db6451b0855c3b0ddc86e2133e0b866ecf22 | 93a5d2c1a4a8a342bcb5d027a66772cec2d1d020 |
refs/heads/master | <repo_name>XInTheDark/simple_functions<file_sep>/f2.py
def read_source_code(website):
import urllib.request
page = urllib.request.urlopen(website)
content = page.read()
print(content)
content = str(content)
file = open('source-code.txt', 'w')
file.write(content)
file.close()
... | 28492749fb597e3c52b21a9888e5ffe58797c341 | [
"Markdown",
"Python"
] | 3 | Python | XInTheDark/simple_functions | ca9b8fefe73d339c1b5517801b8acc26ae4914ec | 07d669ff154a4725eee17939e844d8d79d0af687 |
refs/heads/master | <file_sep><?php
$config = array(
'url' => array(
'host' => 'http://www.stats.gov.cn',
'province' => '/tjsj/tjbz/tjyqhdmhcxhfdm/2015/index.html',
'city' => '/tjsj/tjbz/tjyqhdmhcxhfdm/2015/{$province}.html',
'xian' => '/tjsj/tjbz/tjyqhdmhcxhfdm/2015/{$province}/{$city}.html',
'xiang' =... | 280256244453da8e7a129dbf400dcd9c8f556581 | [
"Markdown",
"PHP"
] | 5 | PHP | idsyn/dbschema | ee9a8b8864fd3a4b5dfe7bbc6be4e3ec5daf9a15 | 8cd65f22a310bf73b1e58bfa82775120e5bc6322 |
refs/heads/master | <file_sep>import React from 'react';
import { Link, graphql } from 'gatsby';
import Img from 'gatsby-image';
import Theme from '../styles/Theme';
import { Container } from '../styles/styledComponent';
import Layout from '../components/layout';
import TextContent from '../components/textContent';
export const query = g... | 0dccbfb7beb61ccc7d38e540526950465f639d1d | [
"JavaScript"
] | 22 | JavaScript | devbewill/site2020 | 4ae40bcfb817cec4a476bb1240dc272e72992274 | 621d0e08fa4c6b8250631a61df0d770679445220 |
refs/heads/master | <file_sep>package com.panda;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 启动程序
*
* @author panda
*/
@Sp... | 1127dc053f5a00c7c59553b9104735514e94c8a2 | [
"Markdown",
"Java"
] | 2 | Java | 196712yuxin/RuoYi | ec9740ec1617e26b9f2ff475fd4bce37208f6f02 | ad59151cf59e3b8da6ed256a511b6c556476b2cd |
refs/heads/main | <repo_name>lwmqwer/easy-learn-kubescheduler<file_sep>/Chapter1/README.md
# Communicate with the kubernetes cluster
Ok, Let schedule a pod. Wait, what pod should we to schedule and where to schedule. Looks like we lack many inputs. Where can we get them and How?
Sure, these inputs must be in the kubernetes cluster, but ... | 47621272827df6746e412fa31397b17efb611684 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 7 | Markdown | lwmqwer/easy-learn-kubescheduler | 8223133409bb2e79c326485cebb9ceebf95b8b56 | 52a04839af1146c81cedc2a2c75bfe2197f14b01 |
refs/heads/master | <file_sep>import React, { useState } from 'react';
// Components
import Form from './Form';
import ToDoList from './ToDoList';
// Meteor Data
import { withTracker } from 'meteor/react-meteor-data';
import { Tasks } from '../api/tasks';
const App = ({ tasks, incompleteCount }) => {
const [hideCompleted, setHideComple... | 644733e19966b59fbf2c0f010cbc30997a8c4604 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Mister-Corn/random-journeys | 9d4e203faac555f220b228deb7f518ba7d7a4ec0 | d541f059a674d734e03438669cac70a589410d79 |
refs/heads/master | <file_sep>#!/bin/bash
set -e
SAMSUNG=$(! xrandr --query | grep "DP-1-2 connected" > /dev/null; echo $?)
LG=$(! xrandr --query | grep "DP-1-1 connected" > /dev/null; echo $?)
#LG=$(</sys/class/drm/card0/card0-DP-3/status)
#notify-send -t 1000 "Monitor" "Samsung: $SAMSUNG\nLG: $LG"
if [ $SAMSUNG == 1 ] && [ $LG == 1 ... | d288dd18348d2c17f73a05ab3c6e8a0c7ed206f7 | [
"Markdown",
"Shell"
] | 3 | Shell | dabch/dotfiles | ae187fc96db4f193ce3198a72799bd68def91cec | b3f474cdd7d7b0fcbe09c47b16bf99157966298d |
refs/heads/master | <file_sep>window.MovieModel = Backbone.Model.extend({
defaults:{
movie:"",
director:"",
language:"",
runtime:0
}
});
window.MovieCollection = Backbone.Collection.extend({
model: MovieModel,
initialize: function () {
console.log('collection initialised!')
},
... | c9679f373d393fe9104a286799acc9b8bb068755 | [
"JavaScript"
] | 1 | JavaScript | ambarbs/BackboneMovieDB | ceb589adbd24cb6a4bcc282e6170445f26bdd710 | e4e04684daab3045259b984714caddd7c34f2ff7 |
refs/heads/gh-pages | <file_sep>/* global math */
// Variables
var buttons = ['7', '8', '9', '+',
'4', '5', '6', '-',
'1', '2', '3', '*',
'0', '.', '=', '/',
'sin', 'cos', '^', 'sqrt',
'tan', 'cot', '(', ')',
'e^','ln','clr', '<-','pi'
];
// e^x
// ln()
// Closing paraenthesis bug
var lastNum = 'new';
var answer;
var autoclear... | d88dc9b83b48942221d4a9f77c8e46a87c2cf613 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | keawade/cuddly-weasel | 43731c74eda72a2a35e2463d14a36a6ceebe6931 | 97e267c826e872d7e877b7925b8ca07d1d91e87a |
refs/heads/master | <file_sep>class View {
constructor(game, $el) {
this.game = game;
this.$el = $el;
this.setupBoard();
this.bindEvents();
}
bindEvents() {
const $square = $("li");
$square.on("click", (e) => {
const $tile = $(e.currentTarget);
this.makeMove($tile);
});
}
makeMove($squa... | 84af9da8bf06d8751861175771a45a785514f0cf | [
"JavaScript"
] | 2 | JavaScript | as6730/W6D2 | cb612314bb575faf69f1b2951a99ee75d2f0336c | 9446782c4d4c95ed78433183d09d9a2502e78bcb |
refs/heads/main | <repo_name>xvd112/nagari_lama<file_sep>/app/Views/galeri/view.php
<?= $this->extend('template/index'); ?>
<?= $this->section('content'); ?>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
... | e8bd7c6bd28bf5ae3a04d84f92d5eee2817146d9 | [
"PHP"
] | 97 | PHP | xvd112/nagari_lama | bdc663e777930f31eef75b537eee7025b38dda10 | 5b206bf9dbf47c0320142591a66f1e471e159305 |
refs/heads/master | <repo_name>andyb/CrypyoTest<file_sep>/imagecrypt_test.go
package imagecrypt
import (
"log"
"testing"
)
func TestEncyptImage(t *testing.T) {
msg := "This is the message to be encrypted"
key := "1234567890123456"
encrypted := make([]byte, len(msg))
err := Encrypt(encrypted, []byte(msg), []byte(key))
if err != n... | 54a00ae505a29b0dbe9a160f14474aeea471513f | [
"Markdown",
"Go"
] | 3 | Go | andyb/CrypyoTest | 479d6c64c209eb15f37ba7ee143593e140dfa196 | 5ee8e16172d8c2133b77c2dac6595ebfb8210a4b |
refs/heads/master | <file_sep>import pygame
from pygame.sprite import Sprite
from random import randint
class Star(Sprite):
def __init__(self, screen):
"""Initialize the ship and set its starting position."""
super().__init__()
self.screen = screen
# Load the star image and get its rect
self... | d44ee0ff6840a7aa8155335cb21420227df6d0b3 | [
"Markdown",
"Python"
] | 2 | Python | rebinsilva/alien_invasion | 8a3fede1e75074715857342ac30daa55ceaf416a | 505ee1dd87bbf0af65c23b808119361488f0a2ec |
refs/heads/master | <file_sep>using OdeToFood.Core;
using System.Collections.Generic;
using System.Linq;
namespace OdeToFood.Data
{
public interface IRestaurantData
{
IEnumerable<Restaurant> GetRestaurantsByName(string name);
}
public class InMemoryRestaurantData : IRestaurantData
{
readonly List<Res... | 070450ed09f8ecd5f4d89e35811f600fc6c06764 | [
"Markdown",
"C#"
] | 5 | C# | DannyNicholas/dot-net-test | 709fa792b3dd56e74e3d460d8ff472565c2cd73f | ab43cac28a57ef5e772318c88c6d7254a52c1ac7 |
refs/heads/master | <file_sep>"""
Package for DjangoDoc1.
"""
<file_sep>"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
import django
from django.test import TestCase
from django.utils import timezone
i... | 28c2ea310bbcb8da3a666164a8505159a43ad0cd | [
"Python"
] | 2 | Python | LJTDiSZ/DjangoDoc1 | 3ae0497425e315ccd191752653c899e09398c583 | cc8d69a0e7db0e76f61ccba26be989f4575bb5b9 |
refs/heads/master | <file_sep>fuzzel = os.require('/lib/fuzzel.lua')
registration = {}
screenText = ""
client = {}
function client.command(cmd, fn, autoCompleteFn, help)
registration[cmd] = {
cmd=cmd,
fn=fn,
autoCompleteFn=autoCompleteFn,
help=help
}
end
function client.autoComplete(args, opt)
s... | 1e1e0f1e7ace7da419010ecb882d127a8d3032df | [
"Python",
"Lua"
] | 9 | Lua | Eeems/factorio_computer_scripts | fa0029c9b376cfb3c8fbe69ea8d7a9507db382b7 | 6109bc2374dea78e9373e62dcda3d112018af602 |
refs/heads/master | <file_sep>import webapp2
from webapp2_extras import sessions
from google.appengine.ext import ndb
import time
import datetime
# student_user_name='null'
head='''
<head>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<center><h1><p style="color:#6699FF">Welcome to the Job... | a9a777e709a458f6296776a3ea5c85ba72a0c934 | [
"Python"
] | 1 | Python | ashmeetchhabra/JobStore | 8fa9f6081ad383b9baa9ce299cb1ab7ba62dce6e | 0999f2f355f8c2c573d8027229597ff9f813bb94 |
refs/heads/main | <file_sep># Friends list app
codemy.com tutorial<file_sep>class FriendPdf < Prawn::Document
def initialize(friend)
super()
@friend =friend
text "here #{@friend&.first_name}" if @friend.nil?
end
end | 16fe1b26335c5c348cb2e7b1abb836b8f88773ab | [
"Markdown",
"Ruby"
] | 2 | Markdown | justyna98/railsfriends | 5025dbb145dd8e0d99eac5ac209c79af68eeb9cd | 64e5801cbaf095ef4db5daf15da2499d322f6728 |
refs/heads/master | <file_sep>import React from "react";
import TourBox from "./TourBox";
const Tours = () => {
return (
<section className="section-tours">
<div className="section-tours__wrapper">
<div className="u-text-center u-margin-bottom-big">
<h2 className="heading-secondary">Most popular tours</h2>
... | 6f40f1b3275b10ab06c232ca2aef96cd755263d5 | [
"JavaScript"
] | 8 | JavaScript | Glebfedchenko/outdoors | aa5d97769437ae67b5ea0f61d5408baa80912a80 | 1e4c1644f5932675dfd95a966703ad957babebd5 |
refs/heads/master | <repo_name>worminator123/Warteliste<file_sep>/src/Start.java
/**
* Created by Markus-PC on 16.01.2017.
*/
public class Start {
public static void main(String[] args) {
System.out.println("Hi");
System.out.println("Welt");
}
}
<file_sep>/README.md
"# Warteliste"
Hier gibts nichts zu sehen...
| bfccb8fae6095b32ef9f0a1f18fe67018261517b | [
"Markdown",
"Java"
] | 2 | Java | worminator123/Warteliste | bd8e04821c97b0808b4f65baa0cc508d6f8ebe38 | 4d65bbee0b018129c21aba10301dc2f00cd00b9d |
refs/heads/master | <repo_name>mason0510/revealrobot<file_sep>/robot/revealRobot.go
package revealrobot
import (
cf "../config"
"../utils/stringhandler"
"context"
"encoding/json"
"fmt"
"github.com/eoscanada/eos-go"
"github.com/eoscanada/eos-go/ecc"
"io/ioutil"
"net/http"
"time"
)
// =========================== 设置信息 ====... | 1f87a922350205d072c5e586d92751bc2e011e58 | [
"Markdown",
"Go"
] | 12 | Go | mason0510/revealrobot | 9ab2c491158f6ec8a6232c46532e692848d34e5d | cfc3796270fdf3d544d9ce17d6351529ab491b49 |
refs/heads/master | <repo_name>ArturKp/volleyball-2017-points<file_sep>/app/Events/ScoresUpdated.php
<?php
namespace App\Events;
use App\Models\Team;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illumina... | 95af70297799ebbaf6ed6317f88014093a04d22d | [
"JavaScript",
"PHP"
] | 9 | PHP | ArturKp/volleyball-2017-points | 50c80b1dad9482f3a76e89344edd25546e76f40e | 9b7f897d62f18dc7636cfe9ba54e85fdb8902508 |
refs/heads/master | <repo_name>gkawamoto/floconil<file_sep>/index.js
var fs = require('fs');
var path = require('path');
var util = require('util');
var vm = require('vm');
var flogger = require('flogger');
var package_json = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json')).toString());
var ERR_NOT_FOUND = 'ERR_NOT_FOUND'... | 2b5c36c58d24aef7658516790ca0944c09a62699 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | gkawamoto/floconil | 0adcb73abaa62fd938f8339f28f3f792bbe16eda | 5cbdb9279ab75116c6faf8f61c2388d42d057fd7 |
refs/heads/master | <repo_name>cdecampli/SteamVR-Testing<file_sep>/EnemySpawnController.cs
using UnityEngine;
using System.Collections;
public class EnemySpawnController : MonoBehaviour {
public GameObject enemy;
public float respawnRate;
// Use this for initialization
void Start () {
InvokeRepeating("ScheduleSpawn", ... | 044750bba207724060f0cf5f72a2919f2ea5631e | [
"C#"
] | 4 | C# | cdecampli/SteamVR-Testing | 6d237c73ad49815cfcd1ff9a4a057b46c571b5d7 | a59b89f9ff6f0d0296db4256014d06f009f50555 |
refs/heads/master | <repo_name>Sirpyerre/weather_app<file_sep>/src/store/index.js
import {createStore, applyMiddleware, compose} from "redux";
import thunk from 'redux-thunk';
import reducers from './../reducers';
const initialState = {
city: 'Washington, us'
};
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||... | f4e816093045e761e7c66eac49cef029bde7c9ef | [
"JavaScript"
] | 1 | JavaScript | Sirpyerre/weather_app | 2d1976e8998ae75861eb46086a9a502439726fe0 | 60ac621843f7c1583a969b6cee17b560a7bf866d |
refs/heads/master | <repo_name>EiderDiaz/proyectomascore<file_sep>/README.md
# proyectomascore
proyecto de swift con core data <br>
#Se necesita una app para iOS , para los aficionados a las películas, <br>
#en esa app se va a registrar el nombre de la película en inglés y español latino, <br>
#los actores y actrices, la fecha en que la... | 299fff400e354d1d994840943337bde66254a312 | [
"Markdown",
"Swift"
] | 2 | Markdown | EiderDiaz/proyectomascore | af121d813ef1286fe1ae7931cbca5af4f219e0a5 | 8edc9994e299b0abce7c5bae148a00a7697d213e |
refs/heads/master | <repo_name>joemiller/aws-cf-private-streaming-tools<file_sep>/README.md
aws-cf-private-streaming-tools
==============================
What?
-----------
A set of ruby CLI tools for creating and modifying Amazon Cloudfront
Private Streaming Distributions and Origin Access ID's, using the
RightAWS ruby library.
Why?
--... | f531acb3b1eddf637837d6579c2b14a743ef95c2 | [
"Markdown",
"Ruby"
] | 3 | Markdown | joemiller/aws-cf-private-streaming-tools | 766450bbbcb80fd407061b674d026c7c7efabb1f | c6515fb01836a7368fc2bd6ffca1a4506a7641a5 |
refs/heads/master | <repo_name>rareed2021/QRTest<file_sep>/app/src/main/java/com/test/qrtest/MainActivity.kt
package com.test.qrtest
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import androidx.appcompat.app.AppCompatActivity
import... | ec0942b67504c36cf6fa5981e79c37023bfa8e67 | [
"Kotlin"
] | 1 | Kotlin | rareed2021/QRTest | 48b23ccb15c0f892f0a8415b700ee9aff6e7a430 | ca00272c9c03fb537976035ad379f30ec368ac31 |
refs/heads/master | <repo_name>ThanujaRaju04/capgemini-devops1<file_sep>/README.md
# capgemini-devops1
LearningDevops
<<<<<<< HEAD
hgfdchggggggggggggggggggggggggggbv
developer-1
=======
bgvcjhfv
>>>>>>> 2fc508e970693ca49d328ac6d1b5e91d35b87fdc
<file_sep>/A.java
Class A
{
void welcome()
{
}
void add(int x,int y)
{
int c=x+y;
}
void null()
... | 3cf836a1ac5b7dfa1ed6274ba9947599ed953291 | [
"Markdown",
"Java"
] | 2 | Markdown | ThanujaRaju04/capgemini-devops1 | 74e9301b2f029937a59e89b2bc8f1b303dcdb9df | 1c96c058f3f624c4cb551c11d799f6c14713f9d2 |
refs/heads/master | <file_sep>## A very quick demonstration of the samplers. More to come.
## Run the simple example, so that obj and opt are loaded into workspace
library(TMB)
library(adnuts)
TMB::runExample("simple")
## Remake obj without random components
obj <- MakeADFun(data=list(x=x, B=B, A=A),
parameters=list(u=u*... | 8c31f15bc3a04987a4acc60b93f69666d2aece75 | [
"R"
] | 1 | R | Andrea-Havron/adnuts | bf64586a58e4706a6575e6f34d52d6566a70d1bc | 25160d2c84539ee7820a52e7973b42c661648f86 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class TempoGastoService {
public dataInicio: Date;
public dataFim: Date;
public tempoGastoMinutos: any;
public pegaData() {
this.dataInicio = new Date();
const dataInicioMili = this.dataInicio.getTime();
... | 972ace0074a58a1a5a6798cb1daba38d3bf1922b | [
"TypeScript"
] | 3 | TypeScript | paulobrito27/SmartSupply | 9be12cd9bd93476704b77da08d4d00b7f0983c86 | 2dcb61c24dd349f79aebcea38cc4b351261273f2 |
refs/heads/main | <file_sep># Simple-ReactNative-UI
I have started learning React-Native. You can contribute to the repo and can help me to learn more things.
**************************
If you're unable to load your app on your phone due to a network timeout or a re... | 8104f98f043cc317a43a2713fe96d04556432d3b | [
"Markdown",
"JavaScript"
] | 2 | Markdown | MasabAli/Simple-ReactNative-UI | 374d2bbea37ccf02825b8fc5431f3f16ccf32d8a | c555c38930cba36ad5758ec7186755901a2653df |
refs/heads/master | <repo_name>franciswalsh/blackJackGame<file_sep>/blackjack/scripts/whoWon.js
function whoWon(yourHand){
let dealersHandValue = Math.ceil(Math.rand * 21);
let yourHandValue = handValue(yourHand);
if (yourHandValue === 21){
if (dealersHandValue === 21){
console.log("You tie");
} else {
console.lo... | 8f86722328af5e1742109303bf29589cd2339a90 | [
"JavaScript"
] | 1 | JavaScript | franciswalsh/blackJackGame | f04187cb9f6c575c56aa10c5231e2ff8402fb21a | b467c5ebca71af6546fcd9bb4698e7e2959872f6 |
refs/heads/master | <repo_name>luisamaoli/catalogo_bebidas<file_sep>/app/models/produto.rb
class Produto < ApplicationRecord
belongs_to :departamento, optional: true
validates :preco, presence: true
validates :rotulo, length: { minimum: 4}
end
| c3aa433165b067b91bd49b3e40730d16b2d5f4f5 | [
"Ruby"
] | 1 | Ruby | luisamaoli/catalogo_bebidas | 5a6877dccb1095a8da68de9b153495654f1ec6ab | eb97a31ec3ff0a1c1a164e7fcb95adef226650e9 |
refs/heads/master | <file_sep>require 'spec_helper'
describe "CacheKeys::Cache" do
before(:each) do
@post = Post.first
end
it "responds to cache_keys" do
@post.comments_cache_key.should eql("comments-#{@post.cache_key}")
@post.tweets_cache_key.should eql("tweets-#{@post.cache_key}")
end
end<file_sep>class P... | bd290cb2989ee27d9663f2103da41146ea782245 | [
"Ruby"
] | 5 | Ruby | xarala/cache_keys | 8501bab793b79392a9cc80e756d843c3015788fb | ecf11a18ca55959349fa8fd8defaf96487278e3f |
refs/heads/master | <file_sep># 4.10. Exercises: Data & Variables
# Part A, #1 :
print('Part A, #1:')
print(6 * (1 - 2)) #Result should be -6
# Part A, #2 here:
print('\nPart A, #2:')
print((2 + 8 + 10) / 5) #Result should be 4.0
print(2 + (8 + 10) / 5) #Result should be 5.6
# Part A, #3 here:
word = '<PASSWORD>'
#3A
print('\nPart A, ... | e474b41a961006e64579263cc75bb80163d65b88 | [
"Python"
] | 1 | Python | KristineGray/U3Ch4Exercises | 5eebdb8994df9711b77f7b448527a94c4235405d | 0931009cc501df47e513c4114e5b9a75b4422d72 |
refs/heads/main | <file_sep>## See the project live!
- https://quorum-challenge.netlify.app/
## Run it locally:
1. `git clone https://github.com/JPGallegos1/quorumit-challenge.git`
2. `cd quorumit-challenge`
3. You will create a `.env` file in the **root of the project** with the variables I sent via e-mail
4. `npm i`
5. `npm run dev`
... | 6c0a3d25bd3256b714bb115a490b56559768a2e9 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 4 | Markdown | JPGallegos1/quorumit-challenge | 155ebcfcbfaab64101ca22ac801086b404485352 | 16f613c395e0c3c3ced9d6a3e99a4b05450c56a4 |
refs/heads/master | <file_sep>Copy-Shop
=========
`copy-shop` is a tool for the Sauce Labs support teams.
It simply takes a test report URL and outputs a Java test script with the same capabilities as the original test.
Usage
-----
```
$ pip install -r requirements.txt
...
$ SAUCE_USERNAME=<username> SAUCE_ACCESS_KEY=<access-key> pytho... | de32385be04525ae962c9397aa1a28060d8fa02e | [
"Markdown",
"Python"
] | 2 | Markdown | enriquegh/copy-shop | 08929f3e2daa0317593798773e9adb7a8fe89776 | a6d6623ad78b92c608f26cac210dfd992479b6bc |
refs/heads/master | <file_sep>import peakutils
def get_peaks(column):
peaks_array = peakutils.indexes(column, thres=0.55, min_dist=3)
peaks = {
"times": peaks_array,
"number" : len(peaks_array)
}
return peaks<file_sep>import pandas as pd
from explorer import get_files, get_folders, get_subroots,... | 632f2cb63f8d26e4e9ec9b9c38605656bfe358b3 | [
"Markdown",
"Python"
] | 16 | Python | geoffyang/loads_clustering | 5e4535068f6cbbf70df59977beff244b3105929a | bb79712d85b4134f4aab74b0c0a7d05df781deae |
refs/heads/master | <repo_name>allanwk/LogisimComputer<file_sep>/compiler.py
import pandas as pd
import numpy as np
import sys
#Get instruction codes from spreadsheet
df = pd.read_excel('16bit_set.xlsx', dtype=str)
df = df.set_index(df['Instruction'])
instructions = pd.unique(df['Instruction'])
codes = {}
for instruction in instructions... | e1c41aac9b922ad7398a0408f845dca8e04397fc | [
"Markdown",
"Python"
] | 3 | Python | allanwk/LogisimComputer | cd647bf504248c6efa5cd215fdcb4e1b924e15ad | df3e383261a4d7ca60d1adf618cbd350e84ba72e |
refs/heads/master | <repo_name>stuarthannig/poke_calculator<file_sep>/README.md
# PokéCalculator
`npm install & npm run dev`
<file_sep>/src/client/app/index.jsx
import React from 'react';
import {render} from 'react-dom';
import CalculatorWrapper from './containers/CalculatorWrapper.jsx';
class App extends React.Component {
render () ... | cef37aaffc087bde1b1da3dec6c071e91f022186 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | stuarthannig/poke_calculator | 7f417140a52bff0755f410fe543d70ff3be0ddce | 393c58fa64bc35ba70db1b845c6d011a610bf3a5 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import 'tachyons';
import './style.css'
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom";
import './style.css';
import {Button, Container, Row, Col } from 'react-bootstrap/Button';
import 'bootstrap/dist/css/bootstrap.... | 1cfd6363b97f593e27568ae8ede01fd39ed5b52f | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | himmat1981/react-zbqwdn | 382d7fda84f843861028420bd7f07a8edc01f89d | 69e6d27807e29761c74ddcc8437c1019235ffdaa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.