repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
donaldinou/frontend
src/Viteloge/CoreBundle/Resources/descriptions/02163.html
2106
<div class="commune_descr limited"> <p> Charly est une commune localisée dans le département de l'Aisne en Picardie. Elle comptait 2&nbsp;706 habitants en 2008.</p> <p>À Charly le salaire médian par mois par personne se situe à approximativement 1&nbsp;927 &euro; net. C'est inférieur à la moyenne du pays.</p> ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.2/smpl/8.12.0.1.html
7359
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>smpl: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
mit
lys091112/doc
util/system/linux/basic/system-learn/文件系统.md
3957
# linux 文件系统 ## 文件存储 文件存储在磁盘上,磁盘的最小存储单元是扇区,每个扇区存储512个字节(0.5KB) 操作系统在读取文件时,一般一次读取多个扇区(一个个读太慢),即一次行读取一个块,这种由多个扇区组成的"块",是文件存取的最小单位。"块"的大小,最常见的是4KB,即连续八个 sector组成一个 block 文件的数据都存储在块中,如果要找到块,我们还必须找到一个地方储存文件的元信息,包括文件的创建者,创建时间等等基础信息。这个存储元数据的qu区域就是inode, inode相当于书籍的目录,我们必须先找到目录,才能找到内容所在的章节和页码 // TODO SSD 的寻址和存储 ## 2. ...
mit
Orbiit/gunn-web-app
psa/1989-06-04.html
13
<p>pooh!</p>
mit
i4web/dcook
functions.php
1338
<?php /** * i4Web includes */ require_once locate_template('/lib/utils.php'); // Utility functions require_once locate_template('/lib/init.php'); // Initial theme setup and constants require_once locate_template('/lib/wrapper.php'); // Theme wrapper class require_once locate_template('/li...
mit
Kanma/Athena-GUI
include/Athena-GUI/SystemInterface.h
2335
/** @file SystemInterface.h @author Philip Abbet Declaration of the class 'Athena::GUI::SystemInterface' */ #ifndef _ATHENA_GUI_SYSTEMINTERFACE_H_ #define _ATHENA_GUI_SYSTEMINTERFACE_H_ #include <Athena-GUI/Prerequisites.h> #include <Athena-Core/Utils/Timer.h> #include <Rocket/Core/SystemInterface.h> nam...
mit
mauricedoepke/docscloud-server
src/services/files/files.filters.js
350
/*eslint no-console: 1 */ console.warn('You are using the default filter for the fileMeta service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering'); // eslint-disable-line no-console module.exports = function(data, connection, hook) { // eslint-disable-line no-...
mit
dhabersack/remarkable-server
sass/style.css
10304
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */ /** * 1. Set default font family to sans-serif. * 2. Prevent iOS text size adjust after orientation change, without disabling * user zoom. */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100...
mit
erikzhouxin/CSharpSolution
TechTester/FamliyFinanceWebSI/App_Api/Famliy.Finance.Common/HtmlHelper2.cs
876
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; namespace Famliy.Finance.Common { public static class HtmlHelper2 { /// <summary> /// 自定义一个@html.Image() /// </summary> ...
mit
luisibanez/SahanaEden
views/rms/pledge_update.html
1143
{{extend "layout.html"}} {{include "_update.html"}} <script type="text/javascript">//<![CDATA[ $(function() { // Organisation Autocomplete {{entity_id = request.controller + "_" + request.function + "_organisation_id"}} {{urlpath_c = "org"}} {{urlpath_f = "organisation"}} {{urlvar_field = "name"}} ...
mit
MiaoZhua/mzworld-php
core/Handler/Admin/Article/Ad/Read.handler.php
3167
<?php namespace Handler\Admin\Article\Ad; if (!defined('IN_PX')) exit; use Handler\Admin\AbstractCommon; use Admin\Helper; use Tools\Auxi; use Tools\MsgHelper; /** * 读取 */ class Read extends AbstractCommon { public function processRequest(Array & $context) { $this->_pushSetting(...
mit
mariasaavedra/foodtruck-ui
src/app/core/home/home.service.js
755
export default function HomeService($rootScope, $window, $http) { var service = { send: send, loadSettings: loadSettings, }; return service; function send(msg, data) { console.log(msg, data); //$rootScope.$broadcast(msg, data); } function loadSettings() { ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.1/semantics/8.11.1.html
7854
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>semantics: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
mit
RaoHai/ant-design
docs/spec/feedback.md
6037
--- order: 11 title: zh-CN: 反馈 en-US: Feedback --- 为了帮助用户了解应用当前要做什么,也给用户的下一步行为做参考,以及了解操作后所产生的结果 ,当用户和系统需要交互时,使用不同的模式来反馈信息或结果。当设计者使用反馈或者自定义一些反馈时,请注意: - 为用户在各个阶段提供必要、积极、即时的反馈; - 避免过度反馈,以免给用户带来不必要的打扰,能够及时看到效果的、简单的操作,可以省略反馈提示。 --- ## 提示信息 任何一个产品,即使用户界面做的再好,也离不开用户引导和信息提示。提示信息是用来告诉用户需要知道什么、采取什么样行动的内容。 ### 警告 #### ...
mit
ElderByte-/josc
josc-api/src/main/java/com/elderbyte/josc/api/BlobObject.java
2141
package com.elderbyte.josc.api; import com.elderbyte.josc.core.BlobObjectUtils; import java.time.Instant; import java.util.Map; import java.util.Optional; /** * Represents a blob object */ public interface BlobObject { /** * Gets the bucket name where this object is stored */ String getBucket();...
mit
gophergala2016/scattr
evaluate.go
525
package main import ( "github.com/robertkrimen/otto" ) func evaluateScript(src string, payload []FinalInput) (string, error) { javaScript := otto.New() var evalFunc otto.Value javaScript.Set("eval", func(call otto.FunctionCall) otto.Value { evalFunc = call.Argument(0) return otto.UndefinedValue() }) javaSc...
mit
joordas/react-fem
js/Header.js
1191
import React, { Component } from 'react' import { connect } from 'react-redux' import { setSearchTerm } from './actionCreators' import { Link } from 'react-router' class Header extends Component { constructor (props) { super(props) this.handleSearchTermChange = this.handleSearchTermChange.bind(this) } h...
mit
BennyLi/dotfiles
rofi/modi/search-duden.sh
462
#! /usr/bin/env sh if [ -z $@ ] then sqlite3 $HOME/.local/share/qutebrowser/history.sqlite "select url from history where url like '%duden.de%';" | uniq else selection="$@" if [ -n "$selection" ] then if [[ $selection == https* ]] then # An entry from the history is selected qutebrowser --...
mit
bartwe/Gearset
Gearset/Components/Profiler/Profiler.cs
19770
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Threading; using Microsoft.Xna.Framework; namespace Gearset.Components.Profiler { public class Profiler : Gear { /// <summary>The maximum number of discrete heira...
mit
SoftEng-HEIGVD/Teaching-HEIGVD-AMT-Example-MVC
MVCDemo/src/main/java/ch/heigvd/amt/mvcdemo/rest/resources/SectorsResource.java
3061
package ch.heigvd.amt.mvcdemo.rest.resources; import ch.heigvd.amt.mvcdemo.model.entities.Sector; import ch.heigvd.amt.mvcdemo.rest.dto.SectorDTO; import ch.heigvd.amt.mvcdemo.services.dao.BusinessDomainEntityNotFoundException; import ch.heigvd.amt.mvcdemo.services.dao.SectorsDAOLocal; import java.net.URI; import java...
mit
Grimace1975/gpustructs
src/Structs.Data.Btree/Core+Btree/BtShared+Alloc.cs
18930
using System; using System.Diagnostics; using Pgno = System.UInt32; using PTRMAP = Contoso.Core.MemPage.PTRMAP; using Contoso.Threading; namespace Contoso.Core { public partial class BtShared { internal RC allocateBtreePage(ref MemPage ppPage, ref Pgno pPgno, Pgno nearby, byte exact) ...
mit
augi/gson-scala
src/test/scala/cz/augi/gsonscala/UnitSpec.scala
2859
package cz.augi.gsonscala import java.util.Optional import java.util.concurrent.TimeUnit import com.google.gson.{Gson, GsonBuilder} import org.junit.runner.RunWith import org.scalatest.{FlatSpec, Matchers} import org.scalatest.junit.JUnitRunner import scala.concurrent.duration.Duration class AsMillis extends UnitSp...
mit
kamenlitchev/cucumber-ruby-core
lib/cucumber/core/test/runner.rb
4031
# frozen_string_literal: true require 'cucumber/core/test/timer' module Cucumber module Core module Test class Runner attr_reader :event_bus, :running_test_case, :running_test_step private :event_bus, :running_test_case, :running_test_step def initialize(event_bus) @event...
mit
mecampbellsoup/btc_price
spec/lib/price_spec.rb
258
require 'spec_helper' require 'ostruct' module BtcPrice describe Price do before do Price.adapter = OpenStruct.new(current_price: 492) end it "returns the current BTC price" do Price.current_price.must_equal 492 end end end
mit
ThaDafinser/UserAgentParserComparison
v5/user-agent-detail/ef/48/ef48bd73-c474-489a-b1cb-028371583648.html
56456
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.2.1; de-de; YP-GB1 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title> <link rel="stylesheet" href="https://cdnjs.cloudfl...
mit
SvenFrankson/SvenFrankson.github.io
afev/scripts/question-4-1.js
1257
var answers = []; var validate = () => { $("#afev-answer-1").animate( { backgroundColor: "green"} ); var good = true; if (answers.indexOf(1) === -1) { good = false; } if (answers.indexOf(2) !== -1) { $("#afev-answer-2").animate( { backgroundColor: "red"} ...
mit
waltermoreira/dockeransible
app_builder/app_builder_image/concat_roles.py
3259
#!/usr/bin/python import glob import os import shutil import subprocess import sys import yaml def create_role(role): ret = subprocess.check_output( 'ansible-galaxy init {}'.format(role).split()) if not ret.strip().endswith('created successfully'): raise Exception('could not create role "{}"...
mit
jhbruhn/nwz-rss
README.md
290
# nwz-rss Easily generate RSS feeds from the NWZ ePaper. ## Usage ``` npm install -g nwz-rss nwz-rss -u peda -p passwort -o ./output -b http://localhost:8000 ``` Then, serve the files in your output folder via http or something. Change the -b parameter to your servers address.
mit
vanessayuenn/batarangle
example-apps/kitchen-sink-example/source/components/dynamic-controls/load-as-root-component.ts
812
import {Component, DynamicComponentLoader, ElementRef, Injector} from 'angular2/core'; import DynamicComponent from './dynamic-component'; import Hello from './hello'; @Component({ selector: 'load-as-root-component', directives: [ Hello ], template: ` <div class="wrapper"> <h3>LoadAsRoot Componen...
mit
ffleurey/FFBPG
src/main/java/eu/diversify/ffbpg/evolution/platforms/DropOneRandomService.java
1234
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package eu.diversify.ffbpg.evolution.platforms; import eu.diversify.ffbpg.Application; import eu.diversify.ffbpg.BPGraph; import eu.d...
mit
operepo/ope
client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/NFDQC/N.pl
2886
# !!!!!!! DO NOT EDIT THIS FILE !!!!!!! # This file is machine-generated by lib/unicore/mktables from the Unicode # database, Version 12.1.0. Any changes made here will be lost! # !!!!!!! INTERNAL PERL USE ONLY !!!!!!! # This file is for internal use by core Perl only. The format and even the # name or exist...
mit
infinitered/solidarity
src/extensions/functions/setSolidaritySettings.ts
425
import { SolidarityRunContext, SolidaritySettings } from '../../types' module.exports = (settings: SolidaritySettings, context: SolidarityRunContext): void => { const { filesystem } = context if (settings.requirements) { // Write file filesystem.write('.solidarity', JSON.stringify(settings, null, 2), { ato...
mit
api-platform/core
src/Doctrine/Odm/Filter/AbstractFilter.php
3450
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Doctrine\Odm\Filter; use ApiPlat...
mit
EasyPeasyLemonSqueezy/MadCat
MadCat/NutEngine/Physics/Collider/CirclevsCircle.cs
1838
using Microsoft.Xna.Framework; using NutEngine.Physics.Shapes; namespace NutEngine.Physics { public static partial class Collider { public static bool Collide(IBody<Circle> a, IBody<Circle> b, out IntersectionArea intersection) { // Probably here should be the sector collisions che...
mit
nukesz/swcraft
java-se-tutorial/src/test/java/org/swcraft/javase/collections/map/MapImplementationsTest.java
1700
package org.swcraft.javase.collections.map; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Map.Entry; import java.util.TreeMap; import org.junit.Test; public class MapImplementationsTest { @Test public void testHashMap() throws Exception { Map<String, Integer> m...
mit
AlloyTeam/Nuclear
components/icon/esm/face-two-tone.js
873
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h(h.f, null, h("path", { d: "M17.5 8c.46 0 .91-.05 1.34-.12C17.44 5.56 14.9 4 12 4c-.46 0-.91.05-1.34.12C12.06 6.44 14.6 8 17.5 8zM8.08 5.03C6.37 6 5.05 7.58 4.42 9.47c1.71-.97 3.03-2.55 3.66-4.44z", opacity: "....
mit
uniter/uniter-jquery
index.html
5547
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Uniter PHP Demo Collection</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/style.css"> </head> ...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.02.3-2.0.6/released/8.6.1/ceres/0.2.0.html
6874
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>ceres: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
mit
Rudhie/simlab
assets/ckeditor/plugins/horizontalrule/lang/no.js
241
/* Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'horizontalrule', 'no', { toolbar: 'Sett inn horisontal linje' } );
mit
yasoob/PythonRSSReader
venv/lib/python2.7/dist-packages/sessioninstaller/backends/synaptic.py
3567
#!/usr/bin/env python # -*- coding: utf-8 -*- """Make use of synaptic as backend.""" # Copyright (C) 2008-2010 Sebastian Heinlein <devel@glatzor.de> # Copyright (C) 2005-2007 Canonical # # Licensed under the GNU General Public License Version 2 # # This program is free software; you can redistribute it and/or modify # ...
mit
CloudFramework-io/appengine-php-core
src/class/DataValidation.php
19606
<?php // Based on https://github.com/Wixel/GUMP // DataValidationClass if (!defined ("_DATAVALIDATION_CLASS_") ) { define("_DATAVALIDATION_CLASS_", TRUE); Class DataValidation { var $field=null; var $typeError = 'field'; var $errorMsg=''; var $error=false; var $errorFi...
mit
lenesvc/ProjetoMvc
application/views/includes/msg_sucesso.php
153
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <div class="alert alert-success" role="alert"> <?= $msg; ?> </div> </div>
mit
overtrue/laravel-pinyin
src/helpers.php
2405
<?php /* * This file is part of the overtrue/laravel-pinyin. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ use Illuminate\Support\Facades\Log; use Overtrue\Pinyin\Pinyin; if (!function_exists('pinyin')) { ...
mit
smalruby/smalrubot
lib/smalrubot/board/studuino.rb
587
module Smalrubot class Board # namespace for Studuino module Studuino PORT_M1 = 0 PORT_M2 = 1 PORT_A0 = 0 PORT_A1 = 1 PORT_A2 = 2 PORT_A3 = 3 PORT_A4 = 4 PORT_A5 = 5 PORT_A6 = 6 PORT_A7 = 7 PIDOPEN = 0 PIDLED = 1 PIDBUZZER = 2 ...
mit
bitjson/s18n
lib/compareLocales.js
1256
'use strict'; module.exports = function(localeA, localeB, options) { options = options || {}; if (typeof localeA !== 'object' || typeof localeB !== 'object') { throw new Error('s18n: `localeA` and `localeB` must be objects.'); } var localeAMissing = {}; var localeBMissing = {}; var unmodifiedStrings =...
mit
piouPiouM/compass-completion
README.md
1808
compass-completion ================== Bash completion support for [Compass][compass]. Installation ------------ The easiest way (but not necessarily the cleanest) is to copy it somewhere (e.g. `~/.compass-completion.sh`) and put the following line in your `.bashrc`: source ~/.compass-completion.sh Otherwise, t...
mit
Sage-Bionetworks/dashboard-core
src/main/java/org/sagebionetworks/dashboard/model/AccessRecord.java
436
package org.sagebionetworks.dashboard.model; public interface AccessRecord extends Record{ String getSessionId(); String getUserId(); String getObjectId(); String getMethod(); String getUri(); String getQueryString(); String getStatus(); Long getLatency(); String getUserAgent(); ...
mit
standardgaussian/Titania
lib/game/entities/physEnt.js
12058
//basic physics entity //This entity extends the joncom base entity and is responsible for //collision categories //property inheritance //default settings/hooks //It also defines the ObjectWorld and RenderWorld objects "soma" and "animus" (or whatever distinct names you can think of) //The soma cannot call animus func...
mit
dpla/KriKri
lib/krikri/enrichments/split_coordinates.rb
2449
module Krikri::Enrichments ## # Splits a string given in `lat' or `long' in an edm:Place object and # assigns `lat' and `long' with the split values. # # @example # # Where val is a DPLA::MAP::Place, # and val.lat == '40.7127,74.0059', # assign val.lat = '40.7127' and val.long = '74.0059' # ...
mit
BenSaud-CS/Collage
Practical4_Stack&Queue/src/code/template/QueueArray.java
1484
package code.template; /** * * @author */ public class QueueArray { int QUEUE_SIZE; int front; int back; Integer[] queueArray; public QueueArray(int size) { queueArray = new Integer[size]; QUEUE_SIZE = size; } public void equeue(int putInBackAr...
mit
maicong/OpenAPI
MetInfo5.2/admin/templates/met/content/about/index.html
3949
<!--<?php # MetInfo Enterprise Content Management System # Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved. require_once template('head'); $colspan=4; echo <<<EOT --> </head> <body> <!-- EOT; $title=$class1?"<a href='index.php?anyid={$anyid}&lang={$lang}&class1={$class1}&module={$module}'>{...
mit
Pomona/Pomona
tests/Pomona.SystemTests/VirtualPropertyTests.cs
1902
#region License // Pomona is open source software released under the terms of the LICENSE specified in the // project's repository, or alternatively at http://pomona.io/ #endregion using System.Linq; using Critters.Client; using NUnit.Framework; using Pomona.Example.Models; namespace Pomona.SystemTests { [T...
mit
judovana/jenkins-scm-koji-plugin
koji-scm-lib/src/main/java/org/fakekoji/xmlrpc/server/expensiveobjectscache/SingleUrlResponseCache.java
9352
package org.fakekoji.xmlrpc.server.expensiveobjectscache; import org.fakekoji.xmlrpc.server.xmlrpcrequestparams.XmlRpcRequestParams; import java.io.BufferedWriter; import java.io.IOException; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.net.URL; import java.util.Arra...
mit
AltSchool/ember-cli-redux
addon/mixins/ember-redux.js
610
import Ember from 'ember'; export default Ember.Mixin.create({ reduxStore: Ember.inject.service(), dispatch(action) { return this.get('reduxStore').dispatch(action); }, dispatchAction(actionName, ...args) { return this.dispatch(this.action(actionName).apply(this, args)); }, getState(path) { ...
mit
ozasadnyy/zeppelin-grunt
app/team.html
154
--- layout: default title: Team permalink: /team/ color: "#00bcd4" modal: team --- {% include general/top-section.html %} {% include team/team.html %}
mit
yonh/wharf
Godeps/_workspace/src/github.com/containerops/crew/router/router.go
1656
package router import ( "github.com/Unknwon/macaron" "github.com/macaron-contrib/binding" "github.com/containerops/crew/handler" ) func SetRouters(m *macaron.Macaron) { m.Group("/v1", func() { //Session Router m.Group("/token", func() { m.Post("/", handler.W1PostToken) }) //User Router m.Group("/u...
mit
bynaki/nowonlib.node
gulpfile.js
446
const gulp = require('gulp'); const nodemon = require('gulp-nodemon'); const mocha = require('gulp-spawn-mocha'); gulp.task('start', () => { nodemon({ script: 'server.js', ext: 'html js ejs css', ignore: ['node_modules'], }) .on('restart', () => { console.log('restarted') }); }); gulp.task('t...
mit
PieterGit/oref0
bin/oref0-setup.sh
66039
#!/usr/bin/env bash # This script sets up an openaps environment by defining the required devices, # reports, and aliases, and optionally enabling it in cron, # plus editing other user-entered configuration settings. # Released under MIT license. See the accompanying LICENSE.txt file for # full terms and conditions # ...
mit
Chotainghe/chotainghe
YiiBasic/models/AdminLogin.php
1953
<?php namespace app\models; use Yii; use yii\base\Model; /** * LoginForm is the model behind the login form. * * @property User|null $user This property is read-only. * */ class AdminLogin extends Model { public $username; public $password; public $rememberMe = true; private $_user = false; ...
mit
facebook/FBSimulatorControl
PrivateHeaders/SimulatorKit/SimDisplayResizeableRenderable-Protocol.h
444
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <SimulatorKit/FoundationXPCProtocolProxyable-Protocol.h> @protocol SimDisplayResizeableRenderable <FoundationXPCProtocolP...
mit
leikind/wice_grid
lib/wice/table_column_matrix.rb
1898
module Wice # a matrix for all declared columns class TableColumnMatrix < Hash #:nodoc: # a structure to hold generates Arels for all column filters attr_reader :generated_conditions # init a matrix of all columns def initialize #:nodoc: super @generated_conditions = [] @by_tab...
mit
turing-complete/laboratory
src/internal/distribution/main_test.go
622
package distribution import ( "testing" "github.com/ready-steady/assert" ) func TestParse(t *testing.T) { cases := []struct { line string success bool }{ {"Beta(1, 1)", true}, {"beta(0.5, 1.5)", true}, {" Beta \t (1, 1)", true}, {"Gamma(1, 1)", false}, {"Beta(1, 1, 1)", false}, {"beta(-1, 1)",...
mit
frogocomics/SpongeAPI
src/main/java/org/spongepowered/api/item/inventory/properties/AcceptsItems.java
4628
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
mit
tinco/nanc
README.md
2212
NANC ============== Not ANSI C Compiler (pronounce: Nancy) Nanc is a two phase project. Phase one is to create a C compiler in Haskell that conforms to specs in such a way that it compiles most well written C projects. Phase two will be a fork of phase one. In it we will diverge from the C spec in such a way as to c...
mit
fga-gpp-mds/2017.2-Receituario-Medico
medical_prescription/medicine/test/test_view_list_all_medications.py
676
from django.test import TestCase from medicine.models import Medicine from medicine.views import ListAllMedicines from user.models import HealthProfessional class TestListAllMedicines(TestCase): def setUp(self): # Making a HealthProfessional self.view = ListAllMedicines # Making medica...
mit
sebardo/social-sandbox
plugins/PubsPlugin/modules/follow/templates/listFollowersSuccess.php
1676
<?php use_javascript(sfConfig::get('app_base_url') . 'PubsPlugin/js/follow.js') ?> <?php if ($sf_user->getGuardUser()->getId() == $datos->getId()) { ?> <?php include_partial('follow', array('datos' => $datos, 'follows' => $followers, 'action' => 'follower')) ?> <?php } else { ?> <?php $follow = Doctrine::getTab...
mit
jkoritzinsky/Perspex
src/Avalonia.Visuals/Rendering/RenderLayer.cs
1456
using Avalonia.Media; using Avalonia.Platform; using Avalonia.Utilities; using Avalonia.VisualTree; namespace Avalonia.Rendering { public class RenderLayer { private readonly IDrawingContextImpl _drawingContext; public RenderLayer( IDrawingContextImpl drawingContext, S...
mit
DragonDTG/vex
lib/private/static/scripts/framework/controller/interceptor/authorization_interceptor.js
2004
/** * @license Copyright (c) 2012, Viet Trinh All Rights Reserved. * Available via MIT license. */ /** * An authorizeation interceptor used to determine if the user can access the given resource. */ define([ 'framework/controller/interceptor/i_interceptor', 'framework/core/utils/clazz', 'framework/core/def...
mit
OliveAwesomesauz/role-playing-wiki
run.sh
52
forever -w . node jingo -c ~/work/wikis/config.yaml
mit
owainkenwayucl/stats-plus-plus
sql/jobs-period.sql
130
select job_number,start_time,end_time,cost from %DB%.accounting_view where (end_time > start_time AND end_period = "%PERIOD%");
mit
saysjonathan/libconman
src/user/getgroup.c
291
#include <errno.h> #include <grp.h> #include <string.h> #include "user.h" int cm_user_get_group(struct passwd *pw, char **group) { errno = 0; struct group *g = getgrgid(pw->pw_gid); if(g == NULL) { return CM_ERR_NOGRP; } strncpy(*group, g->gr_name, strlen(g->gr_name)); return 0; }
mit
kenvalleydc/phaser
v2-community/docs/Phaser.Color.html
211881
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Phaser Class: Color</title> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/default.css"> <link type="text/css" rel="styl...
mit
WickedFlame/MeasureMap
src/MeasureMap/SessionHandlers/ISessionHandler.cs
718
 namespace MeasureMap { /// <summary> /// Chain of responsibility for executing tasks /// </summary> public interface ISessionHandler { /// <summary> /// Set the next execution item /// </summary> /// <param name="next">The next handler for the session</param> ...
mit
nullzion/nullstrap
gulpfile.js
2280
var pkg = require('./package.json'), gulp = require('gulp'), gutil = require('gulp-util'), coffee = require('gulp-coffee'), concat = require('gulp-concat'), uglify = require('gulp-uglify'), livereload = require('gulp-livereload'), rename = require('gulp-rename'), coffeelint = require('gulp-coffeelint'), jade =...
mit
plotly/python-api
packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py
521
import _plotly_utils.basevalidators class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_...
mit
slovebj/zxui
packages/card/index.js
129
const Card = require('./src/main'); Card.install = function(Vue) { Vue.component(Card.name, Card); }; module.exports = Card;
mit
developedbyme/dbm
javascripts/dbm/classes/dbm/core/FlowBaseObject.js
7899
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */ /** * Base object for objects that are using properites to flow updates through the application. */ dbm.registerClass("dbm.core.FlowBaseObject", "dbm.core.BaseObject...
mit
baffelli/pyperator
pyperator/__init__.py
222
from pyperator.decorators import inport, outport, component, run_once from pyperator.nodes import Component from pyperator.DAG import Multigraph from pyperator.utils import InputPort, OutputPort import pyperator.components
mit
ColFusion/PentahoKettle
kettle-data-integration/docs/api/org/pentaho/di/ui/repository/package-frame.html
1632
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_27) on Wed Nov 21 16:03:52 EST 2012 --> <TITLE> org.pentaho.di.ui.repository </TITLE> <META NAME="date" CONTENT="2012-11-21"> <LINK REL ="styleshee...
mit
maxdl/Synapse.py
synapse/main.py
24280
import itertools import os.path import sys import time from . import core from . import file_io from . import geometry from . import stringconv from . import version # # Functions # def save_output(profileli, opt): """ Save a summary of results of evaluated profiles """ def m(x, pixelwidth): retu...
mit
ByzanTine/Infix-MathExpression-Interpreter
Makefile
2913
# A sample Makefile for building Google Test and using it in user # tests. Please tweak it to suit your environment and project. You # may want to move it to your project's root directory. # # SYNOPSIS: # # make [all] - makes everything. # make TARGET - makes the given target. # make clean - removes all files...
mit
rahulptel/Android-Basics-Nanodegree
README.md
1154
# Android Basics Nanodegree This repository contains the projects required to complete the [Android Basics Nanodegree](https://in.udacity.com/course/android-basics-nanodegree-by-google--nd803/) offered by [Udacity](https://in.udacity.com/). ## List of courses It consisted of the following five courses: * [Android B...
mit
PeaceCorpsKenya/KSL-Glossary
site/F.html
4152
<!doctype html> <head> <meta charset="UTF-8"> <title>Peace Corps Kenya - KSL Glossary</title> <link rel="icon" href="images/favicon.gif" type="image/x-icon"/> <!--[if lt IE 9]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link rel="shortcut icon" href="images/...
mit
publify/publify
publify_core/spec/controllers/admin/articles_controller_spec.rb
17734
# frozen_string_literal: true require "rails_helper" RSpec.describe Admin::ArticlesController, type: :controller do render_views before do create :blog end describe "index" do let(:publisher) { create(:user, :as_publisher) } let!(:article) { create(:article) } before do sign_in publis...
mit
HackAveiro/web2badge-server
src/HackAveiro/Web2Badge/Util/StringCleaner.php
1742
<?php namespace HackAveiro\Web2Badge\Util; class StringCleaner { static function removeAccents($string) { $unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A', 'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A', 'Æ...
mit
Ledoux/ShareYourSystem
Pythonlogy/ShareYourSystem/Standards/Classors/Propertiser/Readme.md
42033
<!-- FrozenIsBool False --> #Propertiser ##Doc ---- > > The Propertiser is an augmented Defaultor because it will set defaults attributes > possibly in properties for the new-style decorated classes. This can set objects > with high controlling features thanks to the binding > > ---- <small> View the Propertise...
mit
andeandr100/Crumbled-World
Lua/MapEditor/Tools/Models/lineModel.lua
3797
--this = SceneNode() LineModel = {} function LineModel.new(inParentNode, inColor, size) --inParentNode = SceneNode() local self = {} local mesh = NodeMesh() local color = inColor local points = {} local w = size and size or 0.075 function self.setVisible(visible) mesh:setVisible(visible) end ...
mit
jorisdg/dynamicsaxadmin
CodeCrib.AX.Manage/CodeCrib.AX.Manage/ModelStore.cs
18086
//This C# code file was released under the Ms-PL license //http://www.opensource.org/licenses/ms-pl.html //This script was originally intended for use with Microsoft Dynamics AX //and maintained and distributed as a project on CodePlex //http://dynamicsaxadmin.codeplex.com using System; using System.Collections.Gener...
mit
odddivision/gifbox
README.md
3490
gifbox ====== Little Python/Tornado server that cycles through gifs, plus instructions for how to set it up to launch automatically in Chromium on a Raspberry Pi ###Install Instructions 1. Use SDFormatter to format SD card (at least 8GB, more likely 16GB) 1. Download NOOBS (http://www.raspberrypi.org/downloads/) 1...
mit
mobilecp/Windows-universal-samples
xaml_xamluibasics/CS/AppUIBasics/Common/NullableBooleanToBooleanConverter.cs
741
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml.Data; namespace AppUIBasics.Common { public class NullableBooleanToBooleanConverter : IValueConverter { public object Convert(object value, Type targetTy...
mit
GFunkloostar/ARFramesInGridCalculator
README.md
2613
# ARFramesInGridCalculator [![Version](https://img.shields.io/cocoapods/v/ARFramesInGridCalculator.svg?style=flat)](http://cocoadocs.org/docsets/ARFramesInGridCalculator) [![License](https://img.shields.io/cocoapods/l/ARFramesInGridCalculator.svg?style=flat)](http://cocoadocs.org/docsets/ARFramesInGridCalculator) [![P...
mit
inthegully/steveGillian
css/registry.css
825
.registry-height { height: 770px; } .registry-body { width: 90%; margin: 0 auto; background-color: rgba(255, 255, 255, 0.7); padding-top: 15px; padding-bottom: 15px; margin-top: 25px; margin-bottom: 25px; @media (min-width: 1025px) { width: 65%; } } h3 { font-family: 'Josefin Sans', sans-seri...
mit
nazwhale/spaceship
public/js/interface.js
1629
(function(exports) { function changeSky(location) { var sky = document.getElementById("image-360"); sky.setAttribute('src', location); } function addMonolith() { var box = document.createElement('a-box'); document.querySelector('a-scene').appendChild(box); box.setAttribute('id', 'monolith');...
mit
No129/blog
_posts/2017-08-27-高會-精選範例.md
350
--- layout: post title: "[高會精選範例] 01" date: 2017-08-27 desc: "[高會精選範例] 01" keywords: "" categories: [Accounting] tags: [高會] icon: --- > 1. 100 年 1 月 1 日甲公司發行每股面額 $10 ( 當日每股市價 $15 ) 的普通股 10,000 股,交換取得乙公司流通在外的全部股份,乙公司隨即解散。
mit
SchedulesPlus/SchedulesPlus
js/inject.js
1296
function injectScript(file, node) { var th = document.getElementsByTagName(node)[0]; var s = document.createElement('script'); s.setAttribute('type', 'text/javascript'); s.setAttribute('src', file); th.appendChild(s); } function injectStyle(file, node) { var th = document.getElementsByTagName(no...
mit
pablodip/felpado
tests/functions/requiredTest.php
592
<?php namespace felpado\tests; use felpado as f; class requiredTest extends felpadoTestCase { public function testRequiredReturnsARequiredInstance() { $paramRule = f\required(); $this->assertInstanceOf('felpado\required', $paramRule); } public function testRequiredPassesTheParams() ...
mit
abratashov/TManager
app/policies/comment_policy.rb
572
class CommentPolicy < ApplicationPolicy attr_reader :user, :comment def initialize(user, comment) @user = user @comment = comment end def index? true end def show? comment.project.user_id == @user.id end def create? show? end def new? create? end def update? sho...
mit
daiz713/RefactorForCSP
refactor_csp.pl
4050
#!/usr/bin/perl -w # # refactor_csp.pl # # Refactor for CSP v2 # 実行時引数のディレクトリ内の全てのHTMLファイルに対して、 # HTMLソース内部のタグ<script>を外部jsファイル読み込み形式に変更する # 生成されるファイルの命名規則は Chrome Dev Editor に従い、以下のようにした # # index.html -> index.html.pre_csp (初回のみ生成されるコピーファイル) # index.html # index.html.0.js, index.html.1....
mit
Jugendhackt/Post-It
data.js
56516
// Get User's Coordinate from their Browser window.onload = function() { // HTML5/W3C Geolocation if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(UserLocation); } // Default to Washington, DC else NearestCity(38.8951, -77.0367); } // Callback function for asynchronous call to HT...
mit
6ag/WeiboSwift-mvvm
WeiboSwift/Classes/Utils/Additions/UIButton+CZAddition.h
1386
// // UIButton+CZAddition.h // // Created by 刘凡 on 16/5/17. // Copyright © 2016年 itcast. All rights reserved. // #import <UIKit/UIKit.h> @interface UIButton (CZAddition) /** 创建文本按钮 @param title 标题文字 @param fontSize 字体大小 @param normalColor 默认颜色 @param highlightedColor 高亮颜色 @return U...
mit