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># workReporter
工作报告生成
<file_sep>package com.adj.workreporter.worker;
import com.adj.workreporter.Constants;
import com.adj.workreporter.model.Work;
import com.adj.workreporter.service.WorkService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.sql.SQLException;
import... | 318c250085e6a18297522feef57f198a7664b47d | [
"Markdown",
"Java",
"Maven POM"
] | 6 | Markdown | Zz-m/workReporter | fced8e562082b96e084e43ba064b672a25f68133 | dbd9856c376e4f9cb7eb976e93dba19cbffafd01 |
refs/heads/master | <file_sep>#include<stdio.h>
void print_multiples()
{
int counter = 3;
int sum = 0;
while (counter < 1000)
{
if (counter % 3 == 0 | counter % 5 == 0)
{
sum = sum + counter;
}
counter ++;
}
printf("Sum of numbers below 1000 that are multiple... | a6fb0d166eb5adc1913588ec96ec9b9d5e35bd61 | [
"Markdown",
"C"
] | 3 | C | michaelhidalgo/project-euler-c | 31598261d61f1f8a8e3219527990dbb826b573af | 7d3777266a5ad938cb5f1d2bfe70bacf43bb5f2d |
refs/heads/master | <repo_name>barmaglot-server/hotspotlogin<file_sep>/lang/ru.php
<?php
global $lang;
$lang = array(
'chillispot' => 'Barmaglot hotspot',
'errornonssl' => 'Для входа использовать https:// соединение',
'already_logged_in' => 'Already logged in',
'logout' => 'Logout',
'login' ... | f23bb5ad0eab9eeb6757566268320cc31d9350e0 | [
"PHP"
] | 1 | PHP | barmaglot-server/hotspotlogin | c85332b16823d9e2edf29500ae9f302f29078006 | 925b63471c16c500600bf9450a66665898c2d6a5 |
refs/heads/master | <repo_name>Gavrilajava/count-elements-houston-web-012720<file_sep>/count_elements.rb
def count_elements(array)
# code goes here
myhash = {}
array.each{ |element|
if myhash.has_key?(element)
myhash[element] += 1
else
myhash[element] = 1
end
}
myhash
end
| 2b8b37789f5ddf0d7bf687b0c8eaef732991afda | [
"Ruby"
] | 1 | Ruby | Gavrilajava/count-elements-houston-web-012720 | e07c2d4fd6d57ec634bb84abfbaff713724a3e89 | ed8a9b8c9591447992a47615d67f21feaa1803a6 |
refs/heads/master | <repo_name>itwizalekh/getdata-003<file_sep>/run_analysis.R
# 7352 observations
# setwd("")
# Read various datasets
X_train<-read.table("UCI HAR Dataset/train/X_train.txt")
y_train<-read.table("UCI HAR Dataset/train/y_train.txt")
X_test<-read.table("UCI HAR Dataset/test/X_test.txt")
y_test<-read.table("UCI HAR Dataset... | 167d71fd32de169d54ada89d1bbb1e92b1f85c71 | [
"Markdown",
"R"
] | 3 | R | itwizalekh/getdata-003 | ebef626cc84b090d2182837c763bf329b8519c97 | 9ec91fdcecb926810879fda118170cb5b8aa6a42 |
refs/heads/master | <repo_name>MJCaister/MC-Server-Query-Discord-Bot<file_sep>/main.py
# MC Server Query Bot for Discord by NKSCPreditive
import discord
import asyncio
from mcipc.query import Client
from datetime import datetime
bot = discord.Client()
# SETUP
token = open(r'token.txt', 'r').read() or "" # Your Discord bot's token (Don'... | 4e7d1d9086c53482821940c03e50d6fc0f6e1b66 | [
"Python"
] | 1 | Python | MJCaister/MC-Server-Query-Discord-Bot | 5cd2c7e8df847f07bde4ebf9f3e0665aba2dfb9b | ce6f176c7c20f414889d86dcc4b9e8e6797d4321 |
refs/heads/master | <repo_name>romfrancois/GoT-Houses<file_sep>/GoT-Houses/HouseInfo.swift
//
// HouseInfo.swift
// GoT-Houses
//
// Created by <NAME> on 23/07/2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
import Foundation
struct HouseInfo: Codable {
var name: String
var region: String
var coatOfArms: String... | 7ddd802eed476a3a1c4ea131f6b30e6ec68b5338 | [
"Swift"
] | 3 | Swift | romfrancois/GoT-Houses | b7d21442853677520b6938968ee37c6732ff439f | eb7bafce3a76c7c1857e3d084608e12f96a84205 |
refs/heads/master | <file_sep>#ifndef cassiere_h
#define cassiere_h
#include "utility.h"
// initialize cashier variable
void cassiere_create(threadCassiere *tc, int tprod, int intTime, int index);
// insert client in the tail of queue
void insertClient(queue *head, queue *tail, queue *client);
// life cycle cashier
void *cassiere_work... | 5ca5cc8ce9fe467eec7e969016ba90fa9f9a16c2 | [
"Markdown",
"C",
"Makefile",
"Shell"
] | 12 | C | alexnicco98/ProgettoSol | 242b6178aef531a5772c9a70854fb904da3c0465 | 16c56c0065382d307160b9220a53830e8e2aad9f |
refs/heads/master | <file_sep># coding=utf-8
import re
import numpy as np
import random
import logging
import logging.handlers
from apscheduler.schedulers.blocking import BlockingScheduler
from twython import Twython, TwythonError
from secrets import *
LOGGER = logging.getLogger('boiade_service')
LOGGER.setLevel(logging.DEBUG)
# rotatin... | 4297e76d7d706a7ffda43e05591a7dfa9c6efc55 | [
"Python"
] | 1 | Python | andremann/twitter-bot-livornese-imbruttito | 11c1c1a043412ec7d9d5e925707855b44d705eb7 | dc14feb782f755774b7a44c9338324aab345c358 |
refs/heads/master | <repo_name>faierbol/soxialit-landing<file_sep>/spec/routing/paintings_routing_spec.rb
require "spec_helper"
describe PaintingsController do
describe "routing" do
it "routes to #index" do
get("/paintings").should route_to("paintings#index")
end
it "routes to #new" do
get("/paintings/new").sh... | f83baf5204e233fb567bd7344d4b9860e00b48fe | [
"RDoc",
"Ruby"
] | 82 | Ruby | faierbol/soxialit-landing | 0183044ee169e2fb990915fba43414efc752f78e | 4d050fdefaa77a86a2970bdc2313f0773336bf10 |
refs/heads/main | <file_sep># Usage
1. Clone the repo
2. Run `npm install`
3. Run `npm run dev`
4. Go to localhost:3000/mjml/:template?templateParam=templateValue
You can also use templates in other templates by adding a `sub_templates` query param and then comma separating main template properties and the template name joined by a co... | 9e75fa00964590f6036d573a73d3141c8b6b4a87 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | spiffy2006/test-mjml-api | a1e2f8bc948408e8b85b249467f597a4bf99553f | 5b2a1ab5615ee8b55b8e25511ccd1dfd6c602837 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
def create_image():
my_image = np.zeros((20, 20))
my_image[1:-1, -2] = 1
my_image[1, 1:5] = 1
my_image[1, 7:12] = 1
my_image[2, 1:3] = 1
my_image[2, 6:8] = 1
my_image[3:4, 1:7] = 1
my_image[7:11, 11] = 1
my_imag... | 11786000dcbea019b8601acb5cffbf60e922f4d8 | [
"Python"
] | 1 | Python | AndreyZhunenko/Computer_vision_count_objects | 43a188b0c5caa177ddcdf9395280b07cc304a5eb | 1969a433374ace2b3aeb206c84fcfd44201d2976 |
refs/heads/master | <file_sep>//TODO: use jquery html to jquery append, so only new content is added or removed, instead
// instead if everything being refreshed
$(function(){
updateServerInfo();
$("#sendCmd").click(function(){
var updata = {"cmd": $("#command").val(), "clients": []};
var clients = $("#client... | 3c0c93f18e2b79df74db4ec8d6c5bb6fe584143c | [
"JavaScript",
"SQL",
"Python"
] | 11 | JavaScript | murster972/Bots | a365fe76af951f80c4e0b7ec011d57e1c4eb5380 | f89097b2481ea1ebfb9f3f76d81997486051a523 |
refs/heads/master | <file_sep># moments-web
moments web client.
ヽ༼ຈل͜ຈ༽ノ
<file_sep>import React, { Component } from 'react'
import { connect } from 'react-redux'
import ReplyPanel from './ReplyPanel'
import filter from 'lodash/filter'
import CommentList from './CommentList'
import moment from 'moment'
import { replyMoment } from '../act... | 1b9e6530540d4132862975ac2cde12b047c94f34 | [
"Markdown",
"JavaScript"
] | 25 | Markdown | afghl/moments-web | 8085f7df393f694c3331933bc46558c62c3f75cd | 76abd99b8b9e1548bc5ea5272f31ec01168ce657 |
refs/heads/master | <repo_name>joffreydemetz/authentication<file_sep>/src/Authentication.php
<?php
/**
* (c) <NAME> <<EMAIL>>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace JDZ\Authentication;
use JDZ\Authentication\Connector\Connector;
/**... | dbc6c4c0e665d0b713f0bd23bac67ef705ac564b | [
"Markdown",
"PHP"
] | 7 | PHP | joffreydemetz/authentication | 791be5f526cf2cc1c4612df4ac0a94a2fb038de6 | 6feefa9ea42552332ae394df47bc9c7b66e9d40a |
refs/heads/main | <repo_name>globalfranck/San-Antonio-quotes<file_sep>/README.md
# San-Antonio-quotes
Quoting <NAME>'s San-Antonio citations using popular fictional characters
<file_sep>/san_antonio.py
# Import random module in order to use the randint method to get a random integer
import random
quotes = [
"Ecoutez-moi, <NAME>, no... | 11c8b436d2bcbd92c22f66807822031b5fdbaf26 | [
"Markdown",
"Python"
] | 2 | Markdown | globalfranck/San-Antonio-quotes | 417a8a9bc80b3167d5c0b7539c4b69ca59027dd4 | f34e31270401eed09fec3e418e5638b97aaacc74 |
refs/heads/master | <repo_name>adamheldring/boardgamegoogle<file_sep>/myScript.js
/* My JavaScript function that only has love for board games */
function mySearch() {
var mySearchText = document.getElementById("mySearchField").value;
if (mySearchText == "board games" || mySearchText == "Board games" || mySearchText == "boardgames" ||... | b9faeb95e5de3a6a10f127f81005771a639422e3 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | adamheldring/boardgamegoogle | c699136f2b7efcc28fb9ed816c9c634002399ce4 | f8ac9b3794ecd2058d469587b2464c65e6c7f790 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: Android
* Date: 12/05/2018
* Time: 12:13 PM
*/
namespace App\Services\Impl;
use App\Entities\LandingPage;
use App\Services\LandingPageService;
use App\Services\LandingThemeService;
use App\Services\LandingBannerService;
use App\Repositories\LandingPageRepo;
class... | 24899ba130e5b51abe4c41edcde7dd1d63b47b0b | [
"JavaScript",
"PHP"
] | 71 | PHP | amitalgo/GCR_5.1 | 1a62d3c934e9c9e7763e6d61638a4b28665896e3 | 01980aa6e4cf8197b60cfdb39976954fe71ba5ab |
refs/heads/master | <file_sep>#include <RBDdimmer.h>
dimmerLamp dim4(4); //initialase port for dimmer: name(PinNumber);
int buttonRed = 0;
void setup() {
dim4.begin(NORMAL_MODE, ON); //dimmer initialisation: name.begin(MODE, STATE)
dim4.setPower(50);
pinMode(14, INPUT);
}
void loop() {
buttonRed = digitalRead(14)... | fc8f9135b5976a78f0a873c2f633febc798a4083 | [
"C++"
] | 5 | C++ | jirmjos/AC-Light-Dimmer-Module-1-Channel-3.3V-5V-logic-AC-50-60hz-220V-110V | 45a5cc46375e492eb647c4e0640955bc67348601 | 138404c81272c248cc89ea3fc81353fed80499cb |
refs/heads/main | <file_sep><body id="page-top">
<div class="container-fluid">
<div class="box">
<div class="box-header">
<h1 class="h4 mb-0 text-gray-800">Add Pegawai</h1>
<div align="right">
<a href="<?=site_url('perangkat_desa')?>" class="btn btn-warning btn-flat">
<i ... | c9671d17b9dba5010d61d756c51038628484c9a2 | [
"SQL",
"reStructuredText",
"PHP"
] | 62 | PHP | fflah/administrasisuratcipari | b3337ebada4a685264d5b279600839166663b74c | b7adb8103c7741ceb844ed99197ee6e605296c22 |
refs/heads/master | <file_sep>package DIP;
import java.util.Map;
import DIP.sintomak;
public interface InterfaceAfection {
double calculateSympomsAfection(Map<sintomak, Integer> sintomak);
}
<file_sep>package LSK;
import static org.junit.jupiter.api.Assertions.*;
import java.util.HashMap;
import java.util.Map;
imp... | 6a53d281c7b22d8c02542e9ebe59bf63c3dcd379 | [
"Java"
] | 12 | Java | IbonPerez/SOLID | 98aea262d1f6bcbffd2ddf700934a490ceafa660 | b0e1f579793989169c4e0419789e5ead01402bdf |
refs/heads/master | <repo_name>magicksid/cfeclipse<file_sep>/org.cfeclipse.cfml/src/org/cfeclipse/cfml/preferences/BrowserPreferenceConstants.java
package org.cfeclipse.cfml.preferences;
import org.eclipse.jface.preference.IPreferenceStore;
public class BrowserPreferenceConstants {
public static final String P_PRIMARY_BROWSER_PATH... | 108a4506caeb43e32c8f145158f20e601169ef59 | [
"Java"
] | 1 | Java | magicksid/cfeclipse | f9becbeb0340959cd8697f76ee420b7242b07885 | 58ff332cc2748441a6d9c8c250bde066161c1efb |
refs/heads/main | <file_sep>//
// TableViewHeader.swift
// avito_intern
//
// Created by <NAME> on 08.09.2021.
//
import UIKit
class TableViewHeader: UITableViewHeaderFooterView {
@IBOutlet weak var titleLabel: UILabel!
func setup(title: String) {
self.titleLabel.text = title
self.titleLabel.font = UIF... | a0ba1bbf4b3b6a852026c32708154bbcaaf5dedc | [
"Swift"
] | 6 | Swift | seryogasx/avito_intern | 4cf1360aa7801a87e0292e0ed93065f61283cb9e | b4a98edc9b025591254a155af5572a09187a3647 |
refs/heads/master | <file_sep>// 带头结点
void InitList(LinkList &L)
{
L = (LNode*)malloc(sizeof(LNode));
if(!L)
exit(OVERFLOW);
L->next = NULL;
}
void DestroyList(LinkList &L)
{
LinkList p;
while(L)
{
p = L->next;
free(L);
L = p;
}
}
void ClearList(LinkList L)
{
LinkList p = ... | 17532e63277f4adb19b85a7f72a9af18d843946c | [
"Markdown",
"C",
"C++"
] | 65 | C | HDY20171130/DataStruct | baeb0b39934ff78f5f837d14c758857036887b10 | 67c03cc462e73dd6c68304edd456f83194becb51 |
refs/heads/master | <file_sep>import React,{Component} from 'react';
import {Text,ScrollView} from 'react-native';
import axios from 'axios';
import AlbumDetails from './AlbumDetails';
// Make a component
class AlbumList extends Component{
state = { albums: []};
componentWillMount(){
fetch('https://rallycoding.her... | 50d194aa046793905cf209b05cbb7511cca93254 | [
"JavaScript"
] | 1 | JavaScript | shailendra93/react-native | 19dc0d00a11345d0fe98db0bf150a10261914d71 | 90dfb629b9b9f5164a03265d9d42341fd53c7ec8 |
refs/heads/main | <file_sep># SpringSecurityDemoBike
Spring Securit yDemo Bike
<file_sep>package com.educacionit.bike.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.educacionit.bike.models.Usuario;
public interface UsuarioRepository extends JpaRepository<Usuario, Integer>{
//modifi... | 505c9f8c7aab15010fd33a9869c33a37ce656a31 | [
"Markdown",
"Java"
] | 2 | Markdown | alexdeassis7/SpringSecurityDemoBike | 28a5e441b8c4643c1fe16245752b9f3ab336663d | a2f007ee572d2126aae73a78194af312d372ce02 |
refs/heads/master | <file_sep>package br.com.rd.ecom.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import javax.persistence.criteria.CriteriaBuilder;
import java.math.BigDecimal;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "tb_pedido_item... | e01c714ad268c2acc63618cc69b1ab3aeddaebf0 | [
"Java"
] | 10 | Java | PrietoLucas/JavaSpringAPI | c6bb6219a3a6d02f556eb8e7da08eca0c92afda4 | 4a9bb6e10965a7a5c3f2bbd6f98072cc941d5071 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProyectoNuevoRegistro.Entidades;
using ProyectoNuevoRegistro.DAL;
using System.Linq.Expressions;
namespace ProyectoNuevoRegistro.BLL
{
public class RolesBLL
{
public st... | 64981381b9168f4fac3ec954ad858596bbf71d51 | [
"C#"
] | 3 | C# | Anneury/RegistroNuevo | 65c5ed02d1c0a75378ca9b81686f6511e7148af3 | 0572a515520d4871761c5ee92dab564b2bcc7f1d |
refs/heads/master | <file_sep># EVENT SOURCING
```
Given
[Events in ARRAY]
When
Single-Command
Then
[Resulting Event(s) ARRAY]
```
## 1
```
Given
[ GameCreated ]
When
Place(0,0,X)
Then
[ MovePlaced ]
```
## 2
```
Given
[ GameCreated, Placed(0,0,X) ]
When
Place(0,0,Y)
Then
[ IllegalMove ]
```
## 3
```
Given
[ GameCreat... | 1cc3a5834920b6081250bcf564224c0917ecdf56 | [
"Markdown",
"Shell"
] | 9 | Markdown | elmaratlason/week2 | 507c2909c234324fe8578704028d24c6dc769a8e | 58812ede0c095df74a7dfb776cae6bf08bd8c591 |
refs/heads/master | <file_sep>arthurius
=========
Silly game with shuriken shooting goblins, a shuriken shooting old comic, and a prince with a quest.
<file_sep>package gameframework.base;
public interface MoveStrategy {
SpeedVector getSpeedVector(Movable m);
}
<file_sep>package gameframework.game;
import java.awt.Graphics;
import jav... | 804da854390b85a34296ea759969ac44082e788a | [
"Markdown",
"Java"
] | 17 | Markdown | grdscrc/arthurius | 4f21e12c7427c1a1e3b30133ab3223e2f277c5c5 | c1b6118cb72401af246e13169216aaaf7c69610e |
refs/heads/master | <file_sep>from models.ptt_user import PttUserModel
import os
import setting
class PttUser():
def __init__(self, id):
self.id = id
self.acc = os.getenv("ptt_acc")
self.pswd = os.getenv("ptt_pswd")
def get(self):
user = PttUserModel(self.id, self.acc, self.pswd).get_user()
... | 7e7a2186b027adde4ab7e0111e1e2fa01eb6b945 | [
"Markdown",
"Python",
"Text"
] | 6 | Python | ewanhohou/PttData | f7b7cc8828899cbb7ac790488e00533319669055 | 8269c96b1cf519d2317fe2ca3b1ae6486e4e658c |
refs/heads/master | <file_sep>import os
import sqlite3
import datetime
import logging
from selenium import webdriver
###########
# Globals #
###########
YEAR = '2014'
TYPE = 'Individual HSA'
CREATE_DATABASE = True
COUNTIES = ['Carson City', 'Elko', 'Nye', 'Washoe']
DATABASE = 'data_{0}_{1}.sqlite'.format(YEAR, TYPE.replace(' ', ''))
... | 7fce3f20d6227c2a8c634da8cf6a158cbe61c9ec | [
"Markdown",
"Python",
"Text"
] | 3 | Python | mjhea0/healthrates-scraper | b301aec82566299240789915cc57c72edd31dfbd | f799bf55d189c0db994daabf3d90b75ed46b7c9c |
refs/heads/master | <file_sep>def valid_move? (board, index)
return true if index.between?(0, 8) && position_taken?(board, index) == false
end
def position_taken? (board, index)
return false if board[index] == " " || board[index] == "" || board[index] == nil
true
end | 6c21975ba53016582e7e86961e25f3fcec8149d0 | [
"Ruby"
] | 1 | Ruby | Astrodynamo/ttt-7-valid-move-online-web-sp-000 | 3518d34290a24edda1178bdf3a0e3dccd14cd7d6 | 1013b1427fe22bd0c3d508f9c7d34294f6f01822 |
refs/heads/master | <repo_name>ionut-banu/JavaCodeWars<file_sep>/MoleculeToAtoms/README.md
# Molecule to atoms
For a given chemical formula represented by a string, count the number of atoms of each element contained in the molecule and return an object (associative array in PHP, Dictionary<string, int> in C#, Map<String,Integer> in Java... | 55a2d9782f07f24fc16efc66a73de13b097875b0 | [
"Markdown",
"Java"
] | 16 | Markdown | ionut-banu/JavaCodeWars | 6b9e8e7ea4da11af7849d6836fedbbed3b06cd50 | 71f08dd1dba98bdf66d4a45dfc870864fee3abd9 |
refs/heads/master | <file_sep>class Lib {
constructor() {}
method() {
return true
}
}
export default Lib
<file_sep>[](https://badge.fury.io/js/project-name)
ProjectName
... | d5e2c7c0cff6947272a5bd9d2e3b2225cebce081 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | jaysalvat/boilerplate-js-lib | d039869c07b11c6e27889b9bd47a0a1e45554bad | 9e232ca2ab589d6be5d984b8925331280ce9b43b |
refs/heads/master | <repo_name>romische/asm-exos-lea<file_sep>/main_aout_2015_Q3.cpp
#include <iostream>
extern "C" int val(int[],unsigned, unsigned=0);
int main() {
int v[4] = {1,5,2,4};
unsigned n = 4;
std::cout << val(v,n) << std::endl;
return 0;
}
| e529986129079d9bebc3904081deafc630561b64 | [
"C++"
] | 1 | C++ | romische/asm-exos-lea | bf0445716218f552db21480f0bf03433080916c6 | d03a65a0c9a8f9eff3af7604d250440d50f1f2f1 |
refs/heads/master | <file_sep># bash-pptp-auto-reconnect
Auto start/reconnect for vpn pptp
## Install client
```sh
apt-get install pptp-linux
mcedit /etc/ppp/chap-secrets
```
## Add VPN user
```sh
# Secrets for authentication using CHAP
# client server secret IP addresses
vpnconn PPTP pass *
```
```sh
touch /etc/ppp/peers/vpnconn... | 08f0fc50b5d70a629c7ec506472d77691914e850 | [
"Markdown",
"Shell"
] | 2 | Markdown | vladimirok5959/bash-pptp-auto-reconnect | ad58e4d6bef59df34825e3b0c6eb978a68612595 | 7118cd665ad4ede8ea1e1b0d4ccf54440ad30b10 |
refs/heads/master | <repo_name>MladenPetrov88/Rage-expenses<file_sep>/RageExpenses.java
import java.util.Scanner;
public class RageExpenses {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int lostGames = scanner.nextInt();
double headsetPrice = scanner.nextDouble();... | 330e982ea5160fae8c04ca4371c9d24e03dedd47 | [
"Java"
] | 1 | Java | MladenPetrov88/Rage-expenses | e64d1476b7ad76d4610411c582a1a09d9764f5da | 72df3c73cba69ac0c4e0f60011f721875d961c3d |
refs/heads/master | <file_sep>'use strict';
var studentApp = angular.module("studentApp", ['ngRoute']);
studentApp.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'list.html',
controller: `indexCtrl`
})
.when('/create', {
templateUrl: 'create.html... | b2ac8ce9aa04b545c853e04da32f014fe246b856 | [
"JavaScript"
] | 1 | JavaScript | hoangvu5393/yii_system | 83feedcb5651dd9a5c9a2096a3956c535b3f1a70 | 5b142b32a875f1a99e82c124849d4a4f98e51fe7 |
refs/heads/master | <file_sep>import React from 'react';
import './App.css';
import Amplify from '@aws-amplify/core';
import { AuthState, onAuthUIStateChange } from '@aws-amplify/ui-components';
import awsconfig from './aws-exports';
// import { withAuthenticator } from 'aws-amplify-react';
import telemedicineLogo from './images/telemedi... | f9e98b14e874207914ac3383759b8036646d9a87 | [
"JavaScript"
] | 1 | JavaScript | jodipatt/amplifyapp | 42963ee67557198a26dc8a2f003521244402c949 | 1102500d39f259314d99b83062a412096360b4e0 |
refs/heads/master | <repo_name>wuRDmemory/Cpp_Util<file_sep>/include/util.h
//
// Created by ubuntu on 18-4-29.
//
#ifndef UTIL_UTIL_H
#define UTIL_UTIL_H
#include <vector>
#include <string>
#include <boost/filesystem.hpp>
#include <iostream>
namespace u_util {
std::vector<std::string> list_dir(const std::string& path, const std::s... | ea9ffaed945b2d65455d3c9f2be1c729eb617be4 | [
"Markdown",
"CMake",
"C++"
] | 6 | C++ | wuRDmemory/Cpp_Util | 717c837aa97ced32e18de1c450e2c114d9033996 | 831dc003c7a3783b9d315e6e855f6a1372b9fffb |
refs/heads/main | <repo_name>lana0911/server<file_sep>/s1.py
from os import truncate
import numpy as np
import cv2
import socket
import threading
import time
from threading import Timer
# from socket import *
import jpysocket
import base64
import time
#client連進來後會在這
def classfly(client_executor, addr):
print("welcome ... | 424c02f943af4dad163d597227197281e599a567 | [
"Python"
] | 1 | Python | lana0911/server | a0d45d9d0b17763a0421514b673d47d2a4a0c4af | fe01a108dac655b6c1509db6d925d51db7c3296a |
refs/heads/master | <repo_name>PCreations/SocialConnect<file_sep>/Controller/SocialConnectController.php
<?php
App::uses('SocialConnectAppController', 'SocialConnect.Controller');
App::uses('Router', 'Cake/Routing');
class SocialConnectController extends SocialConnectAppController {
const GOOGLE_CONNECT_URL = 'https://www.google.com/a... | 8fb3a6a472e56d8b6557bc11c93aefc7aed0d5d7 | [
"PHP"
] | 11 | PHP | PCreations/SocialConnect | 49c2f4615c04fd85c4bd6a652e1fcab0a18d6d62 | 55db606a6bccb9fc3a9fe31c1ac11ed52b1db588 |
refs/heads/master | <repo_name>Zentryn/Ball-Game<file_sep>/Ball Game/MainGame.cpp
#include "MainGame.h"
// Some helpful constants.
const float DESIRED_FPS = 144.0f; // FPS the game is designed to run at
const int MAX_PHYSICS_STEPS = 6; // Max number of physics steps per frame
const float MS_PER_SECOND = 1000; // Number of milliseconds in... | 234ef6d67675b26d393fecf5a7a6bf3e11083daf | [
"Markdown",
"C",
"C++"
] | 8 | C++ | Zentryn/Ball-Game | ff321909b353dba6877bb1788aaed7372c655286 | 8a3dd0299843b4adee9db33a78310ab28fecc977 |
refs/heads/master | <repo_name>JTan04/Final-Project-Computer-Graphics<file_sep>/src/main.cpp
/*
Base code
Currently will make 2 FBOs and textures (only uses one in base code)
and writes out frame as a .png (Texture_output.png)
Winter 2017 - ZJW (Piddington texture write)
2017 integration with pitch and yaw camera lab (set up for te... | 66766e9c80fd4b94e02f023ea8a61b2839c71ab5 | [
"Markdown",
"C++"
] | 2 | C++ | JTan04/Final-Project-Computer-Graphics | cbad54996feb7497feece60b072421302746d073 | 276f63abb0653964bf412486fe923cf092e3f57f |
refs/heads/master | <file_sep>/* What are the three longest trips on rainy days? */
-- Setup rainy days query
WITH
rainy
AS (
SELECT Date
from weather
WHERE Events='Rain'
)
-- Main Query
SELECT
trip_id
,duration
fROM trips
JOIN rainy ON rainy.Date=date(trips.start_date)
GROUP BY trip_id
ORDER BY duration DESC
LIMIT 3... | f9208caa3170debce0127ea89c98cfb7e6efd047 | [
"Markdown",
"SQL",
"Python",
"YAML"
] | 7 | SQL | madderle/Data-Science-Bootcamp | ce5277b69d58b4e1033f83829d9b6a9a6c060eaa | 0c6f1a3ebe986bf634f96027782ecaef0819b5c9 |
refs/heads/master | <file_sep>#randomly generates 10000 X-coordinates
x=runif(10000)
#randomly generates 10000 Y-coordinates
y=runif(10000)
#generates the distance of point (x,y) from centre(0.5,0.5)
distance=sqrt((x-0.5)^2+(y-0.5)^2)
#finds the proportion of points inside the circle to the total number of points or points ins... | 3e26742762a1870b55b25f7cd708159645659d3a | [
"R"
] | 1 | R | dixitomkar1809/Monte-Carlo-Estimates-with-R | b540714ffe29d84f8d2527fa151e1d2af0907686 | da145441776210b9d1fab113a21316f475d719c0 |
refs/heads/master | <file_sep>__author__ = 'rohitanand'
width = int(input("Enter width : "))
height = int(input("Enter height : "))
print("Perimeter is : " + str(2*width + 2*height))<file_sep>__author__ = 'rohitanand'
print ( ((5-2)**2 + (6-2)**2)**0.5 )<file_sep>__author__ = 'rohitanand'
print (2*3.14*8)<file_sep>__author__ = 'rohi... | c336881ed9e8651994a371c60b6a44fda67d0724 | [
"Python"
] | 15 | Python | dnanatihor/Coursera | 9834d2285c00df1ced6e0246310f494f54a86817 | 3b88f03f97e982797accd5883fe5081af6379da1 |
refs/heads/master | <repo_name>georgianaursachi/TW<file_sep>/Scholarly HTML/Scholarly HTML.html
<!DOCTYPE html>
<!-- saved from url=(0031)http://scholarly.vernacular.io/ -->
<html lang="ro">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>C... | ac236d7afce62a2d35787067de04a3b897ff62cc | [
"JavaScript",
"Markdown",
"HTML",
"PHP"
] | 15 | HTML | georgianaursachi/TW | 8020d256b7b6a46c0c5c266951551c62d213b9e9 | 925915f93d4f6bcf8aac19bb92edfeab804b15c6 |
refs/heads/master | <repo_name>kamil-iskra/EdytorXML<file_sep>/README.md
# EdytorXML
My first Windows 8 app

<file_sep>/EdytorXML_New/Plik.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Xml.Linq;
using Windows... | 6a942a5de78c6dbf2023cd1b9cf24b667df88ba7 | [
"Markdown",
"C#"
] | 2 | Markdown | kamil-iskra/EdytorXML | 5d10de0897fc9c5ea40e4cec8f19e68a80db627d | b4541d65319d8b3310d6e10ad52c292a7063b2f7 |
refs/heads/master | <repo_name>Hunter-Dolan/Midrange<file_sep>/demodulation/trainer.go
package demodulation
import "math"
type trainer struct {
demodulator *Demodulator
carrierActivePowers []float64
carrierInactivePowers []float64
carrierActivePowerAverage float64
carrierInactivePowerAverage float64
}
func (t *trainer) train... | 418946301558df2ddf4e67edd5dbb931505764c9 | [
"Markdown",
"Go"
] | 33 | Go | Hunter-Dolan/Midrange | 6529675f6320e54926c8dc142eed8fb13916265a | 80a8eec7248308cf7ecbcfdd17b7b68166a31752 |
refs/heads/master | <file_sep>'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ReactWX = require('../../ReactWX');
var _ReactWX2 = _interopRequireDefault(_ReactWX);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// eslint-disable-next-line
var now =... | 90206b3c4a5d8e3ccc0e12cede2cbe0e681af97a | [
"JavaScript"
] | 9 | JavaScript | gandao/anu | 26d9ec5de75985c8fe867cf97802c645ea81ff5f | 80b02875fcd9f0df77c15e19f58c2ca99dd20c08 |
refs/heads/master | <file_sep>(function () {
/**
* Gives app undo/redo capabilities
*
* currently history doesn't block on actions
* blocking on actions helps with correctness as the cost
* of responsiveness which is a costly trade off.
*/
angular.
module('undo').
service('history', history).
value('maxHi... | 61bbc3b3ab0aec713249f8eff40670f773fb366e | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | kwoolfm/angular-undo.git | a023f48e3ab1a8d9abdaecb330919889167a315f | 7e8b69ec47ecadefb72de0dce052e31c6786a405 |
refs/heads/master | <file_sep>import cPickle
import numpy as np
from collections import defaultdict, OrderedDict
import theano
import theano.tensor as T
import re
import warnings
import sys
import pdb
def ReLU(x):
y = T.maximum(0.0, x)
return(y)
def Sigmoid(x):
y = T.nnet.sigmoid(x)
return(y)
def Tanh(x):
y = T.tanh(x)... | c3cea30ddd469aad137a2012617e6305209826f3 | [
"Python"
] | 1 | Python | LucasEstevam/CNN_sentence | fa9dbdd622ea3555e1eaff13fe4799eb1ec5dd80 | 5c61fc561094c2cc0988c1db23c433b69c2df7a1 |
refs/heads/master | <repo_name>Beatz748/cpp02<file_sep>/ex01/Fixed.hpp
#ifndef FIXED_HPP
#define FIXED_HPP
# include <iostream>
# include <cmath>
class Fixed
{
private:
int value_;
static const int bits_ = 8;
public:
Fixed(void);
Fixed(const int val);
Fixed(const float val);
~Fixed(void);
Fixed(const Fixed &right);
... | d9e89574f682e387510b4146c60def152adaff69 | [
"C++"
] | 3 | C++ | Beatz748/cpp02 | 5346a88a6583508a0ce5d0aa5e8b25a1718163f8 | f26b13c245f1aad49a7a58be209b9b444ac62924 |
refs/heads/main | <file_sep>package Week3Day1Assignment;
public class StudentInfo {
// overloading
public void getStudentInfo(int id) {
System.out.println("ID of the student: "+id);
}
public void getStudentInfo(int id,String name) {
System.out.println("ID of the student: "+id);
System.out.println("Name of the student:... | a5d05943c0d07d7b5785aa2bdf940a8c8f555f7d | [
"Java"
] | 1 | Java | RashmiNedumaran/Week3Day1Assingment | 6d04294b2327aea31cabe18e9106d70fb614eadf | 34b3de0b16d2d8b73f459169cc0f74f3a81f59a7 |
refs/heads/master | <file_sep>module.exports = function longestConsecutiveLength(array) {
if (array.length == 0) {
return 0;
}
let newObject = {};
let maxConsecutive = [];
function convertToObject () {
array.forEach(element => {
newObject[element] = element;
});
}
function searchNeighborPLus (e) {
le... | d73fcd34bf9e88bfb7d1adbc36ed45dceaffb854 | [
"JavaScript"
] | 1 | JavaScript | SergeySkakun/longest-consecutive-sequence | 168670f025a9dd5c406d707ca521d6fcc89a1f6b | b9ed0361d0d2e6765b42adf832446555ae6d25ba |
refs/heads/master | <repo_name>NodyHub/brix-provision<file_sep>/02_k8s/init.sh
#!/bin/bash
# Bootstrab K8s
sudo kubeadm init --pod-network-cidr=10.10.0.0/16 --apiserver-cert-extra-sans=k8sm1.home
# Apply Network Overlay
kubectl apply -f https://docs.projectcalico.org/v3.9/manifests/calico.yaml
# local-path-storage with auto provisionin... | 42e0cea4625dd33cb734ed55de22e4ebd7498c5d | [
"Markdown",
"Shell"
] | 5 | Shell | NodyHub/brix-provision | 98704d62ba6c8b85d3316d6e1028d932af18bfec | e1d6a5930d875d664b27060c7c38139d0bf37b3e |
refs/heads/master | <repo_name>freshmemes/internetspeedsasset<file_sep>/script.R
# Messing around with some different data viz on internet speeds.
# Idea 1. Line graph of top 5 current fastest countries and the US, average speeds plotted over time.
# Idea 2. Similar to Idea 1, but with top 5 fastest and top 5 slowest U.S. states.
# Ide... | 59c77b6ccf13edab99fc60d01320b230d3b18a9d | [
"R"
] | 1 | R | freshmemes/internetspeedsasset | a53ddbdcee58f071c6404303d86101b394cc21b7 | acab22a83c03353e9eb7e8f772e8ea7b18514d78 |
refs/heads/master | <file_sep>import os
import urllib.request
from flask import Flask, flash, request, redirect, url_for, render_template
from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileRequired, FileAllowed
from wtforms import SubmitField
from flask_bootstrap import Bootstrap
from werkzeug.utils import secure_fi... | 7847b2035d6b88cf6a296ba641cb13dcdc79d8d6 | [
"Markdown",
"Python"
] | 3 | Python | LudovicBrossard/Dog-Breed-Predictor | 4c9e903e984076855cd9489f34e53185e860b66a | d76046d95d95caf4d375e09e0f55d8c1d63315f4 |
refs/heads/master | <repo_name>epixelcz/hltv-api-json<file_sep>/index.js
const { HLTV } = require('hltv');
const express = require('express');
const app = express();
//console.log(HLTV.getTeamRanking({year: '2018'}));
/* LOGIN */
app.use((req, res, next) => {
const auth = {
login: 'api',
password: '<PASSWORD>'
};
const b64auth =... | c5271e5fff6958fa77f3f20b5085ac1106609ef7 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | epixelcz/hltv-api-json | fdd1299eb47cb1439f64e842744d6ab045d88e55 | e820b0c81bf0e756aba791079418f48f72712dea |
refs/heads/master | <repo_name>cannelflow/MyCodeLearning<file_sep>/The-Complete-Web-Developer-Course/08 PHP/10/script.js
/*globals $:false */
$("form").submit(function (e) {
var error = "";
if($("#email").val() === ""){
error += "<p>Email Field Is Required !</p>";
}
if($("#sub").val() === ""){
error += "<p>... | 0c8729f2a1bb262235419c0516c31edd4141b048 | [
"JavaScript",
"Markdown",
"PHP"
] | 135 | JavaScript | cannelflow/MyCodeLearning | 89ab293ff37ec023058056d11aefd41e933aff99 | 16a39944cde953b9baac94328cabc420fda0b634 |
refs/heads/master | <repo_name>yortus/monotask<file_sep>/src/index.ts
import create from './create';
export default {create};
export {create};
<file_sep>/src/create.ts
import AsyncLocalStorage from './async-local-storage';
/**
* Creates a new serialised task queue. Use the returned function to
* wrap all functions whose calls ... | beb1a73aa5aef25b61d0213f5f42cb21c4dddb70 | [
"Markdown",
"TypeScript"
] | 6 | TypeScript | yortus/monotask | b8c8ac2d7a03f3f20f4865fbc4af02c5884345f5 | 8a386600cb8c49c5bd9517a05234a9aa4079c746 |
refs/heads/master | <file_sep>/*
export function someMutation (state) {
}
*/
// export const updateMessage = (state, payload) => {
// state.nav_message = payload
// }
// export const updateActiveLetters = (state, payload) => {
// state.active_letters = payload
// }
export const setLanguage = (state, payload) => {
state.language = pa... | df414f1bb6f372368480845f2b597f84ec6d362e | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | jpperlm/Blocks | 238702fa51a5ea6065a1ded213fd75b836bdd670 | 194748217895d973e5bcd95cd8f1b72b1bc93b09 |
refs/heads/master | <repo_name>powellquiring/bigimage<file_sep>/cfm/cformation/master.py
#!/usr/bin/python
from troposphere import (
GetAtt, Join, Output,
Parameter, Ref, Template, FindInMap
)
from troposphere.cloudformation import Stack
from awacs.aws import Allow, Statement, Action, Principal, Policy
from awacs.sts import Ass... | 5c05c65ce0a891625a994ed4fff83c010c0d48b6 | [
"Markdown",
"JavaScript",
"Python",
"Text",
"Shell"
] | 26 | Python | powellquiring/bigimage | 5a5367177789e910e862de4baecb12c7cf0d8afc | f4ec2937c19f442963cf3c5eaf6a7e09670ad7a4 |
refs/heads/master | <file_sep>package com.salemkb.sampleapp;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import java.util.List;
import butterknife.B... | e5ba8b4f4f68035486df9a00513f088100544154 | [
"Java"
] | 2 | Java | Salem-Kabbani/Paginator | 78d6250ed96bf1d697b7aaf8161fdff1817bbf26 | 8f3f0c6b2b94e37b89960b6f3a980e2a970fde27 |
refs/heads/master | <repo_name>yuhsuanhuang-tw/JavaTutorial<file_sep>/JavaBasicTutorial/src/pers/sample/tutorial/files/FileWriterWithBomUtf8Example.java
/**
* @author <NAME>
*
* Create the File with BOM UTF-8 Header
*
*/
package pers.sample.tutorial.files;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutp... | d2059a9a5297173d1d8b50d6610b74d50d814a31 | [
"Java",
"Maven POM"
] | 22 | Java | yuhsuanhuang-tw/JavaTutorial | 53405879b0031d763806ca2ede0202b9c45c5958 | df25c0b72ce3552eaff997b4d443ede81a531b8a |
refs/heads/master | <file_sep>#REQUIRE:download_cells.py
#Script is used to output where the logs are located for each server
resource = '/home/rameshgummada/PYTHON_SCRIPTS'
import sys
import re
sys.path.insert(0, resource)
from select_cells import SelectCells
from log_report import LogReport
from html_render import RenderHTML
#Grab the ... | 5a4f2f437e0837c34808267e7048413963e344ec | [
"Python",
"Shell"
] | 3 | Python | rameshgummada/Unix_ex | c842531f2dd2a3578588fe8323cf5ff35a3f12ca | 16893a12c3adbe5d424927f980066a25f9b6f83e |
refs/heads/master | <repo_name>dairafelix/idcard<file_sep>/app.js
function idCard() {
//First Name
let firstName =
document.getElementById("firstName").value;
console.log(firstName);
document.getElementById("cardName").innerHTML = firstName;
//Last Name
let lastName =
document.getElementById("lastName").val... | 7061c4b50c5708ed76a65230ed5261f1b0b73a4a | [
"JavaScript"
] | 1 | JavaScript | dairafelix/idcard | af84f75f67fb4b019c4df1957077689bfe2b811f | 963eb291b3a07ac226bcdbafc7e803ba1e17c30f |
refs/heads/master | <repo_name>AnosAhmad/Array-Peak-value<file_sep>/README.md
# Array-Peak-value
<file_sep>/peak.cpp
#include<fstream>
#include<iostream>
#include <string>
#include <vector>
#include<math.h>
using namespace std;
//Name: <NAME>.
//FindPeak Algorithm in 1D.
std::pair<int, int> findpeak(vector<int> arrayofint, i... | 042474177b963621433683c0a27abdbc5ab38d89 | [
"Markdown",
"C++"
] | 2 | Markdown | AnosAhmad/Array-Peak-value | 908ef129a17f22d8e694e9efbd290a393949e66c | d12727747448fc17908ee4205a9ca5fdb4a7f02c |
refs/heads/master | <file_sep>import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { themeSettings, text } from '../lib/settings';
class FooterMenu extends React.Component {
constructor(props) {
super(props);
this.state = {
isActive: false
};
}
isActiveToggle = () ... | ac39ebea53d9f81e0c9413e10b2735fa25479b5f | [
"JavaScript"
] | 2 | JavaScript | cloudstrife9971/Haikyustore | 3d0dbbd5024f8c0d219e0edc20fc8f777fcf4b02 | aae1588a751020386e79e86f19d2b544f615d3c4 |
refs/heads/master | <repo_name>leungjch/procgen-sprite-cellular<file_sep>/js/sketch.js
var WORLDWIDTH = 4; // number of tiles (cells)
var WORLDHEIGHT = 8;
var SPRITEWIDTH = WORLDWIDTH*2+2; // include two border outlines
var SPRITEHEIGHT = WORLDHEIGHT+2;
var SHOW_GRID = true;
var framerate = 0.5;
var WIDTH, HEIGHT, GRIDSIZE;
if (SHOW_G... | de717b3a8a97c346e6acfeb03088bda2ff3e6fe2 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | leungjch/procgen-sprite-cellular | 743c0bb722acae90b1de4014a052d0f31479464b | ba72334b5b6a6428c615e49a00d45d00c08f3554 |
refs/heads/master | <repo_name>Cabe/Christmas-Lights<file_sep>/XmasLights/lights/lights.ino
#include <Adafruit_NeoPixel.h>
#define Count 150
#define Pin 6
Adafruit_NeoPixel strip = Adafruit_NeoPixel(Count,Pin,NEO_GRB + NEO_KHZ800);
const int buttonPin = 5; // the number of the pushbutton pin
int buttonState; // the cur... | 4c956c97eaed47b9ace5294a970250ca03314595 | [
"C++"
] | 1 | C++ | Cabe/Christmas-Lights | c1efd5dc5903f07664870a3c0cde438961130469 | 47fc60ca96ddad9015684e3789cd3ded6f238361 |
refs/heads/master | <file_sep>package controller;
public class CeshiController {
}
<file_sep>package service;
public class ceshiService {
}
| 1002021ae3e1a840096fa47b6f4904f485e5707b | [
"Java"
] | 2 | Java | zhiguangsong5175/hanjialin | 686a083fcfafde53eb87ff5845b4e278e2be29ed | 9c6d36e0018074b489493673a3549c6b15433f64 |
refs/heads/master | <repo_name>liorbentov/nissix-plugins<file_sep>/plugins/prettier/src/index.ts
import { addDependecies, getPackages, run } from '@nissix/plugins'
export async function execute() {
// get all packages in repo
const packages = await getPackages()
// check if prettier is already installed
await Promise.all(
pac... | 57d07d17168387dfc05f3b1e7b6ab62cec1b146b | [
"TypeScript"
] | 1 | TypeScript | liorbentov/nissix-plugins | abd30e5ef0d9fe337473766f9ef9256484a0f9d6 | dabecd83f328fd176192c6e65592bf7a3dda271b |
refs/heads/master | <file_sep>library(sqldf)
# Set the appropriate locale, so the x-axis of this plot will be in English (not in my personal locale, which is Russian)
Sys.setlocale("LC_TIME", "en_US.UTF-8")
# Read required data
data <- read.csv2.sql(
'./household_power_consumption.txt',
sql="select * from file where Date = '1/2/200... | 59c4fade79f21b34bead3518160fe514aed0c4aa | [
"R"
] | 3 | R | agap/ExData_Plotting1 | e0c78c0554df6f8a6378511d2f285e451bef0bba | e34c070ed2829d860726d5f720795ba4263e8dba |
refs/heads/master | <repo_name>woowonjin/Computer-Architecture_ITE2031<file_sep>/Project1/Assembler/assemble.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLINELENGTH 1000
int getAddress(char*);
int readAndParse(FILE*, char*, char*, char*, char*, char*);
int isNumber(char*);
static char* inFile;
int main(int arg... | 8f1eff3ef6bcd53512ec035aca54986df4103685 | [
"C"
] | 2 | C | woowonjin/Computer-Architecture_ITE2031 | 5812d8ba73ce6e8c8c069f3fc572ccf29af5f0ca | d08bca07438654e48ef8921a7729bcab963b9acd |
refs/heads/master | <repo_name>nardy70/ivascor<file_sep>/ivascor.js
function Ivascor(tot, iva) {
value = (tot*100)/(100+iva);
return 'La cifra di ' + tot + ' scorporata del '
+ iva + '% ' + 'è di: ' + value.toFixed(2)
};
exports.ivascor = Ivascor;
<file_sep>/README.md
Function for VAT Spin-off.<br>
Use:<br>
var ivascor = require("i... | 9e648b9b07b072b23c5fa9e9d813a3fcc67fec00 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | nardy70/ivascor | 74929212412db1e48a56b29291021b293f6f9473 | 47f1b3e5f7da984a16fca24b9354edf19c60f4e0 |
refs/heads/master | <file_sep>package com.lzb.service.mapper;
import com.lzb.admin.bean.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
@org.apache.ibatis.annotations.Mapper
public interface RoleMapper extends Mapper<Role> {... | b5b5114d02205a0a97bb325c4a9673ab7dacfec2 | [
"Java",
"Maven POM"
] | 11 | Java | 2195319856/crowd-financing-parent | 7fafc6da67d9d33f94cf3ab15d1a1d6821f8adab | d8b21805dc71475397b7fa4acf0484c216478a56 |
refs/heads/master | <file_sep>library(yhatr);
model.require <- function() {
library(topicmodels);
library(tm);
}
model.transform <- function(df) {
df
}
model.predict <- function(df) {
corpus <- Corpus(VectorSource(df['text'], encoding='UTF-8'));
dtm <- DocumentTermMatrix(corpus, control = list(removePunctuation = TRUE,
... | 333ad31ece93de0a1d06bbc75f73d4ed3c553472 | [
"Markdown",
"R"
] | 3 | R | cfusting/aparticletopics | 65dc6236b82f3cee590ceec4e63e1d5d3a2a4305 | a6c10f96f8bc2b754192e13634e954717360e5f8 |
refs/heads/master | <repo_name>OlexandraSydorova/Lab1<file_sep>/src/lab1.java
import java.io.PrintWriter;
import java.util.Scanner;
import java.io.FileNotFoundException;
import java.io.File;
public class lab1 {
public static void main(String[] args) {
Scanner sym = new Scanner(System.in);
System.out.println("Для вводу... | c48f1f5dc892b8d8e4f3a19dc97d551c4b39ad94 | [
"Java"
] | 1 | Java | OlexandraSydorova/Lab1 | 6760943e0e7761c8c7cbacbad747105e14322fbe | b76be6f5a6d49bbccec646618e8976fb237554ea |
refs/heads/master | <file_sep>package Func;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
@SuppressWarnings("serial")
public class Canvas extends JPanel implements Runnable... | 3139625c3a3da701a20f29ac5c10d922c8f71d99 | [
"Java"
] | 7 | Java | your3i/MushiGame | a54cd80e4f4a6bf8fd7faf9d386eb827fc825ae5 | ec1215ced046caab4435368cbad6e682811ba394 |
refs/heads/master | <repo_name>Fukuda57/LifeColor<file_sep>/README.md
# アプリ概要
LifeColor
-> 日頃どのような行動をして1日を過ごしているかを習慣ごとに色付けして記録することで、直感的に自分の生活パターンを把握できる生活管理アプリです。
日頃の行動を 仕事(学校) / 自己研鑽 / 遊び&趣味 / 浪費 の4つに分け、時間を入力することで1日の中での行動の割合を色合いでグラフィカルに表示・管理します。
1週間や1ヶ月の記録を振り返った時に、日々の色合いの変化で自分の行動パターンの変化を瞬時に把握することができます。
# URL
<!-- これから -->
# GitHub
http... | a87974699b51b349219f03d111fb394c79a990d3 | [
"Markdown",
"Ruby"
] | 2 | Markdown | Fukuda57/LifeColor | b5b478d580bcb6cc660ce483843d96d19df40c76 | 6979233e24583f994d07f6a58c580e302a2fdd30 |
refs/heads/master | <file_sep>"""Módulo de controladores de partida."""
from itertools import cycle
from computadora import Jugador, Computadora
from tablero import Tablero, Jugada
class Partida():
"""Controlador de partida para un jugador"""
fichas = ["X", "O"]
tipos_partida = {"jugador_vs_computadora" : 0,
... | f875b4a0cb7ae071a62020340cb843a84cd78b0d | [
"Markdown",
"Python"
] | 7 | Python | abalbuena/tic-tac-toe | bab1d535b1c929590d974baa9704c26cd306a00a | 0956caf79756fd457ca3e368020beb60aace71f4 |
refs/heads/master | <repo_name>Kshitij0212/MyPlate<file_sep>/MyPlate_app/admin.py
from django.contrib import admin
from .models import FoodItems, SetGoal, Previous_records
# Register your models here.
class PreRecAdmin(admin.ModelAdmin):
readonly_fields = ('date',)
admin.site.register(FoodItems)
admin.site.register(SetGoal)
admin.si... | 1c9cd39dfe1c6f6a303090a136d4751125b1e97c | [
"Markdown",
"Python",
"HTML"
] | 12 | Python | Kshitij0212/MyPlate | 9ad7910c484ad4bcde4420424f4903fecda7a412 | caa7cdbfbf81f180bb412f2e09da7031bd3ddf67 |
refs/heads/master | <file_sep>//
// MenuTableTableViewController.swift
// SplitViewController_demo
//
// Created by Jess on 2015-11-05.
// Copyright © 2015 Jess. All rights reserved.
//
import UIKit
//the pages we will be using for the table of splitview
struct PageOption {
let displayName: String
let url: String
}
class MenuTa... | 492938b43ebb061052fefa8ac8141cfc8de271ad | [
"Swift",
"Markdown"
] | 4 | Swift | jtekenos/SplitViewController_demo | 822e623dc526d810adb6ed640ce4e0f69bfcf418 | 4d5194b5c1dc5625f58f162662bc2278bbce0327 |
refs/heads/main | <file_sep>var app = PetiteVue.createApp({
resources: [],
created: function() {
var self = this;
var resourceRegex = /\[(.+?)\]\((.+?)\)\|(.+)/;
axios.get('README.md')
.then(function (res) {
var data = res.data;
// Split the document into categories
var categories = data.t... | 2e52e46e0a553cb68967e0fda08a29e269b07b4a | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Gizmog/xiv-resources | c7f590d07c07da6da22cf678c4f5ddd26b28cf3b | e215a1c5cadca53404bfd0481540bac06bfde22e |
refs/heads/master | <repo_name>Belobobr/store<file_sep>/app/src/main/java/com/mixailsednev/storeproject/view/messages/chat/ChatFragment.java
package com.mixailsednev.storeproject.view.messages.chat;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.w... | f9008394c31e4359aa296e249bb9170f50e565f8 | [
"Java",
"Gradle"
] | 26 | Java | Belobobr/store | 58957783f6979a28979cd771b31b3ec9dc40f0a5 | 8c4546d5b412114d139d24159db079f4b164630c |
refs/heads/master | <repo_name>muasdev/BelajarPost<file_sep>/app/src/main/java/com/example/windows/aplikasipengaduan/ui/activity/DetailActivity.java
package com.example.windows.aplikasipengaduan.ui.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android... | e556b266f2459dca08ca07c22146d17f1a725984 | [
"Java"
] | 1 | Java | muasdev/BelajarPost | 0b4409a3adf1311887cbb2670d2f78114ccc004f | 9d641f2eac3c9684f794b08fb9a4ef024f06cdff |
refs/heads/master | <repo_name>Dhiraj404/C-Project<file_sep>/project.c
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
void primenumber(){
int i=1,j,s=0;
while(i<=1000){
for(j=2;j<=i/2;j++)
if(i%j==0)
break;
if(j>i/2){
printf("%d\n",i);
s++;}
i++;
}
printf("total=%d",s);
}
void array(){
int a... | 4a9d229ac2fbbed67d764528b4df49433182660c | [
"C"
] | 1 | C | Dhiraj404/C-Project | ba53999235538c6ef2ada10b8f32a0c037b382df | 421419da6afcec533c8476def4b832e6631771bb |
refs/heads/master | <file_sep>package com.codepath.instagramclone;
import android.content.Intent;
//import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appco... | 156fc7a023ec4b4782fd67d9196673176633fc54 | [
"Java"
] | 1 | Java | tanzil7/InstagramClone | a9314e582c6681d4d1a52a91c0fe381d77dcbafb | d16335ae461cd2b1ab024790d89209db31e958de |
refs/heads/main | <file_sep>using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using WebApplication11.Models;
using System.Data;
using System.IO;
using OfficeOpenXml;
namespace WebApplication11.Controllers
{
public ... | dd9a877531d9bfdaf8820588170e5f0c2d81c7bc | [
"C#"
] | 7 | C# | MariMGK/05-05-21 | 5fe0c3e9c7d7b260b2779b4fdd90ef1e780408dd | ec06313ab3ad22e5b592986f8929b6abe197e6d5 |
refs/heads/master | <file_sep>TARGET: slicz slijent
CC = cc
CFLAGS = -O2
LFLAGS =
slijent: slijent.o err.o
$(CC) $(LFLAGS) $^ -o $@
slicz: slicz.o err.o
$(CC) $(LFLAGS) $^ -o $@
.PHONY: clean TARGET
clean:
rm -f slicz slijent *.o *~ *.bak
<file_sep>/**
* <NAME>
* 321 150
* zadanie nr 3 z sieci komputerowych
* slijent.c
*/
#... | 978dc5f02a930ab6bd7f1ac16279406d20ec3149 | [
"Markdown",
"C",
"Makefile"
] | 4 | Makefile | Tom-Potanski/VirtualSwitch | 3c62caf41bb7c315be6bae787822a71d04746bed | e24bc5c8a9ac8d5a29aaf9fb16e00582b2ed75cb |
refs/heads/master | <file_sep>const express = require('express');
const mysql = require('mysql');
const app = express();
const PORT = process.env.PORT || 3000;
const connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: '<PASSWORD>',
database: 'wizard_schools_db',
});
connection.connect... | 7702423f975142ad87397b41852e082fdedeba5d | [
"JavaScript"
] | 1 | JavaScript | Dujota/express-example | 759df695e66bf2d76ea24a3e32dfc08b8a479f0d | 335df5bc9ac4cc4b57c45d8b1c269d4ab4b64c84 |
refs/heads/master | <repo_name>DevKumRos/PdfWriter<file_sep>/src/main/java/com/kumar/PDFReader.java
package com.kumar;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.AcroFi... | 24e31f9083e74165d9ac89b0b73f248774da9635 | [
"Java"
] | 1 | Java | DevKumRos/PdfWriter | cc1d5186e69265d1573771c9c613fb6e4ba6d7ff | 006393677243300505c480b540e480eb6342cf92 |
refs/heads/master | <repo_name>kpnetorians/junit-get-started<file_sep>/src/test/java/org/jbossoutreach/Alamo18Test.java
package org.jbossoutreach;
import org.junit.Assert;
import org.junit.Test;
public class Alamo18Test {
@Test
public void sampleTest() {
System.out.println("@Test - test_method_1");
}
@Test
... | 21c26ea90e308f6491117bfa968b869ebe3e86a3 | [
"Markdown",
"Java",
"Gradle"
] | 7 | Java | kpnetorians/junit-get-started | cc5bfbc11bbbadf34c9c6c62796b52fedc5454c1 | 0637118f2fc2871fe73fa4cd4e828626ca424988 |
refs/heads/master | <repo_name>jeffAmerson/FirstSpringWeb<file_sep>/src/main/java/first/ali/repositories/StudentsRepositories.java
package first.ali.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import first.ali.model.Students;
@Repository
public interface ... | 32d3aebe41323482b5c8f925e522ccf4d070e39a | [
"Java"
] | 1 | Java | jeffAmerson/FirstSpringWeb | eef07931ad834290ec146abed14aae4cd029e8ef | a39e74dfbc88a5bd50c83cf412583d5dfdc162d0 |
refs/heads/master | <repo_name>LuvMeReal/ComputerNetworkAssignment<file_sep>/Assignment 5/作业5.md
#### P5
用10101010100000除以10011,得到1011011100,余数得R=0100
#### P6
算法相同
a. 除法运算后得1000110000,余数得R=0000
b. 除法运算后得0101010101,余数得R=1111
a. 除法运算后得1011010111,余数得R=1001
#### P7
a. 如果0<=i<=d+r-1,第i位字节反转,单比特差错表明接收到的数据为K=D*2r XOR R+2i。所以我们用K除以G时余数一定不... | b88c1a9527cf6159aff671a79cf8648ef01da10e | [
"Markdown",
"Python"
] | 6 | Markdown | LuvMeReal/ComputerNetworkAssignment | 4cf3697aacdc0952adf3b7a28d2a586c88ebbb88 | 734432e84291ae0d0b4772a322637d099c5bec65 |
refs/heads/main | <file_sep>import { Component, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { AdminComponent } from './admin.component';
import { CategoriasComponent } from './categorias/categorias.component';
import { ClientesComponent }... | 4d651aa5a489e728629d1324d444b310068825d6 | [
"TypeScript"
] | 30 | TypeScript | fla1004/front-pedidos | 516f92652735ef81ed6ba482865bb522beb88bbe | 976533a3e31a48f47f0dc82526a5b14330f8f8b0 |
refs/heads/master | <repo_name>afoals/HoffVsZombies<file_sep>/main.js
function BufferLoader(context, urlList, callback) {
this.context = context;
this.urlList = urlList;
this.onload = callback;
this.bufferList = new Array();
this.loadCount = 0;
}
BufferLoader.prototype.loadBuffer = function(url, index) {
// Load buffer asynch... | cecd1fb8328669e499605c0019c5871560a870c3 | [
"JavaScript"
] | 1 | JavaScript | afoals/HoffVsZombies | caa1795f765848f43073d4a3bf51a82bd3d72f2a | 62c2a3cefe989b52261ba2f8ff2eb231b80988ef |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.