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>jovanesDev/NubceoFronEnd<file_sep>/front-end/src/components/MusicStore/MuiscStore.jsx
import React, {useEffect} from "react";
import { useSelector } from "react-redux";
import Grid from '@material-ui/core/Grid'
import {useStyles} from "./styles"
import Bands from "../Bands/Bands";
import UseFilterByGenre fro... | daed2b8375a9a685acbed271eeed4b09346723c9 | [
"JavaScript",
"Markdown"
] | 22 | JavaScript | jovanesDev/NubceoFronEnd | e52eeccf1755a56c32457259de5607bfc47919de | 0618b4b5e2791c633c82d64b616f1b417e60c612 |
refs/heads/master | <repo_name>Akemon/XingChuangBackstage<file_sep>/XingChuangBackstage/src/mode/Worker.java
package mode;
public class Worker {
private String peopleName;
private String companyName;
private String companyPhone;
private String companyAddress;
private String userName;
private String updateTime;
public String getPeo... | 370c4346c6eef59d7d0dbbf84ce41c3be5c351d1 | [
"Java"
] | 7 | Java | Akemon/XingChuangBackstage | 0a901ff42cc364939b0a9337642e1679429cbf9c | 3cfff295b9442c4842ab2458879b34baed75db9d |
refs/heads/master | <file_sep>from django.shortcuts import render,get_object_or_404
from django.http import HttpResponse
from .models import Post,Tag,Category
from comments.froms import CommentForm
import markdown
from django.views.generic import ListView,DetailView
from markdown.extensions.toc import TocExtension,slugify
from django.db.m... | 2920b55b747582eea025581f4eb3298a1e01b075 | [
"Python"
] | 1 | Python | sgithubss/myblog | ae99c5b154c85cba6c40c72adbd0fbd0e6f60079 | 14b4278f5f4908d4173b5b77d87c551a47327c2e |
refs/heads/master | <repo_name>Vman45/nautilus-scripts-12<file_sep>/whois-script
#!/bin/bash
cd $NAUTILUS_SCRIPT_CURRENT_URI
count=0
percent=0
lines=`wc -l $* | awk '{print $1}'`
rm tmp.txt 2>/dev/null
sort -u $* > $*_unique
echo "Net Range;Net Name;Route;Origin / OrgTechHandle;Country;Organization, notes;IP;Domain" > tmp.csv
while rea... | a00c131a5a3c58d7c5494cde6da70336a09286fe | [
"Shell"
] | 1 | Shell | Vman45/nautilus-scripts-12 | 3ed92bec00e1dd201d4aa6f5d707d86b7a950a0e | 7287d70f2f625bcf3b53aa32c82b4205a607970a |
refs/heads/master | <repo_name>chrispjacobs/songs_lab<file_sep>/test.rb
class Artist
attr_accessor :name
def initialize(name)
@name = name
@songs_array = []
end
def songs
@songs_array
end
def add_song(song_variable)
@songs_array << song_variable
if song_variable.artist == nil
s... | 7ff69302379ca136f0e0d6ba11b17d6fad7c0baa | [
"Ruby"
] | 1 | Ruby | chrispjacobs/songs_lab | cfcbed1a3621143c73dd9d517b2e07937f2e7cc7 | ade157a8aaab19cccf1a56af1c1f7c130ea7cabf |
refs/heads/master | <file_sep>import React from 'react';
const SavedCharacter = props => {
return(
<div>{props.character.name}</div>
)
}
export default SavedCharacter
<file_sep>import React from 'react'
import {
Card, CardImg, CardBody,
CardTitle, CardSubtitle, Button
} from 'reactstrap';
import { conne... | 89cb870703606c340184f42422828abce6b42fd6 | [
"JavaScript"
] | 5 | JavaScript | jme-sull/React-Redux-App | 257c5c9b86b9a0e06a5fa790c649b657a27acaa6 | 3eae95596113f7654b1a35d92cda4fc60977cc7f |
refs/heads/master | <repo_name>leleomaster/asp.net_core_2<file_sep>/README.md
# asp.net_core_2
Learning asp.net core 2
<file_sep>/LearnAspnetCore_2_Page/Models/Customer.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace LearnAspnetCor... | b0c9cae2a60f7f74cd63a2bf95f815e4826c1555 | [
"Markdown",
"C#"
] | 2 | Markdown | leleomaster/asp.net_core_2 | 3476aade5b0b150d52ace4e63457fdee27572558 | 66c35c7e1633f928b66ac5a8e4b4473fc39fdfef |
refs/heads/master | <file_sep>"""
This example shows how to use stratified sampling to have an equal number
of samples from each class in each batch
"""
import torch
import numpy as np
from torchsample import StratifiedSampler
y = torch.from_numpy(np.array([0, 0, 1, 1, 0, 0, 1, 1]))
sampler = StratifiedSampler(class_vector=y, batch_size=2... | 4dffe3a0d4453f5f09f57ea70272b0343d9bba72 | [
"Markdown",
"Python"
] | 8 | Python | sampathweb/torchsample | e69997377755af60ade1963be55d3fe3d7f8357d | d32d29b7658dd129c1111d31c451a344c8eaf65d |
refs/heads/master | <file_sep>#!/usr/bin/env python
# 1-example
# A simple demonstration script to find the largest prime number
# below a given limit.
#
# This file is intentionally inefficient in order to demonstrate
# various ways to time execution
#
# Usage:
# time python 1-example.py 10000
#
# Author: <NAME> <<EMAIL>>
# Created: ... | f8cdcd5b470062acf75068333da0a3637f366ffd | [
"Markdown",
"Python",
"Text"
] | 3 | Python | ArchAiA/xbus-501-timing-demonstrations | 68ed1739b7acea7d561e6c682c68b916d8998ca1 | 46a3f83b8fa909367ec3343c6f4c60d85739ed54 |
refs/heads/master | <repo_name>csbt23/opencharity<file_sep>/README.md
# opencharity
Test project for Compucorp application
<file_sep>/page--node--1.tpl.php
<div id="container">
<header>
<nav>
<div class="row">
<div class="l2 m3 s12">
<?php if ($page['logo']): ?>
<?php print render($page['logo']); ?>
... | 7e0b868901bfa8456df5cfe7a110c5c1fe797528 | [
"Markdown",
"PHP"
] | 2 | Markdown | csbt23/opencharity | 69bca371cfdbbf988d1c31cf4c5346a52582d569 | 295e904d4df2d8cc088e4d7e9fc505e86fe5c504 |
refs/heads/master | <file_sep>import json
import requests
import boto3
from requests_aws4auth import AWS4Auth
import inflect
def lambda_handler(event, context):
print(event)
print(event["queryStringParameters"]["q"])
p = inflect.engine()
lex_client = boto3.client('lex-runtime')
lex_response = lex_client.post_text(
... | 6c6a4bdaaf9af373afcd5b6884f9435912bbbe55 | [
"Python"
] | 1 | Python | Rahul27297/IndexPhotosLambda | 97fa28880e27271cc9b81bd157b11e33a18a68cd | bf621875b6aa8fa9cc139eea7c8021a3fad9bfc4 |
refs/heads/master | <file_sep>import numpy as np
import matplotlib.pyplot as plt
np.random.seed()
'''
=================================================================================================================================================================================
Func... | 2489cff63e51b5e52cfd1f3c36eb144b89eec06d | [
"Python"
] | 3 | Python | ghogul/my_first_project | 6b557661522d0db11e8c92590817748bacc7ed45 | 20f5f29def0efac873a20ab7864a9c15a692ea83 |
refs/heads/master | <repo_name>Putnam3145/auxmaptick<file_sep>/Cargo.toml
[package]
name = "auxmaptick"
version = "0.1.0"
authors = ["Putnam <<EMAIL>>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["dylib"]
[profile.release]
opt-level = 3
lto = 'th... | 92077760c9258ef10c9a6834aa868bb60e5a329c | [
"TOML",
"Rust",
"Markdown"
] | 3 | TOML | Putnam3145/auxmaptick | 940575c4f02aac7db5f2dfe89feca83566e1538f | 8dcee6254acfbd24ade75fe39c15719e93f89432 |
refs/heads/master | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import SeasonDisplay from './SeasonDisplay';
import Spinner from './Spinner';
class App extends React.Component{
state = { lat: null, errorMessage: ''}
// this lifecycle method only gets called once, when our content first shows up on the... | de2861e6aae7d215fd6568df60fcc3875b99e2c8 | [
"JavaScript"
] | 1 | JavaScript | ricardosmithco/seasons | 57f4fb96d9c69a088c612bc03b982ba11ac1ffaf | 0193ac1666ff67f38044788e8d8c28a69d4c3040 |
refs/heads/master | <repo_name>willisdorden/WellStockedStork-react-<file_sep>/app/src/pages/ecomom/Ecomom.js
import React from 'react';
import {BrowserRouter as Router, Route, Link, NavLink} from 'react-router-dom'
import {Grid, Row, Col} from 'react-bootstrap';
import EcoEarthMom from './img/EcoEarthMom.png';
const styles = {
displa... | 6ed856a442c88bcbbd60a10c60fce8e7f27f5e14 | [
"JavaScript"
] | 17 | JavaScript | willisdorden/WellStockedStork-react- | af2db6a3470adc7673e9c87156fa0b4bbf398086 | 14ed0f3eabf5751ae85879672efbd9210a853a60 |
refs/heads/master | <file_sep># **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+... | 1d7e03f2e0e762c4914cfd3b24d66c5fde0a8d5e | [
"C",
"Makefile"
] | 5 | Makefile | fmakgato/filler | e673af8b34274b573b47b80438ae1bd78f1bd1f7 | 10c9fb950b5121773f9c48da5eeb00071a8dfdc9 |
refs/heads/master | <repo_name>bryandavisweb/rollbar-gem<file_sep>/spec/rollbar/request_data_extractor_spec.rb
require 'spec_helper'
require 'rack/mock'
require 'rollbar/request_data_extractor'
class ExtractorDummy
include Rollbar::RequestDataExtractor
end
describe Rollbar::RequestDataExtractor do
subject { ExtractorDummy.new }
... | cb3f2c09267dfcd38fe0ca2f12b760a87dac3744 | [
"Ruby"
] | 7 | Ruby | bryandavisweb/rollbar-gem | f4383920ac99893ae19d588219fd4330d5aa2d3d | cecfa1bae921e2fb5f91397979f72c89dd91e74e |
refs/heads/master | <file_sep>/*
* Copyright 2019 <NAME>
*
* 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... | 8f303e8eb20a515b6abb56907971b21201a266af | [
"Markdown",
"Java",
"Kotlin"
] | 13 | Kotlin | MukeshGreenDeveloper/SmartMarker | 78b433e5df19488ee0fe7ce8e154886ed7ca6a6e | b411ef75cffc21b10e513ed2c5a893a7c0885264 |
refs/heads/master | <repo_name>MarshallGarey/CS240-ImageEditor<file_sep>/app/src/main/java/edu/byu/cs/imageeditor/studentCode/Image.java
package edu.byu.cs.imageeditor.studentCode;
/**
* Created by <NAME> on 8/31/2016.
* 2-d array of pixels and methods that operate on an image.
*/
public class Image {
private Pixel[][] pi... | ccac210f629e7bb6d63d5da3ff2f5eeb9b4bd97d | [
"Java"
] | 1 | Java | MarshallGarey/CS240-ImageEditor | 85371084b6358c4d67b9bc55622eacfd0a547917 | bc47992a1637b91b1a6cd602d0948a661b9b3a3c |
refs/heads/master | <file_sep>package convert
import "strconv"
func Int64ToString(val int64) string {
return strconv.FormatInt(val, 10)
}
func Int2String(val int) string {
return strconv.Itoa(val)
}
func String2Int(str string) int {
if val, err := strconv.Atoi(str); err == nil {
return val
}
return 0
}
func String2Int64(str st... | 8b29d45d9cca2ad34375dad9c4ef1ec36ceaccc2 | [
"Markdown",
"Go"
] | 3 | Go | jhq0113/cockroach | dfa6b92c263a4dcff279530db13a2d53d3611606 | 951e3ef548398be479b2d2fdf043a6b8f262aa31 |
refs/heads/master | <repo_name>sdl1/antichess<file_sep>/antichess/test/test_moves.py
import unittest
from antichess.Board import Board
from antichess import Pieces
from antichess.Rules import Suicide
# TODO large scale move generation
class MovesGenerationTest(unittest.TestCase):
def setUp(self):
self.board = Board()
... | 031559bbb447a4b6d53773eb23d3952882643fd0 | [
"Markdown",
"Python"
] | 12 | Python | sdl1/antichess | 4beca19f390b790247c6d5735e71fd5cec8396aa | 113ce684223c2b96f31d98adbd201e8be026d282 |
refs/heads/master | <repo_name>tomzion90/Countries_onoapps<file_sep>/Countries/Modules/Countries/Cells/CountriesCell.swift
//
// CountriesCell.swift
// Countries
//
// Created by <NAME> on 05/11/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
import UIKit
import SVGKit
class CountriesCell: TableViewCell<Country> {
... | f656c043b72b55a98f3c9411cb9ce7afea33f8ce | [
"Swift"
] | 16 | Swift | tomzion90/Countries_onoapps | 4ae8f914d74ca423d2605b252028457fa289c266 | b8feff1ac7efeb1a8c02612099dd130e3aa426c0 |
refs/heads/master | <repo_name>Andrew-Garofalo/my_2048<file_sep>/public/app.js
function createBoard(size) {
let ins = document.getElementById("board");
for (let i = 0; i < size; i++) {
let sq = document.createElement('div');
sq.className = "boardSquare";
sq.innerHTML = "2";
sq.setAttribute("da... | 24aaf8ce424ed0fb896e5657ecb3a362f0d33e75 | [
"JavaScript"
] | 1 | JavaScript | Andrew-Garofalo/my_2048 | 8be0ed682252381133ba3cad5f3abcd3d2dd89a3 | b557c66b41f3e5b4300fc0aefa281139db0a1e20 |
refs/heads/master | <repo_name>tharindarodrigo/broker<file_sep>/publisher2.js
var mqtt = require('mqtt');
var client = mqtt.connect('mqtt://192.168.8.105');
client.on('connect', function () {
var v = 6;
setInterval(function () {
// v++
// if(v==10) {
// v=6
// }
var a = Math.random()
... | 21d00d5d56d594a97a9c0d78956fc53f25bdf23b | [
"JavaScript"
] | 2 | JavaScript | tharindarodrigo/broker | 8618855397247dc85e8017700ffb6566019aec7b | 0f131871f54575abcb739588f78f67aa384a69a7 |
refs/heads/master | <repo_name>JSH220/BulletSim<file_sep>/python_vers/__init__.py
from .racecar_controller import RacecarController<file_sep>/README.md
# Multi-robot simulation based on pybullet
## Requirements
* [pybullet](https://github.com/bulletphysics/bullet3)
```bash
pip install pybullet
```
* [informer](https://github.com/IamWang... | 8ab70110a030e8c642d019c5f8c215ecc3f7d464 | [
"Markdown",
"Python",
"Shell"
] | 12 | Python | JSH220/BulletSim | ac008bc17e15e517d6a36c35351e6d4ed71b8bce | a9a070fe055fd28bc62c947076f028147b54bfc8 |
refs/heads/master | <repo_name>Divyosmi/URJA<file_sep>/Parser.py
class Parser:
def __init__(self, tokens):
self.tokens = tokens
self.AST = []
def add_node(self, parent, node):
for a in self.AST:
if parent in a:
a[parent].append(node)
def build_AST(self):
saved = {}
... | b98ce53718f6c33e7ee21267650d22aa5339118f | [
"Markdown",
"Python",
"Shell"
] | 5 | Python | Divyosmi/URJA | d7bf6abdbe42bb390fe1a489bb79a0d066467822 | fee40c4c1c24da8add586ff7dffa649121bf7383 |
refs/heads/main | <repo_name>acnowland/vue-udemy<file_sep>/basics-assignment-2-problem/app.js
const app = Vue.createApp({
data() {
return {
firstInput: "",
secondInput: "",
confirmedInput: "",
};
},
methods: {
showAlert() {
alert("You Clicked Me!");
},
modifyFirstInput(event) {
thi... | 375bfe53c417b20e91985cd261f359ea3e38150a | [
"JavaScript"
] | 2 | JavaScript | acnowland/vue-udemy | 4764731fc86dc1d6bfff81d9338eab2692eb8bf8 | 859c5e615719173dc8fccecceb8f146bb12a98a5 |
refs/heads/master | <repo_name>meghna512/meghna512.github.io<file_sep>/index.js
var slide = document.querySelectorAll('.position');
var slideIndex = 0;
var durationSliderInterval = setInterval(nextSlide, 1500);
function resetActive() {
slide.forEach(item => {
item.classList.remove("active");
});
}
function resetInterval(... | f9e3b846022c1863e7e761cdfd489857ab42bc1b | [
"JavaScript"
] | 1 | JavaScript | meghna512/meghna512.github.io | 7a9931a0af79aeefccdc53c9b9db517437a4df7e | fc546067cc87a2c024562963dfbf6f178b10ab2f |
refs/heads/master | <repo_name>wm3/scala-2012<file_sep>/programming-in-scala/doc/s8-s9/FileMatcher.java
import java.util.List;
import java.util.ArrayList;
import java.io.File;
/**
* <p>ディレクトリ内でのファイル名検索を行うクラスです。
*
* <p>検索方法は後方一致、部分一致、正規表現の三つです。
*/
public class FileMatcher {
private File[] filesHere = (new File(".")).listFiles();
/*... | 23a83c0b0d64b748eebc796b5d9cf62899099a5a | [
"Markdown",
"Java"
] | 3 | Java | wm3/scala-2012 | 979806937588e80dbf0a5822e2e53e191c0d83a6 | 63ad813f8cfe47f80fd2debd3ab82171936f6db2 |
refs/heads/main | <repo_name>CSBoggs/W19C<file_sep>/gameboard.py
import player
class GameBoard:
def __init__(self):
self.winningRow = 0
self.winningColumn = 2
self.player = player.Player(3,2)
self.board = [
[" * ", " * ", " ", " * ", " * ", " * ", " * ", " * "],
[
... | 928e03f1497f2586a66278a569444acc610ddf71 | [
"Python"
] | 2 | Python | CSBoggs/W19C | 69154a90d5368e2945e868bbdf8a666d1fd11160 | 5b236922541578558fe1b4024c3fd534273c51cc |
refs/heads/master | <file_sep># Train-Scheduler
An app that uses firebase to store data for train arrival times
<file_sep> // Initialize Firebase
var config = {
apiKey: "<KEY>",
authDomain: "taylor-train-scheduler.firebaseapp.com",
databaseURL: "https://taylor-train-scheduler.firebaseio.com",
projectId: "taylor-train-sc... | 9377834017689e990618d3af493e5a59b73965d8 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | tdoodchenko/Train-Scheduler | 88f5971e554636053b79d03ca948281832b1d36a | 8fe9bd09b8a98bbc307e63371d37483c257531b2 |
refs/heads/master | <file_sep>global.__base = __dirname + '/';
const express = require('express');
const bodyParser = require('body-parser');
const Boom = require('boom');
const errorsHelper = require('./utils/errors');
const jobsController = require('./controllers/jobs.controller');
const app = express();
app.use(bodyParser.json());
... | 51052e82456b428fb246ddd9335d804e83b560b6 | [
"JavaScript",
"SQL",
"Markdown"
] | 8 | JavaScript | hexie2108/slr-api | 63739176e4f07e9bfd8b612a18c1abf8aee0f047 | 0e0af8e48363f91c5d6452a5a4ada5b08c90b7c8 |
refs/heads/master | <file_sep>+++
location = "San Francisco"
published_at = 2012-07-09T17:58:52-07:00
slug = "heroku-workflow"
title = "The Heroku CLI's API Workflow"
+++
Ever wondered how the Heroku command line client accomplishes its work? We don't talk about it much, but the Heroku CLI isn't a black box, it's a fairly thin consumer o... | e9dcfa990822bdff62a9f038f8b9e981fd244832 | [
"Markdown",
"Go Module",
"Go",
"Makefile"
] | 78 | Markdown | brandur/mutelight | f6dcd530abdc421eb828935be694ed03fd4bd503 | 084a41076a5eca539147500900fdb2bc765e10ae |
refs/heads/master | <file_sep>#include "stdafx.h"
#include "trafficLightDetect.h"
using namespace cv;
void TrafficLightDetect::run() {
preProcess();
morphologyEx(red, red2, cv::MORPH_OPEN, square3x3);
morphologyEx(green, green2, cv::MORPH_OPEN, square3x3);
morphologyEx(red2, red2, cv::MORPH_CLOSE, diamond);
morphologyEx(green2, g... | f07adbd441cb6466ba8e20b48f48a8d39fddfd12 | [
"C++"
] | 7 | C++ | WoeiSheu/TrafficLightDetection | ee9e5b4a7a17869d4a268c2d381f0315073a69e1 | 5505997aa1e26eae986f429cf0a18e0bd6c4f393 |
refs/heads/master | <repo_name>truonghoangpham123/SalesApp<file_sep>/SalesApp/SignInVC.swift
//
// SignInVC.swift
// SalesApp
//
// Created by Mac-ninjaKID on 11/28/16.
// Copyright © 2016 KobePham. All rights reserved.
// test
import UIKit
import FBSDKCoreKit
import FBSDKLoginKit
import Firebase
import SwiftKeychainWrapper
class S... | 2fa545bf587cfdf6899ec67ffb70b83b160bd10b | [
"Swift"
] | 3 | Swift | truonghoangpham123/SalesApp | 4313ad08712994782ed6a7138dc1c9998c0290eb | 82529552b669c5acd9f48b2c0523d626e98252e5 |
refs/heads/master | <file_sep>package com.vikfil.games_statistic.model;
import lombok.Data;
import java.io.Serializable;
@Data
public class GameDescription implements Serializable {
private String artistName;
private String releaseDate;
private String name;
private String url;
}
<file_sep>free.game = https://rss.itunes.app... | 944c375d55b5e3ce68043d93ee4f0631c613c060 | [
"Java",
"INI"
] | 7 | Java | vikfil/games_statistic | 142ecfb1f5dda768a08573417ca07479da419fd1 | 6ef6f923bf8c5c8af7cb1aa2084222e59fb6780e |
refs/heads/master | <repo_name>sarvjeetrajvansh/image-viewer<file_sep>/src/commons/profilePic/ProfilePic.js
import React, { Component } from "react";
import "./ProfilePic.css";
import {
Avatar,
IconButton,
Menu,
MenuItem,
Typography,
} from "@material-ui/core";
import profile_pic from "../../assets/images/profile_pic.png";
expo... | 13d2c4739613bb20763a10c044f5baa56833b3c0 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | sarvjeetrajvansh/image-viewer | e2c1a4bdd29508273be837b9f51b85611a644e9e | 5c5ab3eafba840961a0902fd383917ac14582d77 |
refs/heads/master | <repo_name>mattldawson/music_box_interactive<file_sep>/dashboard/views.py
from django.shortcuts import render
def run_model(request):
context = {}
return render(request, 'dashboard/run_model.html', context)
def species(request):
context = {}
return render(request, 'dashboard/species.html', context)
d... | 20d991e89d9afa982948e1e8362d4018608e1d46 | [
"JavaScript",
"Python",
"Markdown"
] | 7 | Python | mattldawson/music_box_interactive | 80630af83bcaddc940167777befb185592d57937 | 67b99ac715f06b2278667cabee656d32685d5c2a |
refs/heads/master | <repo_name>daybrush/knt-ws<file_sep>/src/WServer.h
//
// WServer.hpp
// myKinectStart
//
// Created by next on 2016. 6. 21..
//
//
#pragma once
#include <stdio.h>
#include "ofxLibwebsockets.h"
class WServer : public ofBaseApp{
public:
//server
ofxLibwebsockets::Server server;
ofTrueTypeFont font;
vector<stri... | c62a092e9b1338be9f23551022a0506b6a7dc425 | [
"C++"
] | 4 | C++ | daybrush/knt-ws | 4b6030ea519ba410994c699303ba1815619063f7 | bf5b082582e5345adbac5b707da9b64028d4795a |
refs/heads/master | <repo_name>briquebalant/webcv2.0<file_sep>/README.md
http://briquebalant.github.io/webcv2.0
=======================
### WEB CV 2.3
fais en pur HTML5 / CSS3
+
Une petit de JS pour la forme
**Ne pas tenir** compte du contenu __!__
--> [Web CV - V.3.3](http://www.fuentesloic.com)
*réalisé en boostrap pour t... | 82caeabad6244dc4dad56eebbf8b6dca765134cf | [
"Markdown",
"JavaScript"
] | 2 | Markdown | briquebalant/webcv2.0 | 26d6dc69044b4c32bc8a04df02e5d42ea6ecf850 | c701b89d9305d8cce88b168bfdfe38e9e402faf8 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
const slides = [
{
url:'/img/Janna.png',
title:'Ma premiere image'
},
{
url:'/img/Akali.png',
title:'Ma deuxieme image'
},
{
url:'/img/Jinx.png',
title:'Ma troisieme image'
},
{
url:'/img/Kata.png',
title:'Ma quatrieme im... | e77f3ad8c1c3c20cf5093cd04ae7d00e44e14219 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | Hexya/React-Carrousel | 7fa9c2a26195cdbdf9a5f04d6f2c5f4bf417bb75 | 91e1e9f803fb49cd282bdda584e849efdda112e2 |
refs/heads/master | <repo_name>pau1m/crypto-tools<file_sep>/ctools/src/client/App.js
import React, { Component } from 'react'
import './app.css'
export default class App extends Component {
constructor(props) {
super(props)
this.state = {
posts: [
// {
// id: 0,
// title: 'none'
... | e42b7f285a66bdf457687a10cbba3f04276b9d81 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | pau1m/crypto-tools | e744fad527afa5ecbc5305f5ee359860c803eb4a | 110eaec5ffdc1a1f1b9b1ce7e8c93a8e69187896 |
refs/heads/master | <repo_name>Kambizzzz/Trello-Self-Project<file_sep>/js/helper.js
//JS dock
/**
* @returns {HTMLElement}
* @param {String} tagname
* @param {Object} attribute
* @param {HTMLElement / Array / String} content
* @returns
*/
function createElement(tagname, attribute, content){
var el = document.createElement(... | f8d42f86ee0cf19907e2d4962b9d54041631eaad | [
"JavaScript"
] | 3 | JavaScript | Kambizzzz/Trello-Self-Project | aa2fe095380883498ab83e3b0d5d9e665f55da59 | 4287647f84376cbc288eb60645fe19d8be57319c |
refs/heads/master | <repo_name>0x012f5b7d/tun43g214<file_sep>/projects/008_time/USER/main.c
#include "stm32f10x.h"
void Delay(u32 count)
{
u32 i=0;
for(;i<count;i++);
}
void time_init()
{
TIM_TimeBaseInitTypeDef TIM_TimeBaseInitStruct;
TIM_DeInit(TIM3);
TIM_TimeBaseInitStruct.TIM_ClockDivision = TIM_CKD_DIV1;
T... | dd5d77195265e525ec8cc082edcf7d84cda3b210 | [
"C",
"Text"
] | 15 | C | 0x012f5b7d/tun43g214 | 66e2552760a726dccdcd5bf0c4fbac1533b865a5 | ac77cc81f5016ae8c326ca66a8d065bd2de8ca43 |
refs/heads/master | <file_sep>using System;
using SetWindowsService.Application.Business.Contract;
namespace SetWindowsService.Application.Business
{
public class BusinessService : BaseService, IBusinessService
{
public void DoWork()
{
Console.WriteLine("I do something");
}
}
}
<file_sep>... | ea8b5ddda7414cac0ed2d3315b1f00a3147b9442 | [
"Markdown",
"C#"
] | 10 | C# | emonarafat/set-windows-service | 1bd10ab7c7096d867100f32f6170e125913f54ab | e1fbaceedeb8a7cd992660ac3ee84f7c3648d2fb |
refs/heads/master | <file_sep># tk_geometric_pattern
## tkinterを用いた幾何学模様のアニメーション
Python3系で動作します。
GUI作成用モジュールであるtkinterは、
Pythonの標準モジュールなので、
Pythonをインストールするだけで実行できます。
### 操作方法
'a', 'z', 's', 'x', 'd', 'c', 'f', 'v'の各キーで、
表示される幾何学模様のパラメータを変更できます。
'q'キーを押すと、プログラムを終了します。
<file_sep># -*- coding: utf-8 -*-
"""
@author: enom
"""
import tk... | b493ec92a9df2f777bd048a3dd4331f0e18a6693 | [
"Markdown",
"Python"
] | 2 | Markdown | enomgithub/tk_geometric_pattern | 0ce24a7dae97d88b69aa0943720170d8d1c99308 | 4e98283bf3e8d7ebc1892ce5f957ca75dd4bf108 |
refs/heads/master | <repo_name>vietjtnguyen/py-misc<file_sep>/pycalc
#!/usr/bin/python
#import numpy as np
#import pandas as pd
#import scipy as sp
#import scipy.ndimage as nd
#import scipy.signal as sg
from math import *
import ast, datetime, itertools, pickle, random, os, sys
for line in sys.stdin.readlines():
line = line[:line.rf... | 61f6765e266b4d63e741eb2e70985ad8d7019c0f | [
"Markdown",
"Python"
] | 3 | Python | vietjtnguyen/py-misc | 9998737a9a09a6a35f3b1b75c69a9add7ca0d0d3 | 9a635b99a3aaca865ff7fde8d7d98456f205b8ed |
refs/heads/master | <repo_name>konglingjuanyi/tl-conf<file_sep>/tiaoling-cloud-core/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/mave... | 7d531b3d93a75a3c202ca281d6b20f245185aa9e | [
"Java",
"Maven POM",
"SQL",
"INI"
] | 34 | Maven POM | konglingjuanyi/tl-conf | e3287951e8f921e4baede055b956025b38d14ccd | 348fabeaab250acc2b90e73e4946b3f972931ae2 |
refs/heads/main | <file_sep># gounchpad
launchpadほしいけど変えないから、キーボードで音をだして遊ぶんだ
# 起動
```go
go run main.go
```
# 停止
q
<file_sep>package jsonutil
import (
"encoding/json"
"gounchpad/pkg/common/chk"
)
// Marshal marshal
func Marshal(v interface{}) string {
b, err := json.Marshal(v)
chk.SE(err)
return string(b)
}
<file_sep>module go... | 3774fbae5409fca2d39ba740abd103c6e7abe9a3 | [
"Markdown",
"Go Module",
"Go"
] | 6 | Markdown | sunjin110/gounchpad | 43f2ed461d03c77b317354c015f2e3d5606a2424 | 4f2c8f827b49eb597647f039867f17857016b15d |
refs/heads/master | <file_sep><?php
namespace Evripay\Payments\Code\Tables;
use Doctrine\ORM\Mapping as ORM;
/**
* Evripay
*
* @ORM\Table(name="evripay_payments", indexes={@ORM\Index(name="payment_id_index", columns={"payment_id"}), @ORM\Index(name="created_by_index", columns={"created_by"}), @ORM\Index(name="modified_by_index", col... | 2ff3d5f2c79376ce2d3e22ff98358925f6cc0947 | [
"PHP"
] | 2 | PHP | kazist/evripay | 97ceff5092f2522aec059aa43ad3a82ac0efcc4f | 2ebf2c18bf256013b08331acb4bbc8f20e400e4a |
refs/heads/master | <repo_name>dimier/velobike<file_sep>/data/convert_weather.py
# coding: utf-8
import re
import csv
import sys
# Пример входных данных:
# Местное время в Санкт-Петербурге,T,Скорость ветра,WW
# 31.10.2014 21:00,3.0,2,Снег непрерывный слабый в срок наблюдения.
# Запуск:
# python convert_weather.py < weather_14.raw.csv >... | 287c5bca2765e1f956564e3538ae6c494f671e66 | [
"Python"
] | 1 | Python | dimier/velobike | f8becf69fc9a750017ccf1832f1eb72631ddf787 | 2d096ca44849b9b2a700274a76746e51c2006b59 |
refs/heads/master | <repo_name>zackster/osa-imessage<file_sep>/index.js
const fs = require('fs')
const osa = require('osa2')
const ol = require('one-liner')
const assert = require('assert')
const macosVersion = require('macos-version')
const versions = require('./macos_versions')
const currentVersion = macosVersion()
const messagesDb = ... | 603649ffc773ef7c1c64aedcfb206d0975963fef | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | zackster/osa-imessage | 8f90ba009f49a67b5bf882cf82a8287b48442bb8 | 1e3ae3ff74a2f5ea011af04b827f3bf4e186b6fd |
refs/heads/master | <file_sep>from bs4 import BeautifulSoup
import urllib.request as urllib2
from bs4.element import Comment
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import time
import re
import os
def write_links():
url = 'https://caprivacy.github.io/caprivacy/full/'
file_name = 'pr... | 3b4040ef30c070a3a708bebb6961b25c12bdc554 | [
"Markdown",
"Python"
] | 2 | Python | abbykrish/privacy-policy-scraper | 314917b3c284a0d7b3c246e39d44783191a20ded | 1bf47675e005ada83456bf51bfd6a155a974c248 |
refs/heads/master | <repo_name>cha63506/wyatt_hosts<file_sep>/template/base_template.ini
127.0.0.1 localhost
# 屏蔽Adobe激活服务器:
0.0.0.0 activate.adobe.com
0.0.0.0 practivate.adobe.com
0.0.0.0 ereg.adobe.com
0.0.0.0 activate.wip3.adobe.com
0.0.0.0 wip3.adobe.com
0.0.0.0 3dns-3.adobe.com
0.0.0.0 3dns-2.adobe.com
0.0.0.0 adobe-dns.adobe.com
0.0... | a01441203ad5902296514bb3a927daf157d2e9a5 | [
"Markdown",
"Ruby",
"INI"
] | 5 | INI | cha63506/wyatt_hosts | 73cd52c261b7fd6ddb5ad18854b78515c70fa724 | ba078fc4ebcef5b0b3ed7230546ef075fc22f673 |
refs/heads/master | <file_sep>import axios from 'axios';
let instance = axios.create({
baseURL: 'https://react-my-burger-tpp.firebaseio.com/'
})
export default instance; | 435b6161c185edb77e2eddf8a4187946dd6ef8a8 | [
"TypeScript"
] | 1 | TypeScript | Bleedaxe/react-burger-project | 825eb7c8ad2c0f7fd6edbfb2fbc70277aeb781d2 | b5606ebb3c0c909219e0fa33058082a95d400d72 |
refs/heads/master | <repo_name>Misa-X/Assorted-Problems-and-Exercises<file_sep>/Assorted Problems and Exercises 1.py
x = input("Enter comma-separated numbers: ")
my_list = [x]
my_tuple = (x)
print("List:",my_list)
print("Tuple:(",my_tuple,")")
| 276af9aa9f2fecdf4d752f898d72d1a87323999e | [
"Python"
] | 1 | Python | Misa-X/Assorted-Problems-and-Exercises | 7ab4fdb6ca62efff7006987deb8e7f3eff718f4a | 11a53125e56eeff4c0fbfc01b09f959ec4b37b87 |
refs/heads/master | <repo_name>leon2017/android-api-analysis<file_sep>/buildSrc/src/main/java/Dependencies.kt
import org.gradle.api.artifacts.dsl.RepositoryHandler
import java.net.URI
/**
* Created by idisfkj on 2019/5/29.
* Email : <EMAIL>.
*/
object Versions {
const val support = "28.0.0"
const val kotlin = "1.3.50"
cons... | 42f64b18979fb6391dfd35c618546c9cf21fcc6b | [
"Kotlin"
] | 1 | Kotlin | leon2017/android-api-analysis | a89dc577c81f377fe820ce2bcb516c1e4ee6c9cd | 1c8ed03a9f9e33246df0901ecd99cb111c7c7c38 |
refs/heads/main | <file_sep>import React, { Component } from "react";
export class Location extends Component {
render() {
return (
<div>
<h1>{this.props.name}</h1>
<h2>
{this.props.lon} / {this.props.lat}
</h2>
<h2>{this.props.type}</h2>
<img
src={this.props.imgUR... | 0fc8350a2c4c569f3272f853c5b2cecddd1db211 | [
"JavaScript"
] | 2 | JavaScript | shaimasawai/city-explorer | 9f17e7e05b0efd15601df74d4353b9f31c347387 | f3dd7b77fde84bb77d02e04564d21655b9e3d27e |
refs/heads/master | <repo_name>Tutorgaming/promptdb<file_sep>/src/redux/store/reducers/auth.js
var ENUM = require("../../constants"),
initialState = require("../initialstate");
/*
A reducer is a function that takes the current state and an action, and then returns a
new state. This reducer is responsible for appState.auth data.
See `ini... | a2a760ca7d8011e25a65d6fbf8cc23341d09ca65 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | Tutorgaming/promptdb | 374356c5b94fa172a63396f1480282f4074695f3 | 2197d05d86c8b824b47cbe7fd1ddb45241c1082d |
refs/heads/master | <repo_name>astupak/muffin-server<file_sep>/middlewares/sorted/05-passport.js
const passport = require('../../libs/passport');
module.exports = passport.initialize();
<file_sep>/middlewares/index.js
const compose = require('koa-compose');
const path = require('path');
const fs = require('fs');
const handlers = fs.read... | 0ead9c1ec00c8fb1c2b27ba34d66be41e45f702b | [
"JavaScript"
] | 10 | JavaScript | astupak/muffin-server | 7770ddb1292acbca1ee3147c1b6c1c415429c7c2 | d7f81c8c401302aca0816e5698a027526762ad78 |
refs/heads/main | <repo_name>oslokommune/origourls<file_sep>/README.md
# origourls
URL-shortener to create human readable urls
<file_sep>/origourls.go
package main
import "fmt"
// Concept - must be able to store 'key' (urls.os.lol/kjoremiljo) -> https://meet.google.com/iur-phvy-hit or something
// store this data in a key value store ... | 1932ddb4d36edcc3a15d36134cf870823b20bbfb | [
"Markdown",
"Go"
] | 2 | Markdown | oslokommune/origourls | 11b16604ab0648fed5d199475ac73167f9486482 | 289d0068f049f3b99b30e0c8498514c7676dd04c |
refs/heads/master | <file_sep>require 'date'
module AddParserToDate
def new(*args)
return super if args.length != 1
value = args.first
return if value.nil?
return value if value.is_a?(Date)
return super unless value.is_a?(String)
value.strip!
begin
if value =~ /^([0]?[1-9]|[12][0-9]|3[01])\.([0]?[1-9]... | 5c5fd373e387730e18db818ddfd294e150b1e253 | [
"Markdown",
"Ruby"
] | 4 | Ruby | bfpi/date-parser | 45dccc7ff2263e088c959716bfb5146cc9775f8e | 8bd9e54feafc237b0e7ec9632b6ee1e579c0e907 |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
using CnControls;
public class FollowPlayer : MonoBehaviour {
public Transform p_Transform;
public Transform h_Transform;
[SerializeField] float cam_y_offset;
[SerializeField] float cam_z_offset;
[SerializeField] float camEulerAngle_x;
... | 9cdd4f480726934cb2d79b09f010b5bfdca0ee98 | [
"C#"
] | 17 | C# | lleeeaaaannnnn/kachil | 32a573d49e6a353bae937549c9024ff41b36ad78 | 3b0661388c6c26730ffea4f7c68b45839dad8a14 |
refs/heads/master | <file_sep>// *** Vector ***
// set up vector with dimensions as required
function Vector(x, y, z) {
this.x = this.ox = x || 0;
this.y = this.oy = y || 0;
this.z = this.oz = z || 0;
}
Vector.prototype = {
set: function(x, y, z) {
if (typeof x === 'object') {
z = x.z;
y = x.y;
... | 8f541189f96050f479472b4d2d8b913448541026 | [
"JavaScript"
] | 1 | JavaScript | philomather/nodejs-ex | a8380270bbe4f3ea1f4befef85c57f6644a2cf2d | 1698373854a6a1428aa7b9aea7386072ad472a93 |
refs/heads/master | <repo_name>NrjMeyer/Event<file_sep>/app/controllers/events_controller.rb
class EventsController < ApplicationController
def new
@event = Event.new
end
def create
@event = Event.new(event_params)
@event.creator_id = current_user.id
@event.save
redirect_to user_path(current_user)
end
def s... | aa509018514a297a06e175e2762e3c13e8505816 | [
"Markdown",
"Ruby"
] | 2 | Ruby | NrjMeyer/Event | e3720ea13e162ceb59f313797e5e285cd13e7925 | 49e20a45850ddd6cd24479d87cd66e03b8dc462e |
refs/heads/master | <file_sep>from yt_model import YTModel
from yt_view import YTView
class YTController():
''' The controller for the youtube transcription program.
Attributes:
model: an instance of a YTModel object that represents the model of the
youtube transcription program.
view: an instanc... | f386479b67facfffb17e9198d38506b724af9660 | [
"Markdown",
"Python"
] | 4 | Python | foerever/YoutubeTranscriptionMVC | 91e2c524da7f086df5aea5a166223e1bb23adf30 | 62c586a19d0e672202097a374deeba31955d15ac |
refs/heads/master | <repo_name>jawharEu/NodeJsTutorial<file_sep>/src/app.js
const express = require('express')
const path = require('path')
const hbs = require('hbs')
const forecast = require('./utils/forecast')
const geocode = require('./utils/geocode')
//for heroku
const port = process.env.PORT || 3000
// console.log(__dirname);//dire... | 8c2f0a563b110000fa821f6ceb7412992ae4aacd | [
"JavaScript"
] | 2 | JavaScript | jawharEu/NodeJsTutorial | 8e012108e35e29ea0d9e20b2f271867c3c8cd0ee | eedaadd8a4f9a431727e47009c8de0cc522536dc |
refs/heads/master | <file_sep>TflCameras::Application.routes.draw do
resources :cameras
root to: "cameras#index"
end
<file_sep>// $(function(){
// var mapOptions,
// canvas,
// map;
// mapOptions = {
// zoom:13,
// center:new google.maps.LatLng(51.508742, -0.120850),
// mapTypeId:google.maps.MapTypeId.ROA... | 4bccca67519ab41d3be174eee5229ccd844ccfc4 | [
"JavaScript",
"Ruby"
] | 2 | Ruby | jdeslangles/tflCameras | a69316e690ce248acf73557ac9e1ac53d0ceaf1d | 0e2c46baf6832004df172685ab38289fc0efdb73 |
refs/heads/main | <repo_name>egory4fash/Kassa<file_sep>/main.py
import os
import pickle
class Kassa:
TICKETS_FILE = "tickets.pickle"
MONEY_FILE = "money.pickle"
def __init__(self):
self.tickets = None
self.money = 0
self._read_data()
def _read_data(self):
if os.path.exists(self.TICKETS... | 30ca0dc94eb8701c10d1bb1ec8f737ad8e4e65bd | [
"Python"
] | 1 | Python | egory4fash/Kassa | af645cd969f2f2c6ad59adb2da4b1dd1cd1bdf55 | 488d191ca914aa24acf9068097e5d5f3cc1368f7 |
refs/heads/master | <repo_name>revuwem/react-hooks-learning<file_sep>/src/use-context.js
import React, {useContext} from 'react';
import ReactDOM from 'react-dom';
const SomeContext = React.createContext();
const App=()=>{
return(
<SomeContext.Provider value={'Tinky Winky'}>
<Para />
</SomeContext.Provide... | 4d9b9859634418e7e23cf352ff76bf9a44d8f5e8 | [
"JavaScript"
] | 3 | JavaScript | revuwem/react-hooks-learning | 3b24a0bb6b775f72e3b47413cc19ad2a8ef29d2a | 3cd6b729bb787ca1a07c453ae9893a4704ee714a |
refs/heads/master | <repo_name>Rainase/transportManager<file_sep>/application/controllers/home.php
<?php
if (! defined('BASEPATH'))
exit('Access not allowed!');
class Home extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->database();
}
function index(){
if ($this->session->userdata('kuller... | 7ff6c23ee82a37da0c8e9614d1cd45ff1644f24a | [
"PHP"
] | 17 | PHP | Rainase/transportManager | f746e2a735935acb97bef9236ef6bb598655bfff | 8bfedf801796b3a234b0cc4000134a5717be14e4 |
refs/heads/master | <file_sep>#include <math.h>
#include <stdio.h>
#include <stdint.h>
#include "lab2_funcs.h"
#include "lab2.h"
void printhelp(void)
{
printf("Available commands: \n");
printf("help: Show this message \n");
printf("set: <var> <value>: Set variable <var> to value <value>, e.g. \"set a 3.14\" \n");
printf(... | 79b163d361091881f41ffae814f405fb59a4c5d0 | [
"C"
] | 2 | C | Chrille0100/Labb2 | 2c6cb7ce7c267125fd4f99c203f26c669de4b340 | ec10b4849739fabbaf8af191488eab6ef462d929 |
refs/heads/master | <repo_name>danyAmaral/move-it<file_sep>/moveit/src/app/pages/pomodoro-timer/components/challenge-box/challenge-box.component.ts
import {
Component,
OnChanges,
OnDestroy,
OnInit,
SimpleChanges,
} from '@angular/core';
import { IChallenge } from 'src/app/interfaces/IChallenge';
import { CountdownService } from ... | 797edd195fa1ddca677037fb01b05eb5cef7b680 | [
"TypeScript"
] | 6 | TypeScript | danyAmaral/move-it | e6376294f8b41286e7af09306fdab5573aff23a5 | 160666affbe0a3a71af5559ebb0bf111a6dfcdb6 |
refs/heads/main | <file_sep># CoverByCycles
A demonstration code for directed cycle decomposition.
<file_sep>#!/usr/bin/env python3
"""
Here is a sample program to decompose a hydrogen bond network into cycles.
It is as close as possible to the one used in the paper, but it is slightly different from the code used in the actual analysi... | a3108a29dd55e36b2ec5074359b57650faaceed3 | [
"Markdown",
"Python",
"Makefile"
] | 3 | Markdown | vitroid/CoverByCycles | d97bb2cf396b4a4506bfe2f47c9e5ec0a2769361 | 83021d31a590011299baf5aa1b73503460d0ecdf |
refs/heads/master | <file_sep>package com.example.tppokemon;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.LinearLayoutManager;... | 6b98f5d13de89c784ae72c3fbbd35dacf9862b64 | [
"Markdown",
"Java"
] | 14 | Java | Trister00/android-pokemon | 184df1fe3ab6b4f01d0e63411308b92d1edae2af | 04e341bd175d9511ce02296329c39d2a95c4788a |
refs/heads/master | <file_sep>$(document).ready(function() {
/* Questions & Answers */
//1. Show me how to calculate the average price of all items.
var num1 = items.filter((items) => items.price).reduce((total, current) => total + current.price / items.filter((items) => items.price).length, 0);
$(".num1").append(num1);
/... | 1622375bad139a7739a4fbbb960a4253fff6968f | [
"JavaScript"
] | 1 | JavaScript | brandonkhilton/EtsyItems | 8937be2a14c0e5e7a095e7092a10ef7107def69b | 4865a5d32da7b8c41ee455bb0757d1ca82e2c096 |
refs/heads/main | <repo_name>ChainDot/dapp-myprecious<file_sep>/src/App.js
import React, { createContext } from "react";
import Dapp from "./Dapp";
import { MypreciousAddress, MypreciousAbi } from "./contracts/Myprecious";
import { useContract } from "web3-hooks";
export const MypreciousContext = createContext(null);
const App = () =>... | 64f4ea4aad53a338592cd77ed89fa870227fd106 | [
"JavaScript"
] | 3 | JavaScript | ChainDot/dapp-myprecious | 6d84edfd4bc862a856a423a545dd48d5f6bba6bf | a68add209426927ec7b11dbf98fa1478df134191 |
refs/heads/master | <file_sep>import React from 'react';
import ReactDOM from 'react-dom';
import App from "./App";
import vdom from 'react-vdom';
import Tabs from "./Tabs";
import Tab from "./Tab";
function makeWebComponentExample(root) {
const title = document.createElement('h2');
title.textContent = 'Web Component Example';
const ... | 427821bf8127163c711e3a3e7466357306528087 | [
"JavaScript"
] | 1 | JavaScript | luciVuc/react-web-components | ce639240f99627c00f8f050e01cf53d956f88ceb | a86491cea0ea1f9524ccc5cdad02bbadf7cdbdcc |
refs/heads/master | <repo_name>dstarner15/bashcuts<file_sep>/ga
#!/bin/bash
# Bash script to easily add all files and commit to git.
directory=${PWD}
message="Automated Commit from <NAME>"
branch="master"
if (("${#}" > 0))
then
if [[ ${1} == "-h" ]]
then
echo "No help for this yet :o"
exit 0
fi
if ! [[ -z ${1} ]]
the... | 1e3d603e5eea80e7140e2bb9125a9db802d46c02 | [
"Shell"
] | 2 | Shell | dstarner15/bashcuts | 9a505df612b15a3006146d5b6651ae2d1cbcdd84 | b472d54d650a2f960a61a0f608a570c5f1461b25 |
refs/heads/master | <file_sep>const {series,src,dest,watch} = require('gulp');
const sass = require('gulp-sass');
const browserSync = require('browser-sync').create();
const gulp = require('gulp');
function sass_func(){
return src(['node_modules/bootstrap/scss/bootstrap.scss','src/scss/*.scss']).
pipe(sass()).
pipe(dest('src/cs... | 03ae2512e5a7509bfd22b072c9b6a6cb52905e9f | [
"JavaScript"
] | 1 | JavaScript | erichuang2015/bootstrap_template | 2c704175a3baa1ed969807f4ca0753628740f375 | 4be992e65e182797418109b5088a01d80f86eec4 |
refs/heads/master | <file_sep># jvm-dynamic-optimizations-performance-test
Performance tests to demonstrate some of the profile-based (optimistic, speculative) optimizations performed by the JVM.
Check [this](https://advancedweb.hu/2017/03/01/jvm_optimistic_optimizations/) post for details.
<file_sep>package hu.advancedweb;
import java.... | 8003f3571170a54e2449bd836e2d0e87c51516a5 | [
"Markdown",
"Java"
] | 3 | Markdown | leonzhouwei/jvm-dynamic-optimizations-performance-test | 73d41f693e43247632e1dd54ea88de51368ebe0a | 35965a4512ac2dc141e76f4c242e031f5fd387e1 |
refs/heads/master | <repo_name>Holmes1204/Rov_ros<file_sep>/scripts/rov_vision_class.py
#!/usr/bin/python
# -*- coding:utf-8 -*-
import cv2
import numpy as np
import os
import threading
import time
import rospy
from topic_example.msg import Img_fb
class RosImg():
def __init__(self):
self.img_pub = rospy.Publisher('img_feed... | 4aebb52508ca1944bd2b43603e9386e7c08cfb03 | [
"Markdown",
"C",
"Python",
"C++"
] | 5 | Python | Holmes1204/Rov_ros | fa57f848138c27bc54f383834af6773ce6975084 | 406175f6b4dbe5260ca9dfcf42532c638d86a709 |
refs/heads/master | <file_sep>package tests.data;
public enum ItPlatformaUser {
USER("Test22"),
USER2("Test23"),
USER3("Test24"),
EMAIL("<EMAIL>"),
EMAIL2("<EMAIL>"),
EMAIL3("<EMAIL>%&# <EMAIL>"),
PASSWORD("<PASSWORD>"),
PASSWORD2("<PASSWORD>");
private final String value;
ItPlatformaUser(String ... | 13ef8d6e4ccb958f280447214aeb548d64b3fcc4 | [
"Markdown",
"Java",
"INI"
] | 7 | Java | NikolayAntonyuk/project_w45_nikolay | 0220ab001874bd6b9470f62da8e5e91672729c80 | 4f6d8b010e54dab3d1548fc184f9a30d9914fb78 |
refs/heads/master | <repo_name>RafeeAlbadri/Prescriptipn<file_sep>/Haeder.js
import React, { Component } from 'react';
import Context from './Context';
import styled from 'styled-Components';
let Add = styled.button`
background-color:#009FB4;
border:none;
border-radius:60px;
`
let Container = styled.header `
background-color: ... | 9d115c4a1fdca9d0c4565f96e3d302c1994e96bc | [
"JavaScript"
] | 1 | JavaScript | RafeeAlbadri/Prescriptipn | ab734191334e28993675f4f002a4e9fb02de7a2a | a6e648d09699a1e42286917e2792d774e5a51942 |
refs/heads/master | <file_sep>#!/usr/bin/env python
import tempfile
import sys
import os
import time
import eventlet
import re
import argparse
import logging
import configparser
from eventlet.green import socket
from eventlet.green import subprocess
parser = argparse.ArgumentParser()
parser.add_argument('local-file',
... | 9a3958cc05ee7cb7d74aeef71b1adabe58b8086a | [
"Python"
] | 1 | Python | sachuin23/Herd | 3cd3b4f68990e97d3ef264be54383942d4d094c0 | 90f945cd1c28f87f16647c938d676c90cd1258f7 |
refs/heads/master | <repo_name>alextheprogrammer21/Interview-Scheduler<file_sep>/src/helpers/selectors.js
export function getAppointmentsForDay(state, day) {
let appointments = [];
const filteredDays = state.days.filter(currentDay => currentDay.name === day);
if (filteredDays.length > 0 && filteredDays[0].appointments.length > 0) {... | efa49560b4bc9ab0ed3fabf3e55feaec5d144eec | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | alextheprogrammer21/Interview-Scheduler | 244293793e558ede924966c07ae3e4b9902cc020 | ae918e4c7d047d20b47505237f9ddb9decd5da52 |
refs/heads/master | <file_sep>(function( $ ) {
$.fn.fileViewer = function (action) {
var self = this;
if(action === null){
$(self).click(function() {
$(self).addClass("hidden");
$(self).find("iframe").addClass("hidden");
//$(self).find("iframe").attr("src", null);
});
$(self).find("iframe").click(function() {
... | a75021c04aee04875733f34c4c43ac0070c96c0c | [
"JavaScript"
] | 3 | JavaScript | jorgeac89/JQueryPlugins | 2dddba34e3808f1b57d59c97ea6dba05161b48e8 | acdd97d3ff1b18969813f080bb60631afc8e90b2 |
refs/heads/master | <file_sep>\name{eclat}
\alias{eclat}
\title{Mining Associations with Eclat}
\description{
Mine frequent itemsets with the Eclat algorithm.
This algorithm uses simple intersection operations for equivalence
class clustering along with bottom-up lattice traversal.
}
\usage{
eclat(data, parameter = NULL, control = N... | 187337b1f53c771c1537f2dc3b5c6dde99519b02 | [
"R"
] | 6 | R | lgallindo/arules | 887184cd80068e04531b0c13bc231ecbd1afddfb | 8da9dabe54a7351afa3e7bec12c0c11bbc9de741 |
refs/heads/master | <repo_name>reciosonny/news-feed-eradicator<file_sep>/src/lib/is-enabled.ts
const paths = ['', '/'];
export default function isEnabled() {
return paths.indexOf(window.location.pathname) > -1;
}
<file_sep>/src/eradicate.ts
// Include the stylesheets
import './eradicate.css';
import * as FbClassic from './sites/fb-clas... | e03ad7e19cf9a929c04c1979fa6917b5d90364b1 | [
"TypeScript"
] | 2 | TypeScript | reciosonny/news-feed-eradicator | fb285d15078cd019f9dc0455ffae4db5b5aa66c4 | d11322b390834dbe7136175f1f28452baae6291d |
refs/heads/master | <repo_name>VartikaToTheNew/Forager<file_sep>/src/main/java/com/ttnd/forager/dao/impl/SampleDaoImpl.java
package com.ttnd.forager.dao.impl;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.stereotype.Repository;
import com.ttnd.forager.dao.SampleDao;
impo... | fb01542614fe68b7611cbf80ff358d4cd19daf7d | [
"Java"
] | 1 | Java | VartikaToTheNew/Forager | 557c3c465b74cb2f821ecdb36bc444c8d81123b3 | a968654040f851059396eb5bcf1c5ecbcc05710e |
refs/heads/master | <file_sep>const path = require("path");
const { readFileAsync } = require("./readFileAsync");
const { isDescriptionLine, isParamLine, isReturnLine } = require("./identify");
const {
normalizeDescription,
normalizeMethod,
normalizeReturn,
normalizeParam,
} = require("./normalizers");
const getLines = async (fil... | ff033b761fe2dad6ea05f7c405e905eb6770fb33 | [
"JavaScript"
] | 6 | JavaScript | EvandroLG/luaDoc | 33089ae1b2904becc02a524a74870b49d6881492 | 1e66f8b3fe91f2de204e20762cde2583c927e34d |
refs/heads/master | <repo_name>hammmay/JS-Flashcards<file_sep>/js/scripts.js
$(document).ready(function() {
$(".card").click(function() {
$(this).find(".front").toggleClass("hidden");
$(this).find(".back").toggleClass("hidden");
});
});
| 09a2a6f7777eea9c67cff7342e5f7069f0c48675 | [
"JavaScript"
] | 1 | JavaScript | hammmay/JS-Flashcards | 8cb288f0a4379404f063e978ca415b80ad56a931 | ecd79d748b8aa344519c22fc04a3713d36fcb733 |
refs/heads/master | <file_sep>#-------------------------------------------------------------------------------
# Name: grafica
#
# Author: <NAME>
#
# Proyecto: CRUD con interfaz Tkinter
# Created: 14/10/2019
# Copyright: (c) Juan 2019
# Licence: <your licence>
#-----------------------------------------------------... | b2b276cfc6697270e387e0d15813870a4ff7541d | [
"Python"
] | 2 | Python | jdhl27/CRUD-Python | f074cfa4537571134f5da7f53c58f341256a7b0d | 694aa26a3dc53c046470a26d24cfcf3c222cb95d |
refs/heads/master | <file_sep>Salón de la fama de OMIBC
=========================
TODO:
1. Definir razones de por que hacer todo vainilla
1. Simplicidad de capacitación
2. Curiosidad técnica a quien decida llevar a cabo cosas elegantes
3. Simplicidad de mantenimiento
## Configuración de API Google Spread sheets
1. Instalar py... | 1d952156c19aa57cb07715013bb2c52eb27d99d2 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | macarenomarco/hall_of_fame | e18e5f12b0a1c50126f55da0c141554f8c7f4c81 | d5a0ff2bcd87bbb6c167e4b17d527d01374c844e |
refs/heads/master | <repo_name>AkashBiswas080/OpenBrowser<file_sep>/src/test/java/AmazonBrowser.java
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class AmazonBrowser {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "C:\\Drivers\\chromedriver.exe"... | cd250169ed3b44509f3f6418c9a201712df4edf5 | [
"Java"
] | 1 | Java | AkashBiswas080/OpenBrowser | 0a2d08dc9db61e4951c00d49ba40ee0ad803a2d4 | 92fa606f3ac08d2285be7d8c01566cfc75fb0e4f |
refs/heads/master | <file_sep>pyregx python专用的正则工具
============
作为程序猿 , 每天都会遇到正则的提取,但大部分为通用的,
是否可以把这些常用正则收集起来, 方便你的调用哪
使用方法
----------------------------------
:::python
from pyregx.pyregx import PPattern
regx = PPattern()
print p.IP != '192.168.3.11' #返回true
p.mail.find_iter(... | c05a7a4c98cae23033d45e8b2951d9ef87f81590 | [
"Markdown",
"Python"
] | 4 | Markdown | intohole/pyregx | 989e283f4cd854728f0d1e9f28b0dd5a77697ac6 | 2219faf8cee6318da3c571a1582ce27215bc4af7 |
refs/heads/master | <file_sep>function loadArticles(){
$.get('/api/posts',(posts)=>{
console.log(posts);
for(post of posts){
let article = post.body.substr(0,300);
$('#postList').append(`
<div class="card-deck col-md-4 my-3">
<div class="card shadow">
... | 5b6eae7a94f0c9bd197cb84933e7249ae7556715 | [
"JavaScript",
"Markdown"
] | 12 | JavaScript | ayushdip/social_media | 7970be4338cca98e5e615c7b56c458c2b382c6ee | 7543617f4e339a91cdb8dfbef15c995e96a02516 |
refs/heads/master | <file_sep>import { combineReducers } from 'redux';
const initialState = {
categoriesList: [
],
categoriesFormFields: {
name: '',
isNew: true
}
};
const categoriesList = (state = initialState.categoriesList, action) => {
switch (action.type) {
case 'FETCH_CATEGORIES_SUCCESS':... | 8c9351952ced9ef5628154e65c11901f729b1ba4 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | heiets/spendee-test | 48bd6d35f3feb7ee2e095215f00186a5a92239e0 | 42db2768f671426a4802a9e9f6d8d5c9a9712567 |
refs/heads/master | <repo_name>pawan231/2048<file_sep>/README.md
# play_2048
It is implementation of the popular game-2048 in C++.
For enjoying the game,you just need to run 2048.cpp on terminal.
Check instructions options for How to play the game.<file_sep>/2048.cpp
#include<iostream>
#include<cstring>
#include<cstdio>
#include<cstdli... | 463c1f4c7205bf0f76de3062f29c8dc146ebca13 | [
"Markdown",
"C++"
] | 2 | Markdown | pawan231/2048 | d5e3a64d1918ad8bd28f130c714dc4bcf79fae3d | ba29723eca4a311e3c4a21022e63ab0f39667e0c |
refs/heads/master | <file_sep>define(function(require,exports,module) {
var CryptoJS = require('./lib/crypto-js');
console.log(CryptoJS);
exports.test = function(value) {
function strToJson(str){
var json = eval('(' + str + ')');
return json;
}
var data = "message";
var key = CryptoJS.enc.Latin1.parse('2015$!@ai... | 75aa39f9e4397edcc0934a392979fe9fe09b603e | [
"JavaScript"
] | 20 | JavaScript | arieswxc/lovedate | 8cad8dfc8f337a47a04e5e71b32feb9040666f7f | 487ba198b79f89ef1105979a691265ebe4277d2e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.