- Download the gist
npm install
npm test
This would lead you to the following output:
const { | |
graphql, | |
GraphQLSchema, | |
GraphQLObjectType, | |
GraphQLString, | |
} = require('graphql'); | |
const schema = new GraphQLSchema({ | |
query: new GraphQLObjectType({ | |
name: 'Query', |
{} |
/* | |
Inviteyoself for Google Doc | |
=========================== | |
Google doc currently records who edited the file if the file is *not* set to `Anyone can edit'. | |
We cannot track the author of edits in documents that is set to `Anyone with the link can edit'. | |
This script adds a trigger to a Google Form to automatically setup submitted email to become an | |
editor of a specific Google document. |
KB Article Number(s): 2704299 | |
Language: All (Global) | |
Platform: i386 | |
Location: (http://hotfixv4.microsoft.com/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix387976/7600/free/448094_intl_i386_zip.exe) | |
----------------------------------------------------------- | |
KB Article Number(s): 2704299 | |
Language: All (Global) | |
Platform: x64 | |
Location: (http://hotfixv4.microsoft.com/Windows%207/Windows%20Server2008%20R2%20SP1/sp2/Fix387976/7600/free/448095_intl_x64_zip.exe) |
Tested under webpack-dev-server 1.7.0.
npm install
npm start
// Webpack development server with hot module replacement enabled | |
// Ref: http://webpack.github.io/docs/webpack-dev-server.html#combining-with-an-existing-server | |
// | |
var serverCfg = require('./config'); | |
if(process.env.NODE_ENV !== 'production') { | |
var WebpackDevServer = require("webpack-dev-server"), | |
webpackCfg = require("../client/config/webpack"), | |
webpack = require("webpack"); | |
(new WebpackDevServer(webpack(webpackCfg), { |
import unittest | |
import 你要測的東西 | |
class XxxSpec(unittest.TestCase): | |
def setUp(self): | |
""" | |
每個 test 前都會執行的東西。你可以塞一些常用的東西進 self。 | |
""" | |
pass | |
# Definition for a binary tree node | |
# class TreeNode: | |
# def __init__(self, x): | |
# self.val = x | |
# self.left = None | |
# self.right = None | |
class BSTIterator: | |
# @param root, a binary search tree's root node | |
def __init__(self, root): |
/* | |
Recursively traverses the given dir and returns a promise that resolves to | |
a list of files. | |
The promise is resolved only after all sub-directories being traversed. | |
*/ | |
var walkAsync = function(path) { | |
return statAsync(path).then(function(stat){ | |
if(stat.isDirectory()){ |