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>lazmoreira/go-todo-server<file_sep>/go.mod
module github.com/lazmoreira/go-todo
go 1.14
require (
github.com/go-http-utils/headers v0.0.0-20181008091004-fed159eddc2a
github.com/gorilla/mux v1.7.4
go.mongodb.org/mongo-driver v1.3.4
)
<file_sep>/README.md
# go-todo-server
Simple todo app
<file_sep>/middle... | 8fd61f9c3c42f56753dead1c3c086b92beeaaa5d | [
"Markdown",
"Go Module",
"Go"
] | 3 | Go Module | lazmoreira/go-todo-server | baee21b6cd2a74a903a22b55282da5097834fe4e | 59fbaeed07b0cdf148974f203335498af856ea2b |
refs/heads/master | <file_sep>/*
* <NAME>
* <EMAIL>
* UCR - CS 122A
*
* RC Car
* Master Module
* Controller
*
* Using Atmega1284
*/
#ifndef CONTROLLER_H_
#define CONTROLLER_H_
int throttle_input = 0x00;
int turn_input = 0x00;
unsigned char adc_translation = 0x00;
unsigned char is_automatic = 0x00;
extern ... | eb21085d544423d079de4ba666b2e39d058eb124 | [
"Markdown",
"C"
] | 9 | C | jrile002/Autonomous-RC-Car | bbe1fccb07417cf0116b536a8bd2b9d7cb65c408 | d1bc5c64a780cd869e6bf8744f9d91042b36e21c |
refs/heads/main | <repo_name>CH1STY/Learning-reactjs-spring-2020-2021-sec-b<file_sep>/FINAL_LAB_TASK/src/components/NavBar.js
import {Link,useHistory} from 'react-router-dom';
import Swal from 'sweetalert2'
import withReactContent from 'sweetalert2-react-content';
export const NavBar =()=>{
let history = useHistory();
... | 64d8b788f2603245cc375c95557321e11cdb1bef | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | CH1STY/Learning-reactjs-spring-2020-2021-sec-b | 185773f88b14efb85e255bcd66455179882132c5 | 627102758584255a3795c5d987a3d7a11dd4b333 |
refs/heads/master | <repo_name>s-anusha/automatetheboringstuff<file_sep>/Chapter 8/extendingTheMulticlipboard.py
#! python3
# extendingTheMulticlipboard.py
'''
Extend the multiclipboard program in this chapter so that it has a delete <keyword> command line argument that will delete a keyword from the shelf. Then add a delete command line ... | f11cd7c3a0ed525887e2affec9436f8a5fa96a30 | [
"Markdown",
"Python"
] | 28 | Python | s-anusha/automatetheboringstuff | 0bf3fc56836654d331d4a5450736cc808059865e | 5db8a442e3eea69a943a34d68b603b1bb5879949 |
refs/heads/master | <file_sep><?php
namespace Ragnaroq\Base;
use Ragnaroq\App\Runner;
use Symfony\Component\HttpFoundation\Request;
/**
* Class BaseView
* @package Ragnaroq\View
*/
class BaseView
{
/** @var BaseModel */
protected $model;
/** @var Request */
protected $request;
/**
* BaseView constructor.
... | 615d08ce31012d38ed470a2d6a3f7e7688760f8b | [
"Markdown",
"PHP"
] | 21 | PHP | spasquier/sv-egg-giver | 731f7df95e73747768c7df70e7ca85c4cf379f64 | 1fbe7d803e59908dda7681d032e8d04209c95fbb |
refs/heads/dev | <repo_name>RomanShabanov/Node-Express-Sockets-MongoDB<file_sep>/src/middlewares/common.middleware.ts
import express, { Router, Request, Response, NextFunction } from "express";
import cors from "cors";
import parser from "body-parser";
import compression from "compression";
import path from "path";
import { isProd } f... | ef0c14376eadb864c2e077dac5e4969ab025d7a4 | [
"YAML",
"Markdown",
"JavaScript",
"Makefile",
"TypeScript",
"Shell"
] | 18 | TypeScript | RomanShabanov/Node-Express-Sockets-MongoDB | e39bd7a7b595cac1d7d7bad66001f8c87c412ced | 5780cd5d4393b1786c8cf92db2155c40eb4d5f4c |
refs/heads/main | <file_sep>Webcam.set({
width:400,
height:400,
image_format:'png',
png_quality: 90
});
camera= document.getElementById("camera");
Webcam.attach("#camera");
function takepic(){
Webcam.snap(function(data_stuff){
document.getElementById("picture").innerHTML="<img id='snapped... | b621830e76ad2934412b4b3571f8f41978a881e1 | [
"JavaScript"
] | 1 | JavaScript | ELOLOLOHI/FaceRecog-Projects103to105 | 98e394c7f9d9be4260ffaa814f92581cf1bbb96f | 2bac8e67337f8a446a9de53138689943382003eb |
refs/heads/master | <repo_name>nathan-wien/funcalc<file_sep>/src/token.h
#pragma once
#include <climits>
#include <string>
#include <cmath>
struct Token {
enum TokenType {
NIL,
NUMBER,
OPERATOR,
VARIABLE
};
Token() = default;
virtual ~Token() = default;
virtual TokenType GetType() co... | ca9296b54f3ce393a53f9e6f229d2e17b6fd79a6 | [
"Markdown",
"CMake",
"C++"
] | 11 | C++ | nathan-wien/funcalc | d8e107c2e253ef0dd56b7e340e8c8dcf1bc93b8b | 6ddcfc23f799c76e7b52a32a19a0349866fcab8d |
refs/heads/master | <repo_name>Jeremiah-Freeman/PHP---Scrabble-Score-Game<file_sep>/README.md
| Behavior | Input | Output |
-----------------------------
| User enters a letter and receives a score for that letter | "K" | 5 |
| User enters a word and receives a score for that word | "LOVE" | 7 |
<file_sep>/tests/ScrabbleScoreTest.php
<?ph... | 2319a15eadb81c0b96307d2ae797dc48e9f561d2 | [
"Markdown",
"PHP"
] | 3 | Markdown | Jeremiah-Freeman/PHP---Scrabble-Score-Game | 0520416d637ed1178e688d14b58f4df753a0092a | 928d19e073d930ce8855b9873046ca90a51ed0a2 |
refs/heads/master | <file_sep># Project : Jewellery Ecommerce Web Application
## Introduction
Ecommerce web application for a fictional jewellery company called Dream Jewellery.
Initially focusing on customer interaction and functionality to allow customers to browse and search products, add to cart, update cart, go through checkout.
#... | 3ef4da70aca21853a00250fc60d0a157edf9bf2c | [
"Markdown",
"Java",
"SQL"
] | 4 | Markdown | Aisling-Connaughton/jewellery-ecommerce | d719b1a6f5b5e0f0068afb45d0ef7bf70c2d08ce | 53f8f3b8734bc5a82f4d42e9c868dba7f1d73e04 |
refs/heads/main | <repo_name>JayBee12/ITBadgePDT22021<file_sep>/Teamplate.py
# Calculator Program
# Name:
<file_sep>/Example3for.py
# For loops using the range() function are fairly simple:
# we use a variable to keep an index (a measure of which number we're up to) in this case we use 'i'
# we then use the range() function to create ... | 6c8e2001a42a28c2ba78908fe0885253d08ac991 | [
"Python"
] | 7 | Python | JayBee12/ITBadgePDT22021 | 4f1af478b2270d0bf199995febcb44d46233070b | 82c0c4e62c35d6e1787c4374d4b686a56095ac0b |
refs/heads/master | <file_sep>package com.cognito.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(path = "tasks")
public class OrchestratorTaskController {
}
<file_sep>package com.cognito.common;
import javax.servl... | 63748fe7a67f3603f081fe279cc68776d08f947c | [
"Java",
"Maven POM",
"Shell"
] | 9 | Java | LoganPhan/AWS | 245df13c0b1e75917c53119420e36d01a093d0e8 | 2c056c5c08a97476f0c22d533980efd373a0dac4 |
refs/heads/master | <file_sep><?php
$conn = mysqli_connect("localhost", "root", "<PASSWORD>", "freelancer");
$title = $_POST['title'];
$token = $_POST['token'];
$description = $_POST['description'];
$result = $conn->query("INSERT INTO videos (token, description, title) VALUES ('$token','$description','$title')");
i... | 2fd0e2d88849a87896af6d95d1c1fcd89d94fef7 | [
"JavaScript",
"PHP"
] | 11 | PHP | scam627/happy-project | f001ed7221eb64a0bf8f3129f3f462725f881547 | cc091229356fe789813528e2f52b5b844e9d9c54 |
refs/heads/master | <repo_name>Ivan1998popov/WS_Home_work6<file_sep>/app/src/main/java/ru/myproject/ws_home_work6/ui/fragments/MovieItemFragment.java
package ru.myproject.ws_home_work6.ui.fragments;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nulla... | f0207aa6d78f3a0a53f19d49a64e46d2887ddf50 | [
"Java"
] | 7 | Java | Ivan1998popov/WS_Home_work6 | 23f90f4367362d460170e41527a0c9bd44cb4e82 | 2f3c318cde6986170288f160a91bc205abc71c33 |
refs/heads/main | <repo_name>RaphaelBhnk/Projet-Theorie-des-graphes<file_sep>/code/Sommet.cpp
#include <iostream>
#include <queue>
#include <stack>
#include<unordered_map>
#include<unordered_set>
#include "sommet.h"
/** \brief :constructeur de la classe sommet
* \param int identifiant
* \param double la position x
* \param do... | 145ef494aaafca83954ce6d4d540f42d3cb10c00 | [
"Markdown",
"C++"
] | 8 | C++ | RaphaelBhnk/Projet-Theorie-des-graphes | 8c65e51988402a3a2184df3b66e8ce0dec2df840 | 9ca3551b36830af2f71f59c238c568bc42545f4d |
refs/heads/master | <repo_name>Ghernandez1991/SURFS-UP--SQL-Alchemy-<file_sep>/app.py
from flask import Flask, jsonify
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func, desc
from sqlalchemy.sql import label
engine = create_engine("sqlite... | b781a75e772c6d33a3fca70f05adea0c5969a553 | [
"Python"
] | 1 | Python | Ghernandez1991/SURFS-UP--SQL-Alchemy- | db59e1aadf513fb167b83c3ff5846348e18cf1e5 | 9e38164d369ee2cccec64765718ef7f2018af036 |
refs/heads/main | <file_sep>restfull_api_for_books source code
=============================
## General info
This project is web accessible api built in django and django rest framework
<file_sep>from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import BookSerializer
from .mo... | f8775c0a9939c09bba0597743d76955feff46c3d | [
"Markdown",
"Python"
] | 5 | Markdown | ZukhriddinMirzajanov/restfull_api_for_books | 0e80aafc0983989493d2a23ca9d9e5631806dc13 | a256f150349ac0124e4fd13b649aa2cc5c2d608d |
refs/heads/master | <repo_name>zachattack77/pets2<file_sep>/tmp/1bit9ydgc55de.3bejrbxme10ks.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>New-Pet</title>
</head>
<body>
<h1>Order a Pet</h1>
<form action="" method="post">
<label class="col-sm-1 control-label"
>Pet Name</label>
<div class="c... | 4ee1d68e4bedd6ea7c089039af3dcc6e0381f156 | [
"PHP"
] | 2 | PHP | zachattack77/pets2 | d372e22cda797b8b972465b429ea59457bd68c91 | c9baf8f11e43dd611ca753b5bdd42c04457a58fa |
refs/heads/master | <file_sep>Visualizing Data with Leaflet
## Background

The USGS is responsible for providing scientific data about natural hazards, the health of our ecosystems and environment; and the impacts of climate and land-use change. Their scientists develop new methods and tools to supply timely... | 9e16969940f330fe64a297421deb9988c409948f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kcdevillier/Leaflet | d0e3ce0ef225f937e14d15a01b92cb733ca163e7 | 17baa193a743b3c5fac67b82c17147bc3b0dabbd |
refs/heads/master | <repo_name>jpatton638/webdevassignmentb<file_sep>/register.php
<!DOCTYPE html>
<?php
// Create connection to server
$servername = "localhost";
$username = "root";
$password = "<PASSWORD>";
$dbname = "chollerton_tearooms";
$conn = new mysqli($servername, $username, $password, $dbname);
... | f5ca8ed093edf31c50df5db75132bd1d0d95da4c | [
"PHP"
] | 3 | PHP | jpatton638/webdevassignmentb | a9754f075d2a2102240fa71c1e984891c133dfcf | c652751a6ca05be7e1072e5d90beb48042d60903 |
refs/heads/master | <repo_name>aur-archive/yaffs2utils<file_sep>/PKGBUILD
# Maintainer: <NAME> <nous at archlinux dot us>
# 29 May 2010
pkgname=yaffs2utils
pkgver=0.2.9
pkgrel=1
pkgdesc="A collection of utilities to make/extract a YAFFS2/YAFFS1 image for Linux. Currently includes mkyaffs2, unyaffs2 and unspare2."
arch=('i686' 'x86_64')
u... | 11dbf310c64a75ca4d18f819347372e42a79fe3d | [
"Shell"
] | 1 | Shell | aur-archive/yaffs2utils | 87dccc350cc6702f1320a464af7e5c5efce64d0b | 1d47f8469efed5f00ae96c7618a08b4e929aa9cd |
refs/heads/master | <repo_name>SangNong/arduino-test<file_sep>/arduino-test.ino
#include <Servo.h>
const int sampleWindow = 250;
unsigned int clap;
boolean isOff = true;
boolean readVolt = true;
int i=0;
Servo LightSwitch;
void setup() {
Serial.begin(9600);
LightSwitch.attach (5);
LightSwitch.write (10);
// put your setup c... | 2be090ded344acee9b1c0ee7925260c5d5f0e41d | [
"C++"
] | 1 | C++ | SangNong/arduino-test | 312d6b38c6c770b7b7a8e11b2597e8f1c5f8f68f | f889a67caaaa7ad192f17a6c3830cfbb14506b56 |
refs/heads/master | <repo_name>andybeak/xml-parsing-demo<file_sep>/readme.md
# Mitigating XXE
This project is an example of parsing XML and mitigating [XXE](https://www.owasp.org/index.php/XML_External_Entity_(XXE)_Processing).
## Running the code
The code as shipped does not have side-effects, but you should examine the source code be... | 562ad7f033d7b234ec33d0cefdc3fdefd9821d5a | [
"Markdown",
"PHP"
] | 2 | Markdown | andybeak/xml-parsing-demo | 4b929f3d5965213abd6035a9b2d4a5b387972a1b | 7f556e52227997810a4b495cd1e76e65f2cd355c |
refs/heads/master | <repo_name>AdamAgoune/test-git<file_sep>/Js/script.js
function popUp () {
alert("Vous venez de me créditer de 20.000$, merci bien !")
}
function infoConsole() {
console.log ("Bien vu barbu")
}
function popUp2 () {
alert("BIENVENUE ICI IL N'Y AS ENCORE PAS GRAND CHOSES")
}
function popUp3() {
alert("... | a4199113def2c70e1e65934511f2a798caa3051d | [
"JavaScript"
] | 1 | JavaScript | AdamAgoune/test-git | 992e81890725f454ae072989478810631793acbf | 616525946f42188f2a6334ea6e9d8ec8d78703a4 |
refs/heads/master | <repo_name>Fencer04/maplistpro-geocoding<file_sep>/maplistpro-geocoding.php
<?php
/*
Plugin Name: Map List Pro Geocoding
Plugin URI: https://github.com/Fencer04/maplistpro-geocoding
Description: This plugin will geocode the items that have been imported or entered using the MapListPro Plugin.
Version: 1.0
Author: <NAM... | 649438d5a5b205c16eab2387c9da06b4be351dbd | [
"Markdown",
"PHP"
] | 2 | PHP | Fencer04/maplistpro-geocoding | 6d4ecfac7b2182cfc9bc971509a1ffa643811144 | 1ecab26e77fecf3bafd88cbc4c643fb8fcc575b9 |
refs/heads/master | <file_sep>import React from "react";
import logo from "./logo.svg";
import "./App.css";
function App() {
return (
<div className="App">
<div id="mainBox">
<h1>어플리케이션을 골라주세요</h1>
<span class="selectMenu" id="selectTodo">
TODO
</span>
{/* {온클릭 넣으면 해당페이지로 넘기기, 이름을 TOD... | d92aee2bef817d619f3ca3ee368735e6713a5525 | [
"JavaScript"
] | 1 | JavaScript | jch9537/HA2 | 9d9f9de0465350aefc69ec7bdab323691649fbcf | a024dd861d3fe4b55873fa2b2ef02d095ec656e6 |
refs/heads/master | <file_sep>class Hostname < ActiveRecord::Base
belongs_to :site
attr_accessible :hostname, :created_at, :updated_at, :site_id
end
<file_sep>require 'spec_helper'
require File.expand_path('../../factories', __FILE__)
describe Site do
describe 'find sites by hostname' do
Factory.build(:site).save
puts Site.... | 1f57a40a851acf4791de827a5984166fcfb7770f | [
"Markdown",
"Ruby",
"Shell"
] | 13 | Ruby | YuzuTen/refinerycms-multisite | ec38fa1890c7a4edd34a9af612b5c61a870441c6 | f05dee1c6ff7f897146c5779046f3c44d5ac68d9 |
refs/heads/master | <repo_name>benlturner/EECS-493-Final-Project<file_sep>/README.txt
MAIZE INVADERS v1.0
----------------
This code is the basis for a simple 'space invaders' game.
In order to run the game, open up index.html in the web browser of
your choice, preferably google chrome.
After you have opened the game in your web browse... | db8e554a9b30a0873e98bbf697b932e8f10861c5 | [
"Markdown",
"JavaScript",
"Text"
] | 3 | Text | benlturner/EECS-493-Final-Project | f1452806d737b1325eee7b986c05d9551135f5f6 | 4028fc6a1f15e9ec0236ec266f9ad3c054ae1684 |
refs/heads/master | <file_sep><h1 align="center">React Native Copilot</h1>
<div align="center">
<p align="center">
<a href="https://github.com/mohebifar/react-native-copilot/actions/workflows/release.yml">
<img src="https://img.shields.io/github/actions/workflow/status/mohebifar/react-native-copilot/release.yml?branch=master&... | 9aac429fdd00345f177f421735826b139de157cd | [
"Markdown",
"TypeScript",
"JavaScript"
] | 11 | Markdown | mohebifar/react-native-copilot | 854cfe31156c86ee7ea35bae3086fe55ef5206e5 | e099de97e10f181e0e35bf654c5fb3d74523579c |
refs/heads/main | <file_sep><?php
session_start();
function ranking_ricchezza($username)
{
include 'db_info.php';
$query = "SELECT username
FROM utente
ORDER BY monete DESC";
$result = $con->query($query);
$conta = 1;
while... | 44927d1e21fcaaf7790879dfd28c0fb6a1594747 | [
"JavaScript",
"SQL",
"Markdown",
"PHP"
] | 18 | PHP | mattebernini/BetspritesRace | c57b41831f8c25adead7644dde77971f4b6a21e4 | 3de8467ab25cc95c4ce8d0a1d66a4dcd00a97939 |
refs/heads/master | <file_sep>namespace Asteroids
{
public interface IPool
{
}
}<file_sep>using System;
using System.Collections.Generic;
namespace Asteroids
{
public static class PoolServiceLocator
{
private static readonly Dictionary<Type, object> _poolContainer = new Dictionary<Type, object>();
... | b8ae8d55186f77ac6acf33a314e6a76d6bb56ea9 | [
"C#"
] | 2 | C# | EdrenBaton/UnityLearning4_Lesson5 | 19da5a8df2684179ee93c2dcba7052aa22b93958 | 9dde1deed5ca2ca310b4594688367b2ab56578a6 |
refs/heads/master | <file_sep># yoovies
### 영화, TV프로그램 정보소개 앱
- React Native, Expo, iOS, Android 사용
- 노마드 코더의 "초보를 위한 React Native" 강의 클론코딩
- 노마드 코더 강의 결과물 구경하기
- https://noovies.netlify.com/<file_sep>import TvContainer from "./TvContainer";
export default TvContainer;
// export { Container from "./TvContainer" } as default; | 6aac9c05f70e4daa58fc3fc02e4280ce72a6fe1f | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mango13/yoovies | 3233a0d590147b3ad5bd75581dded6af1eecdf4d | 504a2762a7eaaf6b1b7ec5fe8425b246f2341f6c |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
public class RangedEnemyAttack : MonoBehaviour
{
public float timeBetweenAttacks = 3.0f; // The time in seconds between each attack.
public int attackDamage = 10; // The amount of health taken away per attack.
public float playerDist... | c23e3108d291ad6863fea6d01fde66e67942ddc8 | [
"Markdown",
"C#"
] | 16 | C# | sl424/Unity-ProcederalEnvironment | 998f749ce81ef5268801c3052cfeef9c55a0942c | e332c8b6cd6939207a82cb58e4ad0eac19dcc847 |
refs/heads/master | <repo_name>jcalvomendoza/suavibot<file_sep>/messages/index.js
/*-----------------------------------------------------------------------------
This template demonstrates how to use an IntentDialog with a LuisRecognizer to add
natural language support to a bot.
For a complete walkthrough of creating this type of bot... | afe78c4cbc3fa53978d572f12c238c0307b8a21e | [
"JavaScript"
] | 1 | JavaScript | jcalvomendoza/suavibot | 84b01506359189ef3b0bddd77c67b7af065d6dcd | f86355a8e7a3787572d61514832085b9adcd0d42 |
refs/heads/main | <repo_name>aadesh0928/DesignPatternConsole<file_sep>/ConsoleApp1/BookRepository.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApp1
{
public class BookRepository
{
public IEnumerable<Book> GetBooks()
{
return new List<Book>()
... | e48e4064bbb1696acd6caebfad88cd891bef98b1 | [
"C#"
] | 9 | C# | aadesh0928/DesignPatternConsole | 65c3692568d1e5ebf945f9419018e136c472aaaf | 6fc2bbc29b3d090c53a154e88921c0de97608e18 |
refs/heads/master | <file_sep>if(typeof require === 'function') {
const buster = require("buster")
, CustomEventEmitter = require("../lib/emitters/custom-event-emitter")
, Helpers = require('./buster-helpers')
, config = require(__dirname + "/config/config")
, dialect = Helpers... | 498e349bdad3206fcef61a2147a743f324482a89 | [
"JavaScript"
] | 3 | JavaScript | jlongster/sequelize | cbc7747ce03b214179a576d19e27761e9c192715 | 3aea14070390b11d98d92979628b8c2efcad7a40 |
refs/heads/master | <file_sep>//Return the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.
function titleCase(str) {
str = str.toLowerCase();
str = str.split(" ");
for(var i = 0; i < str.length; i++)
{
str[i] = str[i].charAt(0).toUpperCase() + str[i].slic... | 4e0b08125b6471d0c9a4c657338e4e6b3110ca26 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | Zach-OfAllTrades/JavaScriptAlgorithms | 5698925dd4372fafd2e04806aa36b13e7dde4541 | 9afccff13f7e6b5484247279659a857a3faba215 |
refs/heads/master | <file_sep><?php
$iHand = $_POST["playerHand"];
$GTP = ["グー","チョキ","パー"];
$key = array_rand($GTP);
$pcHand = $GTP[$key];
if($iHand == $pcHand){
$result = "Draw";
} else if ($iHand == 'グー' && $pcHand == 'チョキ') {
$result = "Victory";
} else if ($iHand == 'チョキ' && $pcHand == 'パー') {
$result = "Victory";... | 2392961744b4dcf391f5ca874b0e207c4f1aeef4 | [
"PHP"
] | 1 | PHP | hcra-12/Janken-Website | 7b6fbd66aa998a1684ff0c67bdef202c3f6243ec | 7e2e19404940a495d94a8d72bb532b5b056b32fd |
refs/heads/master | <repo_name>regnstr/led-backend<file_sep>/index.js
const express = require('express');
const morgan = require('morgan');
const moment = require('moment');
const _ = require('lodash');
const chalk = require('chalk');
require('log-timestamp')(() => '[' + chalk.gray(moment().format(moment.HTML5_FMT.DATETIME_LOCAL_MS)) + ... | 54db113907015f3c196a85ca349143c636af04e3 | [
"JavaScript"
] | 1 | JavaScript | regnstr/led-backend | 667978a8f6237e87e39a7cb19598752d7d60c715 | 585702cfd61981346ff76178ace6514c5da75b40 |
refs/heads/main | <file_sep>''' soma = 10 + 10
subtracao = 20 - 10
divisao = 100/10
multiplicacao = 2 * 40'''
#print(10+10)
#print(10 + (50 + 50))
print(10 - 10)
print(1000 - 80)
print(10 / 5)
print(10 / 6)
print(10 // 6) #remove as casas decimais.
print(10 * 800)
print(55 * 5)
<file_sep>print('parametro')<file_sep># Utilizamos as t... | a67fa677463858f0eee115187d886eb794bae4c0 | [
"Markdown",
"Python"
] | 31 | Python | robinson-1985/python_eXcript | fbb44b1881b8458106f82722c3d1a5bef8403240 | 25132d6d308e99f4ebea48e13910c52f3bd65026 |
refs/heads/main | <file_sep>spring.activemq.broker-url=tcp://localhost:61616
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.username=postgres
spring.datasource.password=<PASSWORD>
spring.datasource.driver-class-name=org.postgresql.Driver
spring.j... | 261590f07b225dc1543c1dcce565202568fff9c6 | [
"Java",
"INI"
] | 3 | INI | sushmitha-gopari/ActiveMQ | 8f06f038665ca1b9c2b2e035f45b823936c70074 | cd7370efef91c8bb6bdb092ce6f5661075b424ed |
refs/heads/master | <repo_name>c-villain/GoFPatterns<file_sep>/README.md
# GoFPatterns
Patterns of GoF and its realization on Swift
Репозиторий представляет из себя Playground книгу с кратким описанием паттернов из книги ["банды четырех"](https://ru.wikipedia.org/wiki/Design_Patterns).
Рассмотрены примеры, когда целесообразно применять т... | e337323961efb948ec9a66b0f5c5d4e03da96eac | [
"Markdown",
"Swift"
] | 5 | Markdown | c-villain/GoFPatterns | 7840be5b68d773f184ae621f0095ca541795c32e | 416eb8f0829d1360454f579eb0b96c4b333f7a8b |
refs/heads/master | <repo_name>miguel2014/Componentes<file_sep>/diapositivas/PersonaHIjosModel.java
package diapositivas;
import javax.swing.event.TreeModelListener;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
public class PersonaHIjosModel implements TreeModel {
PersonaHijosde raiz;
/**
* @param raiz
*/... | c27df1b14c4937c3ad1d4e96a9d88efcd798a7fd | [
"Java"
] | 3 | Java | miguel2014/Componentes | 59f41f738aa5a7603ffc2c838f6b8c6fc39cbca3 | 73a0f448e6dd071d535c27196fdad64d2a94339d |
refs/heads/master | <repo_name>ZanSaito/InDevelopment<file_sep>/In Development Project/Assets/Scripts/Stats/ResourceComponent.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class ResourceComponent
{
//----Health-----
protected float m_MaxAmount;
protected float m_CurrentReso... | 878dba0349dd6137e811d0e61ed554b3b352e9c1 | [
"C#"
] | 22 | C# | ZanSaito/InDevelopment | 5be0a39c76e7675a529297cb11173f41c286527a | 67cefcea79d723805797744565a2e538f1bec78b |
refs/heads/master | <repo_name>darrdv/ruby_fundamentals1<file_sep>/exercise4.rb
one_to_hundred = (1..100)
one_to_hundred.each do |num|
string_array = []
flag = 0
if num % 3 == 0
string_array.push('Bit')
flag = 1
end
if num % 5 == 0
string_array.push('Maker')
flag = 1
end
if flag == 0
... | aa20bf646c9546207b9994b3f218160d1f6b8be3 | [
"Ruby"
] | 2 | Ruby | darrdv/ruby_fundamentals1 | 57ca3ad09726fe65cee2f79c882843fe38ebfb16 | 303665859b9c6892077e0962638c72442c479f0a |
refs/heads/master | <file_sep>
Components.utils.import("chrome://jam-extension/content/log4moz.js");
let formatter = new Log4Moz.BasicFormatter();
let root = Log4Moz.repository.rootLogger;
let logFile = this.getLocalDirectory(); // remember this?
let appender;
logFile.append("log.txt");
// Loggers are hierarchical, lowering this log le... | 4798305a13f3a025dd0dd175ee8dfbb61f84e258 | [
"JavaScript",
"Shell"
] | 5 | JavaScript | blackoutjack/jamextension | efccaca0ef953da3aab12d5fcac2d4ee8be81d57 | a50d548d60d1eb97773ed9d2156d7e7f376a8b76 |
refs/heads/master | <file_sep>const dbconfig = require("../dbconfig.js")
const mysql = require('mysql')
function loginService(usuario) {
return new Promise(function(resolve, reject) {
const sql = ' SELECT * FROM usuarios WHERE email ='+ mysql.escape(usuario.email) +' AND senha ='+ mysql.escape(usuario.senha);
... | 8562ba1c45caa174ff6d398e719144a19a31570b | [
"JavaScript"
] | 26 | JavaScript | luanwinck/Reserva-de-salas | 336f978f151e7c4ff41f14d603427bebf4112db1 | ce5ccd7594bb9ddabd8517f851315b747e9a7554 |
refs/heads/master | <repo_name>tolewicz/python_practice<file_sep>/netflixto.py
#modules
import csv
import os
#prompt video you want to watch
movie_title = input('what movie do you want to wtch ? \n')
#initially status of the movie, if cahnges to True, movies is on netflix
movie_status = False
#provide path to file with movies... | fc6e607486a2b0bbac716f5de6c48cfbe44ad8cf | [
"Markdown",
"Python"
] | 2 | Python | tolewicz/python_practice | 8cb4ecb34d92ddc61171213de1d71e2a61ec990c | 45e9f558d77f40ace15090c65924db235a9afa67 |
refs/heads/master | <file_sep>module.exports = {
list: function (req, res) {
return res.end(JSON.stringify([
{
name: "Banana",
},
{
name: "Apple",
},
{
name: "Orange",
}
]));
}
}; | b606b0e4efc3b280ece87ab6c0fe5365c6a0f678 | [
"JavaScript"
] | 1 | JavaScript | mageddo/nodejs-sails-angular-ng-table | ff15ba0d1583627bfb419775f69f0920e37adedc | cbe3817502fbdcfa1256110629a7326c6097b827 |
refs/heads/master | <file_sep>from global_config import PASSWD,NAME
class_course_table_url = "http://192.168.3.11/jwglxt/kbdy/bjkbdy_cxBjKb.html?gnmkdm=N214505"
pre_class_course_table_url = "http://192.168.3.11/jwglxt/kbdy/bjkbdy_cxBjkbdyTjkbList.html?gnmkdm=N214505"
<file_sep>from global_config import *
public_key_url = "http://192.168... | 1541e6da5d6ba7ee1ad4f8e17a3efd2ded8819f3 | [
"Markdown",
"Python"
] | 59 | Python | jasnzhuang/NUC-Information-Backend | 933ad5d01032383060bc9fbae78639b179b3ba9e | d3be0c2006e317be9184e05a96c16f6420d5940f |
refs/heads/master | <file_sep>let db = require('../config/mysql.config').db;
let request = require('request');
function getAll(callback) {
let query = "SELECT m.id, m.name, c.weightKgs as Kilograms, c.weightLbs as Pounds " +
"FROM models m JOIN capacities c ON m.capacity=c.id";
db.query(query, (err, res) => {
if (... | 4b8742bd7f38ad6d4731e652b5225534c0a7afec | [
"JavaScript",
"SQL",
"Markdown"
] | 12 | JavaScript | Yaro96/Appliance | fcda8b8922600a8fbdea6f60e6a18092d2b287ec | c2701216b55c8de09ba0855486232cbbdcc5f68f |
refs/heads/master | <file_sep>'use strict';
process.env.PATH = `${process.env.PATH}:${process.env.LAMBDA_TASK_ROOT}`;
const Alexa = require('alexa-sdk');
const newSessionHandlers = require('./handlers/new-session.handlers');
const stoppedHandlers = require('./handlers/stopped.handlers');
module.exports.handler = function (event, contex... | d4c78e612a6a101a055f50d995b475a6675f8dec | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | tillreiter/alexa-kompliment-skill | 03d87a598701e2f51442605734c5efd05bbf0d7c | f3e715db5fa80726d0e2da91cc316cd24eb032f1 |
refs/heads/master | <repo_name>aibou/rodgers<file_sep>/bin/rodgers
#!/usr/bin/env ruby
$: << File.expand_path("#{File.dirname __FILE__}/../lib")
require 'rodgers'
SlackRubyBot::Client.logger.level = Logger::INFO
Rodgers.start
<file_sep>/lib/rodgers/controller.rb
# コマンド書く
# ActiveSupport::Callbacks でException周りをハンドルする
module Rodgers
c... | 9035909282b5bdf3b5c57e7d6b417e1ece45a6fd | [
"Markdown",
"Ruby",
"Dockerfile"
] | 8 | Ruby | aibou/rodgers | 1d8554a1f6c67e93049dc66e1ccf6437a9369ec3 | 185b221493eff0ea339a9d46b77a6f37217a0dfa |
refs/heads/master | <repo_name>BelkaLab/RaygunBundle<file_sep>/NietonfirRaygunBundle.php
<?php
namespace Nietonfir\RaygunBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class NietonfirRaygunBundle extends Bundle
{
}
<file_sep>/Tests/DependencyInjection/NietonfirRaygunExtensionTest.php
<?php
/*
* This file is part of the Raygu... | 58308179662e8821d9c54a9b7e94fc38f43eedda | [
"Markdown",
"PHP"
] | 7 | PHP | BelkaLab/RaygunBundle | d6922092eb4444864b5db8ea5f70e49baec3381c | 54c25c3e586695f46eb936f9857c9b41af083f7d |
refs/heads/master | <repo_name>SaiSatyam/StudentDetails<file_sep>/StudentApp/src/Marks/GetMarks.ts
export class GetMarks
{
mark:string[]
activate(marks)
{
this.mark=marks;
}
}<file_sep>/StudentApp/src/Login/Login.ts
import {Router} from 'aurelia-router'
import {inject} from 'aurelia-framework';
import {ValidationRules, ValidationCo... | b1c3f9d3a241a5060e4a3a7c802d2fa521c5cf16 | [
"TypeScript"
] | 8 | TypeScript | SaiSatyam/StudentDetails | 6c5196874a0d8bd063b202b9ada52d4baa981688 | 0e6f8710276022172310dfcdc5779bae582dfda6 |
refs/heads/master | <file_sep>angular.module('sportsApp')
.controller('NflIndexController', ['$scope','Nfl', function($scope, Nfl){
Nfl.all()
.success(function(response){
$scope.nflTeam = response.nfl;
});
}]);
<file_sep>'use strict';
// Declare app level module which depends on views, and components
var app = angular.m... | abcfcf3f8ca15e83334773cbee973484d44f8653 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | fbs70/sports-fun | a93f5f8a5aa10dac0d66f1dc721455f8271d2658 | 101811763323c2d5d4255515ac957c8cc97a83c4 |
refs/heads/master | <file_sep>\name{applyttestPep}
\alias{applyttestPep}
\title{
Function to apply t-test separately for all peptides of each protein
}
\description{
Generate fold changes and p-values for each protein (col 1) determined by a number of peptides (col 2).
}
\usage{
applyttestPep(peptides, Group, doLogs = TRUE, numer... | dd3254bf5049f77a3945c2641dc9e015f2cff2d8 | [
"R"
] | 41 | R | Bioconductor-mirror/SwathXtend | b241ffd6c73ca7fefea249ad37dbd381b9673bdc | 3f646068ddfb3b55128f26214406b84ba0728d81 |
refs/heads/master | <repo_name>maxfortun/localgate<file_sep>/docker/files/root/init/save_routing.sh
#!/bin/bash
iptables-save | awk ' !x[$0]++' > /etc/sysconfig/iptables
ip link show|grep -o -P '(?<=\d:\s)[^:]+'|grep -v '^lo$' | while read link; do
routes=$(ip route show table $link 2>/dev/null)
if [ -n "$routes" ]; then
echo -n > /e... | 1424cc1cd385be9b544440e4b5ac90ecd9b204db | [
"Shell"
] | 10 | Shell | maxfortun/localgate | 7cbbe5c04b5462450afe1f1d0c4fe1b70f944768 | 456f5f320b6e6a4b12062a8ffc52c4c6d5008af5 |
refs/heads/master | <file_sep>***MEMORY GAME***
Memory game is a easy to use fun game created with DOM API in JavaScript, including various elements of HTML and CSS. It is a simple game which tests the memoral grasp of a person. It is at large, is a card matching game suitable for people of all ages.
***USABILITY***
1. ***HOW TO PLAY T... | 4b0700f5739990840293fd64bfc1509f09bf8c7e | [
"Markdown",
"JavaScript"
] | 2 | Markdown | rajdeepgill05/memoryGame | 73bfe05ef5f0825b4df7942d86c874f6d748c541 | 84b3d44d8dd2e8b0ab38fa53eb9f1f3d7ca9ac1c |
refs/heads/master | <file_sep>rootProject.name = 'ReduxTeste'
include ':app'
<file_sep>import React, { Component } from 'react';
import { Text, View, Button } from 'react-native';
import { connect } from 'react-redux';
class Card extends Component {
render() {
console.log(this.props);
return (
<View>
... | 09c4dddf34efc1872407e9eb6c817b08c7e2a155 | [
"JavaScript",
"Gradle"
] | 2 | Gradle | E-Sight/ReduxTeste | 724cd39f1701698e54340d0da2cb8ab962e52d68 | c7e67c182854701203446e7bb56e87386cadc109 |
refs/heads/master | <file_sep>import tbapy
import pandas as pd
import json
from datetime import datetime
import numpy
from ast import literal_eval
import numpy as np
tba = tbapy.TBA('<KEY>')
###############INITIAL DATA COLLECTION######################
teamsList = []
real_events = pd.read_csv('2018events.csv')
real_events = real_events['... | 527376619809da6e55d383a1e21c79d532118bde | [
"Python",
"Text"
] | 5 | Python | alexemrick/DS3001 | b9b3fca1962f38cc0c6ecf3b81bca8d504ec289c | 5aa968e7c9139caba522043e10dca59b4e141301 |
refs/heads/main | <file_sep>import React from 'react'
import './DisplayMessage.css';
import {
BrowserRouter as Router,
Link
} from "react-router-dom";
export default function DisplayMessage({message}) {
const displayMessage= () => {
if(message !== 'Invalid Url' || message !== null ){
return <Link target="_bl... | 16b4aa497a076f6c69c8be9eac56d2af496abd28 | [
"JavaScript"
] | 4 | JavaScript | prashantrayamajhi/url-shortener-client | c7b6f0c2f8b4b43d03a0f9910ed57d5cd178212f | b217971b3a7f1d9cedeebb2039e1ec5f544da8a2 |
refs/heads/master | <repo_name>ugurcf/KartEslemeOyunu<file_sep>/memoryGame1/memoryGame1/Form1.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace memoryGame1
{
... | ce6feaf43bfc86bdf286d5fa5db84b5120d3f417 | [
"C#"
] | 1 | C# | ugurcf/KartEslemeOyunu | 03d9f36cc02928629b79d3c1c84bd409964c84f1 | a8bdd8c9687ff4b6984b2416967b5c7fe45efda4 |
refs/heads/main | <file_sep># Fully_Functional_Notepad_Java
This is my Notepad/ Text Editor design with GUI. I built undo operation in two ways. One of them Command Design Pattern
<file_sep>
package Notepad;
/**
*
* @author osman
*/
public abstract class UndoableCommand implements ICommand {
public abstract void Undo();
... | 1387379e3a278d47fd588b42302b7095943e6d9d | [
"Markdown",
"Java"
] | 6 | Markdown | pinarcihangir/FullyFunctionalNotepadJava | 027eef6152c1c0de695421841137a8b7ad16c27a | 7079628574a9304e35b093f556880c10fbd99de5 |
refs/heads/master | <repo_name>cgrigs/FossilDates<file_sep>/code/Set_maker.sh
for i in {1..10}
do
python code/IntervalSampler.py
mkdir Data/$i
cp Data/accessory/* Data/$i
done<file_sep>/code/IntervalSampler.py
import pandas as pd
import numpy as np
from numpy import random
def taxon_sample(df, group_rank):
df = pd.read_csv(df)
df... | f1cda6a7d060c3df5830ade8df68dfdfabf409a2 | [
"Python",
"Shell"
] | 2 | Shell | cgrigs/FossilDates | 31ec3728a0409fad042142d0ddc08a3e744cb7b9 | 263a27bbd5a0e668ed89fa22c44ae5a0b7579a98 |
refs/heads/master | <repo_name>atlie15/Nerds<file_sep>/test/nerd.h
#ifndef NERD_H
#define NERD_H
class Nerd
{
public:
Nerd();
};
#endif // NERD_H
<file_sep>/test/nerd.cpp
#include "nerd.h"
Nerd::Nerd()
{
}
| 01005d300d4f516442f41fefec3a757e175edf31 | [
"C++"
] | 2 | C++ | atlie15/Nerds | 1b4c84697652cc72d0a3d8011390c351c5cfd262 | 60027d0c7798b305690ced3445fc7460e6562e89 |
refs/heads/master | <file_sep>/**
* Name: <NAME>
* ID : phn10
*/
import org.junit.*;
import static org.junit.Assert.*;
import java.util.Iterator;
import java.util.ListIterator;
/**
* A class that tests the methods of the DoubleLinkedList class
* @author <NAME>
*/
public class DoubleLinkedListTester {
/**
* Tests the addTo... | 928fcf270bd9398034971a49eb67d89af2e587e9 | [
"Java",
"Text"
] | 7 | Java | phn10/Java | 19423a9f454b74ba9bc8e8241502cfbaf0daa203 | dcf3fd80efa82bf7ce19d179691ba176ebd83162 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace CsvParser.Attributes
{
[AttributeUsage(AttributeTargets.Property)]
public class ColumnAttribute : Attribute
{
public int ColumnNumber { get; }
public ColumnAttribute(int columnNumber)
... | 098f1bdcf2d967d31055f038dd7a7910ee9f960b | [
"C#"
] | 10 | C# | JEnsor247/TechnicalTestFileLoad | 882de372c314313da19c2168191bebb207557ae1 | f3de1f3cd75613298b86acda792ca87286e52627 |
refs/heads/master | <file_sep>import pyxel
from plugins.enum import Enum
from plugins.geometry import Point, Size
from plugins.sprite import Sprite, Anchor
from typing import Any
# Possible states for the line
class LineState(Enum):
STATE_NORMAL = 0
STATE_HIGH = 1
STATE_LOW = 2
# Represents the line drawn on the graph.
#TODO Unfinish... | ecc71946642927a7ee4051231c59cffe538f621b | [
"Markdown",
"Python",
"Text",
"INI"
] | 25 | Python | rjmcf/Bi-onic | dbe1046bd3ee50ad8ffd7430c6b4bf8c8442b6f2 | 1b306b8939030e43ae6b4c724d72d8ad46590a75 |
refs/heads/master | <file_sep>import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
public class DecisionTreeNode {
private DecisionTreeNode parent;
private LinkedList<DecisionTreeNode> children;
private HashMap<Object, Integer> attribMapForChildren;
private HashMap<DecisionTreeNode, Object> c... | 39f10b534f8824ab7d272a6f53942aee588aad08 | [
"Java"
] | 3 | Java | T0biWan/MachineLearning | bc9a0603196e8d5c3774098e096b0a47cbfb958b | 22e627be850a486177a90afcb3978e2e5035c96a |
refs/heads/master | <repo_name>takecare/exercisio<file_sep>/app/src/main/java/io/exercis/ui/DummyFragment.kt
package io.exercis.ui
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragm... | c9ceb919eabebcb0aa020368fa526ab32a6be7fa | [
"Markdown",
"Kotlin",
"Gradle"
] | 51 | Kotlin | takecare/exercisio | 1c7f973dfe227f56085bcbe8d755ef1f5df1497a | 369a627dc0b5be72ef34421918bf96db3df9ab14 |
refs/heads/master | <file_sep>package ch.supsi.dti.isin.meteoapp.fragments;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
... | 806724a374973ef496d46c55ef50f452f593ee66 | [
"Java"
] | 1 | Java | pavodev/AppMeteo | 305c914645b1731ce1b5dbe37695537e2db719bd | 1d8b84a9624eae39a9b3ab41129916fd8021960a |
refs/heads/master | <file_sep>const express = require('express');
var server = express();
// server.use('/b.html',(req, res)=>{
// res.writeHead(200,{
// "Content-Type":"text/plain;charset=utf-8"
// });
// res.write('b哈哈哈哈哈哈哈');
// res.end();
// })
// server.use('/a.html',(req, res)=>{
// // res.writeHead(200,{
/... | ae9278a1d19af69e73b4c591a84d0147bd90317c | [
"JavaScript",
"Text"
] | 22 | JavaScript | 8023wdlove/nodepractice | 5243956f3d96c729de6a9dda6fb6b702afa273dd | d25dadddb0f64b1b8827afdc2bff4f1ca1cf4178 |
refs/heads/master | <repo_name>evn88/voel<file_sep>/steps.js
var i = 2;
$("#addStep").on("click", function () {
if (i < 2) {
i = 2;
}
$('#steps').append($('#step').html()).attr('id', 'newStep' + i);
//$("#step").clone().attr('id', 'newStep' + i).fadeIn('slow').appendTo("#steps");
$("#newStep" + i + " div h5").... | f05cb2a0e50a880df315b178641f42b9f97843bd | [
"JavaScript"
] | 2 | JavaScript | evn88/voel | e50c6030650f64db5772723ac60003ce57949978 | 8e444f073b0c278230c243dd96d8f589c79d3b7c |
refs/heads/master | <file_sep><?php
declare(strict_types=1);
namespace Diduhless\NoFall;
use pocketmine\event\entity\EntityDamageEvent;
use pocketmine\event\Listener;
use pocketmine\plugin\PluginBase;
class NoFall extends PluginBase implements Listener {
public function onEnable() {
$this->getServer()->getPluginManager()... | ed07a5c355482b6ff9280130a14e2c97f5795f8d | [
"PHP"
] | 1 | PHP | didacdelolmo/NoFall | 1ea17e5723ba4f99551e739aa742251f51dbe578 | aebb99c5847b49d2a829f46782e56068029f1d71 |
refs/heads/master | <file_sep># ProjectRealwrold
try to copy this site with angular https://angular.realworld.io/<file_sep>import { Component, OnInit ,Input, Output,EventEmitter} from '@angular/core';
@Component({
selector: 'app-childcomponent1',
// templateUrl: './childcomponent1.component.html',
template:`
{{"Hello"+parent... | f91db8ea71d336a11faea0d85b9798deec331a9e | [
"Markdown",
"TypeScript"
] | 7 | Markdown | shikaiwen/angular6_learn | 54c6b4976f02e9f128e6673bb0c81b7af2699f03 | aec99165b8d5a4fbfc3d8165d1b627e46306d93e |
refs/heads/master | <file_sep>/**
* Carousel
* https://flickity.metafizzy.co/
*/
import Flickity from 'flickity';
import 'flickity/css/flickity.css';
export default function carousel() {
const carousel = document.querySelector('[data-js="carousel"]');
// When Carousel exists
if (carousel) {
// Flickity - fade in for no F... | c6c03ebbb9d60aca1d7ca9cdbd218f7b451b01bb | [
"JavaScript"
] | 5 | JavaScript | SuperGodAsk/webpack-twig-boilerplate | 2b964fa89f5cc2d1ee920547e98b635e7ba64bd9 | ed6cf4e63e14c4818624652b42a7eda273c561d1 |
refs/heads/master | <file_sep>const express = require('express');
const app = express();
const port = 5000;
app.get('/',(req,res)=>{
res.send('<NAME>');
})
app.listen(port,()=>{
console.log('server name is running');
}) | d33b5aa5cdc792eeba1705186ade14eb3f310155 | [
"JavaScript"
] | 1 | JavaScript | muhammadahmed29/node-js-namefile | 9667655addf3773c518c3789167de1a4c8e13c21 | 7ba9a6560ecf8b2de02456efbef1b2d7f5742a14 |
refs/heads/master | <repo_name>OrionStark/Location-Status<file_sep>/LocationStatus/LocationStatus/WeatherStatus.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Newtonsoft.Json;
using LocationStatus.Model;
using LocationStatus.Da... | d5d6924d6793793294bcb792acde32f722613d12 | [
"Markdown",
"C#"
] | 8 | C# | OrionStark/Location-Status | f7ca53447814bf81c4a1d9d779e6b89bcf693856 | 8d2a68ddfdc5e9614d1c05284654b67b1425ad81 |
refs/heads/master | <file_sep>package main
import "errors"
// Version of the item.
type Version struct {
Version string `json:"ver,omitempty"`
StemCell string `json:"sc,omitempty"`
}
// Status of this platform.
type Status struct {
Error string `json:"error,omitempty"`
Versions map[string]Version `json:"versions,omi... | ea9678b87fcb01073a56e750ff0b3467710bf909 | [
"Markdown",
"Go"
] | 5 | Go | jtgammon/pcf-status | 636164a7d18e386a3f038514488817e7cae72d58 | 083e05babe0e1954f5671b4953e5ab9618a8463f |
refs/heads/master | <file_sep>#include "../../include/people/pig.h"
#include "../../include/color.h"
namespace people {
Pig::Pig():
People(new color::Red, 'P', 0, 100, 3, 5) {
}
Pig::~Pig() {
}
void Pig::_todo() {
srand(time(0));
int randx = -1 + rand()%3, randy = -1 + rand()%3;
pos::Pos ps = get_pos();
move(pos::Pos(ps._x... | d90f6023b2ce403a1b51acdcf8f6b8fd85285e26 | [
"C",
"Makefile",
"C++"
] | 18 | C++ | HNFMS-g2018/yzzl | 7396359d99d879f51c2b4c968c3f531f7d1d7d31 | 6d9716450be87e941739f4a2313738ef48f4b212 |
refs/heads/master | <file_sep>from flask import Flask
# creating an object
app=Flask(__name__)
# creating a route
@app.route('/')
def main():
return 'hello'
if __name__ == '__main__':
app.run(debug=True)
<file_sep># Get-started-with-Flask
User’s Guide
This part of the documentation, which is mostly prose, begins with some backg... | d585050d07c630c22819dd47e59075c43d1ba6b1 | [
"Markdown",
"Python"
] | 3 | Python | grand-27-master/Get-started-with-Flask | ef87935e45a688f6f81aada4972926e484763e68 | 830152179ee2422947ae6aad34ce975b84706c7d |
refs/heads/master | <file_sep>//-----------@Author by UlucFurkanVardar
#include <SharpIR.h> //IR Sharp sensörü kullanabilmek için kullandığımız kütüphane, bu kütüphaneyi kütüphane düzenleyicisinden indirebilir.
#include <Servo.h> //Servoları kullanabilmek için gerekli olan kütüphane
SharpIR sensor(GP2Y0A21YK0F, A0... | 580d87791af581e61d5d30cece440cb27a9fea50 | [
"Markdown",
"C++"
] | 2 | C++ | UlucFVardar/3D-printed-Mini-Autonomous-Car | 32f5db2565f7b64d21785016ba554335386a9816 | 089587bcb6d6ca0d5c3960da6e8b2aa694105d30 |
refs/heads/master | <repo_name>crokadilekyle/node-js-crash-course<file_sep>/reference/path_demo.js
const path = require("path");
//basename() - returns base file name from the path
console.log(path.basename(__filename));
console.log(path.dirname(__filename));
console.log(__dirname);
// //extname() - returns file extension
consol... | cbb9bcb6ad48133375c2b637fbaec1643dea9b1b | [
"JavaScript"
] | 3 | JavaScript | crokadilekyle/node-js-crash-course | 462b707a8e426d4cb6e0308821c4fd424cda3b22 | 9a2fa2478313a930a06f4b969c4a635d518bf063 |
refs/heads/master | <repo_name>RicardoR22/Balloon-Math<file_sep>/README.md
# Balloon-Math
I created this game because I wanted kids to have something more productive to play.
This game aims to help kids become better at basic addition, while at the same time allowing them to have fun.
How to play:
You will be prompted with a simple ad... | d9fe37dd2913d142e6ee972677cfca2d717f0017 | [
"Markdown",
"Swift"
] | 4 | Markdown | RicardoR22/Balloon-Math | 5922350d24a090260b6ed0e12b9fb67d549fe37f | 75d6baea424dd9856c374033e6514c458cf5b3f8 |
refs/heads/master | <file_sep>from wtforms import Form, TextField, TextAreaField, validators, StringField, SubmitField
from datetime import date, datetime, timedelta
from werkzeug import generate_password_hash, check_password_hash
import python.database_static as database_static
import mysql.connector
def returnTable(id_u):
try:
... | bbf965940b657d7b0ee52d7ee5d5b33b6a4e7070 | [
"JavaScript",
"Python"
] | 11 | Python | piotrtr92/sys_nawadniania_2 | 57f2072190c7fffea8a351108b15d561efa24a64 | 02ba69a78500fbc9976d2da9c2ef94b13ab3f348 |
refs/heads/master | <file_sep>const HLRU = require('hashlru');
const hash = require('object-hash');
const latency = require('./latency');
class Cache {
/**
* @param {number} size
*/
constructor(size) {
this.enabled = !!size;
// if enabled - use it
if (this.enabled) {
// @ts-expect-error invalid lib definition... | cf735829ea842f7d138819362f81fcdba619695e | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | microfleet/transport-amqp | caeea5f4148c8592ba3cd415c15d7b27dc55dc24 | 40036c19331c4f7ad549512dc86f21ae873360c0 |
refs/heads/master | <file_sep>import java.math.BigInteger;
import java.util.*;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* This algorithm creates a random private key that can be used for creating
* cryptocurrency wallets. The final private key is in base58 (bitcoin).
*
* @author... | 7b044b4c7fce558140ffd15a6ec74ee6e68d0271 | [
"Markdown",
"Java"
] | 2 | Java | HartSarah/Algorithms | a31a166f0bca8975bb26479d64f649309a69435e | d1d4e608b0c43bbe1f1995a0feaf957101de12b5 |
refs/heads/master | <file_sep>var url = 'http://test-blobupload-service.apps.javelinmc.com/api/blob/upload/file';
$(document).ready(function () {
if (typeof console != "undefined")
if (typeof console.log != 'undefined')
console.olog = console.log;
else
console.olog = function () { };
consol... | bad07352f38c544f91ba55ba8848b6e55aecc5f1 | [
"JavaScript"
] | 1 | JavaScript | vijay22uk/chunk-upload | e55c2dc50ed3319100a4705d787686239a45457f | f5130b2791805b38021830b190bf037897a23928 |
refs/heads/master | <repo_name>c915384165/SQL_learning<file_sep>/mycsv/__init__.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__all__ = ["csv_interface"]
import csv
def csv_interface(filename):
## 读取csv文件,返回一个列表,每行为一个子列表
ls = []
with open(filename,'r', newline='') as fo:
reader = csv.reader(fo, dialect='excel', ... | a6c0880ccf923191daaea2fa1185a4d1f2b4383a | [
"Markdown",
"SQL",
"Python"
] | 8 | Python | c915384165/SQL_learning | 496fd4653af68ad26e70ca55ea3f5d4aee378171 | 2fcc70a0a504d0bb9163c8b2f2133909503b5337 |
refs/heads/master | <file_sep>#等频分箱#
#处理列:fin_debit_pct_all_0m_1m #
select created_new,factor,count(*)
from (
select jg.created_new
,jg.account
,jg.fin_debit_pct_all_0m_1m
,case when cnt > 10 and pct_10 > 1.0 and fin_debit_pct_all_0m_1m >= pct_00 and fin_debit_pct_all_0m_1m < pct_01 then concat('0.[',cast(pct_0... | 5563cf8b7add73675315d75256a740f9931ea2a0 | [
"SQL",
"Python"
] | 20 | SQL | Kelly0531/Financial-Risk | 06ce24e36cf09733c51000c7d0a6e471954be901 | a20c4da81b96e05efa202aa79193fd4cbeee504e |
refs/heads/master | <repo_name>Apptimate/PingPal-Messenger-Android<file_sep>/src/io/pingpal/models/Person.java
package io.pingpal.models;
/**
* @author <NAME> & <NAME> 23-07-14
*/
public class Person {
@SuppressWarnings("unused")
private static final String TAG = Person.class.getSimpleName();
private String mName;
priv... | 664bcd42f0a5eb0f635f7943c6dac35debff712d | [
"Markdown",
"Java"
] | 17 | Java | Apptimate/PingPal-Messenger-Android | da824b2accf6351d853e8ceddb21cef7784a3200 | e3c908d52321898f288ddc6664c6ba241d316d09 |
refs/heads/master | <repo_name>JamesQuinnDeveloper/MyFirstGame<file_sep>/index.js
var express = require('express');
//App setup
var app = express();
var server = app.listen(5001,function(){
console.log('listening on 5000!')
});
// Static files
app.use(express.static('public'));<file_sep>/README.md
# MyFirstGame
This is the first... | 30df84060d1998551d413be643f183b3337cf47f | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | JamesQuinnDeveloper/MyFirstGame | a9d9b168b2ab66a2dbbbc48785487d2f1458cc2c | 041daf1dff75f0d054f93fc745ee3bc839f56496 |
refs/heads/master | <repo_name>rusted-coil/PKHeX_Raid_Plugin<file_sep>/PKHeX_Raid_Plugin/Nests/RaidTables.cs
namespace PKHeX_Raid_Plugin
{
public class RaidTables
{
public readonly RaidTemplateTable[] SwordNests =
{
new RaidTemplateTable(1676046420423018998, 1, new[]{
new RaidTemplate(236, ... | 4972c676ffbd02ca1198580b82590bf48e2b2535 | [
"C#"
] | 1 | C# | rusted-coil/PKHeX_Raid_Plugin | 9e7cb8386ebe60b3897f343827bbf95c1d9bc64b | 8ce927620bdd4373ef82af43cc8b99b93d08b5aa |
refs/heads/master | <file_sep>const server = 'http://localhost:8000/';
const requestLogs = () => {
const query = document.getElementById('query').value;
const req = new XMLHttpRequest();
req.responseType = 'json';
req.open("GET", server + 'logs', true);
req.setRequestHeader('query', query);
req.onreadystatechange ... | fc99fe1e302ea76744c0f95104299ee3a7dcf62b | [
"JavaScript"
] | 3 | JavaScript | krystiano365/groceryShop | 57e75d6a56412658caf826870019d845c77f911b | 61734f2a403125480f25251027ff908be6bef3b0 |
refs/heads/master | <repo_name>no3forfuk/jsir<file_sep>/precache-manifest.c2ac24ddad5bd3a1b67f12b4fd8bbcc1.js
self.__precacheManifest = [
{
"revision": "b6216d61c03e6ce0c9aea6ca7808f7ca",
"url": "/jsir/robots.txt"
},
{
"revision": "ce6cc851b759ce59c204",
"url": "/jsir/js/chunk-vendors.2d385647.js"
},
{
"revis... | 30e1ce20888d5f4daaf9d09df2a1030ebc5b172e | [
"JavaScript"
] | 1 | JavaScript | no3forfuk/jsir | ff48f17d68607938fe7e782e98b2d07ec74a0b5b | a2b987a8a198e75782e233d63bb9ed34eecdbe50 |
refs/heads/master | <file_sep>from classifier.gaussian_naive_bayes import GaussianNaiveBayes
from classifier.width_discrete_naive_bayes import WidthDiscreteNaiveBayes
from classifier.frequency_discrete_naive_bayes import FrequencyDiscreteNaiveBayes
from classifier.entropy_discrete_naive_bayes import EntropyDiscreteNaiveBayes
from util imp... | f2dda45e1b26103357b5ca09ee6eb30fcecdf51b | [
"Python"
] | 8 | Python | mcPear/naive-bayes | e29764910f4bd2f2687555643f4c5f88b52c13b5 | dbcf9edaef2f9bd5124a776012bdae163aaceaa0 |
refs/heads/master | <repo_name>enrq/playground-swift-uiviews<file_sep>/MyPlayground.playground/Contents.swift
import XCPlayground
import UIKit
var container = UIView(frame: CGRect(x: 0, y: 0, width: 300.0, height: 300.0))
container.backgroundColor = UIColor(red: (200.0/255.0), green: (159.0/255.0), blue: (200.0/255.0), alpha: 1.0)
XCPSho... | 78d77e08c8106b403fde103d5e00aed506a9cbcf | [
"Swift"
] | 1 | Swift | enrq/playground-swift-uiviews | df99d5f88e5d192d009cc0e6372168a421ceb424 | dd6fb22f50dc00e74ebdf3337aa793ee81fadb06 |
refs/heads/master | <repo_name>ztaylor54/failedxyz.github.io<file_sep>/metro/subpages/About.html
<h1>About Me</h1>
<p>I'm a junior at <a href="http://www.d125.org" target="_blank">Stevenson High School</a>. I like computer science and I make random things now and then.</p><file_sep>/metro/js/metro.js
/*
Written by <NAME>.
Metro design ... | cdc28f61a348f8e97ea451c744dbe7df2ce987dd | [
"JavaScript",
"HTML"
] | 3 | HTML | ztaylor54/failedxyz.github.io | 5058e064f078e84a9f32a1c6b081efdf2c03f148 | 38336443d6e08f9e24a0aaba05d2483745009202 |
refs/heads/master | <file_sep>#include "beep.h"
/************************************************
功能:蜂鸣器初始化及打开关闭函数
************************************************/
//==============================================================
//功能描述:初始化蜂鸣器
//参数:无
//返回:无
//==============================================================
void BEEP_Init(... | 6530ec12cfce6473cab54ca88dae08a15dcd53e6 | [
"C",
"Text"
] | 18 | C | Forever1715/ES-0MyTemplate | 6cb8a39d9517df09073b2f68b51b055e16e8511d | 917fb488d27bb94dd11853631fdeec82169c9cca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.