Skip to content

Instantly share code, notes, and snippets.

View Sunyang730's full-sized avatar
💭
Working

Dennis Yang Sunyang730

💭
Working
  • Atlassian
  • San Jose, California
View GitHub Profile
@Sunyang730
Sunyang730 / tab-trigger.js
Created August 21, 2017 17:21 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{
@Sunyang730
Sunyang730 / bump
Created March 31, 2017 14:21
A bash script to bump versions for both package.json and bower.json, then publishes to npm
#!/bin/bash
function bump {
output=$(npm version ${release} --no-git-tag-version)
version=${output:1}
search='("version":[[:space:]]*").+(")'
replace="\1${version}\2"
sed -i ".tmp" -E "s/${search}/${replace}/g" "$1"
rm "$1.tmp"
@Sunyang730
Sunyang730 / Install_tmux
Created March 3, 2017 22:41 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@Sunyang730
Sunyang730 / tmux-cheatsheet.markdown
Created March 3, 2017 22:41 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶