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
f23871a5a22921a05e3984ede60d386ade4006041fc4758236a65e306aa22f5d
/* Reeleezee API sample program Licensed under MIT license (c) 2017 Reeleezee BV */ package main import ( "bytes" "encoding/json" "fmt" "os" "path/filepath" "reeleezee-api-go/misc" "reeleezee-api-go/net" ) // -------------------------------------------------------------------- // Config, external configurati...
GO
example/example.go
reeleezee/reeleezee-api-go
mit
3,655
130
codeparrot/github-code
b35c66f0eae021d72619475597b44e38111e171dc47772c6b9f52ebca47d8720
<?php if (!count($_POST)) { include DIR."/php/view/admin/organizations.php"; die(); } use Trust\JSONResponse; use SSBIN\Organization; use Trust\Forms; $services = ['saveNew','saveOld','delete']; if (in_array($_POST['a'], $services)) $_POST['a'](); else JSONResponse::Error("Service unavailable"); function saveNew() { ...
PHP
php/controller/admin/organizations.php
fandisus/SSBIN
mit
2,176
56
codeparrot/github-code
8bade08ec76c6c328d155fd9b0a125322c713d0b3bae0fc7bd3b58d2293379b7
'use strict'; const ResourceLock = require('../../../../lib/dialects/mssql/resource-lock'), Promise = require('../../../../lib/promise'), assert = require('assert'); describe('[MSSQL Specific] ResourceLock', () => { it('should process requests serially', () => { const expected = {}; const lock = new Res...
JavaScript
test/unit/dialects/mssql/resource-lock.test.js
gintsgints/sequelize
mit
1,644
65
codeparrot/github-code
892c18677160afab1a07ad04b163259ff7479e374c64817ed00fe56a92f47514
#!/usr/bin/env bash wait_on_pids() { # Wait on the last processes for job in $1 do wait $job if [ "$?" -ne 0 ] then TestsFailed=$(($TestsFailed+1)) fi done } usage() { echo "Runs tests on linux/mac that don't have native build support" echo "usage: run-test [options]" echo ...
Shell
run-test.sh
vijaykota/corefx
mit
7,887
299
codeparrot/github-code
ee87f84524c9ee877a44da6a8ec2d200907adfb7f47db47929d9ca493b555fd4
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNet.Identity; using Microsoft.Owin.Security; namespace DawidPerdekLab7.Models { public class IndexViewModel { public bool HasPassword { get; set; } public IList<UserLoginInfo> Logins { get; set; }...
C#
Kredek/dawid_perdek/lab7/zad_lab/Models/ManageViewModels.cs
superdyzio/PWR-Stuff
mit
2,659
86
codeparrot/github-code
409bff076d186eec5e3a56270d408aa67b356ad385df3955297921768d1c5fe7
using System; using System.Web.UI.WebControls; using PetShop.Model; using PetShop.BLL; namespace PetShop.Web { public partial class CheckOut : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (billingForm.Address == null) { billingForm.Address = P...
C#
Web/CheckOut.aspx.cs
ilovejs/PetShopv4
mit
3,572
92
codeparrot/github-code
4e4d76e0b1cc6d5f60e1c66a3b510e0ef5421765f511bc58ccaff9c76f4104df
package util; import chesspresso.Chess; import chesspresso.position.AbstractMutablePosition; import com.kitfox.svg.app.beans.SVGIcon; import play.api.Play; import javax.imageio.ImageIO; import java.awt.*; import java.io.IOException; /** * Position view. * * * This class is adapted from the chesspresso's Positio...
Java
app/util/PositionView.java
shelajev/cgif
mit
2,513
83
codeparrot/github-code
5a38d82b0c7e45189716e0b182ae891cfa62b2554d80602aea753b17ef800039
<?php /** * TOP API: taobao.fenxiao.discounts.get request * * @author auto create * @since 1.0, 2013-12-10 16:57:25 */ class FenxiaoDiscountsGetRequest { /** * 折扣ID **/ private $discountId; /** * 指定查询额外的信息,可选值:DETAIL(查询折扣详情),多个可选值用逗号分割。(只允许指定折扣ID情况下使用) **/ private $extFields; private $apiParas ...
PHP
web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/FenxiaoDiscountsGetRequest.php
allengaller/mazi-cms
mit
1,029
64
codeparrot/github-code
e7499c645b11993ac40f74ad624ffcfab3b8b3fcaee466555ac3e5b0df9b7710
// confirmed working on node v4.2.6 & npm v3.7.2 // if you are still having issues, you may need to install browserify gloablly. var fs = require('fs'); // less var gulp = require('gulp'); var less = require('gulp-less'); var autoprefixer = require('gulp-autoprefixer'); var cssnano = require('gulp-cssnano'); var noti...
JavaScript
gulpfile.js
jeffdoubleyou/kryptonwallet
mit
4,974
160
codeparrot/github-code
c4b84d8040f5875b8b03eadb6062b35a691f042ac7d0df32e233c9f0891ff590
using System; using System.Web.Mvc; using Moonlit.Mvc.Maintenance.Domains; using Moonlit.Mvc.Maintenance.Models; using Moonlit.Mvc.Maintenance.Services; using Moonlit.Mvc.Templates; namespace Moonlit.Mvc.Maintenance.Controllers { public class MaintControllerBase : MoonlitController { public IMaintDbRe...
C#
src/Moonlit.Mvc.Maintenance.Web/Controllers/MaintControllerBase.cs
moonwa/moonlit
mit
1,371
47
codeparrot/github-code
088c5ed8c4efd20a5c7ba36b0d07c1d86e6e573b8b5a24e60ce33b2bd6436799
package org.lpw.ranch.alipay; import org.lpw.tephra.dao.model.Jsonable; import org.lpw.tephra.dao.model.ModelSupport; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import javax.persistence.Column; i...
Java
ranch-alipay/src/main/java/org/lpw/ranch/alipay/AlipayModel.java
heisedebaise/ranch
mit
1,762
79
codeparrot/github-code
abdb7387d4094509d7c354d93a5b84bd2fe27c9e89d6218ebd5fa7191a9fc983
/** * */ package com.asi.service.resource.response; import java.util.Set; import javax.xml.bind.annotation.XmlRootElement; import org.springframework.http.HttpStatus; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author Rahul K * */ @XmlRootElement public class ExternalAPIResponse { @Json...
Java
src/main/java/com/asi/service/resource/response/ExternalAPIResponse.java
mzubairahmed/externalapi
mit
1,444
73
codeparrot/github-code
a6564cf77998edfe177cea1452eceb52d38c2021589235c8f73d13b59edd4eae
var $, now; $(document).ready(function () { var input = $('#input') , button = $('#button'); input.bind('keypress', function (e) { if (e.keyCode === 13) { button.click(); e.preventDefault(); return false; } }); button.click(function (e) { var module = escape($.trim(input.val()...
JavaScript
public/js/index.js
DTrejo/npmpants
mit
2,168
86
codeparrot/github-code
d4cafe1077a17a09da3725764ab7e8dede5f61d90254cd5cdaf1d98d74322bd5
/** * Hilo * Copyright 2015 alibaba.com * Licensed under the MIT License */ /** * @class EventMixin是一个包含事件相关功能的mixin。可以通过 Class.mix(target, EventMixin) 来为target增加事件功能。 * @static * @mixin * @module hilo/event/EventMixin * @requires hilo/core/Class */ var EventMixin = /** @lends EventMixin# */{ _listeners:...
JavaScript
docs/api-zh/code/event/EventMixin.js
hiloteam/Hilo
mit
4,029
141
codeparrot/github-code
5e86ab8e6b459ed27133651013e6019631a7148bb0fda456bcdfef9aed1173a2
import { Menu } from "electron"; import darwinMenuBuilder from "./darwin"; import windowsMenuBuilder from "./windows"; import { isDev, isDebugProd } from "../../utils/env.util"; import { isMacOS } from "../../utils/platform.util"; class MenuBuilder { constructor() { this.menu = null; this.template = null; ...
JavaScript
src/main/menu/index.js
Tasarinan/Ufoco
mit
1,187
51
codeparrot/github-code
9a9aacde7b408d652cccbc37fa7748963ad7c62f9eaa4761b768965d4538852a
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
PHP
App/LIZ.php
VanceKingSaxbeA/NYSE-Engine
mit
10,406
272
codeparrot/github-code
5f31b1c23140780af405975b2eb46c87db601b263022dd28959ad2744aaaa50e
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/co/cocossharp.windowsdx.1.4.0/Lidgren.Network-net40.html
kuhlenh/port-to-core
mit
98,317
2,215
codeparrot/github-code
a87cc49d560ec92990505c3f4dd99953d4a26323eb5dcdaf7f3e5f3bb6888c63
#!/usr/bin/env bash export cdPlusDir=`pwd` # This loads cd+ into the shell session. exec_string="[ -s \"$HOME/.cd+/bin/cd+.sh\" ] && source \"$HOME/.cd+/bin/cd+.sh\"" # Add line to bashrc and zshrc if not already present. for rc in bashrc zshrc; do if [ -s "$HOME/.$rc" ] && ! grep -q "$exec_string" "$HOME/.$rc...
Shell
install.sh
kevinslin/cd-plus
mit
708
33
codeparrot/github-code
483bc3c20ee00a50360a1309459603b5a09e3894a765f983b30e8e175dfbd52e
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
bottomsheet/src/main/java/com/roselism/bottomsheet/ActionMenu.java
HyperSimon/BottomSheet
mit
10,827
354
codeparrot/github-code
34e8d6f259a05a129e985320a94b5558e53f1e5b0492995638694969d5d48bc2
/* * (C) 2003-2016 Anope Team * Contact us at team@anope.org * * Please read COPYING and README for further details. */ #include "../../webcpanel.h" #include "utils.h" WebCPanel::ChanServ::Drop::Drop(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage (cat, u) { } bool WebCPanel::ChanServ...
C++
anope/modules/webcpanel/pages/chanserv/drop.cpp
RanadeepPolavarapu/IRCd
mit
1,862
59
codeparrot/github-code
9ae43edfcdd408e94b1b91f71f817f9f083f984102f0142fb697e9c992a78013
// @flow import update from 'react-addons-update' import type {Action} from '../../types/actions' import type {StatusState} from '../../types/reducers' export const defaultState = { message: null, modal: null, appInfo: null, applicationJobs: [], applicationRequests: [], jobMonitor: { timer: null, ...
JavaScript
lib/manager/reducers/status.js
conveyal/datatools-manager
mit
8,757
228
codeparrot/github-code
8af8daafcf45d3a296d0a17cba49ccead5bdde3e8ee4b95b0839bbe13c16e951
// Copyright 2020 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. //go:build gogit // +build gogit package git import ( "context" "code.gitea.io/gitea/modules/log" "github.com/go-git/go-git/v5/plumbing/object" cgobj...
GO
modules/git/last_commit_cache_gogit.go
go-gitea/gitea
mit
2,825
113
codeparrot/github-code
825a6cfd5ee89ee5acb6235905202141fd23e42d9e5be2fa9bc7aece6d83adab
/*************************************************************************/ /* tile_map.h */ /*************************************************************************/ /* This file is part of: */ /* ...
C
scene/2d/tile_map.h
pixelpicosean/my-godot-2.1
mit
8,170
291
codeparrot/github-code
bc5bdf0765ab731aba11c91df6a6779b500c821596c4ff049842b00272f9a788
/* * snake: This is a demonstration program to investigate the viability * of a curses-based assignment. * * Author: Dr. Phillip Nico * Department of Computer Science * California Polytechnic State University * One Grand Avenue. * San Luis Obispo, CA 93407 USA * * Em...
C
hungrymain.c
epleaner/OS-lwp-threading-library
mit
2,893
117
codeparrot/github-code
49c5af56b79f4fff5a126cac007149daed77eee4ec5363e05110aea5eb8757ef
/* ssl/d1_pkt.c */ /* * DTLS implementation written by Nagendra Modadugu * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. */ /* ==================================================================== * Copyright (c) 1998-2005 The OpenSSL Project. All rights reserved. * * Redistribution and use in source a...
C
core/lib/openssl/ssl/d1_pkt.c
LedgerHQ/lib-ledger-core
mit
64,614
1,968
codeparrot/github-code
588911f6c8aba448af85c08899bfc0f0d2355f8fab49f4d6a4572977ff27161a
import { createApp } from './main' // ENV Variables require('dotenv').config() global.fetch = require('node-fetch') const isDev = process.env.NODE_ENV !== 'production' // This exported function will be called by `bundleRenderer`. // This is where we perform data-prefetching to determine the // state of our applicat...
JavaScript
packages/docs/src/entry-server.js
Phlow2001/vuetify
mit
1,961
59
codeparrot/github-code
74f2906627ca7e2dc3d47ac1bdcf29b37e4dd7e0fc79280b4076d139661e9143
// $Id: Refcountable.cpp 2179 2013-05-28 22:16:51Z mesnierp $ #include "orbsvcs/Notify/Refcountable.h" #include "tao/debug.h" #include "orbsvcs/Log_Macros.h" #include "ace/Guard_T.h" #if ( TAO_NOTIFY_REFCOUNT_DIAGNOSTICS != 0 ) #include <map> #include <string> #include <typeinfo.h> TAO_BEGIN_VERSIONED_NAMESPACE_DEC...
C++
orbsvcs/Notify/Refcountable.cpp
binary42/OCI
mit
5,869
250
codeparrot/github-code
e1ffe4023fcdc8450db6e1cd742f6408d1ea3bc1b905addfcee4b30b87c8b465
// ---------------------------------------------------------------------- // Adaptive music composition engine implementation for interactive systems. // // Copyright 2014 Alper Gungormusler. All rights reserved. // // ------------------------------------------------------------------------ using UnityEngine; u...
C#
Assets/barelyMusician/Core/Scripts/Composition/Base/Generation/ModeGenerator.cs
anokta/barelyMusician
mit
2,671
77
codeparrot/github-code
b7c8c0d72dfbf362477f75a66589539d05be6c13cff530a8dc614300ff5cd228
<?php namespace My\RecipesBundle\Entity; class Ingredient { private $id; protected $name; public function __construct($name = NULL) { $this->name = $name; } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set name...
PHP
src/My/RecipesBundle/Entity/Ingredient.php
jorgegrupocfi/symfonyfrontback
mit
629
48
codeparrot/github-code
73e570cced5340a8f921f5c7dc96bc01d515b53273c045138602815adb627e3d
package net.authorize.sample.TransactionReporting; import net.authorize.Environment; import net.authorize.api.contract.v1.*; import net.authorize.api.controller.GetSettledBatchListController; import net.authorize.api.controller.GetUnsettledTransactionListController; import net.authorize.api.controller.base.ApiOperat...
Java
src/main/java/net/authorize/sample/TransactionReporting/GetUnsettledTransactionList.java
Zeeshan7293/sample-code-java
mit
1,755
46
codeparrot/github-code
25ac8fb4a4da5c779010a44cc1b4fced43eea19e4e011cd17e2670698ede7e6f
using System; using System.Collections.Generic; using EasyGelf.Core.Encoders; using RabbitMQ.Client; using RabbitMQ.Client.Framing; namespace EasyGelf.Core.Transports.Amqp { public sealed class AmqpTransport : ITransport { private readonly AmqpTransportConfiguration configuration; private read...
C#
Source/EasyGelf.Core/Transports/Amqp/AmqpTransport.cs
WassMM/EasyGelf
mit
3,041
82
codeparrot/github-code
cb86be378c7901aa8592f3457c7c8e012a36b533d80deacf3d0369d02b271da5
package edu.ucsb.cs56.w14.lab05.jrcryan; public class Car { private String vin; // VIN: series of numbers and letters i.e. "1GNCS18Z30115561" private String makeModel; // name of the car make and model, i.e. "Nissan Altima" /** Two-arg constructor @param vin series of numbers and letters ...
Java
src/edu/ucsb/cs56/w14/lab05/jrcryan/Car.java
UCSB-CS56-W14/W14-lab05
mit
1,750
72
codeparrot/github-code
bd130cbbfca83d36426db3d9a77ccd2620f3027b7359a3578e5b446bba4701e5
/*--------------------------------------------------------------------------------------------- * 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/common/viewLayout/viewLineRenderer.ts
0xmohit/vscode
mit
27,609
847
codeparrot/github-code
612e6deac86f21b99f51271c154240903b364ea722ad9dffc849a053d73fceb4
#include <iostream> #include <cstdlib> #include <string> #include <unordered_set> #include <vector> #include <algorithm> #include <climits> using namespace std; class Solution { public: string maps[10] = {" ", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"}; vector<string> result; int n = 0; string...
C++
17.cpp
machinecc/Leetcode
mit
1,258
81
codeparrot/github-code
8c7f03bdcd3e99ab99f8ed982de2484ad1d66358403e545fe3bd50163b3c6320
// =========================================================== // Copyright (C) 2014-2015 Kendar.org // // 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 wit...
C#
Node.Cs/src/modules/Http.Renderer.Razor/Helpers/HtmlHelper.Fields.cs
kendarorg/Node.Cs.Old
mit
11,924
405
codeparrot/github-code
19876ce8221aae0631d91ea1cf3a38ba23fa66d546de765ba558db4ffb70b64d
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016, Intel Corporation // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to de...
C
Modules/Rendering/vaGBuffer.h
GameTechDev/ASSAO
mit
6,866
115
codeparrot/github-code
f0ba2f0c4963ac7bcfa17bc3247c2153cf26aad27c51aeeb516b646162e62d83
package com.prolificinteractive.materialcalendarview; import android.annotation.SuppressLint; import android.app.Service; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Parcel; i...
Java
library/src/main/java/com/prolificinteractive/materialcalendarview/MaterialCalendarView.java
prolificinteractive/material-calendarview
mit
64,348
2,019
codeparrot/github-code
553a1c773687c2b46bd2df0a75bbccbc07d0bb6dc7e12d772ec16896107239d8
#include<stdio.h> #include<string.h> #include<algorithm> #include<iostream> #include<math.h> using namespace std; long long solve(int r,long long sum) { long long left=2,right=(long long)sqrt((double)sum); while(left<=right) { long long mid=(left+right)/2; double mm=(pow(1.0*mid,r+1)-mid)/(m...
C++
ZOJ/30 - 39/zoj3665.cpp
polossk/CodeArchive
mit
1,698
79
codeparrot/github-code
a2ea5c2ee474cf658104a6296c8194ce60e2a0cf94e2f337e00096a9c2b06ac8
import * as main from '../src/main'; const { isTrue, isFalse, OPTION_KEYS, printException, collectUrlParams, formatUrl, openImages, updateOptions, setStyle, getImageFilenameByUrl, downloadImage, onOriginalButtonClick, getButtonSetter, ButtonSetter, ButtonSetterTweetDeck, } = main; const t...
JavaScript
__tests__/Utils.test.js
hogashi/twitterOpenOriginalImage
mit
14,112
468
codeparrot/github-code
c85d32275a2dd7cc04eb4dde49d790d65648952d88ee4d9797c18535e9e47db9
<?php namespace Frontend\ContenidosBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; //ASOCIO LAS ENTIDADES QUE SE UTILIZARAN use Frontend\ContenidosBundle\Entity\Banco; use Frontend\ContenidosBundle\Entity\Datosproveedor; //ASOCIO LOS FORMULA...
PHP
src/Frontend/ContenidosBundle/Controller/BancoController.php
valeraovalles/sait
mit
8,384
261
codeparrot/github-code
33c0d951c71a70dda36284f1e927d4e7141c398a1febbb7f338548fe25d4977b
#pragma once #include "Profiler.h" #include "SceneLoadContext.h" #include "material/IMaterial.h" #include "vcm/Defaults.h" #include <optional> namespace PR { /// Simple recursive random walker template <bool ApplyRussianRoulette> class Walker { public: size_t MaxRayDepthHard = 64; size_t MaxRayDepthSoft = 4; ...
C
src/plugins/main/integrators/Walker.h
PearCoding/PearRay
mit
5,039
155
codeparrot/github-code
fc2083e56eebbd2bd84d113729f5797f5524f514b0fa269ba6e751b5fbb4b3c4
/** * Day 16 * Gesture unlock * https://github.com/spikef/react-native-gesture-password */ 'use strict'; import React,{Component,StatusBarIOS,Image,StyleSheet,Text,View} from 'react-native'; import Util from './utils'; import PasswordGesture from 'react-native-gesture-password'; export class EnterPassword extends...
JavaScript
view/day16.js
fangwei716/ThirtyDaysOfReactNative
mit
4,192
189
codeparrot/github-code
6d11de5ecb905702d9c78273da86f8d73cf19befa308c5afcedada3dd3d2d0f2
// // EEDialogTree.cpp // ee-library // // Created by Zinge on 7/27/17. // // #include "ee/cocos/DialogManager.hpp" #ifdef EE_X_COCOS_CPP #include <2d/CCScene.h> #include <ee/core/Logger.hpp> #include <ee/core/ScopeGuard.hpp> #include "ee/cocos/Dialog.hpp" #include "ee/cocos/DialogCommand.hpp" #include "ee/cocos...
C++
src/cpp/ee/cocos/DialogManager.cpp
Senspark/ee-x
mit
8,264
292
codeparrot/github-code
27a58aa2a3697db3cf52bc7de5e386f8fb258a84d48818241631e1d4a4c5f342
\hypertarget{class_werewolf}{\section{Werewolf Class Reference} \label{class_werewolf}\index{Werewolf@{Werewolf}} } Class for \hyperlink{class_werewolf}{Werewolf}. Subclass of \hyperlink{class_critter}{Critter}. {\ttfamily \#include $<$Werewolf.\+h$>$} Inheritance diagram for Werewolf\+: \nopagebreak \begin{...
TeX
CritterGroupGenerator/Documentation/latex/class_werewolf.tex
sli-fox/A1
mit
4,416
121
codeparrot/github-code
e7fafe4441927c83ef333e054a71a5d872199d7512d172ecde4864a3f70b287f
{-# Language GADTs #-} module Unison.Runtime.Vector where import Unison.Prelude import qualified Data.MemoCombinators as Memo import qualified Data.Vector.Unboxed as UV -- A `Vec a` denotes a `Nat -> Maybe a` data Vec a where Scalar :: a -> Vec a Vec :: UV.Unbox a => UV.Vector a -> Vec a Pair :: Vec a -> Vec ...
Haskell
parser-typechecker/src/Unison/Runtime/Vector.hs
unisonweb/platform
mit
1,622
55
codeparrot/github-code
a2dd3ad7a9046c6944c83165aa333066b1241d7722c1cea4e8a54478ff686182
'use strict'; var path = require('path'); var cssmin = require('cssmin'); var jsmin = require('jsmin2'); function htmlminify(str, options) { options || (options = {}); str = str .replace(/(\n|\r)/g, "") //del \n .replace(/>([\x20\t]+)</g, "><") //del blank & tab .replace(/^\s+|\s+$/g, "") // trim blank if(o...
JavaScript
lib/include.js
wyicwx/bone-act-include
mit
3,432
155
codeparrot/github-code
d25354defeee5101bd4779dc8c240b4b69c64193063e2dbd7cf2198f3b9a3948
TOP_DIR = ../.. DEPLOY_RUNTIME=/kb/runtime TARGET ?= /kb/deployment include $(TOP_DIR)/tools/Makefile.common SERVICE_SPEC = Loader.spec SERVICE_NAME = Loader SERVICE_PSGI_FILE = $(SERVICE_NAME).psgi SERVICE_DIR = $(TARGET)/services/$(SERVICE_NAME) SERVER_MODULE = lib/Bio/KBase/$(SERVICE_NAME)/Service.pm #SERVICE = Load...
Makefile
Makefile
sjyoo/loader
mit
7,471
198
codeparrot/github-code
2889e7256c618d81d9decf7cf4ce4b7496c20311a2b5574e4284debda93e50f1
<!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="author" content="Open Knowledge"> <meta name="description" content="The state ...
HTML
place/macao/spending/index.html
okfn/opendataindex-2015
mit
8,644
174
codeparrot/github-code
0a8b252f28472232db810d6567596fb62eae0fc1dfdb4cfb0619b16c26533890
lychee.define('game.Main').requires([ 'lychee.Input', 'lychee.Viewport', 'game.Graph', 'game.Renderer', 'game.state.Game', 'game.DeviceSpecificHacks' ]).includes([ 'lychee.game.Main' ]).exports(function(lychee, global) { var Class = function(settings) { lychee.game.Main.call(this, settings); this.__offs...
JavaScript
demo/particle/source/Main.js
Smotko/lycheeJS
mit
2,276
137
codeparrot/github-code
5aca7d54b77e5dc5fc2b19cff3d04aa2352be0673c699e4b1721e09ba4895255
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Main extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controlle...
PHP
application/controllers/Main.php
maor10/chavraya
mit
2,412
62
codeparrot/github-code
aee1a8fd55ef23701f9f22433c741d30c74b50af958bf755d742530b39eeb3e8
var gulp = require('gulp'), gutil = require('gulp-util'), jshint = require('gulp-jshint'), browserify = require('browserify'), concat = require('gulp-concat'), clean = require('gulp-clean'), embedlr = require('gulp-embedlr'), sass = require('gulp-ruby-sass'), autoprefixer = require('gulp-autoprefixer'), inject...
JavaScript
gulpfile.js
mickstorm/prototype-boilerplate
mit
2,233
89
codeparrot/github-code
76093ea7aa4dbe37e42a05ec16aea5f5b025bd33d39dc09a277d468db475b87c
using Nucleus.Base; using Nucleus.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Nucleus.Game { /// <summary> /// An element data component that can be used to indicate that a cell blocks vision /// </summary> public...
C#
Nucleus/Nucleus.Game/Components/VisionBlocker.cs
pnjeffries/Nucleus
mit
953
39
codeparrot/github-code
4be755453863b830205212f0584d611fb6014d2fa2d7932bd367faad56eb0c64
namespace UnityApiPoc.Models { using System.Collections.Generic; // Models returned by AccountController actions. public class ExternalLoginViewModel { public string Name { get; set; } public string Url { get; set; } public string State { get; set; } } public class M...
C#
UnityApiPoc/Models/AccountViewModels.cs
ingledewjf/WebApiPoC
mit
955
42
codeparrot/github-code
650baa22a24e6cbe4abe5af0a5c73eb3c553fb1f68ca432e19c1de2e903d4d9c
/* Button A button suitable for giving stars to someone. Markup: <button class="btn {$modifiers}">Button</button> :hover - Subtle hover highlight. :active - Subtle active status. .disabled - Disabled Status .btn-small - Smaller button. .btn-primary - A primary button. .b...
CSS
web/portal/src/components/Button/style.css
trendmicro/serverless-survey-forms
mit
15,992
516
codeparrot/github-code
33d1a57df15d78a7fa72c03d0ae8ac32473f15dfc197a01645e3f79efee42197
// **************************************************************************** // <copyright file="HMACMD5.cs" company="xBrainLab"> // Copyright (c) 2011 xBrainLab. All rights reserved. // </copyright> // <author>Sebastien Warin</author> // **************************************************************************** ...
C#
src/Cimbalino.Toolkit.Core (WP8)/System/Security/Cryptography/HMACMD5.Generated.cs
modulexcite/Cimbalino-Toolkit
mit
6,343
211
codeparrot/github-code
8890cf3cd962f77facdef8f07d136cc3b605b079ded79c9c2a7533d68a714823
/** * * ProjectName:blogme * Description: * Created by qimuyunduan on 16/4/13 . * Revise person:qimuyunduan * Revise Time:16/4/13 下午3:26 * @version * */ var _ = require('lodash'), Promise = require('bluebird'), errors = require('../errors'), utils = require('../utils'), ...
JavaScript
core/server/models/parameterType.js
qimuyunduan/blogme
mit
4,069
172
codeparrot/github-code
b4e8bf26e9bdd29757ac4a0ae89c827625301d236263cd64f9d9613190cbd661
#include "terrain.h" #include "engine/crt.h" #include "engine/engine.h" #include "engine/geometry.h" #include "engine/log.h" #include "engine/math.h" #include "engine/profiler.h" #include "engine/resource_manager.h" #include "engine/stream.h" #include "renderer/material.h" #include "renderer/model.h" #include "renderer...
C++
src/renderer/terrain.cpp
nem0/LumixEngine
mit
11,535
479
codeparrot/github-code
2d7d096d4de78d31c10706b40f23d6bda968b72998d3d72cc7ae28a3846f7f15
package lemons.combustible.passmaterial.passphrases; import android.view.View; import android.widget.TextView; import com.bustiblelemons.recycler.AbsRecyclerHolder; import butterknife.InjectView; import butterknife.OnClick; import butterknife.Optional; import lemons.combustible.passmaterial.OnPassphraseConfigChanged...
Java
app/src/main/java/lemons/combustible/passmaterial/passphrases/PassPhraseCell.java
bhm/Passmaterial
mit
2,960
99
codeparrot/github-code
ff936d33f6edde120ec1f5097011522587c172ca2146ce90529c7a98c17e8fb8
// Compiled by ClojureScript 0.0-2138 goog.provide('cljs.core.async.impl.channels'); goog.require('cljs.core'); goog.require('cljs.core.async.impl.buffers'); goog.require('cljs.core.async.impl.buffers'); goog.require('cljs.core.async.impl.dispatch'); goog.require('cljs.core.async.impl.dispatch'); goog.require('cljs.cor...
JavaScript
resources/public/js/out/cljs/core/async/impl/channels.js
mateuszjancy/tictactoe
mit
9,965
190
codeparrot/github-code
5095930a0b13baef1ce46ce2155f9760038d72b7cb35006e3ea2917fc44f45a6
#include "log.hpp" #include "application.hpp" #include "argumentsystem.hpp" #include <algorithm> #include FILESYSTEM_HEADER namespace fs = FILESYSTEM_NAMESPACE; namespace OpenBFME { namespace { /* Only one instance of this class is allowed, to be created in main and provided with the command line arguments. */ Appli...
C++
core/application.cpp
chipgw/openbfme
mit
6,367
161
codeparrot/github-code
6d15896c19610ba3a0d1a83eef169a8f6d9a11654b7c26f8b1e4a538eb9f4df3
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using ...
C#
ContactSample.BackOffice/App_Start/IdentityConfig.cs
GlaucoGodoi/AspNet-MVC5-Angular
mit
4,354
110
codeparrot/github-code
b0cd596053690671a46194b38e4b6c8c718c2b0907882ba33514d7559b6b8ffc
// Copyright (c) 2014 The Limecoinx developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef _KEEPASS_H_ #define _KEEPASS_H_ #define KEEPASS_CRYPTO_KEY_SIZE 32 #define KEEPASS_CRYPTO_BLOCK_SIZE 16 #define KEEPASS_...
C
src/keepass.h
LIMX-SUPPORT/LimecoinX
mit
3,447
134
codeparrot/github-code
07784757799c4e74fa9baf544e3c84cf8f155c417fb960d2db2d31fd1432ebf3
import {EntityManager} from '../src/entity-manager'; import {Repository} from '../src/repository'; import {Entity} from '../src/entity'; import {WithResource} from './resources/entity/with-resource'; import {WithAssociations} from './resources/entity/with-associations'; import {WithCustomRepository} from './resources/e...
JavaScript
test/repository.spec.js
doktordirk/aurelia-orm
mit
11,347
331
codeparrot/github-code
b3d9f91e692ff3c58fe9f7a59510b4b85f109756d9e8d3249193d0ba2ead1eb8
package main import ( "fmt" "log" "os" "os/exec" "strconv" "strings" "text/tabwriter" "github.com/JamesClonk/easy-vpn/config" "github.com/JamesClonk/easy-vpn/provider" "github.com/JamesClonk/easy-vpn/provider/digitalocean" "github.com/JamesClonk/easy-vpn/provider/vultr" "github.com/JamesClonk/easy-vpn/rng...
GO
easy-vpn.go
JamesClonk/easy-vpn
mit
7,849
277
codeparrot/github-code
f5ff09f1742e6306ca7d15090f539cbb98098a527d46f68b8ca65143a35a806f
package com.repo.dao.impl; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import com.repo.dao.UserDao; import com.repo.domain.User; import com.repo.jdbc.UserRowMapper; public class UserDaoImpl imple...
Java
src/com/repo/dao/impl/UserDaoImpl.java
srikanthnit/IntView
mit
1,754
73
codeparrot/github-code
66571b397bb66493166ff0de8e6f7957a2bac8eaebe89a1ba30535afc903c693
module RecordCache module Strategy class FullTableCache < Base FULL_TABLE = 'full-table' # parse the options and return (an array of) instances of this strategy def self.parse(base, record_store, options) return nil unless options[:full_table] FulltableCache.new(base, :full_tabl...
Ruby
lib/record_cache/strategy/full_table_cache.rb
SocialStudio/record-cache
mit
2,827
83
codeparrot/github-code
95093fb58073d293a9e7caa3e358a0cf58e446055399b3b69614bc857c3bf052
import {assert} from 'chai' import {withAction} from '../src/action' import {addDestination, MemoryLogger} from '../src/output' import {BoundField, Field, fields, ValidationError, _MessageSerializer, MessageType, ActionType} from '../src/validation' const greaterThanTe...
JavaScript
test/validation.js
jonathanj/eliot.js
mit
24,017
661
codeparrot/github-code
133469bfdae6509fd56e5f56038bfba7084f5e2a25564461a0209f2b3657f5ba
# Your Names # 1) David O'Keefe # 2) Shawn Watson # We spent 2 hours on this challenge. # Bakery Serving Size portion calculator. #PSEUDOCODE # Create a method that accepts serving_size_mod from the calc # Create a hash with cookie, cake, and pie # Take serving size mod and divide pie, cake, and cookie in to ...
Ruby
week-6/gps.rb
DavidOKeefe/phase-0
mit
2,531
97
codeparrot/github-code
c41d063f333777c5cc2ce0b408a999fdc9366fb8a5d8523e19efbb8c664fb8e2
var locastyle = locastyle || {}; locastyle.modal = (function() { 'use strict'; var config = { open: { trigger: '[data-ls-module="modal"]', triggerOpened: 'modal:opened' }, close: { classes: '.ls-modal', trigger: '[data-dismiss="modal"]', triggerClosed: 'modal:closed' }...
JavaScript
source/assets/javascripts/locastyle/_modal.js
locaweb/locawebstyle
mit
3,271
144
codeparrot/github-code
52c11f857ce17aa097312c8cc8858d89d0f0dd93667c3e0fc98be7dd5e23b04d
<!DOCTYPE html> <!--[if IE]><![endif]--> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Class NotSupportedFileExtensionForFormatException | Picturepark.SDK.V1 API </title> <meta name="viewport" content="width=device-width"> <meta n...
HTML
docs/sdk/site/api/Picturepark.SDK.V1.Contract.NotSupportedFileExtensionForFormatException.html
Picturepark/Picturepark.SDK.DotNet
mit
14,825
388
codeparrot/github-code
eecc755435cbf4733b8f16f25a6a971553410d391582372bb705c15ed79705f7
import * as types from './types' import ReactNative from 'react-native' const { NavigationExperimental } = ReactNative const { jumpToIndex } = NavigationExperimental.StateUtils; export function setTab(tabIndex) { return (dispatch, getState) => { const { tabs } = getState() dispatch(Object.assign({ type: typ...
JavaScript
app/actions/navigation.js
jlebensold/peckish
mit
716
34
codeparrot/github-code
4f0bc9bec0e470cb39e326c2e0d832f88c190a9d560ade5145692c4abc16e098
/* * RtpSource.h * * Created on: Aug 2, 2012 * Author: pedro */ #ifndef RTPSOURCE_H_ #define RTPSOURCE_H_ #include "../logger.h" #include "../MediaDefinitions.h" #include <boost/asio.hpp> #include <boost/scoped_ptr.hpp> #include <boost/thread.hpp> namespace erizo { class RtpSource : public MediaSource, p...
C
src/liberizo/rtp/RtpSource.h
conclave/licode
mit
1,153
45
codeparrot/github-code
e7a0ff894a3349cd237ae0eb261b87e2a14d782951c7f621ce25639432eb159c
/** * @preserve Copyright (c) 2014 Anselm Meyn * * 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, me...
JavaScript
index.js
meyn/cli.args
mit
8,443
316
codeparrot/github-code
8c28e2f146fab9ab43682859777b39231958be31c1a2b3dcfc459dbd13ec9a5a
using System; using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using StrmyCore; namespace Stormbot.Bot.Core.Modules.Audio { internal sealed class SoundcloudResolver : IStreamResolver { private readonly Dictionary<string, dynamic> _cachedTrackData = new Dictio...
C#
Bot.Core/Modules/Audio/SoundcloudResolver.cs
SSStormy/Stormbot
mit
2,021
56
codeparrot/github-code
2c8e1581541cfd03f9885a9fad237ac220a235669a763acd1d154eec16b1bb77
module Flay::Helpers def metadata_path return nil if git_root.nil? File.join(git_root, "metadata.rb") end def git_root @git_root ||= begin output, _, status = shell_exec("git rev-parse --show-toplevel", show_output: false) return nil unless status == 0 output.chomp end end ...
Ruby
lib/flay/helpers.rb
sweeperio/flay
mit
733
32
codeparrot/github-code
c37ed497aef4b5468c439a4c8c63db692884f9b227cdfda74242009b7f8c4478
package net.ccmob.usbled.lib.communication; import jssc.SerialPort; import jssc.SerialPortException; public class ControllerInterface { private static ControllerInterface instance; private static Device deviceInstance; private SerialPort device = null; public static String port = "COM1"; ...
Java
UsbLedLib/src/main/java/net/ccmob/usbled/lib/communication/ControllerInterface.java
DeltaCore/UsbLedLib
mit
3,583
127
codeparrot/github-code
132871682e1477daf7032da191b23de6477a67ca6d971e5961ea953b0071e7a9
package com.robothand.highqualitybot.command; import com.robothand.highqualitybot.Config; import com.robothand.highqualitybot.music.GuildMusicPlayer; import net.dv8tion.jda.core.entities.Guild; import net.dv8tion.jda.core.entities.MessageChannel; import net.dv8tion.jda.core.events.message.MessageReceivedEvent; /** *...
Java
src/main/java/com/robothand/highqualitybot/command/SkipCommand.java
sasquench/highqualitybot
mit
2,074
60
codeparrot/github-code
c59c0b34265a13ab7a08d1310cf398a3bcae10be2e697f716f157fa8531dfbb8
import json import uuid from django.contrib.auth import logout from django.shortcuts import render, redirect from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from watsan.models import WatsanUserMeta, Organization, N...
Python
watsan/views/settings_views.py
spatialcollective/watsan
mit
4,402
103
codeparrot/github-code
2c1e21ce8bd57dc5e133112c5f9dc44e5d016e38400621fc4fa5a649eb3fb5aa
using System.Threading; using System.Threading.Tasks; using NuGet.Common; using Sleet; namespace Sleet { /// <summary> /// Delete a feed from a source. /// </summary> public static class DestroyCommand { public static async Task<bool> RunAsync(LocalSettings settings, ISleetFileSystem source...
C#
src/SleetLib/Commands/DestroyCommand.cs
emgarten/Sleet
mit
1,587
53
codeparrot/github-code
9d49ff6f0322be598dbcec5830ee8826c2d17f5b29488d06164f8786d9500de1
package algorithm.leetcode.design; import algorithm.common.TreeNode; /** * @date 15/06/2018. * @author Qiannan Lu */ public class BinarySearchTreeIterator { } class BSTIterator { TreeNode tree; TreeNode current; int leftHeight = 0; int rightHeight = 0; public BSTIterator(TreeNode root) { this.tree = root;...
Java
java/coding-common/src/main/java/algorithm/leetcode/design/BinarySearchTreeIterator.java
hsqlu/coding-lab
mit
743
43
codeparrot/github-code
ce97b39d4ced298d479ecffea0af0795779bc491be3f9f73794a1dfbe814d3a6
package com.virtualpairprogrammers.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import org.springframework.core.annotation.Order; import org.springframework.security.config.anno...
Java
src/main/java/com/virtualpairprogrammers/config/SecurityConfiguration.java
navneethproject02/fleetman-webapp
mit
2,037
68
codeparrot/github-code
fbeb7f0f2f422dcdd07ab69dc760b667aabc5cbec94f7de4b6d0da2564eccbac
'use strict'; const _ = require('lodash'); const colors = require('colors'); const LED = require('../util/LED'); const config = require('../config'); const Player = require('./lib/play'); const Timer = require('../util/timer'); const timeStr = require('./lib/timeStr'); const ledAlias = require('../util/LED/LEDAlias')...
JavaScript
lib/parsing/handler/singleComplex.js
tosone/atom-parsing
mit
5,632
182
codeparrot/github-code
fb9d588308732e00629832bab5e0fd4b95cfe734e1519df3303b5608477c6257
<?php /******************************************************************************* * * filename : PropertyTypeEditor.php * last change : 2003-01-07 * website : http://www.churchcrm.io * copyright : Copyright 2001, 2002 Deane Barker * * ChurchCRM is free software; you can redistribute it and/or ...
PHP
src/PropertyTypeEditor.php
bradgearon/ChurchCRM
mit
4,532
124
codeparrot/github-code
e2437ef0311b442f489b4de284a05e7f6ab81c26e932f2409a154a6eff0960a3
/* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distribut...
C
inc/qadmobwidget.h
digitalsurgeon/qadmob
mit
1,108
49
codeparrot/github-code
3800bb06b7c2719ce7212b9aa0bf05948754925c396100aac20e41659a78ba40
#include "stdafx.h" #include "MainScene.h" #include "IntroScene.h" #include "GameScene.h" #include "CreditScene.h" #include "Sling.h" #include "GameManager.h" #include "StageScene.h" #include "ConstVars.h" #include "FileStuff.h" #include "MapEditer.h" #include <AudioEngine.h> #include <SimpleAudioEngine.h> Scene* Main...
C++
X10_Project/Classes/MainScene.cpp
kimsin3003/X10
mit
6,944
248
codeparrot/github-code
7d687b12b6b47f3cb72ab1cca6c4bfd80e04639f47bf088e197f1a6185c5fa7e
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Windows.Forms; using MoveLib; using MoveLib.BAC; using MoveLib.BCM; using System.IO; using System.Threading; namespace RealtimeEditor { public partial class MainForm : Form { Li...
C#
RealtimeEditor/MainForm.cs
lullius/MoveTool
mit
14,772
425
codeparrot/github-code
a6dd211f2db1c34347ed2776927f4f678eb166cc333848c8e5ffd0a1fcb46527
#pragma once namespace GLWrapper { public ref class GLView : public System::Windows::Forms::UserControl { private: System::ComponentModel::Container^ components; HDC deviceContext; HGLRC glRenderingContext; GLView ^sharedContextView; GLCanvas ^glCanvas; bool glEnabled; bool neverInitGL; bool ...
C
GLWrapper/GLView.h
filipkunc/GLGraphics
mit
2,235
86
codeparrot/github-code
dba9fffe8376863f42250c7624132fb4d08aa415d2d50fc9694f15787149efe2
""" An utility module containing utility functions used by the grader module and some useful pre-test hooks. """ import json import traceback def import_module(path, name=None): if name is None: name = path import importlib.machinery loader = importlib.machinery.SourceFileLoader(name, path) ...
Python
grader/utils.py
macobo/python-grader
mit
1,858
70
codeparrot/github-code
7e91e495f0ad80f2e2e143c5f753aebb0f411df62b8d16bc3bd89b919e16b23b
<?php namespace B24io\ETL\Shop\Loyalty\DTO; use B24io\ETL\Shop\AbstractEntity; use B24io\ETL\Shop\Loyalty\DTO\Transactions\Accrual; use B24io\ETL\Shop\Loyalty\DTO\Transactions\Payment; use B24io\ETL\Shop\Loyalty\DTO\Transactions\TransactionInterface; /** * Class Loyalty * * @package B24io\ETL\Shop\Loyalty\DTO */...
PHP
src/ETL/Shop/Loyalty/DTO/Loyalty.php
b24io/etl-shop
mit
2,730
121
codeparrot/github-code
2d84658cf69e97999918d881daa81907eda5bd737e93ced89c4fe9d3aea35536
using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; namespace StackExchange.Opserver.Data.SQL { public partial class SQLNode { /// <summary> /// Contains the core info about an availability group, not including any replica data /// sys...
C#
Opserver.Core/Data/SQL/SQLNode.AvailabilityGroups.AGInfo.cs
jeddytier4/Opserver
mit
3,629
85
codeparrot/github-code
7b5110517a6bf8441589b9d263daed9cd48b44b6847ac83a9ca223cae59528ac
// Copyright (c) 2014 Greenheart Games Pty. Ltd. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef SRC_STEAM_ASYNC_WORKER_H_ #define SRC_STEAM_ASYNC_WORKER_H_ #include "nan.h" namespace greenworks { // Extend NanAsyncWorker with custom e...
C
src/steam_async_worker.h
Spacetech/greenworks
mit
1,029
43
codeparrot/github-code
21e1637f3bdde06de05b02c1f187cfba3a2c91eee9d83a985e58b64c107767c9
--- layout: post title: "Iterating over Object properties in JavaScript" date: 2020-04-13 20:00:00 -0700 tags: [JavaScript, Objects] comments: true --- There are several ways to iterate over an object's properties in JavaScript. [Object.entries()][Object.entries()] returns an array of object's own enumerable string-k...
Markdown
_posts/2020-04-13-Iterating over Object properties in JavaScript.markdown
nikhilmopidevi/nikhilmopidevi.github.io
mit
2,505
99
codeparrot/github-code
50f48fbe674429a1684506228d77a2ee53adfb4c70a866d31e94e9f1498f8489
package Parse::Template::ForLoop; use strict; our $VERSION = 0; use Perl::Module; use Error::Logical; use Data::Hub::Util qw(:all); use Error::Logical; # Note that options passed to ce:for persist and are available through the # context loop variable sub new { my $class = ref($_[0]) ? ref(shift) : shift; my $se...
Perl
src/lib/Parse/Template/ForLoop.pm
ryangies/lsn-data-hub
mit
2,288
97
codeparrot/github-code
a11903f39587a8a6fb3dcff7662777dd8edb29a20275aebcf315c87a65afe40f
using System; using System.Runtime.InteropServices; namespace Magnesium.Vulkan { public class MgVkAllocationCallbacks : IMgAllocationCallbacks { private enum VKIntPtrPositions : int { UserData = 0, PfnAllocation, PfnReallocation, PfnFree, PfnInternalAllocation, PfnInternalFree } internal I...
C#
Magnesium.Vulkan/Core/MgVkAllocationCallbacks.cs
tgsstdio/Mg
mit
4,834
214
codeparrot/github-code
fe2f8d0d2443749dfa395e5336840f6d41578401bc87b13e4c21d2e42e01fa80
/// <reference path="../../../typings/index.d.ts" /> import Example from './example'; import ExampleDirective from './example-simple.directive'; 'use strict'; let $module = angular.mock.module; let $inject = angular.mock.inject; let $dump = (arg: any): void => console.log(angular.mock.dump(arg)); describe('# Exampl...
TypeScript
app/components/example/example-simple.directive.spec.ts
fr-esco/angularjs-ts-seed
mit
1,317
43
codeparrot/github-code
0125b30d5031a1e3a800489f900b8e0132a491ecfc9fa4589fcc3336dbb912f3
from flask import Blueprint, render_template, request,flash, redirect, url_for from app.users.models import Users, UsersSchema users = Blueprint('users', __name__) #http://marshmallow.readthedocs.org/en/latest/quickstart.html#declaring-schemas schema = UsersSchema() #Users @users.route('/' ) def user_index(): use...
Python
app/users/views.py
rosterloh/flask
mit
2,771
82
codeparrot/github-code
5ebf84e730c81900e6e499bb8704e9b2efb317a07ff61b3e09d2bf9b4396af10
// Copyright (c) 2009-2012 Bitcoin Developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_interface...
C++
src/rpcdump.cpp
classicsxdx/cbx
mit
2,756
93
codeparrot/github-code
f7cfb4c382f4cd360f18717d37b5ab5c8fd6f4c6cb380c82eac8a2e5b3e1ebc2
package net.gini.android.models; import static net.gini.android.Utils.checkNotNull; import static net.gini.android.internal.BundleHelper.bundleToMap; import static net.gini.android.internal.BundleHelper.mapToBundle; import android.os.Parcel; import android.os.Parcelable; import java.util.ArrayList; import java.util....
Java
ginisdk/src/main/java/net/gini/android/models/ExtractionsContainer.java
gini/gini-sdk-android
mit
3,209
97
codeparrot/github-code
ed4537e2414a9e25b9bbc98ac12c18714d3b8230bfeffe2f145a178f9d350134
var Tccc; (function (Tccc) { var Event = /** @class */ (function () { function Event(serverObj) { this.lastRawDate = null; this.isSaving = false; if (serverObj) { angular.copy(serverObj, this); } } Object.defineProperty(Event.pr...
JavaScript
TwinCitiesCodeCamp/App/Models/Event.js
JudahGabriel/twincitiescodecamp
mit
1,926
52
codeparrot/github-code
0bc92d674c20563f3cf35e79a17121a789f4355dece9f999ff86ec83cde14f93
// ----------------------------------------------------------------------- // Licensed to The .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // ----------------------------------------------------------------------- // This is a generated file. //...
C#
Kerberos.NET/Entities/Krb/KrbAuthorizationDataSequence.generated.cs
SteveSyfuhs/Kerberos.NET
mit
4,733
152
codeparrot/github-code