I hereby claim:
- I am pitt-pauly on github.
- I am ppitt (https://keybase.io/ppitt) on keybase.
- I have a public key ASBNmjnDZBWmwbM98hU52jpOyFztQOy-Y0_mlUkveW8iygo
To claim this, I am signing this object:
// ref: https://stackoverflow.com/questions/49541235/how-to-get-content-of-redux-store-in-console-without-devtools | |
function getStore() { | |
const appStates = [] | |
const reactRoot = document.getElementById('root') | |
let base | |
try { | |
base = reactRoot._reactRootContainer._internalRoot.current | |
} catch (e) { | |
console.log('Could not get internal root information from reactRoot element') |
I hereby claim:
To claim this, I am signing this object:
So VSCode has an annoying bug that forces people to run nvm set
before launching VSCode for it to recognise which node binary to use.
Since I am lazy I made a unity .desktop
shortcut for it which launches a small script that does exactly that!
This could be extended in the future to include the option to use other Node versions too, and launching VSCode with them with the right click options.
I hope this saves people some time :)
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch of the current git/mercurial repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
import re, string, timeit | |
s = "string. With. Punctuation" | |
exclude = set(string.punctuation) | |
table = string.maketrans("","") | |
regex = re.compile('[%s]' % re.escape(string.punctuation)) | |
def test_set(s): | |
return ''.join(ch for ch in s if ch not in exclude) |