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
Layer.define "alternateBackgroundColor", | |
exportable: true | |
default: "" | |
get: -> | |
@_getPropertyValue "alternateBackgroundColor" | |
set: (alternateBackgroundColor) -> | |
return if alternateBackgroundColor == @_getPropertyValue "alternateBackgroundColor" | |
@_setPropertyValue "alternateBackgroundColor", alternateBackgroundColor | |
originalBackgroundColor = @backgroundColor |
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
load = (scripts...) -> | |
for script in scripts | |
script = "#{script}.coffee" if script.indexOf '.' == -1 | |
eval CoffeeScript.compile(Utils.domLoadDataSync(script)) | |
load 'finderWindow', 'appStateMachine' |
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
Layer.prototype.destroyRecursively = -> | |
layer.destroyRecursively() for layer in @subLayers | |
@destroy() | |
class Configurator | |
constructor: (options) -> | |
@values = {} | |
@options = options | |
@callbacks = {} |
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
map.with_options :controller => 'user_sessions' do |session| | |
session.callback '/callback', :action => 'callback' | |
session.logout '/logout', :action => 'destroy' | |
session.login '/login', :action => 'new' | |
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
#! /usr/bin/ruby | |
## Elliott Kember's Delete MM_ Script. | |
# I bet you thought I wouldn't write this! | |
## Usage: | |
# $ ruby dreamcatcher.rb emailaddress password | |
## dreamcatcher.rb |
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
# Tested on Ubuntu 8.10 | |
apt-get update | |
# Git | |
apt-get install git-core -y | |
# Apache |
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
/* Elliott Kember's jSnake, version 3 */ | |
// Usage: new Snake() | |
// Adding options: new Snake({ width: 30, mouse_chasing: true }) | |
// TODO: Add list of options | |
// Compass bearings for directions | |
UP = 0; | |
RIGHT = 90; | |
DOWN = 180; | |
LEFT = 270; |
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
$(document).ready(function(){ | |
if($.browser.safari){ | |
height = parseInt($('#wrapper').css('height')); | |
number = height / 100; | |
for(i=0;i<number;i++){ | |
$("<a name="+i+"></a>").css('position','absolute').css('top', i*100+'px').appendTo($('body')); | |
} | |
} | |
}) |
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
// Thanks to Joshua Hatfield (@fjhat) for the pluginizing! | |
(function($){ | |
$.fn.ek3d = function(options) { | |
var defaults = { | |
strength: 5, | |
hex: '#aaaaaa' | |
}; | |
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
.outline-disclosure li {padding: 1px 0 1px 14px;} | |
body.platform-mac.platform-mac-snowleopard .monospace, | |
body.platform-mac.platform-mac-snowleopard .source-code {font-family: 'Lucida Grande', monospace;} |
OlderNewer