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
console.log($response) | |
const newResp = { | |
status: 302, | |
headers: { location: 'https://google.com' }, | |
// body: "文档说 body 的长度大于0,会自动计算headers中的content-length" | |
} | |
console.log(newResp) | |
$done(newResp) |
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
global: | |
check_for_updates_on_startup: true | |
show_in_menu_bar: true | |
show_profile_name_in_menu_bar: false | |
profiles: | |
- complex_modifications: | |
parameters: | |
basic.to_if_alone_timeout_milliseconds: 1000 | |
rules: | |
- manipulators: |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
# hotkey | |
unbind C-b | |
unbind C-a | |
set -g prefix S-F4 | |
# reload | |
bind -n M-r source-file ~/.tmux.conf \; display-message "Config reloaded" | |
# last window | |
bind tab last-window |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"devices": [ | |
{ |
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
"use strict" | |
Beautifier = require('./beautifier') | |
prettydiff = require("prettydiff") | |
_ = require('lodash') | |
module.exports = class VueBeautifier extends Beautifier | |
name: "Vue Beautifier" | |
options: | |
Vue: true |
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 cdp | |
.. | |
commandline -f repaint ^/dev/null | |
end | |
function fish_user_key_bindings | |
bind \cd 'cdp' | |
end |
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
.tab-bar .tab.active::after { | |
opacity: 0; | |
} | |
.tab-bar .tab::before { | |
background: none; | |
} | |
.tab-bar { | |
box-shadow: none; | |
} |
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
const conf = require('./conf').twit; | |
const Twit = require('twit') | |
const Rx = require('rxjs/Rx') | |
const subject = new Rx.Subject() | |
.map(({ | |
text, | |
user: { | |
screen_name | |
} |
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 keyhac import * | |
def configure(keymap): | |
# 默认编辑器 | |
keymap.editor = 'Atom' | |
# 改键 | |
keymap_global = keymap.defineWindowKeymap() | |
# 按一下左 Shift 为 F13 | |
keymap_global[ 'O-LShift' ] = '(105)' |