repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
jojow/opentosca-dockerfiles | engine/Dockerfile | 2100 | FROM ubuntu:14.04
MAINTAINER Johannes Wettinger, http://github.com/jojow
ENV ENGINE_BRANCH maven
ENV ENGINE_REV HEAD
ENV MAVEN_VERSION 3.3.9
ENV MAVEN_URL http://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
ENV HOME /root
WORKDIR ${HOME}
ENV DEBIAN_FRONTE... | mit |
xsleonard/flask-dogstatsd | README.md | 1318 | flask-dogstatsd
===============
[](http://badge.fury.io/py/Flask-DogStatsd)
[](https://travis-ci.org/xsleonard/flask-dogstatsd)
[ function to supply extra context on errors and
performance issues. This can help to add information that is not already part of
the request, session or e... | mit |
selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/ExpressRouteCircuitSku.java | 2518 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2020_04_01;
import com.fasterxml.jackso... | mit |
rdunlop/unicycling-registration | app/policies/judge_policy.rb | 827 | class JudgePolicy < ApplicationPolicy
def create_scores?
record.competition.unlocked? && (user_match? || director?(record.event) || super_admin?)
end
def view_scores?
(user_match? || director?(record.event) || super_admin?)
end
def index?
director?(record.event) || super_admin?
end
def togg... | mit |
LilyaSidorenko/jsmp-project2 | webpack.dev.config.js | 598 | const path = require('path');
const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const commonConfig = require('./webpack.common.config.js');
module.exports = function () {
return webpackMerge(commonConfig, {
watch: true,
devtool: 'cheap-module-source-map',
/... | mit |
kuhlenh/port-to-core | Reports/by/bytescout.barcode.4.31.0.784/Bytescout.BarCode.WPF-net45.html | 131046 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | mit |
nikhilrajaram/nikhilrajaram.github.io | instructors/James_Kates.md | 1413 | ---
layout: page
title: "James Kates"
comments: true
description: "blanks"
keywords: "James Kates,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script>
<!-- <script s... | mit |
BiathlonHelsinki/BiathlonContract | test/3_biathlontoken.js | 7223 | const Nodelist = artifacts.require("./Nodelist.sol");
const BiathlonNode = artifacts.require("./BiathlonNode.sol");
const SecondNode = artifacts.require("./SecondNode.sol");
const BiathlonToken = artifacts.require("./BiathlonToken.sol");
const Ownable = artifacts.require('../contracts/ownership/Ownable.sol');
// const... | mit |
wonghoifung/tips | goworkspace/src/jvmgo/classfile/class_reader.go | 874 | package classfile
import "encoding/binary"
type ClassReader struct {
data []byte
}
func (self *ClassReader) readUint8() uint8 {
val := self.data[0]
self.data = self.data[1:]
return val
}
func (self *ClassReader) readUint16() uint16 {
val := binary.BigEndian.Uint16(self.data)
self.data = self.data[2:]
return... | mit |
mjsmith707/KSPCompiler | src/ASMCode.java | 4329 | import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.LinkedList;
//this code contains the output assembly code that the program outputs.
//will have at least three functions:
//add(string, string, string, string) <- adds an assembly code line
/... | mit |
zorec/ng2-pack | src/app/filter-input/filter-input.component.ts | 1320 | import { Component, OnInit, Input, EventEmitter, Output } from '@angular/core';
import { Filter, FilterType } from 'lib/filter';
@Component({
selector: 'iw-filter-input',
templateUrl: './filter-input.component.html',
styleUrls: ['./filter-input.component.css']
})
export class FilterInputComponent implements OnIn... | mit |
perusworld/mcdevapi-lostandstolen-refimpl-web | index.js | 2903 | var express = require('express');
var bodyParser = require('body-parser');
var fs = require('fs')
var app = express();
var lostStolen = require('mastercard-lost-stolen');
var MasterCardAPI = lostStolen.MasterCardAPI;
var dummyData = [];
var dummyDataFiles = ['www/data/menu.json', 'www/data/account-number.json'];
dumm... | mit |
Studio39/node-snapclone | routes/index.js | 301 | var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
router.get('/about', function(req, res, next) {
res.render('about', { title: 'About' });
});
module.exports = router;
| mit |
NikolaySpasov/Softuni | C# Advanced/10. Advanced Retake Exam - 22 August 2016/10. Advanced Retake Exam - 22 August 2016/Properties/AssemblyInfo.cs | 1453 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("10.... | mit |
brycelelbach/asl | documentation/html/structadobe_1_1unary__compose-members.html | 7661 | <!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | mit |
BlancheXu/test | examples/with-stomp/README.md | 1312 | # Stomp example
## How to use
### Using `create-next-app`
Execute [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app) with [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) or [npx](https://github.com/zkat/npx#readme) to bootstrap the example:
```bash
npx create-next-app --e... | mit |
chrisjsherm/SurplusMvc | Surplus/Migrations/201504291914587_EstValueMaxMin.Designer.cs | 821 | // <auto-generated />
namespace Surplus.Migrations
{
using System.CodeDom.Compiler;
using System.Data.Entity.Migrations;
using System.Data.Entity.Migrations.Infrastructure;
using System.Resources;
[GeneratedCode("EntityFramework.Migrations", "6.1.3-40302")]
public sealed partial class EstVa... | mit |
johnnoone/salt-targeting | src/salt/utils/__init__.py | 537 | '''
salt.utils
~~~~~~~~~~
'''
class lazy_property(object):
'''
meant to be used for lazy evaluation of an object attribute.
property should represent non-mutable data, as it replaces itself.
http://stackoverflow.com/a/6849299/564003
'''
def __init__(self, fget):
self.fget = fget
... | mit |
hejunbinlan/iOSStarterTemplate | Classes/Service/Reachability.h | 3955 | /*
File: Reachability.h
Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
Version: 2.1
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
("Apple") in consideration of your agreement to the following terms, and your
use, installation, mo... | mit |
YushengLi/MultimediaDesignProject | config/application.rb | 1124 | require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module FlashFinalProject
class Application < Rails::Application
# Settings in config/environments/* ... | mit |
LeifBloomquist/LeapMotion | C#/LeapMIDI/LeapStuff.cs | 2374 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Leap;
namespace LeapMIDI
{
class LeapStuff
{
private Controller controller = new Controller();
public float posX { get; private set; }
public float posY { get; pr... | mit |
bzcheeseman/pytorch-inference | test/test_product.cpp | 1213 | //
// Created by Aman LaChapelle on 5/26/17.
//
// pytorch_inference
// Copyright (c) 2017 Aman LaChapelle
// Full license at pytorch_inference/LICENSE.txt
//
#include "../include/layers.hpp"
#include "utils.hpp"
int main(){
std::vector<pytorch::tensor> tests = test_setup({1, 1, 1},
... | mit |
weeniearms/graffiti | src/main/java/com/github/weeniearms/graffiti/GraphService.java | 1097 | package com.github.weeniearms.graffiti;
import com.github.weeniearms.graffiti.config.CacheConfiguration;
import com.github.weeniearms.graffiti.generator.GraphGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stere... | mit |
amostalong/SSFS | Assets/LuaFramework/ToLua/Source/Generate/UnityEngine_SkinnedMeshRendererWrap.cs | 10657 | //this source code was auto-generated by tolua#, do not modify it
using System;
using LuaInterface;
public class UnityEngine_SkinnedMeshRendererWrap
{
public static void Register(LuaState L)
{
L.BeginClass(typeof(UnityEngine.SkinnedMeshRenderer), typeof(UnityEngine.Renderer));
L.RegFunction("BakeMesh",... | mit |
sylviawan/oop_assignment1 | Desktop/Processing.app/Contents/Java/modes/java/reference/modelY_.html | 8356 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>modelY() \ Language (API) \ Processing 2+</title>
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
<meta htt... | mit |
sSeewald/nCore | src/nCore/Core/Router/Exception/RouterException.php | 572 | <?php
/**
* This file is part of the [n]core framework
*
* Copyright (c) 2014 Sascha Seewald / novael.de
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace nCore\Core\Router\Exception;
use nCore\Core\Exception\DefaultExcep... | mit |
jimolina/bakeangular | tests/Fixture/ParametersFixture.php | 1636 | <?php
namespace App\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* ParametersFixture
*
*/
class ParametersFixture extends TestFixture
{
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = [
'id' => ['type' => 'integer', 'length' => 11... | mit |
mulhod/bob_dylan_lyrics | songs/html/lay_lady_lay_3.html | 12400 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</meta>
<meta content="width=device-width, initial-scale=1" name="viewport">
</meta>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</link>
<link href="../../resources/stof-style.css" rel="stylesheet">
</link>
<s... | mit |
heil-hydra/hydramq | src/message/mod.rs | 12795 | mod message_set;
use std;
use std::fmt;
use linked_hash_map::{Iter, LinkedHashMap};
use uuid::Uuid;
pub mod message;
#[derive(Debug, PartialEq)]
pub struct Message {
properties: Map,
body: Option<Value>,
}
impl Message {
pub fn new() -> MessageBuilder {
MessageBuilder::new()
}
pub fn w... | mit |
typeset/typeset | Typeset.Domain.Configuration/IConfigurationRepository.cs | 233 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Typeset.Domain.Configuration
{
public interface IConfigurationRepository
{
IConfiguration Read(string path);
}
}
| mit |
spiridonov-oa/people-ma | public/modules/about/controllers/about.client.controller.js | 281 | 'use strict';
// Projects controller
angular.module('about').controller('AboutUsController', ['$scope', '$stateParams', '$state', '$location', 'Authentication',
function($scope, $stateParams, $state, $location, Authentication) {
$scope.authentication = Authentication;
}
]);
| mit |
libgraviton/graviton | src/Graviton/DocumentBundle/DependencyInjection/Compiler/Utils/AbstractField.php | 2983 | <?php
/**
* AbstractField class file
*/
namespace Graviton\DocumentBundle\DependencyInjection\Compiler\Utils;
/**
* Base document field
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license https://opensource.org/licenses/MIT MIT License
* @link http:/... | mit |
layheng/pog | doc/warmup.sql | 6079 | -- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: warmup
-- ------------------------------------------------------
-- Server version 5.5.49-0ubuntu0.14.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CH... | mit |
Dabea/BasicLogin | src/Abe/FileUploadBundle/Controller/UploadController.php | 3780 | <?php
namespace Abe\FileUploadBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Confi... | mit |
g0v/projectV | mirror/prvCode_07/cityCode_000-areaCode_06-deptCode_032/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_06-deptCode_032-liCode_0587.html | 6086 |
<!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=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | mit |
zhiyuanMA/ReactNativeShowcase | components/utils.js | 765 | import { Dimensions, PixelRatio } from 'react-native';
const Utils = {
ratio: PixelRatio.get(),
pixel: 1 / PixelRatio.get(),
size: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height,
},
post(url, data, callback) {
const fetchOptions = {
... | mit |
tgbugs/pyontutils | librdflib/setup.py | 1448 | import re
from setuptools import setup
def find_version(filename):
_version_re = re.compile(r"__version__ = '(.*)'")
for line in open(filename):
version_match = _version_re.match(line)
if version_match:
return version_match.group(1)
__version__ = find_version('librdflib/__init__.... | mit |
ucsf-ckm/ucsf-history-website | theme_photo21.html | 1709 | ---
---
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Photo - A History of UCSF</title>
<link href='https://fonts.googleapis.com/css?family=... | mit |
hhariri/Humanizer | src/Humanizer.Tests/Localisation/pt-BR/DateHumanizeTests.cs | 3481 | using Humanizer.Localisation;
using Xunit;
using Xunit.Extensions;
namespace Humanizer.Tests.Localisation.ptBR
{
public class DateHumanizeTests : AmbientCulture
{
public DateHumanizeTests() : base("pt-BR") { }
[Theory]
[InlineData(-2, "2 segundos atrás")]
[InlineData(-1, "um s... | mit |
xdougx/scala-activerecord | macro/src/main/scala/Deprecations.scala | 377 | package com.github.aselab.activerecord
import scala.language.experimental.macros
import scala.reflect.macros._
trait Deprecations {
def unsupportedInTransaction[A](c: Context)(a: c.Expr[A]): c.Expr[A] = {
import c.universe._
c.error(c.enclosingPosition, "dsl#inTransaction is deprecated. use ActiveRecordComp... | mit |
hdl881127/mean_io | packages/core/users/public/views/index.html | 177 | <div class="form main-form" ng-controller="AuthCtrl" ng-class="($state.is('auth.register')) ? 'register-form' : ''">
<div class="row login-form__left" ui-view></div>
</div>
| mit |
zatricion/Streams | ExamplesElementaryOperations/ExamplesOpNoState.py | 4241 | """This module contains examples of the op() function
where:
op(f,x) returns a stream where x is a stream, and f
is an operator on lists, i.e., f is a function from
a list to a list. These lists are of lists of arbitrary
objects other than streams and agents.
Function f must be stateless, i.e., for any lists u, v:
f(u... | mit |
pocky/MenuBundle | Model/MenuInterface.php | 845 | <?php
/*
* This file is part of the Black package.
*
* (c) Alexandre Balmes <albalmes@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Black\Bundle\MenuBundle\Model;
/**
* Class MenuInterface
*
* @package ... | mit |
GoWebyCMS/goweby-core-dev | pages/templates/page/page_detail.html | 1375 | {% extends 'base.html' %}
{% load staticfiles %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-9">
<div class="post-header">
<h2>{{page.page_title}}</h2>
</div>
{% if page.image %}
<div class="video-wrapper">
<img cl... | mit |
HaikuArchives/FeedKit | libfeedkit/FeedKitConstants.h | 2663 | #ifndef LIBFEEDKIT_CONSTANTS_H
#define LIBFEEDKIT_CONSTANTS_H
#include <String.h>
#include <vector>
namespace FeedKit {
class Channel;
class Content;
class Enclosure;
class Feed;
class Item;
extern const char *ServerSignature;
typedef std::vector<BString> uuid_list_t;
typedef std::vector<Content *> conte... | mit |
arvici/framework | src/Arvici/Exception/ResponseAlreadySendException.php | 640 | <?php
/**
* Response Already Send Exception
*
* @author Tom Valk <tomvalk@lt-box.info>
* @copyright 2017 Tom Valk
*/
namespace Arvici\Exception;
class ResponseAlreadySendException extends ArviciException
{
/**
* ResponseAlreadySendException constructor.
* @param string $message
* @param ... | mit |
Macelai/operating-systems | system-call/main.c | 4505 | #include <stdio.h>
struct Employee {
unsigned int id;
char name[256];
char gender;
float salary;
};
void addEmployee(FILE *f) {
struct Employee emp;
printf("Adding a new employee, please type his id \n");
int id;
scanf("%d", &id);
if (id > 0) {
while (1) { //search if id already in use
struct Employee t... | mit |
novstylessee/novstylessee.github.io | _posts/2016-05-17-WEDDING-DRESSES-Jersey-Cap-Sleeve-Bridal-Dress-JB98629.md | 1759 | ---
layout: post
date: 2016-05-17
title: "WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629"
category: WEDDING DRESSES
tags: [WEDDING DRESSES]
---
### WEDDING DRESSES Jersey Cap Sleeve Bridal Dress JB98629
Just **$279.99**
###
<a href="https://www.readybrides.com/en/wedding-dresses/40561-jersey-cap-sleeve-bridal... | mit |
itslab-kyushu/youtube-comment-crawler | bin/cli.js | 867 | #!/usr/bin/env node
//
// cli.js
//
// Copyright (c) 2016-2017 Junpei Kawamoto
//
// This software is released under the MIT License.
//
// http://opensource.org/licenses/mit-license.php
//
const {
start,
crawl
} = require("../lib/crawler");
const argv = require("yargs")
.option("lang", {
describe... | mit |
mikee385/CollegeFbsRankings | Domain/Validations/ValidationService.cs | 1400 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CollegeFbsRankings.Domain.Games;
using CollegeFbsRankings.Domain.Rankings;
using CollegeFbsRankings.Domain.Teams;
namespace CollegeFbsRankings.Domain.Validations
{
public class ValidationServ... | mit |
sdether/Calculon | Calculon.Tests/BuilderTests.cs | 2235 | /* ----------------------------------------------------------------------------
* Copyright (C) 2013 Arne F. Claassen
* geekblog [at] claassen [dot] net
* http://github.com/sdether/Calculon
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated d... | mit |
r45r54r45/simplewe | application/views/consultation.php | 26096 | <div class="container" >
<div class="row page-title">
<div class="col-xs-12 text-center">
<span>Consultation</span>
</div>
</div>
</div>
<script type="text/javascript">
/**
* Created by Kupletsky Sergey on 05.11.14.
*
* Material Design Responsive Table
* Tested on Win8.1 with browsers: Chrome 37, Fire... | mit |
StoikoNeykov/Telerik | CSharp1/Loops/DecimalToHex/Properties/AssemblyInfo.cs | 1400 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("De... | mit |
notmessenger/poker-analysis | test/lib/errors/app.js | 1211 | const AppError = require('../../../lib/errors/app')
const assert = require('assert')
function doSomethingBad () {
throw new AppError('app error message')
}
it('Error details', function () {
try {
doSomethingBad()
} catch (err) {
assert.strictEqual(
err.name,
'AppError',
"Name property ... | mit |
emk/blogitr | spec/document_spec.rb | 3231 | require 'spec_helper'
describe Blogitr::Document do
def parse text, filter=:html
@doc = Blogitr::Document.new :text => text, :filter => filter
end
def should_parse_as headers, body, extended=nil
@doc.headers.should == headers
@doc.body.should == body
@doc.extended.should == extended
end
it ... | mit |
Grupo3-TallerUNLP/InfoSquid | src/Grupo3TallerUNLP/ConfiguracionBundle/Tests/Controller/ConfiguracionControllerTest.php | 2024 | <?php
namespace Grupo3TallerUNLP\ConfiguracionBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ConfiguracionControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static... | mit |
linpan/iScript | README.md | 36263 | ## iScript
包含项目:
> *[L]* *[W]* *[LW]* 分别表示,在linux, windows, linux和windows 下通过测试。
> ***windows用户可在babun (https://github.com/babun/babun) 下运行。***
- *[L]* [xiami.py](#xiami.py) - 下载或播放高品质虾米音乐(xiami.com)
- *[L]* [pan.baidu.com.py](#pan.baidu.com.py) - 百度网盘的下载、离线下载、上传、播放、转存、文件操作
- *[L]* [bt.py](#bt.py) - magnet torren... | mit |
IDCI-Consulting/ExtraFormBundle | Resources/public/js/editor/src/store/mutations.js | 854 |
export default {
cache: function (state, payload) {
state.apiCache[payload.api_url] = payload.api_response;
},
addConfiguredType: function (state, type) {
state.configuredTypes.push(type);
},
removeConfiguredType: function (state, index) {
state.configuredTypes.splice(index, 1);
},
update... | mit |
mongrelion/di-darkhttpd | Dockerfile | 181 | FROM gliderlabs/alpine:latest
MAINTAINER Carlos León <mail@carlosleon.info>
RUN apk-install darkhttpd
EXPOSE 80
ENTRYPOINT ["/usr/bin/darkhttpd"]
CMD ["/var/www", "--chroot"]
| mit |
7986LiChang/MyLearnDemos | js/DragDrop/README.md | 388 | ### 实现元素拖拽功能:
- EventUtil 封装跨浏览器时间处理对象
- EventTarget 自定义事件对象
- dragdrop 在其中实现元素拖拽
关键点:
**被拖拽元素使用 绝对定位absolute 或 相对定位relative**,在mousemove事件中,重新设置left 及 top值
添加mousedown/mouseup事件
修缮拖动:鼠标点击位置与元素顶端位置差异 | mit |
kodeitsolutions/ef-reports | PAS_fNotas_Credito.aspx.vb | 10260 | '-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
' Importando librerias
'--------------------------------------------------------------------------------------... | mit |
ohjames/chilon | bin/Makefile | 288 | .PHONY: build clean
build: .obj/chilon_sql_to_source
clean:
rm -rf .obj
.obj/%: %.cpp
@mkdir -p .obj
${CXX} -std=c++0x $^ -o $@ -I ../..
ifeq ($(wildcard .obj/*),)
install:
else
install:
@mkdir -p ${DESTDIR}/${prefix}/bin
@strip .obj/*
@cp .obj/* ${DESTDIR}/${prefix}/bin
endif
| mit |
rdtaylor/SimpleANN | src/test/scala/com/korpisystems/ANN/ANNTest.scala | 3200 | package com.korpisystems.SimpleANN
import org.scalatest.FunSuite
class ANNTest extends FunSuite {
test("ANN learns non-linear XOR properly") {
val inputs: ExpectedValues = List(
List(1, 1)
, List(0, 1)
, List(1, 0)
, List(0, 0)
)
val expected_out: ExpectedValues = List(
List(0)... | mit |
alxhub/angular | aio/src/test.ts | 640 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
declare const ... | mit |
Peekmo/RPGit | api/filters.go | 953 | /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /*
@author Axel Anceau - 2014
Package api contains general tools
*/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/
package api
import (
"fmt"
"github.com/revel/revel"
"runtime/debug"
)
/**/ /**/ /**/ /**/ /**/ /**/ /**/ /**/ /... | mit |
zhenyaracheva/TelerikAcademy | CSS/CSSLayout/01.tree-view.html | 1546 | <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tree View</title>
<link href="01.tree-view.css" rel="stylesheet" />
</head>
<body>
<nav>
<ul class="first">
<li>
<a href="#">List Item</a>
<ul>
<li>
<a href="#">Sublis... | mit |
silshack/summer2017 | _posts/nurahill/2017-05-30-nurahill-clicky-turtle.md | 1910 | ---
layout: post
author: nurahill
title: "Nura's Clicky turtle excercise"
---
Here is my code for option 1:
<iframe src="https://trinket.io/embed/python/3c8744a1ac" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
On option one, as usual, it took me a bit to come u... | mit |
SCLInternet/SclZfCurrency | src/SCL/ZF2/Currency/Form/Fieldset/TaxedPrice.php | 581 | <?php
namespace SCL\ZF2\Currency\Form\Fieldset;
use Zend\Form\Fieldset;
class TaxedPrice extends Fieldset
{
const AMOUNT_LABEL = 'Amount';
const TAX_LABEL = 'Tax';
public function init()
{
$this->add([
'name' => 'amount',
'type' => 'text',
'options' => ... | mit |
IsaacMiguel/ProchemBio | routes.js | 12314 | var indexController = require('./controllers/cIndex');
var usuarioController = require('./controllers/cUsuario');
var clientesController = require('./controllers/cCliente');
var adminController = require('./controllers/cAdmin');
var umedController = require('./controllers/cUmed');
var matepController = require('./contr... | mit |
sergiormb/ritsiga | src/AppBundle/Behat/BrowserContext.php | 1153 | <?php
/**
* Created by PhpStorm.
* User: tfg
* Date: 25/08/15
* Time: 20:03
*/
namespace AppBundle\Behat;
use Sylius\Bundle\ResourceBundle\Behat\DefaultContext;
class BrowserContext extends DefaultContext
{
/**
* @Given estoy autenticado como :username con :password
*/
public function iAmAuth... | mit |
jacksarick/My-Code | Python/python challenges/euler/012_divisable_tri_nums.py | 219 | ## Close
### What is the value of the first triangle number to have over five hundred divisors?
print max([len(m) for m in map(lambda k: [n for n in range(1,(k+1)) if k%n == 0], [sum(range(n)) for n in range(1,1000)])]) | mit |
shopOFF/Autos4Sale | Autos4Sale/Data/Autos4Sale.Data.Models/Properties/AssemblyInfo.cs | 1415 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Aut... | mit |
Livefyre/pseudonym | pseudonym/__init__.py | 55 | from errors import *
from manager import SchemaManager
| mit |
syrma-php/web-container | src/Syrma/WebContainer/ServerInterface.php | 552 | <?php
namespace Syrma\WebContainer;
/**
*
*/
interface ServerInterface
{
/**
* Start the server.
*
* @param ServerContextInterface $context
* @param RequestHandlerInterface $requestHandler
*/
public function start(ServerContextInterface $context, RequestHandlerInterface $requestHan... | mit |
iiet/iiet-git | doc/development/fe_guide/architecture.md | 792 | # Architecture
When you are developing a new feature that requires architectural design, or if
you are changing the fundamental design of an existing feature, make sure it is
discussed with one of the Frontend Architecture Experts.
A Frontend Architect is an expert who makes high-level Frontend design decisions
and d... | mit |
herimedia/mailchimp-gem | lib/mailchimp/api.rb | 1894 | module Mailchimp
class API
include HTTParty
format :plain
default_timeout 30
attr_accessor :api_key, :timeout, :throws_exceptions
def initialize(api_key = nil, extra_params = {})
@api_key = api_key || ENV['MAILCHIMP_API_KEY'] || self.class.api_key
@default_params = {:apikey => @api_k... | mit |
CommonAccord/Cmacc-Org | Doc/Wx/com/cooleygo/US/Consult/Sec/Confidentiality_Ownership_v01.md | 194 | Ti=Ownership
sec=All {_Confidential_Information} furnished to {_the_Consultant} by {_the_Client} is the sole and exclusive property of {_the_Client} or its suppliers or customers.
=[G/Z/ol/0]
| mit |
gokr/ardunimo | wrapper/src/cores/arduino/Print.cpp | 5552 | /*
Print.cpp - Base class that provides print() and println()
Copyright (c) 2008 David A. Mellis. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1... | mit |
caohonghiep/lkth | src/app/services/events.service.ts | 1639 | import { Injectable } from '@angular/core';
/**
* Created by AAAA on 3/21/2017.
*/
//http://stackoverflow.com/questions/9671995/javascript-custom-event-listener
//http://www.typescriptlang.org/play/
class MyEvent{
private context:Object;
private cbs: Function[] = [];
constructor(context: Object){
this.c... | mit |
ndt93/tetris | scripts/agent3.py | 5234 | import random
from datetime import datetime
from multiprocessing import Pool
import numpy as np
from scipy.optimize import minimize
def worker_func(args):
self = args[0]
m = args[1]
k = args[2]
r = args[3]
return (self.eval_func(m, k, r) -
self.eval_func(m, k, self.rt) -
... | mit |
jwright/porch | spec/porch/step_decorators/proc_step_decorator_spec.rb | 747 | RSpec.describe Porch::ProcStepDecorator do
describe ".decorates?" do
it "returns true if the step is a proc" do
expect(described_class).to be_decorates Proc.new {}
end
it "returns true if the step is a lambda" do
expect(described_class).to be_decorates lambda {}
end
it "returns false... | mit |
Symplify/MultiCodingStandard | tests/PhpCsFixer/Factory/FixerFactoryTest.php | 1399 | <?php
declare(strict_types=1);
namespace Symplify\MultiCodingStandard\Tests\PhpCsFixer\Factory;
use PhpCsFixer\Fixer\FixerInterface;
use PHPUnit\Framework\TestCase;
use Symplify\MultiCodingStandard\PhpCsFixer\Factory\FixerFactory;
final class FixerFactoryTest extends TestCase
{
/**
* @var FixerFactory
... | mit |
chrisenytc/pydemi | api/controllers/users.py | 1151 | # -*- coding: utf-8 -*-
""""
ProjectName: pydemi
Repo: https://github.com/chrisenytc/pydemi
Copyright (c) 2014 Christopher EnyTC
Licensed under the MIT license.
"""
# Dependencies
import uuid
from api import app
from hashlib import sha1
from flask import request
from flask import jsonify as JSON
from api.models.user ... | mit |
MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/node-addon-api/test/error.js | 2328 | 'use strict';
const buildType = process.config.target_defaults.default_configuration;
const assert = require('assert');
if (process.argv[2] === 'fatal') {
const binding = require(process.argv[3]);
binding.error.throwFatalError();
return;
}
test(`./build/${buildType}/binding.node`);
test(`./build/${buildType}/bi... | mit |
Manoj-Bisht/WebAPI-Boilerplate | WebAPI.Boilerplate.Api/App_Start/BundleConfig.cs | 1123 | using System.Web;
using System.Web.Optimization;
namespace WebAPI.Boilerplate.Api
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Ad... | mit |
chuanxiaoshi/YYBaseLib | YYBaseLib.framework/Headers/YYBaseLib.h | 1471 | //
// YYBaseLib.h
// YYBaseLib
//
// Created by 银羽网络 on 16/7/19.
// Copyright © 2016年 银羽网络. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppConfig.h"
#import "BaseViewController.h"
#import "CommonTool.h"
#import "DataVerify.h"
#import "FSMediaPicker.h"
#import "MBProgressHUD+MBProgressHUD_Category.h"
... | mit |
ProJobless/nyus | nyusocial/expressionengine/third_party/friends/views/members_friends.html | 3351 | <table id="member_table" class="mainTable padTable" style="width:100%;" cellspacing="0" cellpadding="0" border="0">
<thead>
<tr>
<th style="width:3%;" ><?=$lang_id?></th>
<th style="width:22%;"><?=$lang_name?></th>
<th style="width:15%;"><?=$lang_total_friends?></th>
<th style="width:15%;"><... | mit |
caat91/NagiosAlert | NagiosAlert-App/src/redes3/proyecto/nagiosalert/InfoServiceActivity.java | 2141 | package redes3.proyecto.nagiosalert;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class InfoServiceActivity extends Activity {
String nom... | mit |
cuellarfr/cuellarfr.github.io | _posts/2004-08-13-fool-s-world-map.md | 358 | ---
layout: post
title: !binary |-
Rm9vbOKAmXMgV29ybGQgTWFw
tags:
- micrographic
---
Hoy me he encontrado en Microsiervos y en Halón disparado una cosa realmente curiosa, una revisión freakie del mapa del mundo! Se trata de un mapa donde los países están colocados donde la gente (yanquis, claro) cree que están. El re... | mit |
dormantor/ofxCogEngine | COGengine/src/Behaviors/MultiSelection.cpp | 2863 |
#include "MultiSelection.h"
#include "ofxCogEngine.h"
#include "EnumConverter.h"
#include "Node.h"
namespace Cog {
void MultiSelection::Load(Setting& setting) {
string group = setting.GetItemVal("selection_group");
if (group.empty()) CogLogError("MultiSelection", "Error while loading MultiSelection behavior: e... | mit |
jonestimd/finances | src/main/java/io/github/jonestimd/finance/file/Reconciler.java | 3250 | // The MIT License (MIT)
//
// Copyright (c) 2016 Tim Jones
//
// 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,... | mit |
ayimdomnic/Qicksite | src/PublishedAssets/Migrations/2016_03_20_186046_add_templates_to_events.php | 605 | <?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddTemplatesToEvents extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('events', function (Blueprint $table) {
$t... | mit |
jabley/cf-metrics | vendor/src/code.cloudfoundry.org/cli/plugin/plugin_suite_test.go | 355 | package plugin_test
import (
"path/filepath"
"code.cloudfoundry.org/cli/utils/testhelpers/pluginbuilder"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestPlugin(t *testing.T) {
RegisterFailHandler(Fail)
pluginbuilder.BuildTestBinary(filepath.Join("..", "fixtures", "plugins"), "test_... | mit |
EdmonJiang/FA_Inventory | app.js | 2979 | var express = require('express'),
compression = require('compression'),
path = require('path'),
favicon = require('serve-favicon'),
logger = require('morgan'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
session = require('express-session'),
session = re... | mit |
tsmith328/Homework | Java/CS 1332/Homework 01/CircularLinkedList.java | 4722 | /**
* CircularLinkedList implementation
* @author Tyler Smith
* @version 1.0
*/
public class CircularLinkedList<T> implements LinkedListInterface<T> {
private Node<T> head = null, tail = head;
private int size = 0;
@Override
public void addAtIndex(int index, T data) {
if (index < 0 || ind... | mit |
CoderMJLee/MJRefresh | .github/ISSUE_TEMPLATE/bug--.md | 942 | ---
name: Bug上报
about: 提交Bug让框架更加健壮
title: ''
labels: bug
assignees: ''
---
🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶
😁为了能够更好地复现问题和修复问题, 请提供 Demo 和详细的 bug 重现步骤😭
🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶🥶
> 记得删除以上内容
**描述bug**
清晰简单地描述这个bug是啥
**必现/偶发?**
必现
**怎么样重现这个bug**
1. 显示哪个页面... | mit |