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 |
|---|---|---|---|---|---|
module Marty
module Promises
module Ruby
end
end
end
| arman000/marty | app/services/marty/promises/ruby.rb | Ruby | mit | 65 |
package org.nem.core.model;
import org.nem.core.utils.ArrayUtils;
import java.util.Comparator;
/**
* A custom comparator for comparing MultisigSignatureTransaction objects.
* <br>
* This comparator only looks at the transaction signer and other hash.
*/
public class MultisigSignatureTransactionComparator impleme... | NewEconomyMovement/nem.core | src/main/java/org/nem/core/model/MultisigSignatureTransactionComparator.java | Java | mit | 854 |
<?php
namespace app\controllers;
use Yii;
use app\models\{Freight, FreightSearch};
use yii\web\{Controller, NotFoundHttpException};
/**
* FreightController implements the CRUD actions for Freight model.
*/
class FreightController extends Controller
{
/**
* Lists all Freight models.
* @return mixed
... | lmihaylov2512/logistic-app | controllers/FreightController.php | PHP | mit | 2,382 |
// ReplProbe.js (c) 2010-2013 Loren West and other contributors
// May be freely distributed under the MIT license.
// For further details and documentation:
// http://lorenwest.github.com/monitor-min
(function(root){
// Module loading - this runs server-side only
var Monitor = root.Monitor || require('../Monitor'... | lorenwest/monitor-min | lib/probes/ReplProbe.js | JavaScript | mit | 7,982 |
package model.dataModels;
/**
* Class ManufacturingData.
* @author Daniel
*
*/
public class ManufacturingData {
private String customerNumber;
private String materialNumber;
private String orderNumber;
private String timeStamp;
private MachineData[] machineData;
private SpectralAnalysisData analysisData;
... | 4lexBaum/projekt-5s-dhbw | Backend/src/main/java/model/dataModels/ManufacturingData.java | Java | mit | 1,974 |
using System;
using System.Collections.Generic;
using Roguelike.Core.Elements.Inventory;
using Roguelike.Entities;
using RLNET;
namespace Roguelike.Systems {
public class InventorySystem {
private Player player;
public InventorySystem() {
player = Game.Player;
}
void... | SamFergie/Roguelike | Roguelike/Systems/InventorySystem.cs | C# | mit | 18,045 |
# frozen_string_literal: true
require "dry/core/equalizer"
require "rom/initializer"
require "rom/relation/loaded"
require "rom/relation/composite"
require "rom/relation/materializable"
require "rom/pipeline"
require "rom/support/memoizable"
module ROM
class Relation
# Abstract relation graph class
#
... | rom-rb/rom | lib/rom/relation/graph.rb | Ruby | mit | 2,218 |
version https://git-lfs.github.com/spec/v1
oid sha256:b51623fcae1419d2bb29084e11d56fc9aafae7b0e35bd2a7fd30633a133bef40
size 24229
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.0/slider-base/slider-base-debug.js | JavaScript | mit | 130 |
module Librr::Displayer
class << self
attr_accessor :save_output, :output
def clear_output
@output = []
end
def save(text)
@output ||= []
@output << text
end
end
def show text
if Librr::Displayer.save_output
Librr::Displayer.save(text)
return
end
... | halida/librr | lib/librr/displayer.rb | Ruby | mit | 342 |
var gif_bgs = [];
var gif_center = [];
var length_bgs = 0;
var length_center = 0;
var timer;
var duration = 4000;
var loaded = 0;
var next_bg;
var next_center;
var audio = document.getElementById("sound");
var muted = false;
function next(e){
clearInterval(timer);
timer = setInterval(next, duration);
$("#ba... | paralin/1148WTF | client/js/gif.js | JavaScript | mit | 1,679 |
package com.tbp.safemaps;
import the.safemaps.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class MarkUnsafe ext... | thebachchaoproject/safemaps | safemaps_android/src/com/tbp/safemaps/MarkUnsafe.java | Java | mit | 1,557 |
#include "protagonist.h"
#include "SerializeResult.h"
#include "v8_wrapper.h"
#include "snowcrash.h"
using namespace v8;
using namespace protagonist;
Result::Result()
{
}
Result::~Result()
{
}
Nan::Persistent<Function> Result::constructor;
void Result::Init(Handle<Object> exports)
{
Nan::HandleScope scope;
... | cold-brew-coding/protagonist | src/result.cc | C++ | mit | 1,745 |
require "importu/backends"
class DummyBackend
def self.supported_by_definition?(definition)
false
end
def initialize(finder_fields:, **)
@finder_fields = finder_fields
@objects = []
@max_id = 0
end
def find(record)
@finder_fields.detect do |field_group|
if field_group.respond_to?(... | dhedlund/importu | spec/support/dummy_backend.rb | Ruby | mit | 1,083 |
#!/usr/bin/env python3
"""
My radio server application
For my eyes only
"""
#CREATE TABLE Radio(id integer primary key autoincrement, radio text, genre text, url text);
uuid='56ty66ba-6kld-9opb-ak29-0t7f5d294686'
# Import CherryPy global namespace
import os
import sys
import time
import socket
import cherrypy
imp... | ernitron/radio-server | radio-server/server.py | Python | mit | 26,943 |
require 'spec_helper'
describe 'Git LFS File Locking API' do
include WorkhorseHelpers
let(:project) { create(:project) }
let(:maintainer) { create(:user) }
let(:developer) { create(:user) }
let(:guest) { create(:user) }
let(:path) { 'README.md' }
let(:headers) do
{
'Authorization' =... | dreampet/gitlab | spec/requests/lfs_locks_api_spec.rb | Ruby | mit | 4,652 |
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
/* eslint hammerhead/proto-methods: 2 */
import reEscape from '../utils/rege... | AlexanderMoskovkin/testcafe-hammerhead | src/processing/style.js | JavaScript | mit | 3,704 |
import announcements from './announcements'
import delegates from './delegates'
import fees from './fees'
import ledger from './ledger'
import market from './market'
import peer from './peer'
import wallets from './wallets'
export {
announcements,
delegates,
fees,
ledger,
market,
peer,
wallets
}
| ArkEcosystem/ark-desktop | src/renderer/services/synchronizer/index.js | JavaScript | mit | 312 |
/**
* @flow
* @module ProductPropertyInput
* @extends React.PureComponent
*
* @author Oleg Nosov <olegnosov1@gmail.com>
* @license MIT
*
* @description
* React form for product property(options select only).
*
*/
import React, { PureComponent } from "react";
import { isObject } from "../../../helpers";
imp... | olegnn/react-shopping-cart | src/components/Product/ProductPropertyInput/ProductPropertyInput.js | JavaScript | mit | 4,423 |
let BASE_DIR = '/masn01-archive/';
const TAG_OPTIONS = ['meteor', 'cloud', 'bug', 'misc'];
let CURR_DIR = null;
let CURR_FILES = null;
let INIT_CMAP = null;
let CURR_IDX = 0;
let PREV_IDX = null;
$(async function() {
let cameras = JSON.parse(await $.get('cameras.php'));
cameras.forEach((camera) => {
... | warnerem/pyASC | www/js/tagger.js | JavaScript | mit | 8,131 |
import React, { Component, PropTypes } from 'react'
import { Search, Grid } from 'semantic-ui-react'
import { browserHistory } from 'react-router'
import Tag from './Tag'
import { search, setQuery, clearSearch } from '../actions/entities'
import { MIN_CHARACTERS, DONE_TYPING_INTERVAL } from '../constants/search'
cons... | kingdido999/atogatari | client/src/components/GlobalSearch.js | JavaScript | mit | 1,903 |
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("Po... | vladislav-karamfilov/TelerikAcademy | ASP.NET WebForms Projects/ExamPreparation/PollSystem/PollSystem/Properties/AssemblyInfo.cs | C# | mit | 1,356 |
<<<<<<< HEAD
var xmlDoc;
var xmlloaded = false;
var _finalUrl;
/*
* input: none
* output: none
* gets zipcode from the zipcode text field
*/
function createURL() {
var zip = document.getElementById("zipcode").value;
var format = "&format=xml"
var _clientId = "&client_id=API KEY";
var _url = "https:... | pas1411/layzsunday | Lazysunday.com/XMLHandler.js | JavaScript | mit | 1,581 |
<div class="col-md-12 remove_padding">
<div class="col-md-4 right_padding ttt_pack" id="rmpd_calculate">
<div class="row col-md-12 header_new_style">
<h2 class="tt text_caplock">Location</h2>
<span class="liner_landing"></span>
... | akashbachhania/jeet99 | application/views/ttt/caculate.php | PHP | mit | 37,369 |
import { createElement } from 'react'
import omit from 'lodash/omit'
import { useSpring, animated } from '@react-spring/web'
import { useTheme, useMotionConfig } from '@nivo/core'
import { NoteSvg } from './types'
export const AnnotationNote = <Datum,>({
datum,
x,
y,
note,
}: {
datum: Datum
x: ... | plouc/nivo | packages/annotations/src/AnnotationNote.tsx | TypeScript | mit | 1,549 |
package pl.mmorpg.prototype.client.exceptions;
public class UnknownSpellException extends GameException
{
public UnknownSpellException(String identifier)
{
super(identifier);
}
public UnknownSpellException(Class<?> type)
{
super(type.getName());
}
}
| Pankiev/MMORPG_Prototype | Client/core/src/pl/mmorpg/prototype/client/exceptions/UnknownSpellException.java | Java | mit | 262 |
import { ILogger, getLogger } from './loggers';
import { CancellationToken, ICancellationToken } from '../util/CancellationToken';
import { Step } from './Step';
import { ModuleLoader } from './ModuleLoader';
import * as _ from 'underscore';
import { Guid } from '../util/Guid';
import { InjectorLookup, Module, ModuleRe... | pumlhorse/pumlhorse | src/script/Script.ts | TypeScript | mit | 9,364 |
from django.db import models
from django.core.urlresolvers import reverse
class Software(models.Model):
name = models.CharField(max_length=200)
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('software_edit', kwargs={'pk': self.pk})
| htlcnn/pyrevitscripts | HTL.tab/Test.panel/Test.pushbutton/keyman/keyman/keys/models.py | Python | mit | 300 |
#!/usr/bin/python3
"""
This bot uploads text from djvu files onto pages in the "Page" namespace.
It is intended to be used for Wikisource.
The following parameters are supported:
-index:... name of the index page (without the Index: prefix)
-djvu:... path to the djvu file, it shall be:
... | wikimedia/pywikibot-core | scripts/djvutext.py | Python | mit | 6,822 |
// Copyright 2015 LastLeaf, LICENSE: github.lastleaf.me/MIT
'use strict';
var fs = require('fs');
var fse = require('fs-extra');
var async = require('async');
var User = fw.module('/db_model').User;
var exports = module.exports = function(conn, res, args){
User.checkPermission(conn, 'admin', function(perm){
if(!p... | LastLeaf/LightPalette | plugins/xbackup/rpc/sites.js | JavaScript | mit | 2,163 |
/*
* Copyright 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | jonasrottmann/realm-browser | realm-browser/src/main/java/de/jonasrottmann/realmbrowser/helper/ScrollAwareFABBehavior.java | Java | mit | 2,812 |
package edu.brown.cs.pianoHeroFiles;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileRea... | valentin7/pianoHero | src/main/java/edu/brown/cs/pianoHeroFiles/PianoHeroFileHandler.java | Java | mit | 11,443 |
$( document ).ready( function () {
$( "#form" ).validate( {
rules: {
company: { required: true },
truckType: { required: true },
materialType: { required: true },
fromSite: { required: true },
toSite: { required: true },
hourIn: { required: true },
hourOut: { required: true... | bmottag/vci_app | assets/js/validate/hauling/hauling_v2.js | JavaScript | mit | 6,397 |
var axios = require("axios");
var expect = require("chai").expect;
var MockAdapter = require("../src");
describe("MockAdapter asymmetric matchers", function () {
var instance;
var mock;
beforeEach(function () {
instance = axios.create();
mock = new MockAdapter(instance);
});
it("mocks a post reque... | ctimmerm/axios-mock-adapter | test/asymmetric.spec.js | JavaScript | mit | 1,140 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table(
'pages... | younginnovations/resourcecontracts-rc-subsite | database/migrations/2020_03_11_052945_update_pages_table.php | PHP | mit | 830 |
'use strict';
var intlNameInitials = function () {
};
var pattern = '{0}{1}';
function _firstLetter(text) {
return text.charAt(0);
}
function _upperCase(letter) {
if (letter === 'ı'){
return 'I';
}
return letter.toUpperCase();
}
function _isHangul(l){
if ((l > 44032) && (l < 55203)) {... | lwelti/intl-name-initials | src/index.js | JavaScript | mit | 3,252 |
export default [
{
radius: 6,
sizeReduction: .85,
branchProbability: 0.12,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 6,
sizeReduction: .85,
branchProbability: 0.21,
rotation: new THREE.Vector3(0, 1, 0),
color: 'blue'
},{
radius: 3,
sizeReduction: .87... | susielu/3d | src/plantae/conical-dendrite-trees.js | JavaScript | mit | 1,089 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Hirocoin</source>
<translation>Par Hirocoin</translation>
</m... | GoogolplexCoin/GoogolPlexCoin | src/qt/locale/bitcoin_lv_LV.ts | TypeScript | mit | 106,292 |
using NSubstitute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;
namespace PoshGit2.TabCompletion
{
public class TabCompletionTests
{
private readonly ITestOutputHelper _log;
... | twsouthwick/poshgit2 | test/PoshGit2.TabCompletion.Tests/TabCompletionTests.cs | C# | mit | 24,041 |
var Purest = require('purest');
function Facebook(opts) {
this._opts = opts || {};
this._opts.provider = 'facebook';
this._purest = new Purest(this._opts);
this._group = 'LIB:SOCIAL:FACEBOOK';
return this;
}
Facebook.prototype.user = function (cb) {
var self = this;
this._purest.query()
... | selcukfatihsevinc/app.io | lib/social/facebook.js | JavaScript | mit | 1,038 |
<?php
namespace Lollipop;
defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.');
/**
* Benchmark Class
*
* @author John Aldrich Bernardo
* @email 4ldrich@protonmail.com
* @package Lollipop
* @description Class for recording benchmarks
*/
class Benchmark
{
/*... | jabernardo/lollipop-php | Library/Benchmark.php | PHP | mit | 2,593 |
#include <windows.h>
#include "NativeCore.hpp"
bool RC_CallConv IsProcessValid(RC_Pointer handle)
{
if (handle == nullptr)
{
return false;
}
const auto retn = WaitForSingleObject(handle, 0);
if (retn == WAIT_FAILED)
{
return false;
}
return retn == WAIT_TIMEOUT;
}
| KN4CK3R/ReClass.NET | NativeCore/Windows/IsProcessValid.cpp | C++ | mit | 281 |
package dev.jee6demo.jspes;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.... | fegalo/jee6-demos | jsp/jsp-eventsource/src/main/java/dev/jee6demo/jspes/EventSourceServlet.java | Java | mit | 1,399 |
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace XF_ManySwitches.Droid
{
[Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | Con... | ytabuchi/Study | XF_ManySwitches/XF_ManySwitches/XF_ManySwitches.Droid/MainActivity.cs | C# | mit | 670 |
describe('controllers/home', function () {
var di,
Core,
Home,
Type,
contentModel = {
findOne: function() {
}
},
widgetHooks = [],
widgetHook = {
load: function (a, b, c) {
widgetHooks.push({
... | Siljanovski/gapi | tests/controllers/home-unit-spec.js | JavaScript | mit | 6,456 |
<?php
return array(
/** @brief Table de liaison avec les mots clés */
'table_liaison' => 'jayps_search_word_occurence',
/** @brief Préfixe de la table de liaison avec les mots clés */
'table_liaison_prefixe' => 'mooc_',
/** @brief mots clés interdits */
'forbidden_words' => array(
// ... | novius/jayps_search | config/config.php | PHP | mit | 1,338 |
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */
/*
* Copyright 2016, Joyent, Inc.
*/
var BINDING = require('./lockfd_binding');
function
check_arg(pos, name, value, type)
{
if (typeof (value) !== type) {
throw (new Error('argument #' + pos + ' (' + name +
') must be of type ' + type));
}
}
functi... | joyent/node-lockfd | lib/index.js | JavaScript | mit | 2,075 |
'use strict';
angular.module('depthyApp')
.controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) {
var drawer = depthy.drawMode,
viewer = depthy.getViewer(),
lastPointerPos = null,
oldViewerOpts = angular.extend({}, depthy.viewer);
drawer.setOptions(depthy.drawOpti... | amcassetti/parallax-pro-creator | app/scripts/controllers/draw.js | JavaScript | mit | 6,782 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BigBang</source>
<translation type="unfinished"/>
</message>
<message>
<location lin... | Lefter1s/BigBang | src/qt/locale/bitcoin_el_GR.ts | TypeScript | mit | 128,896 |
<?php
function event_stat_alexa_calculated($ranks){
}
function event_stat_similarweb_calculated($ranks){
} | iqbalfn/admin | application/events/stat.php | PHP | mit | 114 |
// ***********************************************************************
// <copyright file="AssemblyInfo.cs" company="Holotrek">
// Copyright © Holotrek 2016
// </copyright>
// ***********************************************************************
using System.Reflection;
using System.Runtime.CompilerServices... | holotrek/kore-csharp | Kore/Domain/EF/Kore.Domain.EF.Tests/Properties/AssemblyInfo.cs | C# | mit | 1,736 |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class My_PHPMailer {
public function My_PHPMailer()
{
require_once('class.phpmailer.php');
}
}
?> | ProyectoDAW2/Proyecto | application/libraries/my_phpmailer.php | PHP | mit | 177 |
<?php
return array(
'service_manager' => array(
'factories' => array(
'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\ModuleOptionsFactory',
'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\TwilioServiceFactory'
)
)
);
| al3xdm/Twilio | config/module.config.php | PHP | mit | 287 |
<?php
$lang['date_year'] = 'Ano';
$lang['date_years'] = 'Anos';
$lang['date_month'] = 'Mês';
$lang['date_months'] = 'Meses';
$lang['date_week'] = 'Semana';
$lang['date_weeks'] = 'Semanas';
$lang['date_day'] = 'Dia';
$lang['date_days'] = 'Dias';
$lang['date_hour'] = 'Hora';
$lang['date_hours'] = 'Horas';
$lang['date_min... | srpurdy/SharpEdgeCMS | framework_2_2_3/language/pt-BR/date_lang.php | PHP | mit | 3,088 |
// Package time extends the time package in the stdlib.
package time
| goph/stdlib | time/time.go | GO | mit | 69 |
/* eslint-disable node/no-deprecated-api */
module.exports.pathBasename = pathBasename
module.exports.hasSuffix = hasSuffix
module.exports.serialize = serialize
module.exports.translate = translate
module.exports.stringToStream = stringToStream
module.exports.debrack = debrack
module.exports.stripLineEndings = stripLi... | linkeddata/ldnode | lib/utils.js | JavaScript | mit | 6,588 |
Template.postSubmit.onCreated(function() {
Session.set('postSubmitErrors', {});
});
Template.postSubmit.helpers({
errorMessage: function(field) {
return Session.get('postSubmitErrors')[field];
},
errorClass: function (field) {
return !!Session.get('postSubmitErrors')[field] ? 'has-error' : '';
}
});
... | fuzzybabybunny/microscope-orionjs | client/templates/posts/post_submit.js | JavaScript | mit | 1,228 |
<?php
// Text
$_['text_sizechart'] = 'Größentabelle';
| trydalcoholic/opencart-materialize | source/opencart_3.0.x/upload/catalog/language/de-de/extension/module/sizechart.php | PHP | mit | 56 |
package ru.mephi.interpreter;
import org.antlr.v4.runtime.tree.ParseTree;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author Anton_Chkadua
*/
public class Scope {
static Scope GLOBAL = new Scope(null);
private Scope parent;
private Map<Big... | AVChkadua/interpreter | src/ru/mephi/interpreter/Scope.java | Java | mit | 6,273 |
<?php
return array (
'id' => 'sec_e900_ver1_sub10',
'fallback' => 'sec_e900_ver1',
'capabilities' =>
array (
'accept_third_party_cookie' => 'false',
'j2me_max_jar_size' => '700000',
'ajax_support_getelementbyid' => 'true',
'ajax_support_events' => 'true',
),
);
| cuckata23/wurfl-data | data/sec_e900_ver1_sub10.php | PHP | mit | 289 |
<?php
return array (
'id' => 'dell_streak_7_ver1_suban32',
'fallback' => 'dell_streak_7_ver1',
'capabilities' =>
array (
'device_os_version' => '3.2',
),
);
| cuckata23/wurfl-data | data/dell_streak_7_ver1_suban32.php | PHP | mit | 172 |
#include <cstring>
#include <iostream>
#include <algorithm>
#include "matcher.h"
#include "edit.h"
#include "char.h"
#include "instrumentation.h"
#define INIT_POS -1
#define __DEBUG__ false
// the node represented by a given point
#define node(p) (distances[(p)->j][(p)->i])
// the edit distance at a given point, from... | pmansour/algorithms | string-matching/edittable-and-tries/edit.cpp | C++ | mit | 6,604 |
<?php
/*
* This file is part of the Beloop package.
*
* Copyright (c) 2016 AHDO Studio B.V.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Arkaitz Garro <arkaitz.garr... | beloop/components | src/Beloop/Bundle/InstagramBundle/BeloopInstagramBundle.php | PHP | mit | 1,660 |
import { IQuotation } from '../../model/QuotationService/IQuotation';
export interface IQuoteDisplayProps {
quote: IQuotation;
}
| BobGerman/SPFx | quotes/src/webparts/quoteDisplay/components/QuoteDisplay/IQuoteDisplayProps.ts | TypeScript | mit | 132 |
version https://git-lfs.github.com/spec/v1
oid sha256:c4d5490597798effaf63d11e546f0b200f196f28e17c69d39ce236de0c6683f0
size 64139
| yogeshsaroya/new-cdnjs | ajax/libs/yui/3.17.2/scrollview-paginator/scrollview-paginator-coverage.js | JavaScript | mit | 130 |
module Souschef
# Loads Souschef configuration YAML
class Config
# Public - Reads the configuration file
#
# Returns Hash
def self.read
verify_file
YAML.load_file(File.expand_path('~/.souschef.yml'))
end
# Private - Checks if we have a configuraiton file
#
# Returns nil
... | akrasic/souschef | lib/souschef/config.rb | Ruby | mit | 477 |
package main
import (
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/url"
"os"
"os/user"
"path/filepath"
"strings"
"crypto/tls"
"net/http"
)
type configCommand struct {
config *ClientConfig
}
// skipVerifyHTTPClient returns an *http.Client with InsecureSkipVerify set
// to true for its TLS config.... | natewalck/micromdm | cmd/mdmctl/config.go | GO | mit | 3,654 |
module PlazrStore
VERSION = "0.0.1"
end
| Plazr/plazr_store | lib/plazr_store/version.rb | Ruby | mit | 42 |
/*
* TestProxy.cpp
*
* Created on: Sep 6, 2013
* Author: penrique
*/
#include "InvocationManager.h"
#include <bb/system/CardDoneMessage>
#include <bb/system/InvokeRequest>
// to send number data while invoking phone application
#include <bb/PpsObject>
// Map
#include <bb/platform/LocationMapInvoker>
#inc... | HazemKhaled/TiCardInvocation | module/InvocationManager.cpp | C++ | mit | 6,446 |
<?php
namespace Lonquan\TaobaoSDK\Top\Request;
use Lonquan\TaobaoSDK\Top\RequestCheckUtil;
use Lonquan\TaobaoSDK\Top\RequestInterface;
/**
* TOP API: taobao.product.img.delete request
*
* @author auto create
* @since 1.0, 2016.03.05
*/
class ProductImgDeleteRequest implements RequestInterface
{
... | lonquan/taobao-sdk | src/Top/Request/ProductImgDeleteRequest.php | PHP | mit | 1,480 |
require "point/version"
module Point
autoload :Point, 'point/point'
def self.sum(*args)
x = y = 0
args.each do |point|
x += point.x
y += point.y
end
self::Point.new(x, y)
end
end
| login73ul/point | lib/point.rb | Ruby | mit | 219 |
<?php
namespace MvMidia\Factory;
use MvMidia\Service\AudioService;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class AudioServiceFactory
implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
{
$entityManager = $ser... | marcusvy/mv-orion | _server/module/MvMidia/src/MvMidia/Factory/AudioServiceFactory.php | PHP | mit | 420 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _10.CatalanNumbers
{
class Program
{
static void Main(string[] args)
{
// 10. Write a program to calculate the Nth Catalan number by given N.
... | bstaykov/Telerik-CSharp-Part-1 | Loops/10.CatalanNumbers/Program.cs | C# | mit | 1,982 |
<?php
/* TwigBundle:Exception:traces.txt.twig */
class __TwigTemplate_c3e3230b69c4964c8a557e1f2f357b5c8020737511aeeb0ff45cb50924b53015 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | lrodriguezcabrales/Tutorial | app/cache/dev/twig/c3/e3/230b69c4964c8a557e1f2f357b5c8020737511aeeb0ff45cb50924b53015.php | PHP | mit | 2,351 |
(function() {
var $, expect, fruits;
$ = require('../');
expect = require('expect.js');
/*
Examples
*/
fruits = '<ul id = "fruits">\n <li class = "apple">Apple</li>\n <li class = "orange">Orange</li>\n <li class = "pear">Pear</li>\n</ul>'.replace(/(\n|\s{2})/g, '');
/*
Tests
*/
descri... | wheeyls/meetingVis | node_modules/facile/test/public/javascripts/node_modules/cheerio/test/api.traversing.js | JavaScript | mit | 5,315 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: diplomacy_tensorflow/core/example/feature.proto
#include "diplomacy_tensorflow/core/example/feature.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_st... | diplomacy/research | diplomacy_research/proto/diplomacy_tensorflow/core/example/feature.pb.cc | C++ | mit | 110,384 |
require 'spec_helper'
require 'gitnesse/cli'
module Gitnesse
describe Cli, type: :cli do
let(:help) do
<<-EOS
USAGE: gitnesse push
Pushes local features to remote git-based wiki
Pushes the local features files to the remote git-based wiki, creating/updating
wiki pages as necessary.
Examples:
gitnesse ... | hybridgroup/gitnesse | spec/lib/cli/task/push_spec.rb | Ruby | mit | 478 |
package GlidersGrid;
import java.util.Iterator;
import repast.simphony.context.Context;
import repast.simphony.engine.schedule.ScheduledMethod;
import repast.simphony.query.space.grid.MooreQuery;
import repast.simphony.space.grid.Grid;
import repast.simphony.space.grid.GridPoint;
import repast.simphony.util.ContextUt... | ZawilecxD/Social-Network-Simulator | GlidersGrid/src/GlidersGrid/Dead.java | Java | mit | 1,307 |
#region Copyright (c) 2009 S. van Deursen
/* The CuttingEdge.Conditions library enables developers to validate pre- and postconditions in a fluent
* manner.
*
* To contact me, please visit my blog at http://www.cuttingedge.it/blogs/steven/
*
* Copyright (c) 2009 S. van Deursen
*
* Permission is hereby grant... | conditions/conditions | CuttingEdge.Conditions/RequiresValidator.cs | C# | mit | 4,490 |
(function(){
'use strict';
function ListService($http){
this.getList = function(list_id){
return $http.get('/lists/' + list_id + ".json")
}
}
ListService.$inject = ['$http']
angular
.module('app')
.service('ListService', ListService)
}()) | jd2rogers2/presently | old-code/ListService.js | JavaScript | mit | 273 |
angular.module('movieApp')
.directive('movieResult', function () {
var directive = {
restrict: 'E',
replace: true,
scope: {
result: '=result'
},
template: [
'<div class="row">',
'<div class="col-sm-4">',
'<img ng-src="{{result.Poster}}" alt="{{result.Title}}" width="220px">',
'</div>',
... | cjp666/MovieApp | src/movie-app/movie-result.directive.js | JavaScript | mit | 751 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Sandsound</title>
<link rel="stylesheet" href="/css/reset.css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<canvas id="canvas" class="background"></canvas>
<!-- Ne s'affiche que si sur mobile :) -->
<div class="mobile">
... | vbillardm/Projet_Fin_ann-e | resources/views/profile/detail.blade.php | PHP | mit | 3,476 |
require 'lapine/test/exchange'
module Lapine
module Test
module RSpecHelper
def self.setup(_example = nil)
RSpec::Mocks::AllowanceTarget.new(Lapine::Exchange).to(
RSpec::Mocks::Matchers::Receive.new(:new, ->(name, properties) {
Lapine::Test::Exchange.new(name, properties)
... | wanelo/lapine | lib/lapine/test/rspec_helper.rb | Ruby | mit | 436 |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... | lordmos/blink | Source/platform/animation/UnitBezierTest.cpp | C++ | mit | 2,438 |
using Brandbank.Xml.Logging;
using System;
namespace Brandbank.Api.Clients
{
public sealed class FeedbackClientLogger : IFeedbackClient
{
private readonly ILogger<IFeedbackClient> _logger;
private readonly IFeedbackClient _feedbackClient;
public FeedbackClientLogger(ILogger<IFeedbackC... | Brandbank/Brandbank-Xml-And-Api-Helpers | Brandbank.Api/Clients/FeedbackClientLogger.cs | C# | mit | 1,649 |
<?php
namespace Zodream\Infrastructure\Http\Input;
/**
* Created by PhpStorm.
* User: zx648
* Date: 2016/4/3
* Time: 9:23
*/
use Zodream\Infrastructure\Base\MagicObject;
abstract class BaseInput extends MagicObject {
/**
* 格式化
* @param array|string $data
* @return array|string
*/
prote... | zx648383079/zodream | src/Infrastructure/Http/Input/BaseInput.php | PHP | mit | 932 |
<?php
/*
* This file is part of the Grosona.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Grosona;
use Grosona\PhpProcess\Utils\Logger;
use Grosona\PhpProcess\TrobuleHandler;
/**
* Read configurati... | hchsiao/grosona | src/Grosona/TroubleHandler.php | PHP | mit | 2,474 |
class DashboardController < ApplicationController
def index
end
end
# vim: fo=tcq
| MaxMEllon/udon-dou | app/controllers/dashboard_controller.rb | Ruby | mit | 87 |
# 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 may ... | Azure/azure-sdk-for-python | sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_managed_database_queries_operations.py | Python | mit | 12,909 |
<?php
namespace Koalamon\IntegrationBundle\Integration;
class Integration
{
private $name;
private $image;
private $description;
private $url;
private $activeElements;
private $totalElements;
/**
* Integration constructor.
*
* @param $name
* @param $image
* @param... | koalamon/KoalamomPlatform | src/Koalamon/IntegrationBundle/Integration/Integration.php | PHP | mit | 1,660 |
import redis
import logging
import simplejson as json
import sys
from msgpack import Unpacker
from flask import Flask, request, render_template
from daemon import runner
from os.path import dirname, abspath
# add the shared settings file to namespace
sys.path.insert(0, dirname(dirname(abspath(__file__))))
import setti... | MyNameIsMeerkat/skyline | src/webapp/webapp.py | Python | mit | 2,673 |
/*******************************************************************************
* *
* Author : Angus Johnson *
* Version : 6.4.2 ... | lymastee/gslib | ext/clipper/clipper.cpp | C++ | mit | 137,526 |
module AttrValidator
# Copied from here https://github.com/rails/rails/blob/master/activesupport/lib/active_support/concern.rb
#
# A typical module looks like this:
#
# module M
# def self.included(base)
# base.extend ClassMethods
# base.class_eval do
# scope :disabled, -> { ... | AlbertGazizov/attr_validator | lib/attr_validator/concern.rb | Ruby | mit | 3,476 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Serialization;
using System.IO;
namespace TimeOut
{
... | CLN-Group/Time-Out | Time Out/partido.cs | C# | mit | 41,256 |
#include "V3DResourceMemory.h"
#include "V3DDevice.h"
#include "V3DBuffer.h"
#include "V3DImage.h"
#include "V3DAdapter.h"
/******************************/
/* public - V3DResourceMemory */
/******************************/
V3DResourceMemory* V3DResourceMemory::Create()
{
return V3D_NEW_T(V3DResourceMemory... | mixberry8/v3d | build/runtime/source/V3DResourceMemory.cpp | C++ | mit | 12,042 |
<?php
namespace Peridot\Leo\Interfaces;
use Peridot\Leo\Assertion;
use Peridot\Leo\Interfaces\Assert\CollectionAssertTrait;
use Peridot\Leo\Interfaces\Assert\ObjectAssertTrait;
use Peridot\Leo\Interfaces\Assert\TypeAssertTrait;
use Peridot\Leo\Leo;
/**
* Assert is a non-chainable, object oriented interface
* on to... | peridot-php/leo | src/Interfaces/Assert.php | PHP | mit | 6,019 |
black = '#202427';
red = '#EB6A58'; // red
green = '#49A61D'; // green
yellow = '#959721'; // yellow
blue = '#798FB7'; // blue
magenta = '#CD7B7E'; // pink
cyan = '#4FA090'; // cyan
white = '#909294'; // light gray
lightBlack = '#292B35'; // medium gray
lightRed = '#... | iamruinous/dotfiles | blink/themes/tempus_winter.js | JavaScript | mit | 966 |
import cuid from "cuid";
import Result, { isError } from "../../common/Result";
import assert from "assert";
import { di, singleton, diKey } from "../../common/di";
import { ILocalFiles, ILocalFilesKey } from "../../common/LocalFiles";
import { IStoreDB, IStoreDBKey, MergeEntity } from "../../common/db/StoreDB";
import... | michael-reichenauer/Dependinator | Web/src/application/diagram/Store.ts | TypeScript | mit | 10,268 |
var createSubmit = function(name, primus, keyDict) {
return function(event) {
var message = $('#message').val();
if (message.length === 0) {
event.preventDefault();
return;
}
$('#message').val('');
$('#message').focus();
var BigInteger = for... | raytracer/CryptoGraph | src/client/stream/createSubmit.js | JavaScript | mit | 2,725 |
<?php
namespace action\sub;
use net\shawn_huang\pretty\Action;
class Index extends Action {
protected function run() {
$this->put([
'holy' => 'shit'
]);
}
} | Cretty/pretty-php | test/test_classes/action/sub/Index.class.php | PHP | mit | 195 |
<?php
namespace keeko\account\action;
use keeko\framework\foundation\AbstractAction;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use keeko\framework\domain\payload\Success;
/**
* User Widget
*
* This code is automatically created. Modifications will probably be over... | keeko/account | src/action/AccountWidgetAction.php | PHP | mit | 978 |