branch_name stringclasses 149
values | text stringlengths 23 89.3M | directory_id stringlengths 40 40 | languages listlengths 1 19 | num_files int64 1 11.8k | repo_language stringclasses 38
values | repo_name stringlengths 6 114 | revision_id stringlengths 40 40 | snapshot_id stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|
refs/heads/master | <file_sep># pdns
Command line tool to add and and delete dns records and domains
from powerdns postgresql database.
## Installation
Copy pdnscmd.conf.sample to /etc/pdnscmd.conf and edit as needed.
Create group pdnscmd and add your user(s) to this group.
Set /etc/pdnscmd.conf filesystem permissions to for example ... | 5f57236a1d56f20d78a2358ce23e0cc06691562e | [
"Markdown",
"Python"
] | 2 | Markdown | eranii/pdnscmd | 0c15fd57347f777bc0b29ca6854da6e5247e88cb | 5cc4fa8e6de1f815dfd82bed1de3311ca881b615 |
refs/heads/master | <repo_name>eco-systems/eclearance<file_sep>/protected/modules/main/views/clearance/view.php
<?php
/* @var $this ClearanceController */
/* @var $model Clearance */
$this->breadcrumbs=array(
'Clearances'=>array('index'),
$model->id,
);
$this->menu=array(
array('label'=>'List Clearance', 'url'=>array('index')),
arra... | 1f8ff7074addf12b716ed708180e256cfb53730c | [
"Markdown",
"PHP"
] | 4 | PHP | eco-systems/eclearance | 35e15b4aed19dedc8af0ded79050afacc28c92a5 | 65221fb462783fa9e53d6f63dcaf349f7e6a5dd5 |
refs/heads/master | <file_sep><p align="center">
<img src="logo.png" alt="Go-Web">
</p>
A simple MVC web framework for Golang lovers!.
# Warning!!
This project is still under development. Feel free to play with it but it's not ready for production.
# Why another framework?
Go-Web adopts a “convention over configuration” approach simi... | 7aaef9c12472029d88072ad97d63cf15f9caee80 | [
"Markdown",
"JavaScript",
"Go Module",
"Go"
] | 10 | Markdown | workspaceking/go-web | 3495a09563746d10c2d31cfca2df8a7394c88951 | 0b64da681293fc9c825b7226f3ca388bf0195949 |
refs/heads/master | <file_sep>#include <glut.h>
#include<math.h>
#include<stdio.h>
static double x1 = 0, rotX = 0.0, rotY = 0.0, rot = 0;
int wire = 0, panaroma = 0, open = 0, walk = 0;
float xpos = 0, ypos = 0, zpos = 0, xrot = 0, yrot = 0, angle = 0.0;
static void SpecialKey(int key, int x, int y)
{
switch (key) {
case GLUT_KEY_UP:
... | ba46a8bbe670927ae27c2077187e4744c0a6656f | [
"Markdown",
"C++"
] | 2 | C++ | Yuvaraj-P/3D-Castle-opengl-project | 066154eca92231688223abfcf9bf4653e018b68f | 9b00b0cc9240137c9933408a487acde584a65f6f |
refs/heads/main | <file_sep>const express = require('express')
const mongoose = require('mongoose')
port = process.env.PORT || 9000;
const url = 'mongodb+srv://testUser:<EMAIL>/sample_airbnb?retryWrites=true&w=majority'
const app = express()
mongoose.connect(url, {useNewUrlParser:true})
const con = mongoose.connection
con.on('open',... | 314416ff959073881221a6a3bc8cb956c8ae4b84 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | CrashTechIndia/contactApp-node-mongo-atlas | a56a7c0e7e236a44f68badae215cf01273fe7a4f | b19a2fc10b947166b78d9057619f17190717c437 |
refs/heads/master | <file_sep>package org.egovernments.egoverp.models;
public class ProfileUpdateFailedEvent {
}
<file_sep>
package org.egovernments.egoverp.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* POJO class, initial... | b86441e8bf984455b8d4c24b18bfb6f9393c8880 | [
"Java"
] | 23 | Java | visheshreddy/EgovApp | 21351940f721917f7bbddc1e8500b17f0e969c19 | a2737a59b374322c7c5c62c59231bb2d155f03f1 |
refs/heads/master | <file_sep>Global.include('dev/js/Application/ElementListePoi.js');
class SousMenuListePoi extends DivObject {
constructor(parent, id, json, scale, couleur) {
super(parent, id);
this.clickSignal = new signals.Signal();
this.addClass('sousMenuListePoi');
var b;
// l'élément a... | 3f6fd753c0fa2ba5cf54250149655a97a1011d78 | [
"JavaScript",
"Markdown"
] | 15 | JavaScript | maximefuchs/vosgesAnamnesia | 1be8c482b1dbccf74a9a946241d1c67bd810dc05 | 434462a2d6f0e6a847ecc13a566c16cbc502378f |
refs/heads/master | <file_sep>var pharmaTracker = artifacts.require("pharmaTracker.sol");
module.exports = function(deployer) {
deployer.deploy(pharmaTracker);
};<file_sep># Blockchain-Buildathon
2019 Blockchain Buildathon Competition
| 9afd63dfdb1c4e24a9b0139689d525d873176ee4 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | ethansachse/Blockchain-Buildathon | 696af7d0841a5e0b590d4aec2fe5ede7985c7437 | ba7b0af7bd6f7d1bac9bc8b03aa319ba9e8b03fd |
refs/heads/main | <file_sep>from scapy.all import ARP, Ether, srp
import socket
import argparse
import socket
import threading
from queue import Queue
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ran = (s.getsockname()[0])
my = ran[0:11]+"1/24"
s.close()
target = my
# make the ARP p... | e463deb484112ec5316fd03b8b16e890734b2310 | [
"Markdown",
"Python"
] | 3 | Python | myname36/ice | 702a79e2c00e99bd5d37fbc3aa36a689d0028645 | 1b8dc5aebe1bbbf60eb652c6bfdc5c349cc1f032 |
refs/heads/master | <file_sep>using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MapController : MonoBehaviour {
[SerializeField] public int width = 16;
[SerializeField] public int height = 12;
[SerializeField] public GameObject mapTilePrefab;
[SerializeField] public Color wallCol... | 678f9d867fa32fe8f9689e26f0c7df57f4be1985 | [
"C#"
] | 2 | C# | cutopia/GridMap | fe11c24b257654391635ec95a22135c1dee5b677 | 2153f6b60c61f92ed6c57c6a6c20bfb99b09e908 |
refs/heads/master | <file_sep>#!/bin/bash
echo "changing all eps to png for file $1"
cat $1 | sed -e s/\\.eps/\\.png/g > $1.tmp
cat $1.tmp | sed -e s/eps\}/png\}/g > $1
rm -f $1.tmp
| b440005948c443b6605f64bf862f447860c68b42 | [
"Shell"
] | 1 | Shell | yantailee/ipsysctl-tutorial | 0dda94cf007a68cd70d6c886de3e1acb6449d91d | fd582bc0bdfc5a173c5d2609a5fb4661dd7b3415 |
refs/heads/master | <file_sep>#include "creature.h"
#include "world.h"
#include "species.h"
#include "RandomInt.h"
#include <cassert>
#include <iostream>
#include <cstdlib>
#include <ctime>
RandomInt r;
Creature::Creature(Species * s, unsigned x, unsigned y, World * w):canfly(false),rest(false){
mySpot =new Location(x,y);
my... | 5d29041b4661ed68dacaa79f1edd8e4febb39e72 | [
"Makefile",
"C++"
] | 12 | C++ | ashadhik/CPPCreatureSurvival | e895656b31634d72b65dd523e59b16b7bde56d8a | 505cb1c48b642d1ddb1a91079b83ce9f972b82f7 |
refs/heads/master | <repo_name>gallardolopezmiguel/connections<file_sep>/MONGODB/app/controllers/userController.js
const userModel = require('../models/userModel');
const bcrypt = require('bcrypt');
const createUser = (req, res) => {
userModel.create({
name: req.body.name,
email: req.body.email,
password: req.... | 5db3ae2bb17a2b220831b058e551c407912cefec | [
"JavaScript"
] | 4 | JavaScript | gallardolopezmiguel/connections | 5fb081f189163b8fe1878ebfe682e4b6479b8164 | 31ea031aea488819873e81f15ba79efa4d93d24d |
refs/heads/master | <file_sep>#!/bin/bash
# converts farenheit to celcius or celcius to farenheit
echo "Please enter a temparture in (C) or (F). Ex: 35F"
read temp1
len=${#temp1}
unit=`echo "$temp1" | tail -c +$len`
len2=$[$len-1]
rawTemp1=`echo "$temp1" | head -c +$len2`
if [ "$unit" == "F" ]
then
rawTemp2=$[$rawTemp1-32]
raw... | b874ce6b5310ac1818e525c8c73aa26f8786bda1 | [
"Markdown",
"Shell"
] | 7 | Shell | mdh266/BashScripts | 96511a54733c522e44e6f33b0498af3b18f15fe3 | 590cb92191c2b2c8851b9a220071130cdf2cca6b |
refs/heads/master | <file_sep>print("Pozdrav iz aplikacije od <NAME> s brojem indeksa R3760!")
| e4afc7e2efc8c0c877b13dc66dc87d4a07026849 | [
"Python"
] | 1 | Python | fcuic/RUAP-Projekt | d9934eea863d747a49e4ba1b339b3adef426f12f | 976966b528d59f182a62c96c28f48b3a9e716a6e |
refs/heads/master | <file_sep>import pygame
import numpy as np
import os.path
import window
MapSpriteX=16
MapSpriteY=16
MultiplyScale=4
SpriteSizeX=MapSpriteX*MultiplyScale
SpriteSizeY=MapSpriteY*MultiplyScale
#creating a numpy array to store the map information
MapArray=np.array([
[1,1,1,2,1,1,1,1,1,2,3,3,2,1,1,1,1,1,2,1],
... | e1dd83460ab412a0c04b0a32e881cb7359a5ef91 | [
"Markdown",
"Python"
] | 5 | Python | anonymousAwesome/Zeldamon | fdf2ef82ec13ddb8f0b0bdf3ce3bbc5aed8f0cb0 | 89093d09aa77124f0bc6512b60235a0cc17a2103 |
refs/heads/master | <file_sep>// 2017/04/28
// created by <NAME>
#pragma once
#ifndef __CONE_SIMULATOR_H__
#define __CONE_SIMULATOR_H__
void ConeSimulator();
#endif //__CONE_SIMULATOR_H__
<file_sep>#include <stdio.h>
#include <windows.h>
#include "calculation_win.h"
#define THREAD_NUM 2
#define DATA_NUM 100
#define SPLIT_DATA_NUM (DAT... | 0568257390ad289220134f0dcee8f4803cd734aa | [
"C",
"C++"
] | 47 | C | EikiObara/simulator_backup | 957e2339d1ccb3ea68d15082073e3e9108f3d8ed | 228fdf59d39f1ddc9c16cbcb55e48aaf936c84c7 |
refs/heads/main | <repo_name>180485/discovering-laravel<file_sep>/blade-app/app/Http/Controllers/PagesController.php
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\PagesController;
class PagesController extends Controller
{
public function index()
{
return view ("layouts/main");
}
public f... | 48a0f9082ef67fc6bc540a857734d5f549b7c278 | [
"PHP"
] | 3 | PHP | 180485/discovering-laravel | 75feb937326b59d08441c50be89d3f893a30a343 | 8e77dffe5b0a74417a137e539dd114d9df606393 |
refs/heads/master | <file_sep>import React from 'react';
import './App.css';
import Info from "./Info.js"
function App() {
return (
<div className="container">
<header className="AppHeader">
<h1>Am I Chasing?</h1>
</header>
<body className="AppBody">
<Info />
</body>
</div>
);
}
exp... | 8aa47548da7b705c864b6ef2f2eaa2b9b542d467 | [
"JavaScript"
] | 1 | JavaScript | jonathan-villanueva/stop-chasing | 32922837df22eab387978d8833c880a803140892 | 464a9bf8323edcc3c8d8cc70b9d098247cafb4e1 |
refs/heads/master | <repo_name>aiadaniel/FirstVue<file_sep>/src/api/getData.js
import {fetch} from './fetch'
export const getHotTag = data => fetch('/tag/hot');
export const getBlogList = data => fetch('/blog/list');
export const getLastRecentUser = data => fetch('/user/lastrecent');
| 4050ec1f4c94bf7ee162c38a0ca929de33af04b6 | [
"JavaScript"
] | 1 | JavaScript | aiadaniel/FirstVue | 895ae847c1db963480876ac23889186090886b33 | 15f7bd46fa2eaa6dcc8a5240d192e59f8f9718d2 |
refs/heads/master | <file_sep>import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {Observable} from "rxjs";
import { Course } from '../dtos/course';
export const MAIN_URL= "http://localhost:8085";
const URL="api/v1/courses";
@Injectable()
export class Coursservice {
constructor(privat... | 726682aeba35391ee25afec71b05cbb2c70d4111 | [
"TypeScript"
] | 9 | TypeScript | UKHasantha/Lazy-Loading | 1726508de4f1ee164605e7c5cd81b72d976c728c | 78ecbfea90a91f5c7fb16941df963fe500bceedc |
refs/heads/master | <file_sep><?php
namespace laravel\bridgebb;
class ext extends \phpbb\extension\base
{
}<file_sep><!-- BEGIN forumrow -->
<!-- IF (forumrow.S_IS_CAT and not forumrow.S_FIRST_ROW) or forumrow.S_NO_CAT -->
</ul>
</div>
<!-- ENDIF -->
<!-- EVENT forumlist_body_category_header_before -->
<!-- IF forumrow.S_IS_CAT or for... | 728dffe3f993121a15a930cd805977b17e297933 | [
"Markdown",
"Dockerfile",
"HTML",
"PHP"
] | 4 | PHP | WarriorMachines/warriormachines-phpbb | 40d23e61421a6f03764d18e68d19110a39610223 | b8456f20cc5e52eb0c87979450f8f427c8edbc5f |
refs/heads/master | <file_sep>#!/usr/bin/python
import json
data = open('www/data/data-pb.json').read()
checksum = open('www/data/data-pb.md5').read()
version = open('www/data/api_version.txt').read()
code = "var API_VERSION = %d;\n\n" % int(version)
code += "var INITIAL_CHECKSUM = '%s';\n\n" % checksum
code += 'var INITIAL_DATA = ' + ... | 36c127c13ec84f181b543e63d5335a270f52fa6f | [
"JavaScript",
"Python",
"HTML",
"Markdown"
] | 9 | Python | alexsandrocruz/emergencias-app | 15761c5a4802cce92b9325cdd2559f52c3a390c0 | 589f5e46f13ce6ee0aa9d8e01a47d7c26a23298e |
refs/heads/master | <file_sep>SELECT country,
CAST(AVG(CAST(a.bore * a.bore * a.bore / 2 AS NUMERIC(6, 2))) AS NUMERIC(6, 2)) avg_mw
FROM
(
SELECT sh.name,
cl.country,
cl.bore
FROM Ships sh,
Classes cl
WHERE sh.class = cl.class
UNION
SELECT DISTINCT
o.ship,
cl... | 2385872312435a255989b1af0ecab1ac86766137 | [
"C#",
"SQL"
] | 122 | SQL | fallingsappy/Edu | e6b92af471165d6b39c56f5c94d08d8c666cc76f | 182558c9e373928d7b3655a974eca9d06d8e3bb0 |
refs/heads/master | <file_sep><?php
include "_header.php";
require_once "_functions.php";
check_auth();
db_connect();
if (isset($_GET['email']))
$sql = "SELECT id, email, firstname, lastname, status, relationship_status, profile_image_url, location FROM users WHERE email = ?";
else
$sql = "SELECT id, email, firstname, lastname, ... | 739c431701a79726c2ceae0a3ef88834e9cb4c8b | [
"SQL",
"PHP"
] | 15 | PHP | mr-andrej/thefacebook | 4adb7bd48f3617efa28e977e8ec0dad99ea6ff3c | 545d53f74d6dcad0748dada11af04f8d6452543a |
refs/heads/master | <file_sep><?php
namespace App\Http\Controllers;
use App\Models\Role;
use App\Models\User;
use App\Models\Semester;
use App\Models\Department;
use App\Models\Permission;
use App\Models\UserDetails;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Faca... | 6cdfed5e8e2b22ee3dd99af46cce5b52dc331336 | [
"PHP"
] | 2 | PHP | amitr-cn/rolemgmt | 05092b39d44ec1fc971ff5c5ff468ac9db6b6209 | 8becdeb7876772cbe0f454b22da0daed47de48c3 |
refs/heads/main | <file_sep># BreezeAdmin
这是一个基于flask的后端管理模板。他实现了用户登陆验证与菜单权限管理。他的优势是结构简单,没有数据库,菜单是存在json中。用户可以根据自己的需要对接其他用户管理系统,只要传session过来就可以。
在 static/files/menu.json 中有json文件,用于保存菜单。
session['username']保存用户名,用于验证是否登陆
session['usermenu']该用户的菜单,以'01010'形式,对应菜单的id,0表示无权限,1表示有权限
<file_sep>import os
import datetime
DEBUG=True
SECR... | 245cf1e4582ffc9228e8c807e7ed4c015479cb4b | [
"Markdown",
"Python"
] | 2 | Markdown | lyclqq/BreezeAdmin | 9e0169f9add79ee74f1fb50f2c84fdd3b97e797f | 006511dbd1fd0e5c24cc9fd6b5f29070a505402e |
refs/heads/master | <repo_name>VijayReddy119/LeetCode<file_sep>/Stringtoint(atoi).cpp
#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main(){
//string str = "42"; // ----(42)
//string str = "-42"; //-----(-42)
//string str = " -42"; //---- (-42)
//string str = "4193 with words"; //---- (41... | 4cc01bb450a264037c0852a6b0772000a6a8058f | [
"C++"
] | 12 | C++ | VijayReddy119/LeetCode | 59f5d50b4bf3d2ac4bd8f6ec686e2cd5f1b1883e | d759763df6295618421c7bf029ccd4c550da7a50 |
refs/heads/main | <file_sep>// import createGlobalStyle
import { createGlobalStyle } from 'styled-components';
//create global style
const GlobalStyle = createGlobalStyle`
font-family: sans-serif;
text-align: center;
`;
export default GlobalStyle;<file_sep>//import everything as firebase
import * as firebase from 'firebase/app';
... | 24c656b9d0ec0aa578618f9bed1891b5c02df628 | [
"JavaScript"
] | 5 | JavaScript | BernardoAguayoOrtega/todo-app | cfd43a4e794c8177f1f8503ff1f42e7053d79fbd | e49881a28518ada15ef6f51c307cb33595a439c4 |
refs/heads/master | <file_sep>import React from 'react';
import { Link } from 'react-router';
export default () =>
<Link className=""
to={`/executor-info`}
title="Executor Information">
Executors
</Link>
;
<file_sep>package io.jenkins.blueocean.rest.impl.pipeline;
import com.google.common.collect.... | f0128302da5a8ee184eb57be061a961edbab5188 | [
"JavaScript",
"INI",
"Java",
"Dockerfile",
"Shell"
] | 31 | JavaScript | p4charu/blueocean-plugin | c4c05961d109b30bb9d4d3a056e2ce70db9eaac5 | 156e896fe0e172e7c1ee72f2c82999d3f95d1ea4 |
refs/heads/master | <file_sep>def square_array(array)
array1 = []
array.each do |numbers|
array1 << numbers**2
end
array1
end
| 9c2e0f9e8ab8d23f0f56e343af760f7f7744acc0 | [
"Ruby"
] | 1 | Ruby | tgrosch91/square_array-ruby-apply-000 | 36125ac741cb1a150ccc4af60cb512ee9f4f9d1b | 76fcf1669f35eaa8609f640f7fb553b71ef8b573 |
refs/heads/master | <repo_name>tudarmstadt-lt/jwatson<file_sep>/README.md
jwatson
=======
A Java wrapper for the IBM Watson DQA service.
Getting started
---------------
The latest release is [jwatson 1.0](https://github.com/tudarmstadt-lt/jwatson/releases/tag/1.0.0).
Build
---------------
Use `sbt clean compile assembly` to build the... | 07e88f4fd439e66b20e9f39b7c3968fe9060f288 | [
"Markdown",
"Java"
] | 9 | Markdown | tudarmstadt-lt/jwatson | 6f71268ab7dcdd50084c9e42636a8c2f8fa2b606 | dedf29d5b669c4cc3125bfa843f18baf0c640418 |
refs/heads/master | <repo_name>cpfriend1721994/fastlane-plugin-mattermost<file_sep>/lib/fastlane/plugin/mattermost/actions/mattermost_action.rb
require 'fastlane/action'
require_relative '../helper/mattermost_helper'
DEFAULT_USERNAME = "Fastlane Mattermost"
DEFAULT_ICON_URL = "https://www.mattermost.org/wp-content/uploads/2016/04/icon.pn... | 0f5e5c10cf40490b914ceba5c06f5785088d3eba | [
"Markdown",
"Ruby"
] | 4 | Ruby | cpfriend1721994/fastlane-plugin-mattermost | 4cdc750bfcb63741a98bb0b04c392cc02bf020e5 | b5fdb2642b2f1b265cafba3b17be3e532b0231cd |
refs/heads/main | <repo_name>Dbishop-web/project-8-host-3<file_sep>/routes/books.js
const express = require('express');
const router = express.Router();
const Book = require('../models').Book;
//asyncHandler wraps each route in this function and is taken as the callback
function asyncHandler(callback){
return async(req, res, next) =>... | 24abd17edd1802535130ed337d3af656ab3c2266 | [
"JavaScript"
] | 1 | JavaScript | Dbishop-web/project-8-host-3 | 3e05749b83e7644cbd6a270761c97343875c0776 | 4315debde606879232efb1c57dc1c3a420810d4b |
refs/heads/master | <file_sep>package admin;
import java.io.IOException;
import java.util.Scanner;
import main.View;
import member.MemberController;
import movie.MovieController;
public class Admin {
final String AdminPw = "<PASSWORD>";
Scanner sc = new Scanner(System.in);
public void AdminLogin(MovieController mc, MemberController... | 10b1db3edad17132cff513e5dc4fbd368ac57628 | [
"Java"
] | 3 | Java | DongheeL/movie | 76a9d290882211b066dfe890316e323af8ca52d6 | 7588f8408386978d71eaa4f2d01993919c5aa860 |
refs/heads/master | <file_sep>### Workflow Steps
- create-react-app typescript;
- bootstrap;
- reducer functional/class component example;
- combineReducers;
- thunk;
- useDispatch/useSelector
- simple Saga & middleware example
<file_sep>import { AlertActionTypes } from "./alertReducer/types/types";
import { AppActionTypes } from "./appR... | 15f0f85d89db4c94636d69046eaaca5280fb6dec | [
"Markdown",
"TypeScript"
] | 11 | Markdown | marheva/typescript_redux | 6532a3c48949c5f18e58eef9ffba547d1cb0ee1c | 74fdf2639dfdfae8bf6d3317086c9321c35ce921 |
refs/heads/master | <repo_name>resoluteCoder/ash-knives<file_sep>/README.md
<h1><NAME></h1>
<p>A landing page for a made-up company.</p>
<h2>Purpose</h2>
<p>Beginning project that was created to help me learn more about design and CSS frameworks like Bootstrap.</p>
<file_sep>/script.js
const navLinks = document.querySelectorAll('.nav-... | 6ed8a7a9a3ca9311325bfc2912d8ecaa7e88ea50 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | resoluteCoder/ash-knives | ddce51a08c1a07bdc35ea49d507ae3f0e25e8ad8 | 13975d2a2e4bc75f1b8c7f30c283cf05397896ae |
refs/heads/master | <file_sep>#pragma once
#include "geometry/bounding_box.hpp"
#include "geometry/point2d.hpp"
namespace m2
{
// Bounding box for a set of points on the plane, rotated by 45
// degrees.
class DiamondBox
{
public:
void Add(PointD const & p) { return Add(p.x, p.y); }
void Add(double x, double y) { return m_box.Add(x +... | ee2f33c52b13f98e8eadb05e2a1998dde64a8fed | [
"C++"
] | 3 | C++ | xblonde/omim | d940a4761786c994884d2488a469635a4ac76d28 | 3a4b5181b0b3a0072c3642726e0c981e4514ff61 |
refs/heads/master | <repo_name>djdavidi/code-challenges<file_sep>/septa-fare-calculator/app.js
'use strict';
// in an actual project with more data I would modularize this
// for reviewing purposes however, this is easier to take in I think
window.app = angular.module('FareWidget', []);
// I would have put this in a resolve, because if t... | 7a611f3d76f87219363f8cfed51324f2968b8efb | [
"JavaScript"
] | 1 | JavaScript | djdavidi/code-challenges | aa1d134110f6aff998028a9f7b1b88fb305c786c | 7918898367cfa4d14acbc8fcf8570bfc434e6aa6 |
refs/heads/master | <repo_name>Howardyangyixuan/OpenGL-Learning<file_sep>/OpenGL-Learning/main.cpp
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include "Shader.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gt... | e5c2b5d320c8566f9d1ffcdd5725b493897d8e97 | [
"C++"
] | 2 | C++ | Howardyangyixuan/OpenGL-Learning | ae9edff68d988868161559a1cf4c718f0cce2006 | 94457b9539422c02017d367352908742a16e3d8c |
refs/heads/master | <repo_name>tvaliasek/cookie-notice<file_sep>/Gruntfile.js
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
build: {
options: {
sassDir: 'scss',
cssDir: 'css',
... | a08229200eff548ca44f6de46cd21bdd6ba2afe8 | [
"JavaScript",
"PHP",
"Text",
"Markdown"
] | 5 | JavaScript | tvaliasek/cookie-notice | 529c388d61e07b0a64c9338273c6275e5b668c4b | 5db96494fd74b0be98348a878387ece9d1c945ea |
refs/heads/master | <file_sep>class Profile:
MAX_AGE = 20
EDU_MULTIPLIER = { 1: 1.0, 2: 1.12, 3: 1.25 }
def __init__(self, userid, age, education, baseiq, basemidx):
self.__id = userid
self.__age = age
self.__education = education
self.__baseiq = baseiq
self.__basemidx = basemidx
... | 6af9197d214c98b9b1a93a68c1952f0712517f31 | [
"Python"
] | 7 | Python | neuricos/KGBaseRecord | a976d6704977ca882f47f3eb4798ca9c3be14464 | d6a7369af3ba8caa07b809d3a4bb8d91769329f5 |
refs/heads/master | <file_sep>index.file=index.php
url=http://localhost/laradoka/
<file_sep><?php
/*
* Что бы разгрузить логику в route
* для этого можно использовать контроллер
*/
/*
* Можно указывать дополнительные проверки
*/
Route::get('/create', 'imagesController@create')->middleware('user');
/*
* Что бы быстро сделать ти... | 40088fcdabc261f0ed29a93afc6318d3b925cd47 | [
"Markdown",
"PHP",
"INI"
] | 13 | INI | Div-Man/lara-documentation | 6cffb19b8611a7c2f9734718bd941f5963b540c6 | 768c0ea07beeb4235bfcc4bd81bd4a75ad8e2a7c |
refs/heads/master | <file_sep><?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the Rout... | 95523c8bc68e3bc369058eccff5d8f46a3ecaea0 | [
"PHP"
] | 2 | PHP | deyrupam/tut_laravel | 3d5b2c07728b3b390bd1788c5bb10981381d5850 | 82466b48d5747573bd4cf85f97b43dc439304e02 |
refs/heads/main | <repo_name>Qabas-al-ani/Personal-Protfolio-2<file_sep>/readme.md
# Personal Portfolio 2
---
[](https://opensource.org/licenses/MIT)
## Table of Contents
- [Description](#description)
- [Technologies](#Technologies)
- [Usage](#usage)
- [Questions](#quest... | 2d494b688fb28f67e994490f505d5d0d279b7796 | [
"Markdown",
"JavaScript"
] | 2 | Markdown | Qabas-al-ani/Personal-Protfolio-2 | e5b3ea3e66728cc5d6baaa745ec03d69ef5ad11d | 6338d6297ef54920fda617324eaf56633222b2f5 |
refs/heads/master | <repo_name>terzeron/GoTest<file_sep>/server/server.go
package main
import "github.com/go-martini/martini"
func main() {
m := martini.Classic()
m.Get("/", func() string {
return "Hello, world!"
})
m.Get("/error", func() (int, string) {
return 301, "I'm a kettle"
})
m.Run()
}
<file_sep>/GrammarTest/32.chan... | ecd53ab3417a5af32df5d9f49dad37e5b00fa208 | [
"Markdown",
"Go"
] | 9 | Go | terzeron/GoTest | d31b27070463d333555a153c13d17dcbd2c3c01a | 6b36c6c01424e423889ca6c38beb58f945b950e8 |
refs/heads/main | <repo_name>luqmanazeq/Sukui<file_sep>/sukuinote/plugins/cat.py
import html
import tempfile
from pyrogram import Client, filters
from .. import config, help_dict, log_errors, session, progress_callback, public_log_errors
@Client.on_message(~filters.sticker & ~filters.via_bot & ~filters.edited & filters.me & filters.com... | e3cab00bfef7de384110769e9df7f1a6aaf11063 | [
"Python",
"Text"
] | 5 | Python | luqmanazeq/Sukui | 1b5c21a2397985a08b2ab45713f0475d0743c672 | 9f05c28a2b8d1a66de494a070dc4475ea95e069d |
refs/heads/master | <repo_name>Julia-Ku2000/lab3<file_sep>/UserCode.java
package by.mail.bookShop;
public interface UserCode {
String generateCode(String email);
}
<file_sep>/Purchase.java
package by.mail.bookShop;
public interface Purchase {
double discount = 0;
double buy(double amount,double discount);
}
<... | b10b2f7db7336b357ca2c52277ea9f25b9923927 | [
"Java"
] | 8 | Java | Julia-Ku2000/lab3 | fffda8c8772ce6c7c22a0c637ce0ed157e7f8951 | 5a93fdc27b9fea3d4a0a7456a91ed2d646ae4447 |
refs/heads/main | <repo_name>stushar12/CPP-253<file_sep>/one.cpp
Node *reverse(Node *head)
{
Node *prev = NULL;
Node *curr = head;
while(curr != NULL)
{
Node *next = curr->next;
curr->next = prev;
prev = curr;
curr = next;
}
return prev;
... | e4f69eec9b2041350844755dde62b2b636ac72de | [
"Markdown",
"C++"
] | 2 | C++ | stushar12/CPP-253 | fcd860882cf5e09f07e8de4d33c65d6689bccd11 | af8fd29fbbceea2d770622754c40e739da98d428 |
refs/heads/master | <repo_name>ChiliMonanta/terraform-template<file_sep>/makefile
ifeq ($(env),global)
TFVARS="global.tfvars"
STATE=output
base="environments/global"
else ifeq ($(env),prod)
TFVARS="prod.tfvars"
STATE=output
base="environments/production"
else ifeq ($(env),stage)
TFVARS="staging.tfvars"
STATE=output
b... | 57d6a0f6ea29a7d7292e840eb86e04b3b631fba7 | [
"Markdown",
"Makefile",
"Shell"
] | 3 | Makefile | ChiliMonanta/terraform-template | a82d8c0cce40d51912d5d031a4a3be2c81a677b4 | fbed2ac54cd0286648cfbdb2c138cebfa0c6de6f |
refs/heads/master | <repo_name>vinegar17/testcode<file_sep>/demo.py
print("hello word")
print(23333)
print(2.33)
print({})
print("干活干活干活"+"xixixix")
print("哈哈哈哈")
name = "连续性"
print(name)
res = (2*3/3+4)%3
print(res)
a = int(input("请输入",))
a/2 == 0
print("偶数") | 93ca53021a2182eee7fe3d9d85c4509d01001cd3 | [
"Python"
] | 1 | Python | vinegar17/testcode | bec6cc5b4050291c36f97e3af9a0971e2fefe935 | 579b1f033070fe5637d020468147903945091507 |
refs/heads/master | <repo_name>HEDMU-2015/PTE<file_sep>/PTE/Implemenation/Logic/PTEController.java
package Logic;
import java.util.List;
public interface PTEController {
public final static String PTE_FOLDER = "PTECalculator";
public void vaelgProfil(Profil profil);
public void tilmeldObserver(Observer observer);
pu... | c88c656e860da4ebafb075ee83a63096b3704452 | [
"Markdown",
"Java"
] | 50 | Java | HEDMU-2015/PTE | e9e93eeb93b7f69e896fd2dfc4cc02ebc195a902 | 58d02f08ac6907d4d5ce865392acae0e6d85d1fc |
refs/heads/master | <file_sep>export interface IUser {
id: number,
name: string,
username: any,
email: any,
address: any,
phone: any,
website: any,
company: any
}<file_sep>export default class ApiError {
public status: number
public message: string
constructor(status: number, message: string) ... | 4ae37212fd526b040bd86d40d4fe101e58befc8a | [
"Markdown",
"TypeScript"
] | 21 | TypeScript | CristianH21/typescript-backend-boilerplate | 97911ae7db7afabff8d0ed6809d1772d114ef00c | 12ba6a5267ab052d31c5c07fdd8d1d12db19ee4c |
refs/heads/master | <repo_name>Gigaspaces-sbp/IECloud<file_sep>/postinstall/run.sh
#!/bin/bash
echo curl -i --data '@/opt/scripts/note.json' -X POST http://$1/api/notebook/import
curl -i --data '@/opt/scripts/note.json' -X POST http://$1/api/notebook/import
<file_sep>/postinstall/Dockerfile
FROM debian
COPY ./note.json /opt/scripts/note... | 3937bcbf8da89e98b458a12232306fc37403b001 | [
"Dockerfile",
"Shell"
] | 4 | Shell | Gigaspaces-sbp/IECloud | 1734f5efb18fdb8e0616df447a1881ecb5b286f7 | 46f16860d085099496ace08d93bc16cd707da56c |
refs/heads/master | <repo_name>kozmic-labs/title-from-url<file_sep>/test.js
var test = require("prova");
var title = require("./");
test('generate a title from url', function (t) {
t.plan(9);
t.equal(title('http://wikipedia.org'), 'Wikipedia');
t.equal(title('http://wikipedia.org/'), 'Wikipedia');
t.equal(title('encrypted.google.... | b7ba111a31fe7ecdf3a999596a5a811c54580e9c | [
"JavaScript"
] | 1 | JavaScript | kozmic-labs/title-from-url | 49527e9e20621454e0f9ee5732b561561864b07e | 92bb3755e29b314097162fff0ad4069d4ad99efb |
refs/heads/master | <file_sep># IS211_Assignment13
IS Homework Assignment
Please be sure to pip install all the modules listed in requirements.txt file
<file_sep>#!d:\notes\drconnork\python csv\is211_assignment13\student\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'alembic==1.3.1','console_scripts','alembic'
__requires__ = 'ale... | 2bf6f8b2ef9f39d5c44e9038bf8037cf1740a7d0 | [
"Markdown",
"Python"
] | 3 | Markdown | NRJoseph49/IS211_Assignment13 | ca377db392644c31e0896ca5f875b909521ce08f | 96ac6a8659aaec02304158790d8fe569786eca3e |
refs/heads/master | <file_sep>//
// MovieCellViewModel.swift
// RappiTest
//
// Created by <NAME> on 1/30/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
import Foundation
import UIKit.UIImage
protocol MovieCellViewModelDelegate: class {
func didReceivePosterImage(_ image: UIImage?)
}
final class MovieCellViewModel {
... | 979d6b2c01a84e4207210dcae59fd7bb124419d2 | [
"Swift",
"Markdown"
] | 16 | Swift | lugearma/RMovieTest | 854277070cccd83cf497550429532454fe072587 | 85ce7542345b07e8db6534a827e20f7b31912fea |
refs/heads/master | <repo_name>KMattis/Chess<file_sep>/Chess/MoveGenerator.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using static Chess.MoveHelper;
namespace Chess
{
public class MoveGenerator
{
private Board board;
//Mark where the pinned pi... | 3c5f3beec1720e1658f5b28bdb0105f3e474ec73 | [
"C#"
] | 13 | C# | KMattis/Chess | 9cdf6d61a23d07ad71b7117aede1a8e3e6f3a8e1 | 4404e5063ab2a455a087efc86d6f322c648b1b4a |
refs/heads/master | <repo_name>wennycooper/IR_receiver_rosserial<file_sep>/IR_receiver_rosserial.ino
#include <ros.h>
#include <std_msgs/UInt16.h>
#include <geometry_msgs/Vector3.h>
#define LOOPTIME1 10
unsigned long lastMilli1 = 0;
#define LOOPTIME2 1000
unsigned long lastMilli2 = 0;
ros::NodeHandle nh;
//std_msgs::UI... | 802c4a37fcc9b1fcd95be6b45698633b3da5b9dd | [
"C++"
] | 1 | C++ | wennycooper/IR_receiver_rosserial | f6431df48c18a396b9d6aa3c891ef871247f77bf | 55a3c21f2d31f1291f001f4d018019a8f03512bd |
refs/heads/master | <file_sep>//create firebase reference
var dbRef = new Firebase("https://el2017-30cf0.firebaseio.com/");
var contactsRef = dbRef.child('contacts')
var longitude = [];
var latitude = [];
var cars = [];
var j = 0;
//load older conatcts as well as any newly added one...
contactsRef.on("child_added", function(snap) {
cons... | 01046a736c0c17a84dabd3dae73b3c273890c087 | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | luvpatel801/EL-Firebase-Project | 09f34cce6191fc6367d82293d9d351b8e0cdd976 | abad3f40d962146fd80c113fb67383dd1d7865b3 |
refs/heads/master | <repo_name>kodluyoruz-react-bootcamp/odev-1-ozanorkun<file_sep>/src/app.js
import getData from "./lib/service";
let data = getData(1);
data.then((result) => console.log(result)); | 4f4a0ad677f101c42a0a1ece0ed19ca6fc644028 | [
"JavaScript"
] | 1 | JavaScript | kodluyoruz-react-bootcamp/odev-1-ozanorkun | f8174a0564dc2ec5073da31f58338f3d02d53494 | 03a49416fb5d81b5b0fc914415a8297394a6b8c0 |
refs/heads/master | <file_sep>using ImageOrganizer.Web.CustomLogic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
namespace ImageOrganizer.Web.Controllers
{
public class ImageController : Controller
{
public ActionResult Get()
{
... | fed482622fa4f041b8f573dfa673d41a187f577e | [
"JavaScript",
"C#",
"Markdown"
] | 14 | C# | matthiasbruch/ImageOrganizer | 6eb295223014be4fdf4baa0867faa1e6087b17ce | bcde6a9f3ec3ea978e0e8c7de7481c96d3fa301e |
refs/heads/master | <file_sep># Cookbook Name:: ssm
# Recipe:: default
# Copyright 2017, REANCLOUD
case node['platform']
when 'ubuntu'
execute 'update' do
command 'apt-get update -y'
end
execute 'install' do
command 'wget "https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/debian_amd64/amazon-ssm-agent.d... | 9c22c0b4fdc738e142e4589a2f298bb149fbadf8 | [
"Ruby"
] | 3 | Ruby | priyanka561/ssm | 4697cdd41d6d0067159e47c7f232e3b312aee2da | 4c45f87313d3c671d4e1f348aaf1033ac49d3fba |
refs/heads/master | <file_sep>import uniqueRandomArray from 'unique-random-array'
import starWarsNames from './starwars-names.json'
export { starWarsNames as all}
const getRandomItem = uniqueRandomArray(starWarsNames)
export let random = number => !number
? getRandomItem()
: Array(number)
.fill()
.map(getRandomItem)
<file_se... | 6a210d98e78a1c50ae2ba96e8550800aff5a110b | [
"JavaScript",
"Markdown"
] | 2 | JavaScript | avilapedro/starwars-names | d10abd3a546d9d0d0fe9cc393e166935dce8ac18 | 07063ad4c41aada0341d38729aa0d36a473c2620 |
refs/heads/main | <repo_name>dobo90/ghidra-minidump-loader<file_sep>/MinidumpLoader/src/main/java/net/jubjubnest/minidump/loader/parser/MinidumpModule.java
package net.jubjubnest.minidump.loader.parser;
import java.io.File;
import java.io.IOException;
import java.nio.ByteBuffer;
import ghidra.app.util.bin.ByteProvider;
public... | 3dae6353a3aab4892c490a5d5928144fb5b487fa | [
"Markdown",
"Java",
"INI"
] | 17 | Java | dobo90/ghidra-minidump-loader | 025da0a34eaeda71fca437c3dd555db5f4522fcc | a3698958ac0d3062bf3f0641fd32c59ab3f9eed8 |
refs/heads/master | <file_sep>import csv,sys,os,re
import numpy as np
MONTH ={}
MONTH["Jan"] = 1
MONTH["Feb"] = 2
MONTH["Mar"] = 3
MONTH["Apr"] = 4
MONTH["May"] = 5
MONTH["Jun"] = 6
MONTH["Jul"] = 7
MONTH["Aug"] = 8
MONTH["Sep"] = 9
MONTH["Oct"] = 10
MONTH["Nov"] = 11
MONTH["Dec"] = 12
def get_bloomberg_time(row_string):
time_search = ... | 31ebebc6cb9fb6ee0763b1e8a828a829522a2ad6 | [
"Markdown",
"Python"
] | 8 | Python | wuchichung/apple-stock-price-trend-prediction | 0c48a55d605f82ca311d85a07c38d9fa50013521 | d14e25da461fd8e1bbeab72e9bb280e45ba51826 |
refs/heads/master | <file_sep>import React, { Component } from 'react';
class ArticleDetail extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
const { summary, showSummary, subHeadline, byLine } = this.props;
const displaySummary = showSummary ?
<div className='home-articl... | 680dd1940eee81b40ed4577a435a673903d0eaf9 | [
"JavaScript"
] | 2 | JavaScript | mbetances805/dwReact | 2e5f021c12a5339a79e1f6eeef29151e0eca3d30 | a6131e09d7c95c3171039c192d583413e6832c25 |
refs/heads/master | <file_sep>hello! world
Today is a windy day.
Today is December 7th.
<file_sep>package homework.twice;
interface Computable<E>{
E add(E other);
E minus(E other);
}
class Vector implements Computable<Vector>{
private int x,y;
Vector(int x, int y){this.x=x;this.y=y;}
public Vector add(Vector other){
... | daf4e3cdb975fa8a6a02b62aa338ea66f4769da3 | [
"Java",
"Text"
] | 5 | Text | HeWeiChun/Homework5 | dab8c13a6bcdb48688877d136f22e23b305860fc | 959a48f65b5aca1f2655685b478245c71e10a8b2 |
refs/heads/main | <repo_name>Mihakgma/concat_all_excel_tables_into_only_one<file_sep>/Concat_all_Excel_tables_into_ONLY_ONE.py
#!/usr/bin/env python
# coding: utf-8
# In[15]:
import os
import pandas as pd
from datetime import datetime as dt
# In[2]:
print(f'Текущая рабочая директория {(os.getcwd())}')
# In[3]:
#os.chdir('C:/U... | 9e18ca75fb8c9eac2fb8b7e0629ded0ee4085797 | [
"Python"
] | 1 | Python | Mihakgma/concat_all_excel_tables_into_only_one | 231b836950682849848a7cc2f72e94b40d02c678 | 052ba0fae5e359c8c80f6afed09cce04f0676d87 |
refs/heads/master | <repo_name>uS-aito/QueensLanceWebApp<file_sep>/QueensLanceHQ-WEBAPP/QueensLanceHQ-WEBAPP/MainForm.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace QueensLanceHQ_WEBAPP
{
public partial class MainForm : System.... | c5ab6cd712d9365ffc668a66eaa658c350538b6e | [
"C#"
] | 1 | C# | uS-aito/QueensLanceWebApp | 54fe74072a56f73f0624abf6d6037cb48ee9e6aa | ec798b3242c73ec5fc48c6861f2ec0d1bb8f91ce |
refs/heads/master | <repo_name>afrodeb/SuperGroupAssessment<file_sep>/front/web/src/app/login/login.component.ts
import { Component, OnInit } from '@angular/core';
import {Router} from "@angular/router"
import { UserService } from '../user.service';
import { User } from '../user';
@Component({
selector: 'app-login',
templateUrl: './lo... | fb6f745eb2f53c1e1e3bb4908ac95c1a92c3b31f | [
"SQL",
"HTML",
"Markdown",
"INI",
"Java",
"TypeScript"
] | 16 | TypeScript | afrodeb/SuperGroupAssessment | 7aff81f22c3714bb3a28650c2ed232bd6e227b21 | 234ae4d296526dae9e0e9b1af051fc79e696b5c7 |
refs/heads/master | <repo_name>keiiti975/Insect_Phenology_Detector<file_sep>/model/resnet/unused/data_augmentation.py
# -*- coding: utf-8 -*-
from os.path import join as pj
import random
import torchvision
from model.resnet.unused import aa_transforms
from model.resnet.unused import faa_transforms
class AutoAugment(object):
def __in... | f15893d59f72ecd474ad6c2c0610b69ec264fed8 | [
"Markdown",
"Python"
] | 40 | Python | keiiti975/Insect_Phenology_Detector | 1a32b4967a079dd41c888706902e8ec98968dbf0 | 029999fb0fc310e6b9fd38201ac12003f25db63e |
refs/heads/master | <repo_name>zack-cpp/McCulloch-Pitts<file_sep>/main.c
#include <stdio.h>
#include <stdlib.h>
short int loop = 0;
struct MCP{
// OR dan AND
short int www;
short int ttt;
short int xxx[3];
short int yyy;
unsigned short int hasil;
// XOR
short int w1, w2, w3, w4, w5, w6;
s... | dad6d6ec9635f9e9b0e1349101319a84d3720284 | [
"C"
] | 1 | C | zack-cpp/McCulloch-Pitts | 969a948d7a5708350535e7a68df3a71d02b76a7d | e4f15a3442eeb53bcc38ac52341b5333a00830d1 |
refs/heads/master | <file_sep>module.exports = {
// 启动指令,默认为 F12
launchDirect: 123,
// 是否覆盖 window.console,默认为否
overwriteConsole: false,
// 是否设为全局变量(window.Xlog),默认为否
isGlobalParameter: false,
// 初始是否显示默认为否
display: false
};<file_sep>var VirtualElement = require('./virtual-element');
var VirtualBody = function () {... | cc50c4742a87df1ccc37e52e20873a8c04be4195 | [
"JavaScript",
"Markdown"
] | 14 | JavaScript | tedtse/xlog | 4e3902c6b364b35de371682a5de378af7162a3f6 | a7f568addc661c321781251e417c3955cdcbb9e1 |
refs/heads/master | <repo_name>yuki5647/block-braekar<file_sep>/Assets/ball.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ball : MonoBehaviour
{
public float speed = 5.0f;
private Rigidbody myRigidbody;
private float coefficient = 0.9f;
private boo... | 0b30ea9a182065ce5bdc735f3118433de2ab5b66 | [
"C#"
] | 1 | C# | yuki5647/block-braekar | b0c2703a4644469bc0e1fa40ccf399c039674056 | 0905f78b885232214edc1dd2af1c8c1e238782b5 |
refs/heads/main | <repo_name>prabal4546/Instafilter<file_sep>/Instafilter/ContentView.swift
//
// ContentView.swift
// Instafilter
//
// Created by <NAME> on 18/11/20.
//
import CoreImage
import CoreImage.CIFilterBuiltins
import SwiftUI
struct ContentView: View {
@State private var image:Image?
@State private var fi... | 168362fc6efcdc37777d1456eec9c0bd536d5edc | [
"Swift"
] | 1 | Swift | prabal4546/Instafilter | 8c196531becb738337c91a3a507e1e15af378c32 | 8c6d4e0220f960bf528456b61a381452450f5345 |
refs/heads/master | <repo_name>MikleGod/WiseTechProdMatrix<file_sep>/src/main/java/model/Matrix.java
package model;
import java.util.ArrayList;
import java.util.List;
public class Matrix {
public List<List<String>> matrix;
public List<String> markets;
public List<String> assort;
public Matrix(){
markets = new Ar... | 50b42a24a15b0b9a8b986353ae1a8a4c74d00f82 | [
"Markdown",
"Java"
] | 2 | Java | MikleGod/WiseTechProdMatrix | 84b576beabb658d4a3f6642357be5abeb1501633 | 36e4ad4dae01b2b8b7b2daac2e0fc6b189a140d8 |
refs/heads/master | <file_sep>import { Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { HttpClient } from '@angular/common/http';
import { Sound } from '@shared/sound.interface';
import { trigger, transition, style, animate } from '@angular/animations';
@Component({
selector: 'app-root',
templateU... | 60f19a27c3979ce33eeb4dd19e9955487e739a30 | [
"Markdown",
"TypeScript",
"HTML"
] | 6 | TypeScript | pedroCX486/noizee | 4b228b93b1462a7d0d4b69c8ebb7196ee6d13652 | 9c1a676c2a7f1023e881d9039662b03a004cd3b9 |
refs/heads/master | <file_sep>package construct_binary_tree_from_inorder_and_postorder_traversal
import (
"fmt"
)
const (
)
type TreeNode struct {
leftNode *TreeNode
rightNode *TreeNode
value int
}
func BuildTree(preOrder []int, inOrder []int)(root *TreeNode){
if len(preOrder) != len(inOrder) {
panic("The number "+len(pr... | 548642bbcb5ec49b84ad8678ce3277a5edd681aa | [
"Markdown",
"Go"
] | 26 | Go | cheyang/leetcode.go | 5a37c829b9f5c8ab51929170a5473a562acb10fe | 8e1178d72c6590c1c3bd234d8a90f891ecbcbd26 |
refs/heads/master | <repo_name>ishawakankar/CircleCI-Github<file_sep>/test/test.js
/* eslint import/no-unresolved: 0 */
/* global it describe beforeEach: true */
const chai = require('chai');
chai.should();
const supertest = require('supertest');
const chaiHttp = require('chai-http');
const serverObject = require('../server');
const { ... | 0641820c529fde3f246746751f9195ae7e6093d7 | [
"JavaScript",
"Markdown"
] | 3 | JavaScript | ishawakankar/CircleCI-Github | 447645d81a4af6b41c3d072f4f6e748262d1c619 | f3264d42f52176b072448eedd6c38c5c3ff935d8 |
refs/heads/master | <file_sep>import React from 'react';
import { ThemeProvider } from 'styled-components'; // Responsável por receber o tema que configuramos globalmente e disponiblizá-lo para toda aplicação
import { Reset } from 'styled-reset';
import Home from './pages/Home';
import theme from './theme';
function App() {
return (
... | 0be2407c1159037948158d7c13ae21a807158b48 | [
"JavaScript"
] | 1 | JavaScript | guilherme25alves/restaurants-search | 0b334b62c189bcec02bc10e425d3c2096616be23 | 47662eab274f387e0f83e7e160bb22edc6897dbe |
refs/heads/master | <repo_name>orbitwhitex/sfdclearning<file_sep>/app/controllers/accounts_controller.rb
class AccountsController < ApplicationController
def index
client = Restforce.new(username: ENV['SALESFORCE_USERNAME'],
password: ENV['<PASSWORD>'],
security_token: ENV['SALESFORCE... | 9b2abb9f58b2e954acdece96be331a8012d0479d | [
"Ruby"
] | 1 | Ruby | orbitwhitex/sfdclearning | d1c6a70d782d119fe8f7aee8df189067670972c9 | fd8f299b546199fd8133aa0beac02e81dddcf94a |
refs/heads/development | <repo_name>erezfree29/Tic_Tac_toe<file_sep>/spec/player_spec.rb
require_relative '../lib/player'
describe Player do
describe 'create player' do
it 'check that a player can be created with a name and a symbol' do
player = Player.new('David', 'X')
expect(player.name).to eql('David')
expect(player.... | 8d74f9f61e5f906eabacf7f23cc3cc8e862c7299 | [
"Markdown",
"Ruby"
] | 7 | Ruby | erezfree29/Tic_Tac_toe | 452005382c9f47bebe50b128907d66d797adaa3e | febeec38f46a733d0d9d7fe1523c798431452f79 |
refs/heads/master | <repo_name>linfeique/UserAPI<file_sep>/UserAPI/Controllers/TipoUsuarioPermissao01Controller.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using UserAPI.Domains;
n... | bff0f24edbe61eca0ffa737141d013c02dad80a6 | [
"C#"
] | 4 | C# | linfeique/UserAPI | ec8101901e7578aa8115ba0c65031e69e8032e90 | f8846d53b427291bfcb745708a6639b130066c94 |
refs/heads/main | <repo_name>Roberto-spec/practice-generics<file_sep>/src/main/java/org/itstep/step01/ObjectPairDriver.java
package org.itstep.step01;
import org.itstep.step01.exeption.*;
/**
* Класс для тестирования кортежа ObjectPair
*
* @author <NAME>
* @version V1, 8/2016
*/
public class ObjectPairDriver {
/**
* Соз... | 17036089871d4db64201ef8a1401ed8d79ad9d9b | [
"Java"
] | 3 | Java | Roberto-spec/practice-generics | 3974b9ccfb4938691d72e84004c1811648e52c4a | 7e423f92b6d891cf2425f0cb634a2939fdcb18c6 |
refs/heads/master | <repo_name>OlavHN/tfweb<file_sep>/tfweb/model.py
import tensorflow as tf
import numpy as np
import aiohttp
import functools
import tempfile
import io
from zipfile import ZipFile
from urllib.parse import urlparse
dir(tf.contrib) # contrib ops lazily loaded
class Model:
default_tag = tf.saved_model.tag_constants... | 77efa15f2d300318e680b5578f8fa1b658106b0e | [
"Markdown",
"Python"
] | 13 | Python | OlavHN/tfweb | 815e5c67b79b2057fdfe6ccb38a5c721836085a3 | 9f1559a45683caed2702d16a07aa552e4728d60d |
refs/heads/master | <file_sep>#!/bin/bash
cp target/JenkinsWar.war /opt/tomcat/apache-tomcat-9.0.46/webapps
| 285d85aa45fbdf4ac919d0aad08d5e728492f04d | [
"Shell"
] | 1 | Shell | sree1786/maven1 | 4b29bec160dda08b2eed57c614a3881e1a36dc30 | 11da822ffd9e84e4d812165fb707a8a59b2022e0 |
refs/heads/master | <repo_name>raggsokk/GraphiteSharp<file_sep>/GraphiteSharp/CarbonClientOptions.cs
#region License
//
// CarbonClientOptions.cs
//
// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation ... | b30143a9436d83a82fc38e7fedb365d3de8f3790 | [
"Markdown",
"C#"
] | 5 | C# | raggsokk/GraphiteSharp | 2fa3c1a20c1611c6aa3a38eb24052609143e54b8 | 0664315d66f0f1ef67b29a0493ab65dafcc771ba |
refs/heads/master | <file_sep>import torch
import CI_utils.CI_utils.graphs
def visualize_model(model, train_loader, device):
model.eval()
model.to(device)
lbls = []
encodings = []
with torch.no_grad():
for inputs, labels in train_loader:
inputs = inputs.to(device)
labels = labels.... | 1cc4d101559ee07386d6d0d0442fb54cb3d904fd | [
"Markdown",
"Python"
] | 13 | Python | ci-group/CI_utils | 1102425eeab194bd5390273909c8437a1c102d68 | 63dba00d7a4e2590cda2c21a58c2dc7f4bb4c9c2 |
refs/heads/master | <file_sep>droidconNL2013
==============
Presentation for droidcon NL 2013
Developement Tools
------------------
This presentation uses [reveal.js][revealjs] which advocates itself as
> HTML Presentations Made Easy
Furthermore we use [bower][] to install packages for the web.
bower depends on [npm][] for its insta... | bf8ab7a667bd5f5e768140df0099fc718921b1b4 | [
"Markdown",
"JavaScript"
] | 3 | Markdown | androidpi/droidconNL2013 | b8b2fbbe9bc177896233e28068606d7782d704fd | 3ee416a6f5ec72d2075081c0ad10d6c40f5f7bdc |
refs/heads/master | <file_sep>draft_cm = require(GetScriptDirectory()..'/CM/handle')
function Think()
if (GetGameMode() == GAMEMODE_CM) then
draft_cm.Handle()
else
print('Other mode launched, bypass')
end
end
<file_sep>require(GetScriptDirectory()..'/utils/hero_bot_data')
M = {}
local cm_draft = {
[HERO... | 9d73efdd1039e218ee884c11f4fe33125f16ecab | [
"Markdown",
"Python",
"Lua"
] | 4 | Lua | Dalanar/DotA2DraftBot | 6ff222782a6c40d99004eeee101ca912e6e8dd11 | 4b3591b389b56e70729bf95d0b5509f9b00fafeb |
refs/heads/main | <file_sep>package com.service.openapi.trade.naverapi.entity.naver;
import java.io.Serializable;
import javax.persistence.*;
import com.service.openapi.trade.naverapi.entity.EntityBaseAudit;
import lombok.*;
@Entity
@Table(name = "naver_shopping_category")
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Getter
pu... | dd6be38c1b1008a33ab3213bdcb00acfcb3f3017 | [
"Java"
] | 6 | Java | Yabamui/trade-information-naver-service | 8da6a9afb8043d6934f46d4eccfa0be9328cddef | 39d6321d8136018765e2f87a522c60bbcea4f9e9 |
refs/heads/master | <repo_name>franciscocabral/courses<file_sep>/01-getting-started-with-angular2/src/introduction-to-pipes/lesson.ts
import {Component} from "@angular/core";
import {bootstrap} from "@angular/platform-browser-dynamic";
import {SortPipe} from "./sort.pipe";
@Component({
selector: 'app',
pipes: [SortPipe],
t... | efc0a2d441d1f76713fe8c6c5e511bdf0754b06b | [
"Markdown",
"TypeScript",
"JSON with Comments"
] | 22 | TypeScript | franciscocabral/courses | 6b5748af5a3a45a23af02073ee68ac74fadb62e8 | 12bbbec24b43ef30d97f7941b32ed8478bd31b92 |
refs/heads/master | <repo_name>Nilsen89/AStar<file_sep>/a_star.py
import sys
class AStar:
def __init__(self):
return 0
class Data:
tree = list()
goal = [0,0]
start = [0,0]
def __init__(self):
with open(sys.argv[1], 'r') as my_file:
row = 0
for word in my_file:
... | 8a60077da2de423c5f97c26468731a387baf6bd2 | [
"Python"
] | 1 | Python | Nilsen89/AStar | a9862d1afcb389ed7b71f9724b3c4446b37e9feb | 888fb88fa0ddb0befcb38f0c0ba9e76fd6470368 |
refs/heads/master | <repo_name>Mirage20/cloudbox-provider-app<file_sep>/app/Http/Controllers/ClientController.php
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;
class ClientController extends Controller
{
public function addClient()
{
$client_id = request()->input('client_id');
$clien... | 32520477ad12c1cbb10c0e2f4e63f7080eca47d6 | [
"PHP"
] | 1 | PHP | Mirage20/cloudbox-provider-app | fc2618424c7fc65c3eb07ebd24c0f3185cb7c2bb | 76e495f83d3437bb2f62379339fb6428b4a50720 |
refs/heads/master | <file_sep>using UnityEngine;
using UnityEngine.Events;
using UnityStandardAssets.Characters.FirstPerson;
namespace AppartementTemoins
{
using UI;
using Definitions;
/// <summary>
/// Game Global State Singleton.
/// </summary>
public class GameState : MonoBehaviour
{
[SerializeFie... | de4cd32501f83bebc3bb9e10fdbd10cc70c3d49c | [
"C#"
] | 9 | C# | Zusoy/AppartementTemoin | 93fb0f590dfe45d350ae907a88115ebe21998aa9 | 4aa700b0ae5802e3ed811f755ed4f039eefaf71f |
refs/heads/main | <file_sep>require "ruby2d"
set background: "navy"
set fps_cap: 20
#width = 640/20 = 32
#height = 480/20 = 24
GRID_SIZE = 20
GRID_WIDTH = Window.width/ GRID_SIZE
GRID_HEIGHT = Window.height/ GRID_SIZE
class Snake
attr_writer :direction
def initialize
@positions = [[2, 0], [2, 1],[2, 2],[2, 3]]
@direction = 'd... | 63e8a8ee303ac301a7bd5fe4bee0b97d6b6e0b84 | [
"Ruby"
] | 1 | Ruby | QuatroQuatros/Ruby_SnakeGame | 2666b7fa73c9429b70d88ab4af672610f97ebe2c | a3aa6fcef7ecf081d427c29b31ac99c852ac0e69 |
refs/heads/master | <repo_name>amogh-git09/TinyJSCompiler<file_sep>/demo3.js
var a = new Array(1);
var fib = function(x) {
if (x > 1) {
a[x] = fib(x-1) + fib(x-2);
return fib(x-1) + fib(x-2);
}
else {
a[x] = 1;
return 1;
}
}
f... | 38265c9689e9eaeeb07a309a2fb7cbb207a18665 | [
"JavaScript",
"C",
"Makefile",
"Shell"
] | 7 | JavaScript | amogh-git09/TinyJSCompiler | 5ed33ae0b00d95dcdb0e67605399ab75c51a8ea6 | 93c7de26bf16ebe47e9761736397712087914f17 |
refs/heads/master | <repo_name>LauraRussels/MP-Core<file_sep>/src/com/mpcore/main/util/enforcer_util/Alternate_Account.java
package com.mpcore.main.util.enforcer_util;
import com.mpcore.main.MPCore;
import org.bukkit.entity.Player;
public class Alternate_Account {
private MPCore core;
public Alternate_Account(MPCore core) {
... | b8fdd4351c7808e27bffa737012ad62a74fd7c6c | [
"Java"
] | 4 | Java | LauraRussels/MP-Core | 0f9d7242c76a5e27bbc1de735e6793605a0c682f | c6ca9d01f85f49ce2b55e51eda4023802d67e7ef |
refs/heads/master | <repo_name>pcwitz/hannalandscaping<file_sep>/expertise.html
<!DOCTYPE html>
<html lang=en>
<head>
<title>Cincinnati Landscape Designer | Hanna Landscaping and Design | Expertise</title>
<meta charset=utf-8>
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="descr... | 70a3295d786b780aa8760b538e025f4467cb2558 | [
"Markdown",
"HTML",
"PHP"
] | 3 | HTML | pcwitz/hannalandscaping | 89a4148d25ecea3f44651180daa90da5b86929c6 | 197f09e344c1c36ad7bb72bcfd05b0fcb19e790e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.