repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
rogeriopvl/pullhub
lib/cli.js
1598
const pullhub = require('../') const getUserRepos = require('./repos') const meta = require('../package.json') module.exports = function (args) { if (args.help) { showUsage() process.exit(0) } else if (args.version) { showVersion() process.exit(0) } else if (args.user) { const labels = args.l...
mit
JasonPuglisi/snow-irc-bot
modules/yo.js
1614
module.exports = { sendYo: function(client, network, channel, command, trigger, nickname, target, args, prefix) { if (config.apis.yo !== undefined) { var yoName = config.apis.yo.name; var yoKey = config.apis.yo.key; } if (yoName !== undefined && yoKey !== undefined) { var targetUser = args[0]; if (...
mit
meowy/komrade
src/main/java/pounces/komrade/api/TelegramApi.java
6851
package pounces.komrade.api; import com.squareup.okhttp.RequestBody; import kotlin.Unit; import pounces.komrade.api.data.*; import retrofit.http.*; import rx.Observable; import java.util.List; public interface TelegramApi { @FormUrlEncoded @POST("getUpdates") Observable<Response<List<Update>>> getUpdates...
mit
lighter-cd/ezui_react_one
src/lib/components/form/Checkbox.js
1321
import React from 'react'; import injectSheet from 'react-jss'; import classNames from 'classnames'; const styles = theme => ({ checkBox: { appearance: 'none', position: 'relative', width: theme.checkBoxSizeOuter, height: theme.checkBoxSizeOuter, border: `${theme.checkBoxBorder} solid ${theme.che...
mit
noscosystems/osotto
application/models/db/ProductImages.php
7649
<?php // Add the namespace here: namespace application\models\db; // Along with the correct "use"'s/ use \Yii; use \CException; use \application\components\ActiveRecord; /** * This is the model class for table "product_images". * * The followings are the available columns in table 'product_images': * @property inte...
mit
barkerest/barkest_core
test/models/barkest_core/database_config_test.rb
735
module BarkestCore class DatabaseConfigTest < ActiveSupport::TestCase def setup @item = BarkestCore::DatabaseConfig.new('my_db', adapter: :sqlite3, database: 'mydb.sqlite', pool: 5, timeout: 5000) end test 'should be valid' do assert @item.valid? end test 'should require ...
mit
paulgrayson/pivotal-reporting-kit
spec/lib/prkit/config_spec.rb
483
require 'spec_helper' require './lib/prkit' describe PRKit::Config do describe '#ensure_configured!' do it 'does not raise an error if api token configured' do expect do PRKit::Config.ensure_configured! end.to raise_exception end it 'raises an error if api token not configured' do...
mit
nico01f/z-pec
ZimbraSelenium/src/java/com/zimbra/qa/selenium/projects/admin/tests/resources/GetResource.java
4017
package com.zimbra.qa.selenium.projects.admin.tests.resources; import java.util.List; import org.testng.annotations.Test; import com.zimbra.qa.selenium.framework.ui.Button; import com.zimbra.qa.selenium.framework.util.HarnessException; import com.zimbra.qa.selenium.framework.util.ZAssert; import com.zimbra.qa.seleni...
mit
abjerner/Skybrud.Social.Slack
src/Skybrud.Social.Slack/Models/Users/SlackPresence.cs
2578
using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Essentials.Time; using Skybrud.Social.Slack.Models.Common; namespace Skybrud.Social.Slack.Models.Users { /// <summary> /// Class representing the presence of a user. /// </summary> public class SlackPresence : SlackRe...
mit
zaiyu-dev/club
test/controllers/site.test.js
1236
/*! * nodeclub - site controller test * Copyright(c) 2012 fengmk2 <fengmk2@gmail.com> * MIT Licensed */ /** * Module dependencies. */ var should = require('should'); var config = require('../../config'); var app = require('../../app'); var request = require('supertest')(app); describe('test/controllers/site.t...
mit
wizzardo/http
src/main/java/com/wizzardo/http/EpollOutputStream.java
1795
package com.wizzardo.http; import com.wizzardo.epoll.ByteBufferProvider; import java.io.IOException; import java.io.OutputStream; /** * @author: wizzardo * Date: 9/3/14 */ public class EpollOutputStream extends OutputStream { private HttpConnection connection; private int offset; private byte[] buffer...
mit
AaronLieberman/ArduinoTinkering
RobotControl/RobotControl/MainWindow.xaml.cs
636
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging;...
mit
brunolauze/openpegasus-providers-old
src/Providers/UNIXProviders/DNSProtocolEndpoint/UNIX_DNSProtocolEndpoint_FREEBSD.hpp
12762
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
mit
sequin/sequin.claimsauthentication
src/Sequin.ClaimsAuthentication.Sample/Startup.cs
2241
namespace Sequin.ClaimsAuthentication.Sample { using System; using System.Collections.Generic; using System.Security.Claims; using Configuration; using global::Owin; using Microsoft.Owin; using Owin; using Owin.Middleware; using Pipeline; using Sequin.Owin; using Sequin.Owin...
mit
MortenHoustonLudvigsen/KarmaTestAdapter
TestProjects/KarmaRequireJasmine/ui/src/common/config.js
1167
var requireCommonConfig = { //requirejs.config({ baseUrl: 'ui/src', waitSeconds: 15, //Default: 7 urlArgs: 'r1', map: { '*': { //'css': '../bower_modules/require-css/css', 'jquery.ui.sortable': 'jquery-ui/sortable' //Specifically added due to knockout-sortable funct...
mit
ablaser/airtemplate
tests/CacheLoaderTest.php
4058
<?php use PHPUnit\Framework\TestCase; use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamDirectory; use Gamez\Psr\Log\TestLoggerTrait; use Symfony\Component\Cache\Adapter\FilesystemAdapter; use AirTemplate\Loader\CacheLoader; if (!defined('n')) define('n', "\n"); if (!defined('br')) define('br', "<br>"); clas...
mit
eturino/eapi
lib/eapi/definition_runners/runner.rb
2601
module Eapi module DefinitionRunners class Runner def self.validate_element_with(klass:, field:, validate_element_with:) klass.send :validates_each, field do |record, attr, value| if value.respond_to?(:each) value.each do |v| validate_element_with.call(record, att...
mit
ikernits/jetty-sample
src/main/java/org/ikernits/sample/TestBean.java
654
package org.ikernits.sample; import org.apache.log4j.Logger; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Required; /** * Created by ikernits on 04/10/15. */ public class TestBean implements InitializingBean { protected String testProp; @Re...
mit
xenophy/NextJS
lib/nx/database/MySQL/insert.js
992
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ /*! * Next JS * Copyright (c)2011 Xenophy.CO.,LTD All rights Reserved. * http://www.xenophy.com */ // {{{ NX.database.MySQL.insert module.exports = function(table, o, fn) { var me = this, i, sql = ''; sql += 'INSERT INTO ' ...
mit
alphabetcoinfund/alphabetcoinfund
src/qt/signverifymessagedialog.cpp
8734
#include "signverifymessagedialog.h" #include "ui_signverifymessagedialog.h" #include "addressbookpage.h" #include "base58.h" #include "guiutil.h" #include "init.h" #include "main.h" #include "optionsmodel.h" #include "walletmodel.h" #include "wallet.h" #include <string> #include <vector> #include <QClipboard> Sign...
mit
maolion/Cox.js
src/modules/Net/Cookies.js
2687
/** * ${project} < ${FILE} > * * @DATE ${DATE} * @VERSION ${version} * @AUTHOR ${author} * * ---------------------------------------------------------------------------- * * ---------------------------------------------------------------------------- * 实现参考相关资料 * http://www.cnblogs.com/Darren_code/archi...
mit
ToJans/dypsok
Dypsok.Specs/CatalogSpecs.cs
3318
using System; using System.Text; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Shouldly; namespace Dypsok.Specs { [TestClass] public class CatalogSpecs { [TestInitialize] public void SetupProducts() { ...
mit
planetpowershell/planetpowershell
src/Firehose.Web/Authors/ChrisGardner.cs
1104
using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.Syndication; using System.Web; using Firehose.Web.Infrastructure; namespace Firehose.Web.Authors { public class ChrisGardner : IAmAMicrosoftMVP { public string FirstName => "Chris"; public string LastN...
mit
rgeraads/phpDocumentor2
src/phpDocumentor/Transformer/Transformer.php
9470
<?php declare(strict_types=1); /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link http://phpdoc.org */ namespace phpDocumentor\Transformer; use InvalidArgumentException; use League\...
mit
Timeswitch/rma-ss15
server/app/Database.js
610
/** * Created by michael on 26/07/15. */ var config = require('./config.js').database; var Knex = require('knex'); var Bookshelf = require('bookshelf'); var connection = Knex({ client: config.driver, connection: { host: config.server + ':' + config.port, user: config.user, password: ...
mit
barryhammen/hapi-swagger
bin/mock-routes.js
4705
var Joi = require('joi'); var handler = function(request, reply) { reply('ok'); }; module.exports = [{ method: 'GET', path: '/test', config: { handler: handler, validate: { query: { param1: Joi.string().required() } }, tags: ['admin', 'api'], description: 'Test GET', ...
mit
BenVercammen/scorekeeper
IndividualService/test_domain.py
3596
# -*- coding: utf-8 -*- from unittest.case import TestCase from uuid import uuid4 from IndividualService.domain import Individual class TestIndividualDomain(TestCase): """ """ def testIndividualConstructor(self): """ Test the Individual constructor """ individual = Individual(uuid4(), 'Test'...
mit
lextel/evolution
fuel/app/classes/helper/coins.php
1396
<?php namespace Helper; class Coins { /** * 显示金钱 * * @param $points 点数 * @param $onlyGold 只显示元宝 * */ public static function showCoins($points, $onlyGold = true) { \Config::load('common'); $point = \Config::get('point'); $gold = floor($points/$point); ...
mit
KingYSoft/foretch
angular-admin/src/admin/admin.component.ts
1232
import { Component, ViewContainerRef, Injector, OnInit, AfterViewInit } from '@angular/core'; import { AppConsts } from 'shared/AppConsts'; import { AppComponentBase } from 'shared/app-component-base'; import { SignalRHelper } from 'shared/helpers/SignalRHelper'; @Component({ templateUrl: './admin.component.html' ...
mit
goliatone/jii
src/model.js
32877
(function(namespace, exportName, moduleName, extendsModule){ var Module = namespace[moduleName]; ///////////////////////////////////////////////////////// //// HELPER METHODS. ///////////////////////////////////////////////////////// //Shim for Object.create var _createObject = Object.create || function(o...
mit
tbepler/LRPaGe
src/bepler/lrpage/ebnf/parser/nodes/NameKeywordToken.java
954
package bepler.lrpage.ebnf.parser.nodes; import bepler.lrpage.ebnf.parser.Symbols; import bepler.lrpage.ebnf.parser.Visitor; import bepler.lrpage.ebnf.parser.framework.Symbol; import bepler.lrpage.ebnf.parser.framework.Token; /** * This class was generated by the LRPaGe parser generator v1.0 using the com.sun.code...
mit
squix78/extraleague
src/main/java/ch/squix/extraleague/model/ranking/tasks/EmperorTask.java
1248
package ch.squix.extraleague.model.ranking.tasks; import static com.googlecode.objectify.ObjectifyService.ofy; import java.util.Map; import org.joda.time.LocalDate; import ch.squix.extraleague.model.match.Matches; import ch.squix.extraleague.model.ranking.PlayerRanking; import ch.squix.extraleague.model.ranking.Ran...
mit
ashutoshrishi/slate
packages/slate-html-serializer/test/deserialize/no-next.js
498
/** @jsx h */ import h from '../helpers/h' export const config = { rules: [ { deserialize(el, next) { switch (el.tagName.toLowerCase()) { case 'p': { return { object: 'block', type: 'paragraph', nodes: next(), } ...
mit
abedurftig/XML2Code
Java-Shared/src/main/java/com/xml2code/java/shared/json/DateJsonSerializer.java
689
package com.xml2code.java.shared.json; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Date; import org.codehaus.jackson.JsonGenerator; import org.codehaus.jackson.JsonProcessingException; import org.codehaus.jackson.map.JsonSerializer; import org.codehaus.jackson.map.SerializerProvide...
mit
carakas/fork-cms-module-generator
src/PhpGenerator/WidgetName/WidgetNameDataTransferObject.php
709
<?php namespace ModuleGenerator\PhpGenerator\WidgetName; final class WidgetNameDataTransferObject { /** @var string */ public $name; /** @var WidgetName|null */ private $widgetNameClass; public function __construct(WidgetName $widgetName = null) { $this->widgetNameClass = $widgetName...
mit
kenshinthebattosai/LinqAn.Google
src/LinqAn.Google/Metrics/AvgEventValue.cs
404
using System.ComponentModel; namespace LinqAn.Google.Metrics { /// <summary> /// The average value of an event. /// </summary> [Description("The average value of an event.")] public class AvgEventValue: Metric<float> { /// <summary> /// Instantiates a <seealso cref="AvgEventValue" />. /// </summary> pu...
mit
MachMX/embbed-example
app.js
112
var input = document.getElementById("link"); var parseButton = document.getElementById("parseButton") function
mit
ozlerhakan/poiji
src/test/java/com/poiji/deserialize/model/TestIllegalAccessInfo.java
234
package com.poiji.deserialize.model; import com.poiji.annotation.ExcelCell; import java.math.BigDecimal; public class TestIllegalAccessInfo { @ExcelCell(1) private final static BigDecimal amount = BigDecimal.valueOf(0); }
mit
stremann/t7h-ci-kit
src/back/bootstrap/preMiddleware.spec.js
798
'use strict'; const proxyquire = require('proxyquire'); describe('bootstrap pre middleware', () => { let cors, bodyParser, app, result; beforeEach(() => { app = { use: env.spy(() => app) }; cors = env.stub().returns({}); bodyParser = { ...
mit
os-alan/cake
src/Cake.Core/IO/ProcessWrapper.cs
1395
using System; using System.Collections.Generic; using System.Diagnostics; using Cake.Core.Diagnostics; namespace Cake.Core.IO { internal sealed class ProcessWrapper : IProcess { private readonly Process _process; private readonly ICakeLog _log; private readonly Func<string, string> _fi...
mit
keltanas/yandex-metrika-bundle
src/keltanas/Bundle/YandexMetrikaBundle/keltanasYandexMetrikaBundle.php
157
<?php namespace keltanas\Bundle\YandexMetrikaBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class keltanasYandexMetrikaBundle extends Bundle { }
mit
astrieanna/phabricator-ruby
test/unit/_lib.rb
146
require File.expand_path('../../_lib', __FILE__) module PhabricatorTests::Unit class Test < PhabricatorTests::Test include Stubs end end
mit
BrendanLeber/adventofcode
2017/06-memory_reallocation/solver.cpp
2358
#include <algorithm> #include <iostream> #include <iterator> #include <limits> #include <vector> bool is_repeat_state(std::vector<int> const& state, std::vector<int> const& banks); void redistribute_blocks(std::vector<int>& banks); // NOLINT int solver_1(std::vector<int> banks); int solver_2(std::vector<int> banks); ...
mit
evanscloud/volunteermatch
lib/volunteermatch/api/metadata.rb
175
module Volunteermatch module API module Metadata def metadata(version = nil) call(:getMetaData, {:version => version}.to_json) end end end end
mit
dubreuia/intellij-plugin-save-actions
src/test/java/com/dubreuia/processors/BuildProcessorTest.java
2230
/* * The MIT License (MIT) * * Copyright (c) 2020 Alexandre DuBreuil * * 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 * t...
mit
dude719/JetBrains-NASM-Language
gen/com/nasmlanguage/psi/NASMBitwiseORExpr.java
290
// This is a generated file. Not intended for manual editing. package com.nasmlanguage.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface NASMBitwiseORExpr extends NASMExpr { @NotNull List<NASMExpr> getExprList(); }
mit
baldursson/tabbouleh
test/dummy/config/application.rb
930
require File.expand_path('../boot', __FILE__) require 'rails/all' require 'jquery-rails' require 'parsley-rails' Bundler.require(*Rails.groups) require "tabbouleh" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Applicatio...
mit
hxf829/duilibtest
QQDemo/ColorPicker.cpp
2889
#include "stdafx.h" #include <windows.h> #if !defined(UNDER_CE) #include <shellapi.h> #endif #include "win_impl_base.hpp" #include "ColorPicker.hpp" #include "chat_dialog.hpp" static DWORD Colors[5][8] = { { 0xFF000000,0xFFA52A00,0xFF004040,0xFF005500,0xFF00005E,0xFF00008B,0xFF4B0082,0xFF282828 }, ...
mit
geometryzen/davinci-units
src/davinci-units/math/isScalarG3.ts
203
import GeometricE3 from '../math/GeometricE3'; export default function(m: GeometricE3): boolean { return m.x === 0 && m.y === 0 && m.z === 0 && m.xy === 0 && m.yz === 0 && m.zx === 0 && m.b === 0 }
mit
lmazuel/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuits_routes_table_list_result_py3.py
1286
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
mit
Aaylor/Goinfr-O-Mania
src/graphics/VolumeController.java
890
package graphics; import com.sun.javaws.exceptions.InvalidArgumentException; import engine.Settings; import log.IGLog; /** * Created by PixelMan on 28/05/15. */ @SuppressWarnings("DefaultFileTemplate") public class VolumeController extends AbstractVolumeController { public VolumeController(Settings currentSett...
mit
Knape/triggerhappy
lib/rampage.js
189
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // import { load, spray } from './spray'; var rampage = function rampage() {}; exports.default = rampage;
mit
slyxster/sabc
fuel/app/modules/office/views/employeesearch.php
378
<form action="/office" method="post"> <input type="hidden" name="action" value="empsearch" /> <input type="hidden" value="<?php echo $_SERVER['REQUEST_URI']; ?>" name="redirect" /> <input type="text" placeholder="Search by Employee ID" maxlength=9 value="" name="employee_id" /> &nbsp; <input type="submit" val...
mit
DTChuck/HSImage
src/pybind11_opencv_numpy/example/__init__.py
23
from ._example import *
mit
kossov/Telerik-Academy
C#/OOP/ExamPrep/OOP - 25 March 2013 - Evening/2. AcademyEcosystem_Скелет на задачата/AcademyEcosystem/AcademyEcosystem/ExtendedEngine.cs
1941
using AcademyEcosystem.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AcademyEcosystem { public class ExtendedEngine : Engine { protected override void ExecuteBirthCommand(string[] commandWords) { ...
mit
MarcinGoryca/olive
Files/fread.php
767
<?php //Using fopen() with fread() $filename = "../data/example.txt"; $file = fopen($filename, "rb"); $filedata = fread($file, filesize($filename)); fclose($file); $filearray = explode("\n", $filedata); while(list($line, $data) = each($filearray)) { $data = trim($data); echo $data . "<br/>"; } //echo $filed...
mit
pascal-vincent/websocket-notif-lab-android
app/src/main/java/fr/skalit/websocketnotificationpoc/model/TopicMessage.java
998
package fr.skalit.websocketnotificationpoc.model; /** * Created by pascalvincent on 21/05/2016. */ class TopicMessage { public String getContent() { return content; } public void setContent(String content) { this.content = content; } public String getDate() { return date...
mit
DoublePrecisionSoftware/jsontl
test/negative/if.js
750
var data = { "Customer": { "Id": 2, "Name": "Joe", "Type": "VIP" } }; var transform = { "jsontl": { "version": "0.1", "transform": { "Customer": [ { "replace": { "Name": { "with": "Jerry", "if": { "Id": 1, ...
mit
boh1996/TwitterAnalytics
v2/application/views/templates/new_string_view.php
652
<div class="form-group string-object" style="min-width:600px;" data-category-id="<?= $cat_id; ?>"> <label class="col-sm-2 control-label"><?= $this->lang->line("admin_add_string"); ?></label> <div class="col-sm-10"> <div class="input-group"> <input type="text" data-category-id="<?= $cat_id; ?>" class="form-contro...
mit
crystian/WEBAPP-BUILDER
loader/modules/settings.js
1479
/** * Created by Crystian on 3/2/14. */ loader.settings = (function(){ 'use strict'; var VERSION = 'v'; //jshint maxcomplexity:9 function init(){ var version = get('version'); if(!version){ //FIRST TIME! console.info('First time to here!'); //set defaults values set(VERSIO...
mit
724789975/FxLib
Client_Unity/Test/Assets/Scripts/UI/GameEffectCanvas.cs
294
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameEffectCanvas : SingletonObject<GameEffectCanvas> { // Use this for initialization void Start () { CreateInstance(this); } // Update is called once per frame void Update () { } }
mit
redbaty/ETS2.Brake
Overlay/Hook/Common/IOverlayElement.cs
171
using System; namespace Overlay.Hook.Common { public interface IOverlayElement : ICloneable { bool Hidden { get; set; } void Frame(); } }
mit
tslab-sit/asciiart-extractor
src/main/java/jp/ac/shibaura_it/se/tslab/aaextractor/predicate/rls/RLSASCIIArtExtractor.java
2736
package jp.ac.shibaura_it.se.tslab.aaextractor.predicate.rls; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; import java.util.List; import jp.ac.shibaura_it.se.tslab.aaextractor.Window; import jp.ac.shibaura_it.se.tslab.aaextractor.predicate.PredicateBasedASCIIArtExtractor; impo...
mit
l8on/affiance
test/unit/lib/hook/pre-commit/Spectral.test.js
2386
'use strict'; const testHelper = require('../../../../test_helper'); const expect = testHelper.expect; const sinon = testHelper.sinon; const Spectral = testHelper.requireSourceModule(module); const Config = testHelper.requireSourceModule(module, 'lib/config'); const HookContextPreCommit = testHelper.requireSourceModule...
mit
jaakon/PHP-DI
tests/UnitTest/Definition/Source/ReflectionBasedAutowiringTest.php
1894
<?php declare(strict_types=1); namespace DI\Test\UnitTest\Definition\Source; use DI\Definition\EntryReference; use DI\Definition\ObjectDefinition; use DI\Definition\ObjectDefinition\MethodInjection; use DI\Definition\Source\ReflectionBasedAutowiring; use DI\Test\UnitTest\Definition\Source\Fixtures\AutowiringFixture;...
mit
isxGames/Lavish.UI
Lavish.UI/lguitabcontrol.cs
1122
/* * Lavish.UI: A .NET wrapper for LavishSofts LavishGUI objects * Copyright (c) 2007 isxGames & CyberTech (cybertech@gmail.com) * * Repository located at https://github.com/isxGames/Lavish.UI */ using System; using InnerSpaceAPI; using LavishScriptAPI; namespace Lavish.UI { public class lguitabcontrol : lguiel...
mit
nifty-site-manager/nsm
ProjectInfo.cpp
134871
#include "ProjectInfo.h" #if defined __APPLE__ || defined __linux__ const std::string promptStr = "⥤ "; #else const std::string promptStr = "=> "; #endif int create_default_html_template(const Path& templatePath) { templatePath.ensureDirExists(); std::ofstream ofs(templatePath.str()); ofs << "<html>" << std::en...
mit
tpitale/mail_room
lib/mail_room/arbitration.rb
255
module MailRoom module Arbitration def [](name) require_relative("./arbitration/#{name}") case name when "redis" Arbitration::Redis else Arbitration::Noop end end module_function :[] end end
mit
silverfield/pythonsessions
s03_input_and_while/input_and_while.py
1340
# print positive integers up to 47 (excluding) x = 1 while x < 47: print(x) x = x + 1 print("------------------------------------------") # print all odd numbers up to 50 x = 1 while x < 50: if x % 2 == 1: print(x) x += 1 # concise way of incrementing x print("-------------------------------...
mit
AusDTO/gov-au-beta
app/controllers/editorial/sections_controller.rb
834
module Editorial class SectionsController < EditorialController before_action :find_section before_action ->() { authorize! :read, @section }, unless: :skip_view_section_auth? decorates_assigned :section decorates_assigned :users, with: UserDecorator layout 'editorial_section' def show ...
mit
lawrence0819/nodedm
test/DockerMachineTest.ts
6767
import {dm, MachineStatus} from '../index' import * as chai from 'chai'; import {expect} from 'chai'; import chaiAsPromised = require('chai-as-promised'); chai.use(chaiAsPromised); console.log ("!!! Warning !!!") console.log ("!!! This test will remove all existing docker machine and cannot be revert !!!") describe(...
mit
maginemu/webpay-node
lib/error.js
3771
'use strict'; var WebPayError = function WebPayError(message, status, errorResponse) { Error.apply(this, [message]); Error.captureStackTrace(this, this.constructor); this.name = this.constructor.name; this.message = message; this.status = status; this.errorResponse = errorResponse; }; WebPayError.prototyp...
mit
maccman/stylo
public/assets/app/models/properties/color.module.js
5295
(function() { if (!this.require) { var modules = {}, cache = {}; var require = function(name, root) { var path = expand(root, name), indexPath = expand(path, './index'), module, fn; module = cache[path] || cache[indexPath]; if (module) { return module; } else if (fn = module...
mit
dotcool/mvideo
src/com/ejia/abplayer/view/FileUtils.java
11306
package com.ejia.abplayer.view; import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import android.os.Environment; import android.os.StatFs; import android.util.Log; import com.ejia.abplayer.util.StringUtils; public clas...
mit
catedrasaes-umu/NoSQLDataEngineering
projects/es.um.nosql.s13e.json2dbschema/src/es/um/nosql/s13e/json2dbschema/util/abstractjson/impl/jackson/JacksonNumber.java
351
/** * */ package es.um.nosql.s13e.json2dbschema.util.abstractjson.impl.jackson; import org.codehaus.jackson.JsonNode; import es.um.nosql.s13e.json2dbschema.util.abstractjson.IAJNumber; /** * @author dsevilla * */ public class JacksonNumber extends JacksonElement implements IAJNumber { public JacksonNumber(Json...
mit
dk307/HSPI_RemoteHelper
IDeviceControlManager.cs
741
using Hspi.DeviceData; using System; using System.Threading; using System.Threading.Tasks; namespace Hspi.Connector { internal interface IDeviceCommandHandler { string Name { get; } TimeSpan DefaultCommandDelay { get; } TimeSpan PowerOnDelay { get; } DeviceType DeviceType { get...
mit
czim/file-handling
src/Variant/Strategies/VideoScreenshotStrategy.php
2515
<?php namespace Czim\FileHandling\Variant\Strategies; use FFMpeg\FFMpeg; use FFMpeg\Coordinate\TimeCode; use FFMpeg\FFProbe; class VideoScreenshotStrategy extends AbstractVideoStrategy { /** * Performs manipulation of the file. * * @return bool|null */ protected function perform(): ?bool ...
mit
forscience/cudgl
src/demos/fireball.cc
1762
#include <core/demo.hh> #include <gl/draw_geometry.hh> #include <gl/embedded_shaders.hh> #include <gl/program.hh> #include <shapes/screen_quad.hh> using namespace cudgl; auto initialize = [](gl &the_gl, args &a, program &p, draw_geometry &g) { return ...
mit
enBask/Asgard
Samples/Mono game/Shared/MapData.cs
5951
using Asgard.Core.Network.Data; using MonoGame.Extended.Maps.Tiled; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Asgard.Core.System; using Artemis; using System.Reflection; using Farseer.Framework; using Asgard.Core.Physics; using FarseerPhys...
mit
mwaylabs/generator-m-ionic
generators/service/templates/_service.spec.js
1217
'use strict'; describe('module: <%= moduleName %>, service: <%= serviceName %>', function () { // load the service's module beforeEach(module('<%= moduleName %>')); // load all the templates to prevent unexpected $http requests from ui-router beforeEach(module('ngHtml2Js')); <% if (options.template !== 'debu...
mit
DXNL/IoTArchitecture
sources/VetudaPoC/CollectorWorker/ServiceEventSource.cs
8655
using System; using System.Collections.Generic; using System.Diagnostics.Tracing; using System.Fabric; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.ServiceFabric.Services.Runtime; namespace CollectorWorker { [EventSource(Name = "MyCompany-VentudaPoC-CollectorWorker")] in...
mit
joje6/three-cats-alt
lib/api/users.js
1764
var data = [ { email: 'user@threecats.io', name: 'Test User', password: '1111' } ]; function Users() {}; Users.prototype = { list: function(done) { done(null, data.slice()); return this; }, find: function(options, done) { if( !options ) return done(new Error('illegal arguments')); if( !options...
mit
DevManiaCK/SharpBot
Core/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("Co...
mit
AmrARaouf/algorithm-detection
graph-source-code/508-D/9673904.cpp
2649
//Language: GNU C++ #include <bits/stdc++.h> #define MAXN 200000 #define BASE 62 using namespace std; int n; int acnt; int ANS[MAXN+10]; void init() { } inline int c2i(char c) { if(islower(c)) return c - 'a'; else if(isupper(c)) return c - 'A' + 26; else return c - '0' + 52; } inline...
mit
dawncold/home-monitor
monitor.py
1687
#! /bin/env python # coding: utf8 import subprocess import sys import tempfile import time from datetime import datetime import RPi.GPIO as GPIO import local_ftp CAMERA_PROGRAM = 'raspistill' GPIO_SOCKET_NUMBER = 26 def get_image_bytes(): return subprocess.check_output([CAMERA_PROGRAM, '-o', '-']) def install...
mit
sea-watch/sea-watch-app
admin/resources/views/auth/password.blade.php
1488
@extends('layouts.app') @section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Reset Password</div> <div class="panel-body"> ...
mit
s3k/snapstats
app/assets/javascripts/snapstats/application.js
796
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
mit
el-davo/platmatic
app/instance/market/market.action-types.ts
1023
export const FETCH_MARKET_ASSETS = 'FETCH_MARKET_ASSETS'; export const ADD_MARKET_ASSETS = 'ADD_MARKET_ASSETS'; export const CLEAR_MARKET_ASSETS = 'CLEAR_MARKET_ASSETS'; // Purchase export const REQUEST_FETCH_PURCHASE_PLANS = 'REQUEST_FETCH_PURCHASE_PLANS'; export const ADD_PURCHASE_PLANS = 'ADD_PURCHASE_PLANS'; expor...
mit
BBGONE/jRIApp
FRAMEWORK/CLIENT/jriapp/jriapp/databindsvc.ts
9721
/** The MIT License (MIT) Copyright(c) 2016 Maxim V.Tsapov */ import { LocaleERRS, Utils, IIndexer, IErrorHandler, IPromise, IVoidPromise, DummyError, BaseObject } from "jriapp_shared"; import { DATA_ATTR } from "./const"; import { IElViewFactory, IElView, IViewType, IApplication, IExports, ILifeTimeScope,...
mit
cmmarslender/shortcode-cleaner
tasks/default.js
85
module.exports = function (grunt) { grunt.registerTask('default', ['js', 'css']); };
mit
mongodb/mongoid
lib/mongoid/cacheable.rb
971
# frozen_string_literal: true module Mongoid # Encapsulates behavior around caching. module Cacheable extend ActiveSupport::Concern included do cattr_accessor :cache_timestamp_format, instance_writer: false self.cache_timestamp_format = :nsec end # Print out the cache key. This will ...
mit
TeskeVirtualSystem/jpak
tools/JPAK Explorer Win/JPAKTool/jpaktool.cs
7506
/********************************************** * _ ____ _ _ __ _ ___ * * | | _ \ / \ | |/ / __ _/ | / _ \ * * _ | | |_) / _ \ | ' / \ \ / / || | | | * *| |_| | __/ ___ \| . \ \ V /| || |_| | * * \___/|_| /_/ \_\_|\_\ \_/ |_(_)___/ * * ...
mit
ssleptsov/ng2-select
components/select/select.d.ts
2116
import { EventEmitter, ElementRef } from '@angular/core'; import { SelectItem } from './select-item'; import { IOptionsBehavior } from './select-interfaces'; export declare class Select { element: ElementRef; allowClear: boolean; placeholder: string; initData: Array<any>; multiple: boolean; item...
mit
wonghoifung/tips
leetcode/easy_reverse_string.cpp
698
#include <string> #include <vector> #include <iostream> #include <map> #include <unordered_map> #include <unordered_set> #include <set> #include <queue> #include <deque> #include <stack> #include <array> #include <memory> #include <sstream> #include <functional> #include <algorithm> #include <bitset> #include <tuple> #...
mit
GustavHager/pig-latinizer
include/TranslatorGUI.hpp
460
#ifndef TRANSLATOR_GUI_HPP #define TRANSLATOR_GUI_HPP #include <SFML/Graphics.hpp> #include <TGUI/TGUI.hpp> #include "Translator.hpp" #include "InformativeAssert.hpp" class TranslatorGUI { public: TranslatorGUI(); void setTranslator(Translator * translator); void run(); private: Translator * acti...
mit
Rodinia/php-UitzendingGemist4DuneHD
uitzendinggemist/lib/lib_ugemist.php
15922
<?php require_once dirname(__FILE__).'/util.php'; // -------------------- Functions ---------------------- # Suppress DOM warnings libxml_use_internal_errors(true); function wgetEpisodesWeekarchief($ug_search_url, $max_pages, $page_offset = 1) { $episodes = array(); // result $it...
mit
abhacid/cAlgoBot
Sources/Robots/News Robot/News Robot/Properties/AssemblyInfo.cs
457
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle("News Robot")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("News Robot")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] [a...
mit
lighthorseinnovation/TableauAPI
TableauAPI/RESTHelpers/TableauServerWebClient.cs
1186
using System; using System.Net; namespace TableauAPI.RESTHelpers { /// <summary> /// Subclass of the WebClient object that allows use to set a larger/custom timout value so that longer downloads succeed /// </summary> internal class TableauServerWebClient : WebClient { public readonly int ...
mit
nvazquez/Turtlebots
pysamples/set_rgb.py
663
# Copyright (c) 2009-11, Walter Bender # This procedure is invoked when the user-definable block on the # "extras" palette is selected and expanded to 3 arguments. # Usage: Import this code into a Python (user-definable) block. # First, expand the Python block to reveal three numerics arguments. # Set these values to...
mit
juusokorhonen/solartools
backend/__init__.py
1143
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from flask import Flask, url_for, abort, flash, redirect, session, request, g, current_app from flask_appconfig import AppConfig, HerokuConfig from flask.ext.cors import CORS from .errorhandler import register_...
mit