- 1. Avoid all exercise
- 2. Eat what you're told
- 3. Don't waste your life in bed
- 4. Live better through chemistry
- 5. Maximize your screen time
- 6. If you want it, buy it
- 7. Can't afford it? Get it anyway!
- 8. Give 100 percent to your work
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
const isoFetch = require('isomorphic-fetch'); | |
const Dropbox = require('dropbox').Dropbox; | |
const util = require('util'); | |
exports.handler = function(context, event, callback) { | |
log(context); | |
log(event); | |
const whitelisted_numbers = [ | |
context.HCG_NUM_1, |
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
// NOTE: | |
// Must have xray installed. | |
// Use `npm init -y && npm install -S x-ray` in an empty directory. | |
// Here's the link for npm: https://docs.npmjs.com/getting-started/installing-node | |
// NOTE: | |
// Here's the url of the Jargon File: http://www.catb.org/jargon/html/ | |
'use strict'; |
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
#!/usr/bin/env ruby | |
# A simple hash table implementation in Ruby using Ruby's built-in | |
# prehashing methods, chaining, and variable load factors. | |
# | |
# Author:: Hunter Gatewood | |
# A linked-list node with key, value, and next node attributes. | |
class Node | |
attr_accessor(:key, :val, :next_node) |
- 👍
:+1:
- 👎
:-1:
- 💯
:100:
- 🔢
:1234:
- 🥇
:1st_place_medal:
- 🥈
:2nd_place_medal:
- 🥉
:3rd_place_medal:
- 🎱
:8ball:
🅰️ :a:
- 🆎
:ab:
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
from random import choice | |
RUNS = 1_000_000 | |
first_3 = [] | |
def mean(lst): | |
return sum(lst) / len(lst) | |
for i in range(RUNS): |
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
1 | apple:lemon:lime | |
---|---|---|
2 | banana:lemon:grape | |
3 | apple | |
4 | pear:apple:banana | |
5 | strawberry | |
6 | orange | |
1 | banana | |
2 | pear | |
3 | strawberry | |
4 | kiwi:pear:orange:strawberry |
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
""" | |
Read in notes from the passed notes.json file and send to our Twitch channel. | |
Usage: `python3 play_notes.py <your notes.json file>` | |
Notes: | |
- Careful about getting rate limited! The limits per 30 seconds | |
are 30 messages for non-mods and 100 messages for mods. Pass that | |
limit and your IP gets banned for 8 hours. See | |
https://help.twitch.tv/customer/portal/articles/1302780-twitch-irc. | |
- Expects fields in notes.json to be filled out (pass, nick, notes). |
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
# Comb through plausible shoutkey.com URLs looking for redirections. | |
# | |
# Prints out URLs with valid redirects. Will also write them to a file | |
# if KNOWN_WORDS_LOC is not None. | |
# | |
# NOTES | |
# - Words list: https://github.com/first20hours/google-10000-english/blob/master/google-10000-english-usa.txt | |
# - Kill the process with Ctrl+Z since the requests module improperly | |
# catches exceptions |
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
"""order_movies.py | |
Sorts a list of movies stored in 'Movies to watch.txt'. | |
@author Hunter Gatewood | |
""" | |
FILE_NAME = 'Movies to watch.txt' | |
def sort_key(entry): | |
"""Form a sort key for ordering the movies. |
NewerOlder