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
.thumb-container { | |
width: 266px; | |
height: 177px; | |
overflow: hidden; | |
position: relative; | |
} | |
.thumb { | |
position: absolute; | |
} |
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/python -O | |
import random | |
import string | |
import subprocess | |
import threading | |
import time | |
# get a list of words with only ASCII characters, and surround them with ^ and $ to demarcate the word boundaries | |
words = [w.strip().lower() for w in open("/usr/share/dict/words").readlines()] | |
words = ["^" + w + "$" for w in words if w != "" and all([c in string.ascii_lowercase for c in w])] |
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
################################## | |
## ROUTE WWW TO ROOT FOR SEO | |
################################## | |
server { | |
listen 80; | |
server_name www.junkey.com; | |
# forward everything from www.junkey.com to junkey.com | |
return 301 $scheme://junkey.com$request_uri; | |
} |
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
(langohr.core/connect { | |
:username "harvey" | |
:password "Elwood" | |
:host "bunny.junkey.com" | |
:virtual-host "/" | |
:port 5672 | |
:type "direct" | |
:exchange "sorting-room" | |
:queue "po-box" | |
:durable true |
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
(let [conn (langohr.core/connect)] | |
(comment do-stuff)) |
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
/** corrections for displaying gists in iOS **/ | |
.gist { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; | |
line-height:20px !important; | |
} | |
.gist .line, | |
.gist .line-number { | |
font-family: Consolas,"Liberation Mono",Courier,monospace; | |
font-size: 12px !important; |
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
// set the initial values | |
$a = 100; | |
$b = 200; | |
// swap them! | |
$a = $a + $b; // $a == 300 | |
$b = $a - $b; // $b == 100 | |
$a = $a - $b; // $a == 200 | |
// done! |
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
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″ /> | |
<style> | |
/* ———–Smartphone View———– */ | |
@media only screen and (max-width : 800px) { | |
/* All smartphone rules go inside here */ | |
} | |
/* ———–Tablet View———– */ | |
@media only screen and (max-width : 1180px) and (min-width : 801px) { |
NewerOlder