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
ed4505bd6f4ee8ecb66e6869e36312550b30747d72607a018cd7e6b8bcec0db7
/*----------------------------------------------------------------------------- The MIT License (MIT) This source file is part of GDGeek (Game Develop & Game Engine Extendable Kits) For the latest info, see http://gdgeek.com/ Copyright (c) 2014-2017 GDGeek Software Ltd Permission is hereby granted, free of char...
C#
Assets/GDGeek/Plugins/GDGeek/Task/TaskManager.cs
gdgeek/GDGeek
mit
3,665
137
codeparrot/github-code
7f15df094ff8328857980fcb5495c9eb4231b450250fec1f1193fd8784784386
<?php /* * 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. */ /** * Description of m_payment_receipt * * @author johnenrick */ class M_payment_receipt extends API_Model{ public func...
PHP
application/modules/api/models/M_payment_receipt.php
johnenrickplenos/NCJPIA
mit
1,417
42
codeparrot/github-code
4bb54ce88b6638ed5b72167de87363a41df024575ec9d05791d9dba10a6f7dfe
/* * 定义动画元素事件类,判断元素事件; * @param dom: 承载点击事件的dom, 一般是显示的canvas dom节点; * create by Paner @2016; */ Animate.Event = function(dom){ this._eventCanvas = document.createElement('canvas'); this._eventCtx = this._eventCanvas.getContext('2d'); this._contain = {}; var _this = this; //基本事件类型 var e...
JavaScript
src/base/Event.js
happyPaner/animate
mit
4,436
129
codeparrot/github-code
e5a67840e5554bccdd540ae34793a38de880ef43cef3f792a49a4a4ea602176e
from common.models import Tag from .client import SalesforceClient import json import requests import threading ''' Contributor model maps to the Contact object in Salesforce ''' client = SalesforceClient() def run(request): response = SalesforceClient().send(request) def save(contributor: object): data = {...
Python
salesforce/contact.py
DemocracyLab/CivicTechExchange
mit
1,381
46
codeparrot/github-code
56ded82e9fab1ca8d30104c2c124aaedd0f1080263f79826aeacc580d31a317e
//----------------------------------------------------------------------- // Copyright 2011 Ciaran McHale. // // 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...
C
src/SchemaTypeScope.h
offa/config4cpp
mit
2,195
66
codeparrot/github-code
4f7ff41dd4f332e2782ae8593ccf455156d0d3458939e6bae77873c82c212846
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu from __future__ import (unicode_literals, absolute_import, division, print_function) import logging from django.utils import timezone from snisi_core.models.Reporting import (ExpectedReporting, ...
Python
snisi_reprohealth/aggregations.py
yeleman/snisi
mit
7,779
232
codeparrot/github-code
82bf8ac909928a445ba03621e2e40326ecdec0468614d0aced641522ac0de1aa
import { Meteor } from 'meteor/meteor'; import { Template } from 'meteor/templating'; import { ReactiveDict } from 'meteor/reactive-dict'; import { ReactiveVar } from 'meteor/reactive-var' import { Session } from 'meteor/session' import { $ } from 'meteor/jquery'; // 컬렉션. import { Categories } from '/imports/collectio...
JavaScript
client/views/category/category.js
bitboylabs/selluv-admin
mit
7,626
284
codeparrot/github-code
ee880d4b92736341cd0cf958edd3087ffc5f9caa65f351232b9ebae713f9f49d
using NMock; using NUnit.Framework; namespace wsm.Puzzle.Tests { [TestFixture] public class Test<%= name %>Presenter : TestHelper { private DynamicMock modelMock; private I<%= name %>Model model; private DynamicMock adapterMock; private I<%= name %>Adapter adapter; [SetUp] public void Set...
C#
code_generator/templates/mvp/TestPresenterWithAdapter.cs
atomicobject/csharp_mvp_generator
mit
960
47
codeparrot/github-code
40b9621e955b1c6c02fefc7af63f1708740dd5889d079b2cc0dc7a3465aae03d
#ifndef _log_store_h #define _log_store_h #include <Arduino.h> #include <deque> #include "HardwareSerial.h" #include "definitions.h" struct logmessage { uint16_t id; String message; }; struct logmessage_response { const uint16_t total; const std::deque<logmessage>& messages; }; class LogStore : public Har...
C
src/log_store.h
trycoon/liam-esp
mit
689
35
codeparrot/github-code
f9963439105c9f521736829ad5827b2b862633a9d9f1999513e2cb50b266f462
/* See LICENSE for license details. */ /* Module: meat_time.h Description: Time utility functions. */ /* Header file dependency */ #if !defined(INC_MEAT_OS_H) #error include meat_os.h first #endif /* #if !defined(INC_MEAT_OS_H) */ /* Reverse include guard */ #if defined(INC_MEAT_TIME_H) #error include meat_t...
C
meat_time.h
fboucher9/meat
mit
6,144
301
codeparrot/github-code
3444be6c5885bd91c83a5d633647ab0badd3c75a732d58ef47640ebdb38ecc79
class CheckpointV1 < Sinatra::Base # @apidoc # Perform all relevant callbacks checking if the provided action is allowed for the current # identity. The verdict is returned in the 'allowed' parameter. If the action is disallowed # the reason is provided in the 'reason' field and the url of the denying callback...
Ruby
api/v1/callbacks.rb
bengler/checkpoint
mit
4,812
130
codeparrot/github-code
2e04c70c785032c980c6e22cdfcd1ce530996d29d6b6e7cdc5020cd60d82f668
#pragma clang diagnostic ignored "-Wdeprecated-declarations" #pragma clang diagnostic ignored "-Wtypedef-redefinition" #pragma clang diagnostic ignored "-Wobjc-designated-initializers" #define DEBUG 1 #include <stdarg.h> #include <xamarin/xamarin.h> #include <objc/objc.h> #include <objc/runtime.h> #include <objc/messag...
C
Calculators (Xamarin)/Calculators/Calculators.iOS/obj/iPhone/Debug/device-builds/iphone9.3-10.3.1/mtouch-cache/registrar.h
JVDeursen/DP_Calculators
mit
7,041
140
codeparrot/github-code
da960d9787efa39d2d39aa4b1c5c41eb13153c83bee0d507c9b0edb543b92f2d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet...
HTML
clean/Linux-x86_64-4.02.1-1.2.0/unstable/hott/contrib:higman-nw/dev/2014-12-03_16-42-07.html
coq-bench/coq-bench.github.io-old
mit
9,455
220
codeparrot/github-code
aa7d84556ab3df8b6579adb1cfaf34b848a3ddf3339a84c14b6a562972bc4ac9
using UnityEngine; using System.Collections; using UnityStandardAssets.ImageEffects; public class PauseMenuController : MonoBehaviour { private PersistentData persistentData; private SceneFadeInOut sceneFadeInOut; private GameObject mainCamera; private Animator anim; [HideInInspector] public bool isPaused; pri...
C#
titleScripts/PauseMenuController.cs
ScopatGames/ShojiSplice
mit
3,374
123
codeparrot/github-code
0b5a01bc68179cb925a9c30855cf8565aaafa37bdd046bdff37a3bd9d17d59de
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using ActiveCollabSDK.SDK; using ActiveCollabTracSync.Entities.ActiveCollab; namespace ActiveCollabTracSync.Data.ActiveCollab { /// <summary> /// /// </summary> public...
C#
ActiveCollabTracSync/Data/ActiveCollab/TaskDA.cs
sfarbota/activecollab-trac-sync
mit
3,883
91
codeparrot/github-code
bde871fb65b5a5103d75df28cbb6c94d9fd639840c8d07ebe25c2ab93951c42c
#!usr/local/bin #sidgan from pylab import * import pylab import scipy import os import numpy import sys import sklearn from sklearn.kernel_approximation import RBFSampler import sklearn.cluster import optparse from sklearn.decomposition import RandomizedPCA from sklearn.neighbors import KNeighborsClassifier fr...
Python
opencosmics.py
sidgan/opencosmics
mit
8,249
249
codeparrot/github-code
cac811c3eaa0994b577a363a99ac875f6f80aa023b4734781ea1619067a91820
goog.provide('ol.interaction.KeyboardPan'); goog.require('goog.asserts'); goog.require('ol'); goog.require('ol.coordinate'); goog.require('ol.events.ConditionType'); goog.require('ol.events.EventType'); goog.require('ol.events.KeyCode'); goog.require('ol.events.condition'); goog.require('ol.interaction.Interaction'); ...
JavaScript
public/javascripts/plugins/ol3/ol/ol/interaction/keyboardpaninteraction.js
joseahr/informaTorrent-Node.JS
mit
3,658
113
codeparrot/github-code
9d3f94a29c5104a0ee081318a0b1dcd4ba99bc2809435fabc96392005d78e122
using System; namespace WordsFrequency.Common.Extensions { public static class MonadicExtensions { #region With public static TResult With<TInput, TResult>(this TInput o, Func<TInput, TResult> evaluator) where TResult : class where TInput : class { i...
C#
WordsFrequencyCommon/Extensions/MonadicExtensions.cs
UberAlles11/WordsFrequency
mit
1,747
61
codeparrot/github-code
033c0d0a57c3445e0bd982abe6ba5811cde1709c84e17e605bc4187fef70620c
/*global require*/ define(["WebSite","UI","PathUtil","Util","assert","jshint"], function (WebSite,UI,PathUtil,Util,assert,jshint) { var exec = (WebSite.isNW? require('child_process').exec : function (){}); function extLink(href,caption,options) { options=options||{}; var opt=getOpt(href,...
JavaScript
www/js/ui/extLink.js
hoge1e3/Tonyu2
mit
1,782
52
codeparrot/github-code
e06cd899816b99567be5f47602fc5c2e908327bd3c5545c56e43fea2a022b083
import chai, {expect} from 'chai'; import spies from 'chai-spies'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import AddItemButton from './AddItemButton'; chai.use(spies); function setup({ buttonAdditionalClasses = '', children }) { let props = { buttonAdditionalClasses, chi...
JavaScript
frontend/components/AddItemButton.spec.js
Londeren/lists
mit
1,591
60
codeparrot/github-code
45b48e8c5d9eac19ef8a90a7ce9b1bbfc6d24bd06033e0db80e9c9509c40e499
import urllib from bs4 import BeautifulSoup page_url = 'http://www.blic.rs/' page = urllib.urlopen(page_url) soup = BeautifulSoup(page) a = soup.find(id="cat_boxes") b = a.find_all('a') def firstHeadline(): text1 = soup.select("#home_main_article_text")[0].h1.text href1 = soup.select("#home_main_article_te...
Python
storiesText.py
Lazar-T/blic_news
mit
2,806
137
codeparrot/github-code
a0f9b3a3f0b99c45f58cc79ee1cb2e53057263ce7f20a41ad3344c32363045a1
class SurvivorController < ApplicationController include SessionHelper skip_before_action :verify_authenticity_token @@null_profile = { config: { timestamp: 0 } } def sanitize_profile_data d return d == 'null' ? @@null_profile : JSON.parse(d).deep_symbolize_keys e...
Ruby
app/controllers/survivor_controller.rb
gbudiman/drpaedia
mit
3,003
116
codeparrot/github-code
5d2c3665ad489f6950ab6d88cee8c0902b3e8f0399b7553c2872349d4bf51aab
package mux //go:generate go run $GOPATH/src/v2ray.com/core/tools/generrorgen/main.go -pkg mux -path App,Proxyman,Mux import ( "context" "io" "sync" "time" "v2ray.com/core/app" "v2ray.com/core/app/dispatcher" "v2ray.com/core/app/log" "v2ray.com/core/app/proxyman" "v2ray.com/core/common/buf" "v2ray.com/core...
GO
app/proxyman/mux/mux.go
ghmajx/v2ray-core
mit
9,758
409
codeparrot/github-code
072e0784b28451f0869b25d90fd467375092f3b885cf69d31c8ce6b33febb50c
using System; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace Syslog.Framework.Logging { public static class SyslogLoggerFactoryExtensions { public static void AddSyslog(this ILoggerFactory loggerFactory, IConfigurationSection section, Action<SyslogLoggerSettings> configura...
C#
src/Syslog.Framework.Logging/SyslogLoggerFactoryExtensions.cs
mguinness/syslog-framework-logging
mit
1,505
36
codeparrot/github-code
90327563004af07bb5bd6005865faf5a43468d8cbb0c90ce7937c2d79ed2e6e5
#ifndef DRAWING_HPP #define DRAWING_HPP #include "emscripten/bind.h" #include "GLES2/gl2.h" #include "buffers.h" #include "shaders.h" class Drawing { public: Drawing(){}; ~Drawing(){}; void init(int _width, int _height); void resetBuffer(Buffer& _buffer); void drawBuffer(Buffer& _buffer); vo...
C++
src/drawing.hpp
Gmadges/fluidPainter
mit
2,952
120
codeparrot/github-code
9f530790f381a8e6828855ddc6607d7dbca8259f386f5649b07d210c391a3aa0
package model import ( "fmt" "github.com/aiyi/go-user/db" ) // 绑定QQ(一般在认证后进行操作). // 调用该函数前, 请确认: // 1. 该用户存在并且 verified // 2. 该用户未绑定QQ // 3. 该QQ未绑定用户 func BindQQ(userId int64, openid string) (err error) { if err = removeFromCache(userId); err != nil { return } if err = bindQQ(userId, openid); err != nil {...
GO
model/bind_qq.go
aiyi/go-user
mit
1,459
76
codeparrot/github-code
b960e7b1fc705220c5a0f9e14790a2d2760e65c9769c4b3af420ff9a3649c76b
/** * The MIT License * Copyright (c) 2011 Kuali Mobility Team * * 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, ...
Java
security.authentication/src/main/java/org/kuali/mobility/security/group/entity/GroupImpl.java
tamerman/mobile-starting-framework
mit
2,604
100
codeparrot/github-code
6856c7e063932b537b456d483671406e1a84862dad258a8d110d5fc02c008ae8
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.language = 'fr'; // config.uiColor = '#AADC6E'; c...
JavaScript
app/assets/javascripts/ckeditor/config.js
werein/foundationstone
mit
3,363
93
codeparrot/github-code
ff9e4209ec4dc4f4f5f40b8b2b084580f62e5b3ec8765f207317371337368e6c
<?php use Doctrine\ORM\EntityManager; use DvsaCommon\Factory\AutoWire\AutoWireFactory; use DvsaCommon\HttpRestJson\Client; use DvsaCommon\HttpRestJson\ZendClient; use DvsaCommon\Obfuscate\ParamEncrypter; use DvsaCommon\Obfuscate\ParamObfuscator; use DvsaCommon\FullStackLogging\Service\FullStackLoggingService; use Dvsa...
PHP
mot-testsupport/module/TestSupport/config/services.config.php
dvsa/mot
mit
12,331
239
codeparrot/github-code
4ddbbeb3754a5d52bb923d4ddac5f926d557f9a8d4b0f21188edfed1130f87eb
""" This is the (unofficial) Python API for Yatedo.com Website. Using this code, you can manage to retrieve employees from a specific company """ import requests from bs4 import BeautifulSoup import re class YatedoAPI(object): """ YatedoAPI Main Handler """ _instance = None _verbose = False...
Python
yatedoAPI.py
PaulSec/API-Yatedo
mit
2,867
86
codeparrot/github-code
3da1976c40e3f4924fd29b1a32011f4713114d1b3d1a595c467224e677dea3c2
/** ****************************************************************************** * @file navipack_protocol.h * @author Jalon * @date 2016.06.16 * @brief 通讯协议会话层相关数据结构定义 * @attention Copyright (C) 2016 Inmotion Corporation ****************************************************************************** ...
C
Software/Source/navipack_sdk/core/navipack_protocol.h
navipack/navi-panel
mit
2,546
114
codeparrot/github-code
f77b1189296197bb46774b7e9b2396320f52b4d291295cfbdde7078b54cbb456
import datetime from dateutil.relativedelta import relativedelta import urllib from django.contrib import messages from django.contrib.auth.decorators import login_required, permission_required from django.contrib.auth.models import User from django.core.urlresolvers import reverse, reverse_lazy from django.db import ...
Python
timepiece/crm/views.py
gaga3966/django-timepiece
mit
21,298
571
codeparrot/github-code
3fdf7d679c98e734d23733ff7dc3dc5440e79fab0eceda25f0404421a8198899
<?php /* * This file is part of the phlexible package. * * (c) Stephan Wentz <sw@brainbits.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Phlexible\Component\MediaManager\Slot; /** * Media site slot. * * @auth...
PHP
src/Phlexible/Component/MediaManager/Slot/SiteSlot.php
phlexible/phlexible
mit
1,071
71
codeparrot/github-code
af6d5d0c54fe8832bc8935123ff85229b8bfc59f1074d93bda40e3370cde1be0
(function(){ var root = this; /** * @author Miller Medeiros http://millermedeiros.github.com/js-signals/ * @author Richard Davey <rich@photonstorm.com> * @copyright 2014 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ /** * Object th...
JavaScript
src/lib/Signal.js
vonWolfehaus/von-physics
mit
16,075
541
codeparrot/github-code
64a57fade221af04c0d356340cc8b08146d994989d34aeab8c3e6738698a3362
var Books = (function() { var $books = $( '#bk-list > li > div.bk-book' ), booksCount = $books.length; function init() { $books.each( function() { var $book = $( this ), $other = $books.not( $book ), $parent = $book.parent(), ...
JavaScript
app/assets/javascripts/3dcovers/book.js
BibAlex/bhl_rails4
mit
3,103
60
codeparrot/github-code
308d245416d46f1a8171eed13296b0474d6d9fe996ba0f43a765280d021c8fdd
import path from 'path'; import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'; import { dirname } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const sharedConfig = { mode: 'development', externals: { fs: 'fs', }, resolve: { plu...
JavaScript
webpack.config.js
izelnakri/memserver
mit
2,658
88
codeparrot/github-code
11f6d8bb8bf28a792d88ad4582076a4f300f36642907d60a09e8915a3a94759c
{% if paginator.total_pages != 1 %} <div class="container"> <div class="row"> <div class="col"> <nav aria-label="Page navigation example"> <ul class="pagination justify-content-center"> {% if paginator.previous_page %} <li class="page-item"> {% else ...
HTML
_includes/paginator.html
kotlinresources/kotlin-resources
mit
1,990
50
codeparrot/github-code
9a6e2c3cdcf3be87fff1f10819c5ccf1524046a885a788532b47537f68718d27
#include <iostream> #include <fstream> #include <string> #include <stdlib.h> using namespace std; const char *in_file_name = "ciur.in"; const char *out_file_name = "ciur.out"; bool *numbers; int N; void die(bool assertion, const char *message) { if (assertion) { fprintf(stderr, "(%s, %d): ",__FILE__, __LINE__); ...
C++
ciur/ciur.cpp
MarianVasilca/The100DayProject
mit
1,098
80
codeparrot/github-code
357dc9511f2ebf6352fff4423e99f177f93dd7b051242f9059291601b428d8ca
require 'vagrant_commands' module Vagrant_ci class Runner attr_accessor :build_name def initialize(build_name) @build_name = build_name end def run(task_list) begin heartbeat = Vagrant_ci::Jenkins::heartbeat puts "Creating V...
Ruby
lib/vagrant_ci/run.rb
ChrisGriffiths/Vagrant_ci
mit
2,585
78
codeparrot/github-code
cc1115d2e83add3a037897ac53770bb84802d9e2af2ab17833ae33a8be04c1fb
<?php class ncChangeLogAdapterDeletion extends ncChangeLogAdapter { protected $changeLog = array(); /** * Retrieves the HTML representation of the class name. * It may transform the class name values (eg. translation) * * @return String HTML representation of the className. */ public function...
PHP
lib/adapter/ncChangeLogAdapterDeletion.class.php
Symfony-Plugins/ncPropelChangeLogBehaviorPlugin
mit
843
42
codeparrot/github-code
c6e48ad7b5a31c673e691894b498207bfff54b3b8a1f775d218161ba593dd70b
// Canvas Asteroids // // Copyright (c) 2010 Doug McInnes // KEY_CODES = { 32: 'space', 37: 'left', 38: 'up', 39: 'right', 40: 'down', 70: 'f', 71: 'g', 72: 'h', 77: 'm', 80: 'p' } KEY_STATUS = { keyDown:false }; for (code in KEY_CODES) { KEY_STATUS[KEY_CODES[code]] = false; } $(window).keydown...
JavaScript
game.js
SteerpikeV/reflections
mit
33,449
1,305
codeparrot/github-code
4681e55be265733fe1ab9e0045ee06002d0991befc546336ea1dad613ad38bfc
using LionFire.Execution.Executables; using LionFire.Reactive; using LionFire.Reactive.Subjects; using System; using System.Collections.Generic; using System.Linq; using System.Reactive.Subjects; using System.Threading.Tasks; namespace LionFire.Execution { public class RemoteExecutionControllerProxy : Executabl...
C#
src/LionFire.Execution.Context/Execution/Controllers/RemoteExecutionControllerProxy.cs
lionfire/Core
mit
877
36
codeparrot/github-code
3f8d16ad221ab8d510922cdd8fa455bbb6c7444f1b8fdb5b8063da7f058b942d
import {bindable, autoinject} from 'aurelia-framework'; import {ExampleContext} from './example-context'; let extensionLanguageMap = { js: 'javascript', html: 'markup' }; function getLanguage(filename) { let extension = (/\.(\w+)$/).exec(filename)[1].toLowerCase(); return extensionLanguageMap[extension]; } @...
TypeScript
src/_resources/converters/file.ts
vcardins/aurelia-admin-panel
mit
1,115
50
codeparrot/github-code
cb7a6a1f440ec73459e8e99e6e7e4210fd415734c592da9af0d69649133447e1
import {useEffect} from 'react'; import {observable, action, autorun} from 'mobx'; import {useObservable} from 'mobx-react-lite'; import firebase from '../api/firebase'; import database from '../api/database'; import auth from './auth'; export function createDocument(model, data) { const document = {...model, ...da...
JavaScript
src/stores/utils.js
carab/Pinarium
mit
6,618
253
codeparrot/github-code
41b15d4dc9ef9608bf93bb28aa2c39bc131a0f3b218950dbe2cb60a143a030fa
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Web.Http; using System.Web.Http.Description; using System.Xml...
C#
PhoneManagementSystem.WebApi/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
andrei-bozhilov/Phone-Management-System
mit
19,101
451
codeparrot/github-code
473c66f8031f0f1d0a79447b20429ac48e2c9018b7296f6a14d24b017075eb2d
/******************************************************************************* * Copyright (c) 2017-2018 David Graeff <david.graeff@web.de> * * 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 So...
C++
test/add_remove_server_tests.cpp
Openhab-Nodes/libWakaamaEmb
mit
3,858
114
codeparrot/github-code
c68243ab42dcdf92fd5cb36a2f06e3a30913762d88e35771138a0732c58c4de2
// Stack template // The std::stack adapter has a nasty interface, so I made my own one. #pragma once #include <cassert> #include <vector> template <typename type> class stack { private: std::vector<type> core; public: void push( const type& element ) { core.push_back( element ); } ...
C
LightCubes/source/src/gl3d/stack.h
LeeCIT/LightCubes
mit
828
70
codeparrot/github-code
16e7a3fac70b805cd1639127499d4262f31192401ac431640f287f1879f351c7
module Searchable extend ActiveSupport::Concern included do include Elasticsearch::Model UNREAD_REGEX = /(?<=\s|^)is:\s*unread(?=\s|$)/ READ_REGEX = /(?<=\s|^)is:\s*read(?=\s|$)/ STARRED_REGEX = /(?<=\s|^)is:\s*starred(?=\s|$)/ UNSTARRED_REGEX = /(?<=\s|^)is:\s*unstarred(?=\s|$)/ SORT_REGE...
Ruby
app/models/concerns/searchable.rb
brendanlong/feedbin
mit
6,746
217
codeparrot/github-code
e8af77b4b639f6d6a9fbfe9d10d505d1639c0e0d88185aeb64a0dcc70920df5a
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>App</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- build:css(tmp/result) /assets/app.min.css --> <link rel="stylesheet"...
HTML
app/index.html
michaelorionmcmanus/eak-bootstrap
mit
4,228
121
codeparrot/github-code
2521feb2cd51bb5ac528a49f0f0e3f964eed9dff28a882ac077589dd33bf78dd
module.exports = function asyncGuard() { var callbacks = new Map(); return { add: function (key, cb) { var arr = callbacks.get(key); if (arr) { arr.push(cb); return false; } arr = [cb]; callbacks.set(key, arr); return true; }, run: function (key, args, onError) { var arr = callbac...
JavaScript
index.js
Wizcorp/async-guard
mit
887
50
codeparrot/github-code
0cc5d8fca3424a3114efb572c88c2aced0e23b99a893314aee4a38e571af5400
#include "Particles.h" #include "../Game.h" Particles::Particles(void) { } Particles::Particles(Image *t, int frequency, float radius) { this->setId(Game::getParticlesId()); dbMakeParticles(this->id,t->id,frequency,radius); } Particles::Particles(ParticleType p, Image *t, int frequency, float x, float...
C++
smart-darkgdk/include/Particles.cpp
endel/smart-darkgdk
mit
2,696
115
codeparrot/github-code
9fd51a518062d626895bbbd89dec506b1669b220b13b582c1e6283d28bcd8abf
#pragma strict // Script used to handle the scoring of the game. If a user selects a problem that // Matches the answer, +1 score. If the score reaches 25, end the game // Also used to contribute to the student model which answers the student beats // Used for debugging to reset the student model function delete_play...
JavaScript
Assets/Scripts/ScoreManager.js
adamgillfillan/math_game
mit
2,942
94
codeparrot/github-code
9d9b7950dbc82440b77df5c620b7fb178e953f66e3c8be0b87e6dc6d1cc5ec91
#include "CordinateSystemNode.h" #include <osg/Shape> #include <osg/ShapeDrawable> #include <osg/Geode> #include <osg/MatrixTransform> CoordinateSystemNode::CoordinateSystemNode() : osg::Transform() { build(); } CoordinateSystemNode::CoordinateSystemNode(const CoordinateSystemNode &fCopy, const osg::CopyOp &...
C++
nodes/CordinateSystemNode.cpp
ahmed-abdelhay/CG-3D
mit
2,375
75
codeparrot/github-code
3f87462a8531e08cda154a8e9d34732de53ddce56182b799cb330624771ee4c8
#!/bin/bash ########## CONFIGURATION ########## . "INSERT_CONFIG_FILE" ################################### ########## DOWNLOADS ########## # Rclone _rclone_version="v1.39" _rclone_release="rclone-${_rclone_version}-linux-amd64" _rclone_zip="${_rclone_release}.zip" _rclone_url="https://github.com/ncw/rclone/releases/do...
Shell
setup.sh
madslundt/cloud-media-scripts
mit
6,169
177
codeparrot/github-code
9a0c5c959319996b3b003045e1f4196fea7540163a978ca40f49d25828653fb1
<?php namespace app\libraries; class ConfusionMatrix { private $matrix; public function __construct() { $this->matrix = []; } public function addCount($actualClass, $predictedClass) { if (!isset($this->matrix[$actualClass])) { $this->matrix[$actualClass] = []; ...
PHP
app/libraries/ConfusionMatrix.php
juliardi/skripsi
mit
827
40
codeparrot/github-code
7f58e1ba1c193c11f2d93ea0f5c2dc6972e789661a98e7cd23c15d7236f75ff5
using System; using System.Collections.Generic; using System.IO; using System.Linq; using SolutionInspector.Contracts; using SolutionInspector.Settings.Persistence; namespace SolutionInspector.Model.Persistence { public static class SolutionReader { private const string Prefix = "Microsoft Visual Stu...
C#
SolutionInspector/Model/Persistence/SolutionReader.cs
pinebit/SolutionInspector
mit
4,309
127
codeparrot/github-code
23f0dcbcced919b4925f6c5e09277e04c28d8859708223c44fe8ff22098679a8
// DATA // /** * FUNCTION: Data( data ) * Data constructor. Creates a new data instance. * * @constructor * @param {array} data - input data is expected to be an array of arrays; e.g., [[[0,0],[1,1],...,[N,N]]] or [[{x:0,y:0},{x:1,y:1},...{x:N,y:N}]]. Elements in the outer array are treated as separate datasets. * @r...
JavaScript
src/data/index.js
figure-io/figure.io
mit
17,127
585
codeparrot/github-code
7634830784a7375151e90139cfa5c578b2ba94c0f8b09d6992b13782d4be0cfe
<?php namespace App\ServerBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; /** * @MongoDB\Document */ class Application{ /** * @MongoDB\Id */ protected $id; /** * @MongoDb\String */ protected $name...
PHP
src/App/ServerBundle/Document/Application.php
matiasmm/FunctionalitiesServer
mit
737
52
codeparrot/github-code
91e6a92d2f1da5243da391eff50d6f4859e933ec2d2c43ad198792cfb5690a7b
/** * Returns whether the object has been modified. * * @return boolean True if the object has been modified. */ public function isModified() { return !!$this->modifiedColumns; } /** * Has specified column been modified? * * @param string $col column fu...
PHP
src/Propel/Generator/Builder/Om/templates/baseObjectMethods.php
cristianoc72/Propel2
mit
6,525
218
codeparrot/github-code
633a4677ab5263c5016d76926c81f96c155b618823d6cd9dc935e8e60ed7b961
package au.gov.dto.dibp.appointments.security.context; import au.gov.dto.dibp.appointments.client.Client; import au.gov.dto.dibp.appointments.session.LogoutCookieService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.authentication.UsernamePasswordAuthenticationToke...
Java
src/main/java/au/gov/dto/dibp/appointments/security/context/SecurityContextSerializer.java
AusDTO/citizenship-appointment-server
mit
3,437
80
codeparrot/github-code
f33c6dbf6a59e6cf439acb4b28a5da5f3c4de21b9a0fef01e93ff7a5a6a9dd85
using Newtonsoft.Json; namespace commercetools.Subscriptions { /// <summary> /// This payload will be sent for a ChangeSubscription if a resource was updated. /// </summary> /// <see href="https://dev.commercetools.com/http-api-projects-subscriptions.html#resourcecreated-payload"/> public class Re...
C#
commercetools.NET/Subscriptions/ResourceCreatedPayload.cs
commercetools/commercetools-dotnet-sdk
mit
1,077
41
codeparrot/github-code
5fd9d5c29463749bcbb93616bae615504c60258bf03e880b75af2ea7db6f04d9
<HTML><HEAD> <TITLE>Review for Addicted to Love (1997)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0118556">Addicted to Love (1997)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Steve...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/7656.html
xianjunzhengbackup/code
mit
6,255
101
codeparrot/github-code
0d72f0bb858167f85d6832ad9022264ca39637b374e0270744978dc8c90eb21f
import math import numpy as np import matplotlib matplotlib.use('SVG') import matplotlib.pyplot as plt fig, ax = plt.subplots() x1 = 2. x = np.linspace(0, x1, 100) ax.plot(x, np.exp(-5. * x), linewidth=2, label = '$x(t)$') N = 4 h = x1 / N sx = np.linspace(0, x1, N + 1) sy = [(1 + 5. * h)**(-n) for n in range(N +...
Python
web/python/implicit_euler.py
rekka/intro-fortran-2016
mit
1,047
46
codeparrot/github-code
14035842fc0ed034b4e982df00963871058d1bf180e2339dd4a63cab809793f4
#include "Scene.h" #include <map> #include <dae.h> #include <dom/domCOLLADA.h> #include <dom/domAsset.h> #include <dom/domProfile_COMMON.h> #include <dom/domCommon_color_or_texture_type.h> #include "SceneGraph.h" typedef std::map<std::string, domCommon_newparam_type*> NewParamMap; struct ShaderElements { ShaderElem...
C++
src/collada-view/SceneReadEffect.cpp
veter-team/daeview
mit
13,419
406
codeparrot/github-code
ab75dbe6705a08aa11b53bd53e5f5c83543b4f77c05952c4257cc0e87f3f44a1
/** * Created by glenn on 27.02.17. */ const _ = require('lodash'); const Generator = require('yeoman-generator'); module.exports = class extends Generator { constructor(args, opts) { super(args, opts); } prompting() { return this.prompt([ { type: 'input', name: 'moduleName', ...
JavaScript
generators/module/index.js
dwiyatci/generator-c8y
mit
897
47
codeparrot/github-code
7fd53e1fdb0f7f8f2ab6dd3a66ca4fa99b52b5ebbadc0f5cc3837d9bded82382
using AutomationMLLib; using System; using System.Collections.Generic; namespace SampleConsole { class MainClass { public static void Main(string[] args) { ParseString(); } private static void ParseString() { var parser = new AMLParser(); var xmlStr = "<InternalElement Name=\"firstScrewdriver\"...
C#
SampleConsole/Program.cs
gibachan/AutomationML-Viewer
mit
1,198
38
codeparrot/github-code
8e33111b00bdbd829c25dc795e1eaaecac28bf2c5855ae7509148d44909cbab9
'use strict'; var path = require('path'); module.exports = function (grunt) { // Load relevant grunt tasks grunt.loadNpmTasks('grunt-contrib-compass'); grunt.loadNpmTasks('grunt-less-to-sass'); // Define the configuration for all the tasks grunt.initConfig({ // Convert less CSS files to SASS (.scss) ...
JavaScript
Gruntfile.js
unchatbar/mobile-angular-ui-sass-only
mit
2,321
85
codeparrot/github-code
a07d34c60abdf9680b26991d4a1a3075b42d78fcee70e3a212f6888347de36c1
{% extends "base.html" %} {% load django_bootstrap_breadcrumbs %} {% load bootstrap %} {% load socialaccount %} {% block title %}User profile of {{ w_user }}{% endblock %} {% block my_account_active %}active{% endblock %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb w_user "view_profile" %} {% endb...
HTML
templates/user_manager/user_profile.html
MOOCworkbench/MOOCworkbench
mit
2,112
62
codeparrot/github-code
693762694fe907b5e7dfeb56c936e57290fb5a7e3f44ed19993e7160e624b311
#include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include "graph.hpp" using namespace std; void print_info(char* name){ cout<<"Argumentos invalidos\nExecute usando: "<<name<<" --path ../path/to/graph.dat"<<endl; cout<<"O arquivo de entrada deve seguir o formato \n\nNº de ...
C++
c++ old/src/main.cpp
Maasouza/MinVertexCover
mit
787
42
codeparrot/github-code
72cd55bd42e95c31958480bd6211b77ee55a8ad668853d354c76e198a04fabda
package com.draga.spaceTravels3.manager; import com.badlogic.gdx.Gdx; import com.draga.errorHandler.ErrorHandlerProvider; import com.draga.spaceTravels3.ui.Screen; import com.google.common.base.Joiner; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.Stack; public a...
Java
core/src/com/draga/spaceTravels3/manager/ScreenManager.java
overengineering/space-travels-3
mit
4,361
146
codeparrot/github-code
e88e76f8b2945bb6162cf9d4701cd3566221127d90ea4845149f8842bb6ec81b
#!/usr/bin/env python # -*- coding: utf8 -*- import codecs import xml.sax import json import copy import logging import math import atexit import tarfile from datetime import datetime from xml.sax.handler import ContentHandler class IO(object): def __init__(self): self.defers = [] atexit.register...
Python
tiny_template_engine.py
zizon/TinyTemplate
mit
18,193
569
codeparrot/github-code
84fe3906ed6d08f0fc09225f4d04812e17a6127315d61284cca2964426c0a865
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; using vivianClothing.Views.Gusetbook; using vivianClothing.Models; namespace vivianClothing.Controllers { public class imgController : Controller { pr...
C#
vivianClothing/vivianClothing/Controllers/imgController.cs
irresolution/vivianClothing
mit
2,992
132
codeparrot/github-code
3e22131dc8c099c2bd9c11b01b8ffcb4acaf320406fb5857378f509d683bfbfd
using System; using System.Linq; using System.Web; using main.auth; using main.db; namespace main.chat { public class Check : BaseHandler { protected override AjaxResult ProcessRequestInternal(HttpContext context) { var login = AuthModule.GetAuthLogin(); AntiFlood.CheckFlood($"{context.Request.CurrentExe...
C#
checksystem/src/chat/Check.ashx.cs
HackerDom/qctf-starter-2015
mit
1,260
39
codeparrot/github-code
3bc0a794db15ac7d95dadcc50edb5cef17b7b4e8f638976e856d1a73b1f85068
package es.ereadme.sphero.morsetrainer.databases; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sq...
Java
src/es/ereadme/sphero/morsetrainer/databases/DictionaryDbHelper.java
bbotella/SpheroMorse
mit
3,840
110
codeparrot/github-code
97696d94c144fc599a8fb8e8328c0775d0526e6fa4e2184462a540b18ff784d2
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
C
deps/win32/apr/mmap/win32/mmap.c
asimihsan/masspinger
mit
5,030
163
codeparrot/github-code
7b25f76f88b7bf9da06fc2a17f001f81ab9064bbb616d85041eb26584d8af7c4
using UnityEngine; using System.Collections; using wararyo.EclairCueMaker; using System; public class CueEvent_PlayBGM : CueEventBase { void Start () { } /// <summary> /// CueSceneEditorのCue編集画面においてCueEventリストに表示される文字列です。 /// </summary> public override string EventName { get { ...
C#
Eclair2/Assets/Scripts/CueEvents/CueEvent_PlayBGM.cs
BeatItOtaku/Eclair2
mit
1,222
61
codeparrot/github-code
62696fffa417169957d4c1d2faadf85500e9553e09436c106172cc7c842975f1
'use strict'; /* * Defining the Package */ var Module = require('meanio').Module; var Students = new Module('students'); /* * All MEAN packages require registration * Dependency injection is used to define required modules */ Students.register(function(app, auth, database) { //We enable routing. By default t...
JavaScript
packages/custom/students/app.js
purushothamgk/ivy
mit
1,336
53
codeparrot/github-code
e9f075a1e9bbfd40eb26cca1bacef426fe5747f1fe780f89b2a6a9de689e2f82
// NeuronPropDlg.cpp : implementation file // #include "stdafx.h" #include "NeuroLab.h" #include "NeuronPropDlg.h" #include ".\neuronpropdlg.h" #include "interface_idds.h" #include "SelectFunctionDlg.h" // CNeuronPropDlg dialog CNeuronPropDlg * mGlobObj; void OnSelChangeDendrites(void * Param) { ...
C++
source/NeuroLab/NeuronPropDlg.cpp
egorpushkin/neurolab
mit
15,995
537
codeparrot/github-code
5f023adfa218f24bea57c4a99ca2da285d43b561ce4c7c5011322bc252479844
/* eslint-disable max-len */ import { validationResult } from 'express-validator/check' import { matchedData } from 'express-validator/filter' import { DokkaError, DokkaGenericError, DokkaInvalidParams, DokkaNotFound } from '../config/errors' export default module.exports = (app) => { const { Users, Roles } = app.db...
JavaScript
controllers/acl-role-users-controller.js
Dokkabot/DokkaRestServer
mit
4,204
123
codeparrot/github-code
e751a676edd17ffbe6b71c0c6efad41c7740ee66b76022b76a34325a1a4f1c13
using System; using System.Collections; using Memoria; using UnityEngine; public class HonoFading : MonoBehaviour { public UISprite ForegroundSprite { get { return this.foregroundSprite; } } private void Awake() { this.foregroundSprite = base.GetComponent<UISprite>(); this.tweenAlpha.enabled = fals...
C#
Assembly-CSharp/Global/Hono/HonoFading.cs
Albeoris/Memoria
mit
4,146
167
codeparrot/github-code
4174b2593aeaec75d5312592c8889904f8a6170a7daff838123a8ec493e97e22
--- title: "Idempotency key in the Stripe Ruby SDK" layout: post date: 2019-04-30 07:44:34 +0900 image: 'assets/img/posts/2019-04-30-idempotency-key-in-the-stripe-ruby-sdk/catch.png' description: tag: ['Ruby', 'Stripe', 'Idempotency', 'SDK', 'DistributedSystem'] blog: true author: "Kai Sasaki" --- A system may fail an...
Markdown
_posts/2019-04-30-idempotency-key-in-the-stripe-ruby-sdk.markdown
Lewuathe/lewuathe.github.io
mit
4,248
56
codeparrot/github-code
44114ab47a0adf5a8594437d21e047345ee39969f6fb67153c25799894b16443
<?php namespace Psalm\Internal\PhpVisitor\Reflector; use PhpParser; use PhpParser\ConstExprEvaluationException; use PhpParser\ConstExprEvaluator; use PhpParser\Node\Expr; use PhpParser\Node\Expr\ConstFetch; use Psalm\Aliases; use Psalm\Codebase; use Psalm\Internal\Analyzer\ClassLikeAnalyzer; use Psalm\Internal\Scanne...
PHP
src/Psalm/Internal/PhpVisitor/Reflector/ExpressionResolver.php
vimeo/psalm
mit
16,078
451
codeparrot/github-code
766d3d6c03f173c35b6d234793b63ad0aa65a4efaa92a76d28043d2f2ccf8aaa
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml.Linq; namespace DevTreks.Extensions { /// <summary> ///Purpose: Run monitoring and evaluation indicator stock calculations for outcomes ///Author: www.devtreks.org ///Date: 2013, December ///R...
C#
src/DevTreks.Extensions/NPV1/Outcomes/OutcomeNPV1StockCalculator.cs
kpboyle1/devtreks
mit
2,135
54
codeparrot/github-code
0cbd216e313309f5a3fca5bce32ae11629b617e94218c1912ca8992310fd8bfe
package com.main.junaidstore.libraries; import android.app.Activity; import android.graphics.Bitmap; import android.os.AsyncTask; import android.util.Base64; import android.widget.Toast; import com.main.junaidstore.activities.AddNewItem; import java.io.ByteArrayOutputStream; import java.io.File; import java.util.Has...
Java
app/src/main/java/com/main/junaidstore/libraries/ImageUploader.java
mozi22/ImageUploadAndroidExample
mit
2,916
83
codeparrot/github-code
1e58fa2bcf32cde3acbbe47d2cdf773e349d6ec0498a60bc8ca7a7f94f6032c3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Fun</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <style type="text/css"> </style> <link href="css/default.css" type="text/css" rel=...
PHP
UK/fun.php
piaoxu93/buzz-in.net
mit
10,617
303
codeparrot/github-code
ab01774926656e0eb94666dc67f389acb07b535f94441abbe99543bfba8c4620
module Magnolia mattr_accessor :tree @@tree = Tree.new end class ActionView::Base include Magnolia @@parent_stack = [] def render_with_magnolia_render(*args) current_path = magnolia_current_path(args) tree.add_node(magnolia_parent_path, current_path) @@parent_stack << current_path result =...
Ruby
lib/magnolia/rails_hooks.rb
felixflores/magnolia
mit
1,440
66
codeparrot/github-code
5d5cc6a9377bf7c50e7b345224100745e0ff84f237d8f03c75cbee04981cb022
<!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>Harjaap Singh Gill</title> ...
HTML
index.html
JaapSingh/jaapsingh.github.io
mit
26,863
512
codeparrot/github-code
0da22a137fd14909de583a9920917120a7091efcd9587910172838821401ff72
package com.josedab.socialprofile.config; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.servlet.InstrumentedFilter; import com.codahale.metrics.servlets.MetricsServlet; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; impo...
Java
jhipster-300-socialprofile/src/main/java/com/josedab/socialprofile/config/WebConfigurer.java
josedab/yeoman-jhipster-examples
mit
4,700
114
codeparrot/github-code
325d5f89bf70fed0a02b5b92e054e194d8ef0fd6a13e5644d6decd50d01f8048
import { Directive, ElementRef, Input, Output, EventEmitter, OnChanges, SimpleChanges} from '@angular/core'; import { EmbedlyService } from '../services'; @Directive({ selector: 'em-embed', providers: [EmbedlyService] }) export class EmbedlyDirective implements OnChanges { @Input() url: string; @Input() width:...
TypeScript
src/directives/embedly.directive.ts
frnd/angular2-embedly
mit
890
31
codeparrot/github-code
1c4a5b270ae63a5257bf70fcf4a17788b5a27cd27601cc13f91089f10ef58bfd
<?php /* * This file is part of the RIFilemanagerBundle package. * * (c) Rafal Ignaszewski <https://github.com/qjon> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RI\FileManagerBundle\DependencyInjection; use Symfony\C...
PHP
DependencyInjection/RIFileManagerExtension.php
qjon/ri-filemanager
mit
2,376
68
codeparrot/github-code
5a1bc14ee85963b5df634c24da08a74f35f9827b892810b4d8b62a1794322966
/** Contains symbol path functions for various paths required in e skin **/ /** private symbols */ var customSymbolTypes = d3.map({ /** * SIMPLECHEMICAL : returns the circle of passed dimension */ 'SIMPLECHEMICAL': function(shapeObj) { //size = shapeObj.iHeight||shapeObj.iWidth; var iHeight = shap...
JavaScript
src/customSymbols/symbolMap.js
persistentsystems/D3-SCoMoS.JS
mit
7,602
218
codeparrot/github-code
65bacc8685286081e2ee01193d63f6577cfc067af9ddc33aacafb10ba6cabfd0
var Util = require("./Util.js"); var Event = require("./Event.js"); var Request = require("./Request.js"); var urlParser = require("url"); var ORTCClient = require('ibtrealtimesjnode').IbtRealTimeSJNode; /** * @namespace Realtime.Messaging Provides access to the Realtime Messaging functionalities. */ Event.extend(th...
JavaScript
lib/Messaging.js
realtime-framework/RealtimeStorage-Node
mit
39,425
1,012
codeparrot/github-code
708caff590899a1f15ec909991c55b1220ad24dd36a56601299701911751736f
# Copyright (c) 2014 Tycho Andersen # Copyright (c) 2014 dequis # Copyright (c) 2014-2015 Joseph Razik # Copyright (c) 2014 Sean Vig # Copyright (c) 2015 reus # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal ...
Python
libqtile/widget/launchbar.py
cortesi/qtile
mit
9,180
222
codeparrot/github-code
7ac48aac90fd4f0bdde3449614a1a6f4052e3b5c64635291349eebad72b9120d
<?php declare(strict_types=1); namespace StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for SearchMailboxesResponseMessageType StructType * Meta information extracted from the WSDL * - documentation: Response message type for the SearchMailboxes we...
PHP
src/StructType/EwsSearchMailboxesResponseMessageType.php
WsdlToPhp/PackageEws365
mit
1,885
57
codeparrot/github-code
fbfaa4cffaddabb6ceb0cc800345ba9c9e6751ecea3a52780f9c4380592ebcec
<?php /* * This file is part of the Active Collab Bootstrap project. * * (c) A51 doo <info@activecollab.com>. All rights reserved. */ declare(strict_types=1); namespace ActiveCollab\Bootstrap\Controller\Encapsulator; use ActiveCollab\Controller\ControllerInterface; use Psr\Http\Message\ResponseInterface; use Ps...
PHP
src/Controller/Encapsulator/Encapsulator.php
activecollab/bootstrap
mit
865
36
codeparrot/github-code
2aee7d2cc6da4dfe8e7f458b008ba66b0bd8e32b67c55db906ec4edb531104f4
/* * Copyright (c) 2018. * * This file is part of AvaIre. * * AvaIre is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * AvaI...
Java
src/main/java/com/avairebot/middleware/global/IsCategoryEnabled.java
AvaIre/AvaIre
mit
4,954
128
codeparrot/github-code
2d6046661279eaae3ae3320b325839b958f832be01f1652512de2cd01373f0e9
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer-tactics: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap....
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1/hammer-tactics/1.3.2+8.13.html
coq-bench/coq-bench.github.io
mit
7,215
180
codeparrot/github-code
37c33dc68fc29d46a9fd7edac3bee9023fa0ad6fd8030afb12710c6c4f2ca911
import {Component, OnInit} from '@angular/core'; import { NavController } from 'ionic-angular'; import {Http, Response} from "@angular/http"; import {AadminPage} from "../aadmin/aadmin"; import {UcomptesPage} from "../ucomptes/ucomptes"; import "rxjs/add/operator/map"; import {map} from "rxjs/operator/map"; import {Ac...
TypeScript
src/pages/acomptes/acomptes.ts
jonathanmz34/ztransfert
mit
1,292
54
codeparrot/github-code
aaeafcce5d7a75d9ae03e5d453ab2c9ed9a4753e8f8022b8b73daf2a0ec7b3af
<html> <body> <script> var form = document.createElement("FORM"); form.setAttribute("method", "POST"); form.setAttribute("action", "{{$url}}"); form.setAttribute("target", "_self"); var invoiceNumber = document.createElement("input"); invoiceNumber.setAttr...
PHP
views/pasargad-redirector.blade.php
larabook/gateway
mit
2,231
62
codeparrot/github-code
26415f68673824cfba7a4fb39911929aeed1e3eefc2302cb9159b931d6354f91
"use strict"; let Promise = require("bluebird"); let Context = require("../../src/context"); let ServiceBroker = require("../../src/service-broker"); let { RequestSkippedError, MaxCallLevelError } = require("../../src/errors"); const { protectReject } = require("./utils"); describe("Test Context", () => { it("test ...
JavaScript
test/unit/context.spec.js
rmccallum81/moleculer
mit
9,551
382
codeparrot/github-code