๐
This file contains hidden or 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 | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
BASE_URL = "http://www.kniteforcerevolution.com" | |
PAGE_URL = "#{BASE_URL}/music/" | |
FILE_URL = "#{BASE_URL}/file_download/" | |
This file contains hidden or 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 | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
BASE_URL = "http://www.kniteforcerevolution.com" | |
PAGE_URL = "#{BASE_URL}/music/" | |
FILE_URL = "#{BASE_URL}/file_download/" | |
This file contains hidden or 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 Hoverer = { | |
current: null, | |
delay: 0.5, | |
timer: null, | |
handler: function(event) { | |
var element = event.findElement('div.nav_menu'); | |
if (!element) | |
return Hoverer.leave(); | |
if (element == Hoverer.current) |
This file contains hidden or 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 'packr' | |
namespace :js do | |
desc "Pack javascript src for production environment" | |
task :pack => :environment do | |
# Files to pack | |
Dir.glob(File.join("public", "javascripts", "**", "*.js")).each do |filename| | |
puts "packing #{filename}..." | |
FileUtils.cp(filename, "#{filename}.orig") | |
js = "" |
This file contains hidden or 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.observe('dom:loaded', function() { | |
$$('input[tabindex="1"]')[0].focus(); | |
}); |
This file contains hidden or 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
=begin | |
License: latest LGPL :D | |
As per my discussion with Gianni (@gf3), | |
http://twitter.com/phillmv/status/2659984348 | |
http://twitter.com/phillmv/status/2660026344 | |
http://twitter.com/phillmv/status/2660059102 | |
http://twitter.com/phillmv/status/2660184885 | |
http://twitter.com/phillmv/status/2660283856 and | |
http://twitter.com/phillmv/status/2660306850 |
This file contains hidden or 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
so my workflow is that each ticket gets a branch. Before merging the branch to master | |
it needs to be peer-reviewed. So sometimes I have a bunch of branches that are off | |
being reviewed while I work on something else. | |
Currently when I run "git branch" I see: | |
[branch 1] | |
[branch 2] | |
[branch 3] | |
*[branch 4] | |
[branch 5] |
This file contains hidden or 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
(function($, doc) { | |
var getHTML = function getHTML() { | |
return $.String(this.raw.outerHTML); | |
}; | |
if (!('outerHTML' in doc.documentElement)) { | |
var dummy = doc.createElement('html'); | |
getHTML = function getHTML() { | |
dummy.appendChild(this.raw.cloneNode(true)); | |
var result = dummy.innerHTML; |
This file contains hidden or 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
%h1.lol | |
NO U |
This file contains hidden or 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
##### | |
## INITIAL CONFIGURATION | |
##### | |
# Fork sstephenson/prototype on GitHub | |
# Go to this url and click the fork button. This will create a prototype | |
# repository under your GitHub account. | |
http://github.com/sstephenson/prototype |
OlderNewer