repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
krzyk240/simlib
test/event_queue.cc
26377
#include "simlib/event_queue.hh" #include "simlib/concurrent/semaphore.hh" #include "simlib/defer.hh" #include "simlib/file_descriptor.hh" #include "simlib/repeating.hh" #include <chrono> #include <cstddef> #include <cstdint> #include <fcntl.h> #include <gtest/gtest-death-test.h> #include <gtest/gtest.h> #include <mem...
mit
iamso/u.strength.js
dist/u.strength.js
2745
/*! * u.strength.js - Version 0.4.0 * password strength plugin for u.js/jquery * Author: Steve Ottoz <so@dev.so> * Build date: 2016-07-29 * Copyright (c) 2016 Steve Ottoz * Released under the MIT license */ ;(function (factory) { 'use strict'; if (/^f/.test(typeof define) && define.amd) { define(['ujs']...
mit
ahazem/ember-simple-auth-tok
specs/simple-auth-tok/configuration-test.js
1701
import Configuration from '/simple-auth-tok/configuration'; describe('Configuration', function() { describe('serverAuthenticateEndpoint', function() { it('defaults to /login', function() { expect(Configuration.serverAuthenticateEndpoint).to.eq('/login'); }); }); describe('serverInvalidateEndpoint'...
mit
allotory/coeligena
src/main/java/com/coeligena/dao/RoleAuthUserDAO.java
271
package com.coeligena.dao; import com.coeligena.model.RoleAuthUserDO; /** * <p> * 角色验证用户数据访问接口 * </p> * Created by Ellery on 2017/12/16. */ public interface RoleAuthUserDAO { void saveRoleAuthUser(RoleAuthUserDO roleAuthUserDO); }
mit
ZhackerZ/Capstone
iRehab/db/migrate/20160418201727_create_records.rb
405
class CreateRecords < ActiveRecord::Migration def up create_table :records, force: :cascade do |r| r.string "username", limit: 10, null: false r.string "appointment_date", null: false r.string "appointment_time", null: false r.string "advisor", limit: 20, null: false r.string "description", limit: 1000 r.stri...
mit
studiodev/play2-client-logging
modules/clientlog/client/karma-e2e.conf.js
1124
// Karma E2E configuration // Base path, that will be used to resolve files and exclude. basePath = ''; // List of files / patterns to load in the browser. files = [ ANGULAR_SCENARIO, ANGULAR_SCENARIO_ADAPTER, 'test/e2e/**/*.js' ]; // List of files to exclude. exclude = []; // Test results reporter to use. //...
mit
frogstarr78/rails-pg-procs
lib/rails_pg_procs.rb
218
require 'active_record' require "active_support/inflector" require 'lib/inflector' require 'lib/sql_format' require 'lib/schema_procs' require 'lib/schema_dumper' require 'lib/connection_adapters/connection_adapters'
mit
goldsborough/algs4
geometric/java/Geometric/src/PointIntersectionSearch.java
2098
import java.util.ArrayList; /** * Created by petergoldsborough on 10/03/15. */ public class PointIntersectionSearch { public static class Point implements Comparable<Point> { Point(Integer x, Integer y) { this.x = x; this.y = y; } public int compareTo(Point other) { if (this.x < other.x) retur...
mit
braiins/RelayNode
c++/client.cpp
10822
#include <map> #include <vector> #include <thread> #include <mutex> #include <assert.h> #include <string.h> #include <unistd.h> #ifdef WIN32 #include <winsock2.h> #include <ws2tcpip.h> #else // WIN32 #include <netinet/tcp.h> #include <netdb.h> #include <fcntl.h> #endif // !WIN32 #define BITCOIN_UA_LENGTH 24 #de...
mit
Producenta/TelerikAcademy
C# OOP/Bgcoder/Trade and Travel/Trade and Travel/Program.cs
24292
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TradeAndTravel { public abstract class WorldObject { static readonly Random random = new Random(); public string Id { get; private set; } private const int IdLe...
mit
NyaaPantsu/nyaa
models/users/helpers.go
2196
package users import ( "errors" "net/http" "strconv" "github.com/NyaaPantsu/nyaa/models" "github.com/NyaaPantsu/nyaa/utils/log" "github.com/NyaaPantsu/nyaa/utils/validator/user" "golang.org/x/crypto/bcrypt" ) // CheckEmail : check if email is in database func CheckEmail(email string) bool { if len(email) == ...
mit
leadwit/AdminUI
service-manager/modules/systemParam/controller/add-controller.js
1054
(function($) { var ngmod = angular.module("framework.controllers", ["framework.systemParamService"]); ngmod.controller("systemParamAddCtrl",function($scope,systemParamRES,systemParamTRES){ $scope.project = new Object(); $scope.project.status="1"; $scope.project.required="1"; $sco...
mit
tavaresgerson/scriptum
admin/index.php
5218
<?php spl_autoload_register(function($class){ require_once '../class/'.$class.'.php'; require_once '../class/defines.php'; }); if(session_status() == 1 || session_status() == 0) session_start(); ClassAccess::access_prot_pag(); ?> <!DOCTYPE HTML> <html lang="pt-br"...
mit
hpham33/schoolmanager
modules/users/client/controllers/authentication.client.controller.js
1949
'use strict'; angular.module('users').controller('AuthenticationController', ['$scope', '$state', '$http', '$location', '$window', 'Authentication', 'PasswordValidator', function ($scope, $state, $http, $location, $window, Authentication, PasswordValidator) { $scope.authentication = Authentication; $scope.po...
mit
Azure/azure-sdk-for-go
services/search/mgmt/2015-08-19/search/version.go
671
package search import "github.com/Azure/azure-sdk-for-go/version" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect b...
mit
DXkite/suda
suda/src/framework/debug/Caller.php
1105
<?php namespace suda\framework\debug; use Psr\Log\LoggerTrait; use function array_merge; /** * 回溯调用者 */ class Caller { protected $ignorePath = [__FILE__]; protected $backtrace; public function __construct(array $backtrace, array $ignorePath =[]) { $this->ignorePath = array_merge($this->igno...
mit
messenger4j/messenger4j
src/main/java/com/github/messenger4j/webhook/factory/AccountLinkingEventFactory.java
2388
package com.github.messenger4j.webhook.factory; import static com.github.messenger4j.internal.gson.GsonUtil.Constants.PROP_ACCOUNT_LINKING; import static com.github.messenger4j.internal.gson.GsonUtil.Constants.PROP_AUTHORIZATION_CODE; import static com.github.messenger4j.internal.gson.GsonUtil.Constants.PROP_ID; impor...
mit
ProductiveMobile/material-ui
lib/svg-icons/communication/call-received.js
427
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var CommunicationCallReceived = React.createClass({ displayName: 'CommunicationCallReceived', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: "M...
mit
multunus/moveit-mobile
android/app/src/main/java/com/multunus/moveit/MainActivity.java
1555
package com.multunus.moveit; import com.facebook.react.ReactActivity; import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.github.xinthink.rnmk.ReactMaterialKitPackage; import com.multunus.moveit.config.RNConfig; import com.remobile.splashscreen.*; import com.chymtt.rea...
mit
Aevin1387/instaVIN
lib/instavin.rb
230
require "instavin/version" require "instavin/errors" require "instavin/reports" require "symboltable" module InstaVIN extend self def configure yield config end def config @@config ||= SymbolTable.new end end
mit
AndyRazafy/fid-dirt-actp
application/models/Pdf_Model.php
2179
<?php require_once("Base_Model.php"); class Pdf_Model extends Base_Model { function __construct() { parent::__construct(); } public function get_data_pdf($idclient) { $sql = "select idclient, nom, prenom, nomta, nomaction, nomemploye, dateappel, dureeappel, dateaction, commentaireaction from d...
mit
cpimhoff/End-of-the-Line
Unity Project/End of the Line/Assets/World Generation/Generation/PatchGenerator.cs
2998
using UnityEngine; using System.Collections.Generic; public class PatchGenerator : MonoBehaviour { public MatchMaker matchMaker; public List<GameObject> templatePatches = new List<GameObject>(); public GameObject characterTemplate; public GameObject animalTemplate; public List<GameObject> props; // Returns a...
mit
r7kamura/fastladder
app/assets/javascripts/common.js
35294
//= require i18n //= require i18n/translations I18n.locale = (typeof Language !== 'undefined' && Language === 'English') ? 'en' : 'ja'; I18n.defaultSeparator = '/'; I18n.missingTranslation = function(scope) { return scope; }; /* 良く使う関数 */ var GLOBAL = this; // bench function $(el){ //return typeof el == 'string' ...
mit
VoronFX/Aurora
Project-Aurora/Project-Aurora/Profiles/CSGO/Layers/CSGOBurningLayerHandler.cs
4132
using Aurora.EffectsEngine; using Aurora.Profiles.CSGO.GSI; using Aurora.Profiles.CSGO.GSI.Nodes; using Aurora.Settings; using Aurora.Settings.Layers; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using Syst...
mit
dmitrymomot/kohana-restful-api
init.php
894
<?php defined('SYSPATH') OR die('No direct script access.'); $config = Kohana::$config->load('restful_api'); $default_format = Arr::get($config, 'default_format', 'json'); $allowed_formats = implode('|', array_keys(Arr::get($config, 'format_map', array($default_format => $default_format)))); Route::set('resful-api-de...
mit
cloew/KaoDecorators
setup.py
256
from distutils.core import setup setup(name='kao_decorators', version='0.1.2', description="Collection of useful decorators", author='Chris Loew', author_email='cloew123@gmail.com', packages=['kao_decorators'], )
mit
TED-996/StackLang
StackLang.Ide/Properties/Resources.Designer.cs
2431
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.21006.1 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------...
mit
dwightwatson/active
src/Route.php
2476
<?php namespace Watson\Active; use Illuminate\Routing\Router; use Illuminate\Support\Str; class Route { /** * Illuminate Router instance. * * @var \Illuminate\Routing\Router */ protected $router; /** * Construct the class. * * @param \Illuminate\Routing\Router $...
mit
rgujju/MeanApp
client/src/app/register/register.component.ts
2469
import { Component, OnInit } from '@angular/core'; import { FormGroup,FormControl, FormBuilder,ReactiveFormsModule,Validators } from '@angular/forms'; import { Router } from '@angular/router'; import {HttpModule} from '@angular/http'; import { User } from '../user'; import { UserService } from '../user.service'; @Com...
mit
indraphan/mean-ez
packages/contact/server/models/contact.js
461
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Contact Schema */ var ContactSchema = new Schema({ name: { type: String, required: true }, phone: { type: Number }, email: { type: String }, facebook: { type: String }, twitter: ...
mit
bogdananton/php-vcs-control
src/Support/Launchers/ProcOpen.php
1665
<?php namespace PHPVCSControl\Support\Launchers; use PHPVCSControl\Support\Filesystem; use Psr\Log\LoggerInterface; class ProcOpen implements LauncherInterface { /** @var \Monolog\Logger */ protected $logger; /** @var Filesystem */ protected $filesystem; public function __construct(LoggerInterfa...
mit
klinkaren/zeus
src/CImage/CImage.php
15346
<?php /** * ===== CImage ===== * - Modifies, caches och outputs images * * === HOW === * Takes in array containing: * - imageDir (path to image directory) * - cacheDir (path to cache) * ...and optionally: * - maxWidth and maxHeight (of images) * * === EXAMPLE === * $options = array( * 'imageDir' => __DIR__ . DIR...
mit
JM89/personalfinancemanager
PFM.Website/PersonalFinanceManager/DTOs/Salary/SalaryDetails.cs
740
using System; using System.Collections.Generic; namespace PersonalFinanceManager.DTOs.Salary { public class SalaryDetails { public int Id { get; set; } public string Description { get; set; } public DateTime StartDate { get; set; } public DateTime? EndDate { get; set; } ...
mit
alexey-ernest/assembly-line
AssemblyLine/DAL/Entities/Employee.cs
618
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace AssemblyLine.DAL.Entities { public class Employee { public int Id { get; set; } public User User { get; set; } [Required] [Display(Name = "First Name")] public strin...
mit
andrewaguiar/natural-date
lib/natural-date/matcher/year_matcher.rb
297
module YearMatcher def self.match? date, reference_date, expression_map return expression_map[:year].include?(date.year) if expression_map[:year] return true if expression_map[:week_day] || !expression_map[:day] || !expression_map[:month] date.year == reference_date.year end end
mit
sudheerj/generator-jhipster-primeng
gulpfile.js
2719
const gulp = require('gulp'); const bumper = require('gulp-bump'); const eslint = require('gulp-eslint'); const git = require('gulp-git'); const shell = require('gulp-shell'); const fs = require('fs'); const sequence = require('gulp-sequence'); const path = require('path'); const mocha = require('gulp-mocha'); const is...
mit
Soladin/studi-budi
spec/studi-budi_spec.rb
820
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "StudiBudi" do # it "fails" do # fail "hey buddy, you should probably rename this file and start specing for real" # end before do @study_helper = StudiBudi.new end it "should get the user's input" do @study_helper.stub!(...
mit
bcuff/FodyAddinSamples
AnotarSerilogSample/LogEventExtensions.cs
480
using Serilog.Events; public static class LogEventExtensions { public static string MethodName(this LogEvent logEvent) { var logEventPropertyValue = (ScalarValue)logEvent.Properties["MethodName"]; return (string) logEventPropertyValue.Value; } public static int LineNumber(this LogEvent...
mit
datasift/datasift-ruby
lib/pylon.rb
11021
module DataSift # # Class for accessing DataSift's PYLON API class Pylon < DataSift::ApiResource # Check PYLON CSDL is valid by making an /pylon/validate API call # # @param csdl [String] CSDL you wish to validate # @param boolResponse [Boolean] True if you want a boolean response. # @param se...
mit
venliong/webby
lib/htmlform/input_text_test.go
1508
package htmlform import ( "fmt" "github.com/CJ-Jackson/webby" "net/http" "net/url" "testing" ) func TestFormInputText(t *testing.T) { fmt.Println("InputText Test:\r\n") form := New( &InputText{ Name: "text", MinChar: 1, MaxChar: 8, RegExpRule: "^([a-zA-Z]*)$", RegExpErr: "Letters...
mit
jakimowicz/longurl
test/constants.rb
587
ShortToLong = { :tiny_url => { "http://tinyurl.com/cnuw9a" => "http://fabien.jakimowicz.com", "http://tinyurl.com/blnhsg" => "http://www.google.com/search?q=number+of+horns+on+a+unicorn&ie=UTF-8" }, :is_gd => { "http://is.gd/iUKg" => "http://fabien.jakimowicz.com", "http://is.gd/iYCo" => "http://...
mit
szhnet/kcp-netty
kcp-netty/src/main/java/io/jpower/kcp/netty/KcpOutput.java
194
package io.jpower.kcp.netty; import io.netty.buffer.ByteBuf; /** * @author <a href="mailto:szhnet@gmail.com">szh</a> */ public interface KcpOutput { void out(ByteBuf data, Kcp kcp); }
mit
benburkert/poolparty
spec/poolparty/pool/script_spec.rb
1440
require File.dirname(__FILE__) + '/../spec_helper' describe "Script" do it "should have inflate as a class method" do Script.respond_to?(:inflate).should == true end it "should have inflate_file as an instance method" do Script.respond_to?(:inflate_file).should == true end it "should have inflate as ...
mit
bitdeal/bitdeal
src/qt/locale/bitcoin_ro.ts
22876
<TS language="ro" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Click dreapta pentru a modifica adresa o eticheta</translation> </message> <message> <source>Create a new address</source> ...
mit
marshallhumble/python-linkedin
linkedin/linkedin.py
22069
import contextlib import hashlib import random from urllib.parse import quote, quote_plus, urljoin import requests from requests_oauthlib import OAuth1 from io import StringIO from .exceptions import LinkedInError from .models import AccessToken, LinkedInInvitation, LinkedInMessage from .utils import enum, to_utf8,...
mit
sophieottaway/test-project
app/routes.js
520
module.exports = { bind : function (app) { app.get('/', function (req, res) { res.render('index'); }); app.get('/examples/template-data', function (req, res) { res.render('examples/template-data', { 'name' : 'Foo' }); }); // add your routes here app.get('/examples/process1', fu...
mit
xmljim/w3odrl21
W3COdrl2/src/main/java/org/w3c/odrl/W3COdrl2/parsers/OdrlContentProcessorException.java
984
/** * */ package org.w3c.odrl.W3COdrl2.parsers; /** * @author Jim Earley <xml.jim@gmail.com> Sep 10, 2014 * */ public class OdrlContentProcessorException extends OdrlParserException { /** * */ private static final long serialVersionUID = -6320596040668800253L; /** * */ pub...
mit
ffuenf/Ffuenf_CategoryProductSortBackend
skin/adminhtml/default/default/js/categoryproductsortbackend.js
4340
var isBackend = typeof FORM_KEY != 'undefined'; function changeOrder(categoryId, productId, neighbourId, ajaxBlockUrl, listId, listTag) { if (!isBackend) { // display centered loader hint box with icon and text var scrollTop = $(document).viewport.getScrollOffsets().top; var avTop = ($(document).view...
mit
zhangqiang110/my4j
pms/src/main/java/com/reasonablespread/service/SplitContactsResponse.java
3776
/** * SplitContactsResponse.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.reasonablespread.service; public class SplitContactsResponse implements java.io.Serializable { private boolean splitContactsResult; ...
mit
stefanliydov/SoftUniLab
RedoingHomeworkCuzFML/ConsoleApplication1/Properties/AssemblyInfo.cs
1414
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("Co...
mit
getfundament/fundament
src/js/core.js
2909
/*! * Fundament framework v0.4.0 * * https://getfundament.com * * @license MIT * @author Jason Koolman and The Fundament Authors */ window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame ...
mit
lcy2080/OpenGL_Example
Template_OpenGL/Template_OpenGL/main.cpp
2645
// // main.cpp // Template_OpenGL // // Created by 이창영 on 2015. 8. 12.. // Copyright (c) 2015년 이창영. All rights reserved. // #include <iostream> using namespace std; /*glut for Windows*/ //#include <GL/glut.h> /*glut for Mac*/ //#include <OpenGL/OpenGL.h> #include <GLUT/GLUT.h> /*GLUT display callback function*...
mit
juankiz/react-native-carousel
Carousel.js
4129
'use strict'; var React = require('react'); var { Dimensions, StyleSheet, Text, View, } = require('react-native'); var TimerMixin = require('react-timer-mixin'); var CarouselPager = require('./CarouselPager'); var Carousel = React.createClass({ mixins: [TimerMixin], getDefaultProps() { return { ...
mit
odaper/angular2-sample-taskmanager
src/app/app.module.ts
1367
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { AppComponent } from './app.component'; import { LoginComponent } from './login/login.component'; import { HomeComponent } from './home/home.component'; import { A...
mit
kmhasan-class/summer2016dslab
Linked List/linkedlist.cpp
1102
#include "linkedlist.h" #include <cstdlib> LinkedList::LinkedList() { head = NULL; } void LinkedList::insertAtFront(int data) { Node *n = new Node(data); n->next = head; head = n; } int LinkedList::removeFromFront() { int data = head->data; Node* t = head; head = head->next; delete t;...
mit
jmfeurprier/perf
lib/perf/Persistence/Operation/OperatorFactory.php
3997
<?php namespace perf\Persistence\Operation; use \perf\Persistence\EntityMetadataPool; use \perf\Db\ConnectionPool; /** * * * @package perf */ class OperatorFactory { /** * Entity metadata pool. * * @var EntityMetadataPool */ private $entityMetadataPool; /** * Connection po...
mit
JosePedroMatos/Tethys
tethys/__init__.py
198
from __future__ import absolute_import # This will make sure the app is always imported when # Django starts so that shared_task will use this app. from .celery import app as celery_app # noqa
mit
Patrick-Batenburg/Library_DummyData
Solution/src/main/java/library/domain/Member.java
7192
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package library.domain; import java.util.ArrayList; /** * * @author ppthgast */ public class Member { private int memberID; private String firstName; private String lastName; private String str...
mit
JesusisFreedom/generator-ng-webpack
app/index.js
1782
'use strict'; var util = require('util'); var path = require('path'); var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var NgComponentGenerator = yeoman.generators.Base.extend({ initializing: function () { if (!this.options['skip-message']) { console.log(chalk.magenta('You\'re using...
mit
mbl-cli/DspaceTools
spec/app/models_spec.rb
5079
require_relative '../spec_helper' describe ApiKey do it 'should instantiate' do ak = ApiKey.where(eperson_id: 1).first ak.class.should == ApiKey end it 'should be able to have more than one api key per eperson' do aks = ApiKey.where(eperson_id: 1) aks.size.should > 1 aks = ApiKey.where(eper...
mit
masche842/alchemy_nodes
spec/dummy/db/migrate/20120323095940_change_open_link_in_new_window_to_link_target.alchemy.rb
1002
# This migration comes from alchemy (originally 20110711142057) class ChangeOpenLinkInNewWindowToLinkTarget < ActiveRecord::Migration def self.up change_column :essence_pictures, :open_link_in_new_window, :string change_column :essence_texts, :open_link_in_new_window, :string rename_column :essence_pictur...
mit
EffectHub/effecthub
application/controllers/author.php
7829
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Author extends CI_Controller { public function __construct(){ parent::__construct(); $this->load->helper('url'); if($this->session->userdata('language')) { $lang = $this->session->userdata('language'); }...
mit
Imms/imms.github.io
jspm_packages/npm/react@15.3.0/lib/ReactElementValidator.js
5595
/* */ (function(process) { 'use strict'; var ReactCurrentOwner = require('./ReactCurrentOwner'); var ReactComponentTreeDevtool = require('./ReactComponentTreeDevtool'); var ReactElement = require('./ReactElement'); var ReactPropTypeLocations = require('./ReactPropTypeLocations'); var checkReactTypeSpec = r...
mit
js-fns/date-fns
src/locale/mk/index.d.ts
146
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. import { mk } from 'date-fns/locale' export = mk
mit
jumbowhales/Pokemon-Showdown
server/chat-commands/room-settings.ts
53756
/** * Room settings commands * Pokemon Showdown - http://pokemonshowdown.com/ * * Commands for settings relating to room setting filtering. * * @license MIT */ 'use strict'; const RANKS: string[] = Config.groupsranking; const SLOWCHAT_MINIMUM = 2; const SLOWCHAT_MAXIMUM = 60; const SLOWCHAT_USER_REQUIREMENT =...
mit
knq/xo
_examples/pgcatalog/ischema/elementtype.xo.go
2983
package ischema // Code generated by xo. DO NOT EDIT. import ( "database/sql" ) // ElementType represents a row from 'information_schema.element_types'. type ElementType struct { ObjectCatalog sql.NullString `json:"object_catalog"` // object_catalog ObjectSchema sql.NullString `...
mit
RaviRajpurohit/CodeIgniter
application/views/jobseeker/employer_retry_sign_in.php
1792
<?php defined('BASEPATH') OR exit('No direct script access allowed'); if($this->session->userdata('e_mail')!=''){ redirect(base_url().'index.php/home'); } ?> <?php echo form_open('employer_sign_in/sing_in_user'); echo '<span style="color:red;">'.$this->session->flashdata('error').'</span>'; ?> <d...
mit
dmaslov/super-coin-box
gulpfile.js
2079
var gulp = require('gulp'), jsmin = require('gulp-jsmin'), rename = require('gulp-rename'), imagemin = require('gulp-imagemin'), optipng = require('imagemin-optipng'), cssmin = require('gulp-cssmin'), concat = require('gulp-concat'), connect = require('gulp-connect'); var srcPath = 'public'; var paths = ...
mit
michelson/BigBroda
spec/dummy/config/initializers/bigquery.rb
537
def fixture_key(type, filename) dir_name = type.to_s + "s" Rails.root + "../fixtures/#{dir_name}/#{filename}" end def config_options config = YAML.load( File.open(fixture_key("config", "account_config.yml")) ) config["key_file"] = fixture_key("key", config["pem"]) return config end GoogleBigquery::Config.s...
mit
CamelKing/alpha
src/common/sortedLastInsertAt.ts
825
/** * Perform a binary search on a sorted array to determine * highest index to insert the target and maintain the sorting order. * * This index will be different than sortedIndex when there are * redundant elements, and this function will return the position * after the highest index as the position to insert th...
mit
hiasinho/acts_as_explorable
spec/spec_helper.rb
591
begin require 'byebug' rescue LoadError end $LOAD_PATH << '.' unless $LOAD_PATH.include?('.') $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__)) require 'logger' require File.expand_path('../../lib/acts_as_explorable', __FILE__) I18n.enforce_available_locales = true require 'rails' require 'rspec/its' requi...
mit
mrYakamoto/phase-0
week-5/pad-array/my_solution.rb
3087
=begin Pad an Array # I worked on this challenge [with: Gregg Wehmeier & Shea Munion] # I spent [1.5] hours on this challenge. # 0. Pseudocode # What is the input? - an array - a new length of array/minimum size - a string to pad the array (value) # What is the output? (i.e. What should the code return?) ...
mit
razsilev/TelerikAcademy_Homework
High-Quality_Code/HQC-Exam-2014-Morning-Send/Computers-problem/Niki/Ram/RamMemory.cs
438
namespace ComputerBuildingSystem.Ram { public class RamMemory : IRamMemory { private int value; public RamMemory(int amount) { this.Amount = amount; } public int Amount { get; set; } public void SaveValue(int newValue) { this.va...
mit
mattsnider/html5-game-engine
src/snake/main.js
408
// todo: generify this... probably a game controller of some kind. (function() { 'use strict'; var game = new GameSnake(); game.start(); // todo: move this into a game controller system $(document).keydown(function(e) { if (game.setKey(e.keyCode)) { e.preventDefault(); } }); $(document).k...
mit
SciresM/3DS-Builder
3DS Builder/Properties/Settings.Designer.cs
1069
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //--...
mit
jtuds/wordstart-theme
gruntfile.js
7869
module.exports = function(grunt) { // To support SASS/SCSS or Stylus, just install // the appropriate grunt package and it will be automatically included // in the build process, Sass is included by default: // // * for SASS/SCSS support, run `npm install --save-dev grunt-contrib-sass` // * for Stylus/Nib suppor...
mit
PhilAndrew/JumpMicro
JMCloner/src/main/resources/korolev.js
9686
(function(global) { global.Korolev = (function() { var root = null, els = null, addHandler = null, removeHandler = null, scheduledAddHandlerItems = [], formDataProgressHandler = null, renderNum = 0, rootListeners = [], listenFun = null, historyHandler = null,...
mit
OskarStark/EasyAdminBundle
src/Form/Filter/Type/EntityFilterType.php
2746
<?php namespace EasyCorp\Bundle\EasyAdminBundle\Form\Filter\Type; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Query\Expr; use Doctrine\ORM\QueryBuilder; use EasyCorp\Bundle\EasyAdminBundle\Form\Type\ComparisonType; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\FormInterface...
mit
rjz/hubbub
common/repository.go
761
package common import ( "encoding/json" "io/ioutil" "strings" ) type Repository struct { URL string `json:"url,omitempty"` urlPieces []string } func (r *Repository) urlFragment(n int) *string { if r.urlPieces == nil { r.urlPieces = strings.Split(r.URL, "/") } return &r.urlPieces[n] } func (r *Reposi...
mit
johanvandegriff/BoggleSolver
display.py
750
#!/usr/bin/python import sys import pickle if len(sys.argv) == 1: quit() file = pickle.load(open(sys.argv[1],'r')) #import the board board = file[0] size = len(board) score = 0; numwords = 0 if(len(file) > 1): words = file[1] for word in words: length = len(word) if length < 7: points = length -...
mit
Insire/MvvmScarletToolkit
src/MvvmScarletToolkit.Wpf/Features/HtmlTextBlock/Enums/SymbolType.cs
164
namespace MvvmScarletToolkit.Wpf { internal enum SymbolType { Reserved, European, Symbol, Scientific, Shape } }
mit
imrancluster/bms
src/BMS/PublicBundle/PublicBundle.php
123
<?php namespace BMS\PublicBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class PublicBundle extends Bundle { }
mit
webholics/node-trader
test/endpoints/boersennews.js
2243
(function() { var assertEquity, should; should = require('should'); assertEquity = function(equity, name) { var f, _i, _len, _ref, _results; should.exist(equity); equity.should.have.keys('name', 'isin', 'wkn', 'latestFacts', 'historicFacts'); if (name) { equity.name.should.equal(name); ...
mit
angular/angularfire
samples/advanced/src/app/app.component.ts
692
import { ApplicationRef, Component, isDevMode } from '@angular/core'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; @Component({ selector: 'app-root', template: ` <h1>AngularFire kitchen sink (<a href="https://github.com/angular/angularfire/tree/master/samples/advanced"><code>samples/adv...
mit
ArxOne/OneFilesystem
OneFilesystem/Protocols/File/FileProtocolFilesystem.cs
12957
#region OneFilesystem // OneFilesystem // (to rule them all... Or at least some...) // https://github.com/ArxOne/OneFilesystem // Released under MIT license http://opensource.org/licenses/MIT #endregion namespace ArxOne.OneFilesystem.Protocols.File { using System; using System.Collections.Generic; using Sy...
mit
hannahhoward/angular
modules/@angular/compiler/test/css/parser_spec.ts
22399
import { ddescribe, describe, it, iit, xit, expect, beforeEach, afterEach } from '@angular/core/testing/testing_internal'; import {BaseException} from '../../src/facade/exceptions'; import { ParsedCssResult, CssParser, BlockType, CssSelectorRuleAST, CssKeyframeRuleAST, CssKeyframeDefinitio...
mit
siftware/live-connect
src/Siftware/TokenStore/TokenStoreSession.php
1685
<?php /* * This file is part of the siftware/live-connect package. * * (c) 2014 Siftware <code@siftware.com> * * Author - Darren Beale @bealers * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Siftware\TokenStore; clas...
mit
astrada/smartwishlistapp-android
app/src/main/java/net/smartwishlist/smartwishlistapp/ApiSignature.java
1369
package net.smartwishlist.smartwishlistapp; import java.math.BigInteger; import java.nio.charset.Charset; import java.util.Locale; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; public class ApiSignature { private static final Charset UTF_8 = Charset.forName("UTF-8"); private static final ...
mit
next-l/enju_nii
spec/dummy/config/initializers/devise.rb
9773
# Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| config.secret_key = 'cfb73aad651cfc020276d86a1370418674322f9191ea58045ffad5dbe066028f98f2cc14d0acbe0b25a46ae6a05c0c48d003a55b6137baf041ff384cb2d7a33f...
mit
biola/profile-publisher
db/migrate/20140818154030_group_persons_to_memberships.rb
488
class GroupPersonsToMemberships < Mongoid::Migration def self.up Group.all.each do |group| if group["person_ids"].present? group["person_ids"].each do |p_id| if group.memberships.where(person_id: p_id).blank? group.memberships.new(person_id: p_id, order: group.memberships.map(&...
mit
djeppe/Simcoe
test/index.php
28
<?php echo "mumintrollet" ?>
mit
shadowinlife/biplatform
application/models/page_model.php
281
<?php /** * 页面操作 * * @author fefeding * @date 2014-12-21 */ class Page_model extends MY_Model { //获取页面 public function getById($id) { $sql = "select * from tbpageconfig where id=?"; return $this->dbHelper->select_row($sql, array($id)); } }
mit
Eelco81/server-test-project
Lib/Http/Src/HttpResponseEncoderTester.cpp
3182
#include "gmock/gmock.h" #include "HttpResponseEncoder.h" namespace { std::string Encode (HTTP::Response& inResponse) { HTTP::ResponseEncoder encoder; std::string result; encoder.Pipe ([&](const std::string& data) { result = data; }); encoder.Write (inResponse); return result; } ...
mit
udacity/FEF-Quiz-Angular-Module
app/scripts/app.js
187
'use strict'; /** * @ngdoc overview * @name newModuleQuizApp * @description * # newModuleQuizApp * * Main module of the application. */ angular .module('newModuleQuizApp', []);
mit
nhs0912/BOJ
src/Problems/P_2606.java
2437
package Problems; import java.io.*; import java.util.StringTokenizer; /** * 문제 번호 : 2606 * 문제 이름 : 바이러스 * 문제 주소 : https://www.acmicpc.net/problem/2606 */ class P_2606 { int[][] adjMatrix; boolean[] visited; int virusCnt = 0; BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out...
mit
MrScraty59/bit
application/controllers/Classes.php
2263
<?php class Classes extends CI_Controller { public function liste() { $data = Array(); $data['classes'] = $this->classe->getClasses(); $this->load->view('template/header'); $this->load->view('pages/classes/liste', $data); $this->load->view('template/footer'); } ...
mit
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_91/safe/CWE_91__POST__func_preg_replace__username-concatenation_simple_quote.php
1362
<?php /* Safe sample input : get the field UserData from the variable $_POST SANITIZE : use of preg_replace construction : concatenation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this softwa...
mit
cronelab/radroom
conversion/dcmtk/dcmrt/libsrc/drtcss.cc
29796
/* * * Copyright (C) 2008-2012, OFFIS e.V. and ICSMED AG, Oldenburg, Germany * Copyright (C) 2013-2015, J. Riesmeier, Oldenburg, Germany * All rights reserved. See COPYRIGHT file for details. * * Source file for class DRTChannelSourceSequence * * Generated automatically from DICOM PS 3.3-2015c * File cr...
mit
rdkmaster/jigsaw
src/app/demo/pc/graph/map/demo.component.ts
12069
import {AfterViewInit, Component, ViewChild} from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {AbstractGraphData, EchartOptions, JigsawGraph} from "jigsaw/public_api"; @Component({ templateUrl: './demo.component.html' }) export class MapGraphComponent implements AfterViewInit { dat...
mit
ardliath/vor
Source/Liath.Vor.UI.Web.Tests/Properties/AssemblyInfo.cs
956
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("Li...
mit