| Key | Result |
|---|---|
v |
select |
y |
copy (yank) |
c |
change |
d |
delete |
This file contains hidden or 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
| /** | |
| * vertex.js — single-file library combining: | |
| * | |
| * 1. VQuery — DOM layer (hn.js-inspired, jQuery surface-compatible) | |
| * 2. Reconciler — Fiber-based React clone (pomb.us architecture + hooks) | |
| * 3. template — Mustache template engine + component loader (Vertex.template) | |
| * 4. Router — Backbone-style hash router (class-based + singleton) | |
| * 5. Glue — useHash hook, unified Vertex namespace | |
| * | |
| * jQuery compatibility: if jQuery / $ already exist on the page they are |
This file contains hidden or 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
| #! /bin/bash | |
| find ~/git2 -name update-build-config.yml -exec sed -i '' 's/run: npm install --no-save --force yo/run: npm install --no-save --force yo@"4.x"/g' {} \; | |
| for repo in ~/git2/*; do | |
| cd $repo | |
| echo "Current directory is $repo" | |
| git pull | |
| git add .github/workflows/update-build-config.yml | |
| git checkout -b yo-downgrade |
Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.
In order to design a piece of software we need to “design” the team that is going to produce it.
This file contains hidden or 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
| // | |
| // This file contains a JavaScript tag function to let you | |
| // define regexes without needing to backslash-escape every | |
| // forward slash in the regex text; good for URLs. | |
| // | |
| function regex(tag) { | |
| return new RegExp(tag.raw, "i"); | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| # First parameter is the sub-directory-absolute-path | |
| # Second parameter is the link of the repo | |
| # A smart split to get the repo-name, with / as a separator | |
| REPO_NAME="$(echo $2 | grep -oE '[^/]+$')" | |
| git init $REPO_NAME | |
| cd $REPO_NAME |
This file contains hidden or 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
| /* | |
| * Very simple test runner for nodejs: | |
| * | |
| * Supports: | |
| * | |
| * before, after, beforeAll, afterAll | |
| * fixture object passed to each test, that before/after/beforeAll/afterAll can modify | |
| * -[t]est option on command line to pick tests to run | |
| * -[l]inear option on command to disable parallel | |
| * built in fixture logger, captures log lines, adds line numbers/file names/timestamps |
This file contains hidden or 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
| fay() { | |
| packages=$(awk {'print $1'} <<< $(yay -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi)) | |
| [ "$packages" ] && yay -S $(echo "$packages" | tr "\n" " ") | |
| } | |
| fzfman() { | |
| packages="$(awk {'print $1'} <<< $(pacman -Ss $1 | awk 'NR%2 {printf "\033[1;32m%s \033[0;36m%s\033[0m — ",$1,$2;next;}{ print substr($0, 5, length($0) - 4); }' | fzf -m --ansi --select-1))" | |
| [ "$packages" ] && pacman -S $(echo "$packages" | tr "\n" " ") | |
| } |
This file contains hidden or 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! s:format_qf_line(line) | |
| let parts = split(a:line, ':') | |
| return { 'filename': parts[0] | |
| \,'lnum': parts[1] | |
| \,'col': parts[2] | |
| \,'text': join(parts[3:], ':') | |
| \ } | |
| endfunction | |
| function! s:qf_to_fzf(key, line) abort |
This file contains hidden or 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
| server { | |
| listen 80; | |
| location / { | |
| auth_request /_oauth2_token_introspection; | |
| proxy_pass http://my_backend; | |
| } | |
| location = /_oauth2_token_introspection { | |
| internal; |
NewerOlder