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>package com.example.trending.ui
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.ProgressBar
import android.widget.Toast
i... | bc155574b5d235074ec6b3b9eb8324a896f86462 | [
"Kotlin"
] | 46 | Kotlin | ahmedmohamedkhedr/Trending | 3953ce8831ba35dace29dec0a2b52e7ed19e3b52 | a0bb95770902a7b9cf54febe7546437b9a3140d5 |
refs/heads/master | <file_sep>/**
* Created by Marcelo on 16/07/2016.
*/
app.filter('ishtml', ['$sce',function($sce){
return function(text) {
return $sce.trustAsHtml(text);
}
}]);<file_sep>/**
* Created by Marcelo on 16/07/2016.
*/
app.factory('YahooTranslate', ['DateTranslate', '$filter', function(DateTranslate, $fi... | 05415d5b95e777397b43402962586746f03232a3 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | marcelorafaelfeil/Tempo | e682d808304522b3a096a5b9ed956b30bd63bf4e | a3110168fac0312ecb0d11623e22fa8b47abe31c |
refs/heads/master | <repo_name>julietta32/Soboleva_js_15_16<file_sep>/17_05_06/js.js
var API_KEY = '<KEY>';
var URL = "https://pixabay.com/api/?key="+API_KEY+"&q="+encodeURIComponent('cat');
$.getJSON(URL, function(data){
if (parseInt(data.totalHits) > 0)
$.each(data.hits, function(i, hit){
$(":first button").click(f... | 7fa32879332636ab788b5bffa0be10977a301f47 | [
"JavaScript"
] | 1 | JavaScript | julietta32/Soboleva_js_15_16 | 39af3b6b1428c6f139731f416ea6760ab4846fa8 | d59643cb6ed218b17e45c275c392a749d5e46dba |
refs/heads/master | <file_sep>/* eslint-env node, mocha */
const assert = require('chai').assert
describe('test require', function () {
let testServiceProto
let otherServiceProto
let TestService
let OtherService
it('can required proto file', function () {
testServiceProto = require('./protocol/TestService.proto')
othe... | b0b12b90e07ecdc9313b468c3fafaf5bcd4b28df | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | TechTeamer/browserify-protbuf | 48450ca38acab1cbf54806906a1d15e87a2518fe | f6d8ecc24c4d7f40ff42592da1f74356ad1acf91 |
refs/heads/main | <file_sep># test_bench_practice
test bench practice
L01_LED
とりあえず最初なので手探り状態ですが、ちょっとずつ進めていきます。
ファイル構成などは試行錯誤中
・テストケースの設定が難しい...
L02_LogicFunc
Templateを初めて使用する課題。
Templateの間違いが少しあったので修正済み。
テストケースで出力に初期値を与えていたのでエラーが出てた。
相変わらずテストケースの設定は難しい。現在はmodelsimで出力を確認して合っているかどうか照合している状態。
L04_RS_FlipFlop... | ff8029fc7c88b3153b01d28c1ef2543dfe678b68 | [
"Markdown",
"Python"
] | 2 | Markdown | shikata-nidek/test_bench_practice | 300f1d87a6f2096b4d7ba56f21a2dd7eaf0db3d2 | 44a8396acf811785b33f3c91f65ed309b5f08921 |
refs/heads/master | <file_sep>import openpyxl as px
import sys
from bs4 import BeautifulSoup
from urllib import request
import re
import os.path
#story_id = sys.argv[1]
#with urllib.request.urlopen('https://www.africanstorybook.org/read/readbook.php?id='+story_id+'&d=0&a=1') as f:
story_file = sys.argv[1]
wb = px.Workbook()
ws = wb.activ... | 49b368d37e036c9ccc1db8c39eb38bb6c893c70c | [
"Python"
] | 1 | Python | aayush-learning/maui | 80ce5d701b90852dbc38f4d7fd6c42d38e66e374 | 6b4af3ad87ca0a06f1380b6f70199517077efd4f |
refs/heads/master | <repo_name>TuxSH/libkhax<file_sep>/khaxinit.cpp
#include <3ds.h>
#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <new>
#include "khax.h"
#include "khaxinternal.h"
extern u32 __ctru_heap;
extern u32 __ctru_heap_size;
//-----------... | aefcf715532acd006eddd0b6dbdb6e1943f4a5ff | [
"C",
"C++"
] | 3 | C++ | TuxSH/libkhax | 8baa0c43da97233c6ed58d1906d9497931274538 | 943c03e6e8e26ef200d9bb419f37b4b9687169fb |
refs/heads/master | <file_sep># coding: utf-8
"""
CardPay REST API
Welcome to the CardPay REST API. The CardPay API uses HTTP verbs and a [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) resources endpoint structure (see more info about REST). Request and response payloads are formatted as JSON. Merchant use... | 836f1a8397cb482a2baffda44314af0f8574746c | [
"Markdown",
"Python"
] | 5 | Python | glebsam/python-sdk-v3 | b2f59f45ce6410a6b2fb08870d8ff6068da83093 | 111ad7366945312f30ad7038649be4756083fd5a |
refs/heads/master | <repo_name>Sai628/Flask-Demo<file_sep>/requirements.txt
click==6.6
dominate==2.3.0
Flask==0.11.1
Flask-Bootstrap==3.3.7.0
Flask-Moment==0.5.1
Flask-Script==2.0.5
Flask-SQLAlchemy==2.1
Flask-WTF==0.13.1
itsdangerous==0.24
Jinja2==2.8
MarkupSafe==0.23
SQLAlchemy==1.1.3
visitor==0.1.3
Werkzeug==0.11.11
WTForms==2.1
<file_... | a75e26a7f18ea3362ddec2e353b455af45ac31bb | [
"Markdown",
"Python",
"Text"
] | 3 | Text | Sai628/Flask-Demo | 725b91e693758ff44ea21b67146af9acef19781e | 41e9c7cc4123c91738b08aacefe8067428d52d38 |
refs/heads/master | <repo_name>TheCGaming/spectate<file_sep>/README.md
# Spectate!
Put yourself into spectate mode and normal mode (survival) using /spectate on/off
# Gamemode Resets back to survival when each player joins
<file_sep>/src/spc/Main.php
<?php
namespace spc;
use pocketmine\plugin\PluginBase;
use pocketmine\event\Liste... | cab31bc340a061f168cc2f910c3b64a962035ac3 | [
"Markdown",
"PHP"
] | 2 | Markdown | TheCGaming/spectate | 5c4529eeae9853b2ad5e5553038cad4d9b84418b | 17edcc596dd9c4030f4d8f83face7f01898185f5 |
refs/heads/main | <repo_name>mstranger/bookshelf<file_sep>/apps/web/helpers/path_helper.rb
module Web
module Helpers
module PathHelper
private
def current_path
params.env['REQUEST_PATH']
end
def current_path?(path)
current_path == path
end
end
end
end
<file_sep>/spec/bookshelf/... | 81c2ed7ce0c2e3502599663b6dc53e5ab0cbdb94 | [
"Markdown",
"Ruby"
] | 38 | Ruby | mstranger/bookshelf | 4f2f19d42db419ce5b57f08c8eda198285f6e2ae | 3227a21ffe6d7d841ee74bd52ce180593b88924e |
refs/heads/master | <repo_name>therealchristopheryu/rails-longest-word-game<file_sep>/config/routes.rb
Rails.application.routes.draw do
get 'new', to: 'words#game'
post 'score', to: 'words#score'
root to: 'words#game'
end
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
<file... | 8a658e33c3638eba70edeb884e397bc24b3a05bf | [
"Ruby"
] | 2 | Ruby | therealchristopheryu/rails-longest-word-game | 31c96207a419123440f005cde28640ceef452b82 | 6c07e64e787d7cf4723c454f7840c720b924b170 |
refs/heads/master | <repo_name>kmwa20042000/vue-cocina-kazu<file_sep>/src/router/index.js
import Spanishmenu from '../components/spanishmenu.vue'
import Japanesemenu from '../components/japmenu'
import Italianmenu from '../components/italianmenu'
import Indianmenu from '../components/indianmenu'
import Home from '../components/home'
impor... | a252c14bd306c5ba9bcd60e5ea55e66e59a19f31 | [
"JavaScript"
] | 3 | JavaScript | kmwa20042000/vue-cocina-kazu | e2bb77c20d31f7a37975b7187d7173c8b81ec713 | 02e1feacd17a6e05c92cf7963df7229f6c969604 |
refs/heads/main | <repo_name>zhangshuo1991/E-Redis<file_sep>/src/server/insert_redis.js
var readline = require('readline')
const fs = require('fs')
const Redis = require('ioredis')
const redis = new Redis({
port: 6379, // Redis port
host: '192.168.1.199', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: '<PASSWORD>',
... | 7648719b17d7dcaa10e51d01eb929501f6fb7277 | [
"JavaScript"
] | 1 | JavaScript | zhangshuo1991/E-Redis | 74748bff046b0d7425e5ac296e73e76c71d1658d | d8a68d02f5f0c0067b6df5298a17d2bc33b1cb05 |
refs/heads/master | <file_sep>/*
* MyJet.h
*
* Created on: Feb 1, 2012
* Author: csander
*/
#ifndef MYJET_H_
#define MYJET_H_
#include <TLorentzVector.h>
#include <TRandom3.h>
using namespace std;
class MyJet: public TLorentzVector {
public:
MyJet();
MyJet(double px, double py, double pz, double e) {
... | a5b58e76b8af26e4e626e01e6063f4cf987cf22f | [
"Ruby",
"Markdown",
"C",
"C++",
"Shell"
] | 7 | C++ | mxrguspxrt/kbfi | 0d10a17463804d0232cb729d19f06aeb3f69b545 | ca77587db2b72f595249ae4373c3c24b4bff32ab |
refs/heads/master | <repo_name>westhpw/DarkTranslationBundle<file_sep>/Command/BuildDocsCommand.php
<?php
namespace Dark\TranslationBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Co... | fccb8c75eb5ca7869c1e8bb05b597af018070535 | [
"PHP"
] | 1 | PHP | westhpw/DarkTranslationBundle | 9637559ec5f5dd7d327ebcff4fcb8ee57106d4f8 | 11ce7bbfe1f6acf6d51a7c65f32c5b0510a7328f |
refs/heads/master | <file_sep><?php
include('navbar.php');
include_once 'dbconnect.php';
//check if form is submitted
if (isset($_POST['submit']))
{
try {
$request = myConnection()->prepare("UPDATE document SET DOC_STATUS = '1' WHERE ID_DOCUMENT = '" . $_GET['id_doc'] . "'");
$request->execute();
$sql = 'sel... | ccf4841a046e8c8652c27097bb49f6677091f5a4 | [
"JavaScript",
"PHP"
] | 30 | PHP | gonzalo-esig/TentativeJavascript | a7ea5bcdbdda7625a549e1fab3c5ca217f463dbc | 805711bf7ab11c128345f47c6fbaa0b87445f03f |
refs/heads/main | <file_sep>import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { FormGroup } from '@angular/forms';
import { Observable } from 'rxjs';
import { BookingDetail } from '../Models/BookingDetails';
import { LikeDetail } from '../Models/LikeDetail';
import { Movie... | 03e701cd68c50e54e45ec7d96a9439271c52d023 | [
"JavaScript",
"Markdown",
"INI",
"C#",
"TypeScript"
] | 69 | TypeScript | THE-VR7/Training-Tasks-In-Internship | 9e74e27638a03e4531950bb6154d258bc7871089 | 2a9d1e3e7ec75f008514482199c36e3ab76ef686 |
refs/heads/master | <file_sep>package main
import (
"fmt"
"image"
"image/jpeg"
_ "image/png"
"io/ioutil"
"os"
"runtime"
"strconv"
"strings"
"sync"
"time"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() {
if len(os.Args) != 3 {
panic("usage: png2jpg 90 ./")
}
quality, e := strconv.Atoi(os.Args[1])
i... | 79f8ac6a153c4dc777152cb987cd7ff17f34d34b | [
"Markdown",
"Go"
] | 2 | Go | jonny91/png2jpg | 19fe33d59a19b61a063ce4d3248157aac8108895 | 9b618d6c4e44aa7efd0cd67ea2650132b6f577af |
refs/heads/master | <file_sep># React action cable (with hooks!)
a fun little action cable library.
Made with 💖 and TypeScript!
# The Context
after creatng your channels in rails, use the context provider to connect to your rails app:
the provider takes the following properties:
## Props
```ts
type ProviderProps = {
url?: string... | 62c2e80e815cc97f877beb505d4611d169257b4a | [
"Markdown",
"TypeScript"
] | 3 | Markdown | dank-inc/reaction-cable-hooks | d3a27423fa65f09b4242d965c66f9f9b7d3fadb2 | 5d8d0dc9e2bc24035e3cb23ecc52f6d69d8c88b8 |
refs/heads/main | <file_sep>/*
* Copyright 2021 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 90c70a5a8e1d58ce5f9686d6c0f3f2bf33b132fa | [
"Markdown",
"Java",
"Shell",
"Gradle"
] | 7 | Java | usmansaleem/qbft-tests | b0a21e86e30ae41801b81bf6ba1f4ac83d739ffe | 281a3ec8eeb2b02b71279b9131482e1f04750413 |
refs/heads/master | <repo_name>softik/jersey2-spring4-jetty9<file_sep>/settings.gradle
include 'test-project'<file_sep>/test-project/src/main/java/com/quaiks/example/service/SaveUserRequest.java
package com.quaiks.example.service;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
publ... | 09c26d659bf75627a903e404a8ae8e150e232538 | [
"Java",
"Gradle"
] | 8 | Gradle | softik/jersey2-spring4-jetty9 | 8cbf134ddbd0556c1d3c10c4f906b11fcfc6f224 | 076152a72014d1395fbc56b64b1be991f5860692 |
refs/heads/master | <repo_name>immohann/Face-Recognition-DL<file_sep>/register.py
#import required libraries
import cv2
import sys , os
import numpy as np
##############################################
#setting up the dataset files
# It captures images and stores them in datasets
# folder under the folder name of sub_dir
haar_file = ... | 57278c9fbc9d3807966f9f7af04995bcd9d5c405 | [
"Python"
] | 3 | Python | immohann/Face-Recognition-DL | 6a1ac0bd70eebe2bf44352de329fa443dc7b3d08 | b94472e224223fcfc7e73b364185f197ab8b69da |
refs/heads/master | <repo_name>Ventilateur/DeStijl<file_sep>/global.c
/*
* File: global.h
* Author: pehladik
*
* Created on 21 avril 2011, 12:14
*/
#include "global.h"
RT_TASK tServeur;
RT_TASK tconnect;
RT_TASK tmove;
RT_TASK tenvoyer;
RT_TASK tbatterie;
RT_MUTEX mutexEtatCommRobot;
RT_MUTEX mutexEtatCommMoniteur;
RT_MUTEX mute... | 35ce27fe8dcadda27b51ebeb190b0694aa213810 | [
"Markdown",
"C"
] | 3 | C | Ventilateur/DeStijl | 0c23d7aa414fa4766037a30ab8c3133e0f8b8d8c | 8ec0c18de64a9a495d75a5312235e2217893adf7 |
refs/heads/master | <file_sep>//: Comment Driven Development
import UIKit
/*
Minesweeper example
? _ _ 1 1 1
_ _ _ 2 X 2
_ 1 1 3 X 2
_ 1 X 2 1 1
_ 1 1 1 _ _
*/
// Bad: Poor naming, no comments
let Max:Int = 3
func checkCompletionBadVariables(val:[[String]]) -> Bool {
var nusp:Int = 0
var sc:Bool = false
var bf:Int... | 6204b115ed1888992f0d6bf17d81e0ba898d4607 | [
"Swift"
] | 1 | Swift | seanbdoherty/commentdrivendevelopment-code | 1b823d345d140095941b39a1ff6ed08e24f1fa4d | 22252676cd698028937b128fc7288ffec20d2ba3 |
refs/heads/master | <repo_name>AjaniStewart/project_2<file_sep>/subway_portal.h
/******************************************************************************
Title : subway_portal.h
Author : <NAME>
Created on : April 28, 2018
Description : Interface file for the SubwayPortal object
Purpose : Enc... | 96a4a664fa7be0669b09a024660322b669926bed | [
"Makefile",
"C++"
] | 11 | C++ | AjaniStewart/project_2 | 3ad9c117e7ecfb72f287ffb7110e7ef41164bb35 | a8d8a40f40330f702ca74884a61845449ad67288 |
refs/heads/master | <file_sep>Пример простейшей анимации эллипса при помощи таймера
<file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Win... | 51f253d4a1c25263ad861946a64066b9c1baed9d | [
"Markdown",
"C#"
] | 2 | Markdown | justjune/EllipseTimerAnimation | 73821b000d8e98c8feb999daab763f011849f193 | fedc2d9ea982df5a4dbedd943daf6e5e2e5df092 |
refs/heads/master | <file_sep>require 'aws-sdk-core'
require 'fluent-logger'
require 'msgpack'
require 'redis'
require 'redis-namespace'
require 'set'
require 'stringio'
require 'redy/redy'
require 'redy/version'
<file_sep># Redy
Redy is DynamoDB client to cache data in Redis.
It depends on [fluent-plugin-dynamodb-alt](https://github.c... | c9b85529be2c9decc5345300a007174620e4212e | [
"Markdown",
"Ruby"
] | 5 | Ruby | winebarrel/redy | 6fab55dc63c63080d3086224114153ea569beed7 | 5b37c9ee2fe9732c036897e9796bcbc91820a9ac |
refs/heads/master | <repo_name>Krishnavamsi666/180031073<file_sep>/p217.java
import java.io.*;
import java.util.*;
class Reverse
{
public static void main(String[] agrs)
{
int num,sum=0,r;
Scanner sc = new Scanner(System.in);
num=sc.nextInt();
for( int i=0;i<=num;i++)
{
r=num%10;
sum=sum*10+r;
num=num/10;
i=0;
}
System.out... | cded177f7ddd3441eeecbdb5c7d24ce289901ba6 | [
"Java"
] | 3 | Java | Krishnavamsi666/180031073 | 5fe3ed9534d0cc87720344d36f1488105b8e54e5 | 813613b6b7b1d2142f2dca23580d8dc873abb3ae |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title><NAME></title>
<link rel="stylesheet" href="css/main.css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="images/favicon.png" />
</head>
<body>
<div class="menu js-menu">
<div class="menu-stripe"></div>
... | 79001b38dfc2601ef50cb9a81cace1db336d9b4c | [
"JavaScript",
"HTML"
] | 3 | HTML | mollymoon2b/alice-site | da697c9963f81ecacb1c2eec896444dff44e3e8a | ac5c6f5116339364c0cd666779e3ed74cbf1c46f |
refs/heads/master | <file_sep>#! /usr/bin/python3
# https://www.roboshout.com
# Scrape coinmarketcap.com's historical cryptocurrency datasets.
# Write date, open, high, low, close, volume, & market capacity
# to .csv in current directory. ex: bitcoin20181120.csv
# Data for a given currency will be written to the .csv file
# from April 28,... | e0b350d2df8d2fe53b0c100c631b11d84a7ae83f | [
"Markdown",
"Python"
] | 2 | Python | monsirto/crypto_csv_writer | aa49227e0bd731b53c6e40d8c6d1862de14f5356 | 7236512b6e93b57960311b4986df961b90f53ad0 |
refs/heads/master | <file_sep>'use strict';
const app = {};
app.city = undefined;
app.data = null;
app.card = document.querySelector('.card');
app.dialog = document.querySelector('.dialog');
app.spinner = document.querySelector('.loader');
app.nextDays = app.card.querySelectorAll('.future__oneday');
app.selectedDay = app.card.querySelect... | e6ca9ec26c325ba63e047744082dd29a3a230100 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | alik0211/weather | 6176c0e98023ac3cfdb437c1b534e886528f9c08 | 96f882ce15abe28d00b6c8a364107d1f2beb2faf |
refs/heads/master | <file_sep>#!/usr/bin/env bash
set -e
####### CONFIGURATION ########
MAX_HEALTH_CHECKS=20 # Maximum times to check the health of each fdb node before failing
HEALTH_CHECK_DELAY=5 # seconds to wait between health checks
#############################
DEFAULT_NODE_COUNT=3
DEFAULT_REDUNDANCY_MODE=double
DEFAULT_STOR... | 80311926deab87d1af0018fd88ca4e732f8157f8 | [
"Markdown",
"Shell"
] | 2 | Shell | dkoston/foundationdb-kubernetes | 422abd26adc7a11619750cb0626e020df7438f38 | d000accef45301426ce56c4dbceb1cfb67592bc5 |
refs/heads/master | <repo_name>heeeeee/Stats<file_sep>/FinalProject.R
###############################################
# Final Project
# Stat 701
#
# <NAME>, <NAME>, <NAME>
# 2015/05/02
###############################################
#######################################
#### Setup ############################
#########################... | 9b04f137172a0d3c1590f2375b88500799b4a917 | [
"R"
] | 1 | R | heeeeee/Stats | 8d238f94a154214db080d7389316b38f036fa3f4 | 4e57b96b8dfabbe7219a83c678bcac4b19f22a45 |
refs/heads/main | <repo_name>amliuyong/Learn-Amazon-SageMaker-second-edition<file_sep>/Chapter 08/R_custom/Dockerfile
FROM r-base:latest
WORKDIR /opt/ml/
RUN apt-get update
RUN apt-get install -y libcurl4-openssl-dev libsodium-dev
RUN R -e "install.packages(c('rjson', 'plumber'))"
COPY main.R /opt/ml/
COPY train_function.R /opt/ml/
C... | 3bc512976f53aa5a40a72598a8e1ec6c896ac04c | [
"Markdown",
"Python",
"Text",
"R",
"Dockerfile"
] | 34 | Dockerfile | amliuyong/Learn-Amazon-SageMaker-second-edition | a5483b6407aba069fd04c00114a5edff79f5c4b2 | d639710a2176d7bae0558760853eda18e923bb9b |
refs/heads/master | <file_sep>package mx.com.assessment.dto;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@NoArgsConstructor
public class WeeklyReportDto {
private Integer weekNum;
private String startDay;
private String endDay;
private Integer quantity;
}
<file_sep>package mx.com.a... | d36141b773ad1c169d8363f662290a6b1411a327 | [
"Java"
] | 4 | Java | ElPinchePedro/java-assesssment | d8209d513666d80036da91d1971c631346a11119 | 902971aa5a448eec8b64916a57e63eb7af2784b7 |
refs/heads/master | <repo_name>mmxCoinHub/go-mmx<file_sep>/types/address.go
package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"
)
const (
// MmxBech32Prefix defines the Bech32 prefix of an account's address
MmxBech32Prefix = "mmx"
// MmxCoinType Mmx coin in https://github.com/satoshilabs/slips/blob/master/slip-0044.md
... | 2f58c8d35582c8445d7edb545bcfba7dccfec756 | [
"Markdown",
"Go Module",
"Go",
"Makefile"
] | 7 | Go | mmxCoinHub/go-mmx | 6ed65d2367623b815eeda5d02f2dfc624eb1d180 | c119f2a7df7a1d07abbfde2f7a1a5bd76bd0b913 |
refs/heads/master | <repo_name>Toshiki-Tsuji/-Ruby-<file_sep>/chapter10/10_3.rb
hello_proc = Proc.new do
'Hello!'
end
puts hello_proc.call
puts '---------------------------------------'
add_proc = Proc.new { |a = 1, b = 2| a + b }
puts add_proc.call(10, 20)
puts '---------------------------------------'
example_proc = proc { |a=1,... | 59f4f1f17d0aa0ed3b1d83ae209f33bf70cd570c | [
"Markdown",
"Ruby"
] | 11 | Ruby | Toshiki-Tsuji/-Ruby- | a2fecc865825e4e626cde4ab2c090d35487523b9 | 227cac88ca88db156d9974252527bcf7f37528f8 |
refs/heads/main | <repo_name>FGHII/findTheOldest<file_sep>/README.md
# findTheOldest
The Odin Project: Find The Oldest javascript exercise
| 88f6b62d2a497c2ae9f7d2fa94aef90043af984d | [
"Markdown"
] | 1 | Markdown | FGHII/findTheOldest | 24c9fc2abd654da6c753f1784f4140198c02a548 | 9b609300f08233f2d1493aec65eedfcbd77b1f1b |
refs/heads/master | <file_sep>day01 QuickStart
1.添加依赖
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>5.6.0</version>
</dependency>
2.生产者配置
--默认配置--
//创建链接工厂对象
//设置RabbitMQ服务主机地址,默认localhost
//设置RabbitMQ服务端口,默认5672
//设置虚拟主机名字,默认/
//设置用户连接名,默认guest
//设置链接密码,默认<PASSWORD>
---频道是对co... | 93daf2f56e935587f71124b861a671d78b31a989 | [
"Java",
"Text"
] | 2 | Text | wanghouhc/RabbitMQ-Demo | 8c21b125483ac81d9233fb355bb7e6ee73bab643 | adc0551a81f8509102d9957ca6ee6bb43ec9fd75 |
refs/heads/master | <repo_name>mark-petersen/jigsaw_to_MPAS<file_sep>/build_mesh.sh
#!/usr/bin/env bash
# Directs process to build MPAS mesh using JIGSAW
# <NAME> and <NAME>, 01/19/2018
# Last updated 4/20/2018
# user defined commands and paths:
MATLAB='matlab -nodesktop -nodisplay -nosplash -r '
MPASTOOLS='path/to/repo/MPAS-Tools'
JIGSA... | 5d0288d57aae4016e0a95793a007d8e22e9c7084 | [
"Shell"
] | 1 | Shell | mark-petersen/jigsaw_to_MPAS | f76cbcd3ac7a953b758d81786e26abfdf317c7b2 | 335aca212543f5a9df6aea9a46772a98ee8e18ca |
refs/heads/master | <repo_name>Alfredx/SCrawler<file_sep>/poe_tw_stash/crawler/stash_crawler.py
# -*- coding: utf-8 -*-
# author: ShenChao
from collections import deque
from threading import Thread, Lock
import datetime
import django
import json
import logging
import os
import requests
import sys
import time
import uuid
reload(sys)
sys.s... | bf9edf56a5b9c9876e636a5e14009ec05f8e1d36 | [
"Python"
] | 6 | Python | Alfredx/SCrawler | ca65a0141086a9097a1f189275dd17c654278699 | eedba5b27be7e31080721ec97db281053ceb9ee4 |
refs/heads/master | <file_sep>rootProject.name = 'towersofhanoi'
<file_sep>To run this program:
```bash
./gradlew run
```<file_sep>package com.williamliu8
fun main() {
print("Hello <NAME>!")
} | 7ec5e25dd4b54f2b7f7f21ec75de2904a728b452 | [
"Markdown",
"Kotlin",
"Gradle"
] | 3 | Gradle | sefthuko/towersofhanoi | 8183e3aa63be80868ad9980283e0a40d65e404b8 | 6265533396891b0185b7f461340d1124045eb7ed |
refs/heads/main | <file_sep># *************************************************
# HEADER
# *************************************************
# -*- coding: utf-8 -*-
"""
Filename: name_iteration_keyword.ipynb
Author: <NAME>
Phone: (210) 236-2685
Email: <EMAIL>
Created: January 00, 2020
Updated: January 00, 2020
PURPOSE: d... | 5f27cf6ba75dfe4015eaea2f697c90fc0ee57f4e | [
"Markdown",
"Python"
] | 2 | Python | ecdedios/code-snippets | 625863768eebb83fa0e657a2797f2cb74271fb17 | 75df17f8f8d3a0eeca5447255e3d5f6f5b250637 |
refs/heads/master | <repo_name>douglasgloverUCF/glover-cop3330-ex10<file_sep>/src/main/java/base/App.java
/*
* UCF COP3330 Summer 2021 Assignment 1 Solution
* Copyright 2021 <NAME>
*/
package base;
import java.util.Scanner;
/*
Working with multiple inputs and currency can introduce some tricky precision issues.
Create a simple self-... | 6f35cae6d2892b6125fae3730eeed4af27cf1021 | [
"Java"
] | 1 | Java | douglasgloverUCF/glover-cop3330-ex10 | 100eeb472fef052487e538f8d72c00bb97ddc706 | eb5c994c496f5ea328375b1b3d22be481d79e593 |
refs/heads/master | <file_sep>package com.example.vv.broadcastandnoti;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
public class MyForegroundService extends Service {
public My... | 0c259423abe8745e86752af6b3cee3913a2b948c | [
"Java"
] | 1 | Java | FominSergey/BroadcastAndNoti | 28d5d6a60caba83b6203e95da155a2b146ca6858 | 608927656ba854b9e666ecd9db47d37ea6dc0148 |
refs/heads/master | <file_sep>/*
* *********************************************************
* author colin
* company telchina
* email <EMAIL>
* date 18-1-9 上午8:51
* ********************************************************
*/
package com.zcolin.ui.demo;
import android.os.Bundle;
import android.support.v4.app.Fra... | 7545818aacd8e17ad8c83c3f3798ad5ae0393cfd | [
"Java"
] | 3 | Java | Along-PC/ZUILib | 804d8a5dbfeb7c74df9617f11946b6d5d88d4401 | cd405a7b20a872135752eaab4f9f61220cd46043 |
refs/heads/master | <repo_name>stigsanek/directory<file_sep>/js/main.js
'use strict';
(function () {
var bodyElement = document.querySelector('body');
// Функция рендеринга всех карточек и запись объектов в массив
var workerLists = [];
var wrapperElement = bodyElement.querySelector('.wrapper');
var workerListElement = bodyElem... | 47b35af90eb1c80064ecb87fcf487fe6fbd1d934 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | stigsanek/directory | 94c67fe88219f9fa7d0b5a6ca18bc2a39e699c6d | f2d3edde431e8318709c86847151a1f093d7a727 |
refs/heads/main | <repo_name>LukeNg3010/PSG-Project<file_sep>/src/app/tools/reply/reply.component.ts
import { Component, Inject, OnInit } from '@angular/core';
import { FirebaseTSFirestore, OrderBy } from 'firebasets/firebasetsFirestore/firebaseTSFirestore';
import { FirebaseTSApp } from 'firebasets/firebasetsApp/firebaseTSApp';
import ... | d9cdd540bae1f00891eecd1e5fefaab86c617e7f | [
"TypeScript"
] | 11 | TypeScript | LukeNg3010/PSG-Project | 9fe083759584a73d218382d43100924e88ab8258 | 9eb740c7b14ec5b9a04e7a15958d3d8079486829 |
refs/heads/master | <file_sep>-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Anamakine: 127.0.0.1
-- Üretim Zamanı: 10 May 2020, 18:42:49
-- Sunucu sürümü: 10.4.11-MariaDB
-- PHP Sürümü: 7.4.4
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_S... | 8eb06204d88d6e7eadf26533f9fa97ae61ce5c72 | [
"SQL",
"PHP"
] | 6 | SQL | onur-kantar/PHP-CRUD-Functions | 7f2b0abc4ea57fd2a5e694ba691414d603c69812 | 08328c04513583207c8024ff1e1fdaff0fd932d2 |
refs/heads/master | <repo_name>piksel/kai<file_sep>/kai/Hasher.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Piksel.Kai
{
class Hasher
{
internal static uint HashFile(string file)
{
using (var fs = File... | c1bd79e1d0bb1cdbe5a3cf786722109b2e6f5fb0 | [
"C#"
] | 14 | C# | piksel/kai | 77302610aacb40eb49408822e3e97ff0a58094ca | ef5b58fe272ca489c8ee168d8bc034dc8f4f2406 |
refs/heads/master | <repo_name>Bokeefe/EquisiteWarps-Beta<file_sep>/dist/waveform-playlist/public/js/CorpseSchema.js
/* jshint esversion: 6 */
module.exports = (mongoose) => {
var CorpseSchema = new mongoose.Schema({// creates a new mongoose schema called CorpseSchema
warpName: String,
created: Object,
numCont:Number... | 430a62f2cf472806258837dc9083d69b59e2d3aa | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | Bokeefe/EquisiteWarps-Beta | 5eddde95fbd2d8465286121e603eaa74e7364257 | 0bc2a993671e6dc9add2ff6a49a5bead0695437d |
refs/heads/main | <repo_name>RaulRodrigues06/web-backend-1<file_sep>/ficha6/index.js
//importar o express
const { json, response } = require('express');
const e = require('express');
const express = require('express');
//require para o file system
const fs = require("fs");
//const bodyPlaser = require("body-parser")
// funçao para ler ... | 50c75fbb3bb3f78df1f6faee377a4325011443af | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | RaulRodrigues06/web-backend-1 | 38215d53219ef9dd915a8cb0ba7103faeb5f00fe | 16bf670236a6b7d303ff17f7d1bce2fcb183d0f4 |
refs/heads/master | <repo_name>Tasspazlad/Story_generator<file_sep>/story generator.py
import random
from time import sleep
mainChar = input("Main character: ")
rivalName = input("Rival's name: ")
activity = input("Daily activity (e.g. watching TV): ")
posAdj = input("Positive adjective (e.g. funny,happy) : ")
negAdj = input("Negative ... | 075b2b600cab9432ea4d2db2dff029c866a17715 | [
"Python"
] | 1 | Python | Tasspazlad/Story_generator | 78065daf6ee74aaba3839bb7e2a926e039549748 | 45d1286ac6c8dbda893db109da6547f87e0fe918 |
refs/heads/master | <file_sep><?php
echo "starting install\n";
$cmd = 'mysqld --user=mysql';
$outputfile = 'mysql.log';
$pidfile = 'mysql.pid';
exec(sprintf("%s > %s 2>&1 & echo $! >> %s", $cmd, $outputfile, $pidfile));
echo "my SQL Started\n";
sleep(5);
exec("mysql -uroot -hlocalhost < setRootPassword.sql");
echo exec("ps -ef");
// ... | db984aca02bc32175ee6997ca35b4e4bd37e3e96 | [
"Dockerfile",
"PHP"
] | 2 | PHP | prowe/mysql-in-build | 7ab9e1abb05febfef96ae6c088d37fbccb1103dc | 240fcfbc3b73d1f96af7d471337bd5d0edd4f554 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Newtonsoft.Json;
using NsqSharp;
using wwToolkit;
namespace NSQ_Producer
{
public p... | 94cb5c4d2100f4817d104bf5517a38df499c0bf1 | [
"C#"
] | 1 | C# | WhiteRoomAutomation/NSQ-Producer | 98554df98542144ba19cd7ab7ad4cb3e3b29b89b | 2ff3377db94600b1bbc180710bcb58bc20c3b0c8 |
refs/heads/main | <file_sep>import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import cv2
from PIL import Image
class nn_after_feature(nn.Module):
def __init__(self, hidden_one, hidden_two):
super(nn_after_feature, self).__init__()
self.name = ... | 06f0b18811e5464d13d5515740ca7d0251716ea9 | [
"Python"
] | 6 | Python | YuqianX/APS360-Project | a562160e0aa0038820f128af5631ff3e8c2e1cc5 | a7bce15c9a6314298de918c2b83f01de9c80a27d |
refs/heads/master | <repo_name>tomasabril/DB_CRUD<file_sep>/DbCRUD/src/tabelas/PedidoDetalhes.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tabelas;
import java.io.Serializable;
import ja... | f1b28bf31e5382811fb275b189a63bc49a1bf96d | [
"Markdown",
"Java"
] | 4 | Java | tomasabril/DB_CRUD | 4d4d3f187a9db04aef5b39b0b2535174aafcb239 | 173d8361785a874d83407c9d9023a77eedb13bc4 |
refs/heads/master | <repo_name>israeldago/bancaLIB<file_sep>/src/service/ConturiServiceRemote.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package service;
import dto.ContDTO;
import dto.Transac... | cf6d6c85a394694d946f2dcc948e6a1e1c0e4818 | [
"Java"
] | 3 | Java | israeldago/bancaLIB | 3387d8f838ed668dfb7176893c6622f471332bf1 | 59a3d4e85c1bf628b820cd0a30e07a44f23a3e62 |
refs/heads/master | <file_sep>def ftoc(tempf)
((tempf - 32) / 1.8).to_f.round
end
def ctof(tempc)
((tempc * 9/5) + 32).to_f.round
end<file_sep>def add(x, y)
x + y
end
def subtract(a, b)
a - b
end
def sum(arr)
if arr == []
return 0
else
arr.reduce(:+)
end
end<file_sep>def echo(word_echo)
"#{word_echo}"
end
def shout(word_sh... | 78704036801e642f5648b0dff4b6a12478cfd1b9 | [
"Ruby"
] | 3 | Ruby | mitchbank/learn_ruby | 0fe2228fb0a44685e3b44788b119ceae592ded26 | b1cdca04adb2fd7dad3d1b58d6968034cdc6a6bc |
refs/heads/master | <repo_name>aimflaiims/snake-game.github.io<file_sep>/src/components/Navigation.js
import React from "react";
import {NavLink} from 'react-router-dom'
const Navigation = () => {
return (
<div>
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-h... | b304eca42b9b6c46701d0fc59d2409f29a1e4a33 | [
"JavaScript"
] | 3 | JavaScript | aimflaiims/snake-game.github.io | 94276c4eaa5af1acdb922e3170e24c3e95d87d30 | 4a2ba2d4dab730ca6226e14927eb54b4504e61bf |
refs/heads/master | <repo_name>utkarsh2kalia/Movie-Review-Sentiment-Analyser<file_sep>/myapp.py
import pickle
from imdb import IMDb
import bs4
import requests
import re
from flask import Flask, flash, jsonify, redirect, render_template, request, session
from googletrans import Translator
translator = Translator()
# myinput = str(input()... | df2fce0f0655acc96375eaa28fe90f735284b995 | [
"Python",
"HTML"
] | 3 | Python | utkarsh2kalia/Movie-Review-Sentiment-Analyser | d2a26c4fd183a5c4d1c66150f1d966af8f0a0db0 | c5cb91fd26e84ee18b722caaaf67656416ad98e2 |
refs/heads/master | <repo_name>mahdi-mahdawi/Cowl-group<file_sep>/README.md
# COWL Online Writing Lab
<file_sep>/index.php
<?php include 'database.php'; ?>
<?php
//Get total questions
$query="SELECT * FROM question";
//get results
$results= $mysqli->query($query) or die($mysqli->error.__LINE__);
$total= $results->num_rows;
?>
<html... | 481b5f44c04484e2c9eced70693028a7ba94c727 | [
"Markdown",
"PHP"
] | 3 | Markdown | mahdi-mahdawi/Cowl-group | 5cc7c58125370282fd4b269ad4fb9a2faa9ba3de | f9589ee19c97353fe726424b365b0e27cbb3d8a5 |
refs/heads/master | <repo_name>fkabir101/note-taker<file_sep>/routes/api/apiRoutes.js
const router = require("express").Router();
const noteController = require("../../controller/notesControl");
router.route("/")
.get(noteController.getAllNotes)
.post(noteController.postNote);
router.route("/:id")
.get(noteController.getSingleNote... | b5187ae279c9c0e527e4fe97849d9bbb269055b9 | [
"JavaScript",
"SQL"
] | 4 | JavaScript | fkabir101/note-taker | 4f96ed4d8e66600e5c5a5a261df8fe1a1600d0d5 | 7ac0d8d482337c19ef3f702f01a3f131e5851e3d |
refs/heads/master | <repo_name>freyes26/MiniTwitter<file_sep>/app/src/main/java/com/example/minitwitter/ui/Login.kt
package com.example.minitwitter.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.... | 94448bb50f9c1222c2dfe0126fd708e0986d6764 | [
"Kotlin"
] | 22 | Kotlin | freyes26/MiniTwitter | c0cdd89f1dc14be9e819420853ce2a75e5b1436d | a2ab5bdfb88fc0abae7d5a915d4d228abf7ff7e8 |
refs/heads/main | <repo_name>JLamp/vhs-buttons<file_sep>/src/components/ToggleButton.jsx
import { Button } from "./Button";
import { useState } from "react";
export function ToggleButton({
toggleOffIcon,
toggleOnIcon,
toggleOffLabel,
toggleOnLabel,
}) {
const [toggle, changeToggle] = useState(false);
function handleClick() ... | 54002fcfdbdf0bf13b738c330ce55c3d25af9e17 | [
"JavaScript",
"Markdown"
] | 16 | JavaScript | JLamp/vhs-buttons | 7091f0b9ef0aaee3c97d6a0a3ab9513caa11a5da | 295af416388bb757b948bdfc3be076589168e463 |
refs/heads/master | <repo_name>lologhi/redmart-per-kilo<file_sep>/background.js
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
chrome.browserAction.onClicked.addListener(function(activeTab) {
console.log("... | 2c3ce816c4e0eea0ae09e301e9c678858dc42610 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | lologhi/redmart-per-kilo | 39fe58e68ed3ea933472563bc51ca41d1d12fb21 | 8ac1c032b7b11e89b4ff1692c352b4366470206d |
refs/heads/master | <file_sep>package org.wayfinder.graphhopper.util;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Created by kreker on 05.05.15.
*/
public class GraphHopperHelper {
public static List<List<Double>> parseGraphH... | baeb92d0914e56e3cf811b5633bd1f9d7b53c1e0 | [
"JavaScript",
"Markdown",
"Maven POM",
"Java",
"Python"
] | 12 | Java | kzkreker/wayfinder | bfa2def97e67350b1b84d160f4943b7c445960b1 | d1465426af2ff05546bfad8a453cfbfd99e4d454 |
refs/heads/master | <file_sep>import yaml
import sys
import os
import re
import glob
import scipy.stats
import collections
import itertools
class bcolors:
BLUE = '\033[94m'
GREEN = '\033[92m'
RED = '\033[91m'
BOLD = '\033[1m'
ENDC = '\033[0m'
def load_config():
global work_dir, client_name, config
if not len(sys.... | 539269ed1b08c5c3c9e7d26372ea29b09eae4afb | [
"Markdown",
"Python",
"Shell"
] | 3 | Python | gergely-elias/holmgang | 9c9b44a78eafc8508a642273ae1295b00d4fdc37 | 99804b1d4be82d1b67f9992b3979f366c24038f5 |
refs/heads/master | <repo_name>ILDAR1976/spring_edu_001<file_sep>/src/main/java/ru/todolist/TodoApplication.java
package ru.todolist;
import org.apache.log4j.Logger;
import javafx.application.Application;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import ru.todolist.controller.MainController;... | d1e5daa7fb633b35d64e536aff9fb87e769e8ea5 | [
"Java",
"Gradle"
] | 3 | Java | ILDAR1976/spring_edu_001 | b6ecf04cbe839252abb4694cae8550a04e977923 | de94ff74dee53013abc0fbef85f00706fae3144b |
refs/heads/master | <repo_name>Nicholas-R/Nicholas-R.github.io<file_sep>/test/src/form.php
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Создание формы обратной связи</title>
<meta http-equiv="Refresh" content="4; URL=http://index.html/">
</head>
<body>
<?php
$sendto = "<EMAIL>";
$username = $_POST['name'];
$us... | 196ce0bd68974dcb891311fb761c06092b76653a | [
"JavaScript",
"Markdown",
"HTML",
"PHP"
] | 5 | PHP | Nicholas-R/Nicholas-R.github.io | b7209a58f82be99c0956998d4307ea526ef9d96c | 209ec376fe7b4afd57a684fab1ad008a857f9528 |
refs/heads/master | <repo_name>shrawangaur/NitroCabBooking<file_sep>/src/com/booking/literals/BookingLiterals.java
package com.booking.literals;
import com.booking.domain.BookingRequest;
import com.booking.domain.Cab;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayL... | 591078146c1eb8eceef5b35ac39bd014b4b446d9 | [
"Java"
] | 2 | Java | shrawangaur/NitroCabBooking | d93dfd87d073b5107b3387a84470fc47e71fc3ba | 7ccebc85dca444ff502232f92421ce6bd24dbb8e |
refs/heads/main | <file_sep>"""
Created on Fri Nov 13 10:57:55 2020
@author: <NAME>
"""
import matplotlib.pyplot as mpl
# Define the functions dy1, dy2, dy3 and dy4
def dy1(x, y1, y2):
return y2
def dy2(x, y1, y2):
return (2*y2 + y1 - x) / 7
def dy3(x, y3, y4):
return y4
def dy4(x, y3, y4):
retur... | 91ad35221d2934f5f844195bfa5508eeb621a2d8 | [
"Markdown",
"Python"
] | 12 | Python | NgBoonYong/SIF3012-Computational-Physics | f31a37fe51501188c4447968125df300d1503859 | feaa54b9452f22ff9cce3393c2c20b4b6a967264 |
refs/heads/master | <repo_name>Mark-SS/ABBadgeView<file_sep>/README.md
# ABBadgeView
- ABBadgeView is badge view by swift2.0, based on [JSBadgeView](https://github.com/JaviSoto/JSBadgeView).
## MIT License
<file_sep>/BadgeView/ViewController.swift
//
// ViewController.swift
// BadgeView
//
// Created by gongliang on 16/4/21.
// Copy... | eccc3b183c80a75af2bf00ee72b52f006bef2687 | [
"Markdown",
"Swift"
] | 3 | Markdown | Mark-SS/ABBadgeView | 8de73f1ae43fa35b892a285c78714055658d57b7 | ddd8d6ea5e7cda16d15239421f229e7015f7fb28 |
refs/heads/master | <file_sep>"""
temperature_cpp
Example of binding C++/Python via setuptools
"""
# Add imports here
from .temperature_cpp import *
# Handle versioneer
from ._version import get_versions
versions = get_versions()
__version__ = versions['version']
__git_revision__ = versions['full-revisionid']
del get_versions, versions
| 67148125ac75d24713b09962107e002a57f90189 | [
"Python"
] | 1 | Python | arpitban/temperature_cpp | dfc56f5039df983a72df24b35c2f5e00e905dd9c | 41913dd6578886c246198f513aaba17a288b0409 |
refs/heads/master | <file_sep>package main.java.com.techolution;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class TwoCircles {
private static String[] circles(String[] circleInfos) {
String[] circleLabels = new String[circleInfos.length];
for (int i = 0; i < circleInfos... | 567c71d39837be7d4501eac57378191d9fa01f55 | [
"Java"
] | 4 | Java | saipraveen-a/MaxSatisfactionProblem | f8addf9f3b256358d540939a372d8dce2c298a0e | f02065b288e86443d2937442bdf7f95c1e78c7d1 |
refs/heads/master | <repo_name>karan1dhir/CU-Bootcamp-1<file_sep>/Script-1.py
#Find the highest-grossing movie (i.e domestic earning + worldwide earning) in IMDB database year wise.
import sqlite3
import pandas as pd
from matplotlib import pyplot as plt
db = sqlite3.connect('IMDB.sqlite')
heighest_movie_arr = []
dataFrame_earning = pd.r... | 338d520669c583b0a01e5f373ddfd7e0eb9ca73b | [
"Python"
] | 2 | Python | karan1dhir/CU-Bootcamp-1 | 35e28b426f5a1146ad88e17f917ee97b56b80dee | 79f4c086db954044b86ec6635861cce60987f566 |
refs/heads/main | <repo_name>RMedina19/Intersecta-PJCDMX<file_sep>/análisis/03_visualización_EV.R
########## Medidas cautelares TSJ CDMX
rm(list=ls())
# setwd("~")
dir <- paste0(here::here(), "/GitHub/Intersecta-PJCDMX")
inp <- "datos_crudos/"
out <- "datos_limpios/"
setwd(dir)
require(pacman)
p_load(scales, tidyverse, stringi, dpl... | 333c0b5c43c56475c0c885b07d58817ae0cd0430 | [
"R"
] | 6 | R | RMedina19/Intersecta-PJCDMX | f717781e705fa10d7ea8648d5655ce41b4ba1587 | 6d2172962236ca748176b960fd53f4cc3d8884bc |
refs/heads/master | <repo_name>panxshaz/PSQRcodeGenerator<file_sep>/PSQRcodeGenerator/ViewController.swift
//
// ViewController.swift
// PSQRcodeGenerator
//
// Created by <NAME> on 29/03/19.
// Copyright © 2019 idevios. All rights reserved.
//
import Cocoa
class ViewController: NSViewController, NSTextFieldDelegate {
@IBOutlet ... | 88b3235c2b52646ced2e1e5f0cca86df1b7c0391 | [
"Swift",
"Markdown"
] | 2 | Swift | panxshaz/PSQRcodeGenerator | 9e349b4ac8e8a96d5f4f3713e93e2447f7e8971d | 7d700f1fe40b8a12cb83500ee1e7c666b85917d2 |
refs/heads/master | <file_sep>package com.example.demo;
/**
* Created by diegods on 07/03/18.
*/
public class EstabelecimentoModel {
private String nomeEstabelecimento;
private String responsavelEstabelecimento;
private String telefoneEstabelecimento;
private String ruaEstabelecimento;
private String numeroEstabele... | 8bf23255cda25950ac8f74e4a6f7aaabba1c5ec7 | [
"Java"
] | 1 | Java | duque-diego/springboot-gae | 4eaec11d5bf62ed231802f573ed83fbba7fa8ae7 | f198bb2188c3e5baea93bc5bf3267cd572cf4776 |
refs/heads/master | <repo_name>BrettFyfe/hello-world<file_sep>/README.md
# hello-world
first repository
Its ya boi brett here. made this repository in computer software development class in lewis and clark.
##CHANGELOG
added hello world - 10/26/17
added helloworld.png - 10/31/17
<file_sep>/helloworld.py.save
#!/usr/bin/env python3
# He... | 972bb4e0fcb317c9752a123f874e7efa7410cfb1 | [
"Markdown",
"Python"
] | 2 | Markdown | BrettFyfe/hello-world | c71244dede96f52fb07b3061f6fe4ed9866ac5e0 | 99719f5d8727878b07e6016288883807987e71f9 |
refs/heads/master | <repo_name>kendsr/cs50-finance<file_sep>/requirements.txt
appdirs==1.4.3
bcrypt==3.1.3
cffi==1.10.0
click==6.7
cs50==1.3.0
Flask==2.3.2
Flask-Session==0.3.1
itsdangerous==0.24
Jinja2==2.11.3
MarkupSafe==1.0
packaging==16.8
passlib==1.7.1
pycparser==2.17
pyparsing==2.2.0
six==1.10.0
SQLAlchemy==1.1.9
Werkzeug==2.2.3
<fi... | 9cc1fe4c499e721fd2e74682ae8c30051af3b44f | [
"Markdown",
"Python",
"Text"
] | 3 | Text | kendsr/cs50-finance | fffaf515c7705eec4dbc39167fbdc30ce078a27c | fecf270eac96323ea421ab5b5efaa92856811ba6 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import { Router, CanActivate, ActivatedRouteSnapshot, CanActivateChild } from '@angular/router';
import { AuthService } from './auth.service';
@Injectable({
providedIn: 'root'
})
export class RouteguardService implements CanActivate, CanActivateChild {
constru... | 1d0cd0f37a8c4f2fc203662087e4fb911b793ee5 | [
"TypeScript",
"HTML"
] | 26 | TypeScript | balajkhan07/mockexamadmin | f7edb2b30263515218547abf8c271aeb19db53ef | 1da5037de7486756dd02b03ff6717efd0945d062 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace ConsoleLogging
{
class Program
{
private static readonly log4net.ILog log = LogHelper.GetLogger(... | a3bc8e3f6e01a6957f3c1b10011d563276262fc5 | [
"C#"
] | 1 | C# | akumarjha/Log4netTutorial | b2dc0b619b3e8bf76197e418c0863e1de8b34bfc | a5c04e7c69f70575f14b835075f0c5c2bc3e8c68 |
refs/heads/master | <file_sep>#
# MIT License
#
# Copyright (c) 2020 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | a1d42b575c219e3cd6117e8e1254dedcf9683bb8 | [
"Markdown",
"Python"
] | 13 | Python | gwappa/python-neurodatablock | c8beb315177a850e9d275902a6303e68a319c123 | de54218ebdf37da38eeceef98b405d20238444e7 |
refs/heads/master | <repo_name>tracylei/tracylei.com<file_sep>/app/controllers/comments_controller.rb
class CommentsController < ApplicationController
def index
#retrieve associated post
post = Post.find(params[:id])
comment = post.comments.create(comment_params)
#respond with both since comment is a nested resource
#json will... | b20bcc7c1e2fb5358ca5e32b2fcee4a88e111816 | [
"Markdown",
"JavaScript",
"Ruby"
] | 5 | Ruby | tracylei/tracylei.com | 6801e22b490b62ffaedf4a16c57e7514e82d8408 | 724028230fbf5b4b878276fe15ff1b7cfc98f184 |
refs/heads/main | <repo_name>LiMeijdam/ir-background-linking<file_sep>/bglinking/graph/graph_comparators/GMCSComparator.py
import numpy as np
from scipy import stats
from collections import defaultdict
import operator
import warnings
from bglinking.general_utils import utils
from bglinking.graph.graph_comparators.InformalGraphComparato... | 4932bd7a971f159c7bc5cfe66a9635b598225e36 | [
"Markdown",
"Python"
] | 8 | Python | LiMeijdam/ir-background-linking | f51aea37edfec5cb18b10f078a5f686f7aec414a | 27fd70dcb5fd5877639a1af711f537fb673d0804 |
refs/heads/master | <repo_name>leeh90/becajava.exercicio-logica-programacao2<file_sep>/src/exercicio2/ExercicioLogicaProgramacao2.java
package exercicio2;
import java.util.Scanner;
public class ExercicioLogicaProgramacao2 {
public static void main(String[] args) {
Scanner ler = new Scanner(System.in);
double salario;
double rea... | f68fe655d3af7e6fa3fccfa56fd6f282757e6a06 | [
"Java"
] | 1 | Java | leeh90/becajava.exercicio-logica-programacao2 | 6285e224e13aad953ba704e335afb9f2f794f122 | 0f46cf82c471c93d50d7fecc40d2e2f1f38377d3 |
refs/heads/master | <file_sep># pebbleGarageDoorOpener
I am trying to implement this project that I came across while browsing.
This is the link to the original designer of this project: http://contractorwolf.com/sparkcore-smart-garage/
Thanks a lot Contractwolf for the good documentation. This project would be interesting.
<file_sep>#... | cf8c90e82cfd5810423c37ec666be2b856a3964d | [
"Markdown",
"C"
] | 2 | Markdown | rutayanp/pebbleGarageDoorOpener | c2518ca3cc26dc9525b2e2758c5d7d8bc9d82c7f | 20189b33e0837dc1f35af523895a68dae51e29e9 |
refs/heads/master | <file_sep>'use strict';
const Ajv = require('ajv');
const reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*))(?:Z|(\+|-)([\d|:]*))?$/;
/**
*
* @param {*} key
* @param {*} value
*/
function reviver(key, value) {
if (typeof value === 'string' && reISO.test(value)) {
return new Date(value);
}... | 36b08dc2a07835905daacb835e9a71c89b6903d5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | fospitia/dynorm | 1743a9d8bbe1ca077ad3a26e1f882ca0b7b78f95 | e94df5a0f872513bb41216705a9eb73e5a675189 |
refs/heads/master | <repo_name>tsstace/Neighborhood-Traffic-App<file_sep>/README.md
# About Abelian Sandpiles:
The sandpile model (proposed by Bak, Tang, and Wiesenfeld) is a simple N-by-N grid, wherein each grid cell (box) can have 0 to 3 sand particles. At each iteration, a single grain of sand (particle) is added to the system by drop... | ba65f12e4526f7c6ffcbba2d791e5101e2dda8c6 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | tsstace/Neighborhood-Traffic-App | 44c15ee21bf8a6f91a99c66d9bbabaa19d3bce62 | 9addc765fce929b531f96f2271593ba59bd6401f |
refs/heads/master | <repo_name>angelamissgao/HitMap<file_sep>/ui.R
library(shiny)
library(leaflet)
shinyUI(
navbarPage(
windowTitle="Hitmap" ,tags$img(src="img/logo.png", class=""),
theme = "css/full.css",
# div(class = "busy",
# img(src="img/busy.gif")),
sidebarLayout(
mainPanel(
leafletOutput("map", ... | c38cc1c3792ef06150de66f47ebc38bb6f9ef01b | [
"R"
] | 3 | R | angelamissgao/HitMap | ba9d4e28fa31680944752419b96fc4ea03906a0c | 236d628dda081f779195309fbd53c3950ceb2b5c |
refs/heads/main | <file_sep>import os, sys, time
runid = sys.argv[1]
for x in range(20):
print("Run number: {}, repeated {}".format(runid, x))
time.sleep(20)<file_sep># bc-ccm-copy
Action to copy Ansible folder from source to destination directory
<file_sep>PyGithub==1.55
GitPython==3.1.24
<file_sep>#!/usr/bin/env bash
tmprepo=${RE... | 929e0f49d226ad97fa7d09ccf9b5ca39ae5e06e8 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 4 | Python | ldahlke/bc-ccm-copy | 09a05be14b323fba57eb41f56b6ca022af9d11ca | b329943e3588b6e4604e1809d97d7e39561eaf0b |
refs/heads/master | <repo_name>Xabierland/PMOO<file_sep>/lab7/src/packlaboratorio7/Pareja.java
package packlaboratorio7;
public class Pareja
{
// atributos
private Alumno Hombre;
private Alumno Mujer;
// constructora
public Pareja(Alumno pAlumno1, Alumno pAlumno2)
{
if (pAlumno1 instanceof Hombre && pAlumno2 instanceof Mujer)
{... | 1da7561d4d0936a02acf9c23516b03d3619245dc | [
"Markdown",
"Java"
] | 43 | Java | Xabierland/PMOO | 1544c5ce001420a97420b1cad784e8fd1b698a5d | 0b4e3999c938cf41ebb47c0a5974ad73a8c2a2fc |
refs/heads/master | <repo_name>laryssacarvalho/projeto_LFA_2<file_sep>/Projeto2/Pilha.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Projeto2
{
class Pilha
{
private object[] elementos;
private int topo;
private int maximo;
... | 2ee9c9daf8e28a520346ec39f517b2c7ced2c347 | [
"C#"
] | 4 | C# | laryssacarvalho/projeto_LFA_2 | 347c26398d5fd252a481c9b5241132cb2ec7d1b5 | b77fbdfdd043cb3642a97210fdf4f78c83e6365c |
refs/heads/main | <file_sep>const FundraiserContract = artifacts.require("Fundraiser"); //This tells us were going to be working with the fundraiser contract
contract("Fundraiser", accounts => { //using contract
let fundraiser;
const name = "<NAME>";
const url = "benificiaryname.org";
const imageURL = "https://placekit... | f83ab39c27c544e5d88bd06062baa8056ad50472 | [
"JavaScript"
] | 1 | JavaScript | nigeldaniels/fundraiser-tutorial | 33e80aeca790d427fbe53aa89da5fa5a366b8449 | 0fca3dbdf81c099d23ca39457301bdc0782c8082 |
refs/heads/master | <file_sep># Spelling Bee Solver
Produces solutions for the "Spelling Bee" puzzle, featured on [Bloodfeast](http://www.adultswim.com/videos/streams).
Usage:
```
./spelling-bee-solver.py <required letter> <all letters in puzzle> <words text file>
```
Plaintext file containing English words (may contain proper nouns) in... | 178c66fcfc1070ba99ea7b5c4255d4043cfb6f73 | [
"Markdown",
"Python"
] | 2 | Markdown | icenine457/spelling-bee-solver | 9ec47d42709bc223a96b3628527c5d9303b1367a | e6f9dae46fefd7f0657a769f94775cc82c34fc8c |
refs/heads/master | <repo_name>hosseiniSeyRo/GetCurrentLcation<file_sep>/app/src/main/java/com/example/mygpstestapplication/Main2Activity.kt
package com.example.mygpstestapplication
import android.content.pm.PackageManager
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.A... | ede6c318642827b574a695052dda63225f87ce2b | [
"Kotlin"
] | 3 | Kotlin | hosseiniSeyRo/GetCurrentLcation | 4bf813f849446dfcfd0db474ef0da01eae0aa4e1 | d41ce5e2660fcaa9a8504049fb7a62df41059b83 |
refs/heads/master | <repo_name>alslahxh01/ex2<file_sep>/src/main/java/com/choa/notice/NoticeDAO.java
package com.choa.notice;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.sql.DataSource;
import org.sp... | f432f122584454bfcc6cb95523e2d60d146c8e0b | [
"Java"
] | 1 | Java | alslahxh01/ex2 | 45a18799d00f28f067003caa6eb9b82d57249e49 | 1170f102dbcf2b29c3ed207e0aa44a15139b53e3 |
refs/heads/master | <repo_name>dkeightley/rancher<file_sep>/pkg/api/steve/clusters/apply.go
package clusters
import (
"bytes"
"encoding/json"
"net/http"
"github.com/pborman/uuid"
"github.com/rancher/apiserver/pkg/types"
"github.com/rancher/steve/pkg/stores/proxy"
"github.com/rancher/wrangler/pkg/apply"
"github.com/rancher/wrangl... | dfdbd86aee8b8f3a198a1ea3b4236f2ba52a2839 | [
"Go"
] | 2 | Go | dkeightley/rancher | e11ed8cced92c679368cfd3ea6db1c4b2ef93d04 | 76f2542fb64f61488d61d7be624d751f85dfe816 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.