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 | <file_sep>#!/usr/bin/env python
import os
import sys
from subprocess import call
from io import BytesIO
import rospy
import rosgraph
from std_msgs.msg import String
from sensor_msgs.msg import Image as ROSImage
from ros_picam.srv import *
from time import sleep
from datetime import datetime
from picamera import PiCame... | f3743d04623a837ec15b09b9c48dc4ea04ba192f | [
"Markdown",
"Python",
"Shell"
] | 7 | Python | pgavriel/ros_picam | db5dbf9a00139e7ce9e490744d69eb4fcdebfb0f | 7867f95b763d4157b6d595271b49c29cbe2d5d0e |
refs/heads/master | <file_sep># Singletony
większość obiektów to singletony. Uzycie banalne pewnie wiecie:
``` C#
Class.GetInstance().funkcja();
```
W klasie
```C#
class Functions{} ;
```
Znajdująs ie przydatne funkcje które mogą sie przydać. Jedna zwraca tablice 2D która reprezentuje obraz.Druna natomiast na podstawie
wspomnianej ta... | e11c12ba4c84f6896a34c3328b9653e10b32be0e | [
"Markdown",
"C#"
] | 2 | Markdown | Pabblittto/FingerPrint | 1238589dfdecedc1c33f2ac7eadc42e2bcea69e3 | b648921626cc40fd1765ae9f70ea13f851bd937a |
refs/heads/master | <repo_name>crw-riviere/Workout5<file_sep>/app/controllers/dayController.js
wo5App.controller('DayController', function ($scope, $routeParams, resourceService, entityService) {
init();
function init() {
entityService.getProgram(parseInt($routeParams.programId)).then(function (program) {
$sc... | f846a572b6a731029a13cbfc584b87b998d5a994 | [
"JavaScript"
] | 9 | JavaScript | crw-riviere/Workout5 | cd55a6f7692242c078ef21bc9c1e14d05857ce04 | af1b86085069c0cc4ae6551bb96f70a681cdb017 |
refs/heads/master | <repo_name>ShiYiLiJack/Tip-App-with-Tesseract<file_sep>/TipResult/ViewController.swift
//
// ViewController.swift
// TipResult
//
// Created by Jack on 5/7/19.
// Copyright © 2019 Jack. All rights reserved.
//
import UIKit
import ProgressHUD
import TesseractOCR
import GoogleMobileAds
let defaults = UserDefaults.s... | 330ed7a51d2ce3efc8c4c17ecb906d121b15a793 | [
"Swift",
"Markdown"
] | 3 | Swift | ShiYiLiJack/Tip-App-with-Tesseract | a3fe2bac2ebfd6a29cae08b2db7f7faa8cf453d4 | 5baee46a6462c2ee19a3aa2fac8a3d515479f838 |
refs/heads/master | <repo_name>dgfigueroa29/GLTest<file_sep>/app/src/main/java/com/boa/gltest/global/di/ListComponent.java
package com.boa.gltest.global.di;
import com.boa.gltest.ui.feature.list.ListActivity;
import dagger.Component;
@Component(dependencies = RootComponent.class, modules = {ListModule.class, MainModule.class})
public i... | c471ccac5ee139924b76f0b45bd8bca300860fe3 | [
"Markdown",
"Java",
"Gradle"
] | 19 | Java | dgfigueroa29/GLTest | 32301486328090c9dc945d5244ddf735c6a3a3ff | 1ea96cf3e7d10473ce53dc75f59f2856eb59f290 |
refs/heads/master | <repo_name>muditshamz/Reclette<file_sep>/src/data/MenuData.js
export const menuData = [
{ title: "Courses", icon: "/images/icons/courses.svg", link: "/courses" },
{ title: "About", icon: "/images/icons/book.svg", link: "/About" },
{ title: "Subscribe", icon: "/images/icons/email.svg", link: "/Subscribe" },
{ ti... | 3aba7a66f48c3aee8120cec7ae90da4290a82439 | [
"JavaScript"
] | 1 | JavaScript | muditshamz/Reclette | 6611bb65af6018ffdf1467edbbb1ef2b88b233ca | 5715a5b0853fe5a679af724023eb94d92eb377d8 |
refs/heads/master | <repo_name>SumyHu/xiuyu<file_sep>/js/index.js
//存储全局变量
var commentValue = {
hadFinishValue: 20
};
//需初始化的事件
var init = function() {
articleTopInit();
bindEvent();
};
//左侧导航栏事件处理
var asideBlockEvent = {
//被选中导航栏样式效果
selectedStyle: function(target) {
$(".aside-nav ul li").removeClass();
target.addClass("aside-... | 57ef35935c126c9f373fc3cd594f57764063a923 | [
"JavaScript"
] | 1 | JavaScript | SumyHu/xiuyu | 29d8faacadef703426bee01e935191f70d49ebb3 | c679897885c22e65844b3bca560dd3ebe156e939 |
refs/heads/master | <repo_name>monchito007/ClasePHP<file_sep>/index.php
<?php
class connection{
private $server="localhost";
private $user="root";
private $pwd="";
private $database="consumoelectrico";
private $con;
public function connect(){
$this->con = mysql_connect($this->server,$this... | a16e5d140c7f847fd0f95c6a5385cea9ef1f6a34 | [
"PHP"
] | 1 | PHP | monchito007/ClasePHP | 4fb657274a86e7e8666079006c9e7645a91f4da9 | 1175cf504191aed18dcb2ae9f2c5011971c28dcc |
refs/heads/master | <file_sep>server.port=8082
logging.level.com.github=debug
logging.level.org.springframework=info
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=Asia/Shanghai
endpoints.enabled=true
peacetrue.result.exclude-auto-convert-when-return=boolean
peacetrue.metadata.entity-class-map.Demo=com.github.peac... | 5977da0e77579b6955102a513c650f5a5f76f3bf | [
"Java",
"AsciiDoc",
"INI",
"Gradle"
] | 7 | INI | peacetrue/peacetrue-template-model-library | 38041d7ce7ab8e1d333e5f1f5a5b7f8dd022cf85 | 5347e83dda558786a8e5d717113cac082e9274cf |
refs/heads/master | <repo_name>chi42/go_hangman<file_sep>/threaded_hangman.go
package main
import (
"fmt"
"os"
"container/list"
// "regexp"
// "strings"
// "rand"
// "time"
)
const (
BUF_SIZ = 100
BLANK= '*'
)
var (
word_list *list.List
)
// printers ...
func list_print(l *list.List) {
for e := l.Front(); e != nil; ... | 454dc667f4e6787a8fc6f1cc7b3ed135e1988204 | [
"Go",
"Shell"
] | 3 | Go | chi42/go_hangman | f13c3a7dca5ab613d008e8b3eaa1db3a0a2a752a | f5bc3f737e725ff57626edb7d4359be5eea96560 |
refs/heads/master | <repo_name>aivo0/frontend-transcriber<file_sep>/config.js
export const endpoint = `http://localhost:4444`;
export const prodEndpoint = `https://tekstiks.ee/api`;
//export const endpoint = `https://heli-yoga-prod.herokuapp.com/`;
/* export const wssEndpoint = `ws://localhost:4000`;
export const prodWssEndpoint = `wss://... | 76758101e18fdf12a875f301aeace9cffc7b8d5a | [
"JavaScript"
] | 1 | JavaScript | aivo0/frontend-transcriber | 5e63842317a5ce70c10a1c60f4ce14be06910646 | c3b82e05f4bdab7840a2e9b7045b411ee80e0dc3 |
refs/heads/master | <repo_name>BradhamLab/vnet.pytorch<file_sep>/torchpmc/datasets/__init__.py
from .pmcdataset import PMC_Dataset
__all__ = ('PMCs')
<file_sep>/train.py
""" """#!/usr/bin/env python3
# from local import *
import time
import argparse
import torch
import numpy as np
import torch.nn as nn
import torch.nn.init as init
im... | c04abe40caf11d5e08d139251d05ab7abfccaf61 | [
"Python"
] | 4 | Python | BradhamLab/vnet.pytorch | c63313a30ab844b14e2e2904a31f38dcc7211830 | 00f1d8406994abcfe345360c210779f2f8507430 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import { getRequestParams } from '../utils/utils';
import { HttpClient } from '../../../node_modules/@angular/common/http';
import { UserInfomation } from '../model/userInfomation';
@Injectable({
providedIn: 'root'
})
export class RegistrationServiceComponent ... | 2c01a4276403b690e4e46507c991e2004a8300eb | [
"TypeScript",
"HTML"
] | 26 | TypeScript | wizemorikawa/registration-form | 695259506eebccaf0b3e9445d1ef1e6780b5cd50 | 5ce5fef16a9d25dc095dc8177e7b753f994a08dc |
refs/heads/master | <repo_name>t4d-classes/react_10142020<file_sep>/redux-hooks/src/utils.js
export const nanToValue = (x) => {
if (isNaN(x)) {
return '';
} else {
return x;
}
};
export const valueToNaN = (x) => {
if (x.length === 0) {
return NaN;
} else {
return Number(x);
};
}<file_sep>/demo-app/src/function... | 7409317c19e460d1ad7fbb997c9974df2c044631 | [
"JavaScript",
"TypeScript",
"Markdown"
] | 34 | JavaScript | t4d-classes/react_10142020 | 15ec9f791dbb758383b3d708969bbe90acf4dc18 | 47fbd976f72991b8462f45c2e561537ff4807653 |
refs/heads/master | <file_sep># -*-coding:utf-8-*-
"""
Author: <NAME>
"""
import h5py
import sys
import argparse
from PIL import Image
import numpy
def get_box_data(index, hdf5_data):
meta_data = dict()
meta_data['height'] = []
meta_data['label'] = []
meta_data['left'] = []
meta_data['top'] = []
... | 797eaf099c87e24d4e5c9fcf6d75209da4e99468 | [
"Python"
] | 2 | Python | InvokerLiu/tensorflow-yolov3 | 66ce04858a5a5f7c1aee8b93f8b7071df29a3837 | 3780e612654be24b94595f2ec43e773cb915a9c9 |
refs/heads/master | <file_sep>
/* -----------------------------------------------------------
PROGRAM gomoku 1.0
----------------------------------------------------------- */
/* -----------------------------------------------------------
<NAME> (C) 2007
Zezwalam na dowolna modyfikacje tego kodu.
Prosze tylko nie ... | 6ffb5639054c5be95b06f78f060d5d8ee637634d | [
"Markdown",
"Makefile",
"C++"
] | 4 | C++ | keselasela/Gomoku-Thread-Space-Search | 8bad5497536a74ebbc76a1b53d3bdd0bcb3ae6b8 | bf5aeb91668eaecd6e5fec10a77590c3563d2dc1 |
refs/heads/master | <file_sep>package com.course.localization.exactumpositioner;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.widget.Toast;
import com.course.loca... | 29a4af37fa5c2fd714aa39ef2f1fa443003f0907 | [
"Markdown",
"Java"
] | 8 | Java | pcmakine/exactumPositioner | 7dfeb430373b62d6579dfc1e81b8e2323cd56d22 | 067acae311955e322ac2d112a70b95a8dadfc2c4 |
refs/heads/master | <repo_name>xiaopangzhi795/zlblog<file_sep>/src/main/webapp/js/system/yaodian/checkList.js
//列表对象
var listGrid;
var mainTab = frameElement.tab;//框架的tab对象
$(function() {
listGrid = $("#gridArea").ligerGrid({
columns: [
{display: 'id', name: 'id', width: 100 } ,
{ display: '类别', name:... | dfa7ff6b45e9aac4f1ede5fe56379022d619fe6e | [
"SQL",
"JavaScript",
"Markdown",
"Maven POM",
"Java"
] | 89 | JavaScript | xiaopangzhi795/zlblog | c0e10cb5af95ff15458adb0d999ecb8d4e27bb53 | c34f3d057ba76adacb553e7edc482f262bc532f5 |
refs/heads/master | <file_sep>def to_opn(input)
stack = Array.new
ad = Array.new
arr = Array.new
priority = Hash["(" => 0, "+" => 1, "-" => 1, "*" => 2, "/" => 2, "^" => 3]
operators = %w(+ - / * ^)
input.delete(" ")
while input.length != 0
case input
... | ef4e89c79a348eb667d5811e367636302732410e | [
"Ruby"
] | 1 | Ruby | DS101/calc | 205d09d502eccc9b33b0416d35f0a6a42bbb3d6b | 1e665473adb14839304a94292fb212555899d5af |
refs/heads/master | <repo_name>perkygva/EDA_Project2<file_sep>/plot1.R
#Exploratory Data Analysis - Project 2
#Plot 1
#Packages
library(dplyr)
#Download, unzip files then read tables
zipfile = "EPA.zip"
if (!file.exists("EPA.zip")){
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip",
des... | 0342f2024f4c1918589ac6f5add971c3a63cf0c3 | [
"R"
] | 6 | R | perkygva/EDA_Project2 | 1d3b75d88c2c35423fecfe7d32653dece938c7f1 | 05c6193677a705d879f06244ef83df4c8ceb1867 |
refs/heads/master | <file_sep>import './App.css';
import React, { useEffect, useState } from "react";
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import {Button,Collapse,Row,Col} from 'antd'
import Dashboard from "./dashboard";
function Auth () {
const [email, setEmail] = useState('');
const [pas... | 1bef0017846650b2ebb63838a9f0e76c77ed2410 | [
"JavaScript"
] | 1 | JavaScript | apnicholls/recipebookapril-web | 67e83058e79f526e1de74e11f1c66694345e135b | 7d23612857bd0494f03ea62edc2a95055b525496 |
refs/heads/master | <repo_name>Aadil123/Customer-code<file_sep>/Customer.java
package in.ac.kletech.customer;
abstract class Customer {
int iCustomerID;
String sCustomername;
String sPhoneNum;
float fBillAmount;
public Customer(int iCustomerID, String sCustomername, String sPhoneNum, float fBillAmount) {
this.iCustomerID =... | 466d2f526546b2c7e8414b63507e61d867714dec | [
"Java"
] | 2 | Java | Aadil123/Customer-code | 8004e504dde357a2083edd060d9e93abed390986 | 241d9257588f0057b38ea0cab61463b36dcc501a |
refs/heads/master | <repo_name>SanguRe/Work<file_sep>/WorkDateRus/MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Win... | 186e9c9af6e811566fe5685561b225f1c6dd045b | [
"C#"
] | 2 | C# | SanguRe/Work | 86bf8a2b454ad87c01eadecc6d53012fad930fa1 | af2afdecd16b64c7e021517bad70dd710543eb29 |
refs/heads/master | <repo_name>AlexSysChi/spring-boot<file_sep>/src/main/resources/db/migration/V2__alter_PERSON_table_clear.sql
delete from PERSON;
<file_sep>/src/main/resources/db/migration/V3__alter_PERSON_table_with_content.sql
insert into PERSON (id, name)
values ('15c74793-e807-400b-a8f2-43c7553f2fa5', 'NAME_1'),
... | 93322fdf5aaa82ad9091aa690dadd408cbf95471 | [
"Java",
"SQL"
] | 3 | SQL | AlexSysChi/spring-boot | c32118c799133a2b66060588039da2a20352524b | c756039cd65119851e701ce55ef4ee317f10b5ca |
refs/heads/master | <repo_name>windsurfer7563/data-science-journey-2017<file_sep>/README.md
Данные репозиторий содержит примеры решений задач проводимых в рамках конкурса [SDSJ](https://sdsj.ru/), а также вспомогательные файлы позволяющие упростить решение и его отладку перед отправкой на [платформу](https://contest.sdsj.ru).
Струтура ре... | 2ae4603734156f1c5a85077271d112331b359fa9 | [
"Markdown",
"Python",
"Dockerfile"
] | 5 | Markdown | windsurfer7563/data-science-journey-2017 | 1e9f411fda9a13c99f194b71ca0cf4455aa02557 | edb2f721ddcaebaada21ef054cca82a8d3e66562 |
refs/heads/master | <repo_name>necrommunity/python-replay-parser<file_sep>/README.md
[](https://996.icu)
# Replay Parser
A replay parser for Crypt of the Necrodancer: AMPLIFIED, which will store all replays into a database for viewing later.
## Building Config File
Copy the ... | 7cabc64a5c92269ee5d84b5c56bfa7e811ff4786 | [
"Markdown",
"TOML",
"JavaScript",
"INI",
"Python",
"Text"
] | 8 | Markdown | necrommunity/python-replay-parser | 519e2763ca887ac8d8520488e2de50420c31b7df | 52fd12a78d52ebaab4085f99a3748e2e7fdcb6b4 |
refs/heads/master | <repo_name>UncleScrooge2012/Webpro<file_sep>/app/js/main.js
$(function(){
var mySwiper = new Swiper ('.swiper-container', {
// Optional parameters
loop: true,
// If we need pagination
pagination: {
el: '.swiper-pagination',
type: 'bullets',
},
// Navigation arrows
})
var mySwiper = new Swiper... | b937fe6d8d5c15d53899a2cc55ad924bfde96e39 | [
"JavaScript"
] | 1 | JavaScript | UncleScrooge2012/Webpro | c7ea7d6705cc5a93f016c035f3f31bf94b72a668 | 0561ebb61c19af0e5cc10a44098f0d3b31802a25 |
refs/heads/master | <file_sep>let isFetching = false;
let isEndOfData = false;
buildLoadMoreHandler( document.querySelector( '.wp-block-newspack-blocks-homepage-articles' ) );
function buildLoadMoreHandler( blockWrapperEl ) {
const btnEl = blockWrapperEl.querySelector( '[data-next]' );
if ( ! btnEl ) {
return;
}
const postsContainer... | 6221aff6d4d0a0dfc94b5ecdf9f7e5dca493ff2d | [
"JavaScript"
] | 2 | JavaScript | fahimxyz/newspack-blocks | 3c55a69d23d17c2cfb5e26385ffd27b0e31ba168 | 23db97b0d9837864daa1d0eaad9ef1393d8b7d94 |
refs/heads/main | <file_sep># todos-list-backend | 130cd9e5be89594e30c1a27edd7dbd6a97db5731 | [
"Markdown"
] | 1 | Markdown | Yordy2001/todos-list-backend | 45e1058dd4fd86ac973e27b2399f322fa624a9f9 | aa176533f3f7380169300f441c3f99b9c76cb82a |
refs/heads/master | <repo_name>mmuyakwa/bash-scripts<file_sep>/installers/install_pritunl.sh
#!/usr/bin/env bash
# This script installs openvpn-Access-Server.
# This Script is intended for systems WITHOUT a GUI
# Must be root or SUDO-User to run script successfully.
# Author: <NAME>, 2019-12-25
# License: MIT
# root is always user_id 0
... | e473984322d18a019b7a4fffbeb3d770dc9046ec | [
"Markdown",
"Shell"
] | 55 | Shell | mmuyakwa/bash-scripts | 928984a723cca4ee3287ace10a6a79030a94105c | bcc4f0f9dfc21d0e047a9aa5d644e2a8275c5147 |
refs/heads/main | <repo_name>kariem20020/yalla-shoot-live<file_sep>/README.md
# yalla-shoot-live<file_sep>/yallashoot.js
var Nahal = (function () {
var _0xc6b1x2 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
var Nahal = function () {};
var _0xc6b1x3 = function (_0xc6b1x4) {
if (typeof (_0xc6b1... | 55c56fac2371d31f47105f36e87c4026ae9ef884 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | kariem20020/yalla-shoot-live | a8f43957619655f81b98214022f0e09f8ddf94c6 | b4c8b7c782004e284de03efb3de2088d341ec8e0 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using WeddingPlanner.Models;
namespace WeddingPlanner.Controllers {
public class HomeCont... | 03edf6fde10b6978c5c61b1587f422a578dd9df4 | [
"C#"
] | 2 | C# | narcisolobo/CS-WeddingPlanner | 0a5094b50d4cf47226065d95e40b4ae334924b81 | fe58a64e797164853475c342b89fb7c86b1104c4 |
refs/heads/main | <repo_name>MusabZayadneh/devsecops<file_sep>/file2.sh
echo "This is File 2"
<file_sep>/file.sh
#!/bin/bash
echo "Hello this is Version 1"
echo "Hello this is Version 1"
echo "Hello this is Version 1"
| 3995a71e2a420e23ec83c08b59cdf482d7406779 | [
"Shell"
] | 2 | Shell | MusabZayadneh/devsecops | 32c09dea79d4348bd8397de653e9a6efbe8a1bbc | f125c56ada895989f07fe3327d122e43530ccb34 |
refs/heads/main | <repo_name>indhuJothi/30th-June-2021<file_sep>/class-comp/class-comp and set-state/src/func-comp.js
import React from 'react';
import {mess} from './utils';
const Blog=(prop)=>{
mess(prop);
return(
<div className='blog'>
<h1 className='heading'>{prop.title}</h1>
<p>{prop.description}</p>
... | abfaf3e9b21f58fd7b642b59a66fdfb0037505ec | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | indhuJothi/30th-June-2021 | 099b40c6b7a58f4e03f6214b25c19843d723b766 | 72d94c757146694899d291386606a82c9f3cfa76 |
refs/heads/master | <repo_name>DarkTobey/WebSocket<file_sep>/OwinSocket/Config/OwinPipelineRegister.cs
using Microsoft.Owin;
using Microsoft.Owin.Extensions;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OwinSocket.Config
{
public class OwinP... | 4d9bef0523a4af291e0c6519024fdfce680180df | [
"C#"
] | 7 | C# | DarkTobey/WebSocket | 7d5fd29a5a4beccc56f4b0d8e2dd5e8b10c1b38b | a369d7b4262b9567b9b861e02fc83e836ef005f4 |
refs/heads/master | <file_sep><?php
session_start();
if(isset($_SESSION['user'])!="") {
header("Location: signup.php");
}
include 'functions.php';
if(isset($_POST['btn-signup'])) {
if ($_POST['upassword'] != $_POST['repassword']) {
?>
<script>alert('Passwords do not match');</script>
<?php
} else {
$first... | 1a4af0147589454bfdf49d32c20eae3082db0dde | [
"PHP"
] | 19 | PHP | chrismathew87/test | d674ea8dfc41ca8760d83d6f411f2dacdcba5865 | f8d8cdbc835a10d46365d24c0e6527fb6acb59ed |
refs/heads/master | <repo_name>tmartin42/MusicRoomWebApp<file_sep>/src/main.js
import Vue from 'vue'
import VueAxios from 'vue-axios'
import VueAuthenticate from 'vue-authenticate'
import App from './App.vue'
import router from './router'
import './registerServiceWorker'
import axios from 'axios';
Vue.config.productionTip = false
new Vu... | a9ce29bbb1010e86e33ca8987fedbac795e9d3f4 | [
"JavaScript"
] | 2 | JavaScript | tmartin42/MusicRoomWebApp | 2d847e7cea526377f9ea295a08eecf9c5fd2836c | 955b896e61d8c50dc16794c427133146744de02a |
refs/heads/master | <repo_name>SvenMeyer/ReduxSimpleStarter<file_sep>/src/index.js
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import InputField from './components/input_cc.js'; // .js is optional
import ListVehicles from './components/list_vehicles.js'; // .js is optional
const API_KEY = 'ABC'; // TO-DO
/... | aaacfde87cf1c1a457a5a7bccb4162c45b85fe8b | [
"JavaScript"
] | 6 | JavaScript | SvenMeyer/ReduxSimpleStarter | 6a6ee8efb083f1e9be280b1883e8864f38739104 | 70b5c5178c4b1ae553f0483f1545dd882a092eef |
refs/heads/master | <file_sep>CREATE TABLE users (
id serial primary key,
name character varying (200),
email character varying (200),
password character varying (300)
)
CREATE TABLE flutters (
userid integer,
postdate DATE NOT NULL DEFAULT CURRENT_DATE,
body VARCHAR (255) NOT NULL,
postid serial prima... | 16051c2844e3fc0a28f2b081b7300ca0e44abc6c | [
"JavaScript",
"SQL"
] | 4 | SQL | marberrym/flutter | 9dc989fe7b481889023f6a4e9994f8911af36278 | 58af946a53df56e6313f90b49d20493bece35ea4 |
refs/heads/master | <file_sep>console.log("wooow");
| 79404fd32967e2a155aca7274e7199f62c5ee978 | [
"JavaScript"
] | 1 | JavaScript | GaneshSansoa/demo | d422e04cc2749244ae7f55713683e7ce54073882 | 1aefe69d78eb539c7fd46a3b8104eb7dfec28351 |
refs/heads/master | <repo_name>andreneves7/AppHuntig<file_sep>/app/src/main/java/com/example/app/OrgActivity.kt
package com.example.app
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.AlarmClock
import android.util.Log
import android.view.Menu
import android.v... | 0a00a56dfada75c995b0ed4122705e2e66041299 | [
"Kotlin",
"Gradle"
] | 22 | Kotlin | andreneves7/AppHuntig | a5edec75fd35c2904056567d72cf418d2c8ae2d7 | 1e7cdb2213f6a0fa70b0eb0537eec361e3541f68 |
refs/heads/master | <repo_name>matsko/be-fe-docker-compose<file_sep>/README.md
BE / FE Docker Project
===
# Installation
1. Install docker and docker-hub
1. Install `docker-compose`
1. Clone the repo and run `make dev`
# Usage
```bash
# run the project
make dev
# rebuild the project (whenever `docker-compose.yaml` is updated)
make dev-... | 361d58d1bba603763413467d438324110bf05e12 | [
"YAML",
"Markdown",
"JavaScript",
"Makefile",
"TypeScript"
] | 5 | Markdown | matsko/be-fe-docker-compose | cb892907373075b0cb887ec099be823ed25b8fe1 | 8e609c12ccccd3134f3f420eb808454c5469619a |
refs/heads/master | <file_sep># Talking-Clock
PHP Solution with some html and bootstrap 4
<file_sep><?php
/**
* @method validateTime validates time using regex
* @param $time is string
* @param return returns boolean
*/
function validateTime($time) {
$validation = false;
if(preg_match('/^[0][0-9]|[1][0-9]|[2][0... | 334a19429daf3122fce86302c590c01662c28de8 | [
"Markdown",
"PHP"
] | 3 | Markdown | tinasheMh/Talking-Clock | a0d014999369a4f883c17cae45a53b8e0f669cbd | 0d78aeff867aa356a2e4e924536306b38a5fda70 |
refs/heads/master | <file_sep>describe("Captcha", function() {
it("should show 1 + ONE correctly", function() {
//Arrange
var captcha = new Captcha(1,1,1,1);
//Act
var result = captcha.show();
//Assert
expect(result).toEqual("1 + ONE");
});
it("should show 2 + ONE correctly", ... | 5a9b93fe29b2bbb96573f5e2963f6aa8227e869c | [
"JavaScript"
] | 1 | JavaScript | ladarat/CaptchaJS | b6f676e79396b853e706addf0bb42b1ddea80b96 | acd3f020396004046f4491c2e77187e5e2e8c5c5 |
refs/heads/master | <repo_name>the-inhuman-account/PinPointPrevent<file_sep>/requirements.txt
dlib==19.13.0
nose==1.3.7
numpy==1.14.3
Pillow==5.1.0
<file_sep>/full_demo.py
import sys
from demo import main as demo_main
from main import main as main_main
demo_main(sys.argv[1])
main_main()
<file_sep>/mass_prepare_data.py
# mass_prepare_data... | 05fce8804e9be010d5c0b649141d2506e2e3660e | [
"Markdown",
"Python",
"Text",
"Dockerfile"
] | 8 | Text | the-inhuman-account/PinPointPrevent | 5576b125f41937b014192274d6151f23d031ca30 | f4d79737ecb5c33f31fe9b425e8db0bbf153449c |
refs/heads/master | <repo_name>BhumikaKhatwani/AML<file_sep>/PGM_BN.py
import numpy as np
import pandas as pd
from math import log
from pgmpy.models import BayesianModel
#subtracting features of two images
def sub_features(image1, image2):
image3 = abs(np.subtract(image1, image2))
return image3;
#Joint Probability clcu... | aca226fe8e8128fbed906af3f0dbfae2c5cf26d4 | [
"Python"
] | 1 | Python | BhumikaKhatwani/AML | 7c17155399257048ee5a6969add5fba636b0fa7a | 3ed701a16c56fa2d62f3c9476c054ec3ab7179e7 |
refs/heads/master | <file_sep>t1 = 3
t2 = 4
colorT = 10
x = noise(t1)
y = noise(t2)
def setup():
size(640,640)
background(0,155,0)
def draw():
global x,t1,t2,colorT
background((noise(colorT)*100))
colorT = colorT+0.01
x = noise(t1)
y = noise(t2)
x = x*1000
y = y*1000
t1 = t1+0.01
t2 = t2+0.01
... | 8c20fe90449920cd499d3190f87723f217f20ed9 | [
"Markdown",
"Python"
] | 3 | Python | kushalshm1/AnimationProcessingPy | 24294166436d5b06f104cefa29c0aaf2af6e84c4 | f5224cb2f714fbe852b06ef29ea3879577d05cc6 |
refs/heads/master | <file_sep>dbct
====
Dat Block Cipher Tho.....
## Description
This is an implementation of a block cipher designed by me, <NAME>, and <NAME> for BYU's Mathematical Cryptography class (Math 485). It is very simple and probably vulnerable to all sorts of attacks, but that's not a huge deal right?
The algorithm operates... | e1dfbd58b40d3b8908258e05160666cbb5c954a1 | [
"Markdown",
"Python"
] | 3 | Markdown | ThaWeatherman/dbct | 002bccd3d5d8a3d267001dec5affab282bc2ebf4 | 0617c3eac7b3664f7a61a32cd0e9d0ba52ec0e1d |
refs/heads/master | <file_sep>#Test script, most features tried here are included in app.R
setwd("PATH)")
sample=c("XYZ")
sample.pdf=paste(sample,"TestPCA.pdf",sep=".")
evec.in="file.evec"
eval.in="file.eval"
data <- read.table(evec.in)
eval <- read.table(eval.in)
#data <- data[nrow(data):1,]
## data must match the dimensions of... | eaeed237ac137fc49b03daab1b707d8d3195f990 | [
"Markdown",
"R"
] | 9 | R | SciWilro/PopGenRShiny | 8ece68be70d13f9d5f0cc0cd0d131bf037aa1d2f | b4a8aa8c00ebd79f628f8cb7ef5a3c0f08dc709a |
refs/heads/master | <file_sep>// ViewController.swift
// SlidingMatrixWeb
//
// !! Important:
// Please add the WebKit framework in target/Build Phases.
//
import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {
@IBOutlet weak var wv: WKWebView!
//[!] Connect to a WKWebView on the StoryBoard
... | 1435ac25325568a875f8b6a0bbcb6a0f028501a8 | [
"Swift"
] | 1 | Swift | wangyiwei2015/SlidingMatrix | b95a8e736cf2b80dfb7dddf2667c61a0d1a1e0ae | 355efd7d4259fa8c7799e5192fa91d4dcd4f5859 |
refs/heads/master | <repo_name>DarrylD/react-native-sidemenu-examples<file_sep>/README.md
# react native sidemenu shrink example
Wanted to experiment with animations on android.
<img src="https://raw.githubusercontent.com/DarrylD/react-native-sidemenu-shrink/master/animation.gif" width="275" height="auto" alt="Buttons">
<img src="http... | a3fac61b02b6d79e7729f7c725e07854dc768df8 | [
"Markdown",
"JavaScript",
"Gradle"
] | 4 | Markdown | DarrylD/react-native-sidemenu-examples | de7bd784f1da519f43ec24d489ef1fdb664c02d5 | 7cfb5f1712dba5cab7768e1a37bbec6b8d67aa5b |
refs/heads/master | <repo_name>rionik92/HW7.0my<file_sep>/src/com/company/Main.java
package com.company;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Map<String, String[]> dict = new HashMap<>();
dict.put... | 399d0c29b78c57ab7fabbd86e981cd2fe84914e4 | [
"Java"
] | 1 | Java | rionik92/HW7.0my | 632c9544d79d84ff4fb7a9ef48d07b03b8300038 | a1609f7be4723d325201a7cb938b450e7741dae7 |
refs/heads/master | <file_sep>#encoding=utf-8
class IniFile():
def __init__(self, filename):
try:
self.iniFile = open(filename, 'r')
except IOError as e:
print 'open ini file %s failed : %s' % (filename,e)
return
self.data = {}
modelName = ""
for... | 5a1b47d65817708150688c3a3866ff30dc065704 | [
"Python",
"Text",
"INI"
] | 17 | Python | 2451086495/DisCrawler | 3c7e17b0e09e72c39b38be086e1569a41a60674a | aa81f3d3167892f8f53ba473058edafd5c39c038 |
refs/heads/master | <file_sep>#!/usr/bin/python
#
# Project Titan
# _____________________________________________________________________________
#
# _.oo.
# April 2020 _.u[[/;:,. .odMMMMMM'
# ... | e30c8c2cc4f74aef185e703743818714c2b0cd18 | [
"Markdown",
"Python",
"Text"
] | 12 | Python | mrernst/CAR_torch | b98d2d2bc53c5a712ffb7fddf2a2ad9a40566a79 | 0053c2a2fac263da1fa6ec38a4e837170cdb6702 |
refs/heads/master | <repo_name>sven199109/montreal<file_sep>/lib/generators/montreal/install/install_generator.rb
module Montreal
module Generators
class InstallGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)
def create_install_file
template "montreal.rb", "config/i... | 714d4ea1eab95f0988f45cf623bc23b7a169b062 | [
"Markdown",
"Ruby"
] | 6 | Ruby | sven199109/montreal | 8c1c552e42c0fbb3c019459e0d36a5d47682d7d5 | 4896ccbd220df220e0798302cd1889c27fbef2a3 |
refs/heads/master | <file_sep>Boroda
======
Boroda is a tiny library for SQL SELECT query generation. The library provides a DSL which is as close as possible to SQL. Just look at the code:
require 'boroda'
sql = Boroda.build do
from :posts, :users
select posts.*
where (posts.author_id == users.id) & (user... | 8e6adef39b26e02ebad69148d58024302de2655e | [
"Markdown",
"Ruby"
] | 2 | Markdown | dmitryck/boroda | 0e07deb1192ceef893118ddedd5ecaf9c3085f7f | 0f9c2af5120de17c67d4deeb07d5ea14f131d91f |
refs/heads/master | <repo_name>AlexNava/sketchbook<file_sep>/SerialTest/SerialTest.ino
const int INBUFSIZE = 64;
const int OUTBUFSIZE = 64;
char inBuf[INBUFSIZE] = "";
char inBufPtr = 0;
bool dequeueSerial()
{
while (Serial.available() > 0)
{
if (inBufPtr < INBUFSIZE - 1)
{
Serial.readBytes(inBuf + inBufPtr, 1);
... | c9c7935a5800478a9243b54cfe57401553252310 | [
"C++"
] | 1 | C++ | AlexNava/sketchbook | c8f890e87325ee97b845b44c143b7920df015157 | af8e4a18e295467d8b1d704212e0dc19e8e34f78 |
refs/heads/master | <repo_name>M-Porter/budgeter-mobile<file_sep>/www/js/ember-templates.js
Ember.TEMPLATES["application"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = ... | 2a8fabcd5472553f1f24433bca241740c78d6085 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | M-Porter/budgeter-mobile | e40189a9af96798f237f9c8b3e69359203f75b64 | 4cb529d47480381961c30576e1c1290a119833ff |
refs/heads/master | <repo_name>SchoolJCUHBL/SAPs<file_sep>/SAPs/main.hpp
//C++ Standard Libraries
#include <cmath>
#include <fstream>
#include <iostream>
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
//external libraries
#include "concurrentqueue.hpp" //lockfree queue
#include <gmpxx.h> ... | 831a7e6ae269935dda9a46f19f43dac4c1320e5b | [
"Markdown",
"C++"
] | 3 | C++ | SchoolJCUHBL/SAPs | 917bb63ffac16306e67d8018f6032f4364539644 | 2cf87615e2366e9f61c5364c0f75c28c44ce9b23 |
refs/heads/master | <file_sep>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <pthread.h>
#include <omp.h>
#include <CL/cl.h>
#include "../heads/world.h"
#include "../heads/clerrors.h"
/*
Kreiraj nov svet(visina, sirina):
-svet je na zacetku polje mrtvih celic
*/
world* createWorld(int size_x,... | 20fcd23050bd3686c3d9781226195fa8cec0a381 | [
"C",
"Shell"
] | 8 | C | kristanm1/Game_of_life | 48a142586a2927ace6628123fd8eee3f75ddcc45 | 4438dafd4c226504d6a52bea0f61989c59d9c45c |
refs/heads/master | <repo_name>chrisberkhout/ffaker<file_sep>/README.rdoc
= ffaker
Fast Faker == Faker refactored. http://rubygems.org/gems/ffaker
= Faker
A port of Perl's Data::Faker library that generates fake data. http://rubygems.org/gems/faker
== Usage
require 'ffaker'
Faker::Name.name => "<NAME>"
Faker::Internet.email => ... | 25b8536259217a9c7f6f946c928bcda10dd75ba1 | [
"RDoc",
"Ruby"
] | 22 | RDoc | chrisberkhout/ffaker | adc7960c9e5f96904cbf9cec3e828e421a9ed2bd | 47bd68d3db2b19974317bd1aee02225f7fb076f6 |
refs/heads/master | <file_sep>from django.urls import path
from basic_app import views
#Template URLs
app_name = 'basic_app'
urlpatterns =[
path('register/',views.register,name='register'),
path('login/',views.user_login,name= 'user_login')
]
| 2a6474c6d2a129db1e58eae51a09d342a24eeb2e | [
"Python"
] | 1 | Python | rammandal/django-deployment | 7504fe5aca0c1af089eec25669a65e1138ceaf83 | c2e9f62fec4259d5c48a5d608766f4cae66e6f1e |
refs/heads/master | <repo_name>Beondel/LinearAlgebraLibrary<file_sep>/vector.py
# <NAME>
# Vector Algebra Function Library
# 5/2/17
from math import sqrt, acos, pi
class Vector(object):
def __init__(self, coordinates):
try:
if not coordinates:
raise ValueError
self.coordinates = tuple... | dfa1b9d5c681b414f30fc73cbc991ea01a5ba351 | [
"Python"
] | 1 | Python | Beondel/LinearAlgebraLibrary | 1b86177b9caba15f22ec0da4d5074097a422a602 | 8532a6822ccb8077a47156ac5d6b912427f066dd |
refs/heads/master | <file_sep>package encoder;
import java.awt.image.BufferedImage;
import java.awt.Color;
public class ThreeStepSearcher {
// Three step search
public static int[] ThreeStepSearch (int x, int y, BufferedImage left, BufferedImage right){
int[] t = new int[2];
int xCenter = x;
int yCenter = y;
//Co... | ac28ffe7b6771ac3a2ebb4cb01823469ee21be32 | [
"Markdown",
"Java"
] | 3 | Java | cszongyang/mu | d7d0c4ae3c2a3a18fd0e2b936f965552ec973930 | 9a35b45eeba5182a7e51f3052f356d39fd9deb0d |
refs/heads/master | <repo_name>JustinLindhout/frontend-voor-designers-1920<file_sep>/opdracht2/README.md
# Frontend voor Designers - opdracht 2: Een interactie uitwerken voor verschillende gebruikers input
Werk een functionaliteit uit die je kunt bedienen met 'click' en nog een user interactie, zoals het toetsenbord, tab, dubbel click, s... | 179a4d35347bfd7b053aae1f601823ab69e148d0 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | JustinLindhout/frontend-voor-designers-1920 | 77c141cbfe9905c208fb16dc9977021773b03172 | 27b170e9668cdb07c5e72a478442148eabb29722 |
refs/heads/master | <file_sep>const questions = [
{
question: "What does HTML stand for?",
answers: [
{text: 'HyperSex Marker Language', correct: false},
{text: 'Hyper Markup Language', correct: false},
{text: 'HyperVeryText Markup Language', correct: false},
{text: 'HyperText Markup Language', correct: ... | 174dfa8cef75d8ea4f64c7270400da53f63d7e72 | [
"JavaScript"
] | 1 | JavaScript | ohwoow/test-your-knowledge-js | 88d5872ad1f58921da5e2c2c3f55d8b565434b20 | 975ccf5c7c75600b51b58af7fed5b07a308d5e2e |
refs/heads/master | <repo_name>RitamChakraborty/Christmas_Tree<file_sep>/README.md
# Christmas Tree
Generate Christmas Tree like structure from a text. It creates a complete binary tree with the text and prints it by
adding edges to every alphabet.
## Demo
```
********** Christmas Tree **********
Enter a text:
MerryChristmas
... | 2e866be24672a91412b610376481385daca72d75 | [
"Markdown",
"Java"
] | 3 | Markdown | RitamChakraborty/Christmas_Tree | e864dd03543c45aee34d6d2d7641d3005cef4286 | fa28ea7b0400ae75ddb3d9853a0c1f2484fa0bd6 |
refs/heads/master | <repo_name>ReinForce-II/fbtft<file_sep>/fb_ili9225.c
/*
* FB driver for the ILI9225 LCD Controller
*
* Copyright (C) 2018 Reinforce-II
* Based on codes by <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the ... | e77e019290b4d79540353938253b72dde4de6f10 | [
"C"
] | 1 | C | ReinForce-II/fbtft | 4e19aab0a2b122f2f5829ccc14d7dad7832deae3 | 93c36ecdd76423bbd4cfaeed9b019294cdade330 |
refs/heads/master | <file_sep>import React from "react";
class Subject extends React.Component {
render() {
return (
<header>
<h1>
<a href="/">{this.props.title}</a>
</h1>
<h3>{this.props.sub}</h3>
</header>
);
}
}
export default Subject;
<file_sep>import React from "react";
impo... | 2fdb3835da7bcde0ecb0c1fb93b8ff718825cb36 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | HwangWoong4708/opentutorial_react | f05d3f5591dab2c14a99cf1f28f630b6c5cef5ff | 8a1955b47d52272a1a9845ba0dd583384e98ee43 |
refs/heads/master | <repo_name>budiopl/ClientPlugin<file_sep>/clientplugin.php
<?php
/**
* Plugin Name: Hurtownia - Budio.pl
* Plugin URI: https://github.com/budiopl/ClientPlugin
* Description: Umieszcza link do twojej hurtowni w stopce strony.
* Version: 1.1.2
* Author: Budio.pl
* Author URI: https://budio.pl
* License: GP... | 4a3304b8a3ad6d4a167e6754c2e80bf3e547926e | [
"Markdown",
"PHP"
] | 2 | PHP | budiopl/ClientPlugin | 72f9988b79ad51e0f0572f7d2b817cdcfe8ff748 | 8260dbf32e558fbf9e6c8b0b841f81732c1245f2 |
refs/heads/main | <repo_name>Irfanullahmunna/core-concepts<file_sep>/src/App.js
import React, {useEffect, useState} from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
const nayoks = ['Razzak','Jasim', 'Anwar', 'Jafor', 'Alomgir', 'Salman']
const products = [
{name: 'Photoshop', price: '$90.99'},
... | 47fca4dc2d2aa425c6f93b2e0a55758d7f066598 | [
"JavaScript"
] | 1 | JavaScript | Irfanullahmunna/core-concepts | dbea058766782ad5abfb31209c3be7eddccfb079 | 68297af55f0f0e27f9cfe50eed2aa24d07f3d9ba |
refs/heads/main | <repo_name>Md-Asaduzzaman-Muhid/edu-mcq<file_sep>/mcq-app/routes/web.php
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Auth\RegisterController;
/*
|--------------------------------------------------------------------------
| Web Routes
|-----------------------------------------------------------... | d03e4f34e3384cfecef54774d1e317fb047f3204 | [
"PHP"
] | 8 | PHP | Md-Asaduzzaman-Muhid/edu-mcq | 43d612dcc39afd4747da855ba46d8e3f3fcae4c0 | 46f48bd4ca5c584da11a9eed022d2f78b6de4f82 |
refs/heads/master | <repo_name>filipefrozza/angular-route-firebase<file_sep>/app/pagina/pessoas/controller.js
angular.module(APP)
.controller('pessoa', function($scope, $firebaseAuth, $firebaseArray, $firebaseObject, authenticate){
var callback = function(user){
$scope.user = user;
var ref = firebase.database().ref();
... | dc00d360e9b1ab8fa0ef7e42a3dcca65e2ae9914 | [
"JavaScript",
"Markdown"
] | 7 | JavaScript | filipefrozza/angular-route-firebase | 83df09d03d20b2293476b7fe5330d70c2d5592e1 | f48476778d304722e9bf0fa90071f349d4d803ac |
refs/heads/master | <repo_name>StormMaybin/baidu-coder<file_sep>/src/main/java/com/baidu/message/EmailMessage.java
package com.baidu.message;
import com.baidu.enums.MessageType;
/**
* <p>
* Created by mayongbin01 on 2017/1/25.
*
* @author mayongbin01
*/
public class EmailMessage extends Message {
/**
* @param text
*/... | 351c54b3a5a2590cae766c125f54ea218c24de45 | [
"Java"
] | 9 | Java | StormMaybin/baidu-coder | 435f10e09ac141560770f3e1ee3cd8e55a0ecab0 | 1373dea8494cbf13f36c8cddc9d7a3b0c02f3469 |
refs/heads/master | <file_sep>from flask import Flask, render_template, Response
from fulkod import arbs
import re
# begin IPv4 hack
#--------------------
# do this once at program startup
#--------------------
import socket
origGetAddrInfo = socket.getaddrinfo
def getAddrInfoWrapper(host, port, family=0, socktype=0, proto=0, flags=0):
... | 74b94256b24d1baa006bcabf2a2dbf2ec4956c9d | [
"Python"
] | 2 | Python | straend/arcadaical | f6f6d30f2aaeb6326cf36234484fe9d4e2cedf12 | 7eed17d1ec8412cbe874fa9e68128fdfbd27d5e7 |
refs/heads/master | <file_sep># PHP-PDO
Basic PHP PDO Guide
<file_sep><?php
// print_r(PDO::getAvailableDrivers());
$host = "LOCALHOST";
$user = "root";
$password = "";
$dbname = "ajax";
// Data Source Name
$dsn = "mysql:host=".$host.";dbname=".$dbname;
// Create a PDO instance
... | 2e22ffeb5cb48e367eabfbd693ff7cbce9c25062 | [
"Markdown",
"PHP"
] | 2 | Markdown | IamArjay99/PHP-PDO | 7ca283d882f410293f9d3fa67f15b6d5a2d06d21 | fdc129668f76c4ef00f420102289e3956e58b7f1 |
refs/heads/master | <file_sep><?php
namespace Admin;
use BaseController, View;
class HomeController extends BaseController {
//protected $layout = 'admin.layouts.main';
public function dashboard() {
/*$this->layout->title = "Dashboard";
$this->layout->content = View::make('admin.dashboard');*/
return View::make('admin.dashboa... | ac77cd5a28c23954ee3ec5f7903f2cd16924fc03 | [
"Markdown",
"PHP"
] | 5 | PHP | shanzantrik/Laravel-Zantrik | aeb59983acfd83f128cc3f45abafa8b5269a114b | 4a4f563270b38ba3a85bfc35ebd8a4b8dd853358 |
refs/heads/master | <file_sep>/*
File: Generic.cpp
Author: <NAME>
Created on October 18, 2017, 2:14am
*/
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
/*
Makes a window in SDL2 for every and outputs either a 1 or 0 pertaining to the user either clicking ... | 0a9c818dd8140d06da46366c3b7bcbc443abde0e | [
"C++"
] | 2 | C++ | cynthia5610/BasicSDLProject | b2d7cf3d7559f0cfca54f84afc14d785ff15f996 | 23ececb89527eb20a3f7dbc7f2cdcfedf3e4b2f1 |
refs/heads/master | <repo_name>t-taira/rails5-docker-compose<file_sep>/README.md
# rails5-docker-compose
<file_sep>/script/web-start
#!/bin/bash
bundle exec rake assets:precompile
bundle check || bundle install
export SECRET_KEY_BASE=`bundle exec rake secret`
bundle exec puma -C config/puma.rb
<file_sep>/Dockerfile
FROM ruby:2.3.3-alpine
... | 50a4d94701f2b608898b04fdb07df591c6f2bce5 | [
"Markdown",
"Dockerfile",
"Shell"
] | 4 | Markdown | t-taira/rails5-docker-compose | 1d0b51782584807044b8bc6142882bf0acc8304c | 9040bcafed5a78afc1b090246a225941a8743282 |
refs/heads/master | <repo_name>washoe/pbscast<file_sep>/public/js/main.js
// main.js - client code
// (requires jQuery)
$(document).ready(function(){
$('#programlist a.getpodcast').click(function(event){
// request podcast xml doc from server using itpc protocol
var protocol = 'itpc';
//protocol = 'http';// for testing
var getp... | 73a92c4bddd8b98eabec86136c3022a51e178aa7 | [
"JavaScript"
] | 4 | JavaScript | washoe/pbscast | d4786850b1dd4a78e8d23173df56fbcce936e6a0 | 9e0ef509956476ca82b897fdbad55bcb98010616 |
refs/heads/master | <file_sep>import images from './gallery-items.js';
const refs = {
gallery: document.querySelector('.gallery'),
modal: document.querySelector('.js-lightbox'),
modalImage: document.querySelector('.lightbox__image'),
button: document.querySelector('button[data-action="close-lightbox"]'),
overlay: document.query... | b3d79a60153aa9e567126a65f98a8a051dae7fa6 | [
"JavaScript"
] | 1 | JavaScript | SolodkayaT/goit-js-hw-08-gallery | 2029a29b622850fa38d933d9414f145f1be4e678 | 3ff0b1dc2d03ce27f47198890a74b5c8fc5a4190 |
refs/heads/master | <repo_name>paulfer/ProyectosSwift<file_sep>/Minireto.playground/Pages/Untitled Page.xcplaygroundpage/Contents.swift
//: Playground - noun: a place where people can play
/* Generar un rango de 0 a 100, incluye el número 100 en el rango.
Iterar el rango completo, utilizando la sentencia for para obtener cada número del ... | 3ccebca01169a31eed0c1a8c5d130a9b9c8e5f2d | [
"Swift"
] | 1 | Swift | paulfer/ProyectosSwift | 31e34125c6d64ea9508bfebc7babb21ec23fc500 | bb655f484b835b555b50b9ff7aa28a82794bfcac |
refs/heads/master | <repo_name>sajibtariq/uva_solve_code<file_sep>/SMS Typing.c
#include<stdio.h>
#include<string.h>
int main()
{
char a[101];
int i,j,c,t;
scanf("%d",&t);
getchar();
for(i=1; i<=t; i++)
{
gets(a);
c=0;
for(j=0; j<strlen(a); j++)
{
if((a[j]=='... | c67a513df0a686e2df00253b843bbf529c22e0d5 | [
"Java",
"C",
"C++",
"Markdown"
] | 112 | C | sajibtariq/uva_solve_code | e2ff0a55967bac0add768842c7446df2f4f89812 | 02e436d1162d646c10dafeb10116864dea5f69c3 |
refs/heads/master | <file_sep>package com.accolite.kafka.producers;
import java.util.Properties;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.clients.producer.ProducerRecord;
public class MessageProducer {
static Properties clusterProps = new ... | e919d3b894df45d20a9a8da76765c58532ce3ff3 | [
"Java"
] | 2 | Java | jsaurav/kafka-client | 1d9bd98cc02bc1a330bb198518c8a65a10d33cdc | 48333496a59dd55e3808ccd5517d31b76866bb2e |
refs/heads/master | <repo_name>giovgiac/sonmap-matching<file_sep>/main.py
# main.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
from absl import logging
from datasets.matching_dataset import MatchingDataset
from loggers.logger import Logger
from model... | c201d4b1c9e01693d8df71ec9c8e353e95bc99e5 | [
"Markdown",
"Python"
] | 12 | Python | giovgiac/sonmap-matching | c974c157c8a9817789b8fe343a9115a4dbf88ab5 | 249964203dc9cdd48f335ac01ef7fe34df7fcbed |
refs/heads/master | <file_sep>/*
* Assignment 1: Callback Function
Complete the function below to show a delayed result in the console.
*/
function delayedResult(n1, n2, delayTime, callback) {
// your code here
const result = n1 + n2;
setTimeout(() => callback(result), delayTime);
}
delayedResult(4, 5, 3000, function(res... | bcebde8afedcd5757b5346e538ff65495a2c1ab0 | [
"JavaScript"
] | 5 | JavaScript | angela30916/remote-assignments | ea2815612b61889a712ece951cebcd80dffa55d8 | 1b7f697c6b8ce0d450f95733b79dba1387392f16 |
refs/heads/master | <file_sep># Sys.setenv(RENV_PATHS_CACHE = "~/.rpkgcache")
setwd("~")
library(tidyverse)
library(magrittr)
devtools::install_local("./webperf/", upgrade="never")
library(webperf)
# Change the following directory to switch to your results directory
setwd("results/")
# Change the vector of `www` and `dev` below to hav... | 59077e4c35419d3edb47cc0f39f99ebd133c6702 | [
"Ruby",
"Markdown",
"Makefile",
"Python",
"Text",
"TypeScript",
"R",
"Dockerfile",
"Shell"
] | 23 | R | iFixit/lighthouse-docker | 99e5548030b08507f363f80763fc0e09d4defa09 | c3cab7b1d51f24ed8b697aba0e6f4e238b378e6b |
refs/heads/master | <repo_name>kanavsethi19/hackathon<file_sep>/src/main/java/uk/co/vodafone/hackathon/service/ESIndexing.java
package uk.co.vodafone.hackathon.service;
import java.io.IOException;
import java.util.Map;
public interface ESIndexing {
public void loadDataToES();
public void checkDocumentAgainstQueries() throws IOExceptio... | 37f979ef8f28a3d95a7e2ab41e3bc28ae055e24c | [
"Java"
] | 3 | Java | kanavsethi19/hackathon | 6b27e53855c855f36e9cb0ce67d41cb61c86daa9 | 04420f674222b9bd4529f53c6ac42788bd28a58c |
refs/heads/master | <repo_name>codingfishman/anyproxy-package-demo<file_sep>/src/rule/rule.js
module.exports = {
summary: 'The rule to demo AnyProxy plugin',
getWebFiles() {
return [
'./web.js',
'./web.css'
]
},
*beforeDealHttpsRequest(requestDetail) {
return true;
},
*beforeSendRequest(requestDetail) ... | ccf19cc05dfcb0c81cf7570fd4fd83a10ec56920 | [
"JavaScript",
"Markdown"
] | 5 | JavaScript | codingfishman/anyproxy-package-demo | 0ef096a91fc858c81409c4d557cd615ff82e8193 | bf17e6aba83b73c7dc8236dcc94c1cfb4c7d9867 |
refs/heads/master | <file_sep>{
"name": "markdown-it-sanitizer",
"version": "0.4.3",
"description": "sanitizer for markdown-it.",
"keywords": [
"markdown-it-plugin",
"markdown-it",
"markdown",
"sanitizer"
],
"homepage": "https://github.com/svbergerem/markdown-it-sanitizer",
"repository": {
"type": "git",
... | 766f1eef73881656e23b7622c0b9711eb13e01a7 | [
"Markdown",
"JSON",
"JavaScript"
] | 5 | JSON | rebornix/markdown-it-sanitizer | 10d930d08236ef4609ad10a6087745461d91cc7c | 351d5098686c0dd2b9e611f572c254d1502c3497 |
refs/heads/master | <repo_name>StewartAtkins/node-event-hook<file_sep>/index.js
var EventEmitter = require('events').EventEmitter;
var self = {};
module.exports = exports = self;
/*
* EventShim provides a proxy object to intercept and process events emitted by an object
* Processors can be registered to modify the event arguments before... | a6bcc30c5e48a8705d4955a68b155bed97021d00 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | StewartAtkins/node-event-hook | 4395c8351c3a0745b7e6ba66b0ebe48ad0260069 | 0a305aa753f17f3d6eda476540cabb94406a1c80 |
refs/heads/main | <file_sep># employee_tracker
Employee Management System that uses node and MySQL
## Description
Track and change your employee data with this CLI.
## Links
https://github.com/penguinorange/employee_tracker
## Resources
node
inquirer
MySQL
## Credits
Y'all
<file_sep>const util = require("util");
const mysql = req... | 0f656a17016af868ffe56e306836625b193f82c0 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | penguinorange/employee_tracker | 59ff70874b2be3d083856fd9b1e45389ddb3a45f | 3a8f26cf86a857a791a76b74ab7db094feaf9cf2 |
refs/heads/master | <file_sep>public class Dollar extends Money{
Dollar(int amount, String currency){
super(amount, currency);
}
// Money times (int multiplier){
//
// return new Money(amount * multiplier, currency );
// }
String currency(){
return currency;
}
//todo Co z zaokrąglanie... | e5cec93755f4f9a257a0e755f53dcb13b1648bd8 | [
"Java"
] | 1 | Java | TomaszSidor/BeckTDD | 040446ec6c5095227767ebd58abc306d167b75e2 | 707841f89f603459d539a78f9d46c2594de1e30c |
refs/heads/master | <repo_name>syzygymsu/crawler-demo<file_sep>/simple_crawler.h
#ifndef SIMPLECRAWLER_H_
#define SIMPLECRAWLER_H_
#include <queue>
#include <set>
#include <string>
#include "repository.h"
#include "crawler_job.h"
#include "curl_easy_downloader.h"
#include "libxml2_parser.h"
// Простой краулер с очередью на загрузку, с... | fdb2d38d6e362c14dcef44fe6fe431ebad4bcc34 | [
"Markdown",
"C++"
] | 21 | C++ | syzygymsu/crawler-demo | ea9d6d26ac4b28994dd75a8fb7db686b1b12300f | 8c7254abf71450735ebadd7b2787f445c43033c0 |
refs/heads/master | <file_sep>//Wee, <NAME>. 201701042 WFQR
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define MAX 53
typedef struct node{ // node
char data;
int frequency;
struct node *left;
struct node *right;
int queued;
}Node;
Node* pQueue[MAX]; //make queue
int n;
int fifo = 0;
v... | 0d253f8df4f5881a675e2ca21cb45de6c27d8bb4 | [
"C"
] | 1 | C | Feinw/cs32mp2 | 354d87f7a03f196a0545df7ca34d5f23433af611 | a48fcff2936cfb22bb23a8378fcaede71430c48e |
refs/heads/master | <repo_name>SteveNashH/phpcs-pre-push-hook<file_sep>/src/pre-push
#!/bin/sh
PHPCS_BIN=vendor/bin/phpcs
PHPCS_CODING_STANDARD=PSR2
PHPCS_FILE_PATTERN=" ^app.*\.(php)$"
remote=$1
url=$2
while read local_ref local_sha remote_ref remote_sha
do
LOCAL_REF=$local_ref
done
branch=`echo $LOCAL_REF | awk -F '/' '{printf ... | d45fd135e98f4def6d5db8743ec8b728d70cd637 | [
"Markdown",
"PHP",
"Shell"
] | 4 | Shell | SteveNashH/phpcs-pre-push-hook | f66b4c594b8b892794542b4c8b9a1961c1d2d7dc | 67a1aab292d79665feaf05a6e52c6583e7291797 |
refs/heads/master | <file_sep># Recurrent Attention Model for Image Classification
---
## Description
Convolutional Neural Network is proved to be an effective mechanism to perform object-classification task. Yet, it imposes tremendous computational overhead while processing the image as it needs to read entire image to emit the predictio... | f465c32960c69be0be57a45732142cc7a8138556 | [
"Markdown",
"Python"
] | 8 | Markdown | rrrane/mnist-classification | 574af7617aaf5c662a261a3a9eaf0ba66eb4afca | 37fefc5310d7bceda4b587b4fbdefb9c6d07f7e4 |
refs/heads/master | <repo_name>pvdk276/Game_Rockman<file_sep>/Game_Rockman/Game_Rockman/Input.cpp
/*+===================================================================
File: Input.cpp
Summary: Định nghĩa các phương thức của CInput.
===================================================================+*/
#include "Input.h"
CInput... | f44b7e43cdaa23be8c8abaae3be9e2e01a6e0d5e | [
"C",
"C++"
] | 30 | C++ | pvdk276/Game_Rockman | ca05d222169cd4ea97eb94b588db929371ec338b | 9811e0d74efd742da0549d68c66c59f2fca83a7a |
refs/heads/master | <repo_name>aakylbekov/DNA<file_sep>/UnmanagedCode/Source.cpp
#pragma once
#include "Header.h"
#include<cmath>
LowLevel3DArithmetic::LowLevel3DArithmetic(double baseOx, double baseOy, double baseOz) {
_baseOx = baseOx;
_baseOy = baseOy;
_baseOz = baseOz;
_zeroOx = _zeroOy = _zeroOz = 0.0;
}
double LowLevel3DArithm... | 11ca7d09a82aa7a9982ff0a2d43813c32e78781f | [
"C#",
"C++"
] | 4 | C++ | aakylbekov/DNA | 73c6ae557848c0fede282fdf9745f42f5c0aceaa | f3a95f0c3494151e1aac89efe32b0566f743c50e |
refs/heads/master | <repo_name>mattboran/Watermarker<file_sep>/Watermark2/Watermarker.h
/*
Watermarker.h : Class definition and function declarations for the Watermarker class.
Methods are implemented in Watermarker.cpp
This header file contains the definition for the Watermarker class
*/
#pragma once
#include "stdafx.h";
//For work... | 3e865c05b3707978614b7c10d962c713d7f903f0 | [
"Text",
"C++"
] | 5 | C++ | mattboran/Watermarker | 9a270dc5ff61068692147103e974b0f9a4b8b139 | 1102ef1b73a577d6ff220593c05afecb30a13e70 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.