Skip to content

Instantly share code, notes, and snippets.

View FerPerales's full-sized avatar
🎯
Focusing

Fernando Perales FerPerales

🎯
Focusing
View GitHub Profile
@FerPerales
FerPerales / setup.md
Last active August 1, 2017 02:25 — forked from chris-jamieson/setup.md
Set up Franz for Ubuntu
  • Download Franz for your distribution from MeetFranz.com
  • sudo mkdir /opt/franz
  • change into the same directory as the downloaded file, then sudo tar -xf Franz-linux-x64-4.9.4.tgz -C /opt/franz
  • sudo touch /usr/share/applications/franz.desktop then sudo vim /usr/share/applications/franz.desktop

paste the following lines into the file, then save the file:

[Desktop Entry]
Name=Franz
Comment=
http://es.railsbridge.org/docs/

Last week, I attended Fórum Internacional Software Libre hosted in the city of Porto Alegre, Brazil. During four days, I had the change to meet people from all the free software communities in Brazil as well as some members from communities in Latin America. The last day I gave a talk called "Introducing new generations to Free Software", which presents our journey and learnings from the Rails Girls Summer of Code 2015 and our efforts to encourage underrepresented groups in the IT industry to start a career in the professional software development industry with iniciatives such Railsbridge, RGSoC and Outreachy among others.

Some numbers:

3937 participants

492 speakers

519 hours in activities

@FerPerales
FerPerales / gist:443530189c0d7bb0171698b7725995a9
Last active July 21, 2016 21:21
ActiveResource vs. ActiveRecord
Al contrario: la sintaxis es similar:
En ActiveRecord, Person.find(1) buscara en la base de datos local una tabla llamada `people` y buscará el registro con el
id 1, traerá la informacion y la podras utilizar mediante un objeto de Ruby
En ActiveResource, Person.find(1) hará una llamada HTTP a la API que le hallas configurado en `self.site` infiriendo la ruta
a la que debe llamar siguiendo la arquitectura REST. Si tu `self.site` es, por ejemplo, http://api.demosite.com,
ActiveResource hará una petición GET a la ruta http://api.demosite.com/people/1, traerá la informacion y la podras utilizar
mediante un objeto de Ruby

ferperales.net

/about_me

/skills

@FerPerales
FerPerales / ml-ruby.md
Created May 9, 2016 15:32 — forked from gbuesing/ml-ruby.md
Resources for Machine Learning in Ruby

Resources for Machine Learning in Ruby

Gems

@FerPerales
FerPerales / db.rake
Last active August 29, 2015 14:23 — forked from tehpeh/db.rake
namespace :db do
namespace :enable do
desc "enable hstore extension"
task :hstore => [:environment, :load_config] do
ActiveRecord::Base.connection.execute('CREATE EXTENSION IF NOT EXISTS hstore;')
end
end
Rake::Task['db:schema:load'].enhance ['db:enable:hstore']
end
wehfoiwehfwef
require 'securerandom'
require 'em-http-request'
require 'pry-nav'
require 'json'
require 'faye/websocket'
require 'eventmachine'
require 'rest_client'
class WTV
def initialize(my_id, my_token)
@FerPerales
FerPerales / nginx.conf
Last active August 29, 2015 14:08 — forked from billie66/nginx.conf
# This file should be placed on the directory of ~/blog/config
upstream unicorn {
server unix:/tmp/unicorn.todo.socket fail_timeout=0;
}
server {
listen 80 default;
#server_name example.com;
root /home/username/blog/public;