repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
iamatypeofwalrus/GlasswavesCo | cdk/node_modules/@aws-cdk/aws-sqs/lib/index.js | 615 | "use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./policy"));
__export(require("./queue"));
__export(require("./queue-ref"));
// AWS::SQS CloudFormation Resources:
__export(requ... | mit |
clouseauu/allotment | lib/allotment/cli.rb | 949 | require "allotment"
module Allotment
module CLI
def run
o = options
raise ArgumentError.new('Missing username and/or password') if (o.username.nil? || o.password.nil?)
log = o.logfile ? Logger.new(o.logfile) : Logger.new(STDOUT)
log.level = Logger::INFO
p = Allotment::Processor.ne... | mit |
eagletmt/ffmpeg-ffi | lib/ffmpeg-ffi/c/dictionary_entry.rb | 168 | require 'ffi'
module FFmpeg
module C
class DictionaryEntry < FFI::Struct
layout(
:key, :string,
:value, :string,
)
end
end
end
| mit |
johnthecat/babel-plugin-jsdoc-runtime-typecheck | test/smoke/fixtures/assertion-inject/integration/class-method.js | 1354 | "use strict";
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... | mit |
aalok05/CodeHub | CodeHub/Views/NotificationsView.xaml.cs | 14747 | using CodeHub.Services;
using CodeHub.ViewModels;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Octokit;
using System.Collections.ObjectModel;
using System.Linq;
using Windows.UI.Xaml.Navigation;
using static CodeHub.Helpers.GlobalHelper;
namespace CodeHub.Views
{
public sealed parti... | mit |
PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Object/defineProperty/15.2.3.6-4-445.js | 1475 | // Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... | mit |
changedi/better-springboot | src/main/java/me/cloudex/better/springboot/service/AccountService.java | 264 | package me.cloudex.better.springboot.service;
import org.springframework.stereotype.Service;
/**
* Created by zunyuan.jy on 02/05/2017.
*/
@Service
public class AccountService {
public String sayHello(String name) {
return "hello " + name;
}
}
| mit |
nurieff/table-fits | src/dom_change.js | 1921 | let MutationObserver = typeof window !== 'undefined' ? window.MutationObserver || window.WebKitMutationObserver : undefined,
eventListenerSupported = typeof window !== 'undefined' ? window.addEventListener : undefined;
export default class TableFits_Prepare_DomChange {
static addEvent(obj, callback) {
... | mit |
alexcepoi/cake | cake/color.py | 3044 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
import curses
import inspect
import colorama
colorama.init()
ANSI_PATTERN = '\x1b[^m]*m'
class ColorWrapper(object):
""" Wraps a string in a color or returns color """
def __init__(self, color):
self.color = color
def __str__(self):
return... | mit |
gabrielStanovsky/oie-benchmark | oie_readers/clausieReader.py | 1496 | from oie_readers.oieReader import OieReader
from oie_readers.extraction import Extraction
class ClausieReader(OieReader):
def __init__(self):
self.name = 'ClausIE'
def read(self, fn):
d = {}
with open(fn) as fin:
for line in fin:
data = line.strip()... | mit |
wkozyra95/react-boilerplate | src/pages/StaticPage/About.js | 233 | /* @flow */
import React from 'react';
import AppLayout from 'pages/AppLayout';
class About extends React.Component {
render() {
return (
<AppLayout>
About
</AppLayout>
);
}
}
export default About;
| mit |
sproutit/sproutcore-buildtools | jsdoc/java/src/JsRun.java | 756 | /**
* A trivial bootstrap class that simply adds the path to the
* .js file as an argument to the Rhino call. This little hack
* allows the code in the .js file to have access to it's own
* path via the Rhino arguments object. This is necessary to
* allow the .js code to find resource files in a location
* rel... | mit |
erikzhouxin/CSharpSolution | NetSiteUtilities/AopApi/Response/AlipayOpenPublicPersonalizedExtensionCreateResponse.cs | 585 | using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// AlipayOpenPublicPersonalizedExtensionCreateResponse.
/// </summary>
public class AlipayOpenPublicPersonalizedExtensionCreateResponse : AopResponse
{
/// <summary>
/// 扩展区套id,创建... | mit |
gagangupt16/vscode | src/vs/platform/workspace/test/common/testWorkspace.ts | 698 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | mit |
jyduque/sagacohub | src/sagaco/DsagacoBundle/Entity/clBenefiHumano.php | 10415 | <?php
namespace sagaco\DsagacoBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ESagaco.viBenefiHumano
*
* @ORM\Table(name="e_sagaco.vi_benefi_humano", uniqueConstraints={@ORM\UniqueConstraint(name="uk_vi_benefi_humano_co_recurs_humano_nu_cedula", columns={"nu_cedula"})}, indexes={@ORM\Index(name="IDX_B1B412B... | mit |
LuisRBarreras/string-builder | test/test-cat.js | 800 | var StringBuilder = require('../src/string-builder');
var assert = require('chai').assert;
var sinon = require('sinon');
var jsonfile = require('jsonfile');
var file = './fixtures/data.json';
var fixtures = jsonfile.readFileSync(file);
describe('StringBuilder #cat', function() {
it('Should concatenate all the par... | mit |
heitorschueroff/ctci | ch5/5.04_Next_Number/test_next_number.py | 567 | import unittest
from next_number import *
class TestNextNumber(unittest.TestCase):
def test_next_smallest_number(self):
self.assertEquals(next_smallest_number(0b1011000), 0b1100001)
self.assertEquals(next_smallest_number(0b1010), 0b1100)
self.assertEquals(next_smallest_number(0b1110), 0b10... | mit |
leblanc-simon/openpasswd | src/OpenPasswd/FormType/UrlType.php | 508 | <?php
/**
* This file is part of the OpenPasswd package.
*
* (c) Simon Leblanc <contact@leblanc-simon.eu>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace OpenPasswd\FormType;
class UrlType
extends ASimpleType
im... | mit |
matslindh/codingchallenges | adventofcode2020/11.py | 4654 | import copy
def print_seats(seats):
for line in seats:
for char in line:
if char is None:
print('.', end='')
elif not char:
print('L', end='')
else:
print('#', end='')
print()
print("\n\n")
def seatplanner_... | mit |
deepdeev/nocrime-frontend | src/components/reported_selector.js | 805 | import React from 'react';
const ReportedSelector = (props) => (
<span >
<label>{props.title}</label>
<span >
{props.options.map(option => {
return (
<label key={option}>
<input className="space"
name={props.setName}
onChange={props.controlFunc}
value={option}
checked... | mit |
mobeets/bpcs | bpcs/images2gif.py | 6292 | import numpy as np
import PIL
from PIL import Image, ImageChops
from PIL.GifImagePlugin import getheader, getdata
""" MODULE images2gif
Provides a function (writeGif) to write animated gif from a series
of PIL images or numpy arrays.
This code is provided as is, and is free to use for all.
Almar Klein (June 2009)
... | mit |
empiricalstateofmind/personal_website | app/mod_home/controllers.py | 2646 | from flask import Blueprint, request, render_template, \
flash, g, session, redirect, url_for, Response, \
stream_with_context, config
import json
mod_home = Blueprint('home', __name__, static_folder='static')
@mod_home.context_processor
def inject_dict_for_all_templates():... | mit |
Chainsawkitten/UltimateGolf19XX | src/Editor/GUI/VerticalLayout.cpp | 1008 | #include "VerticalLayout.hpp"
#include <Core/Resources.hpp>
namespace GUI {
VerticalLayout::VerticalLayout(Widget* parent) : Container(parent) {
rectangle = Resources().CreateRectangle();
nextPosition = glm::vec2(0.f, 0.f);
}
VerticalLayout::~VerticalLayout() {
Resourc... | mit |
shanonvl/aurelia-i18next | dist/amd/i18n.js | 5606 | define(['exports', 'i18next', './utils'], function (exports, _i18next, _utils) {
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; des... | mit |
henrysun918/jasmine-mock-factory | dist/index.d.ts | 670 | /// <reference types="jasmine" />
export declare type Mock<T> = T & SpyFacade<T>;
export interface SpyFacade<T> {
_spy: Spied<T> & SpiedAny;
}
export declare type Spied<T> = {
[K in keyof T]: SpiedMember;
};
export interface SpiedAny {
[id: string]: SpiedMember;
}
export interface SpiedMember {
_func: j... | mit |
bencallis1/meanMaterial | modules/core/client/app/init.js | 1764 | 'use strict';
//Start by defining the main module and adding the module dependencies
angular.module(ApplicationConfiguration.applicationModuleName, ApplicationConfiguration.applicationModuleVendorDependencies);
// Setting HTML5 Location Mode
angular.module(ApplicationConfiguration.applicationModuleName).config(['$loc... | mit |
mrkva/Dump.js | client.js | 14901 | var CONFIG = { debug: false
, nick: "#" // set in onConnect
, id: null // set in onConnect
, last_message_time: 1
, focus: true //event listeners bound in onConnect
, unread: 0 //updated in the message-processing loop
};
var nicks = [];... | mit |
ara-ta3/node-quest | src/game/model/effect/FeedbackResult.js | 407 | export default class FeedbackResult {
damaged: number
cured: number
mindDamaged: number
mindCured: number
constructor(
damaged: number,
cured: number,
mindDamaged:number,
mindCured:number) {
this.damaged = damaged || 0;
this.cured = cured || 0;
... | mit |
pilu/abramo | lib/abramo/command.js | 1012 | var dumper = require('./dumper'),
debug = require('./debug');
var commands = {
"dump" : "dump"
};
var Command = exports.Command = function(config, store, startCallback) {
this.config = config;
this.store = store;
this.startCallback = startCallback;
};
Command.prototype.hasCommand =... | mit |
gquintana/beepbeep | src/main/java/com/github/gquintana/beepbeep/http/BasicHttpClientProvider.java | 2966 | package com.github.gquintana.beepbeep.http;
import com.github.gquintana.beepbeep.BeepBeepException;
import com.github.gquintana.beepbeep.util.Strings;
import org.apache.http.HttpHost;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.client.Credentia... | mit |
lasiproject/LASI | LASI.Core/LexicalStructures/UnderpinningTypes/IAggregateLexical.cs | 791 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LASI.Core
{
/// <summary>
/// Defines the requirements for a Lexical type which is simultaneously a single element and a composition of other Lexical elements.
/// </summary>
/... | mit |
luguanxing/Data-Structures-and-Algorithms | Homework/project04-中东地图导航/East Campus Guide/East Campus Guide/DLG_ZHENGMEN.cpp | 2622 | // DLG_ZHENGMEN.cpp : ʵÏÖÎļþ
//
#include "stdafx.h"
#include "East Campus Guide.h"
#include "DLG_ZHENGMEN.h"
#include "afxdialogex.h"
extern int start, end;
// DLG_ZHENGMEN ¶Ô»°¿ò
IMPLEMENT_DYNAMIC(DLG_ZHENGMEN, CDialogEx)
DLG_ZHENGMEN::DLG_ZHENGMEN(CWnd* pParent /*=NULL*/)
: CDialogEx(DLG_ZHENGMEN... | mit |
pjeweb/grunt-iehint | tasks/iehint.js | 1412 | /*
* grunt-iehint
* https://github.com/pjeweb/grunt-iehint
*
* Copyright (c) 2014 Paul Golmann
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Please see the Grunt documentation for more information regarding task
// creation: http://gruntjs.com/creating-tasks
gr... | mit |
bing-ads-sdk/BingAds-Java-SDK | proxies/com/microsoft/bingads/v12/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java | 2702 |
package com.microsoft.bingads.v12.campaignmanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ano... | mit |
objectmastery/stylelint-plugin | src/com/stylelint/StyleLintExternalAnnotator.java | 10423 | package com.stylelint;
import com.intellij.codeInsight.daemon.HighlightDisplayKey;
import com.intellij.codeInsight.daemon.impl.SeverityRegistrar;
import com.intellij.lang.annotation.Annotation;
import com.intellij.lang.annotation.AnnotationHolder;
import com.intellij.lang.annotation.ExternalAnnotator;
import com.intel... | mit |
junctiontech/sbk | frontend/js/sb4k.js | 2578 | if(window.location.hostname=="localhost"){
var base_url = 'http://localhost/sbk/';
}
if(window.location.hostname=="searchb4kharch.com"){
var base_url = 'http://searchb4kharch.com/';
}
if(window.location.hostname=="www.searchb4kharch.com"){
var base_url = 'http://www.searchb4kharch.com/';
}
if(window.location.hos... | mit |
ericzhang-cn/princeton-algs4 | src/main/java/Deque.java | 4161 | // Coursera Algorithms, Part I Assignment 2
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* 双向队列
*
* 为了保证在O(1)的复杂度内完成双向插入及删除操作,使用双向链表作为内部数据结构
* @author ericzhang <ericzhang.buaa@gmail.com>
*/
public class Deque<Item> implements Iterable<Item> {
/**
* 链表节点
*
* @auth... | mit |
KitchenCoster/myob-api | lib/myob/api/models/bill_miscellaneous.rb | 183 | module Myob
module Api
module Model
class BillMiscellaneous < Base
def model_route
'Purchase/Bill/Miscellaneous'
end
end
end
end
end
| mit |
sai-lab/mouryou | lib/ratio/ratio.go | 253 | package ratio
import "github.com/sai-lab/mouryou/lib/calculate"
func Increase(xs []float64, n int) float64 {
if len(xs) == 1 {
return calculate.MovingAverage(xs, n) - xs[0]
}
return (calculate.MovingAverage(xs, n) - xs[0]) / float64(len(xs)-1)
}
| mit |
mrself/ya-form | src/Form/View.php | 461 | <?php
namespace Mrself\YaF\Form;
class View {
public function __construct($data = null) {
if ($data) {
$this->data = $data;
}
}
public function with($key, $val) {
if (is_array($key)) {
$this->data = array_merge($this->data, $key);
} else {
$this->data[$key] = $val;
}
}
p... | mit |
jgveire/Vanguard.Framework | src/Vanguard.Framework.Test/TestBase.cs | 1026 | namespace Vanguard.Framework.Test
{
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
/// <summary>
/// The test base class.
/// </summary>
[TestClass]
public class TestBase
{
/// <summary>
/// Gets the mock repository.
/// </summary>
/// <v... | mit |
netis-pl/yii2-crud | widgets/GridView.php | 3688 | <?php
/**
* @link http://netis.pl/
* @copyright Copyright (c) 2015 Netis Sp. z o. o.
*/
namespace netis\crud\widgets;
use netis\crud\db\ActiveQuery;
use Yii;
use yii\data\ActiveDataProvider;
use yii\helpers\Html;
/**
* Extends \yii\grid\GridView, adding two new layout elements: lengthPicker and quickSearch.
* @... | mit |
szpak/mockito | src/main/java/org/mockito/internal/stubbing/BaseStubbing.java | 3269 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.stubbing;
import org.mockito.internal.stubbing.answers.CallsRealMethods;
import org.mockito.internal.stubbing.answers.Returns;
import org.mockito.internal.stubbing.answer... | mit |
makelivedotnet/sample-Groceries | app/tns_modules/ui/frame/frame.ios.js | 10228 | var frameCommon = require("ui/frame/frame-common");
var trace = require("trace");
var enums = require("ui/enums");
var utils = require("utils/utils");
var view = require("ui/core/view");
var types = require("utils/types");
global.moduleMerge(frameCommon, exports);
var ENTRY = "_entry";
var navDepth = 0;
var Frame = (fu... | mit |
xiamidaxia/xiami | meteor/id-map/id-map.js | 2296 | var EJSON = require('meteor/ejson')
var _ = require('meteor/underscore')
var IdMap = module.exports = function (idStringify, idParse) {
var self = this;
self._map = {};
self._idStringify = idStringify || JSON.stringify;
self._idParse = idParse || JSON.parse;
};
// Some of these methods are designed to match m... | mit |
G-CorpDev/project | server/src/WorkoutClasses.cpp | 7589 | #include <Models.h>
Models::Exercise::Exercise(const std::string &name, const std::string ¬e, Models::Exercise::Type type, const std::string &reps, const std::string &weight, const bool &done)
: name(name), note(note), type(type), reps(reps), weight(weight), done(done) {}
std::string Models::Exercise::toJSON()... | mit |
EbenezerOyenuga/citizenship | application/modules/Admintemplate/controllers/Admintemplate.php | 755 | <?php
class Admintemplate extends MY_Controller{
function __construct()
{
parent::__construct();
}
function call_admin_template($data = NULL){
//call login template
$this->load->model('M_Semesters_Scores');
$data['num_resub_req'] = count($this->M_Semesters_Scores->get_re... | mit |
Team1786/1786-2018-Robot-Code-Practice | main/java/org/usfirst/frc/team1786/robot/commands/resetGyro.java | 563 | package org.usfirst.frc.team1786.robot.commands;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc.team1786.robot.Robot;
public class resetGyro extends Command {
public resetGyro() {
requires(Robot.drivetrain);
}
public void initialize() {
}
@Override
protected v... | mit |
m3libea/TwitterClient | app/src/main/java/com/codepath/apps/twitterclient/activities/TweetActivity.java | 14291 | package com.codepath.apps.twitterclient.activities;
import android.content.Context;
import android.content.Intent;
import android.databinding.DataBindingUtil;
import android.graphics.Bitmap;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.net.ConnectivityManager;
import an... | mit |
USC-CSSL/USC-ObjectsNegotiationTask | WebGames/src/edu/usc/cct/rapport/web_games/client/WebGamesAbstractActivity.java | 359 | package edu.usc.cct.rapport.web_games.client;
abstract public class WebGamesAbstractActivity implements IWebGamesActivity {
@Override
public String mayStop() {
return null;
};
@Override
public void onCancel() {
// There is nothing to do here.
};
@Override
public void onStop() {
// Th... | mit |
TwilioDevEd/api-snippets | ip-messaging/rest/roles/delete-role/delete-role.3.x.js | 504 | // To set up environmental variables, see http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const Twilio = require('twilio').Twilio;
const client = new Twilio(accountSid, authToken);
const service = client.chat.services('ISXXXXXXXXXXXXXXXXXXXXXXXX... | mit |
smc314/helix | qd/welcome/source/class/welcome/layout/LayoutButton.js | 488 | /* ************************************************************************
Copyright: Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
qx.Mixin.define("welcome.layout.LayoutButton", {
members : {
... | mit |
dolare/myCMS | static/fontawesome5/fontawesome-pro-5.0.2/fontawesome-pro-5.0.2/advanced-options/use-with-node-js/fontawesome-pro-solid/faTabletAndroidAlt.js | 402 | module.exports = { prefix: 'fas', iconName: 'tablet-android-alt', icon: [448, 512, [], "f3fc", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM288 452c0 6.6-5.4 12-12 12H172c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8zm112-80c0 6.6-5.4 12-1... | mit |
wholesale-design-system/components | build/tasks/prepare-release.js | 1782 | const gulp = require('gulp');
const runSequence = require('run-sequence');
const paths = require('../paths');
const conventionalChangelog = require('gulp-conventional-changelog');
const conventionalGitHubReleaser = require('conventional-github-releaser');
const bump = require('gulp-bump');
const args = require('../args... | mit |
frisbeesport/frisbeesport.nl | vendor/bolt/common/src/Exception/DumpException.php | 91 | <?php
namespace Bolt\Common\Exception;
class DumpException extends \RuntimeException
{
}
| mit |
glenjamin/react-bootstrap | www/src/examples/OverlayCustom.js | 1331 | function CustomPopover({ className, style }) {
return (
<div
className={className}
style={{
...style,
position: 'absolute',
backgroundColor: '#EEE',
boxShadow: '0 5px 10px rgba(0, 0, 0, 0.2)',
border: '1px solid #CCC',
borderRadius: 3,
marginLeft... | mit |
tareqmahmud/URI-CPP | BEGINNER/1075.cpp | 253 | #include <iostream>
using namespace std;
int main() {
// Initialize variable
int N;
// Take input
cin >> N;
for (int i = 1; i <= 10000; i++) {
if (i % N == 2) {
cout << i << endl;
}
}
return 0;
} | mit |
Faldon/pShow | pShow/Properties/AssemblyInfo.cs | 1424 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
// 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.
[ass... | mit |
nevernotsean/bg-theme | template-parts/buy-board-filters.php | 3958 | <div class="row collapse" id="filters">
<div class="medium-4 large-3 column">
<ul class="menu simple coast-links">
<li class="show-for-medium" style="margin-left: 0px;"><span class="bold">FILTERS:</span></li>
<li><a href="<?php echo site_url() ?>/buy-boards">All</a></li>
<li><a href="<?php echo ... | mit |
Sistiandy/ipung | application/helpers/cms_helper.php | 3118 | <?php
if (!function_exists('pretty_date')) {
function pretty_date($date = '', $format = '', $timezone = TRUE) {
$date_str = strtotime($date);
if (empty($format)) {
$date_pretty = date('l, d/m/Y H:i', $date_str);
} else {
$date_pretty = date($format, $date_str);
... | mit |
ricallinson/knot | tests/app/lib/process.js | 3206 | // (The MIT License)
//
// Copyright (c) 2012 Richard S Allinson <rsa@mountainmansoftware.com>
//
// 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, includ... | mit |
mokton/NodeMCU-Document-Download | download.py | 8971 | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 10 09:10:48 2017
@author: Angus
"""
import urllib2
import os, re
modules = ["adc","adxl345","am2320","apa102","bit","bme280",
"bmp085","cjson","coap","crypto","dht","encoder","enduser-setup",
"file","gpio","hmc5883l","http","hx711","i... | mit |
gpoussel/cyclopaca | database/migrations/2017_08_19_151159_create_rankings_table.php | 862 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRankingsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('rankings', fun... | mit |
noplay/sinatra-api-template | lib/models/user.rb | 1195 | require 'rubygems'
require 'bundler'
Bundler.require(:default)
class User
include DataMapper::Resource
include Paperclip::Resource
property :id, Serial
property :name, String, :unique => true, :length => 3..50, :required => true
property :password, BCryptHash, :required => tru... | mit |
hyn/magician | src/Events/NotifyClientleftview.php | 260 | <?php namespace Hyn\Teamspeak\Daemon\Events;
use Hyn\Teamspeak\Daemon\Abstracts\AbstractEvent;
class NotifyClientleftview extends AbstractEvent {
/**
* @return string
*/
public function getName()
{
return 'client left';
}
} | mit |
RawSanj/SOFRepos | SOFProjectTest/src/CSP600/AddPresentationDAO.java | 1959 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package CSP600;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
/**
*
* @author user
*/
... | mit |
daveross/Embed | tests/LineTest.php | 718 | <?php
class LineTest extends PHPUnit_Framework_TestCase
{
public function testOne()
{
$info = Embed\Embed::create('https://line.do/embed/8oq/vertical');
$this->assertEquals($info->title, 'PHP Evolution');
$this->assertEquals($info->type, 'rich');
$this->assertEquals($info->code,... | mit |
dbi/eye | spec/dsl/with_server_spec.rb | 7029 | require File.dirname(__FILE__) + '/../spec_helper'
describe "with_server feature" do
it "should load matched by string process" do
stub(Eye::Local).host{ "server1" }
conf = <<-E
Eye.application("bla") do
with_server "server1" do
process("1"){ pid_file "1.pid" }
end
... | mit |
okin/nikola | nikola/data/themes/base/messages/messages_te.py | 2399 | # -*- encoding:utf-8 -*-
"""Autogenerated file, do not edit. Submit translations on Transifex."""
MESSAGES = {
"%d min remaining to read": "%d నిమిషాలు చదవడానికి కావలెను ",
"(active)": "(క్రియాశీల)",
"Also available in:": "ఇందులో కూడా లభించును:",
"Archive": "అభిలేఖలు ",
"Atom feed": "",
"Author... | mit |
tretum/Avorion-Obj-Converter | waveobjparser/ObjWriter.py | 2925 | import os
from typing import List
from waveobjparser import Face
from waveobjparser import Normal
from waveobjparser import Scene
from waveobjparser import Text_Coord
from waveobjparser import Vertex
from waveobjparser import WaveObject
def writeName(file, name: str):
file.write("o {}\n".format(name))
def writ... | mit |
patelsan/fetchpipe | node_modules/log4js/test/smtpAppender-test-compiled.js | 8717 | "use strict";
var vows = require('vows'),
assert = require('assert'),
log4js = require('../lib/log4js'),
sandbox = require('sandboxed-module');
function setupLogging(category, options) {
var msgs = [];
var fakeMailer = {
createTransport: function createTransport(name, options) {
return {
... | mit |
GeekyAnts/NativeBase | example/storybook/stories/components/composites/CircularProgress/MinMax.tsx | 556 | import React from 'react';
import { CircularProgress, Heading, Center, Box, Text } from 'native-base';
import { number } from '@storybook/addon-knobs';
export const Example = () => {
return (
<Center>
<Heading mb={6}>Adding Min and Max</Heading>
<CircularProgress
value={550}
max={numbe... | mit |
flyinghail/Hail-Framework | src/Mail/Exception/SendException.php | 179 | <?php
/**
* Created by IntelliJ IDEA.
* User: Hao
* Date: 2016/10/8 0008
* Time: 15:47
*/
namespace Hail\Mail\Exception;
class SendException extends \RuntimeException
{
} | mit |
LeoMorales/webapps | application/views/autenticacion/bienvenido.php | 92 | <center>
<h1> Hola <?php echo $nombre; ?>! </h1>
<h2><?php echo $email; ?> </h2>
</center> | mit |
alu0100697032/naranjeroLPP | lib/examen/naranjero.rb | 1317 | require 'thread'
class Naranjero
attr_reader :altura, :edad, :contador, :arbolVivo, :produccion
def initialize(altura, edad, contador)
@edad = edad
#si el arbol pasa de 100 años muere
if(@edad >= 100)
@arbolVivo = false
@contador = 0
else
@a... | mit |
keyroads/DingtalkSDK | Keyroads.DingtalkSDK/IsvModel.cs | 3589 | using System.Collections.Generic;
namespace Keyroads.DingtalkSDK
{
public class GetSuiteTokenRequest
{
public string suite_key { get; set; }
public string suite_secret { get; set; }
public string suite_ticket { get; set; }
}
public class GetSuiteTokenResponse : IResponseVali... | mit |
ChuanleiGuo/AlgorithmsPlayground | DP/MinimumWeightPathInATriangle.java | 884 | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class MinimumWeightPathInATriangle {
public static int minimumPathTotal(List<List<Integer>> triangle) {
if (triangle.isEmpty()) {
return 0;
}
List<Integer> prevRow = new ArrayList<>(triangle... | mit |
tjerwinchen/FusionDB | src/fusiondb/fastdb/javacli/Statement.java | 11286 | package javacli;
import java.lang.reflect.*;
/**
* Statement class is used to prepare and execute select statement
*/
public class Statement {
/**
* Cleanup unreferenced statement
*/
public void finalize() {
if (con != null) {
close();
}
}
/**
* Close the statement. This me... | mit |
jeffsee55/ntbcapital.com | templates/content.php | 608 | <?php if(has_post_thumbnail()) {
$thumb_id = get_post_thumbnail_id();
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'large', true);
$thumb_url = $thumb_url_array[0];
} else {
$thumb_url = get_theme_mod( 'site_image' );
}
?>
<a class="card article-card" href="<?php the_permalink(); ?>">
<img class... | mit |
Flexible-User-Experience/fibervent | app/DoctrineMigrations/Version20160709095729.php | 1269 | <?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20160709095729 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema... | mit |
DaYeSquad/sakura-node-ts | src/util/stringutil.ts | 505 | // Copyright 2018 Frank Lin (lin.xiaoe.f@gmail.com). All rights reserved.
// Use of this source code is governed a license that can be found in the LICENSE file.
/**
* String Utils
*/
export class StringUtil {
/**
* Remove \n in string, useful when unit testing
*/
static removeBreaklines(str: string): str... | mit |
Condors/TunisiaMall | vendor/hwi/oauth-bundle/Security/Core/User/EntityUserProvider.php | 4406 | <?php
/*
* This file is part of the HWIOAuthBundle package.
*
* (c) Hardware.Info <opensource@hardware.info>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace HWI\Bundle\OAuthBundle\Security\Core\User;
use D... | mit |
dniklaus/arduino-menusystem-test | src/MenuHandler.cpp | 5397 | //
//
//
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "Wire.h"
#include "LcdKeypad.h"
#include "MenuSystem.h"
#include "MyMenuItem.h"
#include "MenuHandler.h"
class Item1MenuAction: public MyMenuItemAction
{
private:
MenuHandler* m_mHandler;
public:
... | mit |
carto-tragsatec/visorCatastroColombia | WebContent/visorcatastrocol/app/view/ol/VariablesConfiguracion.js | 5213 | /**Variables globales del visor CSP, vienen del fichero configuracion.xml*/
//-----url wms y wfs
var WMS = document.getElementById("WMS").value;
if (WMS.substr(WMS.length - 1) != "?") {
WMS = WMS + "?";
}
var WFS = document.getElementById("WFS").value;
if (WFS.substr(WFS.length - 1) != "?") {
WFS = WFS + "?";
}
//--... | mit |
ryanr1230/bolts | default_config/config/src/main.rs | 217 | extern crate bolts;
use bolts::Bolts;
include!("../config.rs");
fn main() {
let bolts_runner = Bolts::new();
bolts_runner.run(config::default_layout(), config::partial_paths(), config::markdown_files()).unwrap();
}
| mit |
SimplePersistence/SimplePersistence.Model | SimplePersistence.Model/src/SimplePersistence.Model/IEntity.cs | 1673 | #region License
// The MIT License (MIT)
//
// Copyright (c) 2016 SimplePersistence
//
// 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 ... | mit |
Alkisum/YTSubscriber | src/main/java/view/dialog/ExceptionDialog.java | 2814 | package view.dialog;
import javafx.application.Platform;
import javafx.scene.control.Alert;
import javafx.scene.control.Label;
import javafx.scene.control.TextArea;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Priority;
import javafx.stage.Stage;
import java.io.PrintWriter;
import java.io.StringWri... | mit |
silvanheller/cineast | src/org/vitrivr/cineast/core/util/images/ZernikeHelper.java | 7629 | package org.vitrivr.cineast.core.util.images;
import static java.awt.image.BufferedImage.TYPE_INT_RGB;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.complex.Complex;
import org.vitrivr.cineast.core.util.math.ZernikeMoments;
import org.vitrivr.... | mit |
bladestery/Sapphire | example_apps/AndroidStudioMinnie/sapphire/src/main/java/org/boofcv/android/recognition/fid.java | 523 | package org.boofcv.android.recognition;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import georegression.struct.se.Se3_F64;
/**
* Created by ubuntu on 17/06/15.
*/
public class fid implements Serializable {
public fid() {
number = new ArrayList<>();
targetT... | mit |
iaincarsberg/thornyengine | thorny/common/component/moveable.js | 4799 | /*global window*/
(function (module) {
var
/**
* Used to build the attach options.
* @param object $ Contains a reference to thorny
* @param object options Contains the attachment specific options
* @return object Containing the attached options
*/
attachOptions = function ($, options) {
if (type... | mit |
vampirebitter/go-join-the-activity | resources/views/sponsorInfo/index.blade.php | 6821 | @extends('layouts.vue')
@section('content')
<?php
$this->title = '主办方中心';
?>
<link href="{{ asset('css/sponsor_info.css') }}" rel="stylesheet">
<!-- banner -->
<div class="container_lg bgimg_banner"></div>
<div class="container-default">
<div class="container_left">
<div ... | mit |
Coregraph/Ayllu | JigSaw - AYPUY - CS/BESA3/BESA3-SRC/BPOBESA/src/BESA/Mobile/Exceptions/ExceptionBESAMessageInterpreterFailedBPO.java | 281 |
package BESA.Mobile.Exceptions;
import BESA.ExceptionBESA;
/**
*
* @author Andrea Barraza
*/
public class ExceptionBESAMessageInterpreterFailedBPO extends ExceptionBESA {
public ExceptionBESAMessageInterpreterFailedBPO(String message){
super(message);
}
}
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/quill/0.19.1/quill.js | 131 | version https://git-lfs.github.com/spec/v1
oid sha256:2bd7e21a9a31e41dfb9d51f7f4b880e4cf832f34dee1af79d70f13dd1b99053b
size 271959
| mit |
JustinLove/tictactoe | spec/tictactoe/board_spec.rb | 1555 | require 'spec_helper'
require 'tictactoe/board'
describe Tictactoe::Board do
let(:cut) {Tictactoe::Board}
describe 'blank board' do
subject {cut.new}
its(:blank) {should have(9).items}
its(:blank) {should == (0..8).to_a}
its(:finished?) {should be_false}
its(:winning?) {should be_false}
it... | mit |
Crny/framework | src/Clear/Pagination/PaginationServiceProvider.php | 320 | <?php
namespace Clear\Pagination;
use Clear\Support\ServiceProvider;
class PaginationServiceProvider extends ServiceProvider
{
/**
* register service
*
* @return void
*/
public function register()
{
# code...
}
public function boot()
{
# code...
}
} | mit |
zoitravel/zmz-calendar | src/classes/calendar-state.ts | 2368 | import { isArray, keys, sortBy } from 'lodash';
import { dateHash } from '../helpers';
import { DateMap, State, StateMap } from '../types';
import { startOfDay, parse } from 'date-fns';
// TODO add tests extending states
export const STATES: StateMap<State> = {
NO_STATE: '',
DISABLED: 'disabled',
UNAVAILABLE: '... | mit |
artsy/force-public | src/desktop/apps/fair_organizer/test/template.test.js | 3760 | /*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const _ = require("underscore")
const jade = require("jade")
const path = require("path")
const fs = require("graceful-fs")... | mit |
SevenSpikes/api-plugin-for-nopcommerce | Nop.Plugin.Api/Helpers/IJsonHelper.cs | 338 | using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.IO;
namespace Nop.Plugin.Api.Helpers
{
public interface IJsonHelper
{
Dictionary<string, object> GetRequestJsonDictionaryFromStream(Stream stream, bool rewindStream);
string GetRootPropertyName<T>() where T : class... | mit |
scrbrd/scoreboard | view/app/facebook.py | 731 | """ Module: facebook
Components for interacting with facebook directly.
Note: FacebookLoginButton isn't here because it doesn't interact with Facebook
directly.
"""
from components import AppThumbnail
class FacebookThumbnail(AppThumbnail):
""" FacebookThumbnail takes a facebook id and produces a thumbnail. "... | mit |
maxbrueckl/WorktimeManagement | WorktimeManagement.Core/MutableTimeSpanFactory.cs | 3121 | using System;
using System.Collections.Generic;
using System.Linq;
namespace WorktimeManagement.Core
{
public class MutableTimeSpanFactory : IMutableTimeSpanFactory
{
private const int MinutesPerHour = 60;
public IMutableTimeSpan CreateAsDifferenceOf(IMutableDayTime dayTime, IMutableDayTime an... | mit |