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
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
Copyright (c) 2015
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, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
[Markdown Help](https://guides.github.com/features/mastering-markdown/) |
git commit -am $(echo generated: $(curl -s http://whatthecommit.com/index.txt)) |
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// add additional config below | |
summon: { | |
hotkey: 'Alt+Space' |
function get(obj, path, def) { | |
var fullPath = path | |
.replace(/\[/g, '.') | |
.replace(/]/g, '') | |
.split('.') | |
.filter(Boolean); | |
return fullPath.every(everyFunc) ? obj : def; | |
function everyFunc(step) { |
# zips a folder | |
import os | |
import sys | |
import argparse | |
import zipfile | |
def zip(src, dst): | |
fname = "%s.zip" % (dst) | |
if os.path.exists(fname): |
/** | |
* Get variables from command line | |
*/ | |
let cmd = {}; | |
let args = ['command', 'file', 'bucket', 'src'] | |
process.argv.forEach(function(val, index, array) { | |
if (array.length === 4) { | |
cmd[args[index]] = val; | |
} | |
}); |