Skip to content

Instantly share code, notes, and snippets.

@netwjx
netwjx / key-mappings.vim
Created August 21, 2019 02:46
Vimium Options Custom key mappings
# Insert your preferred key mappings here.
# 帮助, 默认键容易和网页现有快捷键冲突
map :? showHelp
unmap ?
# m键和 Confluence 评论快捷键冲突, mark + goto mark几乎用不到
unmap m
unmap `
const beijing = {
social_fund: {
min: 2820,
max: 14096,
// rate: .105
rate: {
medical: .02,
endowment: .08,
unemployment: .005
@anvaka
anvaka / 00.Intro.md
Last active June 28, 2024 12:23
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active June 28, 2024 19:55
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@branneman
branneman / better-nodejs-require-paths.md
Last active June 29, 2024 16:00
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions