code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
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... | vishva8kumara/rain-catcher | server/sky.js | JavaScript | mit | 4,212 |
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
| ehartmann/electric_sheep | lib/electric_sheep/config.rb | Ruby | mit | 224 |
import SuccessPage from '../index';
import expect from 'expect';
import { shallow } from 'enzyme';
import React from 'react';
describe('<SuccessPage />', () => {
});
| Luandro-com/repsparta-web-app | app/components/SuccessPage/tests/index.test.js | JavaScript | mit | 169 |
/**
* 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: {
... | Quilt4/Quilt4.Web | src/Quilt4.Web/wwwroot/systemjs.config.js | JavaScript | mit | 2,468 |
# SSISCookbook
SSIS cookbook for the hurried developer
Check out [the book](./main.pdf)
| billinkc/SSISCookbook | README.md | Markdown | mit | 89 |
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... | w8s/alleghenypilgrims | pilgrims/core/static/css/pilgrims.css | CSS | mit | 447 |
<?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 ... | LiamMartens/xTend | dist/Application/Core/LogHandler.php | PHP | mit | 1,177 |
/**
* 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... | h2020-westlife-eu/west-life-wp6 | wp6-virtualfolder/www/src/virtualfoldermodules/modulecontrol.js | JavaScript | mit | 1,402 |
namespace CSReader.Command
{
/// <summary>
/// ヘルプを表示するコマンド
/// </summary>
public class HelpCommand : ICommand
{
public const string COMMAND_NAME = "help";
/// <summary>
/// コマンドを実行する
/// </summary>
/// <returns>ヘルプ文字列</returns>
public s... | yobiya/CSReader | CSReader/CSReader/Command/HelpCommand.cs | C# | mit | 494 |
//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... | universalappfactory/Sharpend.UAP | Sharpend.UAP/Controls/Buttons/IconButton.cs | C# | mit | 4,533 |
.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... | idutta2007/yiigems | widgets/common/assets/shadows/aqua/aquaIvory/aquaIvory6.css | CSS | mit | 2,925 |
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 ... | igorbonadio/remote-terminal | features/step_definitions/project_step.rb | Ruby | mit | 348 |
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 =... | evansenter/f_heap | test/f_heap_test.rb | Ruby | mit | 4,332 |
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;... | Supertext/SuperScript.Common | ExtensionMethods/ConfigurationExtensions.cs | C# | mit | 16,291 |
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... | cofoundry-cms/cofoundry | src/Cofoundry.Web.Admin/Admin/Modules/CustomEntities/Constants/CustomEntitiesRouteLibrary.cs | C# | mit | 1,605 |
/* 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... | lighting-perspectives/jams | server/test/integration/instrument-mappings.test.js | JavaScript | mit | 5,577 |
/*
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... | rsuarezdeveloper/smath | web/js/plugin/ckeditor/plugins/a11yhelp/dialogs/lang/es.js | JavaScript | mit | 3,434 |
#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().... | mattmassicotte/three | compiler/AST/Operators/Callable/FunctionCallOperatorNode.cpp | C++ | mit | 895 |
---
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... | 0lidaxiang/0lidaxiang.github.io | _posts/others/2016-12-11-some-points-for-internetWork.md | Markdown | mit | 4,691 |
{% 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... | grow/buildbot | app/templates/index.html | HTML | mit | 1,380 |
/**
* @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... | cdnjs/cdnjs | ajax/libs/highcharts/9.0.1/es-modules/masters/modules/dependency-wheel.src.js | JavaScript | mit | 349 |
/*!
* 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... | cdnjs/cdnjs | ajax/libs/oojs-ui/0.40.3/oojs-ui-windows.js | JavaScript | mit | 117,418 |
<?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 ... | binaryk/pedia | app/~Libs/~system/reports/Datareport.php | PHP | mit | 2,191 |
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... | latin-language-toolkit/llt-db_handler-stub | spec/spec_helper.rb | Ruby | mit | 502 |
<?php
namespace App\Support\Http\Routing;
use App\Support\Facades\Request;
use App\Support\Traits\ClassNameTrait;
/**
* Class Router
* @package App\Support\Routing
* @author Fruty <[email protected]>
*/
class Router
{
use ClassNameTrait;
/**
* Registered routes
*
* @access protected
... | ed-fruty/test | app/Support/Http/Routing/Router.php | PHP | mit | 1,695 |
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;
... | fin-alice/Mystique | Inscribe/Storage/TweetStorage.cs | C# | mit | 21,267 |
'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... | LAzzam2/tradeTracker-client | app/common-components/directives/a-dashboard/a-dashboard_controller.js | JavaScript | mit | 2,143 |
// 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;
... | CedarLogic/Dash | DashServer/Controllers/CommonController.cs | C# | mit | 3,092 |
---
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... | haokong0703/haokong0703.github.io | timemachine.md | Markdown | mit | 542 |
<!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... | karnov/htmltoword | spec/fixtures/description_lists/test02.html | HTML | mit | 330 |
'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... | compute-io/power | lib/deepset.js | JavaScript | mit | 1,889 |
<?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... | dasilva93/RDDT | src/repositorio/estudianteBundle/Entity/Sede.php | PHP | mit | 1,180 |
<?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... | stoyanelenkov/012_GitHub | application/config/config.php | PHP | mit | 18,184 |
<!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">
... | jmcomets/tropical-escape | lib/lwjgl/javadoc/org/lwjgl/opengles/OESCompressedPalettedTexture.html | HTML | mit | 17,606 |
/**
* 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 = ... | vundyalaavinash/Algorithms | BasicSorting/SelectionSort.java | Java | mit | 2,176 |
'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);
... | Financial-Times/keen-query | lib/post-processing/sort.js | JavaScript | mit | 3,082 |
"""
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')
... | nwinter/bantling | src/application/__init__.py | Python | mit | 1,104 |
/*
* @(#)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... | Domiii/UnityLoopyLoops | Assets/Scripts/mXparser/parsertokens/Function2Arg.cs | C# | mit | 7,388 |
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... | digitalmedia34/MicroOrm.Dapper.Repositories | src/MicroOrm.Dapper.Repositories/DapperRepository.BulkUpdate.cs | C# | mit | 1,489 |
# Bindings Guide
| Folder | Description |
| --- | --- |
| [electron](./electron) | Status of bindings specific to the Electron |
| xamarin/WebSharp | docs/bindings/README.md | Markdown | mit | 132 |
############################################################
# joDict ##############################################
############################################################
export joDict, joDictException
struct joDictException <: Exception
msg :: String
end
##################################################... | slimgroup/JOLI.jl | src/joLinearOperatorConstructors/joCoreBlockConstructors/joDict.jl | Julia | mit | 5,546 |
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... | geut/gulp-appfy-tasks | src/tasks/watch-files.js | JavaScript | mit | 1,211 |
<!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... | Jesus/dropbox_api | doc/DropboxApi/Endpoints/Sharing/RevokeSharedLink.html | HTML | mit | 3,058 |
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... | Montana-Studio/PI_Landing | node_modules/caniuse-lite/data/features/template.js | JavaScript | mit | 840 |
<?php
namespace MiniGameMessageApp\Parser;
use MiniGame\Entity\MiniGameId;
use MiniGame\Entity\PlayerId;
interface ParsingPlayer
{
/**
* @return PlayerId
*/
public function getPlayerId();
/**
* @return MiniGameId
*/
public function getGameId();
}
| remi-san/mini-game-message-app | src/Parser/ParsingPlayer.php | PHP | mit | 287 |
/*
* 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... | adafruit/micropython | ports/nrf/common-hal/microcontroller/Pin.c | C | mit | 6,219 |
#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 ( ) ) ) ;
}
... | dennisj001/openvmtil64 | src/primitives/strings.c | C | mit | 1,290 |
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... | not-fl3/bulletrs | bulletrs-sys/build_windows.rs | Rust | mit | 20,663 |
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... | eessex/positron | src/client/components/draft/paragraph/paragraph.tsx | TypeScript | mit | 8,791 |
<?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();
... | prabhucomo/symfonytask | src/Demo/TaskBundle/Tests/Controller/CustomerControllerTest.php | PHP | mit | 1,959 |
// 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... | puyt/zazu-utime | src/utime.js | JavaScript | mit | 2,252 |
#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... | isbadawi/badavi | window.h | C | mit | 2,799 |
<?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... | yvestan/sendui | app/lib/jelix/utils/jFilter.class.php | PHP | mit | 9,383 |
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... | Derneuca/KitchenPCTeamwork | KitchenPC/DB/Models/RecipeRatingsMap.cs | C# | mit | 638 |
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* OAuth2 Controller
*
* @author Ushahidi Team <[email protected]>
* @package Ushahidi\Koauth
* @copyright Ushahidi - http://www.ushahidi.com
* @license MIT License http://opensource.org/licenses/MIT
*/
abstract class Koauth_Controller_... | ushahidi/koauth | classes/Koauth/Controller/OAuth.php | PHP | mit | 2,457 |
#!/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... | bennybauer/pinax-hello | runtests.py | Python | mit | 1,274 |
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... | brunyuriy/adasim | src/adasim/algorithm/routing/QLearningRoutingAlgorithm.java | Java | mit | 9,693 |
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(... | ke00n/alabno | infrastructure/infrastructure/src/main/java/jobmanager/tests/MicroServiceInfoTest.java | Java | mit | 657 |
'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... | majodev/google-webfonts-helper | client/app/cssCode/cssCode.directive.spec.js | JavaScript | mit | 573 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Generated by The Webalizer Ver. 2.01-10 -->
<!-- -->
<!-- Copyright 1997-2000 Bradford L. Barrett -->
<!-- ([email protected] http://www.mrunix.net) -->
<!-- -->
<!-- D... | TheBushyBrow/johnnyedick | stats/usage_201205.html | HTML | mit | 181,683 |
/*
* 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... | Peetz0r/micropython-esp32 | extmod/vfs_fat.c | C | mit | 12,566 |
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)
... | hahoyer/HWsqlass.cs | src/Taabus/PersistentConfiguration.cs | C# | mit | 2,208 |
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... | spanishprisoner/GetAllLinks | src/GetAllLinks.Droid/Views/SettingsFragment.cs | C# | mit | 580 |
<?php
/**
* This file is part of Cacheable.
*
* (c) Eric Chow <[email protected]>
*
* 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... | yateric/cacheable | tests/Stubs/DecoratedObject.php | PHP | mit | 544 |
{% 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... | PyConChina/PyConChina2017 | src/index.html | HTML | mit | 3,185 |
<!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" /... | NitescuLucian/NitescuLucian.github.io | 2018/07/16/exploit-exercises-nebula-level-10/index.html | HTML | mit | 29,652 |
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... | shannonmpoole/fh-fhc | test/unit/legacy/test_user_keys.js | JavaScript | mit | 2,115 |
module.exports = {
audioFilter: require('./audioFilter'),
destination: require('./destination'),
filename: require('./filename'),
multer: require('./multer')
}
| lighting-perspectives/jams | server/middlewares/sample/index.js | JavaScript | mit | 168 |
<!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"... | SEPR-York/SEPR-York.github.io | olddoc/me/gandhiinc/blindeye/Resource.html | HTML | mit | 13,003 |
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";
}
} | augustomarinho/springboot-docker | src/main/java/com/am/docker/study/controller/RestDockerExample.java | Java | mit | 299 |
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... | elBukkit/MagicPlugin | MagicAPI/src/main/java/com/elmakers/mine/bukkit/api/event/PreCastEvent.java | Java | mit | 1,149 |
**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 ... | brunokoga/pathfinder-markdown | prd_markdown/advanced/spells/brilliantInspiration.md | Markdown | mit | 701 |
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... | remi/mooget | old/spec/SearchSpec.cs | C# | mit | 1,934 |
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; }
}
}
| homoluden/fukami | demos/FukamiDemo/Interfaces/IHaveConnectionSlots.cs | C# | mit | 311 |
#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... | harveyc95/ProgrammingProblems | CTCI/Ch1/is_unique.cpp | C++ | mit | 399 |
module PrettyShortUrls
module Routes
def pretty_short_urls
connect ":name", :controller => "pretty_short_urls_redirect", :action => "redirect", :conditions => { :method => :get }
end
end
end | baldwindavid/pretty_short_urls | lib/pretty_short_urls_routes.rb | Ruby | mit | 208 |
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 =... | naosim/rtmjava | src/main/java/com/naosim/rtm/lib/MD5.java | Java | mit | 538 |
// 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... | philippneugebauer/go-code | rock_paper_scissors.go | GO | mit | 1,463 |
/* 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... | maurer/tiamat | samples/Juliet/testcases/CWE78_OS_Command_Injection/s01/CWE78_OS_Command_Injection__char_connect_socket_w32_execv_34.c | C | mit | 6,320 |
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... | tuzzer/ai-gym | atari_breakout/atari_breakout_dqn_cntk.py | Python | mit | 11,222 |
---
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:... | pblack/kaldi-hugo-cms-template | site/content/pages2/acl25.md | Markdown | mit | 339 |
/*
* 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... | TechReborn/RebornCore | src/main/java/reborncore/client/gui/slots/SlotFake.java | Java | mit | 2,200 |
#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... | Pomona/Pomona | app/Pomona/Routing/DefaultQueryProviderCapabilityResolver.cs | C# | mit | 450 |
#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... | anonymousdevx/anonymouscoin | src/qt/test/uritests.cpp | C++ | mit | 2,908 |
---
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: ... | RockyLim92/RockyLim92.github.io | _posts/development/2017-9-20-devEnvTip.md | Markdown | mit | 7,842 |
<?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
*... | kitboy/docker-shop | html/ecmall/upload/includes/payments/tenpay/tenpay.payment.php | PHP | mit | 8,267 |
//------------------------------------------------------------------------------
// <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.
//... | Stefangansevles/RemindMe | Database.Entity/ButtonSpaces.cs | C# | mit | 979 |
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... | markknol/EaselTS | src/createts/event/Signal1.ts | TypeScript | mit | 1,773 |
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 <= ?... | xephonhq/xephon-k | _legacy/pkg/storage/cassandra/stmt.go | GO | mit | 583 |
## 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... | rogierslag/mjml | packages/mjml-spacer/README.md | Markdown | mit | 692 |
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... | mjalil/AutoMapper | src/UnitTests/ReverseMapping.cs | C# | mit | 17,050 |
<!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-... | jmcomets/tropical-escape | lib/lwjgl/javadoc/org/lwjgl/opencl/class-use/CL10GL.html | HTML | mit | 5,956 |
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... | akashic-games/akashic-cli-export-html | src/app/cli.ts | TypeScript | mit | 3,890 |
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 }
})
}
| oct16/Blog-FE | src/actions/user.js | JavaScript | mit | 230 |
/*!
* 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... | ohmygodvt95/wevivu | vendor/assets/components/angular-material/modules/js/bottomSheet/bottomSheet.js | JavaScript | mit | 10,698 |
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... | sunrin92/LearnPython | 1-lpthw/ex32.py | Python | mit | 812 |
# 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>
... | bduran82/html_scraper | test/scraper_test.rb | Ruby | mit | 4,228 |
//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... | siderisltd/Telerik-Academy | All Courses Homeworks/C#_Part_2/6. StringsAndText/ParseURL/Program.cs | C# | mit | 1,607 |
<?php
/**
* ECSHOP 管理中心支付方式管理語言文件
* ============================================================================
* 版權所有 2005-2011 上海商派網絡科技有限公司,並保留所有權利。
* 網站地址: http://www.ecshop.com;
* ----------------------------------------------------------------------------
* 這不是一個自由軟件!您只能在不用於商業目的的前提下對程序代碼進行修改和
* 使用;不允許對程序代... | kitboy/docker-shop | html/ecshop3/ecshop/languages/zh_tw/admin/payment.php | PHP | mit | 2,156 |
---
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:... | pblack/kaldi-hugo-cms-template | site/content/pages2/acz45.md | Markdown | mit | 339 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.