Drink | Caffeine (mg/fl.oz.) |
---|---|
Brewed Coffee | 20.375 |
Espresso | 51.33 |
Dr. Pepper | 3.42 |
This file contains hidden or 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
// returns true or false if near the bottom of a page | |
var nearEnd = function(threshold) { | |
return $(window).scrollTop() + $(window).height() + threshold >= $(document).height() | |
} |
This file contains hidden or 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 osascript(script) | |
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten | |
end | |
osascript <<-END | |
tell application "Finder" | |
display dialog "Hello" | |
end tell | |
END |
This file contains hidden or 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
--- | |
--- | |
// other styles |
This file contains hidden or 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 bash | |
cd /home/web/site_orig | |
git pull origin 4.0 | |
echo 'Building Jekyll site.' | |
bundle install && rake build | |
rm -rf /home/web/site/* | |
cp -r _site/* /home/web/site/ | |
echo 'Done!' |
This file contains hidden or 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
# Credentials | |
set imap_user = '[email protected]' | |
set imap_pass = 'GMAIL_PASSWORD' | |
# Servers | |
set smtp_url = 'smtp://[email protected]:587' | |
set smtp_pass = 'GMAIL_PASSWORD' | |
# Meta | |
set from = '[email protected]' |
This file contains hidden or 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
user www www; | |
worker_processes 2; | |
events { | |
worker_connections 2000; | |
} | |
http { | |
gzip on; | |
gzip_types |
This file contains hidden or 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
// red | |
@red: #ee3f35; | |
// orange | |
@orange: #f6921c; | |
// yellow | |
@yellow: #e9c800; | |
// green |
This file contains hidden or 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
rsync -crzi --delete ./_site/ ubuntu@webserver:~/site/ | |
# -c (checksum) - ensures that unchanged files are not pushed | |
# -r (recursive) - recursive sync | |
# -z (compress) - compression for speed and conservation of bandwidth | |
# -i (itemize) - itemized output | |
# --delete - deletes extraneous files from server | |
# ./_site/ - local directory to sync | |
# ubuntu - remote username | |
# @webserver - webserver location |
This file contains hidden or 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
{ | |
"postData": { | |
"title": "Post Title", | |
"date": "2014-05-01" | |
} | |
} |