Skip to content

Instantly share code, notes, and snippets.

Pitt Pauly Pitt-Pauly

Block or report user

Report or block Pitt-Pauly

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Pitt-Pauly
Pitt-Pauly / keybase.md
Last active Mar 6, 2019
Keybase ID proof
View keybase.md

Keybase proof

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:

@Pitt-Pauly
Pitt-Pauly / README.md
Last active Oct 26, 2018
VSCode & NVM Unity launcher + script
View README.md

Launch VSCode with the default Node version set - via Unity

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 :)

@Pitt-Pauly
Pitt-Pauly / .bash_prompt
Last active Jul 31, 2018
My pretty prompt!
View .bash_prompt
#!/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.
@Pitt-Pauly
Pitt-Pauly / StringReplaceBenchmark.py
Created Jun 28, 2017
Python string replacement benchmark
View StringReplaceBenchmark.py
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)
You can’t perform that action at this time.