branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep>import copy
# import collections.defaultdict
import itertools
inputFileObject = open("input.txt", "r")
outputFileObject = open("output.txt", "w")
operators = ['or', 'not']
queryNum = int(inputFileObject.readline().strip())
queryList = []
for i in range(queryNum):
query = inputFileObject.readl... | 0f0a02c311fafc660cae51a3455af2c6d85d7b0b | [
"Markdown",
"Python"
] | 2 | Python | harsh5296/Expert_system_Inference_engine | 5f1efe09f6ffe669853df5d970643c86b1bf46a1 | b5026160d163020c5f4edf3238fadec7ecc8638e |
refs/heads/master | <file_sep>#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
sWindow= new WindowMenu ();
connect(sWindow, &WindowMenu::firstWindow, this, &MainWindow::show);
}
MainWindow::~MainWindow()
{
... | 67755f072d0c95c18c74541d2d52f542e58a65c1 | [
"C++"
] | 3 | C++ | Dima98772/OurProject_pr4 | 6129b33b7519a9054a030aa80e1d8f62d8cd85d9 | 5f5d5d349b61ba64fab26e91766e46e8fa248651 |
refs/heads/master | <file_sep>from torchvision import datasets
import os
import numpy as np
import random
import torch
class TripletFolder(datasets.ImageFolder):
def __init__(self, root, transform):
super(TripletFolder, self).__init__(root + '/satellite', transform)
# record the drone information
drone_path ... | 2593f6271f0d673e99cc5b698b6d5c9351bae2cb | [
"Python"
] | 1 | Python | maomingyang/University1652-triplet-loss | a3e2d26b4cbacfe4b46ef3aff16aa096bca34684 | 1203119c6a5b6cb7adb90b1f0633a409114d1bfd |
refs/heads/master | <file_sep># ICS4U-Unit-1-01-Python
# <NAME>
Python test from IDEs on windows
<file_sep>#---------------------------------------#
#-- Created by: <NAME> --#
#-- Created on: Feb 8 2019 --#
#-- Created for: Unit 1-01 --#
#-- Course Code: ICS4U --#
#-- Teacher Name: <NAME> --#... | 7a350da36bc655b729907d807b3ebe87ead4d85c | [
"Markdown",
"Python"
] | 2 | Markdown | AlirezaTeimoori/ICS4U-Unit-1-01-Python | 1d9feb328b5ef4c9f40df63b2ff0cedff7e75cd6 | 162d63d4b22056f47cc5b989b70f0b0001181dfa |
refs/heads/master | <file_sep>google-api-python-client==1.6.4
google-auth==1.1.1
google-auth-httplib2==0.0.2
requests==2.18.4
<file_sep>google-api-python-client==1.6.4
google-auth==1.1.1
google-auth-httplib2==0.0.2
google-cloud==0.27.0
<file_sep>Flask==0.12.2
google-api-python-client==1.6.4
google-auth==1.1.1
google-auth-httplib2==0.0.2
g... | f0883020dfb0286fed39941e1c994a6e0f1b68b1 | [
"Markdown",
"Python",
"Text"
] | 17 | Text | moonking211/python | 729d747877616b5c4a2d377d2c2182bb16248834 | f1ddc5ea045a1cb33dacd4789901eaf969500e94 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using TestApi.Data;
using TestApi.Models;
using TestApi.Services;
namespace TestApi.Controllers
{
[Route("api/[controller]")]
[ApiCont... | 81e96ecb2de0a4cec0630ffd1eb3f7b3d84a3083 | [
"C#"
] | 2 | C# | meetjanani/TestApi | d4079f34ef2129a26cf0e90275a0e5e693ca4d05 | 8e0843d2187d5ed394645b52ca9586af1c2d5971 |
refs/heads/master | <repo_name>ospiridonovn/unike<file_sep>/js/hide.js
function showHiddenText(type, b1, b2){
currentDiv = document.getElementById(type);
openbutton = document.getElementById(b1);
closebutton = document.getElementById(b2);
if (currentDiv.style.display == 'block') {
currentDiv.style.display = 'none';
openbutton.sty... | 0815445043c4b4e30a61d6c1f63158a4d7838788 | [
"JavaScript"
] | 1 | JavaScript | ospiridonovn/unike | 480a580eb24bef98208ade63fd727fd4b43aa025 | 2644bd9187c71fc43a4762913f109d097c0e0b99 |
refs/heads/main | <file_sep>#include <iostream>
#include "MarkovChain.h"
//=========================================================================================
// An example of 3 nodes, 0x10 and 0x12 transmit each 10ms, and 0x14 transmits every 20ms.|
//==============================================================================... | 7c9816e0243827df6e1b2681e70e7b8e020d3689 | [
"Markdown",
"Makefile",
"C++"
] | 5 | C++ | NikosMouzakitis/Markov-chain-test | eaaf47de39c9128e6049dc23358f11c477b4e7d7 | b93d14dde44178c2c07b87c1468573d8493328d0 |
refs/heads/master | <repo_name>D0ub1ePieR/Pseudo-randomSequenceGenerationByLsrf<file_sep>/stream-cipher.py
from mlist import lfsr_jk
from info import get_info
from B_M import solve
def output(list):
nflag=0
sflag=0
for element in list:
print(element,end="")
if sflag==7:
print(" ",end="")
... | 1506bdb6d0a028960b015fa8cfe05f2919356c84 | [
"Markdown",
"Python"
] | 6 | Python | D0ub1ePieR/Pseudo-randomSequenceGenerationByLsrf | d342bcc3fccf1929b67b03933918987fd95b7076 | da6a3c50a69e320706e67d5dc38dcbaf4473384d |
refs/heads/master | <repo_name>alexbol903/FunBoxTest<file_sep>/src/js/tests/Model.test.js
import { expect } from 'chai';
import List from '../Model';
const createList = addItems => {
const newList = new List();
let i = 1;
while (i <= addItems) {
newList.addItem(`New text ${i}`, i);
i++;
}
return newList;
}
describe('Mo... | c1824dced2d35318255c9b563664c9f493afd946 | [
"JavaScript"
] | 4 | JavaScript | alexbol903/FunBoxTest | 61b38423dac22d2551aae3db3c1c45e8eaab2ab4 | 92f6bfb86c5a3ed3035c19e77c958b31da3bb709 |
refs/heads/main | <repo_name>diasirish/hands_on_ML_book_O-Reilly<file_sep>/README.md
# Hands on ML book by O-Reilly
In this project I will go over O'Reilly's book Hands-on Machine Learning with Scikit-Learn and TensorFlow. This project will contain main examples for the book along with the answers for the questions in the end of the cha... | 5500769e1c651d2012739db37586268574185751 | [
"Markdown",
"Python"
] | 3 | Markdown | diasirish/hands_on_ML_book_O-Reilly | 5f3c8b34cc7a8f3ca3f6755148b87f0602d399d9 | 6cbc315c25b8b7739acb1564f4246ecdcd3cec41 |
refs/heads/master | <repo_name>AnaisVandenDriessche/MRSPORT<file_sep>/mrsport/src/MrsportBundle/Entity/Club.php
<?php
namespace MrsportBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* club
*
* @ORM\Table(name="mrs_club")
* @ORM\Entity(repositoryClass="MrsportBundle\Repository\clubRepository")
*/
class Club
{
/**
* @v... | f13357e79f37ee6a99047036b03cc4e140b525e9 | [
"Markdown",
"PHP"
] | 13 | PHP | AnaisVandenDriessche/MRSPORT | d586108e311efe062dc9db22c43f91729a375661 | 88ca6fe975d16e08ec6c4460bfa8a774ad16455e |
refs/heads/main | <repo_name>youk0160/MERN<file_sep>/React/Functional Components/to-do-list/src/components/Item.jsx
import React from 'react';
const Item = (props)=>{
let itemClass="";
if (props.item.complete) itemClass="text-decoration-line-through";
return(
<>
<li className="list-group-item">
... | ccd8275813a430ac63ae1ca743a5871b8c124954 | [
"JavaScript"
] | 6 | JavaScript | youk0160/MERN | a5807bbffff276d6b42380fb443675a8c5e33334 | 42eb75b81b306d60e54e9580d5f217c3a2e88255 |
refs/heads/master | <repo_name>Merlot1818/ArraryBuffer<file_sep>/TypedArray.js
// create a TypedArray with a size in bytes
const typedArray1 = new Int8Array(8);
typedArray1[0] = 32;
const typedArray2 = new Int8Array(typedArray1);
typedArray2[1] = 42;
console.log(typedArray1);
// expected output: Int8Array [32, 0, 0, 0, 0, 0, 0, 0]
cons... | 6421a922f4b281895b3ad97da2800a16d994f8d6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Merlot1818/ArraryBuffer | 57729a61f666245b1bbca138b92fbac0c4edc0a2 | ccbd0a0e777603c38e2f4a51ceea7e588fcbf150 |
refs/heads/master | <repo_name>abdulkareem-mnv-dev/coalition<file_sep>/database/factories/ProductsFactory.php
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Products;
use Faker\Generator as Faker;
$factory->define(Products::class, function (Faker $faker) {
return [
'name' => $faker->unique()->words(... | 0b6670bfa725978a9611ec7d7e5c911e7378127d | [
"PHP"
] | 2 | PHP | abdulkareem-mnv-dev/coalition | b690c376d9e6fc5921dbed96c1c5bd81b968cf1b | 2a95e0fb0b194b15ee8fa944317248a8128071f9 |
refs/heads/master | <repo_name>rcereceda/prueba_js<file_sep>/p3/main.js
function Alumno(nombre, notas) {
this.nombre = typeof(nombre) == "string" ? nombre : "Juan";
this.notas = Array.isArray(notas) ? notas : [0, 0, 0];
this.promedio = function() {
var suma = 0;
var n = 0;
for (var i = 0; i < this.notas.length; i++) {
if (!(i... | ed6884bafa47d59b5d6565c437f0f3787d68898b | [
"JavaScript"
] | 5 | JavaScript | rcereceda/prueba_js | be008e8efb3b292f7313f6fe5318c1f417d432f1 | a6f2d70d2cca14637de33694e63e268613ea798c |
refs/heads/master | <repo_name>nfultz/mcfly<file_sep>/Cargo.toml
[package]
name = "mcfly"
version = "0.5.13"
authors = ["<NAME> <<EMAIL>>"]
edition = "2018"
description = "McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently exe... | 7c18020b5135d9c5fc13b6643743a835586e41cf | [
"TOML",
"Rust",
"Shell"
] | 4 | TOML | nfultz/mcfly | 048fd43561a73f46fdb614d1efd24199811efd55 | 8b70430c845354116904b4e78539149f5ecb5f91 |
refs/heads/master | <file_sep>package ca.concordia.game.gameState;
import java.util.ArrayList;
import ca.concordia.game.main.Game;
import ca.concordia.game.model.CityCard;
import ca.concordia.game.model.Deck;
import ca.concordia.game.model.Gameboard;
import ca.concordia.game.model.GreenCard;
import ca.concordia.game.model.Perso... | c441ebee3f5ed31122ba5c7115c87cd61ae3520d | [
"Java"
] | 11 | Java | murindwaz/TM23 | b7e0a5bc023cf8b02780eb32611bf963a3e346ec | 90756cbb0ce8cb19d57391de407e8fa6f3cd4ef0 |
refs/heads/master | <file_sep>from PyQt5 import uic
from PyQt5.QtWidgets import QApplication, QMessageBox
from PyQt5 import uic
import sys
def run():
print("program run")
global A
A = ui.time1.text()
def save():
global A
A = 'B'
app = QApplication([])
ui = uic.loadUi('UI/fish_controller.ui')
ui.run.clicked.connect(run)
u... | eabbe19dcafda2837f59882a2dd2b97c5acf92a4 | [
"Markdown",
"Python"
] | 3 | Python | ArtistVan1/Fish_Game_Control | 6975e213d2a0bef4f04b89501951f01d6e51fc56 | 4c44d527f3298ab5d4f1356314fb9ab16568c5a1 |
refs/heads/master | <file_sep>package com.example.demochat.service;
import com.example.demochat.domain.Message;
import java.util.List;
public interface MessageService {
public Message addMessage(Message message);
public List<Message> getMessagesByChannelId(Long channelId);
}
<file_sep>package com.example.demochat.service.impl;
... | b39d78d08b8a0de336c6045b2e9ed849f684794d | [
"JavaScript",
"Java",
"SQL"
] | 8 | Java | SehwaKim/demochat | 3c4c90dc647b76876d46c6432a9738b157fd5adb | 0905fc14fed2bff03918655a93672ce38223836b |
refs/heads/master | <file_sep>package dubbo
type ServiceStub struct {
ClientStubName string
ServiceName string
ServerStubName string
SeverStubMethods string
UnimplementedServerName string
ClientMethods []string
ServerMethods []string
UnimplementedStubMethods []string
ServerProxyMethods []string
}
<file_sep>#### 简介
- 只是一... | 4adb6c258f9f4123c1ef74281fa7b7f7d67e5601 | [
"Markdown",
"Go"
] | 4 | Go | skyitachi/protoc-gen-dubbogo | da99749a4de3ebb84229a328e84481cc9c8fac1f | 87a5427887bd8cbe539615a89c63f986789edaf8 |
refs/heads/master | <file_sep>#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
setxkbmap no
#tint2 &
# exec wmii
#exec openbox-session
#exec dbus-launch --exit-with-session ck-launch-session openbox-session
... | 6eed844a750b3e5e3093c342299f174f2ae70324 | [
"Shell"
] | 1 | Shell | abstrakct/old-dotfiles | 209dc6348df67e874b45da78a9b9d5b3268c3ef0 | a2963453020c6027d5161d995133f4a0d2a966a3 |
refs/heads/master | <repo_name>ninedraft/selfcare<file_sep>/pkg/tasks/utils.go
package tasks
import (
"math/rand"
"time"
)
var rnd *rand.Rand
func init() {
rnd = newRnd()
}
func newRnd() *rand.Rand {
var seed = time.Now().UnixNano()
var source = rand.NewSource(seed)
return rand.New(source)
}
func DefaultLabels() []string {
ret... | 7e4f6e5c13ac1d47e16175154fb667509c37e2d8 | [
"Go Module",
"Go"
] | 4 | Go | ninedraft/selfcare | 0cff493c58f67f8cf820e6d00cd04aa7c54414c4 | 477aed704947e504c6a7ba9221c1039b4c70d6d7 |
refs/heads/master | <repo_name>JeanCarloMacan/TFM<file_sep>/Main_Pruebas.py
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib as mpl
from TensorflowEchoStateNetwork.esn_ip_cell import ESNIPCell
import os
import pandas as pd
from functions import *
from sklearn.cluster i... | 804a1ceacce938854d8c2fac3d73e8495ad91135 | [
"Markdown",
"Python"
] | 3 | Python | JeanCarloMacan/TFM | 142f30fd8a33b1ab76ee410096a832f1a37be2c4 | bcc359b91c25d5d5151bc34242e4f90bba6f75c7 |
refs/heads/main | <file_sep><?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ProductSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
DB::table('products')->insert(
[... | 4e648faae2db5dd26cb989829cb024ff5a50e3a1 | [
"PHP"
] | 1 | PHP | Quvonchbek-1227/EccomrsePr | 6e8f1a1b902c52f57b762f402d8105fc1c7fc3e9 | 5f058dbeaa1905e00625cf4d3f057c95c23d1ee6 |
refs/heads/master | <repo_name>perlbot/evalserver-config<file_sep>/gensystem.sh
#!/bin/bash
set -e
set -u
mkdir system
debootstrap stretch system
# Install perlbrew, and perl-5.24.1
cat > system/install.sh <<'EOF'
#!/bin/bash
set -e
set -u
apt-get install build-essential perlbrew
export PERLBREW_ROOT=/opt/perlbrew
mkdir -p $PERLBREW_RO... | d3c969a53ec88ad736474096a3f63ca8891b80e6 | [
"Shell"
] | 1 | Shell | perlbot/evalserver-config | d2ba7eec9e750f4afd80c72acda8cd120bb69f63 | a68fe9037c861fbb0561b1d1d954ddbe06476256 |
refs/heads/master | <file_sep>package com.im.stockapp.actions;
import java.io.File;
import java.util.List;
import javax.servlet.ServletContext;
import org.apache.commons.io.FileUtils;
import org.apache.struts2.ServletActionContext;
import com.im.stockapp.models.Customer;
import com.im.stockapp.utils.DB;
import com.opensymphony.xwork2.... | 372d840bc51e99d5d5483e3664cadbaf10a09333 | [
"Java"
] | 2 | Java | ManodyaAbeysinghe/StockApp | 4e688b9ddfee7657b8fd28771e1c0b82544a7366 | ca25ecf9f5278d7095528446eae37d21725a447f |
refs/heads/master | <repo_name>chandanshukla1989/devopcode<file_sep>/main.sh
terraform init /home/shukla_chandan64/gitpush
gcloud -q compute images delete adhocvm-image --project=imperial-legacy-232115
gcloud -q compute instances delete adhoc-vm --project=imperial-legacy-232115 --zone=us-west1-a
> /home/shukla_chandan64/gitpush/terraform... | 90ee818b2b825ef8af23a94cfa4396ded0235f56 | [
"Shell"
] | 1 | Shell | chandanshukla1989/devopcode | a2c16f56761fb67ede1df625daf79cfba875ef5b | 3e7fbe00c0a99c091291869a254da4276775f52e |
refs/heads/main | <file_sep>package com.ims.springjwt.controllers;
import com.ims.springjwt.bean.EmailComponent;
import com.ims.springjwt.services.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
imp... | 4aea447718697bea9056cb12d841944adaa596f7 | [
"Markdown",
"Java"
] | 8 | Java | MohamedNifrad/ousl-s-backend | b07a34f6b739ebef4a1a115be027f302bfb2efd1 | f429f6acf91a3df9bcb1a3fce455f197b450be44 |
refs/heads/master | <file_sep>import "./styles.css";
import Game from "/src/game";
let canvas = document.getElementById("gameScreen");
let ctx = canvas.getContext("2d");
/*
let game = new Game(GAME_WIDTH, GAME_HEIGHT);
let lastTime = 0;
function gameLoop(timestamp) {
let deltaTime = timestamp - lastTime;
lastTime = timestamp;
c... | 9a644aa5909961456bfadd24605de776057c0b4c | [
"JavaScript"
] | 1 | JavaScript | santiHerranz/BouncingBalls | 190d1eb1695a54546069935bfa867bc7fdc045ab | 83ed5590777704681c6389b8abc28c1b3e89cdc6 |
refs/heads/master | <file_sep>#include <SFML/Graphics.hpp>
#include <SFML/Window/Keyboard.hpp>
#include <vector>
#include <iostream>
#include <math.h>
const unsigned int Width = 900;
const unsigned int Height = 900;
const unsigned int cellsWide = 100;
float cellSize = (float)Width / cellsWide;
float timeBetweenUpdates = 1;
class cell {... | 72ec58da17256efbfdc278d1866478288b2ed47c | [
"C++"
] | 1 | C++ | mdrief4/Projects | 65a686141e27665c6b5302cba859666538d96c88 | c9a81e04b63c02cce9885ddb12fb7cc99bf08c71 |
refs/heads/master | <repo_name>AmhH/test-jdbc<file_sep>/src/com/example/crud/UpdatableResultSet.java
package com.example.crud;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import com.example.DBUtil;
import com.example.DBUtil.DBType;
public class UpdatableResultSet {
pu... | 550be9c2f666dea60048ad6c4ce5c4bd776d851d | [
"Markdown",
"Java"
] | 6 | Java | AmhH/test-jdbc | 2fd8ee526910bc238d161d7c060a37fabbcc2d6c | aa90cff76605b34d7c3a9ee8d85328f45be07bd5 |
refs/heads/master | <repo_name>satackey/action-js-inline<file_sep>/index.ts
import * as core from '@actions/core'
import exec from 'actions-exec-wrapper'
const defaultPackages = [
'@actions/core',
'@actions/exec',
'@actions/github',
'actions-exec-listener',
]
// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_O... | 9b21a4464693f7057d8bd2d8b4381219271c95e0 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | satackey/action-js-inline | 3a7d2f354bd40d9a02507772062211aa317fdc24 | 3eb8aa97455fce0b0cfec3739682795e56f3dc41 |
refs/heads/master | <repo_name>haydenmcmullin/U1A3<file_sep>/README.md
# U1A3
school work
<file_sep>/RoachPopulation.java
//<NAME>
//U1A3 Roach Population
public class RoachPopulation
{
int num; //Total Population
public RoachPopulation()
{ //constructor sets roach population to 100
num = 100;
}
public void timePasses()
{ //mu... | 1b596d30656f4ee34ab06f9de993ff3ad18c2c06 | [
"Markdown",
"Java"
] | 2 | Markdown | haydenmcmullin/U1A3 | 48a8945edb1c49e978bf307acb8315c70d6de56b | 3a858b8cd86b4aa09c899f84d42933c1594da7b7 |
refs/heads/master | <file_sep>from getmac import get_mac_address
macAddress = (get_mac_address()).replace(":","")
def getDirPath(time):
dir = "MintsData/raw/" + str(macAddress) + "/" + str(time.year) + "/" + ('%02d' % time.month) + "/" + ('%02d' % time.day)
return dir
def getFilePath(time, dir, name):
filePath = dir + "... | 76fc131bef2170f0ddd3cee5cda41b3412688422 | [
"Markdown",
"C",
"Python",
"C++"
] | 23 | Python | mi3nts/summer2019 | 60c500c91f82feb907d4aa733f6062ac456bbc92 | 7042956969b113f526baacdf126bd7a9981d14c8 |
refs/heads/master | <repo_name>elvis460/table_system<file_sep>/app.js
// MEAN Stack RESTful API Tutorial - Contact List App
var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var helmet = require('helmet');
var session = require('express-session');
var bodyP... | e4966e793c70454ebec6e54e1d1ba641cac03ef9 | [
"JavaScript"
] | 1 | JavaScript | elvis460/table_system | e97de839a5fd9b32e897849c47cfc9330e3295e1 | 1ca8b0fffa374b86347466e37f6359f65ca83096 |
refs/heads/master | <repo_name>icerock/paypal_form_and_ipn<file_sep>/README.md
# paypal_form_and_ipn
just a paypal buynow form with button and working IPN page
saving it here not to loose, cause pp api docs are 90% useless
<file_sep>/checkout-pp.php
<div class="container">
<nav aria-label="breadcrumb">
<ol class="breadcrum... | db95e849469929e621cb6dcd0800b1a47fe86bb4 | [
"Markdown",
"PHP"
] | 4 | Markdown | icerock/paypal_form_and_ipn | bacb79beefb992cb730a7ec8d77282a05875e137 | f77e75199ea2aaccd793d267cbd5f87a8dfa87b0 |
refs/heads/master | <file_sep># Release History
* 20200325, v0.1.1
* initial release
* 20200326, v0.1.2
* added rule action string check
* 20200326, v0.1.3
* update package.json
* 20200326, v0.1.4
* fix schedule string
* 20200326, v0.1.8
* added next scheduled mowing
* 20200326, v0.1.11
* added display type attributes
* 20200326, v... | 47a185adb59161241967e3325f16f7c0afccecc9 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | bertreb/pimatic-landroid | 9e9ba13e0371a0f08cf90d54bef59a32ad744655 | c4b01e7b55319a4e1f3ce1215044dc6c4420fbdf |
refs/heads/master | <file_sep>#include<stdio.h>
void printList(int n,int arr[][n]){
printf("\n");
for(int i=0;i<n;++i){
for(int j=0;j<n;++j)
{
printf("%d\t",arr[i][j]);
}
printf("\n");
}
printf("\n");
}
int main(){
int n;
printf("Spiral matris boyutunu giriniz:... | 59c27b1b34bcf0f52d896acf09052ac140c6a8e0 | [
"C"
] | 1 | C | EmirhanAkturk/Spiral-Matris | 13dfe96ee9d25c162047581caf6c39e268b95fa3 | 3af8bba589d4b3cea278901bc16b299a9f90e785 |
refs/heads/master | <repo_name>sjsong08/SuperResolution<file_sep>/utils.py
import cv2
import numpy as np
import tensorflow as tf
import os
import scipy.ndimage
import scipy.misc
def imread(path, gray=False, mode='YCbCr'):
if gray==True:
return scipy.misc.imread(path, flatten=True, mode=mode).astype(np.float)/255.
else:
... | a5d66c53f882185521271bce397bb721be96294a | [
"Python"
] | 2 | Python | sjsong08/SuperResolution | 82473f62a2e6a791d0189c462bdfea6de8696c81 | 6c7cb1f4090024984cad5e29cfbf803e1fc37bac |
refs/heads/master | <repo_name>SaadBilal/SimpleNFC<file_sep>/README.md
# SimpleNFC
SimpleNFC is a project which include insanely easy way of reading NFC data
### Tech
SimpleNFC uses a number of open source lib to work properly:
* [RXJava] - Reactive Extensions for the JVM
* [RXAndroid] - Reactive Extensions for Android
### Integrate ... | 5f813631a050ab8a79e68ca9de2d37b1112e0a60 | [
"Markdown",
"Java"
] | 2 | Markdown | SaadBilal/SimpleNFC | 5f94c1648e54285608abaa1ccaa7220dcd115aed | b323e29470ed6e377eecb86b2c72b7de5f3571a5 |
refs/heads/master | <repo_name>have-not-BUG/prerender-demo<file_sep>/src/main.js
import Vue from 'vue'
import App from './App.vue'
import axios from 'axios';
import router from './router'
Vue.config.productionTip = false
Vue.prototype.$axios = axios;
new Vue({
render: h => h(App),
router,
// 延迟5s 保证页面请求和内容全部能够加载渲染完成
mounted ()... | 368a187ff47d3ceb61954ed0adc834ab8b06b116 | [
"JavaScript"
] | 1 | JavaScript | have-not-BUG/prerender-demo | 23aeaa73b57c2850154e9a379b6eacbeb9db81ae | 864394447165f37159c11f4d7e29255a4139c427 |
refs/heads/master | <file_sep>//
// ViewController.swift
// PlayerFinder
//
// Created by Sarika on 26/06/19.
// Copyright © 2019 Airadmin. All rights reserved.
//
import UIKit
class SearchViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate, UITextFieldDelegate
{
// Outlet variables... | 84420d9bc58f5f8f16a9d6e9405e8ea0fc34d417 | [
"Swift"
] | 9 | Swift | SarikaThakurLnt/PlayerFinder | 80e67619c6da72fac5013b0a9e8baeecfd28c5dd | 69ee8096999d24ac485a2ced91c11f75f32772d0 |
refs/heads/master | <file_sep>import React, { useState } from "react";
import styles from "./Organisation.module.css";
import {
Dropdown,
DropdownToggle,
DropdownMenu,
DropdownItem,
} from "reactstrap";
import { makeStyles } from "@material-ui/core/styles";
import Button from "@material-ui/core/Button";
import TextField from "@materia... | bd176271eba5022ec23d3fdb596a6fa3170b1b47 | [
"JavaScript"
] | 4 | JavaScript | starwiz-7/reactjs-application | 49ecce02811515798e9dd53c428180cd727d2218 | a5799df3d29bc73df4ee323c2d7e4a1b3a41c984 |
refs/heads/master | <repo_name>csrwng/ovirt-csi-driver-operator<file_sep>/go.mod
module github.com/ovirt/csi-driver-operator
go 1.16
require (
github.com/go-bindata/go-bindata v3.1.2+incompatible
github.com/google/gofuzz v1.2.0 // indirect
github.com/openshift/api v0.0.0-20210521075222-e273a339932a
github.com/openshift/build-machine... | 6d0b2666364ff1843751c1acde4f0224dcbcbfb1 | [
"Go",
"Go Module"
] | 2 | Go Module | csrwng/ovirt-csi-driver-operator | 125fbf8af234b0aeea50c4bea714c7525f4899ef | 73c9a456408488f435154cabeb3a5eedfe492eb3 |
refs/heads/master | <file_sep>#!/bin/bash
source ~/.bashrc
# Set up crontab
if ! crontab -l | grep -q run_output_log.sh; then
crontab -l > curr_cron
echo '0 0 * * 0 /home/pi/ws/wind_sensor/rasp/run_output_log.sh >> /home/pi/ws/wind_sensor/rasp/log.txt' >> curr_cron
crontab curr_cron
rm curr_cron
fi
if ! crontab -l | grep... | 675aa386ebd51970bcd804a506a7c88cab060dd2 | [
"Markdown",
"Python",
"C++",
"Shell"
] | 10 | Shell | tienlongoc/wind_sensor | 624835175e1ff1cf4264a77099adf2674fe5a22d | ccb9479a6d7b29af47108c140f0fe3c9892b089f |
refs/heads/master | <file_sep>var gulp = require('gulp');
var sass = require('gulp-sass');
var autoprefixer = require('gulp-autoprefixer');
gulp.task('express', function () {
var express = require('express');
var app = express();
app.use(require('connect-livereload')());
app.use(express.static(__dirname));
app.listen(3000, 'loc... | a37249ba8331d1f8d6dfe53a054974862775170f | [
"JavaScript"
] | 2 | JavaScript | Zyyol/GulpBaseProject | 8323605c0a0167bf1221506b018d1084b92a5aca | b711dde197820a53eaa211d1a54562005aa6a121 |
refs/heads/main | <repo_name>mokhan/spec.dox<file_sep>/trunk/product/Spec.Dox/Presentation/Views/IReportPublisher.cs
using System.IO;
namespace Spec.Dox.Presentation.Views
{
public interface IReportPublisher
{
void Publish(string expected_html, string test_assembly_path);
}
public class ReportPublisher... | db019055a438b6306dc150fda6f53c635b04b243 | [
"Markdown",
"C#"
] | 21 | C# | mokhan/spec.dox | 4ba6094e00f2334eacf94e2bd6ea904cd3725668 | 461ac5e059f1a4d133ac239f6abbacd65d581477 |
refs/heads/master | <file_sep>#define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>
#include <vector>
#include "CaseSpecificInputs.h"
#include "SlugFlowFilmProfile.h"
#include "StratifiedFlowGeometry.h"
#include "dPCalculation.h"
namespace MultiphaseTemperature {
PressureCal::PressureCal(std::vector<double>& Inputs, s... | 52bf49442a5005ac4aba3ce1643caf9795041806 | [
"Markdown",
"C++"
] | 17 | C++ | arajamali/CPP-simulation-for-hydrodynamic-and-heat-transfer-calculations-in-Slug-flow-condition | fb0abae7afc58d9377fe64742649fc5f09cafb68 | 3f8b01e77899869860ddb0abc3cc03a700c02325 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _29Tanken1._0
{
class Program
{
static void Main(string[] args)
{
//<NAME> 5ITN 10/12/2020
/* Opdracht:
* Ontwerp een toe... | 5825a08170183111fc9da3647d327d9de4a8af4f | [
"C#"
] | 1 | C# | Eliasclaeys/29Tanken1.0 | 4d16b12917885347a4c38d235e3c7ce72ca46625 | 102a3637f92ec0810ca77d6ea8bb0877300688e6 |
refs/heads/main | <repo_name>janellebaguley/BandCalendar<file_sep>/db/delete_event.sql
delete from cal_event where cal_event_id = $1 and user_id = $2;<file_sep>/server/controller.js
module.exports = {
getEventsDay: async (req, res) => {
const db = req.app.get('db')
await db.get_day(day)
.then(event => res.s... | 122ca231e35f57c0da2065331b0d7fd02f9a02a4 | [
"JavaScript",
"SQL"
] | 5 | SQL | janellebaguley/BandCalendar | 4638d2f5d1d155d19f19afa7129f9a256205e5f0 | 837b092cc1e652269fef6a689f0bbad12db5eade |
refs/heads/master | <repo_name>lyakhovenko/mobile<file_sep>/LR3/LR3.py
from datetime import datetime
import csv
from fpdf import FPDF
PDF_FILE = 'payment.pdf'
def pdf_common_line(pdf, font_size, text):
pdf.write(font_size / 2, text)
pdf.ln(font_size / 2)
def create_pdf(bank_name, inn, kpp, bik, recipient, account_numb... | 6fac3891fea400c98b967f3545ae2cdc6de306db | [
"Markdown",
"Python"
] | 6 | Python | lyakhovenko/mobile | 9df0441c6df201908804843d36fee215060f5b5a | a2f9461cd5b373aff772f7581b8904747d8a1b89 |
refs/heads/master | <repo_name>kArTeL/cocoapods-keys<file_sep>/lib/plugin.rb
require 'cocoapods-core'
module CocoaPodsKeys
class << self
def setup
require 'preinstaller'
PreInstaller.new(user_options).setup
# move our podspec in to the Pods
`mkdir Pods/CocoaPodsKeys` unless Dir.exists? "Pods/CocoaPo... | e3bd5bd2abb93ea67fa3c4c55d39051015b36621 | [
"Ruby"
] | 1 | Ruby | kArTeL/cocoapods-keys | 9b2c16d1f3a7e2335bb0bc1a8bdc26e39f73473a | b1de67a1d47bcecdbe0614f9cf770b74f145c911 |
refs/heads/master | <repo_name>martinrzg/Project_Portfolio_Evaluation_Tool<file_sep>/src/models/NPVRow.java
package models;
import com.jfoenix.controls.datamodels.treetable.RecursiveTreeObject;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
/**
* Created by <NAME> on 4/22/2017.
*... | 52e229a740b21a67c10590cb9371bb0771cb3a03 | [
"Java"
] | 6 | Java | martinrzg/Project_Portfolio_Evaluation_Tool | 4b2de3221a763cf6d1f2f3bdf5309079c654f6ef | bb6c2718b2401707ea480f2080f002c11847f379 |
refs/heads/master | <repo_name>n3rdgir1/trello_react_project<file_sep>/src/components.jsx
import React from 'react';
/* Define Card Component Here*/
/* Column Component */
class CardColumn extends React.Component {
render() {
return (<div><span>Hello</span></div>);
}
}
export default CardColumn;
| ca7a592d31ad57f3bca0bae660463889e6e8a562 | [
"JavaScript"
] | 1 | JavaScript | n3rdgir1/trello_react_project | f3e514e1029282210e4ac6c87d12de98685916ad | e91a9bf0ec978059cbf6d096c15e2ba8acfaef42 |
refs/heads/master | <repo_name>z0lope0z/pepemon<file_sep>/src/com/lopefied/pepemon/ViewPhotoActivity.java
package com.lopefied.pepemon;
import com.lopefied.pepemon.util.ImageLoader;
import com.lopefied.pepemon.widgets.TouchImageView;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Wind... | d2ed31c2c2fb42417e10f44ec615a4485d3ec2ba | [
"Java"
] | 13 | Java | z0lope0z/pepemon | 297ae4de7238c54550961482cbb8f2c705e4d7f5 | f997c03fb7801bde72f5bfbab616e12506b98126 |
refs/heads/master | <file_sep><?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class RoleSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('roles')->insert([
'role' => 'Ketua BPS',
]);
... | 54dd2a2adc385315a52bfaa5615d96f92e7d8a91 | [
"PHP"
] | 9 | PHP | budi01010/SISMAK-Sistem-Informasi-Surat-Masuk-dan-Keluar- | e0a7f9f73de04770255bb374ced3934a1b3a7a90 | b976a23e6f3abf0f86469b5dc1ec763ff1b8918a |
refs/heads/master | <repo_name>muhtamim/PocketLibraryAdmin<file_sep>/app/src/main/java/leadinguniversity/pocketlibraryadmin/Util/ActivityLancher.java
package leadinguniversity.pocketlibraryadmin.Util;
import android.content.Context;
import android.content.Intent;
import leadinguniversity.pocketlibraryadmin.Ui.AddBookActivity;
import lea... | 14ccab4379110a37b54190fee8aeb4b55dc4c165 | [
"Java"
] | 1 | Java | muhtamim/PocketLibraryAdmin | b53026ab9514f2c317301ce5ac0e7a3fbbca235f | fb5ec7844015120f9e4c5216991fe402e79dddd9 |
refs/heads/master | <repo_name>NivethaRS16/JavaBasics<file_sep>/VectorClass.java
package com.java.Test;
import java.util.Vector;
public class VectorClass {
public static void main(String[] args) {
// TODO Auto-generated method stub
Vector vec = new Vector(7);
// use add() method to add elements in the vec... | c2d78d3e7a1d6fca543a78eac4f0327bf0415ccd | [
"Java"
] | 10 | Java | NivethaRS16/JavaBasics | f3e8b15036dda6bb23147c373e159ff651f92723 | 85f596e5de73e8b64c7cdfd2f2be16a7aec898a6 |
refs/heads/master | <file_sep>'use strict';
require('rootpath');
/*
*
* Constants.
*
*/
var SERIALIZE_ID = 7
, URL_FIELD = 'url'
, RESULT_FIELD = 'response'
;
function serialize(body) {
return body;
}
function deserialize(body) {
return body;
}
module.exports = {
SERIALIZE_ID: SERIALIZE_ID,
URL_FIELD : URL_FIEL... | c1706564bb6ad9bcbc889375588c46cef83f5ac0 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | lixt/node-pigeon-client | e1ffe58c8ba1696f66f440a5d4dc9ced82ad3e8a | aea824c85cf1262fbb23e68392e72aaadae60b58 |
refs/heads/master | <file_sep>
@pets =[
{key:1, name: "Dog", price:10},
{key:2, name: "Cat", price:30},
{key:3, name: "Bird", price:20}
]
@options = [
{key:1, name: "View Pets"},
{key:2, name: "add Pet to cart"},
{key:3, name: "View Cart"},
{key:4, name: "Checkout"},
{key:5, name: "Remove Item"},
{key:6, name: "add p... | c115f595833c7e8206e71b7ebe8860d8772a7941 | [
"Ruby"
] | 3 | Ruby | sjohnston92/pt_pet_store | 43e66fb8438cc49f1020a7cf3270f0a858a40cfc | a620cdc80949b102f8d945ad08ca11abfad0ab6f |
refs/heads/master | <repo_name>marcoszillig/ouichefs<file_sep>/java/.metadata/version.ini
#Fri Sep 16 14:11:46 BRT 2016
org.eclipse.core.runtime=2
org.eclipse.platform=4.6.0.v20160606-1100
<file_sep>/java/Web_OuiChefs/src/br/com/ouichefs/beans/PratoPedido.java
package br.com.ouichefs.beans;
public class PratoPedido {
}
<file_sep>/java/W... | d3cde68e243efc52ff6c3fccbc7ece70362334be | [
"Java",
"INI"
] | 3 | INI | marcoszillig/ouichefs | 52412a5ddfd6726f352096bdc23dec54f99b421f | dd790ab538391ea117c04436ab174043feb1649a |
refs/heads/main | <repo_name>Aca84/Picturinho<file_sep>/resources/js/app.js
require('./bootstrap');
includes('main.js');<file_sep>/resources/js/main.js
//do no why I make this file duno<file_sep>/app/Http/Controllers/PostsController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Post;
use App\Mod... | 0a8f5baaf72f3e3c712e9efcacffe117f9f5f77a | [
"JavaScript",
"Markdown",
"PHP"
] | 4 | JavaScript | Aca84/Picturinho | 858f4381228a01f29fda53f573ba3dc5765dc785 | 572c22473f848c725f17f77cc8328e5a50bcb148 |
refs/heads/master | <file_sep>from django.contrib.auth.models import AbstractUser, BaseUserManager
from django.db import models
from django.utils.translation import gettext_lazy as _
class User(AbstractUser):
# enum for django instead of tuple choices
class Types(models.TextChoices):
DOCTOR = "DOCTOR", "Doctor"
... | b817f15775c06e1578f460cf65cb073fab614942 | [
"Markdown",
"Python",
"Text"
] | 9 | Python | abdelrhman-adel-ahmed/Doctor-Clinic | 0a46c687f80692a2d6a19ed3d84b6b5c3dbfe6f2 | 007a7fa6209cf157cf60229ee8826af9f04783a6 |
refs/heads/main | <file_sep># Generated by Django 3.1.3 on 2021-06-20 08:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0005_auto_20210620_1208'),
]
operations = [
migrations.RenameField(
model_name='topic',
old_name='contetn'... | 9a3434a52dc4696affd95cadd2d0fa536ce21920 | [
"JavaScript",
"Python"
] | 12 | Python | SabaOrk/ForSet-Hackathon | 5cb2a8f23a7ab93f7a12d24f3626ea44692689af | c53cd4f756e4c007a1fbd299b6851f6f4c6cd358 |
refs/heads/master | <repo_name>HReader/HReader.GenerateStorageQueries<file_sep>/HReader.GenerateStorageQueries/Program.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace HReader.GenerateStorageQueries
{
public class Program
{
private const string Header = @"//==========... | 00bcf23bc7b15000e7904abd99618de2644154d1 | [
"C#"
] | 1 | C# | HReader/HReader.GenerateStorageQueries | 637ad346ea43261899da0941375b730ab9f8bd27 | e1b8106baba4110b6e8674d5eb107c58f37835ac |
refs/heads/master | <file_sep>package com.example.ciller.pm;
import android.database.Cursor;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;
import an... | 231861873aa4921147f6ff1d5d281e2cf87edd2d | [
"Markdown",
"Java"
] | 8 | Java | CillerA/Android_BudgetManagementApp | 89d726f08e709f6fc2a07051ccc3e32a6a4a5f5f | 8b2f8e264cb974a442ccc319ab25562c8f7438f1 |
refs/heads/master | <repo_name>ilyuha1994/RoleGame<file_sep>/Квест/Квест/Globals.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace Квест
{
public class Globals
{
public static int Level=1;
<<<<<<< HEAD
public static in... | 43d8f0f32d0644e797d977514f8ec21ed3a17754 | [
"C#"
] | 5 | C# | ilyuha1994/RoleGame | c25ba0e5037e916fffd79ebccbde3bd16d894db3 | ee1df2bbe52943fec5f63dfb83f0f29d57ffcc5e |
refs/heads/master | <repo_name>Shoaib3008757/XmlParsingTest<file_sep>/app/src/main/java/xmlparsingtest/ranglerz/com/xmlparsingtest/ReviewAnswers.java
package xmlparsingtest.ranglerz.com.xmlparsingtest;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.suppor... | a66fee45dfe5ec13b694e4a28ba753d9de9b8192 | [
"Java",
"INI"
] | 7 | Java | Shoaib3008757/XmlParsingTest | f396151fd77d21040cf6dd7a1b071cd37cbe0752 | c4ee06c8c90a301f0eb42dd0709cd1a627690223 |
refs/heads/master | <repo_name>FailingMoon/class<file_sep>/home.php
<html>
<head>
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<div class="text-center">
<?php echo "This is home";
echo "<br>";?>
<button class="btn btn-danger"><span class="glyphicon glyphicon-user"></span>Yun Che</button>
</div>
</body>
</html> | 86ec9db4668d85b45e12f95a11dadcbc7c32c7f0 | [
"PHP"
] | 1 | PHP | FailingMoon/class | 4676713979221679b19bd7449a348e55eb8bc194 | 9d89c0354ddebd83161b931474295e4ba34f7aaf |
refs/heads/master | <file_sep>var socket = io();
socket.on('connect', function() {
console.log('Conectado al servidor');
});
socket.on('disconnect', function() {
console.log('Conexión con el servidor perdida');
});
function enviarMensaje(usuario, mensaje) {
if (usuario.length <= 0) {
usuario = '<NAME>';
}
if... | 356f27e46ef735fac4603e81a7c0c93db1195be0 | [
"JavaScript"
] | 1 | JavaScript | alfonzzo7/Node_SocketsFundamentos | 4dafe79dcd191f457b21154995d834a19114b534 | d7a5f4b00297920243f6e580239ef88450b0e1fa |
refs/heads/master | <file_sep>package com.example.gihwan.smart_hm;
import android.app.ProgressDialog;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.wid... | 653343058b93301a8821dff5814d643fccc7663f | [
"Java"
] | 4 | Java | KiHwanHong/Smart_Hm | c09600e9837a5534ed49e06a8257f9934ff49a03 | 10e98b9ebca3f89add503ab2d9824823e9420d29 |
refs/heads/master | <file_sep>from pymongo import MongoClient
from datetime import datetime
import os
class mongoGuest:
def __init__(self):
self.collection = MongoClient(os.environ['DB_PORT_27017_TCP_ADDR'],27017)['test']['t']
def find_cpu_percentage(self,con):
cpu_usage = con["cpu_usage"]
system... | a485c471f11426077bf57030c045c6b139317d09 | [
"Python",
"Text",
"Dockerfile",
"Shell"
] | 23 | Python | sohamdats/mydashapp | 20e11cceeaf0188d79a15fb44e53a17cd7a76e5f | 178c5e9fa55ba48c96b817113f9e90c0694dd24f |
refs/heads/master | <repo_name>leshij-2005/tochka-test<file_sep>/src/app/events/events.component.ts
import { Component, OnInit } from '@angular/core';
import { EventService } from './event.service';
import { Article } from '../article/article';
@Component({
selector: 'app-events',
templateUrl: './events.component.html',
styleUrls:... | 1162faca13e3a9368a38bb65746d3e23087cb44f | [
"TypeScript"
] | 7 | TypeScript | leshij-2005/tochka-test | d1e3c2dfbfeaa4ee7784f334b6b6d1f46cb80bcb | f76651cfe79946501d8ff1d6d7520c306e775495 |
refs/heads/master | <repo_name>JasonliEio/CopyMeituan<file_sep>/README.md
# CopyMeituanUI
山寨美团UI


, которая будет возвращать приветствие, в зависимости от текущего времени суток.
-- С 6:00 до 12:00 функция должна возвращать фразу "Доброе утро", с 12:00 до 18:00 функция должна возвращать фразу
-- "Добрый день", с 18:00 до 00:0... | 4e87c90797f80c7b079ea860b1b2081338a751a7 | [
"SQL"
] | 12 | SQL | sofo4ka/MySQL_Homework | f2b6991b8c7fdb2d43a39baeb92e879917443c15 | c112ae07eccf0304ae226d75dccd66c7d7df5111 |
refs/heads/master | <file_sep>
public class StringsAndCharacters {
public static void main(String[] args) {
String doubleLetter = "Wellcome";
System.out.println(removeDoubledLetters(doubleLetter));
}
public static String removeDoubledLetters(String line) {
String newLine = "";
for(int i = 0; i < line.length(); i++) {
char ... | 6c2cd26e6c647bd0e597a106650c6b6c051a9795 | [
"Java"
] | 2 | Java | Squyres/Midterm_Stanford | ddc3cd440f5b6e4b5cc7c26a4efaaf31cd93e286 | 83b5e436b4063ab85b767563f0d0ecda52aa6d0c |
refs/heads/main | <repo_name>rkwantify/msk-movie-app<file_sep>/README.md
# Getting Started
* Run `yarn start` and navigate your browser to [http://localhost:3000](http://localhost:3000)
* API key is hardcoded for convenience
* This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). Please ... | 39ab4134fab130bfaa92015a68cb7f5e06d2efcc | [
"Markdown",
"TypeScript"
] | 2 | Markdown | rkwantify/msk-movie-app | 0c0e2e93f6491de77263ecbf5b581fb456f84a21 | 9a7df9d43099277d89184ee5aec78948816ff542 |
refs/heads/master | <file_sep>
$(document).ready(function() {
demo.initFormExtendedDatetimepickers();
demo.initMaterialWizard();
function setFormValidation(id) {
$(id).validate({
errorPlacement: function(error, element) {
$(element).parent('div').addClass('has-error');
}
... | 2d4b6984e618da1915c722ee0acadb2242766c3e | [
"JavaScript"
] | 1 | JavaScript | molson303/V_dashboard | 27910bfb57eb9ffca5aa901a4e97aba945a89af2 | e1aa902ce919cc3bd03743d5c1294004efd1180c |
refs/heads/master | <file_sep>package ma.ensias.VirusCop.util;
import jade.core.ProfileImpl;
import jade.util.ExtendedProperties;
import jade.util.leap.Properties;
import jade.wrapper.ContainerController;
import jade.core.Runtime;
public class Plateforme{
private ContainerController mainContainer, aContainer;
private boolean ... | fdf7f83ab76ae77a285bac99e887098212468d49 | [
"Java"
] | 4 | Java | NabilRM/SMA-Project | 3466deab579ca9e071d9db4f7381ce8f4b1307aa | 2bc66098f4cb33ac87bd236691f565830220b47c |
refs/heads/master | <file_sep>#pragma once
void game_init(void);
void game_update(void);
void game_cleanup(void);
void game_render(void);<file_sep>#include <stdlib.h>
#include <string.h>
#include "component.h"
#include "hash.h"
Component_Type init_component_type(int length)
{
Component_Type new_component;
new_component.data = (v... | 44100de57a97ef71e93cf351d55edbeed3de8578 | [
"Markdown",
"C",
"Makefile"
] | 25 | C | Bizbud/Feather-Engine | 967e3e705eed93d83a66f7faf4244a46951776f0 | 4dbcc989cbb7878ae8ca02b72e9d188fb2e4b13d |
refs/heads/master | <repo_name>JustinXiang/BarrageView<file_sep>/README.md
# BarrageView
一款自定义的可点击图文弹幕
因为项目需要,原版弹幕无法满足需求,专门修改的一款可以自定义修改弹幕视图的图文弹幕。

<file_sep>/app/src/main/java/read/it/myapplication/MainActivity.java
package read.it.myapplication;
import ... | 5b28e7c15fda68c9df47d4a4ebc169aa29064b9b | [
"Markdown",
"Java"
] | 2 | Markdown | JustinXiang/BarrageView | 9f1fe4a28ed59f172c77949f53e8dcd64f30031e | dd040dcb1daee5de0677810a3e2f0d4903aab6a0 |
refs/heads/main | <file_sep>const express=require('express');
const router=express.Router();
const Option=require('../models/option');
router.get('/', async(req,res)=>{
try {
const option=await Option.find();
res.send(option)
} catch (error) {
res.send('Error');
}
});
router.post('/',async(req,res)=>{
const o... | aa542b9bf012bbaf36ef4fe82b9e432a61170f55 | [
"JavaScript"
] | 2 | JavaScript | praveen264/Codenx | a18544b76277b09bd3651ffc09c882ee84277c08 | 45d127627cf9ef6a1102f2a175e33e9fb8c8ee35 |
refs/heads/master | <file_sep>import matplotlib.pyplot as plt
import networkx as nx
def draw_cycle_graph():
g = nx.cycle_graph(24)
pos = nx.spring_layout(G, iterations=200)
nx.draw(g, pos, node_color=range(24), node_size=800, cmap=plt.cm.Blues)
plt.show()
def main():
draw_cycle_graph()
if __name__ == '__main__':
... | eb02bb05c15e8195dafcd346123183f613c9452c | [
"Markdown",
"Python"
] | 11 | Python | SILKYMAJOR/practice_python | 7020914e2fba47b122a0d528d903008ff6738cd0 | beed451bdfa2eefac86af0df37c16cb2b9842948 |
refs/heads/master | <file_sep>/**
* Created by Administrator on 2017/2/11.
*/
var carousel = document.getElementById('carousel');
console.log(carousel);
//获取相框宽度
var cWidth = carousel.clientWidth;
console.log(cWidth);
//获得所有图片,根据图片的索引设置每张图片的位置。
var imgs = $('img');
console.log(imgs);
for (let i = 0; i < imgs.length; i++) {
imgs[i].... | e479e5f3c4628b17d66ca95640c31b840c4fe460 | [
"JavaScript"
] | 1 | JavaScript | ChenJIE1993/js--Carousel-figure | 9f6ed2ad7aaaba4c700c3886d1783830e807dcd5 | a698173c440ca9a4e1cefebe41f2d0a85f555765 |
refs/heads/master | <file_sep>//instead of using a database I use a simple array to track what users are in a room and how this state changes.
const users = [];
const addUser = ({id, name, room}) => {
//to have a specific format: from <NAME> to johnkoukoulakis
name = name.trim().toLowerCase();
room = room.trim().toLowerCase()... | 77dfdb02b1adcde232ad57e905231f4173b3005d | [
"JavaScript"
] | 1 | JavaScript | koukoujohn/react-chat-app | 27f53fa56b2801901d4f096f3a043e07c716d0ca | f777dca09dda2776966cfe4100f6b4419665e4c0 |
refs/heads/master | <repo_name>getditto/Inventory-Sample-App<file_sep>/flight-inventory/Model/FlightInfo.swift
import Foundation
struct FlightInfo {
let name: String
}
<file_sep>/flight-inventory/Model/UserInfo.swift
import Foundation
struct UserInfo {
let name: String
let isAdmin: Bool
}
<file_sep>/flight-inventory/Inventor... | c9047acca09a0950cc9ddc7948421b072eac7f3c | [
"Swift",
"Markdown"
] | 11 | Swift | getditto/Inventory-Sample-App | baa3ede1ab28e5bf050526cbed06bc7f068288e8 | c3e788f0ccb2b5ba050ab09913e8802083315373 |
refs/heads/master | <file_sep>using CosmosDbRepository;
using CosmosDbRepository.Types;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
namespace CosmosDbRepositoryTest
{
[TestClass]
public class CosmosDocumentIdTest
{
[TestMethod]
public void GuidIdTests()
{... | df287513bafd10c94f81239d5d500166cf02aac8 | [
"Markdown",
"C#"
] | 52 | C# | trbenning/CosmosDbRepository | 5fe3b1199811e34bdfb9b462f0670c8304ee4d42 | c03bf44cdcf344c70158eca3c75f83d1bb436dc3 |
refs/heads/master | <repo_name>Abe-Tsang/exampleTrade<file_sep>/src/Driver.java
public class Driver {
public static void main(String[] args){
User buyer = new User("Abe");
User seller = new User("Tsang");
seller.postItem("Item1", 50, 2);
seller.postItem("Item2", 100, 3);
buyer.buyItem("Item2", 1... | 442d2b460f8d7c483202b969387765207873898a | [
"Java"
] | 1 | Java | Abe-Tsang/exampleTrade | fe5764ac5ab9f1409f736480a34e30e24563865b | 4497c5bc45aaec974d2ba65bc8ee0d6a3eb5b0e6 |
refs/heads/master | <repo_name>itqpleyva/abstractFactoryPattern<file_sep>/src/main/java/com/itqpleyva/abstractfactorypattern/UIClases/MacCheckbox.java
package com.itqpleyva.abstractfactorypattern.UIClases;
import com.itqpleyva.abstractfactorypattern.interfaces.Checkbox;
public class MacCheckbox implements Checkbox {
@Override
p... | 938941185d9c4715f8754ec1a67d1285960bab6c | [
"Java"
] | 3 | Java | itqpleyva/abstractFactoryPattern | a1ca15d87cb51bede06e5109d0cc50194307394b | 9e1ac895718236ffce503ae2717e0097134ac935 |
refs/heads/master | <repo_name>JopperTom/MaxUSB<file_sep>/My Code/usb.h
#ifndef USB_H
#define USB_H
#define BUFSIZ 8
BYTE INTERRUPT;
int FLAG, FRAMECOUNT, CURRENT, NEXT;
BYTE errorcode;
BYTE HR1,HR2,HR3;
const SUD addr4 = {0x00,0x05,0x04,0x00,0x00,0x00,0x00,0x00};
const SUD conf1 = {0x00,0x09,0x01,0x00,0x00,0x00,0x00,0x00};
const SUD i... | 6f64b29e25ba87ab945368476b2eb12724390a74 | [
"C",
"INI"
] | 10 | C | JopperTom/MaxUSB | 25265c3537b05bafcf053443b164726db71b3b12 | 8afeba28fbc60de0f1ce2b3049f9a7117d7d05b1 |
refs/heads/master | <repo_name>avibanerjee/EmailAutomation<file_sep>/script/send_emails.py
# MY_ADDRESS =
# PASSWORD =
# def get_contacts(names, emails):
# # import name, email
# with open(names, 'r') as artist_names:
# with open (emails, 'r') as contact_emails:
# names = []
# emails = []
# ... | 5b8a9a80e61cbfde1f0c82ad97f6ddf3b4047b2a | [
"JavaScript",
"JSON",
"Python"
] | 4 | Python | avibanerjee/EmailAutomation | 3ace10d7f28e3ecb12be597c94fb6ad10305af46 | d5a26751d680ecbc5014a409f04ddbc0f7d936ee |
refs/heads/master | <file_sep>#pragma once
#include "Actor.h"
class Actor2 : public Actor
{
public:
Actor2();
~Actor2();
int SumActor2(int x, int y);
void Hello() override;
};
<file_sep>#include "pch.h"
#include "Actor.h"
using namespace std;
Actor::Actor()
{
//cout << "Hello im an Actor\n";
}
Actor::~Actor()
{
}
void Actor::p... | 06bb8f2939b4e8470c56e1e0d4f0b7b8c5267d5e | [
"C++"
] | 5 | C++ | PR1202/TestClasses | 66fe0cc111f24f99dfcca3613510a35282efe778 | 49c0a151511282a73e46373d6102b78cbd4d3eea |
refs/heads/main | <repo_name>santiforero1018/clasic_to_quantyc<file_sep>/Libreria_numeros_complejos.py
"""Libreria de operaciones basicas con numeros complejos
"""
import math
def tensor_productv(vectorco1, vectorco2):
""" producto tensor entre los vectores
:param vectorco1: vecotr de valores complejos
:param vectorco2:... | 9cdb2cb3af988dc79f5a2d4fe7ac9b43c5fb502a | [
"Markdown",
"Python"
] | 5 | Python | santiforero1018/clasic_to_quantyc | b189668ca0024ec4c7ec0e94022f5d344cb99dc6 | 91ce554f372c1fba6c7466f7ad8e81a9489d5ce6 |
refs/heads/master | <repo_name>Leandrolara2/php-aula--introdu-o<file_sep>/index.php
<?php
$categorias = [];
$categorias[] = 'infantil';
$categorias[] = 'adolecente';
$categorias[] = 'adulto';
$categorias[] = 'idoso';
//print_r($categorias);
$nome = 'Eduardo';
$idade = 90;
//var_dump($nome);
//var_dump($idade);
if($idade >= 0 && $idade... | b2f50ee4725a19e905fe463b5f802d2bf89b7636 | [
"PHP"
] | 1 | PHP | Leandrolara2/php-aula--introdu-o | d72f8ee3c2a39ebe920b0309096a92632f9f3dd9 | 8dd2d877155c5d3e75d4f1737b3f27f36a6e5a4c |
refs/heads/master | <repo_name>AntiIO/lnmp<file_sep>/lnmp安装/软件安装/mysql安装/mysql_server_install.sh
#!/bin/sh
#安装bison
echo "正在安装bison******************"
cd /usr/local/src
wget ftp://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz
tar xf bison-3.0.4.tar.gz
cd bison-3.0.4
./configure
make && make install
#安装ncurses
echo "正在安装ncurses**************... | 4bb5a4b93ff4ccce4d797614294bdca7348ec52e | [
"Markdown",
"INI",
"Shell"
] | 9 | Shell | AntiIO/lnmp | b2fcbce72e6b74091a527bb096439d8983d8b677 | 4185614ebb06e7c2de4552a4e5c98d46636c6571 |
refs/heads/master | <file_sep>require 'fileutils'
require 'date'
require './animations'
require './tracker_functions'
Tracker.new.setup
Tracker.new.startup
Animation.new.startup_animation
Tracker.new.run
Tracker.new.shutdown
Animation.new.shutdown_animation<file_sep>class Animation
def startup_animation
print "LET'S"
sleep 0.3
pri... | bad401fe9109f868f94206c09bf4355f2eb3e6e2 | [
"Ruby"
] | 3 | Ruby | johnsillings/pistachio | e37a9a3b64b2c83ebf96929f6079494ced26aefd | af801b596cf6bc83add948019ce00ed15b872d0f |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import { Switch, Route, BrowserRouter} from 'react-router-dom';
import './App.css';
import NavBar from './components/NavBar';
import Services from './components/Services';
import Contact from './components/Contact';
import Heading from './components/Heading';
import... | 3cf1e89295ac6e3fbc02a7db847c51135dd9adb0 | [
"JavaScript"
] | 3 | JavaScript | YannickLeRoux/AzureWebSolutions | 8affc2468ab415f887fad604535b890649e4665f | 01514e1ad5630d77a6c0a356a7f0e9c2912ec675 |
refs/heads/master | <file_sep># PostmanImport
ASP.NET WebApi Postman import format
<file_sep>using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
using Syst... | 4255864dcf9c2fe5a56c3be9ff7f30f5ac556bce | [
"Markdown",
"C#"
] | 2 | Markdown | mahmudarslan/PostmanImport | c902e4c7bbf5bdac283a2bbf8c85c1579d19971a | 4377c72b65a2e0a00257527a2892accb7b56b90e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.