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
require 'base64' | |
require 'RMagick' | |
include Magick | |
module Imager | |
class << self | |
def registered(app) | |
app.send :include, InstanceMethods | |
app.ready do |
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
=color-mixer($color-name, $color-hex) | |
$color-name: $color-hex | |
$color-name + Light: lighten($color-name, 8%) | |
$color-name + Lighter: lighten($color-name, 16%) | |
$color-name + Dark: darken($color-name, 8%) | |
$color-name + Dark: darken($color-name, 16%) | |
$purple | |
+color-mixer($purple, #a2385d) |
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
///// | |
/ YAML: data/some_stuff.yml | |
/ | |
/ awesome_stuff: | |
/ - title: Awesome Stuff #1 | |
/ author: Danny Palmer | |
/ content_tag: a-s-1 | |
/ | |
/ - title: Awesome Stuff #2 | |
/ author: Danny Palmer2 |
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).ready(function() { | |
var dropdownW = $('ul.dropdown').prev('a.dropdown').innerWidth(); | |
$('ul.dropdown').width(dropdownW); | |
$('a.dropdown').bind('click touchend', function(e) { | |
var dropdown = $(this).next('ul.dropdown') | |
if (!dropdown.is(':visible')) | |
{ | |
dropdown.show(); |
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
getSpeedySignature: (ofString) -> | |
sum = 0 | |
for i in [0..ofString.length] | |
sum += ofString.charCodeAt(i) | |
sum |
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" charset="utf-8"> | |
/* Creat a div shell variable to house the screenshot. We will be creating this and destroying this every time you click on a thumbnail link */ | |
var $tempDiv = $('<div id="screenshot" class="popup">' + | |
'<a class="close pngfix"></a>' + | |
'<div></div>' + | |
'</div>'); | |
/* No touchy */ | |
/* This will lightbox_me the tempDiv declared above, and fill it with the image */ | |
function loadImage() { |