code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
import { h } from 'omi'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(h("path", { d: "M5 20v2h5v2l3-3-3-3v2zm9 0h5v2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 16H7V2h10v14zm-5-9c1.1 0 2-.9 1.99-2 0-1.1-.9-2-2-2S10 3.9 10 5s.89 2 2 2z" }), 'Came...
AlloyTeam/Nuclear
components/icon/esm/camera-rear-outlined.js
JavaScript
mit
337
package gpg import "context" type contextKey int const ( ctxKeyAlwaysTrust contextKey = iota ctxKeyUseCache ) // WithAlwaysTrust will return a context with the flag for always trust set. func WithAlwaysTrust(ctx context.Context, at bool) context.Context { return context.WithValue(ctx, ctxKeyAlwaysTrust, at) } /...
gopasspw/gopass
internal/backend/crypto/gpg/context.go
GO
mit
924
using System; using System.Runtime.InteropServices; using EnvDTE; namespace ManuelNaujoks.VSChat { [Guid("173cbcde-e728-442c-82ee-1c29ae3e00af")] public class MyToolWindow : SolutionAwareToolWindowPane { public MyToolWindow() { Caption = Resources.ToolWindowTitle; BitmapResourceID = 301; BitmapIndex =...
halllo/ManuelsChat
VSChat/MyToolWindow.cs
C#
mit
1,689
'use strict'; module.exports = function(config) { config.set({ basePath: '', frameworks: ['jasmine'], files: [ // bower:js 'public/components/jquery/dist/jquery.js', 'public/components/angular/angular.js', 'public/components/bootstrap/dist/js/bootstrap.js', 'public/component...
us10096698/spmemo
karma.conf.js
JavaScript
mit
1,492
'use strict'; /** * controller for angular-ladda * An angular directive wrapper for Ladda buttons. */ angular.module('core').controller('LaddaCtrl', ["$scope", "$timeout", function ($scope, $timeout) { $scope.ldloading = {}; $scope.clickBtn = function (style) { $scope.ldloading[style.replace('-',...
mchammabc/sites
public/modules/core/controllers/laddaCtrl.js
JavaScript
mit
1,099
from distutils.core import setup, Extension setup( name="tentacle_pi.TSL2561", version="1.0", packages = ["tentacle_pi"], ext_modules = [ Extension("tentacle_pi.TSL2561", sources = ["src/tsl2561.c", "src/tsl2561_ext.c"]) ] )
lexruee/tsl2561
setup.py
Python
mit
237
import React, {PureComponent} from "react"; import "./fill-view.css"; export class FillView extends PureComponent { divRef = null; state = { scale: 1.0 }; setDivRef = (ref) => { this.divRef = ref; }; componentDidMount() { const {percentMargin = 6} = this.props; ...
dfbaskin/react-higher-order-components
packages/presentation/src/shared/fill-view.js
JavaScript
mit
1,272
<?php header("Content-type: text/html; charset=utf-8"); if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Matricula extends CI_Controller { public function __construct(){ parent::__construct(); if(!isset($_SESSION['login'])) die("Sesion terminada. <a href='". base_url()....
ccjuantrujillo/cepreadm
application/controllers/ventas/matricula.php
PHP
mit
18,373
#include "Pch.h" #include "EngineCore.h" #include "GetTextDialog.h" #include "KeyStates.h" //----------------------------------------------------------------------------- GetTextDialog* GetTextDialog::self; //================================================================================================= GetTextDial...
lcs2/carpg
project/source/engine/gui/GetTextDialog.cpp
C++
mit
4,677
import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { currentURL, visit, fillIn, click } from '@ember/test-helpers'; import hasEmberVersion from 'ember-test-helpers/has-ember-version'; import Pretender from 'pretender'; import { invalidateSession, authenticateSes...
simplabs/ember-simple-auth
packages/classic-test-app/tests/acceptance/authentication-test.js
JavaScript
mit
4,913
import * as React from 'react'; import {SvgIconProps} from '../../SvgIcon'; export default function SpeakerNotes(props: SvgIconProps): React.ReactElement<SvgIconProps>;
mattiamanzati/typings-material-ui
svg-icons/action/speaker-notes.d.ts
TypeScript
mit
170
require 'ostruct' module AmberbitConfig # Main class that holds whole configuration, acts as open struct, with few tune ups class HashStruct < ::OpenStruct # Initialize with check for conflicts within hash keys def initialize(hash = nil) check_hash_for_conflicts hash if hash super end ...
amberbit/amberbit-config
lib/amberbit-config/hash_struct.rb
Ruby
mit
1,867
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::RecoveryServicesBackup::Mgmt::V2019_05_13 module Models # # Yearly retention schedule. # class YearlyRetentionSchedule ...
Azure/azure-sdk-for-ruby
management/azure_mgmt_recovery_services_backup/lib/2019-05-13/generated/azure_mgmt_recovery_services_backup/models/yearly_retention_schedule.rb
Ruby
mit
4,112
<?php /** * Created by PhpStorm. * User: lenovo * Date: 02/08/2016 * Time: 16.37 */ class News_m extends CI_Model{ function m_get_news($limit=null,$offset=null){ if($limit!==null && $offset !== null){ $this->db->limit($limit,$offset); } if(isset($_GET["id"])) { ...
Calvinn097/servermedan
application/models/MAIN/News_m.php
PHP
mit
1,108
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("Ex...
zdzdz/CSharp-Part-2-Homeworks
06. Strings-And-Text-Processing-HW/ExtractEmails/Properties/AssemblyInfo.cs
C#
mit
1,402
from flask import Flask, jsonify, request, redirect, url_for import subprocess import os import json from cross_domain import * app = Flask(__name__) ALLOWED_EXTENSIONS = set(['mol', 'smi']) try: TARGET = os.environ['TARGET'] except Exception: print 'export TARGET=<path to data>' exit(1) try: AlGDoc...
gkumar7/AlGDock
gui/api/REST.py
Python
mit
6,256
const crypto = require('crypto'); const passwordHashAlgorithm = 'sha1'; module.exports = function(client) { var computeSHA1 = function(str) { return crypto.createHash(passwordHashAlgorithm).update(str).digest('hex'); }; var user = { addUser: function(email, password, callback) { client.incr('global:use...
yoman07/GeoChatServer
db.js
JavaScript
mit
3,170
const { validateLocaleId } = require(".."); describe("validateLocaleId", () => { it("validateLocaleId", () => { validateLocaleId("en").should.eql(true); validateLocaleId(null).should.eql(true); }); });
node-opcua/node-opcua
packages/node-opcua-basic-types/test/test_locale_id.js
JavaScript
mit
227
var Q = require('q'); /* ** @param [object | array] object: is the object that needs to be iterated, can be an Object or an array @param [integer] index: is the index of argument obtained from the object element and to be added to asyncFunc arguments, starting from 1 @param [function] asyncFunc: is the asynchronous...
m-arch/for-async
index.js
JavaScript
mit
1,825
package name.reidmiller.iesoreports.client; import java.io.IOException; import java.net.MalformedURLException; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import ca.ieso.reports.schema.nislsha...
r24mille/IesoPublicReportBindings
src/main/java/name/reidmiller/iesoreports/client/NetInterchangeSchedulingLimitClient.java
Java
mit
6,803
# -*- encoding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2014-2015 Haltu Oy, http://haltu.fi # # 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 witho...
educloudalliance/eca-auth-data
authdata/management/commands/csv_import.py
Python
mit
6,066
package br.ifcibirama.dell_pc.javaisfun; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; public class Obje...
jvbeltra/JavaIsFun
app/src/main/java/br/ifcibirama/dell_pc/javaisfun/Objetos2.java
Java
mit
2,904
package ru.otus.java_2017_04.golovnin.hw11.Cache; public interface CacheEngine<K, V> { void put(K key, V element); V get(K key); int getHitCount(); int getMissCount(); void dispose(); }
vladimir-golovnin/otus-java-2017-04-golovnin
hw11/src/main/java/ru/otus/java_2017_04/golovnin/hw11/Cache/CacheEngine.java
Java
mit
207
# こっちのURLで放送予定の番組情報取得できるけど視聴者数ないので使わない # http://live.nicovideo.jp/rss require File.expand_path('./lib/readers/channel_list_reader') class NicoOfficialReader < ChannelListReader def read_rows @doc.css('#rank .active .detail') end def read_channel_name(row) row.css('p a').text.slice(0, 10) ...
masu-kawa/nyp
lib/readers/nico_official_reader.rb
Ruby
mit
1,554
'use strict'; var kraken = require('kraken-js'), app = require('express')(), options = require('./lib/spec')(app), port = process.env.PORT || 8000; app.use(kraken(options)); app.listen(port, function(err) { console.log('[%s] Listening on http://localhost:%d', app.settings.env, port); });
NaveenAttri/TestProject
index.js
JavaScript
mit
310
<?php return array ( 'id' => 'kddi_sn3q_ver1', 'fallback' => 'kddi_sn3p_ver1', 'capabilities' => array ( 'model_name' => 'S005', 'release_date' => '2010_november', 'max_image_width' => '234', 'resolution_height' => '854', 'resolution_width' => '480', 'max_image_height' => '375', 'fl...
cuckata23/wurfl-data
data/kddi_sn3q_ver1.php
PHP
mit
356
<?php namespace daVerona\Texting\Contracts; interface TextingRequest { public function getSender(); public function getReceiver(); }
daverona/texting
src/Contracts/TextingRequest.php
PHP
mit
148
/* global __phantom_writeFile */ (function(global) { var UNDEFINED, exportObject; if (typeof module !== "undefined" && module.exports) { exportObject = exports; } else { exportObject = global.jasmineReporters = global.jasmineReporters || {}; } function trim(str) { return st...
Zack-Tillotson/open-door-the-game
node_modules/jasmine-reporters/src/junit_reporter.js
JavaScript
mit
13,510
<?php $textImage = imagecreate(200,100); $white = imagecolorallocate($textImage, 255, 255, 255); $black = imagecolorallocate($textImage, 0, 0, 0); $yOffset = 0; for ($i = 1; $i <=5; $i++) { imagestring($textImage, $i, 5, $yOffset, "This is system font $i", $black); $yOffset += imagefontheight($i); } header("Content-t...
inest-us/php
PHP5/Ch16/drawstring.php
PHP
mit
389
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { Injectable } from '@angular/core'; @Injectable() export class Service386Service { constructor() { } }
angular/angular-cli-stress-test
src/app/services/service-386.service.ts
TypeScript
mit
320
/** * Copyright (c) 2015-2018, CJ Hare All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this list of conditions * a...
CjHare/systematic-trading
systematic-trading-backtest-output-elastic/src/main/java/com/systematic/trading/backtest/output/elastic/dao/ElasticDao.java
Java
mit
2,322
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; using System.Collections.Generic; using System.Collections.Immutable; using System.Composition; using System.Linq; namespace FluentAssertions.Analyzers { [Diag...
fluentassertions/fluentassertions.analyzers
src/FluentAssertions.Analyzers/Tips/Strings/StringShouldNotBeNullOrWhiteSpace.cs
C#
mit
2,544
package com.pedanov.departments.dao; /** * Created by Anfel on 16.02.2017. */ public class DepartmentDao { }
anfel4life/departments
src/main/java/com/pedanov/departments/dao/DepartmentDao.java
Java
mit
112
package intersectables; import base.HitRecord; import base.Intersectable; import base.Material; import base.Ray; /** * Any Primitive Geometry is an intersectable and has a certain material assigned to. * Created by simplaY on 06.01.2015. */ public abstract class PrimitiveGeometry implements Intersectable { //...
simplay/aptRenderer
src/main/java/intersectables/PrimitiveGeometry.java
Java
mit
771
var Handlebars = require("handlebars"); export default class Lean { constructor() { this.name = this.constructor.name; this.id = `${this.name}-${Lean.INCREMENTAL_ID++}`; this.children = {}; this.props = {}; this.element = null; this.view = this.name; Lean.registerInstance(this); } render() { retur...
amirmohsen/lean
lib/Lean.js
JavaScript
mit
3,109
# Changed the semantics of writing values to custom attributes to ensure that they require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper')) describe Snowflake::Node do describe "Custom Attributes" do it "indicates whether an attribute name represents a custom attribute" do TestNo...
luma/snowflake
spec/public/node_custom_attributes_spec.rb
Ruby
mit
2,072
using System; using System.Collections.Generic; using System.Net; using System.Net.Sockets; using System.Threading; namespace SocketLibrary { /// <summary> /// SocketµÄ¿Í»§¶Ë /// </summary> public class Client : SocketBase { //ÊÇ·ñÐÄÌø¼ì²â private const bool _isSendHeartbeat = true;...
Harbour9354/Socket.Harbour
SocketLibrary/Client.cs
C#
mit
3,300
<?php /** * This file is part of ClassMocker. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @package JSiefer\ClassMocker */ namespace JSiefer\ClassMocker\Footprint; /** * Class ClassFootprintTest * * @covers \JSiefer\Class...
jsiefer/class-mocker
tests/Footprint/ClassFootprintTest.php
PHP
mit
5,555
/** * File: Command.java<br/> * Author: Peter M. Corcoran, pmcorcor@uab.edu<br/> * Assignment: EE433 Research Project<br/> * Version: 1.0.0 11/27/2015 pmc - initial coding<br/> * Structure Component: Abstract Command Object */ package ee433.behavior.command; public abstract class Command { public abstract v...
corcoranp/ee433
src/ee433/behavior/command/Command.java
Java
mit
337
class BitsInterpreter < ActiveRecord::Base validates_presence_of :name, :length validates_numericality_of :length, :only_integer => true validates_inclusion_of :length, :in => [16, 32, 48, 64, 1024], :message => "valid value [16, 32, 48, 64, 1024]" validates_length_of :name, :maximum => 255 validates_uniquen...
rli9/vims
app/models/bits_interpreter.rb
Ruby
mit
498
// 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 any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
MaSys/natumex
app/assets/javascripts/application.js
JavaScript
mit
1,227
<?php namespace Tests\DependencyInjectorTests; return [ ServiceWithDependency::class, TestService::class, BaseService::class, ExtendedService::class ];
martinbrom/trip-hatch
tests/DependencyInjectorTests/service_list.php
PHP
mit
170
using System.Xml.Serialization; namespace WebApiDavExtension.CalDav { [XmlRoot("href", Namespace = "DAV:")] public class HRef { public HRef() { } public HRef(string reference) { Reference = reference; } [XmlText] public string R...
medocheck/WebApiDavExtension
WebApiDavExtension/CalDav/HRef.cs
C#
mit
353
import asyncio import rocat.message import rocat.actor import rocat.globals class BaseActorRef(object): def tell(self, m, *, sender=None): raise NotImplementedError def ask(self, m, *, timeout=None): raise NotImplementedError def error(self, e): raise NotImplementedError class...
chongkong/rocat
rocat/ref.py
Python
mit
2,370
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2017-2018 Esteban Tovagliari, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any perso...
est77/appleseed
src/appleseed/renderer/modeling/bsdf/plasticbrdf.cpp
C++
mit
21,564
#!/usr/bin/env python3.7 # coding=utf-8 """Jerod Gawne, 2018.06.28 https://github.com/jerodg/hackerrank """ import sys import traceback if __name__ == '__main__': try: n, m = map(int, input().split()) for i in range(1, n, 2): print(str('.|.') * i).center(m, '-') print(str('WELC...
jerodg/hackerrank-python
python/02.Strings/08.DesignerDoorMat/solution1.py
Python
mit
510
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace TheWorld.Services { using System.Diagnostics; public class DebugMailService : IMailService { public void SendMail(string to, string from, string subject, string body) { D...
tonyisaway/aspdotnetcore-efcore-bootstrap-angular-web-app
TheWorld/Services/DebugMailService.cs
C#
mit
414
'use strict'; const { ManyToManyModifyMixin } = require('./ManyToManyModifyMixin'); const SQLITE_BUILTIN_ROW_ID = '_rowid_'; // We need to override this mixin for sqlite because sqlite doesn't support // multi-column where in statements with subqueries. We need to use the // internal _rowid_ column instead. const Man...
Vincit/objection.js
lib/relations/manyToMany/ManyToManySqliteModifyMixin.js
JavaScript
mit
1,361
@extends('layouts.default') @section('content') @include('game.partials.header') <!-- game menu --> <div class="row"> <div class="col-sm-5 movie-production"> <p>Current loan: {{ $currentLoan }} € (max. 2000000 €)</p> {{ Form::open(['route' => 'takeLoan_path']) }} <div class="form-group"> {{ Form...
teruk/movbizz
app/views/loan/take.blade.php
PHP
mit
783
class AddIsCommentToAnswers < ActiveRecord::Migration[4.2] def change add_column :answers, :is_comment, :boolean, default: false end end
wested/surveyor_gui
db/migrate/20140531012006_add_is_comment_to_answers.rb
Ruby
mit
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-s...
shahin1986/fertility_dev
application/views/header2.php
PHP
mit
7,983
'use strict'; var Sequelize = require('sequelize'); var sq_config = require('../sequelize-config-mysql'); sq_config.database = 's06'; sq_config.options.sync.match = /s06/; var sq = new Sequelize(sq_config.database, sq_config.username, sq_config.password, sq_config.options); var models = { entry: sq.define('entry',...
cfogelberg/sequelize-playground
tests/06-mysql-demo/01-populate-db.js
JavaScript
mit
2,940
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ namespace Nette\Templating; use Nette; use Latte; use Nette\Utils\Strings; /** * @deprecated */ class Helpers extends Latte\Runtime\Filters { private static $helpers = array( ...
JanTvrdik/NetteComponentsExample
vendor/nette/deprecated/src/Templating/Helpers.php
PHP
mit
1,793
<?php require_once('includes/config.php'); ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> ...
MarcTowler/blog
archives.php
PHP
mit
6,940
<?php namespace AwsUpload\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Filesystem; abstract class BaseTestCase extends TestCase { protected $main_external; protected $main_aws_home; /** * The directory that contain the AWSUPLOAD_HOME. * * Foreach test we want ...
borracciaBlu/aws-upload
tests/AwsUpload/BaseTestCase.php
PHP
mit
2,048
/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #include "../StroikaPreComp.h" #include "TimeOutException.h" using namespace Stroika::Foundation; using namespace Stroika::Foundation::Execution; /* ******************************************************************************** ******...
SophistSolutions/Stroika
Library/Sources/Stroika/Foundation/Execution/TimeOutException.cpp
C++
mit
1,274
import { Component } from '@angular/core'; @Component({ templateUrl: './login.html' }) export class Login { }
aikin/ghsm
app/src/pages/login/login.ts
TypeScript
mit
117
class AppointmentCanceledNotification attr_accessor :appointment def initialize(appointment) @appointment = appointment end def message { message: 'Seu horário foi cancelado :/', data: { appointment_id: appointment.id, type: 'appointment_canceled' } } end def...
BarberHour/barber-hour-api
app/notifications/appointment_canceled_notification.rb
Ruby
mit
385
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("uW...
uWebshop/uWebshop-Releases
Core/uWebshop.DataAccess/Properties/AssemblyInfo.cs
C#
mit
1,269
Liquid::Template.register_filter(YetAnotherTagCloud)
vaudoc/jk
vendor/plugins/yet_another_tag_cloud/init.rb
Ruby
mit
53
var searchData= [ ['bullet_2ecpp',['bullet.cpp',['../bullet_8cpp.html',1,'']]], ['bullet_2eh',['bullet.h',['../bullet_8h.html',1,'']]] ];
SineJunky/ascii-game
ASCII-Game/docs/html/search/files_62.js
JavaScript
mit
142
import React, { Component } from "react"; import { browserHistory, Link } from "react-router"; import update from "react-addons-update"; class AuthoredPost extends Component { constructor(props) { super(props); this.state = { isVisible: { display: "block" }, post: {} }; } ...
jeremypross/lcjr-frontend
src/components/Dashboard/AuthoredPost.js
JavaScript
mit
1,691
<?php namespace Sokil\State; class Transition { private $name; /** * @var string */ private $initialStateName; /** * @var string */ private $resultingStateName; /** * @var callable which checks if transition acceptable */ private $acceptConditionCallable; ...
sokil/php-state
src/Transition.php
PHP
mit
1,636
using System.Collections; using System.Collections.Generic; using UnityEngine; // タックル それは 自機と同じ当たり判定を持った自爆攻撃 public class Tackle : BulletBase { [SerializeField] GameObject hitEffectPrefab; void Start() { OnStart(); } void Update() { if (shooter == null) { Destroy(this.gameObject); return; } ...
enpel/ggj2017-deliciousset
UnityProject/Assets/Scripts/Battle/Tackle.cs
C#
mit
1,051
dependsOn("dependencyCircular2.js");
SoloVid/grunt-ordered-concat
test/fixtures/dependencyCircular1.js
JavaScript
mit
37
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var aurelia_pal_1 = require("aurelia-pal"); function configure(config, spinnerConfig) { config.globalResources(aurelia_pal_1.PLATFORM.moduleName('./spinner')); config.container.registerInstance('spinner-config', spinnerConfig); } expor...
ne0guille/aurelia-spinner
dist/commonjs/index.js
JavaScript
mit
452
import { FETCH_POSTS_REQUEST_VIDEO, FETCH_POSTS_SUCCESS_VIDEO, FETCH_POSTS_FAILURE_VIDEO, } from '../actions/VideoAction'; const initialState = { videoAssets: [], isFetching: false, failure: false, } const fetchVideoAssets = (state = initialState, action) => { switch (action.type) { case FETCH_POSTS_R...
sikamedia/idol
src/reducers/VideoReducer.js
JavaScript
mit
649
import math d = int(input()) for _ in range(d): t, a, b, c = [int(x) for x in input().split()] l = [a, b, c] l.sort() if l[0] + l[1] < l[2]: l[2] = l[0] + l[1] print(min(t, math.floor((l[0]+l[1]+l[2])/2)))
madeinqc/IEEEXtreme9.0
06-tacostand-moderate/main.py
Python
mit
238
const React = require('react'); export default ({onQuantityChange, productId}) => ( <div className="product__element"> <img /> <input className="quantity" onChange={(e) => { e.preventDefault(); const inputValue = e.target.value; onQuantityChange({ id: productId, ...
unam3/oshop_i
src/components/Quantity/Quantity.js
JavaScript
mit
545
package com.devotedmc.ExilePearl.util; import java.util.ArrayList; /** * String List class with an override for seeing if * it contains a string value, ignoring case * @author Gordon * */ @SuppressWarnings("serial") public class StringListIgnoresCase extends ArrayList<String> { @Override public boolean con...
DevotedMC/ExilePearl
src/main/java/com/devotedmc/ExilePearl/util/StringListIgnoresCase.java
Java
mit
506
// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
01alchemist/x-ray-kernel
src/embree/kernels/common/scene.cpp
C++
mit
28,173
<?php namespace Event\GeneralBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfo...
oachkatzlschwoaf/EVENTS
src/Event/GeneralBundle/DependencyInjection/Configuration.php
PHP
mit
881
/* dont use imports, use require, because errors are coming when we are dynamically using services in the base model*/ let uiTypes = require('../../utils/ui-types'); // let ObjectID = require('mongodb').ObjectID; // const model = require('../../models/trips'); -- wont work as this file is required on model creation con...
peakhigh/tapi
server/services/trips/getTripStats.js
JavaScript
mit
2,036
module Popmovies module Models class TvShow attr_accessor :title, :url def initialize(title, url) @title = title @url = url end end end end
gntics/popmovies
lib/popmovies/models/tv_show.rb
Ruby
mit
189
import { processErrorSymbol } from "./symbols"; import { flatten } from "./utils/general"; import { buildErrorMaps, getValidatorInput } from "./utils/process"; import skurt from "./utils/skurt"; import * as types from "../types"; export default function asyncProcess<S, A extends types.AnyAction>({ state, acti...
contrarian/redux-tsa
src/internal/asyncProcess.ts
TypeScript
mit
3,588
#!/usr/bin/env python #file cogent.parse.mothur.py """Parses Mothur otu list""" from record_finder import is_empty __author__ = "Kyle Bittinger" __copyright__ = "Copyright 2007-2012, The Cogent Project" __credits__ = ["Kyle Bittinger"] __license__ = "GPL" __version__ = "1.5.3" __maintainer__ = "Kyle Bittinger" __emai...
sauloal/cnidaria
scripts/venv/lib/python2.7/site-packages/cogent/parse/mothur.py
Python
mit
1,558
import isLocationAction from '../src/pure-utils/isLocationAction' import isServer from '../src/pure-utils/isServer' import objectValues from '../src/pure-utils/objectValues' import nestAction from '../src/pure-utils/nestAction' import pathToAction from '../src/pure-utils/pathToAction' import actionToPath from '../src/p...
celebvidy/pure-redux-router
__tests__/pure-utils.js
JavaScript
mit
7,737
using System.Collections.Concurrent; using OmniSharp.Extensions.LanguageServer.Protocol; using OmniSharp.Extensions.LanguageServer.Protocol.Models; namespace OmniSharp.LanguageServerProtocol.Handlers { public class DocumentVersions { private readonly ConcurrentDictionary<DocumentUri, int> _documentVer...
OmniSharp/omnisharp-roslyn
src/OmniSharp.LanguageServerProtocol/Handlers/DocumentVersions.cs
C#
mit
1,354
#include <iostream> #include <seqan/graph_types.h> #include <seqan/graph_algorithms.h> #include <seqan/basic/basic_math.h> using namespace seqan; using namespace std; int main () { typedef unsigned int TCargo; typedef unsigned int TSpec; typedef Graph<Directed<TCargo, TSpec> > TGraph; typedef VertexDes...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/6ndbc4zuiueuaiyv/2013-04-12T10-53-47.940+0200/sandbox/my_sandbox/apps/graphs_a2/graphs_a2.cpp
C++
mit
871
package instructions import "github.com/zxh0/jvm.go/jvmgo/jvm/rtda" // Convert int to byte type i2b struct{ NoOperandsInstruction } func (self *i2b) Execute(frame *rtda.Frame) { stack := frame.OperandStack() i := stack.PopInt() b := int32(int8(i)) stack.PushInt(b) } // Convert int to char type i2c struct{ NoOpe...
rednaxelafx/jvm.go
jvmgo/jvm/instructions/i2x.go
GO
mit
1,298
var gulp = require('gulp'); var jade = require('gulp-jade'); var copy = require('gulp-copy'); var sass = require('gulp-sass'); var watch = require('gulp-watch'); //////////WATCH//////////////////////////////////// gulp.task('watch', function () { watch('./app/**/*', function() { gulp.start('build'); }); }); /...
erinpagemd/full-contact
gulpfile.js
JavaScript
mit
1,049
#!/usr/bin/env ruby require 'qiniu' require 'qiniu/utils' # 构建鉴权对象 Qiniu.establish_connection! access_key: 'Access_Key', secret_key: 'Secret_Key' # 要转码的文件所在的空间和文件名。 bucket = 'Bucket_Name' key = '1.mp4' # 转码所使用的队列名称。 pipeline = 'abc' # 需要添加水印的图片UrlSafeBase64,可以参考http://developer.qiniu.co...
qiniu/ruby-sdk
examples/pfop_watermark.rb
Ruby
mit
1,241
<?php // conectar $m = new MongoClient( "mongodb://root:root@ds019482.mlab.com:19482/pokemon"); // seleccionar una base de datos $db = $m->pokemon; // seleccionar una colección (equivalente a una tabla en una base de datos relacional) $colección = $db->Pokedex; $numero = (int) $_GET['id']; $nombre = $_POST['nombre']; ...
JavierMaldonadoR/Pokedex
pokemonEditado.php
PHP
mit
816
// Copyright 2015 XLGAMES Inc. // // Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "MaterialCompiler.h" #include "ModelImmutableData.h" // for MaterialImmutableData #include "Material.h" #include "CompilationThre...
xlgames-inc/XLE
RenderCore/Assets/MaterialCompiler.cpp
C++
mit
17,643
from django.contrib import admin # Register your models here. from .models import Question, Choice class ChoiceInline(admin.TabularInline): model = Choice extra = 3 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ('Date information', {'fields...
singh-pratyush96/voter
polls/admin.py
Python
mit
593
import { Container } from "aurelia-framework"; export declare module UIUtils { var auContainer: Container; var dialogContainer: Element; var overlayContainer: Element; var taskbarContainer: Element; function lazy(T: any): any; function newInstance(T: any): any; function toast(options: any): ...
avrahamcool/aurelia-ui-framework
dist/typings/utils/ui-utils.d.ts
TypeScript
mit
685
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import todo.mixins class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='TodoItem', fields=[ ('id', m...
aaronbassett/djangocon-pusher
talk/todo/migrations/0001_initial.py
Python
mit
1,191
define(['jquery', 'underscore', 'backbone'], function($, _, Backbone){ var LoaderView = Backbone.View.extend({ tagName : 'div', className : 'loading-wrapper', initialize : function(cfg){ var view = this; if(cfg){ view.title = cfg.title; ...
saswin4u/portfolio.syl
dev/js/views/comps/loader.js
JavaScript
mit
1,703
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.math.BigDecimal; import java.math.BigInteger; import java.text.NumberFormat; import java.util.ArrayList; import ...
aas-integration/mini_corpus
benchmarks/09_decision_tree/alexey.enkov_0_1/src/Solution.java
Java
mit
2,990
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package TWoT; import java.io.Serializable; /** * * @author Lagoni */ public class UseableItem extends Item implements Serializable...
jonaslagoni/Wizard-Of-Treldan
zuul-framework/src/TWoT/UseableItem.java
Java
mit
1,375
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = exports.hideSpinner = exports.showSpinner = exports.hideSpinnerType = exports.showSpinnerType = void 0; var _ACTION_HANDLERS; function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || ...
talibasya/redux-store-ancillary
lib/reducers/spinner.js
JavaScript
mit
3,614
<?php /** * The MIT License (MIT) * * Copyright (c) 2013 Ivo Mandalski * * 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...
ivolator/restlt
lib/restlt/cache/RestltMemcachedAdapter.php
PHP
mit
2,618
module.exports = function(config, logger) { "use strict"; var cacheManager = require('cache-manager'); var redisCache = {}; if (process.env.NODE_ENV !== 'production') { redisCache = cacheManager.caching({store: 'memory', max: 1024*64 /*Bytes*/, ttl: 15 /*seconds*/}); } else { var redisStore = requir...
CloudyKangaroo/cloudykangaroo
src/lib/puppet.js
JavaScript
mit
3,779
// Load all required engine components R.Engine.define({ "class": "Tutorial4", "requires": [ "R.engine.Game", "R.rendercontexts.CanvasContext" ], // Game class dependencies "depends": [ "StarObject" ] }); // Load the game object R.engine.Game.load("/starObject.js"); /** * @class Tutorial Four. Generate...
bfattori/TheRenderEngine
tutorials/tutorial4/game.js
JavaScript
mit
1,412
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="<?php echo base_url(); ?...
SalithaUCSC/StudentMate
application/views/pages/User/userPasswordChange.php
PHP
mit
8,480
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; using System.Drawing; using CourseWork.Views; namespace CourseWork { class Program { public static DataBase DB; public static MainForm MForm; public static Fi...
JPro173/CourseWork
Project/MainForm.cs
C#
mit
1,636
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/errors/keyword_plan_keyword_error.proto package errors import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" ) // Reference imports to suppress errors i...
pushbullet/engineer
vendor/google.golang.org/genproto/googleapis/ads/googleads/v2/errors/keyword_plan_keyword_error.pb.go
GO
mit
7,574
package com.lotaris.jee.validation; import java.lang.annotation.Annotation; /** * Defines a constraint converter. * * @author Laurent Prevost <laurent.prevost@lotaris.com> * @author Cristian Calugar <cristian.calugar@fortech.ro> */ public interface IConstraintConverter { /** * Returns the error code, if one...
lotaris/jee-validation
src/main/java/com/lotaris/jee/validation/IConstraintConverter.java
Java
mit
754
RSpec.describe "ROM.container" do include_context "database setup" with_adapters do let(:rom) do ROM.container(:sql, uri) do |conf| conf.default.create_table(:dragons) do primary_key :id column :name, String end conf.relation(:dragons) do schema(infe...
rom-rb/rom-sql
spec/integration/setup_spec.rb
Ruby
mit
583
using System.Collections.Generic; using System.Linq; using System.Web.Http; using PaginationSample.Models; using WebApi.Pagination; namespace PaginationSample.Controllers { /// <summary> /// Demonstrates the usage of the <see cref="PaginationAttribute"/>. /// </summary> [RoutePrefix("attributes")] ...
1and1/WebApi.Pagination
Sample/Controllers/AttributesController.cs
C#
mit
1,553