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 |
|---|---|---|---|---|---|
<html>
<head>
<link rel="stylesheet" type="text/css" href="/css/c3.css">
</head>
<body>
<div id="chart"></div>
<script src="http://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<script src="/js/c3.js"></script>
<script>
var columns = [];
for (var i = 0; i < 5; i++ ) {
... | tuandinhvu/v2CRM | public/plugins/c3-0.5.4/htdocs/samples/api_legend.html | HTML | mit | 2,644 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import itertools
import json
import os
import unittest
import numpy as np
from monty.json import MontyDecoder
from pymatgen.core.periodic_table import Element
from pymatgen.core.lattice import Lattice
from p... | richardtran415/pymatgen | pymatgen/analysis/tests/test_structure_matcher.py | Python | mit | 47,994 |
#ifndef SRC_NODE_LTTNG_PROVIDER_H_
#define SRC_NODE_LTTNG_PROVIDER_H_
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
#define TRACEPOINT_CREATE_PROBES
#define TRACEPOINT_DEFINE
#include "node_lttng_tp.h"
namespace node {
#define FOR_ALL_GC_TYPES(APPLY) \
APPLY(kGCTypeScavenge) \
APPLY(kGCTypeMarkSweepCo... | hoho/dosido | nodejs/src/node_lttng_provider.h | C | mit | 3,638 |
var global = require('../internals/global');
var getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
var redefine = require('../internals/redefine');
var setGlobal = require('../internals/set-g... | zloirock/core-js | packages/core-js/internals/export.js | JavaScript | mit | 2,597 |
#!/bin/bash
set -e
/work/prepare_repo.sh
#source emsdk/emsdk_env.sh
cd duktape
/bin/bash --login
| svaarala/duktape | docker/duktape-shell-ubuntu-20.04-arm64/run.sh | Shell | mit | 101 |
// word frequencies of first two chapters of Oliver Twist
var words = [
{text: 'have', size: 102},
{text: 'Oliver', size: 47},
{text: 'say', size: 46},
{text: 'said', size: 36},
{text: 'bumble', size: 29, href: 'https://en.wikipedia.org/wiki/Beadle'},
{text: 'will', size: 29},
{text: 'Mrs', size: 56, href... | wvengen/d3-wordcloud | example/example.words.js | JavaScript | mit | 34,916 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="./../../helpwin.css">
<title>MATLAB File Help: prtPreProcPca/isCrossValidateValid</title>
</head>
<body>
<!--Single-page help-->
<table border="0" cellspacing="0" wid... | jpalves/PRT | doc/functionReference/prtPreProcPca/isCrossValidateValid.html | HTML | mit | 1,937 |
<!DOCTYPE html>
<html>
<head>
<title>label examples</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="description" content="An example of drawing shapes with labels">
<meta name="author" content="Ryan Westph... | bertomartin/geo | docs/examples/label.html | HTML | mit | 3,269 |
<html lang="en">
<head>
<title>Copying - Using the GNU Compiler Collection (GCC)</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Using the GNU Compiler Collection (GCC)">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<... | sahdman/rpi_android_kernel | toolchain/gcc-arm-none-eabi-4_6-2012q2/share/doc/html/gcc/Copying.html | HTML | mit | 39,442 |
'use strict';
const cleanup = require('rollup-plugin-cleanup');
const common = require('rollup-plugin-commonjs');
const node = require('rollup-plugin-node-resolve');
const path = require('path');
const pkg = require('../package.json');
const rollup = require('rollup').rollup;
/**
* Wrap a bundled dependency for cons... | gistnu/tru-workshop | bower_components/openlayers/tasks/build-ext.js | JavaScript | mit | 2,100 |
# Lotus
A complete web framework for Ruby
## v0.3.0 - 2015-03-23
### Added
- [Luca Guidi] Introduced action generator. Eg. `bundle exec lotus generate action web dashboard#index`
- [Alfonso Uceda Pompa] Allow to specify default coookies options in application configuration. Eg. `cookies true, { domain: 'lotusrb.org' }... | nguyenngoc2505/lotus | CHANGELOG.md | Markdown | mit | 6,004 |
#!/usr/bin/env python3
# Copyright (c) 2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test NULLDUMMY softfork.
Connect to a single node.
Generate 2 blocks (save the coinbases for later).
Genera... | isle2983/bitcoin | qa/rpc-tests/nulldummy.py | Python | mit | 6,648 |
@font-face {
font-family: 'shabnam';
src: url('../fonts/Shabnam.eot');
src: url('../fonts/Shabnam.eot?#iefix') format('embedded-opentype'),
url('../fonts/Shabnam.woff') format('woff'),
url('../fonts/Shabnam.ttf') format('truetype');
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: '... | MahdiMajidzadeh/qomlug | static/css/main.css | CSS | mit | 4,924 |
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | galaxyproject/starforge | docs/Makefile | Makefile | mit | 7,421 |
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
import os
from django.core.exceptions import PermissionDenied
from apps.gallery.models import Gallery
from apps.gallery.models import Picture
from apps.team.utils import asse... | F483/bikesurf.org | apps/gallery/control.py | Python | mit | 2,303 |
/*
newroot.c
Replace the current root with a new one
*/
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
void usage(void) {
fprintf(stderr, "Usage: newroot [-i] <block-special>\n");
fprintf(stderr, "-i: copy mfs binary from boot image to memory\n");... | ducis/operating-system-labs | src.clean/commands/newroot/newroot.c | C | mit | 874 |
---
title: "Using Logstash with OpenBMP"
date: 2017-01-04T15:04:10.000Z
---
# Using Logstash with OpenBMP
## Installing Logstash
[Visit download page](https://www.elastic.co/downloads/logstash)
## Starting logstash
Go to your logstash installation location, and run
`logstash -f openbmp-logstash.conf`
## Expanding
... | SNAS/website | site/content/docs/logstash.md | Markdown | mit | 8,291 |
var gulp = require('gulp');
var paths = require('../paths');
var tslint = require('gulp-tslint');
gulp.task('lint', function () {
return gulp.src(paths.source)
.pipe(tslint({
formatter: "verbose"
}))
.pipe(tslint.report())
}); | abeven/aurelia-oauth | build/tasks/lint.js | JavaScript | mit | 247 |
using Skybrud.Social.Json;
namespace Skybrud.Social.Instagram.Objects {
public class InstagramImageSummary : SocialJsonObject {
#region Properties
public InstagramMediaSummary LowResolution { get; private set; }
public InstagramMediaSummary Thumbnail { get; private set; }
public ... | emilmoe/Skybrud.Social | src/Skybrud.Social/Instagram/Objects/InstagramImageSummary.cs | C# | mit | 1,341 |
using System;
using System.Text;
using Bloom.Api;
using Bloom.ErrorReporter;
using Bloom.MiscUI;
using Bloom.web.controllers;
using BloomTests.DataBuilders;
using Moq;
using NUnit.Framework;
using SIL.Reporting;
namespace BloomTests.ErrorReporter
{
[TestFixture]
public class HtmlErrorReporterTests
{
private stri... | StephenMcConnel/BloomDesktop | src/BloomTests/ErrorReporter/HtmlErrorReporterTests.cs | C# | mit | 11,772 |
---
title: Pristavi u Novom zavetu
date: 29/01/2018
---
I u Starom i u Novom zavetu pojam pristava određuje se po tome šta radi. Posebno Novi zavet opisuje pristava u smislu odgovornosti (Luka 12,48) i očekivanja (1. Korinćanima 4,2). Stari zavet je više usredsređen na objavljivanje Božjeg vlasništva nego na neposr... | PrJared/sabbath-school-lessons | src/sr/2018-01/05/03.md | Markdown | mit | 2,044 |
/*
* The MIT License
*
* Copyright (c) 2010, Winston.Prakash@oracle.com, CloudBees, 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 restriction, including without limi... | aldaris/jenkins | core/src/main/java/hudson/views/ViewsTabBar.java | Java | mit | 4,437 |
---
title: Pendalaman
date: 03/11/2017
---
Bacalah buku Ellen G. White, “Christ the Center of the Message,” hlm. 388, dalam Selected Messages, jld. 1; “Panggilan kepada Abraham,” hlm. 136-144; “Hukum dan Perjanjian,” hlm. 430-444, dalam Alfa dan Omega, jld. 1; “Khotbah dia Atas Bukit,” Alfa dan Omega jld. 5, hlm. 3... | PrJared/sabbath-school-lessons | src/in/2017-04/05/07.md | Markdown | mit | 2,711 |
/*******************************************************************************
* ENdoSnipe 5.0 - (https://github.com/endosnipe)
*
* The MIT License (MIT)
*
* Copyright (c) 2012 Acroquest Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this s... | t-hiramatsu/ENdoSnipe | Dashboard/src/main/java/jp/co/acroquest/endosnipe/web/explorer/entity/MeasurementData.java | Java | mit | 2,051 |
---
layout: post
title: 键盘那些事,hhkb开箱
category: 生活
tags: 键盘
keywords: keyboard,hhkb,电容键盘,机械键盘
description:
---
最为一个有追求的程序员,一块好的键盘是非常有必要的,键盘对于程序员,就好比是篮球运动员的球鞋,斯诺克球手的球杆,f1赛车手的方向盘,歌手的麦克风等等,好的键盘只有一个感觉,让你敲起来很爽。借着这次新入手的一块hhkb type-s,和大家聊聊自己对键盘的一些个人感受。
就像鼠标一样,根据原理,可以分为机械鼠标,光电鼠标,激光鼠标。键盘按照原理,可以分为薄膜键盘、机械键盘、电容键盘。从外观上是看不出来三种键盘的... | cnbin/coolnameismy.github.io | _posts/life/2015-08-23-life-keyboardAndHHKB.md | Markdown | mit | 12,086 |
import * as Cookies from 'js-cookie';
import axios from 'axios';
import { route } from 'preact-router';
function storeUserCredentials({ user, accessToken, expires }) {
Cookies.set('crendentials', { user, accessToken }, { expires: new Date(expires) });
}
export function getUserCredentials() {
return Cookies.getJSO... | josuemontano/API-platform | src/assets/js/utils/auth.js | JavaScript | mit | 956 |
<div class="basic-merge-blanks">
<div>
<p>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd
... | julmot/jquery.mark | test/fixtures/basic/merge-blanks.html | HTML | mit | 1,610 |
---
title: Для подальшого дослідження
date: 22/09/2017
---
«Божий Дух стримує зло за допомогою совісті людини. Коли людина звеличує себе над Святим Духом, вона пожинає плоди свого беззаконня. Вплив Духа на таку людину зменшується, і Йому стає все складніше стримувати непослух, який вона всюди сіє. Застереження для ... | PrJared/sabbath-school-lessons | src/uk/2017-03/13/07.md | Markdown | mit | 4,130 |
#ifdef HAVE_CONFIG_H
#include "../ext_config.h"
#endif
#include <php.h>
#include "../php_ext.h"
#include "../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/memory.h"
#include "kernel/fcall.h"
#include "kernel/oper... | imadige/zephirbuild | zephir/ext/test/range.zep.c | C | mit | 1,311 |
import _curry2 from './_curry2.js';
import _xfBase from './_xfBase.js';
function XDropLast(n, xf) {
this.xf = xf;
this.pos = 0;
this.full = false;
this.acc = new Array(n);
}
XDropLast.prototype['@@transducer/init'] = _xfBase.init;
XDropLast.prototype['@@transducer/result'] = function(result) {
this.acc = n... | CrossEye/ramda | source/internal/_xdropLast.js | JavaScript | mit | 874 |
class F001_Annotations {
{
@SuppressWarnings("all")
int i = 5;
@SuppressWarnings({"all", "non-existent"})
int more = 5;
@SuppressWarnings(value = "all")
int single = 5;
@SuppressWarnings(value = {"all", "non-existent"})
int full = 5;
}
@Ov... | rzwitserloot/lombok.ast | test/resources/idempotency/F001_Annotations.java | Java | mit | 546 |
import {Component, ViewEncapsulation} from '@angular/core';
import {BaCard, BaAmChart} from '../../../../theme/components';
import {LineMapsService} from './lineMaps.service';
@Component({
selector: 'line-maps',
pipes: [],
providers: [LineMapsService],
encapsulation: ViewEncapsulation.None,
styles: [require... | nvoleau/sondage | src/app/pages/maps/components/lineMaps/lineMaps.component.ts | TypeScript | mit | 584 |
(function() {
var $, Builder, Events, SelfClosingTags, Tags, View, callAttachHook, docEl, exports, idCounter, jQuery, matches, matchesSelector, methodName, originalCleanData, _, _fn, _fn1, _i, _j, _len, _len1, _ref, _ref1,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in pa... | atom/space-pen | dist/space-pen.js | JavaScript | mit | 19,758 |
<?php
/**
* Created by PhpStorm.
* User: faustos
* Date: 31.03.14
* Time: 21:28
*/
namespace Tixi\ApiBundle\Shared\DataGrid\Tile;
use Tixi\ApiBundle\Shared\DataGrid\DataGridOutputState;
use Tixi\ApiBundle\Tile\AbstractTile;
/**
* Class DataGridRowTableTile
* @package Tixi\ApiBundle\Shared\DataGrid\Tile
*/
c... | TIXI24/sfitixi | src/Tixi/ApiBundle/Shared/DataGrid/Tile/DataGridRowTableTile.php | PHP | mit | 1,055 |
#!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the -uacomment option."""
from test_framework.test_framework import PivxTestFramework
from test_framew... | Mrs-X/PIVX | test/functional/feature_uacomment.py | Python | mit | 1,480 |
module.exports = require('regenerate')().addRange(0x10350, 0x1037A);
| Engineering-Robert/personal-website | plugins/gatsby-plugin-feed-custom/node_modules/regenerate-unicode-properties/Script/Old_Permic.js | JavaScript | mit | 69 |
<p>Welcome</p> | przemek-nowicki/widget-project | src/home/home.ctrl.html | HTML | mit | 14 |
# -*- python -*-
# Copyright (C) 2009 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
... | ljnissen/shop_engine | mingw/lib/gcc/mingw32/4.5.2/libstdc++.dll.a-gdb.py | Python | mit | 2,316 |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2022 Marvell.
*/
#include "cn10k_worker.h"
#include "cnxk_eventdev.h"
#include "cnxk_worker.h"
#define R(name, flags) \
SSO_CMN_DEQ_SEG_BURST(cn10k_sso_hws_deq_seg_burst_##name, \
c... | john-mcnamara-intel/dpdk | drivers/event/cnxk/deq/cn10k/deq_64_79_seg_burst.c | C | mit | 546 |
/*
CryptoJS v3.1.2
enc-base64.js
code.google.com/p/crypto-js
(c) 2009-2013 by Jeff Mott. All rights reserved.
code.google.com/p/crypto-js/wiki/License
*/
(function () {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
var WordArray = C_lib.WordArray;
var C_enc = C.enc;
/**
* Base64 encoding strat... | edewit/sync-app | www/lib/fh-js-sdk/libs/cryptojs/cryptojs-enc-base64.js | JavaScript | mit | 2,871 |
(function ($) {
/* -------- *
* DOM LOAD *
* -------- */
$(document).ready(function() {
// Slider
$('.slider').slider({full_width: true});
// Carousel
$('.carousel.carousel-slider').carousel({full_width: true});
$('.carousel').carousel();
});
}(jQuery)); | si-quimera/avante | webroot/js/pages/js_media.js | JavaScript | mit | 285 |
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
//sidebar
.state('news', {
url: "/news",
abstract: true,
templateUrl: "templates/sidebar-menu.html"
})
// Blog page
.state('news.home', {
url: "/home",
cache : false,
views: {
'menuWorPress'... | bipinu2/AfnaiNews | www/js/router.js | JavaScript | mit | 2,203 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System.Runtime.CompilerServices;
#if SIGN
[assembly: InternalsVisibleTo("Microsoft.R.Host.Client, PublicKey=00240000048000009400000006020000002400005253413100... | AlexanderSher/RTVS | src/Common/Core/Impl/Properties/AssemblyInfo.cs | C# | mit | 2,084 |
/* Copyright (c) 2016 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... | lab11/nrf5x-base | sdk/nrf5_sdk_12.2.0/components/libraries/experimental_eddystone/es_battery_voltage_adc.c | C | mit | 3,002 |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | xsilium-frameworks/xsilium-engine | Library/Ogre/RenderSystems/GL/src/OgreGLEngineDll.cpp | C++ | mit | 1,775 |
<?php
namespace GingerPayments\Payment\Order;
final class Extra
{
/**
* @var array|null
*/
private $extra;
/**
* @param array $details
* @return Extra
*/
public static function fromArray(array $details)
{
return new static($details);
}
/**
* @return ... | gingerpayments/ginger-opencart | upload/system/library/gingerpayments/ginger-php/src/Order/Extra.php | PHP | mit | 662 |
import {
GraphQLScalarType,
GraphQLFieldResolver,
GraphQLTypeResolver,
GraphQLIsTypeOfFn,
} from 'graphql';
import { makeExecutableSchemaWithCacheControlSupport } from './cacheControlSupport';
import { CacheScope } from '../';
import { collectCacheControlHints } from './collectCacheControlHints';
export inter... | AntonyThorpe/knockout-apollo | tests/node_modules/apollo-cache-control/src/__tests__/dynamicCacheControl.test.ts | TypeScript | mit | 3,655 |
class Key;
class Value;
class SortAlgorithm;
class DefaultSort;
class T;
class X;
class Y;
class Bar;
class Foo {
template<class Bar> void fum(int i);
};
// TEMPLATE_STRUCT
template<class Key, class Value, class SortAlgorithm=DefaultSort>
struct Map
{
Key* keys;
Value* values;
SortAlgorithm* sortAlgorithm;
Map();... | Yuerr14/RepeatedFixes | RepeatedFixes/resources/cmodel/ITemplate.cpp | C++ | mit | 1,304 |
<section class="mainbar">
<section class="matter">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="btn-group pull-right">
<button class="btn btn-info btn-form-md"
data-ng-click=... | kyroskoh/breeze.js.samples | net/ngNorthwind/src/client/app/products/products.html | HTML | mit | 3,353 |
import { expect } from 'chai';
import votesReducer from './';
describe('votesReducer', () => {
describe('#votesReducer()', () => {
it('should increment party votes by 1', () => {
const newState = votesReducer({ PARTY_CODE: 25 }, { type: 'VOTE', partyCode: 'PARTY_CODE' });
expect(newState).to.deep.e... | aruberto/political-party-app | stages/stage-4.3/reducers/test.js | JavaScript | mit | 364 |
class AddIndicesToForeignKeys < ActiveRecord::Migration
def change
add_index :anchor_url_certs, :anchor_url_id
add_index :anchor_urls, :trusted_anchor_id
add_index :auth_certs, :security_server_id
add_index :ca_infos, :top_ca_id
add_index :ca_infos, :intermediate_ca_id
add_index :central_ser... | ria-ee/X-Road | src/center-common/db/migrate/20150505101824_add_indices_to_foreign_keys.rb | Ruby | mit | 1,558 |
<?php namespace Anomaly\Streams\Platform\Model;
use Anomaly\Streams\Platform\Support\Hydrator;
use Anomaly\Streams\Platform\Traits\FiresCallbacks;
use Illuminate\Contracts\Container\Container;
use Illuminate\Foundation\Bus\DispatchesJobs;
/**
* Class EloquentFactory
*
* @link http://pyrocms.com/
* @author PyroC... | vileopratama/portal-toyotadjakarta | vendor/anomaly/streams-platform/src/Model/EloquentFactory.php | PHP | mit | 1,629 |
@extends("layout")
@section("content")
{{ Form::open([
"url" => URL::full(),
"autocomplete" => "off"
]) }}
{{ Form::field([
"name" => "name",
"label" => "Name",
"form" => $form,
"placeholder" => "new group",
... | deannariddlespur/tutorial | app/views/group/edit.blade.php | PHP | mit | 583 |
//===-- MachODump.cpp - Object file dumping utility for llvm --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | silverneko/HWs | compiler-hw-2-master/hw3/llvm-3.8.0.src/tools/llvm-objdump/MachODump.cpp | C++ | mit | 333,100 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\PaymentBundle\Form\Type\EventListener;
use PhpSpec\ObjectBehavior;
use S... | pfwd/Sylius | src/Sylius/Bundle/PaymentBundle/spec/Form/Type/EventListener/BuildPaymentMethodFeeCalculatorFormSubscriberSpec.php | PHP | mit | 4,619 |
var S_ITER$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol.iterator||'@@iterator';var S_MARK$0 = typeof Symbol!=='undefined'&&Symbol&&Symbol["__setObjectSetter__"];function ITER$0(v,f){if(v){if(Array.isArray(v))return f?v.slice():v;var i,r;if(S_MARK$0)S_MARK$0(v);if(typeof v==='object'&&typeof (f=v[S_ITER$0])==='functi... | arve0/es6-transpiler | tests/es6-destructuring5-out.js | JavaScript | mit | 2,180 |
class User < ActiveRecord::Base
has_secure_password validations: false
# Scopes
#
scope :hosted, -> { where(hosted: true) }
scope :remote, -> { where(hosted: false) }
# Validations
#
validates :domain, :url,
presence: true,
uniqueness: true
validates :password,
presence: { on: :create }... | hmans/pants | app/models/user.rb | Ruby | mit | 4,487 |
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AutoMapper.QueryableExtensions;
using GRA.Domain.Model;
using GRA.Domain.Model.Filters;
using GRA.Domain.Repository;
using GRA.Domain.Repository.Extensions;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
... | haraldnagel/gra4 | src/GRA.Data/Repository/ChallengeGroupRepository.cs | C# | mit | 7,420 |
<table class="ui very basic celled table">
<thead>
<tr>
<th>Nom complet</th>
<th>Téléphone</th>
<th>Adresse mail</th>
<th>JEH assignés</th>
<th>Paie par JEH</th>
<th>Actions</th>
</tr>
</thead>
<tfoot ng-if="projectService.selectedProject.userHasRights... | nsorin/DoleticRESTClient | app/components/ua/projectDetailsTab/consultant-table/consultant-table.template.html | HTML | mit | 2,531 |
package org.multibit.hd.ui.fest.use_cases.keepkey;
import org.fest.swing.fixture.FrameFixture;
import org.multibit.hd.testing.hardware_wallet_fixtures.HardwareWalletFixture;
import org.multibit.hd.ui.fest.use_cases.AbstractHardwareWalletFestUseCase;
import java.util.Map;
/**
* <p>Use case to provide the following t... | bitcoin-solutions/multibit-hd | mbhd-swing/src/test/java/org/multibit/hd/ui/fest/use_cases/keepkey/KeepKeyRequestMasterPublicKeyUseCase.java | Java | mit | 1,081 |
$(document).ready(function() {
$(".issue-list").on("click", "div", function() {
$(".issue-list .selected").removeClass("selected");
$(this).addClass("selected");
});
$('[data-behaviour="issue-view"]').on("click", "button", function() {
var view = "issue-" + $(this).data("view");
$(".issue-list"... | loz/tyne-core | vendor/assets/javascripts/tyne_core/issue_selection.js | JavaScript | mit | 441 |
#include <iostream>
#include <stdexcept>
using std::cout;
using std::endl;
struct my_exception : public virtual std::runtime_error {
// To allow this to be thrown directly in the tests below.
explicit my_exception(const std::string &what)
: std::runtime_error(what)
{}
protected:
my_exception()
//... | processwarp/processwarp | test/emscripten/core/test_exceptions_virtual_inheritance.cpp | C++ | mit | 693 |
<!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">
<title>Julia Package Listing - Testing Information</title>
<style>
/* -- Mix of julialang.org, Bootstrap ... | IainNZ/packages.julialang.org | detail/ReduceAlgebra.html | HTML | mit | 8,759 |
<a href='https://github.com/angular/angular.js/edit/v1.4.x/src/Angular.js?message=docs(angular.isDate)%3A%20describe%20your%20change...#L486' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a>
<a href='https://github.com/angular/angular.js/tree/v1.4.0-beta.3/src/A... | parinyacp/helpdesk | website/public_html/js/asset/angular/docs/partials/api/ng/function/angular.isDate.html | HTML | mit | 1,678 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport"/>
<meta content="telephone=no" name="format-detection"/>
<meta content="address=no" name="format-detection"/>
<title> 臑俞穴
</title>
<link href="./css/reset.css?... | hucaihua/cmssp | server/html/point/412.html | HTML | mit | 1,272 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
namespace CacheCow.Tests.Server.Integration.MiniServer
{
public class InMemoryServer: HttpMessageHandler
{
private H... | Hotkey/CacheCow | test/CacheCow.Tests/Server/Integration/MiniServer/InMemoryServer.cs | C# | mit | 815 |
#include <memory>
template <typename T>
class queue {
public:
queue() : _head(new node()), _tail(_head.get()) { }
queue(const queue& other) = delete;
queue& operator= (const queue& other) = delete;
std::shared_ptr<T> try_pop() {
if (_head.get() == _tail)
... | ordinary-developer/book_c_plus_plus_concurrency_in_action_a_williams | code/ch_6-LOCK-BASED_CONCURRENT_DATA_STRUCTURES/06-a_queue_with_a_dummy_node/main.cpp | C++ | mit | 1,105 |
#include <thread>
#include <iostream>
#include <memory>
class scoped_thread {
std::thread t;
public:
explicit scoped_thread(std::thread t_):
t(std::move(t_))
{
if (!t.joinable())
throw std::logic_error("No thread");
}
~scoped_thread()
... | ordinary-developer/book_c_plus_plus_concurrency_in_action_a_williams | code/ch_2-BASIC_THREAD_MANAGEMENT/17-scope_thread/main.cpp | C++ | mit | 1,166 |
package org.ethereum.jsonrpc;
import org.ethereum.util.ByteUtil;
import org.spongycastle.util.encoders.Hex;
import java.math.BigInteger;
/**
* Created by Ruben on 19/11/2015.
*/
public class TypeConverter {
public static byte[] StringNumberAsBytes(String input) {
return ByteUtil.bigIntegerToBytes(Stri... | gcc2ge/ethereumj | ethereumj-core/src/main/java/org/ethereum/jsonrpc/TypeConverter.java | Java | mit | 1,495 |
/**
* ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v21.1.1
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.leng... | cdnjs/cdnjs | ajax/libs/ag-grid/21.2.0/lib/components/framework/agComponentUtils.js | JavaScript | mit | 3,634 |
angular.module('netanimations.subnets', [])
.controller('SubnetsCtrl', function ($state, $scope, $ionicPopup, $translate, $compile) {
TweenLite.defaultEase = Power1.easeInOut;
$scope.end = false;
$scope.restart = function () {
tl.seek(0);
$scope.end = false;
};
var tl = new TimelineLi... | Sutil/netanimations | www/js/app/subnets.js | JavaScript | cc0-1.0 | 15,065 |
/**
* CustomGroupHandler.cpp
*
* Created on: Mar 5, 2015
* Author: pschultz
*/
#include "CustomGroupHandler.hpp"
#include "InputLayer.hpp"
#include "GTLayer.hpp"
#include "ComparisonLayer.hpp"
namespace PVMLearning{
PV::ParamGroupType CustomGroupHandler::getGroupType(char const * keyword) {
PV::ParamGrou... | PetaVision/projects | mlearning/tests/MLPTest/src/CustomGroupHandler.cpp | C++ | epl-1.0 | 1,357 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Thu Sep 12 10:52:56 BST 2013 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Uses of Interface c... | vuk/Clojure-Movies | resources/apache-jena/javadoc-arq/com/hp/hpl/jena/sparql/algebra/class-use/OpVisitor.html | HTML | epl-1.0 | 41,686 |
package org.opendaylight.controller.sal.match.extensible;
import java.net.Inet4Address;
import java.net.Inet6Address;
import java.net.InetAddress;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annota... | niuqg/controller | opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/match/extensible/NwDst.java | Java | epl-1.0 | 3,485 |
/*===========================================================================*/
/* */
/* This file is part of the SYMPHONY Branch, Cut, and Price Library. */
/* */
... | tkralphs/SYMPHONY | SYMPHONY/Applications/MISOCO/include/user.h | C | epl-1.0 | 2,138 |
/*-
*******************************************************************************
* Copyright (c) 2011, 2017 Diamond Light Source Ltd.
* 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, ... | belkassaby/dawnsci | org.eclipse.dawnsci.hdf5.editor/src/org/eclipse/dawnsci/hdf5/editor/H5LabelProvider.java | Java | epl-1.0 | 4,846 |
package org.eclipse.birt.report.designer.internal.ui.ide.propertyeditor;
import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
import org.eclipse.birt.report.designer.internal.ui.views.attributes.provider.HyperLinkDescriptorProvider;
import org.eclipse.birt.report.designer.nls.Messages;
import org.... | sguan-actuate/birt | UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/internal/ui/ide/propertyeditor/IDEHyperLinkDescriptorProvider.java | Java | epl-1.0 | 2,711 |
/*******************************************************************************
* Copyright (c) 2004, 2010 Actuate Corporation.
* 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, and is av... | Charling-Huang/birt | chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/style/IStyleProcessor.java | Java | epl-1.0 | 1,935 |
/*
* Licensed Materials - Property of IBM
* © Copyright IBM Corporation 2015. All Rights Reserved.
*/
package com.ibm.mil.readyapps.summit.utilities;
import android.content.Context;
import java.io.IOException;
import java.util.Properties;
/**
* Helper class for retrieving values from a Worklight client property... | IBM-MIL/IBM-Ready-App-for-Retail | Android/app/src/main/java/com/ibm/mil/readyapps/summit/utilities/WLPropertyReader.java | Java | epl-1.0 | 2,181 |
/*************************************************************************************
* Copyright (c) 2004 Actuate Corporation and others.
* 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 distributio... | sguan-actuate/birt | UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/ui/editors/IPageStaleType.java | Java | epl-1.0 | 850 |
/***********************************************************************
* Copyright (c) 2004, 2005 Actuate Corporation.
* 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, and is available ... | Charling-Huang/birt | chart/org.eclipse.birt.chart.examples/src/org/eclipse/birt/chart/examples/view/models/Area.java | Java | epl-1.0 | 7,151 |
package p;
public class Thing {
private Thing[] subthings;
public Thing() {
subthings = new Thing[] {};
}
private /*[*//*]*/Thing(Thing... subthings) {
this.subthings = subthings;
}
public static void main(String args[]) {
System.out.println(createThing(createThing(new Thing()), createThing(new Thing())... | maxeler/eclipse | eclipse.jdt.ui/org.eclipse.jdt.ui.tests.refactoring/resources/IntroduceFactory/Bugzilla/298281/Thing_out.java | Java | epl-1.0 | 436 |
/*******************************************************************************
* Copyright (c) 2010 Oak Ridge National Laboratory.
* 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, and i... | ESSICS/cs-studio | applications/alarm/alarm-plugins/org.csstudio.alarm.beast.msghist/src/org/csstudio/alarm/beast/msghist/model/ModelListener.java | Java | epl-1.0 | 1,069 |
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef __OCP_DMI_H
#define __OCP_DMI_H
#include <cpu/x86/msr.h>
#include <device/device.h>
#include <smbios.h>
#define TBF "To Be Filled By O.E.M."
extern msr_t xeon_sp_ppin[];
/* Override SMBIOS type 11 OEM string 1 to string 6 */
void ocp_oem_smbios_strings(struct... | felixsinger/coreboot | src/drivers/ocp/dmi/ocp_dmi.h | C | gpl-2.0 | 496 |
<?php
/**
* Dropbox API class
*
* @package Dropbox
* @copyright Copyright (C) 2010 Rooftop Solutions. All rights reserved.
* @author Evert Pot (http://www.rooftopsolutions.nl/)
* @license http://code.google.com/p/dropbox-php/wiki/License MIT
*/
class Dropbox_API {
/**
* Sandbox root-p... | MARFMS/OwnCloud_NAC | 3rdparty/Dropbox/API.php | PHP | gpl-2.0 | 13,179 |
<?php
/**
* @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
* @version //autogentag//
* @package kernel
*/
$http = eZHTTPTool::instance();
$Module = $Params['Module'];
$user = eZUser::currentUser();
$availab... | lexxksb/shumoff | kernel/notification/settings.php | PHP | gpl-2.0 | 1,125 |
// Own header:
#include <pgf/gd/interface/c/InterfaceFromC.h>
// Lua stuff:
#include <lauxlib.h>
// C stuff:
#include <stdlib.h>
#include <string.h>
// Remove once Lua Link Bug is fixed:
//
// The following is a hack to avoid a problem with the Lua lib being linked twice.
// When this happens, two version of "dumm... | fzimmermann89/texlive.js | texlive/texmf-dist/source/generic/pgf/c/graphdrawing/pgf/gd/interface/c/InterfaceFromC.c | C | gpl-2.0 | 29,582 |
/* Manage a process's keyrings
*
* Copyright (C) 2004-2005, 2008 Red Hat, Inc. All Rights Reserved.
* Written by David Howells (dhowells@redhat.com)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software ... | moonman/linux-fslc-sr | security/keys/process_keys.c | C | gpl-2.0 | 20,942 |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*
COPYING CONDITIONS NOTICE:
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by th... | edf-hpc/mariadb-galera | storage/tokudb/ft-index/src/tests/test_db_env_strdup_null.cc | C++ | gpl-2.0 | 4,861 |
<html>
<head>
<title>
Scid Help:
Graph windows
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<STYLE TYPE="text/css">
<!--
body { background: #ffffff; }
h1, h2, h3, h4, h5 { color: #990000; }
h1 { align: center; }
-->
</STYLE>
</head>
<body bgcolor="#ffffff">
<h1>Graph windows<... | Raimondi/scid | help/Graphs.html | HTML | gpl-2.0 | 3,149 |
/*
* Copyright (C) 2013 Michal Podhradsky
* Utah State University, http://aggieair.usu.edu/
*
* This file is part of paparazzi.
*
* paparazzi is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either vers... | rudischilder/gr10_1 | sw/airborne/subsystems/ahrs/ahrs_gx3.c | C | gpl-2.0 | 11,313 |
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sched.h>
#include <rk_api.h>
/* Number of iteration per task */
#define MAX_RESOURCE_SET_NAME_LEN 20
#define MILLISEC_TO_NANOSEC 1000000LL
#define NANOSEC_LL 1000000000LL
#define NUM_PROCESS 32
int main(int argc, char *argv[... | leeymcj/linuxrk-tk1 | mcrkmod/tests/multicore/prio-test.c | C | gpl-2.0 | 2,499 |
/*
* Universal Media Server, for streaming any medias to DLNA
* compatible renderers based on the http://www.ps3mediaserver.org.
* Copyright (C) 2012 UMS developers.
*
* This program is a free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by... | mindwarper/UniversalMediaServer | src/main/java/net/pms/util/Languages.java | Java | gpl-2.0 | 8,858 |
/*
* ProFTPD - FTP server daemon
* Copyright (c) 2004-2008 The ProFTPD Project team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option... | dan82840/Netgear-RBR40 | git_home/proftpd.git/include/table.h | C | gpl-2.0 | 10,598 |
// SHE library
// Copyright (C) 2012-2014 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifndef SHE_CLIPBOARD_IMPL_H_INCLUDED
#define SHE_CLIPBOARD_IMPL_H_INCLUDED
#pragma once
#include "base/string.h"
#include "she/clipboard.h"
#ifdef _MSC_V... | Mailaender/aseprite | src/she/clipboard_win.h | C | gpl-2.0 | 1,891 |
/******************************************************************************
*
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the ... | crewrktablets/rk3x_kernel_3.10 | drivers/net/wireless/rockchip_wlan/rtl8188eu/os_dep/linux/usb_intf.c | C | gpl-2.0 | 62,999 |
/*
* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | chumer/truffle | truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ContextStoreProfileTest.java | Java | gpl-2.0 | 3,176 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Fri Feb 27 16:43:20 EST 2015 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>Deprecated List (So... | ashrafmhd09/openpublish | solr-4.10.4/docs/solr-core/deprecated-list.html | HTML | gpl-2.0 | 27,622 |
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#include<linux/unistd.h>
/*
* Test the seek file operation on a file whose name is given as the first
* argument.
*/
int main(int argc, char **argv)
{
int fd;
int rc;
if( argc != 2 ) {
printf(... | SELinuxProject/selinux-testsuite | tests/file/test_seek.c | C | gpl-2.0 | 594 |
#
# arch/arm/Makefile
#
# This file is included by the global makefile so that you can add your own
# architecture-specific flags and dependencies.
#
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
... | joaompinto/kernel-2.6.32.27-M722HC | arch/arm/Makefile | Makefile | gpl-2.0 | 10,787 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.