This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current window
| const minute = 60; | |
| const hour = minute * 60; | |
| const day = hour * 24; | |
| const week = day * 7; | |
| const month = day * 30; | |
| const year = day * 365; | |
| /** | |
| * Convert a date to a relative time string, such as | |
| * "a minute ago", "in 2 hours", "yesterday", "3 months ago", etc. |
| function secretSanta(...names) { | |
| const randomized = [...names].sort(() => Math.random() - Math.random()); | |
| const derrangement = [...randomized] | |
| derrangement.unshift(derrangement.pop()) // shifting ensures a derrangement of the randomized list | |
| return Object.fromEntries(randomized.map((name, idx) => [name, derrangement[idx]])) | |
| } | |
| secretSanta('Alice', 'Bob', 'Carter', 'David', 'Emily') | |
| // { Carter: 'Emily', Bob: 'Carter', David: 'Bob', Alice: 'David', Emily: 'Alice' } |
| #include <Keyboard.h> | |
| using namespace std; | |
| // you MUST install ArduinoSTL library by Mike Matera | |
| #define KEY_DELAY 200 | |
| // pins 2, 3, 4, 5, 6, 7, 8, 9, 10, 16 | |
| #define KEY0 2 | |
| #define KEY2 3 | |
| #define KEY3 4 | |
| #define KEY4 5 |
| [alias] | |
| co = checkout | |
| cob = checkout -b | |
| md = merge develop | |
| cm = commit -a -m | |
| s = status | |
| b = branch | |
| graph = log --graph -100 --branches --remotes --tags --format=format:'%Cgreen%h %Cresetβ’ %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order | |
| precommit = diff --cached --diff-algorithm=minimal -w | |
| cod = checkout develop |
| ############################################################################## | |
| # @class UncertainValue | |
| # (c) 2018 Kyle West - [email protected] | |
| # MIT License. See: [Licensing Info](https://opensource.org/licenses/MIT) | |
| # | |
| # Create a value from a random +/- uncertainty which can be treated like a | |
| # float or integer. | |
| # | |
| # x = UncertainValue(50, 5) # <--- random sample from 45 to 55. | |
| # |
| <!doctype html> | |
| <html> | |
| <head> | |
| <base href="https://polygit.org/components/"> | |
| <!-- <script src="webcomponentsjs/webcomponents-lite.min.js"></script> --> | |
| <link rel="import" href="paper-input/paper-input.html"> | |
| <link rel="import" href="paper-button/paper-button.html"> | |
| </head> | |
| <body> |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current windowPeople
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |