repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Lambda-3/Stargraph
stargraph-core/src/test/java/net/stargraph/test/RegExFilterProcessorTest.java
5214
package net.stargraph.test; /*- * ==========================License-Start============================= * stargraph-core * -------------------------------------------------------------------- * Copyright (C) 2017 Lambda^3 * -------------------------------------------------------------------- * Permission is hereb...
mit
json-api-dotnet/JsonApiDotNetCore
src/JsonApiDotNetCore/Queries/Expressions/SparseFieldSetExpressionExtensions.cs
3103
using System.Collections.Immutable; using System.Linq.Expressions; using JetBrains.Annotations; using JsonApiDotNetCore.Configuration; using JsonApiDotNetCore.Resources; using JsonApiDotNetCore.Resources.Annotations; namespace JsonApiDotNetCore.Queries.Expressions; [PublicAPI] public static class SparseFieldSetExpres...
mit
CrystalshardCA/Ruby
src/main/java/ca/crystalshard/adapter/persistance/repositories/MySqlJobRepository.java
1426
package ca.crystalshard.adapter.persistance.repositories; import ca.crystalshard.adapter.persistance.SqlTableNames; import ca.crystalshard.adapter.persistance.Storage; import com.google.inject.Inject; public class MySqlJobRepository extends JobRepositoryBase { @Inject public MySqlJobRepository(Storage stora...
mit
josephzhao/cvcbrowser
src/Yorku/JuturnaBundle/Resources/public/javascripts/keydragzoom.js
19683
/** * @name Key Drag Zoom * @version 1.0 * @author: Nianwei Liu [nianwei at gmail dot com] & Gary Little [gary at luxcentral dot com] * @fileoverview This library adds a drag zoom capability to a Google map. * When drag zoom is enabled, holding down a user-defined hot key <code>(shift | ctrl | alt)</code> ...
mit
szyryanov/IZIn
Dev/js/loadImage.js
1294
 function loadImage($imgElement, src, callback) { // if (src) { //$element.attr("src", ""); $imgElement.attr("src", src); } // // if (!loadImage.failedSrcs) { loadImage.failedSrcs = {}; } else { if (loadImage.failedSrcs[src]) { callCallback(false,...
mit
ajayk/homebrew-nginx
Formula/nginx-full.rb
14708
class NginxFull < Formula desc "HTTP(S) server, reverse proxy, IMAP/POP3 proxy server" homepage "http://nginx.org/" url "http://nginx.org/download/nginx-1.8.1.tar.gz" sha256 "8f4b3c630966c044ec72715754334d1fdf741caa1d5795fb4646c27d09f797b7" head "http://hg.nginx.org/nginx/", :using => :hg devel do url ...
mit
cgaebel/soa
src/lib.rs
412
//! Growable struct-of-array types with 16-byte aligned heap allocated contents. #![feature(alloc)] #![feature(collections)] #![feature(core)] #![feature(unsafe_no_drop_flag)] #![feature(filling_drop)] extern crate alloc; extern crate collections; extern crate core; pub mod soa2; pub mod soa3; pub mod soa4; mod una...
mit
yasushiito/test_speech_balloon
test/functional/test_speech_balloon/balloons_controller_test.rb
174
require 'test_helper' module TestSpeechBalloon class BalloonsControllerTest < ActionController::TestCase # test "the truth" do # assert true # end end end
mit
razzul/laravel-vue-admin
src/Installs/app/Controllers/LaravelVueAdmin/DashboardController.php
712
<?php /** * Controller genrated using LaravelVueAdmin * Help: https://github.com/razzul/laravel-vue-admin */ namespace App\Http\Controllers\LaravelVueAdmin; use App\Http\Controllers\Controller; use App\Http\Requests; use Illuminate\Http\Request; /** * Class DashboardController * @package App\Http\Controllers *...
mit
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/requests/UserActivityCollectionResponse.java
761
// Template Source: BaseEntityCollectionResponse.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------...
mit
aureliano/da-mihi-logs
evt-bridge-converter/src/main/java/com/github/aureliano/evtbridge/converter/ConverterType.java
128
package com.github.aureliano.evtbridge.converter; public enum ConverterType { EVENT_COLLECTOR, SCHEDULER, INPUT, OUTPUT; }
mit
mstream/screeps
src/test/fn.isRoomTileReserved.js
2302
const {expect} = require("chai"); const isRoomTileReserved = require("../main/fn.isRoomTileReserved"); describe("isRoomTileReserved", () => { it("throws exception when cords are out of range", () => { const room = {name: "room1"}; const memory = {rooms: {room1: {}}}; const ctx = {memory...
mit
hahwul/mad-metasploit
archive/exploits/hardware/remote/30915.rb
3102
## # This module requires Metasploit: http//metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## require 'msf/core' class Metasploit3 < Msf::Exploit::Remote Rank = GreatRanking include Msf::Exploit::Remote::Tcp include Msf::Exploit::CmdStagerEcho def initi...
mit
ArchimediaZerogroup/KonoUtils
app/policies/kono_utils/base_editing_policy_concern.rb
1829
require 'active_support/concern' module KonoUtils module BaseEditingPolicyConcern extend ActiveSupport::Concern included do ## # elenco degli attributi filtrati alla ricezione nel controller # @return [Array<Symbol>] def permitted_attributes cleard_columns+virtual_appended_a...
mit
shueno/bgit
src/main/java/bgit/model/WorkNodeListener.java
219
package bgit.model; import java.io.File; public interface WorkNodeListener { void workNodeCreated(File absolutePath); void workNodeDeleted(File absolutePath); void workNodeChanged(File absolutePath); }
mit
jsynowiec/kohana-module-auto-i18n
classes/i18n.php
3435
<?php defined('SYSPATH') or die('No direct script access.'); /** * A patch for the Internationalization (i18n) class. * * @package I18n * @author Mikito Takada * @reviewer Jakub Synowiec * @see http://blog.mixu.net/2010/06/02/kohana3-automatically-collect-internationalization-strings/...
mit
jips/mls-laravel
resources/views/defect/tire/tables/prod_edit.blade.php
3726
@extends('layouts.app_defect_t') @section('content') <div class='col-sm-4 col-sm-offset-4'> <h2 class='text-center'>Редагувати типорозмір <div class="pull-right"> {!! Form::open(['url' => '/defect/tire/tables/prod/' . $prod->id, 'method' => 'DELETE']) !!} {!! Form::submit('Видалити'...
mit
io7m/coreland-posix-ada-doc
make-proc_map.lua
1759
#!/usr/bin/env lua local io = require ("io") local argv = arg local argc = table.maxn (argv) assert (argc == 1) local spec_file = io.open (argv[1]) assert (spec_file) -- -- Print pair -- local function print_pair (package, orig_name, ada_name) assert (type (package) == "string") assert (type ...
mit
braggarts-labo/ore-fol-ui
lib/components/templates.js
65
'use strict' module.exports = require('../../assets/templates')
mit
lloonnyyaa/reviews
html/lib/selectric/jquery.selectric.js
36151
(function(factory) { /* global define */ /* istanbul ignore next */ if ( typeof define === 'function' && define.amd ) { define(['jquery'], factory); } else if ( typeof module === 'object' && module.exports ) { // Node/CommonJS module.exports = function( root, jQuery ) { if ( jQuery === undefin...
mit
Bonsanto/spacetrip
SpaceTrip.js
1319
function getRandomInt(min, max) { max++; return Math.floor(Math.random() * (max - min)) + min; } var SpaceTrip = function (particleNumber, particleLink, minSpeed, maxSpeed, minSize, maxSize) { var width = window.screen.width; var height = window.screen.height; var canvas = document.createElement("c...
mit
dimkyt/SGIVPL
src/lib3D/BBox3D.cpp
638
#include "lib3D\BBox3D.h" #include <limits> lib3d::BBox3D::BBox3D() : m_min{FLT_MAX}, m_max{FLT_MIN} { } void lib3d::BBox3D::clear() { m_min.x = m_min.y = m_min.z = FLT_MAX; m_max.x = m_max.y = m_max.z = FLT_MIN; } void lib3d::BBox3D::add_point(const glm::vec3& p) { if (p.x < m_min.x) m_min.x = p.x; i...
mit
NetOfficeFw/NetOffice
Source/OWC10/DispatchInterfaces/ChAxis.cs
17545
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OWC10Api { /// <summary> /// DispatchInterface ChAxis /// SupportByVersion OWC10, 1 /// </summary> [SupportByVersion("OWC10", 1)] [EntityType(EntityType.IsDispatchInterface)] public cla...
mit
madewithlove/glue
src/Console/Commands/ConfigurationCommand.php
4550
<?php /* * This file is part of Glue * * (c) madewithlove <heroes@madewithlove.be> * * For the full copyright and license information, please view the LICENSE */ namespace Madewithlove\Glue\Console\Commands; use League\Container\Container; use League\Container\ImmutableContainerAwareInterface; use Madewithlove...
mit
OkveeNet/fuel-start
fuel/app/classes/controller/account/edit.php
11329
<?php /** * Account edit * * @author Vee W. * @license http://opensource.org/licenses/MIT * */ class Controller_Account_Edit extends \Controller_BaseController { public function action_deleteAvatar() { // get account id from cookie $account = new \Model_Accounts(); $cookie = $ac...
mit
ptomulik/clxx
src/doc/clxx/mainpage.hpp
4559
// @COPYRIGHT@ // Licensed under MIT license (LICENSE.txt) /** * \mainpage Clxx - c++11 library for OpenCL programmers * * Clxx is a C++ library which exposes OpenCL's functionality in an * object-oriented way. Its goal is to simplify usage of the OpenCL functions * by providing type-safe and easy to use interfac...
mit
pgraham3/postmark_webhooks
server/settings.js
1051
export default { "SendBouncesNotifications": false, "SendOpensNotifications": false, "SendClicksNotifications": false, "SendInboundNotifications": false, "SendDeliveredNotifications": false, "SendViolationsNotifications": false, "SendBouncesToSender": false, "BouncesFromEmailAddress": "p...
mit
adityanuar/DicodingAndroidNative1
HitungLuas/app/src/main/java/com/dicoding/hitungluas/MainActivity.java
1803
package com.dicoding.hitungluas; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private EditText edtPanjang, edt...
mit
n1kk/hmsm.js
src/State.ts
4193
import {default as Transition, AnimatedTransitionOptions} from "./AnimatedTransition"; import Emmiter from "./Emitter"; import './_polyfills' export enum StateMemoryMode { None = "none", Deep = "deep", Shallow = "shallow", Inherited = "inherited", } export interface StateOptions { name?: string isDefault...
mit
aqrln/prymind
wsgi/openshift/prymind/tester.py
1807
from threading import Thread from prymind.models import SubmissionTest from urllib.request import urlopen from urllib.parse import urlencode import json def run(submission): languages = { 'python3': 24, 'pascal': 9, 'c': 6, 'cpp': 7 } source = submission.content language = languages[submission.language] ...
mit
kingaza/aSpree
app/src/main/java/com/github/kingaza/aspree/MainActivity.java
6444
package com.github.kingaza.aspree; import android.app.Activity; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.os.Bundle; import android.view.LayoutInflater; import android.v...
mit
michaelBenin/sqlalchemy
lib/sqlalchemy/dialects/oracle/base.py
49722
# oracle/base.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: oracle :name: Oracle Oracle version 8 through current (11g at...
mit
carlospaelinck/publications-js
src/components/new-document/index.tsx
3782
import React from "react"; import styled from "styled-components"; import flowRight from "lodash/fp/flowRight"; import Button from "../ui/framed-button"; import FormInput from "../ui/form-input"; import { ModalButtonContainer } from "../ui/button-container"; import { ModalHeader } from "../ui/text"; import { ModalConte...
mit
TsvetanMilanov/TelerikAcademyHW
02.CSharpPartTwo/06_StringsAndTextProcessing/StringsAndTextProcessing/04SubStringInText/SubStringInText.cs
1643
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; /*Problem 4. Sub-string in text Write a program that finds how many times a sub-string is contained in a given text (perform case insensitive search). */ namespace _04SubStringInText { class SubS...
mit
bandwidthcom/java-bandwidth
src/test/java/com/bandwidth/sdk/model/RecordingTest.java
4433
package com.bandwidth.sdk.model; import com.bandwidth.sdk.AppPlatformException; import com.bandwidth.sdk.MockClient; import com.bandwidth.sdk.RestResponse; import com.bandwidth.sdk.TestsHelper; import org.apache.http.HttpStatus; import org.junit.Before; import org.junit.Test; import java.util.List; import static org...
mit
katyaka/ultimate-samurai-showdown
entrants/Gargoyle.java
376
public class Gargoyle { public static void main(String args[]) { if (args.length < 5 || Integer.valueOf(args[4]) > 0) { System.out.println("IPO".charAt((int)(Math.random()*3))); } else if (args[0].charAt(args[0].length()-1) != 'G') { System.out.println('G'); } else {...
mit
pione/pione
lib/pione/log/message-log.rb
4401
module Pione module Log # MessageLog is a set of utility methods for sending messages to user. module MessageLog # @api private MESSAGE_QUEUE = Queue.new # Message queue thread Thread.new { while msg = MESSAGE_QUEUE.pop puts msg end } # @!group M...
mit
CodeMuhammed/taskcoin
public/js/custom/alert.js
1219
angular.module('alertModule' , []) .factory('alertService' , function(){ var alertApi; // function register(api){ alertApi = api; } // function alert(alertObj){ alertApi.addAlert(alertObj); } // return{ register:register, alert:alert...
mit
hendryl/Famous-Places-CMS
src/app/continents/manage.controller.js
1208
class ManageController { constructor($scope, toastr, _, ContinentFactory) { 'ngInject'; $scope.headers = [ { 'title':'ID', 'column':'continent_id' }, { 'title':'Name', 'column':'name' }, { 'title':'Actions', 'column':'' }, ...
mit
lesovsky/uber-scripts
cheatsheets/storcli.cs
1070
StorCli is a RAID utility For LSI MegaRAID Controllers cx - controller, for example c0 vx - volumegroup (RAID), for example v0 # storcli cx show help show controller related help # storcli vx show help show virtual drive related help Troubleshoot # storcli /c0 show he...
mit
balintsoos/WAF-bead2
potzh/MyLibraryOwin/MyLibrary/Properties/AssemblyInfo.cs
1354
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("My...
mit
w-y/ecma262-jison
lib/bnf/BindingElement.js
351
'use strict'; module.exports = { conditions: [''], name: 'BindingElement', rules: ['SingleNameBinding', 'BindingPattern Initializer_In', 'BindingPattern'], handlers: ['$$ = $1', '$$ = {key: $1, value: $2}', '$$ = {key: $1, value: $1}'], subRules: [require('./SingleNameBinding'), require('./BindingPattern'), ...
mit
FiftyNine/ScpperDB
module/Application/src/Application/Factory/Mapper/RevisionDbSqlMapperFactory.php
1143
<?php namespace Application\Factory\Mapper; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; use Zend\Stdlib\Hydrator\ClassMethods; use Zend\Stdlib\Hydrator\NamingStrategy\MapNamingStrategy; use Application\Mapper\RevisionDbSqlMapper; use Application\Utils\DbConsts\DbViewRevi...
mit
obsidian-btc/event-store-messaging
test/bench/handler/define_handler_methods.rb
367
require_relative 'handler_init' context "Handler Macro" do handler = EventStore::Messaging::Controls::Handler.example test "Defines handler methods" do assert(handler.respond_to? :handle_some_message) end test "Registers message classes" do handler.class.message_registry.registered? EventStore::Messa...
mit
aabenoja/react-prop-types
test/singlePropFromSpec.js
689
import singlePropFrom from '../src/singlePropFrom'; describe('singlePropFrom', function() { function validate(testProps) { const propList = ['children', 'value']; return singlePropFrom(propList)(testProps, 'value', 'Component'); } it('Should validate OK if only one listed prop in used', function() { ...
mit
zachdj/ultimate-tic-tac-toe
services/SceneManager.py
1222
from scenes.MainMenu import MainMenu from scenes.SetupGame import SetupGame from scenes.PlayGame import PlayGame from scenes.GameCompleted import GameCompleted from scenes.SetupExperiment import SetupExperiment from scenes.RunExperiment import RunExperiment """ This module provides convenience functions for switching ...
mit
evjan/LatteDB
LatteDB/IStreamReaderWriter.cs
192
using System; using System.Collections.Generic; namespace LatteDB { public interface IStreamReaderWriter { void AppendToStream(string stringToAppend); IList<string> ReadAllLines(); } }
mit
RazorFlow/framework
jsrf/src/vendor/kendo/cultures/kendo.culture.or.js
3483
/** * Copyright 2014 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
mit
DenisBiondic/ScopedUnitOfWork
ScopedUnitOfWork.Interfaces/Exceptions/IncorrectUnitOfWorkUsageException.cs
711
using System; using System.Runtime.Serialization; namespace ScopedUnitOfWork.Interfaces.Exceptions { [Serializable] public class IncorrectUnitOfWorkUsageException : InvalidOperationException { public IncorrectUnitOfWorkUsageException() { } public IncorrectUnitOfWorkUsageExc...
mit
AndriianChestnykh/DebtManager
routes/debts.js
3085
'use strict'; var helper = require('../helpers/helper'); var express = require('express'); var router = express.Router(); /** * Get debts */ router.get('/', function (req, res) { // TODO: replace this. get debts from contract var debts = [ { id: 1, orderId: 1, co...
mit
GlowstoneMC/GlowstonePlusPlus
src/main/java/net/glowstone/net/codec/play/entity/EntityHeadRotationCodec.java
841
package net.glowstone.net.codec.play.entity; import com.flowpowered.network.Codec; import com.flowpowered.network.util.ByteBufUtils; import io.netty.buffer.ByteBuf; import java.io.IOException; import net.glowstone.net.message.play.entity.EntityHeadRotationMessage; public final class EntityHeadRotationCodec implements...
mit
luishsilva/GerenciadorPortal
src/Portal/AdminBundle/Resources/config/doctrine/metadata/orm/Menu.php
955
<?php use Doctrine\ORM\Mapping as ORM; /** * Menu * * @ORM\Table(name="menu", indexes={@ORM\Index(name="idx_cod_escola_entidade_desc_menu", columns={"desc_menu"})}) * @ORM\Entity */ class Menu { /** * @var integer * * @ORM\Column(name="id_menu", type="integer", nullable=false) * @ORM\Id...
mit
DoctorMcKay/raw.js
api/modposts.js
1625
var reddit = require('../index.js'); // reddit._addSimpleRequest = function(name, endpoint, method, args, constArgs, callback) reddit._addSimpleRequest("approve", "approve", "POST", ["id"], null, "_noResponse"); reddit._addSimpleRequest("ignoreReports", "ignore_reports", "POST", ["id"], null, "_noResponse"); re...
mit
MargaritaLubimova/python_park_mail
homework/homework3.4.5/weather.py
3114
import datetime import json import urllib.request class Weather(): def __time_converter(self, time): converted_time = datetime.datetime.fromtimestamp(int(time)).strftime('%I:%M %p') return converted_time def __url_builder(self, city_id): user_api = '0b1eaf7ce235a1ebaba14d5e07ee4228' ...
mit
jorgeyp/brew-tutor
mobile/src/main/java/com/jorgeyp/brewtutor/BeerAdapter.java
3212
package com.jorgeyp.brewtutor; import android.content.Context; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; import and...
mit
patrick91/pycon
backend/api/grants/types.py
79
import strawberry @strawberry.type class GrantRequest: id: strawberry.ID
mit
NetOfficeFw/NetOffice
Source/OWC10/Enums/OCCommandId.cs
2824
using System; using NetOffice; using NetOffice.Attributes; namespace NetOffice.OWC10Api.Enums { /// <summary> /// SupportByVersion OWC10 1 /// </summary> [SupportByVersion("OWC10", 1)] [EntityType(EntityType.IsEnum)] public enum OCCommandId { /// <summary> /// SupportByVersion OWC10 1 /// </summary>...
mit
ThiagoInocencio/Competitive-Programming-Solutions
Uri-Online-Judge/cpp/1028 - Collectable Cards.cpp
505
#include <stdio.h> #include <iostream> using namespace std; int N, F1, F2, x, dividendo, divisor; int main() { cin >> N; while(N>0) { cin >> F1 >> F2; if(F1==F2) { cout << F1 << "\n"; N--; continue; } if(F2>F1) { x = F2; F2 = F1; F1 = x; } dividendo = F1; divisor = F2; ...
mit
nicmart/Rulez
src/Evaluation/PositivePropositionEvaluation.php
1071
<?php /** * This file is part of library-template * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Nicolò Martini <nicmartnic@gmail.com> */ namespace NicMart\Rulez\Evaluation; class PositivePropositionEvaluation implement...
mit
bzurkowski/exchange
db/migrate/20150409204101_create_assignations.rb
287
class CreateAssignations < ActiveRecord::Migration def change create_table :assignations do |t| t.integer :schedule_id t.integer :term_id t.timestamps null: false end add_index :assignations, :schedule_id add_index :assignations, :term_id end end
mit
factcenter/inchworm
src/main/java/org/factcenter/fastgc/YaoGC/AESComponents/MixColumns.java
1354
// Copyright (C) 2010 by Yan Huang <yhuang@virginia.edu> package org.factcenter.fastgc.YaoGC.AESComponents; import org.factcenter.fastgc.YaoGC.CircuitGlobals; import org.factcenter.fastgc.YaoGC.CompositeCircuit; import org.factcenter.fastgc.YaoGC.State; public class MixColumns extends CompositeCircuit { public Mix...
mit
FourChar/Ando
D2DOverlay.cpp
8199
#include "D2DOverlay.hpp" #include "Helpers.hpp" #include <string> #include <locale> #include <codecvt> #ifdef UNICODE #define DrawText DrawTextW #else #define DrawText DrawTextA #endif // !UNICODE namespace ando { namespace overlay { namespace concrete { using logger::ELogLevel; D2DO...
mit
V4Fire/Client
src/form/b-input/test/runners/form/messages.js
3732
// @ts-check /*! * V4Fire Client Core * https://github.com/V4Fire/Client * * Released under the MIT license * https://github.com/V4Fire/Client/blob/master/LICENSE */ /** * @typedef {import('playwright').Page} Page */ const {initInput} = include('src/form/b-input/test/helpers'); /** @param {Page} page */ mo...
mit
aliceservices/alice
src/constants/ActionTypes.ts
817
/// <reference path="./ActionTypes.d.ts" /> import reduxCrud from 'redux-crud' export const APP_ICON_CLICK = 'APP_ICON_CLICK' export const CURRENT_WINDOW_ID = 'CURRENT_WINDOW_ID' export const DOCUMENT_RESIZE = 'DOCUMENT_RESIZE' export const EMOJI_CHANGE = 'EMOJI_CHANGE' export const KEY_PRESS = 'KEY_PRESS' expor...
mit
dzuvic/structured-protractor-example
protractor.conf.js
165
exports.config = { framework: 'jasmine2', seleniumAddress: 'http://localhost:4444/wd/hub', baseUrl: 'http://juliemr.github.io', specs: ['./spec/**/*.js'] };
mit
angularcolombia/angularcolombia.com
src/app/shared/shared.module.ts
2019
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatButtonModule, MatCardModule, MatFormFieldModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatSidenavModule, MatSnackBarModule, MatToolbarModule, MatMenuModule, MatTabsModule, ...
mit
ridibooks/simple-notifier
src/common/common-util.js
6369
/** * Util functions * * @since 1.0.0 */ /** * Get client IP address * * Will return 127.0.0.1 when testing locally * Useful when you need the user ip for geolocation or serving localized content * * @param {Object} request * @returns {string} ip */ exports.getClientIp = (request) => { // workaround to g...
mit
BurnerCoin/BurnerCoin
src/qt/locale/bitcoin_da.ts
129452
<?xml version="1.0" ?><!DOCTYPE TS><TS language="da" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BurnerCoin</source> <translation>Om BurnerCoin</translation> </message> <message> <loca...
mit
RikoOphorst/LudumDare38
LD38/Assets/NotificationCenter/NotificationCenter.cs
2081
using System.Collections; using System.Collections.Generic; using UnityEngine; public enum NotificationToastType { NotificationToastPositive, NotificationToastNegative, NotificationToastWarning, NotificationToastNeutral } public class NotificationCenter : MonoBehaviour { public NotificationToast ...
mit
stoplightio/gitlabhq
spec/lib/banzai/filter/inline_metrics_redactor_filter_spec.rb
1280
# frozen_string_literal: true require 'spec_helper' describe Banzai::Filter::InlineMetricsRedactorFilter do include FilterSpecHelper set(:project) { create(:project) } let(:url) { urls.metrics_dashboard_project_environment_url(project, 1, embedded: true) } let(:input) { %(<a href="#{url}">example</a>) } l...
mit
tiipiik/oc-catalog
updates/create_brands_table.php
1557
<?php namespace TiipiiK\Catalog\Updates; use Schema; use October\Rain\Database\Updates\Migration; class CreateBrandsTable extends Migration { public function up() { Schema::create('tiipiik_catalog_brands', function ($table) { $table->engine = 'InnoDB'; $table->increments('id');...
mit
ap--/python-seabreeze
src/libseabreeze/src/common/features/FeatureImpl.cpp
2737
/***************************************************//** * @file FeatureImpl.cpp * @date March 2016 * @author Ocean Optics, Inc. * * LICENSE: * * SeaBreeze Copyright (C) 2016, Ocean Optics Inc * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associ...
mit
lujin123/algorithms
leetcode/golang/896_test.go
419
package leetcode import ( "testing" "github.com/stretchr/testify/assert" ) func TestIsMonotonic(t *testing.T) { assert.EqualValues(t, true, isMonotonic([]int{1, 2, 2, 3})) assert.EqualValues(t, true, isMonotonic([]int{6, 5, 4, 4})) assert.EqualValues(t, false, isMonotonic([]int{1, 3, 2})) assert.EqualValues(t,...
mit
Schille/weimar-graphstore
test_insert.py
2222
import Pyro4 import time import multiprocessing as mp from client.requestgraphelements import RequestVertex from client.elementtype import VertexType import sys import Queue from client.hyperdexgraph import HyperDexGraph from client.requestgraphelements import * import names, random import remote.config import time d...
mit
thaigialai1987/quanlycongvan
app/Models/Nguoiky.php
670
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Nguoiky * @package App\Models * @version October 16, 2016, 2:19 am UTC */ class Nguoiky extends Model { use SoftDeletes; public $table = 'nguoikies'; protected $dates = ['deleted_at']; ...
mit
BlueSkeye/CSCapstone
CSCapstone/CapstoneProxyImport.cs
768
using System; using System.Runtime.InteropServices; namespace CSCapstone { /// <summary> /// Capstone Proxy Import. /// </summary> public static class CapstoneProxyImport { [DllImport("CSCapstone.Proxy.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "CapstoneArmDetail")] ...
mit
DavidLievrouw/WordList
src/WordList.Tests/Processing/WordCombinationFinderTests.cs
5152
using System; using System.Collections.Generic; using FakeItEasy; using NUnit.Framework; namespace WordList.Processing { [TestFixture] public class WordCombinationFinderTests { int _desiredLength; WordCombinationFinder _sut; IWordsIndexFactory _wordsIndexFactory; IAllPossibleCombinationsFinder _al...
mit
zigomir/rubber_ring
app/assets/javascripts/rubber_ring/application.js
684
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat...
mit
aqtrans/gothing
things/things.go
1629
package things // Thing is the interface that all applicable things should implement type Thing interface { Name() string UpdateHits() Date() int64 GetType() string } // Sorting functions type ThingByDate []Thing func (a ThingByDate) Len() int { return len(a) } func (a ThingByDate) Swap(i, j int) ...
mit
sanderblue/polymath
tests/bootstrap.php
219
<?php require_once dirname(__DIR__) . '/vendor/autoload.php'; call_user_func(function() { $loader = new \Composer\Autoload\ClassLoader(); $loader->add('Polymath\Test', __DIR__); $loader->register(); });
mit
rivetweb/rodzeta.pageoptimizeplus
lang/ru/options.php
905
<?php $MESS["RODZETA_PAGEOPTIMIZEPLUS_MAIN_TAB_SET"] = "Íàñòðîéêè"; $MESS["RODZETA_PAGEOPTIMIZEPLUS_MAIN_TAB_TITLE_SET"] = "Íàñòðîéêà ïàðàìåòðîâ ìîäóëÿ"; $MESS["RODZETA_PAGEOPTIMIZEPLUS_OPTIONS_SAVED"] = "Íàñòðîéêè ñîõðàíåíû"; $MESS["RODZETA_PAGEOPTIMIZEPLUS_JS_CSS_SECTION"] = "Îïòèìèçàöèÿ js, css"; $MESS["RODZETA_PAG...
mit
axxilius/larepo
src/EntityDataFilter.php
2755
<?php /** * Created by PhpStorm. * User: axxil * Date: 07.10.16 * Time: 8:56 */ namespace axxilius\larepo; abstract class EntityDataFilter { protected $filterableObject; protected $queryConditions; protected static $conditionsMap = [ '='=>'Equal', '<>'=>'NotEqual', '>'=>'More'...
mit
AfterShip/apps-opencart
for_opencart_1.5.x/1.5.4/upload/admin/language/english/module/da_track_shipment.php
2017
<?php // Heading $_['heading_title'] = 'DragonApp Track Shipment v1.5.4'; // Text $_['text_module'] = 'Modules'; $_['text_success'] = 'Success: You have modified module DragonApp Track Shipment!'; $_['text_get_key'] = '<a target="_blank" href="https://www.aftership.com/">Sign up free</a> ...
mit
samanthavholmes/railsblog
app/models/entry.rb
97
class User < ActiveRecord::Base validates :title, :body, presence: true belongs_to :user end
mit
alexdean/eight_corner
lib/eight_corner.rb
318
require 'logger' require 'interpolate' require "eight_corner/version" require 'eight_corner/base' require 'eight_corner/bounds' require 'eight_corner/figure' require 'eight_corner/quadrant' require 'eight_corner/point' require 'eight_corner/string_mapper' require 'eight_corner/svg_printer' module EightCorner end
mit
theodi/forkbomb
config/initializers/github.rb
128
class Forkbomb::Application def github @github ||= Github.new :oauth_token => ENV['FORKBOMB_GITHUB_OAUTH_TOKEN'] end end
mit
beny78/qwebs-https
lib/qwebs-https.js
1657
/*! * qwebs-https * Copyright(c) 2017 Benoît Claveau <benoit.claveau@gmail.com> * MIT Licensed */ "use strict"; const fs = require("fs"); const DataError = require("qwebs").DataError; const https = require("https"); class HttpsServer { constructor($config, $qwebs) { if (!$config) throw new DataError({ message...
mit
lkabuku/futsal
src/Futsal/TournamentBundle/Admin/GameAdmin.php
4613
<?php // src/Futsal/TournamentBundle/Admin/GameAdmin.php namespace Futsal\TournamentBundle\Admin; use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\ListMapper; use Sonata\AdminBundle\Datagrid\DatagridMapper; use Sonata\AdminBundle\Form\FormMapper; use Sonata\AdminBundle\Route\RouteCollection; clas...
mit
dizballanze/planner
planner/frame/title.py
5681
from planner.frame.figure import Figure from svgwrite import shapes, text class SampleTitle(Figure): """ Sample title block. """ LINE_ATTRIBS = {"stroke-width": 0.5, "stroke": "#000", "fill-opacity": 0} DEFAULT_LABEL_ATTRIBS = {"font-size": 7, "text-anchor": "middle", "font-family": "Arial"} ...
mit
FARIDMESCAM/Manufacture
src/fsm/EchangeBundle/Controller/PeriodeController.php
4848
<?php namespace fsm\EchangeBundle\Controller; use fsm\EchangeBundle\Entity\Periode; use fsm\EchangeBundle\Form\PeriodeType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use ...
mit
ax003d/sichu_web
sichu/cabinet/views.py
40696
# -*- coding: utf-8 -*- import logging import sys from django.contrib.auth import REDIRECT_FIELD_NAME, authenticate, \ login as auth_login, logout as auth_logout from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AuthenticationForm, PasswordResetForm, \ SetPassword...
mit
muhalfian/imaskaduta
application/views/startPage.php
21604
<html> <head> <title>IMASKADUTA | Ikatan Mahasiswa Alumni SMK Negeri 2 Surakarta</title> <?php include "header.php"; ?> </head> <body> <nav class="navbar navbar-default navbar-fixed-top menu-atas"> <div class="container-fluid"> <!-- Brand and toggle get grouped for better mob...
mit
shlomiassaf/ngrx-domains
src/app/domains/books/queries.ts
5167
import { createSelector } from 'reselect'; import { Model, BooksState, Query, Queries, Root, combineRootFactory } from 'ngrx-domains'; /** * create the root selector for the "books" state, then create a factory for child selectors, * i.e selectors that requires the books state, not the app state. * * We implement ...
mit
Matheusqualquercoisa/limajacket
application/views/lojaCliente/clienteLogin.php
2735
<!-- <form action="<?php echo base_url("Principal/categoria"); ?>" method="post">--> <div class="container"> <div class="shopper-informations"> <div class="row"> <div class="col-sm-4"> <div class="shopper-info"> <p>1 Passo</p>&nbsp;&nbsp;&nbsp;&nbsp;<p>Cadastre seu Login</p> <form ro...
mit
padideIt/wall
application/views/pages/show.php
2098
<?php $this->load->view('include/header'); ?> <?php $this->load->view('include/header_menu'); ?> <?php $this->load->view('include/error'); ?> <script> $(document).ready(function(){ // $('html,body').animate({ // scrollTop: "+=" + 500 + "px" // },300); $.smoothScroll({ scrollEle...
mit
tyler-johnson/temple-compiler
src/compile.js
708
import parse from "./parse"; const smfurl = "sourceMappingURL="; const datauri = "data:application/json;charset=utf-8;base64,"; var toBase64; if (typeof window !== "undefined" && typeof window.btoa === "function") { toBase64 = window.btoa; } else toBase64 = function(str) { return new Buffer(str, "utf-8").toString("...
mit
LEWASatVT/lewas
lewas/config.py
886
import ConfigParser, os def coerce(val): try: return int(val) except ValueError: pass try: return float(val) except ValueError: pass return val def coerced_dict(d): return { k: coerce(v) for k,v in dict(d).items() } class Config(): def __init__(self, config="../config"): c = ConfigParser...
mit
maurohead/tipsurvey-clases
src/Curso/SurveyBundle/Form/SurveyType.php
903
<?php namespace Curso\SurveyBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class SurveyType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $optio...
mit
yunxu1019/efront
coms/zimoli/xml_test.js
109
function xml_test() { var compiled= xml.parse("<div a=b>compiled</div>"); console.log(compiled[0]); }
mit
retroelectric/rgLogger
rgLogger.Tests/NotifierTest.cs
33973
using System; using System.Fakes; using System.Collections.Generic; using System.Linq; using System.Net.Mail; using System.Net.Mail.Fakes; using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.QualityTools.Testing.Fakes; /* Things to check: * 01. [DONE] Sends correctly configured emails for a...
mit