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 usecases
import (
"path/filepath"
"github.com/nugrohosam/gofilestatic/helpers"
)
// StoreFile ..
func StoreFile(file []byte, filePathRequsted, fileName, typeFile string) string {
ext := filepath.Ext(fileName)
randomFileName := helpers.MakeNameFile(filePathRequsted, ext)
filePath := helpers.Set... | 93e77ac91c439cff62989f979a4c0c6dcba48699 | [
"Markdown",
"Makefile",
"Go",
"Go Module",
"Shell"
] | 18 | Go | nugrohosam/gofilestatic | e21422ccfab556c3a90dda2c3015b77c13b42021 | af8fe32fcd44fa2e6d378e7f24bbcbf868fa98e1 |
refs/heads/master | <repo_name>drets/normalises<file_sep>/schema.sql
-- psql --username=testuser test
CREATE TABLE notes (
id serial primary key,
property VARCHAR(20) NOT NULL,
value VARCHAR(40) NOT NULL,
created timestamp
);
<file_sep>/readme.md
1. `createdb test` create db
2. create testuser and give a full power
3. `c... | 97fef72209cd155999bd7abc9957a41348b41eb9 | [
"Markdown",
"SQL"
] | 2 | SQL | drets/normalises | a635f30bc9166f1a68feb05d0169be5bcdb5908f | ae68a0e936515774b80039d667a443bf7213f256 |
refs/heads/main | <repo_name>bazen-teklehaymanot/wpf-net-sample<file_sep>/WpfNetSample/App.xaml.cs
using Microsoft.Extensions.DependencyInjection;
using System.Windows;
namespace WpfNetSample
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
private ... | 86e4750f8e8cc57c0661615cf3cbeb6d8f40c033 | [
"Markdown",
"C#"
] | 3 | C# | bazen-teklehaymanot/wpf-net-sample | cdf5b45ca676b78f9415939fee3a65092c33e350 | f2cd210fc128762b66b26310cd3386635304bad9 |
refs/heads/master | <file_sep>var express = require("express");
var path = __dirname + '/';
var app = express();
var router = express.Router();
var hbs = require("express-handlebars");
var db = require('./js/db');
app.use(express.static(path + 'public'))
app.engine('hbs', hbs({
extname: 'hbs',
defaultLayout: 'main-layout',
layoutsDir... | e9a9df33021315f67b4eccd5ef38882d07640032 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | madispuk/metsavennad.ee | 9b2061fd4a4ec31ee0feb1ea166fc654a6c89015 | 4a23a6cff43ed15b346794d5d1116f483c69c880 |
refs/heads/main | <file_sep>#!/bin/python3
"""
Two friends Anna and Brian, are deciding how to split the bill at a dinner.
Each will only pay for the items they consume. Brian gets the check and calculates Anna's
portion. You must determine if his calculation is correct.
For example, assume the bill has the following prices: bill = [2,... | d443ee6e756cfec0f3e47e0f178abed9a9a9e201 | [
"Markdown",
"Python"
] | 19 | Python | Hacker-BlackHATS/Py_Programs_1 | 4a5116a19e26ccea2eeca977189376f0e1747c27 | 5e7ee2d028d3cc1ae8b3c59563eaf5cef4d85f25 |
refs/heads/master | <file_sep>import { Badge, Divider } from 'material-ui'
import SearchIcon from 'material-ui/svg-icons/action/search'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import _ from 'underscore'
import * as BooksApi from '../../BooksAPI'
import '../../css/Fonts.css'
import ResultItem from '../... | 7676617c9c2e87731ccff0af5b92a98b3c4bf19f | [
"JavaScript"
] | 5 | JavaScript | PedroNigrisVasconcellos/react-my-reads | 94f97b2de9f4d88cf9f21583d9de02815c644a7e | df9d5948192d3aa9d8e9fdce8156043f93f10e0c |
refs/heads/master | <repo_name>peterldowns/peterdowns.com<file_sep>/projects/emotionet/src/utils.js
// Saving node positions
var Dump = function() {};
Dump.prototype.print = function() {
console.log('var saved =', JSON.stringify(this));
};
var Save = function(s) {
var saved = new Dump();
saved.camera = {
x: s.camera.x,... | 1a0b23a8e12ea20362b47e8d1522a43170232a9c | [
"JavaScript",
"Markdown",
"Makefile",
"Python",
"Shell"
] | 9 | JavaScript | peterldowns/peterdowns.com | 2f9998577b2ca01666f8d37535d651f0eb47758b | 70f7ce08d3ecfd0bdd9e77babcda3ee320eff39a |
refs/heads/master | <file_sep>let hallo = function(str){
str="Hallo + "+str;
};
let welt="Welt";
hallo(welt);
console.log(welt);
//Objekte
let halloObject= function(obj){
obj.name="Halo "+obj.name;
};
let o ={
name: "Welt"
};
halloObject(o);
console.log(o);
//Objekte2
let halloObject1= function(obj){
obj=null;
};
let... | 9ee9e3618bef4963111b29f4de32dbbcd8290bf1 | [
"JavaScript"
] | 7 | JavaScript | 1819-2bhitm-syt/assignment01-livecoding-replay-HaasJulian | 935cc755a994e74257c207cbe2dfbf24d7016ac8 | 35f4df28888171edca26dd65b1176eaf75a67837 |
refs/heads/master | <repo_name>tfabworks/pxt-tfabconnect-beta<file_sep>/README.md
# TFabConnect(beta version)

## 概要
- micro:bitのセンサーの値をインターネット上に時間情報と共に蓄積する事が出来ます
- 蓄積したデータを時系列のグラフにする事が出来ます
- グラフを出先からスマホで確認する事が出来ます
- 遠隔地に設置したmicro:bit同士で通信を行う事が出来ます... | ac97863726b0733b1901c24cd3fcc20cc414fd79 | [
"Markdown",
"TypeScript"
] | 3 | Markdown | tfabworks/pxt-tfabconnect-beta | 2ee50a33c489bbb2bccfb8d378744aeb25cac9f3 | f3bd3b46a90952c79d95ab3a608e2c38532ed8a0 |
refs/heads/master | <file_sep>/**
* Created by josephawwal on 28/05/17.
*/
const Blog = () => <h2>Company Blog</h2>
export default Blog
| df495a7343427b6acd839cd3f42a81824dd90b0d | [
"JavaScript"
] | 1 | JavaScript | Yunas09/JS-Periode-6-Finish | eb153f9533bf6b4cb2ed9e0e178d6b8c5ef4d3ec | ee9ce473509ed41f4de6a0b96783ededebbfb3ba |
refs/heads/master | <repo_name>lhamot/rah<file_sep>/rah/doc.cpp
//
// Copyright (c) 2019 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
/// @struct rah::pipeable
/// @brief Allow to call a custom function when called whi... | f6e6d4dc3873aa3ba4ae015b4925b8765eacfb02 | [
"Markdown",
"C++"
] | 4 | C++ | lhamot/rah | 56496be4a14794b6a2ec9c0ce4fd296505995bcd | 20764d1a78a1b723e234f0990ebaf1b8c1b3b58f |
refs/heads/master | <file_sep><?php
namespace Test\Unit;
use PHPUnit\Framework\TestCase;
use App\Domains\Candidato\Candidato;
use App\Domains\Candidato\Diploma;
use App\Domains\Inscricao\Models\Inscricao;
class InscricaoTest extends TestCase
{
private $inscricao;
public function setUp(): void
{
$candidato = new Ca... | 693b6b53d3226039cd2770c97373c94444d7819a | [
"PHP"
] | 14 | PHP | lfelipels/state_pattern_exemple | 72c2dc2581e04019b7b2b6aad6b7dc0951d8ca4a | d075e5c89e2302c946b5a0fde14bcaa0abf572c7 |
refs/heads/main | <repo_name>project-k-io/TheLCRGame<file_sep>/ProjectK.Games.LCR/ProjectK.Games.LCR.Views/WinnerListView.xaml.cs
using System.Windows;
using System.Windows.Controls;
using ProjectK.Games.LCR.ViewModels;
namespace ProjectK.Games.LCR.Views
{
/// <summary>
/// Interaction logic for WinnerListView.xaml
/// </s... | e1acc684b8f6c16707cc84fda10d38e0a0db2a3d | [
"Markdown",
"C#"
] | 17 | C# | project-k-io/TheLCRGame | f43f373c70de5e4d14164f616fce9a1d9e62a8cd | 0c83b39c61e800ff5d6bdc4251f3a6756410050b |
refs/heads/master | <file_sep>SELECT HACK.HACKER_ID, HACK.NAME, CHAL.C_CHAL
FROM HACKERS HACK
JOIN (
SELECT HACKER_ID, COUNT(CHALLENGE_ID) AS C_CHAL
FROM CHALLENGES
GROUP BY HACKER_ID
) CHAL
ON HACK.HACKER_ID = CHAL.HACKER_ID
WHERE CHAL.C_CHAL NOT IN (
SELECT A.C_CHAL
FRO... | 9a25f2cbc153b9d47bbcfd8734f1ee0a4104bab0 | [
"Java",
"SQL"
] | 94 | SQL | Hyundai-TEAM01/CodingTest | 25c9130843ed009afaae5dfd1f6badc311ede5c8 | ccff3889416466a13de3fb4286fc0ea72498fbcf |
refs/heads/master | <repo_name>andytow/surtidores<file_sep>/surtidores.php
<html>
<head>
<meta http-equiv="Content-Language" content="es-ar">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="shortcut icon" href="favicon.ico">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min... | 47feb2ce7c99068e3138202ba71b971e63425aef | [
"Markdown",
"PHP"
] | 3 | PHP | andytow/surtidores | 00d9775515d6f7834be640b259f063f036ffabf6 | 7669864263e5f246f42233d25bceb78b633ea02f |
refs/heads/master | <repo_name>giserh/AlteryxTools<file_sep>/RecordCountReporter/RecordCountReporter/RecordCountReporter.py
import AlteryxPythonSDK as Sdk
import xml.etree.ElementTree as Et
class AyxPlugin:
def __init__(self, n_tool_id: int, alteryx_engine: object, output_anchor_mgr: object):
# Default properties
sel... | e013a3f07b2add9b9187603c1d96fd5f91278617 | [
"Python"
] | 1 | Python | giserh/AlteryxTools | dc36f42968f18c33cf09a6be596a8df5188484e8 | 00612a2aa41ab0d606b224453bf1bd64ee03d19d |
refs/heads/master | <file_sep>import numpy as np
np.set_printoptions(threshold=np.nan)
import matplotlib.pyplot as plt
"""
The activation/transfer function
"""
def activation_function(a):
return a / float(1 + abs(a))
"""
The derivative of the activation/transfer function
"""
def act_function_deriv(a):
return 1 / float((1 + abs(a)))... | 108b824c22d3c1f724238baf01663d2eeab65111 | [
"Python"
] | 8 | Python | chrisdawgr/ml | 1ed29eac9a44ff13fec49e4f92000eec50460f3a | 45336b3fa965a7e2b9000aa7f1db7c53de9c9f96 |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function showHome()
{
return view('frontend.home');
}
public function showProductsByCategory($slug)
{
$data=[];
$data['slug']=$slug;
return view('fr... | a8d3fdb16c3f83fb986e0f03e159f054acd689b4 | [
"PHP"
] | 3 | PHP | abdullah733/ppi_ecommerce-project-using-laravel-5.8 | 9dab367a8d08dd30dae22872366fc50dd3486193 | 8e5182ac845bb435b03923a92d2aa50abd72e5e6 |
refs/heads/master | <file_sep>
// option 3 wala thingy
$('.option3 .but').on("click",function(){
// $('.option3 .but').removeClass("selected");
$(this).toggleClass("selected");
$(this).next().toggleClass("goBold");
// console.log("i am a barbie girl...");
});
// three option thing
$('.butthurt .but').on("click",function(){
i... | 3f78c929377a852be7c7eae836ca6f1620aa0b7b | [
"JavaScript"
] | 1 | JavaScript | Sarabpreet/Lead-Generation-Landing-Page | b9419c113700b954d64c0826fefa2871808c3104 | 6647d00badfb3a0203777befdeca44584c1eceb6 |
refs/heads/master | <repo_name>mferrais/photCodes<file_sep>/photCodes/fileCrop.py
import numpy as np
field = 341
field = 340
field = 342
field = 344
field = 345
field = 347
field = 346
telescope = 'TS'
telescope = 'TN'
night = '20171127'
night = '20171202'
cut1 = 0
cut2 = 47145
cut1 = 47144
cut2 = 119110
#----------------------------... | 150a648d342f113bf441f9df2a9b39dd94252307 | [
"Markdown",
"Python"
] | 18 | Python | mferrais/photCodes | 85c500a6a23724345ffa4390e42d9e658c0e148a | 52e46e1f46da4c6e41a44774b468d77f156179c2 |
refs/heads/master | <file_sep>
# .................................................................
# NOTES :
#
# .................................................................
# Imports librairie standard
import tkinter
import tkinter.messagebox as messagebox
import os
# Imports Tiers
import pygame.mixer
# Imports locaux
# ......... | 74560701b6ddc7504044e752f4781e2287c615a2 | [
"Python"
] | 1 | Python | SuperBlueLight/Exemple_Tkinter | d90037de1ade4a95cea6d3dbc51313751a96d4c9 | c29da0b71321a16a99d5fcf76f02f4e04981ff0c |
refs/heads/master | <repo_name>valentine217/pingxiang<file_sep>/js/agency.js
/*!
* Start Bootstrap - Agnecy Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
// Add/REMOVE row in table, id: mdf-tr
$("#mdf-tr").click(function(){
... | 97c709f81831b514b8a4afd9557a6bcc26a91106 | [
"JavaScript"
] | 1 | JavaScript | valentine217/pingxiang | e29a3374617052af848f8406ded14e6c066739b6 | 31e883e702f44b648682f4107df4cd17dcb75920 |
refs/heads/master | <file_sep>package me.liujin.douyinhooker
import android.app.Application
import android.content.Context
import android.util.Log
import de.robv.android.xposed.IXposedHookLoadPackage
import de.robv.android.xposed.callbacks.XC_LoadPackage
import de.robv.android.xposed.XC_MethodHook
import de.robv.android.xposed.XposedHelp... | 6fdaaba0ecd13e335d4216e062226ee8bfb180a5 | [
"Markdown",
"Kotlin"
] | 4 | Kotlin | wurenxing/DouyinHooker | 76cb985a6489850b1cfaab39e7b89ed895c63801 | d00621565e6255b5001e2a54b06f28b14ac1ece8 |
refs/heads/master | <file_sep>class OrderItemsController < ApplicationController
include CurrentCart
before_action :set_cart, only: [:create, :update, :destroy]
before_action :set_order_item, only: [:show, :edit, :update, :destroy]
def create
product = Product.find(params[:product_id])
@order_item = @cart.add_product(pro... | 54fa236a37142cfc3f86c7a1655caac278b08a77 | [
"Markdown",
"Ruby"
] | 11 | Ruby | ijscoman1337/useless_shop | 774baf90313523842f2bb669b54a24154e146fb3 | 451692df3f85ce2509bde44b530e6f024edff292 |
refs/heads/master | <file_sep>package com.kh.myapp.util;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
public class XMLParser {
protected static Document docInstance;
protected static String... | cb8051c0d666d1208535a04f7827ff40f778720a | [
"Markdown",
"Java"
] | 22 | Java | taehyeongkimme/spring-team-project | 5f164ed21c219e665d90b82fc22c797613f04eb5 | aafa03e80512e816037d26ae595cb66be82bf3e4 |
refs/heads/master | <repo_name>yhammoud/geneh-server<file_sep>/app/controllers/api_controller.rb
class ApiController < ApplicationController
require 'money'
require 'monetize'
require 'money/bank/google_currency'
require 'net/http'
require 'certified'
def get_exchange_rate
Money.default_bank = Money::Bank::GoogleCurrency.... | 9e4aa74e4b2e29bce21893188a7f8b6b7e0939cb | [
"Ruby"
] | 3 | Ruby | yhammoud/geneh-server | 1870befef58ee2ec930267aa9c72234163098ca0 | dbf9b05f4753467d0260453f31f086b42b364029 |
refs/heads/master | <repo_name>kabragaurav/Practice-C-CPP-Python-OOPS-DSA<file_sep>/OOPS/2/Solutions/2.cpp
#include<iostream>
using namespace std;
class Student
{
private:
char *correct;
public:
Student()
{
correct = new char[8];
... | 23e8b6ca5928aa7c1d2f4f40e3967447e3a9f114 | [
"Markdown",
"Java",
"Python",
"C++"
] | 20 | C++ | kabragaurav/Practice-C-CPP-Python-OOPS-DSA | 338a032379e939f32e0255ccff01448dc09f66f5 | e7f87a626d3d620fdcf05f87e1e747d55bd32e90 |
refs/heads/master | <file_sep>#include "VisualizacaoBarragem.h"
/*!
\class VisualizacaoBarragem
\previouspage PainelVisualizacaoOpenGL
\contentspage
\nextpage VisualizacaoMapa
\brief Class prototype. Not in use.
*/
VisualizacaoBarragem::VisualizacaoBarragem(VisualizacaoMapa *viMapa){
proporcaoVisuali... | 39a6672a9e6dfde55381a0b23bb40e9d736e5c8a | [
"HTML",
"Text",
"C++"
] | 44 | C++ | rodolfo53821/ReBuild | f96f9230ddec09c806781b3ed232be0547cf002e | 749fa33f64b2424ab397a056a41b9c94d14d4a4c |
refs/heads/main | <repo_name>Mattacchione/fanta-msi<file_sep>/src/app/app.component.html
<div class="container">
<div class="title">
<h1>FANTA WOLRDS 2022</h1>
</div>
<h3>
Una volta fatta la formazione inseritela qua: <a style="background-color: white;" target="_blank" href="https://docs.google.com/forms/d/e/1FAIpQLSeHXfu... | 53844d9e2bb86db4476d5218937e7c28df47f769 | [
"TypeScript",
"HTML"
] | 2 | HTML | Mattacchione/fanta-msi | 018b58aa047bdbe7d3f0b4e61ea95cd7341490ed | 11ebe88bbbc69699886fc60454c4a8b9d52d26ff |
refs/heads/master | <repo_name>bluetronics-India/4DOF-3D-Printed-Robotic-Arm<file_sep>/Firmwares/Geared_Version/robotArm/robotArm.ino
#include "pinout.h"
#include "robotGeometry.h"
#include "interpolation.h"
#include "fanControl.h"
#include "rampsStepper.h"
#include "queue.h"
#include "command.h"
RampsStepper stepperRotate(Z_STEP... | 13a67823017f310563d68fa597ed3a09371551b6 | [
"C++"
] | 1 | C++ | bluetronics-India/4DOF-3D-Printed-Robotic-Arm | bf821526da25be8128014cd75c4c72ea985b76a9 | f80dd2df155f8f3e77a525b9bb1d1ac790582476 |
refs/heads/master | <file_sep>import './App.css';
function Home() {
return (
<div class="color">
<div class="position-relative overflow-hidden p-3 p-md-5 m-md-3 text-center bg-light">
<div class="col-md-5 p-lg-5 mx-auto my-5">
<h1 class="display-4 font-weight-normal">Punny headline</h... | 2bed39a43d779cb4120ae2709041f8f44b6243fe | [
"JavaScript",
"Markdown"
] | 6 | JavaScript | EricERodriguez/myapp | 0bb6657c985085fd652e30caa4d3d3e1e14f7c5a | 74f37a4324835af50218f2f0fb430dec7e68461e |
refs/heads/master | <repo_name>losteracmer/wpcms<file_sep>/routes/index.js
const express = require('express');
const router = express.Router();
const mysql = require('../common/mysql');
router.use('/getlist',(Request,Response)=>{
let sql = `SELECT customer_id ,real_name,mobile_1,mobile_2,festatus_id,machine_model,fe_model,DATE_FORMAT... | f02364cb5578a0c9248583b61f40421787a42b45 | [
"JavaScript",
"Markdown"
] | 24 | JavaScript | losteracmer/wpcms | a64b0c511ce454f99c4ef2a546798c971fa08900 | c9b79a3706eff40b4f0f29a108143505e3d6474b |
refs/heads/master | <repo_name>ElectronicToast/NP-Compete<file_sep>/player.hpp
#ifndef __PLAYER_H__
#define __PLAYER_H__
#include <iostream>
#include "common.hpp"
#include "board.hpp"
using namespace std;
// For random move AI
#include <stdlib.h>
#include <time.h>
#include <algorithm>
class Player {
public:
Player(Sid... | c937f98a061a9eaa3e5970e078714380445858b0 | [
"Text",
"C++"
] | 3 | C++ | ElectronicToast/NP-Compete | 629769091d6967eaa5896d35d724f326a074d666 | fa74be9f986f442f1083a78123050eb50012d147 |
refs/heads/master | <repo_name>mabaw/pancakeArt<file_sep>/Pancake/html/pancake/pancake.cpp
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "ext/standard/info.h"
#include "php_pancake.h"
#include <iostream>
#include <string.h>
#include <time.h>
#include <opencv/cv.h>
#include <opencv/highgui.h>
... | cd454ccad27b8e7624fe4a61a32e59e9fa99a9a2 | [
"Markdown",
"CMake",
"C++",
"PHP"
] | 6 | C++ | mabaw/pancakeArt | a6ddfbc88fe18cb73a64a5f3566a0184d63057f2 | d502320b889244a57e80f6d6844e4586124df9ad |
refs/heads/master | <file_sep>json.text @message.content
json.image @message.image_url
json.user_name @message.user.name
json.date @message.created_at.strftime("%Y/%m/%d %H:%M")
json.id @message.id
<file_sep>json.array! @new_messages do |new_message|
json.text new_message.content
json.image new_message.image_url
json.date new_mes... | bd34a141ab0b9b0fc32355893a9f4915d4e677f2 | [
"Markdown",
"Ruby"
] | 3 | Ruby | Takabun/chat-space | f17ab80e0a2ad74dab8b3b1b9a2bfa4e3a5eac35 | 77f7dc4ff4f43ea6748586558ff642e3843c43a3 |
refs/heads/master | <repo_name>miakastina/Cryptography-ROT13_HASH_XOR<file_sep>/README.md
# Cryptography-ROT13_HASH_XOR
Cryptography ROT13_HASH_XOR
<file_sep>/ROT13HashXOR.cpp
//Created by <NAME>
// NIM 2015-81-178
#include <iostream>
#include <conio.h>
#include <string.h>
#include <math.h>
using namespace std;
void dec(unsigned ... | ac3e44b6fdb1c6ec3915890742581c91c24482a0 | [
"Markdown",
"C++"
] | 2 | Markdown | miakastina/Cryptography-ROT13_HASH_XOR | 5c9cf5566d76dc0f9a459e797a47820f354b5791 | fdaf84eb126f79627d61023ba250b0106b4e97db |
refs/heads/master | <file_sep>EDIT-DISTANCE
=============
PURPOSE
-------
Finding two nearby strings.
CONTENTS
--------
1. EditDistanceApp.java : The main hook to our app. We stay in an infinite loop waiting for the user to enter a word and we find the closests string that is available to us and display it on the terminal.
1. FeatureG... | f7a5e6dd28c54aef5f9d1ffdbde2c868ae8350f4 | [
"Markdown",
"Shell"
] | 2 | Markdown | efekarakus/Edit-Distance | 8a7d1354632cb5f2e0bfbfffc32e1bc76bf07085 | dbdee5d33aaa8dff0d4c8ae6665dc8ae8dd65301 |
refs/heads/master | <repo_name>mohsinalimat/Scratchpad<file_sep>/Creational Patterns.playground/Pages/Prototype.xcplaygroundpage/Contents.swift
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
struct HondaWorkShop {
public var city: String? {
get {
return _city
... | d556cafdef9cd55e75ed9b0a0a873ff64972c9e7 | [
"Swift"
] | 6 | Swift | mohsinalimat/Scratchpad | 7b2880832cacb2db289466ace18884da282dc86d | 9dadfb5cca292f6b8818b32a1b1bcf494818d36a |
refs/heads/main | <repo_name>gediminasurvila/logrocket-vue3<file_sep>/src/routes/index.js
export default [
{
path: "/",
name: "home",
component: () => import("@/views/Home.vue"),
},
{
path: "/jokes",
name: "jokes",
component: () => import("@/views/Joke.vue"),
},
{
path: "/counter",
name: "counte... | 55350194dc4de09adcafbbc7d04c493f84bc47fa | [
"JavaScript"
] | 2 | JavaScript | gediminasurvila/logrocket-vue3 | 28467253fce64588e4b8510b5ee5904fb753cf1b | e28f49f5b9e0c8c3f3451a7b61216bf0f682e939 |
refs/heads/master | <repo_name>ajohnsonhogan/Mem-SwampHacks-2019<file_sep>/index.js
const express = require('express');
const fileUpload = require('express-fileupload');
const mongoose = require('mongoose');
const _request = require('request');
const fs = require('fs');
const person_group_id = 'mem-swamphacks-19';
require('./models');
con... | 3e6e9b64fd16df4036e8c09f26befac0e2a27f16 | [
"JavaScript"
] | 1 | JavaScript | ajohnsonhogan/Mem-SwampHacks-2019 | 326c65caec65f023f40487e2b983ade7bc624082 | e5c2e5b261bda2be5c3eee8bdb98129456e6c6be |
refs/heads/master | <repo_name>Teplitsa/vse.to<file_sep>/modules/shop/deliveries/classes/form/backend/delivery/properties.php
<?php defined('SYSPATH') or die('No direct script access.');
class Form_Backend_Delivery_Properties extends Form_Backend
{
/**
* @var Model_Delivery
*/
protected $_delivery;
/**
* @var ... | 0e5c4f0aeabf2f5458018cab20187169d1829313 | [
"JavaScript",
"Markdown",
"PHP"
] | 615 | PHP | Teplitsa/vse.to | 4aa6b1898e0875e3e13d8ac437639ccf6ff96410 | 8ea96ddd73a460e63800686c75f2e84434d13ba1 |
refs/heads/master | <repo_name>mpcen/stockthing<file_sep>/src/components/app.js
import React, { Component } from 'react';
import { connect } from 'react-redux'
import HighStock from 'react-highcharts/ReactHighstock.src';
import SearchBar from '../containers/SearchBar';
class App extends Component {
renderChart() {
if(!this.props.confi... | ea724c5700f2c02fa4323d787aaf9cff7914669d | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | mpcen/stockthing | 6287bb24353280d41859e4f93c1f80d9102d1c31 | a342c5f3a6d125038fc2e910f2eea05efedc1250 |
refs/heads/master | <file_sep>#!/bin/bash
mkdir -p .vim
cp vimconfig/_vimrc .vimrc
cp -r vimconfig/tags .vim/
cp vimconfig/neocomplcache.vimrc .vim/
<file_sep>###PreInstall
[Vundle](https://github.com/gmarik/vundle)
###Install
* windows
* cd %userprofile%
* git clone https://github.com/zixiaojindao/vimconfig.git vimconfig
* ... | 0f56114f0eff36153baa7446062bfc750007bab3 | [
"Markdown",
"Shell"
] | 2 | Shell | zixiaojindao/vimconfig | 591c08c4ccf9b400caba6355de261b62f179f093 | 5684452d68c2fb56b6f97b9c9ee8f8b448b02409 |
refs/heads/master | <repo_name>about-future/Best-Movies<file_sep>/app/src/main/java/com/future/bestmovies/cast/CastResponse.java
package com.future.bestmovies.cast;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class CastResponse {
@SerializedName("cast")
private final ArrayList<Cast> res... | 53280bf1c9f89d8ff9a7eed7c17fbb118eb62535 | [
"Markdown",
"Java"
] | 18 | Java | about-future/Best-Movies | ff6fcf3c2562b53a7e7306b276376e1d13493e0b | 7d524bd68112620972611dfb1a0050a25d1eaaa0 |
refs/heads/main | <repo_name>KirubelEnyew/PhpSampleProject<file_sep>/view/edit.php
<?php
include_once('../controller/control.php');
if(isset($_POST['submit'])){
echo $_POST['pizzaName'];
ECHO $_POST['ingredients'];
if(!isset($_GET['id'])){
echo "i didnt get an id";
}
else{
... | ae4160a62becf526540d6f2965b05e5a8c49e0b9 | [
"PHP"
] | 5 | PHP | KirubelEnyew/PhpSampleProject | 2c0c9870847c7bd7f9e18b364b19e3101503ca66 | 1cdb6a60cf14bd84e1789980e341a7abd13a3f62 |
refs/heads/master | <file_sep>import NavigationBar from 'react-native-navbar'
import CheckBox from 'react-native-checkbox'
import React, { Component } from 'react'
import {
StyleSheet,
View,
Text,
} from 'react-native'
class CheckItemView extends Component {
constructor(props) {
super(props)
this.state = {... | bbb21b9bd90f35979211868c966686f71fd53374 | [
"JavaScript",
"Gradle"
] | 8 | JavaScript | ozaki25/react_native | 1c6965a000d2affaa25301644795155da7821dff | f4eb1b6757af9592dda7c2dbea872d0a501849ce |
refs/heads/master | <repo_name>SF-Felling7/pet_hotel<file_sep>/public/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="jquery-3.2.1.min.js" charset="utf-8"></script>
<script src="client.js" charset="utf-8"></script>
<link rel="stylesheet" href="style.css">
<title>Pet Hotel</title>
</head... | 65059c8e2f3357ea137bab6fadc4fa5e065d5d9c | [
"SQL",
"HTML"
] | 2 | HTML | SF-Felling7/pet_hotel | 0a290e7aaae8b3b88e9752f4ba31f4a3bb1c32dd | 9b4972a5b401f7ce6cfa3ec7149bee3ca21b3f57 |
refs/heads/master | <repo_name>oleckin/for-units<file_sep>/README.md
# for-units
<file_sep>/ConsoleApp_for_unit/ConsoleApp_for_unit/Program.cs
using System;
namespace ConsoleApp_for_unit
{
class Program
{
static void Main(string[] args)
{
//Console.WriteLine("Коля, как дела? Нажми любую кнопку, чтобы ... | 5591529e7d72c0ee67cbea5ba625706aa3e62437 | [
"Markdown",
"C#"
] | 3 | Markdown | oleckin/for-units | bcea8b6db1abd0ecec2b477fc56900c5e7257941 | ab0d9c95cbacf72148b0e76fec4b9f0702ee33c0 |
refs/heads/master | <repo_name>braytac/finger_mdb2MySQL<file_sep>/config.py
SSH_USER = ''
SSH_PWD = ''
URL = ''
DB = ''
MYSQL_USER = ''
MYSQL_PASS = ''
MDB_FILE = ''
DIFF_IDS = 916594
PORCION = 40000
# INSTALAR AccessDatabaseEngine.exe:
# https://www.microsoft.com/es-es/download/confirmation.aspx?id=13255
# python -m py_compile File1.py ... | acd588120e8c08a279cf429e640130e66ec67309 | [
"Python"
] | 2 | Python | braytac/finger_mdb2MySQL | 23113e76cd7208ff30e2c98ceaa832939fe7f388 | b8c0fa7942571f6bfa80230b8fa3a33d3e54d6ed |
refs/heads/master | <repo_name>Lisandro79/JetsonCaffe<file_sep>/classify_caffe_test.py
# set up Python environment: numpy for numerical routines, and matplotlib for plotting
import numpy as np
import matplotlib.pyplot as plt
import sys
import os
import cv2
# The caffe module needs to be on the Python path;
# we'll add it here explicitly.... | 7c9e7f10a086106f344470f4ce0b0c26e51e1a3a | [
"Markdown",
"Python"
] | 2 | Python | Lisandro79/JetsonCaffe | 9ec0789ebc8e2bb17a0725ad22115ed7eec56788 | 6dca5d9123fe916e62d929254644cbaf44b6dd1b |
refs/heads/main | <repo_name>digitizdat/cdk-elastic-beanstalk<file_sep>/requirements.txt
-e .
aws_cdk.aws_s3_assets
aws_cdk.aws_elasticbeanstalk
aws_cdk.aws_iam
<file_sep>/cdk_elastic_beanstalk/cdk_elastic_beanstalk_stack.py
from glob import glob
from os.path import abspath, exists
import cdk_elastic_beanstalk_config as config
from aws... | 5f4f8af20bda0c5bc2886781ec9fbb13d5a29fc4 | [
"Markdown",
"Python",
"Text"
] | 3 | Text | digitizdat/cdk-elastic-beanstalk | f7230f2daeee4af3283e636dc1b9982d1407143e | 91e314a7a914a8119b3ecc2d873a568f3171d408 |
refs/heads/master | <file_sep>const red = document.getElementById("red");
const green = document.getElementById("green");
const blue = document.getElementById("blue");
const redTextDisplay = document.getElementById("red-value");
const greenTextDisplay = document.getElementById("green-value");
const blueTextDisplay = document.getElementBy... | 3b18b2a926f5bba4cb87627058ecffcf04112db1 | [
"JavaScript"
] | 1 | JavaScript | GuilhermeAmado/rgb-color-visualizer | dd9f78a3b6aca59080629a84557880e4ea1bf9a9 | bbd8038bcacac5d2b798cd406fd97047620a7b88 |
refs/heads/main | <file_sep># Misti Village (Client Side)
## E-commerce site for ordering sweets online.
### Live site link is https://misti-village.web.app/
### Client site code link is https://github.com/Porgramming-Hero-web-course/full-stack-client-hasanrakibgit
### Server site code link is https://github.com/Porgramming-Hero-web-cou... | ae872039eb1ad78b5838719f35f311ad05229647 | [
"Markdown",
"JavaScript"
] | 5 | Markdown | hasanrakibgit/full-stack-client | 33a4c2c2254a7626c6575756340fb7db33da721f | 8d02c259d83451e614a5b65f7c4eb05a790663bb |
refs/heads/main | <repo_name>AHMADMUHMMED/Lab16_Segue<file_sep>/Lab16_Segue. AHMAD/Lab16_Segue. AHMAD/ViewControllerTwo.swift
//
// ViewControllerTwo.swift
// Lab16_Segue. AHMAD
//
// Created by <NAME> on 26/03/1443 AH.
//
import Foundation
class ViewControllerTwo:ViewController{
}
<file_sep>/Lab16_Segue. AHMAD/Lab16_Segue. AHM... | af7271f148edf782e3a3f4a14e90a4c8a849b784 | [
"Swift"
] | 3 | Swift | AHMADMUHMMED/Lab16_Segue | 6dfaa69c5f1b90bf162a4abbe823e9b210662296 | df93394d6c55b132d6a583d1340dc0db8b872c95 |
refs/heads/master | <file_sep>package com.ykmimi.jdk13test;
public class JDK13Test2 {
public static void main(String[] args) {
howMany(1);
}
//switch
private static void howMany(int k) {
System.out.println(
switch (k) {
case 1 -> "one";
case 2... | 00702d63e56e60aef61c882d14d9db3f6fc4fed4 | [
"Markdown",
"Java"
] | 2 | Java | deadzq/jdk13-test | 46eb9fae5201cd5f373788e921590082c35f1307 | 6afa4aaf033a38834790494c835ddb210969ee11 |
refs/heads/master | <file_sep>package Evaluvation1.ArrayCompare;
import java.util.Arrays;
public class ArrayComaparision {
public static void main(String []args) {
int arr1[]= {1,2,3};
int arr2[]= {1,2,3};
if (Arrays.equals(arr1, arr2))
System.out.println("The Array 1 and 2 are Same");
else
... | 3633bf45a08fc1624bae756f9beed0da23b402f2 | [
"Markdown",
"Java"
] | 10 | Java | manojraj013/Basic | ea3cbcab06cdbeb11b5e90fab10714023117b2bc | b6c9fd9eaef90a701a7baeed42e12e288840c236 |
refs/heads/master | <repo_name>jacoboliveira/corretor-ato-cotepe-web<file_sep>/test/testes/TestStrings.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package testes;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass... | fcf0e3edf744a16d3af847c53a8d50fd57fc6846 | [
"Markdown",
"Java"
] | 4 | Java | jacoboliveira/corretor-ato-cotepe-web | fb289b08f4145cc93694496af883dfb0bfcd5428 | 711245d5384657e3f73c00768988dd1ab5be8714 |
refs/heads/master | <repo_name>vitorperesss/measure_image<file_sep>/js/main.js
$(document).ready(function(){
var clicks = 0;
var lastClick = [0, 0];
var valor_final_X = 0;
var valor_final_Y = 0;
document.getElementById('canvas').addEventListener('click', drawLine, false);
function getCursorPosition(e) {
... | b57bcf882ebd6c0196144d7ab720c1d90faa19c6 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | vitorperesss/measure_image | 8dbc93b108c78bdfada42b46823ccc81debf83bb | 9a54a9788e8978883f9e12e6717d7346106887c7 |
refs/heads/main | <file_sep>import React, { Component } from "react";
class TodoList extends Component {
state = {
list: [],
};
HandleAdd = (e) => {
e.preventDefault();
if (e.target.task.value === "") {
window.alert("empty input");
} else {
const NewList = [...this.state.list];
NewList.push({
... | de8c53280b00cfe6d61e68492fbd679d1e981b91 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | medhatnasra/Simple-React-TodoApp | 86d3b95916791a9c7ca6335c32c0504a9fbcdab1 | ec54faf1e15d1f77c9725fd05afa087bb5749448 |
refs/heads/main | <file_sep>const { Router } = require("express");
const router = Router();
const FacturacionCtrl = require("../controllers/Facturacion.controllers");
router.post("/crear", FacturacionCtrl.createFacturacion);
router.get("/listarfacturacion", FacturacionCtrl.listar);
router.get("/listar/:id", FacturacionCtrl.listarid);
r... | d7842fc65226159322adeedb33e9f35ab81e451e | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | gradosj/pruebaW | 30c211b634009acabc5e40ac4e9dd55c92a8ef84 | ea9da0a73bdf5bc6e7a48b2f22f67450afaf607c |
refs/heads/master | <file_sep># -*- coding: utf-8 -*-
# Argumentos
def suma(otro, *args):
print(type(args))
suma(1, 2, 3, 5, 5, 6, 7, 6, 7, 7)
def crear_persona(nombre, *args,**kwargs):
print(kwargs)
crear_persona(9, nombre="hector", edad=28, pelo="negro")
<file_sep># -*-
# Bucles
# Repeticiones
grupo = ['Héctor', 'Foco'... | 2d00574e7a7b8fe1d443ef7f0a2c4dd42987c9d4 | [
"Markdown",
"Python"
] | 9 | Python | hectorip/PythonBasics | 8370c32805c4fa46a3ff620fece81e7bb0bf6757 | 0e970ef3fe89f23bfdc7fbdf9467082144328f6e |
refs/heads/master | <file_sep>package main
import (
"encoding/json"
"flag"
"fmt"
"net/http"
"strconv"
"sync"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
)
const (
namespace = "nightscout" // For Prometheus metrics.
)
var (
listenAddress = flag.String("telemetry.address", ":9552", "Address on ... | 8cb5464b9f5e2fc8f791695409cb0a26b653a52f | [
"Go"
] | 1 | Go | dabear/nightscout_exporter | 00cd8e7a04fd29ae9e8125a3f35d735c44f701e5 | df2f83da9a58a1a3402ddd8121b41879cdbc9b55 |
refs/heads/master | <repo_name>ldmcdona/Mastermind<file_sep>/mastermind.py
import random
def unique_string(string):
a = len(string)
for x in range(a):
for i in range(a - x - 1):
if string[x] == string[x + i + 1]:
return False
return True
def main():
print("Welcome to Masterm... | d2c9c154bc9001d28a5de6d72ba8e71189367a77 | [
"Markdown",
"Python"
] | 2 | Python | ldmcdona/Mastermind | 2aca28e87c88f49d970a748af7d73cc4a36d127c | eec04c95f9df600ad75d7577b6229fbc997c449f |
refs/heads/master | <file_sep>#!/usr/bin/env python
# coding: utf-8
import os
import sys
import json
import random
#import GUI features
import tkinter
import tkinter.messagebox
from tkinter import Tk
from tkinter.filedialog import *
import pandas as pd
# Define Constants
grades = [
'A',
'B',
'C',
'D',
'E'
]
cutOffs... | 49bc9358db685b977f8b8006a22b54a43dc1d54a | [
"Markdown",
"Python"
] | 2 | Python | FoxClock/Reports-Generator | 2971e640b30d499d8c9c7a0030ea83f45a264531 | 69862db0718f5467603abed9e08db193302f7f33 |
refs/heads/main | <file_sep>import { StaggedValue } from './staggedValue'
export interface Machine {
id: string,
name: string,
fees: StaggedValue[]
}
<file_sep>import machines from "../data/machines.json";
import { Machine } from "../model/machine";
export async function getMachines(): Promise<Machine[]> {
ret... | c7018fd520e2ac01a698587dde4ab093a4208b13 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | GersonDias/rh24-front-end-challenge | 8568b32a5756a11a8a06f6a699b8200000b1c423 | 5f268d20299608f40cc648c87d833762aca5f57b |
refs/heads/master | <repo_name>hsaleem2/log-parser<file_sep>/Dockerfile
FROM openjdk:14-jdk-alpine
COPY build/libs/log.parser-all-1.0-SNAPSHOT.jar /app.jar
COPY resources /resources
CMD ["java", "-jar", "-Dspring.profiles.active=default", "/app.jar"]<file_sep>/src/test/java/LogParserTest.java
import org.junit.Test;
public class LogParser... | 8f313e527053d2258ebf935340b10cba6a6574a0 | [
"Markdown",
"Java",
"Dockerfile"
] | 3 | Dockerfile | hsaleem2/log-parser | a9583f350cf0ccb16270641813a46465b111e72f | 84d58bdf2773eb95e867a06898402b5e1d6bf6c0 |
refs/heads/master | <repo_name>jb-tester/feign-rest-api-test1<file_sep>/src/main/java/com/mytests/spring/api/restapitest1/controllers/MyController1.java
package com.mytests.spring.api.restapitest1.controllers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import or... | 66b5755e214aad52c833bc6ae082fb42fb008a72 | [
"Java",
"INI"
] | 2 | Java | jb-tester/feign-rest-api-test1 | 878739f3b5c7746bbb2f411a4f8de54edf1558b8 | 86f6a8b5b2377643d7b3b92e9aacb11ae3614865 |
refs/heads/master | <repo_name>Vinaysai/Spring-Login-Boot-Service<file_sep>/README.md
# Spring-Login-Boot-Service
This a micro Service for https://github.com/Vinaysai/Spring-Boot-Login.

{
createCanvas(400,400);
database = firebase.database();
console.log(database);
game = new Game();
game.getState();
game.start();
// re... | 97bea518edbd9c339cd693c57d16a3853822daec | [
"JavaScript"
] | 1 | JavaScript | anikethgr/c-37 | d1dde1b7e4449849d5a471dbb4decec8e5094ff4 | b6cbb1abde68ebe3808aa7e6832e9f277ba9fe79 |
refs/heads/master | <repo_name>woss/react-native-audio-4expo<file_sep>/index.js
// import 'expo';
import AudioRecorder from './AudioRecorder';
import AudioPlayer from './AudioPlayer';
module.exports = {
AudioPlayer,
AudioRecorder
};<file_sep>/AudioPlayer.js
import React, { Component } from 'react';
import {
TouchableOpacity,
... | 4e56e2e6210048e44e3f971bf72a4f3ef02db546 | [
"JavaScript"
] | 4 | JavaScript | woss/react-native-audio-4expo | 0416f57a576d98abe59ae4da1275cd771ff99fb7 | 760b4e4c54948ef842776916d95e4518e77acfb8 |
refs/heads/master | <repo_name>UddeshJain/Quick-Notes<file_sep>/src/pages/updateNote.js
import React from 'react';
import UpdateNote from '../containers/notes/updateNote';
const UpdateANote = () => {
return <UpdateNote />;
};
export default UpdateANote;
<file_sep>/src/components/home/search.js
import React, { useState } from 'react';
... | 1450014852c55c339baf70a008d5d1851f42ac18 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | UddeshJain/Quick-Notes | f4102f127a8f8b60db979c4bbddb9336a495aff2 | f39c5edbe91aff91fd851bd15dc4f1a2e4ee70b6 |
refs/heads/main | <file_sep>import { NullableBoolean } from '../types'
export type NullableTrieNode = TrieNode | null
export class TrieNode {
character!: string
isWord!: NullableBoolean
parent!: NullableTrieNode
children!: Record<string, TrieNode>
constructor(character = '', isWord: NullableBoolean = null, parent: Nullab... | 5c56fbe1643cc57038ed1565d40ad1b93620f65e | [
"TypeScript"
] | 4 | TypeScript | mcgrue/corpus-flower | 52d1d79bb40cbb0b2df564de0e365d4535271c10 | db7fde8e3d41ee479bb4b9abe4e8f63f0b7a650c |
refs/heads/master | <repo_name>tilky/SQLiteUsersOnline<file_sep>/setup.php
<?php
try
{
//open the database
$db = new PDO('sqlite:UsersOnline.db');
//create the database
$db->exec("CREATE TABLE UsersOnline (IP TEXT PRIMARY KEY, Time TEXT)");
echo "Database and Table created sucessfully.";
// close the datab... | 350b6ae9c31a6ee73427957f2a75d4746663aa7e | [
"PHP"
] | 2 | PHP | tilky/SQLiteUsersOnline | 6240dc4ed9ca4e0159ee77fad3cb91c62e3c45aa | 0dbb27dee1b42e8b1a672cd48f312554eff6f8ce |
refs/heads/master | <file_sep>const fs = require('fs');
const mysql = require('mysql');
const moment = require('moment');
const config = require('./../config.private.json');
const Twitter = require('twitter');
const client = new Twitter({
consumer_key: config.CONSUMER_KEY,
consumer_secret: config.CONSUMER_SECRET,
access_token_key:... | 4b3ecf68ac8791892a39377999c2e237dc25f9a5 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | mikatalk/twitter-bot | 73f6af5bf3f34cbbde60577cbd901c9eff7ccf58 | 952e345ecd35de4277b756968700971fc0b40076 |
refs/heads/master | <file_sep>cmake_minimum_required(VERSION 3.13.4)
project(TrackAssociator)
# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add sources
set(SOURCES_FILTERS
src/track_associator.cpp
)
include_directories(
include
../include
)
add_library(${PROJECT_NAME} STATIC ${SOURCES_F... | 1efd0e4b7c4e6069179f3b3a8660af32317d9055 | [
"Markdown",
"CMake",
"C++"
] | 34 | CMake | borodziejciesla/mht | d66edeb2b0d01261ce96655b130debbdb031bc0a | 353821e538998a28b99186433a4901aee04faa92 |
refs/heads/master | <repo_name>zycoJamie/ziz-cli<file_sep>/src/create-action.js
const inquirer = require("inquirer");
const fse = require("fs-extra");
const chalk = require("chalk");
const getTemplate = require("./download");
const constants = require("./constants");
module.exports = (projectName) => {
let prompts = [];
if (!fse.exi... | 48ba7d3c8e6e4ede2af61ecba9606c28c90fbff1 | [
"JavaScript",
"Markdown"
] | 8 | JavaScript | zycoJamie/ziz-cli | 931d1903f9045247f9628faf8664ca36662a752b | 2be439939b6f2a4dd849dc2fe0e0e5d1b7377bad |
refs/heads/master | <file_sep>import { Meteor } from 'meteor/meteor';
import { Songs, Versions } from '../lib/collections.js';
/* permissions (thanks to ongoworks:security) */
Security.permit(['insert', 'update','remove'])
.collections([Songs]).allowInClientCode();<file_sep> {
super(props);
this.state = {
books: []
};
}
componentDidMount() {
console.log('component did the mount');
fetch('/books')
.t... | 4861b5fc373ea36a061cf6b8314e5fdb5bdd6d23 | [
"JavaScript"
] | 3 | JavaScript | scottymccormick/onmyshelf | f0d7e0d1c213b12e3c4bdd9acb6c71768f6f7bcb | ccc5a3952fb66a23601e40450c490c844ad1febb |
refs/heads/master | <repo_name>pbinkley/bookmap<file_sep>/README.md
Bookmap
=======
Generate an OpenLayers-based zoomable image of all the pages of an Internet Archive book, layed out as a grid.
This is a pair of bash scripts that download the JPEG2000 files from a given Internet Archive scanned book, generate a single large image conta... | bbe365f08ac14626b6167efbcc2a34e8c93ad777 | [
"Markdown",
"Shell"
] | 3 | Markdown | pbinkley/bookmap | 1e3e0926864b86cfd89730a697ef8e94f5e77573 | a667d7a5248524ccba71577970368ac819b98278 |
refs/heads/gh-pages | <file_sep># Academic Visual Data
You can see outcome from [Academic Visual Data](https://shinsukeimai.github.io/acvis-mds/).
This project is going on with [C-PIER](http://www.cpier.kyoto-u.ac.jp/).We visualize [this data](https://survey2015.symposium-hp.jp/).
## Motivation
|||
|---:|:---|
|対象ユーザー|学際融合のハブとなる人|
|課題|ど... | 221ce0781f8317840e0234a8bac192b86f1eebb9 | [
"Markdown",
"TypeScript",
"JavaScript",
"HTML"
] | 22 | Markdown | shinsukeimai/acvis-mds | 46a4da1b29109b751ba44367d5ca1bea5c63a670 | 3257371132dd8f2063fb901f7e234b516a995fd0 |
refs/heads/master | <repo_name>Niall47/React<file_sep>/05-state-and-lifecycle/src/components/DeepState.js
import React from 'react';
export default class DeepState extends React.Component {
constructor() {
super();
// This is different from the counter component is that person is an object not a primative data type
... | ce534c7ea386a64448410b015ca799769ae919cc | [
"JavaScript"
] | 28 | JavaScript | Niall47/React | 3f0c614be58ca98d127a7143f68035fb6254a5bc | dfd8bfe13d8cbfbd7b361495cd600721b4a0c7de |
refs/heads/master | <file_sep>from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^taller2$', views.index, name='index'),
url(r'^$', views.inicio),
url(r'^grafo$', views.grafo, name='mygraph'),
url(r'^Taller3$', views.taller3, name='taller3'),
]
<file_sep># Create your views... | 86d35597b86e79f131bd3a6a8113deacb5d6d0af | [
"Python"
] | 2 | Python | FrancyPinedaB77/PlantillaDjango | d438f37021625401fb84e48514352fd295872533 | d6aa5c65643a08a54896d9d03a73d808c61554c6 |
refs/heads/master | <repo_name>pennennolde/numerical_analysis<file_sep>/src/math2/Hilbert.java
package math2;
public class Hilbert {
public static void main(String[] args) {
// Hilbert行列 A=(a_ij), a_ij=1/(i+j-1) を作成
int n = 5; // 行列サイズ
double A[][] = new double[n][n];
for(int i=0; i<n; i++) {
for(int j=0;... | 6b0ac80541f8a043c827693eec7ca5290a3aa6a2 | [
"Java"
] | 16 | Java | pennennolde/numerical_analysis | 0be2ed95c519b24f33da6a8b055bdbfb47b3183d | 0b89ca37bdd06a2f71925742b0fba8ecd7a57cfc |
refs/heads/master | <repo_name>Polpetta/minibashlib<file_sep>/modules/logging.sh
#!/bin/bash
function msg () {
# 3 type of messages:
# - info
# - warn
# - err
local color=""
local readonly default="\033[m" #reset
if [ "$1" = "info" ]
then
color="\033[0;32m" #green
elif [ "$1" = "warn" ]
the... | b737074266dce7db167c4495a2a86a6982abe0a8 | [
"Markdown",
"Shell"
] | 5 | Shell | Polpetta/minibashlib | 6fbb5526be41bcc44229c19f3304700b7e2dffa4 | c4665c9580c986926663352130cb988d9a5b00b2 |
refs/heads/master | <file_sep>using System.Collections.Generic;
using TeamCitySharp.DomainEntities;
namespace TeamCitySharp.ActionTypes
{
public interface IChanges
{
List<Change> All(int aHttpTimeOut = -1);
Change ByChangeId(string id, int aHttpTimeOut = -1);
Change LastChangeDetailByBuildConfigId... | 2a70cb95837878cc75416078ac894881a89dbd0b | [
"C#"
] | 1 | C# | tikicoder/TeamCitySharp | ed54792dcb95bd17eab5ef41075e38bc99572dba | cf9899d48e2d81731d01dc1c8ab312a46dd4e0bf |
refs/heads/main | <file_sep>import * as PIXI from 'pixi.js';
import * as box from 'box2d.ts';
import {
BodyTypes,
Transform,
Vector,
LineStyle,
Color
} from './properties';
const BODY_SCALE = 10.5;
export class GameObject {
private _transform: Transform;
private _box: PIXI.Rectangle;
private _sprite!:... | fe60cde8fca0d54008a713297c446be8767cb966 | [
"Markdown",
"TypeScript"
] | 5 | TypeScript | WHofstra/box2dPhysicsTest01 | ca3e07c94c2623c1709a0bcec7797987d08682ff | 02e81d07f395c6c4fcf464be4ef414d61b888645 |
refs/heads/main | <file_sep>import car.Car;
import car.CarUtils;
import org.junit.Assert;
import org.junit.Test;
public class CarDetailsTest {
// naming for unit tests __ method name_what are the inputs_ what do
// you expect to happen
@Test
public void getCarDetails_givenValidCar_returnsExpectedString(){
//... | 6f3cc212e0146a81ff7e9e5b7a15b519d46bd287 | [
"Markdown",
"Java"
] | 2 | Java | SuitcaseCoder/Maven-UnitTesting-Lesson | e2b754d14d8e56bffe9ee5ea378492651f00b741 | 98e8104d048df38e2caaa9df985cb165634217c4 |
refs/heads/master | <repo_name>matticoli/Golden-Ratio<file_sep>/Assets/CubeController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CubeController : MonoBehaviour {
private const float phi = 1.62f;
private bool varyWidth;
public float deltaScale;
p... | d14467e23e95c5e33f27d5e7a4ad7ed6a683d515 | [
"C#"
] | 1 | C# | matticoli/Golden-Ratio | e2e4e35002997ef2d4b8b96636d468ecd62c0cb6 | 69973c18e8c5559bfd67a6bf8fb8e4f4124d4c84 |
refs/heads/master | <file_sep>package org.afyahmis.streamz.core.model;
import java.time.LocalDateTime;
public class Result {
int id;
String clientId;
String name;
String test;
String result;
LocalDateTime resultDate;
public int getId() {
return id;
}
public void setId(int id) {
this... | 95702b0bb5d28fe5d8b4f9e7c276f9351bb783d0 | [
"Java"
] | 6 | Java | koskedk/streamz | 2950b38d3bc711c0fcde8793666b68e3efc43375 | d7105bcb079442efb4d18ea65c1db217473e2e50 |
refs/heads/master | <repo_name>BrightBridgeWeb/django-mako-plus<file_sep>/docs/static_links.rst
Including Static Files
================================
In the `tutorial <tutorial_css_js.html>`_, you learned how to automatically include CSS and JS based on your page name .
If your page is named ``mypage.html``, DMP will automatically incl... | e6b9ca7b13a21fcc5a26e787191c845698a47f17 | [
"JavaScript",
"Python",
"Text",
"reStructuredText"
] | 38 | reStructuredText | BrightBridgeWeb/django-mako-plus | 24690661b80562a510c1632853815df5111b606c | c42e6b3ff4a62b5110f6412958b8df585ae78881 |
refs/heads/master | <file_sep>import {statusEnum} from "../../enums/status.enum";
import {IsDateString, IsEnum, IsMongoId, IsNotEmpty, IsOptional, IsString, Validate} from "class-validator";
import {IsMinDateToday} from "../decorators/date-validate.decorator"
import {ApiProperty} from "@nestjs/swagger";
export class CreateProjectDto {
... | a4986c1dcc3c0c45e7ebae7a898ef1daad4be9bf | [
"TypeScript"
] | 36 | TypeScript | Nataly2315/testNest | 929ce85fbf36410c847e30fb4b370b062ab925da | 1bc58661ab1a1f7d162ea080a7fc8a4944f54d21 |
refs/heads/main | <file_sep>"use strict";
class ShowArray {
constructor(array) {
this.array = array;
}
[Symbol.iterator]() {
let nextIndex = 0;
let array = this.array;
return {
next() {
return nextIndex < array.length
? { value: array[nextIndex++], done: false }
: { done: true };
... | 1a5217b3968a4014d5e457af88d965fd85b27325 | [
"JavaScript"
] | 4 | JavaScript | buseloff/javascript_6 | 8a90b91d6f678d1fbe91278c2341ab0141d014be | 45f2f30f09e5ada37719bf0ce1222d88cb9c5ff7 |
refs/heads/master | <repo_name>vinicius-matt/jubilant-guacamole<file_sep>/pc_list_ex8.php
<?php
function inciaisdias ($numero)
{
if ($numero==1 or $numero==8 or $numero==15 or $numero==22 or $numero==29)
{echo "DOM";}
if ($numero==2 or $numero==9 or $numero==16 or $numero==23 or $numero... | 73aa56805dbe1faf257d106d0e14b702acc2fc7b | [
"Markdown",
"PHP"
] | 13 | PHP | vinicius-matt/jubilant-guacamole | cbd20cab8c6814f239c35b6bbebbecf27c16ff5e | 7918d6c01dd2187170e48d506e02ace6ba8dab40 |
refs/heads/main | <file_sep># furry-sniffle
A real estate scraper built for the website lamudi.com.mx on Python.
<file_sep>import pandas as pd
from bs4 import BeautifulSoup
from time import sleep
from random import randint
from scraper_api import ScraperAPIClient
import requests
def attribute_cleaner(dirty_attribute):
clean_attr... | 7eee79c32752b18416941df7d4b483723e977d09 | [
"Markdown",
"Python"
] | 2 | Markdown | ricardot66/furry-sniffle | 8114a62c574063add82e80be38ee47c94a585b6f | e99310cedccdeceaba6fc9496187792e968bbfc3 |
refs/heads/master | <file_sep>apply plugin: 'java'
apply plugin: 'kotlin'
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
dependencies {
compile project(':app')
compile kotlinStdLib
testCompile assertJ
testCompile jUnit
testCompile mockito
}
<file_sep>package <%= packageN... | d1199aa1ed08de731cc4775419381c899ed35b9e | [
"Markdown",
"Kotlin",
"Gradle"
] | 7 | Gradle | pardom-zz/slush-clean-kotlin | 8082d0ddf6f5cf95d5a4c2549416bcc5c4c97d10 | 6d2be3471820000b4ba4cefc7be2350d864c8f26 |
refs/heads/master | <repo_name>chegez/MY-WORK<file_sep>/areacircle.php
<?php
//Area of a circle is pi*r*r
//Area is a
function area_circle($pi, $r, $r){
$a=" $pi*$r*$r ";
return $a;
}
$pi="3.142";
$r="14cm";
echo "Area of the circle is=" . 3.142*$r*$r . " ";
<file_sep>/additem.php
<?php
if(isset($_POST[... | 800d01afe65f9824db7cc475786852ecfcddc488 | [
"PHP"
] | 8 | PHP | chegez/MY-WORK | be099194be07cd31a460f07c89c3422460ef14f5 | 815cf8028734adddb7232cad22f24aa78dec9e0e |
refs/heads/master | <file_sep>//
// ViewController.swift
// GeoCache
//
// Created by <NAME> on 10/31/17.
// Copyright © 2017 <NAME>. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
var cacheCount = 0
var cacheArray = [GeoCache]()
override func viewDidLoad() {
super.viewDidLoad... | 42b8ffc3318328b0217c7c18e05cbd4d7c175404 | [
"Swift"
] | 5 | Swift | preethiperi/cs11iostrack | 8eda7c98bb686c98be6189a2794bec2cc81066a4 | 76e6e1eddce6a5c053b6c15c3ecd0fa12aa9dbd7 |
refs/heads/master | <file_sep>/* tslint:disable:no-unused-variable */
const PascalCase = {
PascalCase: 1
};
<file_sep>interface Env {
[key: string]: string;
}
let x: Env;
x['foo'];
<file_sep>console.log('log');
console.info('info');
console.warn('warn');
console.error('error');
console.trace('trace');
<file_sep>/* tslint:disable:no... | ba2052045cea9e9efe6960deb2c8dfa741faf029 | [
"JavaScript",
"TypeScript"
] | 8 | TypeScript | types/_tslint-config-typings | a8d1f858d9e2a0fea869ca35e3d69a7a60ec436b | 500e088f5c6578988945031cdada6b6d5e849fff |
refs/heads/master | <repo_name>santiihoyos/vue-webpack-typescript<file_sep>/template/src/components/Main/MainComponent.ts
import { Component, Vue } from 'vue-property-decorator'
import './MainComponent.scss'
@Component({
template: require('./MainComponent.html')
})
export class MainComponent extends Vue {
msg: string = 'This works!'... | 045ad1a0e23d247c4207f847188bd52099332490 | [
"TypeScript"
] | 2 | TypeScript | santiihoyos/vue-webpack-typescript | 200c2b4bde35e838e4d5049b1bafbdf95fed82cc | c73efc0ef97bda399d5300b1c0f934cadfe73fc7 |
refs/heads/master | <file_sep>#!/usr/bin/env python3
import pyaudio
#import wave
import threading
from array import array
from time import sleep
CHUNK = 512
FORMAT = pyaudio.paInt16 #paInt8
CHANNELS = 1
RATE = 44100 #sample rate
RECORD_SECONDS = 30
#WAVE_OUTPUT_FILENAME = "pyaudio-output.wav"
data = array('b', [0])
done = False
lock =... | 2210a15b31c74757708e81ca1f2126d486e90e50 | [
"Python"
] | 3 | Python | joachimschmidt557/pi-clap | 7af8e0dbcb2a8bc89bd0a207c76dccf482222b86 | 4a3d30f67500bf6f32873803c126bca05ef3f6af |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.