id
stringlengths
64
64
content
stringlengths
500
100k
language
stringclasses
29 values
path
stringlengths
4
333
repo
stringlengths
5
116
license
stringclasses
15 values
size
int64
500
100k
lines
int64
26
8.06k
source
stringclasses
1 value
15dc38d2ffd44f06fdc6d6b71340ea19db46532973a9430751bbb42d76622c8e
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace track_downloader { class Program { static void Main(string[] args) { string[] blacklisted = Console.ReadLine().Split(); List<string> filenames =...
C#
Lists/02TrackDownloader/Program.cs
Avarea/Programming-Fundamentals
mit
1,261
46
codeparrot/github-code
d4f37f9d6cb4b8f2e03d135a11bc30c8dac3d440f7796509eb547adb21becdff
// node-vcdiff // https://github.com/baranov1ch/node-vcdiff // // Copyright 2014 Alexey Baranov <me@kotiki.cc> // Released under the MIT license #ifndef VCDIFF_H_ #define VCDIFF_H_ #include <memory> #include <string> #include <node.h> #include <node_object_wrap.h> #include <uv.h> #include <v8.h> namespace open_vcdi...
C
src/vcdiff.h
baranov1ch/node-vcdiff
mit
2,632
107
codeparrot/github-code
6b5ca0261827162ec6329f4661813b906c3ff4c483578464c50a2b515f615962
import assert from 'assert' import { THREAD_COUNT, CURSOR_BUFFER_SIZE, THREAD_COUNTER_BYTE_LENGTH, } from './constants' import { InputCursor, StoredEventBatchPointer, StoredEventPointer, } from './types' const checkThreadArrayLength = (threadArray: Array<number>): void => { assert.strictEqual( thread...
TypeScript
packages/runtime/adapters/eventstore-adapters/eventstore-base/src/cursor-operations.ts
reimagined/resolve
mit
3,122
128
codeparrot/github-code
afc1d8eeec48d98eeb3c52bd27552016a97a37d20b107422d9ebf5c1213db70b
'use strict' let ugly = require('gulp-uglify') ,gulp = require('gulp') ,watch = require('gulp-watch') ,plumber = require('gulp-plumber') ,newer = require('gulp-newer') ,stylus = require('gulp-stylus') ,jade = require('gulp-jade') ,concat = require('gulp-concat') ,rename = require('gulp-rename') ,runSequence = require...
JavaScript
gulpfile.js
jade-press/jade-press.org
mit
2,290
131
codeparrot/github-code
84b0d5adf94fe79553265b01ad906b59b40f57c0b4fd3a84a4aeed327560effe
/** --------------------------------------------------------------------------- * -*- c++ -*- * @file: particlebody.cpp * * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> * MIT License, see LICENSE file for more details. * ----------------------------------------------------------------------------...
C++
yage/physics/particlebody.cpp
ymherklotz/YAGE
mit
1,426
55
codeparrot/github-code
a6bf85f39e63e6ba1348426467cc9d435854c6fbfd44e531ebcfea2162e3462e
/******************************************************************************** ** Form generated from reading UI file 'modifystationdlg.ui' ** ** Created by: Qt User Interface Compiler version 5.7.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! **********************************...
C
GeneratedFiles/ui_modifystationdlg.h
hustwyk/trainTicket
mit
3,909
115
codeparrot/github-code
25728a49871b56cedd199170056650b453330f4021a070564b97992c714e6fb5
const Lib = require("../src/main"); const assert = require("assert"); describe("plain object output", function () { context("for `JSON.stringify` serializable objects", function () { it("should have resembling structure", function () { const obj1 = { a: 1, b: "b", c: true }; const res = Lib.write(obj...
JavaScript
packages/serialization/test/main.js
awto/effectfuljs
mit
27,905
1,020
codeparrot/github-code
3d97da54a26f1513f0559c2c0b9ac0b05cd94c45c1233758988d9c13f5f564e0
package se.leiflandia.lroi.utils; import android.accounts.Account; import android.accounts.AccountManager; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import se.leiflandia.lroi.auth.model.AccessToken; import se.leiflandia.lroi.auth.model.UserCredentials; p...
Java
lroi-lib/src/main/java/se/leiflandia/lroi/utils/AuthUtils.java
Wadpam/lets-the-right-one-in
mit
3,349
86
codeparrot/github-code
20c2b4e3e8f6b6c0f04d2ecb885494dc3b63afcc570186ad04c2ceef7debc16f
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Xml.Linq; using Reportz.Scripting.Attributes; using Reportz.Scripting.Classes; using Reportz.Scripting.Interfaces; namespace Reportz.Scripting.Commands { [ScriptElementAlias("execute-script")] public class...
C#
Reportz.Scripting/Commands/ExecuteScriptCommand.cs
LazyTarget/Reportz
mit
4,211
122
codeparrot/github-code
1a363783ac5dd1b6301ba4399e7f3d6d557e240ca22ded2c66d4375735f2df42
class IssueTrackerService < Service validate :one_issue_tracker, if: :activated?, on: :manual_change default_value_for :category, 'issue_tracker' # Pattern used to extract links from comments # Override this method on services that uses different patterns # This pattern does not support cross-project refere...
Ruby
app/models/project_services/issue_tracker_service.rb
dplarson/gitlabhq
mit
3,048
110
codeparrot/github-code
3e3ebfa5142c42e54270e0c318165ffea239954de8818f24f4111603fb2b480d
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: bigiq_regkey_license_as...
Python
ansible_collections/f5networks/f5_modules/plugins/modules/bigiq_regkey_license_assignment.py
F5Networks/f5-ansible-modules
mit
19,962
625
codeparrot/github-code
c0357bdfd91861e48feabf05acdde9dbfbcf1f99e9d5b394af26588dd1c651a7
<!DOCTYPE html> <html lang="en-us"> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=devic...
HTML
_site/tag/systemjs/index.html
mikeloll/mikeloll.github.io.jekyll
mit
3,998
160
codeparrot/github-code
7cae2faba696ba96093d3c752503cff48998e774dde98f6cddad26338384cf9f
#!/bin/bash # # bash strict mode set -euo pipefail IFS=$'\n\t' USAGE="Usage:\n Requires AWS CLI tools and credentials configured.\n ./tool.sh install mySourceDirectory\n ./tool.sh create mySourceDirectory myAWSLambdaFunctionName myIAMRoleARN\n ./tool.sh update mySourceDirectory myAWSLambdaFunctionName\n ./tool.sh invo...
Shell
backend/tool.sh
Vilsepi/after
mit
2,234
109
codeparrot/github-code
0bf661bd2f54717ca65319b086f1170d19ca90162f66c0ece9292f57fe2319d7
package sudoku import "fmt" const ( n = 3 N = 3 * 3 ) var ( resolved bool ) func solveSudoku(board [][]byte) [][]byte { // box size 3 row := make([][]int, N) columns := make([][]int, N) box := make([][]int, N) res := make([][]byte, N) for i := 0; i < N; i++ { row[i] = make([]int, N+1) columns[i] = make...
GO
37_sudoku_solver/sudoku.go
Catorpilor/LeetCode
mit
3,258
140
codeparrot/github-code
fa2bd6a9fe77989263f63d31d83f9c3741514599494ae26940f5ad9e602434f1
#include "Fractal.h" Color::Color() : r(0.0), g(0.0), b(0.0) {} Color::Color(double rin, double gin, double bin) : r(rin), g(gin), b(bin) {} Fractal::Fractal(int width, int height) : width_(width), height_(height), center_x_(0.0), center_y_(0.0), max_distance_sqr_(4.0), max_iteration_(32) { pixel_size_ = ...
C++
Fractals/Fractals/Fractal.cpp
theDrake/opengl-experiments
mit
2,212
94
codeparrot/github-code
ac4893def46cd32a34ea285c259aeeddf621b033c33d29827f988787794bc283
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.IO; using Mechanical3.Core; namespace Mechanical3.IO.FileSystems { //// NOTE: For still more speed, you could ditch abstract file systems, file paths and streams alltogether, and just use byte arrays directly. //...
C#
source/Mechanical3.Portable/IO/FileSystems/SemiThreadSafeMemoryFileSystemReader.cs
MechanicalMen/Mechanical3
mit
17,317
501
codeparrot/github-code
465f006db71b249ed6fb1dd4d57ae1adf9dc228fb9de7b4d68ebe1d781f06e88
<!doctype html> <!-- Minimal Mistakes Jekyll Theme 4.13.0 by Michael Rose Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes Free for personal and commercial use under the MIT license https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt --> <html lang="en" class="no-js"> <head> ...
HTML
tags/swift/index.html
preslavrachev/preslavrachev.github.io
mit
7,711
287
codeparrot/github-code
e6ef59ec3b992f983980c6176d6d2c33ebdfbf550341f57f580f2f3a0b18e545
class JudgePolicy < ApplicationPolicy def create_scores? record.competition.unlocked? && (user_match? || director?(record.event) || super_admin?) end def view_scores? (user_match? || director?(record.event) || super_admin?) end def index? director?(record.event) || super_admin? end def togg...
Ruby
app/policies/judge_policy.rb
rdunlop/unicycling-registration
mit
827
46
codeparrot/github-code
2a597a545f0e2db4f777ad0d922d910ae2f86c696e6fc6b4033fa049ade39f07
const Nodelist = artifacts.require("./Nodelist.sol"); const BiathlonNode = artifacts.require("./BiathlonNode.sol"); const SecondNode = artifacts.require("./SecondNode.sol"); const BiathlonToken = artifacts.require("./BiathlonToken.sol"); const Ownable = artifacts.require('../contracts/ownership/Ownable.sol'); // const...
JavaScript
test/3_biathlontoken.js
BiathlonHelsinki/BiathlonContract
mit
7,223
200
codeparrot/github-code
3e8cd68a0341de0c5aa524adb647aedbecd9578670ab32d0ba3821c4aeeec85a
package classfile import "encoding/binary" type ClassReader struct { data []byte } func (self *ClassReader) readUint8() uint8 { val := self.data[0] self.data = self.data[1:] return val } func (self *ClassReader) readUint16() uint16 { val := binary.BigEndian.Uint16(self.data) self.data = self.data[2:] return...
GO
goworkspace/src/jvmgo/classfile/class_reader.go
wonghoifung/tips
mit
874
47
codeparrot/github-code
456a06881ab4ec2398dada84ce143c7eb95f3124f72dc1420af1b991813bda00
import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.HashMap; import java.util.LinkedList; //this code contains the output assembly code that the program outputs. //will have at least three functions: //add(string, string, string, string) <- adds an assembly code line /...
Java
src/ASMCode.java
mjsmith707/KSPCompiler
mit
4,329
175
codeparrot/github-code
acb9858e84657fb1a5204655fa5ca23848dc03bac3bc090ddc15ece8e10188a2
import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core'; import { Filter, FilterType } from 'lib/filter'; @Component({ selector: 'iw-filter-input', templateUrl: './filter-input.component.html', styleUrls: ['./filter-input.component.css'] }) export class FilterInputComponent implements OnIn...
TypeScript
src/app/filter-input/filter-input.component.ts
zorec/ng2-pack
mit
1,320
63
codeparrot/github-code
ef69cb698ff4b61a5216baed715e41326a9cfa021d05cfb4550861ae64b7d600
var express = require('express'); var bodyParser = require('body-parser'); var fs = require('fs') var app = express(); var lostStolen = require('mastercard-lost-stolen'); var MasterCardAPI = lostStolen.MasterCardAPI; var dummyData = []; var dummyDataFiles = ['www/data/menu.json', 'www/data/account-number.json']; dumm...
JavaScript
index.js
perusworld/mcdevapi-lostandstolen-refimpl-web
mit
2,903
98
codeparrot/github-code
82d08a0f5b395729d7a515e8ee6460f3f2279be133d7dcb057858443c7201e80
/* File: Reachability.h Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. Version: 2.1 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, mo...
C
Classes/Service/Reachability.h
hejunbinlan/iOSStarterTemplate
mit
3,955
89
codeparrot/github-code
6e59e41093d37183aca67592f8d2a85f25ccd1b7a522696cb27eadb972a4a091
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Leap; namespace LeapMIDI { class LeapStuff { private Controller controller = new Controller(); public float posX { get; private set; } public float posY { get; pr...
C#
C#/LeapMIDI/LeapStuff.cs
LeifBloomquist/LeapMotion
mit
2,372
74
codeparrot/github-code
0f9de999072a00b5ba84cd37038737265316f69384f15d8509605ba3d9cc1f0e
package com.github.weeniearms.graffiti; import com.github.weeniearms.graffiti.config.CacheConfiguration; import com.github.weeniearms.graffiti.generator.GraphGenerator; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.annotation.Cacheable; import org.springframework.stere...
Java
src/main/java/com/github/weeniearms/graffiti/GraphService.java
weeniearms/graffiti
mit
1,097
33
codeparrot/github-code
fda66fb4d7b0f6b2ce5382850663474592658a4d5d6d12faa5f9f2770de134c5
mod message_set; use std; use std::fmt; use linked_hash_map::{Iter, LinkedHashMap}; use uuid::Uuid; pub mod message; #[derive(Debug, PartialEq)] pub struct Message { properties: Map, body: Option<Value>, } impl Message { pub fn new() -> MessageBuilder { MessageBuilder::new() } pub fn w...
Rust
src/message/mod.rs
heil-hydra/hydramq
mit
12,795
537
codeparrot/github-code
45a227290f330fcc765bbe2ba9ecafe34efe339c353b5cb31e2c3cc837e1fc53
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: warmup -- ------------------------------------------------------ -- Server version 5.5.49-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH...
SQL
doc/warmup.sql
layheng/pog
mit
6,079
181
codeparrot/github-code
1f7a576efdeb3a751a0710ac82b68afbd1dcab0ee74bf0c8ac4284f30ad7403d
<?php namespace Abe\FileUploadBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Confi...
PHP
src/Abe/FileUploadBundle/Controller/UploadController.php
Dabea/BasicLogin
mit
3,780
146
codeparrot/github-code
f362587be94139c1a85218a928bfcf40a35ff9c7b00fa154982fa0881de80e61
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- 選舉資料查詢 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>中選會選舉資料庫網站</title> <link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css"> <script typ...
HTML
mirror/prvCode_07/cityCode_000-areaCode_06-deptCode_032/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_06-deptCode_032-liCode_0587.html
g0v/projectV
mit
5,704
185
codeparrot/github-code
987b1c5945079d9d8f059cea47585ee3127a1ced069f74a62aca4e3d124a0fac
"""This module contains examples of the op() function where: op(f,x) returns a stream where x is a stream, and f is an operator on lists, i.e., f is a function from a list to a list. These lists are of lists of arbitrary objects other than streams and agents. Function f must be stateless, i.e., for any lists u, v: f(u...
Python
ExamplesElementaryOperations/ExamplesOpNoState.py
zatricion/Streams
mit
4,241
144
codeparrot/github-code
8ff4d543b1642d7eb887154b88b004a7cfaecb06f5468f58ffe90e3260a23c6d
#include <stdio.h> struct Employee { unsigned int id; char name[256]; char gender; float salary; }; void addEmployee(FILE *f) { struct Employee emp; printf("Adding a new employee, please type his id \n"); int id; scanf("%d", &id); if (id > 0) { while (1) { //search if id already in use struct Employee t...
C
system-call/main.c
Macelai/operating-systems
mit
4,505
196
codeparrot/github-code
172ab9ab5ceb8dccdff3ddf0fab96daee8794315d1de66b1410f50152dc224be
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using CollegeFbsRankings.Domain.Games; using CollegeFbsRankings.Domain.Rankings; using CollegeFbsRankings.Domain.Teams; namespace CollegeFbsRankings.Domain.Validations { public class ValidationServ...
C#
Domain/Validations/ValidationService.cs
mikee385/CollegeFbsRankings
mit
1,398
39
codeparrot/github-code
7c58ff5220c327bfedf07dd0945f8de60d05f3f31ddc334538a72ea913009348
<div class="container" > <div class="row page-title"> <div class="col-xs-12 text-center"> <span>Consultation</span> </div> </div> </div> <script type="text/javascript"> /** * Created by Kupletsky Sergey on 05.11.14. * * Material Design Responsive Table * Tested on Win8.1 with browsers: Chrome 37, Fire...
PHP
application/views/consultation.php
r45r54r45/simplewe
mit
26,094
710
codeparrot/github-code
33a0d6a202e12fc96e69fd28ae0bb6be54c8488b8fa139c72f12a085df41c5bb
const AppError = require('../../../lib/errors/app') const assert = require('assert') function doSomethingBad () { throw new AppError('app error message') } it('Error details', function () { try { doSomethingBad() } catch (err) { assert.strictEqual( err.name, 'AppError', "Name property ...
JavaScript
test/lib/errors/app.js
notmessenger/poker-analysis
mit
1,211
57
codeparrot/github-code
3da897a106463045b4e97c6b032df36ac06b84cf16d35226443ffb163ff8e515
export default { cache: function (state, payload) { state.apiCache[payload.api_url] = payload.api_response; }, addConfiguredType: function (state, type) { state.configuredTypes.push(type); }, removeConfiguredType: function (state, index) { state.configuredTypes.splice(index, 1); }, update...
JavaScript
Resources/public/js/editor/src/store/mutations.js
IDCI-Consulting/ExtraFormBundle
mit
854
37
codeparrot/github-code
f2036a67025f67c48b4a566242cf07dbb042c1f3fb2906d05c2dbb0a5c695104
var indexController = require('./controllers/cIndex'); var usuarioController = require('./controllers/cUsuario'); var clientesController = require('./controllers/cCliente'); var adminController = require('./controllers/cAdmin'); var umedController = require('./controllers/cUmed'); var matepController = require('./contr...
JavaScript
routes.js
IsaacMiguel/ProchemBio
mit
12,314
232
codeparrot/github-code
811ab9ccea5876e610297d1cba2a57da43cd60c6f592f741e579e33bde31b341
/* Print.cpp - Base class that provides print() and println() Copyright (c) 2008 David A. Mellis. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1...
C++
wrapper/src/cores/arduino/Print.cpp
gokr/ardunimo
mit
5,552
274
codeparrot/github-code
1e04819b0bedfb35ff182119b2fac681f6137fb530e44fd0d8d7d0bf09311440
import { Injectable } from '@angular/core'; /** * Created by AAAA on 3/21/2017. */ //http://stackoverflow.com/questions/9671995/javascript-custom-event-listener //http://www.typescriptlang.org/play/ class MyEvent{ private context:Object; private cbs: Function[] = []; constructor(context: Object){ this.c...
TypeScript
src/app/services/events.service.ts
caohonghiep/lkth
mit
1,639
83
codeparrot/github-code
f1423fd3aad5fbd74d83a49652a49a58b4c1e39be022a785c65b21b6acf51eb5
import random from datetime import datetime from multiprocessing import Pool import numpy as np from scipy.optimize import minimize def worker_func(args): self = args[0] m = args[1] k = args[2] r = args[3] return (self.eval_func(m, k, r) - self.eval_func(m, k, self.rt) - ...
Python
scripts/agent3.py
ndt93/tetris
mit
5,234
188
codeparrot/github-code
75797cacd7c75477aecd04435c24efa9ff23654b31bd88c96f7deef5c9f47ef3
# -*- coding: utf-8 -*- """" ProjectName: pydemi Repo: https://github.com/chrisenytc/pydemi Copyright (c) 2014 Christopher EnyTC Licensed under the MIT license. """ # Dependencies import uuid from api import app from hashlib import sha1 from flask import request from flask import jsonify as JSON from api.models.user ...
Python
api/controllers/users.py
chrisenytc/pydemi
mit
1,151
43
codeparrot/github-code
d9aea72473aac09c56b66da2345bc8bd5416820057b8dc9192e7d0b5996699bc
'use strict'; const buildType = process.config.target_defaults.default_configuration; const assert = require('assert'); if (process.argv[2] === 'fatal') { const binding = require(process.argv[3]); binding.error.throwFatalError(); return; } test(`./build/${buildType}/binding.node`); test(`./build/${buildType}/bi...
JavaScript
plugins/languageAPI/jsAPI/3rdParty/node-addon-api/test/error.js
MTASZTAKI/ApertusVR
mit
2,328
74
codeparrot/github-code
f628bb1fb8e01da3d979e725750904f211c59e9eb0462023215771dde306befc
package redes3.proyecto.nagiosalert; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.ImageView; import android.widget.TextView; public class InfoServiceActivity extends Activity { String nom...
Java
NagiosAlert-App/src/redes3/proyecto/nagiosalert/InfoServiceActivity.java
caat91/NagiosAlert
mit
2,141
74
codeparrot/github-code
a28e37690f4487c1b66df616271083a0cbb6149e7c4870e3964bf5e140948cc5
#include "MultiSelection.h" #include "ofxCogEngine.h" #include "EnumConverter.h" #include "Node.h" namespace Cog { void MultiSelection::Load(Setting& setting) { string group = setting.GetItemVal("selection_group"); if (group.empty()) CogLogError("MultiSelection", "Error while loading MultiSelection behavior: e...
C++
COGengine/src/Behaviors/MultiSelection.cpp
dormantor/ofxCogEngine
mit
2,863
99
codeparrot/github-code
09a8b92ff206a0c097466c03e2716ab3031209b5bf1f8c50cbafd0f0ef69f78d
// The MIT License (MIT) // // Copyright (c) 2016 Tim Jones // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy,...
Java
src/main/java/io/github/jonestimd/finance/file/Reconciler.java
jonestimd/finances
mit
3,250
77
codeparrot/github-code
1d62e3b2d00ce2267f83401c74c4cbd5a2a3790f684803ef44d9d4be3545335f
var express = require('express'), compression = require('compression'), path = require('path'), favicon = require('serve-favicon'), logger = require('morgan'), cookieParser = require('cookie-parser'), bodyParser = require('body-parser'), session = require('express-session'), session = re...
JavaScript
app.js
EdmonJiang/FA_Inventory
mit
2,979
109
codeparrot/github-code
1522d20c1b64e73080b7f25983d5f23aa9af44bf20d19333b134cad416c939a8
/** * CircularLinkedList implementation * @author Tyler Smith * @version 1.0 */ public class CircularLinkedList<T> implements LinkedListInterface<T> { private Node<T> head = null, tail = head; private int size = 0; @Override public void addAtIndex(int index, T data) { if (index < 0 || ind...
Java
Java/CS 1332/Homework 01/CircularLinkedList.java
tsmith328/Homework
mit
4,722
195
codeparrot/github-code
248a89ec989f5c6ae6bff591a688d5799599f028991aa34eb090f8ed63e7c1b3
const os = require("os"); const fs = require("fs"); const config = { } let libs; switch (os.platform()) { case "darwin": { libs = [ "out/Debug_x64/libpvpkcs11.dylib", "out/Debug/libpvpkcs11.dylib", "out/Release_x64/libpvpkcs11.dylib", "out/Release/libpvpkcs11.dylib", ]; break; ...
JavaScript
test/config.js
PeculiarVentures/pvpkcs11
mit
742
37
codeparrot/github-code
0c3283d6a7c4536d24152188802cb350fd801f5700bc8334e442297f1df5935d
<?php # MantisBT - a php based bugtracking system # MantisBT is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # MantisBT is distribut...
PHP
signup.php
eazulay/mantis
mit
2,896
100
codeparrot/github-code
4bc738b347fb5181edf29b62eab325e951778ec62c604e1e50e069a8640dccc9
team_mapping = { "SY": "Sydney", "WB": "Western Bulldogs", "WC": "West Coast", "HW": "Hawthorn", "GE": "Geelong", "FR": "Fremantle", "RI": "Richmond", "CW": "Collingwood", "CA": "Carlton", "GW": "Greater Western Sydney", "AD": "Adelaide", "GC": "Gold Coast", "ES": "Es...
Python
src/scrapy/afltables/afltables/common.py
bairdj/beveridge
mit
1,563
47
codeparrot/github-code
fb8a3af900780c0744c9be45b5546ae4f778b5a2c5ab6b0b4c1beb02607554f8
<?php namespace App\Http\Controllers; use App\Jobs\GetInstance; use App\Models\Build; use App\Models\Commit; use App\Models\Repository; use App\RepositoryProviders\GitHub; use Illuminate\Support\Facades\DB; class DashboardController extends Controller { public function index() { $repositories = Repos...
PHP
app/Http/Controllers/DashboardController.php
michaelst/ci
mit
2,283
79
codeparrot/github-code
880928a980d499f3fec115417682bfa50481e448c2ad4c8690bb47790a40eb72
#pragma once /** * Copyright (c) blueback * Released under the MIT License * https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt * http://bbbproject.sakura.ne.jp/wordpress/mitlicense * @brief OpenGL。 */ /** include */ #pragma warning(push) #pragma warning(disable:4464) #include "../t...
C
source/bsys/opengl/opengl_impl_actionbatching_shader_load.h
bluebackblue/brownie
mit
2,244
125
codeparrot/github-code
d8b54af072fe0f93693e6263ce6582ee352821033514bad6be28c2f049c4bbcc
------------------------------------------------------------------- -- The Long night -- The night gives me black eyes, but I use it to find the light. -- In 2017 -- 公共状态 ------------------------------------------------------------------- L_StatePublic = {} setmetatable(L_StatePublic, {__index = _G}) local _this = L_...
Lua
Assets/Script_Lua/scene/L_StatePublic.lua
cheney247689848/Cloud-edge
mit
1,977
96
codeparrot/github-code
2762fd050fd536f6ffab73acf3fb926850ec87e35cf08e6bc84b9e72a833257c
// Copyright (c) 2020 The Firo Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef FIRO_ELYSIUM_SIGMAWALLETV0_H #define FIRO_ELYSIUM_SIGMAWALLETV0_H #include "sigmawallet.h" namespace elysium { class Sigma...
C
src/elysium/sigmawalletv0.h
zcoinofficial/zcoin
mit
1,664
48
codeparrot/github-code
2de89dc9fec9058abed01b8fa69cac64a689f34a8b0876417460f3a33908159f
/* * @Author: justinwebb * @Date: 2015-09-24 21:08:23 * @Last Modified by: justinwebb * @Last Modified time: 2015-09-24 22:19:45 */ (function (window) { 'use strict'; window.JWLB = window.JWLB || {}; window.JWLB.View = window.JWLB.View || {}; //------------------------------------------------------------...
JavaScript
app/js/helpers/view/gallery.js
JustinWebb/lightbox-demo
mit
3,410
118
codeparrot/github-code
166f8d28e21f51c9ca5b0a16b0b75855b9644e37fb2374ccdf7bf1cd18a457ce
//#define USE_TOUCH_SCRIPT using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; /* * ドラッグ操作でのカメラの移動コントロールクラス * マウス&タッチ対応 */ namespace GarageKit { [RequireComponent(typeof(Camera))] public class FlyThroughCamera : MonoBehaviour { public static bool...
C#
UnityProject/Assets/__ProjectName__/Scripts/Utils/CameraContorol/FlyThroughCamera.cs
sharkattack51/GarageKit_for_Unity
mit
12,869
372
codeparrot/github-code
bbaf6a185b6fcb83c094a6e39332e88fa7ed551596284e9b7116bb5b5623eb60
"use strict"; const readdir = require("../../"); const dir = require("../utils/dir"); const { expect } = require("chai"); const through2 = require("through2"); const fs = require("fs"); let nodeVersion = parseFloat(process.version.substr(1)); describe("Stream API", () => { it("should be able to pipe to other strea...
JavaScript
test/specs/stream.spec.js
BigstickCarpet/readdir-enhanced
mit
7,232
270
codeparrot/github-code
62bb98e1cb5819111dccfe8cd0f246f1c43e05d53772bb121cded28b79821d2e
package com.timotheteus.raincontrol.handlers; import com.timotheteus.raincontrol.tileentities.IGUITile; import com.timotheteus.raincontrol.tileentities.TileEntityInventoryBase; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiScreen; import net.minecraft.entity.player.EntityPlayer; import net....
Java
src/main/java/com/timotheteus/raincontrol/handlers/GuiHandler.java
kristofersokk/RainControl
mit
2,028
55
codeparrot/github-code
eebf7804b055ceef6cdee6ba0806c2ce05d0376d5abf3f98198b48f8e2688983
<?php namespace Matthimatiker\CommandLockingBundle\Locking; use Symfony\Component\Filesystem\LockHandler; /** * Uses files to create locks. * * @see \Symfony\Component\Filesystem\LockHandler * @see http://symfony.com/doc/current/components/filesystem/lock_handler.html */ class FileLockManager implements LockMan...
PHP
Locking/FileLockManager.php
Matthimatiker/CommandLockingBundle
mit
2,166
90
codeparrot/github-code
e5a5b2eec708280bdc17eb75e70e37cd048c26722791e351c5c663464c869cd4
// Core is a collection of helpers // Nothing specific to the emultor application "use strict"; // all code is defined in this namespace window.te = window.te || {}; // te.provide creates a namespace if not previously defined. // Levels are seperated by a `.` Each level is a generic JS object. // Example: // te....
JavaScript
src/core.js
tyleregeto/8bit-emulator
mit
1,772
73
codeparrot/github-code
c11c2dd7db8249f56542a896d6a2de2008fe9c91a4db1962fe82d99d89e2722d
import React from 'react'; <<<<<<< HEAD import { Switch, Route } from 'react-router-dom'; import Home from './Home'; import About from './About'; import Blog from './Blog'; import Resume from './Resume'; import Error404 from './Error404'; ======= // import GithubForm from './forms/github/GithubForm'; import GithubRec...
JavaScript
src/components/Content.js
slkjse9/slkjse9.github.io
mit
2,049
67
codeparrot/github-code
90b64b4edc959439af4f8cf2650670fc468653b6fcc10dc736059cfbaf81f4d3
package cmd import ( "github.com/fatih/color" out "github.com/plouc/go-gitlab-client/cli/output" "github.com/spf13/cobra" ) func init() { getCmd.AddCommand(getProjectVarCmd) } var getProjectVarCmd = &cobra.Command{ Use: resourceCmd("project-var", "project-var"), Aliases: []string{"pv"}, Short: "Get the ...
GO
cli/cmd/get_project_var_cmd.go
plouc/go-gitlab-client
mit
871
39
codeparrot/github-code
857a461dab79f24c4c8866dad29b444a96cbf997d1c2fe149b3a82f363125e3c
package unit.com.bitdubai.fermat_dmp_plugin.layer.basic_wallet.bitcoin_wallet.developer.bitdubai.version_1.structure.BitcoinWalletBasicWalletAvailableBalance; import com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.exceptions.CantRegisterCreditException; import com.bitdubai.fermat_api.layer.dmp_basic_wallet.bitco...
Java
DMP/plugin/basic_wallet/fermat-dmp-plugin-basic-wallet-bitcoin-wallet-bitdubai/src/test/java/unit/com/bitdubai/fermat_dmp_plugin/layer/basic_wallet/bitcoin_wallet/developer/bitdubai/version_1/structure/BitcoinWalletBasicWalletAvailableBalance/CreditTest.java
fvasquezjatar/fermat-unused
mit
5,641
128
codeparrot/github-code
55f4552b748a87bbfe4738d591c709e4c63d24798de1dbf21503bd2df2038c5a
# Nitrogen 2.0 New Features ### New Elements, Actions, and API functions * wf:wire can now act upon CSS classes or full JQuery Paths, not just Nitrogen elements. For example, wf:wire(".people > .address", Actions) will wire actions to any HTML elements with an "address" class underneath a "people" class. Anything on ...
Markdown
CHANGELOG.markdown
kbaldyga/Bazy
mit
5,623
97
codeparrot/github-code
06a4a2847e533ec2c52660716d3e26b3abc228f17f3342c3b858d4a15a292425
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'ar' from layers_basic import LW_Layer, default_data_format from layers_convolutional import conv_output_length ############################################### class _LW_Pooling1D(LW_Layer): input_dim = 3 def __init__(self, pool_size=2, strides=None, padd...
Python
app/backend/core/models-keras-2x-api/lightweight_layers/layers_pooling.py
SummaLabs/DLS
mit
7,111
163
codeparrot/github-code
2879868b021bf87b4ef6a865b41e818c41c4e4ac41e8203cd25bd3caeb849755
require "empty_port/version" require 'socket' require 'timeout' # ## Example # require 'empty_port' # class YourServerTest < Test::Unit::TestCase # def setup # @port = EmptyPort.get # @server_pid = Process.fork do # server = TCPServer.open('localhost', @port) # end # ...
Ruby
lib/empty_port.rb
walf443/empty_port
mit
1,760
80
codeparrot/github-code
beaa78f2d74acd54a04ad47c15d8bf99d2bf9ece0d6559ec6ce9ca3c75143e00
/* * * BitcoinLikeKeychain * ledger-core * * Created by Pierre Pollastri on 17/01/2017. * * The MIT License (MIT) * * Copyright (c) 2016 Ledger * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
C++
core/src/wallet/bitcoin/keychains/BitcoinLikeKeychain.hpp
LedgerHQ/lib-ledger-core
mit
4,962
121
codeparrot/github-code
b0e6c76dfb591ca40c192b84bce7b26719d57ba789f63c28d7d19cfd24c27ea4
using Newtonsoft.Json; using ProtoBuf; using ITK.ModelManager; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Steam.Models { [Model("SteamPlayerBans")] [ProtoContract] [JsonObject(MemberSerialization.OptIn)] public class Pl...
C#
Steam/Models/PlayerBans.cs
inlinevoid/Overust
mit
2,081
70
codeparrot/github-code
3ebaa35de2428192d74f9cda25da6085b2a8e2c1049a59413e355c8bab013b96
const { createServer, plugins: { queryParser, serveStatic } } = require('restify'); const { join } = require('path'); const fetch = require('node-fetch'); const proxy = require('http-proxy-middleware'); const { PORT = 5000 } = process.env; const server = createServer(); server.use(queryParser()); server.get('/',...
JavaScript
packages/embed/hostDevServer.js
billba/botchat
mit
1,094
43
codeparrot/github-code
9de3a0e6f51c726e2ebb0c148a39ced3da3dd4c19fa17fe2ac80bef3dccd511c
/** * @author: * @date: 2016/1/21 */ define(["core/js/layout/Panel"], function (Panel) { var view = Panel.extend({ /*Panel的配置项 start*/ title:"表单-", help:"内容", brief:"摘要", /*Panel 配置 End*/ oninitialized:function(triggerEvent){ ...
JavaScript
example/view/tree/treeAndTable.js
huangfeng19820712/hfast
mit
2,546
74
codeparrot/github-code
a90224bfbdb8cb99c0fd0836fa43120a31b9825a91b86299ca42b90104b57bac
$('#modalUploader').on('show.bs.modal', function (event) { var uploader = new qq.FileUploaderBasic({ element: document.getElementById('file-uploader-demo1'), button: document.getElementById('areaSubir'), action: '/Files/Upload', params: { ruta: $('#RutaActual').val() }, allo...
JavaScript
MVC_Azure_Explorer/MVC_Azure_Explorer/Scripts/UtilsFileManager.js
walalm/MVC-Azure-Explorer
mit
2,109
84
codeparrot/github-code
dad7b7b4cf76a88c3a08d2ca6a5ecc4baf4f320d86e4ea0d836b97f894e2aeab
// // rbLinkedList.h // rbLinkedList // // Created by Ryan Bemowski on 4/6/15. // #pragma once #include <string> struct Node { int key; Node *next; }; class rbLinkedList { public: /** Constructor for the rbLinkedList class. */ rbLinkedList(); /** Deconstructor for the rbLinkedList class...
C
ccpLinkedList/rbLinkedList.h
rrbemo/cppLinkedList
mit
835
46
codeparrot/github-code
e8ed1df42e87fe3b0869de85e615a11edcd09874ea1115ae9a09c07c7cd195c0
import React from 'react'; import ReactDOM from 'react-dom'; import componentOrElement from 'react-prop-types/lib/componentOrElement'; import ownerDocument from './utils/ownerDocument'; import getContainer from './utils/getContainer'; /** * The `<Portal/>` component renders its children into a new "subtree" outside o...
JavaScript
src/Portal.js
HPate-Riptide/react-overlays
mit
3,227
123
codeparrot/github-code
adb099fff7a125572dc6d7cb08ef6544651ad87e1c69d9a9ce0819f37fdf07cd
dojo.provide("plugins.dijit.SyncDialog"); // HAS A dojo.require("dijit.Dialog"); dojo.require("dijit.form.Button"); dojo.require("dijit.form.ValidationTextBox"); // INHERITS dojo.require("plugins.core.Common"); dojo.declare( "plugins.dijit.SyncDialog", [ dijit._Widget, dijit._Templated, plugins.core.Common ], { /...
JavaScript
html/plugins/dijit/SyncDialog.js
agua/aguadev
mit
5,315
196
codeparrot/github-code
2e5c75559c293103896cabcd30fbfa085815776d6eb1806b64982896e1ce1b10
package com.sdl.selenium.extjs3.button; import com.sdl.selenium.bootstrap.button.Download; import com.sdl.selenium.extjs3.ExtJsComponent; import com.sdl.selenium.web.SearchType; import com.sdl.selenium.web.WebLocator; public class DownloadLink extends ExtJsComponent implements Download { public Download...
Java
src/main/java/com/sdl/selenium/extjs3/button/DownloadLink.java
sdl/Testy
mit
1,642
53
codeparrot/github-code
6e656e2c6cac31d657629f80eefa48da4b8e880fc5699e4f2cf2704cd37bfe22
angular.module('perCapita.controllers', []) .controller('AppCtrl', ['$scope', '$rootScope', '$ionicModal', '$timeout', '$localStorage', '$ionicPlatform', 'AuthService', function ($scope, $rootScope, $ionicModal, $timeout, $localStorage, $ionicPlatform, AuthService) { $scope.loginData = $localStorage.getOb...
JavaScript
www/js/controllers/controllers.js
vjuylov/percapita-mobile
mit
8,105
271
codeparrot/github-code
b2a60006753e4ca3741a860df835f61e3a442fcf35c818041949d4bf17d13bf3
/* HardwareSerial.h - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2...
C
zap-2.3.0-windows/papilio-zap-ide/hardware/papilio/avr8/cores/arduino/HardwareSerial.h
chcbaram/FPGA
mit
2,713
96
codeparrot/github-code
438dddf523ec7fc4a8503974216f7726b16d21d43b0e4143a5f1a1bb63c85cc4
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as courseActions from '../../actions/courseActions'; import CourseForm from './CourseForm'; import {authorsFormattedForDropdown} from '../../selectors/selectors'; import toastr from 'toastr'; ...
JavaScript
src/components/course/ManageCoursePage.js
vitaliykrushinsky/react-redux-demo
mit
3,176
131
codeparrot/github-code
5cb2bfe5fa6268c3c934f6659609b32cc7082ab5bd3503be8c7a5e9e830e2e61
AmazonTemplateDescriptionCategorySpecificGridRowRenderer = Class.create(AmazonTemplateDescriptionCategorySpecificRenderer, { // --------------------------------------- attributeHandler: null, // --------------------------------------- process: function() { if (this.specificHand...
JavaScript
src/js/M2ePro/Amazon/Template/Description/Category/Specific/Grid/RowRenderer.js
portchris/NaturalRemedyCompany
mit
28,752
794
codeparrot/github-code
924d176585f4d8e7245c91b946f6eb0b259c9c58668c58719f0e2defe121a256
title: HOWTO: Install Ubuntu on Your Eee PC author: Rami Taibah permalink: howto-install-ubuntu-on-your-eee-pc tags: eee-pc, ubuntu, howto I have [posted]({filename}/blog/2008-02-06-eee-pcfinally.markdown) earlier that the "easy mode" of the Eee PC is like living on the bottom bunker in a basement cell of the Alcatraz...
Markdown
content/blog/2008-02-11-howto-install-ubuntu-on-your-eee-pc.markdown
rtaibah/pelican-blog
mit
4,124
54
codeparrot/github-code
ccaf081a0cf3899f1c498f140c892033bda6c36b84771f24e8261acb5db36fc1
using System; using System.Collections.Generic; using System.Linq; using BlackBox.Service; using EbInstanceModel; using IFC2X3; namespace BlackBox.Predefined { public partial class BbProduct : BbBase { [EarlyBindingInstance] public virtual IfcRelAggregates IfcRelAggregates { get; protected se...
C#
BlackBox/Predefined/BbProduct/BbProduct.cs
donghoon/ifctoolkit
mit
2,469
95
codeparrot/github-code
5a608929fb91072a04fae2c5325fc374036e3cab4a7056a4fdd159d69447084a
################################################## """ symbols(name(s), assumptions...) Calls `sympy.symbols` to produce symbolic variables and symbolic functions. An alternate to the recommended `@syms`, (when applicable) In sympy `sympy.symbols` and `sympy.Symbol` both allow the construction of symbolic variabl...
Julia
src/constructors.jl
JuliaPy/SymPy.jl
mit
6,130
170
codeparrot/github-code
d4f34ff01069908084e963fefc94d425d012da93228c2397113caedcf5a73837
using UnityEngine; public class Crouch : MonoBehaviour { public float crouchColliderProportion = 0.75f; private bool crouching; private float colliderCenterY, centerOffsetY; private ChipmunkBoxShape box; private Jump jump; private Sneak sneak; private WalkAbs move; private AnimateTiledConfig crouchAC; v...
C#
Assets/Scripts/States/Crouch.cs
fabri1983/marioBadClone
mit
2,429
106
codeparrot/github-code
18d7638ce78253770386c8937576ebd63c716d4a129a7bc8a450f0318336f945
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Plato - lib/cmds/nt.js</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/...
HTML
complexity/files/lib_cmds_nt_js/index.html
node-gh/reports
mit
11,120
307
codeparrot/github-code
2ebf125211da96b024909249c09758c1a4fb4da3a52835df95ac241a516c60be
/* * 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. */ angular.module('MetronicApp').controller('UsuariosCtrl', function ($scope, GetSv, $rootScope, PostSv,toaster) { $scope.usuarios =...
JavaScript
web/js/controllers/usuarios.js
JoPaRoRo/Fleet
mit
1,854
72
codeparrot/github-code
7957e72302a63074c72429ff7de31e6b5aed49340c65c4201a332f23cb63ed6a
/* * This file exports the configuration Express.js back to the application * so that it can be used in other parts of the product. */ var path = require('path'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var session = require('express-ses...
JavaScript
config/express-config.js
kurtbradd/facebook-music-recommender
mit
1,002
35
codeparrot/github-code
3d1bd2bb341589c0cf79821726acb3d523e0a47b570a7401c3dae477a3e64691
--- layout: pattern summary: "Base classes for creating simple 'nav-like' lists. Ideal for simple nav menus or for forming the basis of more complex navigation componenets." --- <ul class="tan-nav-menu tan-nav-menu--stacked"> {% for i in (1..4) %} <li class=""> <a href="#">Stacked Link {{i}}</a> </li> {% endfor...
HTML
docs/src/_compounds/nav-menu.html
getdave/tanlinell-framework
mit
500
31
codeparrot/github-code
58a067daec81c85c267b2ae4267ebe9e876e0d765ab394126b9e7bd3cd99bccf
(function() { chai.should(); describe("Dropzone", function() { var getMockFile, xhr; getMockFile = function() { return { status: Dropzone.ADDED, accepted: true, name: "test file name", size: 123456, type: "text/html" }; }; xhr = null; beforeEa...
JavaScript
test/test.js
webfatorial/dropzone
mit
82,310
1,919
codeparrot/github-code
7c124e6e25e962d3977bfc617bf7e619342bb8109e47ea6612caeb45c78ae4e5
#pragma once #include <mime/mimepp/mimepp.h> namespace Zimbra { namespace MAPI { #define PR_URL_NAME PROP_TAG(PT_TSTRING, 0x6707) #define EXCHIVERB_OPEN 0 #define EXCHIVERB_RESERVED_COMPOSE 100 #define EXCHIVERB_RESERVED_OPEN 101 #define EXCHIVERB_REPLYTOSENDER ...
C
ZimbraMigrationTools/src/c/Exchange/MAPIMessage.h
nico01f/z-pec
mit
6,675
226
codeparrot/github-code
174cd28c8d04d01da8bed0134ceb759520b516e877ba29201d3de53950a5a988
<?php namespace TFE\LibrairieBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; class AccompagnementModifierType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilde...
PHP
src/TFE/LibrairieBundle/Form/AccompagnementModifierType.php
durandludovic/tfe
mit
647
34
codeparrot/github-code
ccda22f7a9525552e95725ff52b80e4615222080f245ef9de8a8d66dd2334545
import {HttpClient} from '@angular/common/http'; import {Injectable} from '@angular/core'; import {Observable, ReplaySubject, throwError} from 'rxjs'; import {map, tap, switchMap} from 'rxjs/operators'; import {SocketService} from './sockets'; import {StorageService} from './storage'; @Injectable({ provide...
TypeScript
src/client/services/auth.ts
swimmadude66/YTRadio
mit
2,997
108
codeparrot/github-code
b6dca57498bc338458f6fa659708f95d082f5822eb33caa47d209b2c9da7a953
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About POPCoin</source> <translation>POPCoin-i buruz</translation> <...
TypeScript
src/qt/locale/bitcoin_eu_ES.ts
popcointeam/popcoin
mit
99,892
2,917
codeparrot/github-code
288d42602c36a21d4d69654641adf1b27f388a182489423c1019b533d6c9677f
import sys tagging_filepath = sys.argv[1] following_filepath = sys.argv[2] delim = '\t' if len(sys.argv) > 3: delim = sys.argv[3] graph = {} for line in open(tagging_filepath): entry = line.rstrip().split('\t') src = entry[0] dst = entry[1] if not src in graph: graph[src] = {} graph[src][dst]...
Python
tag_follow_disagreement.py
yamaguchiyuto/icwsm15
mit
857
40
codeparrot/github-code
97e897e3fed0b7ce3d3d5270903b28ce77d32e2a7872d99bee11b334d037cdf4
#!/usr/bin/env python # # Copyright 2010 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
Python
facebook.py
Agnishom/ascii-art-007
mit
20,087
567
codeparrot/github-code
1fd7f46016bdb9e61b76df08489bb8ac877b5f8be9f6d7170a06b1846c8b4e49
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0"> <title>TableTools example - Button collections</title> <link rel="stylesheet" type="text/css" href=".....
HTML
site/plugins/datatables/extensions/TableTools/examples/collection.html
SLM2A/site_adm
mit
17,621
654
codeparrot/github-code
1e093154d82d42d6c855cc8d7e84a31f9a9334cd590e588901124ddd25e62cf3
require 'moosex/types' require 'moosex/attribute/modifiers' module MooseX class Attribute include MooseX::Types attr_reader :attr_symbol, :methods, :attribute_map def is ; @attribute_map[:is] ; end def writter ; @attribute_map[:writter] ; end def reader ; @attribute_map[:reader] ; end ...
Ruby
lib/moosex/attribute.rb
peczenyj/MooseX
mit
7,509
227
codeparrot/github-code
6c9b7299713b488e50d4c2cd98aa717057249be391c06429933e2f3b11271b4f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo...
HTML
lib/assets/images/photon/plugins/elrte/css/css_compiled/js/bootstrap/css/css_compiled/js/plugins/jquery.flot.resize.js.html
user-tony/photon-rails
mit
14,403
183
codeparrot/github-code
73c845ee9dd4c7c00e0ead1b34fb27f0395bfea9794ef92a64110d4ba65177a0
/* * Copyright (c) 2011-2016, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www...
Java
example_apps/AndroidStudioMinnie/sapphire/src/main/java/boofcv/alg/filter/binary/ContourTracer.java
bladestery/Sapphire
mit
6,808
237
codeparrot/github-code
af17026b6e00a20f9d090e92eb28fb1c9a405c8486fb33630034c8a90f1b50bb
#include "estimation/sensors/make_interpolator.hh" namespace estimation { geometry::spatial::TimeInterpolator make_accel_interpolator( const std::vector<TimedMeasurement<jet_filter::AccelMeasurement>>& accel_meas, const ImuModel& imu_model) { std::vector<geometry::spatial::TimeControlPoint> points; ...
C++
estimation/sensors/make_interpolator.cc
jpanikulam/experiments
mit
1,053
31
codeparrot/github-code
6ddaf04bcbf0e714fa05b1b955c844a7003414c8a732212975c1fd3f73115507
# coding=utf-8 # Distributed under the MIT software license, see the accompanying # file LICENSE or http://www.opensource.org/licenses/mit-license.php. import threading from typing import Optional, Tuple from pyqrllib.pyqrllib import bin2hstr from pyqryptonight.pyqryptonight import StringToUInt256, UInt256ToString fr...
Python
src/qrl/core/ChainManager.py
jleni/QRL
mit
23,847
538
codeparrot/github-code