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
ab1a8f56beb2dfc75bbeb23c7abfbb6a7d27cfd1df8eca30379356f030142d58
using System; using System.Runtime.CompilerServices; namespace Caliburn.Micro { /// <summary> /// Utility methods for view models. /// </summary> public static class ViewModelExtensions { /// <summary> /// Sets the specified field to <paramref name="value"/>. /// </summary>...
C#
MahApps.Integration.Caliburn.Micro/ViewModelExtensions.cs
cchappell/MahApps.Integration
mit
1,286
37
codeparrot/github-code
95241fdf5681f1d34563d0260ee9dd024654cd54b1aaeb0f2b49c92cc4d8e75a
import copy from collections import defaultdict from typing import ( Any, cast, DefaultDict, Dict, List, Mapping, NamedTuple, Optional, TypedDict, ) from pyre_extensions import none_throws from backend.common.consts.alliance_color import AllianceColor, OPPONENT, TMatchWinner from b...
Python
src/backend/common/helpers/playoff_advancement_helper.py
the-blue-alliance/the-blue-alliance
mit
34,130
820
codeparrot/github-code
2d66de5bcb180b35aa3b845d291f17d000028eb25e761e21846d49dfc296527e
(function(){ 'use strict'; function FacultadService($resource, TokenHandler){ var resource = $resource('api/facultades/:factId', {factId: '@id'}); //TokenHandler le agrega en header con el token a los resources resource = TokenHandler.wrapActions(resource, ['get', 'query', 'remove', 'post']); var optio...
JavaScript
src/AppBundle/Resources/public/js/components/facultades/facultadService.js
Irvandoval/asignaturas
mit
1,304
57
codeparrot/github-code
3c869902540360dc30034a89ad464daecebf0228aeb12b4f56e47cd111d128a0
package org.sisioh.aws4s.cfn.model import com.amazonaws.services.cloudformation.model.ListStacksRequest import org.sisioh.aws4s.PimpedType import scala.collection.JavaConverters._ object ListStacksRequestFactory { def create(): ListStacksRequest = new ListStacksRequest() } class RichListStacksRequest(val underl...
Scala
aws4s-cfn/src/main/scala/org/sisioh/aws4s/cfn/model/RichListStacksRequest.scala
everpeace/aws4s
mit
1,011
36
codeparrot/github-code
66276ff5aa57455e816083f06fa475aa4d39285d29585eefa255d445b1ba7d8d
// // SearchViewController.h // FlickrGalleryBuilderMK2 // // Created by Pedr Browne on 16/10/2011. // Copyright (c) 2011 the original author or authors // Permission is hereby granted to use, modify, and distribute this file // in accordance with the terms of the license agreement accompanying it. // #import <...
C
Examples/FlickrGalleryBuilderMK2/FlickrGalleryBuilderMK2/Headers/SearchViewController.h
Undistraction/iRobotlegs
mit
1,229
36
codeparrot/github-code
1b6e52cbb5170b5fa560ed11ace5b9d8f45e4e552df23b9e7ecec0f5626799a9
var BulletsPoolFactory = (function iife(parent) { 'use strict'; const BulletCount = 100; const turretMissile = { spriteName: 'missile', bulletSpeed: 500, tracking: true, explosionType: 'missileExplosion', explosionSound: 'missileExplosion' }; /** * ...
JavaScript
SinglePlayer/GameLogic/Bullets/BulletsPoolFactory.js
RedPlane-timebooth/Red-Planet-game-dev
mit
1,308
47
codeparrot/github-code
1a03971bc0b6bee0e0dcc01dff8b4e9563b3f05b60d2633b9863a6546d23a2a9
<div class="butter-header"> <script src="{{user_bar}}/js/sso-ux.js"></script> <header class="butter-header-primary"> <div class="butter-logo"></div> <ul class="butter-nav"> <li class="butter-breadcrumbs"></li> <li class="butter-project-title"> <a class="butter-project-name">{{ gettext("My...
HTML
views/layouts/header.html
kaltura/popcorn.webmaker.org
mit
3,485
66
codeparrot/github-code
b2bac79fabd77a5a6744e82a4aa44d5626645e3fc53ad69f95ad47f55d0bc74e
import Ember from 'ember'; export default Ember.Route.extend({ controllerName: 'cabin', model: function (params) { return this.store.findRecord('cabin', params.id, {reload: true}); }, afterModel: function (cabin, transition) { const cabinNavn = cabin.get('navn') || 'Hytte uten navn'; document.tit...
JavaScript
client/app/routes/cabins/edit.js
Turistforeningen/Hytteadmin
mit
816
38
codeparrot/github-code
7e652eafae1efed61af36a96c8f860c400e7a8d6c5cc1648646494b99d3120e0
import {JSHINT as jshint} from 'jshint'; import castArray from 'lodash-es/castArray'; import clone from 'lodash-es/clone'; import compact from 'lodash-es/compact'; import concat from 'lodash-es/concat'; import defaults from 'lodash-es/defaults'; import find from 'lodash-es/find'; import includes from 'lodash-es/include...
JavaScript
src/validations/javascript/jshint.js
jwang1919/popcode
mit
4,538
204
codeparrot/github-code
be1e6999f0d2c57df4734f282bb153e33a26845bf7d2d35485d2093af7cf4747
package com.charlesbishop.webrest.controller; import java.io.Serializable; import java.util.List; import javax.validation.Valid; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; im...
Java
src/main/java/com/charlesbishop/webrest/controller/VacantController.java
charleshb417/webrest
mit
3,922
117
codeparrot/github-code
66688c81320407fafef85d4b463a1ae423d23f6618b3d7e00515c73e9637cb1b
'use strict'; var recipes = [ { name: 'Simple Beef Stew', description: 'This is the recipe from when I was in college.', category: 'Soup', prepTime: 20, cookTime: 145, ingredients: [ { foodItem: 'Beef', condition: 'Sliced', amount: '2 cups' }, { ...
JavaScript
src/api/data/recipes.js
Liad91/treehouse_project-9
mit
6,353
302
codeparrot/github-code
da20da778264ba74ae661a7709ef2be0fb209bde74bd7a36d1dc73a60cff04e0
/** * @license Copyright (c) 2014, Viet Trinh All Rights Reserved. * Available via MIT license. */ /** * A repository implementation for the sql database and set_card_price_buy data store. */ define([ 'private/framework/repository/base_sql_repository', 'private/domain/repository/i_set_card_price_buy_repositor...
JavaScript
lib/private/static/scripts/domain/repository/sql/set_card_price_buy_sql_repository.js
DragonDTG/vex
mit
3,999
124
codeparrot/github-code
950f7b8783104e14c345f202d9858de9b4fcfcc4fc6be750f057a531ab92a874
/** * @license AngularJS v1.3.0-build.51+sha.e888dde * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /* jshint maxlen: false */ /** * @ngdoc module * @name ngAnimate * @description * * # ngAnimate * * The `ngAnimate` module provides s...
JavaScript
app/lib/angular/angular-animate.js
hvu53/phonecat
mit
74,307
1,614
codeparrot/github-code
87a3eeec64250af3824246dd05ea483151e40da8fe0e393bf9b8f1090b8f7f75
using Microsoft.CodeAnalysis.Diagnostics; using System; using System.Collections.Generic; using System.Linq; using System.Threading; namespace FUR10N.NullContracts { public static class Timings { #if DEBUG && NET46 private static Dictionary<TimingOperation, Timing> Entries = new Dictionary<TimingOpera...
C#
src/FUR10N.NullContracts/Timings.cs
FUR10N/NullContracts
mit
3,168
121
codeparrot/github-code
47b9ea59982e903989c5c19a736925e6139723cea43ea1b898f090a736185ca6
module PgSearch class Scope def initialize(name, model, scope_options_or_proc) @name = name @model = model @options_proc = build_options_proc(scope_options_or_proc) end def to_proc lambda { |*args| config = Configuration.new(@options_proc.call(*args), @model) Scope...
Ruby
lib/pg_search/scope.rb
iancanderson/pg_search
mit
782
32
codeparrot/github-code
68ece2785f6caaba31ea5d7a44f8cbc460382f218d2616c5e9cc955159919811
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once BASEPATH . 'libraries/aws/aws-autoloader.php'; use Aws\DynamoDb\Iterator\ItemIterator; /** * Clase que representa al Modelo de las Variables. * * Esta clase mapea la tabla ethas_variables de la base de datos no relacional de Dynamo...
PHP
application/models/Vr2/Statevariable.php
anfho93/REST
mit
5,546
164
codeparrot/github-code
d3d222ba5626323199758afde78c32f4a80a88aa85f110825180c4ce6e669576
const React = require('react') const Enzyme = require('enzyme'); const Adapter = require('enzyme-adapter-react-15'); const Checkout = require('./../client/jsx/checkout') const Products = require('./../seeds/products.json') Enzyme.configure({ adapter: new Adapter() }); describe('checkout', () => { const cartItems = ...
JavaScript
ch18/devcorpio_homework18_5/nile/__tests__/checkout.test.js
azat-co/react-quickly
mit
1,500
48
codeparrot/github-code
581d3670f81828d284eb62a58ef2fa7568fa7aef60eece1a8d99889ec4164c94
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stddef.h> #include <vector> #include "base/bind.h" #include "base/json/json_reader.h" #include "base/memory/scoped_ptr.h" #include "base/m...
C++
src/base/metrics/statistics_recorder_unittest.cc
junhuac/MQUIC
mit
18,196
517
codeparrot/github-code
5072528e15b8a62f51beecd80fbe0da69a7b2b8cd8c2bfad04f73a03d29a5db4
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Brian Schrader - 2ab3</title> <link rel="shortcut icon" href="/assets/images/favicon.ico"> <link rel="sty...
HTML
_site/2016/01/30/2ab3.html
Sonictherocketman/mirror.microblog
mit
69,905
1,711
codeparrot/github-code
44aeaf7c85a5b20f6d867252a0694ceedb635143b2343716cdcb8273f90b163e
<?php namespace LinkThrow\LaravelSocialAggregator\Jobs; use App\Jobs\Job; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Bus\SelfHandling; use Illuminate\Contracts\Queue\ShouldQueue; use Config; use Carbon\Carbon; use SammyK\LaravelFacebookSdk\LaravelFacebookSd...
PHP
src/LinkThrow/LaravelSocialAggregator/Jobs/GetLatestFacebookPostsForUser.php
linkthrow/laravel-social-aggregator
mit
3,742
88
codeparrot/github-code
51c5d7fcef66e997bb6f5d189e2e8a3608a8d4feb70a2fc59986854bf1c715c6
package jett_apps.grouvie.Views; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.TextView; import android.widget.Toast; import org.json.JSONException; import org.json.JSONObject; import ...
Java
app/src/main/java/jett_apps/grouvie/Views/LeaderInitialPlan.java
Team-JETT/Grouvie
mit
5,942
154
codeparrot/github-code
8c1dd8efbecdd37b45cc796b3c08f7a4280e1d32104fa2b6817ffd978de71546
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <base href="{$site_url}/" /> <!-- Use IE7 mode --> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset={$charset}" /> <meta http-equi...
HTML
html/ecmall/upload/themes/store/default/header.html
kitboy/docker-shop
mit
4,533
113
codeparrot/github-code
5c97f17368fe9890b01f4f51aa7848154b3c77d6a5f1fdb3c60d06023e9778d4
package transfer import ( "errors" "io" "log" "os" "path/filepath" "time" ) type Request struct { Id SessionId } type FileRequest struct { Filename string } type GetRequest struct { Id SessionId BlockId int } type GetResponse struct { BlockId int Size int64 Data []byte } type ReadRequest s...
GO
src/transfer/rpc.go
yanolab/gotransfer
mit
2,517
153
codeparrot/github-code
f6dbacc7eca28538f98f755d375edd01a90e687e69effc407a240cedb1659ab2
<?php namespace Andboson\FilmzBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Andboson\FilmzBundle\Entity\Category; use Andboson\FilmzBundle\Form\CategoryType; /** * Category controller. * */ class CategoryController extends Controlle...
PHP
src/Andboson/FilmzBundle/Controller/CategoryController.php
andboson/filmz
mit
6,706
241
codeparrot/github-code
16229bfad2bc354108eee10e1b49fc54c6b6f1a50d14ed48f3f5a07986bc98c2
// // VSTheme.h // Q Branch LLC // // Created by Brent Simmons on 6/26/13. // Copyright (c) 2012 Q Branch LLC. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, VSTextCaseTransform) { VSTextCaseTransformNone, VSTextCaseTransformUpper, VSTextC...
C
Source/VSTheme.h
dstancioff/DB5-Live
mit
2,051
65
codeparrot/github-code
deb13ab5f02014f833bbceb86fa009403d5d178d77f8bdaadf40afd7afd8fcc7
package com.andreytim.jafar.algo.sort; import java.util.Deque; import java.util.LinkedList; import java.util.List; /** * Created by shpolsky on 28.08.14. */ public class ShellSort extends AbstractSort { private Deque<Integer> gaps = new LinkedList<>(); @Override protected <T extends Comparable<T>> voi...
Java
algo/src/main/java/com/andreytim/jafar/algo/sort/ShellSort.java
andreytim/jafar
mit
779
36
codeparrot/github-code
cf93781dde9298d46e573e4fa7cf29c9472ca9f402af6a069d4d8c230cb5bde5
""" Palantir tasks """ import itertools from datetime import datetime import copy from collections import defaultdict from steward_salt.tasks import salt_match, salt, salt_key from steward_tasks.tasks import pub from .models import CheckDisabled, MinionDisabled, CheckResult, Alert from steward_tasks import celery, St...
Python
steward_palantir/tasks.py
mathcamp/steward_palantir
mit
7,289
201
codeparrot/github-code
4e8c4cd68034ef3e70b79bd2cb4d4d78d5500ecd364f4f9ed9f9e60da4be1271
using System; namespace Public.Common.Lib.Code.Physical { /// <summary> /// Specifies the Visual Studio project output type. /// </summary> public enum ProjectOutputType { /// <summary> /// Console program. /// </summary> Exe, // Console executable. ...
C#
Source/Common/Libraries/Lib.Code/Lib.Code/Code/Enumerations/ProjectOutputType.cs
MinexAutomation/Public
mit
3,003
100
codeparrot/github-code
dec1206b38807ea4de2f4687d1b996b1cba1507982674b99d7808cda51f5c13d
<?php /* * This file is part of the CCDNUser SecurityBundle * * (c) CCDN (c) CodeConsortium <http://www.codeconsortium.com/> * * Available on github <http://www.github.com/codeconsortium/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source c...
PHP
src/AkjnBundle/Security/Handler/LogoutSuccessHandler.php
akhiljayan/studentsManage
mit
3,851
121
codeparrot/github-code
2e3be32cf9ad1aa410be8881920afdd1c54f3da1afbe90169ac6e35bdb0d6ceb
/** * OnTheAir Firebase "Auth" Service */ (function () { 'use strict'; angular .module( 'com.missofis.OnTheAirFirebase.Auth' ) .factory( 'OnTheAirFirebaseAuth', OnTheAirFirebaseAuth ); OnTheAirFirebaseAuth.$inject = []; /** * @description * OnTheAir "Auth" Service */ function OnTheAirFirebaseAuth()...
JavaScript
app/services/OnTheAirFirebase/Auth/OnTheAirFirebase.Auth.service.js
xkema/missofis-on-the-air
mit
1,122
78
codeparrot/github-code
25edf520c90b7d64b3e89c3d65004ba5f383d5a5b3f9dd729c0e623efcfe561b
<?php namespace wptelegrampro; /** * WPTelegramPro Domain Info * * @link https://wordpress.org/plugins/wp-telegram-pro * @since 1.0.0 * * @package WPTelegramPro * @subpackage WPTelegramPro/modules/inc */ class DomainInfoWPTP { protected $host; public function __construc...
PHP
modules/inc/DomainInfoWPTP.php
parsa-kafi/woocommerce-telegram-bot
mit
1,775
67
codeparrot/github-code
7d9961a67363476a39f3323f0eb16be2ddac3bf658be29cff5b1c0bea2afa1c7
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package classroom.gui; import classroom.database.ConnectionDB; import classroom.modal.Person; import classroom.modal.Student; import c...
Java
src/classroom/gui/TE_Analytics.java
firstziiz/Classroom
mit
16,703
401
codeparrot/github-code
8317395bcf50282c090d2fef39226970aa5fc9c6fa871fd47b676e1f4b10d926
{% load i18n static %} {% load addcss %} {% if cl.search_fields %} <style> .form-group-full { width: 100% !important; } .input-full { width: 70% !important; } .input-label { display: inline-block; width: 25% !important; } </style> <!-- <div id="toolbar"> --> <div class="panel panel-primary"> ...
HTML
isiscb/isisdata/templates/admin/advanced_search_form_ccrelation.html
upconsulting/IsisCB
mit
4,524
109
codeparrot/github-code
ede14b0201ec6561c0bb38c34d0feda5d3376e93a5fbcbfce97deb74452544ff
using System.Linq; using System.Text; namespace Transformers { /// <summary> /// TODO : add test /// </summary> public class TransformRowMergeFields : TransformRow { public TransformRowMergeFields(string nameField1 , string nameField2,string nameFieldOutput, string separator="") ...
C#
stankinsV1/Transformers/TransformRowMergeFields.cs
ignatandrei/stankins
mit
1,142
32
codeparrot/github-code
e3ad5b094ceb4bd4bf8926b773e2c1d4a43c2d8847a49bde207ce3b8ef8fdc39
<?php namespace wptelegrampro; if (!defined('ABSPATH')) exit; class CustomCommandWPT extends WPTelegramPro { public static $instance = null; public function __construct() { parent::__construct(); } function settings() { } /** * Returns an instance o...
PHP
modules/CustomCommandWPTP.php
parsa-kafi/woocommerce-telegram-bot
mit
547
30
codeparrot/github-code
80f91c9428ddf0e32efd5519b776f3c5602eee938ee8af5d5fa8c8dd99c47c3b
<?php declare(strict_types=1); namespace Firehed\U2F; class AttestationCertificate implements AttestationCertificateInterface { /** @var string (binary) */ private $binary; public function __construct(string $binary) { $this->binary = $binary; } public function getBinary(): string ...
PHP
src/AttestationCertificate.php
Firehed/u2f-php
mit
779
36
codeparrot/github-code
483ee04b22ce56f76f2f312d98f15d7be5b61157bef8c3321f9be7abc71c4601
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "coincontrol...
C++
src/qt/sendcoinsdialog.cpp
hobbitcoin-team/hobbitcoin
mit
18,353
539
codeparrot/github-code
fcf21bc9fc366ad6d899f9eaf4fe000cb08df30d6325457f213b089dd8fbb7f5
import IndexedTemplate from './Template/IndexedTemplate'; import Expression from '../Expression/Expression'; class Controller { constructor(engine, node, evaluate) { if (!node.children[0]) { throw new Error('No children elements.'); } this.engine = engine; this.node = node; const expr = n...
JavaScript
src/Markers/Foreach.js
smalluban/linked-html
mit
4,102
170
codeparrot/github-code
f0e1ad15014b0f82d4203e845cb71f6282320a999680c5384b4beb2fb9351e6b
using System; using System.Collections.Generic; using System.IO; using System.Threading; namespace LiteDB { /// <summary> /// Implement generic Stream disk service. Used for any read/write/seek stream /// No journal implemented /// </summary> public class StreamDiskService : IDiskService { ...
C#
LiteDB/Engine/Disks/StreamDiskService.cs
RytisLT/LiteDB
mit
4,105
162
codeparrot/github-code
8acd51fc9376b90b0c35082ddc8a3d1d366ebae9b191ec245931912408aabd3a
local ej = require "ejoy2d" local state = {} local S function state.change(to,...) assert(to) if S then S.exit() end S = to if S then S.enter(...) state.resize(ej.screen()) end end function state.update(dt) if S and S.layer then S.layer:update(dt) end ...
Lua
ex/state.lua
lvshaco/ejoy2d
mit
855
56
codeparrot/github-code
e68044f1952e7782980b75593503b03756a46b5de4a88cbfe2df81ccfe0505f9
#pragma once #include "types.h" #include "errorcodes.h" #define DEVCMD_MAKE(_iface,_id) (((_iface)<<16)|(_id)) #define BLKDEV_SECTSIZE 512 // For use by non-standard device types #define DEVCMD_MAKEUSR(_iface,_id) DEVCMD_MAKE(1024+(_iface),(_id)) // Generic device commands enum { // Avoid using the first 256 comman...
C
sdk/include/feos/devcmd.h
fincs/FeOS-v2
mit
1,465
81
codeparrot/github-code
f708f9a6832b9225a2645bcf298e808caf58e620cccff4236445d74a4096bcbd
using System; using System.Collections.Generic; namespace PureCat.Message.Internals { public class NullMessage : ITransaction, IEvent, IMetric, ITrace, IHeartbeat, ITaggedTransaction, IForkedTransaction { private static readonly NullMessage _nullMessage = new NullMessage(); public st...
C#
PureCat/Message/Internals/NullMessage.cs
chinaboard/PureCat
mit
4,785
211
codeparrot/github-code
364bdc6bbd2e0f25c1a349fa47949c59e68c187bed342b23978cdebf3fb038f3
import path from 'node:path'; import {fileURLToPath} from 'node:url'; import test from 'ava'; import {loadJsonFile, loadJsonFileSync} from './index.js'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); const fixture = path.join(__dirname, 'package.json'); test('async', async t => { const data = await ...
JavaScript
test.js
sindresorhus/load-json-file
mit
844
31
codeparrot/github-code
de6b22a77ef1909b0f2e48481696697c2dcaa7341fd6cfa7667823437436eceb
/** * Created by Sedar on 06/03/2015. */ angular.module("geoAnalysis") .factory("dataService",function() { var rawData, filteredData = {}, cityData = {}, categoryData = {}, cityFilter, categoryFilter; var dataPromise = {}; var readData = function() { dataPromise ...
JavaScript
app/shared/restaurantService.js
serdaradali/smartmap
mit
2,346
79
codeparrot/github-code
d5f642dbe26d9af7eee6d4b0a4c7dafa87fd810655ba4fed4dd36a81d0015eb5
package net.neevek.android.demo.paginize.pages; import android.content.DialogInterface; import android.text.Html; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.TextView; import android.widget.Toast; import com.google.android.materi...
Java
Gradle/PaginizeDemo/src/main/java/net/neevek/android/demo/paginize/pages/MainPage.java
neevek/Paginize
mit
8,702
251
codeparrot/github-code
766d17f37841994bbacaeb8d300c26be2a0511e988179b027b10d366ebcbc34a
#!/usr/bin/python from time import sleep from signal import SIGINT from mininet.net import Mininet from mininet.node import Controller, OVSKernelAP from mininet.link import TCLink from mininet.cli import CLI from mininet.log import setLogLevel def topology(): "Create a network." net = Mininet(controller=Cont...
Python
scripts/ex-3/heartBeat.py
bahadley/mgc
mit
2,789
96
codeparrot/github-code
5285e80310f823e64cb2f4951a02df1ce4cbbafcf04013e109d47ca689f55d76
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `dirent64` struct in crate `libc`."> <meta name="keywords" ...
HTML
docs/libc/struct.dirent64.html
rxse/rust-markov-text
mit
7,191
132
codeparrot/github-code
25f331079e8cd3427ca5c7e215c91c749482e191f7f87a1782c631a2a03aaac4
package lua import ( "fmt" "math" "strings" ) func (l *State) arith(rb, rc value, op tm) value { if b, ok := l.toNumber(rb); ok { if c, ok := l.toNumber(rc); ok { return arith(Operator(op-tmAdd)+OpAdd, b, c) } } if result, ok := l.callBinaryTagMethod(rb, rc, op); ok { return result } l.arithError(rb,...
GO
vm.go
Shopify/go-lua
mit
36,359
1,339
codeparrot/github-code
8041efdee0e4b8ea2bf99d2be539d29e1d6e76cc1cd1b19e71b95f35dd30a660
// // ListModel.h // CocoaTouchHelpers // // Created by Maxim Khatskevich on 09/08/14. // Copyright (c) 2014 Maxim Khatskevich. All rights reserved. // #import <Foundation/Foundation.h> //=== @class CTHListModel; //=== @interface CTHListModelChangeParams : NSObject @property (strong, nonatomic) CTHListModel *...
C
Main/Src/Classes/CTHListModel.h
maximkhatskevich/CocoaTouchHelpers
mit
1,989
69
codeparrot/github-code
b1a90e72a1494686c170aa9a2a51645f791f55eb105334983209a177ed6db851
#!/usr/bin/env python3 import sys import rnnlm import txt import pickle from keras.models import load_model if __name__ == "__main__": modelInFile = sys.argv[1] dictInFile = sys.argv[2] try: catSpec = sys.argv[3] except IndexError: catSpec = None numToSample = 1 (mdl, params) = rnnlm.loadModels(modelIn...
Python
sample.py
fishel/yarnnlm
mit
644
33
codeparrot/github-code
036d2df5cda435b13cc804d27bd078c0d54d372c96362caa529b89b1d32280bd
/*! * Native JavaScript for Bootstrap Offcanvas v4.0.0 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ function queryElement(selector, parent) { const lookUp = parent && parent instanceof El...
JavaScript
ajax/libs/bootstrap.native/4.0.0/components/offcanvas-native.esm.js
cdnjs/cdnjs
mit
15,943
565
codeparrot/github-code
f28a4fbe444a39e787105dd05becfece3a2fcaca06c7c4fd1bf60ccfb3c6afc7
<?php require_once "InvocationOptions.php"; class HexifyFloats { public static function invokeViaWizard() { return new self(); } public function run() { print "Paste in a string of floats. I will output as Hex-formated binary. Floats should be comma-separated string. Spaces are optional.\n> "; $line = fget...
PHP
Helper.php
e-a-h/level09
mit
16,381
654
codeparrot/github-code
8c4c0639c67ea614154b9e9a7079fc4da873a6d564643e3812d33ee1df161dc1
<?php namespace MatchBundle; /** * Class Boats * @package MatchBundle */ class Boats { private static $initLife; /** * Get the initial life * @return int */ public static function getInitialLife() { if (!self::$initLife) { $life = 0; $boats = self::ge...
PHP
src/MatchBundle/Boats.php
matthieuy/battleship
mit
2,577
107
codeparrot/github-code
d12baaf2b13917f6401f87bad9e365d2bdb6503e1db6441433bffdc0fa3da347
import { RouterConfig } from '@angular/router'; import { MenuComponent } from './menu.component'; import { CasualMenuComponent } from './casual/casual-menu.component'; import { BanquetMenuComponent } from './banquet/banquet-menu.component'; import { LunchMenuComponent } from './lunch/lunch-menu.component'; export con...
TypeScript
app/menu/menu.routes.ts
irsick/moldova-restaurant2
mit
903
33
codeparrot/github-code
3829546f939147339712a0d1ad1c5d69a8a760fff39c31f63f3fad0593acdf03
window.App = window.App || {} window.App.n0 = window.App.n0 || {} window.App.n0.eu = window.App.n0.eu || {} window.App.n0.eu.Data = window.App.n0.eu.Data || {}; (function($) { this.questions = []; this.answers = []; this.parties = []; }).call(App.n0.eu.Data, jQuery); var questions = [ {'q5770': 'Mitä mieltä...
JavaScript
data.js
mircurios/eu2014
mit
5,491
121
codeparrot/github-code
c1e158c05e939cec8c46832095889cf819595fa495ff21d3d16b01fb2aef7e1d
<?php class Shaw_Doctrine_Template_Status extends Doctrine_Template { public function setTableDefinition() { // Does not work... $this->addListener(new Shaw_Doctrine_Listener_Status()); } /** * Retrieve a list of all preceding statuses. */ public function getSta...
PHP
Doctrine/Template/Status.php
dav-m85/shaw-core
mit
1,113
39
codeparrot/github-code
e0a7671e6f5e0dec743bee0982f95723c867a486fefbbdcdd6cddda62fe96f2b
class DeviseControllers::OmniauthCallbacksController < Devise::OmniauthCallbacksController %w[ vkontakte facebook twitter google_oauth2 odnoklassniki ].each do |network_name| define_method network_name do auth end end def failure action_after_failure_oauth_sign_up end def delete_provider ...
Ruby
Engines/apps/user_room/app/controllers/devise_controllers/omniauth_callbacks_controller.rb
TheOpenCMS/TheOpenCMS
mit
2,303
87
codeparrot/github-code
04f9eefdcfb6c5279969e93820907e9447ca014241d8de55aedb970c8509438e
var express = require( 'express' ); var bodyParser = require('body-parser') var mongoose = require( 'mongoose' ); var dotenv = require( 'dotenv' ); //var azure = require( 'azure' ); -> because Azure was not working with the certificate var apn = require('apn'); // Load environment variables from .env file dotenv.load...
JavaScript
server.js
MobileAppVault/hackaTUM-Server
mit
2,916
81
codeparrot/github-code
1a650d1d102e8a4c97bcd4c24f408c9dfed0ce36a1455c4a4d7121fb1b392a7d
// Copyright (c) 2020 Microsoft, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "shell/browser/ui/webui/accessibility_ui.h" #include <utility> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/command_line.h" #include "base/jso...
C++
shell/browser/ui/webui/accessibility_ui.cc
bpasero/electron
mit
16,558
417
codeparrot/github-code
436413d4445cdfcf3c5a3da58f47bb042a41d9de991da6c2bd5ee38d90e6177f
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"> <head> <title>Watkins Web 1</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-...
HTML
watkins web 1/web 1 exercises/exercise 03 web edit/web1 home.html
jmuspratt/teaching
mit
25,654
694
codeparrot/github-code
7c447057fea07db7537975b410b93b85e99fb78db773f8086faecd5d4132079c
'use strict'; (function() { /** * Module */ var moduleName = 'directive.autohideNavbar'; var module; try { // Module exist, use it module = angular.module(moduleName); } catch(err) { // Module does not exist, create new one module = angular.module(moduleName, []); } /** * * ...
JavaScript
src/components/autohide-navbar/autohide-navbar.directive.js
goncaloneves/angular-about
mit
6,829
192
codeparrot/github-code
bf6451cf38810429e9c279240c4672625c57c36de2f6ea813562d41cd5aaaf80
<?php // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ // | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | C...
PHP
web/piwigo/include/constants.php
ale252/theatre
mit
5,077
110
codeparrot/github-code
2daf6db933c21dea511ce6835e4bb49840a3cf243956aaa8641409252b9d3214
'use strict'; const router = require( 'koa-router' )(); import i18n from '../i18n'; import _ from 'lodash'; // to be extended later const jsonAPI = require( '../../test/employer.json' ); function getData() { return jsonAPI; } function getNames(obj) { if ( _.has( obj, 'name' ) ) { if ( _.has( obj, 'attribute' )...
JavaScript
src/api/index.js
veggiemonk/poc-i18n
mit
903
38
codeparrot/github-code
c5524cc9464ddfa075872af456e9b39c55950c971a70bc714aa2481e8f24e827
<?php namespace NotificationChannels\ExpoPushNotifications\Repositories; use ExponentPhpSDK\ExpoRepository; use NotificationChannels\ExpoPushNotifications\Models\Interest; class ExpoDatabaseDriver implements ExpoRepository { /** * Stores an Expo token with a given identifier. * * @param $key ...
PHP
src/Repositories/ExpoDatabaseDriver.php
Alymosul/laravel-exponent-push-notifications
mit
1,261
59
codeparrot/github-code
c3926af613d93caf9df83e19c75285830def0774a310eabd6e3bf7b037350826
package org.entitypedia.games.quanda.common.model; import java.io.Serializable; import java.util.Date; /** * Quanda answer. * * @author <a href="http://autayeu.com/">Aliaksandr Autayeu</a> */ public class Answer implements Serializable { private static final long serialVersionUID = 1L; pri...
Java
src/main/java/org/entitypedia/games/quanda/common/model/Answer.java
EntitypediaGames/quanda-common
mit
1,040
54
codeparrot/github-code
993105ded342e70eecdd26039110ec4c0bc8977b538f8d3dc71b33c51145bdae
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// 2D Shooter controller for the player /// /// Variables: /// // Health and mana /// 2 variables that controls the sliders for the health and the mana bars in the ui /// When touc...
C#
Lumi The Fairy Witch/Assets/_Scripts/characters/PlayerController/PlayerShooterController.cs
Sindiewen/Lumi-The-Fairy-Witch---LOWREZGAMEJAM-2017
mit
13,998
412
codeparrot/github-code
d49c10d5dfb4b89ffa83b95f503ec1947a9e9204c06daf0c59296e2769fbe2dd
<!DOCTYPE html> <!--[if IE 9]><html class="lt-ie9" lang="fr"><![endif]--> <!--[if !IE]><!--><html lang="fr"><!--<![endif]--> <head> <title>Hentai Ouji to Warawanai Neko. - Série (2013) - Yôhei Suzuki</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <m...
HTML
web/docs/series/2015-11-10/hentai-ouji-to-warawanai-neko/index.html
dieng444/smart-search
mit
80,971
1,984
codeparrot/github-code
08ad9ec33ca6b0f68485b501a32cafffab9c1063c965ce7cd1ae1307b755d628
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Appbase = factory()); }(this, (function () { 'use strict'; function URL(url) { var pattern = RegExp("^...
JavaScript
ajax/libs/appbase-js/4.1.4/appbase-js.umd.js
cdnjs/cdnjs
mit
69,327
2,281
codeparrot/github-code
1bc70509d2e04319bb2d48bdef944dd494e3d5e82ab570d2941ecbf0753de26a
using AIGames.Configuration; using HtmlAgilityPack; using Qowaiv; using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Linq; using System.Xml.Serialization; namespace AIGames.Data { [Serializable] [DebuggerDisplay("{DebuggerDisplay}")] public parti...
C#
src/AIGames.Core/Data/AIGameResult.cs
Corniel/AIGames.Challenger
mit
3,409
137
codeparrot/github-code
fb07149b4e50d99abcd55aeac3f5568be1110eac0e10b0d83cc42438a930d529
<?php /** * @copyright Copyright (C) 2015-2020 AIZAWA Hina * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT * @author AIZAWA Hina <hina@fetus.jp> */ declare(strict_types=1); namespace app\models; use yii\db\ActiveQuery; use yii\db\ActiveRecord; /** * This is the model class for table ...
PHP
models/WeaponAttack2.php
fetus-hina/stat.ink
mit
2,081
79
codeparrot/github-code
f149d815fdd18d773c269441392a2d3d2706eb3a6dd9cbfbbb740da1c226ef2a
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_realloc_43.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-43.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management R...
C++
samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_realloc_43.cpp
maurer/tiamat
mit
3,232
120
codeparrot/github-code
09c21b5eb13749f22d7d3b4df6c68e45d38319f061ef70772be5d5bef2c989ba
using System; using MoBot.Core.GameData; using MoBot.Core.Net.Handlers; namespace MoBot.Core.Net.Packets.Play { internal class PacketClickWindow : Packet { public byte WindowId; public short Slot; public byte Button; public short ActionNumber; public byte Mode; ...
C#
MoBot/Core/Net/Packets/Play/PacketClickWindow.cs
ReezeBL/MoBotRemastered
mit
941
36
codeparrot/github-code
58eb11795e9198f25c9e0ba8cc5a3c91aba5d3549d0888ec329489b405b4e37e
#include <iostream> #include <vector> #include "median.h" #include "Student_info_1.h" using namespace std; istream& Student_info::read(istream& in) { in >> n >> midterm >> final; read_hw(in, homework); grad = 0.2 * midterm + 0.4 * final + 0.4 * median(homework); return in; } istream& read_hw(istream...
C++
Chapter9/Student_info_1.cpp
chibby0ne/AcceleratedC
mit
747
39
codeparrot/github-code
449eb26ea71527623e247701e871edeeda5b3bc8d9d72927e9c6d59574b88849
using UnityEngine; using UnityEngine.UI; using System.Collections; public class Selecao : MonoBehaviour { public GameObject[] bola; public GameObject[] roedor; public GameObject[] bolaCena; public GameObject[] roedorCena; public GameObject personagemJogo; public GameObject[] playerPos; ...
C#
Assets/selection_screen/Selecao.cs
andersonaraujodl/Rolling-rodent
mit
10,126
289
codeparrot/github-code
7b0eb7cd1a3aa6d8bf1e615c837bd1388bf7b77189e366e1d21a2365edc91478
/* *********************************************************************************************************************** * * Copyright (c) 2017-2022 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
C
util/vkgcElfReader.h
GPUOpen-Drivers/llpc
mit
20,350
502
codeparrot/github-code
f5e541b82578da6d322241509c529d7eebe98ce332a761a50b247757bfb1e7ec
/*! DataTables 1.10.13 ©2008-2016 SpryMedia Ltd - datatables.net/license */ (function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require(...
JavaScript
public/js/jquery.dataTables.js
jokosusilo/koperasi
mit
85,027
178
codeparrot/github-code
23c932f05528a8a6c89a267a7ea177352e72b637dfbfef57eadae8b2505868f7
Capistrano::Configuration.instance(:must_exist).load do # We don't need to know the repository since it won't be accessed set :repository, "" # Set the default deploy method to war_file set :deploy_via, :war_file # Allow another round of update_code with another strategy set :deploy_via_secondary, nil ...
Ruby
lib/jrecipes/recipes.rb
virgo/jrecipes
mit
6,169
167
codeparrot/github-code
dad04d3fbf96418524174322afce1585afc664900516bab93e72f4eb4eff202e
#!/usr/bin/env python import sys import os import numpy as np import matplotlib.pyplot as plt from clawpack.pyclaw.solution import Solution import clawpack.visclaw.data as data rho = [1025.0,1045.0] eta_init = [0.0,-300.0] def plot_contour(data_dir="./_output",out_dir='./',num_layers=2,num_frames=1000,ref_lines=[-1...
Python
1d/plot_shelf_contour.py
mandli/multilayer-examples
mit
3,904
110
codeparrot/github-code
a3a07eab20ee4804c92adbf10ca31d59196d9bd4237bd6a43bffba8841b99e15
#[macro_use] // has macros, must go first mod utils; pub mod annotation; pub mod attribute; pub mod attribute_group; pub mod attributes; pub mod choice; pub mod common; pub mod complex_content; pub mod complex_type; pub mod constants; pub mod element; pub mod extension; pub mod group; pub mod id; pub mod import; pub m...
Rust
CodeGen/src/xsd/mod.rs
Webern/MusicXML-Class-Library
mit
10,811
390
codeparrot/github-code
8871c9c05804fe94d7dd65301272d5b95b0742dbaf3262441da70ea7361e2706
<?php namespace AppBundle\Action\App\Admin; use AppBundle\Action\AbstractController2; use Symfony\Component\HttpFoundation\Request; class AdminController extends AbstractController2 { private $switchUserForm; public function __construct( AdminSwitchUserForm $switchUserForm ) { $this...
PHP
src/AppBundle/Action/App/Admin/AdminController.php
cerad/ng2016
mit
843
33
codeparrot/github-code
0fc171bb3e0d02aafbd8eba1683616732ba6670353574cefe684e99614b980b0
// Copyright 2018-2021, University of Colorado Boulder /** * Dashed lines that connect the 'point on parabola' to the focus and directrix. * The visibility of the point-focus and point-directrix lines is controlled independently. * * @author Chris Malley (PixelZoom, Inc.) */ import DerivedProperty from '../../.....
JavaScript
js/focusanddirectrix/view/PointOnParabolaLinesNode.js
phetsims/graphing-quadratics
mit
3,389
78
codeparrot/github-code
d340fd2b7d7fbb364eab7e627ce788ff2bda885ece12e8c9b35be9ad1d06f242
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int64_t_fscanf_square_07.c Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-07.tmpl.c */ /* * @description * CWE: 190 Integer Overflow * BadSource: fscanf Read data from the console using fscanf() * ...
C
samples/Juliet/testcases/CWE190_Integer_Overflow/s02/CWE190_Integer_Overflow__int64_t_fscanf_square_07.c
maurer/tiamat
mit
5,132
187
codeparrot/github-code
42cee136a6c84b521e073cbed90f77a46e1278c62f1d0b10bca1133e5d71e96c
/* * SJS 6.8.3 * Minimal SystemJS Build */ (function () { function errMsg(errCode, msg) { return (msg || "") + " (SystemJS https://git.io/JvFET#" + errCode + ")"; } var hasSymbol = typeof Symbol !== 'undefined'; var hasSelf = typeof self !== 'undefined'; var hasDocument = typeof document !== 'undefined'...
JavaScript
ajax/libs/systemjs/6.8.3/s.js
cdnjs/cdnjs
mit
23,028
719
codeparrot/github-code
77eaa555718f21d7f9c0b13a8a3c876c1075491aa641193341295d635a865d22
this.primereact = this.primereact || {}; this.primereact.tabview = (function (exports, React, utils, ripple) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); funct...
JavaScript
ajax/libs/primereact/7.2.0/tabview/tabview.js
cdnjs/cdnjs
mit
22,275
642
codeparrot/github-code
7f26ccd27f4bda3f30851d442e6b23cc0e6126bf65266930df2ab23550f84553
/** * @license Highstock JS v9.1.1 (2021-06-04) * * Indicator series type for Highcharts Stock * * (c) 2010-2021 Wojciech Chmiel * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; mo...
JavaScript
ajax/libs/highcharts/9.1.1/indicators/aroon-oscillator.src.js
cdnjs/cdnjs
mit
18,489
440
codeparrot/github-code
557fc14a3b57845317cc2c17bf328e5a69eb125d53bb6ccadf60df95441d1f18
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { unstable_composeClasses as composeClasses } from '@material-ui/unsty...
JavaScript
ajax/libs/material-ui/5.0.0-alpha.35/legacy/FormControl/FormControl.js
cdnjs/cdnjs
mit
10,539
339
codeparrot/github-code
c2a715df693098bef6b5cfa12d1e25ff93060c3419a71f104d475df7f70357fb
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import NativeSelectInput from './NativeSelectInput'; import withStyles from '../styles/withS...
JavaScript
ajax/libs/material-ui/5.0.0-alpha.9/es/NativeSelect/NativeSelect.js
cdnjs/cdnjs
mit
6,021
213
codeparrot/github-code
1cc1682ca96252567c3b45d35b62278ae8b6840d88049822d4c348f2fde5a069
<?php class WPBT_metabox { function __construct() { //disable/enable metabox for CPT add_action('admin_init', array($this, 'wpbootstrap_syntax_mode_metabox')); // save metabox CPT option add_action('save_post', array($this, 'wpbootstrap_syntax_mode_metabox_save')); } ...
PHP
toolset-bootstrap.1.0/toolset-bootstrap/theme-options/bootstrap-grid/metabox.php
MichaelMusgrove/Bootstrap
cc0-1.0
2,519
54
codeparrot/github-code
8d079d241f910de12c5488fe1f56b18b10099aa888d3ffb7a1b5b8b61008e1e0
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="UTF-8"> <title>Vinay Joshi</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#157878"> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.co...
HTML
index.html
joshivm/joshivm.github.io
cc0-1.0
18,407
431
codeparrot/github-code
ebbd044ef5c0d104f937b21a1c15f94e00404d85f6d02da3009542bcddf2f5d8
\documentstyle[11pt]{article} \textheight 43\baselineskip \oddsidemargin -10 pt \evensidemargin 10 pt \marginparwidth 1 in \oddsidemargin 0 in \marginparwidth 0.75 in \textwidth 6.375 true in \raggedbottom \newcommand{\pref}[1]{(\ref{#1})} \begin{document} \noindent Project description:\\ \noindent {\Large{\bf Qua...
TeX
doc/MSc/msc_students/former/EirikO/phd.tex
CompPhysics/ThesisProjects
cc0-1.0
7,290
182
codeparrot/github-code
6b4c26a0dd295801133111839d0dfa67dd39f4a5af5abd1b394ea51f56d9528a
''' Example of a spike receptor (only receives spikes) In this example spikes are received and processed creating a raster plot at the end of the simulation. ''' from brian import * import numpy from brian_multiprocess_udp import BrianConnectUDP # The main function with the NeuronGroup(s) and Synapse(s) must be na...
Python
examples/OutputNeuronGroup_multiple_inputs.py
ricardodeazambuja/BrianConnectUDP
cc0-1.0
2,862
72
codeparrot/github-code
6507abe6c89749ef1732708a0d7e110eb95659e5fcb21c7ae0068e084877cdb0
#!/usr/bin/env python3 # forked from spline1986's versions import os, sys, sqlite3 from ii_functions import * args=sys.argv[1:] if len(args)==0: print("Usage: sqlite-export.py <db_file>") sys.exit(1) check_dirs() conn = sqlite3.connect(args[0]) c = conn.cursor() c.execute("""CREATE TABLE IF NOT EXISTS msg( id I...
Python
sqlite-export.py
vit1-irk/ii-db-utils
cc0-1.0
1,050
44
codeparrot/github-code
06f7e478a32cacc3a4b44fe485c9d0b32886e90964fc812870976bb89d27ac09
/* * Scene_Egypt_Boatroom.h * enigma * * Created by Rockford on 21/12/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #ifndef _ENIGMA_SCENEEGYPTBOATROOM_H #define _ENIGMA_SCENEEGYPTBOATROOM_H #include "EScene.h" #include "KPTK.h" #include "KSound.h" class Scene_Egypt_Boatroom: public...
C
Sources Age of Enigma/Scene_Egypt_Boatroom.h
dmekersa/Gamecodeur
cc0-1.0
1,032
49
codeparrot/github-code
b9ea29d0f227944166ba9e03c821970efc860ba3abb667d1515ea0508b39c569
#!/bin/bash # # @(#) 擬似乱数を生成・表示し、引数にマッチするまでループします # # Usage: # iiyo_koiyo.sh [num] # command | iiyo_koiyo.sh # # Author: # @84____ (Masaya Tk.) # base=${0##*/} _error() { echo "${base%.sh}: invaild argument" 1>&2 exit 1 } _randCreate() { rand=$((${RANDOM} % 10)) printf ${rand}...
Shell
iiyo_koiyo.sh
844196/iiyo_koiyo
cc0-1.0
703
53
codeparrot/github-code
e46ca474229f5d5979f7489017e3235640ebd7540f3e340b6fe6d8316b28c57d
# -*- coding: utf-8 -*- # Signāli un sistēmas. 3. Laboratorijas darbs # == Taisnstūra loga ietekme uz signāla spektru == import sys import numpy as np import matplotlib.pyplot as plt from PyQt4 import QtGui, QtCore from scipy.fftpack import fft from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureC...
Python
LD3/ld3_script_unified.py
0x4C4A/SS-2014
cc0-1.0
7,906
211
codeparrot/github-code
5178e7f777ab8d3fb2c6ff3f39505ac7f90e6d4529055b60eb7422e7d9976fb7
using System; #pragma warning disable 1591 namespace Seguetech.Zippy.Areas.HelpPage { /// <summary> /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. /// </summary> public class ImageSample { /// <summary> ...
C#
Web/Zippy/Areas/HelpPage/SampleGeneration/ImageSample.cs
seguemodev/Meducated-Ninja
cc0-1.0
1,087
42
codeparrot/github-code
3c341437ec6858e1ba15d444a01b0d919d1fc4b2edd76ee851b0e1b09d9c138a
<h2>Variables</h2> <h3>Color variables</h3> <pre><code>@pull-quote_body @pull-quote_citation @micro-copy-text @date-text @category-slug-text @category-slug-hover @header-slug-thin-border @header-slug-thick-border @padded-header-text @padded-header-bg @padded-header-border @fancy-slug-text @fancy-slug-bg @fancy-slug-bor...
HTML
_includes/usage/cf-typography.html
cfarm/capital-framework
cc0-1.0
82,012
632
codeparrot/github-code
cf3ced540854f3e40ced9312054c9816568b7377cbf7c173b4267450b2e17a1a
// see http://stackoverflow.com/questions/22073716/create-a-waveform-of-the-full-track-with-web-audio-api export const downsample = (buffer, targetCount) => { const BUCKET_SIZE = 6; const channel = buffer.getChannelData(0); // left 0, right 1 const resampledBuffer = new Float64Array(targetCount * BUCKET_SIZE); ...
JavaScript
src/waveform-utils.js
vire/react-sound-player
cc0-1.0
2,041
66
codeparrot/github-code
dac74ec0671c08ac87eb48680dd81d5b4d9e9fbb1aa8dfcf0d1c8ac1b2b6d0be
#!/bin/bash export ROS_IP=10.42.0.19 export ROS_MASTER_URI=http://dagobert:11311/ echo "-----------------------------------------------------------" echo "- Starting rviz -" echo "-----------------------------------------------------------" rosrun rviz rviz & PID1="$!" sleep ...
Shell
dynamic_mapping_pc.sh
tuw-cpsg/dynamic_mapping
cc0-1.0
1,644
63
codeparrot/github-code
bfebdb2448479257a5d5b7c2f3894deb66a15a702af5b626704f980b83728732
<?php /** * ClearCache Controller * * Allows clear cache from ClearCache panel for DebugKit * * PHP 5 * * Copyright 2010-2012, Marc Ypes, The Netherlands * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright 2010-2012 Marc Ypes, The Netherla...
PHP
app/Plugin/ClearCache/Controller/ClearCacheController.php
steampilot/event-calendar
cc0-1.0
3,599
161
codeparrot/github-code