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
[ | |
// Auto Complete | |
{ | |
"key": "ctrl+enter", | |
"command": "editor.action.triggerSuggest", | |
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly" | |
}, | |
// Focus Editor View | |
{ |
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 countMatchingBrackets(str) { | |
const stack = [] | |
let result = 0 | |
const isMatch = (start, end) => start === '(' && end === ')' | |
for (let i = 0; i < str.length; i++) { | |
const prev = stack[stack.length - 1] | |
const curr = str[i] | |
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 ML = (arr) => { | |
const gen = (arr) => { | |
let isLeaf = true; | |
const g = arr.reduce((res, val) => { | |
if (Array.isArray(val)) { | |
res.push(`(${gen(val)})`); | |
isLeaf = false; | |
} else { | |
res.push(`"${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
find . -name .git -execdir bash -c 'echo -en "\033[1;31m"repo: "\033[1;34m"; basename "`git rev-parse --show-toplevel`"; git status -s' \; |
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
body { | |
background-color: #282C35; | |
} | |
body, table, form, td, th, p { | |
line-height: 1.6; | |
color: #bebebe; | |
} | |
a { |
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
Page({ | |
data: { | |
shareCardPaintingData: {}, | |
shareCardVisible: false, | |
shareCardImagePath: '', | |
}, | |
initShareCard() { | |
wx.showLoading({ |
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
sudo spctl --master-disable | |
xattr -cr /path/to/application.app |
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
local hotkey = require 'hs.hotkey' | |
local screen = require 'hs.screen' | |
local window = require 'hs.window' | |
local layout = require 'hs.layout' | |
local geometry = require 'hs.geometry' | |
local application = require 'hs.application' | |
local hints = require 'hs.hints' | |
local grid = require 'hs.grid' | |
local logger = require 'hs.logger' | |
local fnutils = require 'hs.fnutils' |