code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
import time import json import tornado.httpclient http_client = tornado.httpclient.HTTPClient() class HTTPServiceProxy(object): def __init__(self, host='localhost', port=6999, cache_timeout=5.0): self._host = host self._port = port self._cache_timeout = cache_timeout self._cache...
nickbjohnson4224/greyhat-crypto-ctf-2014
frontend/services.py
Python
mit
4,564
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; namespace Sol.Services.Containers.Controllers { [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [HttpGet] publ...
zenontrujillo/sol-server
sol-server/src/Sol.Services.Containers/Controllers/ValuesController.cs
C#
mit
935
use crate::codec::{FramedIo, Message, ZmqFramedRead, ZmqFramedWrite}; use crate::fair_queue::QueueInner; use crate::util::PeerIdentity; use crate::{ MultiPeerBackend, SocketBackend, SocketEvent, SocketOptions, SocketType, ZmqError, ZmqResult, }; use async_trait::async_trait; use crossbeam::queue::SegQueue; use dash...
zeromq/zmq.rs
src/backend.rs
Rust
mit
4,145
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Unit tests for gclient.py. See gclient_smoketest.py for integration tests. """ import Queue import copy import logging import ...
Shouqun/node-gn
tools/depot_tools/tests/gclient_test.py
Python
mit
40,396
module Liquid # Context keeps the variable stack and resolves variables, as well as keywords # # context['variable'] = 'testing' # context['variable'] #=> 'testing' # context['true'] #=> true # context['10.2232'] #=> 10.2232 # # context.stack do # context['bob'] = 'bobsen' # e...
redlinesoftware/liquid_cms
lib/generators/liquid_cms/templates/vendor/plugins/liquid/lib/liquid/context.rb
Ruby
mit
7,207
<?php /** * Created by PhpStorm. * User: Jordan * Date: 04/07/14 * Time: 3:54 PM. */ return [ /* |-------------------------------------------------------------------------- | Absolute path to location where parsed swagger annotations will be stored |-------------------------------------------...
jeevad/pm-university
config/swaggervel.php
PHP
mit
3,700
// // UIScrollView+YXDExtension.h // YXDExtensionDemo // // Copyright (c) 2015年 YangXudong. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, YXDLoadStatus) { YXDLoadStatusLoading = 1, YXDLoadStatusSuccess = 2, YXDLoadStatusEmpty = 3, YXDLoadStatusFailed = 4, }; ...
smartdong/YXDExtension
YXDExtensionDemo/YXDExtensionDemo/YXDExtension/YXDUIKitExtension/UIScrollView+YXDExtension.h
C
mit
838
<?php require_once 'conexion.php'; $idEvento = $_GET['idEvento']; $idUsuario = $_GET['idUsuario']; $sqlQuery = "CALL pa_buscar_evento_por_alumno" . "($idEvento,'$idUsuario')"; $result = $conexion->query($sqlQuery); if(!$result)die('Sql query failed' . $conexion->error); $eventInfo = array(); while(...
jleiva/magki
prototipo/services/buscar_evento_por_alumno.php
PHP
mit
424
<?php /** * @author: mix * @date: 08.11.14 */ namespace PhpParser; class Helper { const DEFAULT_CACHEDIR = "~/.phpstruct"; const STRING_LEN = 12; public static function buildTrace($trace) { $lines = [["FILE", "LINE"]]; foreach ($trace as $codeline) { $file = isset($codel...
mipxtx/phpstruct
lib/PhpParser/Helper.php
PHP
mit
3,891
// saskavi.js // client side script for calling saskavi functions // (function() { "use strict"; var Saskavi = function(fbRoot, uid) { if (!uid) throw new Error("uid not supplied, an authenticated user id is required"); this.rpcBus = fbRoot.child("__saskavi-rpc").child(uid); }; function isFunction(functi...
saskavi/saskavi
examples/post-to-slack/client/saskavi.js
JavaScript
mit
1,201
function checkNeighbours(arr, i) { var result, inputArray, position; if (arr == null) { inputArray = document.getElementById('numbersArray2').value.split(' '), position = +document.getElementById('num6').value; } else { inputArray = arr, position = i; } ...
mdraganov/Telerik-Academy
Java Script/JavaScript Fundmentals/Functions/Functions/06.Larger than neighbours.js
JavaScript
mit
793
SHELL = /bin/bash .SUFFIXES: .SECONDARY: VPATH=.. CC = gcc CFLAGS = -I../../include -I.. -g3 -fPIC -std=gnu11 -pedantic -Wall -O0 TESTINT = test_internal TESTSHR = test_shared TESTQ = test_shrq TESTMAP = test_shrmap TESTS = $(TESTINT) $(TESTSHR) $(TESTQ) $(TESTMAP) LIB = -lrt -lpthread check: checkshr64 checkint64 c...
bkarr/libshr
src/test/Makefile
Makefile
mit
1,158
h1 { color: #369; font-size: 250%; } body { text-align: center; font-family: Arial, Helvetica, sans-serif; } .menu { font-size: 16pt; } .menu a, .menu a:active, .menu a:hover, .menu a:visited, .menu a:link { text-decoration: none; width: 200px; color: #555; border-bottom: 1px blue solid; display: ...
RalfNieuwenhuizen/angular-demo
styles.css
CSS
mit
423
{ :'zgh_MA' => { :i18n => { :plural => { :keys => nil, :rule => } } } }
meedan/check-api
data/zgh-MA/plurals.rb
Ruby
mit
72
<input type='text' ng-model="username" style="width:800px" class='form-control' placeholder='Username or Email'></input> <br/> <br/> <input type='password' ng-model="password" style="width:800px" class='form-control' placeholder='Password'></input> <br/> <p class="alert alert-danger" ng-show="alert.error" ng-bind="aler...
tkaplan/apollo
public/ap-views/login.html
HTML
mit
646
package smtp import ( "net/smtp" qlang "qlang.io/spec" ) // Exports is the export table of this module. // var Exports = map[string]interface{}{ "_name": "net/smtp", "sendMail": smtp.SendMail, "CRAMMD5Auth": smtp.CRAMMD5Auth, "plainAuth": smtp.PlainAuth, "Client": qlang.StructOf((*smtp.Client)(nil)),...
yuanlixg/qlang
qlang/net/smtp/smtp.go
GO
mit
436
////////////////////////////////////////////////////////////////////////////// // // Copyright 2012 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies...
kevinzhwl/ObjectARXCore
2013/inc/AcEdSteeringWheel.h
C
mit
3,925
{\footnotesize\renewcommand{\arraystretch}{1.5} \begin{tabular}{@{}p{1.2cm}|p{1.3cm}@{}p{0.8cm}@{}|p{1.3cm}@{}p{0.8cm}@{}|p{1.3cm}@{}p{0.8cm}@{}|p{1.3cm}@{}p{0.8cm}@{}} form & agent 1 & & agent 2 & & agent 3 & & agent 4 & \\ \hline \textit{"sidigu"} & \texttt{c-8} \texttt{c-5} \texttt{c-3} \texttt{c-6} & 0.68 0...
martin-loetzsch/phd-thesis
figures/sfwm-lexicon-forms-5000.tex
TeX
mit
1,920
<?php namespace SkeletonInterceptor; use Aop\Aop, Aop\Weaver\Interceptor, Aop\Advice\AdviceInterface, Aop\Pointcut\PointcutInterface ; /** * @see \Aop\Weaver\Interceptor */ class SkeletonInterceptor extends Interceptor { /** * @inheritdoc * @see \Aop\Weaver\WeaverInterface::isEnabled(...
aop-io/skeleton-interceptor
src/SkeletonInterceptor/SkeletonInterceptor.php
PHP
mit
2,972
<header id="site-header"> <div class="wrapper"> <a class="home" href="{{> src source='/'}}"><img class="logo" src="{{> src source='/images/logo.png'}}"></a> <div id="subline">JavaScript Utility Library</div> <nav id="site-nav"> <a href="#" class="menu-icon"> <svg viewBox="0 0 18 15"> ...
justinhelmer/lodash.github.io
source/partials/header.html
HTML
mit
1,143
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
VanceKingSaxbeA/NYSE-Engine
App/MTW.php
PHP
mit
10,342
/* Copyright © 2019 Salt Edge. https://saltedge.com 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, copy, modify, merge, publis...
saltedge/saltedge-android
saltedge-library/src/main/java/com/saltedge/sdk/network/HeaderInterceptor.java
Java
mit
2,075
'use strict'; var $ = require('./main') , getViewportRect = require('./get-viewport-rect') , getElementRect = require('./get-element-rect'); module.exports = $.showInViewport = function (el/*, options*/) { var vpRect = getViewportRect() , elRect = getElementRect(el) , options = Object(argume...
egovernment/eregistrations-demo
node_modules/mano-legacy/show-in-viewport.js
JavaScript
mit
1,587
<?php declare(strict_types=1); namespace IssetBV\PushNotification\Core; use IssetBV\PushNotification\Core\Message\Message; use IssetBV\PushNotification\Core\Message\MessageEnvelope; use Psr\Log\LoggerAwareInterface; /** * Interface Notifier. */ interface Notifier extends LoggerAwareInterface { /** * @par...
Isset/pushnotification
src/PushNotification/Core/Notifier.php
PHP
mit
1,039
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>{{page.title}}·The Tea Company</title> <meta name="handheldfriendly" content="true"> <meta name="mobileoptimized" content="240"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link href='http://fonts.googleapis.com/css?family=Source...
samantha-nickerson/ecommerce-website
_layouts/default.html
HTML
mit
2,394
'use strict'; require('babel/register'); // controls application file let app = require('app'); // control main window let BrowserWindow = require('browser-window'); let mainWindow = null; // quite when all windows are closed app.on('window-all-closed', () => { if (process.platform != 'darwin') { ...
flyingkrai/electron-angularjs
app/main.js
JavaScript
mit
790
from zang.exceptions.zang_exception import ZangException from zang.configuration.configuration import Configuration from zang.connectors.connector_factory import ConnectorFactory from zang.domain.enums.http_method import HttpMethod from docs.examples.credetnials import sid, authToken url = 'https://api.zang.io/v2' c...
zang-cloud/zang-python
docs/examples/sip_domains_example.py
Python
mit
2,859
/* Welcome to Compass. * In this file you should write your main styles. (or centralize your imports) * Import this file using the following HTML or equivalent: * <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" /> */ /* line 17, ../../../../../Library/Ruby/Gems/1.8/ge...
TomRich/rw-parallax
stylesheets/screen.css
CSS
mit
8,899
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mjbvz/vscode
src/vs/base/parts/tree/browser/treeUtils.ts
TypeScript
mit
660
package com.github.gquintana.beepbeep.script; import com.github.gquintana.beepbeep.file.YamlFileScriptStore; import com.github.gquintana.beepbeep.store.MemoryScriptStore; import com.github.gquintana.beepbeep.store.ScriptStore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; impor...
gquintana/beepbeep
src/test/java/com/github/gquintana/beepbeep/script/ScriptStoresTest.java
Java
mit
1,293
using System; using System.Collections.Generic; using System.Configuration; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Vegvesen.Storage; namespace Vegvesen.Client.Console { class Program { private const string DataDir = @"H:\Doc...
miles-no/datex-azure
Vegvesen.Client.Console/Program.cs
C#
mit
2,146
# dom-observer [![Build Status](https://secure.travis-ci.org/jide/dom-observer.png?branch=master)](https://travis-ci.org/jide/dom-observer) [![SauceLabs Status](https://saucelabs.com/browser-matrix/empty.svg)](https://saucelabs.com/u/empty) Observe DOM changes ## Getting Started ### Install ``` $ npm install dom-...
jide/dom-observer
README.md
Markdown
mit
963
<?php use PHPUnit\Framework\TestCase; use QMVC\Base\Routing\Route; use QMVC\Base\Routing\Middleware; class MiddlewareTest extends TestCase { public function testConstructor() { $routeCallback = function() { echo 'This is the route callback'; }; $route = new Route(...
infinityCounter/QMVC
Base/Tests/Routing/MiddlewareTest.php
PHP
mit
610
--- layout: post date: 2017-02-28 title: "Jesús Peiró 6055" category: Jesús Peiró tags: [Jesús Peiró] --- ### Jesús Peiró 6055 Just **$389.99** ### <table><tr><td>BRANDS</td><td>Jesús Peiró</td></tr></table> <a href="https://www.readybrides.com/en/jesus-peiro/35595-jesus-peiro-6055.html"><im...
novstylessee/novstylessee.github.io
_posts/2017-02-28-Jess-Peir-6055.md
Markdown
mit
1,026
//+build linux darwin // File generated by 2goarray (http://github.com/cratonica/2goarray) package main var iconData []byte = []byte { 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x48, 0x08, 0x06, 0x00, 0x00, 0x00, 0x5...
deet/picturelife-experimental-uploader
iconunix.go
GO
mit
23,871
<!-- Copyright 2005-2008 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) Some files are held under additional license. Please see "http://stlab.adobe.com/licenses.html" for more information. -->...
brycelelbach/asl
documentation/html/structadobe_1_1any__bidirectional__iterator__instance.html
HTML
mit
7,535
package main import ( "encoding/base32" "encoding/hex" "fmt" "io" "io/ioutil" "net/url" "os" "strings" ) func escape(encoding string) { switch { case strings.HasPrefix("query", encoding): b, err := ioutil.ReadAll(os.Stdin) if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } os.Stdout.Wri...
anacrolix/missinggo
cmd/gd/main.go
GO
mit
1,615
<!DOCTYPE html> <html lang="en" manifest="offline.manifest.php"> <head> <meta name="viewport" content="width=device-width,initial-scale=1.0" /> <script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { var APP_START_FAILED = "I'm sorry, th...
matthew-andrews/ft-style-offline-web-app-part-1
index.html
HTML
mit
1,710
class CreateArtistTracks < ActiveRecord::Migration def change create_table :artist_tracks do |t| t.integer :track_id t.integer :artist_id t.timestamps null: false end end end
laurahines22/spotsync
db/migrate/20150419204229_create_artist_tracks.rb
Ruby
mit
206
--- title: Automotive Grade Linux build for Raspberry Pi 3 image: https://pbs.twimg.com/profile_images/729987519916302337/mJwGl4qa.jpg excerpt: In-vehicle infotainment description: IVI Raspberry Pi AGL categories: linux --- ![AGL Dashboard](https://www.linux.com/sites/lcom/files/joomla/images/stories/41373/AGL-dashboar...
raspberrypisig/raspberrypisig.github.io
_posts/2017-6-02-automotive-grade-linux.md
Markdown
mit
729
[comment /**] [comment Plain text doesn't have any special ] [comment indentation. {][comment&tag @link][comment foo}] [comment&tag @fileoverview][comment Doesn't have any special] [comment indentation.] [comment&tag @see][comment https://github.com/google/closure-compiler/wiki/Annotating-JavaScript-for-the-Cl...
codemirror/google-modes
test/js/jsdoc.js
JavaScript
mit
741
<?php include("Includes/header.php"); ?> <?php include "Includes/class.FastTemplate.php"; $tpl = new FastTemplate("Templates"); $tpl->define(array( "WorkoutHistoryPage"=>"workoutHistory.html", "WorkoutTable"=>"workoutTable.html", "WorkoutRow"=>"workoutRow.html", "exerciseData"=>"exerciseData.html")); if(isset(...
jdevince/WorkoutLogger
viewWorkoutHistory.php
PHP
mit
8,001
var path = require('path') var AtomicFile = require('atomic-file') function id (e) { return e } var none = { encode: id, decode: id } module.exports = function (dir, name, codec) { codec = codec || require('flumecodec/json') var af = AtomicFile(path.join(dir, name+'.json'), '~', none) var self return self =...
flumedb/flumeview-reduce
store/fs.js
JavaScript
mit
925
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild ..\src\AssertProperties\AssertProperties.csproj /p:Configuration=Release
lfreneda/AssertProperties
build/build.bat
Batchfile
mit
127
<link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../bower_components/mqtt-elements/mqtt-connection.html"> <link rel="import" href="../bower_components/paper-item/paper-item.html"> <link rel="import" href="../bower_components/paper-card/paper-card.html"> <link rel="import" hre...
sandro-k/maps-chat
elements/chat-element.html
HTML
mit
3,475
<?php namespace Contact\Controller\Admin; use Contact\Lib\Helper; use Contact\Model\Mail as Mail; use Contact\Extensions\Table\InboxTable; use Event, Flash, Input, Pagination, Redirect, Setting, Translate; /** * Contact Inbox Controller * @package Contact\Contact * @author RebornCMS Developement Team <reborncms@g...
reborncms/reborn
heart/modules/contact/src/Contact/Controller/Admin/ContactController.php
PHP
mit
4,013
using System; using System.Collections.Generic; using System.Linq; internal static partial class SdkInfo { public static IEnumerable<Tuple<string, string, string>> ApiInfo_ServiceBusManagementClient { get { return new Tuple<string, string, string>[] { ne...
shutchings/azure-sdk-for-net
src/SDKs/ServiceBus/Management.ServiceBus/Generated/SdkInfo_ServiceBusManagementClient.cs
C#
mit
1,292
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="A collection of lamps designed and created in San Francisco."> <link href="imgs/favicon.ico" rel="sho...
portatlas/portatlas.github.io
products.html
HTML
mit
3,384
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
VanceKingSaxbeA/FTSE-Engine
App/QQ.php
PHP
mit
8,539
/* * 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 com.omsalung.api; import java.io.Serializable; import org.codehaus.jackson.annotate.JsonProperty; /** * * @author anonymous...
jittagornp/omsalung
api/src/main/java/com/omsalung/api/JsonResponse.java
Java
mit
996
angular.module('ModuleGlobal').service('LoginService', ['$http', 'urlService', function($http, urlService) { var self = this; var url = urlService.getLoginUrl(); var connected = false; self.identifier = ''; self.isConnected = function() { return connected; }; self.connect = fun...
YohannJouanny/mediatic
app/module-global/js/service/LoginService.js
JavaScript
mit
843
////////////////////////////////// //Auto-generated. Do NOT modify!// ////////////////////////////////// import { MessageKey, QueryKey, Type, EnumType, registerSymbol } from '../../Signum.React/Scripts/Reflection' import * as Entities from '../../Signum.React/Scripts/Signum.Entities' export interface IFile { ...
signumsoftware/framework
Signum.React.Extensions/Files/Signum.Entities.Files.ts
TypeScript
mit
4,210
Slice ===== Slice A simple shell script to automate splitting slices into subfolders. Usable for iOS and Android Slices. On iOS, slices with names XXX-@1x.png for example, will be renamed and moved into @1x/XXX.png On Android, similarly, XXX-hdpi.png will be moved to drawable-hdpi/XXX.png.
andrekandore/Slice
README.md
Markdown
mit
294
<!DOCTYPE html> <head> <title>Blogging My Time at the Recurse Center</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="../main.css"> </head> <main> <h1>Fifth Week of RC</h1> <h2>Day 4: Chrome Extensions</h2> <h4>March 21, 2019</h4> <section> <p> As previously mentione...
McEileen/McEileen.github.io
blog/w5-d4.html
HTML
mit
4,041
# frozen_string_literal: true require 'transproc/coercions' module Transproc # Transformation functions for Hash objects # # @example # require 'transproc/hash' # # include Transproc::Helper # # fn = t(:symbolize_keys) >> t(:nest, :address, [:street, :zipcode]) # # fn["street" => "Street 1...
solnic/transproc
lib/transproc/hash.rb
Ruby
mit
12,480
+++ title = "Número 462" date = "1994-03-01" numero = "462" artistas = [] colaboradores= ["Juan Manuel Cibeira", "Sandra Conte", "Noemí Zabala"] discos = [] +++ **Póster**: **Nota de tapa**: **Reportajes**: **Entrevistas**: **Notas sobre**: **Secciones**:
carlospeix/revista-pelo
content/numeros/1994/462.md
Markdown
mit
301
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class General_model extends CI_Model { public function validateLogin(){ if(($this->session->userdata('user_name')!="")) { return true; } else { redirect('signin'); } } } ?>
divyeshiflair/co-ncall
application/models/General_model.php
PHP
mit
294
import React from 'react'; import {Link} from "react-router"; import Subheading from '../components/Subheading'; import Portfolio4col from '../components/Portfolio/Portfolio4col'; export default class Layout extends React.Component { constructor() { super(); this.state = { title:"Welcome ...
hadnazzar/ModernBusinessBootstrap-ReactComponent
src/js/pages/Portfolio4.js
JavaScript
mit
1,382
phone.slide =========== 手機簡報
weitsai/phone.slide
README.md
Markdown
mit
38
using System; using MetroFramework.Forms; using MetroFramework.Controls; using ZasuvkaPtakopyskaExtender; using System.Drawing; using System.Windows.Forms; using MetroFramework; namespace ZasuvkaPtakopyska { public class OpenFileWithDialog : MetroForm { #region Private Static Data. private st...
PsichiX/Ptakopysk
development/ZasuvkaPtakopyska/ZasuvkaPtakopyska/OpenFileWithDialog.cs
C#
mit
5,476
# frozen_string_literal: true require 'spec_helper' feature 'User deleting topics' do scenario 'cannot delete their own topic' do user.log_in topic = users_topic topic.visit_topic expect(topic).not_to be_deletable end context 'as an admin' do scenario "can delete someone else's topic" do ...
jvoss/thredded
spec/features/thredded/user_deletes_topic_spec.rb
Ruby
mit
944
<?php class guardarUsuario extends controllerExtends { public function main(\request $request) { try { $this->loadTableusuario(); $usuario = new usuario(); $usuario->setCedula($request->getParam('cedula')); $usuario->setNombre($request->getParam('nombre'))...
Jorge-CR/Eintrag
controller/class.guardarUsuarioController.php
PHP
mit
1,844
import java.util.*; import java.util.function.*; import java.util.stream.*; import java.io.*; import java.math.*; public class Solution { public int numWays(int n, int k) { if (n == 0 || k == 0) { return 0; } if (n == 1) { return k; } int countSameCo...
yehzhang/RapidTest
examples/solutions/PaintFence.java
Java
mit
763
package model import skinny.DBSettings import skinny.test._ import org.scalatest.fixture.FlatSpec import org.scalatest._ import scalikejdbc._ import scalikejdbc.scalatest._ import org.joda.time._ class PasswordResetSpec extends FlatSpec with Matchers with DBSettings with AutoRollback { }
yoshitakes/skinny-task-example
src/test/scala/model/PasswordResetSpec.scala
Scala
mit
291
import Message from '../components/Message'; import socket from '../socket'; import { SEAL_TEXT, SEAL_USER_TIMEOUT } from '../../../utils/const'; /** 用户是否被封禁 */ let isSeal = false; export default function fetch<T = any>( event: string, data = {}, { toast = true } = {}, ): Promise<[string | null, T | null...
yinxin630/fiora
packages/web/src/utils/fetch.ts
TypeScript
mit
1,273
<?php return array ( 'id' => 'portalmmm_ver2_subs342ic10tb', 'fallback' => 'portalmmm_ver2_subs342i', 'capabilities' => array ( ), );
cuckata23/wurfl-data
data/portalmmm_ver2_subs342ic10tb.php
PHP
mit
145
using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace IISLogTools { static class Program { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main() { Application.Enab...
wbf1013/IISLogTools
IISLogTools/Program.cs
C#
mit
495
/* * Licensed under the MIT License (MIT) * * Copyright (c) 2013 AudioScience Inc. * * 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 t...
audioscience/avdecc-lib
controller/lib/src/util.cpp
C++
mit
50,116
<!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/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
v8-dox/v8-dox.github.io
a53c763/html/functions_n.html
HTML
mit
8,558
<md-toolbar class="md-table-toolbar md-default"> <div class="md-toolbar-tools"> <md-button id="main" class="md-icon-button md-primary" ng-click="back()" aria-label="Settings"> <md-icon md-font-icon="arrow_back" >arrow_back</md-icon> </md-button> <p>Trigger Logs</p> </div> <md-divider></md-divide...
simonmorley/cucumber-frontend
client/components/views/triggers/history/_show.html
HTML
mit
2,544
import { Enumerable } from "../enumerable_"; import { wrapInThunk } from "../common/wrap"; import { OperatorR } from "../common/types"; function _elementat<T>(source: Iterable<T>, index: number, defaultValue?: T): T | undefined { if (index >= 0) { var i = 0; for (var item of source) { i...
marcinnajder/powerseq
src/operators/elementat.ts
TypeScript
mit
1,175
<?php namespace Acd; /** * Response Class * @author Acidvertigo MIT Licence */ class Response { /** @var array|string $headers variable containing the headers* */ private $headers; /** * Function to obtain the HTTP response headers * @param string|null $url * @return array a list...
acidvertigo/php-conf
core/Response.php
PHP
mit
1,329
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitat...
bigoc/openchain
libraries/chain/assert_evaluator.cpp
C++
mit
2,803
# -*- coding: utf-8 -*- import pytest from mmb_perceptron.feature_extractor import FeatureExtractor class TestFeatureExtractor(object): """Tests for feature extractors. """ def test_context_size(self): f = FeatureExtractor() assert f.context_size == (0, 0) f.context_size = (1, 2) ...
mbollmann/perceptron
test/test_feature_extractor.py
Python
mit
554
/*****************************************************************************/ /* PayRunResultModal: Event Handlers */ /*****************************************************************************/ import Ladda from 'ladda'; Template.PayRunResultModal.events({ }); /*************************************************...
c2gconsulting/bp-core
main/app/client/templates/modals/payrun_result_modal/payrun_result_modal.js
JavaScript
mit
899
Thread.abort_on_exception = true module Concurrent describe Map do before(:each) do @cache = described_class.new end it 'concurrency' do (1..THREADS).map do |i| Thread.new do 1000.times do |j| key = i * 1000 + j @cache[key] = i @cache[key...
MadBomber/concurrent-ruby
spec/concurrent/map_spec.rb
Ruby
mit
28,178
<?php // Navigator class generated automatically by MDA process namespace MyCompany\MyProject\SysBundle\Controller; // Start of user code imports use Symfony\Bundle\FrameworkBundle\Controller\Controller; // End of user code class NavigationController extends Controller { private $navigation = array...
ithone/pam
src/MyCompany/MyProject/SysBundle/Controller/NavigationController.php
PHP
mit
7,419
import { Injectable } from '@angular/core'; import { ReplaySubject, Subject } from 'rxjs/Rx'; @Injectable() export class MockNg2LocalforageService { item; list; constructor() { this.onInit(); } onInit() { this.item = new Subject(); this.list = new ReplaySubject(); } getItem(input) { if (i...
adriancarriger/clean-to-the-core
src/mocks/mock-ng2-localforage.service.spec.ts
TypeScript
mit
630
require "collectd_gearman/application" require "collectd_gearman/version" module CollectdGearman end
adrianlzt/collectd_gearman
lib/collectd_gearman.rb
Ruby
mit
102
{% block organization_item %} <section class="group-list module module-narrow module-shallow"> {% block organization_item_header %} <header class="module-heading"> {% set url=h.url_for(controller='organization', action='read', id=organization.name) %} {% set truncate=truncate or 0 %} ...
cbgaindia/ckanext-openbudgetsin_theme
ckanext/openbudgetsin_theme/templates/snippets/organization_item.html
HTML
mit
1,563
/** * **************************************************************************** * Copyright (c) 2010-2016 by Min Cai (min.cai.china@gmail.com). * <p> * This file is part of the Archimulator multicore architectural simulator. * <p> * Archimulator is free software: you can redistribute it and/or modify * it und...
mcai/Archimulator
src/main/java/archimulator/core/PhysicalRegisterFile.java
Java
mit
3,464
package TheOtherOne::Command::client; use strict; use warnings; use feature ':5.14'; use List::Util qw(none); use TheOtherOne -command; use TheOtherOne::Client; my $socket_key = lc TheOtherOne::Client::SOCKET; my $http_key = lc TheOtherOne::Client::HTTP; sub abstract { 'connect to too server'; } sub opt_spec...
oogatta/TheOtherOne
lib/TheOtherOne/Command/client.pm
Perl
mit
1,039
package org.zalando.logbook.spring.webflux; import org.reactivestreams.Publisher; import org.springframework.core.io.buffer.DataBuffer; import org.springframework.http.server.reactive.ServerHttpResponse; import org.springframework.http.server.reactive.ServerHttpResponseDecorator; import reactor.core.publisher.Mono; ...
zalando/logbook
logbook-spring-webflux/src/main/java/org/zalando/logbook/spring/webflux/BufferingServerHttpResponse.java
Java
mit
1,210
require('modules/collision') require('modules/player') require('modules/bullet') function love.load(args) player = Player:new() walls = {} table.insert(walls, collision.collider:addRectangle(256, 256, 512, 16)) bullets = {} end function love.update(dt) player:setState('leg', 'idle') player:setState('torso', 'id...
Julzso23/blowthedoorsoff
main.lua
Lua
mit
1,638
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `XKB_KEY_osfUndo` constant in crate `wayland_kbd`."> <meta ...
mcanders/bevy
doc/wayland_kbd/keysyms/constant.XKB_KEY_osfUndo.html
HTML
mit
3,827
/** * The MIT License (MIT) * * Copyright (c) 2017 Vseslav Sekorin */ package com.vssekorin.bilogic.util; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.experimental.Accessors; /** * The pair. * * @author Vseslav Sekorin (vssekorin@gmail.com) * @version $Id$ * @param <T> Type of elemen...
VsSekorin/BiLogic
src/main/java/com/vssekorin/bilogic/util/Pair.java
Java
mit
611
class CreateSummaries < ActiveRecord::Migration def change create_table :summaries do |t| t.integer :user_id t.integer :day_id t.text :content t.timestamps end end end
loganhasson/lykke
db/migrate/20140531195812_create_summaries.rb
Ruby
mit
205
import org.junit.Test; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.*; public class P61_CyclicalFigurateNumbersTest { @Test public void getSum() throws Exception { List<Long> list = new ArrayList<>(); list.add(1234L); assertEquals(1234, P61_Cyclica...
bruckhaus/challenges
java_challenges/ProjectEuler/test/P61_CyclicalFigurateNumbersTest.java
Java
mit
940
/** * iOS and Android apis should match. * It doesn't matter if you export `.ios` or `.android`, either one but only one. */ export * from './mapbox.ios'; // Export any shared classes, constants, etc. export * from './mapbox.common';
sK0pe/nativescript-mapbox
src/index.d.ts
TypeScript
mit
237
/* global Mousetrap */ import { typeOf } from '@ember/utils'; import { get } from "@ember/object"; export function bindKeyboardShortcuts(context) { const shortcuts = get(context, 'keyboardShortcuts'); if (typeOf(shortcuts) !== 'object') { return; } context._mousetraps = []; Object.keys(shortcuts).forEa...
Skalar/ember-keyboard-shortcuts
addon/index.js
JavaScript
mit
2,558
/** * Transforms __ref to ref * @param {object} props * @returns {object} * @private */ export default (oldProps = {}) => { const { __ref, ...props } = oldProps if (!__ref) return oldProps return { ...props, ref: __ref } }
robinpokorny/transform-props-with
src/transform-ref.js
JavaScript
mit
236
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!...
ccatalfo/ccatalfo.github.io
_site/about/index.html
HTML
mit
8,156
<?php namespace MoneyKeeper\Models; use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Reminders\RemindableInterface; /** * User model * */ class User extends Eloquent implements UserInterface, RemindableInterface { use UserTrait, ...
tokarev-yuriy/moneyKeeper
app/MoneyKeeper/Models/User.php
PHP
mit
586
<!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/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>OpenNI 1.5.4: XnDep...
ipab-rad/ocv_kinect
external/OpenNI/Documentation/html/struct_xn_depth_meta_data.html
HTML
mit
5,655
module Main (main) where import System.Console.GetOpt import System.IO import System.Environment import System.Exit import qualified System.IO as SIO import Data.ByteString import Data.Word import Data.ListLike.CharString import qualified Data.Iter...
danidiaz/haskell-sandbox
iteratee.hs
Haskell
mit
2,218
--- layout: post title: "A Shiny-app Serves as Shiny-server Load Balancer" date: 2014-04-30 13:51 comments: true categories: R Shiny --- The Shiny-app on open-source edition Shiny-server has only one concurrent, which means it can run only for one user at a time point. But it can host multiple Shiny-apps, which can ru...
withr/withr.github.io
_posts/2014-04-30-a-shiny-app-serves-as-shiny-server-load-balancer.md
Markdown
mit
3,609
<?php declare(strict_types=1); namespace Shlinkio\Shlink\Rest\Action\Visit; use Laminas\Diactoros\Response\JsonResponse; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Shlinkio\Shlink\Common\Paginator\Util\PagerfantaUtilsTrait; use Shlinkio\Shlink\Core\Model\VisitsParams; us...
shlinkio/shlink
module/Rest/src/Action/Visit/NonOrphanVisitsAction.php
PHP
mit
1,215
package com.distributeddb.reno; import java.util.ArrayList; import java.util.concurrent.ThreadLocalRandom; import java.util.Iterator; import java.util.List; import org.junit.Assert; import org.junit.Test; import com.distributeddb.errors.EncryptionError; import com.distributeddb.utils.FileBlock; import com.distribute...
rthotakura97/decentralized-database
src/test/java/com/distributeddb/reno/DataManipulatorTest.java
Java
mit
4,313
{% comment %} -- head.html -- {% endcomment %} <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title> <meta name="description" content="{% if page....
amaliebarras/data-portal-new
_includes/head.html
HTML
mit
4,891
<?php namespace Pinq\Queries\Requests; /** * Request query for a double of the sum of all the projected values * * @author Elliot Levin <elliotlevin@hotmail.com> */ class Sum extends ProjectionRequest { public function getType() { return self::SUM; } public function traverse(IRequestVisit...
TimeToogo/Pinq
Source/Queries/Requests/Sum.php
PHP
mit
389