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
e664c187866d84378ca7b3a0033eec4ee4b6bbcf3e11ec4947749f912498b2a7
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), CurrentModel = mongoose.model('Attendance'), Schedule = mongoose.model('Schedule'), Group = mongoose.model('Group'), _ = require('lodash'); exports.attendance = function(req, res, next, id) { CurrentModel.load(id, function(err...
JavaScript
packages/custom/groups/server/controllers/attendances.js
wolf-mtwo/attendance
mit
2,206
102
codeparrot/github-code
932e5c57be5cc9873cf27a28c13b48c6038711739150b291f65b5c8afc0c3c03
#ifndef OSCTOOLS_HPP_INCLUDED #define OSCTOOLS_HPP_INCLUDED class OscOptionalUnpacker { ofxOscMessage & msg; int n; public: OscOptionalUnpacker(ofxOscMessage & m):msg(m),n(0){} OscOptionalUnpacker & operator >> (int & i) { if(n < msg.getNumArgs()) { i = msg.getArgAsI...
C++
src/Utils/OscTools.hpp
toddberreth/ofxTableGestures
mit
1,534
76
codeparrot/github-code
ce873f01f92dc7b9eda5e0f83c32924ecda38bf96dd960942b81d1dd749cb378
import os import re from opsbro.collector import Collector # DMI have lot of useful information that detectors can use to know lot about the platform/hardware class Dmidecode(Collector): def launch(self): logger = self.logger logger.debug('getDmidecode: start') res = {} #...
Python
data/global-configuration/packs/system/collectors/collector_dmidecode.py
naparuba/kunai
mit
2,003
47
codeparrot/github-code
3de848d12f05077d6336e061670a2b4bd3791a180d8738122538cfc22e42f2f2
// // VOKManagedObjectMapper.h // Vokoder // // Copyright © 2015 Vokal. // #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #import "VOKCoreDataCollectionTypes.h" #import "VOKNullabilityFeatures.h" #import "VOKManagedObjectMap.h" NS_ASSUME_NONNULL_BEGIN /// An completion block to run after import...
C
Pod/Classes/VOKManagedObjectMapper.h
chillpop/Vokoder
mit
2,933
74
codeparrot/github-code
bbd3c1f61fc409fc245ce124c1681613b7d6d8627c58b6a2716ec17acb382655
import dateformat from 'dateformat'; import { map } from "underscore"; import { getAccountById } from 'routes/root/routes/Banking/routes/Accounts/modules/accounts'; import { getCreditCardById, getPrepaidCardById } from 'routes/root/routes/Banking/routes/Cards/modules/cards'; import { getLoanById } from 'routes/root/rou...
JavaScript
src/routes/root/routes/Banking/routes/utils/commonUtils.js
GKotsovos/WebBanking-Front-End
mit
5,131
169
codeparrot/github-code
399849c8bc779ccde32e9102546dfbfe13ad5575908f1f3b0c6385f11c06e618
using System; using Xamarin.Forms; using System.Collections.ObjectModel; using System.Threading.Tasks; using System.Linq; namespace MyShop { public class StoresViewModel : BaseViewModel { readonly IDataStore dataStore; public ObservableCollection<Store> Stores { get; set;} public ObservableCollection<Grouping...
C#
MyShop/ViewModels/StoresViewModel.cs
usmanm77/MyShoppe
mit
2,323
104
codeparrot/github-code
31146421a95a17a6ad8d7aceaac0bcd8b7eb92eb9b5855edccec1cbc3c924e3f
#!/usr/bin/python # convert LLVM GenAsmWriter.inc for Capstone disassembler. # by Nguyen Anh Quynh, 2019 import sys if len(sys.argv) == 1: print("Syntax: %s <GenAsmWriter.inc> <Output-GenAsmWriter.inc> <Output-GenRegisterName.inc> <arch>" %sys.argv[0]) sys.exit(1) arch = sys.argv[4] f = open(sys.argv[1]) li...
Python
capstone-sys/capstone/suite/synctools/asmwriter.py
capstone-rust/capstone-rs
mit
33,268
749
codeparrot/github-code
dec4c3b4b1ca54f81164e5e202e1ccce3be0a03b67df6ffb13da87652645825c
#!/usr/bin/env perl use strict; use warnings; # Author: lh3 # # This script is literally translated from the C version. It has two funtionalities: # # a) compute the length of the reference sequence contained in an alignment; # b) collapse backward overlaps and generate consensus sequence and quality # # During the c...
Perl
examples/removeB.pl
AngieHinrichs/samtabix
mit
6,126
149
codeparrot/github-code
423bbf67de652529dde67fb03c3d1ff905cdd0cbf4e3cd4c5821c5bef0f362ba
using System.Drawing; using System.Drawing.Drawing2D; static class DrawHelper { public static GraphicsPath CreateRoundRect(float x, float y, float width, float height, float radius) { GraphicsPath gp = new GraphicsPath(); gp.AddLine(x + radius, y, x + width - (radius * 2), y); gp.AddAr...
C#
statics/external_tool/RyeTokenizer/project/UIManagers/DrawHelper.cs
uit-cs217-g11/smart-search
mit
2,936
71
codeparrot/github-code
e759078ed032745cf2732589cd3fe5b7eb6d573fa6517df282a4de80fefee3fe
#! /usr/bin/env ruby # # <script name> # # DESCRIPTION: # Get time series values from Graphite and create events based on values # # OUTPUT: # plain text # # PLATFORMS: # Linux # # DEPENDENCIES: # gem: sensu-plugin # gem: array_stats # # USAGE: # #YELLOW # # NOTES: # # LICENSE: # Copyright 2012 Ulf Mans...
Ruby
bin/check-graphite.rb
dalesit/sensu-plugins-graphite
mit
17,644
533
codeparrot/github-code
e1c4b10f2fa954cec84f41aede80580c9fd21507e62f603b93b09c5024f09c79
#include "machineoperand.h" #include "basicblock.h" #include <cassert> #include <iostream> #include <new> using namespace TosLang::BackEnd; MachineOperand::MachineOperand() : mKind{ OperandKind::UNKNOWN } { } MachineOperand::MachineOperand(const unsigned op, const OperandKind kind) { assert((kind == OperandKin...
C++
TosLang/CodeGen/machineoperand.cpp
faouellet/TosLang
mit
1,230
51
codeparrot/github-code
6e7cff81891a93505b78d93c4077945150ea6ae9bd06e5f85f7b6ddf081d4e96
/* This file contains the sigma-delta driver implementation. */ #include "platform.h" #include "hw_timer.h" #include "task/task.h" #include "c_stdlib.h" #include "pcm.h" static const os_param_t drv_sd_hw_timer_owner = 0x70636D; // "pcm" static void ICACHE_RAM_ATTR drv_sd_timer_isr( os_param_t arg ) { cfg_t *...
C
app/pcm/drv_sigma_delta.c
devsaurus/nodemcu-firmware
mit
2,905
121
codeparrot/github-code
3de41199ccadffc1a39e90278e47f2d09b4de962c083dcd5a2cd4c5b50a755e9
module Packet class Reactor include Core #set_thread_pool_size(20) attr_accessor :fd_writers, :msg_writers,:msg_reader attr_accessor :result_hash attr_accessor :live_workers #after_connection :provide_workers def self.server_logger= (log_file_name) @@server_logger = log_file_name ...
Ruby
lib/packet/packet_master.rb
openwisp/packet-legacy
mit
5,702
168
codeparrot/github-code
bfe11fdf15237af120600c65264cab11c546c5733049f8586c440e843a90af1e
// // Reflect.cs: Creates Element classes from an instance // // Author: // Miguel de Icaza (miguel@gnome.org) // // Copyright 2010, Novell, Inc. // // Code licensed under the MIT X11 license // using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Text; using...
C#
MonoTouch.Dialog/Reflect.cs
danmiser/MonoTouch.Dialog
mit
13,498
457
codeparrot/github-code
74194df3c21c164ef860978b14804e5d18605c11b74f1db4da6fae4a17833c6d
namespace StringExtensions { using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Reflection; using System.Security.Cryptography; using System.Text; using System.Text.RegularExpressions; /// <summary> /// Static class provi...
C#
Module-2/High-Quality-Code/Code Documentation and Comments/Task 1. Code documentation/Program.cs
NikolaiMishev/Telerik-Academy
mit
16,023
361
codeparrot/github-code
bb1fd7c6b512e1ab03145a68ea988c440ec65cc788fc708f07739a59be1e7a08
SVG.G = SVG.invent({ // Initialize node create: 'g' // Inherit from , inherit: SVG.Container // Add class methods , extend: { // Move over x-axis x: function(x) { return x == null ? this.transform('x') : this.transform({ x: x - this.x() }, true) } // Move over y-axis , y: function(y) {...
JavaScript
src/group.js
albohlabs/svg.js
mit
1,102
51
codeparrot/github-code
d8437742689566ff8c8ac0877a01b4e778d829aaa8469593cab04566545a6c44
using System; using System.Collections.Generic; using System.Drawing; using System.Globalization; using System.IO; using System.Windows; using System.Windows.Data; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Runtime.InteropServices; namespace Wox { public class ImagePathConverter :...
C#
Wox/ImagePathConverter.cs
Rovak/Wox
mit
7,522
194
codeparrot/github-code
568767a19e62c2cb5e52760b81feb0d71e08f15296c5c080b508d7e03040d3f3
// This file is distributed under the BSD License. // See "license.txt" for details. // Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com) // Copyright 2009-2015, Jason Turner (jason@emptycrate.com) // http://www.chaiscript.com #ifndef CHAISCRIPT_BOXED_VALUE_HPP_ #define CHAISCRIPT_BOXED_VALUE_HPP_ #inclu...
C++
src/server/chaiscript/dispatchkit/boxed_value.hpp
spijdar/dayspring
mit
11,084
387
codeparrot/github-code
02378d57dfdec01b2634c328c452f5e31f1a3454865059c782dc9429bf564bde
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
Java
src/com/amazonaws/auth/PropertiesCredentials.java
loremipsumdolor/CastFast
mit
4,679
130
codeparrot/github-code
58c2e21d9cd78212781d6f162a7902d57f22db60d18b155a74af9a86986ee08c
//---------------------------------------------------------------------------------------------- // <copyright file="AppDeployment.cs" company="Microsoft Corporation"> // Licensed under the MIT License. See LICENSE.TXT in the project root license information. // </copyright> //-------------------------------------...
C#
WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppDeployment.cs
davidkline-ms/WindowsDevicePortalWrapper
mit
16,006
410
codeparrot/github-code
130914374dc478a1cf68945295ead372aac1aed9b20a38d8c668fafebb608797
package nxt.http; import nxt.Nxt; import nxt.Transaction; import nxt.util.Convert; import org.json.simple.JSONObject; import org.json.simple.JSONStreamAware; import javax.servlet.http.HttpServletRequest; import static nxt.http.JSONResponses.INCORRECT_TRANSACTION; import static nxt.http.JSONResponses.MISSING_TRANSACT...
Java
src/java/nxt/http/GetTransaction.java
aspnmy/NasCoin
mit
2,418
69
codeparrot/github-code
3eaf8e64c23b21c2b46b1d2e802b370c15f92d03fe459c4ec3d4cf0fa08cf859
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redi...
Python
app/pylibs/win32/Cryptodome/Hash/keccak.py
mchristopher/PokemonGo-DesktopMap
mit
8,329
204
codeparrot/github-code
d491140aa6ba9463e31d7a825dfe75e8e5f9b70e9d0499a7dfb8cd2c33e8b092
/** \file * \brief GTK Driver * * See Copyright Notice in "iup.h" */ #ifndef __IUPGTK_DRV_H #define __IUPGTK_DRV_H #ifdef __cplusplus extern "C" { #endif #define iupCOLORDoubleTO8(_x) ((unsigned char)(_x*255)) /* 1.0*255 = 255 */ #define iupCOLOR8ToDouble(_x) ((double)_x/255.0) /* common */ gboolean iupgt...
C
src/gtk/iupgtk_drv.h
ivanceras/iup-mirror
mit
3,548
98
codeparrot/github-code
db235a92081b114b68328d6876b47ccf770173d65e01443903c618fc5c5bc082
from typing import Dict import tempfile from dxlclient.client_config import DxlClientConfig from dxlclient.client import DxlClient from dxlclient.broker import Broker from dxlclient.message import Event import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * INTEGRATION_NAM...
Python
Packs/McAfee_DXL/Integrations/McAfee_DXL/McAfee_DXL.py
VirusTotal/content
mit
7,105
173
codeparrot/github-code
805745151ed467f6404ed5b58650cc49348a7d2bcfc7093a857e264ef88031f1
using System; using System.Collections; using System.Collections.Generic; using System.Web.Http; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json.Serialization; using UtilJsonApiSerializer.Serialization; namespace UtilJsonApiSerializer { public class Configuration { priva...
C#
Util-JsonApiSerializer/Configuration.cs
FrontlineEducation/Util-JsonApiSerializer
mit
3,189
79
codeparrot/github-code
77079239b20de20fedd07e1be9d77b6cc93106673251e802cc84316f491f474d
module SlotMachine # A Slot defines a slot in a slotted. A bit like a variable name but for objects. # # PS: for the interested: A "development" of Smalltalk was the # prototype based language (read: JavaScript equivalent) # called Self https://en.wikipedia.org/wiki/Self_(programming_language) # #...
Ruby
lib/slot_machine/slot.rb
salama/salama
mit
1,579
51
codeparrot/github-code
4d6710a01dacc188389d63ebee9259762d35b6612325d204c2cdc73cf7aee760
var GUID = (function () { function _GUID() { return UUIDcreatePart(4) + UUIDcreatePart(2) + UUIDcreatePart(2) + UUIDcreatePart(2) + UUIDcreatePart(6); }; function UUIDcreatePart(length) { var uuidpart = ""; for (var i = 0; i < length;...
JavaScript
presentation/js/dataSource.js
storyclm/storyCLM.js
mit
3,648
156
codeparrot/github-code
6ec822366c0545bee2e1fca402a625173421b939a79dead7c2de095bdef93ada
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/> <title>Introduction to OpenFL | HaxeFlixel 2D Game Framework</title> <meta name="description" content="HaxeFlixel ...
HTML
out/documentation/introduction-to-openfl/index.html
whilesoftware/haxeflixel.com
mit
9,443
301
codeparrot/github-code
7e0e70f12b5557dcd825b364e477ff7e5930d44975f10df259a925866c28dbae
package com.github.scribejava.apis.examples; import com.github.scribejava.apis.EtsyApi; import com.github.scribejava.core.builder.ServiceBuilder; import com.github.scribejava.core.model.OAuth1AccessToken; import com.github.scribejava.core.model.OAuth1RequestToken; import com.github.scribejava.core.model.OAuthRequest; ...
Java
scribejava-apis/src/test/java/com/github/scribejava/apis/examples/EtsyExample.java
fernandezpablo85/scribe-java
mit
2,876
67
codeparrot/github-code
762475374f9126507f75cb13821c527c52dc3d56c07c9ba587e2241e225a7b96
<?php namespace Tapestry\Providers; use Exception; use Tapestry\Tapestry; use Tapestry\Entities\Configuration; use Tapestry\Modules\Kernel\DefaultKernel; use Tapestry\Modules\Kernel\KernelInterface; use League\Container\ServiceProvider\AbstractServiceProvider; use League\Container\ServiceProvider\BootableServiceProvi...
PHP
src/Providers/ProjectKernelServiceProvider.php
tapestry-cloud/tapestry
mit
2,379
77
codeparrot/github-code
a82573db9e05d19316021ee9291fddc42b583faa75aea55e9999db00465215ee
<?php namespace App; use Illuminate\Support\Facades\Route; /* * Clearboard Routes */ Route::group(['middleware' => ['web']], function () { Route::get('/', function() { return view('clearboard.index.viewindex', ['forums' => Forum::all()]); }); Route::get('/forum/{fid}-{_}', 'ForumController@vi...
PHP
app/Http/routes.php
clearboard/clearboard
mit
2,024
57
codeparrot/github-code
63ac4e12f18ecd60b63b7cffdb306ed9ad60a47e982e5d7edfc7428c4aeb8afc
// Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop 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, co...
C#
src/AvaloniaEdit/Rendering/BackgroundGeometryBuilder.cs
AvaloniaUI/AvaloniaEdit
mit
19,568
397
codeparrot/github-code
a75dfe4dbf2ac5efa714ffc17faf316c5b6934da91d97546f1c7aa7bdbb94e3b
class Fitbit::Activity < Fitbit::Data attr_accessor :activityId, :activityParentId, :activityParentName, :calories, :description, :distance, :duration, :hasStartTime, :isFavorite, :logId, :name, :startTime, :steps def initialize(activity_data, unit_measurement_mappings) @activityId = activity_d...
Ruby
app/models/fitbit/activity.rb
whazzmaster/fitgem-client
mit
1,937
52
codeparrot/github-code
adac402c761cf105cf72cf17f5bac5762d9ea7d90d2c46ce776181c0c4385a26
var fixDate = function(date) { return date.Format('2006-01-02 15:04:05'); }; var entries = executeCommand('getEntries', {}); dbotCommands = []; userCommands = []; for (var i = 0; i < entries.length; i++) { if (typeof entries[i].Contents == 'string' && entries[i].Contents.indexOf('!') === 0 && entries[i].Conte...
JavaScript
Packs/CommonScripts/Scripts/ListExecutedCommands/ListExecutedCommands.js
demisto/content
mit
1,692
44
codeparrot/github-code
4fc075bb45982c0ab8c679c8f7a137c27c3d86f9f99195ec2c71ac138da9179f
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
HTML
_layouts/post_heb.html
lisajennykrieg/lisajennykrieg.github.io
mit
2,738
78
codeparrot/github-code
bbf51107f6e9fb89409d9fb47550b8b2f98d59b02beb9811efc800a63a2cbb22
package easyupload.entity; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Lob; @Entity public class FileUpload { public FileUpload(String filename, byte[] file, String mimeType) { this.file = file; this.filename = filename; this.mimeType = mimeType...
Java
Backend/src/main/java/easyupload/entity/FileUpload.java
vberbenetz/EasyUpload
mit
936
54
codeparrot/github-code
258c38241f1d1316193af00c5b16277d89c34eeee71e36bd218617dc05284cf3
'use strict'; var canUseDOM = require('./canUseDOM'); var one = function() { }; var on = function() { }; var off = function() { }; if (canUseDOM) { var bind = window.addEventListener ? 'addEventListener' : 'attachEvent'; var unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent'; var prefix...
JavaScript
src/utils/Events.js
minwe/amazeui-react
mit
1,693
73
codeparrot/github-code
8b0707c534efb3b64a68dbf423b6dd9a19497b4940ba5b6400f73ada12003b2e
'use strict'; describe('angular', function() { var element; afterEach(function(){ dealoc(element); }); describe('case', function() { it('should change case', function() { expect(lowercase('ABC90')).toEqual('abc90'); expect(manualLowercase('ABC90')).toEqual('abc90'); expect(uppercase...
JavaScript
test/AngularSpec.js
rpanjwani/angular.js
mit
30,438
915
codeparrot/github-code
a8a48e01282d05f6c7fa26dbdd4d721c268e74d021d0ecc77d32c138929cf8b8
<!-- @license Copyright (c) 2016 The Jviz Project Authors. All rights reserved. The Jviz Project is under the MIT License. See https://github.com/jviz/jviz/blob/dev/LICENSE --> <!-- Import components --> <link rel="import" href="../../../polymer/polymer.html"> <link rel="import" href="../../../jviz-styles/jviz-styles....
HTML
elements/jviz-table/jviz-table.html
biowt/jviz
mit
24,955
994
codeparrot/github-code
d1d97886afcb3eb73347c43cf25fdc1ffb8a2774819fdf8701a15e13a166ba3c
<?php /* SonataAdminBundle:CRUD:base_acl_macro.html.twig */ class __TwigTemplate_f7bb38229ed8df4e133506255cce57f53a109aac1f79d839de0cea8756a1aaf0 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->block...
PHP
app/cache/dev/twig/f7/bb/38229ed8df4e133506255cce57f53a109aac1f79d839de0cea8756a1aaf0.php
chicho2114/Proy_Frameworks
mit
11,223
211
codeparrot/github-code
2013f069ca9a6eaa0ead1eefb32f17bb6db8d37ab94798abfa2ceada736ab8cc
// // Created by eran on 01/04/2015. // #include <unordered_set> #include "fakeit/Invocation.hpp" namespace fakeit { struct ActualInvocationsContainer { virtual void clear() = 0; virtual ~ActualInvocationsContainer() NO_THROWS { } }; struct ActualInvocationsSource { virtual void getActualInvocati...
C++
src/external/fakeit/fakeit-repo/include/fakeit/ActualInvocationsSource.hpp
helmesjo/hello-ci
mit
2,462
85
codeparrot/github-code
dad14409f6f83a3cd21dfef490c670754a65029d2d32bef8e7557983127aafcd
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" /> <title>Cel...
HTML
reference/android/telephony/CellIdentityWcdma.html
AzureZhao/android-developer-cn
mit
76,625
2,170
codeparrot/github-code
25129d2f9880143480a1e808dd08231a277c17deb86bbfe95ba42de56b97862e
/* Copyright (c) 2018 lib4j * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distrib...
Java
lib4j/test/src/main/java/org/lib4j/test/AssertXml.java
safris-src/org
mit
7,601
177
codeparrot/github-code
d6f9b7a3353402bc0dea0de3b040ae6387d85c4105f477c2960d559782ababe6
<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfWebDebugPanelPropel adds a panel to the web...
PHP
lib/plugins/sfPropelPlugin/lib/debug/sfWebDebugPanelPropel.class.php
hybmg57/jobeet
mit
4,119
147
codeparrot/github-code
38f1841c2e81bf56959d4dcbb7d6940e575d81a5b662d77069b47c3394ec0c77
/* * The MIT License * * Copyright 2015 Eduardo Weiland. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
JavaScript
app/js/transformations.js
eduardoweiland/transformacoes-glc
mit
13,365
348
codeparrot/github-code
d1e1c0fd5819e860cb5e01cdb1105d76882ce9260a2ac3aca6ac4a9c84a80a75
/** * Uploader implementation - with the Connection object in ExtJS 4 * */ Ext.define('MyApp.ux.panel.upload.uploader.ExtJsUploader', { extend : 'MyApp.ux.panel.upload.uploader.AbstractXhrUploader', requires : [ 'MyApp.ux.panel.upload.data.Connection' ], config : { /** * @cfg {String} [method='PUT'] * ...
JavaScript
src/main/webapp/app/ux/panel/upload/uploader/ExtJsUploader.js
cwtuan/ExtJSTutorial-HiCloud
mit
3,140
139
codeparrot/github-code
08e66ca877f4adb48a6e75492ae19eb2641a986a2126df6ece03d80ae49120b6
/********************************************************************** map_GoogleV2.js $Comment: provides JavaScript for Google Api V2 calls $Source :map_GoogleV2.js,v $ $InitialAuthor: guenter richter $ $InitialDate: 2011/01/03 $ $Author: guenter richter $ $Id:map_GoogleV2.js 1 2011-01-03 10:30:35Z Guenter...
JavaScript
maptune/js/maptune/maptune.GoogleV2.js
emergenzeHack/terremotocentro
mit
5,619
209
codeparrot/github-code
07a15f4a45f9fd7e82edf044595a66d78935c9cf5635db35904536017c6ba367
import InputValidator from "../../common/js/InputValidator.js"; import ObjectUtilities from "../../common/js/ObjectUtilities.js"; import Action from "./Action.js"; import DefaultFilters from "./DefaultFilters.js"; import InitialState from "./InitialState.js"; var Reducer = {}; Reducer.root = function(state, action) {...
JavaScript
src/accessory/player-card-table/Reducer.js
jmthompson2015/lotr-card-game
mit
3,186
122
codeparrot/github-code
c35f73edc248719ab84f677eed3ecc663e333462ff47ac300d1c5bebf920c2fa
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Brian Westrich, Jean-Baptiste Quenot, id:cactusman * 2015 Kanstantsin Shautsou * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentat...
Java
core/src/main/java/hudson/triggers/SCMTrigger.java
SebastienGllmt/jenkins
mit
23,475
687
codeparrot/github-code
8f6e410919b3b3962e582cf822075b904dfa362695d9522b57f508444dd1c7d0
/* * The MIT License * * Copyright 2019 Karus Labs. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modi...
Java
commons/src/test/java/com/karuslabs/commons/command/synchronization/SynchronizationTest.java
Pante/Karus-Commons
mit
3,282
96
codeparrot/github-code
a312c8537f248f2efd37d35af9450bce48e0285bc6dd6d3def6d184a83566073
///////////////////////////////////////////////////////////////////////////// // Name: wx/msw/notebook.h // Purpose: MSW/GTK compatible notebook (a.k.a. property sheet) // Author: Robert Roebling // Modified by: Vadim Zeitlin for Windows version // RCS-ID: $Id$ // Copyright: (c) Julian Smar...
C
Gamekit/wxWidgets-2.9.1/include/wx/msw/notebook.h
airgames/vuforia-gamekit-integration
mit
8,154
255
codeparrot/github-code
1db44cee1c52ae852f0cb4c91d697cf157b5cf6cf709ec4bc49bcb74439b3fff
// Polyfills if ( Number.EPSILON === undefined ) { Number.EPSILON = Math.pow( 2, - 52 ); } if ( Number.isInteger === undefined ) { // Missing in IE // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isInteger Number.isInteger = function ( value ) { return typeof valu...
JavaScript
src/polyfills.js
fraguada/three.js
mit
1,691
95
codeparrot/github-code
8da6bc150667056a1d379a3e8f7f69bfa0b53f1e7ac013244680f2a913510105
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaStudio UNA Studio * @{ */ define("BX_DOL_STUDIO_INSTALLER_SUCCESS", 0); define("BX_DOL_STUDIO_INSTALLER_FAILED", 1); /** * Base class for Install...
PHP
upgrade/files/9.0.0.RC10-9.0.0.RC11/files/studio/classes/BxDolStudioInstaller.php
unaio/una
mit
39,820
1,080
codeparrot/github-code
b04e9be26cefaa1057bc0d34620eccaad383ca97bfeb089b48c3f09b88e31767
<?php namespace Illuminate\Database\Eloquent; use Exception; use ArrayAccess; use JsonSerializable; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Routing\UrlRoutable; use Illuminate\Contracts\Queu...
PHP
src/Illuminate/Database/Eloquent/Model.php
joecohens/framework
mit
39,540
1,539
codeparrot/github-code
8f0cd6fede7327e0e943cd27aeb1d6be9f4f4e12b73761cea6179c479957deae
using System.Collections.Concurrent; using System.Collections.Generic; using System.Linq; using ECommon.Components; using ECommon.Scheduling; using ECommon.Socketing; using EQueue.Protocols; namespace EQueue.Broker.Client { public class ConsumerManager { private readonly ConcurrentDictionary<string, C...
C#
src/EQueue/Broker/Client/ConsumerManager.cs
Aaron-Liu/equeue
mit
3,771
109
codeparrot/github-code
cb555eb8e44fad740d1e2a953acc9602b2a0ebec119fd38929e002d1446d5963
<?php namespace Phrest\Skeleton\v1\Requests\Users; use Phrest\SDK\Request\AbstractRequest; use Phrest\SDK\Request\RequestOptions; use Phrest\SDK\PhrestSDK; class CreateUserRequest extends AbstractRequest { /** * @var string */ private $path = '/v1/users/'; /** * @var string */ public $name = nu...
PHP
src/v1/Requests/Users/CreateUserRequest.php
phrest/skeleton
mit
1,538
102
codeparrot/github-code
3463da96538683ff457bdfac5e42d4282f8a289919befb0239efc9df60e0b111
// Uncomment the following to provide samples for PageResult<T>. Must also add the Microsoft.AspNet.WebApi.OData // package to your project. ////#define Handle_PageResultOfT using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using ...
C#
Module 3/Web-Services-and-Cloud/2. ASP.NET-Web-API/02_03_MusicStore/MusicStore.Services/Areas/HelpPage/App_Start/HelpPageConfig.cs
kiko81/Teleric-Academy-Homeworks
mit
6,509
113
codeparrot/github-code
bc341decaf7415045e151627aba9b8565477978c11a3d0add02a58c1ed12c0ad
using System; using System.ComponentModel; using System.Web; using System.Web.Security; using System.Xml.Linq; using System.Xml.XPath; using Umbraco.Core; using Umbraco.Core.Dictionary; using Umbraco.Core.Dynamics; using Umbraco.Core.Models; using Umbraco.Core.Security; using Umbraco.Core.Services; using U...
C#
src/Umbraco.Web/UmbracoHelper.cs
gavinfaux/Umbraco-CMS
mit
59,351
1,494
codeparrot/github-code
c2bc4df6a626656a489bc3bf419ca43b9401760b1585771bc26916a7e4bc4ba1
/* * Special implementations of built-in functions and methods. * * Optional optimisations for builtins are in Optimize.c. * * General object operations and protocols are in ObjectHandling.c. */ //////////////////// Globals.proto //////////////////// static PyObject* __Pyx_Globals(void); /*proto*/ ////////////...
C
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Cython-0.22.1/Cython/Utility/Builtins.c
mollstam/UnrealPy
mit
12,711
399
codeparrot/github-code
cf74db2c1452f0f8c9672a8e95a0083063fe39488e958b132c83720a888ffde9
// Commom Plugins (function($) { 'use strict'; // Scroll to Top Button. if (typeof theme.PluginScrollToTop !== 'undefined') { theme.PluginScrollToTop.initialize(); } // Tooltips if ($.isFunction($.fn['tooltip'])) { $('[data-tooltip]:not(.manual), [data-plugin-tooltip]:not(.manual)').tooltip(); } // Popo...
JavaScript
src/javascripts/theme.init.js
SupasitC/Pricetrolley
mit
8,635
490
codeparrot/github-code
dfc5c5892cce65c674a471539b71f76db9ff6a79ae5c7b82775a455148b3021a
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "net/url" "os" "os/user" "path/filepath" "strings" "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/google" gmail "google.golang.org/api/gmail/v1" "github.com/code...
GO
rei/rei.go
usk81/shikigami
mit
10,099
337
codeparrot/github-code
0899058c7e8e101e023a4984bdaa1aabae1ae318a1e65878209fc96a96383c22
// This file contains source that originates from: // http://code.google.com/p/leveldbwin/source/browse/trunk/win32_impl_src/env_win32.h // http://code.google.com/p/leveldbwin/source/browse/trunk/win32_impl_src/port_win32.cc // Those files dont' have any explict license headers but the // project (http://code.google.c...
C++
src/leveldb/util/env_win.cc
jesuscoinproject/jesuscoin
mit
25,974
1,033
codeparrot/github-code
9ebded7119611b4a6d3c6a5a8cc33ea0b75dd50ae4cd3e6b0f3a2403c91fe724
<!DOCTYPE html> <html> <head> <title>ECOSOC</title> <base href="../../"> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'> <link rel='shortcut ic...
HTML
Committees/ECOSOC/index.html
bangalorejmun/bangalorejmun.github.io
mit
18,922
306
codeparrot/github-code
bfaab85ded504166486f6ec1eae0bb469a5f37c9aa43246e55a27a94f7e21ac9
require 'strscan' ## # Parses a gem.deps.rb.lock file and constructs a LockSet containing the # dependencies found inside. If the lock file is missing no LockSet is # constructed. class Gem::RequestSet::Lockfile ## # Raised when a lockfile cannot be parsed class ParseError < Gem::Exception ## # The ...
Ruby
ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/request_set/lockfile.rb
justsml/docker-build-server
mit
13,070
580
codeparrot/github-code
96aebd89bf72be1f6e0dfdab25bccffd7eb6dccbf705b2eeed7d8eb3dfdb1c3f
var chai = require("chai") var should = chai.should(); chai.use(require("chai-http")); var request = chai.request(require("./server")) var db = require("mongojs")("test") describe("CRUD Handler", () => { before(done => { done() }) beforeEach(done => { db.dropDatabase(done); }) af...
JavaScript
test/crudHandler/test.js
AkashBabu/server-helper
mit
4,155
132
codeparrot/github-code
83b693c96f926675616fedd2fc3c1f634c2b74fa345df63d11cbebf86cfe6d35
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE Arrows #-} module Main where import Opaleye import Data.Profunctor.Product import Data.Profunctor.Product.Default import Data.Profunctor...
Haskell
doc/docs/opaleye/code/opaleye-select-with-records-and-restrict.hs
meditans/haskell-webapps
mit
1,804
62
codeparrot/github-code
dee34c7d165689b27ca135435c5b7cc09e67b286addc0159d28338fd3ad9a2ac
(function() { 'use strict'; /* Filters */ var md5 = function (s) { if (!s) return ''; function L(k, d) { return (k << d) | (k >>> (32 - d)); } function K(G, k) { var I, d, F, H, x; F = (G & 2147483648); H = (k & 2147483648); I = (G & 1073741824); d = (k & 107...
JavaScript
public/moderator/bower_components/md5-angular-filter/js/md5.filter.js
chariotsolutions/reactive-quizzo-code-sample
mit
6,722
231
codeparrot/github-code
bf64bb193d14ad964bd275ff4a5e78bc634cc101ec58b879319a2d78f1f5f3ac
#!/usr/bin/env python # # GrovePi Example for using the Grove Electricity Sensor (http://www.seeedstudio.com/wiki/Grove_-_Electricity_Sensor) # # The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi # # Have a question about this examp...
Python
Software/Python/grove_electricity_sensor.py
karan259/GrovePi
mit
2,530
69
codeparrot/github-code
31b8f1e0b4ca0572e8cb2deabfd9ae5867dfc910fae882baa99c954aa7b8a10b
require 'openssl' require_relative 'app' module Spaceship module Portal # Represents a certificate from the Apple Developer Portal. # # This can either be a code signing identity or a push profile class Certificate < PortalBase # @return (String) The ID given from the developer portal. You'll ...
Ruby
spaceship/lib/spaceship/portal/certificate.rb
orta/fastlane
mit
12,581
337
codeparrot/github-code
d4e83b9b1ecc5505a2082d329f75f059371fa55808c056212658119738df8b08
/*globals describe, before, beforeEach, afterEach, it */ /*jshint expr:true*/ var testUtils = require('../../utils'), should = require('should'), // Stuff we are testing dbAPI = require('../../../server/api/db'), ModelTag = require('../../../server/models/tag'), ModelPost = r...
JavaScript
ghostgithub/core/test/integration/api/api_db_spec.js
dbanda/dalitsobanda.com
mit
4,779
115
codeparrot/github-code
f0c6489fc16b24d46ba28e6f7a886da23fba1a1c4c18899c6c9709c6817d74a3
<?php defined('BASEPATH') OR exit('No direct script access allowed.'); $config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer' $config['protocol'] = IS_WINDOWS_OS ? 'smtp' : 'mail'; // 'mail', 'sendmail', or 'smtp' $config['mailpath'] = '/usr/sbin/...
PHP
platform/common/config/email.php
ivantcholakov/starter-public-edition-4
mit
4,261
66
codeparrot/github-code
97275cfb0ea8be6617ccee049c5cb2f7f47c5282ae28a0a183587ac68a8c5481
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.ts
hashhar/vscode
mit
7,276
218
codeparrot/github-code
74de1bae1b03a17ad3a1a884b22cecbc9f38c5666359e986cd2cbad20b55d3d8
require 'set' require 'sprockets/http_utils' require 'sprockets/path_dependency_utils' require 'sprockets/uri_utils' module Sprockets module Resolve include HTTPUtils, PathDependencyUtils, URIUtils # Public: Find Asset URI for given a logical path by searching the # environment's load paths. # #...
Ruby
lib/sprockets/resolve.rb
askl56/sprockets
mit
6,764
199
codeparrot/github-code
a443f1ccaffb6fda16e7123db62ff91baa3812f721e94383a355a4ba39c95d8b
(function (subdivision) { 'use strict'; var count = 0; var builders; var defaultBuilder; function buildInternal(type, addin, options, meta) { var builder = subdivision.getBuilder(type); if (builder.preBuildTarget) { addin = buildInternal(builder.preBuildTarget, addin, o...
JavaScript
app/lib/builder.js
BorisKozo/extensibility.js
mit
7,868
226
codeparrot/github-code
7f5f32cf6b916cd3592bd39f671feb8d20c163efabf8b342bbb483be1bffc19e
import argparse import asyncio import gc import os.path import pathlib import socket import ssl PRINT = 0 async def echo_server(loop, address, unix): if unix: sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) else: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock....
Python
examples/bench/echoserver.py
1st1/uvloop
mit
6,317
213
codeparrot/github-code
f405f308175f49d7710e8f0f2da305054cc3e201704d3ec15d627aca366f8482
#region Copyright (c) 2003, newtelligence AG. All rights reserved. /* // Copyright (c) 2003, newtelligence AG. (http://www.newtelligence.com) // Original BlogX Source Code: Copyright (c) 2003, Chris Anderson (http://simplegeek.com) // All rights reserved. // // Redistribution and use in source and binary forms, with ...
C#
source/newtelligence.DasBlog.Runtime/DayEntry.cs
poppastring/dasblog
mit
9,683
305
codeparrot/github-code
e4f210ad19955989c2a7f8b7997bc7adf931ffe0fb95bed42fb1a93ab92ca974
/** \file * \brief Scintilla control: Cursor and Zooming * * See Copyright Notice in "iup.h" */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #undef SCI_NAMESPACE #include <Scintilla.h> #include "iup.h" #include "iup_object.h" #include "iup_attrib.h" #include "iup_str.h" #include...
C
srcscintilla/iupsci_cursor.c
ivanceras/iup-mirror
mit
2,233
94
codeparrot/github-code
ece35cade3ccf5b384b334ec509afccd0aff1d37f942ca58bb8884ea56ee9cfa
var Example = Example || {}; Example.staticFriction = function() { var Engine = Matter.Engine, Render = Matter.Render, Runner = Matter.Runner, Body = Matter.Body, Composites = Matter.Composites, Events = Matter.Events, MouseConstraint = Matter.MouseConstraint, ...
JavaScript
matter-js/examples/staticFriction.js
lsu-emdm/nx-physicsUI
mit
2,921
107
codeparrot/github-code
9ce2fdbca73633e2f559b098343c2677650f8e773e5b487627c43f5b42ee5b52
{% if isTopPage() %} {% set unportalizedPath = '/top-' + Date.now() %} {% else %} {% set unportalizedPath = page.path|replace('(\/)$', '') %} {% endif %} <div class="modal" id="unportalize"> <div class="modal-dialog"> <div class="modal-content"> <form role="form" id="unportalize-form" onsubmit="r...
HTML
lib/views/modal/unportalize.html
crow-misia/crowi
mit
1,864
48
codeparrot/github-code
df560b3951636ea429454b1540371e1b24864a2b38c43cf6afbcdd40c7d45e9d
package com.softserve.app.repository; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mocki...
Java
SampleProjectPet/src/test/java/com/softserve/app/repository/PetRepositoryStubTest.java
OlegSvyryd/animalsRepo
mit
1,751
96
codeparrot/github-code
338fe213084422cab90680ac2e5cd46e85b2aa952ab04b2954dc21f38204a748
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtain...
C++
Library/Ogre/Components/RTShaderSystem/src/OgreShaderExHardwareSkinning.cpp
xsilium-frameworks/xsilium-engine
mit
18,731
549
codeparrot/github-code
c57ce2a4a9661eaf2a783dda967f7e83f66756c56bbe28d700d0e29329b18c48
--[=[ TR_INFO: request information about an active transaction this is the aux. library to encode the request buffer and decode the reply buffer. encode(options_t) -> encoded options string decode(info_buf, info_buf_len) -> decoded info table USAGE: - use it with isc_transaction_info() to encode the info reques...
Lua
lua/fbclient/tr_info.lua
tst2005googlecode/fbclient
mit
3,014
81
codeparrot/github-code
5c5c71587abe7822fa1189e119e4b82e59d09e99a22716e72852c3fdcf6840f0
import flask from donut import auth_utils from donut.modules.account import blueprint, helpers @blueprint.route("/request") def request_account(): """Provides a form to request an account.""" return flask.render_template("request_account.html") @blueprint.route("/request/submit", methods=["POST"]) def requ...
Python
donut/modules/account/routes.py
ASCIT/donut
mit
3,294
83
codeparrot/github-code
de050b605d91414cc150efacea57644658dbff1f15418ed4fb39de4a01125a5b
<!DOCTYPE html> <html ng-app="recoveryApp" lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="bower_components/angular/angular.js"></script> <script type="text/javascript" src="bower_components/sjcl/sjcl.js"><...
HTML
index.html
bechi/copay-recovery
mit
12,586
230
codeparrot/github-code
49c3c0a1867e792de1397524f64d18ec10d14cb3cf7175214b4922281db5eca3
package org.ominidi.api.controller; import org.ominidi.api.exception.ConnectionException; import org.ominidi.api.exception.NotFoundException; import org.ominidi.api.model.Errors; import org.ominidi.domain.model.Feed; import org.ominidi.domain.model.Post; import org.ominidi.facebook.service.PageFeedService; imp...
Java
src/main/java/org/ominidi/api/controller/FeedController.java
ominidi/ominidi-web
mit
1,506
40
codeparrot/github-code
80964720589f64edc0ca1f21b18d27a71151433da24448de64ea630f75e33ae3
#include "jsonobject.h" #include "jsonparser.h" namespace amgcommon { namespace json { JsonObject::JsonObject(string rawJson) { this->originalJson = rawJson; this->root = JsonNode(); } JsonObject::JsonObject(const JsonObject &a) { ...
C++
amgbuildagent/src/classes/amgcommon/json/jsonobject.cpp
agancsos/cpp
mit
1,076
41
codeparrot/github-code
710cc659e7b2517afcf4fbd8fe1820c59081ddbee2ecdcf8217ca67ffa478371
/* * FILE: RDDSampleUtilsTest * Copyright (c) 2015 - 2018 GeoSpark Development Team * * MIT License * * 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 wi...
Java
core/src/test/java/org/datasyslab/geospark/utils/RDDSampleUtilsTest.java
Sarwat/GeoSpark
mit
2,880
79
codeparrot/github-code
b0a21f9b3989e3b4220c61342d0454ca833461e801490bac293da37850218198
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /** * Class for axis handling. * * PHP versions 4 and 5 * * LICENSE: This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Founda...
PHP
library/external/PEAR/Image/Graph/Axis/Category.php
extremeframework/extremeframework
mit
13,647
437
codeparrot/github-code
a5211030a0e8516951314b6d465dab6920b1ac93c8013605d0289989866e3132
module Supa class Builder COMMANDS_WITH_DEFAULT_INTERFACE = %w(attribute virtual object namespace collection append).freeze def initialize(subject, representer:, tree:) @subject = subject @representer = representer @tree = tree end COMMANDS_WITH_DEFAULT_INTERFACE.each do |command| ...
Ruby
lib/supa/builder.rb
dasnotme/supa
mit
931
39
codeparrot/github-code
5f4d1d74d128e18110c289116d33cbd108ee192ca36988cde617841578ac0dce
/**************************************************************************//** * Copyright (c) 2016 by Silicon Laboratories Inc. All rights reserved. * * http://developer.silabs.com/legal/version/v11/Silicon_Labs_Software_License_Agreement.txt ***********************************************************************...
C
ports/efm8/efm8/mcu/EFM8UB3/peripheral_driver/src/uart_1.c
ahtn/keyplus
mit
14,124
589
codeparrot/github-code
8325fe3d2e6ac0005e06bc2d1ac2163c46e0e48b8bc09787412a1ae16ef05654
# ----------------------------------------------------------------------------- # Copyright (c) 2014 GarageGames, LLC # # 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, in...
CMake
Tools/CMake/basics.cmake
Bloodknight/Torque3D
mit
18,376
473
codeparrot/github-code
cd2b013aeb3d8a3d8d7bc89fe3763dcf7948f4c8865071bc0d233dd7e80cfe83
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_IMPL_HTTP_SYNC_CONNECTION_20100601 #define BOOST_NETWORK_PROTOCOL_HTTP_IMPL_HTTP_SYNC_CONNECTION_20100601 // Copyright 2013 Google, Inc. // Copyright 2010 (C) Dean Michael Berris // Copyright 2010 (C) Sinefunc, Inc. // Distributed under the Boost Software License, Version 1.0. // (S...
C++
AnvilEldorado/Depends/Include/boost/network/protocol/http/client/connection/sync_normal.hpp
medsouz/AnvilClient
mit
5,139
147
codeparrot/github-code
3d6c0838c6620122435be229c2d80be8dfad101d351afce6295420938626a377
import {NgbCalendarIslamicCivil} from './ngb-calendar-islamic-civil'; import {NgbDate} from '../ngb-date'; import {Injectable} from '@angular/core'; /** * Umalqura calendar is one type of Hijri calendars used in islamic countries. * This Calendar is used by Saudi Arabia for administrative purpose. * Unlike tabular ...
TypeScript
src/datepicker/hijri/ngb-calendar-islamic-umalqura.ts
ktriek/ng-bootstrap
mit
9,063
220
codeparrot/github-code
9668abb77702bad696ff5b0e22c9d6883579f3957fc9dcd2caacffd658362868
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Permalinks</title> <link rel="stylesheet" href="../assets/css/ghost.min.css"> <!-- Styles not needed for this. Just to get around various bits that Ember handles for us. --> <style> @media (max-width: 900px) { ...
HTML
app/html/permalinks.html
JohnONolan/Ghost-Admin
mit
12,426
251
codeparrot/github-code
06614e14847984042b46bc0e5f7fbcc6d3fe0b8896105b91dd74953fe0f1e600
<?php namespace Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Component; use Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Manager; use Symfony\Component\HttpFoundation\JsonResponse; /** * @package Chamilo\Application\Weblcms\Tool\Implementation\ExamAssignment\Ajax\Compone...
PHP
src/Chamilo/Application/Weblcms/Tool/Implementation/ExamAssignment/Ajax/Component/ListUsersComponent.php
forelo/cosnics
mit
969
32
codeparrot/github-code
0f3d963ca5fc2a69afc491b43cb30f1e4a7541afa6c99444bfc00dd3d4e4ef88
/* * deferred.js * * Copyright 2011, HeavyLifters Network Ltd. All rights reserved. */ ;(function() { var DeferredAPI = { deferred: deferred, all: all, Deferred: Deferred, DeferredList: DeferredList, wrapResult: wrapResult, wrapFailure: wrapFailure, Failure: Failure ...
JavaScript
lib/deferred.js
heavylifters/deferred-js
mit
8,895
323
codeparrot/github-code
d01a0656510194cf03dc704c426340218d709c2e23cbc0e9feb9dd9fb47ee155
#!/usr/bin/env python # # GrovePi Example for using the Grove Slide Potentiometer (http://www.seeedstudio.com/wiki/Grove_-_Slide_Potentiometer) # # The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi # # Have a question about this exa...
Python
Software/Python/grove_slide_potentiometer.py
karan259/GrovePi
mit
2,307
67
codeparrot/github-code
2a08fe66046fc66c7849e38ea44a1c11f7e852eb6631fe7b6f06afc914f2ed17
package tpe.exceptions.trycatchfinally; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Point; import de.smits_net.games.framework.board.Board; /** * Spielfeld. */ public class GameBoard extends Board { /** Sprite, das durch das Bild läuft. */ private Professor ...
Java
06_ausnahmen/02_finally/src/tpe/exceptions/trycatchfinally/GameBoard.java
tpe-lecture/repo-27
mit
954
46
codeparrot/github-code
71d6788997e3fa53d01e84d44b496dff5207d3a91652914bf3452d35295033db
<?= form_open('', array("class"=>"form-horizontal", "id"=>"frm_menu")); ?> <div class="form-group <?= form_error('title') ? ' error' : ''; ?>"> <label for="title" class="control-label col-sm-2"><?= lang('menus_title'); ?></label> <div class="col-sm-4"> <input type="hidden" id="menuid" name="menuid" valu...
PHP
application/modules/menus/views/menus_form.php
suwitolt/ci3-adminlte-hmvc
mit
14,064
330
codeparrot/github-code
2df592a279e01a56bad81c3379c950ff2b078ee7c23d4c52fc200a9fa5ac2bb3
<!DOCTYPE html> <html> <head> <title>onChange / onSelectionChange</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/> <link rel="stylesheet"...
HTML
release-builds/AKKA Project Management Tool-win32-ia32/resources/app.asar.unpacked/lib/dhtmlxGrid/samples/dhtmlxCombo/07_events/03_onchange_onselectionchange.html
dongnan-cn/electron-pm
cc0-1.0
1,490
50
codeparrot/github-code