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 { LOAD_SEARCH_RESULT_SUCCESS, CLEAR_SEARCH_RESULTS, } from 'actions/search'; import { createActionHandlers } from 'utils/reducer/actions-handlers'; const actionHandlers = {}; export function loadSearchResultSuccess(state, searchResultsList) { return searchResultsList.reduce((acc, result) => { return ...
InseeFr/Pogues
src/reducers/search-result-by-id.js
JavaScript
mit
619
/** specified=*(N): you have had a specifier added to you (internal). 0 = no, new ones have to score higher than old specifier=[_]: you are capable of being used in situation where we need to know what to do with you (external). bare noun: has no specifier added, but if it *were* to be used as an NP then the va...
AllanRamsay/dgParser
agree.pl
Perl
mit
1,345
import { autoinject } from 'aurelia-framework'; import { Customers } from './customers'; import { Router } from 'aurelia-router'; @autoinject() export class List { heading = 'Customer management'; customerList = []; customers: Customers; router: Router; constructor(customers: Customers, router: Router) { ...
doktordirk/aurelia-authentication-loopback-sample
client-ts/src/modules/customer/list.ts
TypeScript
mit
657
# Chokidar CLI [![Build Status](https://travis-ci.org/kimmobrunfeldt/chokidar-cli.svg?branch=master)](https://travis-ci.org/kimmobrunfeldt/chokidar-cli) Fast cross-platform command line utility to watch file system changes. The underlying watch library is [Chokidar](https://github.com/paulmillr/chokidar), which is o...
yaal-fr/ysvgmaps
node_modules/chokidar-cli/README.md
Markdown
mit
5,251
The MIT License (MIT) Copyright (c) 2014 Christophe Van Neste 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, modify, me...
beukueb/myflq
LICENSE.md
Markdown
mit
1,086
/** * Created by huangxinghui on 2016/1/20. */ var $ = require('jquery') var Widget = require('../../widget') var plugin = require('../../plugin') var TreeNode = require('./treenode') var Tree = Widget.extend({ options: { 'labelField': null, 'labelFunction': null, 'childrenField': 'children', 'aut...
huang-x-h/Bean.js
src/components/tree/index.js
JavaScript
mit
6,725
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Advent of Code 2015 from http://adventofcode.com/2015/day/5 Author: James Walker Copyrighted 2017 under the MIT license: http://www.opensource.org/licenses/mit-license.php Execution: python advent_of_code_2015_day_05.py --- Day 5: Doesn't He Have Intern-Elves For ...
JDSWalker/AdventOfCode
2015/Day05/advent_of_code_2015_day_05.py
Python
mit
6,750
#!/bin/sh _now=$(date +"%m_%d_%Y_%H_%M_%S") PATH=$PATH:/usr/local/bin export PATH cd $HOME/Code/newspost/crawlers/crawlers && $HOME/Installs/envs/newspost/bin/scrapy runspider spiders/huffingtonpost.py -o feeds/huffingtonpost-$_now.json wait cd $HOME/Code/newspost/crawlers/crawlers && $HOME/Installs/envs/newspost/bi...
Newsrecommender/newsrecommender
ArticleRecommendationProject/Crawlers/crawlers/scripts/scrape_list_3.sh
Shell
mit
689
# Image Widget ?> GitPitch widgets greatly enhance traditional markdown rendering capabilities for slide decks. The image widget extends traditional markdown image syntax with support for positioning, sizing, transformations, and filters. ### Widget Paths All paths to image files specified within [PITCHME.md](/conv...
gitpitch/gitpitch
docs/images/widget.md
Markdown
mit
1,722
/** * Test program. * * Copyright (c) 2015 Alex Jin ([email protected]) */ #include "test/test.h" #include <iostream> namespace { void help() { std::cout << "Usage: testalgo -a" << std::endl; std::cout << " testalgo <test-case-name>" << std::endl; std::cout << std::endl; std::cout << "Options:" <<...
toalexjin/algo
test/main.cpp
C++
mit
974
function solve(args) { function biSearch(array, searchedNumber, start, end) { for (var i = start; i <= end; i += 1) { if (+array[i] === searchedNumber) { return i; } } return -1; } var data = args[0].split('\n'), numberN = +data.shift()...
jorosoft/Telerik-Academy
Homeworks/JS Fundamentals/07. Arrays/07. Binary search/binary-search.js
JavaScript
mit
1,110
#!/usr/bin/env node var pluginlist = [ ]; var exec = require('child_process').exec; function puts(error, stdout, stderr) { console.log(stdout); } pluginlist.forEach(function(plug) { exec("cordova plugin add " + plug, puts); });
ozsay/ionic-brackets
templates/plugins_hook.js
JavaScript
mit
240
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
github/codeql
java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/StrLookup.java
Java
mit
1,213
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated...
cmoussalli/DynThings
DynThings.Data.Models/UserNotification.cs
C#
mit
1,008
const path = require('path'); require('dotenv').config(); const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyWebpackPlugin = require('copy-webpack-plugin'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const { AureliaPlugin } = require('aurelia-webpack-plugin'); const { optimize: {...
Make-IT-TR/TechRadar
tr-app/webpack.config.js
JavaScript
mit
7,154
--- title: The Coliseum author: rami layout: lifestream categories: [Lifestream] tags: [oakland, california, usa, instagram] image: the-coliseum.jpg --- {% include image.html url="/assets/images/content/lifestream/the-coliseum.jpg" description="The Coliseum Oakland Athletics" %}
rtaibah/jekyll-blog
_posts/lifestream/2012-10-12-the-coliseum-oakland-athletics-taken-with.md
Markdown
mit
283
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Enjoying The New</title> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600"> <link rel="stylesheet" href="/style.css"> <link re...
joeduvall4/joeduvall4.github.io
_site/2018/04/25/enjoying-the-new.html
HTML
mit
1,769
<!-- Begin Footer --> <footer id="footer" class="footer"> <div class="row"> <div class="pull-left col-md-6 col-xs-6"> <div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300" data-href="{{ site.url }}"></div> </div> <div class="logo logo-footer logo-gray pull-right"></div> </div> ...
gdg-x/zeppelin
_includes/footer.html
HTML
mit
1,836
# rustual-boy-www A basic landing page/blog for [Rustual Boy](https://github.com/emu-rs/rustual-boy). ## running locally 1. Update/install dependencies by running: `npm install` from the repo directory (safe to only do this once per pull) 2. Run the site: `node app` The site will be available on [localhost:3000](ht...
yupferris/rustual-boy-www
README.md
Markdown
mit
2,004
#!/bin/env/python # coding: utf-8 import logging import os import time import uuid from logging import Formatter from logging.handlers import RotatingFileHandler from multiprocessing import Queue from time import strftime import dill from .commands import * from .processing import MultiprocessingLogger class TaskP...
peepall/FancyLogger
FancyLogger/__init__.py
Python
mit
27,844
<html><body> <h4>Windows 10 x64 (18362.329)</h4><br> <h2>_DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT</h2> <font face="arial"> +0x000 Size : Uint4B<br> +0x004 Action : Uint4B<br> +0x008 Flags : Uint4B<br> +0x00c OperationStatus : Uint4B<br> +0x010 ExtendedError : U...
epikcraw/ggool
public/Windows 10 x64 (18362.329)/_DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT.html
HTML
mit
521
package com.rebuy.consul; import com.ecwid.consul.v1.ConsulClient; import com.ecwid.consul.v1.QueryParams; import com.ecwid.consul.v1.Response; import com.ecwid.consul.v1.agent.model.NewService; import com.ecwid.consul.v1.catalog.model.CatalogService; import com.rebuy.consul.exceptions.NoServiceFoundException; import ...
rebuy-de/consul-java-client
src/test/java/com/rebuy/consul/ConsulServiceTest.java
Java
mit
5,239
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xam...
xamarin-samples/XamarinFormsHello
XamarinFormsHello/XamarinFormsHello.WinPhone/MainPage.xaml.cs
C#
mit
1,557
<?php namespace LeadCommerce\Shopware\SDK\Query; use LeadCommerce\Shopware\SDK\Util\Constants; /** * Class CustomerQuery * * @author Alexander Mahrt <[email protected]> * @copyright 2016 LeadCommerce <[email protected]> */ class CustomerQuery extends Base { /** * @var array */ protec...
LeadCommerceDE/shopware-sdk
src/LeadCommerce/Shopware/SDK/Query/CustomerQuery.php
PHP
mit
881
--- @module vline local BASE = (...):match("(.-)[^%.]+$") local core = require( BASE .. "core" ) local style = require( BASE .. "style" ) local group = {} ------------------------------------------------------------------------------- -- vertically allign all elements -------------------------------------------------...
cohadar/love-graphics-experiments
imgui/group.lua
Lua
mit
3,459
**Blight** **School** necromancy; **Level** druid 4, sorcerer/wizard 5 **Casting Time** 1 standard action **Components** V, S, DF **Range** touch **Target** plant touched **Duration** instantaneous **Saving Throw** [Fortitude](../combat#_fortitude) half; see text; **[Spell Resistance](../glossary#_spell-resista...
brunokoga/pathfinder-markdown
prd_markdown/spells/blight.md
Markdown
mit
693
<?php namespace GFire\InvoiceBundle\Entity\Interfaces; interface InvoiceInterface{ }
jerickduguran/gfirev2
src/GFire/InvoiceBundle/Entity/Interfaces/InvoiceInterface.php
PHP
mit
87
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test.thread; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util...
atealxt/work-workspaces
Test_Java/src/test/thread/CallableAndFutureTest.java
Java
mit
2,091
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
garethj-msft/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsCumPrincRequestBuilder.cs
C#
mit
997
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.eventhubs.generated; import com.azure.core.util.Context; /** Samples for ConsumerGroups ListByEventHub. */ public final class C...
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/eventhubs/generated/ConsumerGroupsListByEventHubSamples.java
Java
mit
1,031
/** @jsx m */ import m from 'mithril'; import { linkTo, hrefTo } from '@storybook/addon-links'; const Main = { view: vnode => ( <article style={{ padding: 15, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', backgroundColo...
storybooks/react-storybook
lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js
JavaScript
mit
4,185
from simtk.openmm import app import simtk.openmm as mm from simtk import unit def findForce(system, forcetype, add=True): """ Finds a specific force in the system force list - added if not found.""" for force in system.getForces(): if isinstance(force, forcetype): return force if add==True: system....
mlund/pyha
pyha/openmm.py
Python
mit
2,333
namespace InControl { using System; // @cond nodoc [AutoDiscover] public class EightBitdoSNES30AndroidProfile : UnityInputDeviceProfile { public EightBitdoSNES30AndroidProfile() { Name = "8Bitdo SNES30 Controller"; Meta = "8Bitdo SNES30 Controller on Android"; // Link = "https://www.amazon.com/Wirel...
benthroop/Frankenweapon
Assets/InControl/Source/Unity/DeviceProfiles/EightBitdoSNES30AndroidProfile.cs
C#
mit
2,543
#pragma once #include "Component.h" #include "Transform.h" #include "CubeMesh.h" using namespace Beans; class PlayerController : public Component, public Utilities::AutoLister<PlayerController> { public: PlayerController(GameObject* owner); REFLECT_CLASS; static void UpdatePlayerControllers(double dt); void...
jacobmcleman/MagicBeans
Engine/MagicBeansEngine/TestApplication/TestPlayerController.h
C
mit
414
package context import ( "github.com/Everlane/evan/common" "github.com/satori/go.uuid" ) // Stores state relating to a deployment. type Deployment struct { uuid uuid.UUID application common.Application environment string strategy common.Strategy ref string sha1 string flags ma...
Everlane/evan
context/deployment.go
GO
mit
5,804
<!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 charset="utf-...
Sponis/Blue-Project
index.html
HTML
mit
12,398
window.Lunchiatto.module('Transfer', function(Transfer, App, Backbone, Marionette, $, _) { return Transfer.Layout = Marionette.LayoutView.extend({ template: 'transfers/layout', ui: { receivedTransfers: '.received-transfers', submittedTransfers: '.submitted-transfers' }, behaviors: { ...
lunchiatto/web
app/assets/javascripts/modules/transfer/views/layout.js
JavaScript
mit
1,061
body { font-family: Arial, Verdana, "Times New Roman", Times, serif; } div.pages { font-weight: bold; } a.page, span.page { padding: 4px 6px; } a.page { margin: 0 3px; border: 1px solid #ddd; text-decoration: none; color: #0063dc; } a.page:hover { border: 1px solid #003366; background-color: #0063...
binarylogic/searchlogic_example
public/stylesheets/application.css
CSS
mit
423
--- layout: post title: "Leetcode (48, 64, 542) Matrix Series" category: Leetcode tags: Leetcode --- * content {:toc} Leetcode Matrix Series ## Leetcode 48. Rotate Image * [Leetcode 48. Rotate Image](https://leetcode.com/problems/rotate-image/#/description) You are given an n x n 2D matrix representing...
Shanshan-IC/Shanshan-IC.github.io
_posts/2017-02-20-leetcode-matrix-series.md
Markdown
mit
3,227
package analytics import ( "fmt" elastic "gopkg.in/olivere/elastic.v3" ) //Elasticsearch stores configuration related to the AWS elastic cache isntance. type Elasticsearch struct { URL string IndexName string DocType string client *elastic.Client } //Initialize initializes the analytics engine. fun...
awkhan/go-utility
analytics/elasticsearch.go
GO
mit
979
'use strict'; var i18n = require('./i18n.js') i18n.add_translation("pt-BR", { test: 'OK', greetings: { hello: 'Olá', welcome: 'Bem vindo' } }); i18n.locale = 'pt-BR'; console.log(i18n.t('greetings.hello')); console.log(i18n.t('greetings.welcome')); console.log("Hallo"); // Example 2 i18n.add_translat...
felipediesel/simple-i18n
node.js
JavaScript
mit
617
/** * @flow */ /* eslint-disable */ 'use strict'; /*:: import type { ReaderFragment } from 'relay-runtime'; export type ReactionContent = "CONFUSED" | "EYES" | "HEART" | "HOORAY" | "LAUGH" | "ROCKET" | "THUMBS_DOWN" | "THUMBS_UP" | "%future added value"; import type { FragmentReference } from "relay-runtime"; decl...
atom/github
lib/views/__generated__/emojiReactionsView_reactable.graphql.js
JavaScript
mit
2,624
require 'bio-ucsc' describe "Bio::Ucsc::Hg19::WgEncodeAffyRnaChipFiltTransfragsKeratinocyteCytosolLongnonpolya" do describe "#find_by_interval" do context "given range chr1:1-100,000" do it "returns an array of results" do Bio::Ucsc::Hg19::DBConnection.default Bio::Ucsc::Hg19::DBConnection...
misshie/bioruby-ucsc-api
spec/hg19/wgencodeaffyrnachipfilttransfragskeratinocytecytosollongnonpolya_spec.rb
Ruby
mit
935
# EETetris EETetris, a monogame application to play tetris in a style that looks like EE. Based off of an EE world ( PWNLqCFExbbUI ) # How to play 1) Download it from the releases 2) Know your hotkeys To make the tetris piece move left/right, <-- A | D --> (Arrow keys apply) To rotate the piece left ( 90 degrees co...
SirJosh3917/EETetris
README.md
Markdown
mit
548
<!doctype html> <html> <head> <title>Code coverage report for wizard/test/wizardSpecs.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-language" content="en-gb"> <link rel='stylesheet' href='../../prettify.css'> <style type='text/...
odwayne/angular-kata
coverage/Chrome 25.0 (Mac)/wizard/test/wizardSpecs.js.html
HTML
mit
23,199
require File.expand_path("../../../test_helper", __FILE__) describe Redcarpet::Render::HTMLAbbreviations do before do @renderer = Class.new do include Redcarpet::Render::HTMLAbbreviations end end describe "#preprocess" do it "converts markdown abbrevations to HTML" do markdown = <<-EOS...
brandonweiss/redcarpet-abbreviations
test/redcarpet/render/html_abbreviations_test.rb
Ruby
mit
1,921
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateList extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('modelList', function(Blueprint $table) { $table->increments('id'); $table->strin...
paufsc/Kanban
web/app/database/migrations/2014_10_24_214547_create_list.php
PHP
mit
488
--- type: docs order: 10 title: "Transloadit" module: "@uppy/transloadit" permalink: docs/transloadit/ category: "File Processing" tagline: "manipulate and transcode uploaded files using the <a href='https://transloadit.com'>transloadit.com</a> service" --- The `@uppy/transloadit` plugin can be used to upload files to...
transloadit/uppy
website/src/docs/transloadit.md
Markdown
mit
15,797
module Tire module Model module Persistence # Provides infrastructure for storing records in _Elasticsearch_. # module Storage def self.included(base) base.class_eval do extend ClassMethods include InstanceMethods end end mo...
HenleyChiu/tire
lib/tire/model/persistence/storage.rb
Ruby
mit
2,068
require 'googleanalytics/mobile'
mono0x/googleanalytics-mobile
lib/googleanalytics-mobile.rb
Ruby
mit
33
class ItemsController < ApplicationController def create item = Item.new(item_params) item.user_id = @user.id if item.save render json: item, status: 201 else render json: item.errors, status: 422 end end def destroy item = find_item item.destroy head 204 end def index render json: @user...
StuartPearlman/ClosetKeeperAPI
app/controllers/items_controller.rb
Ruby
mit
701
# Build bootstrap Go compiler
frobware/dockerfiles
go-bootstrap/README.md
Markdown
mit
30
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid comm...
Silveryard/Car_System
Old/3rdParty/linux_headers/qt/QtNetwork/qhttpmultipart.h
C
mit
3,856
using UnityEngine; using UnityEngine.UI; using System.Collections; public class Killer : MonoBehaviour { public Transform RobotPlayer; public GameObject Robot; public Text GameOVER; // Use this for initialization void Start() { RobotPlayer = GetComponent<Transform>(); } void Fix...
ArcherSys/ArcherSys
C#/Unity/Capital Pursuit Alpha/Assets/Scripts/Killer.cs
C#
mit
487
--- title: Comment Section --- Sample comment section mblazonry can input to components. Elements can be added and removed easily. Base organism contains an icon+header section with text input and submit button.
JackGarrard/mblazonry_ARI
source/_patterns/02-organisms/activity window/comment-section.md
Markdown
mit
212
module S3Bear module ViewHelpers # def s3bear_bucket # S3Bear.config.bucket + '.s3.amazonaws.com/upload.html' # end end end ActionView::Base.send(:include, S3Bear::ViewHelpers)
cracell/s3bear
lib/view_helpers.rb
Ruby
mit
195
module Linter class Base def self.can_lint?(filename) self::FILE_REGEXP === filename end def initialize(hound_config:, build:, repository_owner_name:) @hound_config = hound_config @build = build @repository_owner_name = repository_owner_name end def file_review(commit_fil...
Koronen/hound
app/models/linter/base.rb
Ruby
mit
1,430
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Lighthouse: lapack/...
LighthouseHPC/lighthouse
sandbox/lily/django_orthg/orthg/static/Doxygen/docs/html/dsprfs_8f.html
HTML
mit
11,415
<?php /* * FluentDOM * * @link https://thomas.weinert.info/FluentDOM/ * @copyright Copyright 2009-2021 FluentDOM Contributors * @license http://www.opensource.org/licenses/mit-license.php The MIT License * */ namespace FluentDOM\Query { use FluentDOM\Query; use FluentDOM\TestCase; require_once __DIR__.'...
FluentDOM/FluentDOM
tests/FluentDOM/Query/Traversing/ParentsTest.php
PHP
mit
1,420
(function() { 'use strict'; angular .module('app.match') .run(appRun); appRun.$inject = ['routerHelper']; /* @ngInject */ function appRun(routerHelper) { routerHelper.configureStates(getStates()); } function getStates() { return [{ state: 'match', config: { url: '/ma...
otaviosoares/f2f
src/client/app/match/match.route.js
JavaScript
mit
593
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-docu', templateUrl: './docu.component.html', styleUrls: ['./docu.component.scss'] }) export class DocuComponent implements OnInit { constructor() { } ngOnInit() { } }
TeoGia/http-on-fire
src/app/docu/docu.component.ts
TypeScript
mit
262
using System; using System.Linq; using Cresce.Datasources.Sql; using Cresce.Models; using NUnit.Framework; namespace Cresce.Business.Tests.Integration.Sql { [TestFixture] internal class InvoiceRepositoryTests : SqlTests { private SqlInvoiceRepository _repository; private Patient _patient; ...
AlienEngineer/Cresce
Cresce.Tests.Integration/Sql/InvoiceRepositoryTests.cs
C#
mit
3,910
### 我的博客 地址:[http://BTeam.github.io](http://BTeam.github.io) ### 安装说明 1. fork库到自己的github 2. 修改名字为:`username.github.io` 3. clone库到本地,参考`_posts`中的目录结构自己创建适合自己的文章目录结构 4. 修改CNAME,或者删掉这个文件,使用默认域名 5. 修改`_config.yml`配置项 6. It's done! ### 鸣谢 本博客框架来自 [闫肃](http://yansu.org)
BTeam/BTeam.github.io
README.md
Markdown
mit
443
class Portal::CollaborationPolicy < ApplicationPolicy end
concord-consortium/rigse
rails/app/policies/portal/collaboration_policy.rb
Ruby
mit
58
// // This is the main include file for the gcode library // It parses and executes G-code functions // // gcode.h // #ifndef GCODE_H #define GCODE_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdarg.h> #ifndef NRF51 // G-code debug print unsigned int debug(const char *f...
dlofstrom/3D-Printer-rev3
code/gcode/gcode.h
C
mit
634
import { DOCUMENT } from '@angular/common'; import { ApplicationRef, ComponentFactoryResolver, Inject, Injectable, Injector } from '@angular/core'; import { BaseService } from 'ngx-weui/core'; import { ToptipsComponent, ToptipsType } from './toptips.component'; @Injectable({ providedIn: 'root' }) export class ToptipsS...
cipchk/ngx-weui
components/toptips/toptips.service.ts
TypeScript
mit
2,518
require 'test_helper' class QuestionSubjectiveTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
Glastonbury/snusurvey
test/models/question_subjective_test.rb
Ruby
mit
132
var loadJsons = require('../lib/loadJsons'); describe("Get a recursive directory load of JSONs", function() { var data; beforeEach(function(done) { if(data) done(); else { loadJsons("./specs")(function(d) { data = d; done(); }); } }); it("Should return right number of j...
polidore/dfg
specs/fileBased.spec.js
JavaScript
mit
531
--- layout: post status: publish published: true title: Moved to Jekyll blog engine date: 2015-10-20 22:31:25.000000000 +05:30 comments: [] --- I have been using wordpress since the time I started blogging. I decided to make a move to the Jekyll static templating engine after I came to know about its simplicity and ab...
t3rm1n4l/t3rm1n4l.github.io
_posts/2015-10-20-moved-to-jekyll.markdown
Markdown
mit
1,016
using System; using System.Diagnostics; using System.Text; namespace BgeniiusUniversity.Logging { public class Logger : ILogger { public void Information(string message) { Trace.TraceInformation(message); } public void Information(string fmt, params object[] vars)...
bgeniius/bgUniversity
ContosoUniversity/Logging/Logger.cs
C#
mit
2,619
--- layout: article title: "The Zen of Design Patterns (2nd Edition)" categories: programing tags: [java, reading] toc: false image: teaser: programing/2017-11-05-The-Zen-of-Design-Patterns-(2nd-Edition)/teaser.jpg date: 2017-11-05 --- 让设计模式成为一种习惯 --- ## 第一章 单一职责原则 缩略语: * SRP(Single Responsibility Principle,...
zhlinh/zhlinh.github.io
_posts/programing/2017-11-05-The-Zen-of-Design-Patterns-(2nd-Edition).md
Markdown
mit
45,879
<?php /** * Rule for required elements * * PHP version 5 * * LICENSE: * * Copyright (c) 2006-2010, Alexey Borzov <[email protected]>, * Bertrand Mansion <[email protected]> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
N3X15/ATBBS-Plus
includes/3rdParty/HTML/QuickForm2/Rule/Required.php
PHP
mit
3,540
class String def split_on_unescaped(str) self.split(/\s*(?<!\\)#{str}\s*/).map{|s| s.gsub(/\\(?=#{str})/, '') } end end
rubysuperhero/hero-notes
lib/clitasks/split_on_unescaped.rb
Ruby
mit
128
import axios from 'axios'; import { updateRadius } from './radius-reducer'; import { AddBType } from './b-type-reducer'; // import { create as createUser } from './users'; // import history from '../history'; /* ------------------ ACTIONS --------------------- */ const ADD_B_TYPE = 'ADD_B_TYPE'; const ADD_LNG_...
Bullseyed/Bullseye
app/reducers/report.js
JavaScript
mit
1,361
<h4>Lists</h4> <h5>Simple List</h5> <mdl-list> <mdl-list-item> <mdl-list-item-primary-content> Bryan Cranston </mdl-list-item-primary-content> </mdl-list-item> <mdl-list-item> <mdl-list-item-primary-content> Aaron Paul </mdl-list-item-primary-content> </mdl-list-item> <mdl-list-i...
c1rno/angelhack_frontend_prototype
src/demo-app/app/list/list.component.html
HTML
mit
14,091
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
RomanianSoftware/Tools
RS.TimeLogger/RS.TimeLogger/Settings.Designer.cs
C#
mit
1,971
module Softlayer module User class Customer module Access autoload :Authentication, 'softlayer/user/customer/access/authentication' end end end end
zertico/softlayer
lib/softlayer/user/customer/access.rb
Ruby
mit
180
(function (global, factory) { if (typeof define === 'function' && define.amd) { define(['exports', 'module', 'skatejs'], factory); } else if (typeof exports !== 'undefined' && typeof module !== 'undefined') { factory(exports, module, require('skatejs')); } else { var mod = { exports: {} }; ...
parambirs/aui-demos
node_modules/@atlassian/aui/lib/js/aui/internal/skate.js
JavaScript
mit
757
using System.Collections; using System.Collections.Generic; using UnityEngine; public class UIButton : MonoBehaviour { [SerializeField] private GameObject targetObject; [SerializeField] private string targetMessage; public Color highlightColor = Color.cyan; public void OnMouseOver() { Sprit...
ivanarellano/unity-in-action-book
Ch05/Assets/UIButton.cs
C#
mit
904
<footer class="main-footer"> <div class="pull-right hidden-xs"> </div> <strong>Orange TV.</strong> All rights reserved. </footer> <!-- Control Sidebar --> <!-- /.control-sidebar --> <!-- Add the sidebar's background. This div must be placed immediately after the control sidebar --> ...
ariefstd/cdone_server_new
application/views/footer.php
PHP
mit
5,358
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
AntShares/AntSharesCore
neo-gui/Properties/Strings.Designer.cs
C#
mit
18,152
# Velocity Library last modified: 5/1/2019 9:00 AM. A reusable library in Velocity for Cascade with examples. This is the code base the Upstate team use to implement our Brisk site. The other part of the Upstate library: https://github.com/drulykg/Cascade-CMS/tree/master/_brisk A note about filenames. All files who...
wingmingchan/velocity
README.md
Markdown
mit
961
using Newtonsoft.Json; using System.Collections.Generic; namespace EaToGliffy.Gliffy.Model { public class GliffyParentObject : GliffyObject { [JsonProperty(PropertyName = "children")] public List<GliffyObject> Children { get; set; } } }
vzoran/eatogliffy
eatogliffy/gliffy/model/GliffyParentObject.cs
C#
mit
269
// Copyright (c) 2011-2015 The Cryptonote developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "JsonOutputStreamSerializer.h" #include <cassert> #include <stdexcept> #include "Common/StringTools.h" using Comm...
tobeyrowe/StarKingdomCoin
src/Serialization/JsonOutputStreamSerializer.cpp
C++
mit
3,698
# Be sure to restart your server when you modify this file. Refinery::Application.config.session_store :cookie_store, :key => '_skwarcan_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rak...
mskwarcan/skwarcan
config/initializers/session_store.rb
Ruby
mit
409
/* * author: Lisa * Info: Base64 / UTF8 * 编码 & 解码 */ function base64Encode(input) { var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "="; var output = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input[i++]; chr2 =...
jrcjing/cbg-log
lib/Tool/base64.js
JavaScript
mit
2,332
<?php namespace ShinyDeploy\Domain\Database; use ShinyDeploy\Core\Crypto\PasswordCrypto; use ShinyDeploy\Core\Helper\StringHelper; use ShinyDeploy\Exceptions\DatabaseException; use ShinyDeploy\Exceptions\MissingDataException; use ShinyDeploy\Traits\CryptableDomain; class ApiKeys extends DatabaseDomain { use Crypt...
nekudo/shiny_deploy
src/ShinyDeploy/Domain/Database/ApiKeys.php
PHP
mit
2,903
require File.dirname(__FILE__) + '/../spec_helper' describe "Standard Tags" do dataset :users_and_pages, :file_not_found, :snippets it '<r:page> should allow access to the current page' do page(:home) page.should render('<r:page:title />').as('Home') page.should render(%{<r:find url="/radius"><r:title...
joshfrench/radiant
spec/models/standard_tags_spec.rb
Ruby
mit
51,194
module ParametresHelper end
Henrik41/jQuery-Validation-Engine-rails
thingo2/app/helpers/parametres_helper.rb
Ruby
mit
28
class CreateMappableMaps < ActiveRecord::Migration def change create_table :mappable_maps do |t| t.string :subject t.string :attr t.string :from t.string :to t.timestamps end end end
mikebannister/mappable
db/migrate/20110919042052_create_mappable_maps.rb
Ruby
mit
226
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <META http-equiv="Content-Type" content="text/html; charset=ASCII"> <link rel="stylesheet" href="style.css" type="text/css"> <title>MXML Only Components - Adobe Flex 2 Language Reference</title> </...
crashposition/computus
docs/mxml-tags.html
HTML
mit
1,145
LinkLuaModifier("modifier_cleric_berserk", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cleric_berserk_target", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE) LinkLuaModifier("modifier_cleric_berserk_no_order", "heroes/cleric/cleric_modifiers.lua", LUA_MODIF...
tontyoutoure/DOTA2-AI-Fun
game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/cleric/cleric.lua
Lua
mit
7,858
export function mockGlobalFile() { // @ts-ignore global.File = class MockFile { name: string; size: number; type: string; parts: (string | Blob | ArrayBuffer | ArrayBufferView)[]; properties?: FilePropertyBag; lastModified: number; constructor( ...
ProtonMail/WebClient
applications/drive/src/app/helpers/test/file.ts
TypeScript
mit
879
package net.talayhan.android.vibeproject.Controller; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.net.Uri; import android.os.Bundle; import android.provid...
stalayhan/vibeapp
app/src/main/java/net/talayhan/android/vibeproject/Controller/MainActivity.java
Java
mit
9,208
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Marionette Components</title> </head> <body> Marionette View Test <script src='../build/view.js'></script> </body> </html>
jmeas-test/test-umd-modules
html/view.html
HTML
mit
201
--- title: 分享-认同 的魅力 tags: ---
ZongWenlong/ZongWenlong.github.io
source/_drafts/分享-认同-的魅力.md
Markdown
mit
45
<?php namespace Oro\Bundle\ApiBundle\Processor\Shared\Rest; use Oro\Bundle\ApiBundle\Metadata\RouteLinkMetadata; use Oro\Bundle\ApiBundle\Processor\Context; use Oro\Bundle\ApiBundle\Provider\ResourcesProvider; use Oro\Bundle\ApiBundle\Request\AbstractDocumentBuilder as ApiDoc; use Oro\Bundle\ApiBundle\Request\ApiActi...
orocrm/platform
src/Oro/Bundle/ApiBundle/Processor/Shared/Rest/AddHateoasLinks.php
PHP
mit
2,893
Başardım :)
PAU-Projects/Github-Odev
sefa.md
Markdown
mit
14
const path = require('path'), fs = require('fs'), glob = require('glob'), pug = require('pug'), stylus = require('stylus'), nib = require('nib'), autoprefixer = require('autoprefixer-stylus'), {rollup} = require('rollup'), rollupPluginPug = require('rollup-plugin-pug'), rollupPluginResolve = require...
stefan-lehmann/atomatic
lib/AppBuilder.js
JavaScript
mit
4,620
package org.xcolab.client.contest.pojo; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import org.xcolab.client.contest.pojo.tables.pojos.ContestCollectionCard; @JsonDeserialize(as = ContestCollectionCard.class) public interface IContestCollectionCard { Long getId(); void setId(Long id);...
CCI-MIT/XCoLab
microservices/clients/contest-client/src/main/java/org/xcolab/client/contest/pojo/IContestCollectionCard.java
Java
mit
1,010