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
background: -webkit-linear-gradient(90deg, #614385 10%, #516395 90%); /* Chrome 10+, Saf5.1+ */ | |
background: -moz-linear-gradient(90deg, #614385 10%, #516395 90%); /* FF3.6+ */ | |
background: -ms-linear-gradient(90deg, #614385 10%, #516395 90%); /* IE10 */ | |
background: -o-linear-gradient(90deg, #614385 10%, #516395 90%); /* Opera 11.10+ */ | |
background: linear-gradient(90deg, #614385 10%, #516395 90%); /* W3C */ | |
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
<script type="text/javascript"> | |
document.write(new Date().getFullYear()); | |
</script> |
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
# http://stackoverflow.com/questions/18833759/python-prime-number-checker | |
import math | |
def is_prime(n): | |
if n % 2 == 0 and n > 2: | |
return False | |
return all(n % i for i in range(3, int(math.sqrt(n)) + 1, 2)) |
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
var getDailyHex = function(){ | |
var d = new Date(); | |
var month = (d.getMonth() + 1).toString(); | |
var day = function(){ if (d.getDate() < 10) { return '0' + d.getDate() } return d.getDate().toString() }; | |
var year = (d.getFullYear() - 2000).toString(); | |
var dailyHex = month + day() + year; | |
return dailyHex; | |
} | |
var getSecondsHex = function(){ |
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
function isPalindrome(p){ | |
if (p.length == 0 || p.length == 1) { | |
return true; | |
} else if (p[0] == p[p.length - 1]) { | |
return isPalindrome(p.slice(1, p.length - 1)); | |
} else { | |
return false; | |
} | |
} |
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
function fib(x){ | |
if (x == 0 || x == 1) { | |
return 1; | |
} else { | |
return fib(x-1) + fib(x-2); | |
} | |
} |
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 method_missing(id, *args) | |
redirect_to '/404.html' | |
end |
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
alias 'm.'='mvim .;echo "Opening MacVim..."' |
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
git pull [optional filename] && git push [optional filename] |
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
sass --watch public/sass:public/stylesheets --style compact |
OlderNewer