Skip to content

Instantly share code, notes, and snippets.

@Kosmas
Kosmas / ruboto_build_fail
Created November 7, 2012 12:36
Ruboto jruby build fail
vagrant@precise64:~/Prog/android_data/projects/test$ ruboto update jruby --force
Copying /home/vagrant/.rvm/gems/jruby-1.6.7.2/gems/jruby-jars-1.7.0/lib/jruby-core-1.7.0.jar to libs...Done.
Copying /home/vagrant/.rvm/gems/jruby-1.6.7.2/gems/jruby-jars-1.7.0/lib/jruby-stdlib-1.7.0.jar to libs...Done.
Copying dexmaker.jar to libs...Done.
Removing unneeded classes from jruby-core-1.7.0.jar...Done.
Reformatting jruby-stdlib-1.7.0.jar..../lib/ruby : no such file or directory
Done.
JRuby version is now: 1.7.0
vagrant@precise64:~/Prog/android_data/projects/test$ rake
/home/vagrant/Prog/android_data/projects/test/libs/jruby-stdlib-1.7.0.jar changed.
@Kosmas
Kosmas / Gemfile
Created October 5, 2011 16:08 — forked from kossnocorp/Gemfile
...
gem 'devise',
:git => 'https://github.com/plataformatec/devise.git',
:branch => 'omniauth'
gem 'oa-oauth', :require => 'omniauth/oauth'
...
@Kosmas
Kosmas / foc_user.rb
Created September 22, 2011 11:52
getting friends of current user
require 'fb_graph'
array = FbGraph::Query.new(
'SELECT name,pic FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1=me()'
).fetch(ACCESS_TOKEN)
p array
require 'fb_graph'
array = FbGraph::Query.new(
'SELECT name FROM user WHERE uid = me()'
).fetch(ACCESS_TOKEN)
p array