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 |
|---|---|---|---|---|---|
'use strict';
//
// Third party modules.
//
module.exports = require('canihaz')({
location: __dirname,
dot: 'smithy'
});
| bigpipe/smithy | canihaz.js | JavaScript | mit | 126 |
<?php
/**
* Model for Pages within the CMS
*
* @author Chris
*/
class modelPage extends ormModelCsv implements hamleModel {
function setup() {
$this->openFile(__DIR__."/../../data/page.csv");
$this->fields = array(
new ormType_KeyInt("pageid"),
new ormType_String("title"),
... | cseufert/ormsiteshell | php/model/page.php | PHP | mit | 732 |
import path from 'path'
import inquirer from 'inquirer'
import downloadTwitterPhoto from './utils/download-twitter-photo'
inquirer.prompt([
{
name: 'twitter',
type: 'input',
message: 'Twitter handle?',
},
]).then(({twitter}) => {
const destinationPath = path.join(process.cwd(), 'data/contributors')
... | javascriptair/site | other/add-contributor.js | JavaScript | mit | 371 |
import {Component} from '@angular/core'
@Component({
selector: 'd-ausrq',
template: `
<span [attr.aria-label]="msg" [hidden]="false">This is a dummy component for Ausrq</span>
<div (click)="doNothing($event)"></div>
`,
})
export class Ausrq {
msg: string = 'nothing to say';
doNothing(evt: any)... | mlaval/optimize-angular-app | app/welcome/generated/ausrq.ts | TypeScript | mit | 326 |
'use strict';
angular.module('core').controller('HomeController', ['$scope', '$http', '$location', 'Authentication',
function($scope, $http, $location, Authentication) {
// =====================================================================
// Non $scope member
// ============================================... | atriumxsis/atrium | public/modules/core/controllers/home.client.controller.js | JavaScript | mit | 1,639 |
import React, { useCallback, useState } from 'react';
import { css } from 'emotion';
import { Button, Col, Input, Row } from 'reactstrap';
import Localized from 'components/Localized/Localized';
import LocationsCount from 'components/LocationsCount/LocationsCount';
import { useTranslation } from 'react-i18next';
import... | adrianocola/spyfall | app/containers/Settings/Settings.js | JavaScript | mit | 3,230 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTablePermissionRole extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('permission_role', function ($table) {
$table->increments('id'... | teruk/cpm | app/database/migrations/2015_01_04_063318_create_table_permission_role.php | PHP | mit | 767 |
import styled from 'styled-components';
export const Container = styled.div`
width: 100%;
height: 100%;
`;
export const EditorContainer = styled.div`
${''/* padding: 30px 30px; */}
width: 100%;
box-sizing: border-box;
position: relative;
font-family: 'Proxima-Nova', 'helvetica', 'arial';
... | markdyousef/zen-editor | src/components/Editor/styles.js | JavaScript | mit | 1,090 |
/*globals rabbitmq_test_bindings: false,
rabbitmq_bindings_to_remove: false */
/*jslint mocha: true */
"use strict";
var expect = require('chai').expect,
util = require('util'),
Qlobber = require('..').Qlobber;
function QlobberTopicCount (options)
{
Qlobber.call(this, options);
this.topic_co... | davedoesdev/qlobber | test/topic_count.js | JavaScript | mit | 2,315 |
/***********************************
This is our GPS library
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, check license.txt for more infor... | sfugarino/Adafruit_GPS | firmware/Adafruit_GPS.cpp | C++ | mit | 8,875 |
<?php
namespace Kahlan\Spec\Suite\Jit\Patcher;
use Kahlan\Jit\Parser;
use Kahlan\Jit\Patcher\Monkey;
describe("Monkey", function() {
describe("->process()", function() {
beforeEach(function() {
$this->path = 'spec/Fixture/Jit/Patcher/Monkey';
$this->patcher = new Monkey();
... | m1ome/kahlan | spec/Suite/Jit/Patcher/MonkeySpec.php | PHP | mit | 1,380 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
namespace _14.FactorialTrailingZeroes
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
B... | AleksandarKostadinov/Tech-Module-Solutions | Programming Fundamentals - януари 2017/Е.03.Methods and Debugging/14.FactorialTrailingZeroes/Program.cs | C# | mit | 1,212 |
package com.bgstation0.android.sample.fragment_;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Butt... | bg1bgst333/Sample | android/Fragment/setRetainInstance/src/Fragment/Fragment_/src/com/bgstation0/android/sample/fragment_/Fragment1.java | Java | mit | 2,852 |
#include <app/Fuse.Node.h>
#include <app/Fuse.Resources.ResourceBinding__float4.h>
#include <app/Fuse.Resources.ResourceRegistry.h>
#include <app/Uno.Action.h>
#include <app/Uno.ArgumentNullException.h>
#include <app/Uno.Bool.h>
#include <app/Uno.Float4.h>
#include <app/Uno.Object.h>
#include <app/Uno.Predicate__object... | blyk/BlackCode-Fuse | AndroidUI/.build/Simulator/Android/jni/app/Fuse.Resources.ResourceBinding-1.cpp | C++ | mit | 4,908 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace EventLogNotifier
{
public class NotifyIconViewModel
{
/// <summary>
/// Shuts down the application.
... | basvo/EventLogNotifier | EventLogNotifier/NotifyIconViewModel.cs | C# | mit | 1,184 |
using System;
using System.Collections.Generic;
using Loyc.Syntax;
using Flame.Compiler;
using LeMP;
using Loyc;
namespace Flame.Ecs.Parsing
{
/// <summary>
/// Represents a parsed source code file.
/// </summary>
public struct ParsedDocument
{
/// <summary>
/// Initializes a new i... | jonathanvdc/ecsc | src/Flame.Ecs/Parsing/ParsedDocument.cs | C# | mit | 3,691 |
'use strict';
/* eslint-disable no-console */
const cryptoJS = require('crypto-js');
module.exports = {
toJsonObj: function (str) {
try {
return JSON.parse(str);
} catch (e) {
return false;
}
},
getMacString: function (req) {
var arr = [];
for (let key in req) {
if (req.h... | osmoossi/tapsudraft | gui/app/js/util.js | JavaScript | mit | 757 |
<!--
Safe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
sanitize : cast via + = 0.0
File : use of untrusted data in a doubled quote attribute
-->
<!--Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
... | stivalet/PHP-Vulnerability-test-suite | XSS/CWE_79/safe/CWE_79__object-Array__CAST-cast_float_sort_of__Use_untrusted_data_attribute-Double_Quote_Attr.php | PHP | mit | 1,587 |
export declare const CLAMP_MIN_MAX: string;
export declare const ALERT_WARN_CANCEL_PROPS: string;
export declare const COLLAPSIBLE_LIST_INVALID_CHILD: string;
export declare const CONTEXTMENU_WARN_DECORATOR_NO_METHOD: string;
export declare const HOTKEYS_HOTKEY_CHILDREN: string;
export declare const MENU_WARN_CHILDREN_... | aggiedefenders/aggiedefenders.github.io | node_modules/@blueprintjs/core/dist/common/errors.d.ts | TypeScript | mit | 2,047 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Etercoin</source>
<translation>Etercoin hakkında</translation>
</... | etercoin/etercoin | src/qt/locale/bitcoin_tr.ts | TypeScript | mit | 90,092 |
namespace NetTypeS.ExampleData.Models
{
public class ExampleArrayItem
{
public int[] NumberArray { get; set; }
public string[] StringArray { get; set; }
public bool[] BoolArray { get; set; }
public object[] ObjectArray { get; set; }
public dynamic[] DynamicArray { get; s... | Ormikon/NetTypeS | src/NetTypeS/NetTypeS.ExampleData/Models/ExampleArrayItem.cs | C# | mit | 336 |
/**
* download webdriver
*/
var path = require('path');
var fs = require('fs');
var rimraf = require('rimraf');
var Download = require('download');
var Decompress = require('decompress');
var fse = require('fs-extra');
var debug = require('debug')('browser');
var chromeVersion = '2.20';
var phantomVersion = '1.9.7'... | imsobear/node-browser | build.js | JavaScript | mit | 3,298 |
# -*- coding: utf-8 -*-
"""
Production Configurations
- Use Redis for cache
"""
from __future__ import absolute_import, unicode_literals
from boto.s3.connection import OrdinaryCallingFormat
from django.utils import six
from .common import * # noqa
# SECRET CONFIGURATION
# ---------------------------------------... | Patrick-and-Michael/trumptweets | config/settings/production.py | Python | mit | 4,984 |
import {Directive, AfterViewInit, ElementRef, Renderer} from '@angular/core';
@Directive({
selector: '[setFocus]'
})
export class SetFocusDirective implements AfterViewInit {
constructor(public renderer: Renderer, public elementRef: ElementRef) {
}
ngAfterViewInit() {
this.renderer.invokeElementMethod(
... | philipdai/uipalette | src/directives/set-focus.ts | TypeScript | mit | 376 |
#include <iostream>
#include "Net.h"
#include "InputLayer.h"
#include "ForwardLayer.h"
#include "RecurrentLayer.h"
using namespace std;
int main() {
// arma::arma_rng::set_seed(100);
arma::arma_rng::set_seed_random();
Net net;
net.add_layer(new InputLayer(2));
net.add_layer(new ForwardLayer(3));
... | igorcoding/cppnet | ex/xor.cc | C++ | mit | 906 |
module Riik
# Document is the base object for the Riik ORM. Including it provides
# the basic functionality for assigning attributes to models,
# assigning a bucket name, and serializing objects.
#
module Document
autoload :Persistence, 'riik/document/persistence'
autoload :Finders, 'riik/docume... | cmeiklejohn/riik | lib/riik/document.rb | Ruby | mit | 2,705 |
import { combineReducers } from 'redux';
import PostsReducer from './reducer-posts';
import { reducer as formReducer } from 'redux-form';
const rootReducer = combineReducers({
posts: PostsReducer,
form: formReducer
});
export default rootReducer;
| andrewdc92/react-crud-blog | src/reducers/index.js | JavaScript | mit | 253 |
(function(){
var app = angular.module('howtoApp', []);
/*TODO - add custom filters
https://scotch.io/tutorials/building-custom-angularjs-filters
*/
app.filter('facetedNavFilter', function() {
return function(input,scope) {
/*console.log(scope);
var out =... | aaronBeryUcl/funnelback-angular-app | js/howto.js | JavaScript | mit | 8,516 |
<?php
session_start();
require_once('connections/lib_connect.php');
require_once('./xajax_0.2.4/xajax.inc.php');
require_once('filters.php');
$xajax = new xajax();
$xajax->errorHandlerOn();
#************************
#registering functions
#************************
//$xajax->registerFunction('view_all');
$xajax->registe... | aasiimweDataCare/Dev_ftf | Dev_CPM/view_district.php | PHP | mit | 16,446 |
# -*- encoding : utf-8 -*-
class DropUidAndProviderConstraintOnUsers < ActiveRecord::Migration
def up
execute "
ALTER TABLE users DROP CONSTRAINT users_provider_uid_unique;
"
end
def down
execute "
ALTER TABLE users ADD CONSTRAINT users_provider_uid_unique UNIQUE (provider, uid);
... | cesvald/lbm | db/migrate/20130311191444_drop_uid_and_provider_constraint_on_users.rb | Ruby | mit | 338 |
#pragma once
#include <cstdint>
#include <cstddef>
#include <ctime>
#include <stdexcept>
#include <unistd.h>
#include <sys/time.h>
#ifdef __MACH__
# include <mach/mach.h>
# include <mach/clock.h>
#endif
#ifndef CLOCK_MONOTONIC_COARSE
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#endif
#ifndef CLOCK_REALTIME_CO... | abique/mimosa | mimosa/time.hh | C++ | mit | 2,900 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
getname
~~~~~~~
Get popular cat/dog/superhero/supervillain names.
:copyright: (c) 2015 by lord63.
:license: MIT, see LICENSE for more details.
"""
from getname.main import random_name
__title__ = "getname"
__version__ = '0.1.1'
__author__ = "lor... | lord63/getname | getname/__init__.py | Python | mit | 385 |
__d("UPoCs",function(o,e,s){s.exports="Here is brisk demo!"}); | Saber-Team/brisky | www/dist/static/js/BvMT+JZAM.text.js | JavaScript | mit | 62 |
// C/C++ File
// Author: Alexandre Tea <alexandre.qtea@gmail.com>
// File: /Users/alexandretea/Work/gachc-steinerproblem/srcs/ga/FixedBinaryString.hpp
// Purpose: TODO (a one-line explanation)
// Created: 2017-01-15 20:57:05
// Modified: 2017-03-15 17:31:42
#ifndef FIXEDBINARYSTRING_H
#define FIXEDBINARYSTRIN... | alexandretea/gachc-steinerproblem | srcs/ga/FixedBinaryString.hpp | C++ | mit | 2,172 |
var icons = [
'moneybag',
'save',
'establishment',
'completion',
'share',
'no_money',
'euro',
'palette',
'puzzle',
'backward',
'partial',
'minimize',
'tick',
'tick_thin',
'tick_bold',
'compass',
'minus',
'supplies',
'alarm',
'analytics',
'charts',
'apps',
'nine_tiles',
'archive',
'arrow_double'... | LuccaSA/lucca-front | packages/icons/icons-list.js | JavaScript | mit | 3,468 |
import Ember from 'ember';
import moment from 'moment';
import dateFormat from '../utils/date-format';
export default Ember.Controller.extend({
loadingMeta: false,
notify: Ember.inject.service(),
aggController: Ember.inject.controller('discover.aggregate'),
queryParams: ['center', 'obs_date__le', 'obs_date_... | UrbanCCD-UChicago/plenario-explorer | app/controllers/discover.js | JavaScript | mit | 5,637 |
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{{ Form::label('name', 'Name') }}
{{ Form::text('name', old('name'), ['class' => 'form-control']) }}
@if ($errors->has('name'))
<span class="help-block">{{ $errors->first('name') }}</span>
@endif
... | brianally/infoframe | resources/views/patients/_form.blade.php | PHP | mit | 2,629 |
version https://git-lfs.github.com/spec/v1
oid sha256:5df6faea233808c6556f6ab7b79d7e126b054faf6651af82437fe36f225404cf
size 1193
| yogeshsaroya/new-cdnjs | ajax/libs/uikit/2.6.0/js/addons/form-password.min.js | JavaScript | mit | 129 |
<?php
declare(strict_types = 1);
namespace Apha\Testing;
interface TraceableEventHandler
{
/**
* @return array
*/
public function getEvents(): array;
/**
* @return void
*/
public function clearTraceLog();
}
| martyn82/apha | src/main/Apha/Testing/TraceableEventHandler.php | PHP | mit | 246 |
/*
* Copyright (c) 2014 airbug Inc. All rights reserved.
*
* All software, both binary and source contained in this work is the exclusive property
* of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering
* the source code of this software is prohibited. This work is protected un... | airbug/bugyarn | libraries/bugyarn/js/src/Yarn.js | JavaScript | mit | 6,157 |
// _____ _ _ _ _ _
// | ___| | (_) | | | | | |
// _ __ |___ \ ___| |_ ___| | ____ _| |__ | | ___
// | '_ \ \ \/ __| | |/ __| |/ / _` | '_ \| |/ _ \
// | |_) /\__/ / (__| | | (__| < (_| | |_) | | __/
// | .__/\____(_)___|_|_|\___|_|\_\__,_|_.__/|_|\___|
// | | w... | alexlamb/alexlamb.github.io | js/virus/p5.clickable.js | JavaScript | mit | 3,452 |
require 'pathname'
require 'sqlite3'
require 'active_record'
require 'logger'
require 'sinatra'
APP_ROOT = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))
APP_NAME = APP_ROOT.basename.to_s
DB_PATH = APP_ROOT.join('db', APP_NAME + ".db").to_s
if ENV['DEBUG']
ActiveRecord::Base.logger = Log... | whitfieldc/Sinatra_tasks | ar_todos/app/todo.rb | Ruby | mit | 2,548 |
"use strict";
let express = require('express');
let app = express();
let bodyParser = require('body-parser');
var randomPoem = require('./tools/poemBuilder1.js')
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views');
app.use(express.static("client"))
app.use(bodyParser.json());
app.get("/poem", funct... | robotson/literate-telegram | index.js | JavaScript | mit | 1,777 |
<?php
require("./includes/daySeasson.php");
@$page=$_GET['page'];
switch($page){
case "aktivnosti":
include "view.php";
$view=str_replace("<!-- SAT -->", insertClock() ,$view);
$view=setActivity($view,$daySesson);
$view=setTitle("Aktivnosti u toku izbora",$view);
break;
case "izlaznost":... | IvanDermanov/izbori | index.php | PHP | mit | 3,087 |
require 'spec_helper'
describe Blimp::Handler do
it 'should find handlers by name' do
Blimp::Handler.find_by_name("static").should be(Blimp::Handlers::StaticHandler)
Blimp::Handler.find_by_name("page").should be(Blimp::Handlers::PageHandler)
end
it 'should raise on unknown handlers' do
expect {
... | ttencate/blimp | spec/blimp/handler_spec.rb | Ruby | mit | 425 |
from cse.util import Util
from collections import OrderedDict
from cse.pipeline import Handler
class WpApiParser(Handler):
def __init__(self):
super()
def parse(self, comments, url, assetId, parentId):
data = self.__buildDataSkeleton(url, assetId)
data["comments"] = self.__iterate... | CodeLionX/CommentSearchEngine | cse/WpApiParser.py | Python | mit | 1,919 |
module CerberusCore::Datastreams
# Datastream for holding the results of FITS characterization, which can be run
# against FileContentDatastream datastreams via the Characterizable concern.
class FitsDatastream < ActiveFedora::OmDatastream
include OM::XML::Document
set_terminology do |t|
t.root(:pa... | NEU-Libraries/cerberus_core | lib/cerberus_core/datastreams/fits_datastream.rb | Ruby | mit | 8,529 |
using System;
using System.Diagnostics;
using BCurve=NS_GMath.I_BCurveD;
namespace NS_GMath
{
public class Param
{
/*
* CONSTS & ENUMS
*/
public const double Infinity=2.0e20;
public const double Degen=1.0e20;
public const double Invalid=1.5e20;
... | Microsoft/Font-Validator | GMath/Param.cs | C# | mit | 5,165 |
<?php
class Football_Pool_Admin_Options extends Football_Pool_Admin {
public function __construct() {}
private static function back_to_top() {
echo '<p class="options-page back-to-top"><a href="#">back to top</a></p>';
}
public static function help() {
$help_tabs = array(
array(
'id' =... | wp-plugins/football-pool | admin/class-football-pool-admin-options.php | PHP | mit | 34,914 |
require 'rails_helper'
describe Api::SessionsController do
describe "#create" do
let(:user) { create(:user, password: 'password') }
it 'returns a JSON Web Token' do
post :create, params: { username: user.username, password: 'password' }
json = JSON.parse(response.body)
expect(json['authen... | mokhan/surface | spec/controllers/api/sessions_controller_spec.rb | Ruby | mit | 370 |
package measurement
// transaction
type TransactionMessage struct {
}
// item
type ItemMessage struct{}
// impression
// action
// refund
// purchase
| vly/go-ga-measurement | measurement/ecommerce.go | GO | mit | 156 |
/* Game namespace */
var game = {
// an object where to store game information
data : {
// score
score : 0
},
// Run on page load.
"onload" : function () {
// Initialize the video.
if (!me.video.init("screen", me.video.CANVAS, 1067, 600, true, '1.0')) {
alert("Your browser does not support HTML5 can... | KaelenJuntilla/KaelenCameron | js/game.js | JavaScript | mit | 1,155 |
require 'uottawa_odesi_utils'
RSpec.configure do |config|
# Use color in STDOUT
config.color = true
# Use color not only in STDOUT but also in pagers and files
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
end | guinslym/uottawa_odesi_utils | spec/spec_helper.rb | Ruby | mit | 290 |
package shop.main.controller.admin;
import static shop.main.controller.admin.AdminController.ADMIN_PREFIX;
import static shop.main.controller.admin.AdminController.MANAGER_PREFIX;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
im... | spacerovka/jShop | src/main/java/shop/main/controller/admin/AdminDiscountController.java | Java | mit | 4,334 |
/**
* @class EZ3.Box
* @constructor
* @param {EZ3.Vector3} [min]
* @param {EZ3.Vector3} [max]
*/
EZ3.Box = function(min, max) {
/**
* @property {EZ3.Vector3} min
* @default new EZ3.Vector3(Infinity)
*/
this.min = (min !== undefined) ? min : new EZ3.Vector3(Infinity);
/**
* @property ... | andresz1/ez3.js | src/math/Box.js | JavaScript | mit | 2,872 |
package jkanvas.table;
import java.util.Objects;
import jkanvas.animation.GenericPaintList;
/**
* Maps rows of tables to shapes.
*
* @author Joschi <josua.krause@gmail.com>
* @param <T> The list of shapes.
*/
public abstract class ListMapper<T extends GenericPaintList<?>> {
/** The table. */
private final... | JosuaKrause/JKanvas | src/main/java/jkanvas/table/ListMapper.java | Java | mit | 1,891 |
require_relative "../test_helper"
require_relative "../support/apiai_responses"
require_relative "../../lib/ai/weather_responder"
include ApiaiResponses
describe AI::WebQueryResponder do
before do
@responder = AI::WebQueryResponder.new(web_query_apiai_response)
end
describe "#call" do
it "returns the c... | fanolug/fortuna_luca | test/ai/test_web_query_responder.rb | Ruby | mit | 543 |
<?php
//api.php
//This is the API transaction script.
?> | grubbyhax/litewrench | litewrench/plugins/api.php | PHP | mit | 57 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.compute;
import com.azure.core.http.HttpPipeline;
import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetInner;
import com.azure.resourcemanager.compute.models.KnownL... | Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-compute/src/test/java/com/azure/resourcemanager/compute/VirtualMachineScaleSetBootDiagnosticsTests.java | Java | mit | 23,110 |
class AddPostReceiveUrlModes < ActiveRecord::Migration
def self.up
add_column :repository_post_receive_urls, :mode, :string, :default => "github"
end
def self.down
remove_column :repository_post_receive_urls, :mode
end
end
| cema-sp/docker-redmine | to_data/plugins/redmine_git_hosting/db/migrate/20120522000000_add_post_receive_url_modes.rb | Ruby | mit | 240 |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... | elco-coin/elcoin-source | src/qt/qrcodedialog.cpp | C++ | mit | 4,309 |
module Beatport
module Catalog
class Keys < Item
has_one :standard, Key
end
end
end | mateomurphy/beatport | lib/beatport/catalog/keys.rb | Ruby | mit | 102 |
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("Ext... | jzoss/LowCalorieOwin | ExternalNoCookieLogin/Properties/AssemblyInfo.cs | C# | mit | 1,409 |
import { times, flatten } from "lodash"
import { APIOptions } from "./loaders/api"
// TODO: Type this and refactor, because I think things just kinda work by luck,
// because a static and a dynamic path loader take different number of
// arguments.
export const MAX_GRAPHQL_INT = 2147483647
export const a... | mzikherman/metaphysics-1 | src/lib/all.ts | TypeScript | mit | 1,251 |
// Type definitions for ag-grid-community v20.2.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Component } from "../widgets/component";
import { IFilterOptionDef, IDoesFilterPassParams, IFilterComp, IFilterParams } from "../interfaces/iFilter";
import { Grid... | ceolter/angular-grid | dist/lib/filter/baseFilter.d.ts | TypeScript | mit | 5,617 |
using IoT_Core.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace IoT_Core.Services.Repositories
{
public class WateringRepository : BaseRepository, IWateringRepository
... | MCeddy/IoT-core | IoT-Core/Services/Repositories/WateringRepository.cs | C# | mit | 1,483 |
<?php
/*
* This file is part of Gloubster.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gloubster\Receipt;
use Gloubster\Exception\RuntimeException;
class Factory
{
public stat... | Gloubster/Communications | src/Gloubster/Receipt/Factory.php | PHP | mit | 1,130 |
package input
import (
glfw "github.com/go-gl/glfw3"
"github.com/tedsta/fission/core"
"github.com/tedsta/fission/core/event"
)
type InputSystem struct {
eventManager *event.Manager
window *glfw.Window
}
func NewInputSystem(w *glfw.Window, e *event.Manager) *InputSystem {
i := &InputSystem{}
// Set the ... | tedsta/gofission | input/inputsystem.go | GO | mit | 1,973 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | laidig/siri-20-java | src/uk/org/siri/siri/PtConsequencesStructure.java | Java | mit | 2,372 |
$(document).ready(function(){
//fancybox.js init
/*$('.fancybox').fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
arrows : false,
helpers : {
media : {},
buttons : {}
}
});*/
//wow.js init
wow = new WOW(
{
animat... | Sirchem/WebGraph | js/main.js | JavaScript | mit | 411 |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSiezidColumnDishprice extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('dish_price... | stanleygomes/stanleygomes.github.io | projects/netrango-laravel-netrango/database/migrations/2017_05_08_203031_add_siezid_column_dishprice.php | PHP | mit | 785 |
<?php // lint >= 7.4
function foo():?Foo
{
}
$callback = function():?Foo
{
};
$callback = fn ($a):?Foo => $a;
interface Foo
{
public function doFoo($param):?Foo;
}
class FooBar implements Foo
{
public function doFoo($param):?Foo
{
}
}
| slevomat/coding-standard | tests/Sniffs/TypeHints/data/fixableReturnTypeHintNoSpaceBetweenColonAndNullabilitySymbol.php | PHP | mit | 251 |
"use strict";
var compression = require("../lib/core/middleware/compression");
describe("core.middleware.compression", function() {
var fakeThis;
beforeEach("create fake this", function() {
fakeThis = {
enabled: sinon.stub().withArgs("compress").returns(true),
app: {
use: sinon.spy()
}
... | Nulifier/Obsidian | test/hide/core.middleware.compression.js | JavaScript | mit | 1,098 |
EmberChat::Application.routes.draw do
root :to => 'application#index'
end
| johnkpaul/emberchat | config/routes.rb | Ruby | mit | 76 |
package misc
import (
"net/http"
"strconv"
"time"
)
//Writer http response writer interface.
type Writer interface {
http.ResponseWriter
http.Hijacker
}
//ElapsedTime add requset elapsed time to "Elapsed-Time" header of response.
//Elapsed time is time spent between middleware exetue and data wrote to response.... | herb-go/herb | middleware/misc/elapsedtime.go | GO | mit | 1,028 |
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("1.... | TeeeeeC/TelerikAcademy2015-2016 | 02. C# part 2/06. Strings and Text processing/1. DescriptionOfStrings/Properties/AssemblyInfo.cs | C# | mit | 1,422 |
def clear_console
puts "\e[H\e[2J"
end
watch('lib/.*\.php') do |match|
clear_console
system 'phpunit'
end
| immense/php-macaroons | autotest-watchr.rb | Ruby | mit | 114 |
namespace Gibraltar.Messaging
{
/// <summary>
/// Wraps a Gibraltar Packet for publishing
/// </summary>
/// <remarks>For thread safety, request a lock on this object directly. This is necessary when accessing updateable properties.</remarks>
internal class PacketEnvelope
{
private rea... | GibraltarSoftware/Loupe.Agent.Core | src/Core/Messaging/PacketEnvelope.cs | C# | mit | 3,447 |
<?php
namespace Icecave\Chrono\TimeSpan;
use DateInterval;
use Icecave\Chrono\Interval\IntervalInterface;
use Icecave\Chrono\TimePointInterface;
/**
* A common interface for non-anchored blocks of time (periods and durations).
*/
interface TimeSpanInterface
{
/**
* @return bool True if the time span is ze... | IcecaveStudios/chrono | src/TimeSpan/TimeSpanInterface.php | PHP | mit | 2,370 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2019_11_01
module Models
#
# Authentication certificates of an application gateway.
#
class ApplicationGatew... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2019-11-01/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb | Ruby | mit | 3,157 |
# pre_NAMD.py
# Creates the files used for NAMD based on the .pdb file dowloaded from PDB bank
#
# Usage:
# python pre_NAMD.py $PDBID
#
# $PDBID=the 4 characters identification code of the .pdb file
#
# Input:
# $PDBID.pdb: .pdb file downloaded from PDB bank
#
# Output:
# $PDBID_p.pdb: .pdb file with water mole... | Xiaofei-Zhang/NAMD_Docking_pipeline | pre_NAMD/pre_NAMD.py | Python | mit | 2,553 |
<?php
declare(strict_types = 1);
namespace OctoLab\Common\Util;
/**
* @author Kamil Samigullin <kamil@samigullin.info>
*/
final class Ini
{
/** @var bool */
private $processSections;
/** @var int */
private $scannerMode;
/**
* @param bool $processSection
* @param int $scannerMode
... | kamilsk/Common | src/Util/Ini.php | PHP | mit | 2,270 |
package com.humooooour.kit.screen;
import android.app.Activity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import com.humooooour.kit.HSApp;
import com.humooooour.kit.geom.HSRect;
import processing.core.PApplet;
import processing.core.PGraphics;
public class HSScreen {
private HSApp mApp;
pri... | thedoritos/HumourKit | src/com/humooooour/kit/screen/HSScreen.java | Java | mit | 1,120 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-12-03 13:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('busshaming', '0013_auto_20170917_0502'),
]
operati... | katharosada/bus-shaming | busshaming/migrations/0014_auto_20171203_1316.py | Python | mit | 1,559 |
"""
Poisson time series penalised likelihood regression
via the Berman Turner device
"""
from . import weighted_linear_model
from . import design_nonlattice as design
from math import ceil
import numpy as np
from importlib import reload
design = reload(design)
class NonLatticeOneShot:
"""
the simplest devic... | danmackinlay/branching_process | branching_process/nonlattice/fit.py | Python | mit | 6,351 |
<?php
namespace porcelanosa\yii2options\models\query;
/**
* This is the ActiveQuery class for [[\app\modules\admin\models\ChildOptionMultiple]].
*
* @see \app\modules\admin\models\ChildOptionMultiple
*/
class ChildOptionMultipleQuery extends \yii\db\ActiveQuery
{
/*public function active()
{
retur... | porcelanosa/yii2-options | models/query/ChildOptionMultipleQuery.php | PHP | mit | 747 |
"""useful context managers"""
from contextlib import suppress
with suppress(ModuleNotFoundError):
from lag import *
import os
import contextlib
def clog(*args, condition=True, log_func=print, **kwargs):
if condition:
return log_func(*args, **kwargs)
@contextlib.contextmanager
def cd(newdir, verbos... | thorwhalen/ut | util/context_managers.py | Python | mit | 908 |
package ls;
import java.util.*;
import javax.swing.table.AbstractTableModel;
public class DirectoryTableModel extends AbstractTableModel {
private final List<DirOpt> dirs = new ArrayList<>();
public List<DirOpt> getDirs () {
return new ArrayList<>(dirs);
}
public void add (DirOpt dir) {
... | alexyz/logsearch | src/ls/DirectoryTableModel.java | Java | mit | 2,287 |
<?php
declare(strict_types=1);
/**
* OrganizationsApi.
*
* PHP version 7.4
*
* @category Class
* @package DocuSign\eSign
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* DocuSign REST API
*
* The DocuSign REST API provides you with a powerful, convenien... | docusign/docusign-php-client | src/Api/OrganizationsApi.php | PHP | mit | 9,995 |
export default interface DiscoveryPacket {
timestamp: number;
apiVersion: number;
port: number;
}
| ThomasGaubert/openvr-notifications | desktop/src/models/DiscoveryPacket.ts | TypeScript | mit | 104 |
package main
import (
"fmt"
)
type myType int
func (t myType) println() {
fmt.Println(t)
}
func main() {
var z myType = 123
z.println()
}
| skatsuta/kiso-golang | src/method.go | GO | mit | 147 |
/**
reframe.js - Reframe.js: responsive iframes for embedded content
@version v3.0.0
@link https://github.com/yowainwright/reframe.ts#readme
@author Jeff Wainwright <yowainwright@gmail.com> (http://jeffry.in)
@license MIT
**/
(function (global, factory) {
typeof exports === 'object' && typeof module !== '... | cdnjs/cdnjs | ajax/libs/reframe.js/3.0.0/reframe.js | JavaScript | mit | 3,883 |
<?php
declare(strict_types=1);
namespace Mihaeu\PhpDependencies\Dependencies;
class Clazz extends ClazzLike
{
}
| mihaeu/dephpend | src/Dependencies/Clazz.php | PHP | mit | 115 |
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: AssemblyCompany("... | aliencube/Hangeul-Romaniser | Documents/Properties/CommonAssemblyInfo.cs | C# | mit | 870 |
/**
*
* STREAM: MVA (window: 15)
*
*
*
* DESCRIPTION:
* -
*
*
* API:
* -
*
*
* NOTES:
* [1]
*
*
* TODO:
* [1]
*
*
* HISTORY:
* - 2014/05/28: Created. [AReines].
*
*
* DEPENDENCIES:
* [1]
*
*
* LICENSE:
* MIT
*
* Copyright (c) 2014. Athan Reines.
*
*
* AUTHOR:
* Athan Reines. athan@nodeprime.com. 2014.
*
*/... | kgryte/rpo-dynamics | app/utils/streams/output/mva/mva-w15.js | JavaScript | mit | 3,126 |
'use strict';
module.exports = {
compile: {
options: {
style: 'expanded',
},
src : 'src/css/style.scss',
dest : 'dist/css/style.css',
},
};
| anstosa/sarahandansel.wedding | grunt/sass.js | JavaScript | mit | 194 |
<html>
<head>
<title>Praktikum PHP-Mysql</title>
</head>
<body>
<font style="arial,helvetica" size="medium">
<b>Selamat datang di praktikum PHP-Mysql.</b></font><br>
<font style="arial,helvetica" size="-1">
<b>Silahkan klik menu yang anda inginkan.</b></font>
<br><br>
<p>
insert data<br>
delete data<br>
up... | ardiprakasa/PJW2015 | phpmysql/phpmysqlcoba.php | PHP | mit | 410 |
<?php
namespace Sdd;
use Sdd\Builder\DirectDebit as Builder;
use Sdd\DirectDebit\GroupHeader;
use Sdd\DirectDebit\PaymentInformation;
/**
* DirectDebit
*
* @author Carlo Chech 2016
* @license MIT
*/
class DirectDebit
{
/**
* @var null
*/
protected $groupHeader = null;
/**
* @var null
*/
... | wdog/sdd_ita | DirectDebit.php | PHP | mit | 1,601 |
import _plotly_utils.basevalidators
class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="arrowcolor", parent_name="layout.annotation", **kwargs
):
super(ArrowcolorValidator, self).__init__(
plotly_name=plotly_name,
par... | plotly/python-api | packages/python/plotly/plotly/validators/layout/annotation/_arrowcolor.py | Python | mit | 479 |
<?php
/**
* @var $property Property
* @var $form ActiveForm
*/
use DevGroup\DataStructure\models\Property;
use DevGroup\DataStructure\propertyHandler\RelatedEntity;
use devgroup\jsoneditor\Jsoneditor;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\Json;
use yii\widgets\ActiveForm;
echo Yii::t('a... | DevGroup-ru/yii2-data-structure-tools | src/Properties/views/manage/_masked-input-settings.php | PHP | mit | 1,384 |