Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
"""Count words.""" | |
count={} | |
def count_words(s, n): | |
"""Return the n most frequently occuring words in s.""" | |
wordlist = s.split() | |
wordfreq = [wordlist.count(p) for p in wordlist] | |
zip_l=dict(zip(wordlist,wordfreq)) | |
sort=sorted(zip_l.iteritems(),key=lambda(k,v):(-v,k)) |
--ui bdd | |
--reporter dot | |
-r test/helpers/setup | |
-w | |
-G |
import chai from 'chai' | |
import chaiAsPromised from 'chai-as-promised' | |
import dotenv from 'dotenv' | |
import path from 'path' | |
chai.use(chaiAsPromised) | |
dotenv.config({ | |
path: path.resolve(process.env.PWD, 'test', 'helpers', './.env') | |
}) |
// @remove-on-eject-begin | |
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
// @remove-on-eject-end |
import * as firebase from 'firebase' | |
if (!firebase.apps.length) { | |
firebase.initializeApp({ | |
apiKey: 'your_api_key', | |
authDomain: 'your_auth_domain', | |
databaseURL: 'your_database_url', | |
projectId: 'your_project_ir', | |
storageBucket: 'your_storage_bucket', | |
messagingSenderId: 'your_messaging_sender_id' |
{ | |
"files.trimTrailingWhitespace": true, | |
"emmet.triggerExpansionOnTab": true, | |
"javascript.validate.enable": false, | |
"editor.renderWhitespace": "boundary", | |
"editor.tabSize": 2, | |
"editor.minimap.enabled": false, | |
"editor.tabCompletion": true, | |
"editor.fontLigatures": true, | |
"terminal.integrated.fontSize": 14, |