repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
InseeFr/Pogues
src/reducers/search-result-by-id.js
619
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 ...
mit
AllanRamsay/dgParser
agree.pl
1345
/** 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...
mit
doktordirk/aurelia-authentication-loopback-sample
client-ts/src/modules/customer/list.ts
657
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) { ...
mit
yaal-fr/ysvgmaps
node_modules/chokidar-cli/README.md
5251
# 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...
mit
beukueb/myflq
LICENSE.md
1086
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...
mit
huang-x-h/Bean.js
src/components/tree/index.js
6725
/** * 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...
mit
JDSWalker/AdventOfCode
2015/Day05/advent_of_code_2015_day_05.py
6750
#!/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 ...
mit
Newsrecommender/newsrecommender
ArticleRecommendationProject/Crawlers/crawlers/scripts/scrape_list_3.sh
689
#!/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...
mit
gitpitch/gitpitch
docs/images/widget.md
1722
# 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...
mit
toalexjin/algo
test/main.cpp
974
/** * Test program. * * Copyright (c) 2015 Alex Jin (toalexjin@hotmail.com) */ #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:" <<...
mit
jorosoft/Telerik-Academy
Homeworks/JS Fundamentals/07. Arrays/07. Binary search/binary-search.js
1110
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()...
mit
ozsay/ionic-brackets
templates/plugins_hook.js
240
#!/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); });
mit
github/codeql
java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/StrLookup.java
1213
/* * 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 ...
mit
cmoussalli/DynThings
DynThings.Data.Models/UserNotification.cs
1008
//------------------------------------------------------------------------------ // <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...
mit
Make-IT-TR/TechRadar
tr-app/webpack.config.js
7154
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: {...
mit
rtaibah/jekyll-blog
_posts/lifestream/2012-10-12-the-coliseum-oakland-athletics-taken-with.md
283
--- 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" %}
mit
joeduvall4/joeduvall4.github.io
_site/2018/04/25/enjoying-the-new.html
1769
<!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...
mit
gdg-x/zeppelin
_includes/footer.html
1836
<!-- 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> ...
mit
yupferris/rustual-boy-www
README.md
2004
# 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...
mit
peepall/FancyLogger
FancyLogger/__init__.py
27844
#!/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...
mit
epikcraw/ggool
public/Windows 10 x64 (18362.329)/_DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT.html
521
<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...
mit
rebuy-de/consul-java-client
src/test/java/com/rebuy/consul/ConsulServiceTest.java
5239
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 ...
mit
xamarin-samples/XamarinFormsHello
XamarinFormsHello/XamarinFormsHello.WinPhone/MainPage.xaml.cs
1557
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...
mit
LeadCommerceDE/shopware-sdk
src/LeadCommerce/Shopware/SDK/Query/CustomerQuery.php
881
<?php namespace LeadCommerce\Shopware\SDK\Query; use LeadCommerce\Shopware\SDK\Util\Constants; /** * Class CustomerQuery * * @author Alexander Mahrt <amahrt@leadcommerce.de> * @copyright 2016 LeadCommerce <amahrt@leadcommerce.de> */ class CustomerQuery extends Base { /** * @var array */ protec...
mit
cohadar/love-graphics-experiments
imgui/group.lua
3459
--- @module vline local BASE = (...):match("(.-)[^%.]+$") local core = require( BASE .. "core" ) local style = require( BASE .. "style" ) local group = {} ------------------------------------------------------------------------------- -- vertically allign all elements -------------------------------------------------...
mit
brunokoga/pathfinder-markdown
prd_markdown/spells/blight.md
693
**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...
mit
jerickduguran/gfirev2
src/GFire/InvoiceBundle/Entity/Interfaces/InvoiceInterface.php
87
<?php namespace GFire\InvoiceBundle\Entity\Interfaces; interface InvoiceInterface{ }
mit
atealxt/work-workspaces
Test_Java/src/test/thread/CallableAndFutureTest.java
2091
/* * 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...
mit
garethj-msft/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/IWorkbookFunctionsCumPrincRequestBuilder.cs
997
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
mit
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/eventhubs/generated/ConsumerGroupsListByEventHubSamples.java
1031
// 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...
mit
storybooks/react-storybook
lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js
4185
/** @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...
mit
mlund/pyha
pyha/openmm.py
2333
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....
mit
benthroop/Frankenweapon
Assets/InControl/Source/Unity/DeviceProfiles/EightBitdoSNES30AndroidProfile.cs
2543
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...
mit
jacobmcleman/MagicBeans
Engine/MagicBeansEngine/TestApplication/TestPlayerController.h
414
#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...
mit
Everlane/evan
context/deployment.go
5804
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...
mit
Sponis/Blue-Project
index.html
12398
<!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-...
mit
lunchiatto/web
app/assets/javascripts/modules/transfer/views/layout.js
1061
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: { ...
mit
binarylogic/searchlogic_example
public/stylesheets/application.css
423
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...
mit
Shanshan-IC/Shanshan-IC.github.io
_posts/2017-02-20-leetcode-matrix-series.md
3227
--- 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...
mit
awkhan/go-utility
analytics/elasticsearch.go
979
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...
mit
felipediesel/simple-i18n
node.js
617
'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...
mit
atom/github
lib/views/__generated__/emojiReactionsView_reactable.graphql.js
2624
/** * @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...
mit
misshie/bioruby-ucsc-api
spec/hg19/wgencodeaffyrnachipfilttransfragskeratinocytecytosollongnonpolya_spec.rb
935
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...
mit
SirJosh3917/EETetris
README.md
548
# 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...
mit
odwayne/angular-kata
coverage/Chrome 25.0 (Mac)/wizard/test/wizardSpecs.js.html
23199
<!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/...
mit
brandonweiss/redcarpet-abbreviations
test/redcarpet/render/html_abbreviations_test.rb
1921
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...
mit
paufsc/Kanban
web/app/database/migrations/2014_10_24_214547_create_list.php
488
<?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...
mit
transloadit/uppy
website/src/docs/transloadit.md
15797
--- 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...
mit
HenleyChiu/tire
lib/tire/model/persistence/storage.rb
2068
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...
mit
mono0x/googleanalytics-mobile
lib/googleanalytics-mobile.rb
33
require 'googleanalytics/mobile'
mit
StuartPearlman/ClosetKeeperAPI
app/controllers/items_controller.rb
701
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...
mit
frobware/dockerfiles
go-bootstrap/README.md
30
# Build bootstrap Go compiler
mit
Silveryard/Car_System
Old/3rdParty/linux_headers/qt/QtNetwork/qhttpmultipart.h
3856
/**************************************************************************** ** ** 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...
mit
ArcherSys/ArcherSys
C#/Unity/Capital Pursuit Alpha/Assets/Scripts/Killer.cs
487
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...
mit
JackGarrard/mblazonry_ARI
source/_patterns/02-organisms/activity window/comment-section.md
212
--- 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.
mit
cracell/s3bear
lib/view_helpers.rb
195
module S3Bear module ViewHelpers # def s3bear_bucket # S3Bear.config.bucket + '.s3.amazonaws.com/upload.html' # end end end ActionView::Base.send(:include, S3Bear::ViewHelpers)
mit
Koronen/hound
app/models/linter/base.rb
1430
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...
mit
LighthouseHPC/lighthouse
sandbox/lily/django_orthg/orthg/static/Doxygen/docs/html/dsprfs_8f.html
11415
<!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/...
mit
FluentDOM/FluentDOM
tests/FluentDOM/Query/Traversing/ParentsTest.php
1420
<?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__.'...
mit
otaviosoares/f2f
src/client/app/match/match.route.js
593
(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...
mit
TeoGia/http-on-fire
src/app/docu/docu.component.ts
262
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() { } }
mit
AlienEngineer/Cresce
Cresce.Tests.Integration/Sql/InvoiceRepositoryTests.cs
3910
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; ...
mit
BTeam/BTeam.github.io
README.md
443
### 我的博客 地址:[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)
mit
concord-consortium/rigse
rails/app/policies/portal/collaboration_policy.rb
58
class Portal::CollaborationPolicy < ApplicationPolicy end
mit
dlofstrom/3D-Printer-rev3
code/gcode/gcode.h
634
// // 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...
mit
cipchk/ngx-weui
components/toptips/toptips.service.ts
2518
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...
mit
Glastonbury/snusurvey
test/models/question_subjective_test.rb
132
require 'test_helper' class QuestionSubjectiveTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
polidore/dfg
specs/fileBased.spec.js
531
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...
mit
t3rm1n4l/t3rm1n4l.github.io
_posts/2015-10-20-moved-to-jekyll.markdown
1016
--- 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...
mit
bgeniius/bgUniversity
ContosoUniversity/Logging/Logger.cs
2619
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)...
mit
zhlinh/zhlinh.github.io
_posts/programing/2017-11-05-The-Zen-of-Design-Patterns-(2nd-Edition).md
45879
--- 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,...
mit
N3X15/ATBBS-Plus
includes/3rdParty/HTML/QuickForm2/Rule/Required.php
3540
<?php /** * Rule for required elements * * PHP version 5 * * LICENSE: * * Copyright (c) 2006-2010, Alexey Borzov <avb@php.net>, * Bertrand Mansion <golgote@mamasam.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are ...
mit
rubysuperhero/hero-notes
lib/clitasks/split_on_unescaped.rb
128
class String def split_on_unescaped(str) self.split(/\s*(?<!\\)#{str}\s*/).map{|s| s.gsub(/\\(?=#{str})/, '') } end end
mit
Bullseyed/Bullseye
app/reducers/report.js
1361
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_...
mit
c1rno/angelhack_frontend_prototype
src/demo-app/app/list/list.component.html
14091
<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...
mit
RomanianSoftware/Tools
RS.TimeLogger/RS.TimeLogger/Settings.Designer.cs
1971
//------------------------------------------------------------------------------ // <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> //--...
mit
zertico/softlayer
lib/softlayer/user/customer/access.rb
180
module Softlayer module User class Customer module Access autoload :Authentication, 'softlayer/user/customer/access/authentication' end end end end
mit
parambirs/aui-demos
node_modules/@atlassian/aui/lib/js/aui/internal/skate.js
757
(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: {} }; ...
mit
ivanarellano/unity-in-action-book
Ch05/Assets/UIButton.cs
904
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...
mit
ariefstd/cdone_server_new
application/views/footer.php
5358
<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 --> ...
mit
AntShares/AntSharesCore
neo-gui/Properties/Strings.Designer.cs
18152
//------------------------------------------------------------------------------ // <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> //--...
mit
wingmingchan/velocity
README.md
961
# 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...
mit
vzoran/eatogliffy
eatogliffy/gliffy/model/GliffyParentObject.cs
269
using Newtonsoft.Json; using System.Collections.Generic; namespace EaToGliffy.Gliffy.Model { public class GliffyParentObject : GliffyObject { [JsonProperty(PropertyName = "children")] public List<GliffyObject> Children { get; set; } } }
mit
tobeyrowe/StarKingdomCoin
src/Serialization/JsonOutputStreamSerializer.cpp
3698
// 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...
mit
mskwarcan/skwarcan
config/initializers/session_store.rb
409
# 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...
mit
jrcjing/cbg-log
lib/Tool/base64.js
2332
/* * 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 =...
mit
nekudo/shiny_deploy
src/ShinyDeploy/Domain/Database/ApiKeys.php
2903
<?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...
mit
joshfrench/radiant
spec/models/standard_tags_spec.rb
51194
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...
mit
Henrik41/jQuery-Validation-Engine-rails
thingo2/app/helpers/parametres_helper.rb
28
module ParametresHelper end
mit
mikebannister/mappable
db/migrate/20110919042052_create_mappable_maps.rb
226
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
mit
crashposition/computus
docs/mxml-tags.html
1145
<!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> </...
mit
tontyoutoure/DOTA2-AI-Fun
game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/cleric/cleric.lua
7858
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...
mit
ProtonMail/WebClient
applications/drive/src/app/helpers/test/file.ts
879
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( ...
mit
stalayhan/vibeapp
app/src/main/java/net/talayhan/android/vibeproject/Controller/MainActivity.java
9208
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...
mit
jmeas-test/test-umd-modules
html/view.html
201
<!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>
mit
ZongWenlong/ZongWenlong.github.io
source/_drafts/分享-认同-的魅力.md
45
--- title: 分享-认同 的魅力 tags: ---
mit
orocrm/platform
src/Oro/Bundle/ApiBundle/Processor/Shared/Rest/AddHateoasLinks.php
2893
<?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...
mit
PAU-Projects/Github-Odev
sefa.md
14
Başardım :)
mit
stefan-lehmann/atomatic
lib/AppBuilder.js
4620
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...
mit
CCI-MIT/XCoLab
microservices/clients/contest-client/src/main/java/org/xcolab/client/contest/pojo/IContestCollectionCard.java
1010
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);...
mit