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 |
|---|---|---|---|---|---|---|---|---|
83a4d0ae4931956d2c65f6e06a587432276008c7d2373f750c88644d21bdd074 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<title>2017 NYPC Final Round 1519 Question 1</title>
<link href="css/image.css" rel="stylesheet">
<style>
.button {
background-c... | HTML | 2017_final_1519_1_q_rep.html | nypcio/nypcio.github.io | mit | 6,672 | 169 | codeparrot/github-code |
340aca095fca1d5e66ba5386b94c78024e07ba873dece9caf7f037c6ccdefa0d | #!/bin/bash
# LGSM install_gslt.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="271215"
# Description: Configures GSLT.
if [ -z "${autoinstall}" ]; then
echo ""
echo "Game Server Login Token"
echo "============================"
sleep 1
if [ "${gamename}" == "Counter Stri... | Shell | functions/install_gslt.sh | Sodierlow/linuxgsm | mit | 1,200 | 42 | codeparrot/github-code |
5300a30ffe1bedada0a3e96776a857ec4913d432c594bebc385d21b10c2b5ab1 | <html>
<head>
<title>
Chief Evader of the Supreme Court
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<tabl... | PHP | web/2005-2/558/558_02_Roberts.php | ISO-tech/sw-d8 | mit | 7,074 | 64 | codeparrot/github-code |
0aae124823d5396c1c934ac169e75cf461e71b268fd34394d1589ba0733490b0 | import { Component, Input, Output, EventEmitter } from '@angular/core';
import { IonOrdersComponent } from "../ion-orders/ion-orders";
/**
* Generated class for the SegmentOrderComponent component.
*
* See https://angular.io/docs/ts/latest/api/core/index/ComponentMetadata-class.html
* for more info on Angular Comp... | TypeScript | src/components/segment-order/segment-order.ts | jigkoh3/greenvintage-biz | mit | 821 | 31 | codeparrot/github-code |
d62de7a719e96a3f5ea7c2783d70d93a41467bbfbdfc82b2d963445f0baf3209 | <?php
namespace IntEServices\Laravelfilemanager\controllers;
use Illuminate\Support\Facades\File;
/**
* Class FolderController
* @package IntEServices\Laravelfilemanager\controllers
*/
class FolderController extends LfmController
{
/**
* Get list of folders as json to populate treeview
*
* @ret... | PHP | src/controllers/FolderController.php | mikkpokk/laravel-filemanager | mit | 1,892 | 70 | codeparrot/github-code |
99aa15737d4ff4e62df8eeb9ccd61de8fea403f23452f4c361a2d4de4ff43382 | package localbitcoins
import (
"bytes"
"errors"
"fmt"
"log"
"net/url"
"strconv"
"time"
"github.com/thrasher-/gocryptotrader/common"
"github.com/thrasher-/gocryptotrader/config"
"github.com/thrasher-/gocryptotrader/exchanges"
)
const (
LOCALBITCOINS_API_URL = "https://localbitcoins.com"
LOCALB... | GO | exchanges/localbitcoins/localbitcoins.go | snipesjr/gocryptotrader | mit | 7,662 | 300 | codeparrot/github-code |
e043d7d6349426ab13744b793fdb76635ecdedf8094eea0a746d9ab023cd8d24 | Template.editContact.viewmodel({
mixin: 'email',
share: ['categories', 'edited'],
onRendered: function() {
var that = this;
if (this._id()) {
this.load( Contacts.findOne(this._id()) );
} else {
this.categoryId( this.selectedCategory() );
}
this.categoriesDropdown.dropdown('set sele... | JavaScript | client/body/main/contacts/editContact/editContact.js | ManuelDeLeon/phonebook | mit | 2,001 | 78 | codeparrot/github-code |
ff3d7c3f32b4324468d2b7f19af449490e13c8958a7b22962d8de7629e68a052 | package com.coko.server.mdk3.resources;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaTyp... | Java | Server/md3_backend/src/main/java/com/coko/server/mdk3/resources/ClientResource.java | denisu08/hackathonmania | mit | 2,944 | 86 | codeparrot/github-code |
e27b8d48f96cadadd16f6aaf003e847b3f2f8e2884ee39cec229ea3f98e503d2 | module.exports = audioBufferToWav
function audioBufferToWav (buffer, opt) {
opt = opt || {}
var numChannels = buffer.numberOfChannels
var sampleRate = buffer.sampleRate
var format = opt.float32 ? 3 : 1
var bitDepth = format === 3 ? 32 : 16
var result
if (numChannels === 2) {
result = interleave(buff... | JavaScript | index.js | Jam3/audiobuffer-to-wav | mit | 2,649 | 95 | codeparrot/github-code |
59a1d9b711f49371efb8d8fadc80183bf6a4828a92c50b0a0457c63596dbda42 | const DrawCard = require('../drawcard.js');
class Reducer extends DrawCard {
constructor(owner, cardData, reduceBy, condition) {
super(owner, cardData);
this.reduceBy = reduceBy;
this.condition = condition;
this.abilityUsed = false;
this.registerEvents(['onBeginRound']);
... | JavaScript | server/game/cards/reducer.js | cavnak/throneteki | mit | 2,558 | 107 | codeparrot/github-code |
4d01b85a6d18443c29b65ff28969dfa01f06ac345be5739216bfd409fb5e1a28 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>NormalizeActionSchemaConfig | ngrx-normalizr</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="styleshe... | HTML | docs/interfaces/_actions_normalize_.normalizeactionschemaconfig.html | michaelkrone/ngrx-normalizr | mit | 15,954 | 298 | codeparrot/github-code |
6afaebfa1f534713297ebb5d4f1831a1c2c37c280f27f0ddd323ed97507f724b | package com.elmakers.mine.bukkit.entity;
import org.bukkit.entity.ArmorStand;
import org.bukkit.entity.Entity;
import org.bukkit.inventory.ItemStack;
import org.bukkit.util.EulerAngle;
public class EntityArmorStandData extends EntityExtraData {
public ItemStack itemInHand;
public ItemStack boots;
public I... | Java | src/main/java/com/elmakers/mine/bukkit/entity/EntityArmorStandData.java | elBukkit/MagicLib | mit | 4,377 | 106 | codeparrot/github-code |
64a1582a87b66ddc243a3748521f7e25a137f4874f81c534ef16790cab92d134 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | HTML | mirror/prvCode_07/cityCode_006-areaCode_01-deptCode_001/voteCode_20120101T1A2-qryType_ctks-prvCode_06-cityCode_006-areaCode_01-deptCode_001-liCode_0011.html | g0v/projectV | mit | 6,766 | 232 | codeparrot/github-code |
fa500d303beffabdc107a824b1e7fba0e7bf671478ce792c87b98dc7bfe6ef74 | Blockly.Blocks['roblockwar_main'] = {
init: function() {
this.setColour(225);
this.appendDummyInput()
.appendField("Robot Code");
this.appendStatementInput("commands")
.setCheck(["roblockwar_gosub",
"roblockwar_fire",
"roblockwar_gosub",
... | JavaScript | Prototype/Blockly/CustomBlocks/MyBlocks/main.js | RoBlockWar/Alpha | mit | 1,247 | 33 | codeparrot/github-code |
58f78367817eb8f2ff04c347d88e71c5d1b44b074ab83a07501cc451891d834f | const ExtractTextPlugin = require('extract-text-webpack-plugin');
const {optimize, HashedModuleIdsPlugin} = require('webpack');
const {resolve} = require('path');
const context = process.cwd();
const extractCSS = type => {
return ExtractTextPlugin.extract({
fallback: type,
use: [
{loader: 'css-loader',... | JavaScript | generators/app/templates/conf/webpack.common.js | shupan123/generator-vue-seed | mit | 1,729 | 80 | codeparrot/github-code |
08ebc347330f214a12dcaf017e9530ce642826b8fd25b12d8a60db23726cb8dd | // this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
Ti.API.info('Starting app !');
// create tab group
var tabGroup = Titanium.UI.createTabGroup({id:'MainPage'});
// TODO(agam): 4 tabs are fixed right now, but in the future, sav... | JavaScript | Resources/app.js | agam/mercurynews | mit | 1,061 | 42 | codeparrot/github-code |
0bfcf4f4d403259a9493e78a29334100f12bc3756e9140f69a6c0803429e6b50 | <?php
namespace Oro\Bundle\ApiBundle\Processor\Shared\JsonApi;
use Oro\Bundle\ApiBundle\Processor\Context;
use Oro\Component\ChainProcessor\ContextInterface;
use Oro\Component\ChainProcessor\ProcessorInterface;
/**
* Sets "application/vnd.api+json" as the value of the response "Content-Type" header
* if this heade... | PHP | src/Oro/Bundle/ApiBundle/Processor/Shared/JsonApi/SetResponseContentType.php | orocrm/platform | mit | 916 | 33 | codeparrot/github-code |
3428de0bf3ae03238ae13e7b0ad0afab0b976252b185ffbcbe642ca1d8c1448c | import * as express from 'express';
import { Response, Request, NextFunction, Application } from 'express';
import * as chai from 'chai';
import { RequestThrottler } from '../request.throttler';
const { expect, request } = chai;
describe('Request Throttler', () => {
describe('Test throttler', () => {
it ('shoul... | TypeScript | src/middlewares/specs/request.throttler.spec.ts | JincorTech/backend-auth | mit | 2,023 | 62 | codeparrot/github-code |
820cdc121717c73aecf26db76d00f412206572759a3c1de64ab2949c5465b989 | /*
* Created on Feb 11, 2005
*
*
*/
package fi.csc.microarray.messaging.message;
import java.time.Instant;
import java.time.format.DateTimeParseException;
import java.util.Date;
import java.util.HashMap;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import org.apache.log4j.Logger;
import fi.csc.mi... | Java | src/main/java/fi/csc/microarray/messaging/message/JobLogMessage.java | chipster/chipster | mit | 7,048 | 280 | codeparrot/github-code |
4fae668aed7042d7542e0fd04f2aed7afd524e8f6aebe723453cd707d240779c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | HTML | clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4.5/contrib:search-trees/8.4.dev/2014-12-12_14-48-39.html | coq-bench/coq-bench.github.io-old | mit | 11,173 | 235 | codeparrot/github-code |
1c2fed93b8c2b19c8ae58e4c5942f0990c95ad77a1694726beb129113f3b1c74 | use std::io;
pub use self::posix::PosixInputHandler;
pub use self::default::DefaultInputHandler;
mod posix;
mod default;
const CMD_PROMPT: &'static str = ">> ";
#[derive(Debug)]
enum Key {
Esc,
Enter,
Tab,
Up,
Down,
Left,
Right,
Home,
End,
Insert,
PgUp,
PgDown,
... | Rust | src/input/mod.rs | opp11/calcr | mit | 637 | 47 | codeparrot/github-code |
ff7d9be42a5b5bd8f3424325320c6f46a30be8288ba874a6e3bbd7207f6e31cd | import merge from 'lodash/merge'
import concat from 'lodash/concat'
import uniqBy from 'lodash/uniqBy'
import {
RECEIVE_CURRENT_USER_PROFILE
} from '../constants/session_constants'
import {
RECEIVE_USER, RECEIVE_MAIN_FEED
} from '../constants/browse_constants'
import {
RECEIVE_FOLLOW, REMOVE_FOLLOW
} from '../co... | JavaScript | nattr/src/scripts/reducers/browse_reducer.js | natotthomer/nattr | mit | 2,294 | 81 | codeparrot/github-code |
8a05ba4a58c46dd46e2b3149714fc9dd7ae4eb0ea76d891d288346c4fd42fa98 | //Vars
var selectedLocationView = 0;
var map = null;
var viewchangeend;
//Attach : Pager
function AttachEventLocationViewsListPager() {
$(document).on("click", "#LocationViewsListPager a[href]", function () {
var loadingpart = LoadDivLoading();
$("#divLocationViewsList").html(loadingpart);
... | JavaScript | DynThings.WebPortal/Assets/Scripts/DynScripts/LocationViews.js | MagedAlNaamani/DynThings | mit | 5,125 | 172 | codeparrot/github-code |
4899b09c5b8ca913b55a004c261c9c438b3e4ded1607210c2a1941b7d9e395de | //jshint esversion: 6
if (!window.AudioContext && !window.webkitAudioContext) {
document.body.classList.add('error');
throw new Error('AudioContext is required; Please try with Chrome or Firefox');
}
import { EventEmitter } from 'events';
const Ps = require('perfect-scrollbar');
const AudioCtx = window.AudioC... | JavaScript | dev/js/main.js | dievardump/bh-sound | mit | 7,670 | 274 | codeparrot/github-code |
751c87b0465a07eadfeee3b1fa6cc99ad5eb76822c13ca19c1205ee6a246b7e3 | using System.ComponentModel;
using System.Text;
using NLog.Common;
using NLog.Config;
using NLog.Layouts;
namespace NLog.Targets.LogIO
{
[Target("LogIO")]
public class LogIOTarget : TargetWithLayout
{
private readonly InternalNetworkTarget _networkTarget;
/// <summary>
/// Gets or... | C# | src/NLog.Targets.LogIO/LogIOTarget.cs | santriseus/NLog.Targets.LogIO | mit | 3,148 | 105 | codeparrot/github-code |
9b9eb981a3a5e9452b88e032cd65a34ebc24080b97f314125f916f5e85dc8cb8 | #include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include <unistd.h>
#include <errno.h>
#include "object.h"
#include "gc.h"
#include "vm/call.h"
#include "vm/runtime.h"
#include "vm/dump.h"
#include "vm/vm.h"
#include "language.h"
#include "util.h"... | C | src/repl.c | FeepingCreature/jerboa | mit | 2,113 | 84 | codeparrot/github-code |
f1d93c96dbd9388f4b89c200a71d3b03f4a25b72416b689ecd79ca8c8f49cc74 | //
// Copyright (c) 2008-2022 the Urho3D project.
//
// 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, m... | C++ | Source/Urho3D/Physics2D/CollisionShape2D.cpp | urho3d/Urho3D | mit | 8,501 | 327 | codeparrot/github-code |
833c089c11a9372c82091231504035e70cdf6ca08edc7c295d510590bee3b72d | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './store/create';
import ApiC... | JavaScript | src/server.js | timrcoulson/react-seed | mit | 3,900 | 123 | codeparrot/github-code |
c5b95f4cdfcde60dbd9844b436e38ae996f9cb04f4cee25d601bda2043312e5a | #pragma once
#include <Zmey/Graphics/Features/UIRenderer.h>
#include <Zmey/Graphics/Backend/CommandList.h>
#include <Zmey/Graphics/Renderer.h>
#include <Zmey/World.h>
#include <Zmey/Components/TransformManager.h>
#include <Zmey/Graphics/Backend/Buffer.h>
#include <Zmey/Graphics/Backend/Device.h>
#include <Zme... | C++ | Source/Zmey/Graphics/Features/UIRenderer.cpp | nikoladimitroff/Zmey | mit | 5,484 | 161 | codeparrot/github-code |
f2fb43b61d3e47562a61055e1413089d3444115b450752469e58b071a5c2f54a | import * as Utility from './Utility.js'
import * as Element from './Element.js'
export var development = Utility.environment() === 'development'
/**
* @param {object} element
* @param {object?} properties
* @param {string} origin
*/
export function types (element, properties, origin) {
if (development) {
dispa... | JavaScript | src/Assert.js | thysultan/dio.js | mit | 1,117 | 46 | codeparrot/github-code |
fee0a2cbf4a63b3be2b4bcbc7b352926fcca575cbafd4b4f8dcb9bcd9b6395a0 | !function() {
// module container
var statistics = {};
statistics.selectPoints = selectPoints;
function selectPoints(points, selection) {
if (!selection) return points;
var selected_points = [];
var score_groupings = {};
score_groupings['Deuce Court'] = ['0-15', '15-0', '15-30', ... | JavaScript | statistics.js | TennisVisuals/mcp-charting-points-parser | mit | 16,381 | 336 | codeparrot/github-code |
e8022764391830defa122d1010f8697aff24ab1b10e071a3a6c51317d16505dc | class UsersController < ApplicationController
before_filter :authenticate_user!, :only => [:watch,:share]
def stream
@thought = Thought.new
if owner?
@thoughts = current_user.stream
else
@thoughts = owner.thoughts.limit(25).order("id desc")
end
end
def follow
current_user.foll... | Ruby | app/controllers/users_controller.rb | hayeah/rere | mit | 718 | 33 | codeparrot/github-code |
d6d0c722e3542905a9a1fc34270b13a5286e8979581c0bb6e9bd417c0209fe03 | package decimal
import (
"encoding/json"
"math"
"strconv"
"strings"
)
// Decimal64p2 is a decimal number implementation based on int64 with 2 digits after point fixed precision
type Decimal64p2 int64
// PRECISION_2 defines fixed precision with 2 digits after point
const (
PRECISION_2 = 2
POINT_PART_2 = 100
)
... | GO | decimal64p2.go | strongo/decimal | mit | 2,973 | 136 | codeparrot/github-code |
2719891a78ceee235138c6bfba4c3fcd4eba09bdee1144fda756e5e3979082fb | /* Task Description */
/*
* Create a module for a Telerik Academy course
* The course has a title and presentations
* Each presentation also has a title
* There is a homework for each presentation
* There is a set of students listed for the course
* Each student has firstname, lastname and an ID
* IDs must be u... | JavaScript | JavaScript OOP/06. Modules and Patterns/homework/tasks/task-1.js | ztodorova/Telerik-Academy | mit | 4,532 | 133 | codeparrot/github-code |
1846130a2da673e81ef601946e0ca42d1af5e525e0b5c0ca0fc73306c50b6444 | #include "Position.h"
#include "SudokuBoard.h"
#include <iostream>
#include <chrono>
using namespace std;
void main(){
auto board = SudokuBoard(new int[RANK * RANK]{
0, 0, 0, 0, 2, 0, 1, 0, 9,
9, 0, 0, 0, 0, 4, 0, 2, 5,
0, 0, 2, 0, 0, 0, 3, 0, 0,
0, 0, 7, 5, 0, 8, 0, 6,... | C++ | c-demo/sudoku/sudoku/main.cpp | plantain-00/demo-set | mit | 928 | 41 | codeparrot/github-code |
de25509986aa6ada099567807a9db2eaa68bb5c3bf7fffb6d0dcd32b4c9ae7ef | // WiFi Event Monitor
#include "module.h"
#include "lauxlib.h"
#include "platform.h"
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include "user_interface.h"
#include "smart/smart.h"
#include "smartconfig.h"
#include "user_config.h"
#include "wifi_common.h"
#if defined(LUA_USE_MODULES_WIFI)
#ifdef ... | C | app/modules/wifi_eventmon.c | TerryE/nodemcu-firmware | mit | 12,709 | 312 | codeparrot/github-code |
621048307e59cb5a4b5657643c95d72e8c8d075b22f1f43f80c9e74fbe2f8ae4 | var request = require('request'),
proxy = false,
urls = [
'http://icanhazip.com/',
'http://ifconfig.me/ip',
'http://whatismyip.org/',
'http://ip.appspot.com/',
'http://ident.me/',
'http://whatismyip.akamai.com/',
'http://tnx.nl/ip',
'http://myip.dnsomatic.com/',
'http://ipecho.net/plain',
];
/**
... | JavaScript | lib/extip.js | pahen/node-extip | mit | 1,515 | 66 | codeparrot/github-code |
531619d4a63db78519c6a94e1f134124d8bb2dc5ae5c28c4339d81e8e096ca8f | package stick
import (
"encoding/json"
"fmt"
"reflect"
"strings"
"go.mongodb.org/mongo-driver/bson"
)
// Coding defines an encoding, decoding and transfer scheme.
type Coding string
// The available coding schemes.
const (
JSON Coding = "json"
BSON Coding = "bson"
)
// Marshal will encode the specified valu... | GO | stick/coding.go | gonfire/fire | mit | 1,919 | 103 | codeparrot/github-code |
c566ae40b1018971177c1da414062e0f7817957f8b58e80c4938b4868c59864b | <!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 Global Open Data Index assesse... | HTML | place/cyprus/land/2014/index.html | okfn/opendataindex-2015 | mit | 8,130 | 180 | codeparrot/github-code |
710714767a086a6bb6237aca603ca2ddeef651d24b926ad56bedc403c2474c4f | #include "httpd.h"
#include "http_config.h"
#include "http_protocol.h"
#include "http_request.h"
#include "http_log.h"
#include "ap_config.h"
#include "apr-1/apr_strings.h"
#include "apreq2/apreq_cookie.h"
#include "apreq2/apreq_error.h"
#include "libmemcached/memcached.h"
#define ERR_MSG_HEAD "MemcSess: "
#define ERR... | C | mod_memc_sess.c | komamitsu/mod_memc_sess | mit | 8,254 | 300 | codeparrot/github-code |
2726759308ad59ca00c3802c14324bc2bfd6342fdc2b430c657a1025228f8af5 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8... | HTML | index.html | natonischuk/task-manager | mit | 1,743 | 61 | codeparrot/github-code |
413357b4b8457dd9a84821bae37ded16a4ad484d74187815f9ee691aa672eec5 | <!DOCTYPE html>
<html lang="fr">
<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 property="og:title" content="Vintage Wings"/>
<meta property="og:type" content="website" />
<m... | PHP | pages/paiement.php | michaeldll/vintage | mit | 12,001 | 287 | codeparrot/github-code |
1add8101bea857e3b29fae8cca3b4f94b1f056f511ba8605d41468c70b66e496 | const express = require('express')
const moment = require('moment')
const router = express.Router()
// Local dependencies
const countries = require('../../../data/location-autocomplete')
/**
* Prototype index
*/
router.all('/', (req, res) => {
req.session.data = {}
res.render(`${__dirname}/views/index`, { isSta... | JavaScript | app/views/prototypes/PYCA-1290/index.js | dwpdigitaltech/hrt-prototype | mit | 31,176 | 1,125 | codeparrot/github-code |
2cd381a368241471caa045927920c4bf87aebae02bd89887ffc55f022c8c9de8 | <?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>actuator.infra.MultiResourceGroup</title>
<link rel="stylesheet" href="epydoc.css" type="te... | HTML | doc/html/actuator.infra.MultiResourceGroup-class.html | haxsaw/actuator | mit | 38,339 | 905 | codeparrot/github-code |
8a0e134701978736ccab3f914276d296590e02c263c067d6bd428166c0fe6f33 | //! `codec` module contains the `Package` (frame) decoding and an `tokio_core::io::Codec`
//! implementation.
use std::io::{self, Read, Write};
use uuid::Uuid;
use byteorder::{ReadBytesExt, WriteBytesExt, LittleEndian};
use tokio_io::codec::{Encoder, Decoder};
use bytes::{BytesMut, BufMut};
use errors::ErrorKind;
use... | Rust | src/codec.rs | koivunej/eventstore-tcp | mit | 11,484 | 324 | codeparrot/github-code |
133051f8d0b8f1c5becdadad6f82aeac2d330f61b546eb9edb5e70e9bb1dafbe | <?php
use Silex\Application;
/****************************************************************************/
/* FLASHBAG Helper */
/* main class wrapping flashbag requests from controller */
/* into "raw" flashbag commands (as an abstraction). */
/*****************************************... | PHP | src/FlashBagManager.php | hmachefe/backend-php-test | mit | 2,485 | 59 | codeparrot/github-code |
3de3ee585d658c99b0ffa6eef047cdf5abfe9581b5a1e882010abb101b586ac2 | <?php
/*
* This file is part of Class Preloader.
*
* (c) Graham Campbell <graham@alt-three.com>
* (c) Michael Dowling <mtdowling@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace ClassPreloader\Console;
use C... | PHP | src/PreCompileCommand.php | seyfer/Console | mit | 5,093 | 152 | codeparrot/github-code |
457133f004f283b1e9c465c0aed9bf21d97218b4033788dc55f8fb35b747800c | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontroldialog.h"
#... | C++ | src/qt/coincontroldialog.cpp | jiyocoin/jiyo-core | mit | 37,931 | 907 | codeparrot/github-code |
ca3f344e61db507e03d680cda9b6fed06c5dadad600b1c22f665bb9990acf293 | /*
* The MIT License
*
* Copyright 2013 Jesse Glick.
*
* 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, mod... | Java | core/src/main/java/jenkins/util/VirtualFile.java | paulmillar/jenkins | mit | 16,609 | 442 | codeparrot/github-code |
4655fb51cff3cc743b0cb836e97a121036aa0f11ebfc36f9a3b237553f1b8d82 | # -----> * Filing * <-----
print("Enter game's name:")
name_file = input("")
name_file_string = str(name_file)
file_name = name_file_string + ".txt"
safile = open(file_name, "w")
safile.write("This game's stats were:\n")
# -----> * INTRODUCTION * <-----
Commands = ''' STAT ------------> COMMAND
Penalt... | Python | text-based/alpha/0.4/0.4.2.py | mangafas/siball-analysis-archive | mit | 33,681 | 844 | codeparrot/github-code |
99d3cb5317f21040ee363929b53397ea6a6c9e1d4628a1ca7038f94461a433cb | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qcert: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.1/qcert/2.1.0.html | coq-bench/coq-bench.github.io | mit | 7,403 | 176 | codeparrot/github-code |
fe787eac416bff6fe4bf091e1f691d8ea6941ba72ae3c82c95c771bd489ebf60 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.identity;
import com.azure.core.annotation.Immutable;
import com.azure.core.credential.AccessToken;
import com.azure.core.credential.TokenCredential;
import com.azure.core.credential.TokenRequestContext;
... | Java | sdk/identity/azure-identity/src/main/java/com/azure/identity/AzureCliCredential.java | selvasingh/azure-sdk-for-java | mit | 1,630 | 41 | codeparrot/github-code |
f78522a89b44032ebb4a9702f69956cb48d1e62e899f9f03e4895d2bfdf954ae | package commands
import (
"fmt"
"log"
"os"
"github.com/Yitsushi/go-commander"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/awserr"
"github.com/aws/aws-sdk-go-v2/aws/external"
"github.com/aws/aws-sdk-go-v2/service/cloudformation"
"github.com/aws/aws-sdk-go-v2/service/codedeploy"
"gith... | GO | furnace-aws/commands/push.go | Skarlso/go-furnace | mit | 6,270 | 214 | codeparrot/github-code |
f56ba39c72ce4ae4457f530c17cd8ecb89695444396afd7b1a4b3ba596f5df11 | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By defau... | PHP | config/session.php | Wiringa-Technische-Groothandel/webshop | mit | 6,774 | 195 | codeparrot/github-code |
c815717b542eeeedea3d9ef59cf37353d1b58f3ef2f20860f12492a5b1fed9dc | /*
p009.c | Problem 9 - Special Pythagorean triplet
Created: Jul 23, 2014
Author: David Perrot
Increment a & b efficiently so all possible variants
are checked once until target number is reached from
secondary equation. The solution makes sure that
non-triples are skipped through float vs. int compari... | C | C/p009.c | dperrot/project-euler | mit | 883 | 36 | codeparrot/github-code |
c57db4a76f806274f6c08a55e999e771b693399cf8a792dc7a728db305062163 | require 'rdbi/driver/rubyfb'
require 'rubyfb'
class RDBI::Driver::Rubyfb::Database < RDBI::Database
##
#
# RDBI.connect(:Rubyfb, :database => db,
# :user => 'SYSDBA',
# :password => 'masterkey')
#
# Connect to the specified database using the s... | Ruby | lib/rdbi/driver/rubyfb/database.rb | RDBI/rdbi-driver-rubyfb | mit | 6,324 | 185 | codeparrot/github-code |
21501bf8698dbc1a9f8ad4df82654704136a4d30a450d51e5c9170a74a34202a | 'use strict';
module.exports = MessageDetailsController;
MessageDetailsController.$inject = ['$log', 'DataService', '$stateParams', '$sce', '$filter', '$state', 'toastr'];
/* @ngInject */
function MessageDetailsController($log, DataService, $stateParams, $sce, $filter, $state, toastr) {
/* jshint validthis: true *... | JavaScript | app/dashboard/messages/MessageDetailsController.js | failpunk/angular-playground | mit | 1,501 | 65 | codeparrot/github-code |
155c5cf60686a4d04a5d03e8f9aa72ad00a1d4fc6d75fe35f828c4d6d3a2ec41 | /**
* Created by Apart-Filipe on 03/05/16.
*/
//
// Main Imports
import React from 'react';
import Constants from '../../Constants';
import classNames from 'classnames';
import BaseComponent from '../../tools/BaseComponent.js';
//
// Stores
//
// Actions
//
// Components
//
// Home class
class Home extends Bas... | JavaScript | src/components/Pages/Home.js | dacostafilipe/react-base | mit | 1,145 | 81 | codeparrot/github-code |
0b53dfb31a6037d33a0160ec9058a2d84e7ccbf1b53ad8500ec439bf195afc9a | var webpack = require('webpack');
var path = require('path');
var pkg = require('./package.json');
var hots = [path.join(__dirname, 'src'), path.join(__dirname, 'demo')];
if (pkg.dependencies)
for (var pack in pkg.dependencies) {
/^react-/.test(pack) && hots.push(path.join(__dirname, 'node_modules', pack));
}
m... | JavaScript | webpack.config.js | LingyuCoder/react-as-datepicker | mit | 1,144 | 47 | codeparrot/github-code |
72dc8c6b04acc1122a92dbe6b77b41d8ec85497b85c89da367acca5df09ffabf | from os.path import dirname
"""
Process MPDatClient responses
"""
def get_files_and_dirs_from_db(items):
"""
Returns (files, directories) from a source with files and directories mixed.
"""
files = []
dirs = []
for item in items:
if "directory" in item:
dirs.append(item["... | Python | mpdat/process.py | laurentb/mpdat | mit | 735 | 36 | codeparrot/github-code |
ce7e986ab08f245e386cc8e30056abe8e021ad6cdeefe205d1378799a36f52a3 | /****************************************************************************
Copyright (c) 2010-2011 cocos2d-x.org
Copyright (c) 2010 Stuart Carnie
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Soft... | C++ | libs/cocos2dx/support/CCProfiling.cpp | DmitriyKirakosyan/testNinjaX | mit | 3,708 | 130 | codeparrot/github-code |
e29d2de2f41a8f7253db7d43720ae69b06d4dcb2805f0557ce5feb82500670c7 | //
// SR_BookClubMarkModel.h
// scanreader
//
// Created by jbmac01 on 16/8/17.
// Copyright © 2016年 jb. All rights reserved.
//
#import "SR_BaseModel.h"
#import <YYKit/YYKit.h>
@interface SR_BookClubNoteResourceModel : NSObject
@property(nonatomic,copy)NSString * resource_id;
@property(nonatomic,copy)NSString * p... | C | scanreader/Application/SR_Found/SR_FoundMain/SR_BookClubBookNoteModel.h | zhaiyjgithub/scanreader | mit | 1,871 | 55 | codeparrot/github-code |
594cc194c23261675a4c00e9ae96a7260b022a1cefff55fffbc5caf8fc0cf842 | <?php
/**
* Created by PhpStorm.
* User: kasia
* Date: 15.08.17
* Time: 21:54
*/
/**
* TrainingController.
*
*/
namespace Controller;
use Form\DeleteTrainingDayType;
use Form\TrainingDayType;
use Repository\TrainingDayRepository;
use Repository\TrainingRepository;
use Repository\UserRepository;
use Silex\App... | PHP | src/Controller/TrainingDayController.php | KatOkonska/SI | mit | 7,796 | 272 | codeparrot/github-code |
81d136bc4b745f491c1790077addf6a50cad355b210076d36718d81147f9e455 | <?php
namespace OT\BackendBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class AdminController extends Controller
{
public function dashboardAction()
{
return $this->render('OTBackendBundle:Admin:dashboard.html.twig', array(
// ...
));
... | PHP | src/OT/BackendBundle/Controller/AdminController.php | betaver/onlinetutor | mit | 2,473 | 70 | codeparrot/github-code |
2d8a38eefd437840d8415ba084ce3b09008b39f5c776d36456fb606e618da791 | "use strict";
var _ = require('underscore');
var Backbone = require('backbone');
var backboneUrlResolver = require('backbone-url-resolver');
var defaultContextModel = require('./default-context-model');
var debug = require('debug-proxy')('grc:live-collection');
var backboneStateTracking = require('./backbone-state-tra... | JavaScript | lib/live-collection.js | gitterHQ/realtime-client | mit | 10,054 | 334 | codeparrot/github-code |
efd4f70d9eb7676344552aac2855b4e98db179302da801d367b4f9efa41da933 | /**
* Created by hender on 11/02/16.
*/
(function(){
'use strict';
/**
* @ngdoc function
* @name SolucionesCucutaApp.controller:AdminCtrl
* @description
* # AdminCtrl
* Controller of the SolucionesCucutaApp
*/
angular.module('SolucionesCucutaApp')
.controller('Admin... | JavaScript | assets/js/controllers/admin.js | HenderOrlando/whathelol | mit | 10,542 | 334 | codeparrot/github-code |
25f09fb606d41e4e65829d4609b81c465da90146757b013ea22ade5976966ee5 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using System;
namespace Stratus
{
public enum StratusPlayerInputActionMap
{
Player,
UI
}
public enum StratusInputScheme
{
Unknown,
KeyboardMouse,
DualShock,
Xbox
}
public interface IStrat... | C# | Core/Source/Input/StratusPlayerInput.cs | Azurelol/StratusFramework | mit | 8,877 | 332 | codeparrot/github-code |
03d44c355e5888baa0d0ed1d291f3188088fc94fc0e1316cdd858a361bd12112 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-ssreflect: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootst... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.0/mathcomp-ssreflect/1.6.html | coq-bench/coq-bench.github.io | mit | 7,960 | 172 | codeparrot/github-code |
6e4b1fb83eb36da8ff58e9cabe0a4570bded75b954420b576e2f7f2a406646fd | // Type definitions for Bootstrap 3.3.5
// Project: http://twitter.github.com/bootstrap/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface ModalOptions {
backdrop?: boolean|s... | TypeScript | RPNETForum/Scripts/typings/bootstrap/index.d.ts | NimbusFox/RPNETForum | mit | 2,934 | 131 | codeparrot/github-code |
8d1a14da05e116e95b9d3fedc4358d1de0b2281de95b2a89d69689ea53db386e | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | C++ | src/bitcoinrpc.cpp | hirishh/BorzoCoin | mit | 46,290 | 1,293 | codeparrot/github-code |
f3c84778016ec089c5b00eaed91524099767834d974227ae795b3be3c757c804 | <?php
/*
|--------------------------------------------------------------------------
| Dais
|--------------------------------------------------------------------------
|
| This file is part of the Dais Framework package.
|
| (c) Vince Kronlein <vince@dais.io>
|
| For the full copyright and license information, p... | PHP | app/models/front/shipping/weight.php | maniargaurav/dais | mit | 3,316 | 93 | codeparrot/github-code |
03b124e7a852fd56f1c95b86e1e020c08e5fa23ff45b53fc2c0ddf60f52ca7ad | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__author__ = 'ghost'
import tornado.web
from app import router
from app.helper import BaseAuthHandler
from app.models.auth import User
@router.Route('/auth/login')
class AuthLoginHandler(BaseAuthHandler):
def get(self, *args, **kwargs):
html = ('<form meth... | Python | tornapro/tiger/app/views/auth.py | rsj217/tornado--scaffold | mit | 1,227 | 48 | codeparrot/github-code |
127ae4ee976e74b0d55624a879a73288a90cf76e08d03115d27a0c956f80f9aa | var Sequelize = require('sequelize');
var Types = require('../types');
class MySQLAdapter {
constructor(dbConfig) {
this.dbConfig = dbConfig;
let connectionString = 'mysql://';
if (this.dbConfig.username && this.dbConfig.password) {
connectionString += this.dbConfig.username +... | JavaScript | lib/adapters/mysql.js | jgbernalp/turtle-orm | mit | 2,683 | 127 | codeparrot/github-code |
8ba6f3a4993180ca6493c12eea8fd3703a478b6e00b9e72c4d6efb3cb71eeca9 | // This example is from _Java Examples in a Nutshell_. (http://www.oreilly.com)
// Copyright (c) 1997 by David Flanagan
// This example is provided WITHOUT ANY WARRANTY either expressed or implied.
// You may study, use, modify, and distribute it for non-commercial purposes.
// For any commercial use, see http://www.da... | Java | test/Java Examples in a Nutshell/1st Edition/MakeAPIDB.java | shashanksingh28/code-similarity | mit | 8,161 | 173 | codeparrot/github-code |
fe9112a4afdd3b02b454f0cc603d69f1bf97a8dc3122336505c8db0ae3efa598 | /**
* Created by Norman on 11/14/13.
*/
var UserSchema = require('../schemas/users');
var EmailDispatcher = require('../modules/email-dispatcher');
var helper = require('../modules/helper');
var validator = require('validator');
var passport = require('../../server/modules/auth');
// todo change to function(err, re... | JavaScript | server/api/user-api.js | fs-opensource/nodejs-account-boilerplate | mit | 8,645 | 292 | codeparrot/github-code |
b3ef4d8b28ced94021f8a5ce2062470a7f6a57ef1c3463559b7dc99cab21302b | package com.zimbra.qa.selenium.projects.desktop.ui.briefcase;
import com.zimbra.qa.selenium.framework.items.DocumentItem;
import com.zimbra.qa.selenium.framework.items.IItem;
import com.zimbra.qa.selenium.framework.ui.AbsApplication;
import com.zimbra.qa.selenium.framework.ui.AbsForm;
import com.zimbra.qa.selenium.fra... | Java | ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/desktop/ui/briefcase/DocumentBriefcaseEdit.java | nico01f/z-pec | mit | 3,925 | 120 | codeparrot/github-code |
a28c42142527244598072ece5dd580dc0520df4cbe38162d15de56f802ca0e4a | import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
isDisabled: React.PropTypes.bool, // the option is disabled
isFocus... | JavaScript | src/Option.js | alanrubin/react-select | mit | 2,055 | 68 | codeparrot/github-code |
14dd163e16ce5d754f3ad1f28e486f3802eb663056031c93222e71c51a34dfb7 | <!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import Amamations-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<!--Import materiali... | HTML | index.html | Silicon-Central/AppleBetas | mit | 9,928 | 236 | codeparrot/github-code |
c8b0f195432139e0e2462fc415f6ea0ea23373868de6af0bd26b5b69ac404cc6 | #ifndef SAYA_IKA_GENERATOR_HPP
#define SAYA_IKA_GENERATOR_HPP
#include "saya/logger/logger_env.hpp"
#include <string>
#include <memory>
namespace saya { namespace ika {
class generator
{
public:
using buf_type = std::string;
explicit generator(saya::logger_env l_env);
~generator() = default;
gene... | C++ | include/saya/ika/generator.hpp | saya-io/saya | mit | 634 | 36 | codeparrot/github-code |
7c09cb2a51ceed68ee7c91bb4acf2e4f2a504bfb423783a50f2173fff21dc694 | package com.desha.Beans;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Id;
import java.io.Serializable;
/**
* Created by Viktor on 2/27/2017.
*/
@Embeddable
public class OrderKey implements Serializable
{
@Id
private int num;
@Id
@Column(name="... | Java | src/main/java/com/desha/Beans/OrderKey.java | dejanribic/ISA2016_Restoran | mit | 1,258 | 75 | codeparrot/github-code |
d3e50ae0820bc22e76686de56b9f209a96efda3c92388cba49c4e9fc1cea0058 | <?php namespace GoCardless\Pro;
use GoCardless\Pro\Exceptions\AuthenticationException;
use GoCardless\Pro\Exceptions\InvalidDocumentStructureException;
use GoCardless\Pro\Exceptions\InvalidStateException;
use GoCardless\Pro\Exceptions\ResourceNotFoundException;
use GoCardless\Pro\Exceptions\ValidationException;
use Go... | PHP | src/Api.php | fyfey/gocardless-pro | mit | 19,875 | 731 | codeparrot/github-code |
57089af8dda1b76fd1bcb6132bb906f0f6d5af5b2f26ce4d87afe80af6432028 | <html lang="en">
<head>
<title>@code{GIMPLE_CALL} - GNU Compiler Collection (GCC) Internals</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Compiler Collection (GCC) Internals">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.h... | HTML | toolchain/gcc-arm-none-eabi-4_6-2012q2/share/doc/html/gccint/_003ccode_003eGIMPLE_005fCALL_003c_002fcode_003e.html | sahdman/rpi_android_kernel | mit | 11,098 | 201 | codeparrot/github-code |
ff1caaaaf53b75d95c37b6b2db94cffc2eb10059b2151fe918d8a21d08907720 | package alec_wam.CrystalMod.util.tool;
import java.util.List;
import com.google.common.collect.Lists;
import alec_wam.CrystalMod.util.ItemStackTools;
import alec_wam.CrystalMod.util.ItemUtil;
import alec_wam.CrystalMod.util.fakeplayer.FakePlayerUtil;
import net.minecraft.block.Block;
import net.minecraft.b... | Java | src/main/java/alec_wam/CrystalMod/util/tool/TreeUtil.java | Alec-WAM/CrystalMod | mit | 2,889 | 77 | codeparrot/github-code |
524962f7eb360194bb6708c0e18cefb0604ae1196b3b23963e153ec448426a80 | /**
* Copyright (c) 2015-2018, CJ Hare All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions
* a... | Java | systematic-trading-backtest-output-file/src/main/java/com/systematic/trading/backtest/output/file/MinimalFileOutputService.java | CjHare/systematic-trading | mit | 4,903 | 121 | codeparrot/github-code |
3811c64c92c297a149bd70d5233a891ac8861f3da9934dacffd11ae1494af543 | /**
* @author Krzysztof Winiarski
* @copyright (c) 2014 Krzysztof Winiarski
* @license MIT
*/
'use strict';
var ResourceAction = require('./action')
, RequestError = require('../errors').RequestError
, resourceActionBlueprint = require('./action-blueprint')
, support = require('../support')
, router = req... | JavaScript | lib/resource/index.js | kwiniarski/spiral | mit | 4,870 | 189 | codeparrot/github-code |
779b5d09224a3e62281278e13075b37ddab0ca5903ad70f48cfa2ea427b0a971 | using System;
using System.Diagnostics;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Microsoft.Runtime.CompilerServices;
namespace BinaryVibrance.TAPFacade
{
internal class CommonTypes
{
public CommonTypes(Type taskType)
{
T... | C# | BinaryVibrance.TAPFacade/CommonTypes.cs | AtomicBlom/TAPFacade | mit | 3,503 | 93 | codeparrot/github-code |
942a2268bc5ca6a3d296f52d2ed06043acca9a450e338748fa67319fe9817bd7 | <?php
/**
* Created by PhpStorm.
* User: User
* Date: 11/27/2015
* Time: 4:34 PM
*/
namespace albaraam\push\services;
use albaraam\gcmapns\Client;
use albaraam\gcmapns\Message;
use albaraam\push\models\PushChannel;
use albaraam\push\models\PushSubscription;
use albaraam\push\models\PushUser;
use albaraam\push\I... | PHP | services/BasicService.php | albaraam/yii2-push | mit | 4,804 | 178 | codeparrot/github-code |
45728a1dd34acc9059256f1de5c7528bf3c73178d16e2df025013e4af49d6bb0 | package com.voodoodyne.postguice.dbcp;
import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.dbcp.ConnectionFactory;
import org.apache.commons.dbcp.DriverManagerConnectionFactory;
import org.apache.commons.dbcp.PoolableConnectionFactory;
import org.apache.commons.dbcp.... | Java | postguice/src/main/java/com/voodoodyne/postguice/dbcp/DBCPConnectionProvider.java | stickfigure/postguice | mit | 5,487 | 171 | codeparrot/github-code |
7b4a53bcc91ccbb39ac69ec19c2a9d23a2909019953300cd3f1c67fdc9996b4c | #!/bin/bash
ver="10.00"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # get cur dir of this script
progName=$(basename -- "$0")
cd $DIR
echo "$progName $ver written by Claude Pageau"
: '
If lockCheckFile=True then script checks pi-timolo.sync file exists
Otherwise no sync is attempted. This can be useful... | Shell | source/rclone-samples/rclone-mo-sync-lockfile.sh | pageauc/pi-timolo | mit | 4,357 | 102 | codeparrot/github-code |
c10bed05ebaca909ca135d739ccdb854b2ba07d98dc4e601cef70683627e64e7 | package net.techmastary.plugins.freezemod;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.player.PlayerMoveEvent;
public class FreezeListener implements Listener {
@EventHandler
public... | Java | src/net/techmastary/plugins/freezemod/FreezeListener.java | hkminegod/FreezeMod | mit | 1,181 | 42 | codeparrot/github-code |
4b9c396d2464ff632792c3751865dcb7dcb635085fe5453f53f72381da4b897a | 'use strict';
var util = require('util')
,path = require('path')
,yeoman = require('yeoman-generator')
,BeeweeGenerator;
BeeweeGenerator = module.exports = function BeeweeGenerator(args, options, config) {
yeoman.generators.Base.apply(this, arguments);
this.testFramework = options['test-framework'] || 'm... | JavaScript | app/index.js | bwasilewski/generator-beewee | mit | 3,318 | 135 | codeparrot/github-code |
200c5e7a5c9ea4ccb3ef712da6838b024b4a75cd1658011943d224d55f4b0e75 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
selectCollectionFile,
updateFile,
deleteFile,
addNewFile,
replaceFile,
updatingEditor
} from '../actions/editorActions';
import { toRoute } from '../actions/routeActions';
i... | JavaScript | client/src/components/Editor.js | Wiredcraft/jekyllpro-cms | mit | 2,384 | 100 | codeparrot/github-code |
dfc65053af5a161c0616ef1394ab138468035a69c29cba12dfd6d414f1c703bb | """
Algorithm that finds kth to last element in a singly linked list
"""
from linkedlist import LinkedList
def findKelementh(list, k):
"""
:param list:
:type list: LinkedList
:param k:
:type k: int
:return:
"""
i = 0
node = list.head
kth_node = None
while node is not None:... | Python | Cracking the Coding Interview/Linked_Lists/question2.py | MFry/pyAlgoDataStructures | mit | 941 | 43 | codeparrot/github-code |
df95efaaca38dbf23e7832c4c0640c4d0693487972e84635fa1b60422bad61ac | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Create.js Dokumentation | Bitmap... | HTML | doku/bitmap/clone.html | INSY5BI/INSY5BI.github.io | mit | 7,027 | 206 | codeparrot/github-code |
4107a94a418b18040a120733186bbc645f2ead7febd1c6d7f722a28f48c626b9 | <?php
/**
* Phossa Project
*
* PHP version 5.4
*
* @category Library
* @package Phossa\Route
* @author Hong Zhang <phossa@126.com>
* @copyright 2015 phossa.com
* @license http://mit-license.org/ MIT License
* @link http://www.phossa.com/
*/
/*# declare(strict_types=1); */
namespace Phossa\Route... | PHP | src/Phossa/Route/Dispatcher.php | phossa/phossa-route | mit | 7,692 | 306 | codeparrot/github-code |
2e206974b9e8d920c7c91179dbfaadf131828d2a7c1024568960a5ad58205764 | # Tweepy
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.
from __future__ import absolute_import, print_function
from tweepy.utils import parse_datetime, parse_html_value, parse_a_href
class ResultSet(list):
"""A list like object that holds results from a Twitter API query."""
def __init__(... | Python | tweepy/models.py | LikeABird/tweepy | mit | 14,292 | 500 | codeparrot/github-code |
61d1c242037e2dbf75791e60ad88d5dc4b1618d045cc2b121691574f4263a6cd | /**
* The MIT License
* Copyright © 2017 Kadcontrade
*
* 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 | ktapi-smartCache/src/main/java/de/_125m125/kt/ktapi/smartcache/caches/ReplaceOrPrependCacheData.java | 125m125/ktapi-java | mit | 2,247 | 59 | codeparrot/github-code |
5196bd9ced10034024f127dcd830381fc9991b81962d40728588cd16f6bc778f | // Copyright (c) 2014-2017 The Vivo Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef GOVERNANCE_VOTEDB_H
#define GOVERNANCE_VOTEDB_H
#include <list>
#include <map>
#include "governance-vote.h"
#inclu... | C | src/governance-votedb.h | vivocoin/vivo | mit | 2,269 | 94 | codeparrot/github-code |
3e798dc9ab6c15074049005e25b99f00af051d7b37a09c826b641cf4a529864b | // --------------------------------------------------------------------------------------------------------------------
// <copyright file="HtmlArea.cs" company="">
//
// </copyright>
// <summary>
// The html div.
// </summary>
// ----------------------------------------------------------------------------... | C# | UX.Testing.Core/Controls/HtmlArea.cs | athlete1/UXTestingFrameworks | mit | 2,961 | 181 | codeparrot/github-code |
90e1ac0b346aad80cd81b18256a903f505dc6ae50ea3580a5c3f266a177e0030 | 'use strict';
module.exports = function (babel) {
var t = babel.types;
global.babelPluginExposeGlobalNamespace = {};
var globalNamespace;
/**
* @param {{context: Object, declaration: Object}} params
* @constructor
*/
function ExportManager(params) {
this.declaration = params... | JavaScript | index.js | szarouski/babel-plugin-expose | mit | 6,506 | 177 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.