code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
--- layout: page title: Maddox - Oconnell Wedding date: 2016-05-24 author: Emma Mcfarland tags: weekly links, java status: published summary: Etiam eu accumsan lorem. Morbi faucibus velit nec. banner: images/banner/meeting-01.jpg booking: startDate: 10/18/2017 endDate: 10/20/2017 ctyhocn: WINWVHX groupCode: MOW...
KlishGroup/prose-pogs
pogs/W/WINWVHX/MOW/index.md
Markdown
mit
2,510
using System; using System.ServiceModel; namespace SoapCore.Tests.Wsdl.Services { [ServiceContract] public interface INullableEnumService { [OperationContract] NulEnum? GetEnum(string text); } public class NullableEnumService : INullableEnumService { public NulEnum? GetEnum(string text) { throw new N...
DigDes/SoapCore
src/SoapCore.Tests/Wsdl/Services/INullableEnumService.cs
C#
mit
355
var Game = { map: { width: 980, height: 62 * 12 }, tiles: { size: 62, count: [100, 12] }, sprite: { 8: 'LAND_LEFT', 2: 'LAND_MID', 10: 'LAND_RIGHT', 9: 'LAND', 5: 'WATER_TOP', 12: 'WATER', 4: 'STONE_WITH_MONEY', 11: 'STONE', 6: 'CACTUS', 13: 'GRASS', ...
luin/Love-and-Peace
src/game.js
JavaScript
mit
508
# Demo mode Smart meter has a demo mode that is intended to make demonstrating the product and system-level testing easier. Demo mode allows creating situations that would be hard to create otherwise (e.g. connection to cloud is lost between price request and parking event registering). Demo mode is to be used in de...
DriverCity/SPARK
src/smart_meter/doc/dev/demo_mode.md
Markdown
mit
3,474
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta chars...
giakki/uncss.io
dist/index.html
HTML
mit
5,689
#!/usr/bin/python import os import re from lxml import etree as et import pcbmode.config as config from . import messages as msg # pcbmode modules from . import utils from .point import Point def makeExcellon(manufacturer='default'): """ """ ns = {'pcbmode':config.cfg['ns']['pcbmode'], 'svg...
ddm/pcbmode
pcbmode/utils/excellon.py
Python
mit
4,661
'use strict'; import _ from 'lodash'; import bluebird from 'bluebird'; import fs from 'fs'; import requireDir from 'require-dir'; import Logger from '../../logger'; bluebird.promisifyAll(fs); function main() { const imports = _.chain(requireDir('./importers')) .map('default') .map((importer) => importer.ru...
mehmetbajin/gt-course-surveys
server/src/server/base/data/imports/imports.js
JavaScript
mit
635
// FriendlyNameAttribute.cs created with MonoDevelop // User: ben at 1:31 P 19/03/2008 // // To change standard headers go to Edit->Preferences->Coding->Standard Headers // using System; namespace EmergeTk.Model { public class FriendlyNameAttribute : Attribute { string name; public string Name { get { ...
bennidhamma/EmergeTk
server/Model/FriendlyNameAttribute.cs
C#
mit
736
Ext.define('Category.view.GenericList', { extend: 'Ext.grid.Panel', alias: 'widget.genericlist', store: 'Generic', title: Raptor.getTag('category_header'), iconCls:'', initComponent: function() { this.columns = [{ header:Raptor.getTag('category_name'), da...
williamamed/Raptor.js
@raptorjs-production/troodon/Resources/category/js/app/view/GenericList.js
JavaScript
mit
1,321
using System; using static LanguageExt.Prelude; namespace LanguageExt.UnitsOfMeasure { /// <summary> /// Numeric VelocitySquared value /// Handles unit conversions automatically /// </summary> public struct VelocitySq : IComparable<VelocitySq>, IEquatable<VelocitySq> { ...
slantstack/Slant
src/Slant/DataTypes/UnitsOfMeasure/VelocitySq.cs
C#
mit
3,292
// // Lexer.cpp // lut-lang // // Created by Mehdi Kitane on 13/03/2015. // Copyright (c) 2015 H4314. All rights reserved. // #include "Lexer.h" #include <string> #include <regex> #include <iostream> #include "TokenType.h" #include "ErrorHandler.h" using std::cout; using std::endl; using std::smatch; using std::st...
hexa2/lut-lang
src/Lexer.cpp
C++
mit
4,860
#define NC0_As 0x0E #define NC0_B 0x0D #define NC1_C 0x15 #define NC1_Cs 0x1E #define NC1_D 0x1D #define NC1_Ds 0x26 #define NC1_E 0x24 #define NC1_F 0x2D #define NC1_Fs 0x2E #define NC1_G 0x2C #define NC1_Gs ...
iLambda/chipguitar
firmware/inc/keycodes.h
C
mit
1,058
<?php /** * This file is part of the Redsys package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Redsys\Tests\Api; use Redsys\Api\Titular; class TitularTest extends \PHPUnit_Framework_TestCase...
rmhdev/redsys
tests/Redsys/Tests/Api/TitularTest.php
PHP
mit
866
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("KnowledgeCenter.Domain")] [assembly: AssemblyDescription("")] [assembly: Guid("34163851-767a-42f4-9f09-7d1c6af2bd11")]
Socres/KnowledgeCenter
src/Domain/KnowledgeCenter.Domain/Properties/AssemblyInfo.cs
C#
mit
212
repo_the_first ==============
alanmcgovern/repo_the_first
README.md
Markdown
mit
30
--- layout: page title: Copeland King Trade Executive Retreat date: 2016-05-24 author: Dennis David tags: weekly links, java status: published summary: Vivamus facilisis sem a turpis volutpat. banner: images/banner/leisure-05.jpg booking: startDate: 08/16/2017 endDate: 08/20/2017 ctyhocn: SFOCCHX groupCode: CKT...
KlishGroup/prose-pogs
pogs/S/SFOCCHX/CKTER/index.md
Markdown
mit
2,774
<!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> ...
kuhlenh/port-to-core
Reports/ha/hazzik.owin.security.trademe.1.0.0/Hazzik.Owin.Security.TradeMe-net45.html
HTML
mit
27,782
# Update for Chrome 71 Due to abuse of users with the Speech Synthesis API (ADS, Fake system warnings), Google decided to remove the usage of the API in the browser when it's not triggered by an user gesture (click, touch etc.). This means that calling for example <code>artyom.say("Hello")</code> if it's not wrapped i...
sdkcarlos/artyom.js
README.md
Markdown
mit
12,659
#include "src/math/float/log10f.c" #include "log.h" int main(void) { test(log10f, log10); }
jdh8/metallic
test/native/math/float/log10f.c
C
mit
97
<?php namespace XeroPHP\Reports; class AgedReceivablesByContact { /** * @var string[] */ private $headers; /** * @var mixed[] */ private $rows; /** * @param string[] $headers * @param mixed[] $rows */ public function __construct(array $headers, array $rows =...
cosmic-beacon/xero-php
src/XeroPHP/Reports/AgedReceivablesByContact.php
PHP
mit
630
# mrb\_manager [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/rrreeeyyy/mrb_manager?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) mruby binary manager having a affinity for mgem ## Installation Install it yourself as: $ gem install mrb_manager Afterwards y...
rrreeeyyy/mrb_manager
README.md
Markdown
mit
1,328
var searchData= [ ['nalloc',['NALLOC',['../dwarfDbgInt_8h.html#a30e913ccf93d7ea095a144407af0f9a5',1,'dwarfDbgInt.h']]], ['name',['name',['../structattrValues.html#ac7cb0154aaced069f3b1d24a4b40bf26',1,'attrValues']]], ['nextcompileunitoffset',['nextCompileUnitOffset',['../structcompileUnit.html#a1f5c469b922f6fcfe3...
apwiede/nodemcu-firmware
docs/dwarfDbg/search/all_c.js
JavaScript
mit
5,000
<?php namespace Mastercel\ChartBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Solicitudespagos * * @ORM\Table(name="SolicitudesPagos", indexes={@ORM\Index(name="Indice_1", columns={"DteSolicitud", "TmeSolicitud"}), @ORM\Index(name="Indice_2", columns={"DteActualizacion"}), @ORM\Index(name="Indice_3", colum...
pablo28jg/ejemplosgraficas
src/Mastercel/ChartBundle/Entity/Solicitudespagos.php
PHP
mit
10,419
const moment = require('moment') const expect = require('chai').expect const sinon = require('sinon') const proxyquire = require('proxyquire') const breadcrumbHelper = require('../../helpers/breadcrumb-helper') const orgUnitConstant = require('../../../app/constants/organisation-unit.js') const activeStartDate = mome...
ministryofjustice/wmt-web
test/unit/services/test-get-reduction-export.js
JavaScript
mit
2,361
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using ProjectData; using Tools; using ProjectBLL; using System.Data; using Approve.RuleCenter; using System.Text; using System.Collections; using Approve.RuleApp; public partial cl...
coojee2012/pm3
SurveyDesign/JSDW/DesignDoc/Report.aspx.cs
C#
mit
7,357
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Threading.Tasks; using Test.Utilities; using Xunit; using VerifyCS = Test.Utilities.CSharpCodeFixVerifier< Microsoft.CodeQuality.Analyzers.ApiDesignGuidelin...
dotnet/roslyn-analyzers
src/NetAnalyzers/UnitTests/Microsoft.CodeQuality.Analyzers/ApiDesignGuidelines/EnumsShouldHaveZeroValueTests.Fixer.cs
C#
mit
9,759
/** * Conversion: * All dynamic tweaked dom id or class names are prefixed with 't-'. */ /** * Config */ var PRIVATE_TOKEN = 'xYDh7cpVX8BS2unon1hp'; /** * Globals. */ var autocompleteOpts, projectOpts, currentProjectID, currentProjectPath; $(function () { initGlobals(); handleAll(); mapUrlHandle...
inetfuture/gitlab-tweak
public/tweak.js
JavaScript
mit
7,663
import axios from 'axios' import pipelineApi from './api' import { addMessage } from '../../../client/utils/flash-messages' import { transformValueForAPI } from '../../../client/utils/date' function transformValuesForApi(values, oldValues = {}) { const data = { name: values.name, status: values.category, }...
uktrade/data-hub-fe-beta2
src/apps/my-pipeline/client/tasks.js
JavaScript
mit
2,963
var global = require('../../global'); module.exports = function (data, offset) { var items = data.items.map(invoiceNote => { var invoiceItem = invoiceNote.items.map(dataItem => { var _items = dataItem.items.map(item => { dueDate = new Date(dataItem.deliveryOrderSupplierDoDate);...
indriHutabalian/dl-module
src/pdf/definitions/garment-intern-note.js
JavaScript
mit
21,593
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqffi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.1/coqffi/1.0.0~beta7.html
HTML
mit
7,357
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bignums: 3 m 34 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel=...
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1+2/bignums/8.7.0.html
HTML
mit
15,814
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>persistent-union-find: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootst...
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.11.1-2.0.7/released/8.11.1/persistent-union-find/8.10.0.html
HTML
mit
6,977
// // StoreAppleReceiptParser.hpp // Pods // // Created by eps on 7/3/20. // #ifndef EE_X_STORE_APPLE_RECEIPT_PARSER_HPP #define EE_X_STORE_APPLE_RECEIPT_PARSER_HPP #include <string> #include "ee/store/StoreFwd.hpp" namespace ee { namespace store { class AppleReceiptParser { public: AppleReceiptParser(); ...
Senspark/ee-x
src/cpp/ee/store/private/StoreAppleReceiptParser.hpp
C++
mit
522
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.resourcemanager.network; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.network.models.DdosProtectionPlan; import com.azure.resourcemanager.test.utils.TestUtilities; import...
Azure/azure-sdk-for-java
sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/test/java/com/azure/resourcemanager/network/DdosProtectionPlanTests.java
Java
mit
1,570
"""Run tests for the kmeans portion of the kmeans module""" import kmeans.kmeans.kmeans as kmeans import numpy as np import random def test_1dim_distance(): """See if this contraption works in 1 dimension""" num1 = random.random() num2 = random.random() assert kmeans.ndim_euclidean_distance(num1, num...
moradology/kmeans
tests/testkmeans.py
Python
mit
1,642
const multiples = '(hundred|thousand|million|billion|trillion|quadrillion|quintillion|sextillion|septillion)' const here = 'fraction-tagger' // plural-ordinals like 'hundredths' are already tagged as Fraction by compromise const tagFractions = function (doc) { // hundred doc.match(multiples).tag('#Multiple', her...
nlp-compromise/nlp_compromise
plugins/numbers/src/tagger/fractions.js
JavaScript
mit
2,380
window._skel_config = { prefix: 'css/style', preloadStyleSheets: true, resetCSS: true, boxModel: 'border', grid: { gutters: 30 }, breakpoints: { wide: { range: '1200-', containers: 1140, grid: { gutters: 50 } }, narrow: { range: '481-1199', containers: 960 }, mobile: { r...
akabob/ARIA_CA2_Code
js/sk1.js
JavaScript
mit
3,079
# phase-0-gps-1 GPS 1.1(pair with Tom Goldenberg)
karanaditya993/phase-0-gps-1
README.md
Markdown
mit
50
(function(app, undefined) { 'use strict'; if(!app) throw new Error('Application "app" namespace not found.'); //---------------------------------------------------------------------------- console.log( 'hello world' ); console.log( 'Application Running...' ); //------------------------------------------...
soudev/requirejs-steps
src/01/scripts/app.js
JavaScript
mit
867
{-# LANGUAGE CPP #-} module Database.Orville.PostgreSQL.Plan.Explanation ( Explanation , noExplanation , explainStep , explanationSteps ) where newtype Explanation = Explanation ([String] -> [String]) #if MIN_VERSION_base(4,11,0) instance Semigroup Explanation where (<>) = appendExplanation #endif inst...
flipstone/orville
orville-postgresql/src/Database/Orville/PostgreSQL/Plan/Explanation.hs
Haskell
mit
800
using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace KUI.Controls { public class FlatAccentButton : FlatButton { protected override void OnPaintBackground(PaintEventArgs pevent) ...
TheKronks/KUI
KUI/Controls/FlatAccentButton.cs
C#
mit
848
// crm114_config.h -- Configuration for CRM114 library. // Copyright 2001-2010 William S. Yerazunis. // // This file is part of the CRM114 Library. // // The CRM114 Library is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // ...
alisaifee/pycrm114
include/crm114_config.h
C
mit
17,035
using MortgageCalc.Models; using System; using System.Collections.Generic; namespace MortgageCalc.Calculators { public class InterestOnlyScheduleBuilder { private RateCalc _calc = new RateCalc(6); // initialize with 6 decimal places private decimal _monthlyPayment; private decimal _pri...
shanegray/mortgage-calc
Calculators/InterestOnlyScheduleBuilder.cs
C#
mit
947
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes"> <title>grapp-core-ajax tests</title> <script src="../lib/web-component-tester/browser.js"></script> </head> <body> <script> WCT.loadSuites([ ...
grappendorf/grapp-core-ajax
test/index.html
HTML
mit
437
import Ember from 'ember'; import CheckboxMixin from '../mixins/checkbox-mixin'; export default Ember.Component.extend(CheckboxMixin, { type: 'checkbox', checked: false, onChange: function() { this.set('checked', this.$('input').prop('checked')); this.sendAction("action", { checked: this.get('chec...
CrshOverride/Semantic-UI-Ember
addon/components/ui-checkbox.js
JavaScript
mit
374
@ParametersAreNonnullByDefault package org.zalando.problem.spring.web.advice; import javax.annotation.ParametersAreNonnullByDefault;
zalando/problem-spring-web
problem-spring-web/src/main/java/org/zalando/problem/spring/web/advice/package-info.java
Java
mit
135
<?php use Stringizer\Stringizer; /** * Date Unit Tests */ class DateTest extends PHPUnit_Framework_TestCase { public function testValidDate() { date_default_timezone_set('America/Vancouver'); $s = new Stringizer("January 1st"); $this->assertEquals(true, $s->isDate()); $s = ...
jasonlam604/Stringizer
tests/DateTest.php
PHP
mit
705
""" Django settings for ross project. Generated by 'django-admin startproject' using Django 1.10.6. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os #...
rossplt/ross-django-utils
ross/settings.py
Python
mit
3,090
//////////////////////////////////////////////////////////////////////////////// //worldgenerator.cs //Created on: 2015-8-21, 18:18 // //Project VoxelEngine //Copyright C bajsko 2015. All rights Reserved. //////////////////////////////////////////////////////////////////////////////// using Microsoft.Xna.Framework; u...
bajsko/VoxelEngine
Game/WorldGenerator.cs
C#
mit
5,364
"use strict" var express = require('express'); var app = express(); var elasticsearch = require('elasticsearch'); var client = new elasticsearch.Client({ host: 'localhost:9200', log: 'trace' }); var router = express.Router(); router.get('/accidents', function(req, res) { var query = { index: 'wildmap', type: ...
Jugendhackt/wildmap
backend/index.js
JavaScript
mit
1,488
var generatetask = require('../source/ajgenesis/tasks/generate'), createtask = require('../create'), path = require('path'), fs = require('fs'), ajgenesis = require('ajgenesis'); exports['generate'] = function (test) { test.async(); var cwd = process.cwd(); process.ch...
ajlopez/AjGenesisNode-Sinatra
test/generate.js
JavaScript
mit
9,507
#include <math.h> #include <stdio.h> #include <pthread.h> #include <stdlib.h> #define THREAD_COUNT 4 typedef struct { int start; int end; } range_t; void *calculate_range(void* range) { range_t* curr_range = (range_t*)range; void* result = (void*)1; for (int i = curr_range->start; i < curr_range...
arnaudoff/elsys
2015-2016/operating-systems/threads_homework/main.c
C
mit
1,476
package com.virtualfactory.screen.layer.components; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.NiftyEventSubscriber; import de.lessvoid.nifty.controls.ButtonClickedEvent; import de.lessvoid.nifty.controls.Controller; import de.lessvoid.nifty.controls.window.WindowControl; import de.lessvoid.nifty.element...
uprm-gaming/virtual-factory
src/com/virtualfactory/screen/layer/components/FlowChartScreenController.java
Java
mit
4,455
const S$ = require('S$'); function loadSrc(obj, src) { throw src; } const cookies = S$.symbol('Cookie', ''); const world = {}; if (cookies) { if (/iPhone/.exec(cookies)) { loadSrc(world, '/resources/' + cookies); } loadSrc(world, '/resources/unknown'); } else { loadSrc(world, '/resources...
ExpoSEJS/ExpoSE
tests/regex/cookies/t1.js
JavaScript
mit
332
--- layout: post title: "Problem 2_0" modified: categories: /AcceleratedC++/ch2 excerpt: tags: [] image: feature: date: 2015-09-25T00:37:18-07:00 --- [Github Source](https://github.com/patricknyu/AcceleratedCPlusPlus/tree/master/ch2/Question2_0) ###Q: Compile and run the program presented in this chapter. ###A: `...
patricknyu/patricknyu.github.io
_posts/AcceleratedC++/ch2/2015-09-25-problem-2_0.markdown
Markdown
mit
1,557
module.exports = function (seneca, util) { //var Joi = util.Joi }
senecajs/seneca-dynamo-store
dynamo-store-doc.js
JavaScript
mit
68
package Digivolver; public class Digivolution{ private Digimon digimon; private int minDp = 0; private int maxDp = 0; public boolean isWithinDp(int minDp, int maxDp){ return this.minDp<=maxDp && this.maxDp>=minDp; } public Digivolution(Digimon digimon, int minDp, int maxDp) { this.digimon = digimon; thi...
mp-pinheiro/DW2Digivolver
src/Digivolver/Digivolution.java
Java
mit
580
import re import hashlib FNAME_MATCH = re.compile(r'/([^/]+)$') # From the last slash to the end of the string PREFIX = re.compile(r'([^:]+://)(/)?(.+)') # Check for a prefix like data:// def getParentAndBase(path): match = PREFIX.match(path) if match is None: if path.endswith('/'): st...
algorithmiaio/algorithmia-python
Algorithmia/util.py
Python
mit
1,473
#ifndef VECTOR4_H #define VECTOR4_H #include "gamemath_internal.h" GAMEMATH_NAMESPACE_BEGIN GAMEMATH_ALIGNEDTYPE_PRE class GAMEMATH_ALIGNEDTYPE_MID Vector4 : public AlignedAllocation { friend class Matrix4; friend GAMEMATH_INLINE Vector4 operator +(const Vector4 &a, const Vector4 &b); friend GAMEMATH_INLINE Vector4 ...
GrognardsFromHell/EvilTemple-GameMath
include/vector4.h
C
mit
5,340
/** * @file query.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * * 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 restri...
TileDB-Inc/TileDB
tiledb/sm/query/query.cc
C++
mit
69,785
class CreateProductMaterials < ActiveRecord::Migration[5.0] def change create_table :product_materials do |t| t.belongs_to :product, index: true t.string :name t.string :material t.string :description t.timestamps end end end
Klaital/abandonedforge.com
db/migrate/20160920213323_create_product_materials.rb
Ruby
mit
269
'use strict' var test = require('tap').test var strip = require('./') test('stripFalsy', function(t) { t.plan(5) t.deepEqual(strip(null), {}) t.deepEqual(strip('test'), {}) t.deepEqual(strip(13), {}) t.deepEqual(strip(), {}) var input = { a: false , b: 0 , c: null , d: undefined , e: '' , f...
helpdotcom/strip-falsy
test.js
JavaScript
mit
433
<?php /** * [WeEngine System] Copyright (c) 2014 WE7.CC * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details. */ defined('IN_IA') or exit('Access Denied'); load()->func('file'); load()->model('article'); load()->model('account'); $dos = array('display', 'post', ...
justzheng/test1
web/source/site/article.ctrl.php
PHP
mit
9,565
<?php namespace Kr\OAuthClient\Credentials; class Client extends AbstractCredentials { protected $clientId, $clientSecret, $redirectUri; /** * Client constructor. * @param string $clientId * @param string $clientSecret * @param string $redirectUri */ public function __construct($c...
koenreiniers/oauth-client
src/Credentials/Client.php
PHP
mit
1,264
$(function () { $('.imageUploadMultiple').each(function (index, item) { var $item = $(item); var $group = $item.closest('.form-group'); var $innerGroup = $item.find('.form-group'); var $errors = $item.find('.errors'); var $input = $item.find('.imageValue'); var flow =...
Asvae/SleepingOwlAdmin
resources/assets/js/form/image/initMultiple.js
JavaScript
mit
2,178
vk_wiki_manager ===============
toydestroyer/vk_wiki_manager
README.md
Markdown
mit
32
#!/bin/bash f="$1" d="$2" CURRENT_DIR=$( pushd $(dirname $0) >/dev/null; pwd; popd >/dev/null ) if [ ! -d $d ]; then echo "$d is not found" exit 2 fi F="$d/$f" if [ -f "$F" ]; then s1=`wc -c "$f" | cut -d ' ' -f 1` s2=`wc -c "$F" | cut -d ' ' -f 1` if [ $s1 -eq $s2 ]; then cksum1=`md5sum -b "$f" | cut...
pavel-voinov/ghost-tools
check_file.sh
Shell
mit
693
module Schema include Virtus.module(:constructor => false, :mass_assignment => false) def initialize set_default_attributes end def attributes attribute_set.get(self) end def to_h attributes end end
obsidian-btc/schema
lib/schema/schema.rb
Ruby
mit
228
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for DSA-3663-1 # # Security announcement date: 2016-09-09 00:00:00 UTC # Script generation date: 2017-01-01 21:08:13 UTC # # Operating System: Debian 8 (Jessie) # Architecture: i386 # # Vulnerable packages fix on version: # - xen:4.4.1-9+deb8u7 # - libxen-4.4:4...
Cyberwatch/cbw-security-fixes
Debian_8_(Jessie)/i386/2016/DSA-3663-1.sh
Shell
mit
1,783
/** * k-d Tree JavaScript - V 1.01 * * https://github.com/ubilabs/kd-tree-javascript * * @author Mircea Pricop <pricop@ubilabs.net>, 2012 * @author Martin Kleppe <kleppe@ubilabs.net>, 2012 * @author Ubilabs http://ubilabs.net, 2012 * @license MIT License <http://www.opensource.org/licenses/mit-license.p...
tsurantino/roadtrip
lib/kdTree.js
JavaScript
mit
13,331
// function that finds the sum of two parameters function findSum(firstnr, secondnr){ return firstnr + secondnr; } //function that finds the product of two parameters function findProduct(firstnr, secondnr){ return firstnr * secondnr; } /* threeOperation calls the operation parameter as a function so it's able to r...
InekeScheffers/NYCDA-individual-assignments
09-29-2016-Anonymous-Functions-Practice/Anonymous Functions Practice.js
JavaScript
mit
1,060
// // LJRouterPath.h // LJControllerRouterExample // // Created by Jinxing Liao on 12/14/15. // Copyright © 2015 Jinxing Liao. All rights reserved. // #import <Foundation/Foundation.h> @interface LJRouterPath : NSObject @property (nonatomic, strong) NSString *schema; @property (nonatomic, strong) NSArray *compo...
liaojinxing/LJURLRouter
LJURLRouter/LJRouterPath.h
C
mit
439
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Everyplay.XCodeEditor { public class XCConfigurationList : PBXObject { public XCConfigurationList(string guid, PBXDictionary dictionary) : base(guid, dictionary) { internalNewlines = true; } } }
uareurapid/balloonquest
Assets/Editor/Everyplay/XCodeEditor/XCConfigurationList.cs
C#
mit
305
// GPG4Browsers - An OpenPGP implementation in javascript // Copyright (C) 2011 Recurity Labs GmbH // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2.1 of the Lice...
openilabs/crypto
node_modules/openpgp/src/packet/sym_encrypted_session_key.js
JavaScript
mit
5,248
""" train supervised classifier with what's cooking recipe data objective - determine recipe type categorical value from 20 """ import time from features_bow import * from features_word2vec import * from sklearn.preprocessing import StandardScaler from sklearn.ensemble import RandomForestClassifier, ExtraTreesClassifie...
eifuentes/kaggle_whats_cooking
train_word2vec_rf.py
Python
mit
1,909
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015-2018 CERN. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Configuration options for Invenio-Search. The documentation for the configuration...
inveniosoftware/invenio-search
invenio_search/config.py
Python
mit
3,755
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class SettingController * * @author The scaffold-interface created at 2016-08-25 01:07:35am * @link https://github.com/amranidev/scaffold-interface */ class Setting extends Model { use So...
UnrulyNatives/helpers-for-laravel-projects
src/unstarter_models/Avatar.php
PHP
mit
408
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title>DSJCL</title> <!-- Bootstrap core CSS --> <link href="...
DaviesSouthJCL/DaviesSouthJCL.github.io
contact.html
HTML
mit
6,256
package net.robobalasko.dfa.gui; import net.robobalasko.dfa.core.Automaton; import net.robobalasko.dfa.core.exceptions.NodeConnectionMissingException; import net.robobalasko.dfa.core.exceptions.StartNodeMissingException; import javax.swing.*; import javax.swing.border.EmptyBorder; import javax.swing.event.DocumentEve...
robobalasko/DFA-Simulator
src/main/java/net/robobalasko/dfa/gui/MainFrame.java
Java
mit
3,007
--- types: - utility id: d5ee1b1e-0ffa-45cd-b3aa-bfecb9a93325 --- Converts all tabs in a string to a given number of spaces, `4` by default. This is a boring modifier to output examples of. Here's just a few examples on how the syntax looks. ``` {{ string | to_spaces }} {{ string | to_spaces:2 }} ```
JesseLeite/docs
content/collections/modifiers/to_spaces.md
Markdown
mit
305
from __future__ import unicode_literals from django.apps import AppConfig class RfhistoryConfig(AppConfig): name = 'RFHistory'
Omenia/RFHistory
ServerApp/apps.py
Python
mit
134
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "db.h" #include "init.h" #include "bitcoinrpc.h" using name...
frontibit/riestercoin
src/rpcmining.cpp
C++
mit
21,117
<!DOCTYPE html> <html lang="de"> <head> <meta charset="utf-8"> <title>Interlude</title> </head> <link href="css/interlude.css" media="screen" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script> <script src="http://ajax.googleapis.com/ajax/l...
Phalanstere/interlude
index.html
HTML
mit
1,138
#ifndef _PARSER_HPP #define _PARSER_HPP #include <cassert> #include <iostream> #include <vector> #include <string> #include <cstdlib> #include "toyobj.hpp" #include "lexer.hpp" #include "toy.hpp" #include "ast.hpp" class ParserContext { public: explicit ParserContext(LexerContext &lexer) : lexer_(lexer)...
helgefmi/Toy
src/parser.hpp
C++
mit
1,288
require 'aws-sdk' require 'awspec/resource_reader' require 'awspec/helper/finder' module Awspec::Type class Base include Awspec::Helper::Finder include Awspec::BlackListForwardable attr_accessor :account def resource_via_client raise 'this method must be override!' end def to_s ...
AgarFu/awspec
lib/awspec/type/base.rb
Ruby
mit
1,180
## Next * Improved Spotlight support for favorites. - alloy ## 2.3.0 (2015.09.18) * Add support for Universal Links on iOS 9. - alloy * Add support for Web-to-Native Handoff. - alloy * Make CircleCI work again by adding the `build` action to the `test` task to ensure the simulator is running. - alloy * Remove `?foo=...
Havi4/eigen
docs/BETA_CHANGELOG.md
Markdown
mit
838
// // EPTTimer.h // PodcastTimer // // Created by Eric Jones on 6/7/14. // Copyright (c) 2014 Effective Programming. All rights reserved. // #import <Foundation/Foundation.h> @protocol EPTTimerDelegate <NSObject> - (void)timerFired; @end @interface EPTTimer : NSObject @property (nonatomic) id<EPTTimerDelegat...
EffectiveProgramming/PodcastTimer-iPad
PodcastTimer/PodcastTimer/EPTTimer.h
C
mit
382
--- layout: page title: Floyd Aerospace Seminar date: 2016-05-24 author: Jonathan Jarvis tags: weekly links, java status: published summary: Etiam dictum facilisis massa, iaculis varius. banner: images/banner/wedding.jpg booking: startDate: 09/21/2019 endDate: 09/24/2019 ctyhocn: BTVMVHX groupCode: FAS publishe...
KlishGroup/prose-pogs
pogs/B/BTVMVHX/FAS/index.md
Markdown
mit
1,641
package core import ( . "github.com/smartystreets/goconvey/convey" "strings" "testing" ) func TestValidateSymbol(t *testing.T) { Convey("Given a node name validation function", t, func() { cases := []struct { title string name string success bool }{ {"an empty string", "", false}, {"one al...
sensorbee/sensorbee
core/node_test.go
GO
mit
2,068
require './lib/graph' require './lib/path_measurer' require './lib/path_searcher' require './lib/path_explorer' require './lib/exact_path_length_checker' require './lib/max_path_distance_checker' require './lib/max_path_length_checker' edges = [] $stdin.each_line do | line | line.strip! edges.concat line.split(/\s|...
heldtogether/train-scheduler
main.rb
Ruby
mit
2,290
export default { FETCH_TAGS_PENDING: Symbol("FETCH_TAGS_PENDING"), FETCH_TAGS_SUCCESS: Symbol("FETCH_TAGS_SUCCESS"), FETCH_TAGS_FAILURE: Symbol("FETCH_TAGS_FAILURE"), FILTER_TAGS: Symbol("FILTER_TAGS"), ORDER_TAGS: Symbol("ORDER_TAGS") };
danjac/photoshare
ui/actionTypes/tags.js
JavaScript
mit
251
<?php /** * summary */ class Product extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model('product_model'); } function index(){ $total = $this->product_model->get_total(); $this->data['total'] = $total; //load t...
mrthanhtan22/vemaybay
application/controllers/admin/Product.php
PHP
mit
11,577
import { Injectable } from '@angular/core'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database'; import { AngularFireAuth } from 'angularfire2/auth'; import * as firebase from 'firebase/app'; import {Ht...
alimcharaniya/uniformlab-v3
src/services/auth.service.ts
TypeScript
mit
1,321
/** * * @function * @param {Array|arraylike} value * @param {Function} cmd * @param {any} context * @returns {?} */ export default function eachValue(value, cmd, context, keepReverse) { if (value === undefined || value === null) return undefined; const size = (0 | value.length) - 1; for (let index = size; ind...
adriancmiranda/describe-type
internal/eachValue.next.js
JavaScript
mit
568
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.2 * @date Sat Jan 31 20:59:02 EST 2015 * @see LICENSE (MIT style license file). */ package scalation.analytics import scalation.linalgebra.{MatriD, MatrixD, VectorD} //::::::::::::::::...
mvnural/scalation
src/main/scala/scalation/analytics/Centering.scala
Scala
mit
1,112
const should = require('should'), sinon = require('sinon'), _ = require('lodash'), settingsCache = require('../../../../server/services/settings/cache'), common = require('../../../../server/lib/common'), controllers = require('../../../../server/services/routing/controllers'), TaxonomyRouter = ...
dbalders/Ghost
core/test/unit/services/routing/TaxonomyRouter_spec.js
JavaScript
mit
3,184
<?php use Snscripts\HtmlHelper\Html; use Snscripts\HtmlHelper\Services; use Snscripts\HtmlHelper\Helpers; class HtmlTest extends \PHPUnit_Framework_TestCase { public function testCanCreateInstance() { $this->assertInstanceOf( 'Snscripts\HtmlHelper\Html', new Html( ...
snscripts/html-helper
Tests/HtmlTest.php
PHP
mit
9,524
<?php /*============================================================================== * (C) Copyright 2016,2020 John J Kauflin, All rights reserved. *---------------------------------------------------------------------------- * DESCRIPTION: Functions to validate Admin operations (i.e. check permissions * par...
jkauflin/hoadb
adminValidate.php
PHP
mit
3,993
<h1>Access Denied</h1> <p>You have logged in correctly, but you have tried to access a page without a high enough level of security clearance.</p>
tonymarklove/wool
views/user/admin_denied.php
PHP
mit
147
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="generator" content="Doxygen 1.8.11"/> <link rel="stylesheet" type="text/css" href="se...
yurikoma/PhysicsForGamesAIE_StudentWork
dependencies/glfw/docs/html/search/all_6.html
HTML
mit
1,039