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>from django.shortcuts import redirect
def redirect_root_view(request):
return redirect('courseinfo_registration_list_urlpattern') | 2534de76678aff645eefe3bedaea21c863768b72 | [
"Python"
] | 1 | Python | MengfeiLan/is439 | 7efaeb0b92266ab486f81726a5ae1f1abdb5b7d9 | 3da08ed8185c56d30d6653eaf289d7c2bfca97df |
refs/heads/master | <repo_name>pbasiak/flashcards-strapi<file_sep>/extensions/users-permissions/config/jwt.js
module.exports = {
jwtSecret: process.env.JWT_SECRET || '<KEY>'
};<file_sep>/README.md
# Strapi application
## to run
```
npx strapi develop
```
## Read only
```
yarn develop
```
| bc4d92669883f2d4fbb6a3ab2629079a9a7d4881 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | pbasiak/flashcards-strapi | cc69b597fc47aa4985da0269233ff65a66e044f0 | 6e49ae45bad7cda26684a1f5f76722627a1848b8 |
refs/heads/master | <file_sep>var PassThrough = require('stream').PassThrough,
pygmentize = require('pygmentize-bundled'),
util = require('util'),
fs = require('fs'),
es = require('event-stream'),
marked = require('marked');
//
// ### @function MarkStream
// #### @path {String} Path to file you want to read
// #### @o... | 246400b3eef5a5db289407f8e8479c464e329db5 | [
"JavaScript",
"Markdown"
] | 4 | JavaScript | davidmarkclements/mark-stream | 6f875e52d668d894c298ea3ecb8c7dc46a63a6fb | de66f7325d0a124fb0a0f8283dc9ebda481e68b8 |
refs/heads/master | <repo_name>jlgerber/packwrap<file_sep>/manifest_test.go
package packwrap
import (
"fmt"
"github.com/stretchr/testify/assert"
"os"
"reflect"
"testing"
)
// setup = create a fake houdini manifest
func setup(m *testing.M, manifestPath string, manifestName string, contents []byte) string {
manifest := manifestPath... | e35b3e8c35d3bb265cfa49b04e040c965da0b94d | [
"Markdown",
"Go"
] | 22 | Go | jlgerber/packwrap | 2d2989baa7a9a9a23045c62a1cf6d3cb403e787a | 138f3f694adf749a83819d353d4712b0fb69d6c4 |
refs/heads/master | <file_sep># Generated by Django 2.0.2 on 2020-03-01 12:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
]
<file_sep>from django.forms import model_to_dict
from django.shortcuts import render
from .models import *
from django.http.response ... | 686758fc6ce046fd8d2c39cf3632a5b1bc7ea493 | [
"Markdown",
"Python"
] | 4 | Python | kuxigua/WeBlog | c196e5e1e0a7ba5273c5f3000316eba20c28c6ec | b5065c942f7e425ca61ec7cbf58469954ca425e5 |
refs/heads/master | <file_sep>using Microsoft.VisualStudio.TestTools.UnitTesting;
using BilletStorebelt;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BilletStorebelt.Tests
{
[TestClass()]
public class MCØresundTests
{
[TestMethod()]
... | c6c736b250dcd2ce45cafd3263c4dd507993be35 | [
"C#"
] | 9 | C# | EASJ2017E/BilletSystem-kenn3973 | 2b99e3ec420f983668dc853fc41778930cad635d | 13d454d777f35a9a66f85d74016243d57b92fdf5 |
refs/heads/master | <repo_name>n1net4il/add-nbo<file_sep>/util.h
#pragma once
void read_from_file(char *filename, void *buf, size_t count);
<file_sep>/Makefile
SHELL := /bin/bash
all: add-nbo
add-nbo: main.o util.o
g++ -o add-nbo main.o util.o
main.o: util.h main.cpp
util.o: util.h util.cpp
test:
echo -n -e \\x00\\x00\\x03\\xe8 > ... | 3cbb7e5252e2f82f08e48ac607f5d3ea34f5f840 | [
"Markdown",
"C",
"Makefile",
"C++"
] | 5 | C | n1net4il/add-nbo | 6411da46a3368f1489a03e7b191ea28341b23448 | 9deab2f221378774b8eaa337321cc2c088aeee8f |
refs/heads/master | <repo_name>mike131/reading-list<file_sep>/src/components/Navigation/Navigation.test.js
/**
* Created by mlee on 11/10/16.
*/
| 1c7b218a7a2eae0a4cbeb45e14a526e3c3f07782 | [
"JavaScript"
] | 1 | JavaScript | mike131/reading-list | 30696c96e15fe775e4132608c9a6b19f6717dbfb | 99deedb96a512abf95d21dd4080d4a1beb232df4 |
refs/heads/master | <file_sep>
_command()
{
local _args="$@" _count _pattern=' -- ' _tmp
_tmp="${_args//$_pattern}"
# check for duplicate ' -- ' and remove the latter
_count=$(((${#_args} - ${#_tmp}) / ${#_pattern}))
if (( $_count > 1 )); then
_args="${_args%${_pattern}*}"' '"${_args##*${_pattern}}"
fi
if [[ ${_args[@]} ... | 3dc783c0ecada592228c70837a227c025b9518e6 | [
"Markdown",
"Python",
"Text",
"Shell"
] | 21 | Shell | sgwhat/models | 254b21ad5b77189ef861804c923163acc9909f19 | 57d1813602f1a21f9aeddccdfb3d2cd03feb3f5a |
refs/heads/master | <file_sep># this class is linked to the assemblies table
class Assembly < ApplicationRecord
has_and_belongs_to_many :parts
end
<file_sep># this class is linked to the parts table
class Part < ApplicationRecord
has_and_belongs_to_many :assemblies
end
<file_sep>require 'faker'
Assembly.destroy_all
Part.destroy_all
... | 3a562dacbb29d2272e091934b9150196e4d0b187 | [
"Ruby"
] | 3 | Ruby | Bapuch/BDD_Usine | b0a1c25916cab3ae87e434770537bd9deafa9080 | dc1f7d936bc037808a772c979678e58d413f5609 |
refs/heads/master | <repo_name>levelasquez/next-js-movie-app<file_sep>/pages/movies/[id]/edit.js
import { useRouter } from 'next/router'
import MovieCreateForm from '../../../components/movieCreateForm'
import { getMovieById, updateMovie } from '../../../actions'
const EditMovie = ({ movie }) => {
const router = useRouter()
const ha... | 72e890db094101c2099a2d85b45b2b50a9d1c838 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | levelasquez/next-js-movie-app | 8a1a427f07f840bfb246933718b22273b8704b8e | a2eb4c3abe9b12ac4741eca167b154e6f6b08740 |
refs/heads/master | <repo_name>alexpac26/helloworld<file_sep>/README.md
## PHP Hello world package
PHP composer example PSR-4 package
PHP пример пакета PSR-4
документация по подключению пакетов из github [php-standart.md](php-standart.md)
<file_sep>/test/SayHelloTest.php
<?php
require '../vendor/autoload.php';
use Alexpac26\He... | 0172db4b41b45156bff7a9a9be813bbb62d0bc77 | [
"Markdown",
"PHP"
] | 3 | Markdown | alexpac26/helloworld | e6c2d24b818a4c75dbf59c6040fe56abd69c5759 | ebd28d005338b664cb83cf44fd9d542a592512ec |
refs/heads/master | <repo_name>MeirDosm/lessonrecursion<file_sep>/ConsoleApplication9/Source.cpp
#include <stdio.h>
#include <iostream>
using namespace std;
int f(int i, int n)
{
int sum = i;
if (i <= n) {
i++;
sum += f(i, n);
}
cout << i << "-" << sum << endl;
return sum;
}
int sumE1(int *mas, int i, int len)
{
int sum = mas[... | b150fc66b6001c0086416a93d4a62541cda863c4 | [
"C++"
] | 1 | C++ | MeirDosm/lessonrecursion | 731403663447d771accd622d11309a8ca3016ac3 | 9ddfc35c803a4667e898ece152baacacbf2ea445 |
refs/heads/master | <repo_name>nerzhul250/Marathons<file_sep>/cppProblems/SkyCode.cpp
#include <bits/stdc++.h>
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define fore(i,low,n) for(int i=low;i<n;i++)
#define cp(x) (flag[x>>6]&(1<<((x>>1)&31)))
#define sp(x) (flag[x>>6]|=(1<<((x>>1)&31)))
using namespace ... | 444421ff992d4cb220d289d9c211145961c640f1 | [
"Java",
"Python",
"C++"
] | 562 | C++ | nerzhul250/Marathons | 6074d5b1ac48e1199f619e8be43d89387db30a41 | c93e4fb8be7e73e0e4c5b0a534442c0f0b07e900 |
refs/heads/master | <file_sep><?php
namespace App\Api\Controllers;
use App\Http\Controllers\Controller;
use Dingo\Api\Routing\Helpers;
use Illuminate\Http\Request;
class BaseController extends Controller
{
use Helpers;
protected $response_data = [
'success'=> true,
'error_code' => 0,
'data' => [],
... | 9a4879d7925126a795ead192453e93aaaa6ad73c | [
"PHP"
] | 1 | PHP | vierhang/api2 | df32c2e169a703dce7b62991b279c144794ee085 | 183621c23c88d0886b647a3dbe3db6cf97b9c450 |
refs/heads/master | <repo_name>pigtamer/UAV_2017<file_sep>/GUI/HOG/HOG/GeneratedFiles/ui_HOG.h
/********************************************************************************
** Form generated from reading UI file 'HOG.ui'
**
** Created by: Qt User Interface Compiler version 5.10.0
**
** WARNING! All changes made in this file will be lo... | 06916602986b4e632ca46e2a36c87414be1d41e1 | [
"Markdown",
"Python",
"C++",
"Shell"
] | 17 | C++ | pigtamer/UAV_2017 | 68006954e8911da81caedeb5aaab4cefd96e4b88 | 75413241ebb076511bb063b618aa2d5aedaeed8d |
refs/heads/main | <file_sep>#pragma once
#include <iostream>
class Settings {
private:
float color = 0, speed = 0.1, brightness = 1;
public:
Settings() {}
float getColor() { return color; }
void setColor(float color) { this->color = color; }
float getSpeed() { return speed; }
void setSpeed(float speed) { this->speed = speed; }... | 43c05a33e7fd77cc63146a2539c563f38490b349 | [
"C",
"C++"
] | 29 | C++ | MalcevStepan/Snake | ec0d6eb154c288130c4b9855ed264015c700a68c | 73a209c06ace530cf2d88cbba82df8c1cf152cef |
refs/heads/master | <file_sep>using UnityEngine;
using System.Collections;
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class DrawPlayerShadowMesh : MonoBehaviour {
public Texture2D playerShadowMesh;
public Vector3 _playerPos;
public Quaternion _playerAngle;
public GameObject player;
public Mesh mesh;
void Star... | 3f93293d9023aa3f04eebdac26e7dcb79814af60 | [
"C#"
] | 3 | C# | johnetc/Stealthshot-offline | 8cf816d1e7a846558fdfb2207e4149932fde75e9 | 073e2b40e42935b4da78718ff9157d011c2e0f58 |
refs/heads/master | <repo_name>jasnell/nodesummit2018<file_sep>/observing/server.js
'use strict';
const { stat } = require('fs')
const http2 = require('http2')
const path = require('path')
const pino = require('pino')()
const { ephemeral } = require('tls-keygen')
async function init() {
const options = await ephemeral({
commonName... | e11b084f61342d147e292d0ee6e4da73bce8cb19 | [
"JavaScript",
"HTML",
"Markdown"
] | 6 | JavaScript | jasnell/nodesummit2018 | ac2fce20958a69394de057c6d61ca1205a06a868 | 8634ea37bc453f890de5c034358cd6ea88861d1c |
refs/heads/main | <repo_name>ChristianNoelSchmid/PDX-CS510-RustProgramming-CourseProject<file_sep>/Dungeon Crawler/Assets/Scripts/Networking/NetworkEvents/RequestMove.cs
using System;
using UnityEngine;
using DungeonCrawler.Models;
namespace DungeonCrawler.Networking.NetworkEvents
{
/// <summary>
/// NetworkEvent representing... | a478a863c51fb3f565423803f4fe669f33159615 | [
"TOML",
"C#",
"Markdown",
"Rust"
] | 95 | C# | ChristianNoelSchmid/PDX-CS510-RustProgramming-CourseProject | abe210ab987d4559c984b8f34b6d2fc7ed5199e7 | 1dee359fc14273d94d9b46e1405296ddc0740e01 |
refs/heads/master | <repo_name>alxrod/PythonIsland<file_sep>/arrow.py
import pygame
from pygame import *
import datetime
from threading import Timer
from basic_set_up import *
class Entity(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__init__(self)
class Arrow(Entity):
def __init__(self, x, y, player):
Entity.__... | 7993a9c6cc41a75f155bce798d2dd9d553a05998 | [
"Python"
] | 11 | Python | alxrod/PythonIsland | 01647832248a48f36c0022ee03a7c2b3de101762 | 3dea8c2be58d2e37e9dd4c858e252b3444ad8a32 |
refs/heads/master | <file_sep>let someArr = [1,4,3,5,7,2,6]
function sorting(array){
return array.sort((a,b) => b-a)
}
console.log(sorting(someArr))<file_sep>function plus() {
document.getElementById('divf').innerHTML += '<br><input type=text placeholder="Телефон N" style="margin-top: 5px;"> <button id=butt onclick=add()>+</butt... | 74b700e79ead67820a432290d064d3a72f419f27 | [
"JavaScript"
] | 2 | JavaScript | viktorvinitski/Testing-task | 62f42beb0d57ba3f5555de8169023743c5cc89c3 | 2d6e9957c7dea06194e492319240a988b980b061 |
refs/heads/master | <file_sep>using BenchmarkDotNet.Attributes;
using Kronos.Client;
using Kronos.Core.Configuration;
namespace Benchmark.Config
{
[Config(typeof(CustomConfig))]
public abstract class BaseBenchmark
{
private const string KronosConnection = "127.0.0.1";
protected IKronosClient KronosClient { g... | c1094c0b381058e76011822b09edf195c740a1a3 | [
"Markdown",
"C#",
"Dockerfile",
"Shell"
] | 71 | C# | lukasz-pyrzyk/Kronos | 4189f340f6e570d4292e386eee65790f3e5105d8 | cd66d5bdc44e52aba3a50bfdcc51a94387a5bbde |
refs/heads/master | <repo_name>HangGao/TaxWordNet<file_sep>/train.py
import os
import time
import torch
import argparse
from bow import *
from data import *
import numpy as np
import torch.optim as optim
from collections import defaultdict
from sklearn.metrics import precision_recall_fscore_support
def parse_args():
parser = argpars... | d3b354b12ebb93c7341118ca4fc9aba37c91b9b4 | [
"Python",
"Shell"
] | 5 | Python | HangGao/TaxWordNet | ef2fc4a06e4bb234381c6eafc55d51d29f309ea8 | 48e6ba04bf6c2afb78068824f0852a6b56ae2eea |
refs/heads/master | <repo_name>vigneshios/Networking-WithCodableProtocols<file_sep>/CoderFriends/DataSources/FriendsDataSource.swift
//
// FriendsDataSource.swift
// CoderFriends
//
// Created by Apple on 03/02/19.
// Copyright © 2019 Vignesh. All rights reserved.
//
import Foundation
import UIKit
class FriendsDataSource: NSObject, ... | 3d0b5617d0bc27aec1c861e5b6cb928985f8ea21 | [
"Swift",
"Markdown"
] | 2 | Swift | vigneshios/Networking-WithCodableProtocols | c3a7ea6651de24a7d432a5427e335702564e35ed | 2ef40ae3d8fb7ab50a161544b3afa3b31c6bd5a0 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ProjectApp
{
public partial class Form1 : Form
{
public Form1()
... | 7d2fee32975eb5bdbf734089a15cc8e279240268 | [
"C#"
] | 2 | C# | awotarka/https-github.com-awotarka-Progects_C- | a9052c590cca7a3e56c3e2baad0196a6ad0d67a1 | 78195fab045492896573fb504a02e7e0de831f9e |
refs/heads/master | <file_sep>package org.sikuli.script;
import net.sourceforge.tess4j.Word;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Range;
import org.opencv.core.Scalar;
import org.sikuli.basics.Debug;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Fin... | 0144030fd822ff06d875e4ac2b1201c2cc04c77d | [
"Java",
"Shell",
"INI"
] | 7 | Java | xiaolongWangDev/SikuliX1 | cad35cdc580ca12762f2410f279e06366c9e7cc2 | 56ecffe16f41aad888541328080210f2cb18474d |
refs/heads/master | <repo_name>kapiliet/msdjmusics<file_sep>/msdj/musics/views.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from dj... | d3fe2a1a6c1c11c9ecf5e13cfc879685354c9fd6 | [
"Python"
] | 2 | Python | kapiliet/msdjmusics | 606a169a2aabb9f9ab648b2615aaeaf826d5c6ca | 9e9b964c682bd2c3806baae8bb83b3dc81ceb06f |
refs/heads/master | <file_sep>module SUJ
module KanaValidator
VERSION = "0.0.1"
end
end
<file_sep>class User < ActiveRecord::Base
validates_is_kanji :name_kana
validates_is_hiragana :name_hiragana
validates_is_katakana :name_halfkana
end
<file_sep># Custom ActiveRecord::Base validation module.
#
# Author: <NAME> (<EMAIL>)
#
... | 2ee289077ab81e95044cd4fc68a87e49529f7c7d | [
"RDoc",
"Ruby"
] | 8 | Ruby | sujrd/suj-kana-validator | 97e161c0b96060e791113d28b3e06536e4f3fd22 | 69e7988235025a68e2600800e174951e0f290946 |
refs/heads/master | <file_sep>Array.prototype.get = function(name) {
for (var i=0, len=this.length; i<len; i++) {
if (typeof this[i] != "object") continue;
if (this[i].title === name) return this[i].images;
}
};
var phonecatControllers = angular.module('pornControllers', []);
phonecatControllers
.controller('por... | f2b13b04c9169eb0fad2ab199fda8203586fa0f5 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | lengshuiyulangcn/red_porn_api | 7c86e12a09c62748b5e546f72482bc891680dcef | e7add2e8a75237d5a8f89e66dd7268f4caee51b8 |
refs/heads/master | <file_sep>package com.obse.military.course.service;
import com.obse.military.course.models.Product;
import com.obse.military.course.models.Report;
import com.obse.military.course.models.interfaces.ProductStorageI;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.... | 26387245ca393f218ee4b06a6b60ca3c548e6d2c | [
"Java"
] | 5 | Java | gh-infosecurity/obse | 3bf2469321cad8c77d607edb6720ba0238829edd | 8e1a02cf9c4c06db1adcc73e187a40f65058570b |
refs/heads/master | <repo_name>dvillanet/Leaflet-Ex1-Ex2<file_sep>/main.js
var mymap = L.map('mapid').setView([41.3870154, 2.1700471], 15);
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contri... | 23829e7747600caab397dfd37fc09346607eaf44 | [
"JavaScript"
] | 1 | JavaScript | dvillanet/Leaflet-Ex1-Ex2 | c4f7b2a750140f866b81493c19485db80307d657 | d643c6dc251b7443dc6412c78888194373e28eb1 |
refs/heads/master | <file_sep><?php
/**
* Created by PhpStorm.
* User: TemperanceXIV
* Date: 2019/2/25
* Time: 20:48
*/
session_start();
if (!isset($_SESSION['id'])) {
header("location:../login.php");
}<file_sep><?php
/**
* Created by PhpStorm.
* User: TemperanceXIV
* Date: 2019/3/3
* Time: 10:24
*/
require_once("../connect/... | 9e22df102ab5c92d72aa8f6e23c0612968638107 | [
"JavaScript",
"SQL",
"PHP"
] | 66 | PHP | litong450937822/softwareEngineering | 473b614b11cedddd6430650902b7ee011134645b | 0333ab743ca3fdd54460a34d2e74d3ccb8d5e4eb |
refs/heads/master | <file_sep>package de.akra.GitGoblin.controller;
import de.akra.GitGoblin.repository.StarRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import... | 367bc28be21b996cfc3e80907647e67c83506e76 | [
"Java"
] | 4 | Java | AsgharRaz/GitGoblin | 2347780775b9bf1f248b3863ab33e40bb7d92637 | b078ee6b18e8c1e236ebab14936fe731e3965457 |
refs/heads/master | <file_sep>package com.yuxiao.aigou.common.exception;
import com.yuxiao.aigou.common.entry.Result;
import com.yuxiao.aigou.common.entry.StatusCode;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annota... | 5a02253b9a7595176082673090367d4cda69d14c | [
"Java"
] | 10 | Java | Unbending-zyx/aigou | a14e99950a8579aa02d6e0bd329e9a4dc3cf474a | 7e42c008a5f9aee5e3b316afcbe2a0d60ed5313a |
refs/heads/master | <repo_name>kulovecc/cow-boot<file_sep>/README.md
# cow-boot - 开机启动/自动配置代理
#### 起因
因为每次开机都要打开cow.exe,觉得太麻烦,于是就有了这款小程序...
#### 使用说明
将cow-boot.exe放在cow.exe所在目录,启动即可。
#### 其他说明
很久没写C#,所以参考了shadowsocks-windows部分代码,在此感谢~<file_sep>/CowConfig/Util/App.cs
using System;
using System.Collections.Generic;
using System.Dia... | 30f6f6199d18dbfecd8b5a6bb291aef4456a1214 | [
"Markdown",
"C#"
] | 3 | Markdown | kulovecc/cow-boot | 246954030002e3c65d699e47e498db893bb95556 | ac88abb8b939638a5f40567b61daef5593ee3b29 |
refs/heads/master | <repo_name>marcparis/SalesforceConnect<file_sep>/src/main/java/com/codescience/salesforceconnect/data/Storage.java
package com.codescience.salesforceconnect.data;
import org.apache.olingo.commons.api.data.Entity;
import org.apache.olingo.commons.api.data.EntityCollection;
import org.apache.olingo.commons.api.edm.EdmEn... | 0181543fe0fb8b95a6762eb186304ff86234f4c4 | [
"Java",
"Maven POM"
] | 8 | Java | marcparis/SalesforceConnect | f4ea8c8bdfdee66e288c6f1d52124e06319d85c8 | 40368f738d199692ca0be736c9e7f1be313a2405 |
refs/heads/master | <file_sep>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace m3uCopy {
class Playlist : Queue<string[]> {
private string playlist;
private string destination;
public Playlist(string playlist, stri... | bc92428734c1ab3a36c8b4b9b9a541001c77905a | [
"Markdown",
"C#"
] | 3 | C# | draakon/m3uCopy | fc1a30bb2d011f4e5532c3cf29843e98e8ca1ac3 | 10b401e40144c3373542a29cb193c96e7a766be1 |
refs/heads/master | <repo_name>LOGEAIS/CTL-Model-Checking<file_sep>/Implémentation/node.cpp
#include "node.hpp"
#include <iostream>
#include <string>
#include <vector>
//Correspond a l'ID du noeud, incremente a chaque creation de noeud
int N_NODE;
/*
*Constructeur de la classe Node. Lors de la creation d'un noeud, celui-ci doit... | ca055c11d2c20d7c81bf91d2676d77d6a176474f | [
"Markdown",
"Makefile",
"C++"
] | 9 | C++ | LOGEAIS/CTL-Model-Checking | c9fa3abff91f4ba95b551ea753fdaaa359e1105d | 21a344aee8a60f38d8bda182a14ee8c680d70fa7 |
refs/heads/master | <file_sep>echo "----------------------------------------"
echo "----------DEP LIBRARY-------------------"
echo "----------------------------------------"
sudo apt-get install -y menhir ocaml pkg-config ocaml-native-compilers ocaml-findlib libmenhir-ocaml-dev libparmap-ocaml-dev libparmap-ocaml id-utils libpcre-ocaml-d... | e47d4ea6805f60200669944889b32dd219bf73dc | [
"C",
"Makefile",
"Shell"
] | 4 | Shell | alarreine/apd2 | a6b70395d5c8d62db964dc97db1893df8d691758 | a71fea22ee910de76654706d6135016c5b661369 |
refs/heads/main | <repo_name>vedant14/first-slack-bot<file_sep>/app/controllers/api_controller.rb
class ApiController < ApplicationController
before_action :set_default_format
private
def set_default_format
request.format = :json
end
end<file_sep>/db/migrate/20210423163301_add_single_line.rb
class AddSingleLine < ActiveRecord:... | 9aca5bf93421c8bea6884330f831f395f5b18fe0 | [
"Markdown",
"Ruby"
] | 93 | Ruby | vedant14/first-slack-bot | f6b87f51693a18361b4ea1c32b1a1e5da48d2b77 | 8c3227f1585c17fbad76b05890e8dc5855d7ac19 |
refs/heads/master | <repo_name>king3224/hnt-master_nj6dpf<file_sep>/app/src/main/java/com/shtoone/njshtw/bean/WaterStablityOverprofData.java
package com.shtoone.njshtw.bean;
import java.io.Serializable;
import java.util.List;
/**
* Created by Administrator on 2019/5/13.
*/
public class WaterStablityOverprofData {
/**
* fie... | 0b27e3b88746247e82a007a6583e96df6249ad2c | [
"Java"
] | 2 | Java | king3224/hnt-master_nj6dpf | 95bfe1f629171feb7dacd13c035ed21cb53d5932 | c67f5f5d442e07ff6c31d14802abe5b095a2112f |
refs/heads/master | <file_sep>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package maskcopier;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.ni... | cc86e05368b924025fc4e826fa75249ac35c4ff4 | [
"Java"
] | 1 | Java | Jaked222/FileCopier | d6fa6d66a49f89991378f46434194546096aa0fe | cb280bdf22677e129b0333a12111648d14bace2b |
refs/heads/main | <file_sep>suppressPackageStartupMessages(library(dplyr))
suppressPackageStartupMessages(library(glue))
suppressPackageStartupMessages(library(lubridate))
suppressPackageStartupMessages(library(readr))
task_list <- read_csv("task_list.csv", show_col_types = FALSE)
sorted_task_list <-
task_list |>
mutate(
... | a0a010942f78ed3669f37602ee0ffd1779768c12 | [
"R"
] | 1 | R | pwildenhain/tasks | 1f14bb982ca48443e13d0ba8dedb607b1d98c781 | e4f4a8f417c1f18a9618f13f0c3d23867d02c29f |
refs/heads/master | <file_sep>JavaU
=====
simple java programs to explore java features
Testing changes
End of file<file_sep>package com.tut.collection;
import java.util.Collections;
import java.util.Vector;
public class CollectionTest {
public static void getMaxMinElement() {
Vector v = new Vector();
v.add(new Double... | e2d63e4feb3473499199ddef7d6144f00fc0503a | [
"Markdown",
"Java"
] | 5 | Markdown | rameshnp2002/JavaU | c671ecc10d7d8496b9ccfbedce442ea0376d41e8 | 557dc33e450134e1dc228d17f4bb26735eca7783 |
refs/heads/master | <repo_name>LegendForAll/Castilevania_v1<file_sep>/gamedev-intro-tutorials-master/gamedev-intro-tutorials-master/04-Collision/Mario.cpp
#include <algorithm>
#include "debug.h"
#include "Mario.h"
#include "Game.h"
#include "Goomba.h"
#define ID_TEX_MARIO 0
void CMario::LoadAnimation()
{
//Load animation SIMON
//Load... | 924bcdc1764359962734b13b1947315f41616c87 | [
"C++"
] | 1 | C++ | LegendForAll/Castilevania_v1 | 2e39de5cbae5dc15b07551623f1dafee5670960c | bfaf5747b8565cf67861df5b4145c60b4ae09042 |
refs/heads/master | <repo_name>NeRo8/phone-input<file_sep>/phone-input/InputPhoneWithMask/styles.js
import { StyleSheet } from "react-native";
export default StyleSheet.create({
containerStyle: {},
inputContainerStyle: {
flexDirection: "row",
alignItems: "center",
borderWidth: 1,
borderColor: "silver",
height: 40,... | 4dfe987845a169d38aa9d270675f240599171e8c | [
"JavaScript",
"TypeScript",
"Markdown"
] | 4 | JavaScript | NeRo8/phone-input | b53a86d9f53240e30e68da2891f8be6301833cb4 | 2fd082e3152c6237419ced149daf3f23f3b6eb41 |
refs/heads/main | <file_sep>import { Command, git } from "../deps.ts";
export default new Command()
.description("doctor")
.action(async () => {
const checks: string[] = await Promise.all([
check(
"git config --global user.useConfigOnly true",
async () => {
const { stdout } = await git.run([
... | 01e2167f565b47337f308c819f7d8e707c6052ea | [
"Markdown",
"TypeScript"
] | 12 | TypeScript | ayakovlenko/git-identity | 7bacaba349b566d10fe58dc811e8b9c8df00820c | ecaafad727c7a22c229ceab06490a0c74a026fe3 |
refs/heads/master | <repo_name>ChristopherBHall/FantasyArkFull<file_sep>/Assets/Scripts/Inventory/Inventory.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityStandardAssets.Characters.FirstPerson;
using UnityEngine.Networking;
public class Inventory : NetworkBehaviour {
... | 9c9668925ece832095075df4dfc8f39d5727c35d | [
"C#"
] | 17 | C# | ChristopherBHall/FantasyArkFull | 2df6c222d8cf6ae7a395ff1dc00ab9f3885afb5c | d9cc4489f28b12d8ac65726dc757112cd2c78701 |
refs/heads/master | <file_sep><?php
namespace iAvatar777\services\EllipticCurve;
class Ecdsa
{
public static function sign($message, $privateKey)
{
$signature = null;
openssl_sign($message, $signature, $privateKey->openSslPrivateKey, OPENSSL_ALGO_SHA256);
return new Signature($signature);
}
/*... | eab8e0dae4f07a9876a5e158a5ca69b59c67785d | [
"Markdown",
"PHP"
] | 3 | PHP | i-avatar777/service-ecdsa | b7b30d00ba84a7d6f9224e27e66510b4474dbeb3 | 93470e04cb2a5bad1b45f3b74bb470eb087fdab9 |
refs/heads/master | <repo_name>wbsguo/MyProject<file_sep>/app/src/main/java/com/example/myproject/BaseActivity.java
package com.example.myproject;
import android.support.v4.app.FragmentActivity;
import com.example.myproject.utils.ActivitysUtils;
/**
* Created by wangbs on 16/5/12.
*/
public class BaseActivity extends FragmentActivity... | 53290802580d34fdd4ead5ffc83770887ae1a000 | [
"Java"
] | 7 | Java | wbsguo/MyProject | 3db4175c3117733af1c155406fb84590f5a9cb04 | b1bec1f365ee6615b39aecb55258f9794e04a215 |
refs/heads/master | <repo_name>philbertphotos/ZenTwitterFeed<file_sep>/README.md
ZenTwitterFeed
==============
Zenphoto Plugin that displays a tweeter feed.
A simple Twitter feed that outputs your latest tweets in HTML into any
template. Customisable and easy to install!
Place this code some where in your template where you want the t... | 6761307c194219653779fdef369abd90ac3a0b77 | [
"Markdown",
"PHP"
] | 2 | Markdown | philbertphotos/ZenTwitterFeed | 9abff334b996853aa6ae8ed6e8adc25d83a180c3 | 88b78908db119aea49c7a94bc771a16bf858a02d |
refs/heads/master | <file_sep># VDS, deploy, domen, SSL, git
### Kerakli unsurlar
1. nodejs
2. psql
3. sublime
4. sublimemerge
5. git
6. pm2
### NodeJs ni o'rnatish
1. NodeJs ning yangiroq versiyasini o'rnatish uchun PPA (personal package archive) dan foydalanamiz:
```bash
cd ~
curl -sL https://deb.nodesource.com/setup_14... | 55f1c1e2fcf8402e086e03367f0f9fdd4e6591d9 | [
"Markdown",
"JavaScript"
] | 4 | Markdown | akbarjondev/f3-test | eed35c75f7243ac89248424aac4c93514186cb80 | 519389c2b6fd273b88495ae4452d1dba15628c4c |
refs/heads/master | <repo_name>yigiterinc/e-ciftci<file_sep>/src/Main.java
import java.sql.SQLException;
import java.util.Scanner;
// <NAME>, <NAME>
public class Main {
private static final String IP = "172.16.17.32";
private static final int MysqlPort = 3306;
private static final String databaseName = "eciftci";
public... | 85deb73b68172c5246d6baece54c8294340e236f | [
"Markdown",
"Java"
] | 2 | Java | yigiterinc/e-ciftci | 6fa6b531ff350a28078299e2b5f6b0158c99b52f | 1ba8ebeaa99d8d8201258ba64565ac7c71f5c8fb |
refs/heads/master | <repo_name>wardymate/Faast-challenge<file_sep>/spec/coach_spec.rb
require 'coach'
describe Coach do
let(:coach) {Coach.new}
let(:fred) {double :passenger}
it 'should accept a passenger' do
end
end<file_sep>/lib/passenger_holder.rb
module PassengerHolder
DEFAULT_CAPACITY = 40
def passengers
@passengers ... | c26df835ece0b8d9905f9fb80f95593b7650cd4f | [
"Ruby"
] | 5 | Ruby | wardymate/Faast-challenge | 79931ea684c3a23c5c1f51d45bc3efc280f807dd | c1550381aea36d18dc82d623510924b6527139ff |
refs/heads/master | <file_sep> <NAME> A01171623 <EMAIL>
<NAME> A01059190 <EMAIL>
SPA : React.js
Client Side URL : https://santawithlist.z22.web.core.windows.net/
Server Side URL : https://santanaghtylist.azurewebsites.net
Major challenges:
(server side) setting role base Authorized attribute in web api functions in controllers ... | 4cfdc68d3542365917aac508de85b4c2df6a08b9 | [
"C#",
"Text"
] | 7 | Text | EllieBastani/Santa-Helper-API | 255a1b596e7ac1bd83d50312b13e96c639668c15 | 31f676e38260ebe8a8bb1bd169ced31e05115440 |
refs/heads/master | <repo_name>quadrotor-IITKgp/onboardScripts<file_sep>/WebServer/vehicle_state_publisher.py
from dronekit import connect
import time
import argparse
import json
parser = argparse.ArgumentParser(description='Commands vehicle using vehicle.simple_goto.')
parser.add_argument('--connect',
help="Vehicle c... | 01cf740b3d41e21376cf85a9158decb80342c1d5 | [
"Markdown",
"Python",
"C++",
"Shell"
] | 16 | Python | quadrotor-IITKgp/onboardScripts | a4ea1c670bcfa68a64c38d40925c6d08ef2d6844 | 95b9fd27dffdfea38e84e6119f66a45c045bb4ed |
refs/heads/master | <repo_name>mhathiyari/RRT_in_cpp<file_sep>/dynamics.cpp
#include"dynamics.hpp"
// #include "planner.hpp"
Node Dynamics::new_state(Node q_old, double input, double time){
// RK4
double dt = 0.01;
Matrix<double,5,1> state,k1,k2,k3,k4;
state(0,0) = q_old.x;
state(1,0) = q_old.y;
state(2,0) = q_old.th... | 46807729603c2d9c8fcdebb0e9e4d440ec61ed48 | [
"Markdown",
"C++"
] | 6 | C++ | mhathiyari/RRT_in_cpp | 76ab2a71739509d28b87ac37847b0dad649cff37 | c87360e043b68d51d09b6ea6e1fea09b6cce890d |
refs/heads/master | <file_sep>package future.demo1;
public class TestMain {
public static void main(String[] args) {
//客户端发送请求取获取数据
Data data = new Client().request("123456");
//这个data立即返回
System.out.println("--->立即返回的假数据"+data);
//在实际获取数据的时候才返回了
System.out.println("--->获取的真实数据"+data.getResult());
}
}
<file_sep>package f... | 8eae37b28b8901bc23b9a5c6d4e2a505edf1222f | [
"Markdown",
"Java"
] | 8 | Java | liangjuntao/designPattern | 09bb80a6e83f42053e6b4fe62fb25612ab640ba2 | 99dad42f532aa2d7e15c41d18529dc8f1f056b49 |
refs/heads/master | <repo_name>nebojsagajic/centili-crud-rest-service<file_sep>/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd... | 30e409a5dbf7c41a22bcb5bffe46f09bb1712443 | [
"Java",
"Maven POM"
] | 10 | Maven POM | nebojsagajic/centili-crud-rest-service | 12946553f2626673b625de113fc77f9f57f6254d | 838e72fd889eb91a21e48f80d0cb65068d240bc6 |
refs/heads/master | <repo_name>wvannoordt/Ox2020mWaveSim<file_sep>/package/lib/src/cInterface/extDef.cpp
#include "extDef.h"
#include <iostream>
#include <fstream>
#include <string>
void InitializeInternal(int height, int width)
{
}<file_sep>/package/lib/makefile
LIB_NAME := mCuWave
ifndef OPTLEVEL
OPTLEVEL := 0
endif
ifndef CUDA_E... | e656ff76056a8c949d97b7ca2c121e80a0fc228b | [
"C",
"Makefile",
"C++"
] | 4 | C++ | wvannoordt/Ox2020mWaveSim | 25b1624a5f8af3e1f6e0fa3c32e19749b1d109ef | d5e882661f24d89cd2d1f4b806e3e6781a8a2cfc |
refs/heads/master | <file_sep>### Spring Cloud Stream Kafka Application
Event Driven MicroService with Spring Cloud Stream and Kafka
##### Zookeeper Commands
bin/zookeeper-server-start.sh config/zookeeper.properties<br>
netstat -ano | findstr :2181<br>
tskill PID
##### Kafka Commands
bin/kafka-server-start.sh config/server.... | a10829ce96b8b31bd181dae5003e96e0b60e8cb7 | [
"Markdown",
"Java"
] | 2 | Markdown | venu211/streamkafka | 4ba8b81ea77b419724bf9e01982d0339546f7df3 | 4d9693a5782602a892c4c0c57d3fb2cb79884d9c |
refs/heads/master | <file_sep><!DOCTYPE html>
<html>
<head>
<title>Login Administrativo</title>
<?php require_once "c_acceso.php"?>
<link rel="stylesheet" href="style/styles.css">
</head>
<body>
<div style="height:50px;"></div>
<div align="center"><img src="imagenes/LogoU_nombre.png" ></div>
<h1 align="center">Ingres... | b8dc8db70fc6e8f0d1c8e0982dfcc1669389deed | [
"JavaScript",
"SQL",
"Text",
"PHP"
] | 76 | PHP | phoenix-phx/cri | 1222ddd46a99af475b55d9387e5de7c3c34dafb8 | 7c26f0dc6a9e15140078f54b5e30c308519d7195 |
refs/heads/master | <repo_name>suhasghorp/QLWrapperLib<file_sep>/docker-files/5clion/Dockerfile
# CLion remote docker environment (How to build docker container, run and stop it)
#
# Build and run:
# docker build -t clion/remote-cpp-env:1.0 .
# docker run -d --cap-add sys_ptrace -p127.0.0.1:5522:22 clion/remote-cpp-env:1.0
# docker ... | 65ded3dd4684534ffdbaa6ed3ba09997b8cf3da6 | [
"Markdown",
"CMake",
"Dockerfile",
"C++"
] | 24 | Dockerfile | suhasghorp/QLWrapperLib | 65836c1a8aec1e6ac64dadab1af7ba581e999922 | 8e39b34abcc9e1add55d663578dd0d40565fc61e |
refs/heads/master | <file_sep>echo "First Parameter path to the files"
end=${FILES: -1}
[ "${end: -1}" == "/" ] && FILES=${FILES::-1}
FILES=$1
if [ -z "$FILES" ]; then
echo "No Input"
exit 1
fi
prefix=$FILES/
cd $FILES
for d in */ ; do
cd $FILES/$d
for f in *.*
do
if [[ $f == *.js... | abf86e8066ab20143150e4a3cac1b3e71741a060 | [
"Markdown",
"Shell"
] | 2 | Shell | Wiffzack/Security_for_server- | 7e93ef33d6e9b4427722015e3684123d9787f789 | c45040dee9588624e6911114200207f66c4eb23f |
refs/heads/master | <repo_name>PurnaChandraPanda/WebChat-ClientApp<file_sep>/v3/WebChatClientApplication/WebChatClientApplication/Models/WebChat2Model.cs
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.... | 7a1fab79a989939314a4e8c60beea6a10394a8c3 | [
"Markdown",
"C#"
] | 6 | C# | PurnaChandraPanda/WebChat-ClientApp | 7fe1da4a9b9b268c3f505f9ff0cfdc1ea224d723 | 61813f32efbf5f4ea39c05058f13b71b311671cf |
refs/heads/master | <repo_name>7Aishwarya/Web-Development<file_sep>/React/practice-es6-destructuring/README.md
OBJECT AND ARRAY DESTRUCTURING
- Rendering car stats by destructuring object and arrays.
<file_sep>/React/practice-usestate-hook/src/components/App.jsx
import React, { useState } from "react";
function App() {
setInterval(upda... | e492242b6d89586ca3f980669d64a0c38036fa3b | [
"Markdown",
"JavaScript",
"HTML"
] | 13 | Markdown | 7Aishwarya/Web-Development | 5e0a1adafed2f757415d180fbbca7f395952736f | 4b23a1ac928a50aa251520fbeb5f170f4aacdec6 |
refs/heads/master | <repo_name>PandaRec/metro2_0<file_sep>/server.py
#!/usr/bin/env python
# -*- coding: utf-8 -
from enum import Enum
from flask import Flask, render_template, request, flash
# import json
# import folium
# import station
# import requests
# import bs4
# import old_sub_window
import work_database
import users_map
from tk... | d562e8b093f31b7e3492bc739ac54ea8feaae6bd | [
"Python"
] | 8 | Python | PandaRec/metro2_0 | 633ec943dc0867bee4443fdb9af4c542c87b85d3 | 2cb43dae7a5c21400145c4cc23c638c94ab8e946 |
refs/heads/master | <repo_name>romaanshaikh/te<file_sep>/rom/LR/LR.py
import numpy as np
import pandas as pd
import matplotlib as mpl
#mpl.use('TRAgg')
import matplotlib.pyplot as plt
dataset=pd.read_csv('Salary_Data.csv')
X=dataset.iloc[:,:-1].values
y=dataset.iloc[:,1:].values
#asplitting the dataset into training and test set
from sk... | 57444afe5a61c3885551bcff64339a1d8bc76f2d | [
"Python"
] | 2 | Python | romaanshaikh/te | 9e47187d550f6dac1aa5f1000f1e258427ee1572 | 330dd7a91be46d2f5f34bedeafca14813fd9971c |
refs/heads/master | <repo_name>GoldenD/15<file_sep>/js/script.js
var userObject = null;
if( isStorageSupported() && remember_login() )
{
load_userobject(JSON.parse(localStorage.getItem('last_user')));
}
$( document ).on( "pagecontainerbeforechange" , function ( e, ui )
{
if(!islogged())
{
if(ui.toPage[0] == undefined)
{
}
... | 0d866edb7195a61e2e4a041d8f666761f6ab508d | [
"JavaScript"
] | 1 | JavaScript | GoldenD/15 | 548f9d02b622f75687dc9cb5cc394e4b2b42fdc3 | 90dc7391761e32f88796fe83ab8a4b1d845a1d69 |
refs/heads/master | <repo_name>charan2108/Ionic<file_sep>/ionic-angular-course/ionic structure/app.js
const InputUsername = document.querySelector('#input-username');
const InputPassword = document.querySelector("#input-password");
const SignupBtn = document.querySelector("#btn-signup");
const LoginBtn = document.querySelector("#... | 7f68f80fe04a458ccc59c71eb945b8d618528885 | [
"JavaScript"
] | 1 | JavaScript | charan2108/Ionic | 286d9a5367db10138e2dba296fec0ce62c4cf3f9 | 879b47a16a40aff511459e01e1744b6c0b81b607 |
refs/heads/master | <file_sep>Flask==1.0.2
gremlinpython==3.4.6
<file_sep>"""
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "test"
"""
# Gremlin imports
from gremlin_python import statics
from gremlin_python.structure.graph import Graph
from gremlin_python.process.graph_traversal import __
from gr... | 8b60f11dbb941217dd49bda311b8e82cb11f5156 | [
"Python",
"Text"
] | 2 | Text | 0anilyadav0/python-docs-hello-world | e38022ee38f565cabf921a836e26cf64183f95bd | bd4b429b21001903614c051e244c55b87dd8ad28 |
refs/heads/master | <repo_name>dreadwood/informbox<file_sep>/src/js/load.js
'use strict';
(() => {
const URL_LOAD = `https://reqres.in/api/unknown?per_page=12`;
const statusCode = {
OK: 200
};
const loadData = (loadCallback, errorCallback) => {
const request = new XMLHttpRequest();
request.responseType = `json`;
... | 9bb373fb2ea19f1a1e21442887b2270c6a4cd49b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | dreadwood/informbox | 9e02ef4eb5bd53d6d43c971efebd7ef610f1d9f2 | a4def06144e14dca79b7d7ff487920867bd7acda |
refs/heads/master | <file_sep>'use strict';
module.exports = app => {
class ContentController extends app.Controller {
* index() {
yield this.ctx.render('content/index.tpl');
}
* add() {
yield this.ctx.render('content/add.tpl');
}
* tags() {
yield this.ctx.render('content/tags.tpl');
}
}
... | 88d4407dff18320217e4d7428445e39db3f614ea | [
"JavaScript"
] | 12 | JavaScript | EastLee/eggcms | 39254ed5a23a6a8ce6979fbff4c590840a4e0730 | 5471427653e5dedc7eeb34b7c0ba7ea1bc74d130 |
refs/heads/master | <repo_name>merfaruke54/KampIntro<file_sep>/Dongular/Program.cs
using System;
namespace Dongular
{
class Program
{
static void Main(string[] args)
{
//aray - dizi
string[] kurslar = new string[] { "Yazılım Geliştirici Yetiştirme Kampı", "programlamaya başlangıç için tem... | 09a4578fb5f8927c7b9ff3c8333df70ec0f0ad57 | [
"C#"
] | 1 | C# | merfaruke54/KampIntro | 8c81513b578ae8e62d24acab6b94bc51a60c8a63 | de81e3b3e12668ba9702cc8713702c60100617d6 |
refs/heads/master | <repo_name>cngeeks/vfat-tools<file_sep>/src/static/js/bsd.js
$(function() {
consoleInit();
start(main);
});
async function loadStablePools(App, chef, chefAddress, chefAbi, rewardTokenTicker,
rewardTokenFunction, rewardsPerBlockFunction, rewardsPerWeekFixed, pendingRewardsFunction) {
const chefContract ... | da015e514c967b82cbcff5ad65cba5ecdba0500c | [
"JavaScript"
] | 1 | JavaScript | cngeeks/vfat-tools | 09624585190835a163a938768ccec3b7b9ee7885 | 94524f645c591271c8c314bfbda10e7c149939a0 |
refs/heads/master | <file_sep>package ru.tasks.task2012;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamRead... | 822b60322ea3a091c3d24fc201f8ec8f334c3597 | [
"Java"
] | 2 | Java | seet61/tasks | b377a2f63e973b0714bd6a3120922855f57eb5cc | 74b6f2de1efe7128d50b43f0549e183c51a4f239 |
refs/heads/main | <repo_name>VidaInformatico/sistema-venta-mvc-php<file_sep>/Views/Template/footer.php
<footer class="footer">
<div class="footer__block block no-margin-bottom">
<div class="container-fluid text-center">
<!-- Please do not remove the backlink to us unless you suppor... | d802e2cf11f29e1555c4657b3105ae7dd007751d | [
"SQL",
"PHP"
] | 35 | PHP | VidaInformatico/sistema-venta-mvc-php | e5cd4eb0c15ac72732554bee6bccd8d8d18f6d04 | afb6b67f87b5eae6b883fc92e4a328fc92f232c0 |
refs/heads/master | <file_sep><?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a grou... | 031d5810b6fa3eff85b4490921e8da0fa6118a35 | [
"PHP"
] | 2 | PHP | QuangHoaBN/Web-Design | 31b9869d8e055fea8691a9021c43ff2d87c784a0 | b3d88aed80908e2e7df93b55cc7754c5428ad8b5 |
refs/heads/main | <file_sep># Author: <NAME>
# Date created: 1/4/2021
import os
import random
import numpy as np
from nltk.corpus import wordnet as wn
from scipy.special import softmax
from sklearn.metrics.pairwise import cosine_similarity
from sentence_transformers import InputExample, losses
class TestSample:
def __init__(self,... | 217adcb60a9ff828cb528bd3562abbbc2725b30b | [
"Markdown",
"Python",
"Text"
] | 9 | Python | HarshKohli/SenseEmbeddingTrainer | 08649c8ae0dab55aa9bc50a032549c60fb79ee12 | 3eba7d945ae862313075c61de0410ad98f952f9a |
refs/heads/master | <file_sep>#!/usr/bin/python
import httplib
import sys
sys.path.append('../python-lib')
from api import *
from codegen_core import *
from optparse import OptionParser
from serializers import get_serializer, get_function_name
from urlparse import urlparse
__author__ = 'hiranya'
CLASSES = []
CLASS_NAMES = []
CLASS_NA... | 7ac67f4564efe8abdc4d34e638f0fd959fd75539 | [
"reStructuredText",
"JavaScript",
"Markdown",
"Python",
"Shell"
] | 18 | Python | nga76/rest-coder | 39d041a5eaccfb9d60647603faf2282745a1012c | 5414eb23e8a406bf73d50d927c428b9a8e76b36f |
refs/heads/master | <repo_name>KanagiMiss/project_boom_client<file_sep>/boom/events/GamepadRightStickMoved.lua
--手柄的右摇杆移动
local GamepadRightStickMoved = class("GamepadRightStickMoved")
function GamepadRightStickMoved:initialize(x, y)
self.x = x
self.y = y
end
return GamepadRightStickMoved
<file_sep>/main.lua
-- start global var... | d50aca4f4302d29435bd4c4d64cb82c00481e1f9 | [
"Markdown",
"Lua"
] | 202 | Lua | KanagiMiss/project_boom_client | 0a62588da5c4b1768a8b7f8760eef0ffa18d830a | 946fc4cda8b91d1cbdd2a920a67b318c3b1b9edc |
refs/heads/master | <file_sep>package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"mime/multipart"
"net/http"
"time"
"github.com/go-martini/martini"
"github.com/globalsign/mgo"
"github.com/globalsign/mgo/bson"
)
var (
Session *mgo.Session //initializing mongo session
Collection *mgo.Collection
err erro... | 6135c6070cfc14b9c93091c3462aca4c14c0869a | [
"Go"
] | 1 | Go | anurag2361/gocrud | a7c62a16a0ec9f9eb21fd977b7d125145468a842 | 97486f72405e8dac98c8a7339dee2bc60b529df8 |
refs/heads/master | <file_sep>from sys import argv
# imports mean that your script is importing something from the Python modules list
script, first, second, third = argv
print "The script is called", script
print "The first variable is:", first
print "The second varibel is:", second
print "The variable is:", third<file_sep>inches... | 600e5602c4291d106aef45c381ca9b1d3f63436d | [
"Python"
] | 7 | Python | georGEO1989/learnpythontheheardway | 984a2af0d6560c4b0673c84cb30eb5b23a4dcabe | 1e60d566cced4cbe408027d7ad1ab919889cedec |
refs/heads/main | <repo_name>Pixel535/Program-do-zarz-dzania-list-student-w<file_sep>/zad 3 program zarzadzania lista studentow/main.c
#include <stdio.h>
#include <stdlib.h>
typedef struct student
{
char imie[20];
char nazwisko[30];
double srednia;
char plec[1];
struct student* next;
}student;
//Do ... | 2c30a1b188594232e479a05af9cd8d8bd493870b | [
"C"
] | 1 | C | Pixel535/Program-do-zarz-dzania-list-student-w | 8a3dd3527fb9b6c7eb9c46b29938004a1f9dc277 | f0b8ad9e1ee1237ed64641088ca12089fa90ab22 |
refs/heads/master | <repo_name>camptocamp/docker-pgbouncer<file_sep>/docker-compose.yml
version: '2'
services:
pgbouncer:
build: .
image: camptocamp/pgbouncer
ports:
- "6432:6432"
links:
- postgres_db1
- postgres_db2
volumes:
- pgbouncer_certificate:/opt/pgbouncer/ssl
environment:
SE... | 15dd6db416c6f34c49e1bde3c7c32182a4b093b1 | [
"YAML",
"Markdown",
"Text",
"Dockerfile",
"Shell"
] | 6 | YAML | camptocamp/docker-pgbouncer | 876004edfe603eb857e8f50dd2e80503ff33f35b | a75b4d8b7344d8bddef504c1b4a2dcc821866b2f |
refs/heads/master | <file_sep><?php
namespace SimpleNeo4j\ORM;
use SimpleNeo4j\HttpClient;
use SimpleNeo4j\ORM\Exception\ConstraintViolationException;
use SimpleNeo4j\ORM\Exception\ObjectFetchException;
class Manager {
private HttpClient\Client $_neo4j_client;
private HttpClient\Client $_neo4j_read_client;
private bool $_f... | f6dcafbea949d5fcb3173d063e945e02462aa8ce | [
"PHP"
] | 2 | PHP | DFoxinator/SimpleNeo4j | 82e39190820551a766bb71227078bf62cf0f6ef7 | cf48e7d0c942e7f956cf6233869fc15858ea00f9 |
refs/heads/master | <file_sep>var say_hi = function () {
console.log('hi');
};
var greeter = say_hi;
//They can be passed as arguments (inputs) to functions:
var runner = function (fn) {
console.log('Invoking a function now!');
fn();
};
runner( function(){ console.log('okay'); } );
runner(say_hi);
runner(greeter);
// runner( sa... | aec87ad1a220f37ac03253272c01297f4c9c78a5 | [
"JavaScript",
"Markdown"
] | 13 | JavaScript | seanjun21/advanced-functions | cc06c9fa77f14a99fef32c0c21124afeaddbc473 | 776eca021f0bcb50a25383ffd82947bfb6828afd |
refs/heads/master | <repo_name>mangelsr/style-transfer<file_sep>/style-transfer.py
import PIL.Image
import numpy as np
import tensorflow as tf
def tensor_to_image(tensor):
tensor = tensor*255
tensor = np.array(tensor, dtype=np.uint8)
if np.ndim(tensor) > 3:
assert tensor.shape[0] == 1
tensor = tensor[0]
r... | aeb6ab604c06963fe3bbee99fe3f48f911145642 | [
"Python"
] | 3 | Python | mangelsr/style-transfer | 6c6eb28c5f0955f63fd0d51ba1f70a275daefb60 | c09b0808c8f94ad7ed8b1ff83981d8abf5f5200a |
refs/heads/master | <file_sep>#!/bin/sh
min build
cp sitemap.json dist
node ./deploy.js<file_sep># mangrenhui-xcx
> 盲人荟-小程序
<file_sep>module.exports = function (app) {
return new Promise((resolve, reject) => {
const authorize = app.getSessionId()
wx.chooseImage({
count: 1,
success: function (res) {
console.log(res)
... | d7834044bae399301e26ae2f7904f503390aa35b | [
"Markdown",
"JavaScript",
"Shell"
] | 5 | Shell | guohao214/mangrenhui-xcx | 583c364d138138542856403bb73523c71c6b9cf8 | 13541d4be2ff3ed9d9042ce186e6022bc00c15f8 |
refs/heads/master | <file_sep>#region
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Microsoft.TeamFoundation.Collaboration;
using SKYPE4COMLib;
using TfsCommunity.Col... | 78ff00304b465bb502d3adb07e34b38e08828fcd | [
"C#"
] | 20 | C# | TfsCollab/SkypeProvider | d1f84c64edd83f178a81be6f31c58a38e7640a81 | c6d9b15067f643569d5c379a585d73e8f13e7d6e |
refs/heads/master | <repo_name>adolpputler1488/BlackJack<file_sep>/black jack.js
function getRandomInt() {
return Math.floor(Math.random() ;
}
function getCard(){
var cards = ["2","3","4","5", "6","7","8","9","10","J","Q","K","A"];
return cards {getRandomInt()}
}
function Sum(arr){
var Sum =0;
for(var=i;i<arr;i++){
... | 599ccff4dd0322a0b8a946a793d0a0fd466bfed9 | [
"JavaScript"
] | 1 | JavaScript | adolpputler1488/BlackJack | 17afd27a9de61ce42b67775b8621c01ce7bfbc8a | 05649fd2e39035b27eedd4c1c96b96fd2b58971a |
refs/heads/master | <file_sep>keystore=F:\\eat.keystore
storePassword=<PASSWORD>
keyAlias=key
keyPassword=<PASSWORD><file_sep>package com.zhangCai.todayeat.activity;
import android.animation.Animator;
import android.animation.AnimatorInflater;
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import ... | 6d31b18e28969cc2b97df1d244237c46af47b56d | [
"Markdown",
"Java",
"INI"
] | 4 | INI | ZhangMiao147/TodayEat | e2c8b165829288dfcb02e910dc77466e212f79ee | 5968cc662a4a2b268156d59bdee253f498bea4e2 |
refs/heads/master | <repo_name>VigneshN1997/Searching-in-Semi-Ordered-Matrix<file_sep>/search.cpp
#include <iostream>
#include <omp.h>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <ctime>
using namespace std;
void traverseTree(int currLevel,int finalLevel,unsigned int** matrix,int lr,int lc,int hr,int ... | db94c32364efd59a09b89ca0a6a6e1dbb1f16155 | [
"Markdown",
"C++"
] | 2 | C++ | VigneshN1997/Searching-in-Semi-Ordered-Matrix | c673660c6ee22ae79fd506162dc395d99f0735f6 | 9372d7026ec6f13881a24c0b8a685a64ebc514ed |
refs/heads/master | <file_sep>var self = this;
var nextPage = '';
$('#moarButton').on('click',function(){
$('#moarButton').button('loading');
$('#commentContainer').hide();
$('#masterComment').html('');
self.getMoar({after:nextPage});
});
var getMoar= function(qs){
qs = (qs?qs:'');
$.ajax({
url: 'http://red... | b60fcfd3f735cfe12845e6b98f2b8ad69f4e0aeb | [
"JavaScript"
] | 1 | JavaScript | kpeatt/O-Hai-Reddit | aef33a95fb1bf7d0d37e2b76c99b5f51cade3c05 | b793053c4ede96c0a833732afef07b78896f544b |
refs/heads/master | <file_sep># programming-courses-ke6zec
[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/programming-courses-ke6zec)<file_sep>//######################################################################
//########################### SSTech ###################
//########################### Programming C... | 1e721e450fd6d1b9c433c097eac8aa63d1dab6a5 | [
"Markdown",
"TypeScript"
] | 2 | Markdown | HOBACHAOUI/Matrix | b80d78c005e93bd50b6931a7c0cac746dfa68290 | a3abd29cebf4b76b94eee0dc69ac1ec5e7627da7 |
refs/heads/master | <file_sep>require 'spec_helper'
describe Airbrake::Notice do
before(:all) do
Airbrake.account = 'myapp'
Airbrake.auth_token = '<PASSWORD>'
Airbrake.secure = false
end
it "should find error notices" do
notices = Airbrake::Notice.find_by_error_id(1696170)
notices.size.should == 30
notices.... | 41acf8185fab58966da842aa9931a574655d4d52 | [
"Markdown",
"Ruby"
] | 5 | Ruby | bgreenlee/airbrake-api | e9abeefb8b5cd573c6bd0902e4775a32cab2c8b8 | f787706fee7cbc41841b198e16653ae3d244f1a7 |
refs/heads/master | <repo_name>snehashankarnarayan/remodel<file_sep>/md5Functions.cpp
//=======================================================================================
// This file contains all the code required to calculate MD5 hashes of the input files.
// Storing of the hashes in .remodel/dependency is done here. Also, checking... | 5040906459f8c52c0164cc1b852aed2d4a1f8b68 | [
"Markdown",
"C",
"C++"
] | 16 | C++ | snehashankarnarayan/remodel | 2cf2ce82de9cb46f2afa6556c90ecce086c37088 | afe9dceb4708c513f0830a2b5bbd398c56bb8f90 |
refs/heads/master | <file_sep># Circular-layout
A sample app to show usage of circular attribute in ConstraintLayout. Present a data in form of circle.
# Sample result
<img src="Circular-images.png" width="250" height="400">
# Credit
* Thanks to (https://github.com/kpchandora) Original source code (https://github.com/kpchandora/circula... | cd49e01ebed07c066a3b14c5a401db3ddbcdd3ab | [
"Markdown",
"Kotlin"
] | 3 | Markdown | ParryPatel021/CircleImages | b8f6ad484a607295f9adc69bc1eb8c8b9edb2a2d | cdde316a16eba972a0bdf5b85aeb087101a58d4a |
refs/heads/master | <file_sep>package no.kristiania.httpclient;
import java.io.IOException;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;
public class HttpClient {
private int statusCode = 200;
private final Map<String, String> headers = new HashMap<>();
private String responseBody;
public Htt... | bfc52d3eeb1362fbfe99c558a4a794e4262e78e9 | [
"Markdown",
"Java"
] | 2 | Java | Lexberg/http-client-demo | e442be5998f48f9f72d8d170f7f4fedca7c43223 | d7b3d91616199d308aa7251a7271dd22e36e0070 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.