branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>CXX=/usr/bin/clang++
INCLUDE_DIRS=include ../include ./include
INCDIR=include
TESTDIR=test
CXXFLAGS=-I$(INCDIR) -std=c++11
TESTFILES=$(shell find $(TESTDIR) -name '*.cpp')
OBJFILES=$(patsubst test/%.cpp,bin/%.o,$(TESTFILES))
EXECS=$(patsubst test/%.cpp,bin/%,$(TESTFILES))
TEST_TARGETS=$(patsubst bin/%,%,$(EXE... | f7464ff8911bb52a52bec92cb6eb2d35c58584ec | [
"Markdown",
"Makefile",
"C++"
] | 22 | Makefile | thewpaney/ds | edae4a057912946329066338bada4deea8d723ab | d12bff662eb64ab25c761305c25e21efd1360a11 |
refs/heads/main | <repo_name>73nko/secret-santa<file_sep>/src/create-stars.js
const $sky = $(".stars");
const skyHeight = $sky.innerHeight(),
skyWidth = $sky.innerWidth();
const numberOfStars = (skyWidth * skyHeight) / 10000;
for (let i = 0; i < numberOfStars; i++) {
const starSize = Math.floor(Math.random() * 8 + 2),
s... | 88094fc39b6552b0e83883900acc2877c36a4590 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | 73nko/secret-santa | c567689f698ffeb981f648624a9978813c5a90d4 | 3fec90ddd760a3718cfc38bb695efc7b8c29442c |
refs/heads/master | <repo_name>Hatsune39/raspberryPi<file_sep>/installations/pi-setup-lirc.sh
#! /bin/bash
sudo apt update
sudo apt install -y lirc
sudo sed -i 's/DRIVER="UNCONFIGURED"/DRIVER="default"/g' /etc/lirc/hardware.conf
sudo sed -i 's/DEVICE=""/DEVICE="\/dev\/lirc0"/g' /etc/lirc/hardware.conf
sudo sed -i 's/MODULES=""/MODULES=... | d0b015070cc65a43c54a0d45c3f273c0cd6024d9 | [
"Markdown",
"Makefile",
"Python",
"C",
"Shell"
] | 22 | Shell | Hatsune39/raspberryPi | 886a677a0f6501eee8df0e889fd4f11ecfa12220 | 32931421c9f95e2ad0d084f6a539e7a8b8f106f4 |
refs/heads/master | <repo_name>zhi-lu/MasterLearning<file_sep>/src/com/luzhi/miniTomcat/watcher/WarFileWatcher.java
package com.luzhi.miniTomcat.watcher;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.io.watch.WatchMonitor;
import cn.hutool.core.io.watch.WatchUtil;
import cn.hutool.core.io.watch.Watcher;
import com.luzhi.miniTo... | 1871b3daf10d7beb7facf391ba224adf623b6284 | [
"JavaScript",
"Java",
"Shell"
] | 17 | Java | zhi-lu/MasterLearning | 8f616248c51e4ee6181b9008b29809ec8f02b86c | 7f347c5879ad5e05988fce76e51eaf357427b348 |
refs/heads/master | <file_sep>const express = require('express');
const exphbs = require('express-handlebars');
const path = require('path');
const bodyParser = require('body-parser');
const methodOverride = require('method-override');
const redis = require('redis');
let unirest = require('unirest');
// Create a redis client
let client =... | 4508f2aea8bf09b2693862d77171a91553e597ba | [
"JavaScript"
] | 1 | JavaScript | sukeesh/Pinterest-for-Links | ca14acc71ceb22e469f3bc5b1dbe4c0a99a521a6 | 108d5145632c4f5bd45e26a5cadd06f7c62f987e |
refs/heads/master | <file_sep>require 'java'
require 'rubygems'
require 'rsolr'
require 'rsolr-direct'
require 'timestools.jar'
require 'date'
class String
def starts_with?(prefix)
prefix = prefix.to_s
self[0, prefix.length] == prefix
end
def ends_with?(suffix)
suffix = suffix.to_s
self[-suffix.length, suffix.leng... | 4372e2c0d0e0888f25c0abf075755316c1f56a30 | [
"Ruby"
] | 1 | Ruby | n3wtn9/nytimes-solr-indexer | 89bbc12f09d6361a3d36460b310c5e715a5b9057 | bd5e76de13a9e47e245df672078ac93ab513c0c0 |
refs/heads/master | <repo_name>rachelktyjohnson/thevarious_landing<file_sep>/README.md
# The Various - Landing
The temporary landing page for The Various Directory
<file_sep>/index.php
<?php
$formMessage = "Let me know when The Various Directory launches!";
$email = filter_input(INPUT_POST,"your_email",FILTER_VALIDATE_EMAIL);
if ($type... | bb7f4fa5b8166a0b86e4dc0cb4112501544dcb76 | [
"Markdown",
"PHP"
] | 2 | Markdown | rachelktyjohnson/thevarious_landing | 302c97b0f43fedc7fb7aa5ec80ca0cff8409a073 | 0a08e4512ebb5feccaf0d7700f7ede2cb9c1f76b |
refs/heads/master | <repo_name>DiegoKazadi/treinamentospring<file_sep>/src/test/java/com/treinamento/applicacao/ApplicacaoApplicationTests.java
package com.treinamento.applicacao;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ApplicacaoApplicationTests {
@Test
vo... | 419503d12187183f2b2a0613c76a7215ab230a9f | [
"Java"
] | 2 | Java | DiegoKazadi/treinamentospring | e7520fa736cd5289a41171c992fccf7890bb93eb | e236b585a50bb2ffe914db62cd9c5858393364db |
refs/heads/master | <repo_name>cmilfont/pwa2<file_sep>/src/api/domain/fetch-entities.js
import { fromJS, List } from 'immutable';
function getCoords(item) {
const { lat, lon } = (item.type === 'experience')?
item.destination.location: item.location;
return [lat, lon];
}
export default (state, action) => {
const isArray = act... | 63810d2032718a9b22fc57d0361ef8116511b24d | [
"JavaScript"
] | 8 | JavaScript | cmilfont/pwa2 | c353ff5dd0c3d9792f7c3fb48d96906143d42cf6 | 0e83ebcb515fbb8fb0e89bf2fc06d62c87e36802 |
refs/heads/master | <repo_name>fengyalu/Progress_Bar_Solid<file_sep>/app/src/main/java/cn/com/fyl/learn/progress_bar_solid/MyCircleView.java
package cn.com.fyl.learn.progress_bar_solid;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rec... | 758987e597ffc1875327c93a157fb36d113606f0 | [
"Java"
] | 1 | Java | fengyalu/Progress_Bar_Solid | e392b689b4a0fdd6f87e015e616f5be4c8fbc01f | 486978560b16bfac606d9fafceb9b51da97f5cf7 |
refs/heads/master | <repo_name>xSaintBurrito/GymApp<file_sep>/userDBAndAuthentication/src/main/java/com/gymapp/gymapp/UserBO.java
package com.gymapp.gymapp;
import com.gymapp.gymapp.entity.FitnessClass;
import com.gymapp.gymapp.entity.User;
import com.gymapp.gymapp.input.UserAddInput;
import java.util.Set;
public interface UserBO {
... | 0de2726d1667bdff8deb11ae3746ecba9e6856bb | [
"Java",
"INI"
] | 10 | Java | xSaintBurrito/GymApp | 0f4a04b55379600906da6d93227c2645edcb6b40 | 4fd163cbfddc6e1fcb4a0f487d7c3337807d2c88 |
refs/heads/master | <file_sep>package com.mygdx.game;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;
public class WorldRenderer {
}
| 25f67fb4e133a1372d02113dc7515672c51681bb | [
"Java"
] | 1 | Java | nongharunana/pacman | 11fa5f2b6e46ddb1ad50513a82bccd9a05e04acd | e8a3db82b62763538eb9f43b9c389f7349fcd284 |
refs/heads/master | <file_sep>import React,{useState,useEffect} from 'react';
import { Auth, Hub } from "aws-amplify";
export const IdentityContext = React.createContext({});
const IdentityProvider = props => {
const [user, setUser] = useState(null)
useEffect(() => {
Hub.listen("auth", ({ payload: { event } }) => {
switc... | af8ca8624580817a98b000da60457790342bf46c | [
"JavaScript",
"TypeScript"
] | 7 | JavaScript | Muhibullah-09/aws-event-bridge-todo-app | e62c3b0846244d57edcd42d82ca5fa895df6661f | 8364e0af8d25024d3f9f6a463403344cb3d068fe |
refs/heads/master | <repo_name>hammGJU/alumniservices<file_sep>/src/main/java/daos/ConnectionDAOImpl.java
/*
* 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 daos;
import java.io.Serializable;
impor... | 0c8a87e72b4158e5a597ba6c49036cbdbd6b9dda | [
"Java"
] | 2 | Java | hammGJU/alumniservices | e266219207f44792f01273424d6b4b417b3e3eaa | 17b58a77db533f4645355d05eb8e3b4aec6bbde7 |
refs/heads/master | <file_sep>This is Raw-G's first attempt at making a blog!<file_sep>json.extract! @micropost, :id, :string, :integer, :created_at, :updated_at
<file_sep>class CreateMicroposts < ActiveRecord::Migration
def change
create_table :microposts do |t|
t.content :string
t.user_id :integer
t.timestamps
... | 2b925e4cc531c18c4d5c216795ce29f7f5ae6188 | [
"RDoc",
"Ruby"
] | 3 | RDoc | Raw-G/blog1 | bec38511078a6eda99676f8b7085c42df0785239 | f2f6b5dfb479c2a8e42ccfe34464b0f832a605ac |
refs/heads/master | <repo_name>7odri9o/Lanterna<file_sep>/app/src/main/java/br/com/kimstorm/lanterna/LanternaApplication.java
package br.com.kimstorm.lanterna;
import android.app.Application;
public class LanternaApplication extends Application {
private static boolean isActivityVisible;
public static boolean isActivityVisible... | cd6e690e9b4f7170a686d1fcdf6b3ec145f0440f | [
"Java"
] | 2 | Java | 7odri9o/Lanterna | 077c5c8e32e08b7989642b4a3b5f1b88eabc0c94 | d89c0821ca67ac1ae105616324da3b18caab7129 |
refs/heads/master | <repo_name>pponnuvel/liburing4cpp<file_sep>/CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(liburing-http-demo)
find_package(Boost OPTIONAL_COMPONENTS context)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
option(USE_LIBAIO "Use libaio instead of liburing fo... | c86d3b26e71d5f74e61aedf4ac2b73975c825f6c | [
"Markdown",
"CMake",
"C++"
] | 5 | CMake | pponnuvel/liburing4cpp | 06a8fe8bed43c47a099f18f94cd03445b2483c13 | 34fdd41be8f72f170e7d7d8792ff3a39da7ce400 |
refs/heads/main | <file_sep># Reterm (仮)
IDE っぽい UI のターミナルエミュレータ。(Electron + React + TypeScript)
ステータス: ほとんど未実装
## 機能
- コマンドの入力・編集を普通のエディタと同様に行える
- ジョブごとに独立して入力操作や出力の閲覧を行える
- 作業ディレクトリなどをファイラのようにツリーで視覚的にみれる
## UI (予定)
イメージ図:

- ファイルツリー
- ファイルやディレクトリのツリーが表示される
- 作業ディレクトリは強調表示される... | bc922155860db14df12688fed7bdb9ed644fe682 | [
"Markdown",
"TypeScript",
"Shell"
] | 6 | Markdown | vain0x/reterm | b2d104f85fdc3707bd5bdc6e0837034b32a02515 | 06247845700a8877c822434ed39e414e3a57f7b6 |
refs/heads/master | <repo_name>krainet/ps_resources<file_sep>/ps_modules/modules_src/shopimultitabs/classes/ShopimultitabContent.php
<?php
/**
* Shopi Multiple Tabs In Product Module
*
* @author ShopiTheme;
* @copyright Copyright (C) October 2013 prestabrain.com <@emai:<EMAIL>>;
* @license GNU General Public License version 2;
... | e91b3065b037730902c5dc6ab90090e2594b3e21 | [
"Markdown",
"Text",
"PHP"
] | 14 | PHP | krainet/ps_resources | b8ae716b56c4eb98264bf214bded291a335c646d | 66a0d6e4fb2abf093a92c8e2283a0238a018e35d |
refs/heads/master | <repo_name>davidfindley19/macOS-Management<file_sep>/README.md
# Mac Management Scripts
A collection of scripts to manage/install software on Macs
# OSX_Test_Menu
A script that allows you to select from a menu different administration tasks. At the time of this being written, Office 2016 needed to be manually install... | eb22d390acb881b8a8499150483b5447dcb9b402 | [
"Markdown",
"Shell"
] | 6 | Markdown | davidfindley19/macOS-Management | c7343e04ba4d6639887cc2c856243e91b81fc38e | b78b6974b1be7760ba4d710e2ee4cf265d00828e |
refs/heads/master | <repo_name>hilalisa/statictemplate<file_sep>/statictemplate/statictemplate.go
// Package statictemplate implements a code generator for converting text or html/template to Go code.
package statictemplate
| 366805383997d8a10b01114aecfeb94ff77a592d | [
"Go"
] | 1 | Go | hilalisa/statictemplate | 0148c1b698ea42cccc8c13cc0fff15556ef493d6 | 4208b0d807963df4f6de40884adf39b737e7b214 |
refs/heads/master | <repo_name>smilecool2012/Java-Laba8<file_sep>/Lab 8/src/com/company/Main.java
package com.company;
import java.lang.String;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.ParseException;
import java.util.ArrayList;
public class Main {
public static ... | cc7f7a9d56f48afa8fdbdd164fd515c4935ef6db | [
"Java"
] | 4 | Java | smilecool2012/Java-Laba8 | 24bdabe8b856fff5d676adbffb15d4c5bc443b0c | c1bc02f0c5dce74fa854a23f8112bb9ad0b703a4 |
refs/heads/master | <file_sep>import '../img/icon-34.png';
import '../img/icon-128.png';
// Blocked urls
var urls = [];
// Handle incoming connections
chrome.extension.onConnect.addListener(port => {
// Listen for a domain to block
port.onMessage.addListener(url => {
urls.push("*://*." + url + "/*")
updateBlocks();
});
... | c222cd733dce64896d1cd6ac0ad9bf72865130ea | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | gurveerdhindsa/blocker | 234b286fc9e9414090e4c6bfe7b207932c03abc6 | 51ed0fa61b9b53c2330de18b1114fe3511ae9b89 |
refs/heads/master | <repo_name>Arkanoid01/MUDABlue2<file_sep>/src/main/java/it/univaq/disim/mudablue/matrix/MudaBlueRun2.java
package it.univaq.disim.mudablue.matrix;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import org.apache.commons.math3.linear.RealMatrix;
public class MudaBlueRun2 {
public static... | 17971399e4c6620535b3c7e83c8e8332a6105fb1 | [
"Java"
] | 1 | Java | Arkanoid01/MUDABlue2 | 476c41844acee70bf2b9b47e118075308178f617 | 9907867dbaf595b2e8566bfd3917b158490dc91f |
refs/heads/master | <repo_name>sravi4701/plack<file_sep>/src/controller/Testsql.java
package controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import jav... | cfef0a268ef6ef994a4370beb7ce6ed872b1e5b4 | [
"Markdown",
"Java"
] | 5 | Java | sravi4701/plack | 880a7fd8f0ad005b13dfc5ffab962d74bec8a6b6 | d5a7f2ae88250d33250703f5e1344e6008d5cff3 |
refs/heads/master | <repo_name>ddana0909/cats<file_sep>/Scripts/pisicute.js
var pisica1=
[[0,0,0,0,5,0,0,0,2,0],
[0,0,0,0,1,1,1,1,1,0],
[0,0,0,0,1,6,1,6,1,0],
[0,0,0,0,1,1,1,1,1,0],
[1,1,3,0,0,1,1,1,0,0],
[1,0,0,0,0,0,1,0,0,0],
[1,0,0,0,1,1,1,1,1,0],
[1,0,0,1,1,1,1,1,1,0],
[1,0,-1,1,1,1,1,1,1,0]... | 2627567b5916d593900f05f56d271f0ef5e2f505 | [
"JavaScript"
] | 1 | JavaScript | ddana0909/cats | f73e9ccc323d49cc7a55dc45f524857d2d6632e0 | 5c29ec0d079804bcce0d0166b91b1077f2b2fac0 |
refs/heads/master | <file_sep># CalculatorProgram
A simple non-graphical calculator that performs basic calculation functions
<file_sep>import random
import math
import string
# This function open's/read's up a password file (I need to find a way to iterate through the list
# so that different passwords may be inserted.
try:
... | f47bbc2ab539766eb36d8f1cf613332e8d9ba3cf | [
"Markdown",
"Python"
] | 2 | Markdown | LungaMthombothi/CalculatorProgram | 52542d8f000a6d7ff8cab191941b5ecf09341ee3 | 62337d761bb9fe4ccd110c57e050095abce5db56 |
refs/heads/master | <repo_name>SarahRector/chocolate-pizza<file_sep>/test/example.test.js
// IMPORT MODULES under test here:
// import { example } from '../example.js';
const test = QUnit.test;
test('testing', (expect) => {
const expected = true;
const actual = expected;
expect.equal(actual, expected);
});
| e1359d0404008722ab36e7ee5a4652d3b4f70c6a | [
"JavaScript"
] | 1 | JavaScript | SarahRector/chocolate-pizza | 49cf28c0b396db99ef624cf44d788f6592955755 | 3594a0ddb7395c899d9524fb34c860d5cc020fb4 |
refs/heads/master | <repo_name>AndreaChiaramonte/domoticz-python-melcloud<file_sep>/README.md
# domoticz-python-melcloud
## Installation
1. Clone repository into your domoticz plugins folder
```
cd domoticz/plugins
git clone https://github.com/gysmo38/domoticz-python-melcloud.git
```
2. Restart domoticz
3. Make sure that "Accept new Hardw... | cd8b6ab2ccedf3de548fd16fe2d62b460132b1f9 | [
"Markdown",
"Python"
] | 4 | Markdown | AndreaChiaramonte/domoticz-python-melcloud | 6bd96fb5ad83d0ba650c3e430ece7f3c485faa78 | 6d91ca7125f0e7216be0774b9d018f125a56d592 |
refs/heads/master | <repo_name>wesyoung9987/node-passport-boilerplate<file_sep>/controllers/client.js
const Client = require('../models/client');
exports.getPendingUserClients = function(req, res, next) {
const userId = req.body.userId;
const clientType = req.body.clientType;
Client.find({ userId: userId, type: clientType, actualS... | 1145e5fff2093759ecec99362928f7f2c4a00c4f | [
"JavaScript"
] | 7 | JavaScript | wesyoung9987/node-passport-boilerplate | 6b1b6729d24badcd46cdf810a8cc49accef38dfc | f2a98d8d9e0d3ed8489c0b91d2ec3fb622ea7584 |
refs/heads/master | <file_sep>'''
author: <NAME>
'''
import random, sys
from copy import deepcopy
marker = '123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
shortestPath = []
totalPath = []
def mazeGen(r, c):
maze = [None for r in range(r)]
rowIndex = 0
(rows, cols) = (r, c)
rows ... | 2e5af5a6b2c5a32cc26ae2c95824db40194c1938 | [
"Python"
] | 1 | Python | pziajski/Python-Maze-Solver | 2457f0c48e82137235228c17ca90f8dfc6fd5c5c | 139a0d316ed719921fa16ece15291ea011bfcacc |
refs/heads/master | <repo_name>ElOleynik/hell<file_sep>/README.md
"# hell"
# hell
# hell
<file_sep>/src/main/java/WordCount.java
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class WordCount {
private static String CATALOGUE = "C:\\Users\\User\\IdeaProjects\\WordCount\\src\\main\\java\\Test.tx... | f21eadbcae8ae32eba443c449135b16432fba921 | [
"Markdown",
"Java"
] | 2 | Markdown | ElOleynik/hell | 10d3bf8a32dff19bb2c1193be99797ca54813d68 | dc6baf5b95bf13e450737b424073d4ab8259b580 |
refs/heads/master | <file_sep># Snake Game
#### Criando jogo da cobrinha - Snake Game, tomando como base o bootcamp de HTML Dev do Digital Innovation One.

## Começando
##### Esse arquivo fará com que você tenha uma cópia deste projeto par... | 13b1c735cbfa321a3980adf0970f1a516cce3226 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | HugoMendess/SnakeGame | de85eea51a08ba3c52981ff9aa12d934ba65e5ca | 952e3804d9d8d24a282a208f02d496fe50f81346 |
refs/heads/master | <file_sep><?php
if (!$iniPath = get_cfg_var('cfg_file_path')) {
$iniPath = 'WARNING: not using a php.ini file';
}
echo "********************************\n";
echo "* *\n";
echo "* Symfony requirements check *\n";
echo "* *\n";
echo "**********************... | f76e207b578efc877f6478982432a57494595cdf | [
"PHP"
] | 1 | PHP | hollodk/casim | bef4095346d4b0c792d427a02966842ec145f990 | c3cb2c5b8aa4328cc5b87fc20155c6f826d75674 |
refs/heads/main | <file_sep>function convertFahrToCelsius(data) {
let dataType = function(){
if(data.constructor == [].constructor){
return 'this is an array.'
}
else if(data.constructor == {}.constructor){
return 'this is an object.'
}
}()
if(data instanceof Object){
if... | 913893541a1943e1e6c4aad0987c21ec24595e36 | [
"JavaScript"
] | 1 | JavaScript | abdrah3Em/zuri-algorithm | 89a83cf3ed41bff88e414a3bcd8dc393ccdf7359 | 8b126b2cd45c8063b40bdf5712d1e221fe40d681 |
refs/heads/master | <repo_name>RaysBox/TestingPopMenu<file_sep>/app/src/main/java/com/app/ray/testingpopmenu/MainActivity.java
package com.app.ray.testingpopmenu;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.View;
import android... | ae23d465a69954394677ce64bfe2b292dc919c1c | [
"Java"
] | 1 | Java | RaysBox/TestingPopMenu | 8684d6f8babf721603feefc760f9c7f05974916f | d7537447180157811a9887d7ab46e29d318531aa |
refs/heads/main | <file_sep><?php
namespace App\Http\Controllers;
use DB;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the... | 38767bd4880d21d797d6a8ba4ccdf661441886db | [
"Markdown",
"PHP"
] | 4 | PHP | NizarDwiSetyawan/project_perpustakaan | cd8208759e496f88550dd5e7f15d74c4f9802a61 | e10e40c2f243c81210ada59239b5ed02cdd70e4d |
refs/heads/master | <repo_name>dokspribadi/example-php-sti-helloworld<file_sep>/README.md
# PHP source to image Helloworld Example
This is an example php application, which can be deployed to APPUiO using the following commands
## How to deploy
### Webconsole
* log into your OpenShift V3 Master (eg. https://master.appuio-beta.ch)
* Cr... | 57e34d0fb7e82f978500a4f915603a963a9689e8 | [
"Markdown",
"PHP"
] | 2 | Markdown | dokspribadi/example-php-sti-helloworld | fa567b84c3ff050a14d8aafff697027d9857c607 | 95929b762f2caeaf0154ea04ea735b02c6c6f4be |
refs/heads/main | <repo_name>marvinkome/webdrop<file_sep>/src/hooks/receive.ts
import Peer from "peerjs"
import React, { useState, useEffect, useRef } from "react"
import { setupPeerJS } from "utils"
import { FileBuilder } from "utils/file"
import { useBitrate } from "./bitrate"
export function useReceiveFile(dataConn?: Peer.DataConnec... | a645c68046ef0244a24f61740cced412d71d6b52 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | marvinkome/webdrop | a54f1ee90899cbfc8019c703009dc2d0835d9cf3 | 853e94464e91e5fd82f2eb5fde9d9c09160883b2 |
refs/heads/master | <repo_name>huangcheng/todo<file_sep>/src/app/todo.component.jsx
import React from 'react';
/*
* Paper component
*/
class Paper extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="layer paper">
<TodoListControls />... | 93a8baf0cd1d80e74a94e9b5d3a29007a24c89bb | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | huangcheng/todo | 1064c5509e2316012c9c3857b21e2091b6baccc6 | cf1369386d8ad36482e4f3baa1b17518506c4b90 |
refs/heads/master | <file_sep>package app.footballclub
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Item (val name: String?, val image: Int?):Parcelable{
}<file_sep>package app.footballclub
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.v... | e1cceee0956402e84bbb016fb95db0b887d43c56 | [
"Kotlin"
] | 2 | Kotlin | ReyzaldyIndra/KADE | e0c9e2790c4bd027dbabbebd34a43b9a83094e85 | 292e5551d11f0045b9f3796b1156935c2f812bc3 |
refs/heads/master | <file_sep>/**
Programmer : Stanley
Class : ET-575 Introduction to C++ Programming Design and Implementation
Semester : Spring 2017
Date : 03/15/2017
Professor : Trowbridge
Exam : Spring 2017 Final Exam
Software uses : Code:blocks
**/
#include <iostream>
#incl... | 0c16852ba2ae2c86a6cf255f91f94dd0651f3be4 | [
"C++"
] | 1 | C++ | Pouchyno29/Tic-Tac-Toe | df8916a93bd8c0ac2449d6a70469a6263aeb0ca5 | 0326a7beb374185ddb43ed7fe49d0210f0dad20f |
refs/heads/master | <repo_name>KoryaginSergey/MVVM<file_sep>/MVVM/Source/ViewModel.xctemplate/___FILEBASENAME___ViewModel.swift
//
// ___FILENAME___
// ___PROJECTNAME___
//
// Created by ___FULLUSERNAME___ on ___DATE___.
// Copyright © ___YEAR___ ___ORGANIZATIONNAME___ All rights reserved.
//
import Foundation
import Combine
protoco... | 9ccc1e021b20493f20399c2c809bc167541e3e70 | [
"Swift",
"Makefile",
"Markdown"
] | 15 | Swift | KoryaginSergey/MVVM | af8088c1dd627238d3b27884d03ab0cb0b343b92 | e8641a183dafef60e78ddc7bfb63e61c25072e99 |
refs/heads/master | <file_sep>var settings = {
rows: 3,
columns: 5,
viewWidth: 0,
viewHeight: 0,
pieceTemplate: '',
cards:null,
cellWidth: function(){
return settings.viewWidth/settings.columns;
},
cellHeight: function(){
return settings.viewHeight/settings.rows;
}
};
var ani = {
crtCellInx:0,
aniInterval:n... | d404cae2802c96757a97a4af9ee63e5fb5ecf98d | [
"JavaScript"
] | 1 | JavaScript | CafeCat/App-for-Ege | 68c3a5a91cba4589e0222ba3d3eff0ec9d158a5b | da0a7aa90f25440c397b7b8a5e3c609ef1917345 |
refs/heads/master | <file_sep># coding: utf-8
from __future__ import unicode_literals
from flask import Flask, request, abort
from linebot import LineBotApi, WebhookHandler
from linebot.exceptions import InvalidSignatureError
from linebot.models import MessageEvent, TextMessage, TextSendMessage
from janome.tokenizer import Tokenizer
... | 33b4f9f789b0a4402c3ee6d738ffe2114783f9d6 | [
"Markdown",
"Python",
"Text"
] | 3 | Python | nnsnodnb/morphological-linebot | 703affa70a5cc2049f379f8e8948401bad3e5f0b | 074c7111de028fc4aa42d094dbf897d5630a635d |
refs/heads/main | <file_sep>var add = require('../mul');
describe("Mul Functionality",()=>{
it("should multiply positive numbers",()=>{
const result = add(4,5);
expect(result).toEqual(20);
});
it("should muliply negative numbers",()=>{
const result = add(-4,5);
expect(result).toEqual... | 322665cb71750e1574f28949a7ab67fc00007262 | [
"JavaScript"
] | 1 | JavaScript | ruchika-dubey/jasmine-testing | 1bfaff8ff2b586cc66f585205081fc293f5f886d | f2e590a67fb425e522bb3f2d63f4e20e7718e9d0 |
refs/heads/master | <file_sep>local swap = function(array, index1, index2)
local temp = array[index2]
array[index2] = array[index1]
array[index1] = temp;
end
local heapadjust = function(array, parent, len)
local child = 1;
local value = array[parent];
child = 2 * parent
while (child <= len) do
if (chil... | 3395b1e1156a9a7eb1a7e31e7ec212b2721f385c | [
"Markdown",
"Lua"
] | 7 | Lua | SpectatorWang/algorithms | 1d622c93c501de4018cacc2f0141a4f1ec0424f0 | 8121f087d55cc7d71af9479277f042b042ae26e3 |
refs/heads/master | <file_sep>package com.markfront.spfh;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.tika.Tika;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
import org.jsoup.select.Elements;
import java.io.... | 7eaded26449b57be53805b1e18a5028a450bd443 | [
"Java"
] | 1 | Java | aequis/SinglePageFullHtml | 1ce4dd9fd27c5963f22b9263b142d629b4c37423 | e9a7a0a7251d30cb6c2be35b8dd3cf55be8222a1 |
refs/heads/master | <repo_name>TheFredward/Python_project<file_sep>/MainPage.py
import tkinter as tk
import random
import time
from Dictionary import Dictionary
class Page(tk.Frame):
def __init__(self, *args, **kwargs):
tk.Frame.__init__(self, *args, **kwargs)
def show(self):
self.lift()
class Page1(Page):
d... | 54214912c898660c9592788112693611ca994615 | [
"Python"
] | 6 | Python | TheFredward/Python_project | 19c059bb0049878a3a68796ef1b67a4cf5562f2d | 04463ee6227fce14c647ac01806c0d8469b4e67a |
refs/heads/master | <repo_name>lyy1/PerfectServer<file_sep>/Sources/DB.swift
//
// DB.swift
// PerfectTemplate
//
// Created by lyy on 2017/6/5.
//
//
import Foundation
import PerfectHTTP
import PerfectLib
import MySQL
let Host = "127.0.0.1"
let User = "root"
let Password = ""
enum DB: String {
case bill = "Bill"
case checkIn... | 6f2f56fca565375e6a854c9120d8352b3ab80b3f | [
"Swift"
] | 2 | Swift | lyy1/PerfectServer | c66175c0df76929f95641f4b04e811ae1ea8102a | 91adb6153c0b2c7ea7c49a648f4ecffdd19903c7 |
refs/heads/master | <file_sep>import Foundation
public extension Object {
/// объект, описывающий видеозапись
public struct Video: Codable {
/// ключ доступа к объекту
public let access_key: String?
/// идентификатор альбома, в котором находится видеозапись
public let album_id: Int?
/// дат... | 88d562c3ea8f062dd81cd3b0d33f683ac619d8f8 | [
"Swift",
"Ruby"
] | 55 | Swift | iwheelbuy/VK | 686ae394289d0790183be981dd4f38d72b179163 | 1dd67881eaf792507b4490df9c9c2c4293fa067a |
refs/heads/master | <repo_name>jhodges10/dashdonate<file_sep>/client/rebuild.sh
for i in "$(npm prefix -g)/lib/node_modules/"*; do
sudo npm build -g "$i"
done
<file_sep>/client/src/App.js
import React, { Component } from 'react';
import { Grid } from 'react-bootstrap';
import AppNav from './AppNav';
import grailsLogo from './images/... | 70574599e05b737949bf3ae27c00f95d2cbcc462 | [
"JavaScript",
"Shell"
] | 2 | Shell | jhodges10/dashdonate | 15722a4b5cbfb287b3cd9d3ea14ae5ea2c116a78 | 9d40142127b894c16d15dfddac7655dfc023690c |
refs/heads/master | <repo_name>hoog1511/Project-Domotica<file_sep>/beveiliging.ino
int kalibratietijd = 30;
long unsigned int LowIn ; // tijd wanneer sensor outputs laag impuls
long unsigned int pauze = 30000; // na deze tijd mag de arduino aannemen dat er geen beweging meer is
boolean lockLow = true;
boolean takeLowTime;
#define irLedP... | 14d3d3a758b40c58151bfb4cc13ae1cc850c773a | [
"Markdown",
"JavaScript",
"C++",
"INI"
] | 10 | C++ | hoog1511/Project-Domotica | 88409c824c6e26717bf20a3f5f9f338038796816 | fbae8a1fd4e6c35e35650a6e3d0d5df20b0b8e2b |
refs/heads/master | <file_sep>namespace mediator
{
public class Heater : IColleague
{
public IMachineMediator Mediator { get; set; }
public void On(int temp)
{
System.Console.WriteLine("Heater is on...");
if (Mediator.CheckTemperature(temp))
{
System.Con... | 9f579f6f8627afc8564652f1a6bc3ddd446b88a1 | [
"Markdown",
"C#"
] | 35 | C# | pazami01/behavioural-design-patterns-one | d301e5bd917fb86fcf3c364a8488d4a3680498d5 | 4dd95621004f0780749d513b514fa7cf016d22dc |
refs/heads/master | <file_sep>/**
* Getting Started Course with JavaScript lesson 12
* In this we will create a Jokenpô (Stone, Paper and Scissors)
* @author <NAME>
* Web Developer and Mobile
*/
// Main function
function jogar(){
if(document.getElementById("pedra").checked == false &&
document.getElementById("papel")... | 2059a3a3fe1deaff638025a1f08a3b3c013c98b9 | [
"JavaScript"
] | 1 | JavaScript | abraaocrvlho/jokenpo-js | b98eb57a212c0698b363779796e7c37e90400c65 | da295420c0972352ca198ab8412b9e35341ce237 |
refs/heads/main | <file_sep>const Engine = Matter.Engine;
const Render = Matter.Render;
const World = Matter.World;
const Bodies = Matter.Bodies;
const Constraint = Matter.Constraint;
const Body = Matter.Body;
const Composites = Matter.Composites;
const Composite = Matter.Composite;
var stones = [];
function setup() {
createCanvas(... | 944a2086dacd6630d61c27aa50a2299199fe2538 | [
"JavaScript"
] | 1 | JavaScript | Hemachandrasai/project_29 | 17110ac52ad8bed29820476323b4c4a1e0fccfd9 | e4f04dae6bb63cb40eadcf8ffae9ecce80fab119 |
refs/heads/main | <repo_name>thinhtanpham/Intify-Music-App-Mobile<file_sep>/Intify-new/Server/config/deleteFile.js
const fs = require("fs");
const rimraf = require("rimraf");
const path = require("path");
module.exports = function deleteFile(uploadDir) {
uploadDir = "public/" + uploadDir.slice(25);
try {
fs.unlinkSync(up... | 5ba9cadc556b8bd0b188235c27ceaf0d10702aa8 | [
"JavaScript",
"Markdown"
] | 19 | JavaScript | thinhtanpham/Intify-Music-App-Mobile | 7139c2bda21ca1bbb4b32822115c25b94b48080c | be97136bf8a32060e4f7b9118a5fd4a6fafcbe14 |
refs/heads/master | <file_sep>// ==UserScript==
// @name Raide Facile [modified by Deberron]
// @namespace Snaquekiller
// @version 8.6.1
// @author Snaquekiller + Autre + Deberron + Alu
// @creator snaquekiller
// @description Raide facile
// @require https://ajax.googleapis.com/ajax/libs/jq... | 533790228e417bb6dac3dd058c264b28c9df5364 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nmss/Raid-Facile | d8579a9c744ea8cfeb07c30cb2cfd1c04c3d3bbb | e26ceec7a8956a26e7c1f335c707910d3714f8de |
refs/heads/master | <repo_name>davve94/WorkoutBackend<file_sep>/src/main/java/db/Entities/WorkoutPlan.java
package db.Entities;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.util.List;
@Entity
public class WorkoutPlan {
@Id
... | da9514c440c25ae1091293448d218b05b0d1782d | [
"Java"
] | 3 | Java | davve94/WorkoutBackend | 93db96d65a95a90631dfda5d3827730f9210b585 | f7e134a7ef3fc31dd483aac3cddbf48e9e24c071 |
refs/heads/master | <file_sep># ssm_crud
功能
ssm分页查询、添加、修改、单个删除、批量删除
技术
ssm、bootstrap、ajax
<file_sep>package com.ssm.dao;
import com.ssm.entity.DeptEntity;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface DeptDao{
int insert(DeptEntity deptEntity);
int updateById(DeptEntity... | b4654f3639c2524c67f742b9bc51006072287871 | [
"Markdown",
"Java"
] | 4 | Markdown | ljh88/ssm_crud | efa813613a85d5933c07fbf175ad3ebfe1d89154 | b823d6964d117d65f8a729a09e934d55f9791281 |
refs/heads/master | <file_sep><?php
class custom_video_player {
function init() {
$this->localeSection = "Custom Actions: Video Player";
$this->JSconfig = array(
"title" => \FileRun\Lang::t("Video Player", $this->localeSection),
'iconCls' => 'fa fa-fw fa-play-circle-o',
'useWith' => array('wvideo'),
"popup" => true,
"r... | d1f7d4bc40eb83e460de631e51cb6043214d663a | [
"SQL",
"JavaScript",
"Markdown",
"Text",
"PHP"
] | 93 | PHP | nev3rmi/PHPEasyTemplate | 238a1096cc5b9ad64f0b47c360639ed87f5f1d82 | c2f66bf530e932a14311edd233f84fb76fb867ea |
refs/heads/master | <repo_name>mdf25/CommuMod<file_sep>/src/main/java/io/cyb3rwarri0r8/commumod/blocks/BlockAradactiteOre.java
package io.cyb3rwarri0r8.commumod.blocks;
import io.cyb3rwarri0r8.commumod.lib.Reference;
import io.cyb3rwarri0r8.commumod.main;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
imp... | 6299f64c1f44e7271284b17ea410dec182640baa | [
"Markdown",
"Java"
] | 25 | Java | mdf25/CommuMod | cb8931392da4baeb0738ea29ab576ab399a60f79 | 321e30aa2dd60edc7ab89c4003f111f40f8136d2 |
refs/heads/master | <repo_name>StayCake/Toilet<file_sep>/src/main/kotlin/commands/Toilet.kt
package commands
import Main
import hazae41.minecraft.kutils.bukkit.msg
import io.github.monun.kommand.getValue
import io.github.monun.kommand.node.LiteralNode
import org.bukkit.Sound
import org.bukkit.configuration.file.FileConfiguration
import o... | 8e6dc9dbb94477a8302b7a8370c0ab874b642d72 | [
"Kotlin",
"Gradle"
] | 4 | Kotlin | StayCake/Toilet | 9484cdf6e4f2653e68e3bb9f5bea93768c765422 | e966e239ca66a748159d3ec4de1d2611e9eb3ec9 |
refs/heads/main | <file_sep><?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Breed extends Model
{
use HasFactory;
protected $fillable = [
'description',
'name',
'image_url',
'child_friendly',
'dog_friendly... | 7e50ec93f234fe31f58bea4a9c2150dc18bcd680 | [
"YAML",
"Markdown",
"PHP",
"TypeScript",
"Dockerfile",
"Shell"
] | 15 | PHP | estebansolisd/cat-app | fecfbfc4d4967f189cbc57a6f9fcbbdf4b568239 | d0e893c0ec29be559fa79611a0a721abe11f342a |
refs/heads/master | <file_sep>package com.guige.springbootdemo;
import java.util.EnumSet;
import javax.servlet.DispatcherType;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.spri... | 7b492cdf5a0635eb254a7bb4994b6537241d5111 | [
"Markdown",
"Java",
"Maven POM"
] | 7 | Java | a100488/springBootDemo | 1a01244ca6b257a6e3a776805ecf1e06ab5f7d0d | 78892a724ed825a6c104a692cf31a5070102f133 |
refs/heads/master | <repo_name>bioformigoni/ByteBank<file_sep>/02-ByteBank/Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _02_ByteBank
{
class Program
{
static void Main(string[] args)
{
ContaCorrente conta = new... | e30c5e44b040c59ba105f18770abdfb0d9f9f809 | [
"C#"
] | 2 | C# | bioformigoni/ByteBank | ec7c21b92b4e3fd442837900367bf4f17185bbf1 | 4fd0c5714b81aaa9be6e434da6c0b04836c24efd |
refs/heads/master | <repo_name>Jacfger/dotfiles-1<file_sep>/install-system.sh/install-fish.sh
#!/usr/bin/env sh
sudo apt-add-repository ppa:fish-shell/release-3
sudo apt-get install fish
chsh -s /usr/bin/fish
#fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
# Check if all fish plugins will be availa... | 82ccbcab992a44a849d076569533052bb387e1e9 | [
"Shell"
] | 2 | Shell | Jacfger/dotfiles-1 | 16a84653c9fca0b7328a4588b606f8a178eeee06 | 158b0bcbd5f818707385f0c428d5435f0f30eb76 |
refs/heads/master | <repo_name>noah18-meet/meet201617YL1cs-mod4<file_sep>/square.py
from rectangle import Rectangle
class Square(Rectangle) :
def __init__(self,length):
super(Square,self).__init__(length,length)
def set_hight(self,new_height):
super(Square,self).set_height(new_height)
super(Square,self).set... | 35f2cf660dca3386ea40a5c28557bd12426967e2 | [
"Python"
] | 1 | Python | noah18-meet/meet201617YL1cs-mod4 | 3e5ff72b6459b06d313b75b61292529372a7b2f4 | 653e8d92bdb71354fc3956a8511ece81357952e3 |
refs/heads/master | <file_sep>/*
* SDMMD_AFC_Types.h
* SDMMobileDevice
*
* Copyright (c) 2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the ... | ac6b8fe5f7c547999144498d26e27920aa66d472 | [
"C"
] | 1 | C | bigfei/SDMMobileDevice | b2d408c93bd9012b2b1f6391359555c13a41c0ec | 1f2ed8c55743692f9efbc9ed773d3c9545a59a13 |
refs/heads/master | <repo_name>AleffBruno/layoutSimplesReactJS<file_sep>/src/components/_layouts/auth/index.js
import React from 'react'
export default function AuthLayout({children}) {
return (
<>
AUTH
{children}
</>
)
}<file_sep>/src/main/App.js
import 'bootstrap/dist/css/bootstrap.min.css'... | 1b26731efe2918ba5dcf10dacdc4b3ddfeefd59d | [
"JavaScript"
] | 5 | JavaScript | AleffBruno/layoutSimplesReactJS | fd372e207df9b12b8f2486d25257aa4c48b4a961 | 6823d95dc9e479bd95b09008ea953c5cbb4538f4 |
refs/heads/master | <file_sep>package com.zenan.watchout.service;
import android.app.Service;
import android.content.Intent;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
import android.media.RingtoneManager;
import android.os.Binde... | 9ec2d5fa9eeb140ce6209fac7fe4c5766a8762b4 | [
"Markdown",
"Java"
] | 2 | Java | zenanhu/WatchOut | 307d48e7e37882a496074f465b56bd1817b408dd | 7aff3b9159ed6c97862c745ab84a43876ad9a9b1 |
refs/heads/master | <file_sep>describe("translate", function() {
it("is true if a word that starts with 'o' ends in 'ay'", function() {
expect(translate("out")).to.equal('outay');
});
});
describe("translate", function() {
it("is true if a word that starts with a consonant has all consonants in beginning removed and has 'ay' ad... | 7e2c00c69dfeb97891a3c15be1a1d5d8503f477d | [
"JavaScript"
] | 2 | JavaScript | jeffsdev/pig-latin-translator | 31603260e7d6b1965605f1d0095c9b80728ff703 | 4b28d347854f53820989e859c633d8b3591cf46f |
refs/heads/main | <file_sep>package com.bennyplo.designgraphicswithopengl;
import android.opengl.GLES32;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.Arrays;
public class Sphere {
private final String vertexShaderCode =
"attribute vec3 ... | 05fa25ed35a74d0ea14fbae0a94747d16cbb9a0d | [
"Markdown",
"Java"
] | 4 | Java | chihwu/OpenGL-Android | b9bb99e3903d9db1f44a399578a1278f95d2b961 | c2637e04a015872aa640818ad851be3f172aed09 |
refs/heads/master | <file_sep>class SessionsController < ApplicationController
def create
end
end
<file_sep>require 'rails_helper'
RSpec.describe SessionsController, type: :controller do
before(:each) do
User.destroy_all
end
let(:user) {User.create(:name => "<NAME>", :uid => 1234567
)}
describe 'get create' do
... | fafcc003c4e5eeb897ee3c53a32c6e7370261377 | [
"Ruby"
] | 2 | Ruby | RandallRobinson4/omniauth_lab-v-000 | e3feaef4455c7d90148a15bebe8b3e396050550a | 88f7d6c16c2d93fcc1e4acdb7e5080bfa10bc410 |
refs/heads/master | <file_sep><?php
$action = $_REQUEST['action_to_do'];
if($action == 'shutdown'){
$result = shell_exec("shutdown.sh");
}
else if($action == 'reboot'){
$result = shell_exec("reboot.sh");
}
else{
$result = "Please select an action";
}
var_dump($result);
exit;
header('Location: index.php?resu... | cff7538f2c7a6a4d4d646437b13cd5bb2dcac87c | [
"Text",
"PHP",
"Shell"
] | 4 | PHP | monjurul003/remoteservercontroller | 675b97a1ed5b482f9adc181760d415f641baf88b | f632d301d724b1a708a28dced06b93ce67988ead |
refs/heads/master | <repo_name>Rodremur/10750-Beautiful-Points<file_sep>/10750.cpp
/*-------------------------------------------------------
* Tarea de Analisis de Algoritmos: 10750 - Beautiful Points
* Fecha: 02-03-2016
* Autor:
* A01064215 <NAME>
* Referencia: PChome(12/7/2013). http://mypaper.pchome.com.tw/zerojudge/post/1324... | c794763557e1fe42363e55b4e4903133cb2e168a | [
"C++"
] | 1 | C++ | Rodremur/10750-Beautiful-Points | 769f984dd4ee3b9db9bc77b4daf28c3914086bc5 | 0f8f8c994b8dd1eabd30d848f7e8d5b413ce740c |
refs/heads/master | <repo_name>34153320/Domain_language_model_I<file_sep>/README.md
# Domain_language_model_I
Language models training on large scale dataset (for instance, BERT, XLnet, and GPT2) work for general purpose. However, in our daily application the language models are frequently used in specific domain. To avoid large scale re... | 1146b6e5b19e7ca9ebb9fd4f47088ce196cfc986 | [
"Markdown",
"Python"
] | 4 | Markdown | 34153320/Domain_language_model_I | 3b6a97de3619b8ecae591074332869220f2e1afb | 96c682403bc77a12025c320d5455c73cfcdefec0 |
refs/heads/master | <file_sep>
package com.example.demo;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
class BeverageApplicationTests {
@Test
public void testcostCalculate() {
BeverageApplication apptest = new... | ce1e166e1b34905e36e81188597c127e9a94d6aa | [
"Java"
] | 1 | Java | sampadapingalkar/SampadaPingalkar | 19b641bb27fcb4c8638925083cd7d469486d02f0 | b64f03c42baa72aaec20de865e4b74a8dd1b9932 |
refs/heads/master | <file_sep># -*- coding:utf-8 -*-
# Author: liuyi
# email: <EMAIL>
# python:3.6
from selenium import webdriver
import time
class Zhihuishu(object):
def __init__(self, url):
# 账号密码
self.url = url
self.web = webdriver.Chrome()
self.web.get(self.url)
def login(self, user, pwd):
... | cc821878eec44b6fe7db5a65fe160f1968803c1f | [
"Markdown",
"Python"
] | 2 | Python | Mcliuyi/zhihuishu | 4e72618025ca49a5625dc2ee2c41b3a1e83ba1bd | 14931fe6819c03a3ad6ac9ee71dbc24ccc773b32 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System... | 07415a512f4bcc7b6d4eae1e2ffeba5f2a67bf13 | [
"C#"
] | 2 | C# | LironMat/Brailler | a263e30310a389cc97a3d7f69475a45f518d9bdf | d454a3bef8871e598a198e34d2735a4f6060af43 |
refs/heads/master | <repo_name>TheCodeDestroyer/dotfiles<file_sep>/exec/node-update
#!/usr/bin/env zsh
# node-update - A script to handle NodeJS Update process
python ~/bin/exec/check-nvm-lts.py | zsh
<file_sep>/exec/check-nvm-lts.py
from string import Template
from os import system
import subprocess
installCommandTemplate = Template(... | 6c9e515798ad6d56d4e2248eadfff3faa2187e6c | [
"TOML",
"Python",
"Shell"
] | 6 | Shell | TheCodeDestroyer/dotfiles | 8741db81391e158ee405e726d46afc1ba5b9711c | 9b7f256973bb24e3169850fc33050c8ddbf6b46a |
refs/heads/master | <repo_name>dkapur17/Spot-o-Matic<file_sep>/frontend/src/components/NewSearch.jsx
import { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
import { useHistory } from 'react-router-dom';
import TinderCard from 'react-tinder-card';
import { nanoid } from 'nanoid'
import axios from 'axios';
impo... | 2e6a1de7c2eca4202d872137161f29dbb7f7bf7d | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | dkapur17/Spot-o-Matic | 9f20cc8ef07065e0dfb04c043835566659b06123 | 1e255e262910d0108ab4a2d1f53646690333a4d4 |
refs/heads/master | <file_sep>import React from 'react'
import { format } from 'date-fns'
import {
BrowserRouter as Router,
Link
} from "react-router-dom";
const MostViewBlogs = ({ blogs }) => {
return (
<section className="blog">
<div className="container mx-auto">
<div className="text-4xl... | 86aa038f83b32b269e0e9d68b73f88e043d5c1fe | [
"JavaScript"
] | 14 | JavaScript | ducdvvph09332/PT15202-react-demo | 7bcdb82c2b0772d64315e052f2624236b34c1c41 | b685e9bf51050d61e749b1736e71d7b8d4d54272 |
refs/heads/main | <file_sep>const input = document.getElementById('todo');
const button = document.getElementById('add')
const list = document.getElementById('list');
const todos = [
{text: '<NAME>', done: false},
{text: 'Programmera', done: true},
{text: 'gå hem', done: false}
];
button.addEventListener('click', onButtonClicked... | 7cba5e770f6c2e7c80acda03217e55ea740bda83 | [
"JavaScript"
] | 1 | JavaScript | viglot/lista | 49ce38ba5f8b037e5d693f4dd58bdbcb2e8ffe99 | f49865631cfbb466c1f202bf89feb59d73a2fc3c |
refs/heads/master | <file_sep>package com.sha.springbootmicroservice2transaction.controller;
import com.sha.springbootmicroservice2transaction.model.Transaction;
import com.sha.springbootmicroservice2transaction.service.ITransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.Htt... | 068af245b6ea199ca6770eb26744d64617310eac | [
"Markdown",
"Java",
"Gradle"
] | 6 | Java | senolatac/spring-boot-microservice-2-transaction | 8c660818626522cce1336e102c6e872073cf6524 | 98014c3db454462b2488893b3d23ad561942a2c0 |
refs/heads/master | <repo_name>kadotami/live-coding<file_sep>/live-coding.py
import pyaudio
import numpy as np
import wave
import matplotlib.pyplot as plt
CHUNK = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 1 #モノラル(2にするとステレオ)
RATE = 44100 #サンプルレート(録音の音質)
RECORD_SECONDS = 3 #録音時間
BPM = 60
SECONDS_OF_BEAT = 60/BPM
Hz_ARRAY = [41.2, 43.65, 46... | 88a9625db7ef61a35fef11d5a55116f553165941 | [
"Python"
] | 1 | Python | kadotami/live-coding | b3a04bbb7afaef65b737921d31dd1d8b665aaa23 | d93e5d4bd136532aef0644229bd4dd856b7c1388 |
refs/heads/master | <repo_name>aoles/bioc_git_transition<file_sep>/run_transition.py
#!/usr/bin/env python
"""Bioconductor run git transition code.
This module assembles the functions from `git_script.py` and
`svn_dump.py` so that the Bioconductor SVN --> Git transition
can be run in a sequential manner.
Author: <NAME>
Ideas taken from ... | e4654392ee59e1d83bdf5e46d89fe4f7b7d23e0e | [
"Markdown",
"Python"
] | 7 | Python | aoles/bioc_git_transition | 240412afe89f710ee84c87b39a9a60c07b78b277 | e8159ecdfdc5e9e74d016b4ad7e98ff499793993 |
refs/heads/main | <repo_name>GabrielCordeiroDev/firebase-cloud-functions<file_sep>/functions/src/controllers/UpdateEntryController.ts
import {Request, Response} from "express";
import {db} from "../config/firebase";
export class UpdateEntryController {
async handle(req: Request, res: Response): Promise<Response> {
const {body: {t... | b95357e5bb02b921ab7dcda5c1761ca8fe711511 | [
"Markdown",
"TypeScript"
] | 7 | TypeScript | GabrielCordeiroDev/firebase-cloud-functions | 8d00633ddb5644b73391f63066e350efb67a00c8 | 93e169422827b865d546e80cf31b1866701b5f98 |
refs/heads/master | <repo_name>KevinsVision/london-web-career-031119<file_sep>/08-intro-to-ar/app/models/artist.rb
class Artist < ActiveRecord::Base
has_many :tracks
has_many :fandoms
has_many :fans, through: :fandoms
end
# Model: Ruby Class <=> DB Table
# i.e. Artist <=> artists
| 8f0d150713c1ca18b7d5f9dbf3fee8c1db7be0c2 | [
"Ruby"
] | 1 | Ruby | KevinsVision/london-web-career-031119 | cc7db62d794c408e074df583e043ed94c9e88b29 | 6b650dbc3025240714fe6a407151da53fe0d63bd |
refs/heads/master | <repo_name>mbimbij/victor_rentea_devoxxfr_2018_follow_along<file_sep>/src/main/java/com/example/demo/Application.java
package com.example.demo;
import java.util.function.BiFunction;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
class Movie {
private final Type type;
Movie(T... | ad3d93f64c3c4c56e093dd0e6d3c825ccaf5f69d | [
"Java"
] | 1 | Java | mbimbij/victor_rentea_devoxxfr_2018_follow_along | 376d99030eebe7e96815a5a2d5fe8ecb86d700c9 | d455aa6fd41f4b276150d9a1de2360d7afc4c1b7 |
refs/heads/master | <repo_name>RyuNen344/groupie-selection<file_sep>/data/api/src/main/java/com/ryunen344/selection/api/ApiEndpoint.kt
package com.ryunen344.selection.api
fun apiEndpoint(): String = BuildConfig.API_ENDPOINT
<file_sep>/data/repository/src/main/java/com/ryunen344/selection/repository/RepositoryModule.kt
package com.ryunen3... | 01ba7ff38b11cebd7ae73c82a0e735fd502568a7 | [
"Kotlin"
] | 3 | Kotlin | RyuNen344/groupie-selection | dc3c43a91cfe474c2cad291252806bbe44da286f | 53513b393673b616bce9f807e61039f1e3904647 |
refs/heads/master | <file_sep>//返回顶部按钮
define(['jquery'], function($){
function toTop(){
//右侧边栏固定菜单移入移出
$(".right-bar a").on('mouseenter', function(){
$(".right-bar .iconfont").eq($(this).index()).css('color', '#333');
$(".right-bar a div").eq($(this).index()).css('display', 'block');
});
$(".right-bar a").on('mousele... | 047a0dd2ff970a3897e458318ccfa1d90b12d38d | [
"JavaScript"
] | 4 | JavaScript | wanglin1044/testmyself | 4f9d6b7dfa4708794d4e39693face00b3085ddc6 | 7b2cb93034ca3010f12fc26241431bbc91bd1960 |
refs/heads/master | <file_sep>$("document").ready(function () {
var submitBtn = $("#submit")
function enable() { // function to enable submit button
submitBtn.attr("disabled", false)
submitBtn.css("background-color", " rgb(6, 202, 6)");
}
function disable() { // function to disable submit button
su... | 9054409c0b080deef56ad50c722357f4f2963841 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | sirsuccess/formValidation | 9640a04fdcd917a9a5e938f8a38d74c2326a1d56 | 55dd6014c63d3f9e46fdc7b985a334b9f8f3b4f8 |
refs/heads/master | <repo_name>monitotxi/yahtzee_kata_round_1<file_sep>/src/YahtzeeFactory.php
<?php
namespace Yahtzee;
class YahtzeeFactory
{
/**
* @param ConsoleInterface $console
* @param DieRollerInterface $dieRoller
*
* @return Yahtzee
*/
public static function makeYahtzee(ConsoleInterface $consol... | d74fe7e0d25edbe0c5a4c07a9dec1e896fe538f3 | [
"PHP"
] | 21 | PHP | monitotxi/yahtzee_kata_round_1 | 42382a3e589d5269f9af656b565b0f9d711531ac | 7f9944539c1367692546320615d1389e3d9925dc |
refs/heads/master | <file_sep>/*
*
* Pset1, Mario.c
* Edx-Harvardx CS50,
*
* By <NAME>
*
* Mario is a program that recreates the half-pyramid using hashes (#) for blocks. Enter the height of the pyramid
* when prompted to have it inputed. The height mustn't be greater than 23.
*
*
*
* ##
* ###
* ####
* ####... | 34d8ff73b3a9f319123c48559a800290bfa9403d | [
"C"
] | 1 | C | khalid85/mario | 59771d49e277a0970ba42c15103a6f7beb203e99 | 0abca14971f2ec780e93b99fb5d97e975d0357be |
refs/heads/master | <repo_name>kidcats/tinyrender<file_sep>/Circle.hpp
//
// Created by cats kid on 2020/12/14.
//
#ifndef RASTERIZER_CIRCLE_HPP
#define RASTERIZER_CIRCLE_HPP
#include <eigen3/Eigen/Eigen>
using namespace Eigen;
class Circle {
public:
Vector3f v;// 中心点坐标
int r; // 半径长度
Vector3f color;// 圆的颜色
Vector3f no... | 262756633e4cecccce7a5d3058f61340aecc233c | [
"C++"
] | 5 | C++ | kidcats/tinyrender | 1029dbb597799e0c21ce3c066ca3b7cb224124f7 | 4f994be5fa6b9bc1e645f0025e635c6a0ec8d8c2 |
refs/heads/master | <repo_name>PedroHas98/ProjetoMS-La-Casa-de-Papel-<file_sep>/La casa de Papel/Geometria.h
#ifndef GEOMETRIA_H_INCLUDED
#define GEOMETRIA_H_INCLUDED
void Cilindro (int rdiv, int hdiv, float alt, float raio);
void TQuadrado (GLfloat alt, GLfloat lar, GLfloat ang);
#endif // GEOMETRIA_H_INCLUDED
<file_sep>/La casa... | 9409196ee9abfe679c29ee66e4a1e10af60d2f3b | [
"Markdown",
"C",
"C++"
] | 6 | C | PedroHas98/ProjetoMS-La-Casa-de-Papel- | 8716b7b5fecc927bbe68f442a780c0616cea77ff | 1237f06d37eff95d81a49c587bfbfaa05f2da02e |
refs/heads/master | <repo_name>mckinney99/deli-counter-v-000<file_sep>/deli_counter.rb
# Write your code here.
def line(katz_deli)
array = []
if katz_deli.length < 1
puts "The line is currently empty."
else
katz_deli.each_with_index do |line, index|
array << "#{index + 1}. #{line}"
end
puts "The line is current... | 53458ed505c101c165e5a86c358919eff872ff85 | [
"Ruby"
] | 1 | Ruby | mckinney99/deli-counter-v-000 | e74a549b362f5001a982bd6462d02df8bb315f31 | 500511a4000652c201f7c47a32c9f34cc7935a9d |
refs/heads/master | <repo_name>kittymama97/Milestone3-256<file_sep>/app/Models/JobModel.php
<?php
namespace App\Models;
class JobModel
{
private $job_id;
private $company_name;
private $company_city;
private $company_state;
private $company_zip_code;
private $job_title;
private $job_desciption;
private $dat... | ed3e44d9fd941f6c1c6e029925b3db064def9807 | [
"Markdown",
"PHP"
] | 21 | PHP | kittymama97/Milestone3-256 | 3602447f02b4735f9e8d233bd0f168b7c615502b | 8571936ec9e2552646e5822f90e1c13955c9b1ad |
refs/heads/master | <repo_name>ravenusmc/Black_jack<file_sep>/main.cpp
/*
program: Black Jack
Programmer: <NAME>
Date Started: 24 October 2016
Date Submitted: 29 November 2016
Other: N/A
*/
/*
Explanation: This program is an electronic version of the casino game Black Jack. It is designed to be played with
either one or two pl... | 0f7aa7ac12026544eb5fa1585dceeb427bef1e18 | [
"Markdown",
"C++"
] | 4 | C++ | ravenusmc/Black_jack | 431e4b767b76fe1c1ca97099025efd072ed33507 | f1c22b25fe2d91c882a66b34924dbb019a03ca87 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.