I hereby claim:
- I am samuelcotterall on github.
- I am samuelcotterall (https://keybase.io/samuelcotterall) on keybase.
- I have a public key ASDCUvlRBQ0MZrwwUUIhN0dQqtl80iB8vqWjuwxmbZSQKQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"editor.fontSize": 13, | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": false, | |
"editor.renderWhitespace": "all", | |
"editor.tabSize": 2, | |
"workbench.iconTheme": "vs-seti", | |
"editor.cursorStyle": "line-thin", | |
"trailing-spaces.trimOnSave": true, | |
"sync.gist": "", |
// declarations | |
var positions = []; | |
// Returns a random integer between min (included) and max (excluded) | |
// Using Math.round() will give you a non-uniform distribution! | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min)) + min; | |
} | |
// generate random positions |
add_filter('show_admin_bar', '__return_false'); |
# compass-to-docksend.rb (https://gist.github.com/samuelcotterall/5320424) | |
# | |
# Instructions: Put this at the end of config.rb | |
# Execute AppleScript inside Ruby. I stole this from here: http://porkrind.org/missives/calling-applescript-from-ruby/ | |
def osascript(script) | |
system 'osascript', *script.split(/\n/).map { |line| ['-e', line] }.flatten | |
end | |
# Send to Transmit |
$(window).load(function () { | |
$('.posts').masonry(); | |
$('.masonryWrap').infinitescroll({ | |
debug: true, // Remove this before going live | |
navSelector : "div#navigation", // selector for the paged navigation (it will be hidden) | |
nextSelector : "div#navigation a#nextPage", // selector for the NEXT link (to page 2) | |
itemSelector : ".entry", // selector for all items you'll retrieve | |
bufferPx : 10000, | |
extraScrollPx : 11000, |
a:link, a:visited, a:hover, a:active { | |
color:#000; | |
text-decoration: none; | |
} | |
a:hover { | |
text-decoration: underline; | |
} |
<div class="toggle"> | |
<p>24 Results</p> | |
<a href="#">Rating<span></span></a> | |
</div> | |
<ul class="stay-list"> | |
<li> | |
<div> | |
<h3><a href="http://example.com">Title</a></h3> | |
<p>From £65.00</p> |