repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
ruby/rubyspec | library/matrix/vector/normalize_spec.rb | 473 | require_relative '../../../spec_helper'
require 'matrix'
describe "Vector#normalize" do
it "returns a normalized copy of the vector" do
x = 0.2672612419124244
Vector[1, 2, 3].normalize.should == Vector[x, x * 2, x * 3]
end
it "raises an error for zero vectors" do
lambda {
Vector[].normalize
... | mit |
thcmc/412hockey | app/routes/goaliedash.server.routes.js | 275 | 'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users'),
goaliedash = require('../../app/controllers/goaliedash');
module.exports = function(app) {
app.route('/goaliedash')
.get(users.requiresLogin, users.hasAuthorization);
}; | mit |
VegaPublish/vega-studio | packages/@vega/communicator-system/src/components/providers/Communicator.js | 1991 | // @flow
import React from 'react'
import withPropsStream from '@vega/utils/withPropsStream'
import {map} from 'rxjs/operators'
import styles from './styles/Communicator.css'
import ThreadList from './ThreadList'
import CreateComment from './CreateComment'
function getPropsStream(props$) {
// todo: implement open/c... | mit |
Hstry/ember-promise-block | README.md | 1597 | # ember-promise-block
This is an Ember Addon that exposes a component `promise-block` which shows a loader while a given promise is being resolved.
## Installing
Install as an Ember-CLI addon:
ember install ember-promise-block
## Usage
// templates/posts.hbs
{{#promise-block promise=postsPromise loade... | mit |
anotheria/configureme | src/examples/pricing/ShowPrice.java | 989 | package pricing;
import org.configureme.ConfigurationManager;
import org.configureme.Environment;
import org.configureme.GlobalEnvironment;
import org.configureme.environments.DynamicEnvironment;
public class ShowPrice {
public static void main(String a[]){
showPrice();
showPriceIn("USA", GlobalEnvironment.INSTA... | mit |
blizzardzheng/Under-the-hood-ReactJS | stack/book/Part-3.md | 6096 | ## Part 3
[](https://rawgit.com/Bogdan-Lyashenko/Under-the-hood-ReactJS/master/stack/images/3/part-3.svg)
<em>3.0 第 3 部分 (点击查看大图)</em>
### 挂载
`componentMount` 是我们整个系列中极其重要的一个板块。如图,我们关注 `ReactCompositeComponent.mountComp... | mit |
igniteram/Cliptor.js | CHANGELOG.md | 4128 | ## Release 1.1.0
## Breaking Changes
* removed cross-spawn dependency
### Features
- ([fc25d5e](https://github.com/igniteram/protractor-cli/commit/fc25d5edc09d775f35e356796c19e0425fc936d2))
feat(install modules): added npm progress & async installation
## Release 1.0.1
### Features
- ([7441967](https://github.... | mit |
Castux/distribution | examples/2. results.lua | 1616 | local d = require "distribution"
d6 = d.uniform(6)
d20 = d.uniform(20)
foo = 2*d6 + d20
-- The basic summary method gives a sorted list of all the outcomes
-- and a summary of statistical values
print("2d6 + d20")
print(foo:summary())
-- Note that tostring(foo) and print(foo) will automatically call summary
-- To... | mit |
jtauber/cleese | necco/python/Python/errors.c | 8613 |
/* Error handling */
#include "Python.h"
void
PyErr_Restore(PyObject *type, PyObject *value, PyObject *traceback)
{
PyThreadState *tstate = PyThreadState_GET();
PyObject *oldtype, *oldvalue, *oldtraceback;
/* Save these in locals to safeguard against recursive
invocation through Py_XDECREF */
oldtype = tsta... | mit |
voxie-viewer/voxie | src/VoxieBackend/Component/ExternalOperation.hpp | 4192 | /*
* Copyright (c) 2014-2022 The Voxie Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | mit |
NUSPartTime/NUSPartTime | routes/index.js | 248 | var models = require('../models');
var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
console.log(req.session);
res.render('layout');
});
module.exports = router; | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1/unicoq/1.0.0.html | 6726 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | mit |
ArcherSys/ArcherSys | Rust/share/doc/rust/html/collections/string/struct.FromUtf8Error.html | 7777 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `FromUtf8Error` struct in crate `collections`.">
<meta name... | mit |
DAWalbertofdez/ProyectoMarcAlbertoDani | morenito.css | 23855 | *
{
margin: 0;
padding: 0;
}
body
{
margin: 0;
padding: 0;
font: 12px Arial, Helvetica, sans-serif;
color: #333;
background: #fff url(images/bg_body.jpg) repeat-x;
}
img
{
border: none;
}
p
{
margin: 0;
padding: 8px 0;
}
a, object, a:focus
{
outline: none;
}
h1, h2, h3, h4
{
marg... | mit |
epikcraw/ggool | public/Windows 10 x64 (19041.388)/_IO_APIC_REGISTERS.html | 338 | <html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2>_IO_APIC_REGISTERS</h2>
<font face="arial"> +0x000 RegisterIndex : Uint4B<br>
+0x004 Reserved1 : [3] Uint4B<br>
+0x010 RegisterValue : Uint4B<br>
+0x014 Reserved2 : [11] Uint4B<br>
+0x040 EndOfInterrupt : Uint4B<br>
</f... | mit |
swcarpentry/amy | amy/workshops/management/commands/instructors_activity.py | 5305 | import os
import logging
from django.core.management.base import BaseCommand
from django.core.mail import send_mail
from django.template.loader import get_template
from workshops.models import Badge, Person, Role
logger = logging.getLogger()
class Command(BaseCommand):
help = 'Report instructors activity.'
... | mit |
ezzatron/phuri | src/Generic/AbstractGenericUri.php | 12051 | <?php
/*
* This file is part of the Phuri package.
*
* Copyright © 2014 Erin Millard
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eloquent\Phuri\Generic;
use Eloquent\Pathogen\Factory\PathFactoryInterface;
use Eloqu... | mit |
keyfun/react-all | README.md | 54 | # react-all
Use ReactJS to do cross platform StartKit
| mit |
gabizou/SpongeCommon | src/main/java/org/spongepowered/common/data/manipulator/block/SpongeSignaledOutputData.java | 2441 | /*
* This file is part of Sponge, 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 "Softwar... | mit |
galaktor/autofac-extensions | Properties/AssemblyInfo.cs | 1633 | // Copyright (c) 2013 Raphael Estrada
// License: The MIT License - see "LICENSE" file for details
// Author URL: http://www.galaktor.net
// Author E-Mail: galaktor@gmx.de
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through t... | mit |
Azure/azure-sdk-for-python | sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2016_12_01/operations/_policy_assignments_operations.py | 38695 | # coding=utf-8
# --------------------------------------------------------------------------
# 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.
# Changes may ... | mit |
unasuke/proconist.net | db/migrate/20160610084904_create_documents.rb | 265 | class CreateDocuments < ActiveRecord::Migration[5.0]
def change
create_table :documents do |t|
t.integer :product_id, null: false
t.string :type, null: false
t.string :url, null: false
t.timestamps
end
end
end
| mit |
fedeB-IT-dept/fedeB_website | rescue/css/component.css | 8064 | @font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot');
src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
url('../fonts/icomoon.woff') format('woff'),
url('../fonts/icomoon.ttf') format('truetype'),
url('../fonts/icomoon.svg#icomoon') format('svg');
font-weight: normal;
font... | mit |
loretoparisi/docker | theano/rsc15/preprocess.py | 3325 | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 25 16:20:12 2015
@author: Balázs Hidasi
@lastmodified: Loreto Parisi (loretoparisi at gmail dot com)
"""
import sys
import os
import numpy as np
import pandas as pd
import datetime as dt
# To redirect output to file
class Logger(object):
def __init__(self, filename=... | mit |
slu-soc5650/week-02 | NEWS_SITE.md | 358 | # lecture-02 2018-01-29
* add buttons for handouts
* add additional content related to Open GIS
* add speakerdeck integration
# lecture-02 2018-01-28
* add initial site with youtube video for lecture prep replication embedded
# lecture-02 2018-01-02
* add `NEWS_SITE.md` for tracking updates to the course site, *bu... | mit |
flurdy/rustic-pizza | README.md | 394 | # Rustic Pizza
A collection of pizzeria web apps,
written in Rust, with each webapp using different web frameworks.
* https://rust-lang.org
* https://rustup.rs
* https://doc.rust-lang.org/book/README.html
* https://doc.rust-lang.org/std/
* http://rustbyexample.com/index.html
* https://aturon.github.io/
* http://www.... | mit |
php-fig-rectified/psr2r-sniffer | PSR2R/Sniffs/Commenting/DocBlockSniff.php | 5275 | <?php
namespace PSR2R\Sniffs\Commenting;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Util\Tokens;
use PSR2R\Tools\AbstractSniff;
use PSR2R\Tools\Traits\CommentingTrait;
use PSR2R\Tools\Traits\SignatureTrait;
/**
* Methods always need doc blocks.
* Constructor and destructor may not have one if they do not ... | mit |
eventEmitter/related-timestamps | test/extension.js | 8381 | (function() {
'use strict';
process.env.debug_sql = true;
var Class = require('ee-class')
, log = require('ee-log')
, assert = require('assert')
, fs = require('fs')
, QueryContext = require('related-query-context')
, ORM ... | mit |
kevincolyar/tasklist | example.rb | 310 | #!/usr/bin/env ruby
require 'tasklist'
during '2010 September' do
on '2010-09-03' do
task 'Take out garbage'
task 'Wash car'
end
on '2010-09-02' do
task 'Create tasklist DSL', '09:15:56', '', 'admin', 'done'
task 'Push tasklist to github', '09:34:00', '09:38:04', 'github'
end
end
| mit |
Agile-IoT/agile-idm-web-ui | lib/auth/providers/webid.js | 3465 | var passport = require('passport');
var WebIDStrategy = require('passport-webid').Strategy;
var tokens = require('../../util/tokens');
var ids = require('../../util/id');
var console = require('../../log');
var createError = require('http-errors');
var dateUtils = require('../../util/date');
var url = require('url');
... | mit |
MYOB-Technology/aws_helpers | lib/aws_helpers/elastic_load_balancing/create_tag.rb | 652 | module AwsHelpers
module ElasticLoadBalancing
class CreateTag
def initialize(elastic_load_balancing_client, load_balancer_name, tag_key, tag_value)
@elastic_load_balancing_client = elastic_load_balancing_client
@load_balancer_name = load_balancer_name
@tag_key = tag_key
@tag_... | mit |
APEEYEDOTCOM/hapi-bells | node_modules/autorest/console.d.ts | 328 | export declare class Console {
private static quiet;
private static debug;
private static verbose;
static Log(text: any): void;
private static readonly Timestamp;
static Debug(text: any): void;
static Verbose(text: any): void;
static Error(text: any): void;
static Exit(reason: any): ... | mit |
vihuvac/Sylius | src/Sylius/Bundle/CoreBundle/Command/SetupCommand.php | 8226 | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Command;
use Sylius\Component\Core\Model... | mit |
dodekeract/bitwise | source/nibble/write.ts | 489 | import { Nibble, UInt4 } from '../types'
/**
* Returns a Nibble (0-15) which equals the given bits.
*
* @example
* byte.write([1,0,1,0]) => 10
*
* @param {Array} nibble 4-bit unsigned integer
* @return {Number}
*/
export default (nibble: Nibble): UInt4 => {
if (!Array.isArray(nibble) || nibble.length !== 4)
... | mit |
masagatech/erpv1 | src/app/_service/warehousestock/view/view-service.ts | 390 | import { Injectable } from '@angular/core';
import { DataService } from '../../../_service/dataconnect';
import { Router } from '@angular/router';
@Injectable()
export class WarehouseViewService {
constructor(private _dataserver: DataService, private _router: Router) { }
getwarehouseTransfer(req: any) {
... | mit |
ebmdatalab/openprescribing | openprescribing/templates/analyse.html | 11993 | {% extends "base.html" %}
{% load static %}
{% load template_extras %}
{% block title %}Analyse{% endblock %}
{% block active_class %}analyse{% endblock %}
{% block extra_css %}
<link href="{% static 'css/select2.min.css' %}" rel="stylesheet">
<link href="{% static 'css/jquery.nouislider.css' %}" rel="stylesheet">
<l... | mit |
HankCoder/BlogBackup | public/2017/01/17/随手记20170118/index.html | 28614 | <!doctype html>
<html class="theme-next pisces use-motion">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta... | mit |
MultiSafepay/.Net | Src/MultiSafepay/Model/Transaction.cs | 1056 | using System;
using Newtonsoft.Json;
namespace MultiSafepay.Model
{
public class Transaction
{
[JsonProperty("transaction_id")]
public string TransactionId { get; set; }
[JsonProperty("payment_type")]
public string PaymentType { get; set; }
[JsonProperty("order_id")]
... | mit |
s-osa/marketplace_web_service | spec/mws/report_spec.rb | 929 | require 'spec_helper'
describe MWS::Report do
describe ".method_missing" do
describe ".get_report_list" do
let(:valid_args){
{
key: "ThisIsSigningKey",
endpoint: "mws.amazonservices.com",
params: {
"AWSAccessKeyId" => "AccessKeyIdString",
"Selle... | mit |
tiramizoo/geocoder | lib/geocoder/ip_address.rb | 275 | require 'resolv'
module Geocoder
class IpAddress < String
def loopback?
valid? and !!(self == "0.0.0.0" or self.match(/\A127\./) or self == "::1")
end
def valid?
!!((self =~ Resolv::IPv4::Regex) || (self =~ Resolv::IPv6::Regex))
end
end
end
| mit |
JoeKarlsson/data-structures | test/complex-array.spec.js | 3055 | const chai = require('chai');
const expect = chai.expect;
const ComplexArray = require('../complex-array/complex-array');
function assertArrayEquals(first, second) {
const message = `${first} != ${second}`;
first.forEach((item, i) => {
expect(item).to.equal(second[i], message);
});
}
describe('Complex Ar... | mit |
kuebk/node-rusage | src/node-rusage.cc | 4830 | /*
* Copyright (C) 2011 by Jakub Lekstan <kuebzky@gmail.com>
*
* 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, cop... | mit |
Luis-Gdx/escuela | Topicos Avanzados de Programacion/Tabla/Tabla con base de datos y login/src/config/Connector.java | 2950 | /*
* 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 config;
import interfaces.*;
import java.sql.*;
import java.util.logging.*;
import javax.swing.*;
/**
*
* @author Luis G
*... | mit |
fab2s/NodalFlow | src/Nodes/BranchNode.php | 1307 | <?php
/*
* This file is part of NodalFlow.
* (c) Fabrice de Stefanis / https://github.com/fab2s/NodalFlow
* This source file is licensed under the MIT license which you will
* find in the LICENSE file or at https://opensource.org/licenses/MIT
*/
namespace fab2s\NodalFlow\Nodes;
use fab2s\NodalFlow\Flows\Flo... | mit |
tiagoamaro/dynamic-form-reform | db/schema.rb | 1926 | # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# dat... | mit |
muronchik/clubmembership-angular | src/app/components/nav/nav-custom.component.html | 803 | <!--Navigation bar-->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<sp... | mit |
GCModeller-Cloud/php-dotnet | Framework/Debugger/Ubench/README.md | 1357 | Ubench [](https://travis-ci.org/devster/ubench)
======
Ubench is a PHP micro library for benchmark
> https://github.com/devster/ubench
Installation
------------
### Old school ###
require `src/Ubench.php` in your project.
### Composer ###
Add... | mit |
matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/GQZArchive.h | 628 | /*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import "NSObject.h"
@class NSMutableDictionary, NSString;
// Not exported
@interface GQZArchive : NSObject
{
NSMutableDictionary *mEntries;
id <GQZArchiveInputStream> ... | mit |
heapsters/shelldon | routines/mysplit.c | 640 | /*
* mysplit.c - Another handy routine for testing your tiny shell
*
* usage: mysplit <n>
* Fork a child that spins for <n> seconds in 1-second chunks.
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
int main(int argc, char **argv)
{
... | mit |
nathansamson/OMF | external/frisbee/imagezip/ffs/fs.h | 26375 | /*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above... | mit |
whandall/NBHX711 | doc/latex/dir_a39a2e34196bbb4cf212587eee358088.tex | 611 | \hypertarget{dir_a39a2e34196bbb4cf212587eee358088}{}\section{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference}
\label{dir_a39a2e34196bbb4cf212587eee358088}\index{C\+:/\+Users/\+Tim-\/\+Mobil/\+Documents/\+Arduino/libraries/\+N\+B\+H\+X711/src Directory Reference@{C\+:... | mit |
rshanecole/TheFFFL | views/account/password.php | 2088 | <?PHP
/**
* password view.
*
* includes form for username and email to send password to user.
*
*/
?>
<div id="content_area">
<div class="row" id="login"> <!--login box-->
<div class="col-xs-24" >
<?php
//begins th... | mit |
reknih/informant-ios | vplan/vplan.Kit/PrefManager.cs | 743 | using System;
using System.Threading;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace vplan
{
public class PrefManager
{
NSUserDefaults locstore = new NSUserDefaults();
bool notified = false;
public PrefManager ()
{
refresh ();
}
protected void refresh () {
locstore.Synchronize ();
... | mit |
microsoft/diskspd | UnitTests/XmlResultParser/XmlResultParser.UnitTests.cpp | 26838 | /*
DISKSPD
Copyright(c) Microsoft Corporation
All rights reserved.
MIT License
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 us... | mit |
ashutoshrishi/slate | packages/slate/test/schema/custom/node-mark-invalid-default.js | 437 | /** @jsx h */
import h from '../../helpers/h'
export const schema = {
blocks: {
paragraph: {
marks: [{ type: 'bold' }, { type: 'underline' }],
},
},
}
export const input = (
<value>
<document>
<paragraph>
one <i>two</i> three
</paragraph>
</document>
</value>
)
expo... | mit |
erikkowalski/hoe-sage-8.1.0 | assets/scripts/main.js | 2737 | /* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* ... | mit |
stmobo/Kraftwerk | os/include/arch/x86-64/debug.h | 174 | #pragma once
#include "interface/types.h"
inline uintptr_t get_return_address()
{
uintptr_t ret;
asm volatile("movq 8(%%rbp), %0" : "=r"(ret) : : "memory");
return ret;
} | mit |
IMAMBAKS/data_viz_pa | app/main.ts | 352 | import {bootstrap} from '@angular/platform-browser-dynamic';
import {ROUTER_PROVIDERS} from '@angular/router-deprecated';
import {HTTP_PROVIDERS} from '@angular/http';
import {AppComponent} from './app.component';
import {LoggerService} from './blocks/logger.service';
bootstrap(AppComponent, [
LoggerService, ROUTE... | mit |
putin266/Vote | target/work/plugins/shiro-1.2.1/src/java/org/apache/shiro/grails/annotations/PermissionRequired.java | 572 | package org.apache.shiro.grails.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.apache.shiro.authz.Permission;
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(Retention... | mit |
deepakjois/luarestructure | spec/Array_spec.lua | 4372 | local r = require('restructure')
local ArrayT = r.Array
describe('Array', function()
describe('decode', function()
it( 'should decode fixed length', function()
local stream = r.DecodeStream.new(string.char(1, 2, 3, 4, 5))
local array = ArrayT.new(r.uint8, 4)
assert.are.same({1, 2, 3, 4}, array:... | mit |
TelerikAcademy/Unit-Testing | Topics/04. Workshops/Workshop (Students)/Academy/Workshop/Academy.Tests/Commands/Adding/AddStudentToSeasonCommandTests/Constructor_Should.cs | 2040 | using Academy.Core.Contracts;
using Academy.Commands.Adding;
using Moq;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Academy.Tests.Commands.Mocks;
namespace Academy.Tests.Commands.AddingTests.AddStudentToSea... | mit |
twolfson/doubleshot | test/test_files/complex_global_hooks/content.js | 399 | module.exports = {
before: [function () {
console.log('global beforeAll1');
}, 'alias1'],
'alias1': 'alias2',
'alias2': function () {
console.log('global beforeAll2');
},
'One': function () {
this.sum = 1;
},
'plus one': function () {
this.sum += 1;
},
'equals two': function () {
... | mit |
heyitsgarrett/envelopecollective | gallery_submission.php-id=121.html | 367 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Submission 121</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<img src="gallery/subm... | mit |
rjpearce/puppet-roundcube | README.md | 557 | puppet-roundcube
================
## Overview
Install and configure roundcube with optional apache/mysql configuration.
* `roundcube` : Main define for the roundcube.
## Examples
Typical user with apache and mysql configuration :
roundcube { 'webmail.example.com':
docroot => '/var/www/webmail.ex... | mit |
senecajs-labs/seneca-pin | CHANGES.md | 99 | ## 0.0.2 30-08-2016
* Fixed pin to mimic the old logic PR#4
## 0.0.1 29-08-2016
* First version
| mit |
lpinto93/meteor | tools/cli/commands.js | 76122 | exports.__esModule = true;
exports.parseServerOptionsForRunCommand = parseServerOptionsForRunCommand;
exports.parseRunTargets = parseRunTargets;
var _cordova = require('../cordova');
var cordova = babelHelpers.interopRequireWildcard(_cordova);
var _cordovaProjectJs = require('../cordova/project.js');
var _cordovaRu... | mit |
Wimsy113/MilkshakeAndMouse | README.md | 75 | # MilkshakeAndMouse
An online store for organic/cruelty free merchandise.
| mit |
davidhampgonsalves/notefeeder | public/422.html | 1097 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0037)http://notefeeder.heroku.com/500.html -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; chars... | mit |
JensTimmerman/radical.pilot | docs/architecture/api_draft/unit_manager.py | 3311 |
from attributes import *
from constants import *
# ------------------------------------------------------------------------------
#
class UnitManager (Attributes) :
"""
UnitManager class -- manages a pool
"""
# --------------------------------------------------------------------------
#
... | mit |
henrikre/terminaali | client/components/auth/auth.service.js | 3575 | 'use strict';
angular.module('terminaaliApp')
.factory('Auth', function Auth($location, $rootScope, $http, User, $cookieStore, $q) {
var currentUser = {};
if($cookieStore.get('token')) {
currentUser = User.get();
}
return {
/**
* Authenticate user and save token
*
*... | mit |
johnguild/muffincms | src/Public/main/js/muffincms.js | 7581 | $(document).ready(function(){
var toggleMuffEditor = function(stat=false){
$("#muff-opt").remove();
// bind event
if(stat){
$(".muff").mouseover(function() {
$("#muff-opt").remove();
muffShowOptions($(this));
$(window).scroll(function(){
$("#muff-opt").remove();
}) ... | mit |
Sevitec/oneconnexx-docs | _pages/setup/en/releasenotes.md | 6144 | ---
layout: page
title: Version history
permalink: "setup/en/releasenotes/"
language: en
---
#### vNext
* __New__ FileCopy Add-In: parameter sourceTimeFilter also for FILE and SFTP protocol.
#### 1.4.5
* __New__ New Add-In List2Csv to export SharePoint Online lists to CSV files.
* __New__ New add-in SharepointToDB... | mit |
forwk1990/wechart-checkin | antd-mobile-custom/antd-mobile/lib/table/index.web.js | 3649 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = undefined;
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _possibleConstructorReturn2 = require('babel-runtime/helpers/p... | mit |
opap-jp/material-explorer | rest/src/main/scala/jp/opap/material/model/RepositoryConfig.scala | 2845 | package jp.opap.material.model
import java.util.UUID
import jp.opap.data.yaml.Node
import jp.opap.material.data.Collections.{EitherSeq, Seqs}
import jp.opap.material.facade.GitLabRepositoryLoaderFactory.GitlabRepositoryInfo
import jp.opap.material.model.RepositoryConfig.RepositoryInfo
import jp.opap.material.model.Wa... | mit |
slundberg/Languages.jl | src/utils.jl | 408 | const _cache = Dict{AbstractString,Array}()
function fetch_word_list(filename::AbstractString)
haskey(_cache, filename) && return _cache[filename]
try
io = open(filename, "r")
words = map(x -> chomp(x), readlines(io))
close(io)
ret = convert(Array{UTF8String,1}, words)
_cache[filename] = ret
... | mit |
shivam091/Symbol-Table | Symbol Table/doc/org/symboltable/class-use/Edge.html | 4022 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Sun Aug 31 14:44:00 IST 2014 -->
<title>Uses of Class org.symboltable.Edge</title>
<meta name="date" content="2014-08-31">
<link rel="st... | mit |
Faithlife/Parsing | docs/Faithlife.Parsing/Parser/Many.md | 436 | # Parser.Many<T> method
Always succeeds. The value is a collection of as many items as can be successfully parsed.
```csharp
public static IParser<IReadOnlyList<T>> Many<T>(this IParser<T> parser)
```
## See Also
* interface [IParser<T>](../IParser-1.md)
* class [Parser](../Parser.md)
* namespace [Faith... | mit |
clearwavebuild/nsysmon | NSysmon.Collector/HAProxy/ProxyServerStatus.cs | 2906 | using System.ComponentModel;
namespace NSysmon.Collector.HAProxy
{
/// <summary>
/// Current server statuses
/// </summary>
public enum ProxyServerStatus
{
[Description("Status Unknown!")]
None = 0, //Won't be populated for backends
[Description("Server is up, status nor... | mit |
EssaAlshammri/django-by-example | bookmarks/bookmarks/actions/utils.py | 679 | import datetime
from django.contrib.contenttypes.models import ContentType
from django.utils import timezone
from .models import Action
def create_action(user, verb, target=None):
now = timezone.now()
last_minute = now - datetime.timedelta(seconds=60)
similar_actions = Action.objects.filter(user_id=user... | mit |
bjornenalfa/GA | src/engine/CircleShape.java | 1041 | package engine;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
public class CircleShape extends Shape {
double radius; //radius of shape
public CircleShape(double rad, Vector2D v, double r, double d, Color c) {
super(v, r, d, c);
radius = rad;
}
@Override
... | mit |
kybarg/material-ui | packages/material-ui-icons/src/LayersClearRounded.js | 673 | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.99 9.79c.51-.4.51-1.18 0-1.58l-6.76-5.26c-.72-.56-1.73-.56-2.46 0L9.41 4.02l7.88 7.88 2.7-2.11zm0 3.49l-.01-.01a.991.991 0 00-1.22 0l-.05.04 1.4 1.4c.37-.41.34-1.07-.12-1.43zm1.45 5.6L4.12 1.56a.9... | mit |
Raphhh/trex | README.md | 396 | Deprecated.
See:
- [TRex Collection](https://github.com/Raphhh/trex-collection): PHP helpers for collections.
- [TRex Reflection](https://github.com/Raphhh/trex-reflection): PHP tool to reflect callables an types.
- [TRex parser](https://github.com/Raphhh/trex-parser): PHP tool to parse code and extract statements.... | mit |
APItools/sandbox.lua | README.md | 3966 | sandbox.lua
===========
A pure-lua solution for running untrusted Lua code.
The default behavior is restricting access to "dangerous" functions in Lua, such as `os.execute`.
It's possible to provide extra functions via the `options.env` parameter.
Infinite loops are prevented via the `debug` library.
For now, sand... | mit |
DarkSwift/DarkSwift | src/qt/locale/bitcoin_ms_MY.ts | 107393 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ms_MY" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About DarkSwift</source>
<translation type="unfinished"/>
</message>
<message>
<location l... | mit |
karafka/sidekiq-glass | README.md | 3985 | # Worker Glass [Unmaintained]
**Note**: This library is no longer in use in the Karafka ecosystem. It was developed for Karafka versions prior to `1.0`. If you're using this library and want to take it over, please ping us.
[](https://gith... | mit |
72squared/redpipe | docs/conf.py | 5400 | # -*- coding: utf-8 -*-
#
# RedPipe documentation build configuration file, created by
# sphinx-quickstart on Wed Apr 19 13:22:45 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | mit |
pedesen/diagram-js | lib/features/bendpoints/BendpointSnapping.js | 4283 | import {
assign,
forEach,
isArray
} from 'min-dash';
var abs= Math.abs,
round = Math.round;
var TOLERANCE = 10;
export default function BendpointSnapping(eventBus) {
function snapTo(values, value) {
if (isArray(values)) {
var i = values.length;
while (i--) if (abs(values[i] - value) <... | mit |
oddgoo/oddgoo.com | static/js/hobbies.js | 725 | var changeSpan;
var i = 0;
var hobbies = [
'Music',
'HTML5',
'Learning',
'Exploring',
'Art',
'Teaching',
'Virtual Reality',
'The Cosmos',
'Unity3D',
'Tilemaps',
'Reading',
'Butterscotch',
'Drawing',
'Taking Photos',
'Smiles',
'The Poetics of Space',
'Making Sounds',
'Board games',
'Trave... | mit |
westlyheinrich/getting-started-with-html | index.html | 3084 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CodePen - A Pen by Justin Kams</title>
</head>
<body>
<html>
<head>
<title>The Basics of The Web and HTML</title>
</head>
<body>
<h2>The Basics of The Web and HTML</h2>
<p><em></em></p>
<p><em><h3>The Basics of the World Wide Web</h3></em>
The... | mit |
mchekin/rpg | app/Http/ViewComposers/CharacterMessagesComposer.php | 1435 | <?php
namespace App\Http\ViewComposers;
use App\Models\Character;
use App\Models\Message;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\View\View;
class CharacterMessagesComposer
{
/**
* Bind data to the view.
*
* @param ... | mit |
MozillaTN/mozillatn.github.io | _layouts/post.html | 2663 | ---
layout: default
archive: true
---
<script src="https://apis.google.com/js/platform.js" async defer></script>
<article class="post">
<header>
<h1>{{ page.title }}</h1>
<h2 class="headline">{{ page.date | date:"%B %-d, %Y" }}</h2>
</header>
<section id="post-body">
{{content}}
... | mit |
juanchodepisa/sbtk | SBTK_League_Helper/src/interfacing/servers.py | 1946 | from src.tools.dictionaries import PostLoadedDict
# Utility class
################################################
class ServerImplementationDict(PostLoadedDict):
def __missing__(self, key):
try:
return super().__missing__(key)
except KeyError:
return NotImplemented
########... | mit |
nambawan/g-old | src/data/types/MessageInputType.js | 979 | import {
GraphQLInputObjectType,
GraphQLID,
GraphQLList,
GraphQLBoolean,
} from 'graphql';
import RecipientTypeEnum from './RecipientTypeEnum';
import MessageTypeEnum from './MessageTypeEnum';
import NoteInputType from './NoteInputType';
import TranslationInputType from './TranslationInputType';
import Communi... | mit |
lancejpollard/ubiquitously | test/test_helper.rb | 497 | require "rubygems"
require 'active_support'
require "ruby-debug"
gem 'test-unit'
require "test/unit"
require 'active_support'
require 'active_support/test_case'
require 'shoulda'
require 'rr'
require File.dirname(__FILE__) + '/../lib/ubiquitously'
Ubiquitously.configure("test/config/secrets.yml")
Passport.configure("... | mit |
dwpdigitaltech/healthanddisability | app/views/fha/scrutiny-scenarios/scenario7/_macros_nav_scenario7.html | 573 | {% macro scenario_tabs(selected,num,path, id) %}
<div class="section-tabs js-tabs clearfix mb20">
<ul>
{% set navs = [
{url:"timeline-review",label:"Timeline"},
{url:"details-fme",label:"Details"},
{url:"evidence-portal",label:"Evidence"},
{url:"appointment",label:"Appointment"}
... | mit |
FiniteReality/disccord | lib/models/user.cpp | 3213 | #include <boost/lexical_cast.hpp>
#include <disccord/models/user.hpp>
namespace disccord
{
namespace models
{
user::user()
: username(""), avatar(), email(), discriminator(0),
bot(false), mfa_enabled(), verified()
{ }
user::~user()
{ }
void use... | mit |
full360/voltdbscala | src/main/scala/com/full360/voltdbscala/exceptions.scala | 832 | package com.full360.voltdbscala
import org.voltdb.client.ClientResponse
/**
* Exception thrown when the status of a client response if not success
* @param message the detail message of this exception
*/
case class ClientResponseStatusException(message: String) extends Exception(message)
object ClientResponseStat... | mit |
housenkui/SKStruct | SKProject01/SKWebImage/lib/Categories/UIView+WebCacheOperation.h | 899 | //
// UIView+WebCacheOperation.h
// SKWebImage
//
// Created by 侯森魁 on 2019/8/23.
// Copyright © 2019 侯森魁. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SKWebImageCompat.h"
#import "SKWebImageManager.h"
NS_ASSUME_NONNULL_BEGIN
@interface UIView (WebCacheOperation)
/**
Set the image load operation (s... | mit |
CSUChico-CSCI211/CSCI211-Course-Materials | Labs/Lab1.md | 21981 | #CSCI 211 - Lab 1
##Introduction to Linux and the g++ Compiler
##Goals:
* Overview: Linux organization
* Introduce several basic Linux commands
* Provide an example of creating, compiling, and running a c++ program
* Set up all the directories for the course assignments
* Provide practice creating, compiling, and run... | mit |
kevinzhwl/ObjectARXCore | 2015/inc/truetypetext.h | 5684 | //
//
/////////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise acco... | mit |