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
if RUBY_VERSION >= '1.9' | |
require_relative '../lib/executor.rb' | |
else | |
require "lib/executor.rb" | |
end |
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
module FFMpeg | |
class Convert | |
attr_accessor :version, :total_time, :frame, :total_frames, :capturing, | |
:input_fps | |
def initialize(input, output, options={}) | |
@input = input | |
@output = output | |
@options = options |
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
ECHO4:jsdiff vajrapani666$ git status | |
# On branch master | |
# Changes not staged for commit: | |
# (use "git add <file>..." to update what will be committed) | |
# (use "git checkout -- <file>..." to discard changes in working directory) | |
# | |
# modified: lib/jsdiff.rb | |
# | |
no changes added to commit (use "git add" and/or "git commit -a") |
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($) { | |
})(jQuery); |
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 Application=(function($,_) { | |
}(jQuery.noConflict(), _.noConflict()); |
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
YAHOO.myProject.myModule = function () { | |
//"private" variables: | |
var myPrivateVar = "I can be accessed only from within YAHOO.myProject.myModule."; | |
//"private" method: | |
var myPrivateMethod = function () { | |
YAHOO.log("I can be accessed only from within YAHOO.myProject.myModule"); | |
} |
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
with ({$: jQuery.noConflict()}) { | |
console.log("Check me out", $); | |
} | |
console.log($); |
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 'benchmark' | |
task :benchmark => :environment do | |
stores = { | |
:file_store=>[Rails.root+"/tmp/cache"], | |
:mem_cache_store=>["localhost"], | |
:dalli_store=>["localhost"], | |
:redis_store=> [], | |
:mongo_store=> [], | |
} |
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 'metahash' | |
# Writing to a file | |
mh = Metahash::Metahash.new "path/to/beiber.mp3" | |
mh["id3:artist"] = "Dave Meowtthews" | |
# Reading the metadata | |
mh = Metahash::Metahash.new "path/to/beiber.mp3" | |
puts mh.to_h |
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
/* | |
Facebook Comment Layer | |
Adds a facebook comment feed to any page | |
*/ | |
(function() { | |
//adapted from jQuerify bookmarklet loader | |
//http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet |