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
# While fantastic, the suggestion functionality on the GitHub CoPilot CLI can be awkward to use due to long command names. | |
# Here are my suggested aliases for making it much quicker to work with. | |
# Usage: ?? [natural language instruction for the bash command you want to run] | |
# Example: ?? "print hello world to the console" -> Suggests 'echo "hello world"' | |
alias '??'="gh copilot suggest -t shell" | |
# Usage: git? [natural language instruction for the git command you want to run] | |
alias 'git?'="gh copilot suggest -t git" |
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
Show hidden characters
{ | |
// JavaScript/TypeScript | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | |
}, | |
"[typescript]": { | |
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | |
}, | |
"[javascriptreact]": { | |
"editor.defaultFormatter": "dbaeumer.vscode-eslint" |
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
My Awesome Sketch | |
Minimal | |
drag far right -> Full | |
expand -> Full | |
# screen expand -> Full ?? | |
Full | |
drag left -> Full | |
drag right -> Full | |
drag far left -> Minimal | |
minimise -> Minimal |
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
timer | |
idle | |
START -> work | |
work | |
TIME_UP -> break | |
STOP -> idle | |
break | |
TIME_UP -> work | |
STOP -> idle |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
/* | |
Custom roam theme using the Solarized Dark colour theme | |
https://en.wikipedia.org/wiki/Solarized_(color_scheme) | |
Credit to Felix Jamestin for the base of this theme: | |
https://www.felixjamestin.com/post/introducing-mono-a-themeset-for-roam-research | |
See https://roamresearch.com/#/app/help/page/fJRcVITNY for general Roam theming guidelines | |
Editing |
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
import sys | |
!{sys.executable} -m pip install numpy | |
# Source: https://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/ |
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
/* | |
I was confused about asynchronous errors in JavaScript and | |
React. This whole area is quite confusing so you may be too. | |
For example, how many of these questions can you confidently | |
answer? | |
- Imagine you have a function that throws an error that is | |
wrapped inside a try/catch. How will this function behave | |
differently if it is a) synchronous, b) asynchronous? |
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
jest.spyOn(window.navigator, 'language', 'get').mockReturnValue('it'); |
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
IsUserNewOrOld?* | |
new? -> WhichBucketNew? | |
old? -> WhichBucketOld? | |
WhichBucketOld? | |
hasLabsHoldback? -> AlphaA | |
hasLabsNonHoldback? -> AlphaB | |
noLabsHoldback? -> Holdback | |
noLabsNonHoldback? -> NonHoldback | |
NewerOlder