Skip to content

Instantly share code, notes, and snippets.

@mixin findIcon($icon, $stack, $isHover, $hoverModifyer){
@each $i in $stack {
@if nth($i,1) == $icon{
width: nth($i,2); height: nth($i,3); background-position: nth($i,4) nth($i,5);
@if $isHover{
background-position: nth($i,4) $hoverModifyer;
}
}
}
@include sprite('beta-banner');
@include sprite('main-bug');
@include sprite('main-bug', 'hover');
@include sprite('minimize-bug' );
@include sprite('minimize-bug', 'hover' );
opts =
color : $blueberry
lines : 17
length : 4
width : 2
radius : 15
corners : 0
rotate : 90
direction : 1
speed : 1.2
$someEl.animate
opacity:3
,
duration:200
easing:"EaseInOutQuint"
cloudCreditGuage = new PagodaCloudCreditGuage()
cloudCreditGuage.build( $("#cloud-credit-guage-holder") )
cloudCreditGuage.populate(
billingPeriodStarts, # UTC timestamp
billingPeriodEnds, # UTC timestamp
freeEnds, # UTC timestamp
isOwnedByHal # Boolean
)
listenForScrollToPoint : () ->
@breakPoint = $(".some-element").top
$(window).bind('scroll', @onWindowScroll )
onWindowScroll : (e) =>
if this.breakPoint < $(window).scrollTop()
$(@brick).addClass('canvas-fixed')
else
$(@brick).removeClass('canvas-fixed')
{
"version": 3,
"file": "sphere.js",
"sourceRoot": "",
"sources": [
"sphere.js"
],
"names": [],
"mappings": "AAAA;CAAA,KAAA,IAAA;KAAA;oSAAA;CAAA;CAAA,CAAM;CAEL;CAAA;;CAAc,CAAA,CAAA,CAAA,gBAAE;CACb,CAAA,CADa,CAAA,EAAD;CACZ,CAAyB,IAAzB,WAAA,EAAA,yBAAM;CADT,IAAc;;CAAd;;CAFwB,EAAG;;CAA5B,CAMA,CAAI,CAAH,MAAD;CANA"
}
{
"dependencies": [
"es5-shimify",
"json2ify",
"jqueryify",
"spine",
"spine/lib/local",
"spine/lib/ajax",
"spine/lib/route",
"spine/lib/tmpl",
# this file lives at: /app/lib/MyClass.coffeescript
class MyClass extends LibraryClass
constructor: ( args ) ->
super( args )
#!/usr/bin/env ruby
#
# Assignment block tidier, version 0.1.
#
# Copyright Chris Poirier 2006.
# Licensed under the Academic Free License version 3.0.
#
# This script can be used as a command for TextMate to align all
# of the equal signs within a block of text. When using it with
# TextMate, set the command input to "Selected Text" or "Document",