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
bfbeddb29583733f9f9495951e2e89a2eca720f187aa13963391c9af08a4761f
<?php $PAGE_NAME = '&lt;video&gt;'; require_once($_SERVER["DOCUMENT_ROOT"].'/html/htmlhead.php'); ?> <main class="pure-u-1 pure-u-sm-19-24 pure-u-md-17-24 pure-u-lg-5-8 pure-u-xl-5-8"> <section> <p>This element is a player for video content, specifically MP4, WebM, and Ogg files, though not every forma...
PHP
html/video.php
VioletRose/Web-Code-Encyclopedia
mit
4,862
105
codeparrot/github-code
93c9147deb62f32d4b45bc93456bb16c78445169d565712254d841ef36e8f632
using System; using System.Text; namespace Org.BouncyCastle.Utilities { /// <summary> General string utilities.</summary> public sealed class Strings { private Strings() { } internal static bool IsOneOf(string s, params string[] candidates) { foreach (string candidate in candidates) { if (s == ...
C#
Crypto/util/Strings.cs
SchmooseSA/Schmoose-BouncyCastle
mit
2,338
108
codeparrot/github-code
4c0784995eebee162eb3f6624c04e337ee2294528210974d9236e6f68047cbf5
import { tappedPromoSpace } from "@artsy/cohesion" import { HomeHero_homePage } from "__generated__/HomeHero_homePage.graphql" import { HeroUnit } from "app/Components/Home/HeroUnit" import { navigate } from "app/navigation/navigate" import React from "react" import { createFragmentContainer, graphql } from "react-rela...
TypeScript
src/app/Scenes/Home/Components/HomeHero.tsx
artsy/eigen
mit
1,244
40
codeparrot/github-code
7d64785c11e15d4396708c39193ea2251abe9fa983d146a2d1f41e0d6463fd75
--- Title: Public Key Pinning Extension for HTTP (HPKP) on Apache Web Server Date: 2016-08-22 09:00:25 +0300 Modified: 2016-08-22 09:00:25 +0300 Category: Primers Tags: Apache Slug: Authors: Mark Kipyegon Summary: _HPKP_ as defined in RFC7469, ['tells a web client to associate a specific cryptographic public key with a...
Markdown
content/2016-08-22-public-key-pinning-extension-for-http-hpkp-on-apache-web-server.markdown
kipyegonmark/kipyegonmarkblog
mit
7,410
127
codeparrot/github-code
8cdb3bb5af61ef55f80af3547a249d9713698e6b16a7740dfe3537ed513fa724
<?php class SchoolType extends AppModel { public $avatarUploadDir = 'img/avatars'; /* public $validate = array( 'name' => array( 'nonEmpty' => array( 'rule' => array('notEmpty'), 'message' => 'A School Name is required', 'allowEmpty' => false ...
PHP
app/Model/SchoolType.php
noibilism/zeo_portal
mit
1,924
66
codeparrot/github-code
643955ac77a4dfe2da67226d4de12ca21f588f802a40613ac0abbd800153499c
/** * Author: Cameron Green <cam at uq.edu.au> * Date: 5/2/14 * * E2E tests for Authors */ 'use strict'; describe('UQL App Authors Module', function () { var baseUrl = '/index.html#'; var baseElement = 'div.uql-authors-app'; describe('Main view', function () { var url = '/authors'; beforeEach(fun...
JavaScript
frontend/test/e2e/authors.js
uqlibrary/uqlapp-frontend
mit
24,198
486
codeparrot/github-code
84dc2d6f4567de1fc50ab0b02a2da472fd3410532219912836ac20eb851eaefd
; (function ($) { $.gatherajax = {}; $.gatherajax.defaults = { name: null, // String : for method_name url_base: "", // String : for all_ajax url base add_type: { add: {}, edit: {}, del: {} }, // Object for add execute method name and inside t...
JavaScript
jquery.gatherajax.js
haisland0909/jquery_gatherajax
mit
5,800
147
codeparrot/github-code
32b6f85458c0c43fad219a7de2b460ca55c6d0636e8339692ad6b89015cf0d4e
<?php namespace ebi\Dt; /** * * @author tokushima * @var string $name * @var string $type * @var string $summary */ class DocParam extends \ebi\Obj{ protected $name; protected $type; protected $summary; private $opt = []; public function __construct($name, $type, $summary='', $opt=[]){ $this->name = tri...
PHP
lib/ebi/Dt/DocParam.php
tokushima/ebi
mit
1,635
77
codeparrot/github-code
738c05ac6937e856c56f1194dab9514f838d50ff47158d4b3474da12a125d666
import re from django.contrib import admin, messages from django.utils.translation import ugettext_lazy as _ from django.utils.text import mark_safe from imagekit.admin import AdminThumbnail class DontShowInAdmin(admin.ModelAdmin): def get_model_perms(self, request): return {} class ReadOnlyAdminMixi...
Python
real_estate_agency/real_estate/admin.py
Dybov/real_estate_agency
mit
3,728
108
codeparrot/github-code
2682f6133ce00188737b171cc6ca22be05ea73fd3a6367d72a85d35c45e83f92
from flask_dance.consumer.storage import BaseStorage import flask class SessionStorage(BaseStorage): """ The default storage backend. Stores and retrieves OAuth tokens using the :ref:`Flask session <flask:sessions>`. """ def __init__(self, key="{bp.name}_oauth_token"): """ Args: ...
Python
flask_dance/consumer/storage/session.py
singingwolfboy/flask-dance
mit
1,085
33
codeparrot/github-code
a397de2921b7b75ef0d6fa099bdf0e284fba268c0d5c20d8f1592fe52adc4b47
import '/resources/polymer/@polymer/polymer/polymer-legacy.js'; import { random } from '/resources/reflection/tg-numeric-utils.js'; export const TgSseBehavior = { properties: { /* A URI that should be connected to for listening to push events. */ uri: { type: String, observ...
JavaScript
platform-web-ui/src/main/web/ua/com/fielden/platform/web/sse/tg-sse-behavior.js
fieldenms/tg
mit
7,224
181
codeparrot/github-code
ba3daa2f9512d04dd355303f2cb0836ae439a87462ce8fa79b1b4a62433994f7
#pragma once #include <memory> #include <any> #include "../Includes/AssocVector/assocvector.hpp" #include "StringHash.h" #include "IDeserializeMapping.h" #include "GameObjectProperty.h" namespace VeritasEngine { class GamePropertyManager { public: GamePropertyManager(const std::shared_ptr<IDeserializeMapping> d...
C
VeritasEngine/GamePropertyManager.h
webfinesse/veritas-engine
mit
1,686
71
codeparrot/github-code
bebad4c450b4cbccb69592dc00a28e4ab65a9284eecedc54b3b2c79cc2d514ac
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { ModalService } from '../../services'; @Component({ selector: 'app-image-resizer', templateUrl: './image-resizer.component.html', styleUrls: ['./image-resizer.component.scss'], }) export class ImageResizerComponent implements...
TypeScript
src/Presentation/Web/ClientApp/src/app/shared/components/image-resizer/image-resizer.component.ts
asadsahi/AspNetCoreSpa
mit
3,865
139
codeparrot/github-code
9107e77d1ed5465a8261ab8c368c6b4e9d703e5d6ed40ec5eeb3737bc81f973d
<!DOCTYPE HTML> <html> <head> <!-- hexo-inject:begin --><!-- hexo-inject:end --><meta charset="utf-8"> <title>Archives: 2016/11 | TangyCode</title> <meta name="author" content="Vincent Tang"> <meta name="description" content="Tech Tutorials"> <meta name="viewport" content="width=device-width, init...
HTML
archives/2016/11/index.html
tangycode/tangycode.github.io
mit
24,702
944
codeparrot/github-code
e1fc8de28262894946834d0c2f7b6cd27600e5c7b592092d3a67706e899b5864
/** * The MIT License (MIT) * * Copyright (C) 2015 Andreas Grimmer <a.grimmer@gmx.at> * Christoph Sperl <ch.sperl@gmx.at> * Stefan Wurzinger <swurzinger@gmx.at> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
Java
api/src/main/java/net/java/html/leaflet/Marker.java
dukescript/leaflet4j
mit
13,983
436
codeparrot/github-code
422ece2973e408b862de35377ee2e8e54fd191739695fc7f79e31ca68ed60cac
--- layout: default title: Home --- <div class="posts"> {% for post in paginator.posts %} <article class="post"> <h1 class="post-title"> <a href="{{ site.baseurl }}{{ post.url }}"> {{ post.title }} </a> </h1> {% assign author = site.data.authors[post.author] %} {% if author %} ...
HTML
index.html
STFleming/CASFridayHacking
mit
1,110
40
codeparrot/github-code
bb3b0d29059d2654296f55a5b4e51d1205af6dc95921d75127139ac9d89fd3f5
/** * @file HGConsole.cpp * @brief Console implementation * * @author Master.G (MG), mg@snsteam.com * * @internal * Created: 2012/10/13 * Company: SNSTEAM.inc * (C) Copyright 2012 SNSTEAM.inc All rights reserved. * * This file is a part of Hourglass Engine Project. * * The copyright to the ...
C++
Hourglass/original/HGConsole/HGConsole.cpp
master-g/hourglass
mit
15,445
498
codeparrot/github-code
5752177e750b2ab87084abbf01ed375ef22e96a5599caae25b0d59360fe30261
package com.example.plugintest.manymethods.h.b; public class A8 { public static void a0(String msg) { System.out.println("msg=" + msg + 0); } public static void a1(String msg) { System.out.println("msg=" + msg + 1); } public static void a2(String msg) { System.out.println("msg=" + msg + 2); } public st...
Java
Samples/PluginTest/src/main/java/com/example/plugintest/manymethods/h/b/A8.java
limpoxe/Android-Plugin-Framework
mit
8,249
105
codeparrot/github-code
e5a58d1ca45277c2e4270254cfb69a716cd0d867bd45ff62e7c636bfba6f1fa7
#include "Sprite.h" #include "Symbol.h" //#include "ParticleSystem.h" #include "SpritePropertySetting.h" #include <ps_3d.h> #include <sprite2/RenderParams.h> #include <sprite2/Particle3dEmitter.h> #include <s2loader/P3dSprLoader.h> namespace eparticle3d { Sprite::Sprite() { } Sprite::Sprite(const s2::SymPtr& sym, u...
C++
easyparticle3d/src/libparticle3d/Sprite.cpp
xzrunner/easyeditor
mit
1,634
81
codeparrot/github-code
8fd784dc77d6e459b01e221da6945b1061f780c65f337373aaf7c5cb2c7721df
package business.text; import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import data.AdjacencyListGraph; import data.AdjacencyMatrixGraph; import data.Graph; import data.ObjectGraph; ...
Java
graph/src/business/text/GraphLoader.java
bachinchi/graph
mit
5,386
111
codeparrot/github-code
77eef1233f0d2aebeeca28b143960dd9071b3235bebe6fd5eddb4cf9b2f58c3f
/* * Knob.java * * Copyright (c) 2015 Kenji Sasaki * Released under the MIT license. * https://github.com/npedotnet/NPESDK_GWT/blob/master/LICENSE * * English document * https://github.com/npedotnet/NPESDK_GWT/blob/master/README.md * * Japanese document * http://3dtech.jp/wiki/index.php?NPESDK_GWT * */...
Java
src/net/npe/gwt/user/client/ui/Knob.java
npedotnet/NPESDK_GWT
mit
6,130
228
codeparrot/github-code
c7e94ca24a63525e047f5420a0e4a6cbaafb28082af45f941b7259f9e3adeae8
<?php App::uses('ToastyCoreAppController', 'ToastyCore.Controller'); /** * Contents Controller * * @property Content $Content */ class ContentsController extends ToastyCoreAppController { public $components = array('RequestHandler'); public $helpers = array('ToastyCore.Multifile', 'ToastyCore.Property', ...
PHP
app/Plugin/ToastyCore/Controller/ContentsController.php
icompuiz/toastycms
mit
16,365
544
codeparrot/github-code
1e7292ad40c402891787d5ca22400c99a40e8002db143855322a4ffe487b63d4
<!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.0"> <link rel="canonical" href="https://notes.shichao.io/per/ch1/"> <link ...
HTML
site/per/ch1/index.html
mitnk/notes
mit
30,347
571
codeparrot/github-code
951bfd9aba5f39b58ae97a2bec2176ab5fa99bb3059bf1b6d0b113bebdd0f373
# encoding: utf-8 class Cms::ImageUploader < ::CarrierWave::Uploader::Base # Include RMagick or MiniMagick support: # include CarrierWave::RMagick include CarrierWave::MiniMagick # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility: # include Sprockets::Helpers::RailsHelper # inclu...
Ruby
app/uploaders/cms/image_uploader.rb
resumecompanion/cms
mit
3,770
137
codeparrot/github-code
9bc62526f1c0c7f13794f0cda24dfdafe63a566c84a7689947157ec3d7fb5a94
#include "problemes.h" #include "premiers.h" #include "puissance.h" #include "utilitaires.h" #include <fstream> typedef unsigned long long nombre; typedef std::vector<nombre> vecteur; ENREGISTRER_PROBLEME(132, "Large repunit factors") { // A number consisting entirely of ones is called a repunit. We shall define...
C++
problemes/probleme1xx/probleme132.cpp
ZongoForSpeed/ProjectEuler
mit
996
34
codeparrot/github-code
0fa0fee4eda2214d017c89a18e8c00e43e0ff15ebe76d23a88f86e5e00b1057d
using System; using System.IO; using System.IO.Compression; namespace VAR.PdfTools { public static class PdfFilters { public class FlateDecode { public byte[] Encode(byte[] streamData) { throw new NotImplementedException("FlateFilter.Encode: Not implemen...
C#
VAR.PdfTools/PdfFilters.cs
Kableado/VAR.PdfTools
mit
1,539
51
codeparrot/github-code
2a04a6762adbdbf423f837525e387e2ae448a4cc23c08a279b674358190aff40
import React, { Component, PropTypes } from 'react'; import './SensorGraph.scss'; import MetricGraphic from './MetricGraphic'; const propTypes = { sensorHistory: PropTypes.array }; class SensorGraph extends Component { sliceOffOldData(sensorHistory) { return sensorHistory.slice(Math.max(sensorHistory.length -...
JavaScript
app/components/SensorGraph.js
smashingboxes/tapp-web_client
mit
947
43
codeparrot/github-code
31770bd491245b227e63d6a9d55f45ccedd24818bcb7682fa8643b9e48355ff3
class User < ApplicationRecord has_many :microposts, dependent: :destroy has_one :quiz, dependent: :destroy has_one :diary, dependent: :destroy has_many :notifications, dependent: :destroy has_many :recipes has_many :active_relationships, class_name: "Relationship", ...
Ruby
app/models/user.rb
FedericoGuidi/FoodLocker
mit
5,874
175
codeparrot/github-code
06e512bc2b5b7e1c8ca38a5808d4823ec570a552e3bf652f92fcc75994bb5007
/* WindowGadget.cpp (c)2000 Palestar, Richard Lyle */ #include "Debug/Assert.h" #include "Render3D/NodeLight.h" #include "Render3D/NodeSound.h" #include "Interface/WindowGadget.h" #include "Interface/GameDocument.h" //---------------------------------------------------------------------------- IMPLEMENT_FACTORY( W...
C++
Interface/WindowGadget.cpp
palestar/darkspace
mit
2,170
79
codeparrot/github-code
dd082210964b57f31a47be2b8241d436e4c224358826db3769289fd1c870a072
module.exports = function(config) { config.set({ basePath: '../', frameworks: ['jasmine', 'detectBrowsers'], customLaunchers: { Chrome_travis_ci: { base: 'Chrome', flags: ['--no-sandbox'] } }, detectBrowsers: { enabled: true, usePhantomJS: true, postDe...
JavaScript
test/karma.conf.js
sduplooy/tangular
mit
1,750
60
codeparrot/github-code
8bcb2a687a5660187c35b5f16941371e97a25b259ea3402ec96742c54dbf3ee2
import React from 'react'; import * as Action from 'common/actions'; import './styles.css'; export default class FileMenu extends React.Component { state = { collapsed: true, x: 0, y: 0 }; componentWillMount() { document.addEventListener('keydown', (e) => { const keyCode = e.keyCo...
JavaScript
src/components/fileTree/fileMenu.js
fmsouza/wcode
mit
1,636
51
codeparrot/github-code
eb101d88bd03d689b1f147e17a34630b027d7eaad65fc472239663a5df2fb436
/******************************************************************************* * Copyright (c) 2011, 2012 SINTEF, Martin F. Johansen. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
Java
Dependencies/no.sintef.ict.splcatool/test/no/sintef/ict/splcatool/BowTieReduceTest.java
axel-halin/Thesis-JHipster
mit
1,594
43
codeparrot/github-code
f5e67d6e3d27b60e3e5a5425f66335c4cf66b21442186155ad8c33a0cd405ccf
import Ember from 'ember'; import Util from 'ember-cli-pagination/util'; import LockToRange from 'ember-cli-pagination/watch/lock-to-range'; import { QueryParamsForBackend, ChangeMeta } from './mapping'; import PageMixin from '../page-mixin'; var ArrayProxyPromiseMixin = Ember.Mixin.create(Ember.PromiseProxyMixin, { ...
JavaScript
addon/remote/paged-remote-array.js
AltSchool/ember-cli-pagination
mit
3,649
132
codeparrot/github-code
473e278fdef08040089ec2839a81416b38bfe4d91b46ddb49a76fad50a8964d0
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/az/azavea.open.geocoding.1.2.0/Azavea.Open.Geocoding-net35.html
kuhlenh/port-to-core
mit
31,308
721
codeparrot/github-code
25f34b1719f742c30c9aefac3f691bef54810b7b7acfcc3dcb998bd14d2d41eb
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Class Exen\Konfig\FileParser\Json</title> <link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e"> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview"><span>Overview</span></a> <...
HTML
docs/api/class-Exen.Konfig.FileParser.Json.html
xeriab/konfig
mit
9,927
424
codeparrot/github-code
3937dfda6956d82a5cecfb616e66d9ba3d30fb9c898d594a55d1536e80137fab
package main import ( "fmt" "image" "image/color" "time" "GoDriveTracker/stat" "github.com/llgcode/draw2d" "github.com/llgcode/draw2d/draw2dimg" "github.com/llgcode/draw2d/draw2dkit" ) func init() { draw2d.SetFontFolder("./static") } // // Histograms Charts // func dailyWordHistChart(filename string, widt...
GO
draw_graph.go
Kimau/GoDriveTracker
mit
2,889
140
codeparrot/github-code
f58d26ad7f3d8b90d8f732b99d657ed2e9d368629f36e67d87f28f6d2916f1a8
<?php /** * Twig Preprocessor loader that allows adding custom text filters for template strings. * * For instance, you can make Twig produce more readable output by stripping leading * spaces in lines with single control structure or comment: * * $loader = new Twig_Loader_Preprocessor($realLoader, * functi...
PHP
lib/Twig/Loader/Preprocessor.php
sonntam/shelf-db
mit
4,068
129
codeparrot/github-code
5450b2b3633e9f7eeb87d64628b3fd4205c3ddde596fda3d2cafaa5736c44217
<!DOCTYPE html> <HTML><HEAD><TITLE>Man page of lsort</TITLE> <meta charset="utf-8"> <link rel="stylesheet" href="/css/main.css" type="text/css"> </head> <body> <header class="site-header"> <div class="wrap"> <div class="site-title"><a href="/manpages-zh/index.html">linux manpages 中文版</a></div> <div class="site-des...
HTML
manpages-zh/man3/lsort.3tcl.html
yuweijun/yuweijun.github.io
mit
6,292
342
codeparrot/github-code
f88af21fa8ff2febd9a8c331e7e8d46a9f85eceb49636c08a42590025659c338
"use strict"; var url = require('url'), path = require('path'); module.exports = function (tasks, stylecow) { tasks.addTask({ filter: { type: 'AtRule', name: 'import' }, fn: function (atrule) { var importUrl = atrule.get('String').name, ...
JavaScript
index.js
stylecow/stylecow-plugin-import
mit
2,544
98
codeparrot/github-code
5c8e4056a147a051fcf52b334a42340df280013e30ee69ef12d06c09c89b2e70
var gameBase = require('../../../../client/game/gameBase'); var testUtil = require('../testlib/testUtil'); var testData = require('../testlib/testData')(); var tournamentTable = require('../../../../client/tournament/tournamentTable'); var CONST = require('../../../../client/tournament/const'); enchant(); window.onloa...
JavaScript
test/game/src/tournamentTableTest/2RoundTest.js
kaidouji85/gbraver
mit
2,199
64
codeparrot/github-code
8c0b725058e60ec168ddb99f20a0cdfb66bdd2515e4aab6ed4546ed43a32ba0c
/** * 错误处理中间件 */ export default () => { return async function errorHandler(ctx, next) { try { await next(); } catch (err) { // 所有的异常都在 app 上触发一个 error 事件,框架会记录一条错误日志 ctx.app.emit('error', err, ctx); const code = parseInt(err.code) || -1; const status = err.status || (code >= 0...
TypeScript
17-nodejs/02-egg/app/middleware/errorHandler.ts
csxiaoyaojianxian/JavaScriptStudy
mit
1,012
46
codeparrot/github-code
20ae0fd49642c4b6ef4d4514bf0b5bbd8f0713e7b01463fdad4c0b09adc01da8
<?php declare(strict_types = 1); namespace App\Services\Purchasing\Distributors\RconDistribution; class ExtraCommands { /** * @var string[] */ private $extraBeforeCommands = []; /** * @var string[] */ private $extraAfterCommands = []; /** * @return string[] */ p...
PHP
app/Services/Purchasing/Distributors/RconDistribution/ExtraCommands.php
D3lph1/L-shop
mit
1,119
58
codeparrot/github-code
105d65a8577f4116c296d56526448d15295e9bdc89fe9eb2472a7a8d50200c30
/** * @fileoverview Event System (John Resig - Secrets of a JS Ninja http://jsninja.com/) * (Original book version wasn't completely usable, so fixed some things and made Closure Compiler compatible) * This should work very similarly to jQuery's events, however it's based off the book version which isn't as * robus...
JavaScript
recent-work/bulga/bower_components/video.js/src/js/events.js
markfinger/markfinger.github.io
mit
10,370
337
codeparrot/github-code
48281e5646eb42cbadcd87ffef79171b6425dc86b8da9e9a07e2955aaaf2fc3d
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>logo generator</title> <meta name="Keywords" content=""> <meta name="Description" content=""> <style type="text/css"> body, h1{margin:0;} canvas{margin: 20px; } </style> <script type="text/javascript"> function addToGallery(){ var canvas = ...
HTML
src/logo1/logo40.html
sundayliu/logomaker
mit
2,594
95
codeparrot/github-code
1d295aaa76a267cf7b2019d1c8dc68655a0eda3a99f1f5328fd24b6d6ee4de1f
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Fujicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test coinbase transactions return the correct categories. Tests listtransactions, listsinceblock, and...
Python
test/functional/wallet_coinbase_category.py
fujicoin/fujicoin
mit
2,302
60
codeparrot/github-code
b8d00c6d05b4e0adb639c35d4a62028be6828ed8888c6e9873c36ac095c915e6
module Pivo module Formatters module Stories class MarkdownTable def initialize(stories) @stories = stories @stories_group_by_owner = {} end def to_s @stories.each do |story| if story.owner_ids.empty? @stories_group_by_owner['n...
Ruby
lib/pivo/formatters/stories/markdown_table.rb
ukstudio/pivo
mit
1,601
63
codeparrot/github-code
154a6b35daedab5954a67c33e3966e933ae7ff659e8d4015c0e1c429b0894088
/** * oneAway - Checks if one string is a single edit, or zero edits, away from another string. * Edits include: Adding a missing character, deleting an extra character, or editing a single character. * @param {String} a - Base string * @param {String} b - String to be checked * @return {Boolean} */ function on...
JavaScript
1. Strings/one-away.js
TylerK/ctci
mit
833
34
codeparrot/github-code
b89223398ae81336e74eb7e34b4c30b7503e93c766fbd8a169ad85da0a690012
# -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function import os import re import sys # Check Sphinx version import sphinx if sphinx.__version__ < "1.0.1": raise RuntimeError("Sphinx 1.0.1 or newer required") needs_sphinx = '1.0' # ---------------------------------------------...
Python
01-codes/numpy-master/doc/source/conf.py
DailyActie/Surrogate-Model
mit
9,985
336
codeparrot/github-code
d5a45cb40b525467929389b911daf094f134395c230f7721f889229cef7277de
//@ts-nocheck import { IClone } from "../../../IClone" import { BoundBox } from "../../../../math/BoundBox" import { Rand } from "../../../../math/Rand" import { Vector2 } from "../../../../math/Vector2" import { Vector3 } from "../../../../math/Vector3" export enum ParticleSystemShapeType { /**盒体 */ Box = 0, /**环形...
TypeScript
src/layaAir/laya/d3/core/particleShuriKen/module/shape/BaseShape.ts
layabox/layaair
mit
3,305
130
codeparrot/github-code
be6b5ca3a0875b488dd72ba9afd56a205e8f5ac4aec507bcdd4fd60aa0623dff
const express = require('express'); const app = express(); const appIP = process.env.IP || '127.0.0.1'; const appPort = process.env.PORT || 3030; const data = { pig: 'oink', cow: 'Moo', dog: 'Woof Woof!', cat: 'I want to lay on you human', goldfish: '...', }; app.get('/', function(req, res) { res.send(...
JavaScript
public/section-node/lecture198/app.js
HyperSprite/web-developer-bootcamp
mit
1,201
51
codeparrot/github-code
f5dbb4091fb74d6866ccfdf9e7fdbf336e07f60f53a18173ef2397fe24f258f3
using NLog; using PostSharp.Patterns.Diagnostics; using System; using System.Collections.Generic; using System.Linq; namespace ReactiveServices.MessageBus.InSingleProcessMemory { public class InSingleProcessMemoryReceivingBus : InSingleProcessMemoryMessageBus, IReceivingBus { public InSingle...
C#
ReactiveServices/MessageBus/InSingleProcessMemory/InSingleProcessMemoryReceivingBus.cs
ReactiveServices/ReactiveServices.MessageBus.InSingleProcessMemory
mit
9,561
206
codeparrot/github-code
cf90f30d5b13178b306136948d54243b91157d4603bc35c180b705e30531f9be
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace MySQL_identity_demo.Models { public class ExternalLoginConfirmationViewModel { [Required] [Display(Name = "Email")] public string Email { get; set; } } public class ExternalLoginListViewMo...
C#
MySQL_identity_demo/Models/AccountViewModels.cs
ness993/project
mit
3,118
113
codeparrot/github-code
19bcf3b0cb0933b5c99bb9699981de131f4f5a4ac1d8426524ac92072d60570e
const MOD = 1e9+7 func countPalindromicSubsequences(S string) int { n := len(S) // A(i, j), i < j 为 S[i:j] 的答案,则 A(0, n) 为最终答案 // A(i, j) = S[i:j] 中包含的不同字符数 + Na_a + Nb_b + Nc_c + Nd_d // 其中 Na_a 表示 a_a 形式的回文串数量,则 Na_a = A(ia+1, ja) + 1,1 为空串 A := make([][]int, n+1) for i := 0; i <= n; i++ { ...
GO
leetcode/count-different-palindromic-subsequences/solution.go
xrtgavin/leetcode
mit
1,335
43
codeparrot/github-code
7b6202949205e9110ac1c1e623b2ec1a4504c847f14299f6b5d592cf8282d1bb
using System; using Spinner.Aspects; using Spinner.Aspects.Advices; using Spinner.Extensibility; namespace Spinner.TestTarget.Aspects { public sealed class ComposedBasicLoggingMba : TypeLevelAspect { [MethodEntryAdvice] [MulticastPointcut(Targets = MulticastTargets.Method, Attributes = Multicas...
C#
Spinner.TestTarget/Aspects/ComposedBasicLoggingMba.cs
Inverness/Spinner
mit
1,847
55
codeparrot/github-code
9de3843ba5506e522a14e12152d2dfb62320303def598562f57bca11132d2e3c
/** * Created by zhangrz on 2017/9/20. * Copyright© 2015-2020 codingview (https://github.com/codingview) * @version 0.0.1 created */ 'use strict'; const Editor = window.wangEditor , $ajax = require('../general/Ajax.general'); let editor; // 全局变量存储富文本对象 const Data = { // 保存 save: form=>$ajax({ ...
JavaScript
public/javascript/admin/about.js
codingview/team_building_server
mit
1,981
88
codeparrot/github-code
1e75a93b76280564f0660ca568e0cfef8ed5c22f3354759b703deb342d2f4dd2
angular.module('Login.View', []) .controller('LoginController', LoginController); //LoginController.$inject = ['OAuth', 'Auth', '$state']; function LoginController(OAuth, Auth, appname, $state) { var scope = this; // Services scope.OAuthSvc_ = OAuth; scope.AuthSvc_ = Auth; scope.StateSvc_ = $...
JavaScript
app/login/login.js
tliberty/OrderCloudApiTester
mit
1,340
43
codeparrot/github-code
7d49fbdb432f0b79d59f445c7efcaf0338dcfdb66d4737645c8a9a92ce18ba37
import {layerPanelText, defaults, layersConfig, analyticsLabels} from 'js/config'; import {layerActions} from 'actions/LayerActions'; import {modalActions} from 'actions/ModalActions'; import {mapActions} from 'actions/MapActions'; import analytics from 'utils/googleAnalytics'; import KEYS from 'js/constants'; import a...
JavaScript
src/map/js/stores/MapStore.js
wri/gfw-water
mit
3,881
122
codeparrot/github-code
e23eeb5d30cc5f34697219f01696644ef494edd4b824d0efa278d7c7ee7e41f0
module Query # Images with observations of a given name. class ImageWithObservationsOfName < Query::ImageBase include Query::Initializers::ContentFilters include Query::Initializers::OfName def parameter_declarations super.merge( old_by?: :string ).merge(of_name_parameter_declaratio...
Ruby
app/classes/query/image_with_observations_of_name.rb
raysuelzer/mushroom-observer
mit
940
37
codeparrot/github-code
6fcb47d0a9c0ee84001b68d2b5c7ea5d5630904737a600521970e1d175e8e5a5
import React, { Component, PropTypes } from "react" import cx from "classnames" import BaseLayout from "../BaseLayout" class Page extends Component { render() { const { head, body, ...others } = this.props return ( <BaseLayout head={ head } {...others} > <article ...
JavaScript
src/layouts/Page/index.js
thangngoc89/blog
mit
1,863
66
codeparrot/github-code
2014beca3c5ca4ab08daf44b43f751d8f373d095c96b36471b6ef84bd29fde1a
package org.goku.http; import java.io.BufferedInputStream; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.net.Socket; import java.net.URL; ...
Java
src/org/goku/http/SimpleHttpClient.java
deonwu/Goku
mit
10,367
314
codeparrot/github-code
4dc4e518790e70b05d0a38445c1af0c3889283a9c9b0f071c01bd137ecdf37b5
<?php /* TwigBundle:Exception:error.html.twig */ class __TwigTemplate_bc0d51a03efbdf624fe2b350dea839b51b2fa896f5ce6978dcd613657024100d extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
PHP
app/cache/prod/twig/bc/0d/51a03efbdf624fe2b350dea839b51b2fa896f5ce6978dcd613657024100d.php
emrahsifoglu/Product
mit
1,760
62
codeparrot/github-code
24c035820986f7adcf33b307c3dcc08305c628aa9f5dfd0f072db98cc3e82908
// // ym_smid.c // yy_music // // Created by ibireme on 14/12/2. // Copyright (c) 2014 ibireme. All rights reserved. // #include "ym_simd.h" #if YM_OS_APPLE #include <Accelerate/Accelerate.h> #endif #if YM_HAVE_NEON #include <arm_neon.h> #endif //#undef YM_OS_APPLE //#define YM_OS_APPLE 0 void ym_v_int16_t...
C
yy_music_base/ym_simd.c
ibireme/yy_music_base
mit
36,006
1,271
codeparrot/github-code
89bb475f2d8ad6df5e6352e100a2143dcb749c4f71c5f984715509c83a62b6ea
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>concat: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.1/concat/8.10.0.html
coq-bench/coq-bench.github.io
mit
6,759
169
codeparrot/github-code
984e0f5ee7210cf872d176cc8d5ae867b2d4908b544b2541a0d6a03d77791076
const express = require('express') const path = require('path') const errorHandlers = require('./handlers/errorHandlers') const helpers = require('./helpers') const routes = require('./routes') // create our Express app const app = express() // view engine setup app.set('views', path.join(__dirname, 'views')) app.s...
JavaScript
app.js
ozren1983/seo-for-web-devs
mit
1,323
45
codeparrot/github-code
5e15b56bc20d8403fa0c0f9cb54a19a4158ecc2c4dd5beae84bd8cb88fa52771
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using FlatRedBall.Glue.FormHelpers.StringConverters; using Microsoft.Xna.Framework; using FlatRedBall.Glue.FormHelpers; using FlatRedBall.Glue.GuiDisplay; using FlatRedBall.Graphics.Animation; using FlatR...
C#
FRBDK/Glue/Glue/SaveClasses/CustomVariableExtensionMethods.TypeConverter.cs
vchelaru/FlatRedBall
mit
6,868
154
codeparrot/github-code
30d2f01017a7134842ee4e6e049528803592a2959791891a771591550ab5cebe
#!/usr/bin/env python from flask import Flask from flask import render_template import pandas as pd import numpy as np import datetime as datetime app = Flask(__name__) if not app.debug: import logging file_handler = logging.FileHandler('error.log') file_handler.setLevel(logging.WARNING) app.logger.a...
Python
app/app.py
kgorman/WMG_speed
mit
5,559
173
codeparrot/github-code
4c3c17179096e5593f2e3ec86bf458de179a0f61f4c2edbf567b30ee11e68b6c
<template id="tmplPane"> <style> :host{ background: var(--ui-pane-bg-color, #9E9E9E); border: var(--ui-pane-border, 1px solid red); border-radius: var(--ui-pane-border-radius, 10px); box-shadow: var(--ui-pane-box-shadow, 0px 0px 4px rgba(37,37,41, 1) inset); } di...
HTML
plugins/ui/assets/HTML/ui-pane.html
djahma/skelectron
mit
19,901
485
codeparrot/github-code
cbb5e97b292824dc0cc3b2796a2d025564719d05799f2febb1cd636bb737e792
var config = require('./config'); // config info var async = require('async'); var DirectoryProvider = require('./providers/directory').DirectoryProvider; var directoryProvider = new DirectoryProvider(); var UserProvider = require('./providers/user').UserProvider; var userProvider = new UserProvider(config.ldap.url,...
JavaScript
import.js
hross/Charity-Campaign
mit
2,416
93
codeparrot/github-code
e693cedef328fdce7b40122f724a2788312f2ea7c90fed17b9f3589c2044c9d0
package org.adaptlab.chpir.android.survey.questionfragments; import android.content.pm.PackageManager; import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.util.Log; import android.view.Gravity; import android.vie...
Java
app/src/main/java/org/adaptlab/chpir/android/survey/questionfragments/PictureQuestionFragment.java
DukeMobileTech/AndroidSurvey
mit
5,065
136
codeparrot/github-code
31b496d5bde40bb900c0e2253ea77071ae1c4aebe0607af07436df4c9b4fdfbe
\subsection{Testing and Experimental Validation (Tomlin, Sastry, Lee, Karsai)} The project team collaborated to create a Starmac simulation model, which was published on the web site. It was released as an example in the ESMoL tool distribution as well\cite{jp_esmol}. Gabe Hoffman (Stanford) produced the original...
TeX
metamorphosys/META/externals/HCDDES/doc/FinalReport/HCDDESMURI/TEV.tex
pombredanne/metamorphosys-desktop
mit
8,483
131
codeparrot/github-code
2be2f4e075ef2fc84106f2aae34c8f6585197001c96db7d0d95d9efc8b2e2d5f
<?php /** * @package Helpers * @category Concrete * @author Andrew Embler <andrew@concrete5.org> * @copyright Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org) * @license http://www.concrete5.org/license/ MIT License */ /** * Helpful functions for working with forms. Includes HTML input tags...
PHP
concrete/core/helpers/form.php
mrogelja/website-concrete5
mit
14,702
415
codeparrot/github-code
4ca8b11ab031d362e0fa1bf6ea1ced484e594a052bdce601dff4a0e62f8b8a51
/* * DiskBTree.h - Interface for a BTree in which nodes are stored on disk * * Built for EECS2510 - Nonlinear Data Structures * at The University of Toledo, Spring 2016 * * Copyright (c) 2016 Nathan Lowe * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and ass...
C
OnDiskTrees/DiskBTree.h
techwiz24/EECS2510
mit
9,571
304
codeparrot/github-code
1af39aaeaf6348fce9a7b7b563da760eb09f9d53380ce5e11cab7506df687bf1
<?php /** * Module yii2-activeuser * * @link https://github.com/inblank/yii2-activeuser * @copyright Copyright (c) 2016 Pavel Aleksandrov <inblank@yandex.ru> * @license http://opensource.org/licenses/MIT */ namespace inblank\activeuser; use yii; use yii\base\Module as BaseModule; /** * This is the main module ...
PHP
Module.php
inblank/yii2-activeuser
mit
7,039
193
codeparrot/github-code
61dac5a31f9bacb1bf37eb378323d5b8df7315a19de3a4d4a00e9aacae4a194a
package io.github.takzhanov.umbrella.hw09; import io.github.takzhanov.umbrella.hw09.common.ConnectionHelper; import io.github.takzhanov.umbrella.hw09.common.DbService; import io.github.takzhanov.umbrella.hw09.domain.UserDataSet; import io.github.takzhanov.umbrella.hw09.myorm.DbServiceMyOrmImpl; import org.junit.After;...
Java
hw09-myorm/src/test/java/io/github/takzhanov/umbrella/hw09/DemoHw09.java
takzhanov/otus-java-2017-10-takzhanov-yury
mit
1,323
42
codeparrot/github-code
fc335fa85d1e24d8d1490fe643e766ec36937afee282620408132252d28d3d47
/** * Class Animal * @param name * @param type * @param photo * @param lat * @param lng * @param info * @param address * @constructor */ function Animal(name, type, photo, lat, lng, info, address) { this.name = name; this.type = type; this.photo = photo; this.lat = lat; this.lng = lng; ...
JavaScript
js/animals.js
EverRest/lost-test
mit
2,690
143
codeparrot/github-code
e7e4e3126d255f63641d7cb5d1ad537f57850c313ab01d314ce237bff3d72e72
from collections import defaultdict import serviceprovider import textservice import hashlib import os class Auth(serviceprovider.ServiceProvider, textservice.TextService): salts = dict() users = dict() async def REQ_Salt(self, headers, msg): conn = headers["cid"] headers["salt"] = self.s...
Python
clients/py/auth.py
simonwittber/middleman
mit
1,290
45
codeparrot/github-code
d876056c4ea78c68964c5a25ea20bad086875e090aacdc031b0d0c0b0c8bffea
""" Script which define fabric's methods. """ from fabric.api import local, task, lcd from utils import create_bundle_server as create_bs, create_bundle_client as create_bc @task def create_bundle_server(bundle_name=None): """ Creates bundle for server-side of the application. """ create_bs(bundle_n...
Python
fabfile.py
PearsonIOKI/ioki-social
mit
1,897
82
codeparrot/github-code
681084dfbb86488ff1b9e1aa7f5662cb03df8a6663dd6b63ad4981ae480f3bb2
import java.awt.*; import java.awt.geom.AffineTransform; import java.awt.image.*; import static java.lang.Math.*; public class Bullet { BufferedImage bullet; Point loc; double x,y,angle; int damage,ally,lifeTime = 2000; //lifetime of all bullets is 2 seconds long startTime,lastTime = -1; //not currently usin...
Java
src/Bullet.java
KieranZimmer/Dungeon-Crawler-Game
mit
2,035
49
codeparrot/github-code
f5506ae2d5350d3589131ae5307855a01a7c2895effbb61cb209b0cabef2a0c8
#!/usr/bin/env python3 import os import sys import re import tempfile from subprocess import run from shutil import copyfile args = sys.argv[1:] in_dir = args[0] if len(args) == 1 else os.getcwd() if not os.path.isabs(in_dir): in_dir = os.path.abspath(in_dir) if not os.path.isdir(in_dir): print('"{}" is not...
Python
tacc_manifest_upload/copy_from_manifest.py
kyclark/misc
mit
1,866
70
codeparrot/github-code
acedcea02ee35878552202f42d61fb9370046f440fe4664daa102a27b8bf8a28
import re from bs4 import BeautifulSoup from ..const import constant from ..bsopener import BSOpener class RGArtist(object): """RapGeniusArtist""" class _Const(object): """ Contains constants used in outter class """ @constant def RG_ARTIST_BASE_URL(): return "http://genius...
Python
lyricist/rapgenius/rgartist.py
iluxonchik/lyricist
mit
5,427
135
codeparrot/github-code
4b2802c874c71bd93c8228ea409bb3230f565748ff90d3491e57293e26a23f13
;(function (sge) { 'use strict'; sge.grf = sge.grf || {}; var p; (sge.grf.RendererFactory = function(type) { this._setContext(type); this._init(); }).prototype = p = new Object(); p._init = function(){ this._canvasCount = 0; }; p._setContext = function (type) { if(type === '2D') { this._Renderer = sge.grf.Can...
JavaScript
lib/grf/factory.js
raohmaru/selfish-gene
mit
709
33
codeparrot/github-code
07cd39e1782e88d6dcbbc54148d8c1cc66afe77d65b10f6ae1f0b074695e0297
package DefiningClasses.Lab.CarInfo; import java.util.*; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // int n = Integer.parseInt(scanner.nextLine()); // List<Car> cars = new ArrayList<>(); // // while (n-- > 0){ // ...
Java
Java_Advanced_2021/src/DefiningClasses/Lab/CarInfo/Main.java
lmarinov/Exercise-repo
mit
2,548
72
codeparrot/github-code
3f372eaebdd721402417d4b39db6961ef600efb953bd89861c14e3bf649eb1ae
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include "notes.h" #include "git2.h" #include "refs.h" #include "config.h" #include "iterator.h" #inclu...
C
deps/libgit2/src/notes.c
duralog/node-sencillo
mit
13,263
615
codeparrot/github-code
8789ba9557ab30fc7ff1be4348f242239f4dfba7cd0eac9ddc9c7afe8d3648a8
#include <avr/io.h> #include <avr/eeprom.h> #include "USART.h" #define MAX_TEXT_LENGTH 256 #define CODE_LEN 64 // -------- Global Variables --------- // char EEMEM code0[CODE_LEN] = "ettubrute"; char EEMEM code1[CODE_LEN] = "attackatdawn"; char EEMEM code2[CODE_LEN] = "theraininspainfallsmainlyontheplain"; ...
C
Chapter19_EEPROM/vigenereCipher/vigenereCipher.h
hexagon5un/AVR-Programming
mit
1,714
51
codeparrot/github-code
9ce87f6e9bf16954d6b7425051943d483eba8b44a2b0883cffeff3cbe5907fba
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'); /** * A Validation function for local strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || pro...
JavaScript
app/models/user.server.model.js
wilsonpyc/pride-app
mit
3,013
147
codeparrot/github-code
5ea11e0b1122691150c2ca315c8c0dec6050b1ae117192691952d9bb4e007a03
from pyrsistent import pvector from toolz import pipe from toolz.curried import reduce, map from toolz.dicttoolz import iterkeys, itervalues from lib.value_objects.src.string_value_object import StringValueObject __WHITESPACE = StringValueObject(" ") __VERTICAL_SEPARATOR = StringValueObject("|") __LINE_BREAK = String...
Python
lib/formatter/src/_formatter.py
RamonAranda/ConfusionMatrix
mit
3,826
117
codeparrot/github-code
fe51f1f8c97a0f9fcafcbb8c70ea26b6e557fd342362c3abb48eddfd6d31ba7f
class InseminacoesController < ApplicationController before_action :set_inseminacao, only: [:edit, :update, :destroy] before_action :set_menu # GET /inseminacoes def index @inseminacoes = Inseminacao.includes(:inseminador, :bovino).order('data desc, bovinos.nome asc') end # GET /inseminacoes/new def...
Ruby
app/controllers/inseminacoes_controller.rb
carlosantoniodasilva/posgrad-clinica-bovinos
mit
1,477
61
codeparrot/github-code
e483a619541e9eea237117e5c63ef59dc7dde9e8d49b38275bfe6b40d85c463e
function vectorToString(vector) { return `X: ${vector.X} Y: ${vector.Y} Z: ${vector.Z}`; } function drawBox(x, y, z, x2, y2, z2) { API.callNative("DRAW_BOX", API.f(x), API.f(y), API.f(z), API.f(x2), API.f(y2), API.f(z2), 255, 255, 255, 170); } var currentVehcle = null; var currentOffset = null; var curren...
JavaScript
deprecated/trunk/collector.js
GTANetworkDev/ExampleResources
mit
3,065
70
codeparrot/github-code
17b35fa847040e3a01edccaeb3daccd8c87e32fe320556edef98a1a34626b5f3
import { Injectable, Component, Input, Output } from '@angular/core'; import { Http, Response, Request, Headers, RequestOptions } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import {ICharge} from '../charge/charge'; import {IResponse} from '../charge/response'; import {IChargeSC} from '../charge...
TypeScript
src/client/app/home/home.service.ts
galtenhofen/IndivCostUpdates
mit
3,966
111
codeparrot/github-code
ad45217c6e09b17e77007ff1f6edc7a7228953fc4b527f45d88436ec6dc8c65a
package gtd import ( "fmt" "io" "os" "os/exec" "path/filepath" "strings" "github.com/BurntSushi/toml" ) type config struct { GtdFile string `toml:"gtdfile"` MemoDir string `toml:"memodir"` OutputDir string `toml:"outputdir"` FilterCmd string `toml:"filtercmd"` Editor string `toml:"editor"` } func...
GO
config.go
dais0n/gtd
mit
1,642
73
codeparrot/github-code
c7d7d3911e1031930aac30cf679969364c3c7dd9a5953f5614b374baee798f61
<?php /* * This file is part of the ILess * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ILess; use InvalidArgumentException; /** * Color utility class. */ final class Color { /** * HSL and HSV cache. *...
PHP
lib/ILess/Color.php
mishal/iless
mit
11,103
517
codeparrot/github-code
dd18437dba882495d9b8bb537a9885da9a193497c9a4751ea36adba73d750b69
<!doctype html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" /> <title>spheropy.Options API documentation</title> <meta name="description" content="Tools for working with Sphero Options" /> ...
HTML
docs/spheropy/Options.m.html
darin-costello/spheropy
mit
57,011
1,565
codeparrot/github-code
52612397544c823d24141638f027a79e1bcd858cf1e02e720682cb8ead2f95af
<div class="col-md-4 col-lg-4 col-sm-12 col-xs-12 aside visible-md visible-lg"> <div class="row"> <div class="col-md-3 col-xs-3 aside1"> <br> <a class="pjaxlink" href="/"><img src="{{ site.gavatar }}" class="img-circle avatar"></a> <br><br> <ul class="nav nav-pills nav-stacked"> {%...
HTML
_includes/navside.html
wonderfan/wonderfan.github.io
mit
2,859
66
codeparrot/github-code
93be7e94ad87ad2c8a38ef611783fc646ebbbd8bb39e2a32821fc472e963b981
(function( root, factory ) { // Set up appropriately for the environment. // Start with AMD. if ( typeof define === 'function' && define.amd ) { define( [ 'handlebars', 'comparison/startsWith' ], function( Handlebars ) { ...
JavaScript
test/specs/comparison/StartsWithSpec.js
uplift/bullhorn-handlebars-helpers
mit
3,490
80
codeparrot/github-code
d00b74ad488cc002e6cb55745787f3977d7528b6152cca0312146f5a4215404b
<?php // +--------------------------------------------------+ // | Copyright (c) Markus Tacker | // | All rights reserved. | // +--------------------------------------------------+ // | This source code is protected by international | // | copyright law and may ...
PHP
lib/Auslastung/Controller/API/Datehelper.php
coderbyheart/auslastung
mit
2,683
73
codeparrot/github-code
e1e7db1fce3adb961811fa7c4b184dcccda67a5ae556421951d2baa7e8d5a1e6
package me.fallblank.propertyanimationexample.utils; import android.support.annotation.NonNull; import android.util.Log; import me.fallblank.propertyanimationexample.BuildConfig; /** * Created by fallb on 2016/6/8. */ public final class LogUtil { //获取是否为模式调试 static boolean sDebug = BuildConfig.DEBUG; /...
Java
AboutView/AboutAnimation/PropertyAnimationExample/app/src/main/java/me/fallblank/propertyanimationexample/utils/LogUtil.java
fallblank/AndroidEssay
mit
2,342
84
codeparrot/github-code
3a59ca9718747819667fc8591f89ad3ce66970ffbbfb8c8b6122e28d8f5eee96
#pragma once #include <memory> #include <vector> #include "glm/vec4.hpp" #include "gl/disposer.h" #include "gl.h" namespace Tangram { class Texture; class RenderState; class FrameBuffer { public: FrameBuffer(int _width, int _height, bool _colorRenderBuffer = true); ~FrameBuffer(); bool applyAsRende...
C
core/src/gl/framebuffer.h
quitejonny/tangram-es
mit
1,349
71
codeparrot/github-code
7e1adf8696d42869f5ec06614a39bd5a9d6a29be77e8e12d6991b2999d58ba97
package io.treehopper.libraries.sensors.optical.isl29125; import io.treehopper.SMBusDevice; import io.treehopper.Utility; import io.treehopper.events.AdcValueChangedEventHandler; import io.treehopper.events.DigitalInValueChangedEventArgs; import io.treehopper.events.DigitalInValueChangedEventHandler; import io.treehop...
Java
Java/api/treehopper.libraries/src/main/java/io/treehopper/libraries/sensors/optical/isl29125/Isl29125.java
treehopper-electronics/treehopper-sdk
mit
5,269
184
codeparrot/github-code
794582b4d82b029352f002f5095c2b05b073796b7804b2c3b778c1b8930f3044
# Class which symbolise a sentence # # TODO add relations # TODO add others fields # # class Sentence include Neo4j::NodeMixin #a sentence can be the translation of several sentences has_n :translates # a sentece can be translated by several sentences has_n(:translated_by).from(Sentence, :transla...
Ruby
model.rb
allan-simon/Taoeberyl
mit
1,857
58
codeparrot/github-code
7f53beeabf58bb54b875deb047dd6e8c92edd56947afccac3f1d69a27b34ece0
#include "stdafx.h" #include "../Application.h" #include "../PhysBody3D.h" #include "../GameObject.h" #include "../ComponentCollider.h" #include "../ComponentAudioSource.h" #include "../ComponentScript.h" #include <map> namespace Audio_PlaySound { unsigned audio_index = 0; void Audio_PlaySound_GetPublics(map<co...
C++
ScriptingProject/Audio_PlaySound.cpp
CITMProject3/Project3
mit
1,420
46
codeparrot/github-code