branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import itertools
#入力値
input_num = input()
t = 1
counter = 0
result = 0
while (counter < int(input_num)):
head_num = []
tail_num = []
#基の値は2つに分ける
original_t = ((t - 1) / 2)
head_num.append(original_t)
tail_num.append(original_t + 1)
#奇数のみ計算
for num in range(1, ... | 86c89a9176662767117ee04d25a19e660602997a | [
"Python"
] | 1 | Python | k191k/sum_consecutive_integers | e29d280609a6e08d6c377347952f64390d212583 | e85194e31b75112b5e1d4f92246676c6b3b7271d |
refs/heads/master | <file_sep>package com.employee.controller;
import com.employee.model.Admin;
import com.employee.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
... | 41ceda272ab2cef9f8aa76033db4f314d2b9c10e | [
"Java"
] | 5 | Java | Etiena821/Employee-Trial1 | 1b48adcd5508bf052949feca6b1dafc03f2edfdb | 863e285ee782d4eb912ffe55c1c6955bb24a1402 |
refs/heads/main | <repo_name>brad0s/react-native-hiit-timer<file_sep>/App/components/Countdown.js
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import colors from '../constants/colors';
import CircleTimer from './CircleTimer';
export default function Countdown({
countdown,
rounds,
roundCountdow... | 7bf5a1121630e0bafdf9d52a82254fb0cc28e3bc | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | brad0s/react-native-hiit-timer | 50d38317f0b49936bf4f62ec6a0b4018ca047ebf | ea404540e3d1344c333919e31f0365051dca0f3b |
refs/heads/master | <file_sep><?php
require 'includes/functions.php';
$connection = dbConnect();
// TODO Roep de juiste function aan om de feed op te halen, wat geef je aan deze function?
$feed =getFeedFotos($connection);
// TODO: Gebruik json_encode functie om alles om te zetten naar een json formaat
$json = json_encode($feed);
// Jui... | b8018965ca340ac54ca296930607b6ce5f8bbd32 | [
"Markdown",
"SQL",
"JavaScript",
"PHP"
] | 7 | PHP | LeroyAndrade/L1-p4-11-JSON-JS | 54bbfa527c2714f3bcda182ed6b077488dd53f53 | 38c9abdfb3b1f902d6b7ad82e0211feb8750f743 |
refs/heads/master | <repo_name>KashanMehmood/restraunt-crud<file_sep>/src/App.js
import React from 'react';
import './App.css';
import Home from "./component/Home";
import RestaurantList from "./component/RestaurantList";
import RestaurantMake from "./component/RestaurantMake";
import RestaurantSearch from "./component/RestaurantSearch";
... | aa04a37ad50cd8fd89f872ae745c55f5e8892ff7 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | KashanMehmood/restraunt-crud | ee5b56960abbadf62fe802c22323a9c523146189 | 795f02d2d156f7d07bfa1d02c958b349ed5cac08 |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>Hỗ Trợ Tuyển Sinh | Gợi ý chọn trường</title>
<?php
include("meta.php");
?>
</head>
<body>
<div id="header">
<h3><a href="index.php">HoTroTuyenSinh.com</a></h3>
</div>
<div id="navbar">
<?php
include("navigation_bar.php");
?>
</div>
<?php
include("st... | 2b3a6e78bec9b84df25f52a0c1b0456a2bef93e9 | [
"JavaScript",
"SQL",
"PHP"
] | 24 | PHP | TranThiNhuHoa/DoAnTotNghiep | 4c378665812320b5fe122d2011056373f9d7b18a | 5795e1f356eb6dc5bd4caac93e5d3faada065c59 |
refs/heads/master | <file_sep>class PetsController < ApplicationController
skip_before_action :authenticate_user!, only: [ :index, :show ]
def index
@pets = Pet.where.not(latitude: nil, longitude: nil)
@hash = Gmaps4rails.build_markers(@pets) do |pet, marker|
marker.lat pet.latitude
marker.lng pet.longitude
... | 46ac6a34b7d5f099bda3c767b45d78dc25b1f490 | [
"Ruby"
] | 4 | Ruby | KaizokuoJ/pet-my-pet | b5d0cf89cb577e93556827c6a00a02eb1c60b0f7 | 7a5127913cc8e08971efe4a0fc6084e0715aabb7 |
refs/heads/master | <repo_name>LeighCurran/SamsungRemoteLibrary<file_sep>/SamsungRemote/SamsungRemoteLibrary/Buttons/Number/Eight.cs
using SamsungRemoteLibrary.Interfaces;
namespace SamsungRemoteLibrary.Buttons.Number
{
public class Eight : INumberButton, IChannelButton
{
public string Code { get { return "KEY_8"; } }
... | b255b8bfd37a87a8fdc3e80d2e3e20866700cbe5 | [
"Markdown",
"C#"
] | 61 | C# | LeighCurran/SamsungRemoteLibrary | df6ef4070930a651358ca42275dcc0129ab1202a | c9f25e526ea7438f8d6872ea3a65a5ab4ee3f76a |
refs/heads/master | <repo_name>liym0723/simple_form_imitation<file_sep>/lib/simple_form_imitation/wrappers/leaf.rb
module SimpleFormImitation
module Wrappers
class Leaf < Many # 单个组件
attr_reader :namespace
def initialize(namespace, options = {})
@namespace = namespace
@options = options
end... | ac778cc3f033b292da97fc9da4d9f4396dd6ae39 | [
"Ruby"
] | 29 | Ruby | liym0723/simple_form_imitation | 26ea8d893187b36d9be373118e385183db17a553 | 8465a33506512a85eb825a24b90eea5aefbfe9a8 |
refs/heads/master | <file_sep>server.port=8888
logging.level.root=info
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
logging.file=../AllAppLog/demonegotiator.log<file_sep>package com.exchange.negotiator.demonegotiator;
import org.springframework.boot.SpringApplication;
import org.springframework.bo... | a5b2611fc4a63c47f739843268b7c1fcdc6538cf | [
"Java",
"INI"
] | 4 | INI | XI966-tejpratapkushawaha/demonegotiator | 8ca480dbce3c92b97296a031054f03f40a181df5 | bbc39cbf3c704010aea09591bf6e3fd1ee7a3210 |
refs/heads/master | <repo_name>tangciwei/react-didact<file_sep>/readme.md
# react 原理学习
- fiber 数据结构,将执行过程分层一份一份的,这样就不会阻塞 ui 渲染,所以要在上面记录一些信息,3 个指针;
- Reconciliation,指的是更新时,去 diff。函数执行也在这个阶段,这里也包括 useState 的执行。
- commit 阶段,真正更新 dom。3 种情况的区别
## fiber 数据结构
原因方便找下一个 fiber/上一个
One of the goals of this data structure is to make it easy to find... | 134a1c8189814b0f411d678bbfd20426e63465f3 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | tangciwei/react-didact | 4c5bef0b4db7f1ac44138afb9acdba89010c5e60 | 40371f4edad2e6773d4d8c7e95f0524427bcde2f |
refs/heads/master | <file_sep>//Write a program that finds in given array of integers a sequence of given sum S (if present). Example: {4, 3, 1, 4, 2, 5, 8}, S=11 {4, 2, 5}
using System;
class SequenceOfGivenSum
{
static void Main()
{
int s = int.Parse(Console.ReadLine());
string inputArrayOne = Console.ReadLi... | 09971aad3b0fa78a3d109675f9f21cc5f99784a5 | [
"C#"
] | 91 | C# | Marto89/CSharp-Part2 | 57e930d3a11439ca8711e4dc4b138bdd715d8068 | f97cd3c983573d0f3239d98a9030256635794b69 |
refs/heads/master | <repo_name>laury93/IMCv2<file_sep>/app/src/main/java/com/example/myimc/MainActivity.kt
package com.example.myimc
import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.myimcv2.R
import kotlinx.android.synthetic.main.activity_... | b2a2d8972a532dd7d4a2ba2405f216df2fb4d25d | [
"Kotlin"
] | 1 | Kotlin | laury93/IMCv2 | fe982fff83948a220d6fbf37373871fe37f9ae2c | 4b4e2fb90be32a1fbe292c94c6065c80300ca5a0 |
refs/heads/master | <file_sep><?php
/**
* Скрипт для відправки телефону через e-mail,
* автоматично перевіряє номер телефону на відсутність зайвої інформації та правильність вводу.
* Сприймає всі міжнародні формати:
* (123)456-7890 | (123)456-7890 x123 | +1 (123)456-7890
* 12 3456 789 0 x1234 | (123)456-7890x123 |(123)456-7890ext12... | 365f4b01cb101cc565e2654ea5dee5a00ef825ec | [
"Markdown",
"JavaScript",
"PHP"
] | 3 | PHP | YuriiRadio/call_me | 6a4c4a6126cd445cd717e8e76917366dc3d1e00e | e007212dfc9765f17122446a971cc8bfbe436d39 |
refs/heads/master | <repo_name>marcosantonio0307/eletrocellsrn<file_sep>/app/models/product.rb
class Product < ApplicationRecord
validates :name, presence: true
validates :amount, presence: true
validates :cost, presence: true
validates :price, presence: true
end
<file_sep>/app/controllers/products_controller.rb
class ProductsControll... | 7dfa9ab7e3b962d25372cf8f220e8b73487f9c4d | [
"Ruby"
] | 14 | Ruby | marcosantonio0307/eletrocellsrn | a5ef42ec035bab12220ef885500dd91347eed0a8 | bce7ab615e10e2c86d47e28a68e58175e380b551 |
refs/heads/master | <repo_name>dairaga/sqlx<file_sep>/cmd_test.go
package sqlx
import "fmt"
func ExampleCmd_Select() {
cmd := NewCmd()
cmd.Reset()
cmd.Select("1 + 1")
fmt.Println(cmd)
cmd.Reset()
cmd.Select("1 + 1").From("DUAL")
fmt.Println(cmd)
cmd.Reset()
cmd.Select().From("t1").InnerJoinOn("t2", "t1.id=t2.id")
fmt.Print... | a6cb8ae39d68eb50170370d3b0d79ee23f924a29 | [
"SQL",
"Makefile",
"Go",
"Go Module",
"Dockerfile"
] | 18 | Go | dairaga/sqlx | 8cd413085957e8349bc8d7cf8dbacb50fcabfaa4 | 2cdddcf8511b198d95f3bedf930b09a679d79317 |
refs/heads/master | <file_sep>$(document).ready(function(){
$('#wall').show();
$("#wall").slideReveal({ trigger: $("#button"), position: "right", width: "100vw", speed: "1000"});
$('#intro').show().textition({map: {x: 100, y: 0, z: 0},autoplay: true});
setTimeout(function() { $('#intro').remove();}, 17000);
$( "#conso... | 58ec5b907678e478556ad5684d1cd2b0b3d181ee | [
"JavaScript"
] | 1 | JavaScript | pedrocr83/personal_website | 9dbc66a1ec836575c6a3680894c736a3c4222904 | b03a1a0c15cb969f9e13fc9144d5d7bc4be98728 |
refs/heads/master | <repo_name>iwe7/ims-socket.io-client<file_sep>/dist/index.d.ts
export * from './public_api';
export * from './socket-subject';
<file_sep>/dist/url.d.ts
export interface Url {
port: string;
path: string;
host: string;
protocol: string;
id: string;
href: string;
source: any;
query: string;... | b0e29a7488ecb0d1e10e0eb64ae68e975bd0f84a | [
"Markdown",
"TypeScript"
] | 13 | TypeScript | iwe7/ims-socket.io-client | 938dd2d8991f7910a873e9328c029029400961f5 | 690cf261c446bd7dc95578e28d15d364207853de |
refs/heads/master | <file_sep>// 引入mockjs
const Mock = require('mockjs');
// 获取 mock.Random 对象
const Random = Mock.Random;
// mock一组数据
const produceNewsData = function() {
var result = [];
for (let i = 0; i < 5; i++) {
var orderLine = [];
var lineLength = Random.integer(1, 5);
console.log(Random.integer(1, 5));
for (le... | 25dc0f40170a9f1df95716f57a3771265bbc3d08 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | Judystudy/vant_shop | 8eaea680d4d8ade4a45b6f971a2b8c9b9e46c338 | ab2b993525ecf63f2f7969dd312a8153dd87f31f |
refs/heads/master | <file_sep>import React from 'react';
import './upload_button.css';
class UploadButton extends React.Component {
constructor(props) {
super(props);
this.state = {
filename: undefined,
invalid: undefined,
};
this.fileInput = React.createRef();
}
render() {
let filenameMessage = '';
if (this.state.... | 3b954571ad157e61a1ba8188123ecd11a5d46f46 | [
"JavaScript",
"Dockerfile",
"Markdown"
] | 5 | JavaScript | tbondwilkinson/video-timestamps | e648894b8aadf754a5a51b0d222bcf93b42a291e | 907353ec43fc9929badfb4db5a2291d12004329a |
refs/heads/master | <repo_name>Oleg-Pashulia/Sequence<file_sep>/main.js
function sequence(startNumber, step) {
function plus() {
let a = startNumber
startNumber += step;
return a;
}
return plus;
}
let generatorOne = sequence(4,5)
console.log(generatorOne())
console.log(generatorOne())
console.log(genera... | 088b092b9c8c449a978e80ee94f9bcbe962bdb5a | [
"JavaScript"
] | 1 | JavaScript | Oleg-Pashulia/Sequence | a379540f31026708fd138cfca66d8a5504cf9b9a | f8622510c5aa04aedc686e2fb81aa4bc76289eef |
refs/heads/master | <repo_name>rbreaves/NodeJS-simple-REST-API-for-MS-SQL-Server<file_sep>/server.js
var express = require('express');
var app = express();
var sql = require('mssql');
// Connection string parameters.
var sqlConfig = {
user: 'UserName',
password: '<PASSWORD>',
server: 'MS SQL server',
database: 'Database'... | 19c41c2085f917ea464ab5b835e3f97822f72a39 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | rbreaves/NodeJS-simple-REST-API-for-MS-SQL-Server | 6f6a0c4c7c131a1008e3c9f3874998b48080b354 | c2593db5aea49f6ee1342a72fff746700a79074d |
refs/heads/master | <file_sep>import React from "react";
import "../styles/results.css";
function Results({ persons }, { filteredPersons }, handleSort) {
return (
<div className="container">
{" "}
<div className="results-table">
<table className="table table-striped table-dark table-sortable">
<thead>
... | d50021f6819657bcfd87bf05b14c963ec995338c | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | FlashOTFR/employee-directory | 4f9a020410d47d46a270de8c4db65e65010f0a77 | 0e9b4d1831ccc605ec6128591a3c799a7800239a |
refs/heads/master | <file_sep>using CaclClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WFCalcWithButton
{
public class MockCalcClient : ICalcClient
{
public async Task<double> Calculate(double a, double b, char op)
{
... | c62c61a1fdc912dce3c70ae06881db2098b85aea | [
"C#"
] | 9 | C# | EnigmaInTheJungle/DeskCalcWithMock-BDD | e6a546b63580c09cb844907594c118902d491462 | a9ae41a263e1b07818c4078a8c43b6aa1b486cd7 |
refs/heads/master | <repo_name>Gutxaka/spree_variant_options<file_sep>/Gemfile
source "http://rubygems.org"
gem 'spree', github: 'spree/spree', branch: '2-4-stable'
gem 'sass', '~> 3.2.2'
gem 'rails', '~> 4.1.8'
gem 'sass-rails', '~> 4.0.5'
gem 'font-awesome-sass', '~> 4.2.0'
gemspec | 78b66696c669b1b23f063198f6cda658113b8664 | [
"Ruby"
] | 1 | Ruby | Gutxaka/spree_variant_options | 8c1ccb04bd84819e064832943c412afaa678fb2f | f8d3b81f4ad68bc9fd8f6542524cbde02c0cad28 |
refs/heads/master | <file_sep>import java.util.*;
public class string {
public static void main (String[] str) {
//String str1 = " MrSachinPandit ";
String str1 = str[0];
char[] str1_arr = str1.toCharArray ();
char[] result = new char[30];
int space... | cd20d80310d23792a0f53ed1f6870fcb115af2cb | [
"Markdown",
"Java",
"C"
] | 6 | Java | sachin-pandit/coding | 4f43f39fe2bd17d78f65a034038853dd8a29f5df | 71a4ca89316757deaa1fa6626b2503e377ce33d3 |
refs/heads/master | <repo_name>zhangjihu0/myNotebook<file_sep>/mongoDB_study/advance2/数据库常用命令.md
# 常用命令
1. 查看记录数:count
db.person.find().count();
2. 查找不重复的值 distinect
db.runCommand({distinct:'person',key:'home'}).value
3. group 分组
db.runCommand({
group:{
ns:集合名称,
key:分组的键值,
initial:初始值,
$reduce: 分解器,
condition:条件,... | ce3a43e1adb2c81e763d6e92c90ee0658d5e25b0 | [
"Markdown",
"JavaScript"
] | 12 | Markdown | zhangjihu0/myNotebook | f1185fec991df703690cbc888c4553cf9db42ac6 | 2ae8c77ee09c87c79cd04ca5caa717efb7206237 |
refs/heads/master | <file_sep># Generated by Django 2.1.7 on 2019-04-20 09:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | d68490eb60e3db4b2227fb16e7cfb6f09ca9b1cb | [
"Python",
"Text"
] | 7 | Python | heoheon-developer/Django_ORM_pratice_project | 0d0670ff715ff357eb5217240ee41f3531c98590 | cdeb009dcea8094c75737c7f4fa2b7e4f24995fa |
refs/heads/main | <repo_name>eljosephavila123/ReconnaissanceOnMars<file_sep>/recofmars/tools/__init__.py
from ._tools import show_image
<file_sep>/recofmars/__init__.py
r"""
#######
Reconnaissance on Mars with Machine Learning
#######
"""
from . import binarization
from . import pathfinder
from . import tools
<file_sep>/recofmars/path... | a00ecf5bb6bb5b8eb38c6fbd468800fdff23fdf2 | [
"Markdown",
"Python"
] | 8 | Python | eljosephavila123/ReconnaissanceOnMars | 4ddf1f433f9d4f2e3abb272ef45bc27c9fe48af0 | daa168cc2cb3c39f404edb0beddde595ac886c0f |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
import seaborn as sns
from binarytree import heapq
heap = heapq
Time = 0
body_heap = []
list_times_lock1 = []
list_times_lock2 = []
list_times_lock3 = []
list_times_lock4 = []
list_times_lock5 = []
def Printlistship(list):
a = []... | 98af366882243fec41fe1c3ef6f06aa31fd85eff | [
"Markdown",
"Python"
] | 2 | Python | Leandroglez39/CanalMaritimo | 741b51483dde7771997c9b9c2cc01b80286ef579 | 1f433d9d7bbe10359b21e8385256a339e25c316d |
refs/heads/master | <repo_name>joao-parana/ss31<file_sep>/ex-2-2/start-app.sh
#!/bin/bash
set -e
APP_NAME=ss31-ex-2-2
if [ $1 = 'build' ];
then
mvn clean
mvn package && rm -rf tomcat8x/webapps/$APP_NAME*
cp target/$APP_NAME-1.0.war tomcat8x/webapps/$APP_NAME.war
fi
#
rm -rf tomcat8x/logs/*.log
rm -rf tomcat8x/logs/*.txt
cd tomca... | 418ed42d06ca748052e63a2f0d990852e053cea2 | [
"Markdown",
"Java",
"Shell"
] | 11 | Shell | joao-parana/ss31 | e86c851740bb89ad0be092d5d32f6c0d2ef92a41 | 0c4035afc5a84157dcc8fa282eab4dbd3788e614 |
refs/heads/master | <file_sep>package bitset_test
import (
"testing"
"github.com/tomcraven/bitset"
)
func TestCreate(t *testing.T) {
bitset.Create(10)
}
func createFromStringTest(input string, t *testing.T) {
b := bitset.CreateFromString(input)
if b.Size() != uint(len(input)) {
t.Error("bitset should have size", len(input))
}
... | 94d1f7e9c898e98bd24ea42497679c4adba76f08 | [
"Markdown",
"Go"
] | 8 | Go | tomcraven/bitset | 93818f3f232582fd237f081954a2eac988116694 | 80de00a842ed8d3d7db5c39079a73bb97415efe8 |
refs/heads/master | <repo_name>wereHamster/git-bundler-service<file_sep>/bundle.sh
#!/bin/sh
set -e
ROOT="$1/data/bundles/$2"
GIT_DIR="$ROOT/repo"; export GIT_DIR
mkdir -p "$GIT_DIR"
git init --bare
git remote add origin -f --mirror "$3"
git bundle create "$ROOT/bundle" --all
rm -rf $GIT_DIR
<file_sep>/deploy.sh
#!/bin/sh
set -e
git ... | 1b34401b3452a458be763a8b2dfc995ef00671a3 | [
"Shell"
] | 2 | Shell | wereHamster/git-bundler-service | 10e71f14e2ca5c9070995bd36b150e95e25f88be | 063658b0c73fb00f9c477cff7c1615265d7e7055 |
refs/heads/master | <file_sep>package model;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
imp... | d3f726fdede770caec4a81d3805eb6b075cb7e3a | [
"Java"
] | 8 | Java | michwilk/Client | 405ba45fb322ddea983014906299192ee10ad9f7 | 70a224bfd5111f5e40774cd19dab5c79d857633d |
refs/heads/master | <repo_name>crossz/scrapy_coverspick<file_sep>/covers/items.py
# -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class CoversItem(scrapy.Item):
# define the fields for your item here like:
# nam... | 2633a052a40f90405ec5493a5539118dd4704008 | [
"Markdown",
"Python"
] | 3 | Python | crossz/scrapy_coverspick | 9a9e2c9589bb43cba44e096b20fb1e03cb6c3691 | ed70e77bc335e72d67b2465e125f346200532b12 |
refs/heads/master | <file_sep>import static org.junit.Assert.*;
import org.junit.*;
import java.util.*;
public class UnionTest
{
private Vector a, b;
@Before // Set up - Called before every test method.
public void setUp()
{
a = new Vector(5);
b = new Vector(5);
}
@Test
public void repea... | 4107ef5bd073818bc9ff3073cee7c1099f216e26 | [
"Java"
] | 1 | Java | SheilaOM/ISI-Pract_junit_idm_indiv | 961f7803d8a80245c0c14eb65187c896f2a63717 | 0629cd95f221085e5cf74226f7846776261a3415 |
refs/heads/master | <repo_name>halgurx/halgurx.github.io<file_sep>/openlayers/ol_function.js
function flash(feature,number) {
var start = new Date().getTime();
var listenerKey;
var duration = 10000;
function animate(event) {
var vectorContext = event.vectorContext;
var frameState = event.frameState;
var flashGeom = feature... | 030bf4ea13da2648e0946520afa3615000db9616 | [
"JavaScript"
] | 1 | JavaScript | halgurx/halgurx.github.io | cec58bf10c449db0d2342d46b36fc8b0789a12e4 | f3b83afead1006a9e999002d20b6d8d486173470 |
refs/heads/master | <file_sep># Seknova Health Care System
A Pen created on CodePen.io. Original URL: [https://codepen.io/shannon1012/pen/wvGzgQN](https://codepen.io/shannon1012/pen/wvGzgQN).
<file_sep>//show default start date
var year = new Date().getFullYear().toString();
var month = (new Date().getMonth() + 1).toString();
var date ... | a3c5a866b99238afaacd74743d59ab9609170afc | [
"Markdown",
"JavaScript"
] | 3 | Markdown | shannon1012/Seknova_Health_Care_System | 6ff8e32dae15b1a5f0f10e9cb801b91fbd103cc6 | 163d799403e0c3e2db5f076e24d3f9e500d2cfa8 |
refs/heads/master | <file_sep># site_visits
Site Visits
This is code to help prioritize site visits based on location and other attributes
.
The code files all start with the letter r for run.
r1 takes the site visit location Excel file on the WSDOT sharepoint site and converts the addresses into lat/long that can be added to maps.
... | 29aa865f48677548daa634ce3b226d9b2bfc61b9 | [
"Markdown",
"R"
] | 7 | Markdown | ptddatateam/site_visits | 14daedbc207ae983d7a039554e3cbcfa46a65254 | 07e5fba28dc52c8d230cacbf20f04a1316714fa1 |
refs/heads/main | <file_sep><?php
$matches = [
partita1=>[
casa => ['torino', 73],
ospite => ['milano',50],
],
partita2=>[
casa => ['genova', 60],
ospite => ['milano',50],
],
partita3=>[
casa => ['napoli', 73],
ospite => ['pisa',50],
],
partita4=>[
casa => ['pisa',... | 889737269be584e5431f2888bae39bc6496c1c70 | [
"PHP"
] | 1 | PHP | edoardocollo/php-snacks-b1 | 60d63b4ba2e4fe10293c1042460d9383880f9b64 | 83bf025fa5447f85abedeaefbc221dd6c19d793e |
refs/heads/master | <repo_name>DebraBowen/datasciencecoursera<file_sep>/cachematrix.R
## makCacheMatrix() builds a set of functions and returns the functions in a list
## to the parent environment.
## to run, use the following steps:
## 1. m <- matrix(c(1:4), nrow = 2, ncol = 2)
## 2. matr1 <- makeCacheMatrix(m)
## 3. cacheSolve(matr1)
... | a2687d3d630f2705e4d70c6ffc0428899b2cdd5a | [
"R"
] | 1 | R | DebraBowen/datasciencecoursera | e5da46b91038cbcf042f39b4d8d26c15dab0fbf4 | 5763e2cfe0d36ad868e0efd80edfdc2056c6d7c7 |
refs/heads/master | <file_sep>################################################################################
# Automatically-generated file. Do not edit or delete the file
################################################################################
Computer Controlled_Robo.c
uart.c
<file_sep>#include<avr\io.h>
#include<avr\interr... | 2d681f14878cb806462c812b5f6fa87104460eea | [
"C",
"Makefile"
] | 5 | Makefile | ExploreEmbedded/ExploreRobo_Sample-Code | f2b971b732b1384a7c110b1c83b8820bd5823b56 | 5616aeceddc377a7632d838fa6ba3ece2ae72d87 |
refs/heads/master | <file_sep>#!/usr/bin/env bash
set -e
set -x
CONF=$(vagrant ssh-config)
function field {
grep "$1 " <<<"$CONF" | awk '{print $2}' | tr -d '"'
}
exec fab \
--no_agent \
--no-keys \
--disable-known-hosts \
--user="$(field User)" \
--password=<PASSWORD> \
--hosts="$(field HostName)" \
--port="$(field Port)"... | b79a562ce86a8a4f3c940702598c91f2e0a3a64c | [
"Python",
"Text",
"Shell"
] | 10 | Shell | fishsilo/skipjack | 52c4a496e86975e599930dceb7ef94abf7704a57 | b0a932addb7dabde4cec9eb0852ab47da3b45a09 |
refs/heads/master | <file_sep>#pragma once
#include "defines.h"
#include "material.h"
#include "light.h"
//游戏渲染接口
class CRenderInterface
{
public:
CRenderInterface() :m_screenWidth(0),
m_screenHeight(0),
m_near(0),
m_far(0) {}
virtual ~CRenderInterface() {}
virtual bool Initialize(int w, int h,WinHWND mainWin, bool fullScreen) ... | 39ae39387e272cb7442c2508774491ad19cba635 | [
"C",
"C++"
] | 7 | C++ | qianchedu/D3GameProject | 8c8a9afbaeec436fed3e830ca7580e56a9ae57a8 | f398a9272b9f2cfacec11edb54e19554db64b5be |
refs/heads/master | <repo_name>scrpatlolla/learning-redux<file_sep>/src/index.js
import 'regenerator-runtime/runtime';
import { createStore, applyMiddleware } from 'redux';
import createBehavioralMiddleware from './bp-middleware';
import {
findWins,
generateThreads,
matchAny
} from './utils';
const log = document.getElementById('lo... | a4949e74d36beaba73546eae13015aa4d7fc757b | [
"JavaScript"
] | 2 | JavaScript | scrpatlolla/learning-redux | 168e10de01c986e64f2cd3f5e6d8223ab9bcb30e | b5d8213c6d0fe681ce4585bd0da2f54d646a9e08 |
refs/heads/master | <file_sep>// Run script after DOM has loaded
document.addEventListener('DOMContentLoaded', function() {
// Store submit button in a variable for easy reference
var optionsButton = document.getElementById("options_submit");
// Capture input value to determine board size and color and set up the board
optionsButton.add... | 846553b52dc09132c568153da1dd1a351467a84d | [
"JavaScript"
] | 1 | JavaScript | jsakalys/scalable-tic-tac-toe | 177d4b059d5c385942eb64b7cb62a01ac3f1a400 | a1226825998f1aa2d9b5831e38684991a3a55ad9 |
refs/heads/master | <repo_name>HxHexa/spring2019-spendings-tracker<file_sep>/spendEntry.cpp
/* spendClass.cpp - implementations of spendClass functions
* <NAME> 5/26/2019
* Final project for Spring2019 - spendings-tracker
* */
#include "spendEntry.h"
<file_sep>/namedList.h
/* namedList.h - header for named list class
* basically a li... | bf2bba04b51177572a2a41c4f74627bf728970cb | [
"Markdown",
"C++"
] | 10 | C++ | HxHexa/spring2019-spendings-tracker | 5ba3e39d316ad12cceaddad9a30403c01d964509 | 452559fa940a2bd8718a7193892e8e9386f763cb |
refs/heads/master | <file_sep>// Parallelized async/ await promiseall .map()-loop
// Handy for inserting values into a database all at once
// (be sure to open enough db connections)
async function parallelize(value) {
return new Promise(async (resolve, reject) => {
const vals = value.split(',');
const loop = async() => {
... | a3dd73b8fda89286c0785be34fde128da9139e8b | [
"JavaScript",
"Markdown",
"Shell"
] | 8 | JavaScript | laurengarcia/cheatsheets | 6103af16bd7d330e3b282d2e78a76b34e3b40005 | 018173b8fe7c02f6c888675ed9ee889b6b546273 |
refs/heads/master | <repo_name>deerabby123/triangle-rest<file_sep>/triangle/test/triangle/test.java
package triangle;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class test {
private triangle calc;
@Before
public void setUp() throws Exception {
System.out.print... | 13a126a7fcf5ad537da9565e8d073afa9773af8d | [
"Java"
] | 2 | Java | deerabby123/triangle-rest | 18be4a61f0dfd79fda8afb343df762270e5ff9b5 | 69b1623c7445699c246ea4f7bfc92d8f67468439 |
refs/heads/main | <file_sep>/* QUICK NOTES
Grid must be a square nummber of user input
Auto-grid used for both row/column in grid-template
*/
// Create input bar for users to add the number of grid boxes
const form = document.createElement('form');
const label = document.createElement('label');
const input = document.createEle... | 7702312ba9cd4d2d1f84331af5f9adf288459bd3 | [
"JavaScript"
] | 1 | JavaScript | blitheryjibits/Etch-a-Sketch | 809a98806f6d9c9d2a482b0c608728541597e8fc | 04ca9f620d0f6486fa96b28b1af1d05076e6f2fd |
refs/heads/master | <file_sep>import java.util.ArrayList;
import java.util.List;
public class ShoppingCart {
String id;
String userid;
List<Product> products = new ArrayList<Product>();
ShoppingCart(String id, String userid){
this.id = id;
this.userid = userid;
}
public void addProduct(Product prod... | c420713178449e6d25a424e5eb6c78a415dca3ab | [
"Java"
] | 3 | Java | Ariunjin/Lab13 | 9b07b90fc551b44245903858b0a24420013406f2 | 6ae64eff3f90008d1f20f67090b4b8dabcd501cd |
refs/heads/master | <repo_name>jeromevs/currency-converter<file_sep>/src/App.js
import React, { useState } from "react";
import "./App.css";
import Dollar from "./images/dollar.png";
import Arrow from "./images/arrow.png";
import Arrowup from "./images/arrowup.png";
import rates from "./Rates";
const deviseItems = [];
Object.keys(rates).f... | bda05165ed17a97a783789510b5b291bdab0c12b | [
"JavaScript"
] | 1 | JavaScript | jeromevs/currency-converter | 767daf02ce9a11902bb2fce396af4f698056c2a1 | f0daa0e25d7eea56cf0ba80fd80f4a2b5fb00ab1 |
refs/heads/master | <repo_name>MarkFrando/MemoryApplication<file_sep>/app/src/main/java/com/midterm/frando/memorygame/ScoreActivity.java
package com.midterm.frando.memorygame;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import an... | 76fab24709847edc2e9a513bf94aa4329fe57d36 | [
"Java"
] | 3 | Java | MarkFrando/MemoryApplication | 05d4b1ed463747f5672ccd231dde27225ccb1705 | aa1ba871371cd278121da5ab8f75f0dcdeb41b0f |
refs/heads/master | <repo_name>askergali/alice<file_sep>/test(original).py
import requests
from random import sample, shuffle, randint
from flask import Flask, request
import logging
import json
def randomBooks_and_Authors():
questions_authors, answers_authors = [], []
for i in range(5):
book, author = random_book()
... | 1493806f99e1bac3ecf1158ca84487e62424e8b7 | [
"Markdown",
"Python"
] | 2 | Python | askergali/alice | c213335aa4ffe7229aedabdfaa8adfb69025eff6 | 90daff278d823cc736aa6de9325fdc29fa6fe3b6 |
refs/heads/main | <repo_name>dbushy727/space-invader<file_sep>/app/Commands/PollSpaceInvader.php
<?php
namespace App\Commands;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Http;
use LaravelZero\Framework\Commands\Command;
class Poll... | a2a407591c851d9d637f14e592c355fa0aa632f9 | [
"Markdown",
"PHP"
] | 2 | PHP | dbushy727/space-invader | b08a8ee68dbc52d011d5ef45b4c813662ae035fd | 060bd90cad0c5754d32b8239f01e08310db916e4 |
refs/heads/master | <file_sep>SysDashboard
============
A dashboard for metrics.
Installation
------------
```bash
npm install -g sysdashboard
sysdashboard board:create myboard
cd myboard
sysdashboard server:start 3333
```
Widget
------
A widget displays something: a number, a graph, an image, etc.
Create a new widget:
```bash
cd p... | e72cf3d40db22fdd2416ec7dde822cd968a9629b | [
"Markdown",
"JavaScript",
"Shell"
] | 4 | Markdown | neolao/sysdashboard | aa202c09b496ad4d48ee756cd3d2e12c263a53a1 | fa33dd9e9464cb46798b527bc5c3a3ef7fd31105 |
refs/heads/master | <file_sep># coordinate_structure.py
# <NAME> / 11.2015
#
# A basic class for dealing with geographic coordinates. Data is stored in a Numpy ndarry, with entries corresponding to rows.
# Basic usage:
# cs = coordinate_struct()
# cs.set_coords(lats, lons, alts, 'geographic')
# cs.set_coords(L, lons, alts, 'L_dipole... | efd4925c1ee12b99857bc414d31e32e014c84470 | [
"Python",
"Shell"
] | 16 | Python | asousa/fluxMDP | 751b90eb068b4bc4d3ea6f3ec3a357bd2045cae8 | 3974ee9532e04bf2aed1a82802ab3d4090610e24 |
refs/heads/master | <repo_name>jasonhutchens/hacktile<file_sep>/www/deploy.rb
gem "fog"
require "fog"
secret = nil
if ARGV.length > 0
secret = ARGV[0]
end
if secret.nil? || secret.length < 10
puts "Please specify the amazon secret key as the first argument."
exit
end
dist_dir = "./dist"
# deploy to root
begin
files = Dir.ope... | 449662cf496fcd4224f599068edfe01e0a43f37e | [
"JavaScript",
"Ruby",
"Go",
"Makefile"
] | 7 | Ruby | jasonhutchens/hacktile | 352c808b63ae05449675ca6525c753f95f7d4655 | 61f22f945aa101a3d28650359cf80eb29ada08ea |
refs/heads/master | <repo_name>haranguri2020/ENTELGY<file_sep>/src/main/java/com/miempresa/rest/GreetingController.java
package com.miempresa.rest;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.u... | fda4b64bf850e2b597498f19ae57b0b171f4d1a3 | [
"Java"
] | 3 | Java | haranguri2020/ENTELGY | 5e19a61bd9bb5f8107ebc9e48ac2baa9b9d6c398 | c03f001ecb2974565bad63c7f727c0b975512b75 |
refs/heads/master | <repo_name>tcoenraad/rolit<file_sep>/tests/test_server_bonus.py
import pytest
from mock import Mock, call, patch
from rolit.server import *
from test_server import TestServer
@patch.object(random, 'shuffle', Mock())
class TestServerBonus(TestServer):
def test_chat_when_enabled_and_in_lobby(self):
self.se... | 1609eb88798d335e04cfb2bde1592977f354f969 | [
"Markdown",
"Python",
"Text"
] | 25 | Python | tcoenraad/rolit | 39285a28a238be907c7df8fbffcfe88d394ed04e | 6641cd93c0ffd190e1b5bcc7f3546a6524402075 |
refs/heads/main | <repo_name>Lemout17/goit-react-hw-08-phonebook<file_sep>/src/redux/contacts/contacts-selectors.js
import { createSelector } from "@reduxjs/toolkit";
const getContacts = (state) => state.contacts.items;
const getFilter = (state) => state.contacts.filter;
const getLoading = (state) => state.contacts.loading;
const ge... | ed2e2022fa50fed1f804d5977b461a75f366f599 | [
"JavaScript"
] | 12 | JavaScript | Lemout17/goit-react-hw-08-phonebook | 936612d6c1462ed1184b763ac3b1cd58deb8ade6 | cadbf3d92d76c2cbeee1112693963865569ba3ff |
refs/heads/master | <file_sep># Movies
Movies is a React-Native App using the TMDB API, it allows users to search for a film by his name, date, actors etc. Also users can add films to their favorite list or watched movies list.
<file_sep>import 'react-native-gesture-handler';
import React from 'react';
import {StyleSheet, Image} from 'rea... | c8298ff08afd6ad9fc9309d363dd679a262b8f10 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | boudja/Movies | 5a3e57a051dc811bfedf429f5250bfd4504e55f5 | dcce084f25fdf780bd243e05bcfda9f53c61266f |
refs/heads/main | <file_sep>#include<iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter a positive integer for displaying its table\n";
cin>>n;
for(int c=1;c<=10;c++)//c is counter
{
cout<<n<<"*"<<c<<"="<<n*c<<endl;
}
return 0;
}<file_sep>#include<iostream>
using namespace std;
int main()... | 375cedfd9eda545db98d1561d5fc7b8d8820854e | [
"Markdown",
"C++"
] | 14 | C++ | KhushbooMishra7/Cpp_codes | 14e21109d11a037680c6ac2d727bf82b8f3baadb | 984441230e62a654bd5308a7ba0c5486adda99e6 |
refs/heads/master | <repo_name>jiaqingw/jjw72p<file_sep>/app/models/spree_product_decorator.rb
Spree::Product.class_eval do
attr_accessible :count_on_hand, :created_at, :updated_at
# Returns all the Products that are related to this record for the given RelationType.
#
# Uses the Relations to find all the related items, and then f... | 736551ef411eab0442a5f53469aa102dd0064321 | [
"Markdown",
"Ruby"
] | 8 | Ruby | jiaqingw/jjw72p | 61ee08cb3d9fff4828cfe569a8ec17aa90eac22a | 5157c2f36137b13c2a6f15afff57056db5881db2 |
refs/heads/master | <repo_name>sc28/frontend-nanodegree-resume<file_sep>/js/resumeBuilder.js
/*
This is empty on purpose! Your code to build the resume will go here.
Open questions
-How does this script know references to helper.js without pointing to it?
-Why don't images display? --misnamed properties, and HTML format tags as well (fixe... | 1cb2a0667fe1a9556b36bcec1024b8edbe8d77a7 | [
"JavaScript"
] | 2 | JavaScript | sc28/frontend-nanodegree-resume | a62b827edb1c91778d8a16f7190fdd3eaaa21260 | ec5b1f6917d07829db7a609b001f08bedee5b0bb |
refs/heads/main | <repo_name>yudjinn/nwbnk-frontend<file_sep>/README.md
# nwbnk
## Project setup
```
npm install
```
### Compiles and hot-reloads for development - currently hits the stage server. We can create another env if localhost is server.
```
npm run dev
```
### Compiles and minifies for stge
```
npm run stage
```
### Compil... | 1687b571106f4e25ba0fa6b18864a08a0be737be | [
"Markdown",
"JavaScript"
] | 4 | Markdown | yudjinn/nwbnk-frontend | 8235870beaefcbf879ac49122eeb70ccc6dbbbdb | 847c7cba8d4cac521a652a23d1d6deb6d4bebda9 |
refs/heads/master | <repo_name>ZioPepito/PaunApp<file_sep>/src/Screens/UnityScreen.js
import React from "react";
import { SafeAreaView } from "react-native";
import UnityView from "react-native-unity-view";
import { UnityModule } from 'react-native-unity-view';
export default function UnityScreen({ navigation }) {
const id = navigati... | 8eee93672d7afadf717050f4b5d4d6b9fc8f293e | [
"JavaScript",
"Markdown",
"Gradle"
] | 19 | JavaScript | ZioPepito/PaunApp | 84b3c0260ae853e1ce5f344051573ebf2818a320 | 0073678f00cff2969f985e5ac17b5e51e5f33281 |
refs/heads/master | <repo_name>Drkilla/AspNetTPObjectsView<file_sep>/TP_Train_passages_objets/Controllers/WagonController.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace TP_Train_passages_objets.Controllers
{
public class Passagers
{
public string no... | 06322b017e45f66429fadc421cdc2502afe267e6 | [
"C#"
] | 1 | C# | Drkilla/AspNetTPObjectsView | 291faf3dae94e6aa9d3ad5ebbb11ad2ccf537a3d | 94bb2164855e4b9ca64b681e13516ba1d35764fd |
refs/heads/master | <file_sep>import React from "react"
import Session from "../Components/session/Session"
import Header from "../Components/header"
import "../Styles/login.css"
function Login () {
return (
<>
<Header/>
<Session/>
</>
)
}
export default Login<file_sep>import React, { u... | b90f200efab74c867af8e0d79758e3f3ad3572a7 | [
"JavaScript",
"Python"
] | 27 | JavaScript | felipecapistrano/RPGHub | ad869ab1a92cb1157424c66f61e8d34d6e794657 | 48eb70550bc72e3392176cc7567c2ce736152bc3 |
refs/heads/master | <repo_name>SamiMurtaza/Fractals-in-Nature<file_sep>/code.py
from turtle import Turtle, tracer
from time import clock
class Stack:
def __init__(self):
self.stuff = []
def isEmpty(self):
return bool(self.stuff)
def push(self, item):
self.stuff.append(item)
def pop(self):... | 2f765aa8dc110b84c07dd6eb39a1c77d928fda45 | [
"Python"
] | 1 | Python | SamiMurtaza/Fractals-in-Nature | 355f51fcad68e0d20a0f8223e35d4f5733a4285a | 8a4e1328593b1f73bb23edf97851b5879a546ceb |
refs/heads/master | <repo_name>rainbow911/CHHook<file_sep>/Demo/PrintTest.swift
//
// PrintTest.swift
// Demo
//
// Created by shenzhen-dd01 on 2019/6/17.
// Copyright © 2019 rainbow. All rights reserved.
//
import UIKit
class PrintTest: NSObject {
@objc class func printSomething() {
print("this is swift print!")
... | 0402a2406d29ef76af176558e60c654f15c4a9f2 | [
"Swift",
"Ruby",
"Markdown"
] | 3 | Swift | rainbow911/CHHook | 7c907d29e9bacb53f5451b8e9efc9a23455b774f | 89fae4707a1137d46ee8c3d4e98e5891dc285862 |
refs/heads/master | <repo_name>LoyaniX/long-map<file_sep>/src/main/java/de/comparus/opensource/longmap/impl/LongMapImpl.java
package de.comparus.opensource.longmap.impl;
import de.comparus.opensource.longmap.LongMap;
import de.comparus.opensource.longmap.models.Entry;
import java.lang.reflect.Array;
import java.util.Arrays;
public clas... | 3cb6046fac047655d76ccfdc785374ca61e4f7c3 | [
"Java"
] | 2 | Java | LoyaniX/long-map | c753da6f5557bd042a45a992c40e7009736c1db9 | 680f4389a74fd0e7779ae223833683d70164a92f |
refs/heads/master | <repo_name>azaleas/camper-leaderboard<file_sep>/src/App.js
import React, { Component } from 'react';
import './App.css';
import api from './api';
import { Table } from 'react-bootstrap';
/*
Dummy data
const dataJSON = [
{
username: "alan",
recent: 100,
alltime: 1000,
},
{
username: "aan",
rec... | 894cb66145da94953365812f6af7486589dc4056 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | azaleas/camper-leaderboard | 12bdf35e4a0692cdc6c4786e4405de4284ceae9a | 39227a216365bcceca24b0a416e6a29f1b794e62 |
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 threads;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author Nikolaj
*/
public clas... | 3a09c380e0b75633ae1f40509ecd064a8c098b8a | [
"Java"
] | 1 | Java | brunnernikolaj/CPH-Assignments | 4e6e00ae898cfc1100612429a0a2c5c38be1b510 | ceab92a9c2236388ee2634486cc7df94a4914a03 |
refs/heads/master | <repo_name>iuthub/lab-4-otabek1998<file_sep>/webpage/sucker1.php
<?php
include("task1.html");
?><file_sep>/webpage/sucker2.php
<?php
include("task2.html");
?><file_sep>/webpage/sucker3.php
<?php
include("task3.html");
?><file_sep>/webpage/sucker.php
<?php
include("datas/task1.html");
?><... | dd606690b2c1438bd44fb6cc8410ed7aeda3d282 | [
"PHP"
] | 6 | PHP | iuthub/lab-4-otabek1998 | 2d4c5f4d39274ac0715d0ce986dbfe8992b5d14e | fdf04e8174ca6ca9da270dbed06ee29c2d39d019 |
refs/heads/master | <file_sep>import React from 'react'
import { useDispatch } from 'react-redux';
import { deleteOrder } from '../../actions/OrderAction';
import './Cart.css';
import { incrementQuantity, decrementQuantity } from '../../actions/OrderAction';
import { currencyFormatter } from '../../utils/currencyFormatter';
const CartIte... | 2785f48071c83ea04a1b3791cf281b79572da05b | [
"JavaScript",
"Markdown"
] | 9 | JavaScript | paulalonte/react-redux-app | c462b425451806838d4bbaed686c74081cd8c578 | f0abb563299732267db6bceb096a7fa245b476ce |
refs/heads/master | <repo_name>mukeshyadav/cypress-test<file_sep>/cypress/integration/domops.spec.js
describe('UI TESTS', () => {
beforeEach(() => {
cy.visit('http://example.cypress.io/commands/actions')
})
it('should clear the inpute text field', () => {
// cy.get('.action-email').type('<EMAIL>').should('have.value', '<EMA... | e11c163ab6a399807ba9ddbd96b06ff0ee21bf7e | [
"JavaScript",
"JSON with Comments",
"Markdown"
] | 5 | JavaScript | mukeshyadav/cypress-test | 4aeea827d8f99361a1eb6529202fb417fc9819fe | a6fd2c80125012f499994e15188506e72fdca05d |
refs/heads/master | <file_sep>import { TestBed } from '@angular/core/testing';
import { CarserService } from './carser.service';
describe('CarserService', () => {
let service: CarserService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(CarserService);
});
it('should be created', () =>... | 5e6bfd23154b0cfabb613a03e0a2781e4c651bb4 | [
"TypeScript"
] | 3 | TypeScript | Technopark-Altair/adv-test-2-Vatiora | 3e1466d06ab3bd3bd93a52a0c03b00b757e28676 | abe3fbb41945bc816d9d1af537eafb7d4a8029f9 |
refs/heads/master | <file_sep>package AccessModifier.ProtectedEx;
public class ProtectedEx1 {
protected String lastName = "CHOI";
}
<file_sep>package AccessModifier.DefaultEx;
public class DefaultEx1 {
String lastName = "CHOI";
}
<file_sep>package AccessModifier.ProtectedEx.pt2;
import AccessModifier.ProtectedEx.ProtectedEx1;
... | 2e145a68b8b46954023b919e7797862831a71e00 | [
"Java"
] | 28 | Java | soo-dev/java-practice | e9a65283a5eee4e6d3498d43005124c8e672c6bb | 669e7aebcef85ea4b14c1fde5e9d7a3b7de4504d |
refs/heads/master | <repo_name>kmolik/file-upload-app<file_sep>/src/app/app.component.ts
import {Component} from '@angular/core';
import {HttpClient} from '@angular/common/http';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor... | 713a1dc57cb6aa9a71fc7eee034dec32fd152d2c | [
"TypeScript"
] | 1 | TypeScript | kmolik/file-upload-app | 04fd83e24678e01bd349243153eee55d1fa05800 | 0a32a67a6f7dc519ed474b567b6becb996732ab4 |
refs/heads/master | <repo_name>Danejerosa/Projects<file_sep>/Yelp2V18/YelpProject/GUISetup/QuerySetup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace YelpProject.GUISetup
{
class QuerySetup
{
private SQL.SQLQueries newQuery = new SQL.SQLQuer... | 88390d238050cff96d694e94b800193077dd5de3 | [
"C#"
] | 21 | C# | Danejerosa/Projects | fb81f0b6777bcd67af3283f3c6098276e9b94fdc | fbb4f219b85c2a2564368330eb7799813c5a0bd4 |
refs/heads/master | <repo_name>xkWeiMeng/X-1<file_sep>/OurGame/Scenes.h
#pragma once
//包含此头文件即可包含所有场景的声明。
#include"Scene.h"
#include"HomeScene.h"
#include"AboutScene.h"
#include"GamingScene.h"
#include "DesignMapScene.h"
#include "GameSettingScene.h"
<file_sep>/OurGame/Scene.h
#pragma once
#include"DirectX.h"
#include"DirectSound.h"
//所... | 08771a55a94c9461a751afa324e8b9ed9ca983b0 | [
"C",
"C++"
] | 27 | C | xkWeiMeng/X-1 | ccff3fac40a2d096769fffa8540a9785e562c05f | 51e8f430594de035813b2b1a20ab958c0aa03bed |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
"""
Created on Tue Feb 11 10:19:34 2020
@author: Danilo
"""
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier as dc
from sklearn.metrics import accuracy_score
from sklearn.svm import ... | 6efb1cab9c0c9ce7f0c4b4f7faff420e739db312 | [
"Markdown",
"Python"
] | 3 | Python | DaniMe98/ICon-progetto | db29dca7a8b4480ca7da0c9213289deec996140c | a777a92b7135fe8d3500c01cb1c132a2e3514ebb |
refs/heads/master | <repo_name>pj-92-gh/project-3-turnin<file_sep>/nevada-caucus-sentiment-master/static/js/test-data/testing-data-format-3.js
var data = [
{
candidate: "<NAME>",
overall_result: "Positive",
Positive_Sentiment_Score: 67.3,
Negative_Sentiment_Score: 30.7,
general_sentiment_score: ... | 6b118dabe50a3ea991d54347e8c451cfce044b7d | [
"SQL",
"JavaScript",
"Markdown",
"Python",
"Text"
] | 13 | JavaScript | pj-92-gh/project-3-turnin | e111ad2c482b654f8f6a2ce68db1573fc23dc17e | 40e7b4ed048dba76f75c654d687c5b3de2ec6dc6 |
refs/heads/master | <repo_name>justperson94/Machine-Learning-Exercise<file_sep>/Data_Download/Data_Download_using_urlopen.py
import urllib.request
url = "http://uta.pw/shodou/img/28/214.png"
savename = "test_urlopen.png"
# urlopen() >> url에 있는 읽어들이고 파이썬 메모리에 저장한다, 저장후 mem 변수에 저장
mem = urllib.request.urlopen(url).read()
with open(savena... | 0085e3d7a46852ec651818841421ae02da1a4ee7 | [
"Markdown",
"Python"
] | 3 | Python | justperson94/Machine-Learning-Exercise | 9f46c7b7b32738d4a7592c233992b745283445bb | c076009db7f4814f89ff29f8542df69e9951388d |
refs/heads/master | <file_sep>from django.db import models
# Create your models here.
class Board(models.Model):
ttl = models.CharField(max_length=50)
contents = models.TextField()
writer = models.CharField(max_length=20)<file_sep>from django.shortcuts import redirect, render
## Model 추가
from .models import Board
# Create yo... | dade9553233bf25d421c93092eca5a2155259efe | [
"Python"
] | 3 | Python | lineaheshsh/djangoProject | 75fbe345b65328d57ba16de7f7ea017a3e53c13b | 863e8c9f14ae0bbbf4c5ad795f6b878c1f61f517 |
refs/heads/main | <file_sep>import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-la-libertad',
templateUrl: './la-libertad.component.html',
styleUrls: ['./la-libertad.component.css']
})
export class LaLibertadComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
<file_sep>import... | 26f798e188ab4674bb02ff454350abd5f60bf0f3 | [
"JavaScript",
"TypeScript"
] | 7 | TypeScript | Elizabeth186/CATEDRA_DAW | 4f39506c9108f5c17364c3cb25a947bc7eccf200 | 53f886f88dfa08a506aeb2c5299dbaa70b3b54f2 |
refs/heads/master | <repo_name>avatarwefa/Insight_Photography<file_sep>/admin/schedule/select.php
<?php
$connect = mysqli_connect("localhost", "root", "", "insight");
// echo "<script type='text/javascript'>alert('Get here!');</script>";
$output = '';
$sql = "SELECT * FROM SCHEDULE ORDER BY SCHEDULE_ID DESC";
$result = mysqli_... | cf363db84b50671554f23c1839bc52d407dc5e7d | [
"SQL",
"PHP"
] | 24 | PHP | avatarwefa/Insight_Photography | 5cee178a2774d56380c24905ef96c753350c91af | 4b5371c870e6cbec6c4b25e955278514563441f3 |
refs/heads/master | <repo_name>owdelc/ECO<file_sep>/Proyecto 2.0/Contador_Oxigeno.java
import java.text.DecimalFormat;
public class Contador_Oxigeno{
DecimalFormat df = new DecimalFormat("#.000000");
public String Contador(int anos_trascurridos){
double disminucion_oxigeno = 0.7;
int an... | 861975481b66c9e7ebf5925624ee37bae9c8e345 | [
"Java"
] | 3 | Java | owdelc/ECO | aa16895571a34c507987b3db6058f85e78e10b21 | c90b26fe6ec4d6fe053cfd93ad09b8640c1501e2 |
refs/heads/master | <file_sep># 'hello, {name}!'と出力してください 。
def hello(name):
print('hello, John!')
pass
# sentence の文字数を出力してください
def length(sentence):
s = sentence
print(len(s))
pass
# sentence の2文字目から5文字目まで(5文字目は含まない)を出力してください
def slicing2to5(sentence):
print(sentence[2:5])
pass
# number の符号を出力してください。ただし... | 8e6500d33ae4dbda667e60d27a780fa0490b95c5 | [
"Markdown",
"Python"
] | 2 | Python | n16009/exam201602 | 64ffbeb988cd4e96a8e4f5403e4de2de43ebcf06 | acd9388ad2032aa1eabd15d9ef006699965f1c75 |
refs/heads/master | <repo_name>Timbinous/calcinator<file_sep>/spec/lib/calculator_spec.rb
require 'rails_helper'
describe Calculator do
describe "#calculate" do
context "multiplying" do
it 'multiplies 2 numbers and injects the result into the string' do
expect(Calculator.loop_calculation_string(/([\d]+\*[\d]+)/, '*', ... | 22983cab08d9c60efcbce687abaa2db7d7b5d584 | [
"Ruby"
] | 3 | Ruby | Timbinous/calcinator | 7baaf039425b42c92514d800a3727f18c081586d | e0acdd6cb51756cb963f34f6df6080390a12a213 |
refs/heads/master | <repo_name>cherryfletcher/ProgrammingAssignment2<file_sep>/cachematrix.R
## The following functions cache the inverse of a matrix
## makeCacheMatrix creates a special matrix that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
s<- NULL
set<- function(y) {
x<<- y
s<<- NULL
}
get<- funct... | d62c2cf15843709c2c322df5784588badd4e0f19 | [
"R"
] | 1 | R | cherryfletcher/ProgrammingAssignment2 | 51503b9c57efa79a61047df5025d7629d7851d67 | fb9f4242b2b6220256dc2ffec06972766a4fcdad |
refs/heads/master | <file_sep>const moonPath="M26 54C26 83.8234 54 108 54 108C24.1766 108 0 83.8234 0 54C0 24.1766 24.1766 0 54 0C54 0 26 24.1766 26 54Z";
const sunPath="M108 54C108 83.8234 83.8234 108 54 108C24.1766 108 0 83.8234 0 54C0 24.1766 24.1766 0 54 0C83.8234 0 108 24.1766 108 54Z";
const darkMode=document.querySelector('#darkM... | 13f1fa79d89467b0716e79fbdf34218a87abb5a7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Cindy1229/DarkMode-Animation | 7d034112aed9d536a9501d1fcd02fadb55452547 | 288e8ce029deadb4b089781e226fd97d6d7a535c |
refs/heads/master | <file_sep>package com.yash.aws.dynamodb.repository;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.amazonaws.services.dynamodbv2.data... | e90dff8c2dd5367b73eb4d89c73f68c3def1ef34 | [
"Markdown",
"Java"
] | 2 | Java | andreprawira/AWS-DynamoDB-SpringBoot | 4bec2fb12f423a04ee4d0a1c550bbdf03dbc8891 | b709ed882051f967389ce7323fb0b3cdb75a1030 |
refs/heads/master | <repo_name>stelligent/hab-demo-pipeline<file_sep>/bootstrap.sh
#!/bin/bash -x
set -o pipefail
error(){ echo ${1}; exit 1; }
# env variables
[ -z ${AWS_PROFILE} ] && error "Please be sure AWS_PROFILE is set in the environment"
[ -z ${LAMBDA_BUCKET} ] && error "Please be sure LAMBDA_BUCKET is set in the environment"
L... | af5fa5ecace09bbb635e3dbb1e3a17e38fc1fdc6 | [
"JavaScript",
"Markdown",
"Shell"
] | 3 | Shell | stelligent/hab-demo-pipeline | a42343c48f334cfeeff16c9bfcceeb7b9ceb314a | e6692989c9e9dfa75c6826311917a65a4f974098 |
refs/heads/master | <repo_name>tbaranes/FriendsPictureQuiz<file_sep>/Podfile
workspace './FriendsPictureQuiz.xcworkspace'
xcodeproj './FriendsPictureQuiz/FriendsPictureQuiz.xcodeproj'
platform :ios, '7.0'
pod 'FSI', '~> 0.1.0'
pod 'MBProgressHUD', '~> 0.8'<file_sep>/README.md
# FriendsPictureQuiz
FriendsPictureQuiz's was a small applic... | 51550decf1f0fe2aa06aa3936c4af854970748cd | [
"Markdown",
"Ruby"
] | 2 | Ruby | tbaranes/FriendsPictureQuiz | 5adce27c1dceaf629e1463acc742ca7539626120 | f73e86ae397715e214e8b086ffad2a2b08afad3e |
refs/heads/master | <file_sep>/*****************************************
* UW User ID: uwuserid
* Submitted for ECE 250
* Department of Electrical and Computer Engineering
* University of Waterloo
* Calender Term of Submission: (Winter|Spring|Fall) 20NN
*
* By submitting this file, I affirm that
* I am the author of all modifica... | 9b8e752435e4038c894c19274fd77da178176a70 | [
"C++"
] | 1 | C++ | Ryanschmied/Double_Sentinel_Linked_List | 2302c92f4c520b0132ce6fe19a85c09ab4c5be61 | 1dfe79f078d31c0ef8e5147360915b3eb774543e |
refs/heads/master | <file_sep>package org.launchcode.java.exercises;
import java.util.Scanner;
public class Alice2 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String firstLine = "Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to... | 63a5e2517cf40e3db18961a47bd4c7994059207b | [
"Java"
] | 3 | Java | bonniewhy/java-web-dev-exercises | e6202f34454d28979683238fe920dcf1b5423e80 | f639f6d5f9c14ca76a65052051f704f442da2695 |
refs/heads/main | <repo_name>matt-halliday/logstash-local<file_sep>/Makefile
NO_COLOR=$(shell tput sgr0)
GREEN=$(shell tput bold)$(shell tput setaf 2)
DC = docker-compose
default: start
start:
@echo '${GREEN}Starting logstash${NO_COLOR}'
@${DC} up -d --force-recreate && ./wait.sh
clear:
@echo '${GREEN}Clearing logs${NO_COLOR}'
@... | 1fbb670cc3d6a11d942194f8a253d8aafee4dfbd | [
"Markdown",
"Makefile",
"Shell"
] | 3 | Makefile | matt-halliday/logstash-local | 15a430ae7749c7fa35ca4c864c9a076fd8ba0c06 | bfff8085039401a8d47eddd8f9c49e66b9785d3a |
refs/heads/master | <repo_name>mjrdev/dastcursos-frontend<file_sep>/src/router/index.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../views/Main.vue'
// views
import Login from '../views/Login.vue'
import MyCourses from '../views/My-courses.vue'
import Store from '../views/Store.vue'
import NotFound from '.... | 7bd133f4b729cf26731f6ab7ed18314d8b1ab995 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mjrdev/dastcursos-frontend | 64e538c7f4ee540025f93566d8908e2d82381224 | 07cf0abd4b022384fa5273dc217cf8dd18dd45a6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.