Skip to content

Instantly share code, notes, and snippets.

View jasonliao's full-sized avatar
💭
😶where's my contribution

Jason Liao jasonliao

💭
😶where's my contribution
View GitHub Profile
@jasonliao
jasonliao / settings.json
Created November 5, 2020 13:55
vscode settings.json
{
"todo-tree.tree.showScanModeButton": false,
"window.zoomLevel": 2,
"editor.fontSize": 15,
"editor.lineHeight": 22,
"editor.fontFamily": "JetBrains Mono",
"workbench.colorTheme": "Atom One Dark",
"editor.fontWeight": "700",
"workbench.iconTheme": "material-icon-theme",
"diffEditor.renderSideBySide": true,
@jasonliao
jasonliao / keybindings.json
Created November 5, 2020 11:30
vscode keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+]",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.terminal.focusNextPane",
@jasonliao
jasonliao / getPaths.ts
Created August 17, 2020 02:34
get object all paths. use in object to excel or csv
/*
const obj = {
a 1,
b: [{
c: 1,
d: [{
e: 1
}, {
e: 2
const PromiseStatus = Symbol();
const PromiseValue = Symbol();
const resolveCallback = Symbol();
const rejectCallback = Symbol();
const resolve = Symbol();
const reject = Symbol();
const PROMISE_STATES = {
PENDING: Symbol(),
FULFILLED: Symbol(),
@jasonliao
jasonliao / bettershot.js
Last active May 17, 2017 07:03
phantomjs capture lazy load page
var page = require('webpage').create()
var config = {
screen_width: 650,
screen_height: 1334,
user_agent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1 UTest/1.0.0',
resource_wait: 500,
scroll_distance: 600,
url: 'https://gist.github.com',
screenshot_name: 'gist.png'
@jasonliao
jasonliao / vim-plugins.md
Created April 5, 2017 15:03
vim plugins list
  • ctrlp.vim
  • delimitMate
  • emmet-vim
  • es.next.syntax.vim
  • indentLine
  • nerdtree
  • plugins.txt
  • tern_for_vim
  • vim-javascript
  • vim-javascript-syntax
@jasonliao
jasonliao / .tern-project
Created April 4, 2017 12:20
tern_for_vim config
{
"libs": [ "browser", "jquery"],
"loadEagerly": [ "importantfile.js" ],
"plugins": {
"node": {},
"complete_strings": {},
"es_modules": {},
"requirejs": {}
}
}
fis.match('/src/**.js', {
parser: fis.plugin('babel-5.x', {
optional: ["es7.decorators", "es7.classProperties"],
stage: 0
}),
rExt: '.js'
});
fis.match('*.scss', {
parser: fis.plugin('node-sass'),
@jasonliao
jasonliao / .vimrc
Last active August 16, 2018 06:21
my awesome `.vimrc`
execute pathogen#infect()
filetype plugin on
filetype indent on
set history=700
set autoread
set so=7
set wildmenu
set ruler
set cmdheight=1