repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
mgitgrullon/Eurodental
app/models/gcolor.rb
113
class Gcolor < ActiveRecord::Base # belongs_to :store has_many :stores validates :name, presence: true end
mit
kbolduc/cloud_tempfile
lib/cloud_tempfile/railtie.rb
194
# cloud_tempfile/railtie.rb # # Author:: Kevin Bolduc # Date:: 14-02-24 # Time:: 3:23 PM class Rails::Railtie::Configuration def cloud_tempfile CloudTempfile.config end end
mit
Chunxiaojiu/-unity-
wuziqi/Assets/Script/Cross.cs
330
using UnityEngine; using UnityEngine.UI; // 每个交叉点逻辑 public class Cross : MonoBehaviour { // 位置 public int GridX; public int GridY; public MainLoop mainLoop; void Start () { GetComponent<Button>().onClick.AddListener( ( )=>{ mainLoop.OnClick(this); }); } }
mit
lengrensheng/gallery-react
src/main/TimePickerLoading.js
2675
/** * Created by on 2016/5/23. */ import React,{Component} from 'react'; import { TimePickerAndroid, StyleSheet, Text, View, TouchableOpacity }from 'react-native'; function _formatTime(hour, minute){ return hour + ":" + (minute < 10 ? '0' + minute : minute); }; var TimePickerA...
mit
jiiis/ptn
plugins/indikator/backend/lang/es/lang.php
7419
<?php return [ 'plugin' => [ 'name' => 'Backend Plus', 'description' => 'Nuevas características y widgets para el Backend.', 'author' => 'Gergő Szabó' ], 'settings' => [ 'tab_display' => 'Monitor', 'avatar_label' => 'Imagen de perfil redondeado en lugar de un solo cu...
mit
hyperandroid/Automata
lib/Transition.js
692
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * A Transition is a link between two states. * It fires whenever an state has an exit transition identified by `event`. */ class Transition { constructor(from, to, event) { this.event_ = event; this.from_ = from; ...
mit
pienkowskip/cryptobroker
lib/cryptobroker/indicator/histogram_based_filtered.rb
1254
require_relative 'histogram_based' module Cryptobroker::Indicator module HistogramBasedFiltered include HistogramBased DEFAULT_FILTER_LENGTH = 1 def initialize(conf = {filter_length: DEFAULT_FILTER_LENGTH}) super conf @filter_len = conf.fetch :filter_length, DEFAULT_FILTER_LENGTH end ...
mit
conwqi1/more-rubyExcersise
11_dictionary/dictionary.rb
679
class Dictionary def entries #@entries=Hash.new(" ") @entries ||= {} end def keywords @entries.keys.sort end def include? (word) entries.keys.include? word end def add (keywords, value=nil) entries[keywords]=value end def find (input) arr={} entries.each do |key,value| arr[key]=valu...
mit
131/yks
3rd/shop/subs/Admin/Meta/list.php
397
<?php if($action == "meta_product_trash") try { $meta_product_id = $_POST['meta_product_id']; $meta_product = $meta_products_list[$meta_product_id]; if(!$meta_product) throw rbx::error("Vous n'avez pas le droit de détruire ce meta produit"); $res = $meta_product->sql_delete(); if(!$res) throw...
mit
TedPowers/happy
application/config/routes.php
2059
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------------- | URI ROUTING | ------------------------------------------------------------------------- | This file lets you re-map URI requests to specific controller functions. | | T...
mit
jtstriker3/Joe.Business
Report/IChartPoint.cs
226
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Joe.Business.Report { public interface IChartPoint : IPoint { Object Series { get; set; } } }
mit
d3QUone/build_django_templates
config.py
1462
# # Vladimir Kasatkin. April, 2015 # # --- EXAMPLE --- # # Run the 'build.py' script after doing "python manage.py collectstatic" # # all folders must bu pointed form this config-file, e.g: # # - base_folder/ # |---config.py # |---dev_templates/ # |---templates/ # Django's standart folder-style SOURCE_DIRS = [ "exam...
mit
j4y/landslider
lib/landslider/entities/ws_address.rb
267
class Landslider class WsAddress < WsEntity # @return [Integer] attr_reader :address_id # @return [String] attr_reader :address1, :address2, :address3, :address_node, :city # @return [String] attr_reader :country, :state, :zip_postal end end
mit
scottmcnab/cordova-cookie-master
www/cookieMaster.js
1095
var cookieMaster = { getCookieValue: function(url, cookieName, successCallback, errorCallback) { cordova.exec(successCallback, errorCallback, 'CookieMaster', 'getCookieValue', [url, cookieName] ); }, setCookieValue: function (url, ...
mit
Mange/roadie
lib/roadie/provider_list.rb
2760
# frozen_string_literal: true require "forwardable" module Roadie # An asset provider that just composes a list of other asset providers. # # Give it a list of providers and they will all be tried in order. # # {ProviderList} behaves like an Array, *and* an asset provider, and can be coerced into an array. ...
mit
rao1219/Vedio
node_modules/sequelize-fixtures/tests/models/Foo.js
223
module.exports = function (sequelize, DataTypes) { return sequelize.define("foo", { propA: {type: DataTypes.STRING}, propB: {type: DataTypes.INTEGER}, status: {type: DataTypes.BOOLEAN} }); };
mit
shivan1b/codes
karum/stackLL.cpp
1490
#include<iostream> #include<cstdlib> using namespace std; class Node{ public: int data; Node *next; Node(){} Node(int d){ data=d; next=NULL; } Node *push(Node *head, int data){ Node *np=new Node(data); Node *t=head; cout<<"Pushing "<<np->data<<"...\n"; if(head==NULL) return ...
mit
danigb/sample-player
test/support/audio.js
724
/* globals AudioContext */ require('web-audio-test-api') module.exports = function Audio (keys) { var ac = new AudioContext() var names = !keys ? [] : keys.split ? keys.split(' ') : keys || [] var buffers = {} names.forEach(function (key, i) { buffers[key] = ac.createBuffer(2, i, 44100) }) function out...
mit
adzhazhev/Airline-System
Airline-System/AirlineSystem.Web.Tests/Controllers/HomeControllerTest.cs
1401
namespace AirlineSystem.Web.Tests.Controllers { using System.Web.Mvc; using AirlineSystem.Data; using AirlineSystem.Web.Controllers; using Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class HomeControllerTest { public HomeControllerTest(IAirlineSystemData data...
mit
MiteshSharma/ContentApi
app/webhook/WebhookEventHandler.java
2336
package webhook; import akka.actor.ActorRef; import akka.pattern.Patterns; import com.google.inject.Inject; import dispatcher.IEventDispatcher; import dispatcher.IEventHandler; import event_handler.EventName; import play.Play; import play.libs.ws.WSResponse; import pojo.WebhookObject; import scala.compat.java8.FutureC...
mit
vaj25/SICBAF
application/controllers/Bodega/Solicitud_control.php
28545
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Solicitud_control extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper(array('form', 'paginacion')); $this->load->library(array('table', 'notificacion')); $this->load->model(arra...
mit
AlenQi/toolscript
src/detectIE.js
868
/** * Judge the IE browser version. * * @param {Int} Internet explorer version. * @returns {Boolean} Returns is it the current version. */ const detectIE = function(version) { const ua = window.navigator.userAgent if (version < 10) { const b = document.createElement('b') b.innerHTML = '<!--[if IE ' ...
mit
taufandardiry/frk-shop
application/views/user/index.php
20716
<html> <head> <meta charset="utf-8"> <meta name="robots" content="all,follow"> <meta name="googlebot" content="index,follow,snippet,archive"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="FRK Olshop e-commerce"> <meta name="author" content="Taufan Da...
mit
tartavull/tigertrace
tigertrace/util/rehuman_semantics.py
1483
from tqdm import tqdm from collections import defaultdict import h5py import networkx as nx import struct import numpy as np # hl = None # ml = None # with h5py.File('/usr/people/it2/seungmount/research/datasets/blended_piriform_157x2128x2128/all/human_semantic_labels.h5','r') as f: # hl = f['main'][:] # with h5py.F...
mit
dlennox24/ricro-app-template
scripts/scripts.js
3749
#! /usr/bin/env node const sh = require('shelljs'); const pk = require('../package.json'); const utils = require('./_utils.js'); let args = process.argv.splice(2); // For debugging/testing script. This way all scripts don't execute each run. const debug = args.includes('debug'); /* * valid arg prefixes: * no-:...
mit
rafaelmariotti/oradock
preconfig/amazon_linux/chef_config/attributes/oradock.rb
840
#backup and data settings - configure your backup and data directories and their respective devices default['backup']['directory'] = '/backup' default['backup']['device'] = '/dev/sdb' default['data']['directory'] = '/data' default['data']['device'] = '/dev/sdc' #python settings - DO NOT CHANGE THIS default[...
mit
kalinalazarova1/TelerikAcademy
Programming/2. CSharpPartTwo/CS2_03.Methods/12. MultiplyPolynomials/Properties/AssemblyInfo.cs
1422
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("12...
mit
gatero/nightwatch
lib/api/expect/value.js
1645
/** * Property that retrieves the value (i.e. the value attributed) of an element. Can be chained to check if contains/equals/matches the specified text or regex. * * ``` * this.demoTest = function (browser) { * browser.expect.element('#q').to.have.value.that.equals('search'); * browser.expect.element('#q').t...
mit
Nillerr/Amplified.CSharp
Amplified.CSharp.Tests/Units/StaticConstructors.cs
1820
using System; using System.Threading.Tasks; using Xunit; namespace Amplified.CSharp { // ReSharper disable once InconsistentNaming public class Units__StaticConstructors { [Fact] public void UnitConstructors() { var staticValue = Units.Unit(); var defaultValu...
mit
DineroRegnskab/dinero-csharp-sdk
DineroClientSDK/DineroPortableClientSDK/Dashboard/DineroDashboard.cs
2922
using System; using System.Collections.Generic; using System.Threading.Tasks; namespace DineroPortableClientSDK.Dashboard { public sealed class DineroDashboard : DineroLibaryBase { internal DineroDashboard(Dinero dinero) : base(dinero) { } /// <summary> /// Get the dashboard data with...
mit
yonggu/taobao
lib/taobao.rb
691
module Taobao class << self attr_accessor :app_key, :app_secret, :endpoint def configure yield self true end end autoload :Client, "taobao/client" autoload :Model, "taobao/model" autoload :TaobaokeItem, "models/taobaoke_item" autoload :TaobaokeShop, "models/taobaoke_shop" autoloa...
mit
mlalic/lepp2
src/lepp2/BaseVideoSource.hpp
3455
#ifndef BASE_VIDEO_SOURCE_H_ #define BASE_VIDEO_SOURCE_H_ #include <vector> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/io/openni_grabber.h> #include <pcl/visualization/cloud_viewer.h> #include "VideoObserver.hpp" namespace lepp { typedef pcl::PointXYZ SimplePoint; typedef pcl::PointCloud...
mit
pyos/libcno
setup.py
2102
#!/usr/bin/env python3 import os import sys import cffi import subprocess from distutils.core import setup from distutils.command.build_ext import build_ext as BuildExtCommand def make_ffi(root): ffi = cffi.FFI() ffi.set_source('cno.ffi', '#include <cno/core.h>', libraries=['cno'], include_dirs=[root...
mit
marbros/Computer-Graphics
Challenge_7/Math/Matrix3x3.java
3469
package Math; /** * This class handles a 3x3 matrix * The matrix is used to store the coefficients of a 3x3 linear system of * 3 equations with 3 unknowns * @author htrefftz */ public class Matrix3x3 { /** 3 x 3 matrix */ protected double [][] matrix; private final boolean DEBUG = false; ...
mit
PRX/Infrastructure
etc/serverless-s3-upload/lambdas/StaticWebsiteAuthorizerFunction/lambda_function.py
1077
# This function is triggered by API Gateway as an authorizer. It uses the HTTP # basic auth Authorization header to permit access to API Gateway methods by # returning a policy document when the credentials match those defined as stack # parameters. import os import base64 def lambda_handler(event, context): hea...
mit
atanas-georgiev/TelerikAcademy
16.ASP.NET-Web-Forms/Homeworks/TestExam/TestExam.Data/Repositories/IRepository.cs
499
namespace TestExam.Data.Repositories { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public interface IRepository<T> : IDisposable where T : class { IQueryable<T> All(); T GetById(int id); void ...
mit
terminalvelocity/soil-cli-example
lib/cli.js
171
"use strict" var Cli = require('soil-cli'); class ExampleCli extends Cli { constructor(args, options) { super(args, options); } } module.exports = ExampleCli;
mit
plotly/plotly.py
packages/python/plotly/plotly/validators/scattergl/marker/colorbar/_orientation.py
521
import _plotly_utils.basevalidators class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="orientation", parent_name="scattergl.marker.colorbar", **kwargs ): super(OrientationValidator, self).__init__( ...
mit
somebee/imba
polyfills/crypto/esm/lib/hash/hash/sha/512.js
8715
import * as utils from "../utils"; import * as common from "../common"; import assert from "assert"; 'use strict'; var rotr64_hi = utils.rotr64_hi; var rotr64_lo = utils.rotr64_lo; var shr64_hi = utils.shr64_hi; var shr64_lo = utils.shr64_lo; var sum64 = utils.sum64; var sum64_hi = utils.sum64_hi; var sum64_lo = utils....
mit
bsnape/eir
lib/eir/version.rb
35
module Eir VERSION = '0.2.0' end
mit
gogo-wwc/gogo-wwc
store/modules/products.js
809
import shop from '../../api/shop' import * as types from '../mutation-types' // initial state const state = { all: [] } // getters const getters = { allProducts: state => state.all } // actions const actions = { getAllProducts ({ commit }) { shop.fetchProducts().then((products) => { commit(types.RECE...
mit
j2jensen/CallMeMaybe
CallMeMaybe.UnitTests/MaybeLinqTests.cs
2131
using System; using System.Linq; using Xunit; namespace CallMeMaybe.UnitTests { public class MaybeLinqTests { [Fact] public void TestNotStringJoin() { var q = Maybe.Not; Assert.Equal("", string.Join(",", q)); } [Fact] public void TestSing...
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_import_export/lib/version.rb
234
# encoding: utf-8 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. module Azure::ImportExport::Mgmt VERSION = '0.17.1' end
mit
Mervodactyl/thermostat_front_and_back
src/thermostat.js
1880
var Thermostat = function() { this.DEFAULT_TEMP = 20; this.currentTemperature = this.DEFAULT_TEMP; this.MINIMUM_TEMP = 10; this.isPowerSavingOn = true; this.LOW_USAGE_LIMIT = 18; this.MAXIMUM_TEMP = 25; this.POWER_SAVING_ON_MAXIMUM_TEMP = 25; this.POWER_SAVING_OFF_MAXIMUM_TEMP = 32; }; Thermostat.prot...
mit
ard71/VotingSoftware
src/main/java/TallyTable.java
26
public class TallyTable{ }
mit
AlephTav/presenters
src/UniversalPresenter.php
2198
<?php /** * Copyright (c) 2017 Aleph Tav * * 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, pub...
mit
preslavc/SoftUni
Programming Fundamentals/Objects and Classes/Lab/Randomize Words/Program.cs
735
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Randomize_Words { class Program { static void Main(string[] args) { string[] words = Console.ReadLine().Split(' '); Random rnd = new Random(); ...
mit
Prezent/prezent-dompdf-bundle
Creator/Creator.php
4374
<?php namespace Prezent\DompdfBundle\Creator; use Dompdf\Dompdf; use Dompdf\Options; /** * Abstract creator class. Initializes the Dompdf instance * * @author Robert-Jan Bijl<robert-jan@prezent.nl> */ abstract class Creator implements CreatorInterface { /** * @var Dompdf */ protected $pdf; ...
mit
andyroberts007/3Slice
node_modules/save/node_modules/mingo/mingo.js
59800
// Mingo.js 0.6.2 // Copyright (c) 2015 Francis Asante <kofrasa@gmail.com> // MIT ; (function (root, undefined) { "use strict"; // global on the server, window in the browser var Mingo = {}, previousMingo; var _; Mingo.VERSION = '0.6.2'; // backup previous Mingo if (root != null) { previousMingo ...
mit
gogilo2003/admin
src/Models/BlogCategory.php
485
<?php namespace Ogilo\Admin\Models; use Illuminate\Database\Eloquent\Model; /** * Hit model */ class BlogCategory extends Model { public function blogs() { return $this->hasMany('Ogilo\Admin\Models\Blog'); } public function pages() { return $this->belongsToMany('Ogilo\Admin\Models\Page'); } ...
mit
Tape-Worm/Gorgon
PlugIns/Gorgon.Editor.FontEditor/_Internal/Controls/WeightHandleComparer.cs
2529
#region MIT // // Gorgon. // Copyright (C) 2021 Michael Winsor // // 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,...
mit
leandrochomp/prj_GAF
sources/controller/desativa.aluno.repositorio.php
747
<?php require_once '../model/aluno.class.php'; $hoje = date("Y/m/d"); $codigo = $_GET['cod']; $testando = new pessoa(array( 'idPerfil' => '4', 'idPessoa' => $codigo, 'nome' => $_POST['txtNome'], 'CPF' => $_POST['txtCPF'], 'email' => $_POST['txtEmail'], 'telefone' => $_POS...
mit
springer-math/Mathematics-of-Epidemics-on-Networks
setup.py
1049
#!/usr/bin/env python r''' Setup script for EoN (Epidemics on Networks) to install from this script, run python setup.py install Alternately, you can install with pip. pip install EoN If this is a "release candidate" (has an "rc" in the version name below), then pip will download the previous vers...
mit
NicolaasWeideman/DirectoryListingRESTfulService
src/main/java/spring/directorylisting/DirectoryListingResultCache.java
3333
package spring.directorylisting; import java.util.concurrent.ConcurrentHashMap; import java.io.IOException; import java.io.File; import java.nio.file.Path; import java.nio.file.FileSystems; import java.nio.file.FileSystem; import java.nio.file.Path; import java.nio.file.WatchService; import java.nio.file.WatchKey; imp...
mit
yvanwangl/Blog
client/store/configureStore.js
208
if (process.env.NODE_ENV === 'production') { //console.log(process.env.NODE_ENV+'store'); module.exports = require('./configureStore.prod'); } else { module.exports = require('./configureStore.dev'); }
mit
vchrisb/emc_phoenix2
content/views.py
4275
# load settings file from django.conf import settings from django.shortcuts import render from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse #cache from django.views.decorators.cache import cache_page from django.views.decorators.cache import cache_control import os from django....
mit
nailsapp/module-sitemap
services/services.php
589
<?php return [ 'services' => [ 'SiteMap' => function () { if (class_exists('\App\SiteMap\Service\SiteMap')) { return new \App\SiteMap\Service\SiteMap(); } else { return new \Nails\SiteMap\Service\SiteMap(); } }, ], 'factor...
mit
xyz252631m/web
libs/acorn-8.0.5/src/expression.js
39975
// A recursive descent parser operates by defining functions for all // syntactic elements, and recursively calling those, each function // advancing the input stream and returning an AST node. Precedence // of constructs (for example, the fact that `!x[1]` means `!(x[1])` // instead of `(!x)[1]` is handled by the fact...
mit
rickding/Hello
HelloHackerRank/src/main/java/com/hello/ReductionCost.java
571
package com.hello; import java.util.Arrays; public class ReductionCost { public static int reductionCost(int[] numArr) { if (numArr == null || numArr.length <= 0) { return 0; } int cost = 0; for (int i = 0; i < numArr.length - 1; i++) { // Sort ascending ...
mit
DarkenNav/UnionFreeArts
DesktopApp/UI.Desktop.UFart/Mapping/MapperConfigurate.cs
575
using AutoMapper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UFart.Desktop.Domain.Entity; using UFart.Desktop.UI.DTO; namespace UFart.Desktop.UI.Mapping { public static class MapperConfigurate { internal static void Initial...
mit
alphagov/publishing-api
spec/commands/v2/represent_downstream_spec.rb
3911
require "rails_helper" RSpec.describe Commands::V2::RepresentDownstream do before do stub_request(:put, %r{.*content-store.*/content/.*}) end describe "call" do before do 2.times { create(:draft_edition) } create( :live_edition, document: create(:document, locale: "en"), ...
mit
NewSpring/Apollos
src/@data/withUser/withAddressState.js
1065
import gql from 'graphql-tag'; import { graphql } from 'react-apollo'; export const QUERY = gql` query GetAddressState($state: Int!, $country: Int!) { states: definedValues(id: $state, all: true) { description id _id value } countries: definedValues(id: $country, all: true) { ...
mit
r4ndr4s4/draw-sth
imports/views/view/view.events.js
635
'use strict'; import { viewState } from './'; Template.view.events({ 'keyup #tip' (event, templateInstance) { const roomId = localStorage.getItem('roomId'); const userId = localStorage.getItem('userId'); const tip = $(event.currentTarget).val().trim().toLowerCase(); $(event.currentTarget).val(tip); viewS...
mit
begriffs/ramda
test/test.range.js
871
var assert = require("assert"); var Lib = require("./../ramda"); describe('range', function() { var range = Lib.range; it('should return list of numbers', function() { assert.deepEqual(range(0, 5), [0, 1, 2, 3, 4]); assert.deepEqual(range(4, 7), [4, 5, 6]); }); it('should return the e...
mit
joshfrench/radiant
lib/generators/instance/templates/instance_environment.rb
3828
# Be sure to restart your server when you modify this file # Uncomment below to force Rails into production mode when # you don't control web/app server and can't set it the proper way # ENV['RAILS_ENV'] ||= 'production' # Specifies gem version of Rails to use when vendor/rails is not present require File.join(File.d...
mit
huyson012/fuelphp
fuel/app/classes/model/PageInfo.php
144
<?php // namespace Model; class PageInfo { public function getPageInfo() { return "training fueldPHP page title"; } }
mit
marinovskiy/money_manager_server
src/AppBundle/Controller/Api/ApiReportsController.php
8921
<?php namespace AppBundle\Controller\Api; use AppBundle\Entity\Account; use AppBundle\Entity\Category; use AppBundle\Entity\Operation; use AppBundle\Entity\Organization; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Confi...
mit
mojmir-svoboda/BlackBoxTT
plugins/bbInterface/src/AgentType_SystemInfo.cpp
21532
/*=================================================== AGENTTYPE_SYSTEMINFO CODE ===================================================*/ // Global Include #include <blackbox/plugin/bb.h> #include <string.h> #include <windows.h> #include <tchar.h> //Parent Include #include "AgentType_SystemInfo.h" //Includes #include ...
mit
Episerver-trainning/SiteAttention
rdContentArea/Business/Channels/DisplayResolutions.cs
1151
namespace rdContentArea.Business.Channels { /// <summary> /// Defines resolution for desktop displays /// </summary> public class StandardResolution : DisplayResolutionBase { public StandardResolution() : base("/resolutions/standard", 1366, 768) { } } /// <summary> ...
mit
cetusfinance/qwack
src/Qwack.Transport/BasicTypes/FixingDictionaryType.cs
116
namespace Qwack.Transport.BasicTypes { public enum FixingDictionaryType { Asset, FX } }
mit
chrisJohn404/ljswitchboard-builder
build_scripts/build_project.js
3544
console.log('Building Kipling'); var errorCatcher = require('./error_catcher'); var fs = require('fs'); var fse = require('fs-extra'); var path = require('path'); var cwd = process.cwd(); var async = require('async'); var child_process = require('child_process'); // Figure out what OS we are building for var buildO...
mit
PUT-PTM/STMArkanoid
core/src/com/arkanoid/stm/ScreenProperties.java
207
package com.arkanoid.stm; /** * Created by Grzegorz on 2015-05-26. */ public class ScreenProperties { public static int widthFit; public static int heightFit; public static int pipeVelocity=0; }
mit
blesh/angular
packages/language-service/ivy/utils.ts
12828
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {AbsoluteSourceSpan, CssSelector, ParseSourceSpan, SelectorMatcher, TmplAstBoundEvent} from '@angular/compiler'...
mit
Mangopay/mangopay2-nodejs-sdk
typings/models/client.d.ts
4845
import { ValueOf } from "../types"; import { enums } from "../enums"; import { address } from "./address"; import { entityBase } from "./entityBase"; export namespace client { type BusinessType = "MARKETPLACE" | "CROWDFUNDING" | "FRANCHISE" | "OTHER"; type Sector = | "RENTALS" | "STORES_FASHIO...
mit
OnePonyGames/frozen
src/main/java/com/oneponygames/frozen/base/eventsystem/events/sound/StopAllSoundsEvent.java
358
package com.oneponygames.frozen.base.eventsystem.events.sound; import com.badlogic.ashley.core.Entity; import com.oneponygames.frozen.base.eventsystem.events.entity.EntityEvent; /** * Created by Icewind on 13.03.2017. */ public class StopAllSoundsEvent extends EntityEvent { public StopAllSoundsEvent(Entity ent...
mit
jstedfast/MailKit
MailKit/Net/Proxy/ProxyClient.cs
15207
// // ProxyClient.cs // // Author: Jeffrey Stedfast <jestedfa@microsoft.com> // // Copyright (c) 2013-2022 .NET Foundation and Contributors // // 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 Softw...
mit
topsycreed/Selenium-Java
addressbook-selenium-test/src/com/example/tests/GroupCreationTests.java
1203
package com.example.tests; import static com.example.tests.GroupDataGenerator.loadGroupsFromCsvFile; import static com.example.tests.GroupDataGenerator.loadGroupsFromXmlFile; import static org.junit.Assert.assertThat; import static org.hamcrest.Matchers.*; import java.io.File; import java.io.IOException; import java....
mit
dopse/maildump
src/main/java/fr/dopse/maildump/model/AttachmentContentEntity.java
571
package fr.dopse.maildump.model; import javax.persistence.*; import java.io.Serializable; /** * Created by fr27a86n on 13/04/2017. */ @Entity @Table(name = "ATTACHMENT_CONTENT") public class AttachmentContentEntity implements Serializable { @Id @GeneratedValue private Long id; @Lob private byte[] d...
mit
QuinntyneBrown/wedding-bidders
src/app/components/wb-bids.js
1096
(function () { "use strict"; function BidsComponent(bid, bidStore) { var self = this; self.bids = []; for(var i = 0; i < bidStore.byProfile.length; i++) { self.bids.push(bid.createInstance({ data: bidStore.byProfile[i]})); } return self; } BidsCom...
mit
dacodekid/gulp-factory-examples
test/jade.js
605
'use strict'; const test = require('tape'); const jade = require('../plugins/jade'); const fixture = require('./fixtures/file-gen'); test('jade render should output', assert => { const plugin = jade({ layout: process.cwd() + '/test/fixtures/layout.jade', title: 'test title' }); plugin.once('data', file...
mit
Kagamine/CodeComb.ChinaTelecom
CodeComb.ChinaTelecom.Website/Controllers/BaseController.cs
328
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNet.Mvc; using CodeComb.ChinaTelecom.Website.Models; namespace CodeComb.ChinaTelecom.Website.Controllers { public class BaseController : BaseController<User, CTContext, string> { ...
mit
livioribeiro/neo4j-rust-driver
src/lib.rs
1654
extern crate byteorder; extern crate rustc_serialize; #[macro_use] extern crate log; pub mod v1; use std::io::prelude::*; use std::io::Cursor; use std::net::{TcpStream, Shutdown}; use byteorder::{ReadBytesExt, WriteBytesExt, BigEndian}; use v1::Connection; const PREAMBLE: [u8; 4] = [0x60, 0x60, 0xB0, 0x17]; const ...
mit
bobar/tdfb
app/models/wrong_frankiz_id.rb
77
class WrongFrankizId < ActiveRecord::Base self.table_name = :wrong_ids end
mit
boynoiz/liverpoolthailand
app/Http/Requests/Admin/FootballTeamsRequest.php
999
<?php namespace LTF\Http\Requests\Admin; use LTF\Http\Requests\Request; class FootballTeamsRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the val...
mit
digitalrizzle/recovery-journal-v3
src/RecoveryJournal.Website/webpack.config.vendor.js
3771
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const merge = require('webpack-merge'); const treeShakableModules = [ '@angular/animations', '@angular/common', '@angular/compiler', '@angular/core', '@angular/forms', ...
mit
opsmatic/puppet-opsmatic
spec/classes/params_spec.rb
472
require 'spec_helper' # Facts mocked up for unit testing FACTS = { :osfamily => 'Debian', :operatingsystem => 'Ubuntu', :operatingsystemrelease => '12', :lsbdistid => 'Ubuntu', :lsbdistcodename => 'precise', :lsbdistrelease => '12.04', :lsbmajdistrelease => '12', :kernel => 'linux', } describe 'opsmat...
mit
nunit/nunit
src/NUnitFramework/nunitlite.tests/CreateTestFilterTests.cs
6058
// Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt using NUnit.Common; using NUnit.Framework; using NUnit.Framework.Internal; using NUnit.Framework.Internal.Filters; using NUnit.TestUtilities; namespace NUnitLite.Tests { public class CreateTestFilterTests { [Tes...
mit
sschultz/FHSU-GSCI-Weather
Weather/admin.py
524
from django.contrib import admin from Weather.models import * from Weather.util import updateForecast def update_forecast(modeladmin, request, queryset): for forecast in queryset: updateForecast(forecast) update_forecast.short_description = "Force forecast update from NWS" class forecastAdmin(admin.Mod...
mit
cenkalti/rain
torrent/version.go
118
package torrent // Version of client. Set during build. // "0.0.0" is the development version. var Version = "0.0.0"
mit
fjpavm/ChilliSource
Source/CSBackend/Platform/Windows/Main.cpp
2273
// // Main.cpp // Chilli Source // Created by Ian Copland on 06/07/2011. // // The MIT License (MIT) // // Copyright (c) 2010 Tag Games Limited // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // i...
mit
emclab/rfqx_emc
spec/dummy/app/models/authentify_user.rb
159
class AuthentifyUser < ActiveRecord::Base #attr_accessible :customer_id, :email, :encrypted_password, :last_updated_by_id, :login, :name, :salt, :status end
mit
mjzitek/goingtohell
config/logger.js
2572
/* From: http://www.snyders.co.uk/2013/04/11/async-logging-in-node-js-just-chill-winston/ */ var winston = require('winston'); require('winston-mongodb').MongoDB; var customLevels = { levels: { debug: 0, info: 1, warn: 2, error: 3 }, colors: { debug: 'blue', info: 'green', war...
mit
aszczesn/rma-iqutech
application/modules/diy_part_type/models/mdl_perfectcontroller.php
2324
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } class Mdl_diy_part_type extends CI_Model { function __construct() { parent::__construct(); } function get_table() { $table = "tablename"; return $table; } function get($order_b...
mit
lmazuel/azure-sdk-for-python
azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/bgp_settings_py3.py
1414
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
mit
jclo/picodb
test/int/private/query/query_1.js
10616
// ESLint declarations: /* global describe, it */ /* eslint one-var: 0, semi-style: 0, no-underscore-dangle: 0 */ // -- Vendor Modules const { expect } = require('chai') ; // -- Local Modules // -- Local Constants // -- Local Variables // -- Main module.exports = function(PicoDB) { describe('Test the Co...
mit
minimus/final-task
client-src/redux/modules/search/search.js
3572
import { prepareFacets } from '../helpers' const SEARCH_FETCH_STARTED = 'SEARCH_FETCH_STARTED' const SEARCH_FETCH_COMPLETED = 'SEARCH_FETCH_COMPLETED' const SEARCH_FETCH_UNCOMPLETED = 'SEARCH_FETCH_UNCOMPLETED' const SEARCH_FACET_CHANGED = 'SEARCH_FACET_CHANGED' const SEARCH_FACETS_CLEAR = 'SEARCH_FACETS_CLEAR' const ...
mit
samitheberber/pathfinder
src/test/java/fi/cs/helsinki/saada/pathfinder/pathfinding/PathTest.java
1953
package fi.cs.helsinki.saada.pathfinder.pathfinding; import fi.cs.helsinki.saada.pathfinder.world.Coordinate; import static org.easymock.EasyMock.createMock; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import static org.junit.matchers.JUnitMatchers.hasItem; /** * * @author stb ...
mit
guless/SWFAnimator
src/interface/IWritable.js
2958
/// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /// @Copyright ~2016 ☜Samlv9☞ and other contributors /// @MIT-LICENSE | 1.0.0 | http://apidev.guless.com/ /// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /// }| /// ...
mit
signumsoftware/framework
Signum.Entities/DynamicQuery/Filter.cs
8921
using Signum.Utilities.Reflection; using System.Collections; using System.ComponentModel; namespace Signum.Entities.DynamicQuery; [InTypeScript(true), DescriptionOptions(DescriptionOptions.Members | DescriptionOptions.Description)] public enum FilterGroupOperation { And, Or, } public abstract cl...
mit
balvig/chili
spec/spec_helper.rb
1045
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../example_app/config/environment", __FILE__) require 'rspec/rails' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[Rail...
mit