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
var Tabs = new Class({ | |
Implements: [Options, Events], | |
options: { | |
tab: '.nav', | |
content: '.section', | |
currentClass: 'current' | |
}, |
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
Tabs.Ajax = new Class({ | |
Extends: Tabs, // makes this a sub class of `Tabs` | |
// can add some new options w/o losing the ones from Tab | |
options: { | |
loadingHTML: '<p>Loading...</p>' | |
}, | |
// give it a new jQuery prototype method |
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
$('#pane').tabs({tab: 'a', content: '.section'}); | |
// add some events after creating an instance | |
$('#pane').tabs('addEvent', 'show', function(){ | |
$(document.body).toggleClass('toggle'); | |
}); | |
$('#pane1').ajaxTabs({ | |
tab: 'a', | |
content: '.section', |
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://gist.github.com/133677 | |
provides: document.write | |
description: jQuery based document.write replacement | |
requires: jQuery | |
authors: | |
- Thomas Aylott -- SubtleGradient.com |
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
# domain: ${1:domain.com} | |
<VirtualHost *:80> | |
# Admin email, Server Name (domain name) and any aliases | |
ServerAdmin ${2:webmaster}@${1} | |
ServerName ${1} | |
ServerAlias ${3:www.${1}} | |
# Index file and Document Root (where the public files are located) |
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
/** | |
* MooTools selector engine does not match data-* attributes. | |
* This will be fixed in 1.3, when the engine is swapped for Slick. | |
*/ | |
Selectors.RegExps.combined = (/\.([\w-]+)|\[([\w-]+)(?:([!*^$~|]?=)(["']?)([^\4]*?)\4)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g); |
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
Request.Fiddles = new Class({ | |
Extends: Request.JSONP, | |
options: { | |
update: document.body, | |
limit: 5, | |
item: 'li', | |
itemHtml: | |
'<a href="{url}{version}" target="_blank">{title}</a> ' + |
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 | |
require 'fileutils' | |
require 'yaml' | |
puts "# Global Deploy Script start" | |
branch = ARGV[0] | |
repository = ARGV[1] | |
puts "Branch: #{branch}" | |
puts "Repository: #{repository}" |
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
on idle | |
tell application "Safari" | |
activate | |
set URL of front document to "http://www.engadget.com/2010/06/07/steve-jobs-live-from-wwdc-2010/?sort=newest" | |
end tell | |
return 4 | |
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/env ruby | |
# A few helpful tips about the Rules file: | |
# | |
# * The order of rules is important: for each item, only the first matching | |
# rule is applied. | |
# | |
# * Item identifiers start and end with a slash (e.g. “/about/” for the file | |
# “content/about.html”). To select all children, grandchildren, … of an | |
# item, use the pattern “/about/*/”; “/about/*” will also select the parent, |