repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
vishva8kumara/rain-catcher | server/sky.js | 4212 |
var fs = require('fs');
var mysql = require('mysql');
var qs = require('querystring');
var express = require('express');
var config = JSON.parse(fs.readFileSync(__dirname+'/config.json', 'UTF-8'));
// -----------------------------------------------------------------------------
// Keep a persistant connection to the... | mit |
ehartmann/electric_sheep | lib/electric_sheep/config.rb | 224 | module ElectricSheep
class Config
include Queue
attr_reader :hosts
attr_accessor :encryption_options, :decryption_options, :ssh_options
def initialize
@hosts = Metadata::Hosts.new
end
end
end
| mit |
Luandro-com/repsparta-web-app | app/components/SuccessPage/tests/index.test.js | 169 | import SuccessPage from '../index';
import expect from 'expect';
import { shallow } from 'enzyme';
import React from 'react';
describe('<SuccessPage />', () => {
});
| mit |
Quilt4/Quilt4.Web | src/Quilt4.Web/wwwroot/systemjs.config.js | 2468 | /**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function (global) {
System.config({
paths: {
// paths serve as alias
'npm:': 'lib/'
},
// map tells the System loader where to look for things
map: {
... | mit |
billinkc/SSISCookbook | README.md | 89 | # SSISCookbook
SSIS cookbook for the hurried developer
Check out [the book](./main.pdf)
| mit |
w8s/alleghenypilgrims | pilgrims/core/static/css/pilgrims.css | 447 | body { padding-top: 50px; }
.navbar {
margin-bottom:0px;
}
#content {
margin-top: 20px;
}
footer { font-size: .9em;}
* {
margin: 0;
}
html, body {
height: 100%;
}
#body_wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -50px; /* the bottom margin is th... | mit |
LiamMartens/xTend | dist/Application/Core/LogHandler.php | 1177 | <?php
namespace Application\Core;
use \DateTime;
/**
* The LogHandler handles writing and clearing logs
*/
class LogHandler {
public static function clear() {
$files = App::logs()->files();
foreach ($files as $file) { $file->remove(); }
}
public ... | mit |
h2020-westlife-eu/west-life-wp6 | wp6-virtualfolder/www/src/virtualfoldermodules/modulecontrol.js | 1402 | /**
* Created by Tomas Kulhanek on 1/16/17.
*/
//import {HttpClient} from 'aurelia-http-client';
import {ProjectApi} from "../components/projectapi";
import {Vfstorage} from '../components/vfstorage';
//import {bindable} from 'aurelia-framework';
export class Modulecontrol{
// @bindable classin = "w3-card-4 w3-sa... | mit |
yobiya/CSReader | CSReader/CSReader/Command/HelpCommand.cs | 494 | namespace CSReader.Command
{
/// <summary>
/// ヘルプを表示するコマンド
/// </summary>
public class HelpCommand : ICommand
{
public const string COMMAND_NAME = "help";
/// <summary>
/// コマンドを実行する
/// </summary>
/// <returns>ヘルプ文字列</returns>
public s... | mit |
universalappfactory/Sharpend.UAP | Sharpend.UAP/Controls/Buttons/IconButton.cs | 4533 | //The MIT License(MIT)
//
//Copyright(c) 2016 universalappfactory
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, co... | mit |
idutta2007/yiigems | widgets/common/assets/shadows/aqua/aquaIvory/aquaIvory6.css | 2925 | .aquaIvory6,
.hover_aquaIvory6:hover,
.active_aquaIvory6:active {
-webkit-box-shadow: 0 0.63em 0.75em rgba(255, 232, 28, .39),
inset 0 -0.5em 0.9em 0 #ffe282,
inset 0 -0.5em 0em 0.65em rgb(232, 213, 0),
inset 0 0em 0.5em 2em rgb(232, 224, 127);
-moz-box-shadow: 0 0.63em 0.75em r... | mit |
igorbonadio/remote-terminal | features/step_definitions/project_step.rb | 348 | Given /^I am in the "(.*?)" directory$/ do |dir|
@dir = dir
@project = RemoteTerminal::Project.find(@dir)
end
When /^I get the path from my location$/ do
@path = @project.path_from(@dir)
end
Then /^I should see "(.*?)"$/ do |path|
@path.should be == path
end
When /^I get the path to my location$/ do
@path ... | mit |
evansenter/f_heap | test/f_heap_test.rb | 4332 | require "test_helper"
class FHeapTest < ActiveSupport::TestCase
def setup
@heap = FHeap.new
end
def setup_sample_heap
@node_1 = @heap.insert!(1)
@node_2 = @heap.insert!(2)
@node_6 = @heap.insert!(6)
@node_5 = @node_2.add_child!(5)
@node_3 = @node_1.add_child!(3)
@node_4 =... | mit |
Supertext/SuperScript.Common | ExtensionMethods/ConfigurationExtensions.cs | 16291 | using SuperScript.Configuration;
using SuperScript.Emitters;
using SuperScript.Modifiers;
using SuperScript.Modifiers.Converters;
using SuperScript.Modifiers.Post;
using SuperScript.Modifiers.Pre;
using SuperScript.Modifiers.Writers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;... | mit |
cofoundry-cms/cofoundry | src/Cofoundry.Web.Admin/Admin/Modules/CustomEntities/Constants/CustomEntitiesRouteLibrary.cs | 1605 | using Cofoundry.Core;
using Cofoundry.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Cofoundry.Web.Admin
{
public class CustomEntitiesRouteLibrary : AngularModuleRouteLibrary
{
public const string RoutePrefix = "custom-entities";
private readonly AdminSett... | mit |
lighting-perspectives/jams | server/test/integration/instrument-mappings.test.js | 5577 | /* eslint-disable no-undef,no-unused-expressions */
const request = require('supertest')
const expect = require('chai').expect
const app = require('../../bin/www')
const fixtures = require('../data/fixtures')
describe('/api/mappings', () => {
beforeEach(() => {
this.Sample = require('../../models').Sample
t... | mit |
rsuarezdeveloper/smath | web/js/plugin/ckeditor/plugins/a11yhelp/dialogs/lang/es.js | 3434 | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de her... | mit |
mattmassicotte/three | compiler/AST/Operators/Callable/FunctionCallOperatorNode.cpp | 895 | #include "FunctionCallOperatorNode.h"
#include "compiler/Parser/Parser.h"
#include "compiler/AST/Variables/VariableNode.h"
#include <assert.h>
namespace Three {
FunctionCallOperatorNode* FunctionCallOperatorNode::parse(Parser& parser, ASTNode* receiver, ASTNode* firstArg) {
assert(parser.helper()->peek().... | mit |
0lidaxiang/0lidaxiang.github.io | _posts/others/2016-12-11-some-points-for-internetWork.md | 4691 | ---
layout: post
title: "对个人要不要进入互联网行业的一些看法"
categories:
- others
tags:
- others
---
> StartTime: 2016-12-11,ModifyTime:2017-04-02
一个典型的热情进入互联网创业公司,失望退出的例子。 在南京两年半,因为所学专业原因以及其他,多多少少接触过不少创业公司和有些经历。大早上某帅气的单身狗学长发我[一篇文章](http://mp.weixin.qq.com/s?__biz=MzA4MTkxMzU3NQ==&mid=2651008248&idx=1&sn=4a9d81aab9c99affdb38dfaceb... | mit |
grow/buildbot | app/templates/index.html | 1380 | {% extends 'base.html' %}
{% block title %}Grow Buildbot{% endblock %}
{% block body %}
<h2>Recent builds</h2>
<ul>
{% for build in builds %}
<li>
<a href="{{ url_for('build', build_id=build.id)}}">build {{ build.id }}</a>:
<strong class="status-{{ build.status }}">{{ build.status }}</st... | mit |
cdnjs/cdnjs | ajax/libs/highcharts/9.0.1/es-modules/masters/modules/dependency-wheel.src.js | 349 | /**
* @license Highcharts JS v9.0.1 (2021-02-16)
* @module highcharts/modules/dependency-wheel
* @requires highcharts
* @requires highcharts/modules/sankey
*
* Dependency wheel module
*
* (c) 2010-2021 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Series/DependencyWhee... | mit |
cdnjs/cdnjs | ajax/libs/oojs-ui/0.40.3/oojs-ui-windows.js | 117418 | /*!
* OOUI v0.40.3
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2020 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2020-09-02T15:42:49Z
*/
( function ( OO ) {
'use strict';
/**
* An ActionWidget is a {@link OO.ui.ButtonWidget button wi... | mit |
binaryk/pedia | app/~Libs/~system/reports/Datareport.php | 2191 | <?php
namespace Report;
use Illuminate\Support\Collection;
class Datareport
{
protected static $instance = NULL;
protected $id = NULL;
protected $caption = NULL;
protected $icon = NULL;
// protected $rowSourceUrl = NULL; // server side row source url
// protected $columns ... | mit |
latin-language-toolkit/llt-db_handler-stub | spec/spec_helper.rb | 502 | require 'simplecov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec/'
end
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'llt/db_handl... | mit |
ed-fruty/test | app/Support/Http/Routing/Router.php | 1695 | <?php
namespace App\Support\Http\Routing;
use App\Support\Facades\Request;
use App\Support\Traits\ClassNameTrait;
/**
* Class Router
* @package App\Support\Routing
* @author Fruty <ed.fruty@gmail.com>
*/
class Router
{
use ClassNameTrait;
/**
* Registered routes
*
* @access protected
... | mit |
fin-alice/Mystique | Inscribe/Storage/TweetStorage.cs | 21267 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Dulcet.Twitter;
using Inscribe.Common;
using Inscribe.Configuration;
using Inscribe.Util;
using Inscribe.Subsystems;
using Inscribe.ViewModels.PartBlocks.MainBlock.TimelineChild;
using Livet;
... | mit |
LAzzam2/tradeTracker-client | app/common-components/directives/a-dashboard/a-dashboard_controller.js | 2143 | 'use strict';
/* global angular */
(function() {
var aDashboard = angular.module('aDashboard');
aDashboard.controller('ADashboardController', function( $scope, $rootScope, tradelistFactory, $timeout) {
$scope.subState = $scope.$parent;
$scope.accountValue;
$scope.avgWin;
$scope.avgLoss;
$scope.avgTradeS... | mit |
CedarLogic/Dash | DashServer/Controllers/CommonController.cs | 3092 | // Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web;
using System.Web.Http;
using Microsoft.Dash.Server.Diagnostics;
using Microsoft.Dash.Server.Handlers;
using Microsoft.Dash.Server.Utils;
... | mit |
haokong0703/haokong0703.github.io | timemachine.md | 542 | ---
layout: page
title: "时光机"
description: "文章归档"
header-img: "img/orange.jpg"
---
<ul class="listing">
{% for post in site.posts %}
{% capture y %}{{post.date | date:"%Y"}}{% endcapture %}
{% if year != y %}
{% assign year = y %}
<li class="listing-seperator">{{ y }}</li>
{% endif %}
<li class="listi... | mit |
karnov/htmltoword | spec/fixtures/description_lists/test02.html | 330 | <!doctype html>
<html>
<head></head>
<body>
<!-- Multiple terms, single description -->
<dl>
<dt>Firefox</dt>
<dt>Mozilla Firefox</dt>
<dt>Fx</dt>
<dd>
A free, open source, cross-platform,
graphical web browser developed by the
Mozilla Corporation and hundreds of
volunteers.
</dd>
</dl>
</body... | mit |
compute-io/power | lib/deepset.js | 1889 | 'use strict';
// MODULES //
var isArrayLike = require( 'validate.io-array-like' ),
isTypedArrayLike = require( 'validate.io-typed-array-like' ),
deepSet = require( 'utils-deep-set' ).factory,
deepGet = require( 'utils-deep-get' ).factory;
// FUNCTIONS
var POW = require( './number.js' );
// POWER //
/**
* FUN... | mit |
dasilva93/RDDT | src/repositorio/estudianteBundle/Entity/Sede.php | 1180 | <?php
namespace repositorio\estudianteBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Sede
*
* @ORM\Table(name="sede")
* @ORM\Entity
*/
class Sede
{
/**
* @var string
*
* @ORM\Column(name="codigo_sede", type="string", length=5, nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(s... | mit |
stoyanelenkov/012_GitHub | application/config/config.php | 18184 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | mit |
jmcomets/tropical-escape | lib/lwjgl/javadoc/org/lwjgl/opengles/OESCompressedPalettedTexture.html | 17606 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:08 CET 2012 -->
<TITLE>
OESCompressedPalettedTexture (LWJGL API)
</TITLE>
<META NAME="date" CONTENT="2012-11-04">
... | mit |
vundyalaavinash/Algorithms | BasicSorting/SelectionSort.java | 2176 | /**
* Created by avinashvundyala on 09/07/16.
*/
public class SelectionSort {
public int[] iterativeSelectionSort(int[] arr) {
int temp, smallIdx;
for(int i = 0; i < arr.length; i++) {
smallIdx = i;
for(int j = i; j < arr.length; j++) {
if(arr[smallIdx] > arr[j]) {
smallIdx = ... | mit |
Financial-Times/keen-query | lib/post-processing/sort.js | 3082 | 'use strict';
function getReferenceMatrix (matrix, direction) {
return matrix.unflatten().rows.sort((r1, r2) => {
return (r1[1] > r2[1] ? 1 : r1[1] < r2[1] ? -1 : 0) * (direction === 'desc' ? -1 : 1);
});
}
function simpleSort (matrix, direction) {
const referenceMatrix = getReferenceMatrix(matrix, direction);
... | mit |
nwinter/bantling | src/application/__init__.py | 1104 | """
Initialize Flask app
"""
from flask import Flask
import os
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.debug import DebuggedApplication
app = Flask('application')
if os.getenv('FLASK_CONF') == 'DEV':
# Development settings
app.config.from_object('application.settings.Development')
... | mit |
Domiii/UnityLoopyLoops | Assets/Scripts/mXparser/parsertokens/Function2Arg.cs | 7388 | /*
* @(#)Function2Arg.cs 3.0.0 2016-05-07
*
* You may use this software under the condition of "Simplified BSD License"
*
* Copyright 2010-2016 MARIUSZ GROMADA. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the f... | mit |
digitalmedia34/MicroOrm.Dapper.Repositories | src/MicroOrm.Dapper.Repositories/DapperRepository.BulkUpdate.cs | 1489 | using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Dapper;
using MicroOrm.Dapper.Repositories.Extensions;
namespace MicroOrm.Dapper.Repositories
{
/// <summary>
/// Base Repository
/// </summary>
public partial class DapperRepository<TEntity>
where TEnt... | mit |
xamarin/WebSharp | docs/bindings/README.md | 132 | # Bindings Guide
| Folder | Description |
| --- | --- |
| [electron](./electron) | Status of bindings specific to the Electron |
| mit |
slimgroup/JOLI.jl | src/joLinearOperatorConstructors/joCoreBlockConstructors/joDict.jl | 5546 | ############################################################
# joDict ##############################################
############################################################
export joDict, joDictException
struct joDictException <: Exception
msg :: String
end
##################################################... | mit |
geut/gulp-appfy-tasks | src/tasks/watch-files.js | 1211 | import watch from 'gulp-watch';
import browserSync from 'browser-sync';
import path from 'path';
/**
* Gulp task to watch files
* @return {function} Function task
*/
export default function watchFilesTask() {
const config = this.config;
const runSequence = require('run-sequence').use(this.gulp);
r... | mit |
Jesus/dropbox_api | doc/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html | 3058 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>class DropboxApi::Endpoints::Sharing::RevokeSharedLink - RDoc Documentation</title>
<script type="text/javascript">
var rdoc_rel_prefix = "../../../";
var index_rel_prefix = "../../../";
</script>
<script src="../../../js/jquery.js"></script>
<script s... | mit |
Montana-Studio/PI_Landing | node_modules/caniuse-lite/data/features/template.js | 840 | module.exports={A:{A:{"2":"K C G E B A WB"},B:{"2":"D","388":"u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","2":"UB z F J K C G E B A D u Y I M H N O P Q SB RB"},D:{"1":"0 1 2 3 4 5 6 7 e f L h i j k l m n o p q r s t y v GB g DB VB EB","2":"F J K C G E B A D u Y I M... | mit |
remi-san/mini-game-message-app | src/Parser/ParsingPlayer.php | 287 | <?php
namespace MiniGameMessageApp\Parser;
use MiniGame\Entity\MiniGameId;
use MiniGame\Entity\PlayerId;
interface ParsingPlayer
{
/**
* @return PlayerId
*/
public function getPlayerId();
/**
* @return MiniGameId
*/
public function getGameId();
}
| mit |
adafruit/micropython | ports/nrf/common-hal/microcontroller/Pin.c | 6219 | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Scott Shawcroft for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | mit |
dennisj001/openvmtil64 | src/primitives/strings.c | 1290 |
#include "../include/csl.h"
void
MultipleEscape ( )
{
_MultipleEscape ( _Context_->Lexer0 ) ;
}
void
CSL_Strlen ( )
{
DataStack_Push ( (int64) Strlen ( (char*) DataStack_Pop ( ) ) ) ;
}
void
CSL_Strcmp ( )
{
DataStack_Push ( (int64) Strcmp ( (byte*) DataStack_Pop ( ), (byte*) DataStack_Pop ( ) ) ) ;
}
... | mit |
not-fl3/bulletrs | bulletrs-sys/build_windows.rs | 20663 | use cc;
pub fn build_windows() {
cc::Build::new()
.include("bullet3/src")
.define("BT_USE_DOUBLE_PRECISION", None)
.define("LinearMath_EXPORTS", None)
.define("NDEBUG", None)
.opt_level(3) // ignoring OPT_LEVEL from the crate
.cpp(true)
.flag("-fkeep-inline-f... | mit |
eessex/positron | src/client/components/draft/paragraph/paragraph.tsx | 8791 | import { Editor, EditorState, RichUtils } from "draft-js"
import { debounce } from "lodash"
import React, { Component } from "react"
import ReactDOM from "react-dom"
import styled from "styled-components"
import { TextInputUrl } from "../components/text_input_url"
import { TextNav } from "../components/text_nav"
import... | mit |
prabhucomo/symfonytask | src/Demo/TaskBundle/Tests/Controller/CustomerControllerTest.php | 1959 | <?php
namespace Demo\TaskBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class CustomerControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
... | mit |
puyt/zazu-utime | src/utime.js | 2252 | // load package date-util
require('../libs/sugar-date')
module.exports = (pluginContext) => {
return {
respondsTo: (query) => {
return true
},
search: (query = '', env = {}) => {
// check if timestamp given
let isTimestamp = !isNaN(parseFloat(query)) && i... | mit |
isbadawi/badavi | window.h | 2799 | #pragma once
#include <stddef.h>
#include <sys/queue.h>
#include "options.h"
#include "util.h"
struct window {
struct window *parent;
enum window_split_type {
WINDOW_LEAF,
WINDOW_SPLIT_VERTICAL,
WINDOW_SPLIT_HORIZONTAL
} split_type;
// The size of the window. Only valid for the root window.
s... | mit |
yvestan/sendui | app/lib/jelix/utils/jFilter.class.php | 9383 | <?php
/**
* @package jelix
* @subpackage utils
* @author Laurent Jouanneau
* @contributor Julien Issler
* @copyright 2006-2009 Laurent Jouanneau
* @copyright 2008 Julien Issler
* @link http://www.jelix.org
* @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see L... | mit |
Derneuca/KitchenPCTeamwork | KitchenPC/DB/Models/RecipeRatingsMap.cs | 638 | namespace KitchenPC.DB.Models
{
using System;
using FluentNHibernate.Mapping;
public class RecipeRatingsMap : ClassMap<RecipeRatings>
{
public RecipeRatingsMap()
{
this.Id(x => x.RatingId)
.GeneratedBy.GuidComb()
.UnsavedValue(Gui... | mit |
ushahidi/koauth | classes/Koauth/Controller/OAuth.php | 2457 | <?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* OAuth2 Controller
*
* @author Ushahidi Team <team@ushahidi.com>
* @package Ushahidi\Koauth
* @copyright Ushahidi - http://www.ushahidi.com
* @license MIT License http://opensource.org/licenses/MIT
*/
abstract class Koauth_Controller_... | mit |
bennybauer/pinax-hello | runtests.py | 1274 | #!/usr/bin/env python
import os
import sys
import django
from django.conf import settings
DEFAULT_SETTINGS = dict(
INSTALLED_APPS=[
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
"pinax.pinax_hello",
"pinax.pinax_hello.tests"
],
MIDD... | mit |
brunyuriy/adasim | src/adasim/algorithm/routing/QLearningRoutingAlgorithm.java | 9693 | package adasim.algorithm.routing;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import java.util.Stack;
import org.apa... | mit |
ke00n/alabno | infrastructure/infrastructure/src/main/java/jobmanager/tests/MicroServiceInfoTest.java | 657 | package jobmanager.tests;
import static alabno.testsuite.TestUtils.*;
import alabno.testsuite.TestModule;
import alabno.testsuite.TestStatistics;
import jobmanager.MicroServiceInfo;
public class MicroServiceInfoTest implements TestModule {
@Override
public void run(TestStatistics statistics) {
constructor_test(... | mit |
majodev/google-webfonts-helper | client/app/cssCode/cssCode.directive.spec.js | 573 | 'use strict';
describe('Directive: cssCode', function () {
// load the directive's module and view
beforeEach(module('googleWebfontsHelperApp'));
beforeEach(module('app/cssCode/cssCode.html'));
var element, scope;
beforeEach(inject(function ($rootScope) {
scope = $rootScope.$new();
}));
it('shoul... | mit |
TheBushyBrow/johnnyedick | stats/usage_201205.html | 181683 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Generated by The Webalizer Ver. 2.01-10 -->
<!-- -->
<!-- Copyright 1997-2000 Bradford L. Barrett -->
<!-- (brad@mrunix.net http://www.mrunix.net) -->
<!-- -->
<!-- D... | mit |
Peetz0r/micropython-esp32 | extmod/vfs_fat.c | 12566 | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2014 Damien P. George
* Copyright (c) 2016 Paul Sokolovsky
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... | mit |
hahoyer/HWsqlass.cs | src/Taabus/PersistentConfiguration.cs | 2208 | using System;
using System.Collections.Generic;
using System.Linq;
using hw.DebugFormatter;
using hw.Helper;
using Taabus.External;
namespace Taabus
{
sealed class PersistentConfiguration : PersistenceController<Configuration>
{
PersistentConfiguration(string fileName, Configuration configuration)
... | mit |
spanishprisoner/GetAllLinks | src/GetAllLinks.Droid/Views/SettingsFragment.cs | 580 | using Android.OS;
using GetAllLinks.Core.ViewModels;
using MvvmCross.Droid.Shared.Attributes;
using Android.Views;
namespace GetAllLinks.Droid.Views
{
[MvxFragment(typeof(MainActivityViewModel), Resource.Layout.settingsView, ViewModelType = typeof(SettingsViewModel), IsCacheableFragment = false)]
public class Settin... | mit |
yateric/cacheable | tests/Stubs/DecoratedObject.php | 544 | <?php
/**
* This file is part of Cacheable.
*
* (c) Eric Chow <yateric@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yateric\Tests\Stubs;
use Yateric\Cacheable\Cacheable;
class DecoratedObject
{
use C... | mit |
PyConChina/PyConChina2017 | src/index.html | 3185 | {% extends "base/_base.html" %} {% import 'base/_speaker_macro.html' as speaker_macro %} {% set page_title = message.page_title_index
%} {% block content %}
<div class="ui vertical stripe segment pycon-odd-seg">
<div class="ui middle aligned stackable grid container">
<div class="row">
<div class="eight wi... | mit |
NitescuLucian/NitescuLucian.github.io | 2018/07/16/exploit-exercises-nebula-level-10/index.html | 29652 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.2/cookieconsent.min.css" /... | mit |
shannonmpoole/fh-fhc | test/unit/legacy/test_user_keys.js | 2115 | var assert = require('assert');
var keys = require("cmd/common/keys/user.js");
var userKeysNock = require('test/fixtures/user/fixture_user_keys');
module.exports = {
setUp : function(cb){
return cb();
},
'list keys' : function(cb){
keys({ _ : ['list'] }, function(err, list){
assert.equal(err, nul... | mit |
lighting-perspectives/jams | server/middlewares/sample/index.js | 168 | module.exports = {
audioFilter: require('./audioFilter'),
destination: require('./destination'),
filename: require('./filename'),
multer: require('./multer')
}
| mit |
SEPR-York/SEPR-York.github.io | olddoc/me/gandhiinc/blindeye/Resource.html | 13003 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_102) on Mon Jan 23 16:37:41 GMT 2017 -->
<title>Resource</title>
<meta name="date" content="2017-01-23">
<link rel="stylesheet" type="text/css"... | mit |
augustomarinho/springboot-docker | src/main/java/com/am/docker/study/controller/RestDockerExample.java | 299 | package com.am.docker.study.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RestDockerExample {
@RequestMapping("/")
public String home() {
return "Hello Docker World";
}
} | mit |
elBukkit/MagicPlugin | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/event/PreCastEvent.java | 1149 | package com.elmakers.mine.bukkit.api.event;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.spell.Spell;
/**
* A custom event that the Magic plugin will fire any time a
* Mag... | mit |
brunokoga/pathfinder-markdown | prd_markdown/advanced/spells/brilliantInspiration.md | 701 | **Brilliant Inspiration**
**School** evocation [language-dependent]; **Level** bard 6
**Casting Time** 1 standard action
**Components** V
**Range** close (25 ft. + 5 ft./2 levels)
**Target** one living creature
**Duration** 1 round/level and special (see below)
**Saving Throw** Will negates (harmless); **Spell ... | mit |
remi/mooget | old/spec/SearchSpec.cs | 1934 | using System;
using MooGet;
using NUnit.Framework;
namespace MooGet.Specs {
[TestFixture]
public class SearchSpec : MooGetSpec {
/*
[TestFixture]
public class API : SearchSpec {
[Test][Ignore]
public void can_search_for_packages_with_an_exact_id() {
}
[Test][Ignore]
public void can_search_fo... | mit |
homoluden/fukami | demos/FukamiDemo/Interfaces/IHaveConnectionSlots.cs | 311 | using Physics2DDotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Interfaces
{
public interface IHaveConnectionSlots
{
IEnumerable<IConnectionSlot> Slots { get; }
ALVector2D Position { get; }
}
}
| mit |
harveyc95/ProgrammingProblems | CTCI/Ch1/is_unique.cpp | 399 | #include <iostream>
#include <string>
// time complexity O(1) - constant
// space complexity O(1) - constant
bool is_unique (std::string s) {
if (s.length() > 128) return false;
bool char_list[128] = {0};
for (int i = 0; i < s.length(); i++) {
if (char_list[s[i]]) return false;
char_list[s[i]] = true;
}
re... | mit |
baldwindavid/pretty_short_urls | lib/pretty_short_urls_routes.rb | 208 | module PrettyShortUrls
module Routes
def pretty_short_urls
connect ":name", :controller => "pretty_short_urls_redirect", :action => "redirect", :conditions => { :method => :get }
end
end
end | mit |
naosim/rtmjava | src/main/java/com/naosim/rtm/lib/MD5.java | 538 | package com.naosim.rtm.lib;
import java.math.BigInteger;
import java.security.MessageDigest;
public class MD5 {
public static String md5(String str) {
try {
byte[] str_bytes = str.getBytes("UTF-8");
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] md5_bytes =... | mit |
philippneugebauer/go-code | rock_paper_scissors.go | 1463 | // The MIT License (MIT)
// Copyright (c) 2014 Philipp Neugebauer
package main
import (
"bufio"
"fmt"
"os"
"math/rand"
"strconv"
)
func computer(inputChannel chan int, resultChannel chan string){
for human_choice := range inputChannel {
computer_choice := rand.Intn(3)
evaluation(comp... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_w32_execv_34.c | 6320 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_connect_socket_w32_execv_34.c
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-34.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: connect_socket Read data usin... | mit |
tuzzer/ai-gym | atari_breakout/atari_breakout_dqn_cntk.py | 11222 | import random
import numpy as np
import math
from time import perf_counter
import os
import sys
from collections import deque
import gym
import cntk
from cntk.layers import Convolution, MaxPooling, Dense
from cntk.models import Sequential, LayerStack
from cntk.initializer import glorot_normal
env = gym.make("Break... | mit |
pblack/kaldi-hugo-cms-template | site/content/pages2/acl25.md | 339 | ---
title: acl25
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: l25
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | mit |
TechReborn/RebornCore | src/main/java/reborncore/client/gui/slots/SlotFake.java | 2200 | /*
* This file is part of TechReborn, licensed under the MIT License (MIT).
*
* Copyright (c) 2020 TechReborn
*
* 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, inc... | mit |
Pomona/Pomona | app/Pomona/Routing/DefaultQueryProviderCapabilityResolver.cs | 450 | #region License
// Pomona is open source software released under the terms of the LICENSE specified in the
// project's repository, or alternatively at http://pomona.io/
#endregion
using System.Reflection;
namespace Pomona.Routing
{
public class DefaultQueryProviderCapabilityResolver : IQueryProviderCapabilityR... | mit |
anonymousdevx/anonymouscoin | src/qt/test/uritests.cpp | 2908 | #include "uritests.h"
#include "../guiutil.h"
#include "../walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCoinsRecipient rv;
QUrl uri;
uri.setUrl(QString("AnonymousCoin:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist="));
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
uri.setUrl(Q... | mit |
RockyLim92/RockyLim92.github.io | _posts/development/2017-9-20-devEnvTip.md | 7842 | ---
layout: article
title: "커멘드라인 개발환경 팁"
date: 2017-9-20 10:00:00 Z
author: Rocky Lim
categories: development
excerpt: "Tips for vim, tmux, ctags, cscope, etc."
image:
feature:
teaser: devEnvTip_01.png
path: images/devEnvTip_01.png
comments: true
locale: "vn"
share: true
ads: true
---
<p style="text-align: ... | mit |
kitboy/docker-shop | html/ecmall/upload/includes/payments/tenpay/tenpay.payment.php | 8267 | <?php
/**
* 财付通支付方式插件
*
* @author Garbin
* @usage none
*/
class TenpayPayment extends BasePayment
{
/* 财付通网关 */
var $_gateway = 'https://www.tenpay.com/cgi-bin/med/show_opentrans.cgi';
var $_code = 'tenpay';
/**
* 获取支付表单
*
* @author Garbin
*... | mit |
Stefangansevles/RemindMe | Database.Entity/ButtonSpaces.cs | 979 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//... | mit |
markknol/EaselTS | src/createts/event/Signal1.ts | 1773 | import Event = require('./Event');
/*
* Signal1
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify... | mit |
xephonhq/xephon-k | _legacy/pkg/storage/cassandra/stmt.go | 583 | package cassandra
// read statements
var selectIntStmt = `
SELECT metric_timestamp, value FROM metrics_int WHERE metric_name = ? AND tags = ?
`
var selectIntByStartEndTimeStmt = `
SELECT metric_timestamp, value FROM metrics_int WHERE metric_name = ? AND tags = ? AND metric_timestamp >= ? AND metric_timestamp <= ?... | mit |
rogierslag/mjml | packages/mjml-spacer/README.md | 692 | ## mjml-spacer
Displays a blank space.
```xml
<mjml>
<mj-body>
<mj-container>
<mj-section>
<mj-column>
<mj-spacer height="50px" />
<mj-column>
</mj-section>
</mj-container>
</mj-body>
</mjml>
```
<p align="center">
<a href="https://mjml.io/try-it-live/components/so... | mit |
mjalil/AutoMapper | src/UnitTests/ReverseMapping.cs | 17050 | using Xunit;
using Shouldly;
using System.Linq;
using System;
using System.Text.RegularExpressions;
namespace AutoMapper.UnitTests
{
public class MapFromReverseResolveUsing : AutoMapperSpecBase
{
public class Source
{
public int Total { get; set; }
}
public class De... | mit |
jmcomets/tropical-escape | lib/lwjgl/javadoc/org/lwjgl/opencl/class-use/CL10GL.html | 5956 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_14) on Sun Nov 04 20:19:10 CET 2012 -->
<TITLE>
Uses of Class org.lwjgl.opencl.CL10GL (LWJGL API)
</TITLE>
<META NAME="date" CONTENT="2012-... | mit |
akashic-games/akashic-cli-export-html | src/app/cli.ts | 3890 | import * as fs from "fs";
import * as path from "path";
import * as commander from "commander";
import { ConsoleLogger } from "@akashic/akashic-cli-commons";
import { promiseExportHTML } from "./exportHTML";
import { promiseExportAtsumaru } from "./exportAtsumaru";
interface CommandParameterObject {
cwd?: string;
so... | mit |
oct16/Blog-FE | src/actions/user.js | 230 | import * as types from 'constants/ActionTypes'
import jsCookie from 'js-cookie'
import history from 'history'
export const setUser = (user) => (dispatch) => {
dispatch({
type: types.SET_USER,
payload: { ...user }
})
}
| mit |
ohmygodvt95/wevivu | vendor/assets/components/angular-material/modules/js/bottomSheet/bottomSheet.js | 10698 | /*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-f6dedff
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.bottomSheet
* @description
* BottomSheet
*/
MdBottomSheetDirective['$inject'] = ["$mdBottomSheet... | mit |
sunrin92/LearnPython | 1-lpthw/ex32.py | 812 | the_count = [1, 2, 3, 4, 5]
fruits = ['apple', 'oranges', 'pears', 'apricots',]
change = [1, 'pennies', 2, 'dimes', 3, 'quarters',]
#this first kind of for-loop goes through a list
for number in the_count:
print("This is count %d" % number)
# same as above
for fruit in fruits:
print("A fruit of type: %s" % fr... | mit |
bduran82/html_scraper | test/scraper_test.rb | 4228 | # frozen_string_literal: true
require 'test_helper'
class ScraperTest < Minitest::Test
def test_parse
template = '
<html>
<body>
<div id="people-list">
<div class="person" hs-repeat="people">
<a href="{{ link }}">{{ surname }}</a>
<p>{{ name }}</p>
... | mit |
siderisltd/Telerik-Academy | All Courses Homeworks/C#_Part_2/6. StringsAndText/ParseURL/Program.cs | 1607 | //Problem 12. Parse URL
//Write a program that parses an URL address given in the format:
//[protocol]://[server]/[resource] and extracts from it the [protocol], [server] and [resource] elements.
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace ParseURL
{
class... | mit |
kitboy/docker-shop | html/ecshop3/ecshop/languages/zh_tw/admin/payment.php | 2156 | <?php
/**
* ECSHOP 管理中心支付方式管理語言文件
* ============================================================================
* 版權所有 2005-2011 上海商派網絡科技有限公司,並保留所有權利。
* 網站地址: http://www.ecshop.com;
* ----------------------------------------------------------------------------
* 這不是一個自由軟件!您只能在不用於商業目的的前提下對程序代碼進行修改和
* 使用;不允許對程序代... | mit |
pblack/kaldi-hugo-cms-template | site/content/pages2/acz45.md | 339 | ---
title: acz45
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: z45
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | mit |