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 |
|---|---|---|---|---|---|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Dou... | terrytowne/android-developer-cn | reference/java/lang/Double.html | HTML | mit | 124,589 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webvr - video</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Origin Trial Token, feature = WebVR, origin = https://threejs.org, expires = 2017-06-13 -->
<meta http-equiv="orig... | jostschmithals/three.js | examples/webvr_video.html | HTML | mit | 4,742 |
---
title: Laravel Forge, Digital Ocean and WebSockets
layout: post
categories: []
tags: []
published: True
image:
featured: 'photo-1436985487860-712a3b558087.jpeg'
---
I recently posted an overview of how to setup Web Sockets using [Laravel and Socket.io](/2016/01/30/laravel-and-websockets/). I wanted to follow it u... | DHolloran/dholloran.github.io | _posts/2016-03-05-laravel-forge-digital-ocean-and-websockets.md | Markdown | mit | 2,310 |
require 'nn'
require 'string'
require 'hdf5'
require 'nngraph'
require 'models.lua'
require 'data.lua'
require 'util.lua'
stringx = require('pl.stringx')
cmd = torch.CmdLine()
-- file location
cmd:option('-model', 'seq2seq_lstm_attn.t7.', [[Path to model .t7 file]])
cmd:option('-src_file', '', [[Source sequence to ... | harvardnlp/seq2seq-attn | s2sa/extract_states.lua | Lua | mit | 17,412 |
---
title: Thumbnail
description: Spruce up an image tag with our thumbnail style.
published: false
---
The `.thumbnail` class can be applied directly to an `<img>` element, or an `<a>` that wraps it. Make sure the `<img>` has an alt attribute that describes the contents of the image.
The thumbnail style adds padding... | jsit/foundation-emails | docs/pages/thumbnail.md | Markdown | mit | 622 |
'use strict'
/*global describe, it, before, after, beforeEach */
var should = require('should')
var thunk = require('thunks')()
var JSONKit = require('jsonkit')
var redis = require('../index')
module.exports = function () {
describe('commands:Set', function () {
var client
before(function () {
client... | AlphaStaxLLC/thunk-redis | test/commands-set.js | JavaScript | mit | 9,593 |
/**
* Custom error types to differentiate eBay response errors and client-level errors.
*
* @see http://developer.ebay.com/devzone/xml/docs/Reference/ebay/Errors/ErrorMessages.htm
*/
var
inherits = require('util').inherits,
_ = require('lodash');
function EbayClientError(message, extraProps) {
Error.apply(t... | amitkas/savebuy | node_modules/ebay-api/lib/errors.js | JavaScript | mit | 1,221 |
<?php
namespace JHWEB\UsuarioBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class JHWEBUsuarioBundle extends Bundle
{
}
| edosgn/asi-sw | src/JHWEB/UsuarioBundle/JHWEBUsuarioBundle.php | PHP | mit | 132 |
require_relative "helper"
module Sol
class TestIfNoIf < MiniTest::Test
include SolCompile
def setup
@compiler = compile_main( "unless(@a) ; @a = 5 ; end;return")
@ins = @compiler.slot_instructions.next
end
def test_condition_compiles_to_check
assert_equal TruthCheck , @ins.class ... | salama/salama | test/sol/test_if_no_if.rb | Ruby | mit | 794 |
<!doctype html>
<style>
body{background:rgb(180,180,190)}
body > div{
background:rgb(240,240,255);
margin:20px;
padding:20px;
border:8px solid rgb(150,150,180)
}
h4{margin:0.25em 0}
body{font-family:sans-serif}
h1 a{
color:white;
text-decoration:none
}
.log{
border-radiu... | kristopolous/bracket | examples/index.html | HTML | mit | 4,439 |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example - example-example58-production</title>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.13/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="">
<div ng-controller="Ctrl">... | petervyvey/portfolio | web/public/app/vendor/angular/lib/docs/examples/example-example58/index-production.html | HTML | mit | 886 |
#coding: utf8
import unittest
#from conf import NginxConfig
from blocks import KeyValueOption, KeyOption, Block
'''
s = """server {
nameserver 123;
}"""
s = """server 123;"""
a = NginxConfig()
a.load(s)
print(a.server)
#print(a.server.nameserver)
'''
class NgKVB(Block):
kv = KeyValueOption('kv_value')
cl... | FeroxTL/pynginxconfig | test.py | Python | mit | 3,830 |
var util = require('util');
var wolfram = require('wolfram');
var BaseTrigger = require('./baseTrigger.js').BaseTrigger;
/*
Trigger that responds to messages using Wolfram Alpha.
command = string - a message must start with this + a space before a response will be given
appId = string - the app ID to use when creatin... | vonmixer/node-steam-chat-bot | lib/triggers/wolframAlphaTrigger.js | JavaScript | mit | 2,725 |
require 'spec_helper'
module Bldr
describe Node, 'delegating helper methods' do
before do
# mock version of a module of methods that would be attached
# to an ActionView::Base instance
helpers = Module.new do
def my_helper
'my helper'
end
def helper_with_args_... | phoffer/bldr-lite | spec/functional/helpers_spec.rb | Ruby | mit | 1,623 |
.icon-avatar { background-image: url('png/avatar.png'); background-repeat: no-repeat; }
.icon-calendar { background-image: url('png/calendar.png'); background-repeat: no-repeat; }
.icon-check { background-image: url('png/check.png'); background-repeat: no-repeat; }
.icon-city { background-image: url('png/city.png');... | JustRLax/sonos-dashboard | fallbacks/icons.fallback.css | CSS | mit | 4,726 |
//
// Person.h
// MVVMWithKVO
//
// Created by Bryan Luby on 10/27/13.
// Copyright (c) 2013 Bryan Luby. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Person : NSObject
@property (copy, nonatomic) NSString *name;
@property (strong, nonatomic) NSDate *birthday;
- (instancetype)initWithName:... | Farteen/XcodeTestProjects | MVVMWithKVO/MVVMWithKVO/Person.h | C | mit | 343 |
@extends('layouts.auto')
@section('title')
Défis
@endsection
@section('smalltitle')
Formulaire pour ajouter un défi que les différentes équipes pourront réaliser
@endsection
@section('content')
<div class="box box-default">
<div class="box-header with-border">
<h3>Ajouter un défi</h3... | ungdev/integration-UTT | resources/views/dashboard/challenges/add.blade.php | PHP | mit | 502 |
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
module ToDoApp
class Application < Rails::Application
# Settings in config/environments/* take prece... | mykia/tts_rails | ToDo_app/config/application.rb | Ruby | mit | 978 |
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
package cloudtrail_test
import (
"bytes"
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudtrail"
)
var _ time.Duration
var _ bytes.Buffer
func ExampleCloudTrail_AddTags() {
sess ... | ae6rt/decap | web/vendor/github.com/aws/aws-sdk-go/service/cloudtrail/examples_test.go | GO | mit | 8,904 |
define(function() {
return {
blank_function: function(){},
};
});
| bizet/healthy | public/javascripts/util/const.js | JavaScript | mit | 75 |
<?php
namespace Whizark\DesignPatterns\Uncategorized\NullObject;
use Whizark\DesignPatterns\Uncategorized\NullObject\OperationInterface;
/**
* Class RealOperation
* @package Whizark\DesignPatterns\Uncategorized\NullObject
*/
class RealOperation implements OperationInterface
{
/**
* {@inheritDoc}
*/
... | dez-php/php-patterns | src/Whizark/DesignPatterns/Uncategorized/NullObject/RealOperation.php | PHP | mit | 388 |
.enyo-fittable-rows-layout {
position: relative;
}
.enyo-fittable-rows-layout > * {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
/* float when not stretched */
float: left;
clear: both;
}
/* non-floating when stretched */
.enyo-fittable-rows-layout.enyo-stretch > * {
f... | hui-w/misc-fragment | tax-calc-cn/www/lib/layout/fittable/source/FittableLayout.css | CSS | mit | 1,490 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;... | bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/DICOM/ZSlopeCalibrationDate.php | PHP | mit | 817 |
---
title: "Jacoco plugin in Jenkins"
layout: single
categories: 'blog'
tags: 'blog'
navigation: True
subclass: 'post tag-speeches'
comments: true
date: 2018-09-18 15:08:33 EDT
---
Jacoco has been used in the project to assure the test coverage. However, I didn't realize that the jacoco job in jenkins is using a diffe... | mingliangguo/mingliangguo.github.com | _posts/2018-09-18-jacoco-plugin-in-jenkins.md | Markdown | mit | 2,296 |
package com.rajendarreddyj.basics.swing;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
/**
* This program displays a simple Graphical U... | rajendarreddyj/development-java | java-projects/basics/src/main/java/com/rajendarreddyj/basics/swing/FirstGUI.java | Java | mit | 2,632 |
FROM ubuntu:14.04
MAINTAINER Hector Cordero <hhcordero@gmail.com>
ENV JMETER_VERSION 2.13
ENV JMETER_HOME /usr/local/apache-jmeter-${JMETER_VERSION}
ENV JMETER_BIN $JMETER_HOME/bin
ENV RMI_CLIENT_PORT 1099
ENV RMI_SERVER_PORT 9901
ENV TEST_PLAN test.jmx
ENV ACCESS_KEY XXX
ENV SECRET_KEY XXX
ENV REGION XXX
ENV QUEUE_U... | hhcordero/docker-jmeter | client/Dockerfile | Dockerfile | mit | 1,153 |
@ECHO OFF
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set BUILDDIR=_build
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
set I18NSPHINXOPTS=%SPHINXOPTS% .
if NOT "%PAPER%" == "" (
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
set I18N... | oblique-labs/pyVM | rpython/doc/make.bat | Batchfile | mit | 5,098 |
<?php
namespace Modules\Permissions\Providers;
use Nova\Packages\Support\Providers\ModuleServiceProvider as ServiceProvider;
class ModuleServiceProvider extends ServiceProvider
{
/**
* The additional provider class names.
*
* @var array
*/
protected $providers = array(
'Modules\P... | nova-framework/framework | modules/Permissions/Providers/ModuleServiceProvider.php | PHP | mit | 1,301 |
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Videos Videos
* @ingroup UnaModules
*
* @{
*/
/**
* Videos module
*/
class BxVideosModule extends BxBaseModTextModule
{
function __constru... | unaio/una | modules/boonex/videos/updates/9.0.4_10.0.0/source/classes/BxVideosModule.php | PHP | mit | 5,302 |
import * as strategies from "./strategies"
export declare const defaults : {
labels: string,
css: { [key: string]: string },
strategies: {
selection: Array<string | strategies.selectionStrategy<any>>
click: Array<string | strategies.clickStrategy<any>>,
fold: Array<strin... | elbywan/bosket | src/core/defaults.d.ts | TypeScript | mit | 894 |
//
// TrackParams.h
// ViSearch
//
// Created by Yaoxuan on 5/12/16.
// Copyright © 2016 Shaohuan Li. All rights reserved.
//
#ifndef TrackParams_h
#define TrackParams_h
#import <Foundation/Foundation.h>
#import "BaseSearchParams.h"
@interface TrackParams : BaseSearchParams
@property (nonatomic, readonly) NSStr... | yulu/visearch-sdk-ios | ViSearchSDK/ViSearchAPISource/TrackParams.h | C | mit | 946 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.apimanagement.v2018_06_01_preview.implementation;... | selvasingh/azure-sdk-for-java | sdk/apimanagement/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/apimanagement/v2018_06_01_preview/implementation/UserTokenResultInner.java | Java | mit | 1,061 |
<?php
namespace Richpolis\PublicidadBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle... | richpolis/sf2HeraldoToluca | src/Richpolis/PublicidadBundle/Controller/PublicidadController.php | PHP | mit | 11,989 |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Unit tests for block-chain checkpoints
//
#include "checkpoints.h"
#include "uint256.h"
#include "test/test_bitcoin.h... | litecoinz-project/litecoinz | src/test/Checkpoints_tests.cpp | C++ | mit | 750 |
'use strict';
angular.module('nachosSettingsApp')
.controller('Packages', function ($scope, $timeout, $state) {
var packages = require('nachos-packages');
var _ = require('lodash');
$scope.types = packages.Packages.TYPES;
$scope.view = function (item) {
$state.go('main.package-settings', {ite... | nachos/settings-burrito | client/app/main/packages/packages.controller.js | JavaScript | mit | 813 |
<div class="ui text container">
<h1 class="ui inverted header">{{ site.title }}</h1>
<h2>{{ site.description }}</h2>
<div class="badges">
<a id="github-watch" href="{{ site.repository_url }}/watchers" target="_blank"><img src="https://img.shields.io/github/watchers/{{ site.repository }}.svg?style=so... | iROCKBUNNY/N-Back | _includes/home_header.html | HTML | mit | 1,178 |
//
// RequestManager.h
// Organic
//
// Created by Mike on 1/18/15.
// Copyright (c) 2015 Mike Amaral. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RequestManager : NSObject
+ (id)sharedInstance;
- (void)getGitHubDetailsForUser:(NSString *)user handler:(void (^)(NSError *error, NSDiction... | gabrielPeart/Organic | Organic/Misc/Utils for demo/Random/RequestManager.h | C | mit | 362 |
package de.kdml.bigdatalab.spark_and_flink.spark_project.examples;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.common.serialization.StringDeserializer;
import o... | ehabqadah/Spark_vs_Flink | spark_project/src/main/java/de/kdml/bigdatalab/spark_and_flink/spark_project/examples/KafkaDirectMultipleReceivers.java | Java | mit | 3,658 |
using System;
using System.Configuration;
namespace StaticService.Configuration
{
public static class AppSettings
{
private static readonly GlobalSection Global;
static AppSettings()
{
Global = (GlobalSection)ConfigurationManager.GetSection("global");
Urls = Gl... | Apozhidaev/StaticService | StaticService/Configuration/AppSettings.cs | C# | mit | 885 |
<?php
namespace Clarify\Exceptions;
class InvalidJSONException extends \Exception
{
} | caseysoftware/clarify-video-demo | vendor/clarify/clarify-helper/src/Clarify/Exceptions/InvalidJSONException.php | PHP | mit | 88 |
/*
* JScript Render - Javascript renderization tools
* http://www.pleets.org
* Copyright 2014, Pleets Apps
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Date: 2015-01-22
*/
/* JScriptRender alias */
if (!window.hasOwnProperty('JScriptRender'))
JScriptRender =... | PleetsApps/Talker-Town | public/libs/JScript-Render/JScriptRender.js | JavaScript | mit | 5,223 |
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 103340050, "Date": "11\/30\/2010", "Time": "10:11 AM", "Police District": 4.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location":... | marquettecomputationalsocialscience/clusteredcrimemaps | individual_work/marielle/KMeans/datamound/data_2010-m_theft_nov.js | JavaScript | mit | 384,077 |
# Baked Potato
## Ingredients
- russet potatoes
- olive oil
- kosher salt
- cheddar cheese, grated
- sour cream
- bacon, chopped fine and well browned
- green onion, chopped fine
- black pepper
## Instructions
1. Preheat oven to 350°F.
2. Scrub potatoes and pierce skin several times with a knife. Rub skin with oliv... | rlucioni/recipes | recipes/baked-potato.md | Markdown | mit | 557 |
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ext... | 0marBonifacio/Escuela | app/cache/dev_old/appDevUrlMatcher.php | PHP | mit | 30,575 |
const React = require('react')
const { shell } = require('electron')
const ModalOKCancel = require('./modal-ok-cancel')
const { dispatch } = require('../lib/dispatcher')
module.exports = class UpdateAvailableModal extends React.Component {
render () {
const state = this.props.state
return (
<div class... | webtorrent/webtorrent-desktop | src/renderer/components/update-available-modal.js | JavaScript | mit | 1,137 |
shared_examples 'creating an issue for a discussion' do
it 'shows an issue with the title filled in' do
title_field = page.find_field('issue[title]')
expect(title_field.value).to include(merge_request.title)
end
it 'has a mention of the discussion in the description' do
description_field = page.find... | iiet/iiet-git | spec/support/features/resolving_discussions_in_issues_shared_examples.rb | Ruby | mit | 1,272 |
package io.keen.client.java;
import java.io.IOException;
/**
* Interface which provides an abstraction layer around how attempt counts are stored.
*
* @author Simon Murtha Smith
* @since 2.0.2
*/
public interface KeenAttemptCountingEventStore extends KeenEventStore {
/**
* Gets the stored attempts Stri... | keenlabs/KeenClient-Java | core/src/main/java/io/keen/client/java/KeenAttemptCountingEventStore.java | Java | mit | 1,120 |
'use strict'
/**
* OAuth 2.0 Authentication Protocol
*
* OAuth 2.0 is the successor to OAuth 1.0, and is designed to overcome
* perceived shortcomings in the earlier version. The authentication flow is
* essentially the same. The user is first redirected to the service provider
* to authorize access. After autho... | jaumard/trailpack-passport | api/services/protocols/oauth2.js | JavaScript | mit | 1,238 |
/**
* @license
* lodash 4.0.0 <https://lodash.com/>
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license <http... | ttjinhuo/adminEx | public/lib/lodash.js | JavaScript | mit | 460,339 |
#!/usr/bin/env python3
import os
bundleFilesDir = 'tmp/bundleSizeDownloads'
yarnLockFile = 'yarn.lock'
packagesFile = 'package.json'
def isDividerLine(line):
# At least 80 chars, all slashes except the last (which is newline). The number is inconsistent for some reason.
return (len(line)>=80
and line.... | Discordius/Telescope | scripts/analyzeBundle.py | Python | mit | 4,048 |
#### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Building()
result.template = "object/building/poi/shared_tatooine_evil_nomad_small2.iff"
result.attribute_templat... | anhstudios/swganh | data/scripts/templates/object/building/poi/shared_tatooine_evil_nomad_small2.py | Python | mit | 457 |
/*
* spa.shell.js
* Shell module for SPA
*/
/*jslint browser : true, continue : true,
devel : true, indent : 2, maxerr : 50,
newcap : true, nomen : true, plusplus : true,
regexp : true, sloppy : true, vars : false,
white : true
*/
/*global $, spa */
spa.shell = (function () {
'use s... | txemis/txemis.github.io | spa/spa/js/spa.shell.js | JavaScript | mit | 10,378 |
/*!
* CanJS - 2.0.4
* http://canjs.us/
* Copyright (c) 2013 Bitovi
* Mon, 23 Dec 2013 19:49:14 GMT
* Licensed MIT
* Includes: CanJS default build
* Download from: http://canjs.us/
*/
steal('can/util','can/construct', function( can ) {
// ## control.js
// `can.Control`
// _Controller_
// Binds an element... | shiftplanning/foxydb | public/can/control/control.js | JavaScript | mit | 27,976 |
#ifndef wren_h
#define wren_h
#include <stdlib.h>
#include <stdint.h>
typedef struct WrenVM WrenVM;
// A generic allocation function that handles all explicit memory management
// used by Wren. It's used like so:
//
// - To allocate new memory, [memory] is NULL and [oldSize] is zero. It should
// return the alloca... | 1100110/wren | include/wren.h | C | mit | 6,470 |
package de.university.neueVersion.exceptions;
/**
* @author Anastasia Baron
* @author Dmitry Petrov
*/
public class NotEnoughMoneyException extends MeineException {
public NotEnoughMoneyException() {
System.out.println("");
System.out.println("Sie haben nicht genug Geld zum abheben");
}
}
| dmpe/Homeworks2 | Aufgabe1/src/de/university/neueVersion/exceptions/NotEnoughMoneyException.java | Java | mit | 305 |
# timecoco
##项目概况
timecoco 是一个针对 iOS 手机平台开发的轻量级的__纯文字__日记 App 项目,timecoco 项目的目标是:作为一个纯文字日记 App,尽可能的让操作简化、界面简单、运行稳定、性能良好的同时,也提供一些确实可以带来方便但是不会显得太过笨重的功能。而这其中有不少的功能点(比如跨时区支持等)是类似彩蛋一般的存在,也许只有在长期的使用中才会发现,当然,如果你看源代码可以很早就发现。
timecoco 支持的 iOS 系统版本最低为 iOS 8.0。
##当前版本与进度
1.0版本的主要功能划分以及进度列表:
功能|进度
:----------- | :-----------... | chd123456/timecoco | README.md | Markdown | mit | 1,138 |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import pageComponent from 'code-corps-ember/tests/pages/components/submittable-textarea';
import PageObject from 'ember-cli-page-object';
let page = PageObject.create(pageComponent);
function setHandler(context, modi... | code-corps/code-corps-ember | tests/integration/components/submittable-textarea-test.js | JavaScript | mit | 1,312 |
"use strict";
var patient = (function () {
function patient() {
}
return patient;
}());
exports.patient = patient;
//# sourceMappingURL=character.model.js.map | vicqs/ne | src/app/models/character.model.js | JavaScript | mit | 170 |
package com.example.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* The Spring Boot Foody Application.
* <p>
* This class provides the main method to launch the Spring Boot Foody
* Application. The default configuration:
* <ol>
... | psumiya/spring-boot-zookeeper-example | foody/src/main/java/com/example/boot/FoodyApplication.java | Java | mit | 944 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using AutoPoco.Configuration;
namespace AutoPoco.Tests.Integration.Configuration
{
[TestFixture]
public class ConfigurationBaseTest
{
public EngineConfigurationBuilder Builder
{
... | KCL5South/KCLAutoPoco | AutoPoco.Tests.Integration/Configuration/ConfigurationBaseTest.cs | C# | mit | 519 |
/**
* @author Chong-U Lim <me@chongdashu.com>
* @copyright 2015 Chong-U Lim
* @module Core
*/
this.chongdashu = this.chongdashu||{};
(function() {
"use strict";
/**
* System represents a System of the Entity-Component-System Design
* paradigm.
*
* @class Core.System
* @constructor
**/
var Sy... | chongdashu/phaser-game-template | src/chongdashu/Core/System.js | JavaScript | mit | 3,417 |
/*******************************************************************************
* Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr)
* 7 Colonel Roche 31077 Toulouse - France
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... | huanpc/IoT-1 | docker/oneM2M/CSE_IPE/org.eclipse.om2m/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/ScheduleEntries.java | Java | mit | 3,026 |
---
id: version-v6.0.0-local-state-management
title: Local State Management
original_id: local-state-management
---
Relay can be used to read and write local data, and act as a single source of truth for *all* data in your client application.
The Relay Compiler fully supports client-side extensions of the schema, wh... | cpojer/relay | website/versioned_docs/version-v6.0.0/Modern-LocalStateManagement.md | Markdown | mit | 5,304 |
. $PSScriptRoot\CommonServerPowerShell.ps1
$script:INTEGRATION_NAME = "EWS extension"
$script:COMMAND_PREFIX = "ews"
$script:INTEGRATION_ENTRY_CONTEXT = "EWS"
$script:JUNK_RULE_ENTRY_CONTEXT = "$script:INTEGRATION_ENTRY_CONTEXT.Rule.Junk(val.Email && val.Email == obj.Email)"
$script:MESSAGE_TRACE_ENTRY_CONTEXT = "$sc... | demisto/content | Packs/EWS/Integrations/EwsExtension/EwsExtension.ps1 | PowerShell | mit | 58,006 |
import {Seq, Map, List} from "immutable";
import {
LOAD_PROJECT,
NEW_PROJECT,
OPEN_CATALOG,
MODE_VIEWING_CATALOG,
MODE_CONFIGURING_PROJECT,
SELECT_TOOL_EDIT,
MODE_IDLE,
UNSELECT_ALL,
SET_PROPERTIES,
SET_ITEMS_ATTRIBUTES,
SET_LINES_ATTRIBUTES,
SET_HOLES_ATTRIBUTES,
REMOVE,
UNDO,
ROLLBACK,
... | vovance/3d-demo | src/reducers/project-reducer.js | JavaScript | mit | 7,875 |
/*
**********************************************************************
* Copyright (C) 1998-2008, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
* File ustring.h
*
* Modification History:
*
* Date N... | refuge/ucol_nif | c_src/platform/osx/icu/unicode/ustring.h | C | mit | 62,424 |
package org.shipkit.internal.notes.format;
import org.shipkit.internal.notes.model.Improvement;
/**
* Shared formatting
*/
class CommonFormatting {
static String format(Improvement improvement) {
return improvement.getTitle() + " [(#" + improvement.getId() + ")](" + improvement.getUrl() + ")";
}
}
| mockito/mockito-release-tools | subprojects/shipkit/src/main/groovy/org/shipkit/internal/notes/format/CommonFormatting.java | Java | mit | 320 |
/*
* Copyright (c) 2014-2015 Jakub Białek
*
* 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, merge, pub... | amuzhou/simple-spring-memcached | integration-test/src/test/java/com/google/code/ssm/test/LargeDataTest.java | Java | mit | 2,949 |
module Herohook
class ConfigMissing < StandardError
attr_accessor :key
def initialize(key)
self.key = key
super
end
def message
"#{key} missing from config file"
end
end
end | evanwhalen/herohook | lib/herohook/config_missing.rb | Ruby | mit | 221 |
package de.slikey.effectlib.effect;
import de.slikey.effectlib.Effect;
import de.slikey.effectlib.EffectManager;
import de.slikey.effectlib.EffectType;
import de.slikey.effectlib.util.ParticleEffect;
import de.slikey.effectlib.util.RandomUtils;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
public class... | stormtrooper28/EffectLib | src/main/java/de/slikey/effectlib/effect/LoveEffect.java | Java | mit | 927 |
#!/bin/sh
# Use the exec command to start the app you want to run in this container.
# Don't let the app daemonize itself.
# `/sbin/setuser memcache` runs the given command as the user `memcache`.
# If you omit that part, the command will be run as root.
# Read more here: https://github.com/phusion/baseimage-docker#a... | intlabs/cannyos-backend-dashboard | run_gunicorn.sh | Shell | mit | 864 |
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
require 'newrelic_rpm'
class HarvestTimestampsTest < Minitest::Test
include MultiverseHelpers
setup_and_teardown_agent
def test_resets_metric_data_times... | sho-wtag/catarse-2.0 | vendor/bundle/ruby/2.2.0/gems/newrelic_rpm-3.12.0.288/test/multiverse/suites/agent_only/harvest_timestamps_test.rb | Ruby | mit | 2,091 |
<!DOCTYPE html>
<html ng-app="demo-icon">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js"></script>
<script type="text/javascript" src="/dist/angular-webicon.js"></script>
<scr... | princesust/webicon | demo/angular/demoPreload/index.html | HTML | mit | 1,694 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cake.Common.Tools.DotCover.Cover;
using Cake.Core;
using Cake.Core.Diagnostics;
using Cake.Core.IO;
using NSubstitute;
namespace Cake.Common.Tests.Fixtures.Tools.DotCover.Cover
{
internal seal... | andycmaj/cake | src/Cake.Common.Tests/Fixtures/Tools/DotCover/Cover/DotCoverCovererFixture.cs | C# | mit | 1,811 |
using System.Collections.Generic;
using System.Linq;
namespace KitchenPC.Context
{
public class ConnectorVertex
{
readonly List<IngredientNode> connections;
public ConnectorVertex()
{
connections = new List<IngredientNode>();
}
public IEnumerable<Ingredient... | KitchenPC/core | src/Core/Context/ConnectorVertex.cs | C# | mit | 694 |
require 'spec_helper'
require 'mspec/mocks/proxy'
RSpec.describe MockObject, ".new" do
it "creates a new mock object" do
m = MockObject.new('not a null object')
expect { m.not_a_method }.to raise_error(NoMethodError)
end
it "creates a new mock object that follows the NullObject pattern" do
m = MockO... | ruby/mspec | spec/mocks/proxy_spec.rb | Ruby | mit | 9,604 |
namespace Mapbox.Unity.MeshGeneration.Modifiers
{
using Mapbox.Unity.MeshGeneration.Data;
using UnityEngine;
using Mapbox.Unity.MeshGeneration.Components;
[CreateAssetMenu(menuName = "Mapbox/Modifiers/Collider Modifier")]
public class ColliderModifier : GameObjectModifier
{
[SerializeF... | binakot/Fleet-And-Staff-Location-Visualizer | FleetAndStaffLocationVisualizer/Assets/Mapbox/Unity/MeshGeneration/Modifiers/GameObjectModifiers/ColliderModifier.cs | C# | mit | 1,149 |
var CoreObject = require('core-object');
var Promise = require('ember-cli/lib/ext/promise');
var SilentError = require('silent-error');
var chalk = require('chalk');
var white = chalk.white;
var green = chalk.green;
var EXPIRE_IN_2030 = new Date('2030');
var TWO_YEAR_CACHE_PERIOD_IN_SEC = 60 * 60 * 24 ... | tobymarsden/ember-deploy-s3 | lib/s3.js | JavaScript | mit | 3,271 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Original Code: Copyright (c) 2009-2014 The Bitcoin Core Developers
// Modified Code: Copyright (c) 2014 Project Bitmark
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef B... | project-bitmark/pfennig | src/main.h | C | mit | 37,765 |
# This file is generated by /tmp/pip-kUGBJh-build/-c
# It contains system_info results at the time of building this package.
__all__ = ["get_info","show"]
lapack_opt_info={'libraries': ['openblas', 'openblas'], 'library_dirs': ['/usr/local/lib'], 'language': 'c', 'define_macros': [('HAVE_CBLAS', None)]}
blas_opt_info=... | ryfeus/lambda-packs | Shapely_numpy/source/numpy/distutils/__config__.py | Python | mit | 1,319 |
## Install
```
npm i cli-mid-error
```
| freeformsystems/cli-mid-error | doc/readme/install.md | Markdown | mit | 40 |
'use strict';
exports.xmlns = 'http://www.w3.org/2000/xmlns/';
exports.svg = 'http://www.w3.org/2000/svg';
exports.xlink = 'http://www.w3.org/1999/xlink';
// the 'old' d3 quirk got fix in v3.5.7
// https://github.com/mbostock/d3/commit/a6f66e9dd37f764403fc7c1f26be09ab4af24fed
exports.svgAttrs = {
xmlns: exports.... | etpinard/plotly.js | src/constants/xmlns_namespaces.js | JavaScript | mit | 361 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block page_title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css">
{% block html_head %}{% endblock %}
</head>... | ballzy/local-demonstrators | app/views/_layouts/archive/layout_2-3_1-3_v4.html | HTML | mit | 1,406 |
import { window, document } from 'ssr-window';
import $ from '../../utils/dom';
import Utils from '../../utils/utils';
const HashNavigation = {
onHashCange() {
const swiper = this;
const newHash = document.location.hash.replace('#', '');
const activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('... | dantefung/Front-End | code/swiper-demo/swiper-4.4.6/src/components/hash-navigation/hash-navigation.js | JavaScript | mit | 3,141 |
class Solution {
public:
int singleNonDuplicate(vector<int>& nums)
{
int len = nums.size();
int ret = 0;
for (int i = 0; i < len; i++) {
if (i + 1 < len && (nums[i] != nums[i + 1] && nums[i] != nums[i - 1])) {
return nums[i];
}
else i... | Vaibhav/InterviewPrep | LeetCode/Medium/540-Single-Element-Sorted-Array.cpp | C++ | mit | 453 |
class IDObject():
"""
Base class for all objects having unique id within the application
"""
def __init__(self, objectId):
"""
Constructor method for building IDObject
objectId - the unique objectId of the object in the application
"""
self._objectId = objectId
... | rusucosmin/courses | ubb/fop/2015.Seminar.09/domain/IDObject.py | Python | mit | 514 |
<!DOCTYPE html>
<html>
<head>
<title>Arduino and text to speech</title>
<script src='https://code.responsivevoice.org/responsivevoice.js'></script>
<script src="/js/jquery-2.1.1.min.js"></script>
<script src="/js/demo.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.... | valerijaspasojevic/Text-to-speech-and-led-control- | views/dashboard.html | HTML | mit | 4,246 |
'use strict';
describe("Schema.SchemaDefinition", function () {
var SchemaDefinition = Divhide.SubModules.Schema.SchemaDefinition;
beforeEach(function () {
jasmine.addMatchers(window.JasmineCustomMatchers);
});
it(".ctor(Array)", function () {
var c = new SchemaDefinition({
... | divhide/node-divhide | src/Common/Schema/SchemaDefinitionJasmineSpec.js | JavaScript | mit | 1,930 |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Chat\V1;
use Twilio\Options;
use Twilio\Values;
abstract class CredentialOptions {
/**
* @param string $friendlyName A string to describe the resource
* @param strin... | unaio/una | upgrade/files/12.1.0-13.0.0.A1/files/plugins/twilio/sdk/src/Twilio/Rest/Chat/V1/CredentialOptions.php | PHP | mit | 11,824 |
---
title: "3 Col Portfolio"
slug: 3-col-portfolio
src: /template-overviews/3-col-portfolio
categories: template portfolios unstyled
description: "A simple, three column, portfolio page template perfect for showcasing a larger group of projects."
bump: "A three column portfolio template."
img-src: /img/templa... | Erin-Denton/flpy.github.io | _templates/2013-09-24-template-3-col-portfolio.md | Markdown | mit | 1,277 |
//
// LayoutExample.cpp
// Pods
//
// Created by Leif Shackelford on 6/19/15.
//
//
#include "simpleSynth.h"
//#include "leif/audio/Audio.h"
void SimpleSynth::moveToView() {
setLayoutMethod(Layout::Method::Vertical);
addChild(View::view())->setBackgroundColor(Color("red"));
addChild(View::view())->setBackgr... | structuresound/NodeKittenX | examples/archive/simpleSynth.cpp | C++ | mit | 1,593 |
//
// AppDelegate.h
// FFPickerView
//
// Created by Felix Ayala on 6/18/15.
// Copyright (c) 2015 Pandorga. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| rockbarato/FFPickerView | FFPickerView/AppDelegate.h | C | mit | 281 |
module AuthlogicConnect::Oauth
# This module is responsible for adding oauth
# to the Authlogic::Session::Base class.
module Session
def self.included(base)
base.class_eval do
include InstanceMethods
end
end
module InstanceMethods
include Process
def self.included... | oelmekki/authlogic-connect | lib/authlogic_connect/oauth/session.rb | Ruby | mit | 2,008 |
package com.chatt.demo;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import com.chatt.demo.custom.CustomActivity;
import com.chatt.demo.utils.Utils;
import com.parse.LogInCallback;
import com.parse.ParseException;... | arjunvijayvargiya/CoffeeConnect | src/com/chatt/demo/Login.java | Java | mit | 2,585 |
/*
Ionize Editor mode CSS
Used by Base_Controller->render() to display the "connected" marker on the website side
when the user is connected to the Admin panel as Editor.
*/
#ionizeLoggedAsEditorFlag{
width:80px;
height:80px;
position: absolute;
z-index: 10001;
top:0;
left:0;
background: url(../images/flag_... | zoearthmoon/codeigniter_ionize | themes/admin/styles/original/css/logged-as-editor.css | CSS | mit | 507 |
[coffeescripted-sbt](http://github.com/softprops/coffeescripted-sbt#readme) compiles your CoffeeScripts so you don't have to.
| sbt/coffeescripted-sbt | notes/about.markdown | Markdown | mit | 126 |
'use strict';
const gulp = require('gulp');
const gulpif = require('gulp-if');
const jscs = require('gulp-jscs');
const stylish = require('jscs-stylish');
module.exports = (src, opts) => {
opts = Object.assign({
configPath: './node_modules/habanero-code-style/js/.jscsrc',
reporter: stylish.path,
watch: false
... | cwparsons/cwparsonsca | gulp/jscs.js | JavaScript | mit | 454 |
$(document).ready(function() {
vis.createBreadcrumbs($(".container.full").first());
});
// namespace
var vis = {};
/**
* Adds a breadcrumb as first child to the specified container.
*
* @author felixhayashi
*/
vis.createBreadcrumbs = function(container) {
// use the url to infer the path
var crumb... | reshak/angular-dashboard-framework | sample/widgets/topology/sample/components/vis/docs/js/main.js | JavaScript | mit | 1,111 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Baseline;
using Marten.Events;
using Marten.Linq;
using Marten.Linq.Model;
using Marten.Linq.QueryHandlers;
using Marten.Schema;
using Npgsql;
namespace Marten.Services.BatchQuery... | tim-cools/Marten | src/Marten/Services/BatchQuerying/BatchedQuery.cs | C# | mit | 9,822 |
package unit.kernel.serial_ports.rxtx_port_configuration;
import kernel.serial_ports.PortConfiguration;
import kernel.serial_ports.RXTXPortConfiguration;
import org.junit.Before;
import unit.kernel.serial_ports.SerialPortsTestCase;
/**
* Base class for tests involving
* {@link kernel.serial_ports.RXTXPortConfigurat... | OmicronProject/BakeoutController | src/test/java/unit/kernel/serial_ports/rxtx_port_configuration/RXTXPortConfigurationTestCase.java | Java | mit | 931 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.