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>cachemoi/olyst<file_sep>/README.md
# Olyst
Data solution on elderly care<file_sep>/src/App.js
import React, { Component } from 'react'
import logo from './img/logo.svg'
import ampoule from './vid/ampoule.mov'
import bridge from './vid/bridge.mov'
import care from './vid/care.mov'
import cure from './vid/cur... | bbdaa3644912281bf78d4436ecfe2b2494d12e91 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | cachemoi/olyst | 8bc576165036c8476f53218896e9511086739d48 | 72d84c6c3b726892697d5592e0a881f4bf159f43 |
refs/heads/gh-pages | <file_sep>from flask import Flask
from flask_cors import CORS
from flask_jwt_extended import (
JWTManager
)
import os
import datetime
from .db import MyDiaryDatabase
app = Flask(__name__)
CORS(app)
app.config['JWT_SECRET_KEY'] = 'secret'
app.config['JWT_BLACKLIST_ENABLED'] = True
app.config['JWT_BLACKLIST_TOKEN... | c83d23d6f06f432389a22afa9474d0b2f25c81cb | [
"JavaScript",
"Python",
"Text",
"Markdown"
] | 11 | Python | balaakagordon/MyDiary4 | 53949f4105680aa969da87604fcc26a4595ddeb6 | 6dbd7055a733e30b758f433b74afac29580137a3 |
refs/heads/master | <repo_name>Shuhei-YOSHIDA/ros_tiny_utils<file_sep>/tiny_conversion/src/nav_msgs_path_to_text_marker_node.cpp
/**
* @file nav_msgs_path_to_text_marker_node.cpp
* @brief Subscribe a path of nav_msgs/Path, and convert it to text marker of visualizing_msgs/MarkerArray
*/
#include <ros/ros.h>
#include <nav_msgs/Path.h>
... | 8f1e3f68324f11a65d93e5c9418cd39619f9b9ff | [
"Markdown",
"Python",
"C++"
] | 9 | C++ | Shuhei-YOSHIDA/ros_tiny_utils | 39a8f3068df7e2766ba853f8a8755854a29b114d | bf33835ae5d00cf38036611aa088f7448be1fc76 |
refs/heads/main | <file_sep># LeoCode
Es un proyecto de Web
<file_sep>const currentYear = document.getElementById('currentYear');
currentYear.innerText = new Date().getUTCFullYear();
| c2dcf514b27df2837281223af636282b8463c6e5 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | crisdamo/LeoCode | 47bcf51686ce5d3eef70f6c5d8a6e88d3a3ead17 | 1286551c5cae3032888e304c3807481b12cf1625 |
refs/heads/master | <repo_name>ertyazilim/WordPress-Automagic-Widgets<file_sep>/example-usage.php
<?php
/**
* Example usage of the Automagic Widgets class.
*
* This shows you how you can implement Automagic Widgets
*
*/
require( "SI_Automagic_Widgets.class.php" );
class My_Theme_Sidebars {
function __construct() {
# Add wi... | 7ecec5951c46e3727daef1619653241b7cf65031 | [
"Markdown",
"PHP"
] | 3 | PHP | ertyazilim/WordPress-Automagic-Widgets | 8f2e2d33d63e8a6b6b9c39cbdb1d67f6d9fbd4d2 | 0e4f75696a21eb806c94e6f68eba1d8533cc5abd |
refs/heads/master | <repo_name>Benjijamin/TP2Server<file_sep>/app.js
const express = require('express');
const app = express();
const fs = require('fs');
app.get('/calendrier', (req,res) =>{
fs.readFile(__dirname + "/" + "events.json", 'utf8', (err,data)=>{
res.header("Access-Control-Allow-Origin","*");
console.log("d... | df98842be56f964ca0271529ab6364bf569c6749 | [
"JavaScript"
] | 1 | JavaScript | Benjijamin/TP2Server | c3da68a1817e472d7e1d5d0e4c35f9cef0c9706d | cc74be721d526a8063da55d27ae53658e8253345 |
refs/heads/master | <repo_name>slodge/MvvmCrossTwitterSearch<file_sep>/TwitterSearch.UI.Touch/TwitterTabletSearchPresenter.cs
using System;
using Cirrious.MvvmCross.Touch.Interfaces;
using Cirrious.MvvmCross.Touch.Views.Presenters;
using MonoTouch.UIKit;
using TwitterSearch.UI.Touch.Views;
namespace TwitterSearch.UI.Touch
{
public cl... | 036b592e61fcbc08a0028fff05e9c70d26818a6e | [
"C#"
] | 1 | C# | slodge/MvvmCrossTwitterSearch | a28a5d0dec688185c361b6faeebee0a8815c2b51 | 1daa63bb1dc4ef0dbe07e2a091ac4e3c62f03ee3 |
refs/heads/master | <repo_name>colinjhong/poker<file_sep>/README.md
# Poker
Simulated poker game, final project, ongoing improvements
Animation through Processing is not ready yet, played through command line
Instructions included at start of game
One human player, your choice of number of computer players
<file_sep>/poker.py
# Poker
imp... | b888ea7933cce319b02016c7aec2c91e1ba82ded | [
"Markdown",
"Python"
] | 2 | Markdown | colinjhong/poker | 12a94b9ee8f73804b074646de629054586f5f75a | 9c3b74fb1b65fd35263b7ade41942962ab03157c |
refs/heads/master | <repo_name>guyanfeng/raptor<file_sep>/README.md
# raptor
一个简单的多线程下载工具,有断点续传功能
<file_sep>/Raptor/HttpDownloader.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using JaguarLib.Threading;
namespace Raptor
{
publ... | 25b0e888157be1603fcc0e219032a9b6f07f0593 | [
"Markdown",
"C#"
] | 3 | Markdown | guyanfeng/raptor | 90872324bd9de4b37a9d4b85af7ef069a956c105 | 51f0e5621716a5c233b190dc2dfcbaa6d19d32c9 |
refs/heads/master | <repo_name>melamber/KnockToWindow<file_sep>/KnockToWindow_v1.5.js
/**
* KnockToWindow v 1.5
* Date: 2015-03-24
*/
(function($) {
$.fn.KnockToWindow = function(config) {
var self = this,
/**
* Configuration of the plugin
* @type {Object}
*/
... | 09704dca891dc8673a2a6f381faf10bffffb1a4b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | melamber/KnockToWindow | c827d508b55dce332eb28fb198f6a6ce958dfe67 | cbcb7a4dff872ffb595387c71de2189e36b82e3f |
refs/heads/master | <file_sep>#######################
# Project 2 Test Code #
#######################
# Note:
# This is not the final version of test code.
# I will change the name of the tthly newtest data, so that you CANNOT
# get access to it when you are predicting.
# But it shouldn't affect your code.
##########################... | b87fb6524eff9b18c8561879b683da1569ccb6c5 | [
"Markdown",
"Python",
"R"
] | 14 | R | HongfeiLi365/Statistical-Learning-Projects | 19d1857a6fca4305a32cc03ca9b8490b69aaf9e2 | 90df77b5df667f582792a49630b45d1b0f0fff69 |
refs/heads/master | <repo_name>lzhb/port-scanner<file_sep>/README.md
## Port Scanner (端口检测工具)
### Usage
python3 port_scanner.py ip_address start_port-end_port.
For example, python3 port_scanner.py localhost 0-65535 ,
then the tool will scan all the ports opened in your PC.
You can change the timeout value in code.
<file_sep>/port_sca... | d1ba1100fc8ee1d5a003a793b06902830b3456e0 | [
"Markdown",
"Python"
] | 2 | Markdown | lzhb/port-scanner | 53eb7aa212a34b4c1b73a1670297237541c64300 | b9e972f742c65e375b9b41ec2e6e8639228c77b7 |
refs/heads/master | <repo_name>somya-dav/qna-proj<file_sep>/file.php
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "myDB";
$conn = new mysqli($servername, $username, $password,$dbname );
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connec... | 2646300252b297bdcaa7d7be1faa1adbcb7d6aa9 | [
"PHP"
] | 1 | PHP | somya-dav/qna-proj | cf3ceb4bf8453da9ec0ee8980258cab56738d573 | c5bb5974e3359edbc449e0db7f8fd57c7f9757fc |
refs/heads/main | <file_sep>import {
createRouter,
createWebHistory
} from 'vue-router'
import Home from '../views/Home.vue'
import Good from '../views/Good.vue'
const routes = [{
path: '/',
name: 'Home',
component: Home
},
{
path: '/auth',
name: 'Auth',
component: () => import('../views/Auth.vue')
},
... | 7a10b20812a761d6cd8a47e243489e219627a24c | [
"JavaScript"
] | 3 | JavaScript | Stugi/vue-exam | a6ac6cc3854cc347ba79d82ad2ff6145dee18cb3 | 432dc2a63b2ed25dfcd4c77bc8e1c923b0d60b0a |
refs/heads/master | <repo_name>alisure-ml/Installation<file_sep>/remote_vnc.md
# VNC viewer 远程
## Windows部分
1. 下载 [VNC viewer](https://www.realvnc.com/en/connect/download/viewer/)
2. 安装
3. 配置Linux电脑,并得到其ip地址(参见Linux部分)
4. 在VNC Viewer中输入ip地址进行连接
## Linux部分
1. 在搜索框搜索 `Sharing` 并打开
2. 设置 `Screen Sharing`, 点击左上角`ON`, 点击勾线`Allow conne... | f8d9a1a9f22b78e312bf8f63eb6336d2885e22d9 | [
"Markdown",
"Python"
] | 29 | Markdown | alisure-ml/Installation | e93f4f0584da28922884bf1106e066d706de9bae | 5aa01c912119c19266688566b1924f258b871a1f |
refs/heads/master | <file_sep>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int N_P;
int N_G;
int order[1000];
int wei[1000];
struct pro{
int place;
int weight;
}pro[1000];
int winner[1000];
int max(int pos, int num){
int i;
int index=pos;
int max=-1;
for(i=pos;i<pos+num;i++){
if(pro[winner[i... | c272e72b9b6756e919428e1c49eae23d72d1e2d8 | [
"Markdown",
"C",
"C++"
] | 132 | C | OYMQKUX/PAT_Advanced | e0cc5ceae16492c9ee651bc7ff413a3a8cc8451d | 6245219d011584191dd8cc6a30840f7af3e63cf9 |
refs/heads/master | <file_sep>using System.Threading.Tasks;
using NetCoreRepositoryAndUnitOfWorkPattern.Data.Models;
namespace NetCoreRepositoryAndUnitOfWorkPattern.Service.Services
{
public interface IProductService
{
Product GetMySpecialProduct();
Task<Product> GetProductById(int id);
}
}<file_sep>using Ne... | 3e73d071416abb7246b06a983e66624efbcae203 | [
"C#"
] | 11 | C# | mostafizMonir/base | c0a98e9d76f186f29d67114c7eea098157c9e17b | cd41db7f7fd1972d9911b094f40861d65b588357 |
refs/heads/master | <repo_name>gc-victor/torrentflix<file_sep>/lib/rarbg.js
var Q = require('q');
var request = require("request");
var cheerio = require('cheerio');
var moment = require('moment');
module.exports = {
search: function(query, cat, page, rarbg_url) {
var torrent_search = query;
var search_query = torrent_search.s... | b95d51c47ff97b2a4c73ddcbad12b0c2eb9def3f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | gc-victor/torrentflix | 3014b3509e0b9f3dd95daf78534a840aa064131e | 9860f10c6b8c902d84e4ae6ceb4e23f3f2c4be5f |
refs/heads/master | <repo_name>ymyt92/tc-record<file_sep>/constants.js
// 生产环境还是开发环境 production development
var ENV = 'development';
// 地址变量
var HOST = ENV == 'development' ? 'http://172.16.31.10' : 'http://172.16.31.10';
var PORT = ENV == 'development' ? '8040' : '8040';
var CAS_PORT = ENV == 'development' ? '8080' : '8282';
// 后台服务地址
v... | 5152e91a5ec6ee3fc2a80f2f31eba1fad4afd75f | [
"JavaScript"
] | 1 | JavaScript | ymyt92/tc-record | 3cdc1b11eb056f2491f83461b3c37d644fb7ac59 | 9473d3bd54448f39d9c0119c5fb40d0975698fe4 |
refs/heads/master | <file_sep>using System;
namespace Lee8InClassExamples
{
class Program
{
static void Main(string[] args)
{
string firstName = "Lee";
char firstLetterOfFirstName = 'C';
int favoriteNumber = 2;
double pi = 3.14;
bool isMarried = true;
... | c926a5793e343d9086ae77da623029f135ca58b6 | [
"C#"
] | 1 | C# | leewolfe/LeeInClassExamples | e2c089d9f97c9bbaba003f724b11229b609c0ad1 | 439441d6e7701e1e7857463f67d9c54f4ede6ec7 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
//string s = Console.ReadLine();
//Input(s);
... | b8fed93847c1edc79c0942e7e3dfbe7a9eeaff80 | [
"C#"
] | 12 | C# | AkramAlisher/pp2 | 4619946f9657beaec6b29679268a1033300981f3 | 85b853e7489ee2d22639318cde1a04e7d24a4961 |
refs/heads/master | <repo_name>ahmedhassanme/EditGraph<file_sep>/Interface.java
package editGraph;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.FlowLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayo... | f18bdeb0b7ec8f414f57a2c1f01a2dec9c90227c | [
"Java"
] | 1 | Java | ahmedhassanme/EditGraph | 3eb354fcd5cf72168b411637ff7f47ec4a441efb | 00795d77968047a90ebc1825023807216e9fd025 |
refs/heads/master | <file_sep>package fr.m2i.sqlite_annuaire;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import java.util.ArrayList;
public class listes exten... | d5792895903b6c64a74c77f2a4f90a2c8d06c833 | [
"Java"
] | 2 | Java | DimitriDim/Sqlite_Annuaire | aa846a8dcca557cbb9835d44667eee93fc3791f8 | dc71b045f85ee78f3e05eebb2cd8dff8c41280c5 |
refs/heads/master | <repo_name>mcarlson-hw/Fall2017<file_sep>/SpectralClusterer/main.cpp
#include <iostream>
#include <mpi.h>
using namespace std;
#include "tests.h"
#include "SpectralClusterer.h";
int main(int argc, char* argv[])
{
MPI_Init(&argc, &argv);
MPI_Comm world = MPI_COMM_WORLD;
int rank, size;
MPI_Comm_rank(MPI_COMM_WOR... | 8cbef6233d84fd1a0b6ead04274a347647c0aa5a | [
"C++"
] | 6 | C++ | mcarlson-hw/Fall2017 | a1b658e28ced4ce19da4bd0f24b3db46d1f376bf | d203756f33c6df4d64a7c20c68fc6528186d8fd0 |
refs/heads/master | <file_sep>//
// TKAArrayTest.h
// TKASecondWeek
//
// Created by Taisiya on 01.03.15.
// Copyright (c) 2015 TKhomeWork. All rights reserved.
//
#ifndef __TKASecondWeek__TKAArrayTest__
#define __TKASecondWeek__TKAArrayTest__
#include <stdio.h>
#pragma mark -
#pragma mark Privat Declarations
#pragma mark -
#pragma... | bac8a72567fac90f24db56d305370cb31c335a0d | [
"Markdown",
"C"
] | 28 | C | taisiyat/TestHomeWork | 3cdb8adc57dcca2f6a80950e7eaaf08ded90c9fa | 2bd7916d8f0f3bf446ff321a2d4edab154aee84e |
refs/heads/master | <file_sep>from django.apps import AppConfig
class JwappConfig(AppConfig):
name = 'jwapp'
<file_sep>
from django.contrib import admin
from django.urls import path
from jwapp.views import home,check
urlpatterns = [
path('admin/', admin.site.urls),
path('',home,name='home'),
path('check/',check,name="che... | c861c2d9efc657916a9c59737f81c16a4ce30015 | [
"Python"
] | 3 | Python | DevangGangal/JumbledLettersGameWebsite | f2abe20612dd8ff329a18a4e78c3800830c722ef | 7fe7783c49ed222ed0c0b9ba224b8489a81cc23b |
refs/heads/master | <file_sep># WRF运行的主要流程
## 1、运行WRF_link.sh
创建WRF和WPS的主程序的快捷方式,方便同时提交多个WRF任务
使用说明:
需要修改ORIGIN_WPS变量,修改为WPS主程序文件夹的路径
需要修改ORIGIN_WRF变量,修改为WRF主程序文件夹的路径
运行`sh WRF_link.sh LINK_PATH`,可以在LINK_PATH目录下创建WRF和WPS的快捷方式,可创建多个快捷方式方便运行多个wrf
## 2、修改namelist.wps
具体怎么修改省略,请参考WRF官网(http://www2.mmm.ucar.edu/wrf/OnLineTutorial/index.ph... | e6ec24916e950c76508d5ec9bf6b7b7ce8a15c27 | [
"Markdown",
"Python",
"Shell"
] | 5 | Markdown | Vanyary/WRF_SCRIPT | 583c142f711232c868368238f374437a52415baa | 53043f400879ec9ae364889ec3bf4755a7bf6741 |
refs/heads/master | <repo_name>a1029382825/CampusVillage<file_sep>/database/models.js
module.exports = {
user: {
uid : {type:Number,required:true,unique: true},
password : {type:String,required:true},
registerDate : {type:Date,default:Date.now},
userImg : String,
profile : {
nikename : String,
age : String,
sc... | 0fbf60a88c69f11f6d80bac5d273109a458d9618 | [
"JavaScript"
] | 3 | JavaScript | a1029382825/CampusVillage | e7b3f5c96b744075aa92a24d327190ccdd8b7e73 | ca4281a58e584df9839f88770687968de07d3a03 |
refs/heads/master | <file_sep># Tris
Hello! I create this simple Tris game with Pygame<file_sep>import pygame
import os
pygame.init()
screen_width = 500
screen_height = 500
win = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("Tris")
font = pygame.font.SysFont("Times New Roman", 20)
run = True
class ... | 23dcc00b674a47248a15a1e96d0e73e26896a027 | [
"Markdown",
"Python",
"Text"
] | 3 | Markdown | AndreaErario/Tris | d00adad40ba09e00068cb71f74c318463c265a30 | de77a2e70a7d41e85e423a1a2101cc69a049e1a7 |
refs/heads/master | <repo_name>oconnellamethyst/csci1103<file_sep>/Week08/lab07-code/Generate.java
// Ask for a starting number and use methods to generate the Collatz
// sequence from there. Print it on the screen using a method.
public class Generate {
public static void main(String args[]){
System.out.println("Enter starting numb... | f8ebd8e3e324e68f2fff4a0fc12e809f902249a9 | [
"Markdown",
"Java",
"Shell"
] | 83 | Java | oconnellamethyst/csci1103 | eba5e3579b3ba0ad7c0bb31494a96711dbc999a7 | a367754aed51076da4f7a9b2a7ae19c99c4bae52 |
refs/heads/master | <repo_name>bonbololin/nemui<file_sep>/src/main.js
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from 'store'
import * as firebase from 'f... | 64cdb25868d4b017dee3578a24bb60fad6119985 | [
"JavaScript"
] | 2 | JavaScript | bonbololin/nemui | 7fdaf60cde3a435afa5fec1a42ec5da608b525a0 | efb9701eba4445d54f9c8df433613f7b2ee4465f |
refs/heads/master | <repo_name>odysseus654/go-udt<file_sep>/udt/packet/packet_shutdown_test.go
package packet
import (
"testing"
)
func TestShutdownPacket(t *testing.T) {
pkt1 := &ShutdownPacket{}
pkt1.SetHeader(59, 100)
testPacket(pkt1, t)
}
<file_sep>/udt/packet/packet_ack.go
package packet
// Structure of packets and functions f... | 78618ecd587f645dacf2d8fff458de3c8abf7a0f | [
"Go Module",
"Go"
] | 45 | Go | odysseus654/go-udt | 3520cae28f349f6e732da53951b6c21d3a636223 | d3992f36f136395443695a99af4fbd27651044d2 |
refs/heads/master | <file_sep>package io.socket;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import org.json.JSONObject;
import org.junit.Afte... | 29f7fbc85a2563b3cb52a77cb5ee6b9599c0351a | [
"Java"
] | 1 | Java | Minecarts/socket.io-java-client | fe01e2012e9f1b8ee98a4963be600699a1e2583a | 114e59ab7a6ad1f5a6ce31d75d8e2f13ba9234dd |
refs/heads/master | <file_sep>package action;
import java.util.List;
import javax.annotation.Resource;
import model.News;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import service.NewsService;
@... | 0dc02df4ad8bfbfcfc22e39d51f151118135d6be | [
"Java"
] | 5 | Java | GitWindMan/mytravel | 0f1ed95d36028b24a41386ce350aa89fb21bf276 | b11bc322027a9a252affb1f7682be967b562dc10 |
refs/heads/master | <repo_name>jsdev2013/ListView_20200602<file_sep>/app/src/main/java/com/jisu/listview_20200602/MainActivity.kt
package com.jisu.listview_20200602
import android.content.Intent
import android.os.Bundle
import com.jisu.listview_20200602.adapters.RoomAdapter
import com.jisu.listview_20200602.datas.Room
import kotlinx.andr... | fd106ea4a558515fea398b6f6bc685d3f70b5ba0 | [
"Kotlin",
"Gradle"
] | 3 | Kotlin | jsdev2013/ListView_20200602 | 7fddbafca660362db3531c239ab80d33a136c05b | fe24b5e59c5e7529c1dc20f3f4f19704e782803c |
refs/heads/main | <repo_name>DesignByCodeClientWebsite/CoenieMarais<file_sep>/src/components/Title.js
import React, {useEffect, createRef} from 'react'
import PropTypes from 'prop-types'
import color from "../utils/color"
import gsap from 'gsap'
import { ScrollTrigger } from 'gsap/ScrollTrigger'
gsap.registerPlugin(ScrollTrigger)
const... | 179de03efb8e90365345de428b3231c4e0949de0 | [
"JavaScript"
] | 17 | JavaScript | DesignByCodeClientWebsite/CoenieMarais | 686fe62f9e826d7963313356afc3e3b8236ffec6 | 7e47d49833c637a8c60eb957109d32685af79ecb |
refs/heads/master | <repo_name>paultursuru/rails-mister-cocktail<file_sep>/app/controllers/cocktails_controller.rb
class CocktailsController < ApplicationController
before_action :set_cocktail, only: %I[index, show, upvote]
def index
@cocktails = Cocktail.all.order(votes: :desc)
end
def show
@cocktail = Cocktail.find(para... | d94381e99dd9fa3b6b9dda637c53e31b8a457413 | [
"Ruby"
] | 3 | Ruby | paultursuru/rails-mister-cocktail | 74e973e14a2fa9c5d743aef5a6c35b2d746f1c0f | 74261069b76bb9b9f593adba5b231a835dea825e |
refs/heads/master | <file_sep>$togDebug=false
#---Hex operations
def hex_str_to_char_arr(str)
temp_arr=[]
str.gsub(/([0-9a-zA-Z]{2})/) {|f| temp_arr<<f}
return temp_arr
end
def hex_to_asc(hex_code) #hex code string (i.e. "20" for space) as input
hex_code.hex.chr
end
#--Array operations
def combine_arrs(arr)
all_arrs=[]
arr.... | e9a28114191d4fba5f510d7e112319384232d5af | [
"Markdown",
"Ruby"
] | 2 | Ruby | estromlund/onetimepad_analysis | 38c0763dd8def70bccf29eac875bfac77ca1eeee | 1e76c4b9021e15e63595e34efd4094724999939f |
refs/heads/master | <repo_name>snowyowl981/TankAttack2021<file_sep>/Assets/02.Scripts/Cannon.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Cannon : MonoBehaviour
{
[SerializeField]
private float cannonSpeed;
public GameObject expEffect;
public string shooter;
// Star... | c31b6a7bf9ca0625ada58869c647ba6a659b27fe | [
"C#"
] | 2 | C# | snowyowl981/TankAttack2021 | e18d6c0e312d0991a4d43278c19815fd0fddc96e | 6d8661835ec4c2089f2e1d7c895649ec45502fcc |
refs/heads/master | <file_sep>package Collection;
import java.util.*;
public class LinkedListDemo {
public static void main(String[] args) {
LinkedList l = new LinkedList();
l.add(97);
l.add("java");
l.add('a');
l.add(null);
System.out.println(l);
l.set(2, 94);
l.removeLast();
l.addFirst("neha");
System.out.println... | a0cb8dfdab5a31a54f0837d2e7524824a24ad030 | [
"Java"
] | 2 | Java | Neha2486/collectionNeha | a8ab3677b08916c905b2b14948678599b0ca3247 | e41988b4f94163731d453335079d7fc980f9df7a |
refs/heads/master | <repo_name>aikrasnov/python-selenium<file_sep>/conftest.py
import os
import pytest
import datetime
from selenium import webdriver
AVAILABLE_BROWSERS = {
"chrome": "chrome",
"firefox": "firefox"
}
@pytest.fixture(scope="function")
def driver(request, param):
browser_type = request.config.getoption("--brow... | ce4fd055659a5e5ee3917fd1e2467b16521e0041 | [
"Markdown",
"TOML",
"Python",
"INI"
] | 13 | Python | aikrasnov/python-selenium | f78fab03ec78849f6e2cf54d645277a535bc339e | 3d8fa1d0fc420be830579509f73e6a867a94321a |
refs/heads/master | <repo_name>Askannz/unicorn-hat-hd-rs<file_sep>/Cargo.toml
[package]
name = "unicorn_hat_hd"
version = "0.2.1"
authors = ["<NAME> <<EMAIL>>"]
description = "Provides an interface to the Pimoroni Unicorn HAT HD on a Raspberry PI"
repository = "https://github.com/jhelwig/unicorn-hat-hd-rs"
readme = "README.md"
license = "... | 9bf39ecff9cf9042392c01fa29fdf772f9e02429 | [
"TOML",
"Rust",
"Markdown"
] | 3 | TOML | Askannz/unicorn-hat-hd-rs | 88b3e01abcfaa65030de669f61d2b0c76869dd2c | a78a561bd9da8a9ee2c383a87d1ca57871d9ddac |
refs/heads/master | <repo_name>satnamram/tiny<file_sep>/db.go
package tiny
import (
"github.com/boltdb/bolt"
"time"
)
type DB struct {
path string
db *bolt.DB
}
func (db *DB) Store() Store {
return Store{
path: []string{},
db: db.db,
}
}
func Open(path string) (*DB, error) {
db, err := bolt.Open(path, 0600, &bolt.Optio... | 6ba3cf5c03d19cc854dd1d21efaef590287e0c7e | [
"Markdown",
"Go"
] | 8 | Go | satnamram/tiny | e9365b4ed9a4c75d5aae9594ac88d423578c2d28 | 5d4f834bd0d6307ba3618eb34c2b754768096f70 |
refs/heads/master | <file_sep>function install_chef {
#Check whether chef is already installed
rpm -qa | grep "^rubygems-chef"
if [ $? == 0 ]; then
touch /tmp/chef_already_installed
echo "Chef already installed, exiting"
return 0
fi
local INSTALL_TYPE=${1:-"CLIENT"} # CLIENT/SERVER
local CDN_BASE="http://4ad0a2808a2c43e9d0d6-330deec... | cbe6184c49a1a5b3f5650e889f1de6fe1a3bfdad | [
"Shell"
] | 1 | Shell | RSEmail/chef_vpc_toolkit | f4e1bc525c546bcbde206045b18ae2f85ff8c84e | c2185268770e71c015ebd64c08d2e6130010ba7f |
refs/heads/master | <repo_name>robcmp/te-cuido-back-end<file_sep>/migrations/versions/4b428232849d_.py
"""empty message
Revision ID: 4b428232849d
Revises:
Create Date: 2021-10-09 12:28:23.640145
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '<KEY>'
down_revision = None
branch_l... | e0d63e3221b6c1550b22177129bcf20534d26d0f | [
"Python"
] | 3 | Python | robcmp/te-cuido-back-end | 1f9fee714e7d45b215a3303d7c3871a5e9f292b1 | 901db32ee8e6daa9496041e786d20b9c0a2a8cec |
refs/heads/master | <file_sep># -*- coding: utf-8
require 'em-monitor'
require 'librato/metrics'
require 'time'
unless ENV['LIBRATO_USERNAME'] && ENV['LIBRATO_TOKEN']
puts "Please export LIBRATO_USERNAME= and LIBRATO_TOKEN="
exit 1
end
puts "You can watch the graph being drawn at https://metrics.librato.com/metrics/cpu-breakdown"
L... | dabaebd34ae8318f87ae84687658f237bab158b4 | [
"Markdown",
"Ruby"
] | 7 | Ruby | ept/em-monitor | ee1d50dc65108064b5cd325bacfa79e9aa7ea67b | db94fef20374c42911f5d42a935627850e6f7a59 |
refs/heads/master | <repo_name>luzmcosta/on3<file_sep>/src/transformer.js
import fs from 'fs';
import pkg from '../package.json';
let
transformer = {
template: {
/**
* Wrap code to create a node module.
*
* @param {str} code The module's code. import statements should be here.
* @param {str} moduleName The name ... | 028d7035b952d7fb71d41ac62b0d2cc67e085ce5 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | luzmcosta/on3 | 86f5881a26147c6d57c30642bc39e8868b653a80 | 479a23eddfbcdfacb5e2cba6352f92fb9b557af6 |
refs/heads/master | <repo_name>drumwithrum/boostt<file_sep>/src/views/ExhibitionPreview/ExhibitionPreview.style.js
import styled from 'styled-components';
import { View, Button as BaseButton } from '../../components';
export const Wrapper = styled(View)`
padding-left: 13px;
padding-right: 13px;
display: flex;
flex-wrap: wrap;
h... | cbb9b0c6b946b0b91b1f954192f707aa99c2330f | [
"JavaScript"
] | 57 | JavaScript | drumwithrum/boostt | 4886dd5c5efaad08cdb57cbb7f34e6a68521b2d3 | 2330cdf55759b017d2602e07e5e77d1f38bf65ac |
refs/heads/master | <repo_name>Ljingjing/jd<file_sep>/js/category.js
window.addEventListener('load', function() {
var jdCategory=new JdCategory();
jdCategory.initLeftSlide();
jdCategory.initRightSlide();
jdCategory.leftCeiling();
});
var JdCategory=function(){
}
JdCategory.prototype={
initLeftSlide:function(){
// 初始化左边
var... | 014faaab5af6248532abc722e5bad3b07f96c3b7 | [
"JavaScript"
] | 1 | JavaScript | Ljingjing/jd | ca2cb57e8eeb855205871839bfa68732c5a7d3d9 | 5ac2fc476a38dce634a417183e0855d5a0acbb39 |
refs/heads/master | <repo_name>runbookbb/ruby-examples<file_sep>/accessor_example.rb
class Shopname
attr_accessor :name
end
visted_shop = Shopname.new
visted_shop.name = "SevenEleven"
puts visted_shop.name # => "SevenEleven"
<file_sep>/setter_example.rb
class My_shopping_cart
def item_list=(value)
@item_list = value
end
end
... | 330884d00d4668012324683ff679c33465920b01 | [
"Ruby"
] | 3 | Ruby | runbookbb/ruby-examples | 73a41a07e401559939354e53d9281e49c20cb39a | f3475ba9cef96e993a66fbe049889b10c0de3dc9 |
refs/heads/master | <file_sep>def plus_two(num)
total = num + 2
end | cecdd9497ae817a892d5df6c70c923b577e671a8 | [
"Ruby"
] | 1 | Ruby | sgoldfarb2/debugging-with-pry-001-prework-web | 5dcbf7bf1b38ba9ae246a77f463277c0529452f8 | 916fbdb2b9d1ad7d8706e55fba5990f84b5bc659 |
refs/heads/main | <file_sep>#1152
print(len(list(map(str, input().split()))))<file_sep>백준 문제 풀었던거 기록용으로 올린거.<br>
ㄱㄱㅇ 갈 생각하니까 할게 너무 많아서 코딩을 지금이라도 해야하나 생각 중인데 안 늦었을까요<br>
_늦었다고 생각할 땐 진짜 늦은거라는데..그리고 전 python 하기 싫어요. Java나 JS 하고싶은데 어려워요 자바.<br>_
_웹이 바로바로 눈에 보여서 재밌는데... 풀스택을 어케해요! 어플 만들고 싶다 ... 근데 마땅한 아이디어가 없음<br><br><br>_
그리고 python은 뭐 저런 ... | 7e7791e6403daa6b13b29ba8674093941af6b54b | [
"Markdown",
"Python"
] | 2 | Python | um2n/100Jun | f79f2ed37c2529b3f44f3c03ae51f6f1284e9840 | ad87ccfe97fb8395076b1d473bfa9c088e3aba7c |
refs/heads/master | <file_sep>[](https://img.shields.io/badge/Swift-4.0-green.svg?style=flat)
# RxVIP Templates
Precondition add RxSwift Dependency to your Project: https://github.com/ReactiveX/RxSwift
<file_sep>//
// ___FILENAME___
// ___PROJECTNAME___
//
// Create... | 3998867eec7cab3c0b8ff6346f95681e4ef71d48 | [
"Markdown",
"Swift"
] | 6 | Markdown | Egeiz/RxVIP-Template | 1792d74ee12f65bc252109f1eed5b34a5456ee06 | 7880164e075840154a0ff3a3957d55d38ec37cc8 |
refs/heads/master | <repo_name>wahabshah/clinic-website<file_sep>/header_post.php
<!-- link to the CSS files for this menu type -->
<link rel="stylesheet" type="text/css" href="style/main.css" >
<link href="style/superfish.css" rel="stylesheet" type="text/css">
<!-- link to the JavaScript files-->
<!-- Add jQuery library -->
<script s... | 2beb9c7e70e814c89dc1c8105606079d9834fc3c | [
"PHP"
] | 15 | PHP | wahabshah/clinic-website | 812e412e75e904ca369a91a221e9378399594a21 | 90595b02821c0659202f1fb6b3ce31167bfc8518 |
refs/heads/master | <file_sep>thirdplot <- function() {
# use read.table() to read the text data file into R
alldata <- read.table("./household_power_consumption.txt", header = TRUE, sep = ";")
# subset the two days in February into an R object
data <- alldata[which(alldata$Date == "1/2/2007" | alldata$Date == "2... | ed10e64650bbc92d05e535dcf9f6d1cfa2d0aead | [
"R"
] | 4 | R | sams-stuff/ExData_Plotting1 | ddf500c905c3ee81e66c836f402c57a64454c6ce | 2392df53db19c9864eb3b3ebf45cd0f6c531074f |
refs/heads/master | <repo_name>shiruken1/meteor-docker<file_sep>/Dockerfile
# ------------------------------------------------------------------------------
# Start with the base image
# ------------------------------------------------------------------------------
FROM phusion/baseimage:0.9.19
# Set correct environment variables
ENV HO... | 40ceed913e494635950276c9715762fac2ceaf9d | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Dockerfile | shiruken1/meteor-docker | 69e72413b82a7660c0d5ec6459894406d0c83ca6 | b8a5c7ec072198c6c2a4a4eb5c656c1c74213e73 |
refs/heads/master | <repo_name>mordmytro/MyCurrency<file_sep>/app/src/main/java/com/example/mycurrency/Main2Activity.java
package com.example.mycurrency;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.Observer;
import android.os.Bundle;
import android.support.annotati... | d138c00fffdea9136b5b0e0c5c8d46d85d5f9509 | [
"Java"
] | 4 | Java | mordmytro/MyCurrency | f08270504d9d374279040be99dab65b6fb0f81ce | 3055f7a8851b748ddf1f2d4fd01d7483d9253ca1 |
refs/heads/master | <file_sep>#Deadset
A reworking of the amazing [semantic.gs](https://github.com/tylertate/semantic.gs/) system. Instead of margin to define columns, columns are a full width and content is defined via padding.
**Because fuck presentational classes**
##How To Use
Simply include the _deadset file within the appropriate... | be888ba3f3779dd308bef5f974ac71cd5262c131 | [
"Markdown",
"JavaScript",
"PHP"
] | 5 | Markdown | hbanks/portfolio-site | 69b88fbccc54f946d6c4d24cb35a4ce6b57c4baf | 4403c51be6b589a5eb30614f394765400d0a5241 |
refs/heads/master | <repo_name>notargetbg/vue-todo-list<file_sep>/src/store/actions.js
import Vue from "vue";
const BASE_URL = process.env.NODE_ENV === 'production' ? '/API' : 'http://localhost:5000/API';
function orderById(collection) {
return collection.sort((a, b) => {
return a.id - b.id;
});
}
export default {
async getTodos({ ... | 9f8ea2d27866a3102ff32edf12a65b79d12db814 | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | notargetbg/vue-todo-list | d7b3a9c9f322e441cc87d1aabdc6b7eaf3ceece9 | 7452e979fdc26e26854c5d9d35f89c7ab8b34abb |
refs/heads/master | <repo_name>codenik1591/Socket-Programming-Multi-Thread<file_sep>/ATM-Socket-Multi-thread/AllTextFiles/Account_Details.properties
11111111_customer_name=Alice
11111111_atm_pin=1234
11111111_card_number=11111111
00000000_customer_name=Tom
00000000_atm_pin=5678
00000000_card_number=00000000<file_sep>/README.md
# Socket-Pr... | 85dd44f2ed2fc8284fb52fadee150dfc892080f6 | [
"Markdown",
"Java",
"INI"
] | 5 | INI | codenik1591/Socket-Programming-Multi-Thread | e58e3bd4fbc7aadfcecfdf7e3ac225bf360629d7 | 5ce885269a7cc712e33eab1c548b92d12c84b21d |
refs/heads/master | <file_sep><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>TestNG Report</title>
<style type="text/css">table {margin-bottom:10px;border-co... | d5bd7db8b155d197415cd86b5343a9b613187c4d | [
"Java",
"HTML"
] | 4 | HTML | snezanaKrstovic/SeleniumMatchForm | 76730c5a9da289e3de56cad9c08c73ced21c80c5 | 802a394ac76ba5c401f9eb5fe9c31281e5a3b02d |
refs/heads/main | <file_sep>import turtle, random
WinX = int(input("Resolution of the screen on X: "))
WinY = int(input("Resolution of the screen on Y: "))
List_Of_Airports = []
List_Of_Planes = []
Active_Routes = []
List_Of_Positions = []
Speed = 0.1
HowManyPlanesToSpawn = 1
class Program:
def __init__(self):
self.mai... | e67b44d9e9e68d348d21ebf4c374b8cf5f329666 | [
"Python"
] | 1 | Python | MrMc32/Plane-Simulator | 996b051a45e2da6b44078d2d950554c21c1ed985 | 65863cc77e6b509aa16789fb91d2461ae2537090 |
refs/heads/master | <repo_name>phyneswlgore/eb-all-in-one<file_sep>/README.md
# eb-all-in-one
This is a git repository to test the process of including a docker file in a php applciations root directory.
lastic Beanstalk will then use the repository to build a Docker container with the application
<file_sep>/Dockerfile
#Description: Gener... | 07c530e3218240840f0e894615f51d1d897432a2 | [
"Markdown",
"Dockerfile",
"PHP"
] | 3 | Markdown | phyneswlgore/eb-all-in-one | 459f9e6ee20fd6be1942b11faeb73e30dfcd18b3 | ab6339b293bbf34aba063a0e79be1425fe4c58d7 |
refs/heads/master | <file_sep>// native scope
import * as path from 'path';
export {
path
};
// @pushrocks scope
import * as smartcli from '@pushrocks/smartcli';
import * as smartlog from '@pushrocks/smartlog';
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
export {
smartcli,
smartlog,
smartl... | 6aea321d6efedd6204c62b058c9361af927cfd7a | [
"TypeScript"
] | 4 | TypeScript | financeplus/finplus-cli | 957a2e1820c2be498b69bb007328ed27ae0323e8 | ae019c7194c3281d0ec4c84738ea0e16ab6a4e14 |
refs/heads/master | <file_sep>var pg = require('pg');
var Promise = require('bluebird');
function pluckId (row) {
return +row[0].id;
}
function SqlError (args, error) {
this.name = 'SqlError';
this.args = args;
this.details = error;
this.message = 'Can\'t complete SQL query due to error.';
}
function mysqlToPg (sql) {
var index =... | 4ca889d609279030796dea1282fa9c55f93d85b9 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | boo1ean/sqlcut-pg | b466ab8a3e36fa9651d4cbdee8f5074848e237f9 | 0771fd84cddf2038deb5265928afbabbef68c1b5 |
refs/heads/master | <file_sep>// ---------------------------------------------------------------------------
// This code shows a simple controller for a 3D PotterBot extruder only
// A Button is used to enable or disable the extruder
// A 24 v Relay shield is used to read I/Os from the robot to activate the tool (if required)
// The max.... | d358e04fac3d5bd157f645c5703b4304ddc7cfc1 | [
"Markdown",
"C++"
] | 2 | C++ | susanaalarcon/ClayExtruder | 01e53493694aaf0e53d38ccbcb6fe9e4bea65be9 | 85de082c08dfd6cb3b58b2194088061f6415e8ad |
refs/heads/master | <repo_name>yduf/stylo<file_sep>/core/fb.cc
// FrameBuffer implementation
#include <cerrno>
#include <cstdint>
#include <cstring>
#include <unistd.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <string>
#include <iostream>
// #include "mxcfb.h" // use libremarkable/l... | c0439745273a8fdb344f6148054fdf8f9a3177eb | [
"Markdown",
"Makefile",
"C++",
"Dockerfile"
] | 9 | C++ | yduf/stylo | c84e485c427cdf9d23b9cd7ac96b445f8f7c0494 | a3ee7b0e47b0d72bbb0d658996923426a8282445 |
refs/heads/master | <file_sep>/*
* =====================================================================================
*
* Filename: PIRDSEvent.cpp
*
* Description:
*
* Version: 1.0
* Created: 04/09/2020 14:16:09
* Revision: none
* Compiler: gcc
*
* Author: <NAME> (lauriacl)... | 1207b96305cc751ec1f01b71bb486bee6e5f681e | [
"Markdown",
"C",
"C++"
] | 3 | C++ | cubanmakers/PIRDS-respiration-data-standard | 91620cc45dd7e1c53f400844e2a4ba5ca01b94f7 | 172fad9bcb781eb927236dc5ac3134f7724f3dd3 |
refs/heads/master | <repo_name>kenthellck/Virtualization<file_sep>/vm.php
<?php include '../mainHome/header.php';?>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTENT -->
<div class="content" >
<!-- Start Page Header -->
<div class="page-header">
<h1 class="title" ali... | 56037846f0347b3b6b366b56c6c7da979d1226da | [
"PHP"
] | 9 | PHP | kenthellck/Virtualization | 82150080e6e5efcbe5af61fd5357ab3614417a10 | 72e1cbd88b51d277114c0628588cf30fa81c4992 |
refs/heads/develop | <file_sep>const { weatherservice: WeatherService } = global.sails.services
module.exports = {
getWeather (req, res) {
const { query: { lat, lng } } = req
// TODO: validation에 대한 처리를 향후 별도의 Error 핸들링용 객체를 이용하는 방식으로 변경할 것
if (!lat || !lng) return res.badRequest({ errorMessage: '위도와 경도는 필수 요소입니다.' })
... | 80dd6fb313189e6c7e94b79a3dd3a0fbb90c4a19 | [
"JavaScript"
] | 1 | JavaScript | fureweb-com/weather-api | 279ca744fe539bafe3e5b86a2e1aa30f1343f3b4 | e5193f5db656a067b8ab4555e7ea9e34ededd20b |
refs/heads/master | <file_sep>#!/usr/bin/env python3
from tornado.httpclient import AsyncHTTPClient
import argparse
import markdown
import tornado.ioloop
import tornado.web
URL = "https://raw.githubusercontent.com/%s/%s.md"
def get_md_async(target, path, callback):
http_client = AsyncHTTPClient()
http_client.fetch(URL % (targe... | 1938552acf56aed20acd7186c61ca04516b93f46 | [
"Python",
"Text"
] | 2 | Python | sgkim126/embedding-markdown | 5fc35ed9e0d92eac798b44e63873c90301be67d4 | f395133dfc7d42032e9ba75727615bcd6e0a8fd3 |
refs/heads/master | <repo_name>Approxiam/ZombieDice<file_sep>/src/ConservativeBot.java
public class ConservativeBot extends Player {
public String name;
public int score;
public ConservativeBot(String str){
this.name = str;
this.score = 0;
}
public boolean decide(int brains, int shots, int sc){
if(shots > 0){
System.ou... | 50f80fe3a89dbec17fbc9d38549ceaad8ab40e19 | [
"Java"
] | 3 | Java | Approxiam/ZombieDice | da4f0f823213b305958577d387796f715f58c32a | 198eb909e5a543a276151c00d8917ade8885d54c |
refs/heads/master | <file_sep><?php
/**
* Copyright © 2015 YourCompanyName . All rights reserved.
*/
namespace YourCompanyName\YourModuleName\Block\HelloWorld;
use YourCompanyName\YourModuleName\Block\BaseBlock;
class Index extends BaseBlock
{
}
<file_sep><?php
namespace YourCompanyName\YourModuleName\Block\Adminhtml\ModelName\Edit;
... | e046957e9c72b4b43661be4717cccc464a2e5bc5 | [
"PHP"
] | 3 | PHP | FullStack-web-dev/Magento2 | 14428d1f681e1ecdd9d336461fddb7b9f6442519 | 53c5f3466128634a055e7fbb173d1387f663c595 |
refs/heads/master | <file_sep>package fr.doranco.wineo.middleware.objetmetier;
import java.util.Map;
import java.util.UUID;
public class CaveBis {
private Map<String, Bouteille> bouteilles;
private Integer capaciteMax;
private UUID reference;
private String proprietaire;
//constructeur
public CaveBis() {
super();
}
//gett... | ca1eded67b8dfdfdbf0c9594263b44bef23919f7 | [
"Java"
] | 2 | Java | Ireyeb/MiddleWineo | efd4eeffd5e8069d551ab8cca4b6dc33cce6f5d7 | 8f7674032d60419eafa9e35c7f3f1cb72f77b603 |
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 tugaspenggantipert7;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
/**
... | 02c3299f62ad838567ea67ea6bb19964b36391cc | [
"Java"
] | 1 | Java | ArifHermanto29/PemrogramanJavaPraktikum5160411314 | 13c284812edd2bc263e2529ab450add238198bd5 | 34818b845007830efcb20f6c5c6d8218bb866f61 |
refs/heads/master | <repo_name>SamridiNanda/Music-player-cum-streamer<file_sep>/ProjMusicLib.java
package projmusiclib;
public class ProjMusicLib {
public static void main(String[] args) {
SplaasshFrame o=new SplaasshFrame();
o.setDefaultCloseOperation(2);
o.setVisible(true);
o.setSize(1390, 770);
... | aaeaa22e4746ce8637e99ee423677b3dd901ca49 | [
"Java"
] | 3 | Java | SamridiNanda/Music-player-cum-streamer | 8388cf3facfb285b060c3d76a7b5a2305b1a6c8b | b4f64a96bb6430eff0c8e42ce5894811fedd68dc |
refs/heads/master | <file_sep># CIS50_SpaceShooter
Space Shooter game for final
<file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhaserFire : MonoBehaviour
{
public float moveSpeed = 10.0f;
void Update()
{
transform.Translate(Vector3.forward * Time.deltaTime * moveSp... | e725a9972b3b69de171c15de832193b6e8282cf2 | [
"Markdown",
"C#"
] | 17 | Markdown | Folrig/CIS50_SpaceShooter | 8397776aff6383075ac76d4bd31e925ce7cbc65c | 0564a5a1ad1f228b0cbd8fe85fedd52306c5bec8 |
refs/heads/master | <file_sep>import React from 'react';
export function dynamic(c) {
return class dy extends React.Component {
state= {
l: null
}
componentDidMount(){
this.mounted = true;
c()
.then(r => r.default)
.then((e) => {
if(this.mounted) {
this.setState({
... | 8dc6c9dd981f16935bdbe7873d81cb26c7915ed1 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | hanangjie/hzw-boilerplate | ec03333726c89afdf6ead4c8253277931eb2311c | d741f449a275ed54a226b561396bc2c84dcbdb0b |
refs/heads/master | <repo_name>m-ahmedy/upload-service<file_sep>/README.md
# Upload Service
## Required exports from src/backend.js
- **uploadHandler**
Express handler function for the `POST /upload` route
- **middleware**
Array of the middlewares used with Express app by calling `app.use()`
## How to start
- Clone the reposi... | c2b7dc14c99e72cc6d95fe644085d696080007f4 | [
"Markdown",
"Shell"
] | 3 | Markdown | m-ahmedy/upload-service | ce6a713ef9c592563e79c9639a4f790c355bd541 | 7d2f4ba7daa33c97643ef23cdc16724357048047 |
refs/heads/main | <file_sep># Initial steps for using pybind11
Clone the pybind11-initial steps repo:
```
git clone --recursive <EMAIL>:winksaville/pybind11-initialsteps
cd pybind11-initialsteps/
```
If you forget `--resusive` or `--recurse-submodules` you can use `submodule update`
to update after cloning, see [git-tools-submodules](... | 4b6a9663b0ae5ae950eee91ccf4c78a2ef2934a6 | [
"CMake",
"Markdown",
"Makefile",
"Python",
"C++",
"Shell"
] | 9 | Markdown | winksaville/pybind11-initialsteps | 363c0cf0bc2694d4301182708ba64140fec78592 | 4452b2a323b46e6726dcc899bb124d1914f9faf5 |
refs/heads/main | <repo_name>BlueWhaleKo/docker-utils<file_sep>/go.mod
module github.com/BlueWhaleKo/docker-utils
go 1.16
require (
github.com/containerd/containerd v1.5.5 // indirect
github.com/docker/docker v20.10.8+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
google.golang.org/grpc v1.40.0 // ind... | 5d45b7667fe242ab3a7473bb9b85b4e903f6a625 | [
"Go",
"Go Module",
"Markdown"
] | 5 | Go Module | BlueWhaleKo/docker-utils | 86552bb27bd0f0f5403a80a4b38bb1b6a81f62c8 | f857c4f129b4e95b467056604a656a87028c9e3b |
refs/heads/master | <repo_name>InnaSmir/3.1.Radio<file_sep>/src/test/java/ru/netology/RadioTest.java
package ru.netology;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class RadioTest {
Radio radio = new Radio();
@Test
public void shouldGetAndSetCurrentRadioStation() {
... | fe5e1a8e3a59f733875575e8d9260fab80f2da50 | [
"Java"
] | 1 | Java | InnaSmir/3.1.Radio | e36a871a293b568d22bf5cd6c5d10560813c86e1 | b959302d61d80a38824033d3d96d7a883d1acf73 |
refs/heads/master | <repo_name>Masoumeh/recogito2<file_sep>/app/views/help/tutorial/tutorial_fa.scala.html
@()(implicit request: RequestHeader, webJarsUtil: org.webjars.play.WebJarsUtil)
@views.html.help._layout("Recogito in 10 Minutes", "A quick tutorial of Recogito's most important features. Learn how to create annotations, map places a... | 71b968adf5647a5dcc45d6be2a4bb9b1ef530fe0 | [
"JavaScript",
"HTML"
] | 2 | HTML | Masoumeh/recogito2 | bf6b222f0c1b669b4ef8f0dbb1ae8df945d30f5d | 8f2e89c278c6c1ea3b8fec2f707d23f121c5aec4 |
refs/heads/master | <file_sep>package com.example.Coll_3;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by Alex on 27.12.13.
*/
public class DataBaseOptionalTargetHelper extends SQLiteOpenHelper {
public static final String NAME_DATABASE ... | c080ec08c51c00c2a0dce3443f84a122aba7b376 | [
"Java"
] | 2 | Java | Aleks-Z/colloquium3 | 3c3b1ea292bf494d4ddcc1f6d53474d63f9fc0a1 | c5abf16c6b1ad4d9186c5a19a58c42af7b136c70 |
refs/heads/master | <repo_name>gingsi/rl-continuouscartpole<file_sep>/src/performance_list.py
"""Evaluate performance for a list of experiments
(mean CPU/GPU time per step)"""
import argparse
import logging
import os
import shutil
from collections import OrderedDict
from pathlib import Path
from src.rl.eval_exp import read_exper... | 0dfa62a68c59f7d4233e3d5245a12a0233a7f10a | [
"Markdown",
"Python",
"Text"
] | 35 | Python | gingsi/rl-continuouscartpole | 87026506467ea08ff9c349294897dd3d942b8e16 | 86a86c7d357a8ee57f1f6aed0926638d6c8275b1 |
refs/heads/main | <file_sep>import { parse, transform } from '@markdoc/markdoc'
import { readFileSync } from 'fs'
import { join } from 'path'
export const loadMarkdownFile = (path: string) => {
const content = readFileSync(join(process.cwd(), path), 'utf-8')
return transform(parse(content))
}
<file_sep>import axios from 'axios'
ex... | fcc67f7e2581eb000aaa5ccc3c83cb3c16e1ab13 | [
"TypeScript"
] | 2 | TypeScript | jp-stripes/jpstripes.com | 48aa817dbf174f26fa3abfb0c7dfc006cc7d8d9a | df74b2cc4e45f21b36107340fedbb36db213b8d0 |
refs/heads/master | <file_sep>var app = angular.module("aniModule", ["ngRoute"]);
app.config(function($routeProvider) {
$routeProvider.when("/cat", {
templateUrl: "cat.html"
});
$routeProvider.when("/dog", {
templateUrl: "dog.html"
});
$routeProvider.when("/catdog", {
templateUrl: "catdog.html"
});
$routeProvide... | ce24ba29439f135e9911b585eb6b3f7967140972 | [
"JavaScript"
] | 1 | JavaScript | jcjoneskern/cat-dog | d3c0d0cfd756250a163e1582f2394d8b789239c0 | 2eae3b53d12a1b7e93694e5bd2fd8f1c6e5b4058 |
refs/heads/master | <repo_name>itskhushis1/javaprograms<file_sep>/fasno.java
import java.util.*;
public class FascinatingNumberExample1
{
public static void main(String args[])
{
int num, n2, n3;
Scanner sc=new Scanner(System.in);
System.out.print("Enter any Number: ");
num = sc.nextInt();
n2 = num * 2;
n3 = num... | a567954649a907cfa21f0165c196170e16f67d76 | [
"Java"
] | 1 | Java | itskhushis1/javaprograms | 4487e3c397a2cfcce5abaf876c5e84fea5590344 | d3850312c839b989162119e22d764afdd1dcfde7 |
refs/heads/master | <file_sep>React Antd 入門文件
## 相關文件
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app)
- A UI Design Language and React UI library [antd](https://ant.design/components/card/)
- A declarative, efficient, and flexible JavaScript library for building user interfaces [reac... | 3577ffec1bb65b70f1daf74fbb56dc8ff4aa7e5f | [
"Markdown",
"JavaScript"
] | 3 | Markdown | skycloud1030/react-antd | 6d2b40831404700917106cc901cec1a7139671a1 | e457aad987a7ba9b9fc4ca34618bd3b698fcf561 |
refs/heads/master | <file_sep>import blackjack.*;
import cardgame.*;
public class Runner {
public static void main(String[] args) {
Viewer viewer = new Viewer();
viewer.intro();
Playable game = new Game(viewer.getPlayerName(), "Dealer");
game.dealCards();
viewer.displayHand(game);
game.nextPlayer();
viewer.... | 1ed0b79071d99921bbd6db63f78e6f9a8b16ce73 | [
"Java",
"Ruby"
] | 9 | Java | eoghanscrowley/BlackJack | 5667c416dbaf85da776529869567f34e509c8ee6 | 6d01ffdee09d8418ff417f3ad47efc877038ea65 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
namespace averagepair
{
class Program
{
static void Main(string[] args)
{
var arr1 = new List<int>()
{
1,
2,
3,
5,
6,
... | 9db905b6a56974c2a81a1301711a33ca596a9489 | [
"JavaScript",
"C#",
"Markdown"
] | 17 | C# | dLars99/Morning-Algorithms | 14588db9892ab95335a304fb926f8ecbec0b891c | 01ad584618234a098dcf5aad7317ed109631758e |
refs/heads/master | <repo_name>iv-mexx/ReactiveAnimation<file_sep>/README.md
# ReactiveAnimation [](https://github.com/Carthage/Carthage)
Declarative animations using [ReactiveCocoa](https://github.com/ReactiveCocoa/ReactiveCocoa) signals. See t... | ab7d2e46a020793c295e31f81af6e5462171e30a | [
"Markdown",
"Swift"
] | 5 | Markdown | iv-mexx/ReactiveAnimation | eeee3b19dff603d230f185ad5fd97d556e6c9dfd | b9a7a64d4f0a2e3ef4e05b4f4b4332ca2f9db32b |
refs/heads/master | <file_sep>import { CALL_API } from './enums';
export default () => { // eslint-disable-next-line no-restricted-globals
self.addEventListener('message', e => {
if (!e && e.data !== CALL_API) return;
let { data } = e;
fetch('https://jsonplaceholder.typicode.com/comments')
... | 164ad891ef3a1c5fec67edb5cc2b0732414d45b7 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | davidkern13/react-web-worker | 5dfd6a576aa3240c375724e35bfcea49742187ed | 263492b2501f0a721d6b1b275e255eef736b0fa3 |
refs/heads/master | <repo_name>alistairkung/react-tutorial<file_sep>/src/Root.js
import React from 'react';
import Counter from './module/Counter';
//use this component as it was the entry point of your dev server
class Root extends React.Component {
constructor(props) {
super(props);
this.state = {counters: [2,1,2]};
}
i... | 8707f004ce0a476cd468ebdfc665a08e4f227ef0 | [
"JavaScript"
] | 1 | JavaScript | alistairkung/react-tutorial | ff06bf8bd2a593933f9f2b069ccd7bcb7705d7db | 329431dad68a2492887c37be89e4b5254fff6f00 |
refs/heads/main | <repo_name>tblaisot/k8s-image-autoproxy<file_sep>/pkg/mutate/image_proxy.go
package mutate
import (
"fmt"
dockerparser "github.com/novln/docker-parser"
dockerparserdocker "github.com/novln/docker-parser/docker"
core "k8s.io/api/core/v1"
)
func patchImageWithProxy(options Options, image string) (newimage string, ... | 6e30330ff161daa0d13055beb44f44ed4833f414 | [
"Markdown",
"Go Module",
"Go",
"Shell"
] | 7 | Go | tblaisot/k8s-image-autoproxy | 21de565780d9b2d2fe9048785b3e9940818afb3b | d068ec985c26694560af86d409d253f3fdb07938 |
refs/heads/master | <file_sep>require 'rspec'
require './skynet_chasm'
describe 'moto-terminator' do
it 'knows when it fell into the gap' do
expect(find_solution(0, 5, 5, [], 0, 2, false)).to be_nil
end
it 'knows when to jump' do
solution = find_solution(1, 1, 5, [], 0, 2, false)
expect(solution).to eq(['JUMP', 'SLOW',... | 04e77270e6b6c4c1f1628e26291fda71c9f7429d | [
"Ruby"
] | 9 | Ruby | mikenichols/codingame | 972c1c1ff5a006a56f53b47d5b8cb6bade057f1f | 8e4fde87f7ff9c17b92e9beed7c1a1c3c0cf3ae2 |
refs/heads/main | <repo_name>bas001/intellij-pact-plugin<file_sep>/settings.gradle.kts
rootProject.name = "intellij-pact-plugin"
<file_sep>/src/main/kotlin/com/github/bas001/intellijpactplugin/services/MyApplicationService.kt
package com.github.bas001.intellijpactplugin.services
import com.github.bas001.intellijpactplugin.MyBundle
cla... | 90267a0183dfa089ec620abb02ae1d79740a750d | [
"Kotlin"
] | 2 | Kotlin | bas001/intellij-pact-plugin | b6f8d9e97ce06aae3fc53215ed54116685d73b15 | 18bf17471cc672408ff88e2aa37356911719b564 |
refs/heads/master | <repo_name>lczalh/learn<file_sep>/model/src/main/java/com/cz/model/code/CodeModel.java
package com.cz.model.code;
public final class CodeModel {
/*成功*/
public final static String SUCCESS = "0000";
/*文件大小超出限制*/
public final static String FILESIZEEXCEEDEDLIMIT = "0001";
}
<file_sep>/model/src/main/jav... | 387110c911c43dd2ea03a1df320f161974d1f5c3 | [
"Java"
] | 2 | Java | lczalh/learn | 347d1a65d0f906c243b5cf1caa73ccc471324197 | ea9c960d97a072a849a2b86490e2e3f09d03494e |
refs/heads/master | <repo_name>MaximeBonnet27/DiamondSquareMap<file_sep>/DiamondSquareMap/src/com/github/maximebonnet27/Biomes.java
package com.github.maximebonnet27;
public enum Biomes {
OCEAN, DEEP_OCEAN, SUBTROPICAL_DESERT, TEMPERATE_DESERT, GRASSLAND, TROPICAL_SEASONAL_FOREST,
TROPICAL_RAIN_FOREST, TEMPERATE_RAIN_FOREST, TEMPERA... | 1f4cc645b4f17ee14dba1c2389ca00ce2d7689d2 | [
"Markdown",
"Java"
] | 3 | Java | MaximeBonnet27/DiamondSquareMap | 3ee061c5e93182f2349a6b240393be7b97577170 | 8f483890f3926da2af1c4c4f430d53b3fa27e00c |
refs/heads/master | <file_sep>const player = {
x:1,
y:1,
path: [{x:1, y:1}]
};
function placeHorizontal(thePlayer, command)
{
if(thePlayer.y >= 0 && thePlayer.y < 2){
if(command === "l"){
thePlayer.y--;
} else {
thePlayer.y++;
}
console.log(`Player has position: x=${thePlaye... | 57c0d084447a82d1d986dfdb2158dc6cb284b0ad | [
"JavaScript"
] | 4 | JavaScript | yolaresofia/javascript-practice | 6e7b4a49fc21e4ca18bb786399e3e93cc18ab0f9 | 1252d02f1872ac1771148789883f3bcccbf05cd5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.