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
6bfe2a9f409c7329a8b94521eece35942052c87b08f613be4f69cf75dce8f6d0
// make a linked list that has one member // then make 5 nodes - with each node having 1,2,3,4,5 as data // then print them out // then work out how to reverse the list by only changing the pointers // then print again #include <stdio.h> #include <stdlib.h> // Including this header to use malloc struct node { int n...
C
c-exercises/structs/linked-list.c
vinithanatarajan/Vini-training
mit
1,014
60
codeparrot/github-code
39af8a9887f5b3f4a7d1f8a51c0981ead00e10aa1905c955c7f3aa7cca591e3e
#pragma once #include <rikitiki/http/content_types.h> #include <vector> #include <map> #include <array> #include <mxcomp/reflection.h> #ifdef _MSC_VER #define constexpr #endif namespace rikitiki { class ConnContext; struct Response; template <typename T> struct ContentHandler_ { static...
C
include/rikitiki/content_handler.h
jdavidberger/rikitiki
mit
3,280
105
codeparrot/github-code
b7a44d74d869080e75d6c0f66afdceecb33514f2c27e9300d3ada4b086f76b15
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using Office = Microsoft.Office.Core; // TODO: Follow these steps to enable the Ribbon (XML) item: // 1: Copy the following code block into the ThisAd...
C#
BadgerAddin2010/Ribbon.cs
dchanko/Badger
mit
2,792
87
codeparrot/github-code
c4b9127729e7c894b8f4e7fb644c0866bea5c6321199572c39a0da452b2d8fc2
using System.Web.Mvc; using Microsoft.Practices.Unity; using Unity.Mvc4; namespace MVCForum.IOC { public static class Bootstrapper { public static IUnityContainer Initialise() { var container = BuildUnityContainer(); DependencyResolver.SetResolver(new UnityDependencyResolver(container)); ...
C#
MVCForum.IOC/Bootstrapper.cs
unclefrost/extrem.web
mit
797
36
codeparrot/github-code
474bcbb41531f38b8b6cd29c697eeee2fd1314cdef9595bc32155ba3285cae01
{% extends "content_template.html" %} {% from "components/page-header.html" import page_header %} {% from "components/copy-to-clipboard.html" import copy_to_clipboard %} {% block per_page_title %} Billing details {% endblock %} {% block content_column_content %} {{ page_header('Billing details') }} <p cl...
HTML
app/templates/views/pricing/billing-details.html
alphagov/notifications-admin
mit
3,317
139
codeparrot/github-code
8ff5e228e425ace22f8dcb984128f7a39ddca43fe95c242066a2814c6f469a2a
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InTheHand.Net; using InTheHand.Net.Sockets; using InTheHand.Net.Bluetooth; namespace NXTLib { public static class Utils { public static string AddressByte2String(byte[] address, bool withcolons) { ...
C#
nxtlib/src/Utils.cs
smo-key/NXTLib
mit
1,875
63
codeparrot/github-code
50dadbbd4ad1a47f5d5d7b9a9f61d54ae32227226b5f719db74657e99e00cd37
<?php /** * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace Clash82\EzPlatformStudioTipsBlockBundle\Installer; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\I...
PHP
bundle/Installer/ContentTypeInstaller.php
omniproject/ezstudio-tips-block
mit
5,989
164
codeparrot/github-code
2ce9acf459dca12989cb534a998e624d6a43f14439bce497e595a8d24fc80172
# frankie - a plugin for sinatra that integrates with the facebooker gem # # written by Ron Evans (http://www.deadprogrammersociety.com) # # based on merb_facebooker (http://github.com/vanpelt/merb_facebooker) # and the Rails classes in Facebooker (http://facebooker.rubyforge.org/) from Mike Mangino, Shane Vitarana, &...
Ruby
lib/frankie.rb
jsmestad/frankie
mit
6,584
196
codeparrot/github-code
89f0117967f5e598def19a5cae16d7a7e32bcfcecdb3fa77391a88d36777897b
package tutorialHorizon.arrays; /** * Created by archithrapaka on 7/4/17. */ public class InsertionSort { public static void insertionSort(int[] items, int n) { int i, j; for (i = 1; i < n; i++) { j = i; while (j > 0 && (items[j] < items[j - 1])) { swap(i...
Java
algorithms/src/main/java/tutorialHorizon/arrays/InsertionSort.java
arapaka/algorithms-datastructures
mit
813
39
codeparrot/github-code
a2ff9b0d53a246a521f258658784c120e13a0e0f50162880b21e46818d671f87
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/tools/qdbus/src/qdbusabstractadaptor.cpp --> <he...
HTML
webserver/html/qdbusabstractadaptor-members.html
misizeji/StudyNote_201308
mit
7,196
77
codeparrot/github-code
e73df31fed30f4f0ba42d90df293d3408318cfce945c6c587cc1720680236e81
var fs = require('fs') var d3 = require('d3') var request = require('request') var cheerio = require('cheerio') var queue = require('queue-async') var _ = require('underscore') var glob = require("glob") var games = [] glob.sync(__dirname + "/raw-series/*").forEach(scrape) function scrape(dir, i){ var series = d...
JavaScript
final-games/downloadGames.js
1wheel/scraping
mit
1,383
55
codeparrot/github-code
74f5bb67b254700e9596ac2ba4f4fd7d85ea75c20f43a1262e39c8da87c49428
import { strictEqual } from 'assert'; import { Config, HttpResponse, HttpResponseOK } from '../core'; import { SESSION_DEFAULT_COOKIE_HTTP_ONLY, SESSION_DEFAULT_COOKIE_NAME, SESSION_DEFAULT_COOKIE_PATH, SESSION_DEFAULT_CSRF_COOKIE_NAME, SESSION_DEFAULT_SAME_SITE_ON_CSRF_ENABLED, SESSION_USER_COOKIE_NAME, } ...
TypeScript
packages/core/src/sessions/remove-session-cookie.spec.ts
FoalTS/foal
mit
14,339
398
codeparrot/github-code
eeec9542a139e4432fa26ad14fb31114d2facd42b39b8dfa1824b1a603521b28
<?php class Neostrada { const API_HOST = 'https://api.neostrada.nl/'; private $_key; private $_secret; public function __construct($key, $secret) { $this->_key = $key; $this->_secret = $secret; } public function domain($domain) { return new Neostrada_Domain($this, $domain); } public function save(N...
PHP
src/Neostrada.php
justim/neostrada-api-client
mit
2,315
109
codeparrot/github-code
04cac87bdd6176acce31c28af4ee107868e9d063914fbba594811fbbb40d2160
module Fae module BaseModelConcern extend ActiveSupport::Concern require 'csv' attr_accessor :filter included do include Fae::Trackable if Fae.track_changes include Fae::Sortable end def fae_display_field # override this method in your model end def fae_nested_par...
Ruby
app/models/concerns/fae/base_model_concern.rb
wearefine/fae
mit
2,926
115
codeparrot/github-code
f0c8145caeadc611dd2e6b2b4421ef1b4099e845531ff19f04edea7415629322
#pragma once #include <boost/uuid/random_generator.hpp> #include <boost/uuid/uuid_io.hpp> #include "util/util.h" #include "util/stl_ext.h" namespace collections { extern boost::optional<std::vector<std::string>> wrap_string(const char *csource, int charsPerLine); class tes_string : public reflection::class_m...
C
JContainers/src/api_3/tes_string.h
SilverIce/JContainers
mit
4,325
123
codeparrot/github-code
33833df04c98333b85ef12dff5d5e2b2d19a54ccc556223e1744acd4963f6200
\chapter{Constanten} \section{Globale Constanten} Dikwijls gebruik je bepaalde waarden doorheen je hele programma. Zo zou je, in een programma dat veel berekeningen met circels moet doen, vaak het getal pi nodig hebben. Dat getal kan je elke keer opnieuw berekenen, maar dat is niet zo'n goed idee omdat de uitkomst van ...
TeX
course/nl/basics/constants.tex
yvanvds/EsenthelCourse
mit
5,959
92
codeparrot/github-code
1f156d12e9807ea70a675acbb94712427a15e29ff2e2d7951391be63647684d2
// // #ifndef _Rectangle_h #define _Rectangle_h // Includes #include <Engine/Core/Shape.h> #include <Engine/Core/Vector.h> //============================================================================== namespace ptc { class Ray; class Rectangle : public Shape { public: Rectangle(); Rectangle( const Vector&...
C
Engine/Shapes/Rectangle.h
asplendidday/ptchan
mit
785
49
codeparrot/github-code
982fa21da84bf6d2dbb74fd2fc3d77edd36536f306fe27dbfc23513db53705ca
// Copyright (c) 2012 Pieter Wuille // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addrman.h" #include "hash.h" #include "serialize.h" #include "streams.h" int CAddrInfo::GetTriedBucket(const uint256& nKey) const { ...
C++
src/addrman.cpp
BlockchainTechLLC/3dcoin
mit
15,655
500
codeparrot/github-code
6ee31b282bb2b67d41b130ea8873fe355b76b2182d02e34c18601b82d5453377
import asyncio import discord import datetime import pytz from discord.ext import commands from Cogs import FuzzySearch from Cogs import Settings from Cogs import DisplayName from Cogs import Message from Cogs import Nullify class Time: # Init with the bot reference, and a reference to the s...
Python
Cogs/Time.py
TheMasterGhost/CorpBot
mit
8,457
262
codeparrot/github-code
e3e34ae8967728ccc902968df211627981a5765fe6af901508bb99b4c72327c0
<!DOCTYPE html> <?xml version="1.0" encoding="UTF-8"?> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Earth Negotiations Bulletin: COP17</title> <link href="../assets/style/bulletin.css" rel="stylesheet" /> </head> <body> <h1>Earth Negotiations...
HTML
ENB-data/enb_pages/enb12523e.html
medialab/climateDebateExplorer
mit
11,862
103
codeparrot/github-code
f2cfa8a4ee123e3c2e4a0b053766b90ce0ba7be0f411ab52f0cdb4f373256578
/* * @param parseObject [ParseObject] * @return [Object] * */ export const convertBrand = (parseObject) => { const ret = {}; const object = parseObject.toJSON(); ret.id = object.objectId; ret.name = object.name; ret.description = object.description; ret.images = (object.images || []).map(image => ({ id:...
JavaScript
src/utils.js
ihenvyr/react-parse
mit
934
38
codeparrot/github-code
c5e97774da892863116b7a47c136724650d41cd80e9ca35e5a1413a2d2126ca8
<?php namespace Dvsa\Mot\Frontend\SecurityCardModule\CardOrder\Controller; use Core\Controller\AbstractDvsaActionController; use Dvsa\Mot\Frontend\AuthenticationModule\Model\Identity; use Dvsa\Mot\Frontend\SecurityCardModule\CardOrder\Service\OrderNewSecurityCardSessionService; use DvsaCommon\Constants\FeatureToggle;...
PHP
mot-web-frontend/module/SecurityCardModule/src/CardOrder/Controller/CardOrderConfirmationController.php
dvsa/mot
mit
2,570
88
codeparrot/github-code
b0191800620a520bf04062ba76f47c134b2206a5429f3c617bdf6d72d9a62b16
/* SaveFileController * * Version 1.0 * * November 13, 2017 * * Copyright (c) 2017 Cup Of Java. All rights reserved. */ package com.cmput301f17t11.cupofjava.Controllers; import android.content.Context; import com.cmput301f17t11.cupofjava.Models.Habit; import com.cmput301f17t11.cupofjava.Models.HabitEvent; imp...
Java
app/src/main/java/com/cmput301f17t11/cupofjava/Controllers/SaveFileController.java
CMPUT301F17T11/CupOfJava
mit
8,104
258
codeparrot/github-code
ad91380da50b19e4915d70dd4a9556efb7ebdb9f138d57921f77f77f3d10c585
<?php namespace BoomCMS\Settings; use BoomCMS\Support\Facades\Settings; use Illuminate\Support\Facades\Config; use Illuminate\Support\Facades\Lang; abstract class Manager { public static function options() { $options = []; foreach (Config::get('boomcms.settingsManagerOptions') as $name => $t...
PHP
src/BoomCMS/Settings/Manager.php
boomcms/boom-core
mit
907
36
codeparrot/github-code
286282ab5dc4493203361a2b5dd9dc5ecd9c288ef4beae64b78b249625c32605
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Progress 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 contr...
PHP
application/controllers/Progress.php
primasalama/simoniks2
mit
6,302
163
codeparrot/github-code
3524b02a5d6c4d030952df74199262a1a8f99bff974b6ef982e8f07f30c99b96
import { expect } from 'chai'; import buildUriTemplate from '../src/uri-template'; describe('URI Template Handler', () => { context('when there are path object parameters', () => { context('when the path object parameters are not query parameters', () => { const basePath = '/api'; const href = '/pet...
JavaScript
test/uri-template.js
apiaryio/fury-adapter-swagger
mit
7,065
241
codeparrot/github-code
c83f882cf725a6b5896620ad5d05c0fe15125f9b260ba81bfdc36940ccc27ff0
package doit.study.droid.fragments; import android.app.Activity; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; import android.support.v7.app.AlertDialog; i...
Java
app/src/main/java/doit/study/droid/fragments/DislikeDialogFragment.java
JaeW/dodroid
mit
3,105
75
codeparrot/github-code
cd4c6633432b4566a335ee81e64a228e073fb46819d6df897497f5c670bfd817
<?php namespace Zycon42\Security\Application; use Nette; use Nette\Application\Request; use Nette\Reflection\ClassType; use Nette\Reflection\Method; use Symfony\Component\ExpressionLanguage\Expression; class PresenterRequirementsChecker extends Nette\Object { /** * @var ExpressionEvaluator */ priv...
PHP
lib/Zycon42/Security/Application/PresenterRequirementsChecker.php
Zycon42/Security
mit
2,781
86
codeparrot/github-code
cad27c2c2719c39cc53aa0fa9be2ae108d76e3b9ce8ff43e25dae846ec49d7bd
#region References using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; using Speedy; #endregion namespace Scribe.Data.Entities { public class Page : ModifiableEntity { #region Constructors [SuppressMessage("ReSharper", "VirtualMemberCallInContructor"...
C#
Scribe.Data/Entities/Page.cs
BobbyCannon/Scribe
mit
887
43
codeparrot/github-code
2bc9769d854d6183326698ec192ea58bbdc40cb8254a2a2ff13c9a47a60e4fa7
#!/usr/bin/bash # Hard variables # Directory containing Snakemake and cluster.json files snakefile_dir='/nas/longleaf/home/sfrenk/pipelines/snakemake' usage="\nCreate directory with Snakemake files required for pipeline \n\n setup_dir -p <pipeline> -d <directory> \n\n pipelines: bowtie_srna, hisat2_rna, srna_telo\n\...
Shell
utils/setup_dir.sh
sfrenk/rna-seq_pipelines
mit
2,550
98
codeparrot/github-code
907ed55de765a0140fbd5e802e5a1ef031a406bb5d90396d37beb0e82f29175c
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import {connect} from 'react...
JavaScript
src/routes/search/Search.js
hmeinertrita/MyPlanetGirlGuides
mit
1,082
51
codeparrot/github-code
d57a2f2469afdca401c28d856cb2afd716f4493506fd86aa15c26c3b92000230
{% extends "layout_unbranded.html" %} {% block page_title %} GOV.UK prototype kit {% endblock %} {% block content %} <main id="content" role="main"> <div class="grid-row"> <div class="column-full"> <div id="global-breadcrumb" class="breadcrumb"> <a class="link-back" href="results_confirm2?searc...
HTML
app/views/volnicsv1a/forecast_QQ123456C.html
steven-borthwick/check-support
mit
9,822
265
codeparrot/github-code
9b665c70e370c60e17e03e34ec81963259fd36828cac89b3273cae8ce9837c82
Given(/^I have an Auton that has two steps, first step scheduling the next step$/) do class ScheduleSecondStepAuton < Nestene::Auton def first context.schedule_step(:second) end def second 'ok' end attr_accessor :context attribute foo: Fixnum end @auton_type="ScheduleSecond...
Ruby
features/step_definitions/schedule_steps_steps.rb
draganm/nestene
mit
1,992
66
codeparrot/github-code
91ccac2f4c57920d92703426f33e9e454dc455b584a465278281eb97e81115aa
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ergo: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.10.2/ergo/8.6.0.html
coq-bench/coq-bench.github.io
mit
6,944
165
codeparrot/github-code
848dbe1efb4107542d158644fac216043964e1c46ba3edce2a3cfb2201bcd67f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>finger-tree: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.12.1/finger-tree/8.7.0.html
coq-bench/coq-bench.github.io
mit
6,904
165
codeparrot/github-code
385c276a2ef2b71fd7ccd0cd771a1a510a5a284f9cffc63460434eb5d3689ec6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paramcoq: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.10.0/paramcoq/1.1.1+coq8.7.html
coq-bench/coq-bench.github.io
mit
7,183
182
codeparrot/github-code
48ffca97214d6649a7c958a8295c5e55a9f073d59c622e2dd4f27879683a9480
using MineLib.Core; using MineLib.Core.Data; using MineLib.Core.IO; using ProtocolClassic.Data; namespace ProtocolClassic.Packets.Server { public struct LevelFinalizePacket : IPacketWithSize { public Position Coordinates; public byte ID { get { return 0x04; } } public short Size { get...
C#
Packets/Server/LevelFinalize.cs
MineLib/ProtocolClassic
mit
810
35
codeparrot/github-code
fea9627a204dd5985414dadcda50e594ff557a04e07b6ae3e34878db706a6eb4
require 'cred_hubble/resources/credential' module CredHubble module Resources class UserValue include Virtus.model attribute :username, String attribute :password, String attribute :password_hash, String def to_json(options = {}) attributes.to_json(options) end ...
Ruby
lib/cred_hubble/resources/user_credential.rb
tcdowney/cred_hubble
mit
767
40
codeparrot/github-code
b25dfae4d0730deb35a2e99ae15e3fa17d9add2b0613063a5269bc87f5885d76
#include <stdio.h> #include "list.h" #define N 10 link reverse(link); int main(void) { int i; link head, x; // Population head = new_link(0); x = head; for (i = 1; i < N; ++i) { x = insert_after(x, new_link(i)); } // Reversal head = reverse(head); // Traversal x = head; do { printf("%i\n", x->i...
C
linked-lists/circular-reversal/main.c
bartobri/data-structures-c
mit
546
48
codeparrot/github-code
3180048403eae16afa6cb40b6b890166554379e47606633d84659fc25b26ffb2
import { get } from "ember-metal/property_get"; import { set } from "ember-metal/property_set"; import Ember from "ember-metal/core"; // Ember.assert import EmberError from "ember-metal/error"; import { Descriptor, defineProperty } from "ember-metal/properties"; import { ComputedProperty } from "ember-metal/compute...
JavaScript
packages/ember-metal/lib/alias.js
gdi2290/ember.js
mit
2,326
84
codeparrot/github-code
9b18f599221ae23e01535e96d3a3921f6eecdbc9a3070d9846e317e34c095dee
/* * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package. * * author: emicklei */ V8D.receiveCallback = function(msg) { var obj = JSON.parse(msg); var context = this; if (obj.receiver != "this") { var namespaces = obj.rece...
JavaScript
js/setup.js
emicklei/v8dispatcher
mit
3,684
119
codeparrot/github-code
fa601b133b044ed1f14821af47b3dc8ee251cf431319d10ee1612cb2771f139e
// ƒwƒbƒ_ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh #include <windows.h> // •W€WindowsAPI #include <tchar.h> // TCHARŒ^ #include <string.h> // C•¶Žš—ñˆ— // ŠÖ”‚̃vƒƒgƒ^ƒCƒvéŒ¾ LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // ƒEƒBƒ“ƒhƒEƒƒbƒZ[ƒW‚ɑ΂µ‚ēƎ©‚̏ˆ—‚ð‚·‚é‚æ‚¤‚É’è‹`‚µ‚½ƒR[ƒ‹ƒoƒbƒNŠ...
C++
winapi/SetBkColor/SetBkColor/src/SetBkColor/SetBkColor/SetBkColor.cpp
bg1bgst333/Sample
mit
5,385
142
codeparrot/github-code
e393c924bdfc3c4d61872319378eb00ab81946be8c8be39000dce57c9f2934d7
package slacknotifications.teamcity.payload; import jetbrains.buildServer.messages.Status; import jetbrains.buildServer.responsibility.ResponsibilityEntry; import jetbrains.buildServer.responsibility.TestNameResponsibilityEntry; import jetbrains.buildServer.serverSide.*; import jetbrains.buildServer.tests.TestName; i...
Java
tcslackbuildnotifier-core/src/main/java/slacknotifications/teamcity/payload/SlackNotificationPayloadManager.java
jeanregisser/tcSlackBuildNotifier
mit
7,122
170
codeparrot/github-code
af28f44a3af541e6a50be629016e10e09dbb6ac2233e95544d3769c9ad1106f0
<?php /* SRVDVServerBundle:Registration:email.txt.twig */ class __TwigTemplate_d9fb642ef38579dd6542f4eacc9668ce91ac497e0fd5b3f1b1ca25429847bdfe extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks ...
PHP
app/cache/dev/twig/a4/a4d5e331da6ebdf63a769ec513a07ed062a09e096299142f0540503ab3951bbb.php
youcefboukersi/serveurdevoeux
mit
6,108
121
codeparrot/github-code
60c3d8d5bdd96dff82259d009dce0cacb617491cccfc612c08af1f9270e9dd6f
using Portal.CMS.Entities.Enumerators; using Portal.CMS.Services.Generic; using Portal.CMS.Services.PageBuilder; using Portal.CMS.Web.Architecture.ActionFilters; using Portal.CMS.Web.Architecture.Extensions; using Portal.CMS.Web.Areas.PageBuilder.ViewModels.Component; using Portal.CMS.Web.ViewModels.Shared; using Syst...
C#
Portal.CMS.Web/Areas/PageBuilder/Controllers/ComponentController.cs
tommcclean/PortalCMS
mit
7,135
202
codeparrot/github-code
156d32f5256a126f5af9835bd83d35b633f12829e178fdefa3a64814e6e05a94
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // ActionOnDispose.cs // // // Implemention of IDisposable that runs a del...
C#
source/Internal/ActionOnDispose.cs
cuteant/dotnet-tpl-dataflow
mit
5,479
143
codeparrot/github-code
3c442030607932086b5bd8e6ffe4938c42ba2fca5721e05abb915ecc50789bbf
// generates an interface file given an eni file // you can generate an eni file using the aws-cli // example: // aws ec2 describe-network-interfaces --network-interface-ids eni-2492676c > eni-7290653a.json var ENI_FILE = "json/eni-651e2c2c.json"; // the interface you want to configure var INTERFACE = "eth1"; // po...
JavaScript
interface-gen.js
lukemiles/aws-eni-configutil
mit
2,829
76
codeparrot/github-code
0ca2d67c0b64977d8e9253d28e8846216cb8c202c9762f3f4e9f8ae21bb3b90a
var width = window.innerWidth, height = window.innerHeight, boids = [], destination, canvas, context; const MAX_NUMBER = 100; const MAX_SPEED = 1; const radius = 5; init(); animation(); function init(){ canvas = document.getElementById('canvas'), context = canvas.getContext( "2d" ); canvas.w...
JavaScript
boid.js
yuuki2006628/boid
mit
4,635
194
codeparrot/github-code
7c381dc7178fb4e81235c62a03d206a13e28ae18b790b2f591ac3d790d1681fe
package com.facetime.spring.support; import java.util.ArrayList; import java.util.List; import com.facetime.core.conf.ConfigUtils; import com.facetime.core.utils.StringUtils; /** * 分页类 * * @author yufei * @param <T> */ public class Page<T> { private static int BEGIN_PAGE_SIZE = 20; /** 下拉分页列表的递增数量级 */ priva...
Java
facetime-spring/src/main/java/com/facetime/spring/support/Page.java
allanfish/facetime
mit
3,757
171
codeparrot/github-code
03c97b404b82b50ee0a27d6f4a404c579a544ab21886ceeaf90104d1e64319f9
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; -- ---------------------------------------------------------------------------------------------------------- -- ...
SQL
src/cppNGSD/resources/NGSD_schema.sql
imgag/ngs-bits
mit
79,928
2,131
codeparrot/github-code
229ed3eeba6087513ca5e91fd9e03889ca7380906cb272757f168fb2cd94217c
#ifndef ABSTRACTTRANSFORM_H #define ABSTRACTTRANSFORM_H #include <new> #include <mfapi.h> #include <mftransform.h> #include <mfidl.h> #include <mferror.h> #include <strsafe.h> #include <assert.h> // Note: The Direct2D helper library is included for its 2D matrix operations. #include <D2d1helper.h> #include <wrl\impl...
C
VideoEffect/VideoEffect.Shared/Transforms/AbstractTransform.h
tompaana/object-tracking-demo
mit
6,350
225
codeparrot/github-code
b79efbf02805850d5c258e1256416e031ae98403f06e24e672d7e18f16d6f6f2
package com.cnpc.framework.base.service.impl; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Service; import com.alibaba.fastjson.JSON; import com.cnpc.framework.base.entity.Dict; import com.cnpc.framework.base.pojo.TreeNode; import com.c...
Java
AdminEAP-framework/src/main/java/com/cnpc/framework/base/service/impl/DictServiceImpl.java
Squama/Master
mit
4,303
116
codeparrot/github-code
c4be3664260668bca882a0f95deabad8fa8c5bb79d55b024b1d6d3b77aa779a7
#include "unicorn/format.hpp" #include <cmath> #include <cstdio> using namespace RS::Unicorn::Literals; using namespace std::chrono; using namespace std::literals; namespace RS::Unicorn { namespace UnicornDetail { namespace { // These will always be called with x>=0 and prec>=0 ...
C++
unicorn/format.cpp
CaptainCrowbar/unicorn-lib
mit
14,380
366
codeparrot/github-code
60b59a7813f495e62bb7cf2ab63549e415a5db0762ac3bf667f9c13b9a2196f4
#!/bin/bash DATESTR=$(date +"%Y%m%d%H%M%S") LOCAL_BACKUP_DIR=/home/rails/db_backups/dsi function fetch_ntriples() { FILE_NAME="$LOCAL_BACKUP_DIR/$1" GRAPH_URI=$2 SOURCE_URI=http://46.4.78.148/dsi/data?graph=$GRAPH_URI curl -s -H "Accept:text/plain" -f -o $FILE_NAME $SOURCE_URI CURL_STATUS=$? ...
Shell
backup_data_graph.sh
Swirrl/digitalsocial
mit
3,022
91
codeparrot/github-code
1a7531bcc3432d6cedf9fdc36c30acea9b42d996a6facd9dd193e2f566900543
// // IOService.cpp // Firedrake // // Created by Sidney Just // Copyright (c) 2015 by Sidney Just // 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...
C++
slib/libio/service/IOService.cpp
JustSid/Firedrake
mit
3,272
125
codeparrot/github-code
a64da07322222d977d09e1bd2b0fa6aa28842ab60cf4057e773614b825e432e9
namespace PlacesToEat.Data.Common { using System; using System.Data.Entity; using System.Linq; using Contracts; using Models; public class DbUserRepository<T> : IDbUserRepository<T> where T : class, IAuditInfo, IDeletableEntity { public DbUserRepository(DbContext context) ...
C#
Source/Data/PlacesToEat.Data.Common/DbUserRepository{T}.cs
tcholakov/PlacesToEat
mit
1,373
60
codeparrot/github-code
1999daf9f80415a765a4791a3fba4bdf5cfb8f6f75f4dee9f0bb0fe240f60222
package com.kromracing.runningroute.client; import com.google.gwt.dom.client.Element; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.Widget; final public class Utils { private Utils() { } /** * Sets the HTML id ...
Java
src/main/java/com/kromracing/runningroute/client/Utils.java
chadrosenquist/running-route
mit
1,100
32
codeparrot/github-code
aa0786a342fdd6c28e076da33df430b202dae50d606960e173c7c946279ffbab
/** * This file was copied from https://github.com/jenkinsci/mercurial-plugin/raw/master/src/test/java/hudson/plugins/mercurial/MercurialRule.java * so we as well have a MercurialRule to create test repos with. * The file is licensed under the MIT License, which can by found at: http://www.opensource.org/licenses/mi...
Java
src/test/java/org/paylogic/jenkins/advancedscm/MercurialRule.java
jenkinsci/gatekeeper-plugin
mit
5,618
143
codeparrot/github-code
11cc30a6b51ff4e5c52e7a9090b706803a3f591e2f8df0fadfdbd48d07c4f714
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
CSS
src/vs/workbench/contrib/files/browser/media/fileactions.css
mjbvz/vscode
mit
5,195
144
codeparrot/github-code
915ce720409c619cc880ca974dce9ea463a9d16542f4d97b4b8a2234582973cc
package zhou.adapter; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import java.util.List; /** * Created by zzhoujay on 2015/7/22 0022. */ public class Norm...
Java
app/src/main/java/zhou/adapter/NormalAdapter.java
ChinaKim/AdvanceAdapter
mit
1,412
54
codeparrot/github-code
c5c684cdc43d5858294da43eb45af7f9a735dfdc073f4cb0474ea1a85de404a3
package UserInterface.Animation; /** * Makes shit get big, makes shit get small. */ public class SizeAnimation extends Animation { protected int iW, iH, fW, fH, cW, cH; public SizeAnimation(long period, int paceType, boolean loop, int iW, int iH, int fW, int fH) { super(period, paceType, loop); ...
Java
src/UserInterface/Animation/SizeAnimation.java
Daskie/Crazy8-CPE-103
mit
731
35
codeparrot/github-code
3b4687101691fea3c2fd876f132009bd916936dac4c108ea99f0dcf7c2496384
import * as path from "path"; import * as tl from "vsts-task-lib/task"; import {IExecOptions, IExecSyncResult} from "vsts-task-lib/toolrunner"; import * as auth from "packaging-common/nuget/Authentication"; import * as commandHelper from "packaging-common/nuget/CommandHelper"; import {NuGetConfigHelper2} from "packagi...
TypeScript
Tasks/NuGetCommandV2/nugetrestore.ts
grawcho/vso-agent-tasks
mit
12,108
280
codeparrot/github-code
2b4c6bc0310a4a2ab7a3f90f2b620f010737b5348cab14cff09f164ebe58f270
import _ from 'lodash'; import { createSelector } from 'reselect'; const srcFilesSelector = state => state.srcFiles; const featuresSelector = state => state.features; const featureByIdSelector = state => state.featureById; const keywordSelector = (state, keyword) => keyword; function getMarks(feature, ele) { const ...
JavaScript
src/features/home/selectors/explorerTreeData.js
supnate/rekit-portal
mit
4,178
165
codeparrot/github-code
c982fb1f2523e0690c60071d849e8d326f8f2b7f991d6a1c232a85b9da4e10a9
<?php class Receiving_lib { var $CI; function __construct() { $this->CI =& get_instance(); } function get_cart() { if(!$this->CI->session->userdata('cartRecv')) $this->set_cart(array()); return $this->CI->session->userdata('cartRecv'); } function set_cart($cart_data) { $t...
PHP
application/libraries/Receiving_lib.php
songwutk/opensourcepos
mit
9,998
364
codeparrot/github-code
3335b33693bfabced279b5b39024be8180ef25d329a964786af935f083a8ec2e
exports.login = function* (ctx) { const result = yield ctx.service.mine.login(ctx.request.body); if (!result) { ctx.status = 400; ctx.body = { status: 400, msg: `please check your username and password`, } return; } ctx.body = { access_token: result.access_token, msg: 'login ...
JavaScript
app/controller/mine.js
VIPShare/VIPShare-REST-Server
mit
2,077
102
codeparrot/github-code
c9b5d4915a36320d9445dd34a8765c12d51adde4723f69ecfa890052e3f10d3c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <script> const importObject = Object.freeze({ env: { __memory_b...
HTML
wasm/examples/sum/index.html
arturparkhisenko/til
mit
2,315
78
codeparrot/github-code
c89465859418d770bcdc87a3765e279a7f2f873fb040eb2ae930bf2572d0ae78
using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Web; namespace Umbraco.Core { ///<summary> /// Extension methods for dictionary & concurrentdictionary ///...
C#
src/Umbraco.Core/DictionaryExtensions.cs
lars-erik/Umbraco-CMS
mit
12,151
285
codeparrot/github-code
3d3a77203716c5ae711e96ee4a0f1f7dc7b9d7c7c93162de623af6d421f2cedf
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Phenotype Demo</title> <meta name="description" content="Phenotype Demo"> <link rel="stylesheet" href="style.css"> <script src="phenotype.js" type="application/javascript"></script> </head> <body> <a ...
HTML
demo.html
benjamine/phenotype
mit
8,334
303
codeparrot/github-code
c68b7ffdfaf2ce693d7a30bafa11109a341438200b32b0c50c50b23a2fc53e69
import * as yargs from "yargs"; import { getEnvironment, getSlimConfig } from "../cli-helpers"; export const devCommand: yargs.CommandModule = { command: "dev", describe: "Start a development server.", builder: { open: { alias: "o", type: "boolean", description: ...
TypeScript
src/commands/dev.command.ts
INSIDEM2M/slim
mit
1,457
43
codeparrot/github-code
0059abff89102a8766816316fd3f5b57e5a7c13982ff946ae77fb0ec69fa187c
module YandexMusic class Client include YandexMusic::Auth include YandexMusic::Endpoints::Search include YandexMusic::Endpoints::ArtistAlbums include YandexMusic::Endpoints::AlbumsTracks def initialize(client_id, client_secret) @client_id, @client_secret = client_id, client_secret end ...
Ruby
lib/yandex_music/client.rb
localhots/yandex_music
mit
962
35
codeparrot/github-code
8309990049aa305f85ce64805a28a1f28f5a457d1eb496c082707ae59719dbfc
namespace CSharpGL { partial class FormPropertyGrid { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ///...
C#
Infrastructure/CSharpGL.Models/FormPropertyGrid.Designer.cs
bitzhuwei/CSharpGL
mit
2,206
61
codeparrot/github-code
7067b8f740c0a7952e29502ded6159f1b6f7ce85ad2fa5835225fcc460af8e53
package net.pinemz.hm.gui; import net.pinemz.hm.R; import net.pinemz.hm.api.HmApi; import net.pinemz.hm.api.Prefecture; import net.pinemz.hm.api.PrefectureCollection; import net.pinemz.hm.storage.CommonSettings; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view....
Java
android-hm/src/net/pinemz/hm/gui/SettingsActivity.java
pine613/android-hm
mit
6,222
237
codeparrot/github-code
13840ababc9a009be73584056a0188fca868315298b616ba3cd78f80bcca57fe
'use strict'; const chai = require('chai'), expect = chai.expect, config = require('../config/config'), Support = require('./support'), dialect = Support.getTestDialect(), Sequelize = Support.Sequelize, fs = require('fs'), path = require('path'); if (dialect === 'sqlite') { var sqlite3 = require('sqli...
JavaScript
test/integration/configuration.test.js
inDream/sequelize
mit
5,369
125
codeparrot/github-code
2257d0d7e9f1b7c7ffc724f5a72373997e31fe959b4118feaf2862cf215236e4
/* * This file is part of Zinc, licensed under the MIT License (MIT). * * Copyright (c) 2015-2016, Jamie Mansfield <https://github.com/jamierocks> * * 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 ...
Java
Example/src/main/java/uk/jamierocks/zinc/example/ExampleCommands.java
jamierocks/Zinc
mit
2,269
56
codeparrot/github-code
6075a529fa5c7bce933bec63979eb0c865c667cf65a298245be5151abb70b29f
/*--------------------------------------------------------------------------------------------- * 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/model/pieceTreeTextBuffer/pieceTreeTextBuffer.ts
joaomoreno/vscode
mit
18,581
558
codeparrot/github-code
7811a6f04804d8875f1f47809a603f29f14aa82521334456b45edb22a5e57f00
// Script by Bo Tranberg // http://botranberg.dk // https://github.com/tranberg/citations // // This script requires jQuery and jQuery UI $(function() { // Inser html for dialog just before the button to open it var butt = document.getElementById('citations'); butt.insertAdjacentHTML('beforeBegin', ...
JavaScript
js/cite.js
tranberg/citations
mit
6,059
149
codeparrot/github-code
005880ee46dbeb9b62973f6756b225d20b756d4d7d6493ca83bfec6701f35b3b
package io.github.ageofwar.telejam.updates; import io.github.ageofwar.telejam.Bot; import io.github.ageofwar.telejam.TelegramException; import io.github.ageofwar.telejam.methods.GetUpdates; import java.io.IOException; import java.util.Collections; import java.util.Objects; import java.util.concurrent.ConcurrentLinked...
Java
src/main/java/io/github/ageofwar/telejam/updates/UpdateReader.java
AgeOfWar/Telejam
mit
4,138
144
codeparrot/github-code
45ae9d5362442dcceea4a650f50dfbedf58e1f289871b11c1676eaf55b794b0e
""" ``editquality generate_make -h`` :: Code-generate Makefile from template and configuration :Usage: generate_make -h | --help generate_make [--config=<path>] [--main=<filename>] [--output=<path>] [--template...
Python
editquality/utilities/generate_make.py
wiki-ai/editquality
mit
2,362
77
codeparrot/github-code
f7c6aa44305a464a05c6c0442365c308b21505ef1f374c89184fb10f373d93b5
/** * Reverb for the OpenAL cross platform audio library * Copyright (C) 2008-2009 by Christopher Fitzgerald. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 ...
C
lugre/baselib/openal-soft-1.8.466/Alc/alcReverb.c
ghoulsblade/vegaogre
mit
31,015
796
codeparrot/github-code
33ed5aae362ab6f7169b57bddc8e5df3c24c77f33205f4ad4909fc55fb4c661a
// # Ghost Configuration // Setup your Ghost install for various environments // Documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Production // When running Ghost in the wild, use the production environment // Configure your URL and m...
JavaScript
config.js
rquellh/thewanderingconsultant
mit
3,810
135
codeparrot/github-code
06b2241aac4e2a86652666e2f3dc38dc2d2acce7fc10dba0280827b8e109e2b0
// Copyright Louis Dionne 2015 // Distributed under the Boost Software License, Version 1.0. #include <type_traits> template <typename T> using void_t = std::conditional_t<true, void, T>; // sample(common_type-N3843) template <typename T, typename U> using builtin_common_t = std::decay_t<decltype( true ? std::de...
C++
code/common_type-N3843.cpp
ldionne/hana-cppnow-2015
mit
1,800
80
codeparrot/github-code
12c6abcaca1563a98bc5728b07d1f6c3eb7e3c0ac79c7a672b3ae7fc6f379680
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; namespace Umbraco.Core.Models.EntityBase { /// <summary> /// A base class for use to implement IRememberBeingDirty/ICanBeDirty /// </summary> public abstract class Tracks...
C#
src/Umbraco.Core/Models/EntityBase/TracksChangesEntityBase.cs
zidad/Umbraco-CMS
mit
5,913
147
codeparrot/github-code
97ccdc06dfb191bc20115dea2e5344d6900c209242accadc1bace5264f4152c3
# coding=utf8 """ Parser for todo format string. from todo.parser import parser parser.parse(string) # return an Todo instance """ from models import Task from models import Todo from ply import lex from ply import yacc class TodoLexer(object): """ Lexer for Todo format string. Tokens ID ...
Python
todo/parser.py
guori12321/todo
mit
2,473
116
codeparrot/github-code
883ee7833838de8c964ea16353d6940fda18d51ccd8b2de6c7034986bbc90631
var test = require('tape'); var BSFS = require('../lib/bsfs'); indexedDB.deleteDatabase('bsfs-tests'); function randomId () { return Math.random().toString(36).substr(2) } test('bsfs exists', function (t) { t.plan(1); var bsfs = new BSFS('bsfs-tests'); if (!bsfs._ready) return bsfs.once('ready', ready); el...
JavaScript
test/bsfs.js
nickaugust/bsfs
mit
5,219
243
codeparrot/github-code
39c1850905fc8276eb89da6fe693e4450131f5cd778fb629080df4d45e078dcf
/** * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it wil...
C++
engine/src/stateengine/AtomicState.cpp
AnisB/Donut
mit
2,621
88
codeparrot/github-code
e94d792880dc02f323cc8cc200f2287762a2fe420a1a333bcc40f967389b5d27
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
PHP
app/AppKernel.php
psamada2012/psa
mit
3,051
66
codeparrot/github-code
79dbdb736cef2ab49e6a8ae29734432516857a37921987c71d9287580312a3fd
#!/bin/sh set -e NEEDS_CONFIG=0 if [ "$#" -lt "1" ]; then echo "Bad usage: check_reconf.sh [target_package] (optional configure arguments)" exit 1 fi if [ "$ONYX_ARCH" = "" ]; then echo "ONYX_ARCH needs to be set!" exit 1 fi if [ "$HOST" = "" ]; then echo "HOST needs to be set!" exit 1 fi if [ "$SYSROOT" = "...
Shell
scripts/check_reconf.sh
heatd/Onyx
mit
948
55
codeparrot/github-code
8bc9e32e504545117c40d58c1d1b2930cf8782a32a215b61e728b51d70d12b7f
// // URBSegmentedControl.h // URBSegmentedControlDemo // // Created by Nicholas Shipes on 2/1/13. // Copyright (c) 2013 Urban10 Interactive. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSUInteger, URBSegmentedControlOrientation) { URBSegmentedControlOrientationHorizontal = 0, URBSegmentedCo...
C
URBSegmentedControl.h
u10int/URBSegmentedControl
mit
3,492
112
codeparrot/github-code
fc61cee79f49860c28fb2a2344c48f753e12066600347a1db4bae5e4503c82d7
import { Component, OnInit, HostListener, ElementRef } from '@angular/core'; import { Router, NavigationEnd, NavigationExtras } from '@angular/router'; import { AuthService } from '../../services/auth.service'; @Component({ selector: 'app-nav', templateUrl: 'app-nav.component.html' }) export class AppNavComponent ...
TypeScript
src/app/components/app-nav/app-nav.component.ts
Izak88/morose
mit
1,671
69
codeparrot/github-code
8cb74266f29d2c65da0386932e1c0e27365aa27d105eecd185a07f0c9a5491e3
// Copyright (c) 2011-2013 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 "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "bitcoingui.h" #include "clien...
C++
src/qt/walletview.cpp
coinkeeper/2015-06-22_19-00_ziftrcoin
mit
10,319
317
codeparrot/github-code
c50c7c19a7ec687ea6436cceae3314598c9b3d55e4b4528f8d23108b9e2162ed
<?php /** * File: SimpleImage.php * Author: Simon Jarvis * Modified by: Miguel Fermín * Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as publish...
PHP
application/helpers/image_compression_helper.php
ryno888/thehappydog
mit
7,552
222
codeparrot/github-code
2cd67066c3e6188f3bdc0c7cc1ff9dcbd0aca24725a9eb7de4934712bb94f3a6
var express = require('../') , Router = express.Router , request = require('./support/http') , methods = require('methods') , assert = require('assert'); describe('Router', function(){ var router, app; beforeEach(function(){ router = new Router; app = express(); }) describe('.match(method, u...
JavaScript
mongodb/visionmedia-express-7724fc6/test/Router.js
Mitdasein/AngularBlogGitHub
mit
3,342
122
codeparrot/github-code
5ec26a98f2b75663222e3e027a0f20e65ff5047da251e3ec961a734b812ec209
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>slickgrid-colfix-plugin example</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="../bower_components/slickgrid/slick.grid.css" type="text/css" /> <link rel="stylesheet" href="../b...
HTML
examples/basic-explicitinit.html
keik/slickgrid-colfix-plugin
mit
2,886
79
codeparrot/github-code
27ba77c62021f59b550c26431d2905a192e2daaf4da285550380c7f75149761e
using Foundation; using System; using System.Linq; using UIKit; namespace UICatalog { public partial class BaseSearchController : UITableViewController, IUISearchResultsUpdating { private const string CellIdentifier = "searchResultsCell"; private readonly string[] allItems = { ...
C#
UICatalog/UICatalog/Controllers/Search/SearchControllers/BaseSearchController.cs
xamarin/monotouch-samples
mit
2,884
74
codeparrot/github-code
d11c548d3773a8664dd36f618793220f99e2899766606b8ec72519cfeac544a5
<?php namespace Kordy\Ticketit\Controllers; use App\Http\Controllers\Controller; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Kordy\Ticketit\Models\Agent; use Kordy\Ticketit\Models\Setting; use Kordy\Tick...
PHP
src/Controllers/InstallController.php
maxvishnja/ticketsystem
mit
8,480
266
codeparrot/github-code
3a9e56d57c9aa07cd1ddf3e718782ae8ea6540c1403a5553ba2f19474782c916
----------------------------------------------------------- -- LibAddonManager.lua ----------------------------------------------------------- -- Take the global "..." (name, addon) as parameters to -- initialize an addon object. -- -- Abin (2014-11-04) ----------------------------------------------------------- -- A...
Lua
Interface/AddOns/IntelliMount/Includes/LibAddonManager.lua
fgprodigal/RayUI
mit
29,220
1,045
codeparrot/github-code
5c4374bb34fd6bae70408cb7d7a4906c61dfa9236ecbe657b16487f31edc7330
import {Curve} from '../curve' export class Line extends Curve { constructor(p0, v) { super(); this.p0 = p0; this.v = v; this._pointsCache = new Map(); } intersectSurface(surface) { if (surface.isPlane) { const s0 = surface.normal.multiply(surface.w); return surface.normal.dot(s...
JavaScript
public/webcad/app/brep/geom/impl/line.js
Autodrop3d/autodrop3dServer
mit
1,860
74
codeparrot/github-code
9d0d683098a93a2651a0949d197ce7b4714a6a59b183b5e7f50a8922a7487c48
#include "TString.h" #include "TGraph.h" #include "TGraphErrors.h" #include "TGraphAsymmErrors.h" #include <fstream> #include <Riostream.h> #include <sstream> #include <fstream> using namespace std; TGraphErrors* GetGraphWithSymmYErrorsFromFile(TString txtFileName, Color_t markerColor=1, Style_t markerStyle=20, Size_t...
C++
flowCorr/paperMacro/qm/GetFileAndSys.C
tuos/FlowAndCorrelations
mit
1,754
63
codeparrot/github-code
c5703afa328acfcf10ba1609f69e978c4bf0fadaceeb348463cf1b10c0e846bc
import os import sys import tempfile from fabric.api import run, sudo, env, local, hide, settings from fabric.contrib.files import append, sed, exists, contains from fabric.context_managers import prefix from fabric.operations import get, put from fabric.context_managers import cd from fabric.tasks import Task from ...
Python
fab_deploy/joyent/postgres.py
ff0000/red-fab-deploy
mit
5,514
168
codeparrot/github-code
6105d004a247c94be28df0dd8cb4231e1a8decd3f3b2164e75e708f321c1c92a
""" Gauged https://github.com/chriso/gauged (MIT Licensed) Copyright 2014 (c) Chris O'Hara <cohara87@gmail.com> """ from urlparse import urlparse, parse_qsl from urllib import unquote from .mysql import MySQLDriver from .sqlite import SQLiteDriver from .postgresql import PostgreSQLDriver def parse_dsn(dsn_string): ...
Python
gauged/drivers/__init__.py
chriso/gauged
mit
1,960
63
codeparrot/github-code