Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ismael G Marin C igmarin

🏠
Working from home
View GitHub Profile
@igmarin
igmarin / gist:1070034
Created Jul 7, 2011
Bigriveripn Mail
View gist:1070034
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css" media=screen>
body{
margin:0;
@igmarin
igmarin / gist:1878057
Created Feb 21, 2012
Template Nebula base rails 3.0.X
View gist:1878057
run "rm public/index.html"
run "mkdir app/controllers/admin"
generate(:controller, "public index admin")
route "root to: 'public#index'"
run "echo 'config/database.yml' >> .gitignore"
run "echo .DS_Store >> .gitignore"
git :init
git :add => "."
git :commit => "-am 'Commit inicial'"
@igmarin
igmarin / gatito.rb
Created Feb 9, 2013
My example for Bajio on Rails Feb 9 meeting
View gatito.rb
require 'open-uri'
puts "Por favor escribe el width:"
width = gets.chomp!
puts "Por favor escribe el height:"
height = gets.chomp!
gatitos = open("http://placekitten.com/#{width}/#{height}")
@igmarin
igmarin / bobo.rb
Last active Dec 14, 2015
Little example using const_missing, after reading Chap3 of Rebuilding Rails, this is how rails works.
View bobo.rb
class Object
def self.const_missing c
STDERR.puts "Missing constant: #{c.inspect}"
end
end
class Bobo < Object
def hello
puts "Hi Bobo!"
end
@igmarin
igmarin / Error Message
Created Jun 15, 2013
gem install hybridgroup-serialport error missing library
View Error Message
Building native extensions. This could take a while...
ERROR: Error installing hybridgroup-serialport:
ERROR: Failed to build gem native extension.
/Users/igmarin/.rvm/rubies/rbx-head/bin/rbx extconf.rb
checking for OS... apple
checking for termios.h... yes
checking for unistd.h... yes
creating Makefile
View test_sphero_1.rb
require 'artoo'
connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4321'
device :sphero, :driver => :sphero
work do
every(1.seconds) do
sphero.set_color(:red)
sphero.roll 90, rand(360)
@igmarin
igmarin / sphero_mac_connect
Created Jun 27, 2013
This is the first part of the Guide to Connect Sphero with Mac
View sphero_mac_connect
Connect Sphero with your Mac
============================
To connect your Mac with Sphero we need to download and install [Multicom](http://members.iinet.net.au/~mgl/MartysPlace/MultiCom.html)
The connection between your Sphero(s) and your Mac will be created by a serial port connection using your bluetooth in your mac.
Set up a new device
-------------------
View gist:5959224
#<Product:0x007f8d766ee5a0
@asia_warehouse_in_stock=0,
@attributes=
{"_score"=>1.0,
"_type"=>"product",
"_index"=>"pmzeogxd7ya2glzksntk",
"_version"=>1,
"sort"=>nil,
"highlight"=>nil,
"_explanation"=>nil},
View Rails Basics
# INTRODUCTION TO RAILS
This Guides serves as an introduction to the Rails Framework as some of the Keypoints to understand how it works and this is a guide as a learning path
## RESOURCES (complete guides)
- https://learn.thoughtbot.com/rails
- http://guides.rubyonrails.org/
- https://github.com/alindeman/upgradingtorails4
View LineamientosAsesorias
#Objetivo
- Aprender tecnologías utilizadas para el desarrollo de aplicaciones web, mejores prácticas y el proceso de desarrollo ágil.
- Participar en proyectos bajo la supervisión de un mentor.
- Mejorar las habilidades y experiencia de los participantes
- Definir y mejorar un proceso para el ingreso de nuevas personas al equipo (reduciendo curva de aprendizaje).
# Como funciona
- Reuniones 1 vez a la semana para seguimiento.
You can’t perform that action at this time.