repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
chcbaram/FPGA | zap-2.3.0-windows/papilio-zap-ide/hardware/papilio/avr8/cores/arduino/HardwareSerial.h | 2713 | /*
HardwareSerial.h - Hardware serial library for Wiring
Copyright (c) 2006 Nicholas Zambetti. 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... | mit |
vitaliykrushinsky/react-redux-demo | src/components/course/ManageCoursePage.js | 3176 | import React, {PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as courseActions from '../../actions/courseActions';
import CourseForm from './CourseForm';
import {authorsFormattedForDropdown} from '../../selectors/selectors';
import toastr from 'toastr';
... | mit |
jadedResearcher/SBURBSimulator | web/css/sessionCustomizer.css | 648 | .sessionForm{
padding: 10px;
}
.carapaceForm{
padding: 10px;
border: 3px solid #000000;
min-width: 960px;
margin-bottom: 10px;
}
label{
margin: 5px;
}
input{
margin: 5px;
}
button{
margin: 5px;
}
.section{
border: 1px solid #000000;
margin-bottom: 10px;
}
.carapaceSection{
... | mit |
portchris/NaturalRemedyCompany | src/js/M2ePro/Amazon/Template/Description/Category/Specific/Grid/RowRenderer.js | 28752 | AmazonTemplateDescriptionCategorySpecificGridRowRenderer = Class.create(AmazonTemplateDescriptionCategorySpecificRenderer, {
// ---------------------------------------
attributeHandler: null,
// ---------------------------------------
process: function()
{
if (this.specificHand... | mit |
mariochavez/mac_generators | lib/generators/authentication/omniauth/templates/omniauth.rb | 113 | Rails.application.config.middleware.use OmniAuth::Builder do
provider :provider, ENV["KEY"], ENV["SECRET"]
end
| mit |
niralittle/LibraryApp | src/controller/server/RMIServer.java | 533 | package controller.server;
import controller.LibraryService;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import java.rmi.RemoteException;
public class RMIServer {
public static void main(String[] args) throws RemoteException, NamingException {
Li... | mit |
lukasz-si/resume | app/components/background-code/module.js | 112 | define([
'angular'
], function (ng) {
'use strict';
return ng.module('backgroundModule', []);
});
| mit |
blushft/wespk | client/src/store/getters.js | 435 | const pkg = state => state.pkg
const app = state => state.app
const device = state => state.app.device
const sidebar = state => state.app.sidebar
const effect = state => state.app.effect
const menuitems = state => state.menu.items
const componententry = state => {
return state.menu.item.filter(c => c.meta && c.meta.l... | mit |
rtaibah/pelican-blog | content/blog/2008-02-11-howto-install-ubuntu-on-your-eee-pc.markdown | 4126 | title: HOWTO: Install Ubuntu on Your Eee PC
author: Rami Taibah
permalink: howto-install-ubuntu-on-your-eee-pc
tags: eee-pc, ubuntu, howto
I have [posted]({filename}/blog/2008-02-06-eee-pcfinally.markdown) earlier that the "easy mode" of the Eee PC is like living on the bottom bunker in a basement cell of the Alcatraz... | mit |
donghoon/ifctoolkit | BlackBox/Predefined/BbProduct/BbProduct.cs | 2469 | using System;
using System.Collections.Generic;
using System.Linq;
using BlackBox.Service;
using EbInstanceModel;
using IFC2X3;
namespace BlackBox.Predefined
{
public partial class BbProduct : BbBase
{
[EarlyBindingInstance]
public virtual IfcRelAggregates IfcRelAggregates { get; protected se... | mit |
JuliaPy/SymPy.jl | src/constructors.jl | 6177 | ##################################################
"""
symbols(name(s), assumptions...)
Calls `sympy.symbols` to produce symbolic variables and symbolic functions. An alternate to the recommended `@syms`, (when applicable)
In sympy `sympy.symbols` and `sympy.Symbol` both allow the construction of symbolic variabl... | mit |
fabri1983/marioBadClone | Assets/Scripts/States/Crouch.cs | 2429 | using UnityEngine;
public class Crouch : MonoBehaviour {
public float crouchColliderProportion = 0.75f;
private bool crouching;
private float colliderCenterY, centerOffsetY;
private ChipmunkBoxShape box;
private Jump jump;
private Sneak sneak;
private WalkAbs move;
private AnimateTiledConfig crouchAC;
v... | mit |
node-gh/reports | complexity/files/lib_cmds_nt_js/index.html | 11120 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Plato - lib/cmds/nt.js</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/... | mit |
Azure/azure-sdk-for-java | sdk/applicationinsights/azure-resourcemanager-applicationinsights/src/main/java/com/azure/resourcemanager/applicationinsights/models/UserAssignedIdentity.java | 1557 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.applicationinsights.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import ... | mit |
JuliaPackageMirrors/ImplicitEquations.jl | src/ImplicitEquations.jl | 461 | __precompile__(true)
module ImplicitEquations
using ValidatedNumerics
import ValidatedNumerics: Interval, diam
using RecipesBase
using Compat
include("predicates.jl")
include("intervals.jl")
include("tupper.jl")
include("asciigraphs.jl")
#include("plot.jl")
include("plot_recipe.jl")
export eq, neq, ⩵, ≷, ≶
export... | mit |
JoPaRoRo/Fleet | web/js/controllers/usuarios.js | 1854 | /*
* 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.
*/
angular.module('MetronicApp').controller('UsuariosCtrl', function ($scope, GetSv, $rootScope, PostSv,toaster) {
$scope.usuarios =... | mit |
mcshen99/learningCpp | learningCpp/primer12_7.cpp | 458 | #include <vector>
#include <memory>
#include <iostream>
using namespace std;
shared_ptr<vector<int>> make() {
return make_shared<vector<int>>();
}
shared_ptr<vector<int>> read(shared_ptr<vector<int>> p) {
cout << "Enter values: " << endl;
int x;
while (cin >> x) {
p->push_back(x);
}
return p;
}
void print... | mit |
kurtbradd/facebook-music-recommender | config/express-config.js | 1002 | /*
* This file exports the configuration Express.js back to the application
* so that it can be used in other parts of the product.
*/
var path = require('path');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-ses... | mit |
getdave/tanlinell-framework | docs/src/_compounds/nav-menu.html | 500 | ---
layout: pattern
summary: "Base classes for creating simple 'nav-like' lists. Ideal for simple nav menus or for forming the basis of more complex navigation componenets."
---
<ul class="tan-nav-menu tan-nav-menu--stacked">
{% for i in (1..4) %}
<li class="">
<a href="#">Stacked Link {{i}}</a>
</li>
{% endfor... | mit |
webfatorial/dropzone | test/test.js | 82314 | (function() {
chai.should();
describe("Dropzone", function() {
var getMockFile, xhr;
getMockFile = function() {
return {
status: Dropzone.ADDED,
accepted: true,
name: "test file name",
size: 123456,
type: "text/html"
};
};
xhr = null;
beforeEa... | mit |
tamasgal/haskell_exercises | ProjectEuler/p006.hs | 63 | answer = sum [1..100] ^ 2 - foldl (\x y -> y^2 + x) 0 [1..100]
| mit |
rasmusgreve/questionaire | dk.itu.smdp.group2.questionaire.ui/xtend-gen/dk/itu/smdp/group2/ui/outline/QuestionaireOutlineTreeProvider.java | 382 | /**
* generated by Xtext
*/
package dk.itu.smdp.group2.ui.outline;
import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider;
/**
* Customization of the default outline structure.
*
* see http://www.eclipse.org/Xtext/documentation.html#outline
*/
@SuppressWarnings("all")
public class Questiona... | mit |
samt/ghz | index.php | 2503 | <?php
/*
* ghz.me url shortener
* when a long url hz.
*
* (c) 2014 Sam Thompson <contact@samt.us>
* License: MIT
*/
define('ROOT_PATH', __DIR__ . '/');
require ROOT_PATH . 'loader.php';
$app = new Ghz\App();
// Handle our two cases:
// - Redirect (when requestiong anything except BASEPATH)
// - Save URL when p... | mit |
johnl/deb-ruby-rack | doc/Rack/Mime.html | 13266 | <!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>module Rack::Mime - 'Rack Documentation'</title>
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
<script type="text/javascript">
var rdoc_rel_prefix = "../";
</script>
<script type="... | mit |
KlishGroup/prose-pogs | pogs/B/BROHSHX/MMW/index.md | 1924 | ---
layout: page
title: Middleton - Mcdaniel Wedding
date: 2016-05-24
author: Larry Rios
tags: weekly links, java
status: published
summary: Vestibulum ante ipsum primis in faucibus orci luctus et.
banner: images/banner/leisure-02.jpg
booking:
startDate: 02/27/2019
endDate: 03/02/2019
ctyhocn: BROHSHX
groupCode... | mit |
cosminrentea/gobbler | client/wsclient/client_test.go | 7087 | package wsclient
import (
"github.com/cosminrentea/gobbler/testutil"
"fmt"
"strings"
"testing"
"time"
"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert"
)
var aNormalMessage = `/foo/bar,42,user01,phone01,{},,1420110000,0
Hello World`
var aSendNotification = "#send"
var anErrorNotification... | mit |
cpipero/ArduinoLadder | Controller/State/CursorState.cs | 411 | namespace LadderLogic.Controller.State
{
using Surface;
public class CursorState : State
{
public CursorState () : base(StateType.CursorState)
{
}
#region implemented abstract members of State
public override bool Handle (State previous, Segment prevSegment, Segment newSegment, bool left)
{
base.H... | mit |
Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-12-01/generated/azure_mgmt_network/models/probe.rb | 6258 | # encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2019_12_01
module Models
#
# A load balancer probe.
#
class Probe < SubResource
include MsRestAzure
... | mit |
nico01f/z-pec | ZimbraMigrationTools/src/c/Exchange/MAPIMessage.h | 6675 | #pragma once
#include <mime/mimepp/mimepp.h>
namespace Zimbra
{
namespace MAPI
{
#define PR_URL_NAME PROP_TAG(PT_TSTRING, 0x6707)
#define EXCHIVERB_OPEN 0
#define EXCHIVERB_RESERVED_COMPOSE 100
#define EXCHIVERB_RESERVED_OPEN 101
#define EXCHIVERB_REPLYTOSENDER ... | mit |
dakkor71/UploadBundle | Form/Type/BaseFileType.php | 462 | <?php
namespace Juice\UploadBundle\Form\Type;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class BaseFileType extends AbstractUploadType
{
public function buildView(FormView $view, FormInterface $form, array $optio... | mit |
MinecraftIRC/MinecraftIRC.net | hopper/index.html | 172 | <html>
<head>
<meta http-equiv="refresh" content="0; url=https://minecrafthopper.net/">
<link rel="canonical" href="https://minecrafthopper.net/"/>
</head>
</html>
| mit |
durandludovic/tfe | src/TFE/LibrairieBundle/Form/AccompagnementModifierType.php | 647 | <?php
namespace TFE\LibrairieBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class AccompagnementModifierType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
public function buildForm(FormBuilde... | mit |
robertohermes/Comissoes | Dufry.Comissoes.Domain/Interfaces/Validation/IValidation.cs | 208 | using Dufry.Comissoes.Domain.Validation;
namespace Dufry.Comissoes.Domain.Interfaces.Validation
{
public interface IValidation<in TEntity>
{
ValidationResult Valid(TEntity entity);
}
} | mit |
swimmadude66/YTRadio | src/client/services/auth.ts | 2997 | import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable, ReplaySubject, throwError} from 'rxjs';
import {map, tap, switchMap} from 'rxjs/operators';
import {SocketService} from './sockets';
import {StorageService} from './storage';
@Injectable({
provide... | mit |
houli/distributed-file-system | dfs-shared/src/DirectoryAPI/API.hs | 1213 | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module DirectoryAPI.API
( directoryAPIProxy
, DirectoryAPI
) where
import Servant
import AuthAPI.API (AuthToken)
import Models (File, Node, NodeId)
type DirectoryAPI = "ls" :> -- List all files
AuthToken :>
G... | mit |
kub1x/sowl | sample-treema/data/treema.html | 1755 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="jquery/jquery-1.8.1.js"></script>
<script src="jquery/jquery-ui-1.10.3.custom.js"></script>
<script src="treema/tv4.js"></script>
<script src="treema/treema.js"></script>
<link href="jquery/jquery-ui-1.10.3.custom.css" rel="style... | mit |
Falkplan/lightspeedecom-api | lightspeedecom-api/src/main/java/com/lightspeedhq/ecom/LightspeedEComErrorException.java | 528 | package com.lightspeedhq.ecom;
import com.lightspeedhq.ecom.domain.LightspeedEComError;
import feign.FeignException;
import lombok.Getter;
/**
*
* @author stevensnoeijen
*/
public class LightspeedEComErrorException extends FeignException {
@Getter
private LightspeedEComError error;
public LightspeedE... | mit |
davehampson/edit-movie | README.md | 97 | edit-movie
==========
Script to edit Star Wars with ffmpeg to make it a bit more child-friendly
| mit |
popcointeam/popcoin | src/qt/locale/bitcoin_eu_ES.ts | 99892 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About POPCoin</source>
<translation>POPCoin-i buruz</translation>
<... | mit |
lukeoliff/zpg-rtf-php | tests/Objects/EpcRatingsObjectTest.php | 1924 | <?php
namespace ZpgRtf\Tests\Objects;
use PHPUnit\Framework\TestCase;
use ZpgRtf\Objects\EpcRatingsObject;
class EpcRatingsObjectTest extends TestCase
{
/**
* @var EpcRatingsObject
*/
protected $object;
public function setUp()
{
$this->object = new EpcRatingsObject();
}
pu... | mit |
yamaguchiyuto/icwsm15 | tag_follow_disagreement.py | 857 | import sys
tagging_filepath = sys.argv[1]
following_filepath = sys.argv[2]
delim = '\t'
if len(sys.argv) > 3:
delim = sys.argv[3]
graph = {}
for line in open(tagging_filepath):
entry = line.rstrip().split('\t')
src = entry[0]
dst = entry[1]
if not src in graph: graph[src] = {}
graph[src][dst]... | mit |
zcoinofficial/zcoin | src/tor/src/test/log_test_helpers.h | 5131 | /* Copyright (c) 2014-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#include "core/or/or.h"
#ifndef TOR_LOG_TEST_HELPERS_H
#define TOR_LOG_TEST_HELPERS_H
/** An element of mock_saved_logs(); records the log element that we
* received. */
typedef struct mock_saved_log_entry_t {
int sev... | mit |
plaid/plaid-go | plaid/model_wallet_transaction_execute_response.go | 5790 | /*
* The Plaid API
*
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* API version: 2020-09-14_1.78.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package plaid
import (
"encoding/json"
)
// WalletTransactionExecuteResponse WalletTra... | mit |
pioul/Minimalist-Markdown-Editor-for-Chrome | src/js/background.js | 230 | chrome.app.runtime.onLaunched.addListener(function(){
chrome.app.window.create('index.html', {
bounds: {
width: Math.round(window.screen.availWidth - 100),
height: Math.round(window.screen.availHeight - 100)
}
});
}); | mit |
dqminh/bullet | spec/bullet_spec.rb | 2702 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
require "yaml"
shared_examples "a bullet" do
let(:capacity) { 2 }
subject do
described_class.new(:machines => machines, :guns => capacity)
end
describe :fire do
it "spawns correct number of threads" do
bullets = ["first", "second... | mit |
Agnishom/ascii-art-007 | facebook.py | 20087 | #!/usr/bin/env python
#
# Copyright 2010 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | mit |
logicleague/double_booked | spec/factories/transaction_factory.rb | 340 | FactoryGirl.define do
factory :transaction do |t|
t.description "Test transaction"
t.association :account_from, :factory => :foo_account
t.association :account_to, :factory => :foo_account
t.amount 10.00
end
factory :invoice_payment, :parent => :transaction do
auxilliary_model :factory => :i... | mit |
SLM2A/site_adm | site/plugins/datatables/extensions/TableTools/examples/collection.html | 17621 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>TableTools example - Button collections</title>
<link rel="stylesheet" type="text/css" href="..... | mit |
Draveness/EXTabBarController | EXTabBarController/AppDelegate.h | 282 | //
// AppDelegate.h
// EXTabBarController
//
// Created by apple on 15/5/23.
// Copyright (c) 2015年 DeltaX. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| mit |
bendi/grunt-tar.gz | test/tar.gz_test.js | 1003 | "use strict";
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actual, expected, [message])
tes... | mit |
angular/angular-cli-stress-test | src/app/components/comp-625/comp-625.component.spec.ts | 840 | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Comp625Component } from './comp-... | mit |
peczenyj/MooseX | lib/moosex/attribute.rb | 7509 | require 'moosex/types'
require 'moosex/attribute/modifiers'
module MooseX
class Attribute
include MooseX::Types
attr_reader :attr_symbol, :methods, :attribute_map
def is ; @attribute_map[:is] ; end
def writter ; @attribute_map[:writter] ; end
def reader ; @attribute_map[:reader] ; end
... | mit |
user-tony/photon-rails | lib/assets/images/photon/plugins/elrte/css/css_compiled/js/bootstrap/css/css_compiled/js/plugins/jquery.flot.resize.js.html | 14403 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/images/photo... | mit |
bladestery/Sapphire | example_apps/AndroidStudioMinnie/sapphire/src/main/java/boofcv/alg/filter/binary/ContourTracer.java | 6808 | /*
* Copyright (c) 2011-2016, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | mit |
IKende/IKendeLib | BeetleDemo/Examples/Console/Console.Server/Console.Server/Properties/AssemblyInfo.cs | 1324 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("Console.Server")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: Ass... | mit |
programingc42/testC | ch6/PE6.8.c | 252 | #include<stdio.h>
int main(void)
{
double a,b;
printf("Enter a\&b:\n");
while(scanf("%lf%lf",&a,&b)==2)
{
printf("%.3g - %.3g / %.3g * %.3g = %.3g .\n",a,b,a,b,(double)(a-b)/(a*b));
printf("\n");
printf("Enter a\&b:\n");
}
printf("done!");
return 0;
}
| mit |
netmf-lib-grfamily/GrFamilyLibrary | Library/MainBoard/Peach/Led.cs | 733 | using Microsoft.SPOT.Hardware;
namespace GrFamily.MainBoard
{
/// <summary>
/// LEDNX
/// </summary>
public class Led
{
/// <summary>LEDªÚ±³ê½s</summary>
protected readonly OutputPort LedPort;
/// <summary>
/// RXgN^
/// </summary>
... | mit |
midvalestudent/jupyter | docker/image/Dockerfile | 3569 | FROM midvalestudent/jupyter-scipy:latest
USER root
ENV HOME /root
ADD requirements.txt /usr/local/share/requirements.txt
RUN pip install --upgrade pip && pip install -r /usr/local/share/requirements.txt
# Download/build/install ffmpeg
ARG FFMPEG_VERSION
ENV FFMPEG_VERSION ${FFMPEG_VERSION:-"3.2"}
RUN DEBIAN_FRONTEND... | mit |
nusmodifications/nus-exams-downloader | README.md | 979 | <img src="icon.png" alt="Icon" width="128">
NUS Exam Paper Downloader
===============
Simple script to download exam papers from the NUS database. Requires NUSNET login.
Runs on Python 2.7 only.
### Using via Command Line
```
$ python examdownloader-cli.py
```
The required username and target destination can be se... | mit |
rewso/angular-foundation | src/directives/topBarSection.ts | 272 | module ngFoundation.directives {
//@NgDirective('topBarSection')
class TopBarSectionDirective implements ng.IDirective {
template = '<section class="top-bar-section" ng-transclude></section>';
restrict = "E";
transclude = true;
replace = true;
}
} | mit |
supasate/CreditCardValidator | README.md | 87 | # CreditCardValidator
Validate a credit card number with Luhn algorithm.
License: MIT
| mit |
jwang/three20-gem | spec/three20_spec.rb | 201 | require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "Three20" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end
| mit |
tristandunn/reading | spec/javascripts/fixtures/github.com.js | 753 | if (Zepto.ajax.restore) {
Zepto.ajax.restore();
}
sinon.stub(Zepto, "ajax")
.yieldsTo("success", {
responseStatus : 200,
responseDetails : null,
responseData : {
feed: {
link : "http://github.com",
title : "GitHub Public Timeline",
entries : [
{ title ... | mit |
jpanikulam/experiments | estimation/sensors/make_interpolator.cc | 1053 | #include "estimation/sensors/make_interpolator.hh"
namespace estimation {
geometry::spatial::TimeInterpolator make_accel_interpolator(
const std::vector<TimedMeasurement<jet_filter::AccelMeasurement>>&
accel_meas,
const ImuModel& imu_model) {
std::vector<geometry::spatial::TimeControlPoint> points;
... | mit |
jleni/QRL | src/qrl/core/ChainManager.py | 23847 | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
import threading
from typing import Optional, Tuple
from pyqrllib.pyqrllib import bin2hstr
from pyqryptonight.pyqryptonight import StringToUInt256, UInt256ToString
fr... | mit |
nitrado/Nitrapi-PHP | lib/Nitrapi/Common/Exceptions/NitrapiHttpErrorException.php | 105 | <?php
namespace Nitrapi\Common\Exceptions;
class NitrapiHttpErrorException extends NitrapiException
{
} | mit |
javiervilcapaza/inst | inst/src/main/webapp/resources/scripts/mantenimientoInterno/tipoDocumentoFormulario.js | 1492 | var baseURL;
$.validator.addMethod("alfanumerico", function(value, element) {
return this.optional(element) || /^[-._a-z0-9\- ]+$/i.test(value);
}, "Este campo es alfanumerico.");
$("#frmGuardaTipoDocumento").validate({
rules : {
descripcion : "required",
codigo : {required:true,alfanumerico:true},
... | mit |
Flexberry/ember-flexberry-designer | app/controllers/fd-interface-edit-form/new.js | 91 | export { default } from 'ember-flexberry-designer/controllers/fd-interface-edit-form/new';
| mit |
growu/growu-website | routes/api.php | 591 | <?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... | mit |
KroKroDile/Kifland | README.md | 5853 | Symfony Standard Edition
========================
Welcome to the Symfony Standard Edition - a fully-functional Symfony2
application that you can use as the skeleton for your new applications.
This document contains information on how to download, install, and start
using Symfony. For a more detailed explanation, see ... | mit |
icostin/zlx | include/zlx/platform.h | 1255 | #ifndef _ZLX_PLATFORM_H
#define _ZLX_PLATFORM_H
#include "arch.h"
#if defined(ZLX_FREESTANDING) && ZLX_FREESTANDING
#else
# undef ZLX_FREESTANDING
# define ZLX_FREESTANDING 0
# if defined(_WIN32)
# define ZLX_MSWIN 1
# elif defined(_AIX)
# define ZLX_AIX 1
# elif defined(__unix__) || defined(__unix)
# def... | mit |
best-summer/project-dystopia | api-server/vendor/bundle/gems/activemodel-5.0.4/CHANGELOG.md | 5282 | ## Rails 5.0.4 (June 19, 2017) ##
* Fix regression in numericality validator when comparing Decimal and Float input
values with more scale than the schema.
*Bradley Priest*
## Rails 5.0.3 (May 12, 2017) ##
* The original string assigned to a model attribute is no longer incorrectly
frozen.
Fi... | mit |
ostux/tacss | utilities/colors.html | 16433 | ---
title: Color Palette
layout: page
description: taCss color palette same as the Material Design Lite color palette.
utilities: true
---
<div class="row p-3">
<h6>color setup</h6>
<div class="code col-12 info p-3 m-b-3">
{% highlight scss %}
/* colors setups in "core/_variables.scss" */
/* enable/disable ... | mit |
NicoleCarpenter/nicolecarpenter.github.io | _posts/2016-03-13-clean-code-chapter-5-formatting.md | 4058 | ---
layout: post
title: "Clean Code: Chapter 5 - Formatting"
date: 2016-03-13
---
Formatting, while not consequential to how the code actually works, does make a huge difference in how future user of the code will be able to navigate and understand what is going on.
In formatting, particularly, the broken window the... | mit |
taforyou/testtesttest-yo | README.md | 8556 | # testtesttest-yo
[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Code Coverage][coverage-image]][coverage-url]
[![Code Climate][climate-image]][climate-url]
[![License][license-image]][license-url]
[![Code Style][code-style-image]]... | mit |
godong9/spring-board | board/src/main/java/com/board/gd/domain/stock/StockResult.java | 777 | package com.board.gd.domain.stock;
import lombok.Data;
import java.util.List;
import java.util.stream.Collectors;
/**
* Created by gd.godong9 on 2017. 5. 19.
*/
@Data
public class StockResult {
private Long id;
private String name;
private String code;
public static StockResult getStockResult(Sto... | mit |
mekras/interfaces | lib/Http/Message/RequestFactory.php | 775 | <?php
/**
* General purpose and commonly used PHP interface definitions
*
* @author Михаил Красильников <m.krasilnikov@yandex.ru>
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Mekras\Interfaces\Http\Message;
use Psr\Http\Message\RequestInterface;
/**
* HTTP request factory
*
* Object can cre... | mit |
stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/unsafe/CWE_79__SESSION__func_FILTER-CLEANING-number_float_filter__Unsafe_use_untrusted_data-style.php | 1407 | <!--
Unsafe sample
input : get the UserData field of $_SESSION
Uses a number_float_filter via filter_var function
File : unsafe, use of untrusted data in CSS
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute this so... | mit |
johnvoon/launch_school | 210/lesson5/date_ex1.js | 43 | var today = new Date();
console.log(today); | mit |
Lukenickerson/rocketboots | scripts/rocketboots/core.js | 8886 | var RocketBoots = {
isInitialized : false,
readyFunctions : [],
components : {},
loadedScripts: [],
version: {full: "0.7.0", major: 0, minor: 7, patch: 0, codeName: "sun-master"},
_autoLoadRequirements: true,
_initTimer : null,
_MAX_ATTEMPTS : 300,
_BOOTING_ELEMENT_ID : "booting-up-rocket-boots",
_: null, //... | mit |
erenmustafaozdal/laravel-modules-base | src/Neighborhood.php | 1262 | <?php
namespace ErenMustafaOzdal\LaravelModulesBase;
use Illuminate\Database\Eloquent\Model;
class Neighborhood extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'neighborhoods';
/**
* The attributes that are mass assignable.
... | mit |
net-bits/Netbits | src/bitcoinrpc.cpp | 46782 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | mit |
yenliangl/bitcoin | test/functional/test_framework/blocktools.py | 9688 | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Utilities for manipulating blocks and transactions."""
import struct
import time
import unittest
from... | mit |
danteinforno/PhysX.Net | PhysX.Net/PhysX.Net/Source/Distance Joint Description.cpp | 1564 | #include "StdAfx.h"
#include "Distance Joint Description.h"
#include "Spring Description.h"
#include "Distance Joint.h"
#include <NxDistanceJointDesc.h>
using namespace StillDesign::PhysX;
DistanceJointDescription::DistanceJointDescription() : JointDescription( new NxDistanceJointDesc() )
{
}
Dista... | mit |
kilguril/UForms | Assets/UForms/Runtime/Editor/Controls/Fields/ObjectField.cs | 2890 | using UnityEngine;
using UnityEditor;
using System.Collections;
using UForms.Attributes;
namespace UForms.Controls.Fields
{
/// <summary>
///
/// </summary>
[ExposeControl( "Object Field", "Fields" )]
public class ObjectField : AbstractField< Object >
{
/// <summary>
/// ... | mit |
stratisproject/TCPServer | TCPServer/ServerImplemetation/TCPRequest.cs | 4306 | using Microsoft.AspNetCore.Http;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.Extensions.Primitives;
using System.Globalization;
namespace TCPServer... | mit |
sdanna/TeamcityTestSite | src/UnitTests/Properties/AssemblyInfo.cs | 1394 | 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("Un... | mit |
paul-m/VirtualPersistAPI | src/VirtualPersistAPI/VirtualPersistBundle/DependencyInjection/VirtualPersistExtension.php | 903 | <?php
namespace VirtualPersistAPI\VirtualPersistBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class ... | mit |
reimagined/resolve | examples/ts/hacker-news/test/e2e-post-import/check-import.ts | 463 | import { Selector } from 'testcafe'
import { ROOT_URL, login } from '../e2e/utils'
// eslint-disable-next-line
fixture`imported data check`.beforeEach(async (t /*: TestController */) => {
await t.setNativeDialogHandler(() => true)
await t.navigateTo(`${ROOT_URL}/login`)
await login(t)
})
test('wait entry', asyn... | mit |
lignertys/lignertys.github.io | _posts/2016-12-21-compelling-strapless-sleeveless-full-back-floor-length-satin-sheath-wedding-dress.md | 1814 | ---
layout: post
date: '2016-12-21'
title: "Compelling Strapless Sleeveless Full Back Floor Length Satin Sheath Wedding Dress "
category: Wedding Dress
tags: ["dress","full","floor","length","bride"]
image: http://www.starbrideapparel.com/21326-thickbox_default/compelling-strapless-sleeveless-full-back-floor-leng... | mit |
vergecurrency/verge-python | doc/vergerpc.config.html | 5858 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>vergerpc.config — Utilities for reading verge confi... | mit |
lcdvirgo/lcdvirgo.github.io | _posts/2014-05-01-lahacks-the-most-bizarre-hackathon-experience-in-my-life.md | 15312 | ---
published: true
layout: post
title: "LAHacks: The most bizarre hackathon experience in my life"
quote: My 10th hackathon.
image:
url: "/media/2014-05-01-lahacks-the-most-bizarre-hackathon-experience-in-my-life/IMG_1685.jpg"
source: null
color: ""
posted: Published
video: false
comments: true
---
It was 2... | mit |
aviabird/angularspree | src/app/product/components/product-detail-page/product-description/product-description.component.html | 106 | <div itemprop="description" class="col-12">
<div [innerHTML]="description | sanitizeHtml"></div>
</div>
| mit |
alphagov/govuk-puppet | modules/collectd/files/usr/lib/collectd/python/redis_queues.py | 4100 | # This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; only version 2 of the License is applicable.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; witho... | mit |
khalibartan/pgmpy | pgmpy/factors/discrete/__init__.py | 236 | from .DiscreteFactor import State, DiscreteFactor
from .CPD import TabularCPD
from .JointProbabilityDistribution import JointProbabilityDistribution
__all__ = ['TabularCPD',
'DiscreteFactor',
'State'
]
| mit |
dinshaw/intro-to-devops | index.html | 13086 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Dev to DevOps</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="y... | mit |
sbinet-staging/clive | cmd/oldql/frmt/frmt.go | 2706 | /*
Ql builtin and external frmt command.
format text
*/
package frmt
import (
"clive/cmd"
"clive/cmd/opt"
"clive/nchan"
"clive/zx"
"errors"
"fmt"
"io"
"strings"
"unicode"
)
type parFmt {
rc chan string
ec chan bool
}
func startPar(out io.Writer, indent0, indent string, max int) *parFmt {
rc := make(ch... | mit |
jackygrahamez/LineSocialPublic | build.js | 157 | ({
baseUrl: "../linesocial/public/js",
paths: {
jquery: "public/js/libs/jquery-1.9.1.js"
},
name: "main",
out: "main-built.js"
}) | mit |
LeQuangAnh/USVTracking | src/Usolv/TrackingBundle/Form/Model/TimeRecordSearch.php | 325 | <?php
namespace Usolv\TrackingBundle\Form\Model;
use Doctrine\Common\Collections\ArrayCollection;
class TimeRecordSearch
{
protected $project;
public function setProject($project)
{
$this->project = $project;
return $this;
}
public function getProject()
{
return $this->project;
}... | mit |
eduardoedson/scp | usuarios/forms.py | 8823 | from crispy_forms.helper import FormHelper
from crispy_forms.layout import Fieldset, Layout
from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.models import User
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions impo... | mit |