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 |
|---|---|---|---|---|---|
<div class="commune_descr limited">
<p>
Charly est
une commune localisée dans le département de l'Aisne en Picardie. Elle comptait 2 706 habitants en 2008.</p>
<p>À Charly le salaire médian par mois par personne se situe à approximativement 1 927 € net. C'est inférieur à la moyenne du pays.</p>
... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/02163.html | HTML | mit | 2,106 |
<!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... | 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 | HTML | mit | 7,359 |
# linux 文件系统
## 文件存储
文件存储在磁盘上,磁盘的最小存储单元是扇区,每个扇区存储512个字节(0.5KB)
操作系统在读取文件时,一般一次读取多个扇区(一个个读太慢),即一次行读取一个块,这种由多个扇区组成的"块",是文件存取的最小单位。"块"的大小,最常见的是4KB,即连续八个 sector组成一个 block
文件的数据都存储在块中,如果要找到块,我们还必须找到一个地方储存文件的元信息,包括文件的创建者,创建时间等等基础信息。这个存储元数据的qu区域就是inode,
inode相当于书籍的目录,我们必须先找到目录,才能找到内容所在的章节和页码
// TODO SSD 的寻址和存储
## 2. ... | lys091112/doc | util/system/linux/basic/system-learn/文件系统.md | Markdown | mit | 3,957 |
<p>pooh!</p>
| Orbiit/gunn-web-app | psa/1989-06-04.html | HTML | mit | 13 |
<?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... | i4web/dcook | functions.php | PHP | mit | 1,338 |
/** @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... | Kanma/Athena-GUI | include/Athena-GUI/SystemInterface.h | C | mit | 2,335 |
/*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-... | mauricedoepke/docscloud-server | src/services/files/files.filters.js | JavaScript | mit | 350 |
/*! 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... | dhabersack/remarkable-server | sass/style.css | CSS | mit | 10,304 |
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>
... | erikzhouxin/CSharpSolution | TechTester/FamliyFinanceWebSI/App_Api/Famliy.Finance.Common/HtmlHelper2.cs | C# | mit | 876 |
{{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"}}
... | luisibanez/SahanaEden | views/rms/pledge_update.html | HTML | mit | 1,143 |
<?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(... | MiaoZhua/mzworld-php | core/Handler/Admin/Article/Ad/Read.handler.php | PHP | mit | 3,167 |
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() {
... | mariasaavedra/foodtruck-ui | src/app/core/home/home.service.js | JavaScript | mit | 755 |
<!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... | 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 | HTML | mit | 7,854 |
---
order: 11
title:
zh-CN: 反馈
en-US: Feedback
---
为了帮助用户了解应用当前要做什么,也给用户的下一步行为做参考,以及了解操作后所产生的结果 ,当用户和系统需要交互时,使用不同的模式来反馈信息或结果。当设计者使用反馈或者自定义一些反馈时,请注意:
- 为用户在各个阶段提供必要、积极、即时的反馈;
- 避免过度反馈,以免给用户带来不必要的打扰,能够及时看到效果的、简单的操作,可以省略反馈提示。
---
## 提示信息
任何一个产品,即使用户界面做的再好,也离不开用户引导和信息提示。提示信息是用来告诉用户需要知道什么、采取什么样行动的内容。
### 警告
#### ... | RaoHai/ant-design | docs/spec/feedback.md | Markdown | mit | 6,037 |
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();... | ElderByte-/josc | josc-api/src/main/java/com/elderbyte/josc/api/BlobObject.java | Java | mit | 2,141 |
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... | gophergala2016/scattr | evaluate.go | GO | mit | 525 |
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... | joordas/react-fem | js/Header.js | JavaScript | mit | 1,191 |
#! /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 --... | BennyLi/dotfiles | rofi/modi/search-duden.sh | Shell | mit | 462 |
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... | bartwe/Gearset | Gearset/Components/Profiler/Profiler.cs | C# | mit | 19,770 |
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... | SoftEng-HEIGVD/Teaching-HEIGVD-AMT-Example-MVC | MVCDemo/src/main/java/ch/heigvd/amt/mvcdemo/rest/resources/SectorsResource.java | Java | mit | 3,061 |
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)
... | Grimace1975/gpustructs | src/Structs.Data.Btree/Core+Btree/BtShared+Alloc.cs | C# | mit | 18,930 |
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... | augi/gson-scala | src/test/scala/cz/augi/gsonscala/UnitSpec.scala | Scala | mit | 2,859 |
# 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... | kamenlitchev/cucumber-ruby-core | lib/cucumber/core/test/runner.rb | Ruby | mit | 4,031 |
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
| mecampbellsoup/btc_price | spec/lib/price_spec.rb | Ruby | mit | 258 |
<!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... | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/ef/48/ef48bd73-c474-489a-b1cb-028371583648.html | HTML | mit | 56,456 |
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"}
... | SvenFrankson/SvenFrankson.github.io | afev/scripts/question-4-1.js | JavaScript | mit | 1,257 |
#!/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 "{}"... | waltermoreira/dockeransible | app_builder/app_builder_image/concat_roles.py | Python | mit | 3,259 |
# 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.
| jhbruhn/nwz-rss | README.md | Markdown | mit | 290 |
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... | vanessayuenn/batarangle | example-apps/kitchen-sink-example/source/components/dynamic-controls/load-as-root-component.ts | TypeScript | mit | 812 |
/*
* 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... | ffleurey/FFBPG | src/main/java/eu/diversify/ffbpg/evolution/platforms/DropOneRandomService.java | Java | mit | 1,234 |
# !!!!!!! 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... | operepo/ope | client_tools/svc/rc/usr/share/perl5/core_perl/unicore/lib/NFDQC/N.pl | Perl | mit | 2,886 |
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... | infinitered/solidarity | src/extensions/functions/setSolidaritySettings.ts | TypeScript | mit | 425 |
<?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... | api-platform/core | src/Doctrine/Odm/Filter/AbstractFilter.php | PHP | mit | 3,450 |
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... | EasyPeasyLemonSqueezy/MadCat | MadCat/NutEngine/Physics/Collider/CirclevsCircle.cs | C# | mit | 1,838 |
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... | nukesz/swcraft | java-se-tutorial/src/test/java/org/swcraft/javase/collections/map/MapImplementationsTest.java | Java | mit | 1,700 |
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: ".... | AlloyTeam/Nuclear | components/icon/esm/face-two-tone.js | JavaScript | mit | 873 |
<!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>
... | uniter/uniter-jquery | index.html | HTML | mit | 5,547 |
<!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" ... | 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 | HTML | mit | 6,874 |
/*
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'
} );
| Rudhie/simlab | assets/ckeditor/plugins/horizontalrule/lang/no.js | JavaScript | mit | 241 |
#!/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
# ... | yasoob/PythonRSSReader | venv/lib/python2.7/dist-packages/sessioninstaller/backends/synaptic.py | Python | mit | 3,567 |
<?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... | CloudFramework-io/appengine-php-core | src/class/DataValidation.php | PHP | mit | 19,606 |
<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> | lenesvc/ProjetoMvc | application/views/includes/msg_sucesso.php | PHP | mit | 153 |
<?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')) {
... | overtrue/laravel-pinyin | src/helpers.php | PHP | mit | 2,405 |
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
... | smalruby/smalrubot | lib/smalrubot/board/studuino.rb | Ruby | mit | 587 |
'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 =... | bitjson/s18n | lib/compareLocales.js | JavaScript | mit | 1,256 |
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... | piouPiouM/compass-completion | README.md | Markdown | mit | 1,808 |
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();
... | Sage-Bionetworks/dashboard-core | src/main/java/org/sagebionetworks/dashboard/model/AccessRecord.java | Java | mit | 436 |
//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... | standardgaussian/Titania | lib/game/entities/physEnt.js | JavaScript | mit | 12,058 |
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'
#
... | dpla/KriKri | lib/krikri/enrichments/split_coordinates.rb | Ruby | mit | 2,449 |
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... | BenSaud-CS/Collage | Practical4_Stack&Queue/src/code/template/QueueArray.java | Java | mit | 1,484 |
<!--<?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}'>{... | maicong/OpenAPI | MetInfo5.2/admin/templates/met/content/about/index.html | HTML | mit | 3,949 |
#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... | Pomona/Pomona | tests/Pomona.SystemTests/VirtualPropertyTests.cs | C# | mit | 1,902 |
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... | judovana/jenkins-scm-koji-plugin | koji-scm-lib/src/main/java/org/fakekoji/xmlrpc/server/expensiveobjectscache/SingleUrlResponseCache.java | Java | mit | 9,352 |
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) {
... | AltSchool/ember-cli-redux | addon/mixins/ember-redux.js | JavaScript | mit | 610 |
---
layout: default
title: Team
permalink: /team/
color: "#00bcd4"
modal: team
---
{% include general/top-section.html %}
{% include team/team.html %} | ozasadnyy/zeppelin-grunt | app/team.html | HTML | mit | 154 |
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... | yonh/wharf | Godeps/_workspace/src/github.com/containerops/crew/router/router.go | GO | mit | 1,656 |
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... | bynaki/nowonlib.node | gulpfile.js | JavaScript | mit | 446 |
#!/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
#
... | PieterGit/oref0 | bin/oref0-setup.sh | Shell | mit | 66,039 |
<?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;
... | Chotainghe/chotainghe | YiiBasic/models/AdminLogin.php | PHP | mit | 1,953 |
/**
* 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... | facebook/FBSimulatorControl | PrivateHeaders/SimulatorKit/SimDisplayResizeableRenderable-Protocol.h | C | mit | 444 |
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... | leikind/wice_grid | lib/wice/table_column_matrix.rb | Ruby | mit | 1,898 |
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)",... | turing-complete/laboratory | src/internal/distribution/main_test.go | GO | mit | 622 |
/*
* 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... | frogocomics/SpongeAPI | src/main/java/org/spongepowered/api/item/inventory/properties/AcceptsItems.java | Java | mit | 4,628 |
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... | tinco/nanc | README.md | Markdown | mit | 2,212 |
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... | fga-gpp-mds/2017.2-Receituario-Medico | medical_prescription/medicine/test/test_view_list_all_medications.py | Python | mit | 676 |
<?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... | sebardo/social-sandbox | plugins/PubsPlugin/modules/follow/templates/listFollowersSuccess.php | PHP | mit | 1,676 |
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... | jkoritzinsky/Perspex | src/Avalonia.Visuals/Rendering/RenderLayer.cs | C# | mit | 1,456 |
/**
* @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... | DragonDTG/vex | lib/private/static/scripts/framework/controller/interceptor/authorization_interceptor.js | JavaScript | mit | 2,004 |
forever -w . node jingo -c ~/work/wikis/config.yaml | OliveAwesomesauz/role-playing-wiki | run.sh | Shell | mit | 52 |
select job_number,start_time,end_time,cost from %DB%.accounting_view where
(end_time > start_time AND end_period = "%PERIOD%");
| owainkenwayucl/stats-plus-plus | sql/jobs-period.sql | SQL | mit | 130 |
#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;
}
| saysjonathan/libconman | src/user/getgroup.c | C | mit | 291 |
<!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... | kenvalleydc/phaser | v2-community/docs/Phaser.Color.html | HTML | mit | 211,881 |
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>
... | WickedFlame/MeasureMap | src/MeasureMap/SessionHandlers/ISessionHandler.cs | C# | mit | 718 |
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 =... | nullzion/nullstrap | gulpfile.js | JavaScript | mit | 2,280 |
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_... | plotly/python-api | packages/python/plotly/plotly/validators/sankey/node/hoverlabel/_bgcolor.py | Python | mit | 521 |
const Card = require('./src/main');
Card.install = function(Vue) {
Vue.component(Card.name, Card);
};
module.exports = Card;
| slovebj/zxui | packages/card/index.js | JavaScript | mit | 129 |
/* 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... | developedbyme/dbm | javascripts/dbm/classes/dbm/core/FlowBaseObject.js | JavaScript | mit | 7,899 |
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 | baffelli/pyperator | pyperator/__init__.py | Python | mit | 222 |
<!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... | ColFusion/PentahoKettle | kettle-data-integration/docs/api/org/pentaho/di/ui/repository/package-frame.html | HTML | mit | 1,632 |
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... | maxdl/Synapse.py | synapse/main.py | Python | mit | 24,280 |
# 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... | ByzanTine/Infix-MathExpression-Interpreter | Makefile | Makefile | mit | 2,913 |
# 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... | rahulptel/Android-Basics-Nanodegree | README.md | Markdown | mit | 1,154 |
<!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/... | PeaceCorpsKenya/KSL-Glossary | site/F.html | HTML | mit | 4,152 |
# 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... | publify/publify | publify_core/spec/controllers/admin/articles_controller_spec.rb | Ruby | mit | 17,734 |
<?php
namespace HackAveiro\Web2Badge\Util;
class StringCleaner
{
static function removeAccents($string)
{
$unwanted_array = array('Š'=>'S', 'š'=>'s', 'Ž'=>'Z', 'ž'=>'z', 'À'=>'A',
'Á'=>'A', 'Â'=>'A', 'Ã'=>'A', 'Ä'=>'A', 'Å'=>'A',
'Æ... | HackAveiro/web2badge-server | src/HackAveiro/Web2Badge/Util/StringCleaner.php | PHP | mit | 1,742 |
<!--
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... | Ledoux/ShareYourSystem | Pythonlogy/ShareYourSystem/Standards/Classors/Propertiser/Readme.md | Markdown | mit | 42,033 |
--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
... | andeandr100/Crumbled-World | Lua/MapEditor/Tools/Models/lineModel.lua | Lua | mit | 3,797 |
//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... | jorisdg/dynamicsaxadmin | CodeCrib.AX.Manage/CodeCrib.AX.Manage/ModelStore.cs | C# | mit | 18,086 |
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... | odddivision/gifbox | README.md | Markdown | mit | 3,490 |
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... | mobilecp/Windows-universal-samples | xaml_xamluibasics/CS/AppUIBasics/Common/NullableBooleanToBooleanConverter.cs | C# | mit | 741 |
# ARFramesInGridCalculator
[](http://cocoadocs.org/docsets/ARFramesInGridCalculator)
[](http://cocoadocs.org/docsets/ARFramesInGridCalculator)
[![P... | GFunkloostar/ARFramesInGridCalculator | README.md | Markdown | mit | 2,613 |
.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... | inthegully/steveGillian | css/registry.css | CSS | mit | 825 |
(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');... | nazwhale/spaceship | public/js/interface.js | JavaScript | mit | 1,629 |
---
layout: post
title: "[高會精選範例] 01"
date: 2017-08-27
desc: "[高會精選範例] 01"
keywords: ""
categories: [Accounting]
tags: [高會]
icon:
---
> 1. 100 年 1 月 1 日甲公司發行每股面額 $10 ( 當日每股市價 $15 ) 的普通股 10,000 股,交換取得乙公司流通在外的全部股份,乙公司隨即解散。 | No129/blog | _posts/2017-08-27-高會-精選範例.md | Markdown | mit | 350 |
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... | SchedulesPlus/SchedulesPlus | js/inject.js | JavaScript | mit | 1,296 |
<?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()
... | pablodip/felpado | tests/functions/requiredTest.php | PHP | mit | 592 |
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... | abratashov/TManager | app/policies/comment_policy.rb | Ruby | mit | 572 |
#!/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.... | daiz713/RefactorForCSP | refactor_csp.pl | Perl | mit | 4,050 |
// 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... | Jugendhackt/Post-It | data.js | JavaScript | mit | 56,516 |
//
// 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... | 6ag/WeiboSwift-mvvm | WeiboSwift/Classes/Utils/Additions/UIButton+CZAddition.h | C | mit | 1,386 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.