repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
jordivila/Net_MVC_NLayer_Result
VsixMvcAppResult/VsixMvcAppResult.UI.Web/Scripts/jquery-globalize/lib/cultures/globalize.culture.es-CL.js
1942
/* * Globalize Culture es-CL * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this f...
mit
aspnetboilerplate/module-zero-core-template
angular/src/typings.d.ts
641
///<reference path="../node_modules/abp-web-resources/Abp/Framework/scripts/abp.d.ts"/> ///<reference path="../node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr.d.ts"/> ///<reference path="../node_modules/moment/moment.d.ts"/> // Typings reference file, see links for more information // https://gi...
mit
icoach/bootstrap-starter
src/javascripts/main.js
164
// // Main // Initializes main behavior // ------------------------- $(function(){ console.log("Life is good") // Document is ready, put your scripts here });
mit
SymfonyId/AdminBundle
Twig/Functions/GenerateUserAvatarFunction.php
1404
<?php /* * This file is part of the AdminBundle package. * * (c) Muhammad Surya Ihsanuddin <surya.kejawen@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfonian\Indonesia\AdminBundle\Twig\Functions; use S...
mit
gtforge/beego-assets
less/init.go
1560
package less import ( "bytes" "crypto/md5" "fmt" "os" "os/exec" "path/filepath" "github.com/gtforge/beego-assets" ) const lessExtension = ".less" const lessExtensionLen = len(lessExtension) var lessBuiltFilesDir = filepath.Join(beegoAssets.Config.TempDir, "less") func init() { _, err := exec.LookPath("less...
mit
infinitered/solidarity
__tests__/command_helpers/skipRule.ts
1708
import skipRule from '../../src/extensions/functions/skipRule' const currentPlatform = process.platform const makeMockRulePlatform = platform => ({ platform }) const mockRuleBasic = makeMockRulePlatform(currentPlatform) const mockRuleUppercase = makeMockRulePlatform(currentPlatform.toUpperCase()) test('skipRule takes...
mit
bloy/fuzzyclock
lib/fuzzyclock.rb
1246
require "fuzzyclock/version" module Fuzzyclock def self.time(t) hour = t.hour minute = t.min minute_text = RANGES. select{|range, text| range.include?(minute)}. map{|range, text| text}.first hour = hour + 1 if (33..59).include?(minute) hour = ((hour - 1) % 12) + 1 hour_text = HOUR...
mit
BitBalloon/bitballoon-go
sites.go
3636
package bitballoon import ( "errors" "path" "time" ) var ( defaultTimeout time.Duration = 5 * 60 // 5 minutes ) // SitesService is used to access all Site related API methods type SitesService struct { client *Client } // Site represents a BitBalloon Site type Site struct { Id string `json:"id"` UserId s...
mit
facebook/redex
libredex/SourceBlocks.cpp
22330
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "SourceBlocks.h" #include <limits> #include <optional> #include <sstream> #include <string> #include "ControlFlow.h" #...
mit
kinkinweb/lhvb
vendor/sonata-project/ecommerce/src/Component/Order/OrderInterface.php
12273
<?php /* * This file is part of the Sonata package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\Component\Order; use Sonata\Component\Currency\Currenc...
mit
ailyenko/JavaRush
src/com/javarush/test/level25/lesson02/home01/Columnable.java
719
package com.javarush.test.level25.lesson02.home01; interface Columnable { /** * @return полное имя колонки */ String getColumnName(); /** * Возвращает true, если колонка видимая, иначе false */ boolean isShown(); /** * Скрывает колонку - маркирует колонку -1 в массиве realOrder. * Сдвига...
mit
Innmind/rest-server
tests/Definition/IdentityTest.php
405
<?php declare(strict_types = 1); namespace Tests\Innmind\Rest\Server\Definition; use Innmind\Rest\Server\Definition\Identity; use PHPUnit\Framework\TestCase; class IdentityTest extends TestCase { public function testInterface() { $identity = new Identity('foo'); $this->assertSame('foo', $ide...
mit
Jainteto/itp
itp-core/src/main/java/org/jainteto/itp/core/transport/Message.java
1434
package org.jainteto.itp.core.transport; import java.io.Serializable; public class Message implements Serializable { public static final int STATUS_NO = 0; public static final int STATUS_MESSAGE = 1; public static final int STATUS_ERROR = 2; private static final Message NO_M...
mit
cmlaidlaw/hoipost
private/conf/LocationNodes.php
78132
<?php $nodes = array( 0 => array('city' => 'Aba', 'lat' => 5.10, 'lng' => 7.35, 'country' => 'Nigeria'), 1 => array('city' => 'Abeokuta', 'lat' => 7.16, 'lng' => 3.35, 'country' => 'Nigeria'), 2 => array('city' => 'Abidjan', 'lat' => 5.33, 'lng' => -4.03, 'country' => 'Ivory Coast'), 3 => array('city' =>...
mit
mmnaseri/spring-data-mock
spring-data-mock/src/test/java/com/mmnaseri/utils/spring/data/sample/usecases/proxy/resolvers/SampleMappedRepository.java
413
package com.mmnaseri.utils.spring.data.sample.usecases.proxy.resolvers; import org.springframework.data.jpa.repository.Query; /** * @author Milad Naseri (m.m.naseri@gmail.com) * @since 1.0 (4/12/16, 6:31 PM) */ public interface SampleMappedRepository { void mappedSignature(String string); void findByFirs...
mit
ohler55/wabur
lib/wab/ui.rb
360
require 'wab' module WAB # Web Application Builder reference implemenation UI. module UI end end require 'wab/ui/display' require 'wab/ui/flow' require 'wab/ui/multi_flow' # These are the classes needed for the REST displays/flow. require 'wab/ui/rest_flow' require 'wab/ui/list' require 'wab/ui/view' require ...
mit
josecols/fundahog
ayuda/admin.py
602
#!/usr/bin/python # -*- coding: utf-8 -*- # FUNDAHOG - Django 1.4 - Python 2.7.3 # Universidad Católica Andrés Bello Guayana # Desarrollado por José Cols - josecolsg@gmail.com - @josecols - (0414)8530463 from django.contrib import admin from ayuda.models import Seccion, Video from ayuda.forms import SeccionForm cl...
mit
LAPIS-Lazurite/test920j
lib/prog_write.rb
2985
# encoding: utf-8 require 'serialport' class Lazurite::Test def prog_write(devName,program,setting=true) @@testBin = @@testBin + 1 funcNum = 0 if setting == true then cmd = "sudo rmmod ftdi_sio" system(cmd) ret = $?.exitstatus funcNum = funcNum + 1 cmd = "sudo rmmod usbserial" system(cmd) ...
mit
akshaysura/sitecoremvc
Code/SitecoreMVC/SitecoreMVC.ModelMaps/Base/FacebookMetadataMap.cs
463
using Glass.Mapper.Sc.Maps; using SitecoreMVC.Models.TemplateModels.Base; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SitecoreMVC.ModelMaps.Base { public class FacebookMetadataMap : SitecoreGlassMap<IFacebookMetadata> { ...
mit
c-bit/c-bit
src/qt/test/paymentservertests.cpp
8386
// Copyright (c) 2009-2015 The C-Bit Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "paymentservertests.h" #include "optionsmodel.h" #include "paymentrequestdata.h" #include "amount.h" #include "rando...
mit
GrottoPress/jentil
app/libraries/Jentil/Utilities/Page/Layout.php
2453
<?php declare (strict_types = 1); namespace GrottoPress\Jentil\Utilities\Page; use GrottoPress\Jentil\Utilities\Page; use GrottoPress\Jentil\Utilities\ThemeMods\Layout as LayoutMod; class Layout { /** * @var Page */ private $page; public function __construct(Page $page) { $this->pa...
mit
lildude/twitter
data/js/tweets/2019_05.js
102790
Grailbird.data.tweets_2019_05 = [ { "created_at": "Thu May 30 17:12:44 +0000 2019", "id": 1134145631566610400, "id_str": "1134145631566610432", "text": "RT @scott_riley: Unpopular opinion: prefacing your shit take with \"unpopular opinion\" does not give you carte blanche on being an insuffera…", "truncated...
mit
cricanr/AlgorithmsHackerRank
src/main/scala/hackerRank/algorithms/BalancedBrackets.scala
1185
package hackerRank.algorithms object BalancedBrackets { def main(args: Array[String]): Unit = { val scanner = new java.util.Scanner(System.in) val noOfExpressions = scanner.nextInt() var index = 0 def isClosedBracket(left: Char, right: Char): Boolean = { val pair = (left, right) pair mat...
mit
sufianshari/guesthouse
application/views/dashboard/fasilitas/fasilitas_form.php
1567
<section class="content-header"> <h1><?php echo $button ?> Fasilitas</h1> </section> <section class="content"> <div class="box box-success"> <div class="box-header with-border"> <h3 class="box-title"><?php echo $button ?> Fasilitas</h3> <div class="box-tools pull-right"> ...
mit
webkitz/SSBuildersCrack
code/BuildersCrack.php
6703
<?php class BuildersCrack extends DataExtension { protected static $url = "https://builderscrack.co.nz/"; //url of the review to be scrapped protected static $sandBox = false; protected static $trader = false; protected static $workmanship = 3; /** * @param $url URL of builders crack revi...
mit
dawyda/betor
application/controllers/login.php
4900
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Login extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controll...
mit
Adyen/magento
app/code/community/Adyen/Payment/sql/adyen_setup/mysql4-upgrade-2.3.0-2.3.0.1.php
1106
<?php /** * Adyen Payment Module * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not...
mit
luiscleto/feup-lpoo-android-tower-defense
AndroidTowerDefenseTests/src/pt/up/fe/lpoo/towerdefense/test/TestProjectile.java
947
package pt.up.fe.lpoo.towerdefense.test; import pt.up.fe.lpoo.framework.Image; import pt.up.fe.lpoo.towerdefense.Projectile; import pt.up.fe.lpoo.towerdefense.Enemy; public class TestProjectile extends Projectile { public TestProjectile(int iniX, int iniY, int goalX, int goalY, int movementSpeed, int projectileDam...
mit
matthewcaperon/contactless-tls
card-drivers/softcard/src/com/microexpert/cltls/smartcards/softcard/PKCS1Encoding.java
11812
package com.microexpert.cltls.smartcards.softcard; import java.security.AccessController; import java.security.PrivilegedAction; import java.security.SecureRandom; import org.spongycastle.crypto.AsymmetricBlockCipher; import org.spongycastle.crypto.CipherParameters; import org.spongycastle.crypto.InvalidCipherTextExc...
mit
Glassay/js-training
egg-study/app.js
2645
/** * 2017-9-27 JifengCheng * 数据库建表 */ 'use strict'; const knex = require('knex')({ client: 'mysql', }); module.exports = app => { app.beforeStart(function* () { // const ctx = app.createAnonymousContext(); const ctx = app.createAnonymousContext(); const hasParticipant = yield app.mysql.query(knex...
mit
axelpale/tresdb
client/stores/mapstate.js
713
// This Store takes care of reading and storing a map viewport state // to a given storage, e.g. localStorage. // // The structure of the state: // { // lat: <number>, // lng: <number>, // zoom: <integer>, // mapTypeId: <string>, // } // // API // Constructor // createStore(storage, storageKey...
mit
schme16/LD39-Running-out-of-Power
Assets/data/Easings.cs
13084
using System; #if UNITY using UnityEngine; using Math = UnityEngine.Mathf; #endif static public class Easings { /// <summary> /// Constant Pi. /// </summary> private const float PI = (float)Math.PI; /// <summary> /// Constant Pi / 2. /// </summary> private const float HALFPI = (f...
mit
freezing/angular2-tutorial
dev/attribute-directives/structural-directives.component.ts
263
import {Component} from "@angular/core"; import {HighlightDirective} from "./highlight.directive"; @Component({ selector: 'my-structural-directives', template: ` `, directives: [HighlightDirective] }) export class MyStructuralDirectivesComponent { }
mit
kubatyszko/gitea
routers/api/v1/api.go
27744
// Copyright 2015 The Gogs Authors. All rights reserved. // Copyright 2016 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. // Package v1 Gitea API. // // This documentation describes the Gitea API. // // Schemes: http, ...
mit
Lafriakh/kira
helpers/size.go
627
package helpers import ( "unicode/utf8" ) // Size return size of string or float64 or float32 or slice func Size(value interface{}) float64 { switch value.(type) { // convert string value to integer case string: return float64(utf8.RuneCountInString(value.(string))) case float32: return float64(value.(float3...
mit
sreepadbhagwat/aplos
aplos/src/main/java/com/github/sreepadbhagwat/aplos/api/Button.java
132
package com.github.sreepadbhagwat.aplos.api; public interface Button { public void click(String identifier, String locator); }
mit
sadrayan/coraltec
src/WS/CoraltecBundle/WSCoraltecBundle.php
128
<?php namespace WS\CoraltecBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class WSCoraltecBundle extends Bundle { }
mit
diirt/diirt
graphene/graphene/src/main/java/org/diirt/graphene/LineTimeGraph2DRendererUpdate.java
921
/** * Copyright (C) 2010-18 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.graphene; /** * * @author carcassi */ public class LineTimeGraph2DRendererUpdate extends TemporalGraph2DRendererUpdate<LineTimeGraph2DRendererUpdate> { ...
mit
phpstan/phpstan
e2e/excludePaths2/src/foo.php
47
<?php $t = new \ThirdpartyClass(); $t->test();
mit
Azure/azure-sdk-for-go
sdk/resourcemanager/devops/armdevops/zz_generated_pipelines_client.go
17829
//go:build go1.16 // +build go1.16 // 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 may cause incorrect behavior and will be lost if the cod...
mit
elitmus/autocomplete_locations
app/controllers/autocomplete_locations/application_controller.rb
136
module AutocompleteLocations class ApplicationController < ActionController::Base protect_from_forgery with: :exception end end
mit
yutin1987/dingtaxi
www/js/app.js
1501
// Ionic Starter App angular.module('starter', ['ionic', 'starter.services', 'starter.controllers']) .config(function($stateProvider, $urlRouterProvider) { $stateProvider .state('menu', { url: "/menu", abstract: true, templateUrl: "templates/menu.html" }) .state('menu.workday', { ...
mit
idlewinn/playground
webpack.config.js
565
const path = require("path"); const HtmlWebpackPluginConfig = require("html-webpack-plugin"); module.exports = { entry: "./dev/index.js", output: { filename: "bundle.js", path: path.resolve(__dirname, "dist") }, module: { loaders: [ { test: /\.jsx?/, loader: "babel-loader", exclude: /node_mod...
mit
twigyard/twigyard
src/TwigYard/Middleware/Header/HeaderMiddleware.php
4433
<?php namespace TwigYard\Middleware\Header; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use TwigYard\Component\AppState; use TwigYard\Middleware\MiddlewareInterface; class HeaderMiddleware implements MiddlewareInterface { const HEADER_CONFIG = 'header'; const HEADER_...
mit
ser910/Exam
Zip/Properties/AssemblyInfo.cs
1382
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("Zi...
mit
Peppa-Peddler/users
users/routes/clearUser.js
748
var express = require('express'); var router = express.Router(); var knex = require('../db/connection'); var User = require('../models/user'); var passport = require('passport'); /* POST clear user account. */ router.post('/', isLoggedInAdmin, function(req, res) { if (req.body.user_id != "58ec0b8f68be5a12c30da409") {...
mit
DragonSpark/Framework
DragonSpark/Reflection/AccountForUnassignedType.cs
487
using DragonSpark.Model.Selection.Alterations; using System; using System.Reflection; namespace DragonSpark.Reflection; sealed class AccountForUnassignedType : IAlteration<TypeInfo> { public static AccountForUnassignedType Default { get; } = new AccountForUnassignedType(); AccountForUnassignedType() {} public T...
mit
boada/vpCluster
data/boada/august_2012/analysis/parseResults.py
1327
import glob from numpy import genfromtxt, asarray, savetxt files = glob.glob('*_results/*.results') r = [] for f in files: print f cluster, field, dither = f.split('/')[1].split('_') data = genfromtxt(f, delimiter='\t', names=True, dtype=None) try: for fiber, z, Q, z_err in zip(data['Fiber'], ...
mit
willstepp/reliefdb
test/unit/history_test.rb
284
require File.dirname(__FILE__) + '/../test_helper' class HistoryTest < Test::Unit::TestCase fixtures :histories def setup @history = History.find(1) end # Replace this with your real tests. def test_truth assert_kind_of History, @history end end
mit
mobilecart/mobilecartadminbundle
Resources/public/js/html5imageuploader/image-table.js
1656
var ImageTable = function(info) { this.bodyEl = info.bodyEl; } ImageTable.prototype = { add: function(obj) { this.bodyEl.append(this.buildRow(obj)); }, buildRow: function(obj) { var html = ''; html += '<tr data-id="' + obj.id + '">' + '<td><a target="_blank" href="/...
mit
shore-gmbh/shore-ruby-client
spec/shore/v1/short_url_spec.rb
181
# frozen_string_literal: true RSpec.describe Shore::V1::ShortURL do include_examples 'shore json api client' do let(:url) { 'https://api.shore.com/v1/short_urls' } end end
mit
jericks/wkg
src/main/java/org/cugos/wkg/GeoJSONReader.java
12774
package org.cugos.wkg; import org.antlr.v4.runtime.*; import org.cugos.wkg.internal.JSONBaseListener; import org.cugos.wkg.internal.JSONLexer; import org.cugos.wkg.internal.JSONParser; import java.util.*; /** * Read a Geometry from a GeoJSON String * @author Jared Erickson */ public class GeoJSONReader implements...
mit
Supamiu/ffxiv-teamcraft
apps/client/src/app/pipes/pipes/character-avatar.pipe.ts
516
import { Pipe, PipeTransform } from '@angular/core'; import { CharacterService } from '../../core/api/character.service'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; @Pipe({ name: 'characterAvatar' }) export class CharacterAvatarPipe implements PipeTransform { constructor(private serv...
mit
myrkur/CR
app/cache/dev/twig/eb/56/d2266fb2b0eea1e46ff3c4a390c2597cbd04979be3c494ca51ce51a92abb.php
2450
<?php /* TwigBundle:Exception:exception.txt.twig */ class __TwigTemplate_eb56d2266fb2b0eea1e46ff3c4a390c2597cbd04979be3c494ca51ce51a92abb extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = arra...
mit
gpawru/furry-framework-database
Tests/QueryBuilder/SQLite/SetUp.php
1983
<?php namespace Tests\QueryBuilder\SQLite; use Furry\Database; use Furry\Database\Connection\SQLite; trait SetUp { /** * connection setup */ public function setUp() { [$this->connection, $this->db] = $this->connect(); } /** * connecting to server using settings from dbconf...
mit
jpspace/Android-NMEA-Parser
androidnmeaparser/src/main/java/kr/jpspace/androidnmeaparser/gps/GPGGA.java
180
package kr.jpspace.androidnmeaparser.gps; /** * Created by uiseok on 2016-08-25. */ public class GPGGA extends GGA { public GPGGA(String gga) { super(gga); } }
mit
evanrs/redux-namespace
test/create.spec.js
3340
import expect from 'expect'; import { createStore, combineReducers } from 'redux'; import { create } from '../src/create'; import { namespaceReducer } from '../src/reducer'; function createTest () { const store = createStore(combineReducers({ namespace: namespaceReducer })) return { store, ns: create('...
mit
squared9/Robotics
Follow_Me-Semantic_Segmentation/code/preprocess_ims.py
5719
# Copyright (c) 2017, Udacity # 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 notice, this # list of conditions and the fol...
mit
marksize/lowered
src/rpcrawtransaction.cpp
20294
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "base58.h" #include "bitcoinrpc.h" #inclu...
mit
Aldarov/StudentEmployment
Server/Controllers/AccountController.cs
3745
using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using Microsoft.AspNetCore.Mvc; using Auth; using Server.Models; using Microsoft.EntityFrameworkCore; using System.Net.Http; using System.Xml.Linq; using System.Threading.Tasks; using System.IO; using Server.Models.Universi...
mit
AndrewKeig/react-speech
webpack.build.config.js
703
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: './src/speech', output: { path: path.join(__dirname, './dist'), library: 'ReactSpeech', filename: 'react-speech.min.js', libraryTarget: 'umd' }, module: { rules: [ { test: /\.(js|jsx)$/...
mit
HESGE/twitter-harvest
lib/twitter-harvest.js
5001
/*eslint no-console: 0*/ var log = require('./mylog').log(); var cfg = require('./cfg').cfg(); var fs = require('fs'); //var Twitter = require('Twitter'); var Twit = require('twit'); var FsInterface = require('./fs-interface'); var nodemailer = require('nodemailer'); var Validator ...
mit
Senither/AvaIre
app/bot/commands/utility/LeaderboardCommand.js
4833
/** @ignore */ const Command = require('./../Command'); /** @ignore */ const UserTransformer = require('./../../../database/transformers/UserTransformer'); class LeaderboardCommand extends Command { /** * Sets up the command by providing the prefix, command trigger, any * aliases the command might have ...
mit
andrewswan/tally-ho
src/test/java/tallyho/model/tile/DuckTest.java
2047
/* * Created on 21/08/2004 */ package tallyho.model.tile; import tallyho.model.Team; import junit.framework.TestCase; /** * Tests the duck model */ public class DuckTest extends TestCase { // Fixture private Bear bear; private Duck duck; private Fox fox; private Hunter hunter; private Lumberjack lum...
mit
hovsepm/azure-libraries-for-net
src/ResourceManagement/AppService/Generated/Models/DnsVerificationTestResult.cs
2054
// <auto-generated> // 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. // </auto-generated> namespace Microsoft.Azure.Management.AppService.Fluent....
mit
frickiericker/learn-go
03-goroutine/query.go
866
package main import ( "encoding/json" "fmt" "io/ioutil" "net/http" ) func QueryStory(storyId uint64) (string, error) { url := fmt.Sprintf("https://hacker-news.firebaseio.com/v0/item/%d.json", storyId) var storyData map[string]interface{} err := RequestJson(url, &storyData) title := storyData["title"].(string)...
mit
kris1226/clymer-metal-crafts
index.js
559
import 'babel-core/polyfill'; import React from 'react'; import { render } from 'react-dom'; import Root from './containers/Root'; import ReactReduxRouterRoot from './containers/ReactReduxRouterRoot'; //import configureStore from './store/configureStore'; import configureStore from './store/reactReduxRouterConfigureSto...
mit
anurag-ks/eden
modules/templates/SAMBRO/controllers.py
35574
# -*- coding: utf-8 -*- from datetime import datetime, timedelta try: import json # try stdlib (Python 2.6) except ImportError: try: import simplejson as json # try external module except: import gluon.contrib.simplejson as json # fallback to pure-Python module from gluon import current fr...
mit
the-zebulan/CodeWars
tests/kyu_7_tests/test_array_info.py
634
import unittest from katas.kyu_7.array_info import array_info class ArrayInfoTestCase(unittest.TestCase): def test_equal_1(self): self.assertEqual(array_info( [1, 2, 3.33, 4, 5.01, 'bass', 'kick', ' '] ), [[8], [3], [2], [2], [1]]) def test_equal_2(self): self.assertEqual...
mit
educ-hack/wifi-data-viewer
src/EducHack/Repository/CDNHitRepository.php
327
<?php namespace EducHack\Repository; use Doctrine\ORM\EntityRepository; class CDNHitRepository extends EntityRepository { public function fetchLast() { return $this->createQueryBuilder('c') ->select('c') ->setMaxResults(10) ->getQuery() ->getResult(); ...
mit
Samuel-Oliveira/Java-Efd-Contribuicoes
src/main/java/br/com/swconsultoria/efd/contribuicoes/bo/blocoM/GerarRegistroM205.java
706
/** * */ package br.com.swconsultoria.efd.contribuicoes.bo.blocoM; import br.com.swconsultoria.efd.contribuicoes.registros.blocoM.RegistroM205; import br.com.swconsultoria.efd.contribuicoes.util.Util; /** * @author Yuri Lemes * */ public class GerarRegistroM205 { public static StringBuilder gerar(RegistroM205...
mit
Shopify/shipit-engine
db/migrate/20200706145406_add_review_stacks.rb
428
class AddReviewStacks < ActiveRecord::Migration[6.0] def change add_column :stacks, :provision_status, :string, null: false, default: :deprovisioned add_index :stacks, :provision_status add_column :stacks, :type, :string, default: "Shipit::Stack" add_index :stacks, :type add_column :stacks, :awa...
mit
dunncl15/weathrly
lib/components/Hourly.js
696
import React from 'react'; const Hourly = ({ weather }) => { const hourly = weather[0].hourly_forecast; const nextSeven = hourly.filter((hour, i) => { return i < 7; }); return ( <section className="hourly-section"> <h4 className="title">Hourly Forecast</h4> <ul className="hourly-forecast"> ...
mit
SocialiteProviders/Providers
src/Monday/MondayExtendSocialite.php
415
<?php namespace SocialiteProviders\Monday; use SocialiteProviders\Manager\SocialiteWasCalled; class MondayExtendSocialite { /** * Register the provider. * * @param \SocialiteProviders\Manager\SocialiteWasCalled $socialiteWasCalled */ public function handle(SocialiteWasCalled $socialiteWas...
mit
nakamura-to/KageDB
test/objectstore_test.js
19416
module("objectstore_test", { setup: function () { var myDB = this.myDB = new KageDB({ name: "myDB", migration: { 1: function (ctx, next) { var db = ctx.db; var tx = ctx.tx; var person = db.createObjectStore("...
mit
yzhao583/webchecker
config/demo.js
307
// demo.js module.exports = { mongodb: { user: process.env.MONGOLAB_USERNAME, password: process.env.MONGOLAB_PASSWORD, database: process.env.MONGOLAB_DATABASE, server: process.env.MONGOLAB_SERVER }, monitor: { apiUrl: process.env.UPTIME_API_URL }, verbose: false }
mit
reqres-modules/bootstrap-fields
src/View.php
4492
<?php namespace Reqres\Module\FieldsBootstrap; use Reqres\Response; use Reqres\Form; use Reqres\Field; trait View { /** * * Прописываем набор настроек для полей * * Эти настройки можно будет применять к конкретному полю или к группе полей в форме * * @param require_module_path...
mit
chhingchhing/boutique_cambo
application/language/french/giftcards_lang.php
5838
<?php $lang['giftcards_giftcard_number']='numero carte fidélité';//The good translation $lang['giftcards_card_value']='Valeur'; $lang['giftcards_basic_information']='Informations carte fidélité';//The good translation $lang['giftcards_number_required']='numero du carte est un champ requis';//The good translation $lang[...
mit
SparkRebel/sparkrebel.com
src/PW/CategoryBundle/DataFixtures/MongoDB/LoadExampleData.php
3050
<?php namespace PW\CategoryBundle\DataFixtures\MongoDB; use Doctrine\Common\DataFixtures\AbstractFixture, Doctrine\Common\DataFixtures\OrderedFixtureInterface, Doctrine\Common\Persistence\ObjectManager, PW\CategoryBundle\Document\Category; /** * LoadExampleData */ class LoadExampleData extends Abstract...
mit
meibegger/me-dialog
dist/me-dialog.bundle.ie9.js
93071
/** * @license me-dialog 3.0.2 Copyright (c) Mandana Eibegger <scripts@schoener.at> * Available via the MIT license. * see: https://github.com/meibegger/me-dialog for details */ (function (root, factory) { if (typeof define === 'function' && define.amd) { define([], factory); } else if (typeof exports === '...
mit
icsharpcode/WpfDesigner
WpfDesign.Designer/Tests/XamlDom/ExampleClass.cs
2807
// Copyright (c) 2019 AlphaSierraPapa for the SharpDevelop Team // // 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 use, co...
mit
FriedBreakfast/Psi
src/TreeBase.hpp
14623
#ifndef HPP_PSI_COMPILER_TREEBASE #define HPP_PSI_COMPILER_TREEBASE #include <set> #include <boost/scoped_ptr.hpp> #include <boost/static_assert.hpp> #include <boost/type_traits/is_convertible.hpp> #include "ObjectBase.hpp" #include "SourceLocation.hpp" namespace Psi { namespace Compiler { class Tree; cla...
mit
iwconfig/svtplay-dl
lib/svtplay_dl/fetcher/hls.py
4853
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- from __future__ import absolute_import import sys import os import re import copy from svtplay_dl.output import progressbar, progress_stream, ETA, output from svtplay_dl.log import log from svtplay_dl.error import UIException, Ser...
mit
peterjcaulfield/portaljs
portal.js
21004
;(function(window, document, undefined) { 'use strict'; var INSTANCE_COUNT = 0; // portal will be bound to the window object using this name var NAME = 'Portal'; // Portal defaults. // Can be overridden with a config object when creating portal object var DEFAULTS = { selector:...
mit
alanc10n/py-cutplanner
cutplanner/__init__.py
172
""" Utility for planning cuts for a given set of available stock. """ from .planner import Planner, Piece from .stock import Stock __all__ = ['Planner', 'Piece', 'Stock']
mit
anthonyshikanga/Bluecircle
config/environments/development.rb
1976
Rails.application.configure do config.action_mailer.default_url_options = {host: 'localhost', port: 3000} # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time b...
mit
AlaMurkan-FIFA-Boyz-2017-Dremz2Lyf/Game-Manager
migrations/20161017114552_setup.js
1468
exports.up = function(knex, Promise) { return Promise.all([ knex.schema.createTable('players', function(table) { table.increments('id').primary(); table.string('username').unique().notNullable(); }), knex.schema.createTable('tournaments', function(table) { table.increments('id').primary...
mit
ivan-shulev/despreneur-academy
functions.php
15645
<?php /** * Sage includes * * The $sage_includes array determines the code library included in your theme. * Add or remove files to the array as needed. Supports child theme overrides. * * Please note that missing files will produce a fatal error. * * @link https://github.com/roots/sage/pull/1042 */ $sage_incl...
mit
AbsoluteZero273/Deezic
app/renderer/presentational/generic/Slider.js
986
import React, { Component } from 'react' class Slider extends Component { constructor (props) { super(props) this.slider = null } componentDidUpdate () { const materialSlider = this.slider.MaterialSlider if (materialSlider) { materialSlider.change(this.props.value) } } componentDi...
mit
frangucc/gamify
www/sandbox/pals/sandbox/ScenarioRunner/app/js/controllers/messageListCtrl.js
558
four51.app.controller('MessageListCtrl', function($scope, MessageList) { MessageList.query(function(list) { $scope.messages = list; }); $scope.checkAll = function(event) { angular.forEach($scope.messages, function(msg) { msg.Selected = event.currentTarget.checked; }); }; $scope.deleteSelected =...
mit
fweber1/Annies-Ancestors
webtrees/admin_module_charts.php
3673
<?php /** * webtrees: online genealogy * Copyright (C) 2016 webtrees development team * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option)...
mit
GreenLightning/hypercube
src/eu/greenlightning/hypercubepdf/layout/HCPLayout.java
986
package eu.greenlightning.hypercubepdf.layout; /** * Represents a one-dimensional layout algorithm which is independent of the axis on which it is applied. * * @author Green Lightning */ public interface HCPLayout { /** * Returns the total size that this layout would need to optimally lay out the specified ele...
mit
botify-labs/simpleflow
tests/utils/mock_swf_test_case.py
2849
import unittest import boto import boto.swf from moto.swf import swf_backend from simpleflow.swf.executor import Executor from simpleflow.swf.process.worker.base import ActivityPoller, ActivityWorker from swf.actors import Decider from tests.data import DOMAIN from tests.moto_compat import mock_s3, mock_swf @mock_s...
mit
anthraxx/pwndbg
pwndbg/events.py
6586
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Enables callbacks into functions to be automatically invoked when various events occur to the debuggee (e.g. STOP on SIGINT) by using a decorator. """ import sys from functools import partial from functools import wraps import gdb import pwndbg.config debug = pwndbg...
mit
katydecorah/font-library
test/families.test.js
1984
const test = require("tape"); const fetch = require("node-fetch"); const families = require("../families.json"); // build list of family names in families.json const familiesList = families.map(({ family }) => family); (async () => { try { const response = await fetch( "https://www.googleapis.com/webfonts...
mit
liruqi/bigfoot
Interface/AddOns/DBM-TombofSargeras/localization.cn.lua
2067
-- Mini Dragon(projecteurs@gmail.com) -- 夏一可 -- Blizzard Entertainment -- Last update: 2017/08/24 if GetLocale() ~= "zhCN" then return end local L --------------------------- -- Goroth -- --------------------------- L= DBM:GetModLocalization(1862) --------------------------- -- Demonic Inquisition -- ...
mit
ljtfreitas/java-restify
java-restify-http-client/src/main/java/com/github/ljtfreitas/restify/http/client/request/EndpointRequest.java
7960
/******************************************************************************* * * MIT License * * Copyright (c) 2016 Tiago de Freitas Lima * * 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 ...
mit
wavelo/plugin-macro-loader
src/loader.js
2949
export { loadScripts, unloadScripts } from './loader/scripts' export { load, unloadPlugins, findPlugins } from './loader/selector' export { command, commandAll } from './loader/selector' export { loadGlobal, unloadGlobal, updateGlobal } from './loader/global' export { loadSystem, unloadSystem } from './loader/system' ...
mit
shengnian/shengnian-ui-react
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputerVertically.js
545
import React from 'react' import { Grid } from 'shengnian-ui-react' const GridExampleReversedComputerVertically = () => ( <Grid reversed='computer vertically'> <Grid.Row> <Grid.Column>Computer Row 4</Grid.Column> </Grid.Row> <Grid.Row> <Grid.Column>Computer Row 3</Grid.Column> </Grid.Row>...
mit
tsechingho/authlogic_bundle
features/support/env.rb
2517
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril. # It is recommended to regenerate this file in the future when you upgrade to a # newer version of cucumber-rails. Consider adding your own code to a new file # instead of editing this one. Cucumber will automatically load all features/**...
mit