- enable emmet on tab
- enable emmet in JSX
- enable font ligatures
- use Firacode font
- open external terminal
- setting sync
This file contains 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
#!/usr/bin/env python3 | |
from __future__ import print_function | |
from contextlib import closing | |
import os | |
import sys | |
import argparse | |
import fileinput | |
def text_replace(fileToSearch, textToSearch, textToReplace): | |
with closing(fileinput.FileInput(fileToSearch, inplace=True, backup='.bak')) as file: |
This file contains 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
from __future__ import print_function | |
import os | |
import sys | |
import argparse | |
import boto3 | |
from botocore.exceptions import ClientError | |
def upload_to_s3(bucket, artefact, is_folder, bucket_key): | |
""" | |
Uploads an artefact to Amazon S3 |
This file contains 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
/** | |
* 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; | |
} | |
}); |
This file contains 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
# zips a folder | |
import os | |
import sys | |
import argparse | |
import zipfile | |
def zip(src, dst): | |
fname = "%s.zip" % (dst) | |
if os.path.exists(fname): |
This file contains 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 get(obj, path, def) { | |
var fullPath = path | |
.replace(/\[/g, '.') | |
.replace(/]/g, '') | |
.split('.') | |
.filter(Boolean); | |
return fullPath.every(everyFunc) ? obj : def; | |
function everyFunc(step) { |
This file contains 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
// 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' |
This file contains 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
git commit -am $(echo generated: $(curl -s http://whatthecommit.com/index.txt)) |
This file contains 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
[Markdown Help](https://guides.github.com/features/mastering-markdown/) |