This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "gulpfile.js", | |
"dependencies": { | |
"babel": "^5.8.23", | |
"babelify": "^6.3.0", | |
"gulp-concat": "^2.6.0", | |
"gulp": "^3.9.0", | |
"gulp-html-minifier": "^0.1.6", | |
"browserify": "^11.2.0", | |
"gulp-rename": "^1.2.2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
(function (global){ | |
"use strict"; | |
require("core-js/shim"); | |
require("regenerator/runtime"); | |
if (global._babelPolyfill) { | |
throw new Error("only one instance of babel/polyfill is allowed"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ES7 code, with async/await | |
async function xhrEdgeAsync(/* String */ url) { | |
let request = new XMLHttpRequest(); | |
await request.open('GET', url, false); | |
await request.send(); | |
if (request.status == 200) { | |
return request.responseText; | |
} else { | |
throw Error(request.statusText); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// arrange | |
List<Integer> list = Arrays.asList(0, 1, 2, -1, 2); | |
// act | |
Predicate<Integer> p = (x) -> x <= 1; | |
boolean isDirty = false; | |
for (Integer x : list) { | |
if (!isDirty && p.negate().test(x)) isDirty = true; | |
if (isDirty) System.out.println(x); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace StarWars.Model | |
{ | |
public class Director | |
{ | |
public int DirectorId { get; set; } | |
public int Episode { get; set; } | |
public string Name { get; set; } | |
public DateTime Born { get; set; } // 追加 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as assert from 'assert'; | |
import {NumberUtil} from '../../src/util/NumberUtil'; | |
suite('NumberUtil Tests', () => { | |
test('isOdd', () => { | |
// arrange | |
const n = 2501; | |
// act |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.stream.IntStream; | |
public class ParallelTest { | |
public static void main(String[] args) { | |
final int max = 10000000; | |
long startTime = System.currentTimeMillis(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Diagnostics; | |
namespace ParallelTest | |
{ | |
public class Program | |
{ | |
public static void Main() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
from keyhac import * | |
def configure(keymap): | |
# Global keymap which affects any windows | |
keymap_global = keymap.defineWindowKeymap() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const postcss = require('postcss'); | |
const Color = require('color'); | |
module.exports = postcss.plugin('postcss-stylish-dark-theme-gene', () => { | |
const PROP_COLOR = /(color)|(background)|(border)|(shadow)|(outline)|(fill)/i; | |
const HEX_COLOR = /(#[\da-f]{3,6})/i; | |
const NME_COLOR = /(aliceblue)|(antiquewhite)|(aqua)|(aquamarine)|(azure)|(beige)|(bisque)|(black)|(blanchedalmond)|(blue)|(blueviolet)|(brown)|(burlywood)|(cadetblue)|(chartreuse)|(chocolate)|(coral)|(cornflowerblue)|(cornsilk)|(crimson)|(cyan)|(darkblue)|(darkcyan)|(darkgoldenrod)|(darkgray)|(darkgreen)|(darkgrey)|(darkkhaki)|(darkmagenta)|(darkolivegreen)|(darkorange)|(darkorchid)|(darkred)|(darksalmon)|(darkseagreen)|(darkslateblue)|(darkslategray)|(darkslategrey)|(darkturquoise)|(darkviolet)|(deeppink)|(deepskyblue)|(dimgray)|(dimgrey)|(dodgerblue)|(firebrick)|(floralwhite)|(forestgreen)|(fuchsia)|(gainsboro)|(ghostwhite)|(gold)|(goldenrod)|(gray)|(green)|(greenyellow)|(grey)|(honeydew)|(hotpink)|(indianred)|(indigo)|(ivory)|(khaki)|( |
OlderNewer