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
65cd940554888cb60dfc415e7e5b9319df5f86aa7cc34ded7dc88157e868cc45
import math class VirtualScreen: #cet ecran est normal a l'axe Z du Leap def __init__(self,Xoffset=0,Yoffset=50,Zoffset=-50,Zlimit=220,length=350,height=300): #en mm self.Xoffset = Xoffset; # position du milieu du bord bas de l'ecran par rapport au centre du Leap self.Yoffset = Yoffset; # position du milieu ...
Python
python/VirtualScreen.py
IIazertyuiopII/PDS_sonification
mit
2,759
59
codeparrot/github-code
bef1928f3bd01ebe230d8a27541d366ab75881218f8f888ac8a86a21bf7506a2
const escapeStringRegexp = require('escape-string-regexp'); const query = require('../query/query'); const Sort = require('../helpers/sort'); const StringScore = require('../helpers/string-score'); const DataSource = { cells: (name) => { return new Promise((resolve) => { // calculate text search score ...
JavaScript
api/app/modules/data-source/data-source.js
knightjdr/screenhits
mit
3,535
125
codeparrot/github-code
f8b459359f36b5f71034525ec15f878840d4ecc5251fdeb42a20ffe763d8c66b
using CinchORM.AccessLayer; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Reflection; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace CinchORM { public class CinchMapping { ...
C#
Cinch/Mapping/Mapper.cs
pimbrouwers/cinch
mit
9,001
219
codeparrot/github-code
2f0270ad697767d28a181dbcd7339932827a0ab06c833f80fb93d6ec4d9a8faa
/// <reference path="../../all.d.ts" /> module OptionsApp { angular.module('OptionsApp', ['HeaderApp', 'gettext', 'angular-google-analytics']) .config(Helpers.setAnaliticSetting) .run(Helpers.setCurrentLanguage) .run(Helpers.trackPage) .controller('OptionsCtrl', OptionsCtrl) .directive('checkboxOption', () ...
TypeScript
src/OptionsApp/js/OptionsApp.ts
cawa-93/vknotice
mit
983
34
codeparrot/github-code
e52d82cb4106bfac633657fdcd3bdc2db823504a2281cc9cdf1e26d2d9f74863
package ui.scene import loadFile.LoadFile import org.scalajs.dom.raw.HTMLImageElement import ui.program.{Attribute, DataType, Program, Uniform} import org.scalajs.dom.document import ui.GLContext import ui.arrayBuffer.{ElementBuffer, Float32Buffer} import ui.binary.{BMFont, BinaryBuffer, TextEncoder} import u...
Scala
client/src/main/scala/ui/scene/BitmapText.scala
gvatn/play-scalajs-webgl-spark
mit
1,740
50
codeparrot/github-code
abbc4e10a5585322b34869336300532eec0da3096a0c87bb7d67ad77dd52f78a
class Ranking { //object for ranking in curiosity constructor(){// in contructor set a values for default in this class ranking.colorActive = "#2262ae";//colors of active stars ranking.colorUnActive = "rgba(46,46,46,0.75)";//colors for unactive stars ranking.stars = 0;//number of stars in ranking ra...
JavaScript
public/packages/assets/js/ranking-curiosity.js
Curiosity-Education/curiosity-v.1.0
mit
4,227
110
codeparrot/github-code
0bdb4c0ed0402753e6e5b2f27a6d4123f70fa4804baa7e0edfb041d3cbf420d2
<?php namespace App\Extension\JWT\Providers; use Illuminate\Support\ServiceProvider as ProviderContract; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; use App\Extension\JWT\Auth\Driver; /** * Description of JWTServiceProvider * * @author absolux */ class ServiceProvider extends Pro...
PHP
app/Extension/JWT/Providers/ServiceProvider.php
absolux/Collabor8-php-api
mit
1,175
51
codeparrot/github-code
98bbab00a06addc6949f79e77c5326baf8966b541af737f734119d2eb409d2d1
from rewpapi.common.http import Request from rewpapi.listings.listing import ListingResidential class RemoteListingImages(Request): def __init__(self, base_site, auth, listing_type, listing_uuid): super(RemoteListingImages, self).__init__(auth) self._base_site = base_site self._auth = auth...
Python
rewpapi/listings/images.py
propdata/rewp-api
mit
2,288
68
codeparrot/github-code
fc0ca931e9446f711c10a8d10d9deee77d7b01da22d193c3b8abe37987898bb0
#include <cstdio> #include <vector> using namespace std; int k; int s[13], result[6]; void dfs(int start, int depth) { if (depth == 6) { // 숫자 6개를 선택했을 때 for (int i = 0; i < 6; i++) { printf("%d ", result[i]); } printf("\n"); return; } for (int i = start; i...
C++
ACM-ICPC/6603.cpp
KimBoWoon/ACM-ICPC
mit
607
34
codeparrot/github-code
19ce9fdac27ad677fe5982d245f0fb699106256f020dad4ee0ea754818f3e073
using System; using System.Collections.Generic; using System.Linq; using System.Text; using OlympicGames.Core.Commands.Abstracts; using OlympicGames.Core.Contracts; using OlympicGames.Core.Factories; using OlympicGames.Olympics.Contracts; using OlympicGames.Utils; namespace OlympicGames.Core.Commands { public cla...
C#
Module 1/OOP Exam/OlympicGamesSkeleton/OlympicGames/Core/Commands/CreateSprinterCommand.cs
Xadera/Telerik-Academy-Alpha
mit
2,097
60
codeparrot/github-code
8863722254ecb0f5fbf678b4df990ead7c5a00ef1782d1cf95fa098d3e0b0da4
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "bitcoinrpc.h" #include <boost/algorithm/string/predica...
C++
src/bitcoind.cpp
EwigeBlumenkraft/skidoo
mit
4,231
142
codeparrot/github-code
f2fed91f3963292eba9ba6ce0cf15eff2ee7a0417b0087915eab37e47e008cc9
{% load lots_filters %} <div style="font-family: Calibri, Arial, sans-serif; font-size: 14px;"> <div class="row"> <div class="col-md-12"> <a id='logo' href="http://largelots.org"> <img src='http://largelots.org/static/images/large_lots.png' alt='Large Lots' /> </a> ...
HTML
templates/emails/denial_email.html
datamade/large-lots
mit
5,290
83
codeparrot/github-code
b1032f4ae1f10d34499a489684bc7e0a6cfc0e006e11c7421a666deabd940cbb
package de.fred4jupiter.fredbet.repository; import de.fred4jupiter.fredbet.domain.AppUser; import de.fred4jupiter.fredbet.domain.ImageGroup; import de.fred4jupiter.fredbet.domain.ImageMetaData; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying;...
Java
src/main/java/de/fred4jupiter/fredbet/repository/ImageMetaDataRepository.java
fred4jupiter/fredbet
mit
1,690
38
codeparrot/github-code
47d3be3f72aaf72c6467bcf3e403c59966a871f860c503971ac37037dc915149
<?php /* (c) Anton Medvedev <anton@medv.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Deployer\Task; use Deployer\Configuration\Configuration; use Deployer\Exception\ConfigurationException; use Deployer\Exception\Exc...
PHP
src/Task/Context.php
mbrodala/deployer
mit
2,754
135
codeparrot/github-code
86caa1512b827a4239190331557ed53d321dfa1fd5963e13f8ec1a7edf7399a7
/** * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.datasource.timecache; import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; import or...
Java
pvmanager/datasource-timecache/src/main/java/org/diirt/datasource/timecache/DataRequestThread.java
ControlSystemStudio/diirt
mit
4,664
151
codeparrot/github-code
ddd7ff6dd00a80d7cda7164884c4befd4011407f82c674427d6f83489468c657
/* * * Servo.c * * Created: April 30 2016 * Authors: Yuqi (Mark) Zhao and Claire Chen */ #include "Servo.h" /* * Configure ports PTD0 and PTD2 as the GPIO output pins for both servos. */ void servo_init(void){ //Enable power to port D SIM->SCGC5 |= SIM_SCGC5_PORTD_MASK; //Set up each pin as GPIO output PORTD...
C
Servo.c
markz114/Drumroll-Bot
mit
2,686
114
codeparrot/github-code
a5f2ea55ab03f8a958c264f401e843a31e768674963d0076e6fd4c7a348e2a85
/* * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C++
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/video_coding/protection_bitrate_calculator_unittest.cc
koobonil/Boss2D
mit
3,806
101
codeparrot/github-code
6536fe8790f245403b8a26fc4769f35d453575e01c75a230a2fe7e92440140e6
<!DOCTYPE html> <html > <head> <meta charset="UTF-8"> <link rel="shortcut icon" type="image/x-icon" href="https://production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /> <link rel="mask-icon" type="" href="https://production-assets.codepen.io/a...
HTML
nunya/index.html
Ephellon/ephellon.github.io
mit
13,319
355
codeparrot/github-code
27284ecfa967e78a741e7de7528c2b2cc961b1e32a21662095bdae981bddfdb7
using System; using System.Transactions; using Microsoft.VisualStudio.TestTools.UnitTesting; using Saude.Model.Persistence; namespace AtendimentoModelTest { /// <summary> ///This is a test class for TB_AC_CUIDADOTest and is intended ///to contain all TB_AC_CUIDADOTest Unit Tests ///</summary> [T...
C#
SissOnlineWithEntityFrameworkOnSqlServer/AtendimentoModelTest/TB_AC_CUIDADOTest.cs
marcobaccaro/general
mit
4,118
136
codeparrot/github-code
a25c6eaf873241d0df45c6d61b02c0d54687b890bd26e3c1a5f38117b7d43afa
<?php namespace Swift; class Session { public static function Get(string $Key) : string { return $_SESSION[$Key]; } public static function Set(string $Key, string $Value) { $_SESSION[$Key] = $Value; } public static function Encode() : string { return session_e...
PHP
Swift/Session.php
CloudRex/Swift
mit
850
46
codeparrot/github-code
d00e486a68c7c4514eb7df09dac078639f96d98341a042fa6e9cecf251456d7c
# coding=utf-8 import pymysql import PyGdbUtil class PyGdbDb: # 初始化: 连接数据库 def __init__(self, host, port, dbname, user, passwd): self.project = None self.table_prefix = None try: self.connection = pymysql.connect( host=host, port=int(port), user=user, passwor...
Python
PyGdbDb.py
Jecvay/PyGDB
mit
10,080
281
codeparrot/github-code
c4ea3fe96530de23285d4fdc9bb0a46060a096dd9e4617201b1c517fd3e5e761
/* * Copyright © 2015 www.pipseq.org * @author rspates */ package org.pipseq.rdf.jena.aggregate; import java.util.ArrayList; import java.util.List; import com.hp.hpl.jena.sparql.engine.binding.Binding; import com.hp.hpl.jena.sparql.expr.Expr; import com.hp.hpl.jena.sparql.expr.ExprEvalException; import com.hp.hpl....
Java
src/main/org/pipseq/rdf/jena/aggregate/allSameList.java
pipseq/semantic
mit
2,906
91
codeparrot/github-code
d6f1d05d858f3ff64deb3d13ebc6c486ec72ff7324435584527e494c46ea9d91
module Msplex module Resource class Service DEFINED_ACTION = { list: { type: :get, params: false, }, create: { type: :post, params: true, }, get: { type: :get, params: true, }, update: { ...
Ruby
lib/msplex/resource/service.rb
dtan4/msplex
mit
6,248
299
codeparrot/github-code
3e692dfa6413f9e83c4aad9b381eed8d7ddd78b9100a6a344a8b775ebc1e0962
/****************************************************************************** Developed and Copyright (c) by Erik Unger Contact: erik@erikunger.com ...
C++
source/DataBases/PersistentTable.cpp
ungerik/BaseLib
mit
7,356
389
codeparrot/github-code
cd3518bd10136a99b1ea777d7e1b12d623b7ae54b16bab11a277015ea598ffcb
<?php /* * The background core options for the Shoestrap theme */ if ( !function_exists( 'shoestrap_module_background_options' ) ) : function shoestrap_module_background_options( $sections ) { global $redux; //Background Patterns Reader $bg_pattern_images_path = get_template_directory() . '/lib/modules/backgroun...
PHP
lib/modules/background/module.php
jloosli/shoestrap-3
mit
6,804
176
codeparrot/github-code
6b69e2f3300bdfed83f5f84d1f36efb64265676279fae6cbab03c46b06553836
// Copyright 2012 The Gorilla Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mux import ( "errors" "fmt" "net/http" "path" "regexp" "github.com/Ghostofpq/bigzelda/Godeps/_workspace/src/github.com/gorilla/context" ) ...
GO
Godeps/_workspace/src/github.com/gorilla/mux/mux.go
Ghostofpq/bigzelda
mit
13,445
475
codeparrot/github-code
ce0593a6517e94774a39156cde26b940b44a7258743edc86bbd8ed0b420c18f2
module LiveEditor module API class Site # Returns record representing the current site. # # Options: # # - `include` - Name of relationship to include with the request. Pass an # array to include multiple. def self.current(options = {}) query_string = LiveEdit...
Ruby
lib/live_editor/api/site.rb
liveeditor/liveeditor_cli
mit
1,438
50
codeparrot/github-code
460107ad937b4639f55b4f7b5b6a710c4e645ef4a3e7fcee16338fb169acfb2d
using System; using System.Collections; using System.Collections.Generic; namespace SkidiKit.Core { public class Bag<T> : ICollection<T> { private T[] _items; private bool _isSealed = false; public Bag(int capacity = 16) { _items = new T[capacity]; Coun...
C#
SkidiKit/Core/Bag.cs
nikita-sky/SkidiKit
mit
3,674
159
codeparrot/github-code
c404cef3d72b2002fe1b99b732cc6a0f0f7ab74c1f1366a18905be00bdae0e5c
//! Crate which contain the virtual machine which executes gluon programs #![doc(html_root_url = "https://docs.rs/gluon_vm/0.18.0")] // # GLUON #![recursion_limit = "1024"] #[macro_use] extern crate collect_mac; #[doc(hidden)] pub extern crate frunk_core; #[macro_use] extern crate log; #[macro_use] extern crate quick_...
Rust
vm/src/lib.rs
gluon-lang/gluon
mit
7,166
269
codeparrot/github-code
d9ce03c088fa5da37cf8e86b6a51556b149f8d4ab3750c7ffdf6c26147fa50de
/* FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
C
sw-ek-tm4c123gxl/third_party/FreeRTOS/Demo/CORTEX_LM3Sxxxx_Rowley/webserver/uIP_Task.c
trfiladelfo/tdk
mit
10,490
350
codeparrot/github-code
f9396f48be8ed0a3e95f17b355c9f54e01175e69dbafa7b1dbdb8ca0c0e3fd90
module Maths class Brain # Public: Assigns data def self.assign(variable, value) data = read data[variable] = value write(data) value end # Public: Looks up data def self.lookup(variable) value = read[variable] if value.nil? nil ...
Ruby
lib/maths/brain.rb
commondream/maths
mit
870
45
codeparrot/github-code
60d28a3f30875b4a6160c88b360245715879e1354265f7dc2eac78b239e8a348
package com.myapp2.mihir.quiz; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.RadioButton; import android.widget.RadioGroup; import android.widget.TextView; import java.io.BufferedReader; import java.i...
Java
src/main/java/com/myapp2/mihir/quiz/MainActivity.java
MihirJayavant/Quiz
mit
7,020
239
codeparrot/github-code
551ccf50091cbf8ca9c99fd1a87bd65e1b6adc00efd89a7973c54c14c3c9219d
// This file is part of graze/golang-service // // Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> // // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. // // license: https://github.com/graze/golang-service/blob/master/LICENSE...
GO
handlers/context.go
graze/golang-service
mit
2,064
62
codeparrot/github-code
6e92c9f6ac6e0b956976ea3ccdc3d63ebedf467929d778da2ae6fd13e405a857
using jcIS.WPF.Common; using jcIS.WPF.Transports.Common; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace jcIS.WPF.Helpers { public class Settings { private List<SettingsConfigItem> _settings; private string _file...
C#
jcIS.WPF/Helpers/Settings.cs
jcapellman/jcIS
mit
2,223
76
codeparrot/github-code
b81b8656dd5a3ebeb0f4a86dfa36919a1e204b0da16be4d4f2a31d2c1cee7974
package com.team254.frc2015; import com.team254.frc2015.behavior.Commands; import com.team254.lib.util.Latch; import edu.wpi.first.wpilibj.Joystick; import java.util.Optional; public class OperatorInterface { private Commands m_commands = new Commands(); Joystick leftStick = HardwareAdaptor.kLeftStick; ...
Java
src/com/team254/frc2015/OperatorInterface.java
Team254/FRC-2015
mit
6,448
148
codeparrot/github-code
14dcd891d0eca123a394c40fa36742909178ef4899f32e990105899e85c0e59d
using System; using System.IO; namespace Songhay { /// <summary> /// A few static helper members /// for <see cref="System.IO"/>. /// </summary> public static partial class ProgramFileUtility { /// <summary> /// Returns the file name /// based on the specified path ...
C#
SonghayCore/ProgramFileUtility.Obsolete.cs
BryanWilhite/SonghayCore
mit
4,551
127
codeparrot/github-code
693fe9500af6ed6835f8f94425a881970de938c9eb4c893d68efe1dd2f2a988f
/*global beforeEach, describe, it,*/ /*eslint no-unused-expressions: 0*/ 'use strict'; require('./testdom')('<html><body></body></html>'); var expect = require('chai').expect; var React = require('react/addons'); var TestUtils = React.addons.TestUtils; var BookmarkList = require('./../../react/component/Bookma...
JavaScript
react-test/component/BookmarkList-mocha.js
mlenkeit/animated-octo-sansa
mit
1,635
53
codeparrot/github-code
826a22d22893227b927e2f6dc1bd31866b0467391e2c93fee7d50262f3815a3b
import { IBot, IBotCommand, IBotCommandHelp, IBotMessage } from '../api' import { getRandomInt } from '../utils' interface IMountain { name: string height: number img?: string } export default class GrowlCommand implements IBotCommand { private readonly CMD_REGEXP = /^(or|ор)(?: |$)/im private _mo...
TypeScript
src/commands/growl.ts
Leopotam/discord-bot
mit
1,508
45
codeparrot/github-code
acb479ec876d084262c94065d89ebfed0dcd9930f503fc98b767eff567481f64
#region License // The MIT License // // Copyright (c) 2011 Julien Blin, julien.blin@gmail.com // // 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 ...
C#
src/Colombo/Wcf/WcfClientRequestProcessor.cs
julienblin/Colombo
mit
11,299
286
codeparrot/github-code
d30c0a5fab88dfcabb7f8d59a07006ebf6b6ce5e7e154c4646517a01c99ac265
<?php /** * Application.php * */ namespace Pails\Listeners; use Pails\Injectable; class Application extends Injectable { public function boot($event, $application) { } public function beforeStartModule($event, $application, $moduleName) { } public function afterStartModule($event, $a...
PHP
src/Pails/Listeners/Application.php
xueron/pails
mit
688
41
codeparrot/github-code
54dd814778fd36ff2e17f6bbb7b423e2677a070e06f787c1a19797722807aed2
import { Assertions, Mouse, UiFinder } from '@ephox/agar'; import { Obj, Type } from '@ephox/katamari'; import { Attribute, Checked, Class, Focus, SugarBody, SugarElement, Traverse, Value } from '@ephox/sugar'; import { assert } from 'chai'; import Editor from 'tinymce/core/api/Editor'; export interface ImageDialogDa...
TypeScript
modules/tinymce/src/plugins/image/test/ts/module/Helpers.ts
tinymce/tinymce
mit
5,504
142
codeparrot/github-code
0e518fe19ef8da445dcdaf3b3c9264ffc070a290b38a08990631c50f4df73eb0
package appeng.api.parts.layers; import ic2.api.energy.tile.IEnergySink; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.ForgeDirection; import appeng.api.parts.IBusPart; import appeng.api.parts.LayerBase; public class LayerIEnergySink extends LayerBase implements IEnergySink { @Overrid...
Java
parts/layers/LayerIEnergySink.java
Gamoholic/Applied-Energistics-2-API
mit
1,448
57
codeparrot/github-code
974021551a20ea88d9784377cda0064123c706e394f2f78765235a8140e7f700
// Description: Entity Framework Bulk Operations & Utilities (EF Bulk SaveChanges, Insert, Update, Delete, Merge | LINQ Query Cache, Deferred, Filter, IncludeFilter, IncludeOptimize | Audit) // Website & Documentation: https://github.com/zzzprojects/Entity-Framework-Plus // Forum & Issues: https://github.com/zzzprojec...
C#
src/Z.Test.EntityFramework.Plus.EFCore.Shared/BatchDelete/Executing/WhileDelayTemplate.cs
zzzprojects/EntityFramework-Plus
mit
4,817
178
codeparrot/github-code
fe0290d488eb7944902184c52305aa9af084a4ab3a88caace55172d4b854edb2
import os import re import subprocess from utils import whereis_exe class osx_voice(): def __init__(self, voice_line): mess = voice_line.split(' ') cleaned = [ part for part in mess if len(part)>0 ] self.name = cleaned[0] self.locality = cleaned[1] self.desc = cleaned[2]....
Python
tts_engines/osx_say.py
brousch/saythis2
mit
888
36
codeparrot/github-code
40873c3238f446a2523fbbce8e40f14e01dd5ebabe9e68376275fc6f2554df08
import { Pkcs10CertificateRequest } from "@peculiar/x509"; import * as graphene from "graphene-pk11"; import { Convert } from "pvtsutils"; import * as core from "webcrypto-core"; import { CryptoKey } from "../key"; import { Pkcs11Object } from "../p11_object"; import { CryptoCertificate, Pkcs11ImportAlgorithms } from...
TypeScript
src/certs/csr.ts
PeculiarVentures/node-webcrypto-p11
mit
3,449
115
codeparrot/github-code
a1e5dc5ef9193acd096e0c71819b20b1b77bf19a32ba5f9407a0f1c5aa297502
#ifndef __BD_SO_BROADCASTCENTER__ #define __BD_SO_BROADCASTCENTER__ #include <sys/socket.h> #include <arpa/inet.h> #include <string> #include <cstring> #include <strings.h> const int MAXDATASIZE = 256; namespace bd_so { class BroadcastCenter { private: bool is_sender; /// is a caster; bool is_casting; /// is sen...
C++
broadcast/broadcast.hpp
ZQYA/broadcasthome
mit
805
33
codeparrot/github-code
a4a310e98bae3b86a1c4662a6065470157a0a5ad7206f7ef1ce221c249cc670e
<?php /* FOSUserBundle:Registration:register_content.html.twig */ class __TwigTemplate_95d43d3d47f0cebed743a080cf5ec4515b09f53f648044d0e4ad5b16ddbd90ab extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this-...
PHP
app/cache/prod/twig/5e/5e3292f12bc65076b5a0da4b70a00b8df21396b14e3dfce7dc509c5ef4167279.php
DevKhater/YallaWebSite
mit
2,159
65
codeparrot/github-code
078a36ab7fbddca70986402968459bcd7ee5025fefc75a48efc991667c44901c
#pragma once #include <SDL.h> #include <vector> // class LuckyComponent; // class LuckyWindow; // class LuckyContent; // class LuckyText; //GENERIC COMPONENT CLASS class LuckyComponent { protected: SDL_Rect bounds; public: SDL_Rect* parent_bounds; LuckyComponent(int x, int y, int w = 0, int h = 0) ...
C
src/luckycomponents.h
kgbier/sdl-luckyfruit
mit
1,660
97
codeparrot/github-code
138a191856a5ef93c2c28599fcc12d5a6008df063119afee406cb03098bd33ff
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {DateAdapter} from '@angular/material/core'; /** * Function that attempts to coerce a value to a date using...
TypeScript
src/lib/datepicker/coerce-date-property.ts
jasnoponjatno/material2
mit
1,262
36
codeparrot/github-code
b087de1f88bd7bf3cde4bd63e8ca3bc3dacd621d1b6edc2ca75196a7259f82ec
import urllib2 import os baseurl = "http://ceoaperms.ap.gov.in/TS_Rolls/PDFGeneration.aspx?urlPath=D:\SSR2016_Final\Telangana\AC_001\English\S29A" constituencyCount = 0 constituencyTotal = 229 while constituencyCount <= constituencyTotal: pdfCount = 1 notDone = True constituencyCount = constituencyCount ...
Python
python-basic-coding/python-basic-coding/voter_data_download.py
abhishek-malani/python-basic-coding
mit
1,936
53
codeparrot/github-code
eb5c3b2fab35254a801e8b717eb8ce30103e8802df768b6649b89751f56fc354
package asciifier; import java.awt.Color; import java.awt.Font; import java.awt.FontMetrics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.util.HashMap; import javax.imageio.ImageIO; /** * A program that "ASCIIfies" a given input image using a given character/symb...
Java
asciifier/ASCIIfier.java
joelabr/Laborationer-Programmering-1
mit
5,077
212
codeparrot/github-code
8ffc056d41d3dfac651a56024fd6e74d5125ff5fa7a55fddd403f95e199f6633
#!/usr/bin/env python3 # Advent of Code 2016 - Day 7, Part One import sys import re from itertools import islice def window(seq, n=2): "Returns a sliding window (of width n) over data from the iterable" " s -> (s0,s1,...s[n-1]), (s1,s2,...,sn), ... " it = iter(seq) result = tuple(i...
Python
2016/day07/day07-pt1.py
mcbor/adventofcode
mit
1,067
43
codeparrot/github-code
78fbeb0c09332cfbc59bef405c55be8c42d4284019319ea18dcdcac2bae052f2
function solve(params) { var number = +params[0] switch (number) { case 0: return 'zero'; break; case 1: return 'one'; break; case 2: return 'two'; break; case 3: return 'three'; brea...
JavaScript
JSFundamentals/Homeworks/05.conditional-statements/05.digit-as-word/app.js
SHAMMY1/Telerik-Academy-2016
mit
772
39
codeparrot/github-code
b82aaad94aac9757015ae91cd400d2c7c08336ebf5b1c677adeea5cfd10de9db
export default [ { 'English short name': 'Afghanistan', 'French short name': "Afghanistan (l')", 'Alpha-2 code': 'AF', 'Alpha-3 code': 'AFG', Numeric: 4, Capital: 'Kaboul', Continent: 5, }, { 'English short name': 'Åland Islands', 'French short name': 'Åland(les Îles)', 'Al...
JavaScript
demo/src/assets/countries.js
Sharlaan/material-ui-superselectfield
mit
52,056
2,244
codeparrot/github-code
dae327146a95a382a44440c5c4cb4a97ed71ca4fb7f52af04783ba126a8b674b
import java.util.HashMap; /** * Enum type med dage. */ public enum Day { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY; /** * Oversæt streng til enum type. * Går ud fra at teksten er på dansk. * @param streng med dag */ public static Day fromString(String day) { if (...
Java
OOPD/uge5/Day.java
Herover/IP-VVH-LALN-MH-OCC
mit
862
33
codeparrot/github-code
2b7bb37a5b0f76642771101eaeb58c5474994439808ba0d7898e40e46a5b2419
re.on = function(name, callback) { return function(el) { return el.addEventListener(name, callback); }; }; (function() { [ 'click', 'dblclick', 'wheel', 'keydown', 'keyup', 'input', 'focus', 'blur', 'drag', 'dragstart', 'dragover', 'dragstop', 'drop', ...
JavaScript
toolkit.js
eascherman/relativity
mit
10,391
323
codeparrot/github-code
79446ad873535ab821c95c11e6300c53b59e83df5344ca5bac8cd26a7532f85a
import test from "ava"; import fs from "fs"; import path from "path"; import rimraf from "rimraf"; import webpack from "webpack"; import PnpWebpackPlugin from "pnp-webpack-plugin"; import createTestDirectory from "./helpers/createTestDirectory"; const ReactIntlPlugin = require("react-intl-webpack-plugin"); const cach...
JavaScript
test/metadata.test.js
babel/babel-loader
mit
4,348
164
codeparrot/github-code
3befc24775db031cea20d84dfe8440e1b92475a9766d47c0bb3da0bd464fcf89
var a = function() { return 'b'; }; b = function doB(q, wer, ty) { var c = function(n) { return function() { return q + wer - ty; } } return c } this.foo = { bar: function() { var r = function() { re(); draw(); return log('foo') + 'bar'; }; }, ipsum: function(am...
JavaScript
test/compare/default/function_expression-out.js
TommyM/esformatter
mit
1,161
85
codeparrot/github-code
4686466092cedf6b3226ccdbf192af06a4e41e50052c1317cae3fd3116312d6e
'use strict'; define([ 'jquery', 'underscore', 'angular', 'angular-resource' ], function ($, _, angular) { var resourceApp = angular.module('resourceApp', [ 'ngResource' ]); resourceApp.factory('NodeFactory', function ($resource) { // $resource(url[, paramDefaults][, actions]); return ...
JavaScript
angular/public/apps/resource.js
veldise/js-examples
mit
4,785
125
codeparrot/github-code
087b5b83b48340ed6502cba45aca375539f84fd3ba285d64696463998f473af3
(function($, f) { // If there's no jQuery, Unslider can't work, so kill the operation. if(!$) return f; var Unslider = function() { // Set up our elements this.el = f; this.items = f; // Dimensions this.sizes = []; this.max = [0,0]; // Current inded this.current = 0; // Start/stop t...
JavaScript
resource/js/backtop.js
Betty-Hsieh/makemoney888
mit
6,313
243
codeparrot/github-code
7590f165e18334fafe40de1921880e2513e2be15283285266ae0d2c2f30850c2
//$Id: Timer_Queue_Iterator.cpp 2622 2015-08-13 18:30:00Z mitza $ #ifndef ACE_TIMER_QUEUE_ITERATOR_CPP #define ACE_TIMER_QUEUE_ITERATOR_CPP #include "ace/config-all.h" #if defined (ACE_HAS_ALLOC_HOOKS) # include "ace/Malloc_Base.h" #endif /* ACE_HAS_ALLOC_HOOKS */ #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once #...
C++
ace/Timer_Queue_Iterator.cpp
binary42/OCI
mit
1,722
68
codeparrot/github-code
215871f9125dd2f68e8b5c8a056dc7894e2ce61df46e05a93fbf46d1bc449546
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
C++
src/qt/bitcoinunits.cpp
blackdogcoin/blackdogcoin
mit
4,298
182
codeparrot/github-code
cda30808d38739d7969fc2db8b64dcb1c5fa184b57172648b212ea62a4325065
<?php /** * * * This is an iumio Framework component * * * * (c) RAFINA DANY <dany.rafina@iumio.com> * * * * iumio Framework, an iumio component [https://iumio.com] * * * * To get more information about licence, please check the licence file * */ namespace iumioFramework\Core\Additional\Manager\Modul...
PHP
Core/Additional/Manager/Module/App/AppManager.php
iumio-team/iumio-framework
mit
24,752
659
codeparrot/github-code
1930c0d9a9fbbbb4d02ba86d0ff6479d0e49d6c776c349ce92466d7274c45f1b
import { valid } from 'semver'; import { logger } from '../../../logger'; import type { PackageFile } from '../../types'; import { getNpmLock } from './npm'; import type { LockFile } from './types'; import { getYarnLock } from './yarn'; export async function getLockedVersions( packageFiles: PackageFile[] ): Promise<...
TypeScript
lib/manager/npm/extract/locked-versions.ts
singapore/renovate
mit
2,446
70
codeparrot/github-code
0a8f6d3e350c74225becead17be79fef0ea593cc6b56765c727e4a81ca17f41a
module ObserverPattern module Weather class ForecastDisplay include DisplayElement include Observer attr_accessor :current_pressure, :last_pressure, :weather_data def initialize(weather_data) self.weather_data = weather_data self.weather_data.register_observer(self) ...
Ruby
lib/head_first_design_patterns_rb/observer_pattern/weather/forecast_display.rb
billywatson/head_first_design_patterns_rb
mit
907
33
codeparrot/github-code
1d6c42c7e0d093fe1c100a1055320ddd22afdcb713e909dedc54a9f9d9025cd2
package cc.openframeworks.androidSwipeExample; import android.os.Bundle; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; import cc.openframeworks.OFAndroid; public class OFActivity extends cc.openframeworks.OFActivity{ @Override public void onCreate(Bundle savedInstanceSta...
Java
of_v0.9.0/examples/android/androidSwipeExample/srcJava/cc/openframeworks/androidSwipeExample/OFActivity.java
SpecularStudio/ofQt
mit
2,098
92
codeparrot/github-code
0004fd896a7da78242851e3cbce4e7826313cad8fcbf6a4ed5a0221f8c1bc4f7
from pydatastream import Datastream import json import datetime import sys import os.path #hardcoded directories dir_input = "input/" dir_output = "output/" #check that the login credentials and input file location are being passed in numOfArgs = len(sys.argv) - 1 if numOfArgs != 3: print "Please run this python s...
Python
getcustom.py
jinser/automate_pydatastream
mit
3,917
113
codeparrot/github-code
8e45a9e15c0b4174bad1feaec2e1431ca24c3a815c307cde744bb51f6fd9edf7
class Goblin extends Entity { constructor(x, y, team) { super(x, y, team); this.totalHealth = 100; this.attackStrength = 60; this.attackSpeed = 1100; this.speed = 0.15; // 10 px/ms this.deploySpeed = 1000; this.size = 10; this.color = 'green';...
JavaScript
Troop.js
richyliu/clash-royale
mit
2,072
95
codeparrot/github-code
a378802df77875ff0c78eb853f3385b53df4b07087eba9d38631da795827802b
//%2005//////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; // IBM Corp.; EMC Cor...
C++
src/Providers/linux/ProviderData/PackageManager/DebianPackageManagerData.cpp
ncultra/Pegasus-2.5
mit
8,200
280
codeparrot/github-code
27c2c93facffdc02c5d636a3e1242aa90f21a7153c0139d0fefb73e6ebbfbf4d
import Tipp from 'src/models/TippModel'; /** * Save a new tipp * @param {Object} req Request object * @param {Object} res Response object * @param {Function} next Callback for next middleware in route */ export const postTipp = (req, res, next) => new Tipp(req.body).save() .then(data => res.json(data)) .catch...
JavaScript
src/server/api/tipp-api.js
tuelsch/bolg
mit
1,567
62
codeparrot/github-code
e742d5064558232a19b4f5e7ab34d29a300dc9fb4809e93b161340c830076e3d
using Newtonsoft.Json; using Newtonsoft.Json.Converters; using NJsonApi.Exceptions; using NJsonApi.Serialization.Converters; using NJsonApi.Utils; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace NJsonApi { public class Configuration :...
C#
src/NJsonApiCore/Configuration.cs
miclip/NJsonApiCore
mit
3,579
103
codeparrot/github-code
db66ba73597afb0897eec2aac851f96e3d24a7280b47df294b75b5b46a94ec7f
// Copyright (c) 2011-2015 The C-Bit Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "data/script_invalid.json.h" #include "data/script_valid.json.h" #include "core_io.h" #include "key.h" #include "keys...
C++
src/test/script_tests.cpp
c-bit/c-bit
mit
53,760
1,017
codeparrot/github-code
b79a318d5933aa50bcf2c2e01214986fd0d4e793ff9ef5de15354eabb758c034
# Marshmallow, the campfire chatbot # # You need to know one the following: # (a) the secret public URL, or # (b) an account/password for your room and the room number. # # Usage: # to login with a password: # # bot = Marshmallow.new( :domain => 'mydomain', :ssl => true ) # bot.login :method => :login, # :u...
Ruby
lib/marshmallow.rb
crowdvine/highrise_to_campfire
mit
2,759
93
codeparrot/github-code
f1ccb82837dc5b628b664d76b2e035f9eba32df36114e48b3ce55b30e57e83b4
/** * Copyright (c) Acroquest Technology Co, Ltd. All Rights Reserved. * Please read the associated COPYRIGHTS file for more details. * * THE SOFTWARE IS PROVIDED BY Acroquest Technolog Co., Ltd., * WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FIT...
Java
src/main/java/acromusashi/stream/ml/clustering/kmeans/entity/KmeansDataSet.java
acromusashi/acromusashi-stream-ml
mit
2,008
84
codeparrot/github-code
f14354ab381c7e5bd95b49abc7c85b5a5d547db26d1658fada4768d665f64c89
package com.algolia.search.integration.async; import com.algolia.search.AlgoliaObject; import com.algolia.search.AsyncAlgoliaIntegrationTest; import com.algolia.search.AsyncIndex; import com.algolia.search.inputs.BatchOperation; import com.algolia.search.inputs.batch.BatchDeleteIndexOperation; import com.algolia.searc...
Java
algoliasearch-common/src/test/java/com/algolia/search/integration/async/AsyncIndicesTest.java
algoliareadmebot/algoliasearch-client-java-2
mit
3,145
95
codeparrot/github-code
08e00364abdfa136cfdca806800ab6d26775339727dddec841a97d6789e24e66
/** * Django admin inlines * * Based on jQuery Formset 1.1 * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com) * @requires jQuery 1.2.6 or later * * Copyright (c) 2009, Stanislaus Madueke * All rights reserved. * * Spiced up with Code from Zain Memon's GSoC project 2009 * and modified for Django...
JavaScript
nested_inlines/static/admin/js/inlines.js
pitcons/django-nested-inlines
mit
15,670
439
codeparrot/github-code
1c4d67989a2f8fecf9e5a3a1cc766e6a20b3b9f7397a9c75239856571c883f3a
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Windows.Forms; using Frameshop.Data; namespace Frameshop { internal class Option : PList { public static readonly string PLUGIN_FOLDER = Path.GetDirectoryName(Application.Exe...
C#
Option.cs
paladin-t/frameshop
mit
2,685
95
codeparrot/github-code
d1fb81e7f6bdd8017b3803d7eaa3ef23f558adb7aba43c79a975afe75f2b199c
--- title: Input layout: documentation doc-tab: form doc-subtab: input breadcrumb: - home - documentation - form - form-input variables_keys: - $input-color - $input-background-color - $input-border-color - $input-shadow - $input-hover-color - $input-hover-border-color - $input-focus-color - $input-focus-border-color -...
HTML
docs/documentation/form/input.html
jgthms/bulma
mit
11,375
437
codeparrot/github-code
a55108d470129dbc36c4c3efd116b6f55dad0a622dd80a4275d19c329962a618
/// <reference path="./interface.ts" /> /// <reference path="../canvas.ts" /> /// <reference path="../../../controller/controller.ts" /> module Prisc { export class TrimTool implements Tool { private start: ICoordinates; private end: ICoordinates; private lineWidth: number = 0.5; ...
TypeScript
src/model/canvas/tools/trim.ts
otiai10/prisc
mit
2,310
74
codeparrot/github-code
bd06224f9016d30494f0b7ee9326b727fbd3cfb864253669dc0c99d2688cddc4
import React from 'react'; import { combineReducers } from 'redux'; import { connect } from 'react-redux'; // Count reducer const count = (state = 10, action) => { switch (action.type) { case 'increment': return state + 1; case 'decrement': return state -1; default: return state; } } ...
JavaScript
src/example/component.js
musawirali/preact-rpc
mit
933
44
codeparrot/github-code
5b8f1a647430534850298169ad67ba1c0f95b3103bec55db946f31c0ce77281a
'use strict'; /** * Module dependencies. */ var debug = require('debug')('swara:config'), path = require('path'), _ = require('lodash'), glob = require('glob'); /** * Load app configurations */ module.exports = _.extend( require('./env/all'), require('./env/' + process.env.NODE_ENV) || {} ); /** * Get...
JavaScript
mean-app/config/config.js
swara-app/swara-server
mit
2,168
90
codeparrot/github-code
c433c23ce422cb98944e5a7913cc7a248005d35d4dd9610d1e339185bf744326
/** * The MIT License (MIT) * * adapted from musicdsp.org-post by mistert@inwind.it * * Copyright (c) 2013-2017 Igor Zinken - http://www.igorski.nl * * 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 ...
C++
mwengine/src/main/cpp/processors/lpfhpfilter.cpp
igorski/MWEngine
mit
3,415
106
codeparrot/github-code
668bed4ac257ca9d341c70b12f2b753c824e70c2d32510417d4bd9ef5e260f34
import { List, Set, fromJS, OrderedMap } from 'immutable'; import { get, escapeRegExp } from 'lodash'; import { stringTemplate } from 'netlify-cms-lib-widgets'; import consoleError from '../lib/consoleError'; import { CONFIG_SUCCESS } from '../actions/config'; import { FILES, FOLDER } from '../constants/collectionType...
TypeScript
packages/netlify-cms-core/src/reducers/collections.ts
netlify/netlify-cms
mit
15,752
484
codeparrot/github-code
2f3e77e8a81be881c4f2bb8d5a6234ffce22baf062cd125ffb9f8fc26abbe0a4
'use strict'; angular.module('dashboardApp') .controller('RentsCtrl', function ($scope, Rents, $location, $routeParams, Auth, rents) { $scope.rents = rents; $scope.returnBook = function(rent){ Rents.returnBook({'rentId': rent.rentId}, function(res){ console.log(res); rent.status = res.status; ...
JavaScript
dashboard/app/scripts/controllers/rents.js
OZ-United/united-library
mit
1,066
45
codeparrot/github-code
06d72fdbc995e93909dfce4a690b251df94ebe1b362a87cbc8dd7ad690f1017f
import chalk from 'chalk' import { TestStepResultStatus } from '@cucumber/messages' export type IColorFn = (text: string) => string export interface IColorFns { forStatus: (status: TestStepResultStatus) => IColorFn location: IColorFn tag: IColorFn diffAdded: IColorFn diffRemoved: IColorFn errorMessage: IC...
TypeScript
src/formatter/get_color_fns.ts
cucumber/cucumber-js
mit
1,379
51
codeparrot/github-code
be0d2c51f65df8e7235d4ba419ce6cccde14d77c1de1709911f998006569dcb8
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/times.h> #include "clock.h" /* Routines for using cycle counter */ /* Detect whether running on Alpha */ #ifdef __alpha #define IS_ALPHA 1 #else #define IS_ALPHA 0 #endif /* Detect whether running on x86 */ #ifdef __i386__ #define IS_x86 1 #el...
C
LHiOSAccumulatesInObjectiveC/LHiOSAccumulatesInObjectiveC/LCTabs/LCDemo/LCDComputerSystem/LCDComputerSystemChapter6/clock.c
lihux/LHiOSAccumulates
mit
4,737
218
codeparrot/github-code
de4d48a5d5ffe18636a1594abbdae91b036c7f49c3cbe4304f1356802c4c3463
/** * Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com * * 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
xchange-justcoin/src/test/java/com/xeiam/xchange/justcoin/service/trade/JustcoinPostCreateResponseJsonTest.java
habibmasuro/XChange
mit
2,068
53
codeparrot/github-code
0ab263736df58506d5d0aefe720aa89a46d2e08be215012c89bdefdef56c3194
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>karatsuba: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.09.0-2.0.5/extra-dev/8.10.0/karatsuba/8.6.0.html
coq-bench/coq-bench.github.io
mit
6,923
166
codeparrot/github-code
48ae52e0f4ef3733429666a229c1a9ea9235d8627942b4ce38a3d2a68c417213
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>metacoq-checker: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.1+1/metacoq-checker/1.0~alpha1+8.8.html
coq-bench/coq-bench.github.io
mit
7,767
181
codeparrot/github-code
5ce1dd0043f5564aef51eab541a90e6954bf05e3f401df8a6aab990c50d796d0
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
JavaScript
es/validator.js
localvore-today/react-validator
mit
4,107
134
codeparrot/github-code
587354799605d703e526cff4ab9c6dd094134243a076b60905699b2d8c8f5d15
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>CircleVSAabb | Bump.js - Documentation</title> <meta name="description" content="Documentation for Bump.js - Documentation"> <meta name="viewport" content="width=device-width, ini...
HTML
doc/classes/_collisions_circlevsaabb_.circlevsaabb.html
LCluber/Bump.js
mit
21,287
385
codeparrot/github-code
71d9a7df291565cf08d138401179ba6c88aa6dfc0a5ae67d4ae4f8dd7d3f6bdf
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>JCRW Chinchillas</title> ...
HTML
index.html
jcrwchinchillas/jcrwchinchillas.github.io
mit
37,826
722
codeparrot/github-code
39c0e3cfd841c79ae2d5fae53c06080ac968d5b91070edf7a3b8eb1ee350faba
/* MoTo - Motion Toolkit Copyright (c) 2006-2019 Gino van den Bergen, DTECTA Source published under the terms of the MIT License. For details please see COPYING file or visit http://opensource.org/licenses/MIT */ #ifndef MT_DUALVECTOR3_HPP #define MT_DUALVECTOR3_HPP #include <moto/Dual.hpp> #inclu...
C++
moto/DualVector3.hpp
dtecta/motion-toolkit
mit
4,266
128
codeparrot/github-code
8819b1a194adfc725b2c930ab84aa944a5b2cbf4f022f0afcc3d6a6e9b02203e
import path from "path"; import { assert } from "chai"; import { extract, toJson, isPseudoCode } from "../data/scripts/index"; import { Done } from "mocha"; describe("ONS Code Extraction", () => { it("returns an error if no data directory provided", (done: Done) => { extract({ configs: [], done: (err...
TypeScript
test/code-parser.unit.ts
ideal-postcodes/postcodes.io
mit
4,210
158
codeparrot/github-code
1932d6c356515d75b6306e5f378a1fd78aa42ed8c001c846e8dbec15720cda1a
#!/usr/bin/python3.3 import somnTCP import somnUDP import somnPkt import somnRouteTable from somnLib import * import struct import queue import threading import socket import time import random PING_TIMEOUT = 5 class somnData(): def __init__(self, ID, data): self.nodeID = ID self.data = data class somnMes...
Python
src/somnMesh.py
squidpie/somn
mit
23,564
574
codeparrot/github-code
90f23ae38f215d114af5520d11c48e352976ed265069092d07b72893443eeb26
package com.bandwidth.iris.sdk.model; public class TelephoneNumberSearchFilters { private String inAreaCode; private String filterPattern; private String inState; private String inPostalCode; private boolean isTollFree; private int quantity = 5; private boolean returnTelephoneNumberDetails ...
Java
src/main/java/com/bandwidth/iris/sdk/model/TelephoneNumberSearchFilters.java
bandwidthcom/java-bandwidth-iris
mit
1,972
86
codeparrot/github-code
2fd91c4ff8de158b0084e6a9763f557f1e393fe4a5e87a5ecff4d7a33cc8420c
function listar_dir_envio(){ $.ajax({ cache: false, url: administrador + "administrador_usuario.php?accion=listar_direccion_envio", type: 'POST', data: {"id_cliente": id_cliente_js}, dataType: "json", beforeSend: function...
JavaScript
js/admin_usuario_dir_envio.js
heladiofog/tienda0mx
mit
13,913
376
codeparrot/github-code
879ce4acf335ef5d5fadeb809962e786b8e264479d16fbb067c3089fdacc7c6c
/// <reference path='../ddt.ts' /> import ddt = require('../ddt'); import chai = require('chai'); describe('DDTElement', function() { var expect = chai.expect; var DDTElement = ddt.DDTElement; describe('#getNode()', function() { it('should return the node it represents', function() { ...
TypeScript
test/DDTElement.ts
parallax/ddt
mit
2,056
75
codeparrot/github-code
5e8fa6379bf6992c37994b89da773937a2771ce2194fef52703e0caa5e74001e
<?php namespace Abbaye\IndexBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Agences * * @ORM\Table() * @ORM\Entity(repositoryClass="Abbaye\IndexBundle\Entity\AgencesRepository") */ class Agences { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\G...
PHP
src/Abbaye/IndexBundle/Entity/Agences.php
EpicKiwi/AutoEcoleDeLabbaye
mit
8,541
480
codeparrot/github-code
bcdf405afb42919b5edcbcc4881b987ba7425f8cdc07f44d6f970e325df022d8
package main // list all of the multipels of m below max and returns them on the ret channel func listMultiples(m, max int, ret chan int) { if m == 0 { return } count := 0 tmp := 0 for { tmp = count * m if tmp >= max { break } count++ ret <- tmp } close(ret) } // range over each channel unti...
GO
1/main.go
eliothedeman/euler
mit
1,097
75
codeparrot/github-code