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
/** | |
* Hookshot v1.1 | |
* jQuery plugin for fragment anchors to scroll smoothly | |
* by Arthur Corenzan <arthur@corenzan.com> | |
* Creative Commons-Attribution-Share Alike | |
* http://creativecommons.org/licenses/by-sa/3.0 | |
* | |
* Usage: | |
* | |
* Target the anchors you want to enable smoothly |
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
/** | |
* jQuery plugin simple boilerplate v1.0 | |
* by Arthur Corenzan <arthur@corenzan.com> | |
* Creative Commons-Attribution-Share Alike | |
* http://creativecommons.org/licenses/by-sa/3.0 | |
*/ | |
(function($) { | |
//name your plugin | |
$.fn.PLUGIN = function(o) { |
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
/** | |
* Squire v1.0 | |
* Make targeted elements scroll with the window | |
* by Arthur Corenzan <arthur@corenzan.com> | |
* Creative Commons-Attribution-Share Alike | |
* http://creativecommons.org/licenses/by-sa/3.0 | |
* | |
* Under development... | |
*/ |
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/ruby | |
# Find out if given number is prime | |
# based on http://zmievski.org/2010/08/the-prime-that-wasnt by ANDREI ZMIEVSKI | |
# inspired by http://pastebin.com/PGT94gdF by MAURO BARALDI | |
def prime?(n) | |
n = '1' * n.to_i | |
n == '1' or !n[/^1?$|^(11+?)\1+$/] | |
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
" make vim more useful | |
set nocompatible | |
" enhance command-line completion | |
set wildmenu | |
" allow cursor keys in insert mode | |
set esckeys | |
" optimize for fast terminal connections |
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
//github.com/jed/140bytes/wiki/Byte-saving-techniques | |
Number.prototype.isPrime = function(n) { | |
var n = '1'.repeat(this); | |
return !n.match(/^1?$|^(11+?)\1+$/gi); | |
}; | |
// | |
String.prototype.repeat = function(n) { |
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
source 'http://rubygems.org' | |
gem 'fast-aes' |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
background: black linear-gradient(left, transparent, #f06); | |
} | |
div { | |
margin: 80px auto; |
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
body { background: #f0f0f0; font: 14px/1.4 sans-serif } | |
div { | |
background: white; | |
box-shadow: 0 0 4px #aaa; | |
width: 480px; | |
min-height: 120px; | |
margin: 20px auto; | |
padding: 16px 16px 0; | |
} | |
div div { |
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
body{font: 14px/1.6 sans-serif;} | |
* {margin: 0; padding: 0;} | |
body { | |
background: #666; | |
color: #f0f0f0; | |
} | |
a { | |
color: #fff; |
OlderNewer