Skip to content

Instantly share code, notes, and snippets.

# 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))
$cycle = $('#billboard .billboard-list').cycle({
fx: 'fade',
timeout: 5000,
pause: 1,
speed: 'slow'
});
$('a[rel=stop]').click(function() {
$cycle.stop();
});
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
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
// // 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');}
//
@jwoertink
jwoertink / apology.txt
Created December 25, 2011 00:29
card number generation and mag stripe reader program
wow.... I can't believe I used to write this stuff for a living. lolz. Sorry for the poor programming.
$(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');
}
class Test
attr_accessor :i
def do_something(j)
def other(j)
puts i
puts j
end
other j
end
end
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
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.