View so-test_ruby-rio_573116@os x
$ rvm list
rvm rubies
jruby-9.1.5.0 [ x86_64 ]
=* ruby-2.3.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
View so-test_ruby-rio_573116@linux
bitnami@linux ~/projects/so-test/ruby-rio
06:34:45 $ irb
2.3.2 :001 > require 'rio'
=> true
2.3.2 :002 > rio('nice.jpg').binmode < rio('http://farm4.static.flickr.com/3134/3160515898_59354c9733.jpg?v=0')
=> #<Rio:0xe28524:"nice.jpg" (Stream::Reset)>
2.3.2 :003 > exit
bitnami@linux ~/projects/so-test/ruby-rio
06:35:39 $ ls -lrt nice.jpg
-rw-rw-r-- 1 bitnami bitnami 199369 Nov 19 06:35 nice.jpg
View ucase-ronda.sh
#!/usr/bin/env bash
name=ronda
ruby -e "(-12..42).each { |i| print \"#{i}:\"; o=''; ARGV[0].each_byte { |x| o+=(x.ord-i).chr }; p o}" $name | grep 32 | sed "s/.*:\"\(.*\).$/\1/"
View meteor's mongodb README.md
welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-36-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Sat Feb  6 04:52:13 2016 from 192.168.56.1
  bitnami@linux ~  
 05:03:01 $ ps aux | grep 'mongod'
bitnami  11224  1.6  1.0 634572 39284 pts/1    Sl+  05:01   0:01 /home/bitnami/.meteor/packages/meteor-tool/.1.1.10.ki0ccv++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/mongodb/bin/mongod --bind_ip 127.0.0.1 --smallfiles --port 3001 --dbpath /home/bitnami/projects/coursera/meteor-development/dev/image_share/.meteor/local/db --oplogSize 8 --replSet meteor
bitnami  11311  0.0  0.0  10464   896 pts/2    S+   05:03   0:00 grep mongod
  bitnami@linux ~  
View how_to_convert_dos_2_unix
student=1
topic=DownloadBoundServiceAsync
gdsrc=~/projects/coursera/posa-002/POSA-14-20140706/grading-drivers/week-8-assignment-7/W8-A7-ThreadedDownloads-BoundServices/src/edu/vuum/mocca/$topic.java
peer_assesment=./peer-assessments/week8/s$student/$topic.java
tmp_peer_assesment=./tmp/$topic.java
awk '{ sub(/\r$/,""); print }' < $peer_assesment > $tmp_peer_assesment
opendiff $gdsrc $tmp_peer_assesment
View gist:9876953
> cat workfile.csv | ruby -rcsv -ne '
row = CSV.parse_line($_)
puts CSV.generate_line(row, {col_sep: ";" })
' > work1.csv
> cat workfile.csv | ruby -rcsv -ne '
row = CSV.parse_line($_)
row.each {|elem| elem.tr!(",.",".,") if elem.match(/^-?[0-9,.]+$/)}
puts CSV.generate_line(row, {col_sep: ";" })
View gist:9870604
> ls -t ~/Downloads | head -1
LISTA_MOVIMENTI_20140330101644484.csv
> cp `ls -t ~/Downloads | head -1` workfile.csv
View gist:9058989
adb forward tcp:9222 localabstract:chrome_devtools_remote
View gist:6628904
/*
* Test code for the issue exposed in:
* http://stackoverflow.com/questions/18780151/not-able-to-view-combobox-in-excel-using-jxl-api
* -jar jxl.jar
* [jxl 2.6.12 2009-10-26](http://jexcelapi.sourceforge.net/)
* javac 1.7.0_25
*/
package org.rondakit.jxl.tester;
import java.io.File;
View gist:5486638