The current height of the Neuse River in Clayton, NC
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
def shit_happens(): | |
if 2 + 2 >= 5: | |
#if shit happens, do this | |
print('woo hoo') | |
elif 2 + 2 >= 4: | |
#if that last didn't happen, do this | |
print('yay') | |
else: | |
""" | |
If none of that happened, do this |
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
def shit_happens(num): | |
""" (num) | |
Take 2 on lucpet's function. | |
This one takes a num, adds it to itself, and then compares | |
it to various static numbers. | |
>>> shit_happens(3) | |
woo hoo |
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
use Term::ANSIColor; | |
#Open a text file with a list of users to highlight | |
open our $handle, '<', "/home/<your username>/tweetersToHighlight.txt"; | |
chomp(our @customConsole = <$handle>); | |
#Convert array to hash/dictionary | |
our %users = map { $_ => 1 } @customConsole; | |
close $handle; | |
#Setup ttytter hook | |
$handle = sub { |
I hereby claim:
- I am jestre on github.
- I am scottschulz (https://keybase.io/scottschulz) on keybase.
- I have a public key ASBsq26Q6AdVnoLxGFxM-0myfG8jgycDPZTmkHUrZCxu7wo
To claim this, I am signing this object:
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
# Bullet Train theme for iTerm 2 install | |
$ git clone https://github.com/powerline/fonts.git | |
$ cd fonts | |
$ ./install.sh | |
$ cd ~/.oh-my-zsh/custom/themes | |
$ curl -O https://raw.githubusercontent.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme | |
$ vim ~/.zshrc |