repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
hbaughman/audible-temptations | src/views/HomeView/HomeView.js | 868 | import React from 'react';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-button';
import { OAUTH_REQUEST } from '../../constants';
const Home = () => {
//<Link to="/filterLibrary" style={{padding: "24px"}} >
return (
<div>
<img style={{marginTop: "64px"}} src="/in... | mit |
adifaidz/base | config/base.php | 5694 | <?php
/**
* This file is part of AdiFaidz\Base wrapper of Base,
* a role & permission management solution for Laravel.
*
* @license MIT
* @package Base
*/
return [
/*
|--------------------------------------------------------------------------
| Project Name
|-------------------------------------... | mit |
c0d1ngm0nk3y/pokerhands | src/main/java/examples/pokerhands/valuation/HandRanking.java | 155 | package examples.pokerhands.valuation;
import examples.pokerhands.model.Hand;
public interface HandRanking {
public Valuation evaluate(Hand hand);
}
| mit |
rokde/workload-dashboard | src/Http/Sources/Source.php | 4497 | <?php
namespace WorkloadDashboard\Http\Sources;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
/**
* Class Source
*
* @package WorkloadDashboard\Http\Sources
*/
abstract class Source
{
/**
* request
*
* @var \Illuminate\Htt... | mit |
rmwatson5/Unicorn | src/Unicorn/Logging/WebConsoleLogger.cs | 1131 | using System;
using System.Diagnostics.CodeAnalysis;
using Kamsar.WebConsole;
namespace Unicorn.Logging
{
/// <summary>
/// Logger that writes to a WebConsole.
/// </summary>
[ExcludeFromCodeCoverage]
public class WebConsoleLogger : ILogger
{
private readonly IProgressStatus _progress;
public WebConsoleLog... | mit |
gabrielsimas/SistemasExemplo | DDD/ControleLivros/InterfaceUsuario.Mvc5/App_Start/BundleConfig.cs | 1252 | using System.Web;
using System.Web.Optimization;
namespace InterfaceUsuario.Mvc5
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add... | mit |
geraldinas/LocalGuide | config/environments/development.rb | 2187 | Rails.application.configure do
config.assets.raise_production_errors = true
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
... | mit |
pebblescape/pebblescape | Godeps/_workspace/src/github.com/fsouza/go-dockerclient/tar.go | 3519 | // Copyright 2015 go-dockerclient authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package docker
import (
"fmt"
"io"
"io/ioutil"
"os"
"path"
"path/filepath"
"strings"
"github.com/pebblescape/pebblescape/Godeps/_workspace/sr... | mit |
Yortw/Yort.OnlineEftpos | Yort.OnlineEftpos/Properties/AssemblyInfo.cs | 818 | using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an ... | mit |
jonsequitur/Alluvial | Alluvial.Tests/Infrastructure/Background.cs | 602 | using System;
using System.Reactive.Linq;
namespace Alluvial.Tests
{
public static class Background
{
public static IDisposable Loop(
Action<int> action,
double rateInMilliseconds = 1)
{
var count = 0;
return Observable.Timer(TimeSpan.FromMillise... | mit |
dreamtalee/PinterestLikeApp | src/com/dreamtale/pintrestlike/widget/PintrestGridView.java | 528 | package com.dreamtale.pintrestlike.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
public class PintrestGridView extends GridView
{
public PintrestGridView(Context context)
{
super(context);
}
public PintrestGridView(Context context, ... | mit |
merbjedi/viewfu | lib/view_fu/tag_helper.rb | 6328 | module ViewFu
module TagHelper
# Calls a Merb Partial with a block,
# which you can catch content from
#
# Usage Example:
# <%= partial_block :fieldset, :legend => "Login" do %>
# .. inner partial content
# <% end =%>
#
# Associated Partial (_fieldset.html.erb)
# <fieldset... | mit |
OrifInformatique/stock | orif/stock/Database/Migrations/restore_CI3_version/2021-06-01-093907_add_item.php | 5850 | <?php
namespace Stock\Database\Migrations;
class Add_Item extends \CodeIgniter\Database\Migration
{
/**
* @inheritDoc
*/
public function up()
{
$this->forge->addField([
'item_id'=>[
'type' => 'INT',
'constraint' => '11',... | mit |
Pearson-Higher-Ed/pagination | demo/eventing.js | 337 | import ReactDOM from 'react-dom';
import React from 'react';
import { PaginationContainer } from '../index';
document.body.addEventListener('o.InitPagination', e => {
ReactDOM.render(
React.createElement(PaginationContainer, e.detail.props, e.detail.props.children)
, document.getElementById(e.detail.ele... | mit |
CatalinaTechnology/ctAPIClientExamples | client.orderManagement.maintenance.customerContacts/Web References/ctDynamicsSL.orderManagement.maintenance.customerContacts/Reference.cs | 96185 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | mit |
SebSept/onemorelaravelblog | app/database/seeds/TagsTableSeeder.php | 324 | <?php
class TagsTableSeeder extends Seeder {
public function run()
{
$faker = Faker\Factory::create('fr_FR');
$tags = [];
$count = 0;
while($count++ < 7) {
$title = $faker->word;
$tags[] = [
'title' => $title
];
}
DB::table('tags')->truncate();
DB::table('tags')->insert($tags);
}... | mit |
tomwalker/glasgow_parking | test/karma.conf.js | 690 | module.exports = function(config){
config.set({
basePath : '../',
files : [
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-mocks/angular-mocks.js',
'app/js/*.js',
'test/unit/*.js',
{pattern: 'test/mocks/... | mit |
aaldaber/owid-grapher | grapher_admin/migrations/0017_auto_20170915_1024.py | 488 | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-09-15 10:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grapher_admin', '0016_remove_old_axis_labels_20170915_0430'),
]
operations = [
... | mit |
markoa/audiogara | features/step_definitions/user_steps.rb | 1067 | Given /^I am logged in as "([^"]*)"$/ do |username|
@user = Factory(:user, :lastfm_username => username)
steps %Q{
Given I am on the home page
And I fill in "user_lastfm_username" with "#{username}"
And I press "Show me"
}
end
Given /^I have a recommendation "([^"]*)" \- "([^"]*)"$/ do |artist_name, ... | mit |
tetra5/telegooby | telegooby/__init__.py | 35 | __version__ = ('2016', '07', '14')
| mit |
strongcoins/strongcoin | src/qt/guiutil.cpp | 13519 | #include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include "base58.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For ... | mit |
Alex-B09/Tostitos | Tostitos/threading/callstack.cpp | 2195 | #include "callstack.h"
#include <algorithm>
using namespace Threading::impl;
using namespace TosLang;
////////// Stack Frame //////////
size_t StackFrame::mCount = 0;
void StackFrame::AddOrUpdateSymbolValue(const FrontEnd::Symbol* sym, const InterpretedValue& value)
{
mCurrentSymbolVals[sym] = value;
}
void S... | mit |
eaigner/shield | shield.go | 3312 | package shield
import (
"math"
)
const defaultProb float64 = 1e-11
type shield struct {
tokenizer Tokenizer
store Store
}
func New(t Tokenizer, s Store) Shield {
return &shield{
tokenizer: t,
store: s,
}
}
func (sh *shield) Learn(class, text string) (err error) {
return sh.increment(class, text, ... | mit |
abkfenris/knowhow | knowhow/__init__.py | 518 | """
App builder.
"""
from flask import Flask
from flask_bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from config import config
bootstrap = Bootstrap()
db = SQLAlchemy()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
bootstrap.init_... | mit |
Miragecoder/Urbanization | src/Mirage.Urbanization.Resources/BitmapExtensions.cs | 1318 | using System;
using System.Collections.Generic;
using SixLabors.ImageSharp;
using System.Linq;
using SixLabors.Primitives;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
namespace Mirage.Urbanization.Tilesets
{
public static class ImageExtensions
{
public s... | mit |
rebus007/BaseRecyclerView | library/src/main/java/com/raphaelbussa/baserecyclerview/StaticViewHolder.java | 325 | package com.raphaelbussa.baserecyclerview;
import android.view.View;
/**
* Created by rebus007 on 04/09/17.
*/
class StaticViewHolder extends BaseViewHolder {
StaticViewHolder(View itemView) {
super(itemView);
}
@Override
public void onBindViewHolder(Object data) {
//not used
... | mit |
aliyun/fc-java-sdk | src/main/java/com/aliyuncs/fc/http/HttpRequest.java | 2781 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | mit |
happy-coin/test-coin | src/qt/sendcoinsentry.cpp | 4617 | // Copyright (c) 2011-2013 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 "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbo... | mit |
Leanty/tree-gateway | src/utils/time-intervals.ts | 1110 | 'use strict';
import * as _ from 'lodash';
const humanInterval = require('human-interval');
humanInterval.languageMap['eleven'] = 11;
humanInterval.languageMap['twelve'] = 12;
humanInterval.languageMap['thirteen'] = 13;
humanInterval.languageMap['fourteen'] = 14;
humanInterval.languageMap['fifteen'] = 15;
humanInterv... | mit |
malero/simple-ts-models | src/fields/EmailField.ts | 435 | import { Field } from "./Field";
export class EmailField extends Field {
_emailRegex = /^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;
validate() {
super.validate();
if(this._value != null && !this._emailRegex.test(this.... | mit |
Irraquated/old-Irraquated.github.io | Resources/main.js | 344 | var red = [0, 100, 63];
var orange = [40, 100, 60];
var green = [75, 100, 40];
var blue = [196, 77, 55];
var purple = [280, 50, 60];
var myName = "Irraquated";
letterColors = [red, orange, green, blue, purple]
if(10 < 200) {
bubbleShape = "circle";
}
else {
bubbleShape = "square";
}
drawName(myName, letter... | mit |
dbachrach/skinner | src/skinner/core/intervals.js | 1644 | define (["lib/lodash"], function (_) {
"use strict";
// TODO: Use pegjs
var ONE_SECOND = 1000;
var ONE_MINUTE = 60 * ONE_SECOND;
var ONE_HOUR = 60 * ONE_MINUTE;
var ONE_DAY = 24 * ONE_HOUR;
var ONE_YEAR = 365 * ONE_DAY;
/**
* Parses a string for a timer interval.
* Fo... | mit |
Comp4711CILab3/comp4711-lab3-starter-gallery | application/controllers/Gallery.php | 1145 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Gallery extends Application
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/
* - or -
* http://example.com/welcome/index
*
* So any other public meth... | mit |
jacks205/Beyond45Game | Assets/MainMenu/Scripts/ButtonScript.cs | 504 | using UnityEngine;
using System.Collections;
public class ButtonScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void StartGameOnClick()
{
Debug.Log("Start");
Application.LoadLevel("Level1");
... | mit |
pshynin/JavaRushTasks | 1.JavaSyntax/src/com/javarush/task/task04/task0419/Solution.java | 752 | package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = ... | mit |
ThirdPartyNinjas/NinjaParty | Test/Tests/Facebook.hpp | 1202 | #include <functional>
#include <memory>
#include <NinjaParty/FacebookManager.hpp>
#include <NinjaParty/Game.hpp>
namespace Tests
{
class TestGame : public NinjaParty::Game
{
public:
TestGame(int screenWidth, int screenHeight)
: NinjaParty::Game(screenWidth, screenHeight)
{
}
... | mit |
cryptix/talebay | modules_basic/like.js | 2254 |
var h = require('hyperscript')
var u = require('../util')
var pull = require('pull-stream')
var plugs = require('../plugs')
//var message_confirm = plugs.first(exports.message_confirm = [])
//var message_link = plugs.first(exports.message_link = [])
//var sbot_links = plugs.first(exports.sbot_links = [])
exports.ne... | mit |
SlavaBogu1/xvi | xvi_clAbsModule.php | 708 | <?php
/** @file xvi_clAbsModule.php
* This is abstract class describing third party modules.
* Each customized module must implement it.
* XVI also support function plugins .. to be removed soon.
* @todo Finalize module interface (either class or function or both)
\addtogroup Modules
... | mit |
yatanokarasu/jsf-practice | sample04/src/main/java/sample/MeiboBean.java | 1882 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Yusuke TAKEI.
*
* 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
* ... | mit |
bouzuya/node-jenking | lib/index.js | 1217 | var express = require('express');
var request = require('request');
var TimeBomb = require('./time-bomb').TimeBomb;
var PORT = parseInt((process.env.PORT || '3000'), 10);
var TIMEOUT = parseInt((process.env.JENKING_TIMEOUT || '10000'), 10);
var CALLBACK = JSON.parse(process.env.JENKING_CALLBACK || '""');
if (isNaN(PO... | mit |
adamos42/ionize | themes/admin/javascript/mootools_locale/eu.js | 327 | /*
---
name: Locale.EU.Number
description: Number messages for Europe.
license: MIT-style license
authors:
- Arian Stolwijk
requires:
- /Locale
provides: [Locale.EU.Number]
...
*/
Locale.define('EU', 'Number', {
decimal: ',',
group: '.',
currency: {
prefix: '€ '
}
... | mit |
cachilders/backpat | src/helpers.test.js | 11130 | import chai, { expect } from 'chai';
import chaiSpies from 'chai-spies';
import {
NpmConfig,
readPackageJson,
readYarnLock,
rootDir,
instantiateDependencies,
fetchEachDependency,
fetchDependency,
resolveDependency,
addNode,
nodeDetails,
chopDependencies
} from './helpers';
import { getNpmData } fr... | mit |
stefan-lehmann/atomatic | app/scripts/services/StructureService.js | 4913 | import Vue from 'vue';
class StructureService {
constructor(sections, maxLevel = 2) {
this.maxLevel = maxLevel;
this.sections = sections;
this.urls = sections.reduce(this.generateSectionStructure.bind(this), {});
}
static hasSiblings(file, index, files) {
const siblings = files
.filter((o... | mit |
avijit1258/OnlineBusTicket | database/migrations/2016_03_19_154658_create_companies_table.php | 716 | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCompaniesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('companies', function (Blueprint $table) {
... | mit |
usamec/CR-index | benchmark/test_cr_index.cpp | 2491 | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <chrono>
#include <boost/algorithm/string.hpp>
#include <malloc.h>
#include "cr_index.hpp"
using namespace std;
bool is_memory_mapping(const string &line) {
istringstream ... | mit |
windy/wblog | db/migrate/20210614151102_create_administrators.rb | 253 | class CreateAdministrators < ActiveRecord::Migration[6.1]
def change
create_table :administrators do |t|
t.string :name
t.string :password_digest
t.timestamps
end
add_index :administrators, :name, unique: true
end
end
| mit |
collegepulse/material-react-components | src/Tabs/index.js | 70 | export {default} from './Tabs';
export {default as Tab} from './Tab';
| mit |
ddqd/zvonok | app/src/main/java/org/cryptocommune/zvonok/di/ApplicationComponent.java | 768 | package org.cryptocommune.zvonok.di;
import android.content.Context;
import com.cryptocommune.domain.repository.ZvonokRepository;
import com.cryptocommune.domain.schedulers.ObserveOn;
import com.cryptocommune.domain.schedulers.SubscribeOn;
import org.cryptocommune.zvonok.MainActivity;
import org.cryptocommune.zvonok... | mit |
ivayloilievv/Issue-Tracking-System | app/notify/notify-services.js | 1657 | 'use strict';
angular.module('issueTrackingSystem.notify-factory', [])
.factory('notifyService',
function () {
return {
showInfo: function(msg) {
noty({
text: msg,
type: 'info',
layout: 'topCenter',
... | mit |
cesvald/lbm | db/migrate/20170629223345_add_currency_to_project.rb | 176 | class AddCurrencyToProject < ActiveRecord::Migration
def change
add_column :projects, :currency_id, :integer, default: 1
add_index :projects, :currency_id
end
end
| mit |
cuckata23/wurfl-data | data/blackberry9380_ver1.php | 2412 | <?php
return array (
'id' => 'blackberry9380_ver1',
'fallback' => 'blackberry_generic_ver7',
'capabilities' =>
array (
'uaprof' => 'http://www.blackberry.net/go/mobile/profiles/uaprof/9380_umts/7.0.0.rdf',
'model_name' => 'BlackBerry 9380',
'uaprof2' => 'http://www.blackberry.net/go/mobile/profiles... | mit |
Stonekity/ShopManager | ShopManager-app/src/main/java/com/stone/shopmanager/model/hbut/BXTNews.java | 1672 | package com.stone.shopmanager.model.hbut;
import cn.bmob.v3.BmobObject;
/**
* 博学堂讲座实体类
* @date 2014-5-10
* @author Stone
*/
public class BXTNews extends BmobObject{
//private String id;
private String title; //标题
private String topic; //讲座主题
private String speaker; //主 讲 人
private String time; //... | mit |
Adonga/Dumbazells | Dumbazells/src/Player.java | 3827 |
import org.lwjgl.input.Controller;
import org.lwjgl.input.Controllers;
import org.newdawn.slick.*;
import org.newdawn.slick.geom.Circle;
public class Player {
static private final float cursorSpeed = 0.03f;
static private final float controllerDeadZone = 0.2f;
static private final float PLAYER_SCALE = 0.004f;
... | mit |
u9520107/component-react-bootstrap | react-bootstrap/transpiled/OverlayTrigger.js | 5683 | "use strict";
/** @jsx React.DOM */
var React = require("./react-es6")["default"];
var cloneWithProps = require("./react-es6/lib/cloneWithProps")["default"];
var merge = require("./react-es6/lib/merge")["default"];
var OverlayMixin = require("./OverlayMixin")["default"];
var domUtils = require("./domUtils")["default"]... | mit |
agorf/feed2email | spec/feed2email/email_spec.rb | 2119 | require 'spec_helper'
require 'feed2email/email'
require 'feed2email/version'
describe Feed2Email::Email do
subject(:email) do
described_class.new(
from: from,
to: to,
subject: email_subject,
html_body: html_body,
)
end
let(:from) { 'sender@feed2email.org' }
let(:... | mit |
MsrButterfly/OpenGLLearning | OpenGLLearning/2_Hello_dot_.hpp | 2085 | #ifndef _2_HELLO_DOT__HPP_INCLUDED
#define _2_HELLO_DOT__HPP_INCLUDED
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
namespace _2_Hello_dot_ {
const char *title = "Hello dot!";
static void errorCallback(int error, const char *description) {
std::cerr << descr... | mit |
lechkulina/CosmicRiverInsanity | Include/Common/Keywords.hpp | 1211 | /*
* Keywords.hpp
*
* Created on: 29 maj 2014
* Author: Lech Kulina
* E-Mail: kulinalech@gmail.com
*/
#ifndef KEYWORDS_HPP_
#define KEYWORDS_HPP_
#include <boost/parameter.hpp>
namespace Cosmic {
namespace Core {
namespace Keywords {
BOOST_PARAMETER_NAME((name, Tags) name)
BOOST_PARA... | mit |
hubuk/Binary | src/LeetABit.Binary/Backups/Bits/Int16ArrayBinaryReader.cs | 3679 | //-----------------------------------------------------------------------
// <copyright file="Int16ArrayBinaryReader.cs" company="Leet">
// Copyright © by Hubert Bukowski. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Leet.Binary
{
usin... | mit |
qianlifeng/Wox | Wox/App.xaml.cs | 7306 | using System;
using System.Diagnostics;
using System.Threading.Tasks;
using System.Windows;
using System.Collections.Generic;
using System.Threading;
using System.Globalization;
using CommandLine;
using NLog;
using Wox.Core;
using Wox.Core.Configuration;
using Wox.Core.Plugin;
using Wox.Core.Resource;
using Wox.Helpe... | mit |
giftcards/Encryption | Tests/CipherText/Serializer/ContainerAwareChainSerializerDeserializerTest.php | 1096 | <?php
/**
* Created by PhpStorm.
* User: jderay
* Date: 8/24/15
* Time: 7:16 PM
*/
namespace Giftcards\Encryption\Tests\CipherText\Serializer;
use Giftcards\Encryption\CipherText\Serializer\ContainerAwareChainSerializerDeserializer;
use Symfony\Component\DependencyInjection\Container;
class ContainerAwareChainS... | mit |
plouc/nivo | packages/bar/src/ResponsiveBar.tsx | 391 | import { Bar } from './Bar'
import { BarDatum, BarSvgProps } from './types'
import { ResponsiveWrapper } from '@nivo/core'
export const ResponsiveBar = <RawDatum extends BarDatum>(
props: Omit<BarSvgProps<RawDatum>, 'height' | 'width'>
) => (
<ResponsiveWrapper>
{({ width, height }) => <Bar<RawDatum> w... | mit |
bkahlert/seqan-research | raw/pmsb13/pmsb13-data-20130530/sources/21gbd4mgnulhm130/2013-04-12T11-39-35.840+0200/sandbox/olfrik/apps/t5Graphs/t5Graphs.cpp | 4329 | // ==========================================================================
// t5Graphs
// ==========================================================================
// Copyright (c) 2006-2012, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and use in source and ... | mit |
macpczone/codeigniter-datatables-example | application/views/example_form.php | 2427 | <!doctype html>
<html>
<head>
<title>harviacode.com - codeigniter crud generator</title>
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
<style>
body{
padding: 15px;
}
</style>
</head>
<b... | mit |
icebreaker/dotfiles | gnome/gnome2/gedit/plugins.symlink/ViGedit/bindings/yank.py | 1003 | from base import VIG_ModeBase
class Mode(VIG_ModeBase):
def setup(self, act):
self.reg(None, act.gtk.keysyms.a)
self.reg(self.nop, act.gtk.keysyms.B, after=(act.modes.block, ["yank", "numLines"]))
self.reg(self.nop, act.gtk.keysyms.t, after=(act.modes.t, ["yank", "numLines... | mit |
immissile/angular.js | src/auto/injector.js | 28209 | 'use strict';
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @kind function
*
* @description
* Creates an injector function that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules ... | mit |
goodzsq/xyj | src/shared/utils/behavior/decorator/Inverter.ts | 536 | import {Decorator, Tick, State} from '../BaseNode'
export class Inverter extends Decorator {
tick(tick: Tick) {
if (!this.child) return State.FAILURE
var status = this.child.execute(tick)
if (status === State.SUCCESS) {
return State.FAILURE
} else if (status === State.FA... | mit |
cpsoinos/fb_error_machine | spec/fb_error_machine_spec.rb | 225 | require "spec_helper"
describe FbErrorMachine do
# it "has a version number" do
# expect(FbErrorMachine::VERSION).not_to be nil
# end
#
# it "does something useful" do
# expect(false).to eq(true)
# end
end
| mit |
webbestmaster/ae3 | www/js/component/game/model/bot.js | 14134 | // @flow
import type {MapType, MapUserType, UnitType} from '../../../maps/type';
import type {GameDataType, UnitActionMoveType, UnitActionsMapType, UnitActionType} from './unit/unit';
import {Unit} from './unit/unit';
import {rateBotResultActionData} from './bot-helper';
import {Building} from './building/building';
i... | mit |
andela-iokonkwo/zucy | spec/spec_helper.rb | 298 | require "simplecov"
SimpleCov.start
require "codeclimate-test-reporter"
require "test_reporter_helper"
CodeClimate::TestReporter.start
require "rspec"
require "rack/test"
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "todolist/config/application.rb"
ENV["RACK_ENV"] = "test"
| mit |
vileopratama/vitech | new-addons/reporting-engine-10.0/report_custom_filename/__manifest__.py | 1567 | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2014 Therp BV (<http://therp.nl>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | mit |
paulohp/ango | slushfile.js | 2632 | /*
* slush-go
* https://github.com/paulohp/slush-go
*
* Copyright (c) 2014, Paulo Pires
* Licensed under the MIT license.
*/
'use strict';
var gulp = require('gulp'),
install = require('gulp-install'),
conflict = require('gulp-conflict'),
template = require('gulp-template'),
rename = require('gu... | mit |
xdimedrolx/omnipay-yandex-kassa-mws | src/Message/RepeatCardPaymentRequest.php | 1453 | <?php
namespace Omnipay\YandexKassaMws\Message;
class RepeatCardPaymentRequest extends AbstractRequest
{
public function getClientOrderId()
{
return $this->getParameter('clientOrderId');
}
public function setClientOrderId($clientOrderId)
{
return $this->setParameter('clientOrderId', $clientOrderId);
}
pu... | mit |
nwoeanhinnogaehr/flow-synth | src/gui/geom.rs | 4926 | use std::ops::{Add, Div, Mul, Neg, Sub};
#[derive(Copy, Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct Pt2 {
pub x: f32,
pub y: f32,
}
impl Pt2 {
pub fn new(x: f32, y: f32) -> Pt2 {
Pt2 {
x,
y,
}
}
pub fn zero() -> Pt2 {
0.0.int... | mit |
marcosriso/QuickPHP | App/Views/Crud/listing.blade.php | 8946 | @extends('Layout.admin_layout')
@section('content')
<div class="listing_wrapper" ng-controller="getList" ng-init="init('/{{ $table }}',0)">
<div class="row">
<div class="col-lg-12">
@if(isset($tbldetails->display_name))
<h2>{{ $tbldetails->displ... | mit |
RufusMbugua/nqcl | application/core/MY_Controller.php | 304 | <?php
use League\Fractal\Manager;
use League\Fractal\Resource\Collection;
require_once('REST_Controller.php');
// error_reporting(1);
class MY_Controller extends REST_Controller{
var $fractal;
public function __construct()
{
$this->fractal = new Manager();
parent::__construct();
}
}
| mit |
txstate-etc/attendance | test/unit/grade_settings_test.rb | 127 | require 'test_helper'
class GradeSettingsTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end
| mit |
mirkhamidov/yii2-mail | migrations/m161113_061932_create_mail_table.php | 1100 | <?php
use yii\db\Migration;
/**
* Handles the creation of table `mail`.
*/
class m161113_061932_create_mail_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$this->createTable('mail', [
'id' => $this->primaryKey(),
'alias' => $this->string()... | mit |
dyoub/app | src/Dyoub.Test/Contexts/Inventory/PurchaseOrders/DeletePurchaseOrderContext.cs | 1148 | // Copyright (c) Dyoub Applications. All rights reserved.
// Licensed under MIT (https://github.com/dyoub/app/blob/master/LICENSE).
using Dyoub.App.Models.EntityModel;
using Dyoub.App.Models.EntityModel.Account.Tenants;
using Dyoub.App.Models.EntityModel.Inventory.PurchaseOrders;
using Dyoub.App.Models.EntityModel.Ma... | mit |
cogliaWho/romec | application/controllers/Slideshows.php | 4644 | <?php
class Slideshows extends MY_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('slideshows_model');
$this->load->helper('form');
$this->load->library('form_validation');
}
public function index()
{
if ( ! file_exists... | mit |
svenkreiss/databench | databench/tests/analyses/simple1_py/analysis.py | 829 | import datetime
import time
import databench_py
import databench_py.singlethread
class Simple1_Py(databench_py.Analysis):
def on_connect(self):
"""Run as soon as a browser connects to this."""
time.sleep(1)
formatted_time = datetime.datetime.now().isoformat()
self.data['status'] ... | mit |
anudeepsharma/azure-sdk-for-java | azure-mgmt-servicebus/src/main/java/com/microsoft/azure/management/servicebus/implementation/QueuesImpl.java | 4267 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.servicebus.implementation;
import com.microsoft.azure.Page;
import com.microsoft.azure.PagedList;
import com.mi... | mit |
kahliloppenheimer/Naive-Bayes-Classifier | test_classifier.py | 2166 | # -*- mode: Python; coding: utf-8 -*-
from classifier import Classifier
from document import Document
from cStringIO import StringIO
from unittest import TestCase, main
class TrivialDocument(Document):
"""A document whose sole feature is its identity."""
def features(self):
return [id(self)]
cl... | mit |
miuramo/AnchorGarden | src/jaist/css/covis/filefilter/NullFileFilter.java | 873 | package jaist.css.covis.filefilter;
import java.io.File;
/**
* JavaÌt@C_CAOiJFileChooserjÅCÁèÌg£qÌt@CÌÝð
* IñÅ\¦µ½¢Æ«ÉCp¢éD
*
* g£qªðRXgN^ÅwèÅ«é½ßC»ÝàgpD
*
* @author miuramo
*
*/
public class NullFileFilter extends javax.swing.f... | mit |
monkdaf/skuter77-opencart | catalog/controller/module/full_screen_background_slider.php | 899 | <?php
/*
Version: 1.0
Author: Artur Sułkowski
Website: http://artursulkowski.pl
*/
class ControllerModuleFullScreenBackgroundSlider extends Controller {
public function index($setting) {
// Ładowanie modelu Full screen background slider
$this->load->model('slider/full_screen_background_slider');
// Pobrani... | mit |
alycit/javascript_skeleton | src/sample.js | 50 | function add(num1, num2) {
return num1 + num2;
} | mit |
nurulazradm/dice | spec/dice_spec.rb | 403 | require 'dice'
describe Dice do
dice = Dice.new
it "has 6 faces" do
expect(dice.faces.count).to eql(6)
end
describe ".roll" do
it "return any number between 1 to 6" do
last_roll = dice.roll
expect(%w(1 2 3 4 5 6)).to include(last_roll)
end
it "has last roll recorded" do
las... | mit |
guillermo/ginst | lib/ginst/template.rb | 858 |
module Ginst::Template
require('templater')
extend Templater::Manifold
class GinstData < Templater::Generator
desc 'Ginst data directory generator'
def self.source_root
File.join(File.dirname(__FILE__), 'ginst_template')
end
template :database, 'database.yml'
template :co... | mit |
thofis/hangularman | app/lib/angular/i18n/angular-locale_en-bm.js | 3276 | angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
"AMPMS": [
"AM",
... | mit |
DnDGen/CharacterGen | CharacterGen.Tests.Integration.Tables/Abilities/Ages/VenerableAbilityAdjustmentsTests.cs | 1400 | using CharacterGen.Abilities;
using CharacterGen.Domain.Tables;
using CharacterGen.Races;
using NUnit.Framework;
namespace CharacterGen.Tests.Integration.Tables.Abilities.Ages
{
[TestFixture]
public class VenerableAbilityAdjustmentsTests : AdjustmentsTests
{
protected override string tableName
... | mit |
cityway-soft/atlas | lib/atlas/geocoding.rb | 5504 | module Atlas
class Geocoding
extend ActiveSupport::Memoizable
include Benchmarking
@@default_location_index = nil
cattr_accessor :default_location_index
attr_accessor :timeout
attr_reader :input_string
attr_reader :location_index
def initialize(input_string, options = {})
opt... | mit |
PurplePenguin4102/ConnectFour | ConnectFour/ConnectFourTests/TextParserTests/ParseTokens.cs | 2066 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using ConnectFour;
using System;
using System.Linq;
using ConnectFour.Exceptions;
namespace ConnectFourTests.TextParserTests
{
[TestClass]
public class ParseTokens
{
[TestMethod]
public void TokensAreIntegers()
{
strin... | mit |
mtils/php-ems | src/Ems/Core/Exceptions/UnConfiguredException.php | 273 | <?php
namespace Ems\Core\Exceptions;
use RuntimeException;
use Ems\Contracts\Core\Errors\ConfigurationError;
/**
* Throw a UnConfiguredException if an object was not configured
**/
class UnConfiguredException extends RuntimeException implements ConfigurationError
{
}
| mit |
rodromart/angular-phonecat | test/unit/filtersSpec.js | 404 | 'use strict';
/* jasmine specs for filters go here */
describe('filter', function() {
beforeEach(module('phonecatFilters'));
describe('checkmarks', function(){
it('should convert boolean values to unicode checkmarks or cross',
inject(function(checkmarkFilter){
expect(checkmarkFilter(true)).toBe('... | mit |
stuppy/beethoven | src/beethoven/Play.java | 3386 | package beethoven;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Iterator;
import android.graphics.Bitmap;
import android.graphics.Color;
import com.android.uiautomator.core.UiDevice;
import com.android.uiautomator.core.UiObject;
import com.android.uiautomator.core.UiSelector;
imp... | mit |
computerundsound/cuLibrary | db/CuDBResult.php | 581 | <?php
declare(strict_types=1);
/**
* Copyright by Jörg Wrase - www.Computer-Und-Sound.de
* Hire me! coder@cusp.de
*
*/
namespace computerundsound\culibrary\db;
/**
* Class CuDBResult
*/
interface CuDBResult
{
/**
* @return mixed
*/
public function getLastInsertId();
/**
* @param mi... | mit |
mrwest808/slam | react-js/src/store/modules/__tests__/games.selectors.spec.js | 1106 | import { values } from 'ramda';
import gamesReducer, {
FETCH_GAMES_FOR_TEAM_SUCCESS,
selectGameListForTeam,
} from '../games';
const action = {
type: FETCH_GAMES_FOR_TEAM_SUCCESS,
payload: {
teamId: 'knicks',
games: {
'knicks-at-cavs': { eventStartDateTime: '2017-02-24T23:00:00.000Z' },
'kn... | mit |
ragingwind/got-github-blob-cli | .tmp/app.js | 3484 | /*
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.gi... | mit |
mximos/openproject-heroku | db/migrate/20130807081927_move_journals_to_legacy_journals.rb | 1391 | #-- copyright
# OpenProject is a project management system.
# Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
#
# OpenProject is a fork of ChiliProject, which is a fork of ... | mit |
fayfox/fayfox | application/blog/configs/exts.php | 165 | <?php
/**
* 所有数组项均会被转为正则表达式进行匹配,转换规则
* / => \/
* * => .*
*/
return array(
'/'=>array('work', 'post'),
); | mit |
Pouf/CodingCompetition | CiO/clock-angle.py | 158 | def clock_angle(time):
h, m = [int(i) for i in time.split(':')]
h = (h%12)*30
m = m*5.5
return abs(h-m)//180 and 180-abs(h-m)%180 or abs(h-m)
| mit |