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/main | <repo_name>fengjixuchui/Quick-Unpack<file_sep>/EngineSVM/svm.h
#ifndef SVM_H
#define SVM_H
enum
{
MSR_EFER=0xc0000080,
MSR_VM_CR=0xc0010114,
MSR_VM_HSAVE_PA=0xc0010117
};
enum
{
GENERICINTERCEPT1_INTR=1 << 0,
GENERICINTERCEPT1_NMI=1 << 1,
GENERICINTERCEPT1_SMI=1 << 2,
GENERICINTERCEPT1_INIT=1 <<... | a8c4de0d080838c5e2cadf41db75261e8bd37c1b | [
"C",
"C++"
] | 26 | C | fengjixuchui/Quick-Unpack | b5589495c7d7515a0629c3119eea33157f7cce59 | 83deb7af294db881deb8b97be74484eb4150e1d9 |
refs/heads/master | <repo_name>hyerania/CSCE315-Game-Project<file_sep>/Intellij/src/Server/MainServer.java
package Server;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Properties;
/*MainServer allows for multiple clients to ... | efcddf68fd830bb4e56aa80e355d196b24c8da52 | [
"Markdown",
"Java",
"INI"
] | 7 | Java | hyerania/CSCE315-Game-Project | 8ba4c3dbe8b1616162635289fa5f59485d44e0f0 | 18ef47ede0a099cf266fabac3ea92ad0ce96d134 |
refs/heads/master | <repo_name>magdalena-velazquez/SQLite<file_sep>/app/src/main/java/mx/unam/aragon/fes/diplo/sqlite_presencial02/Constantes.java
package mx.unam.aragon.fes.diplo.sqlite_presencial02;
public class Constantes {
public static final String BD="COLEGIO";
public static final String TABLA_US= "usuario";
public stat... | 8cbb1c5565fc03b878f57663944cb17c838869fd | [
"Java"
] | 2 | Java | magdalena-velazquez/SQLite | 5900fcdc5f44b29028742a591712768bd09689fe | d30ab71489a3b1dd77d3d2a3def430aa4daae351 |
refs/heads/master | <repo_name>dabbott8/paystub<file_sep>/paystub/main.cpp
#include <iostream>
#include <string>
using namespace std;
int main()
{
string strFirstName = "";
string strLastName = "";
double dblGrossAmount = 0;
double dblFederalTax = 0;
double dblStateTax = 0;
double dblNetPay = 0;
double dblMedical = ... | b38b53a4caed496d413f3c73bab4bff042054340 | [
"C++"
] | 1 | C++ | dabbott8/paystub | fb7a133349edd3edaf92addcdcf4fd8191ee1c91 | e700901fc393db2e0d7ce56f84b6b96fa3515403 |
refs/heads/master | <repo_name>brackis/school<file_sep>/visual/terre_delevage/terre_delevage/GeneratedFiles/ui_terre_delevage.h
/********************************************************************************
** Form generated from reading UI file 'terre_delevage.ui'
**
** Created by: Qt User Interface Compiler version 5.6.0
**
** WARNIN... | a3755f5bf35b2540308533249e742fc177017ea2 | [
"C#",
"C",
"C++"
] | 18 | C++ | brackis/school | f2d34b39086b1ddc7693223e4a2e0904022ce780 | 6eecc4a181199f080a0755b5944e33b70010e76b |
refs/heads/master | <file_sep>var app= angular.module('myModule');
app.controller('outputCtrl', function($scope, redditFactory) {
$scope.posts=redditFactory.getJson();
console.log($scope.posts);
});
| bbd48da6cad0094d0373890e99bb3c6cae636370 | [
"JavaScript"
] | 1 | JavaScript | Oconnord89/oconnorLab17 | a050a3df18867c177d0e55ee45be38111dacb173 | d5260d02575bad4a939db4de5d7ffdde38af5452 |
refs/heads/main | <repo_name>Zakkarat/MPS<file_sep>/webpack.config.ts
import _webpack from "webpack";
const path = require("path");
const HTMLWebpackPlugin = require("html-webpack-plugin");
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const isDev = proces... | 08f7112abc6ab3975111289ea925b8ea13077300 | [
"TypeScript"
] | 5 | TypeScript | Zakkarat/MPS | 48b736bbf9990443b930d242428f8fa4cba196bf | 7df4a3ef60b29e094a4a1b57558175646d5041d2 |
refs/heads/master | <file_sep>import React from 'react';
import Character from './Character.js'
import './screen.sass'
const Screen = function(props) {
const tiles = props.currentMap.reduce(function(previous, current) {
return previous.concat(current)
}, []).map((cell)=> {
return (
<span className={cell.tileType.name}... | e12657ee7a35ad5e13a634b699f1f83fa1318c88 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | mattstates/roguelike | 665154075772686e991ccf4b376af99b1f6a8130 | 26d60b18ef44804088afabb639f58fc3344a1553 |
refs/heads/master | <file_sep>package BodeguillaMikel;
public interface Facturacion {
static final double BEZ=0.21;
public void print();
public void calcularTotal();
}
<file_sep>package BodeguillaMikel;
public class Cerveza extends Articulo {
private String origen;
private String[] cereales;
private int alcohol;... | 0641bd8396c6974e960525c390ce67196ee63fba | [
"Java"
] | 4 | Java | mikelburgoa/programcion | 4ce8af77019f313fc05da1030ecf4fb1533329b0 | c4cc7ecb31cfba2c66da74016bf43adf28995a91 |
refs/heads/main | <repo_name>sureshsivat/satrango<file_sep>/application/controllers/Api.php
<?php
if(!defined('BASEPATH')) exit ('No direct script access allowed');
class Api extends CI_Controller
{
public function __construct(){
parent::__construct();
date_default_timezone_set('Asia/Calcutta');
$this->lo... | 9a387deb2aa4e338bc076b05eaf4ddf86fb52d97 | [
"Markdown",
"PHP"
] | 58 | PHP | sureshsivat/satrango | 1c35ee7c255fc06cf0a4db2163b1f5e53cfaadcd | ab3d5d686aebb85baec15b1aff95df438fbf37c8 |
refs/heads/master | <repo_name>Phillippko/Magnet<file_sep>/idea-service/src/main/java/ru/magnit/ideaservice/domain/Idea.java
package ru.magnit.ideaservice.domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import ru.magnit.ideaservice.dto.IdeaDto;
import javax.persistence.*;
... | bfab2be37caec4b4158cbd033c80eb1821513446 | [
"Java",
"Dockerfile",
"Gradle"
] | 7 | Java | Phillippko/Magnet | 0156661431de91ecc708bece1f6175ce701682e0 | 39f20fb95c6fbf397f7854d3cb1a37b7d33aaee3 |
refs/heads/master | <repo_name>kolodziejczakM/blog<file_sep>/static/posts/we-dont-need-null-at-all-im-not-undefined.md
---
title: We don't need null at all? I'm not undefined
date: 01-02-2019
writtenBy: <NAME>
backgroundFile: blank-sticky.webp
onMedium: true
href: https://medium.com/@kolodziejczak.mn/we-dont-need-null-at-all-i-m-not-undef... | 24aecb4d6fe14e6ea2f891fb8d0bab5f7a8dde45 | [
"Markdown",
"JavaScript"
] | 12 | Markdown | kolodziejczakM/blog | 72f93245ec821e9ec5d7ae7595b4834769a2f2a5 | 198edc11009f83184b0b63288b3e2d2516f1bba8 |
refs/heads/master | <repo_name>veles-lab/cuba-component-entity-soft-reference<file_sep>/modules/core/db/init/hsql/10.create-db.sql
-- begin DDCESF_CUSTOMER
create table DDCESF_CUSTOMER (
ID varchar(36) not null,
VERSION integer not null,
CREATE_TS timestamp,
CREATED_BY varchar(50),
UPDATE_TS timestamp,
UPDATED_BY v... | 65f6f83d82e28cef29c6dadd39a84d88b9953e35 | [
"Java",
"SQL"
] | 2 | SQL | veles-lab/cuba-component-entity-soft-reference | e96eeab19f75f305a6d7b3d573213cc177b966f2 | 9edd25d91a48d9d6eadbb643594f86e337db3a91 |
refs/heads/master | <file_sep>grep -w brauer contacts_hard.txt
<file_sep>echo $(( $(date +%s) - $(stat -f%c bomb.txt) -1 ))
<file_sep>gcc -c ft_putchar.c
gcc -c ft_putstr.c
gcc -c ft_strcmp.c
gcc -c ft_strlen.c
gcc -c ft_swap.c
ar rc libft.a ft_putchar.o ft_putstr.o ft_strcmp.c ft_strlen.c ft_swap.c
| ae0c78039f9a7335380e72079780fcd01e8a184b | [
"Shell"
] | 3 | Shell | NickNikulin/C-part2-bootcamp_School21 | 6d79f445e1e6681910817fe52b8521044efe0842 | dca8875bd191562669dcdaf803d17f74f4166be4 |
refs/heads/master | <file_sep>#!/usr/bin/env python
# encoding: utf-8
# author: AlisaAlbert
# 2019/4/24 21:34
import pandas as pd
import numpy as np
import wordcloud
import jieba
import jieba.posseg as pseg
import sqlite3
import matplotlib.pyplot as plt
from collections import Counter as cr
import re
from PIL import Image
from wordcloud ... | 1d3a64be89ee6a115f098f82b39dce81ae4f24d6 | [
"Python"
] | 1 | Python | AlisaAlbert/WordCloud | 57bef07f6ce070324f2e80dbd35db22448dbc6da | 2d5cabc865cbce8010901af5e7c9465cb20b97d9 |
refs/heads/master | <file_sep>import json
def move():
return json.dumps({
"eth0": {
"ip": "192.168.3.11",
"mac": "00:ab:f7:e4:74:c2",
"meta": {
"type": "ethernet-interface"
},
"name": "eth0",
"netmask": "255.255.248.0",
"network": "172.16.31.10",
"status"... | 24f13b4768da0077147502eb2bd76ed114d82563 | [
"Python",
"Go"
] | 2 | Python | vadimv1144/execalloc | 842b9331f1fc50ed9e7a9b0abd24d17d6b64bec5 | 76301f92909b8ed821f065fb0597b1005fc38063 |
refs/heads/master | <repo_name>nathanrhart/Keep-Talking-And-Nobody-Explodes-Solvers<file_sep>/On the Subject of Passwords/passwords.py
print("Keep Talking And Nobody Explodes - Kronorox Solvers")
print("On the Subject of Passwords")
print("Version 1.01")
print(" ")
print("Remember to rack through the first six(using the arrows), then ... | c28f1d62ff8d701a499c57b7ce174cadf908efc6 | [
"Markdown",
"Python"
] | 3 | Python | nathanrhart/Keep-Talking-And-Nobody-Explodes-Solvers | 0b9c67cdbd4e6aa728a69819861beb76c8a8b8fb | 454b1f64b7ae55a8a630f435c6f16e20c507fae3 |
refs/heads/master | <repo_name>elicul/document-detection<file_sep>/document-detection-mobile.py
from skimage.filters import threshold_local
from collections import defaultdict
from matplotlib import pyplot as plt
import numpy as np
import argparse
import cv2
import imutils
def find_best_quadrilateral(points):
Z = []
for point in ... | f5d9e4f02c432344667eb5922b4818bcfc9cf8a9 | [
"Markdown",
"Python"
] | 4 | Python | elicul/document-detection | 1193b783f56a9cd3fbe54d4855f0ea55b297923b | ef719d4b8479e51f5b73d2f55f3350889cefcfec |
refs/heads/master | <file_sep>#pragma once
#include <iostream>
#include "Repository.h"
#include "Activity.h"
#include <vector>
class ActivityRepository :
public Repository<Activity>
{
public:
Activity* SearchByLocation(std::string);
std::vector<Activity*> SearchByOwner(std::string);
Activity* SearchByDescription(std::string);
Activi... | a9d856e8edce4bcac2d8707dea0f6182251c6be2 | [
"C++"
] | 30 | C++ | BalicaAdrian/DataBaseUniversityPoo | 4ab4354959e7d8d22ef344bad7b39b5d332c9331 | b2dbbf8e8494df782619b3a0de0fc52a08fec690 |
refs/heads/master | <file_sep># Virtual AP
Files are under /usr/bin/ location to run as commond
Use myap_start/myap_stop to start/stop virtual ap
Yeti
Jun 15th 2016
VirtualBloks Inc
<file_sep>#! /bin/sh
#Set default eth0
defautIface=eth0
#Kill all hostapd
sudo nmcli nm wifi off
sudo rfkill unblock wlan
sudo killall hostapd
#Run hos... | 8c80375650a0093f780b42ece792edaf1f30ad85 | [
"Markdown",
"Shell"
] | 2 | Markdown | kingofyeti/virtual_ap | 626647e21e1b5fa6ffd65d8768ceced4eddf8798 | 64278260b789fa9b46fe258da2146686d02fd114 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FacebookProfileLibrary
{
public class Profile
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string FullName
... | b024fc18b54e222ba5d56366de4826fff487189e | [
"C#"
] | 2 | C# | annaheselbarth/FacebookProfileChallenge | d922bb0770b7c25604ba60d4738d877ce99052f2 | f319532b5c5b0dfe835c2dcaade7401069408996 |
refs/heads/master | <repo_name>mirekuhlir/dom-update-web-api-vs-react<file_sep>/README.md
# dom-update-web-api-vs-react
Example of comparison DOM update via Web API and React
Czech only
https://medium.com/@mirek.uhlir/v%C3%BDhody-manipulace-s-dom-pomoc%C3%AD-knihovny-react-a534be004656
<file_sep>/js/index.js
const jsContainer = document.... | 4a1ea28970faec1153ff8a13e7dc3d690c57f4e2 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | mirekuhlir/dom-update-web-api-vs-react | 8414675fd4dfce91394579c6fdd2b9ea991f050a | 5ca79dc72375c50d9db95bcf0dd492731a1c891c |
refs/heads/master | <repo_name>TTTyuqi/VideoStackOfTyq<file_sep>/videoweb/src/router/index.ts
import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
Vue.use(VueRouter)
const routes:RouteConfig[] = [
{
path: '/',
name: 'MainMenu',
component: () => import(/* webpackChunkName: "mainmuen" */'../views/MainMen... | 23b934d8c1b0719106c0e486348b6d3cfc17cae3 | [
"Markdown",
"TypeScript"
] | 25 | TypeScript | TTTyuqi/VideoStackOfTyq | a31e5492d3cc9427265e1f17a7f3097b6922af15 | 45f6a70d26ae28bd074608f4864b78bf02a5ceac |
refs/heads/master | <repo_name>Fhwang0926/Domain_Checker<file_sep>/conf.py
from __future__ import print_function
from configparser import ConfigParser
import sys
class config(object):
def __init__(self):
config = ConfigParser()
config.read("conf/DNS.ini")
self.th_cnt = config.getint('settings', 'thread_cnt')
self.th_proc = confi... | 7483d6d0f9def80edd98c67528c6c264b389047b | [
"Python",
"INI"
] | 6 | Python | Fhwang0926/Domain_Checker | 3b1daa805795dd82cfae625063e8ee434eaa8c67 | 7552f675be8c06b5690cbdaa6930ef7c466fd3be |
refs/heads/master | <file_sep>
#include <opencv2/objdetect.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main(){
VideoCapture camera(0);
if(!camera.isOpened()){
cerr << "cant open camera" << endl;
return -1;
}
Mat frame, hsv;
while(true){
... | b76f44524d630b98deb86e96249792a14687026b | [
"CMake",
"C++"
] | 2 | C++ | jgrubar/gestures | 92c1a5a1e735f9b54ef9d950f28b1cb5f57cbb70 | aa740cf4882494ad9db1109ef195dced250aab87 |
refs/heads/master | <repo_name>mvdiener/chipot<file_sep>/db/migrate/20140816195251_create_potholes.rb
class CreatePotholes < ActiveRecord::Migration
def change
create_table :potholes do |t|
t.date :creation_date
t.date :completion_date
t.string :status
t.string :street_address
t.string :zip
t.stri... | ec6c9cf1182fb8d72aa59f055c8701aba346281b | [
"JavaScript",
"Ruby",
"Markdown"
] | 16 | Ruby | mvdiener/chipot | f0532c5a763ee1ee449f356ee25ee255eda49971 | 362dc9484379b3aced510f21edcd459ecd26c23e |
refs/heads/master | <file_sep>import pygame
class Node:
def __init__(self, screen, x, y, rectwidth, rectheight):
self.x = x
self.y = y
self.screen = screen
self.rectwidth = rectwidth
self.rectheight = rectheight
self.val = 1
self.neighbours = []
self.previous = None
... | 69fcd621ac70864b265e411cd4f57a582617eb1c | [
"Markdown",
"Python"
] | 4 | Python | mpajas/Pathfinding-visualization | 58f7dab8a704d7084387b80e7d1517a50b0a6f52 | 84e8e7bd01fedc4911ab0635fdabda6772bc576a |
refs/heads/master | <repo_name>BrianLian/NFCFacebookCheckin<file_sep>/README.md
NFC-Facebook-Checkin
=====================
## Demo video
[](https://www.youtube.com/watch?v=Dd5PLXTNm88)
## The background management and web
[GitHub Link](https://github.com/denny0223/NFC-Faceb... | 05703cdcc6804f6925c2048fa072c33e75371e90 | [
"Markdown",
"Java"
] | 2 | Markdown | BrianLian/NFCFacebookCheckin | 42e75e27f3249504bfc8ee3f18aff6724502d8f5 | 6259f99db03600a57b41ac117d6b42887db0a0ec |
refs/heads/master | <repo_name>nci/cubex<file_sep>/cubex/__init__.py
__version__ = '0.0a'
<file_sep>/cubex/cube.py
import collections
import struct
import tarfile
import xml.etree.ElementTree as ElementTree
from cubex.metric import Metric
from cubex.region import Region
from cubex.calltree import CallTree
from cubex.system import SystemN... | 8f6f9afe3f5ed2a5bdd00833c9834df4342ca1b9 | [
"Python",
"reStructuredText"
] | 4 | Python | nci/cubex | 552d30e4dca55c34902d140e74afa99c08375362 | bcdc8e0c59ad4adee66a6e3aa612f1b8eb3d5fe7 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
import './css/messageBox.css'
import FillIco from '../assets/m_txt.svg'
import NotificationIco from '../assets/m_ack.svg'
import DecisionIco from '../assets/m_bin.svg'
import Tick from '../assets/m_check.svg'
import Cross from '../assets/m_cross.svg'
export default... | abba99a71fe14be8353c6956af3cddf11087a221 | [
"JavaScript"
] | 7 | JavaScript | Catarang1/React-notes | cbfdfff752132121d96759ff85dd67f5d6be0ed8 | 5b9b2efaa49f9bd4a6bfa3596148bbbfc39b965e |
refs/heads/master | <file_sep>page
====
php page tool,refer to the PEAR::Pager
======================usage======================= <br>
$page = isset($_GET['page']) ? $_GET['page'] : 1;<br />
$params = array( <br>
'totalItems' => 50, <br>
'delta' => 2, <br>
'currentPage' => $page, <br>
'pageSize' => 3, <br>
'urlPara... | 0f43f4a9d7962cd4e1dcdddae03cc07c29011bb0 | [
"Markdown",
"PHP"
] | 2 | Markdown | lfboo/page | e03a2daf476da6bcb30fd633719a3159b751e763 | ff2b25b64c80c41c8f8ba2d6e63868f272ad77da |
refs/heads/master | <file_sep>crypto = require('crypto');
exports.User = function (f_name, l_name, email, pass) {
var new_user =
{
nome: f_name,
sobrenome: l_name,
email: email,
senha: exports.hash(pass),
created: Date.now()
}
if(!exports.validateModel(new_user)) return {invalid_model : true};
return n... | 0e18ea81f0bd119f5f81c9154c2dae845fa8712f | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | roliveira-com/server-js | fa622a8e9721ba8fd7a4b79a901419c0dab88a5b | 546a295cf03fec611a6298d7965c99340c473823 |
refs/heads/master | <file_sep><?php
/**
* SimpleNote Swiss Army Knife
* Class for interacting with SimpleNote API.
*
* This code, and any intellectual property contained herein
* (excluding any property belonging to Simperium, Inc) should be
* considered released under an MIT-style license.
*
* Copyright (c) 2011, <NAME> <<EMAIL... | bc7810e98e50076c6cb86c419c54d3733a6ffc65 | [
"PHP"
] | 2 | PHP | libelle/snsak | e8aae250923a0b265ce180581b2a3e794efef05c | ead2dfb930f549e09863f4d2eb8ad46bb3704df8 |
refs/heads/master | <repo_name>Lemover/my_acm<file_sep>/before/harvestOfApples.cpp
#include <bits/stdc++.h>
#define N 200000
using namespace std;
typedef long long ll;
const int mod = 10e9+7;
int fac[N], inv[N];
//fac, factorial? inv
int powi(int a, int b){
int c = 1;
for(;b; b >>= 1, a = 1ll * a * a % mod)
if(b & 1)... | 4f5e0fa2edda506135f19ea820743a12ca791b41 | [
"Markdown",
"C",
"C++"
] | 104 | C++ | Lemover/my_acm | e5de6dc59bc7bccb9ba2bd4cacf29214fff89c1e | 613a109231184bf785c5d035b3ad4f6826106361 |
refs/heads/master | <repo_name>chengjundong/go-algorithm<file_sep>/quick-union/quickunion.go
package main
import (
"bufio"
"fmt"
"log"
"os"
"strconv"
"strings"
)
var testdata = []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
var reader = bufio.NewReader(os.Stdin)
// use quickunion algorithm to find data, find cost is 1, union cost is N
f... | fe1015b85647ae11debe498ef56e3e341de08ba2 | [
"Markdown",
"Go"
] | 2 | Go | chengjundong/go-algorithm | ed57123d1dd3b266cf2021504c0aef03ffb93748 | 11e5300778a9358dc0021651d586ce87efeaeb2f |
refs/heads/master | <repo_name>Mjf94/angular-tour-of-heroes<file_sep>/src/main-aot.ts
/**
* Created by mikema on 10/5/17.
*/
import { platformBrowser } from '@angular/platform-browser';
import {AppModuleNgFactory} from '../aot/src/app/app.module.ngfactory';
platformBrowser().bootstrapModuleFactory(AppModuleNgFactory);
<file_sep>/README.... | 29fc7791c62650bc2c705cd7ccc8692ad41230f9 | [
"Markdown",
"TypeScript"
] | 2 | TypeScript | Mjf94/angular-tour-of-heroes | 51b21c65fbdf808d5e7f73fc8d8865257007d936 | c0d1a34dc494e1c27391479c67f84d69f39fd81c |
refs/heads/main | <file_sep>import sys
import gpiod
import time
import liblo
with gpiod.Chip('gpiochip0') as chip:
if (len(sys.argv) > 1):
# Use arg specified line
line = chip.get_line(int(sys.argv[1]))
else:
# TXD1 (GPIO14)
line = chip.get_line(14)
line.request(consumer=sys.argv[0], type=gpi... | 8a00d0be93141a1893ef667936dc36adc2ca204b | [
"Markdown",
"Python",
"Text"
] | 4 | Python | antanasbruzas/motion-record | da62a9f900237751d431210afcb49e8da82617cd | 54601e3c2a3c835b786f21edbd034b5c7c294dac |
refs/heads/master | <file_sep>package com.partition.toolkit;
import com.google.common.collect.Streams;
import java.util.List;
import java.util.stream.IntStream;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.toList;
public class Partition<T> {
private final List<T> origin;
pri... | d4f6c7dd0551180d6d9cdfeae749fa81a24b66bd | [
"Java"
] | 1 | Java | earezki/java8-list-partition | 6da162896f9ce91c5dba65b55ae4d07f18b71e5f | 717078ba268d537660c2bb56ec8b50404d495203 |
refs/heads/master | <repo_name>flames85/zhihu_shenhuifu<file_sep>/answers.md
<table><tr><td>你小时候父母为了让你能够努力学习,都用过什么丧尽天良的方法? - 知乎<br><br><a href=http://www.zhihu.com/question/24826063>给了我这张脸</a></tr></td></table>
<table><tr><td>一个人是否牛逼能从外表看出来吗? - 知乎<br><br><a href=http://www.zhihu.com/question/24707591></a></tr></td></table>
<table><tr><td>... | 8717beb1da5a137e0273cf143a2a3ff8b10f259b | [
"Markdown",
"Python",
"Shell"
] | 4 | Markdown | flames85/zhihu_shenhuifu | 8260dcfb318c5e974bb5cfb1a5fd53463382881a | ca46de150e8b96f6a69ec76396663e26f97cd872 |
refs/heads/master | <repo_name>eunsam/Blog-Django<file_sep>/blog/models.py
from django.db import models
class Blog(models.Model):
b_title=models.CharField(max_length=50)
b_detail=models.CharField(max_length=500)
def __str__(self) :
return self.b_title
# Create your models here.
<file_sep>/blog/urls.py
"""Bproject UR... | 109ca3392ee1f25d51dcb11c225a63db5023ad25 | [
"Python",
"HTML"
] | 4 | Python | eunsam/Blog-Django | 759f5ad59aa6186f9a30407c02eda05265ca2678 | afcf0a52cebbb75521dae80aae3b2896a6135f8c |
refs/heads/main | <file_sep>var operation = [];
var operators = ['+', '-', '*', '/', '.'];
var numbers = ["1","2","3","4","5","6","7","8","9","0"];
var lastAction = "number";
const AllBtns = document.querySelectorAll('.btn');
const result = document.querySelector('.result');
AllBtns.forEach(btn => {
btn.addEventListener('click', ... | bbe9e3b2d25b1bc6291696daa207f0867c727b04 | [
"JavaScript"
] | 1 | JavaScript | nathanjourdain/Calculatrice | 3534aad9d18ec741045eda80a1b1e5d68994e28a | 40d054ffa1d384073870504cac0aefca8181fe48 |
refs/heads/master | <repo_name>arknave/physsim<file_sep>/js/game/block.js
function Block(x, w, h, m, sp, color){
this.x = x;
this.w = w;
this.h = h;
this.m = m;
this.sp = sp;
this.color = color || "000000";
this.update();
};
Block.prototype.update = function(){
this.mom = this.m*this.sp;
this.ke = .5 * this.m * this.sp ... | 5cf1564155a2d00947efa9a9fa46125d6aead8de | [
"JavaScript"
] | 2 | JavaScript | arknave/physsim | 1b3d1bc32d513fec960dafd8f2be76d5b2757998 | 70372fb0ff302fdadd8241b352f155d6283b140d |
refs/heads/master | <file_sep>"""
Small application where the computer picks a random number between 1 and 50 without revealing what the number is.
The user has a guess at what the number could be.
The computer only responds with three answers:
1. Too high
2. Too low
3. Correct
"""
import random
"""
The block of code below is simply o... | 2a29e5a1abd672d35a532f6eb8d7e3ab6bf7f07a | [
"Python"
] | 3 | Python | OldDon/this_time_its_serious | 39bf42ffce0d881d06e429d81a721ff3c4b10012 | 7db948e0fa4bede6670ea33028338885f2d1eff8 |
refs/heads/master | <repo_name>KostaSav/Tic-Tac-Toe<file_sep>/README.md
# Tic-Tac-Toe
The popular game, also known as "noughts and crosses" or "Xs and Os" [(Wikipedia)](https://en.wikipedia.org/wiki/Tic-tac-toe).
[Day 2 Challenge](https://organize.mlh.io/participants/events/6338-lhd-build-build-a-tic-tac-toe-game) of 2021 [Local Hack Day... | 8c8b942a477f010a9d7a618926c932a72372ad8d | [
"Markdown",
"Python"
] | 8 | Markdown | KostaSav/Tic-Tac-Toe | 87e4509ab03b6f1504248214e376a5eff059efe7 | 26475720f3e3fc94025bb9b049ac095aeb4fdc53 |
refs/heads/master | <repo_name>Kroha1999/SNMT_Flutter<file_sep>/readme.md
# Social Network tool [0.0.1]
This application is created in order to make life much simpler and to help people share with there photos in different social networks in couple of taps in their smartphones.
###### Specific feature of this application - multi languag... | 5ed53683f7408292412a4ac3a85a1073d1d47b38 | [
"Markdown",
"Python"
] | 2 | Markdown | Kroha1999/SNMT_Flutter | 16b4fbbb607f7911908350c8ced70fccd83f473e | 91929c9781b6fb7d76b164bb84e73078fc7373af |
refs/heads/master | <repo_name>williamseric1990/sensed<file_sep>/README.md

[](https://www.python.org/dev/peps/pep-0008/) [](https://... | ae50b30a814d6a3c624b41423f592ac189a0e6f4 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 9 | Markdown | williamseric1990/sensed | 56ab0b5ef9a2d45278b13127cda12bd1073dca15 | 32085c559c0e9257cdbc8869d6e057d52d1e74f9 |
refs/heads/master | <file_sep>package org.androidtown.samplereceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.util.Log;
import java.text.SimpleDateFormat;
import java.uti... | 659aed5a1184462fd0cd5712dd760ea3635b6573 | [
"Markdown",
"Java"
] | 8 | Java | KimJye/android_practice | b44a5053040b27f6dcac381d9036a486ced00ac9 | e1403d7247764b38c9d67dae9ae6c5e37eba7c38 |
refs/heads/master | <repo_name>pr0gramista/charset_converter<file_sep>/example/README.md
# Charset converter example
Demonstrates how to use the charset_converter plugin.
The app is doing 3 things:
* Decodes Windows 1250 data, which is "Cześć" - hello in Polish
* Encodes Thai Hello to TIS620
* Checks if `i_should_not_be_available` encod... | 41399c69c418b009fab3ab72daf69b0ed7ed7ccf | [
"Markdown",
"C++",
"Swift",
"Gradle"
] | 6 | Markdown | pr0gramista/charset_converter | 909d4beaddf86f896ec24a9e6b5c982b4ba4e634 | 256fc3304b6efda081c0b9de9c314eedfbcc35d2 |
refs/heads/main | <file_sep># Markdown CMS
Github-backed markdown minimalist CMS.
This is an experiment [Josh](https://joshpress.net) made. Really, I was trying to figure out some of NextJs' feature. Might be useful for other things.
You DO NOT want to deploy this as-is. There is login and authenticatio, but read the source. Proababl... | 97663a8ab911d4d6a4ff3a3c496dad5d2472fb56 | [
"Markdown",
"TypeScript",
"Shell"
] | 11 | Markdown | Shelob9/markdown-cms | 4442353d17c4c7213f75e7fd76f3ee3613f95765 | 95674a6f5fe54962efdb119638e6b79e161bcdab |
refs/heads/master | <repo_name>charlieworld/classin_api<file_sep>/tools/util.js
'use strict';
const config = require('config');
const getStudentID = (email) => {
return (email.split('@')[0]);
};
const getPages = (sum) => {
if ( sum <= 0) {
return 0;
}
else {
return (Math.ceil(sum / config.db.pageLimit));
}
};
const h... | 845ee22f18d39c6faf97c96d577995f5c3094505 | [
"JavaScript"
] | 10 | JavaScript | charlieworld/classin_api | a7f5ef71b8933845f9af22035adcee690a5cb3f4 | 340e04a616ce25bfc421c8a2ddfe4aa5e79ac4be |
refs/heads/master | <repo_name>Damtaag/TP_ESEO_Server<file_sep>/src/main/java/com/blo/VilleBLO.java
package com.blo;
import org.springframework.stereotype.Service;
import com.dto.Ville;
@Service
public interface VilleBLO {
public Ville getInfoVilles();
}
<file_sep>/src/main/java/com/dto/Ville.java
package com.dto;
import lombok.AllA... | f44032156ed22e41291527e599ac409b94001d4f | [
"Java"
] | 3 | Java | Damtaag/TP_ESEO_Server | 211e15f1ee1789fde244e7bd4bb9c8c9ef35ed3f | 0c4facd4084a0d17d376631be122a673d3c6e6e7 |
refs/heads/main | <repo_name>FazleyBin-Mahbub/Baper-Bank<file_sep>/JS/login.js
document.getElementById("login-btn").addEventListener("click", function () {
// gerEmail
const emailField = document.getElementById("user-email");
const userMail = emailField.value;
const passField = document.getElementById("user-pass");
const use... | ecc6f275fcc0fc2d8f613d5c32acb4c704a6864b | [
"JavaScript"
] | 2 | JavaScript | FazleyBin-Mahbub/Baper-Bank | 9facb6e9807026a2f6a1c0efd92471195e23be3c | b8c552118ef3ed9975b3e5ab175c9867c3b97bce |
refs/heads/master | <repo_name>cgpacifico/bookstore<file_sep>/app/models/author.rb
class Author < ActiveRecord::Base
validates :first_name, presence:true
validates :last_name, presence:true
def full_name
@full_name = first_name + " " + last_name
#{#first_name} {#last_name}
end
end
| fb2155c2558c2703c7acaf6ca5bdce492a0af7c2 | [
"Ruby"
] | 1 | Ruby | cgpacifico/bookstore | 48da2676b1f2f06de532e0ddd74e9fd721c0e429 | d813e7214a62b62cf88deee80ddc21aca5af6b24 |
refs/heads/main | <repo_name>subotin94/r-components<file_sep>/libs/r-docs/src/index.ts
export * from './lib/r-docs';
<file_sep>/libs/r-components/src/lib/components/forms/index.ts
export * from './select/select.component';
export * from './select/select.module';<file_sep>/libs/r-components/src/lib/components/forms/select/select-injectio... | 40665ff1aa8a980111979c40064c7ead1df0e224 | [
"Markdown",
"TypeScript",
"JavaScript"
] | 40 | TypeScript | subotin94/r-components | af81c150e204625699ef699675d2b2bf9fb64734 | c85157dee12e59b0dc4dae415f281b95ba03ca1e |
refs/heads/master | <file_sep>fh=open("latest.txt",'r').readlines()
<file_sep>head -n 15 /tmp/test.txt|tail -n 12 |head -n 10 |cut -f2 -d '(' |cut -f1 -d ')'
cp /dev/null /tmp/test.txt
<file_sep>
sh take-latest.sh >/tmp/latest.txt
cat /tmp/latest.txt |cut -f2 -d , >value.txt
cat /tmp/latest.txt |cut -f1 -d , >key.txt
num=24
num2=25
pi... | ad401b4288db486553a35510a2c16818a2f1aff8 | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | dayaramb/distirbuted-os | 0c0bb01ee7a5b520045f2679fbbf22703ddcb1d2 | 15d992c08cbd6966f1b97673bf5953c957a07cb6 |
refs/heads/master | <file_sep>package util;
import java.awt.Color;
import java.awt.Dimension;
import java.io.*;
import java.net.*;
import java.util.ArrayList;
import java.awt.Font;
import java.awt.Graphics;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
/**
*
* @author <NAME>
*/
public class Mai... | 2bf154d2f5741d636b348c723708012706040b7f | [
"Java"
] | 4 | Java | Distrbution-Plataform-IN118/Distributed-System-Sample | f07303c05364011f0799db53e9162fc17311b339 | 3bbdacb9157cb9e602b7171b24e4e24e8e2b68cb |
refs/heads/master | <file_sep>// Global array
var BigList = [];
// DOM Ready =============================================================
$(document).ready(function() {
// Populate the user table on initial page load
populateTable();
// Username link click
$('#dataList table tbody').on('click', 'td a.linkshowuser', sho... | 44dfa9354d8b27cbd86cd4a9dd520a0ef74a5672 | [
"JavaScript"
] | 4 | JavaScript | wdma/FayFoundation | d5c5b08ed0d4cb006e4198ec657da97962b06030 | 8d1ef2ce3c7634976f3d5e176d0c5c04a4f25a75 |
refs/heads/master | <file_sep>import pygtk
import gtk
import time
f = open('clipboard.txt', 'w+')
lastText = ''
while 1:
cl=gtk.clipboard_get()
text = cl.wait_for_text()
if text != None and text != lastText:
f.write(text.strip() + '\n')
lastText = text
f.flush()
time.sleep(0.1)
<file_sep>clipboardbuffer
===============
ap... | 6800dfaa41f8018aec12942791eef9819af523d7 | [
"Markdown",
"Python"
] | 2 | Python | alexadam/clipboardbuffer | 31671936157f7c1f9455baed5bac2f09752c0af6 | 8a3f260fa272be7ad55c4ecdfb7858011689e199 |
refs/heads/master | <file_sep>#pragma once
#include<iostream>
bool readHTMLFile(const char*fileName, char** buffer);
void parseRequest(char* buffer, char *fileName);
<file_sep>
#include"helperFunctions.h"
//Function to read the specified HTMl file and create the required http response.
bool readHTMLFile(const char*fileName, char** buffer... | 6bf122dd31da9f68e2a99c8a52203f8d6c2b45e2 | [
"C",
"C++"
] | 2 | C | Swechhya/Winsock-based-Server | b049b57a1810c55e5b6da0c5b871ede77dbc2d0f | 157435d5805aff3a6e265eac712b73b1d1bac224 |
refs/heads/master | <file_sep>import React from 'react';
import './App.css';
import PropTypes from 'prop-types';
class Book extends React.Component {
render() {
return (
<div className="Book">
{this.props.img &&
<img alt={this.props.title} src={this.props.img}></img>
... | 03b166016e4ba18444c9c44673202d49154045e7 | [
"JavaScript"
] | 2 | JavaScript | tessrobertson/books-app | 489a06e8ac15e82c07ae0db20cbb273d8a6671f6 | 224c06e370df6c60af7f130e6b7f965902ae6dc5 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace client.MenuStates
{
class Transaction
{
private string _idTransaction;
private string _recipientId;
private string _idBill;
private decimal am... | f2b5b9531a890da4eda10121b36543a0cc2b68c0 | [
"C#"
] | 20 | C# | lebedevKostya/vallet | 4160d46086ee86350bce184d5237b66df0e8f32c | bfb44474f37757d9e1881b0b10e1683df981e129 |
refs/heads/master | <repo_name>trivett/ReactWeather<file_sep>/app/components/About.jsx
var React = require('react');
var About = (props) => {
return(
<div>
<h1 className="text-center page-title">About</h1>
<p>About this react weather app. Yay for open weather map and udemy.</p>
<p>Here are some cool things</p>
... | 7a0f136b86a916e99329416c63891b1531140c9c | [
"JavaScript"
] | 1 | JavaScript | trivett/ReactWeather | 8222490c055badcff59072e7b6c13c462c25fecc | f259c96676fc428079791b7e105879aa24fd427f |
refs/heads/master | <repo_name>eurichon/CUDA_PROJECT_4<file_sep>/test_vp_tree.sh
for i in 1024 2048 4096 8192 16384 32768 65536
do
for j in 10 100 1000 5000
do
./tests/vptree $i $j
done
done
<file_sep>/README.md
### The report for this exercise is here [report][1]
**Run make to build the project in the top directory, There are also... | 46eda849bea457034077f129882eb4d0fb1581a7 | [
"Markdown",
"Makefile",
"Shell"
] | 5 | Shell | eurichon/CUDA_PROJECT_4 | 50f767617a19c91c3844d405cf9101730c208a65 | 28461aa2552edb6fe0fd54a92d472d795cc65422 |
refs/heads/master | <repo_name>xitorzx/hw2_ezjob<file_sep>/README.md
<h1>Introduction to Computer in NCKU computer center</h1>
```
Enviroment: gcc 5.4.1
Editor: Alex
Way to play: 1,2,3,4,5
Please do not input any char
```
<file_sep>/hw2.c
#include <stdio.h>
#include <string.h>
void up(int n);
void down(int n);
void left(int n);
void rig... | 822ccb35372dc95209693dbe90e7bc99ef2580c2 | [
"Markdown",
"C"
] | 2 | Markdown | xitorzx/hw2_ezjob | 7a5cfdefae9f4e2b8d8aae21cdddb4e72892b336 | e50358d24be5ae44c19cdd6415f532555ba05056 |
refs/heads/master | <file_sep># from onepercenteveryday import app
# from flask import render_template, abort
# NAV = ['musings', 'learning', 'profile']
# MUSINGS = ['EphemeralEffervescence', 'MelancholyMemories', 'PhilosophersPen']
# LEARNING = ['LearningLog', 'Sandbox']
# PROFILE = ['AskMeAnything', 'AboutMe']
# @app.route("/", method... | 7f3615a63858eab186e063fc97ca86b1c23e8bc5 | [
"Python",
"Text"
] | 18 | Python | vherr2/onepercenteveryday | 994f579f8df84e458af87458fb5cbd7fbb39f73b | 7b205f637c2dfb24a35bfeb42d73758eb0eb81f1 |
refs/heads/master | <file_sep>require File.expand_path('../coffee-script', __FILE__)
require File.expand_path('../coffee_script', __FILE__)
<file_sep># encoding: utf-8
# MRQRN(csmcb)
# lib = coffee-script-2.2.0
Gem::Specification.new do |s|
s.name = "csmcb"
s.version = '0.0.1'
s.authors = ["<NAME>"]
s.email ... | 4f79b4156e5095e773bb22f8d7768a5034270bea | [
"Ruby"
] | 2 | Ruby | idegeram/csmcb | 7e45e9e2e80e7205b101be0cfe2955b1f4f8e77b | 373d7f59046b20664a4f2db1aaaa06a8892379d1 |
refs/heads/master | <repo_name>kalynbeach/Instats<file_sep>/common/components/instats.js
/**
* Instats Top-Level UI Component
*/
import React, { Component, PropTypes } from 'react'
import {
Row,
Col,
Button
} from 'react-bootstrap'
import Header from '../components/header'
import Body from '../components/body'
class Instats exten... | 6100ddf5536be7262ce606b33c9403d052435d54 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | kalynbeach/Instats | 2070306093a0a70145ed2ea6f6d3d59bc8d3b6cf | cc8c54bdcdfbcfcf19cb7142fcacad6deafd07f0 |
refs/heads/master | <repo_name>olli5150/vaadin-icomoon<file_sep>/addon/src/main/java/de/headengine/vaadin/icomoon/IcoMoonIcon.java
package de.headengine.vaadin.icomoon;
import com.vaadin.server.FontIcon;
/**
* Created by Oliver.Weichert on 10.05.2017.
*/
public enum IcoMoonIcon implements FontIcon {
SIZE_500PX(60075),
ACCESSIBI... | cc82b931ec669ecbdc104dcca95b85221450caff | [
"Java"
] | 2 | Java | olli5150/vaadin-icomoon | 8cc1b4f1c6b300fd10d96542baa24601f951ee6c | b886801d0615c58a6d6f3b48b7116ab9e84e0e95 |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine.UI;
/* This class handles all events and functionality relating to the robot simulation.
*/
public class RobotSimulation: MonoBehaviour {
//Database variables
DatabaseHandler dbHandler... | ccac7bfe9735bd09c9c3d69662c347cea05f4cd2 | [
"C#",
"Python"
] | 15 | C# | Janetsbe/AnetsbergerAlife2016Code | 6d5619d1419c1c3420779e8f0fd4429473f97ba4 | c0e6141e2d759a4a1e2df64d7d83a24f19570554 |
refs/heads/master | <file_sep>const fs = require('fs');
/**
* Converts the params uri passed to torrent
*/
function parseTorrent(uri) {
} | df2c5035c91555c16a07168afd440ac60e4e5067 | [
"JavaScript"
] | 1 | JavaScript | Valley-View-University/DS-Torrent--G2 | a475eaaf4eb2b8a7fb8419e97a664af07e9ae010 | 44bf22f203709255e276de0d973f531cc7fdecd5 |
refs/heads/master | <repo_name>yunmango/S-A_LIDAR<file_sep>/sa_lidar_driver/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(sa_lidar_driver)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
)
find_package(Boost REQUIRED COMPONENTS system)
catkin_package(
INCLUDE_DIRS include
LIBRARIES sa_lidar_driver
CA... | 95c2dc3866f010512e1c1a9a1a7241817a63117c | [
"Markdown",
"CMake",
"C++"
] | 4 | CMake | yunmango/S-A_LIDAR | ba95351b8a8a12f9153b9785242b5ad4bec376d6 | ed0ff9cbeb862e4ccf382d7096f35c8dfd0a51f1 |
refs/heads/master | <repo_name>siamyolo55/Matrimonial-Web-Project<file_sep>/search.php
<!DOCTYPE html>
<html>
<head>
<title>Search Results</title>
</head>
<body>
<?php
include 'db_conn.php';
$conn = OpenCon();
$gender = $conn->real_escape_string($_POST['gender']);
$min_ages = $conn->real_escape_string($_POST['min_age']... | 21ac4fd7a478eac36c3318bc4977880e40a410cf | [
"PHP"
] | 3 | PHP | siamyolo55/Matrimonial-Web-Project | 4c02a4b808bfa5816cb5305cc36f815693c88fbb | 09c96b23677a7d4bc0bc9aabdce64856baffc123 |
refs/heads/master | <file_sep>Agenda Eletronica
==========
Este programa é uma agenda de eventos e contatos desenvolvido em java para trabalho final da diciplina de Programação Orientada a Objetos I.
Neste programa é utilzado conseitos de gerenciamento de arquivos, para salvar os dados, e le-los posteriormente.
* Foi usado o tratamento ... | 73a71d0e86658a04d1501101a5f0d535234fadff | [
"Markdown",
"Java"
] | 4 | Markdown | lucasdidur/POO_Agenda | 19ed0eab3d5cac5a307eef7088a25464f4b9e1ce | b41a4215a861990debeb3cc1768fce0a5c017990 |
refs/heads/master | <repo_name>Libra-Ng/IOS_Weather<file_sep>/Weather/WeatherViewController.swift
//
// WeatherViewController.swift
// Weather
//
// Created by student on 2019/11/27.
// Copyright © 2019年 吴谭波. All rights reserved.
//
import UIKit
class WeatherViewController: UIViewController {
var weather: String?
var na... | 7059c285a49205392acdb7f7bf75d820af7d63a7 | [
"Swift"
] | 2 | Swift | Libra-Ng/IOS_Weather | e4c2cec03ed2e257868440aeeaaeaf82c063504f | ad9a488b5b964f28e837f244c0c8155b6811bf7b |
refs/heads/main | <file_sep>package com.example.team22.activities
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider
import com.example.team22.R
import com.example.team22.view_models.UserPreferencesActivityViewModel
import io.apptik.widget.M... | 8d82c1ba51bc38e8164a80269a3fbaab22a0465d | [
"Kotlin",
"Gradle"
] | 36 | Kotlin | FerdinandHegelstad/Kuling | b12bb3ec239fc12ae70cf09540bcca05668493c1 | 87980fae77558d63363bea1bd7d6c4a7fd6672d9 |
refs/heads/main | <file_sep>#!/usr/bin/env bash
export RUSTFLAGS="-Zinstrument-coverage"
export LLVM_PROFILE_FILE="./target/debug/coverage/profraw/%p-%m.profraw"
cargo clean
cargo test
grcov ./target/debug/coverage/profraw/ --binary-path ./target/debug/ --source-dir . --output-type html --branch --ignore-not-existing --ignore "*bui... | cb020851e77d87c4c0220fae346d17f6c95c15f5 | [
"Markdown",
"Rust",
"Shell",
"TOML"
] | 7 | Shell | mmiecz/gendoc | c98e9445ce1e34523a3952d6e3b355651d573117 | f4045da7a978e5978494e2dcf28d9c26573287ac |
refs/heads/master | <repo_name>palanthas/Ruby_Math<file_sep>/math_1.1.rb
require 'colorize'
def func_math(opt1)
i = 1
score = 0
topScore = 1
bottomRange = 1
topRange = 10
scoreLevel = 10
if opt1 == 1
func = :+
symbol = "plus"
elsif opt1 == 2
func = :-
symbol = "minus"
elsif opt1 == 3
func = :*
s... | 5c4248d89b8e00b752ccec4f892f7bfb4def61a1 | [
"Ruby"
] | 1 | Ruby | palanthas/Ruby_Math | da2feb9eaee695275898e5c502c2b73eaec3af29 | 314aad09d5054844ef9138a1358f7a755256f714 |
refs/heads/master | <file_sep>import<-read.table("household_power_consumption.txt", header=TRUE,sep=";", na.strings="?", colClasses = c("character","character","numeric","numeric","numeric","numeric","numeric","numeric","numeric"))
import$Date<- as.Date(import$Date,"%d/%m/%Y")
myfunc <- function(x,y){import[import$Date >= x & import$Dat... | 44921f12284edc7c894577e9ce308ec2e0983efd | [
"R"
] | 2 | R | zerzourr/datasciencecoursera | d2411f8522e1683b3decc6353229703ad3f71200 | 541cd91eac83e269ef9343421b4b11bb7a700502 |
refs/heads/master | <file_sep># Copyright © 2018 <NAME> <<EMAIL>>
# This work is free. You can redistribute it and/or modify it under the terms of
# the Do What The Fuck You Want To Public License, Version 2, as published by
# Sam Hocevar. See the LICENSE.txt file for more details.
from random import random
from random import seed
from r... | 132fc3f8c8e32d562ff389c5e76ec1b50908e500 | [
"Markdown",
"Python"
] | 2 | Python | dhildebr/spongebob-case | eab1261f3cd2b278023a3a9a21458dbf0c4b5b9c | f36ae0084b38812c634e0bf9364a2591a1822289 |
refs/heads/main | <repo_name>MagcDEV/book-management-app<file_sep>/src/components/BookForm.js
import React, { useState } from 'react';
import { v4 as uuidv4 } from 'uuid';
const BookForm = (props) => {
const [book, setBook] = useState({
bookname: props.book ? props.book.bookname : '',
author: props.book ? props.book.author : ... | e305a020b2d2e38e80a35bf5b641c490ff206d95 | [
"JavaScript"
] | 1 | JavaScript | MagcDEV/book-management-app | 9e23684ab49b99bdeb56224029a3905bb2276693 | 44bde353e19d670436a421641d3c04b0e063dd80 |
refs/heads/main | <repo_name>shigure-tanabata/typing_game<file_sep>/README.md
# typing_game
Typing Game by Python
| c4828d52e4c90a8a76abae7f582262de44e870ec | [
"Markdown"
] | 1 | Markdown | shigure-tanabata/typing_game | 3e506a1ce2ef83c60df6cfb7625a592b02797650 | a78ea61e60471d4f40db7a46e3ce719a75d95c4d |
refs/heads/master | <file_sep>import hashlib
phrase = "Nobody inspects the spammish repetition"
hash1 = hashlib.sha224(phrase.encode('utf8')).hexdigest()
hash2 = hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
hash3 = hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest()
if hash1 == hash2:
print... | d8705d2f92cd06e12d05740b4ba1db553f0d4703 | [
"Markdown",
"Python"
] | 3 | Python | JoshPettingill/Cloud_database | 44fa2c4bb471b921591e5f5084effed0ebab1048 | 2bfb6248ca4cc8885a60c56e2325852e50722c4c |
refs/heads/master | <file_sep>function playSound(animal) {
document.getElementById(animal).play();
};
<file_sep>---
layout: portfolio
title: Saturday Night Live
overview: For Season 44-45, Pentagram created a French New Wave-inspired opening montage. The art direction posed some constraints for the assets our team frequently made ... | c6cae877c745b5ed60dd88b0335548d01772c983 | [
"JavaScript",
"HTML",
"Markdown"
] | 8 | JavaScript | girapatel/girapatel.github.io | 018ddf400daf63f18ffbac7859fcce8bdafcc2e5 | 11cbf01165f1fc13f3af9132cfecdbaac1816f6c |
refs/heads/master | <repo_name>hillc255/CambridgeTrails<file_sep>/app/src/main/java/com/example/android/cambridgetrails/MainActivity.java
package com.example.android.cambridgetrails;
import android.app.AlertDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.supp... | a442d897842046aec582ffbc2247ce08e86b3eae | [
"Markdown",
"Java"
] | 6 | Java | hillc255/CambridgeTrails | b0201972b1ae845184d409eef97d83eaaeb3fbc0 | 27328d3f87ea054acef9bfaef66280de02e69af0 |
refs/heads/master | <repo_name>walter-garcia/Laravel-API<file_sep>/app/Item.php
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Item extends Model
{
protected $fillable = [
'item',
'points'
];
public function survivor()
{
return $this->belongsTo('App\Survivor', 'id');
}
}
<file_sep... | 760e06df96d4b448345d93a92328ec8f40318362 | [
"Markdown",
"PHP"
] | 12 | PHP | walter-garcia/Laravel-API | cc12b71632108c4582d232656354d4bfd62809e4 | 491d0d46d1ea0a1262112e308e517012b0350729 |
refs/heads/master | <file_sep>let assert = require('assert');
Feature('api');
Scenario('get without auth with query in path', async (I) => {
const page = "";
const query = "quality";
let r = await I.sendGetRequest( `https://api.itbook.store/1.0/search/${query}/${page}`);
assert.equal(r.status, 200);
assert.equal(r.data.total... | db4bcb33b9838b3a8bc027131fc144df43df5bc2 | [
"JavaScript"
] | 2 | JavaScript | mnmlsniper/otusApiCodeceptjs | 27cc447eefaa3e4bb1b791a5462b9e54cd894900 | a80014d54954243b53288a149e4f63c37d22f32a |
refs/heads/master | <repo_name>Wzxhaha/WZXRACDemo<file_sep>/Podfile
platform :ios, '8.0'
use_frameworks!
inhibit_all_warnings!
pod 'ReactiveCocoa', '~> 2.3.0'
<file_sep>/README.md
# WZXRACDemo
ReactiveCocoa Demo
配合[这篇文章观看更佳](http://benbeng.leanote.com/post/ReactiveCocoaTutorial-part1);
```
- (void)viewDidLoad {
[super viewDidLoad... | e45b34cc322a47cca427649e8ca17c7fe5d45c3f | [
"Markdown",
"Ruby"
] | 2 | Ruby | Wzxhaha/WZXRACDemo | 8437d6f0191c5f6fa7f2af7c4c50ea468bba1412 | d4e71f79fe135c10223c24ba65373a5ae7d1dc1d |
refs/heads/master | <repo_name>rungstroem/LudumDare46-game-entry<file_sep>/spaceInvaders.cpp
#include <SDL2/SDL.h>
#include <iostream>
#include <vector>
using namespace std;
//Variables
const int screenWidth = 600;
const int screenHeight = 400;
bool quit = false;
//Uint32 *pixels;
Uint32 shipForm[20][20] = { {0,0,0,0,0,0,0,0,0,1,1,0,0... | bee8880e126800e3c8353aa5d27cae54e385c07d | [
"C++"
] | 1 | C++ | rungstroem/LudumDare46-game-entry | ce82fbbb203fa5afeb10bee191c68f6c16a8bdd3 | a506fb293cb3b0163eadd8838768ee4626eea6f8 |
refs/heads/main | <file_sep>import React from 'react'
import events from '../events'
import { Calendar, Views } from 'react-big-calendar'
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop'
import 'react-big-calendar/lib/addons/dragAndDrop/styles.scss'
const DragAndDropCalendar = withDragAndDrop(Calendar)
class Dn... | 2f08fdbbf5117e6915d81d0be333323eb2968450 | [
"JavaScript"
] | 2 | JavaScript | jacobvp2/react-big-calendar | ce80f4a884e0d41d98ba5274005890b0c6b92675 | 88e5ff78778c681dca62adb868c7b0502e0cf618 |
refs/heads/master | <repo_name>netrabhadkamkar/Algorithms-and-Complexity<file_sep>/Inversion.java
/*Implements Significant Inversion Problem
* Reference: Section 5.3 Algorithm and Design by <NAME> and <NAME>.pdf*/
import java.util.*;
public class NetraBhadkamkarInversion {
public static int inversions=0;
public int[] sortAnd... | 00c21b926c3f7ca348d4b8dec100adba454ccca6 | [
"Java"
] | 4 | Java | netrabhadkamkar/Algorithms-and-Complexity | 94665a6279cd6f1a4a72b42d7cf87666dfebd3ea | d538630cb6cc5fe868e2c36fa8371d8217b8c679 |
refs/heads/master | <repo_name>Wertik/wItems<file_sep>/src/main/java/space/devport/wertik/items/commands/utility/Detail.java
package space.devport.wertik.items.commands.utility;
import org.bukkit.command.CommandSender;
import space.devport.utils.commands.MainCommand;
import space.devport.utils.commands.struct.ArgumentRange;
import space.... | 8e7083215ab5149bbec0b4eb66273170636f17cd | [
"Java"
] | 6 | Java | Wertik/wItems | 7837866c1883474d099d91ac25236b8ac09d20f3 | 1512f97180a096dddd1574d4c1bc4aa9c2cf6e6b |
refs/heads/master | <repo_name>MagicReader/DataStructure<file_sep>/5.树/4.层次遍历二叉树.cpp
//两种存储队列的方式: 1.链式队列 2.循环队列
//1.链式队列
Status LevelOrderTraverse(BiTree T, Status(*visit)(TElemType e)){
//首先将根(头指针)入队列
//此后,若队列不空则取队头元素p
//如果p不空,则访问之,然后将其左右子树入队列,如此循环直到队列为空
InitQueue(Q); p = T; EnQueue(Q,p); //根入队列
while (!QueueE... | 045eb6526cb8c1cfd8b6542f9b0160493a1953e4 | [
"C++"
] | 33 | C++ | MagicReader/DataStructure | 49fbe42574f63a7a14eabc943a2a514fecaa5968 | c588bc213632b881f59b33b25d5855a3fd7b7ec5 |
refs/heads/master | <repo_name>kotLeon/kcksygnaly1<file_sep>/p4.py
import numpy as np
import matplotlib.pyplot as plt
f = 3
t = np.linspace(0, 1, 256)
sygnal = np.cos(2*np.pi*f*t)
plt.plot(t, sygnal, label = 'fp = 256Hz')
t = np.linspace(0, 1, 25)
sygnal = np.cos(2*np.pi*f*t)
plt.plot(t, sygnal, label = 'fp = 25Hz')
t = np.linspace(0... | fb56a9b169e44543c690adec8d068359e2fc01b9 | [
"Markdown",
"Python"
] | 5 | Python | kotLeon/kcksygnaly1 | e160a0bb79d52d02a946ee6ec889d95a945664af | 2ffe8d908ae119fcd0d261c709062a2e8f8dbdea |
refs/heads/master | <file_sep>import React from "react";
import { IndexLink } from "react-router";
export default class NoProduct extends React.Component{
render(){
return (
<div>
<h1>Oooss......</h1>
<h2>Can't find the product!</h2>
<IndexLink class="btn btn-primary... | 6c931d9e309527d8891971460e618d02de025e5f | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | caasiu/online-retail | c81dc6a12a3af7b075dfa65edc243780e0b7e71b | 1d877be43748aafd26fd2e29142049f899cf0ba6 |
refs/heads/master | <repo_name>NgariNdungu/dsa<file_sep>/README.md
### Data structures and algorithms
I am setting myself the challenge of going through the book
[*Problem Solving with Algorithms and Data Structures using Python*](https://runestone.academy/runestone/static/pythonds/index.html)
provided online for free by *Runestone Inter... | 78855da6155d78d2330d764f26dca7b690352b66 | [
"Markdown",
"Python",
"Ruby"
] | 6 | Markdown | NgariNdungu/dsa | 979c658a9ebfcbbc13f3c07b7b5a4d63e7e9d859 | 0b284a4a8671ef6186212ec596c944f1934df49d |
refs/heads/master | <repo_name>A-dev-git/BlackjackGame<file_sep>/src/main/java/com/company/gamelogic/InvalidPlayerListException.java
package com.company.gamelogic;
public class InvalidPlayerListException extends RuntimeException{
public InvalidPlayerListException(String errorMessage){
super(errorMessage);
}
}
<file_sep>/s... | 9a6c2845f63b08db4d95f3781eb866a1d1c2c414 | [
"Java"
] | 6 | Java | A-dev-git/BlackjackGame | 17d2993457e8f2e7db52ae57ad368399f986d6eb | d4cd1181aa04e40b07e9f0dffff41910a86922be |
refs/heads/master | <file_sep>#!/usr/bin/env sh
echo Cleaning all...
rm -fr openal-soft
rm -fr lwjgl3
rm -fr glfw
rm -fr native-libs
<file_sep># Minecraft 1.13 to 1.17 on FreeBSD
This repo contains
- Build script to fetch and compile code required to run Minecraft (works with minecrafte versions from 1.13)
- Self-contained launcher sc... | 1ceeffff43744a5e305b70841c139c6c20a9043c | [
"Markdown",
"Shell"
] | 4 | Shell | patrickSpaceSurfer/lwjgl3-port | 02a9a8d6248f8967e7e807086823e5f1cae005b2 | b8218bf2ce90029e6b04dd7b2048169e3790b015 |
refs/heads/master | <repo_name>wusshuang/vue-ts<file_sep>/html.config.js
module.exports = {
html: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
... | 9f6390dbd3119666c91e2f4984192b584d2bd838 | [
"JavaScript",
"TypeScript"
] | 25 | JavaScript | wusshuang/vue-ts | 1727c4d04de46b2977f2b25ba7ff306ff938a836 | a25e40bb2933249190c0a74f78cd5205e1fdce18 |
refs/heads/master | <file_sep>#importing modules and workbooks
from openpyxl import load_workbook
import WazeRouteCalculator as wrc
wb=load_workbook('rawdata.xlsx')
sheet_ranges=wb['rawdata']
ws2=wb['output']
ws3=wb['output_speed']
region="NA"
#for loop iterates down the rawdata sheet, using latitude and longitude as start/end poi... | 125c7f3ccc4c17e1cac38b6462d854af5be0bd7d | [
"Python"
] | 4 | Python | aadityamaddukuri/test | dd076f357bafe1d82cf93e1d30ae1bfa037d20cf | 7115d201fc461e3aff8385c731969151c590a8e8 |
refs/heads/master | <repo_name>tojaku/ionic-tutorial<file_sep>/src/pages/zadatci/zadatci.ts
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Zadatak } from './zadatak';
import { FormGroup, Validators, FormBuilder } from '@angular/forms';
import { SpremisteProvider } f... | 89e7d6fa4dcf79c10f1850553ba225a3883a9387 | [
"TypeScript"
] | 6 | TypeScript | tojaku/ionic-tutorial | 9fc2e8ae36a9260d60c8956d08f7d81f7efbd3ed | 97064e424146c4bddd87abe2995636061d0c920b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.