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
# Unnecessary code removed | |
require 'java' | |
java_import "com.jme3.app.SimpleApplication" | |
java_import "com.jme3.input.controls.ActionListener" | |
class HelloInput < SimpleApplication | |
def initKeys | |
input_manager.add_listener(action_listener, ["Pause"].to_java(:string)) |
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
$cycle = $('#billboard .billboard-list').cycle({ | |
fx: 'fade', | |
timeout: 5000, | |
pause: 1, | |
speed: 'slow' | |
}); | |
$('a[rel=stop]').click(function() { | |
$cycle.stop(); | |
}); |
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
desc "Lookes for tweets with a random hashtag, and retweets" | |
task :retweet do | |
#Search twitter for loveadvice and loveadvicetv related tweets in the past X hours, and re-tweet them. | |
search = Twitter::Search.new | |
keywords = ["love", "loveadvice", "loveadvicetv", "relationhip", "marriage", "dating", "datingadvice"] | |
hashtag = keywords.sort_by { rand }.first | |
search.hashtag(hashtag).language("en").no_retweets.per_page(1) | |
results = search.fetch | |
tweet = results.first | |
client = Twitter::Client.new |
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
jeremywoertink$ brew doctor | |
==> You have uncommitted modifications to Homebrew's core. | |
Unless you know what you are doing, you should: git reset --hard | |
jeremywoertink$ git status | |
# On branch master | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) | |
# | |
# Library/Aliases/sshfs |
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
// // dropdown hoover menu | |
// var timeout = 500; | |
// var closetimer = 0; | |
// var ddmenuitem = 0; | |
// | |
// function jsddm_open() | |
// { jsddm_canceltimer(); | |
// jsddm_close(); | |
// ddmenuitem = $(this).find('ul').css('visibility', 'visible');} | |
// |
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
wow.... I can't believe I used to write this stuff for a living. lolz. Sorry for the poor programming. |
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
$(function() { | |
$('#upload').live('mouseenter', function() { | |
$('#upload').mousemove(function(e) { | |
$('#file').css('top', (e.pageY - 16) + 'px') | |
.css('left', (e.pageX + -175) + 'px'); | |
}); | |
}); | |
if(window.location.href.indexOf("?success") != -1) { | |
alert('Thank you for your submission. Check back for the results'); | |
} |
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
class Test | |
attr_accessor :i | |
def do_something(j) | |
def other(j) | |
puts i | |
puts j | |
end | |
other j | |
end | |
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
shoes $ rake --trace | |
** Invoke default (first_time) | |
** Invoke build (first_time) | |
** Invoke osx:build (first_time) | |
** Invoke osx:build_tasks:pre_build (first_time) | |
** Invoke osx:build_tasks:check_ruby_arch (first_time) | |
** Execute osx:build_tasks:check_ruby_arch | |
** Execute osx:build_tasks:pre_build | |
** Invoke build_skel (first_time) | |
** Execute build_skel |
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
LoveAdviceTV Contest: | |
Get as many people to "like" the LoveAdviceTV facebook page (http://www.facebook.com/LoveAdviceTV) | |
Rules: | |
1. Get as many people to "like" the facebook page as you can. | |
2. You must already have "like"d the page. | |
3. When someone "like"s the facebook page, they MUST post on the LoveAdviceTV facebook page wall with the phrase "{what ever your name is} told me I need love advice" (i.e. Jeremy Woertink told me I need love advice) | |
4. You need a minimum of 10 people to "like" to enter. | |
5. They can't have already "liked" the page. | |
6. The person with the most referrals wins. |