code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
<?php /**************************************************************************** * todoyu is published under the BSD License: * http://www.opensource.org/licenses/bsd-license.php * * Copyright (c) 2013, snowflake productions GmbH, Switzerland * All rights reserved. * * This script is part of the todoyu project. * Th...
JoAutomation/todo-for-you
ext/assets/model/TodoyuAssetsTaskAsset.class.php
PHP
mit
1,210
<?php /** * The Initial Developer of the Original Code is * Tarmo Alexander Sundström <ta@sundstrom.im>. * * Portions created by the Initial Developer are * Copyright (C) 2014 Tarmo Alexander Sundström <ta@sundstrom.im> * * All Rights Reserved. * * Contributor(s): * * Permission is hereby granted, free of c...
lahdekorpi/webvaloa
vendor/Webvaloa/Plugin.php
PHP
mit
9,863
const electron = window.require('electron'); const events = window.require('events'); const { ipcRenderer } = electron; const { EventEmitter } = events; class Emitter extends EventEmitter {} window.Events = new Emitter(); module.exports = () => { let settings = window.localStorage.getItem('settings'); if (s...
vevix/focus
app/js/init.js
JavaScript
mit
740
using System; using System.Collections.Generic; using System.Linq; using BohFoundation.ApplicantsRepository.Repositories.Implementations; using BohFoundation.AzureStorage.TableStorage.Implementations.Essay.Entities; using BohFoundation.AzureStorage.TableStorage.Interfaces.Essay; using BohFoundation.AzureStorage.TableS...
Sobieck00/BOH-Bulldog-Scholarship-Application-Management
BohFoundation.ApplicantsRepository.Tests/IntegrationTests/ApplicantsEssayRepositoryIntegrationTests.cs
C#
mit
17,599
class AddAuthorAndSubjectToClaimStateTransitions < ActiveRecord::Migration[4.2] def change add_column :claim_state_transitions, :author_id, :integer add_column :claim_state_transitions, :subject_id, :integer end end
ministryofjustice/advocate-defence-payments
db/migrate/20160909150238_add_author_and_subject_to_claim_state_transitions.rb
Ruby
mit
228
# This migration comes from thinkspace_resource (originally 20150502000000) class AddFingerprintToFile < ActiveRecord::Migration def change add_column :thinkspace_resource_files, :file_fingerprint, :string end end
sixthedge/cellar
packages/opentbl/api/db/migrate/20170511210074_add_fingerprint_to_file.thinkspace_resource.rb
Ruby
mit
222
/** * 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. */ package com.microsoft.azure.management.network.v2020_04_01; import java.util.Map; impor...
selvasingh/azure-sdk-for-java
sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/TagsObject.java
Java
mit
954
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
kashike/SpongeCommon
src/main/java/org/spongepowered/common/mixin/core/server/network/MixinNetHandlerLoginServer.java
Java
mit
5,729
from otp.ai.AIBaseGlobal import * import DistributedCCharBaseAI from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM, State from direct.fsm import State from direct.task import Task import random from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer impo...
ksmit799/Toontown-Source
toontown/classicchars/DistributedGoofySpeedwayAI.py
Python
mit
6,450
import React from 'react'; import { Link } from 'react-router'; import HotdotActions from '../actions/HotdotActions'; import HotdotObjStore from '../stores/HotdotObjStore'; import MyInfoNavbar from './MyInfoNavbar'; import Weixin from './Weixin'; class Hotdot extends React.Component { constructor(props) { ...
kongchun/BigData-Web
app/m_components/Hotdot.js
JavaScript
mit
5,621
<?php namespace PayU\Api\Response\Builder; use PayU\Api\Request\RequestInterface; use PayU\Api\Response\AbstractResponse; use Psr\Http\Message\ResponseInterface; /** * Interface BuilderInterface * * Provides a common interface to build response objects based on request context * * @package PayU\Api\Response\Bui...
devsdmf/payu-php-sdk
src/PayU/Api/Response/Builder/BuilderInterface.php
PHP
mit
713
using SolrExpress.Search.Parameter; using System; using System.Globalization; using System.Linq; using System.Text; namespace SolrExpress.Utility { /// <summary> /// Helper class used to extract information inside parameters /// </summary> internal static class ParameterUtil { /// <summary...
solr-express/solr-express
src/SolrExpress/Utility/ParameterUtil.cs
C#
mit
4,034
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import ReactDOM from 'react-dom';...
reicheltp/Sonic
src/client.js
JavaScript
mit
4,372
var $M = require("@effectful/debugger"), $x = $M.context, $ret = $M.ret, $unhandled = $M.unhandled, $brk = $M.brk, $lset = $M.lset, $mcall = $M.mcall, $m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", { __webpack_require__: typeof __webpack_require__...
awto/effectfuljs
packages/core/test/samples/simple/expr/test04-out-ds.js
JavaScript
mit
1,801
module Shiphawk module Api # Company API # # @see https://shiphawk.com/api-docs # # The following API actions provide the CRUD interface to managing a shipment's tracking. # module ShipmentsStatus def shipments_status_update options put_request status_path, options en...
ShipHawk/shiphawk-ruby
lib/shiphawk/api/shipments_status.rb
Ruby
mit
342
import "bootstrap-slider"; import "bootstrap-switch"; export module profile { function onInfoSubmit() { var params: { [key: string]: string } = {}; $("#info-container .info-field").each(function() { let name: string = this.getAttribute("name"); if (name == null) { ...
crossroads-education/eta-office
static/js/profile.ts
TypeScript
mit
2,030
<?php // This file is an extension of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // //...
SemmLille/filter_podlille1
version.php
PHP
mit
1,422
<?php $this->load->Model('exam/Exam_manager_model'); $this->load->model('Branch/Course_model'); $exams = $this->Exam_manager_model->exam_details(); $exam_type = $this->Exam_manager_model->get_all_exam_type(); $branch = $this->Course_model->order_by_column('c_name'); ?> <div class="row"> <div class=col-lg-12> ...
mayursn/lms_hmvc_live
application/modules/exam/views/addinternal.php
PHP
mit
10,084
<?php namespace Augwa\QuickBooks\Model; /** * Master Account is the list of accounts in the master list. The master * list is the complete list of accounts prescribed by the French * Government. These accounts can be created in the company on a need * basis. The account create API needs to be used to create an ac...
augwa/quickbooks-php-sdk
src/Model/MasterAccountModel.php
PHP
mit
1,145
require 'spec_helper' module Gisele module Compiling describe Gisele2Gts, "on_task_def" do before do subject subject.ith_state(0).initial! end subject do code = <<-GIS.strip task Main Hello end GIS Gisele2Gts.compile(code,...
gisele-tool/gisele-vm
spec/unit/compiling/gisele2gts/test_on_task_def.rb
Ruby
mit
1,476
#include "transactiondesc.h" #include "guiutil.h" #include "lusocoinunits.h" #include "main.h" #include "wallet.h" #include "db.h" #include "ui_interface.h" #include "base58.h" #include <string> QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx) { if (!wtx.IsFinal()) { if (wtx.nLockTime < ...
lusocoin/lusocoin
src/src/qt/transactiondesc.cpp
C++
mit
11,484
<?php /** * Orinoco Framework - A lightweight PHP framework. * * Copyright (c) 2008-2015 Ryan Yonzon, http://www.ryanyonzon.com/ * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php */ namespace Orinoco\Framework; use RuntimeException; class View { // layout name public...
rawswift/orinoco-framework-php
lib/Orinoco/Framework/View.php
PHP
mit
9,496
<?php namespace ibrss\Http\Requests; class RegisterRequest extends Request { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'email' => 'required|email|unique:users', 'password' => 'required|confirmed|min:8', ]; } /** * Determ...
pavel-voronin/Itty-Bitty-RSS
app/Http/Requests/RegisterRequest.php
PHP
mit
451
package util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * Taken from * http://www.javaworld.com/article/2077578/learn-java/java-tip-76--an-alternative-to-the-deep-copy-technique.html * * @author David Miller...
mokonzi131/gatech-colorwar
CS 2340 Agent Simulation/src/util/ObjectCloner.java
Java
mit
1,184
import java.awt.*; public class ListFonts { public static void main(String[] args) { String[] fontNames = GraphicsEnvironment .getLocalGraphicsEnvironment() .getAvailableFontFamilyNames(); for (int i = 0; i < fontNames.length; i++) System.out.println(fontNames[i...
vivekprocoder/teaching
java/lecture 14/ListFonts.java
Java
mit
336
import { Event } from "../events/Event" import { EventDispatcher } from "../events/EventDispatcher" import { Browser } from "../utils/Browser" import { Byte } from "../utils/Byte" /** * 连接建立成功后调度。 * @eventType Event.OPEN * */ /*[Event(name = "open", type = "laya.events.Event")]*/ /** * 接收到数据后调度。 * @eventType Even...
layabox/layaair
src/layaAir/laya/net/Socket.ts
TypeScript
mit
10,026
'use strict'; module.exports = require('./is-implemented')() ? Array.prototype.concat : require('./shim');
runningfun/angular_project
node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/array/#/concat/index.js
JavaScript
mit
112
import React from "react"; import { Link } from "@curi/react-dom"; import { TitledPlainSection, HashSection, Paragraph, CodeBlock, Note, IJS } from "../../components/guide/common"; let meta = { title: "Apollo Integration" }; let setupMeta = { title: "Setup", hash: "setup" }; let looseMeta = { tit...
pshrmn/curi
website/src/pages/Guides/apollo.js
JavaScript
mit
10,462
require 'net/http' require 'net/https' require 'active_merchant/billing/response' module ActiveMerchant #:nodoc: module Billing #:nodoc: # # == Description # The Gateway class is the base class for all ActiveMerchant gateway implementations. # # The standard list of gateway functions that most...
raldred/active_merchant
lib/active_merchant/billing/gateway.rb
Ruby
mit
6,376
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace DevDataControl { public partial class FrmObjectDataSource1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { ...
ac9831/StudyProject-Asp.Net
DevDataControl/DevDataControl/FrmObjectDataSource.aspx.cs
C#
mit
332
require 'tilt/erb' module May class Templator class Template def initialize(path) @file = File.open(path, 'r') if path end def path @file.path end def body return '' unless @file @body ||= @file.read end end class Generator def ...
ainame/may
lib/may/templator.rb
Ruby
mit
865
/** * before : before(el, newEl) * Inserts a new element `newEl` just before `el`. * * var before = require('dom101/before'); * var newNode = document.createElement('div'); * var button = document.querySelector('#submit'); * * before(button, newNode); */ function before (el, newEl) { if (typ...
rstacruz/dom101
before.js
JavaScript
mit
492
<? $page_title = "Mobile Grid System" ?> <?php include("includes/_header.php"); ?> <style> .example .row, .example .row .column, .example .row .columns { background: #f4f4f4; } .example .row { margin-bottom: 10px; } .example .row .column, .example .row .columns { background: #eee; border: 1px solid #ddd; } ...
aaron-lebo/kodefund
resources/public/foundation3/marketing/grid-example3.php
PHP
mit
2,446
package astilog import "flag" // Flags var ( AppName = flag.String("logger-app-name", "", "the logger's app name") Filename = flag.String("logger-filename", "", "the logger's filename") Verbose = flag.Bool("logger-verbose", false, "if true, then log level is debug") ) // Formats const ( FormatJSON = "json" Fo...
OpenBazaar/spvwallet
vendor/github.com/asticode/go-astilog/configuration.go
GO
mit
1,282
<?php require_once('../../lib/Laposta.php'); Laposta::setApiKey("JdMtbsMq2jqJdQZD9AHC"); // initialize field with list_id $field = new Laposta_Field("BaImMu3JZA"); try { // get field info, use field_id or email as argument // $result will contain een array with the response from the server $result = $field->get("i...
laposta/laposta-api-php
examples/field/get.php
PHP
mit
520
import React, { PropTypes } from 'react'; import Page from './Page'; import ProjectListItem from './ProjectListItem'; import AspectContainer from './AspectContainer'; import BannerImage from './BannerImage'; import styles from './Projects.css'; const Projects = ({ projects }) => ( <Page Hero={() => <Aspect...
neffbirkley/o
thomaswooster/src/components/Projects.js
JavaScript
mit
697
"use strict"; ace.define("ace/snippets/golang", ["require", "exports", "module"], function (require, exports, module) { "use strict"; exports.snippetText = undefined; exports.scope = "golang"; });
IonicaBizau/arc-assembler
clients/ace-builds/src-noconflict/snippets/golang.js
JavaScript
mit
204
export default { A: [[1,0],[2,0],[3,0],[0,1],[4,1],[0,2],[1,2],[2,2],[3,2],[4,2],[0,3],[4,3],[0,4],[4,4]], B: [[0,0],[1,0],[2,0],[3,0],[0,1],[4,1],[0,2],[1,2],[2,2],[3,2],[0,3],[4,3],[0,4],[1,4],[2,4],[3,4]], C: [[0,0],[1,0],[2,0],[3,0],[4,0],[0,1],[0,2],[0,3],[0,4],[1,4],[2,4],[3,4],[4,4]], D: [[0,0],[1,0],[2,0],...
Aapzu/aapzu.xyz
config/characters.js
JavaScript
mit
4,761
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Plugin; use Composer\Composer; ...
kocsismate/composer
src/Composer/Plugin/PluginManager.php
PHP
mit
9,901
export default { modules: require('glob!./glob.txt'), options: { name: 'Comment', }, info: true, utils: {}, };
sb-Milky-Way/Comment
.storybook/params.js
JavaScript
mit
125
using Content.Shared.Sound; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Server.Storage.Components { /// <summary> /// Allows locking/unlocking, with access determined by AccessReader /// </summary> [Register...
space-wizards/space-station-14
Content.Server/Lock/LockComponent.cs
C#
mit
986
// Copyright 2008 Adrian Akison // Distributed under license terms of CPOL http://www.codeproject.com/info/cpol10.aspx using System; using System.Collections.Generic; using System.Text; namespace RaidScheduler.Domain.DomainModels.Combinations { /// <summary> /// Interface for Permutations, Combinations and any...
mac10688/FFXIVRaidScheduler
RaidScheduler.Domain/DomainServices/PartyMaker/Combinatorics/IMetaCollection.cs
C#
mit
1,512
using DragonSpark.Model.Results; namespace DragonSpark.Application.Security.Identity; public interface IUsers<T> : IResult<UsersSession<T>> where T : class {}
DragonSpark/Framework
DragonSpark.Application/Security/Identity/IUsers.cs
C#
mit
163
#!/usr/bin/env node process.env.FORCE_COLOR = true; const program = require('commander'); const package = require('../package.json'); /** * CLI Commands * */ program .version((package.name) + '@' + (package.version)); /** * Command for creating and seeding */ program .command('create [dataObject]', 'Gen...
generationtux/cufflink
src/cufflink.js
JavaScript
mit
434
var hb = require('handlebars') , fs = require('vinyl-fs') , map = require('vinyl-map') module.exports = function (opts, cb) { if (!opts || typeof opts === 'function') throw new Error('opts is required') if (!opts.origin) throw new Error('opts.origin is required') if (!opts.target) throw new Error('opts.targe...
Techwraith/hbs-dir
index.js
JavaScript
mit
642
package boun.swe573.accessbadger; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class ABHelloWorld { @RequestMapping("/welcome") public String helloWorld() { String message = "<br><div style='text-align:center;'>" + "<h3>*...
alihaluk/swe573main
src/boun/swe573/accessbadger/ABHelloWorld.java
Java
mit
393
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017, STEREOLABS. // // All rights reserved. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIE...
atkvo/masters-bot
src/autobot/src/zed_wrapper_nodelet.cpp
C++
mit
37,455
# frozen_string_literal: true # == Schema Information # # Table name: tags # # id :uuid not null, primary key # shared :boolean not null # tag_name :string not null # created_at :datetime not null # updated_at :datetime not null...
MindLeaps/tracker
spec/factories/tags.rb
Ruby
mit
590
module Tabulo # @!visibility private module Util NEWLINE = /\r\n|\n|\r/ # @!visibility private def self.condense_lines(lines) join_lines(lines.reject(&:empty?)) end # @!visibility private def self.divides?(smaller, larger) larger % smaller == 0 end # @!visibility pri...
matt-harvey/tabulo
lib/tabulo/util.rb
Ruby
mit
1,017
<?php //Get Variables $favuserid = $_POST['userid']; $ownprofile = $_POST['ownprofile']; $ownusername = $_POST['ownusername']; //Connect to mysql database $connection = mysql_connect("localhost", "6470", "6470") or die("mySQL Connection Error<br />\n"); $database='6470_main'; mysql_select_db($database) or die('Error, ...
albertyw/6.470
src/process/profilefavchange.php
PHP
mit
1,615
var request = require('request'); var url = require('url'); var authenticate = require('./oauthentication'); var Request = function(obj){ this.obj = obj; }; Request.prototype.mailboxes = function(method, specific_url, params, callback){ /* * @params: * @ param : if user wants to call specific mailbox e.g. : ...
slicedev/slice-node
lib/requests.js
JavaScript
mit
3,323
<?php namespace Sasedev\Commons\SharedBundle\HtmlModel\Tags; use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Src; use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Type; use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Charset; use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Defer; use Sasedev\Co...
sasedev/commons-shared-bundle
src/Sasedev/Commons/SharedBundle/HtmlModel/Tags/Script.php
PHP
mit
1,621
package gradebookdata; /** * Represents one row of the course table in the GradeBook database * * @author Eric Carlton * */ public class Course { private String name; private int weight; private int ID; /** * Create a course with all fields filled * * @param name * name of course * @...
Eric-Carlton/GradeBook
GradeBook/src/gradebookdata/Course.java
Java
mit
1,062
#include "RDom.h" #include "Util.h" #include "IROperator.h" #include "IRPrinter.h" namespace Halide { using namespace Internal; using std::string; using std::vector; RVar::operator Expr() const { if (!min().defined() || !extent().defined()) { user_error << "Use of undefined RDom dimension: " << ...
gchauras/Halide
src/RDom.cpp
C++
mit
8,892
(function () { 'use strict'; angular.module('atacamaApp').directive('atacamaIndicator', indicatorDirective); function indicatorDirective() { return { templateUrl: 'app/components/widgets/indicator/indicator.html', link: linkFunc, controller: 'IndicatorWidgetController', controllerAs...
the-james-burton/atacama
src/app/components/widgets/indicator/indicator.directive.js
JavaScript
mit
689
define(['tantaman/web/css_manip/CssManip'], function(CassManip) { var el = CassManip.getStyleElem({ id: 'customBackgrounds', create: true }); /** * This is essentially a view class that * render the stylesheet of background classes whenever * new background classes are created. * * @param {EditorModel...
shirshendu/kine_type
public/editor/bundles/app/strut.editor/CustomBgStylesheet.js
JavaScript
mit
957
import { sp } from "@pnp/sp"; import "@pnp/sp/webs"; import "@pnp/sp/user-custom-actions"; import { ISearchQuery } from "@pnp/sp/search"; import { Web } from "@pnp/sp/webs"; export default class ApplicationCustomizersService { /** * fetchAllApplictionCustomizers */ public fetchAllApplictionCustomiz...
AJIXuMuK/sp-dev-fx-webparts
samples/react-Edit-ApplicationCustomizer/src/webparts/applicationCustomizers/service/ApplicationCustomizersService.ts
TypeScript
mit
1,722
package host import ( "errors" "io/ioutil" "path/filepath" "testing" "time" "github.com/NebulousLabs/Sia/crypto" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/modules/renter" "github.com/NebulousLabs/Sia/types" ) const ( testUploadDuration = 20 // Duration in blocks of a standard uploa...
Mingling94/Sia
modules/host/upload_test.go
GO
mit
12,230
#include "glprogram.h" #include <gl/gl3w.h> #include <cstdio> bool compileStatus(GLuint shader) { int ret; glGetShaderiv(shader, GL_COMPILE_STATUS, &ret); return ret; } bool linkStatus(GLuint program) { int ret; glGetProgramiv(program, GL_LINK_STATUS, &ret); return ret; } bool compileShader(GLuint handle, GLenu...
lmurmann/hellogl
hellogl/glprogram.cpp
C++
mit
1,692
#include <climits> #include <cstdlib> #include <cstring> #include "orderline.h" #include "../src/schema/conversion.h" using namespace std; void OrderlineStore::add(string elements[10]) { add_instance(atoi(elements[0].c_str()), atoi(elements[1].c_str()), atoi(elements[2].c_str()), atoi(elements[3].c_str(...
fwalch/imlab
gen/orderline.cpp
C++
mit
3,313
require 'spec_helper' describe Emarsys::Broadcast::Email do it 'should validate valid email' do expect(Emarsys::Broadcast::Email::validate 'winston.smith-1984@big.brother.ru').to be_truthy expect(Emarsys::Broadcast::Email::validate 'abc@example.com').to be_truthy end it 'should not validate invalid email...
Valve/emarsys-broadcast-ruby
spec/email_spec.rb
Ruby
mit
416
var dp = jQuery; dp.noConflict(); dp(document).ready(function() { //SMOOTH SCROLL dp('a[href^="#"]').bind('click.smoothscroll', function(e) { e.preventDefault(); dp('html,body').animate({ scrollTop: dp(this.hash).offset().top }, 1200); }); //SUPER SLIDES // dp('...
mromrell/quotadeck-frontend
public/partials/js/main.js
JavaScript
mit
3,100
<?php require "header.php"; require "menu.php"; session_start(); require "config.php"; require_once __DIR__ . '/src/Facebook/autoload.php'; $fb = new Facebook\Facebook([ 'app_id' => APP_ID, 'app_secret' => APP_SECRET, 'default_graph_version' => APP_VERSION ]); $helper = $fb->getRedirectLoginHelper(); $...
Alavifuentes/conectate
sdkphp/index.php
PHP
mit
3,096
<?php namespace Propel\Tests\Generator\Migration; /** * @group database */ class ForeignKeyTest extends MigrationTestCase { public function testAdd() { $originXml = ' <database> <entity name="migration_test_6"> <field name="id" type="integer" primaryKey="true" autoIncrement="true" /> ...
propelorm/Propel3
tests/Generator/Migration/ForeignKeyTest.php
PHP
mit
4,945
<?php namespace Theintz\PhpDaemon\Plugin; use Theintz\PhpDaemon\Daemon; use Theintz\PhpDaemon\Exception; use Theintz\PhpDaemon\IPlugin; use Theintz\PhpDaemon\Lib\Command; /** * Create a simple socket server. * Supply an IP and Port for incoming connections. Add any number of Command objects to parse client input. ...
theintz/PHP-Daemon
src/PhpDaemon/Plugin/Server.php
PHP
mit
8,663
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
render2k/litecoinclassic
src/qt/bitcoinunits.cpp
C++
mit
4,375
namespace AgileObjects.AgileMapper.Api.Configuration.Projection { /// <summary> /// Enables chaining of configurations for the same source and result type. /// </summary> /// <typeparam name="TSourceElement">The source type to which the configuration should apply.</typeparam> /// <typeparam name="T...
agileobjects/AgileMapper
AgileMapper/Api/Configuration/Projection/IProjectionConfigContinuation.cs
C#
mit
1,199
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SetupEnviroment { class Application { public static void Main(string[] args) { NameSelector.DoExample(); //IdSelector.Main(); //No...
ilse-macias/SeleniumSetup
SetupEnviroment/Application.cs
C#
mit
397
/* ********************************************************************************************************** * The MIT License (MIT) * * * * Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH * * Web: http://www.hypermediasystems.de * ...
helmuttheis/hmsspx
hmssp/SP.gen/Implementationnotes.cs
C#
mit
4,804
using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Web.UI; using System.Web.UI.WebControls; using Vevo; using Vevo.Domain.DataInterfaces; using Vevo.Shared.Utilities; using Vevo.WebAppLib; using Vevo.Base.Domain; public partial class Components_SearchFilterNew : Vevo.Web...
holmes2136/ShopCart
Components/SearchFilterNew.ascx.cs
C#
mit
18,341
<?php namespace Eeemarv\EeemarvBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface;...
eeemarv/eeemarv
src/Eeemarv/EeemarvBundle/Command/MailCommand.php
PHP
mit
3,016
/* * aem-sling-contrib * https://github.com/dherges/aem-sling-contrib * * Copyright (c) 2016 David Herges * Licensed under the MIT license. */ define([ "./core", "./var/slice", "./callbacks" ], function( jQuery, slice ) { jQuery.extend({ Deferred: function( func ) { var tuples = [ // action, add list...
dherges/aem-sling-contrib
content/bootstrap/src/main/content/jcr_root/etc/clientlibs/bootstrap/vendor/jquery/src/deferred.js
JavaScript
mit
4,564
/// <reference path="../../../typings/index.d.ts" /> import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { UserList } from '../components/users'; export class People extends React.Component<{}, {}> { render () { return ( <div className="row"> <div id="content"> ...
arnabdas/yam-in
src/app/views/people.tsx
TypeScript
mit
375
var http = require("http"); var url = require("url"); function start(route, handle) { function onRequest(request, response) { var pathname = url.parse(request.url).pathname; console.log("Request for " + pathname + " received."); route(handle, pathname, response); } http.crea...
ombt/ombt
jssrc/nodebeginner/server/ver4/server.js
JavaScript
mit
421
<?php /** * Copyright (c) 2015 Tobias Schindler * * 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, me...
AlcyZ/Alcys-ORM
src/Core/Db/Facade/UpdateFacade.php
PHP
mit
7,554
/* * XPropertyEvent.cs - Definitions for X event structures. * * Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either versi...
jjenki11/blaze-chem-rendering
qca_designer/lib/pnetlib-0.8.0/Xsharp/Events/XPropertyEvent.cs
C#
mit
1,970
import * as Models from './' export const ItemRequestPriority = [ 'low', 'standard', 'high', 'highest' ] as const export type ItemRequestPriorityTuple = typeof ItemRequestPriority export type ItemRequestPriority = ItemRequestPriorityTuple[number] export const ItemRequestDestination = ['Svařovna'] as const export ...
petrdsvoboda/prototype-orders
app/src/models/ItemRequest.ts
TypeScript
mit
1,446
package com.orbital.lead.controller.Activity; import android.app.Activity; import android.app.AlertDialog; import android.app.DatePickerDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; import android.support.v...
orbitaljt/LEAD
Android/Lead/app/src/main/java/com/orbital/lead/controller/Activity/AddNewSpecificJournalActivity.java
Java
mit
20,434
/*********************************************************************************** Copyright (C) 2016 Mohammad D. Mottaghi Under the terms of the MIT license, permission is granted to anyone to use, copy, modify, publish, redistribute, and/or sell copies of this source code for any commercial and non-commerci...
mmottaghi/Jerdy-Inspector
src/fmStats.cpp
C++
mit
3,488
require "chamberevents/version" require 'chamberevents/read' require 'chamberevents/ical' require 'chamberevents/upload' module Chamberevents def self.update! events = Read.current ical = Ical.new(events).to_s Upload.write('elginchamber-events.ics', ical) end end
JustinLove/chamberevents
lib/chamberevents.rb
Ruby
mit
281
/* * (C) Copyright 2015 Richard Greenlees * * 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,...
RGreenlees/JUMI-Java-Model-Importer
src/com/jumi/scene/objects/JUMISkinDeformer.java
Java
mit
1,888
<?php // Load DB include "ConfigDb.php"; // Load core classes include "core/Model.php"; include "core/Controller.php"; // Load model classes - they extend Model.php include "model/AddressesModel.php"; include "model/EmployeesModel.php"; // Load Controller class - it extends Controller.php include 'controller/FilterI...
stoyantodorovbg/PHP-Web-Development-Basics
Homework Working with Forms in PHP/employee2/index.php
PHP
mit
559
// Copyright (c) Simple Injector Contributors. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for license information. namespace SimpleInjector.Diagnostics { using System; using System.Diagnostics; using SimpleInjector.Advanced; /// <summary> /// Diag...
simpleinjector/SimpleInjector
src/SimpleInjector/Diagnostics/LifestyleMismatchDiagnosticResult.cs
C#
mit
1,347
import Helper, { helper as buildHelper } from '@ember/component/helper'; import { inlineSvg } from 'ember-inline-svg/helpers/inline-svg'; import SVGs from '../svgs'; import Ember from 'ember'; let helper; if (Helper && buildHelper) { helper = buildHelper(function ([path], options) { return inlineSvg(SVGs, path, ...
minutebase/ember-inline-svg
app/helpers/inline-svg.js
JavaScript
mit
502
'use strict'; var path = require('path'); var Stream = require('readable-stream'); var BufferStreams = require('bufferstreams'); var ttf2woff2 = require('ttf2woff2'); var PluginError = require('plugin-error'); var replaceExtension = require('replace-ext'); var PLUGIN_NAME = 'gulp-ttf2woff2'; // File level transform ...
nfroidure/gulp-ttf2woff2
src/index.js
JavaScript
mit
2,569
public class Solution { public int lengthOfLongestSubstringTwoDistinct(String s) { int[] map = new int[128]; int count = 0, start = 0, end = 0, d = 0; while (end < s.length()) { if (map[s.charAt(end++)]++ == 0) count++; while (count > 2) if(map[s.charAt(start++)]-- ==...
zhugejunwei/Algorithms-in-Java-Swift-CPP
String/159. Longest Substring with At Most Two Distinct Characters.java
Java
mit
411
<?php /** * This class defines the structure of the 'category' table. * * * * This map class is used by Propel to do runtime db structure discovery. * For example, the createSelectSql() method checks the type of a given column used in an * ORDER BY clause to know whether it needs to apply SQL to make the ORDE...
Kehet/KReader
build/classes/kreader/map/CategoryTableMap.php
PHP
mit
1,560
require "spec_helper" describe ZMQP1 do it "is awesome" do ZMQP1::Awesome.new.describe.should be_awesome end end
skippy/zmq_p1
spec/awesome_spec.rb
Ruby
mit
122
namespace TheDmi.CouchDesignDocuments { public interface IShowsSection { } }
thedmi/CouchDesignDocuments
Sources/CouchDesignDocuments/IShowsSection.cs
C#
mit
91
//# sourceMappingURL=WeatherData.js.map
MatthewNichols/WeatherDemo
Scripts/WeatherApp/Model/WeatherData.js
JavaScript
mit
43
<?php /* Safe sample input : get the field userData from the variable $_GET via an object sanitize : use of floatval construction : interpretation with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute t...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_95/safe/CWE_95__object-classicGet__func_floatval__variable-interpretation_simple_quote.php
PHP
mit
1,394
/* * The MIT License (MIT) * * Copyright (c) 2016 MrInformatic. * * 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...
MrInformatic/GameSaver
src/main/java/game/saver/remote/gamemaps/RemoteGameDoubleMap.java
Java
mit
5,186
function commentPage() { // Open popup $("#comment-popup").dialog({ width : 800, height : 400, modal : true, appendTo: "#mainForm", open : function(event, ui) { $('input[id$="comment-comment"]').focus(); }, close : function(event, ui) { cancelComment(); } }); } /** * Clean ...
Micht69/shoplist
WebContent/static/scripts/comment.js
JavaScript
mit
556
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; using TwitterAPI; using System.Net; using Core; using System.Security.Cryptography; using System.IO; namespace TwitterAPI { [DataContract] public class TwitterDirectMessage { /// <summary> ...
atst1996/TwitterAPI
TwitterAPI/Method/DirectMessages/DirectMessage.cs
C#
mit
4,411
document.addEventListener("DOMContentLoaded", function() { "use_strict"; // Store game in global variable const CASUDOKU = {}; CASUDOKU.game = (function() { // Controls the state of the game // Game UI let uiStats = document.getElementById("gameStats"), uiComplete = document.getElementById("gameCo...
davidhenry/CaSudoku
js/game.js
JavaScript
mit
8,726
package rest import ( restful "github.com/emicklei/go-restful" swagger "github.com/emicklei/go-restful-swagger12" ) // ConfigureSwagger configures the swagger documentation for all endpoints in the container func ConfigureSwagger(apiDocPath string, container *restful.Container) { if apiDocPath == "" { return } ...
spring1843/chat-server
src/shared/rest/swagger.go
GO
mit
508
webpackJsonp([2],{ /***/ 16: /***/ function(module, exports, __webpack_require__) { /// <reference path="../../typings/tsd.d.ts" /> var ListController = __webpack_require__(17); // webpack will load the html. Nifty, eh? __webpack_require__(9); // webpack will load this scss too! __webpack_require__(18); modul...
jaganathanb/Typescript-Angular-Gulp-Webpack-Dynamic-module-loading-
dist/2.module.js
JavaScript
mit
2,324
<?php namespace App\Models; use Fwartner\Katching\Cacheable; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Comment extends Model { use Cacheable, SoftDeletes; protected $table = 'comments'; protected $fillable = [ 'content', 'is_spam', ...
LaravelHamburg/laravel-hamburg.com
app/Models/Comment.php
PHP
mit
729
require File.expand_path('../core_response', __FILE__) module Korwe module TheCore class InitiateSessionResponse < CoreResponse def initialize(session_id, guid, successful) super(session_id, :InitiateSessionResponse, guid, successful) end end end end
korwe/core-client-ruby
lib/messages/initiate_session_response.rb
Ruby
mit
282
djsex.css = { /* * http://stackoverflow.com/questions/524696/how-to-create-a-style-tag-with-javascript */ create: function(stylesheet) { var head = document.getElementsByTagName('head')[0], style = document.createElement('style'), rules = document.createTextNode(stylesh...
WatersideDevelopment/Fullscreen-Ajax-Image-Loader
js/djsex/CSS.js
JavaScript
mit
1,396