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 |
|---|---|---|---|---|---|
import Footer from './Footer';
import Nav from './Nav';
import Layout from './Layout';
export default {
Nav,
Layout,
Footer
};
| cbfx/reactstrap | docs/lib/UI/index.js | JavaScript | mit | 134 |
namespace CastleWindsorFindAllImplementations
{
public interface IApplicationRunner
{
void Run();
}
} | Code-Inside/Samples | 2010/CastleWindsorFindAllImplementations/CastleWindsorFindAllImplementations/IApplicationRunner.cs | C# | mit | 121 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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 witho... | linearregression/rDSN | include/dsn/tool/nativerun.h | C | mit | 1,594 |
namespace Moviq.Domain.Auth
{
using Moviq.Interfaces.Models;
using System;
public class UserProfileService : IUserProfileService
{
public UserProfileService(IUserRepository userRepo)
{
this.userRepo = userRepo;
}
IUserRepository userRepo;
public ... | losandes/Heinz95729 | dotnet/Moviq.Domain.Auth/UserProfileService.cs | C# | mit | 709 |
<?php
/*
Section: twitter
Language: Czech
Translator: SierraHawk <sierrahawk@outlook.com>
*/
$translations = array(
'h1' => 'Twitter',
);
?> | dcdgupta/sqldatabase | cs/twitter.php | PHP | mit | 145 |
require 'spec_helper'
module Dino
module Components
describe Led do
let(:board) { double(:board, digital_write: true, set_pin_mode: true) }
describe '#initialize' do
it 'should raise if it does not receive a pin' do
expect {
Led.new(board: board)
}.to raise_ex... | MinasMazar/dino | spec/lib/components/led_spec.rb | Ruby | mit | 1,451 |
# FileSystemConnector.GetFilenamePart Method
Returns a filename without a path
**Namespace:** [OfficeDevPnP.Core.Framework.Provisioning.Connectors](OfficeDevPnP.Core.Framework.Provisioning.Connectors.md)
**Assembly:** OfficeDevPnP.Core.dll
## Syntax
```C#
public override string GetFilenamePart(String fileNam... | PaoloPia/PnP-Guidance | sitescore/OfficeDevPnP.Core.Framework.Provisioning.Connectors.FileSystemConnector.9e3b826.md | Markdown | mit | 720 |
//
// OSPlasticButtonCell.h
// Pixen
//
// Copyright 2005-2012 Pixen Project. All rights reserved.
//
@interface OSPlasticButtonCell : NSButtonCell
@end
| Exceltior/Pixen | Other Sources/OSG/OSPlasticButtonCell/OSPlasticButtonCell.h | C | mit | 158 |
# reads a json file from the specified location
# the location may be relative (see explanantion of path() function)
# returns a map or nothing if reading fails
function(json_read file)
path("${file}")
ans(file)
if(NOT EXISTS "${file}")
return()
endif()
checksum_file("${file}")
ans(cache_... | willyd/cmakepp | cmake/formats/json/json_read.cmake | CMake | mit | 528 |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software withou... | qq2588258/floweers | libs/cocos2dx/support/user_default/CCUserDefault.cpp | C++ | mit | 11,139 |
RSpec.shared_examples 'a listable object' do |subject, attributes = []|
let(:list) { VCR.use_cassette(subject.to_s) { subject.all } }
it "should return an array of objects" do
expect(list.class).to eq Array
expect(list.first.class).to eq subject
end
attributes.each do |attribute|
it "should return... | jmonegro/bigcartel-api | spec/shared_examples/listable.rb | Ruby | mit | 427 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { AnimationEvent } from '@angular/animations';
import { CdkAccordionItem } from '@angular/cdk/accordion';
impor... | friendsofagape/mt2414ui | node_modules/@angular/material/typings/expansion/expansion-panel.d.ts | TypeScript | mit | 2,450 |
var getArticleInfo = new XMLHttpRequest();
getArticleInfo.open("GET", "articleName.html");
getArticleInfo.send();
getArticleInfo.onreadystatechange = function() {
var text = document.getElementById("textTarget");
if ((getArticleInfo.readyState === 4) && (getArticleInfo.status === 200)) {
text.innerHTML = ge... | kaidez/kaidez.com | v1.0.0/samples/ajax-tutorial-samples/sample04/scripts.js | JavaScript | mit | 423 |
package net.dean.jraw.models;
import com.fasterxml.jackson.databind.JsonNode;
import net.dean.jraw.models.meta.JsonProperty;
public class OAuthScope extends Thing {
public OAuthScope(JsonNode dataNode) {
super(dataNode);
}
@JsonProperty
public String getDescription() {
return data("de... | hzsweers/JRAW | src/main/java/net/dean/jraw/models/OAuthScope.java | Java | mit | 341 |
/* ========================================================================
* Bootstrap: affix.js v3.1.0
* http://getbootstrap.com/javascript/#affix
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap... | sandeepsailor/Personal-website-single-page | app/js/bootstrap.js | JavaScript | mit | 52,875 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.logic.v2016_06_01;
import com.fasterxml.jackson.... | selvasingh/azure-sdk-for-java | sdk/logic/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/logic/v2016_06_01/BatchConfigurationProperties.java | Java | mit | 1,881 |
.infiniteCarousel {
position: relative;
}
div.infiniteCarousel.w600, div.infiniteCarousel.w600 div.wrapper {
height:102px;
}
div.infiniteCarousel div.wrapper {
overflow: hidden;
position: absolute;
top: 0;
}
.infiniteCarousel.w300 .wrapper {
width: 220px; /* .infiniteCarousel width - (.wrapper margin-le... | quattromani/placewise | temple/src/assets/mimages/Banana Republic at Legacy Place in Dedham, MA 781-326-4117 - MA_files/carousel.css | CSS | mit | 2,069 |
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Bindables;
using osu.Game.Rulesets;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API.Requests.Respons... | UselessToucan/osu | osu.Game/Overlays/Rankings/SpotlightsLayout.cs | C# | mit | 5,509 |
CAAT.Module({
defines : "CAAT.Module.Preloader.XHR",
extendsWith : {
/**
*
* @param callback function({string},{object}) a callback function. string will be "ok" or "error"
* @param url {string} a url
* @param asynch {bool} load synchronous or asynchronously
... | hyperandroid/CAAT | src/Modules/Image/Preloader/XHR.js | JavaScript | mit | 1,689 |
/**
In short, mpool is distributed under so called "BSD license",
Copyright (c) 2009-2010 Tatsuhiko Kubo <cubicdaiya@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
... | westfly/leopard | util/memory/mpool.c | C | mit | 4,192 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* This package contains the implementation classes for SubscriptionClient.
* All resource ... | selvasingh/azure-sdk-for-java | sdk/resources/mgmt-v2016_06_01/src/main/java/com/microsoft/azure/management/resources/v2016_06_01/implementation/package-info.java | Java | mit | 624 |
/* eslint max-classes-per-file: off */
import { __assign } from 'tslib'
import { Component, Ref } from './vdom'
import { ViewContextType, ViewContext } from './ViewContext'
import { compareObjs, EqualityFuncs, getUnequalProps } from './util/object'
import { Dictionary } from './options'
export abstract class PureComp... | fullcalendar/fullcalendar | packages/common/src/vdom-util.tsx | TypeScript | mit | 1,984 |
<div>
Hudson 1.20 e anteriores usavam para criar diretórios redundantes dentro do workspace.
Por exemplo, se o nome do módulo CVS fosse "foo/bar", ele primeiro criava "foo/bar" e
depois colocava tudo abaixo desta estrutura. Com este opção desmarcada, não haverá mais
diretórios intermediários desnecessários.
... | ricardobaumann/jenkins_release_plugin | work/plugins/cvs/WEB-INF/classes/hudson/scm/CVSSCM/help-legacy_pt_BR.html | HTML | mit | 490 |
var postgres = require('../config.js').postgres;
module.exports = function(ws, data) {
if (data.action === 'list') {
var patches = [];
postgres.query('SELECT time, patch, user_email, id, parent FROM changes WHERE file_id=$1 AND time>$2 ORDER BY time ASC', [ws.docId, new Date(data.after || 0)]).on('row', func... | shilpi230/WebSync | lib/routes/diffs.js | JavaScript | mit | 511 |
import numpy as np
from keras.datasets import mnist
from keras.layers import Activation
from keras.layers import Dense
from keras.models import Sequential
from keras.utils import np_utils
np.random.seed(1337)
nb_classes = 10
batch_size = 128
nb_epoch = 5
weighted_class = 9
standard_weight = 1
high_weight = 5
max_trai... | farizrahman4u/keras-contrib | keras_contrib/tests/regularizers.py | Python | mit | 1,414 |
'use strict';
describe('$routeProvider', function() {
var $routeProvider;
beforeEach(module('ngRoute'));
beforeEach(module(function(_$routeProvider_) {
$routeProvider = _$routeProvider_;
$routeProvider.when('/foo', {template: 'Hello, world!'});
}));
it('should support enabling/disabling automatic ... | lgalfaso/angular.js | test/ngRoute/routeSpec.js | JavaScript | mit | 78,403 |
<?php
/*
* This file is part of Gush package.
*
* (c) Luis Cordova <cordoval@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Gush\Tests\Command\Branch;
use Gush\Command\Branch\BranchForkCommand;
use Gush\Tests\Command\Comm... | sstok/gush | tests/Command/Branch/BranchForkCommandTest.php | PHP | mit | 2,105 |
import zlib
from test_support import TestFailed
import sys
import imp
try:
t = imp.find_module('test_zlib')
file = t[0]
except ImportError:
file = open(__file__)
buf = file.read() * 8
file.close()
# test the checksums (hex so the test doesn't break on 64-bit machines)
print hex(zlib.crc32('penguin')), hex... | MalloyPower/parsing-python | front-end/testsuite-python-lib/Python-2.2/Lib/test/test_zlib.py | Python | mit | 6,045 |
# Require Radix Parameter (radix)
When using the `parseInt()` function it is common to omit the second argument, the radix, and let the function try to determine from the first argument what type of number it is. By default, `parseInt()` will autodetect decimal and hexadecimal (via `0x` prefix). Prior to ECMAScript 5,... | pvamshi/eslint | docs/rules/radix.md | Markdown | mit | 2,732 |
<div>
Specificare facoltativamente <a href='https://ant.apache.org/manual/Types/fileset.html'>il pattern 'excludes'</a>,
ad esempio "pippo/pluto/**/*". Un file corrispondente a questa maschera non
sarà archiviato anche nel caso in cui corrisponda alla maschera specificata
nella sezione "File di cui rilevare le ... | v1v/jenkins | core/src/main/resources/hudson/tasks/Fingerprinter/help-excludes_it.html | HTML | mit | 348 |
using System;
using System.Collections.ObjectModel;
namespace Torshify
{
public interface IPlaylist : ISessionObject
{
#region Events
event EventHandler<DescriptionEventArgs> DescriptionChanged;
event EventHandler<ImageEventArgs> ImageChanged;
event EventHandler MetadataUpda... | torshy/torshify | src/Torshify/IPlaylist.cs | C# | mit | 4,519 |
class Groups::GroupMembersController < Groups::ApplicationController
skip_before_filter :authenticate_user!, only: [:index]
before_filter :group
# Authorize
before_filter :authorize_read_group!
before_filter :authorize_admin_group!, except: [:index, :leave]
layout :determine_layout
def index
@proje... | PoojaWEP/Final_gitlancer | app/controllers/groups/group_members_controller.rb | Ruby | mit | 2,433 |
import { usingEvalSync, usingEval } from '../lib/utils'
export async function getServerSideProps() {
return {
props: await usingEval(),
}
}
export default function Page(props) {
return (
<div>
{props.value} and {usingEvalSync().value}
</div>
)
}
| zeit/next.js | test/integration/middleware/with-eval/pages/index.js | JavaScript | mit | 274 |
require 'grape/exceptions/base'
module Grape
module Exceptions
class Validation < Grape::Exceptions::Base
attr_accessor :params
attr_accessor :message_key
def initialize(args = {})
fail 'Params are missing:' unless args.key? :params
@params = args[:params]
args[:message... | niedhui/grape | lib/grape/exceptions/validation.rb | Ruby | mit | 669 |
from django import template
from django.shortcuts import render_to_response, redirect, get_object_or_404
# from product.models import Slide
register = template.Library()
# @register.inclusion_tag('slides/slides.html')
# def get_main_slides():
# slides = Slide.objects.filter(published_main=1).order_by('orde... | skylifewww/pangolin-fog | product/templatetags/category_tags.py | Python | mit | 2,627 |
東京 SHIRASAGI ハンズオン用 Vagrant
===
東京 SHIRASAGI ハンズオン用 Vagrantを公開します。
## 使用方法
適当なディレクトリを作成し、次のような内容を持つ Vagrantfile を作成してください。
64 ビット OS をお使いの方:
$ mkdir tokyo-handson
$ cd tokyo-handson
$ cat Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
co... | sunny4381/ss-handson | doc/hands-on-0422/hands-on-vagrant.md | Markdown | mit | 3,616 |
<?php
/*
* This file is part of the Symfony CS utility.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Symfony\CS\Tests\Fixer\PSR2;
use Symfony\CS\Tests\Fixer\AbstractFixerTestBase;
/**... | MicHaeLann/new_best365 | vendor/fabpot/php-cs-fixer/Symfony/CS/Tests/Fixer/PSR2/MultipleUseFixerTest.php | PHP | mit | 1,311 |
#-*- encoding:utf-8 -*-
'''
Created on Nov 30, 2014
@author: letian
'''
import networkx as nx
from Segmentation import Segmentation
import numpy as np
class TextRank4Keyword(object):
def __init__(self, stop_words_file = None, delimiters = '?!;?!。;…\n'):
'''
`stop_words_file`:默认值为None,此时内部停止词表... | MSC19950601/TextRank4ZH | textrank4zh/TextRank4Keyword.py | Python | mit | 7,411 |
<?php
namespace Oro\Bundle\EntityBundle\Tests\Functional\Controller;
use Oro\Bundle\TestFrameworkBundle\Test\WebTestCase;
class DictionaryControllerTest extends WebTestCase
{
protected function setUp()
{
$this->initClient([], $this->generateBasicAuthHeader());
}
public function testSearch()
... | Djamy/platform | src/Oro/Bundle/EntityBundle/Tests/Functional/Controller/DictionaryControllerTest.php | PHP | mit | 1,575 |
#pragma once
#include <string>
#include "tnet_http.h"
namespace tnet
{
class WsClient : public nocopyable
, public std::enable_shared_from_this<WsClient>
{
public:
WsClient(IOLoop* loop);
~WsClient();
//now only support ip:port
void connect(const st... | xujun10110/libtnet | src/http/wsclient.h | C | mit | 853 |
<?php
namespace App\Events\VisitTransfer;
use App\Models\VisitTransfer\Application;
use Illuminate\Queue\SerializesModels;
class ApplicationCompleted extends ApplicationStatusChanged
{
use SerializesModels;
public $application = null;
public function __construct(Application $application)
{
... | atoff/core | app/Events/VisitTransfer/ApplicationCompleted.php | PHP | mit | 363 |
var assert = require('assert');
var common = require('../../common');
var cluster = common.createPoolCluster({canRetry: false});
var server = common.createFakeServer();
var connCount = 0;
var poolConfig = common.getTestConfig({port: common.fakeServerPort});
cluster.add('MASTER', poolConfig);
server.listen(common.... | mysqljs/mysql | test/unit/pool-cluster/test-connection-no-retry.js | JavaScript | mit | 751 |
package main
import (
"fmt"
"time"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/beaglebone"
"github.com/hybridgroup/gobot/platforms/i2c"
)
func main() {
gbot := gobot.NewGobot()
beagleboneAdaptor := beaglebone.NewBeagleboneAdaptor("beaglebone")
blinkm := i2c.NewBlinkMDriver(beaglebo... | Jay-AHR/qpid_em | vendor/github.com/hybridgroup/gobot/examples/beaglebone_blinkm.go | GO | mit | 737 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Debian -- Details of package sysvinit-utils in wheezy</title>
<link rev="made" href="mailto:webmaster@debian.org">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="... | linuxfoundation/cii-census | original_cache/debian_role/sysvinit-utils.html | HTML | mit | 18,088 |
// @flow
export { default as CircularProgress } from './CircularProgress';
export { default as LinearProgress } from './LinearProgress';
| AndriusBil/material-ui | src/Progress/index.js | JavaScript | mit | 137 |
#!/usr/bin/env php
<?php
/**
* Allows to get the content of a php-fpm environment configuration file
*/
class PhpFpmEnvironment {
/**
* The temporary directory, used in TMP, TEMP and TMPDIR environment variables
* @var string
*/
const TMP = '/tmp';
/**
* The path where to find execut... | nasqueron/docker-nginx-php-fpm | novolume/files/usr/local/lib/php-fpm-env/PhpFpmEnvironment.php | PHP | mit | 3,005 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | fabiensebban/magento | app/code/core/Mage/Adminhtml/Block/Tax/Rate/Title.php | PHP | mit | 2,204 |
/*
* Exchange Web Services Managed API
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
*
* 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
* wit... | gscales/ews-managed-api | Exceptions/CreateAttachmentException.cs | C# | mit | 3,329 |
JSMpeg.Decoder.Base = (function(){ "use strict";
var BaseDecoder = function(options) {
this.destination = null;
this.canPlay = false;
this.collectTimestamps = !options.streaming;
this.timestamps = [];
this.timestampIndex = 0;
this.startTime = 0;
this.decodedTime = 0;
Object.defineProperty(this, 'currentTime... | faljse/jsmpeg | src/decoder.js | JavaScript | mit | 2,109 |
class CreateProjectImportData < ActiveRecord::Migration[4.2]
def change
create_table :project_import_data do |t|
t.references :project
t.text :data
end
end
end
| iiet/iiet-git | db/migrate/20150417121913_create_project_import_data.rb | Ruby | mit | 184 |
#region License
// Copyright (c) 2007 James Newton-King
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, ... | benaadams/Newtonsoft.Json | Src/Newtonsoft.Json/JsonWriter.cs | C# | mit | 62,501 |
export function noProject(project: string) {
return `Unable to find project '${project}' in the workspace`;
}
export function unsupportedStyles(styleFilePath: string) {
return `Project style file found has unsupported extension: '${styleFilePath}'\nAdding 'bootstrap.min.css' to 'angular.json'`;
}
| benouat/ng-bootstrap | schematics/ng-add/messages.ts | TypeScript | mit | 303 |
# Ref. https://raw.githubusercontent.com/cake-build/resources/480522f00dc9671225c0d32713d858dc5ac1d56e/build.ps1
##########################################################################
# This is the Cake bootstrapper script for PowerShell.
# This file was downloaded from https://github.com/cake-build/resources
# Fe... | khalidabuhakmeh/filter | build.ps1 | PowerShell | mit | 8,132 |
{% extends 'base/base.html' %}
{% load i18n %}
{% load static %}
{% block extra_js %}
<script src="{% static 'js/new_password_validator.js' %}" charset="utf-8"></script>
{% endblock %}
{% block content %}
{% if validlink %}
<div class="password-reset jumbotron">
<... | iPablo/starter-python-sevilla | python_sevilla/users/templates/registration/password_reset_confirm.html | HTML | mit | 1,837 |
---
title: Additional Thought
date: 06/04/2018
---
> <p></p>
> “There was a time when every angel and person that God made loved God with a loyal heart. There was perfect happiness and peace everywhere because of this loyalty and love for God. The angels in heaven loved to do everything God wanted. They loved to sh... | PrJared/sabbath-school-lessons | src/en/2018-02-er/01/07.md | Markdown | mit | 2,220 |
Makes a shallow clone of an object, setting or overriding the specified
property with the given value. Note that this copies and flattens prototype
properties onto the new object as well. All non-primitive properties are
copied by reference.
@func
@memberOf R
@since v0.8.0
@category Object
@sig String -> a -> {k: v} -... | donnut/typescript-ramda | templates/assoc.md | Markdown | mit | 618 |
#include <gloperate/rendering/StencilRenderTarget.h>
#include <glbinding/gl/enum.h>
#include <gloperate/rendering/AttachmentType.h>
namespace gloperate
{
AttachmentType StencilRenderTarget::underlyingAttachmentType() const
{
return AttachmentType::Stencil;
}
gl::GLenum StencilRenderTarget::attachmentGLType(... | cginternals/gloperate | source/gloperate/source/rendering/StencilRenderTarget.cpp | C++ | mit | 588 |
body,input,select,textarea{color:#fff}input[type="submit"],input[type="reset"],input[type="button"],button,.button{position:relative}input[type="submit"]:after,input[type="reset"]:after,input[type="button"]:after,button:after,.button:after{display:none}.features{border:solid 1px}input[type="text"],input[type="password"... | nicolaschaillot/electron-events | src/client/assets/css/ie8.css | CSS | mit | 472 |
<div ng-show="product.images.length">
<div class="img-wrap">
<img ng-src="{{product.images[gallery.current]}}" />
</div>
<ul class="img-thumbnails clearfix">
<li class="small-image pull-left thumbnail" ng-repeat="image in product.images">
<img ng-src="{{image}}" />
</li>
</ul>
</div> | misterdavemeister/meanio | tests/tut/angular_tut/product-gallery.html | HTML | mit | 310 |
#!/bin/sh -e
export DEBIAN_FRONTEND=noninteractive
sudo apt-get --quiet 2 update
sudo apt-get --quiet 2 upgrade
sudo apt-get --quiet 2 dist-upgrade
| FunTimeCoding/debian-tools | script/vagrant/update-system.sh | Shell | mit | 149 |
'use strict';
/**
* @ngdoc function
* @name inflightHubApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the inflightHubApp
*/
angular.module('inflightHubApp')
.controller('MainCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
... | Sirintra1/FlightHub | app/scripts/controllers/main.js | JavaScript | mit | 325 |
version https://git-lfs.github.com/spec/v1
oid sha256:c4fdd080b70bb03e8f649ff90f86d76a3604a3589ce2f201730c4441edb66ec1
size 8234
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.14.1/node-pluginhost/node-pluginhost-coverage.js | JavaScript | mit | 129 |
//
// agc_crcf_example.c
//
// Automatic gain control example demonstrating its transient
// response.
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <complex.h>
#include <getopt.h>
#include "liquid.h"
#define OUTPUT_FILENAME "agc_crcf_squelch_example.m"
// print usage/help message
void usage()... | jgaeddert/liquid-dsp | examples/agc_crcf_squelch_example.c | C | mit | 6,133 |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2017-2018 Baldur Karlsson
*
* 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... | etnlGD/renderdoc | renderdoc/driver/gl/precompiled.h | C | mit | 1,449 |
<template name="notificationButton">
<a class="notification-button item">
<i class="comment icon"></i> Notifications
{{#if unreadCount}}
<div class="ui red label">{{unreadCount}}</div>
{{/if}}
</a>
</template> | katopz/nullchat | client/views/modals/notifications/notification-button.html | HTML | mit | 253 |
#include "NetList.h"
#include "imgui/imgui.h"
NetList::NetList(TcharStringCallback cbNetSelected) {
cbNetSelected_ = cbNetSelected;
}
NetList::~NetList() {}
void NetList::Draw(const char *title, bool *p_open, Board *board) {
// TODO: export / fix dimensions & behaviour
int width = 400;
int height = 640;
ImGu... | chloridite/OpenBoardView | src/openboardview/NetList.cpp | C++ | mit | 1,175 |
---
title: <a-torus>
type: primitives
layout: docs
parent_section: primitives
order: 17
---
The torus primitive creates a donut or circular tube shape. It is an entity that prescribes the [geometry](../components/geometry.md) with its geometric primitive set to `torus`.
## Example
```html
<a-torus color="blue" posit... | jzitelli/aframe | docs/primitives/a-torus.md | Markdown | mit | 991 |
/*
FreeRTOS V7.0.1 - Copyright (C) 2011 Real Time Engineers Ltd.
FreeRTOS supports many tools and architectures. V7.0.0 is sponsored by:
Atollic AB - Atollic provides professional embedded systems development
tools for C/C++ development, code analysis and test automation.
See http://www.atollic.com... | NikhilKalige/uefi_freertos_beagleboard | freertos_test/Source/include/portable.h | C | mit | 12,141 |
require 'spec_helper'
describe Array do
before do
@array = Forgery::Extend([0,1,2,3,4,5,6,7,8,9])
end
it "should get a random item out of the array" do
10.times { expect(@array).to include(@array.random) }
end
it "should return nil if the array is empty" do
expect(Forgery::Extend([]).random).to... | sevenwire/forgery | spec/extensions/array_spec.rb | Ruby | mit | 606 |
package authorizer
import (
"context"
"github.com/influxdata/influxdb/v2"
"github.com/influxdata/influxdb/v2/kit/platform"
)
var _ influxdb.SecretService = (*SecretService)(nil)
// SecretService wraps a influxdb.SecretService and authorizes actions
// against it appropriately.
type SecretService struct {
s infl... | influxdb/influxdb | authorizer/secret.go | GO | mit | 3,383 |
# oVirt Node
This is the main entry page for using oVirt Node.
More informations about developing oVirt Node can be found here (TBD).
# Overview
The oVirt Node sub-project is geared towards building a small, robust operating system
image. It uses minimal resources while providing the ability to control virtual machi... | jtokar/ovirt-site | source/node/index.md | Markdown | mit | 3,789 |
<?php
namespace MainBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Cegedim\Bundle\OwaCasBundle\Security\User\OwaUser;
class OptionController extends Controller
{
public function indexAction()
{
$name = '';
$webinar_params = '';
if($this->get('security.contex... | stephanekesy/test | src/MainBundle/Controller/OptionController.php | PHP | mit | 757 |
namespace ProGaudi.Tarantool.Client.Model
{
public class Metrics
{
private readonly ILogicalConnection _logicalConnection;
public Metrics(ILogicalConnection logicalConnection)
{
_logicalConnection = logicalConnection;
}
public uint PingsFailedByTimeoutCount... | progaudi/progaudi.tarantool | src/progaudi.tarantool/Model/Metrics.cs | C# | mit | 380 |
---
layout: post
title: "Lissted"
slug: lissted
source: http://lissted.com
---
<img src="/screenshots/lissted.png">
| GetBlimp/built-with-ember | _posts/2015-11-02-lissted.md | Markdown | mit | 117 |
// Adafruit Motor shield library
// copyright Adafruit Industries LLC, 2009
// this code is public domain, enjoy!
// v1r1_2018-07-14 : ������ ����, �Լ� �߰�
#if (ARDUINO >= 100)
#include "Arduino.h"
#else
#if defined(__AVR__)
#include <avr/io.h>
#endif
#include "WProgram.h"
#endif
//#include "AFMotor.h"
... | kjsii123/entry-hw | app/firmwares/examples/freearduino/AFMotor_v1r1.cpp | C++ | mit | 20,250 |
using GraphQL.Validation.Rules;
using Xunit;
namespace GraphQL.Tests.Validation
{
public class UniqueFragmentNamesTests : ValidationTestBase<UniqueFragmentNames, ValidationSchema>
{
[Fact]
public void no_fragments()
{
ShouldPassRule(@"
{
field
}
");
}
[Fa... | dNetGuru/graphql-dotnet | src/GraphQL.Tests/Validation/UniqueFragmentNamesTests.cs | C# | mit | 2,547 |
require "./template_item.rb"
puts "==========================================="
puts "Test Item"
puts "==========================================="
#{
# property : [{type=>name},{type=>name},...]
# class:xxx
# superclass:xxx
#}
hash = {"class" => "TestListItem",
"superclass" => "VZItem",
"property" ... | vizlabxt/VZScaffold | scaffold/template/vizzle/test_item.rb | Ruby | mit | 557 |
# jsdom
jsdom is a pure-JavaScript implementation of many web standards, notably the WHATWG [DOM](https://dom.spec.whatwg.org/) and [HTML](https://html.spec.whatwg.org/multipage/) Standards, for use with Node.js. In general, the goal of the project is to emulate enough of a subset of a web browser to be useful for tes... | danshapiro-optimizely/full_stack_redux | voting-client/node_modules/jsdom/README.md | Markdown | mit | 28,230 |
// Type definitions for ag-grid v3.3.3
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ceolter/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
export interface SetFilterParameters {
/** Same as cell renderer for grid (you can use the same one in both location... | JohnGeorgiadis/x-formation-test-sample | node_modules/ag-grid/dist/lib/filter/setFilterParameters.d.ts | TypeScript | mit | 1,152 |
import numpy
from chainer.backends import cuda
from chainer import function_node
from chainer.utils import type_check
def _pair(x):
if hasattr(x, '__getitem__'):
return x
return x, x
class Shift(function_node.FunctionNode):
def __init__(self, ksize=3, dilate=1):
super(Shift, self).__in... | anaruse/chainer | chainer/functions/connection/shift.py | Python | mit | 4,492 |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 Orcacoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef _BITCOINRPC_H_
#define _BITCOINRPC_H_... | orkacoin/orkacoin | src/bitcoinrpc.h | C | mit | 11,085 |
using System.Collections.Generic;
using System.Web.Http;
using HaloOnline.Server.Core.Http.Interface.Services;
using HaloOnline.Server.Core.Http.Model;
using HaloOnline.Server.Core.Http.Model.Heartbeat;
using HaloOnline.Server.Model.Heartbeat;
namespace HaloOnline.Server.Core.Http.Controllers
{
public class Heart... | Atvaark/Emurado | HaloOnline.Server.Core.Http/Controllers/HeartbeatController.cs | C# | mit | 2,046 |
The MIT License (MIT)
Copyright (c) 2017 Jack Lam <jacklam718@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy,... | jacklam718/react-native-carousel-component | LICENSE.md | Markdown | mit | 1,098 |
require 'spec_helper'
module Capybara::Poltergeist
describe Driver do
context 'with no options' do
subject { Driver.new(nil) }
it 'does not log' do
expect(subject.logger).to be_nil
end
it 'has no inspector' do
expect(subject.inspector).to be_nil
end
end
co... | farmersweb/poltergeist | spec/unit/driver_spec.rb | Ruby | mit | 2,001 |
---
title: 'Отворање На Првиот Печат'
date: 27/01/2019
---
`Прочитајте ги следните текстови: Откровение 6,1-8; 3. Мојсеева 26,21-26; Матеј 24,1-14. Забележете ги заедничките клучни зборови во овие текстови. Што дознавате за значењето на првите четири печати врз основа на тие поклопувања?`
Настаните од седумте печати ... | PrJared/sabbath-school-lessons | src/mk/2019-01/05/02.md | Markdown | mit | 4,566 |
/*************************************************************\
* Triple.cpp *
* This file was created by Jeremy Greenburg *
* As part of The God Core game for the University of *
* Tennessee at Martin's University Scholars Organization *
* ... | Airtamis/The-God-Core | The God Core/The God Core/Triple.cpp | C++ | mit | 709 |
require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/fixtures/marshal_data'
mv = [Marshal::MAJOR_VERSION].pack 'C'
nv = [Marshal::MINOR_VERSION].pack 'C'
class UserDefinedBad
def _dump(depth); 10; end
end
# TODO: these need to be reviewed and cleaned up
describe "Marshal.dump" d... | mattetti/rubyspec | core/marshal/dump_spec.rb | Ruby | mit | 11,387 |
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | jackmagic313/azure-sdk-for-net | sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery/src/Generated/Models/HyperVReplicaAzurePlannedFailoverProviderInput.cs | C# | mit | 3,012 |
<?php
return [
'issue-1776-A' => [
'ua' => 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3) AppleWebKit/534.31 (KHTML, like Gecko) Chrome/17.0.558.0 Safari/534.31 UCBrowser/2.2.2.259',
'properties' => [
'Comment' => 'UC Browser 2.2 for Android',
'Browser' => 'UC Browser',
... | mimmi20/browscap | tests/issues/issue-1776.php | PHP | mit | 1,749 |
package openblocks.client.renderer.item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.client.IItemRenderer;
import net.minecraftforge.common.util.ForgeDirection;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.FluidTank;
import op... | PrinceOfAmber/OpenBlocks | src/main/java/openblocks/client/renderer/item/ItemRendererTank.java | Java | mit | 2,308 |
' Copyright (c) 2015 ZZZ Projects. All rights reserved
' Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
' Website: http://www.zzzprojects.com/
' Feedback / Feature Requests / Issues : http://zzzprojects.uservoice.com/forums/283927
' All ZZZ Projects products: Entity Framework Exte... | zzzprojects/Z.ExtensionMethods | src (VB.NET)/Z.ExtensionMethods.VB/Z.Reflection/System.Object/Object.GetPropertyValue.vb | Visual Basic | mit | 1,151 |
package org.beansugar.oauth.services.signature;
import org.beansugar.oauth.exceptions.OAuthException;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class HMACSha1SignatureServiceTest {
private HMACSha1SignatureService service;
@Before
public void setup() {
... | archmagece/bs-oauth-java | src/test/java/org/beansugar/oauth/services/signature/HMACSha1SignatureServiceTest.java | Java | mit | 1,454 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | yugangw-msft/autorest | src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.d.ts | TypeScript | mit | 607 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="robots" content="index, follow, all" />
<title>Thelia\Core\Security\User\UserInterface | Thelia 2 API</title>
<link rel="stylesheet" type="text/css" href="../../../../css/bootstrap.min.css">
<link rel="styleshe... | sitecrafting/thelia.github.io | api/2.0/Thelia/Core/Security/User/UserInterface.html | HTML | mit | 15,020 |
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs sudo and configures /etc/sudoers"
version "1.1.0"
recipe "sudo", "Installs sudo and configures /etc/sudoers"
%w{redhat centos fedora ubuntu debian freebsd}.each do |os|
su... | mehulsbhatt/smartvpn-billing | cookbooks/chef-sudo/metadata.rb | Ruby | mit | 1,115 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace ODataValidator.Rule
{
#region Namespaces
using System;
using System.ComponentModel.Composition;
using ODataValidator.Rule.Helpe... | congysu/ValidationTool | src/CodeRules/Conformance/MinimalConformance1001.cs | C# | mit | 3,354 |
'use strict';
/**
* Mounts a folder in a connect server
*/
module.exports = function mountFolder(connect, dir) {
return connect.static(require('path').resolve(dir));
};
| carlosrubio/TimeWatcher | tasks/grunt-helpers/mount-folder.js | JavaScript | mit | 176 |
$(function () {
var form = $('#search');
var input = form.find('input');
var list = form.find('.results');
var items = list.find('a');
var selected = null;
// Don't submit on return.
form.on('submit', function () {
return false;
});
// Open search
input.on('focus', fun... | pyrocms/accelerant-theme | resources/js/theme/search.js | JavaScript | mit | 5,118 |
/*
* ASIListener.java
*
* Created on February 27, 2003, 11:44 AM
*/
package cern.laser.source.alarmsysteminterface.listener;
import java.sql.Timestamp;
import java.util.Collection;
/**
* ASIMessage listener interface.
* @author fracalde
*/
public interface ASIListener {
/**
* Callback method. Called... | csrg-utfsm/acscb | LGPL/CommonSoftware/ACSLaser/laser-source/src/cern/laser/source/alarmsysteminterface/listener/ASIListener.java | Java | mit | 783 |
package com.lukaspili.mortardemo.flow;
import android.view.View;
import android.view.ViewTreeObserver;
final class FlowUtils {
public interface OnMeasuredCallback {
void onMeasured(View view, int width, int height);
}
public static void waitForMeasure(final View view, final OnMeasuredCallback ca... | creativepsyco/Mortar-Flow-Dagger2-demo | app/src/main/java/com/lukaspili/mortardemo/flow/FlowUtils.java | Java | mit | 1,066 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.