repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
AmandaCMS/amanda-cms
amanda/faq/emails.py
355
from mailviews.messages import TemplatedHTMLEmailMessageView class NewTopicNotifyTemplatedHTMLEmailMessageView( TemplatedHTMLEmailMessageView ): subject_template_name = 'faq/emails/new_topic_notify_subject.txt' body_template_name = 'faq/emails/new_topic_notify_body.txt' html_body_template_name = 'faq/...
mit
MPDieckmann/Snippets
ts/date/date.ts
10784
/// <reference path="../default.d.ts" /> /// <reference path="../i18n/i18n.ts" /> /** * replace i18n, if it is not available */ // @ts-ignore var i18n: (text: string) => string = i18n || ((text: string) => text.toString()); /** * Formatiert ein(e) angegebene(s) Ortszeit/Datum gemäß PHP 7 * @param stri...
mit
adlersantos/knights_travails
spec/spec_helper.rb
762
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration requir...
mit
jumski/tmux_status
spec/tmux_status/wrappers/acpi_battery_spec.rb
1083
require 'spec_helper' describe TmuxStatus::Wrappers::AcpiBattery do before do string = File.read("spec/fixtures/battery_#{state}.txt") template = ERB.new(string) output = template.result(binding) described_class.any_instance.stubs(output: output) end subject { described_class.new } let(:percen...
mit
sg-medien/sails-hook-simple-api
blueprints/find.js
3488
/** * Blueprint dependencies */ var actionUtil = require('../lib/actionUtil'), apiUtil = require('../lib/apiUtil'), _ = require('lodash'); /** * Find Records * * get /:modelIdentity * * /:modelIdentity/find * * An API call to find and return model instances from the data adapter * using the spec...
mit
Djaygo/Udemy-Java
src/PackageDemo/Main.java
232
package PackageDemo; /** * Created by diego on 26/07/2017. */ public class Main { public static void main(String[] args) { MyWindow myWindow = new MyWindow("Complete Java"); myWindow.setVisible(true); } }
mit
artsy/force
src/v2/Apps/Settings/Routes/Auctions/Components/__tests__/UserRegistrationAuctions.jest.tsx
2173
import { graphql } from "react-relay" import { setupTestWrapper } from "v2/DevTools/setupTestWrapper" import { UserRegistrationAuctionsFragmentContainer } from "../UserRegistrationAuctions" import { UserRegistrationAuctions_Test_Query } from "v2/__generated__/UserRegistrationAuctions_Test_Query.graphql" jest.unmock("r...
mit
RadicalFx/radical
src/Radical.Tests/ChangeTracking/ReferenceEqualityComparerTest.cs
5258
using Microsoft.VisualStudio.TestTools.UnitTesting; using SharpTestsEx; using System; using System.Collections; using System.Collections.Generic; namespace Radical.Tests.ChangeTracking { [TestClass()] public class ReferenceEqualityComparerTest { [TestMethod()] [TestCategory("ChangeTracking...
mit
drhayes/burrowdefender
src/assets.js
2971
// assets.js // // Everything concerned with loading and using images and sounds. Additionally, // each of the managers in this module are singletons instantiated at import. (function(global, $) { var im = (function() { var toload = [], loaded = false, images = {}, image_counter = 0; ret...
mit
flywingdevelopers/rn-naive
example/src/test_itemselect.js
3475
/** * <TextInput> * Kevin Lee 3 Sept 2017 **/ import React from 'react' import { Screen, Bar, Block, DataBar, DataBlock, Text, CheckBox, Input, ItemSelect, } from 'rn-naive' export default class App extends React.Component { constructor(props) { super(props) this.state = { disabled: false, ...
mit
nmarazov/TA-Homework
Courses 2016-spring/C#Fundamentals/Homework03_Operators and Expressions/04_ConsoleInAndOut/12_FallingRocks/Program.cs
241
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _12_FallingRocks { class Program { static void Main(string[] args) { } } }
mit
krishnarajvr/php-boilerplate
sami.php
840
<?php use Sami\Sami; use Sami\Parser\Filter\TrueFilter; use Symfony\Component\Finder\Finder; /* * This will look for all PHP files in the directory and in folders */ $iterator = Finder::create() ->files() ->name('*.php') ->in($dir = './src'); /* * This will set up some options in the documentation */...
mit
CodingBrothers/futurimages
src/main/java/com/codingbrothers/futurimages/service/impl/ImageDataUploader.java
235
package com.codingbrothers.futurimages.service.impl; import com.codingbrothers.futurimages.domain.Image; public interface ImageDataUploader { void uploadData(Image image, com.google.appengine.api.images.Image imageData); }
mit
Updownquark/ObServe
src/main/java/org/observe/collect/impl/CachingObservableCollection.java
4544
package org.observe.collect.impl; import java.util.Collection; import java.util.Iterator; import java.util.Objects; import java.util.function.Consumer; import org.observe.ObservableValue; import org.observe.ObservableValueEvent; import org.observe.Observer; import org.observe.Subscription; import org.obser...
mit
pvandommelen/parser
src/Expression/Not/NotExpression.php
523
<?php namespace PeterVanDommelen\Parser\Expression\Not; use PeterVanDommelen\Parser\Expression\ExpressionInterface; class NotExpression implements ExpressionInterface { /** @var ExpressionInterface */ private $inner; /** * @param ExpressionInterface $inner */ public function __construct(...
mit
ARM-software/armnn
src/backends/backendsCommon/test/layerTests/FloorTestImpl.cpp
3350
// // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // #include "FloorTestImpl.hpp" #include <backendsCommon/test/DataTypeUtils.hpp> #include <backendsCommon/test/TensorCopyUtils.hpp> #include <backendsCommon/test/WorkloadTestUtils.hpp> #include <test/TensorHelpers.h...
mit
jreeserunyan/phase-0
week-7/nums_commas.js
3768
// Separate Numbers with Commas in JavaScript **Pairing Challenge** // I worked on this challenge with: Irina. // Pseudocode // input: integer // output: number with commas // define function that takes integer as argument // create array where each digit in the array is a digit from the input integer // convert ...
mit
Iamhumanareyou/EmprendeCoin
src/qt/locale/paycoin_et.ts
124278
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="et"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About MonedaDelEmprendimiento</source> <translation type=...
mit
DanWatkins/GlanceEngineSDK
GlanceEngine/GlanceEntity/Src/Entities/Objects/Weapon.cpp
1506
/*================================================================================================= Glance Engine - (C) 2010-2013 Daniel L. Watkins Filename: Weapon.cpp =================================================================================================*/ #include "../../Entity.h" namespace ge { ...
mit
imink/leetcodeChallenge
lintcode/src/LongestIncreasingContinuousSubsequence.java
852
/** * LintCode 397 * http://www.lintcode.com/en/problem/longest-increasing-continuous-subsequence/ * Created by imink on 20/11/2016. */ public class LongestIncreasingContinuousSubsequence { /** * @param A an array of Integer * @return an integer */ public int longestIncreasingContinuousSubse...
mit
ChiarilloMassimo/satispay-php-sdk
sample/find_users.php
240
<?php include 'config.php'; //Return ChiarilloMassimo\Satispay\Model\ArrayCollection $satispay->getUserHandler()->find(50, 'starting_id', 'ending_id'); $users = $satispay->getUserHandler()->find(); foreach ($users as $user) { //.. }
mit
kellyethridge/aurelia-orm
dist/commonjs/decorator/type.js
324
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.type = type; var _ormMetadata = require('../orm-metadata'); function type(typeValue) { return function (target, propertyName) { _ormMetadata.OrmMetadata.forTarget(target.constructor).put('types', propertyName, typeValue); ...
mit
miguelmota/rgb-scale
rgb-scale.js
6232
(function(root) { 'use strict'; /** * RGBScale * @desc RGB color scale. * @param {number[]} colors - rgb colors in array * @param {number[]} positions - color position offsets * @param {number[]} domain - scale domain * @return {function} scale function */ function RGBScale(colors, positions...
mit
frc-frecon/frecon
lib/frecon/match_number.rb
8713
# lib/frecon/match_number.rb # # Copyright (C) 2014 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier, and Kristofer Rye # # This file is part of FReCon, an API for scouting at FRC Competitions, which is # licensed under the MIT license. You should have received a copy of the MIT # license with this...
mit
andrelugomes/mapa-alocacao
app/models/client.rb
393
class Client < ActiveRecord::Base #has_many :teams, class_name: "Team", foreign_key: "client_id" has_many :teams validates :name, presence: true, allow_blank: false validates_uniqueness_of :name before_destroy :verify_teams #tratament para Constraint def verify_teams return true if teams.count == 0 ...
mit
vorushin/moodbox_aka_risovaska
client/moc_deletemoodstripresult.cpp
3147
/**************************************************************************** ** Meta object code from reading C++ file 'deletemoodstripresult.h' ** ** Created: Wed Jun 24 21:01:22 2009 ** by: The Qt Meta Object Compiler version 61 (Qt 4.5.1) ** ** WARNING! All changes made in this file will be lost! *************...
mit
GetStream/vg
cmd/cdpackages.go
958
// Copyright © 2017 Stream // package cmd import ( "errors" "github.com/spf13/cobra" ) // cdpackagesCmd represents the cdpackages command var cdpackagesCmd = &cobra.Command{ Use: "cdpackages", Short: "Change the working directory to the src directory of the active workspace", Long: `Example: $ vg activate ...
mit
angelicadly/prog-script
tekton-master/backend/appengine/routes/rotas/admin/edit.py
965
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from config.template_middleware import TemplateResponse from gaebusiness.business import CommandExecutionException from tekton import router from gaecookie.decorator import no_csrf from rota_app import facade from routes.rotas import admin...
mit
fforres/coworks_client_side
src/components/UserProfile/UserProfile.js
961
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { actions as sideBarActions } from '../../redux/modules/sideBar'; const mapStateToProps = (state) => { return { image: state.account.userData[state.account.userData.provider].profileImageURL, displayName: state...
mit
opgginc/php-riotapi-request
src/Dto/LolStaticData/Champion/PassiveDto.php
418
<?php /** * Created by PhpStorm. * User: kargnas * Date: 2017-07-02 * Time: 04:55 */ namespace RiotQuest\Dto\LolStaticData\Champion; use RiotQuest\Dto\BaseDto; class PassiveDto extends BaseDto { /** @var \RiotQuest\Dto\LolStaticData\ImageDto */ public $image; /** @var string */ public $sanitiz...
mit
samuelmolinari/rpromise
lib/rpromise.rb
2121
require 'rpromise/version' require 'method' class Rpromise module State PENDING = :pending RESOLVED = :resolved REJECTED = :rejected end Handler = Struct.new(:on_resolved, :on_rejected, :resolve, :reject) attr_reader :state, :thread def initialize() @state = State::PENDING @defered...
mit
abdiansyah/olaps
application/modules/assesment/models/m_assesment.php
7943
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class M_assesment extends CI_Model { function __construct() { parent::__construct(); } public function get_data_assesment($personnel_number, $request_number) { $query = "SELECT tal.re...
mit
jankaspar/ts-discriminated-union
src/union.ts
123989
// DO NOT EDIT THIS FILE IT IS GENERATED, EDIT union.ts.tmpl instead module tsDiscriminatedUnion{ export interface Union<TValue, TMatchable> { match(value: TValue): TMatchable // in typescript 1.8 null is considered subtype of any type type: TValue // keep the combined type for convenience } export interface ...
mit
v0lkan/efficient-javascript
007/js/collections/ToDoCollection.js
284
define([ 'utils/Config', 'backbone', 'models/ToDoModel' ], function( Config, Backbone, ToDoModel ) { 'use strict'; /** * */ return Backbone.Collection.extend({ model : ToDoModel, url : Config.url.LIST_TASKS }); });
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.1/dd-constrain/dd-constrain-min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:04fb273db3bb97fb874204c1a0bbddd2b7991878cd7eb2da2208916f7b1451f0 size 4422
mit
jcook/crazyIoT
src/contiki-sensinode-cc-ports/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/ESBMoteType.java
8134
/* * Copyright (c) 2007, Swedish Institute of Computer Science. * 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 copyright * n...
mit
rastydnb/chucknorrisfacts
app/cache/dev/twig/8e/ef/bd0d58b0015f837f4aa6f988e334.php
1971
<?php /* WebProfilerBundle:Profiler:header.html.twig */ class __TwigTemplate_8eefbd0d58b0015f837f4aa6f988e334 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } pro...
mit
rangle/ci-i18n-angular
src/app/components/githubContributor/githubContributor.service.spec.js
2114
(function() { 'use strict'; describe('service githubContributor', function() { var githubContributor; var $httpBackend; var $log; beforeEach(module('workshop')); beforeEach(inject(function(_githubContributor_, _$httpBackend_, _$log_) { githubContributor = _githubContributor_; $http...
mit
Flobbos/laravel-newsletter
src/LaravelNewsletter/LaravelNewsletterApi.php
111
<?php namespace Flobbos\LaravelNewsletter; use Contracts\Api; class LaravelNewsletterApi { }
mit
mjirik/imtools
imtools/viewer.py
3582
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple VTK Viewer. Example: $ viewer.py -f head.vtk """ from optparse import OptionParser from PyQt5.QtWidgets import * import sys from PyQt5.QtGui import QApplication, QDialog, QGridLayout, QPushButton import vtk from vtk.qt4.QVTKRenderWindowInteractor import QVTK...
mit
ucisal/UCICOIN
src/qt/bitcoingui.cpp
36287
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "aboutdialog.h" #inc...
mit
Muxter/DesignPatternExample
src/com/muxter/CompositePattern/Menu.java
1354
package com.muxter.CompositePattern; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * Created by matao on 09/02/2017. */ public class Menu extends MenuComponent { private List<MenuComponent> menuComponents = new ArrayList<>(); private String name; private String descri...
mit
mixbe/expert-extractor
app/twitteruser.js
5461
/** * Stelt de Twitter user voor die de searches uitvoert */ var OAuth = require('oauth').OAuth; var querystring = require('querystring'); var _ = require('underscore'); var config = require('./config') var async = require('async'); var diffbot = require('./diffbot'); var twitterOAuth = new OAuth( 'https://api.twit...
mit
lokielse/php-aliyun-open-api-ecs
src/Request/DescribeEipAddressesRequest.php
5263
<?php namespace Aliyun\ECS\Request; /* * 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,...
mit
redkite-labs/redkitecms-framework
framework/RedKiteCms/EventSystem/Event/Block/BlockAddingEvent.php
824
<?php /** * This file is part of the RedKite CMS Application and it is distributed * under the GPL LICENSE Version 2.0. To use this application you must leave * intact this copyright notice. * * Copyright (c) RedKite Labs <info@redkite-labs.com> * * For the full copyright and license information, please view the...
mit
cortesi/devd
httpctx/httpctx.go
1239
// Package httpctx provides a context-aware HTTP handler adaptor package httpctx import ( "net/http" "strings" "golang.org/x/net/context" ) // Handler is a request handler with an added context type Handler interface { ServeHTTPContext(context.Context, http.ResponseWriter, *http.Request) } // A HandlerFunc is a...
mit
bitzesty/trade-tariff-frontend
app/presenters/chemical_search_presenter.rb
425
class ChemicalSearchPresenter attr_reader :search_form, :search_result, :with_errors def initialize(search_form) @with_errors = false @search_form = search_form @search_result = Chemical.search(search_form.to_params) if search_form.present? rescue ApiEntity::NotFound # noop - swallow a 404 here s...
mit
pablo-co/insight-android-base-library
app/src/main/java/edu/mit/lastmite/insight_library/util/AnimatorUtils.java
7939
package edu.mit.lastmite.insight_library.util; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.animation.TimeInterpolator; import android.view.View; public final class AnimatorUtils { p...
mit
markstiles/SitecoreCognitiveServices
src/Feature/ImageSearch/code/Search/ComputedFields/Image/Emotions/Surprise.cs
457
using System.Linq; using Sitecore.Data.Items; namespace SitecoreCognitiveServices.Feature.ImageSearch.Search.ComputedFields.Image.Emotions { public class Surprise : BaseComputedField { protected override object GetFieldValue(Item cognitiveIndexable) { return (Faces != null && Faces...
mit
jzavarella/steam-market-image-fetcher
test.js
350
const MarketImage = require('./index'); const app = require('express')(); app.get('/', (req, res) => { MarketImage.getItemImage(730, 'Spectrum Case Key', (response, err) => { if (!err) { res.send(response); } else { res.send(err); } }); }); app.listen(8080, () => { console.log('...
mit
MMTDigital/PaypalExpressCheckout
tests/PaypalExpressCheckout/Request/CreateRecurringPaymentsProfileTest.php
341
<?php use PaypalExpressCheckout\Request\CreateRecurringPaymentsProfile; class CreateRecurringPaymentsProfileTest extends PHPUnit_Framework_TestCase { protected $_object = null; public function setUp() { } public function testConstructor() { $this->_object = new CreateRecurringPaymen...
mit
kerzyte/OWLib
STULib/Types/Dump/STU_CD247B93.cs
188
// File auto generated by STUHashTool using static STULib.Types.Generic.Common; namespace STULib.Types.Dump { [STU(0xCD247B93)] public class STU_CD247B93 : STU_16EF9936 { } }
mit
marviobezerra/XCommon
src/XCommon/Patterns/Ioc/RepositoryType.cs
479
using System; namespace XCommon.Patterns.Ioc { internal class RepositoryType { internal Func<object> Resolver { get; set; } internal bool UseActicator { get; set; } internal bool UseResolver { get; set; } internal Type ConcretType { get; set; } internal object Instance { get; set; } internal ...
mit
uber/eight-track
test/deep-normalize_test.js
1014
var expect = require('chai').expect; var httpUtils = require('./utils/http'); var serverUtils = require('./utils/server'); // DEV: This is a regression test for https://github.com/uber/eight-track/issues/21 describe('A server being proxied by `eight-track` with a noramlizeFn that modifies a deep property', function ()...
mit
LosPecesDelInfierno/jrpg-2017a-dominio
src/main/java/dominio/Orco.java
3229
package dominio; /** * * Clase que define un Personaje del tipo "Orco", por lo tanto extiende a la * clase abstracta Personaje. (NO tiene variables miebro propias) * */ public class Orco extends Personaje { private static final int ENERGIANECESARIA = 10; /** * <h3>Constructor de Orco</h3> * * @param nom...
mit
Zywave/SMLogging
SMLogging.Lab/ILabService.cs
557
using System.Collections.Generic; using System.ServiceModel; using System.Threading.Tasks; namespace SMLogging.Lab { [ServiceContract] public interface ILabService { [OperationContract] string GetData(int value); [OperationContract] IEnumerable<string> GetDatas(IEnumerable...
mit
atealxt/work-workspaces
PDMS/src/java/pdms/components/dao/impl/MissionDaoImpl.java
7393
package pdms.components.dao.impl; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.hibernate.Query; import org.hibernate.Session; import pdms.components.dao.MissionDao; import pdms.components.dao.ProjectDao; import pdms.components.dao.UserDao; import pdms.components.pojo.Mission; im...
mit
VelislavLeonov/Telerik-Akademy
HomeworkLoops/03.MinMaxSumAndAverageOfNNumbers/MinMaxSumAndAverageOfNNumbers.cs
1503
using System; using System.Globalization; using System.Threading; /*Problem 3. Min, Max, Sum and Average of N Numbers Write a program that reads from the console a sequence of n integer numbers and returns the minimal, the maximal number, the sum and the average of all numbers (displayed with 2 digits after the deci...
mit
Fineighbor/ui-kit
src/Input/__tests__/Input.web.js
1813
/* eslint-env jest */ import 'jest-styled-components' import React from 'react' import { shallow } from 'enzyme' import Input from '../index.js' describe('Input.web', () => { it('renders a snapshot', () => { const wrapper = shallow( <Input /> ) expect(wrapper).toMatchSnapshot() }) it('renders ...
mit
Pajn/prettier
tests/typescript/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithOptionalParameters.ts
2030
// call signatures in derived types must have the same or fewer optional parameters as the base type interface Base { a: () => number; a2: (x?: number) => number; a3: (x: number) => number; a4: (x: number, y?: number) => number; a5: (x?: number, y?: number) => number; } interface I1 extends Base ...
mit
jameshadfield/phandango
js/actions/notifications.js
2092
// import React from 'react'; // import { HelpPanel } from '../components/helpPanel'; export function notificationNew(title, msg = '') { return ({ type: 'notificationNew', title, msg, dialog: !!msg }); } export function notificationSeen() { return ({ type: 'notificationSeen' }); } // export function showHelp() {...
mit
m-enochroot/websync
server/api/thing/index.spec.js
2162
'use strict'; var proxyquire = require('proxyquire').noPreserveCache(); var thingCtrlStub = { index: 'thingCtrl.index', show: 'thingCtrl.show', create: 'thingCtrl.create', update: 'thingCtrl.update', destroy: 'thingCtrl.destroy' }; var routerStub = { get: sinon.spy(), put: sinon.spy(), patch: sinon.s...
mit
nbschool/ecommerce_web
src/components/DropDownItem/index.js
72
import DropDownItem from './DropDownItem'; export default DropDownItem;
mit
affka/yiiGateways
protected/lib/yii-ext/gateways/models/Request.php
332
<?php namespace gateways\models; /** * @property string $url * @property integer $method * @property integer $params */ class Request extends \CFormModel { CONST REQUEST_METHOD_GET = 'get'; CONST REQUEST_METHOD_POST = 'post'; public $url; public $method = self::REQUEST_METHOD_GET; public $params =...
mit
Spoyke/rolling-scopes-js-assignments
task/03-date-tasks.js
3753
'use strict'; /******************************************************************************************** * * * Plese read the following tutorial before implementing tasks: * * https://developer.mo...
mit
obsidian-btc/event-store-client-http
test/bench/serialize_event_data.rb
381
require_relative 'bench_init' context "Event Data Serialization" do test "Converts to raw data" do control_json_data = EventStore::Client::HTTP::Controls::EventData::Write.data write_event_data = EventStore::Client::HTTP::Controls::EventData::Write.example json_data = Serialize::Write.raw_data write_eve...
mit
calccrypto/Encryptions
modes/CFB.cpp
921
#include "CFB.h" CFB::CFB(SymAlg * instance, const std::string & iv) : algo(instance) { blocksize = algo -> blocksize() >> 3; const_IV = iv; if (const_IV == ""){ const_IV = std::string(blocksize, 0); } } std::string CFB::encrypt(const std::string & data){ const std::string temp = pkcs5...
mit
gabrieltanchen/xpns-api
app/controllers/vendor-ctrl/index.js
816
const createVendor = require('./create-vendor'); const deleteVendor = require('./delete-vendor'); const updateVendor = require('./update-vendor'); class VendorCtrl { constructor(parent, models) { this.parent = parent; this.models = models; } async createVendor({ auditApiCallUuid, name, }) { ...
mit
aggiedefenders/aggiedefenders.github.io
src/pages/Landing/Head.js
8177
import React, { Component } from 'react'; import { Spinner, Menu, MenuItem, MenuDivider, Popover, Position } from "@blueprintjs/core"; import image from "../../assets/img/network.gif"; import Background from "../../assets/img/bg_b.jpg"; import { Button } from 'reactstrap'; import data from '../....
mit
geomoose/gm3
src/gm3/reducers/print.js
2164
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 Dan "Ducky" Little * * 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
thomasbiddle/Puppywood-Android-App
src/com/thomasbiddle/puppywood/cameras/BeechmontCamera1.java
197
package com.thomasbiddle.puppywood.cameras; public class BeechmontCamera1 extends CameraBase { protected String cameraUrl() { return "http://puppywood2.dyndns.org:8035/mjpg/video.mjpg"; } }
mit
ikenga89/unetwork
src/Unetwork/AdminBundle/Tests/Controller/DefaultControllerTest.php
403
<?php namespace Unetwork\AdminBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->a...
mit
pcuci/ng2-heroes
app/main.ts
600
import { bootstrap } from '@angular/platform-browser-dynamic'; import { HTTP_PROVIDERS, XHRBackend } from '@angular/http'; import { AppComponent } from './app.component'; import { APP_ROUTER_PROVIDERS } from './app.routes'; import { InMemoryBackendService, SEED_DATA } from 'angular2-in-memory-web-api'; import { InMe...
mit
aphexyuri/gcm-me
index.js
978
var program = require('commander'); var gcmTest = require('gcm-test'); function enforceRequiredArgument(name) { if (!program[name]) { console.error("You must specify <%s>", name); program.outputHelp(); process.exit(1); } } program .version('1.0') .option('-k, --key <key>', 'API Key') .option('-r, --regI...
mit
wegamekinglc/alpha-mind
alphamind/tests/execution/test_thresholdexecutor.py
1709
# -*- coding: utf-8 -*- """ Created on 2017-9-22 @author: cheng.li """ import unittest import pandas as pd from alphamind.execution.thresholdexecutor import ThresholdExecutor class TestThresholdExecutor(unittest.TestCase): def test_threshold_executor(self): target_pos = pd.DataFrame({'code': [1, 2, 3...
mit
borkedLabs/borkedLabs.CrestScribe
borkedLabs.CrestScribe/Settings/WorkerSettings.cs
278
using Newtonsoft.Json; namespace borkedLabs.CrestScribe.Settings { public class WorkerSettings { /// <summary> /// Total number of workers to spawn /// </summary> [JsonProperty("total")] public int Total { get; set; } } }
mit
eylvisaker/AgateLib
demos/AgateLib.Demo/UserInterface/FF6/Widgets/FF6RelicMenu.cs
7381
using AgateLib.UserInterface; using System; using System.Collections.Generic; using System.Linq; namespace AgateLib.Demo.UserInterface.FF6.Widgets { public class FF6RelicMenu : Widget<FF6RelicMenuProps, FF6RelicMenuState> { private readonly ElementReference slotsMenuRef = new ElementReference(); ...
mit
silentred/toolkit
util/timeutil/time.go
1925
package timeutil import ( "time" ) // 类似与js中的SetTimeout,一段时间后执行回调函数 func SetTimeout(t time.Duration, callback func()) { go func() { time.Sleep(t) callback() }() } // 类似与js中的SetInterval,每隔一段时间后执行回调函数,当回调函数返回true,那么继续执行,否则终止执行,该方法是异步的 // 注意:由于采用的是循环而不是递归操作,因此间隔时间将会以上一次回调函数执行完成的时间来计算 func SetInterval(t time.Dura...
mit
MeRPG/GuardianBeamAPI
src/main/java/net/jaxonbrown/guardianBeam/beam/Beam.java
8658
/* * The MIT License (MIT) * * Copyright (c) 2016 Jaxon A Brown * * 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 u...
mit
jamescook/xrono
features/step_definitions/client_steps.rb
962
Given /^the following clients:$/ do |clients| Client.create!(clients.hashes) end When /^I visit the clients index page$/ do visit clients_path end When /^I delete the (\d+)(?:st|nd|rd|th) client$/ do |pos| visit clients_path within("table tbody tr:nth-child(#{pos.to_i})") do click_link "Destroy" end end...
mit
MoWeg/webRTC-firstTry
src/main/webapp/app/services/socket/mysocket.service.js
1584
(function() { 'use strict'; /* globals SockJS, Stomp */ angular .module('simpleWebrtcServerApp') .factory('MySocketService', MySocketService); MySocketService.$inject = ['$window', '$cookies', '$http', '$q']; function MySocketService ($window, $cookies, $http, $q) { var st...
mit
kobezzza/Collection
dist/node/consts/thread.js
526
'use strict'; /*! * Collection * https://github.com/kobezzza/Collection * * Released under the MIT license * https://github.com/kobezzza/Collection/blob/master/LICENSE */ Object.defineProperty(exports, "__esModule", { value: true }); exports.priorities = exports.MAX_PRIORITY = void 0; const MAX_PRIORITY = 40; ...
mit
EricChenC/quark_engine
engine/resource/TextureLoad.cpp
889
#include "TextureLoad.h" #include "Texture.h" #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #include <algorithm> qe::resource::TextureLoad::TextureLoad() { } qe::resource::TextureLoad::~TextureLoad() { } std::shared_ptr<qe::core::Texture> qe::resource::TextureLoad::Load(const std::string & path) { aut...
mit
aurelia/ux
packages/core/dist/types/hosts/cordova.d.ts
361
import { Host } from './host'; import { Container } from 'aurelia-dependency-injection'; import { Platform } from '../platforms/platform'; export declare class Cordova implements Host { private container; type: string; constructor(container: Container); get isAvailable(): boolean; start(): Promise<P...
mit
vnbaaij/ImageProcessor.Web.Episerver
src/ImageProcessor.Web.Episerver.Azure/Properties/AssemblyInfo.cs
1521
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("Ima...
mit
reactjs/react-docgen
src/__tests__/main-test.ts
5569
import fs from 'fs'; import path from 'path'; import { handlers, parse, importers } from '../main'; import { ERROR_MISSING_DEFINITION } from '../parse'; describe('main', () => { function test(source) { it('parses with default resolver/handlers', () => { const docs = parse(source); expect(docs).toEqua...
mit
aykutyaman/meteor1.3-react-flowrouter-demo
node_modules/material-ui/lib/date-picker/calendar-toolbar.js
5343
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _iconButton = require('../icon-button'); var _iconButton2 = _interopRequireDefault(_iconButton); var _toolbar = require('../toolbar/toolbar'); var _toolb...
mit
villez/vswiki
spec/models/page_spec.rb
992
require 'rails_helper' require 'shoulda/matchers' RSpec.describe Page, :type => :model do let(:wikipage) { Page.new(title: "Test page with a few words", wikitext: "testing basic model") } describe "validations" do it { expect(wikipage).to validate_presence_of(:title).with_message("Cannot save a page with an ...
mit
martintechlabs/sitebootstrapper
app/models/authentication.rb
65
class Authentication < ActiveRecord::Base belongs_to(:user) end
mit
aashish24/aperture-tiles
tile-generation/src/test/java/com/oculusinfo/tilegen/graph/analytics/GraphAnalyticsTests.java
15147
/* * Copyright (c) 2014 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the 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, inc...
mit
jordandrako/jordanjanzen.com
src/App/components/CloudImage/index.ts
76
export { default } from './CloudImage'; export * from './CloudImage.types';
mit
virhi/LazyMockApiBundle
src/Virhi/LazyMockApiBundle/Mock/Application/Command/DeleteListCommand.php
993
<?php /** * Created by PhpStorm. * User: virhi * Date: 01/02/15 * Time: 23:17 */ namespace Virhi\LazyMockApiBundle\Mock\Application\Command; use Virhi\Component\Command\CommandInterface; use Virhi\Component\Command\Context\ContextInterface; use Virhi\LazyMockApiBundle\Mock\Application\Context\Command\DeleteListC...
mit
MatiasNAmendola/idioma
tests/autoloader.php
417
<?php class Autoloader { static public function loader($className) { $filename = __DIR__."../../lib/" . str_replace('\\', '/', $className) . ".php"; if (file_exists($filename)) { include($filename); if (class_exists($className)) { return TRUE; ...
mit
isolani-chess/web-client
src/app/chess/shared/index.ts
110
export * from './chess.service'; export * from './chessground-conversion-tables'; export * from './jcf-game';
mit
anjumrizwi/episerver
alloy/EPiServerAlloySite/Controllers/PreviewController.cs
3701
using System.Collections.Generic; using System.Linq; using System.Web.Mvc; using EPiServer.Core; using EPiServer.Framework.DataAnnotations; using EPiServer.Framework.Web; using EPiServerAlloySite.Business; using EPiServerAlloySite.Business.Rendering; using EPiServerAlloySite.Models.Pages; using EPiServerAlloySite.Model...
mit
clyp/Clyp-Android
app/src/main/java/info/gfruit/paperclyp/API/Structure/Playlist.java
804
package info.gfruit.paperclyp.API.Structure; import java.util.List; /** * Generated with: http://www.jsonschema2pojo.org/ * By lite20 */ public class Playlist { private String playlistId; private String featureSubmissionEligibility; private List<Track> audioFiles; private boolean modifiable; ...
mit
itsjamesre/proevo
templates/project/manifest.rb
658
description "Project Evolution's custom Compass Extension" stylesheet 'screen.sass', :media => 'screen, projection' stylesheet 'partials/_base.sass' stylesheet 'print.sass', :media => 'print' stylesheet 'ie.sass', :media => 'screen, projection', :condition => "lt IE 8" image 'grid.png' javascript 'script.js' ht...
mit
marksweiss/sofine
sofine/lib/utils/conf.py
4100
"""Loads global sofine configuration in from a configuration file. The file must be stored in the project root and must be called either `sofine.conf` or `example.sofine.conf`. If `sofine.conf` is found it will be used over `example.sofine.conf`. Current supported configuration keys are: * `plugin_path` - The path ...
mit
yogeshsaroya/new-cdnjs
ajax/libs/aight/1.1.0/aight.min.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:e55a037a1be6a2006a8110195d3c16d1b26bf876caec0de4743fc065096eeb2c size 12828
mit
yu3mars/procon
atcoder/others/code_festival/2015/quala/a/a/Properties/AssemblyInfo.cs
1598
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 // アセンブリに関連付けられている情報を変更するには、 // これらの属性値を変更してください。 [assembly: AssemblyTitle("a")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyComp...
mit