Skip to content

Instantly share code, notes, and snippets.

View halan's full-sized avatar
🛹

Halan Pinheiro halan

🛹
View GitHub Profile
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://br.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://br.archive.ubuntu.com/ubuntu/ oneiric main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://br.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(success, error);
} else {
error('not supported');
}
function showAddress(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
var marker = new GMarker(point);
require('zappa') ->
@enable 'serve jquery'
@get '/': ->
@render index: {layout: no}
@on 'set nickname': ->
@client.nickname = @data.nickname
@on said: ->
class User < ActiveRecord::Base
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :email, :password, :password_confirmation, :remember_me
belongs_to :account, :polymorphic => true
def realstater?
require 'sinatra'
require 'mechanize'
require 'haml'
get '/' do
nickname = 'cogumm'
board = 'nerd'
url = "http://pinterest.com/#{nickname}/#{board}"
pin_class = 'PinImageImg'
@halan
halan / links.textile
Created November 13, 2012 16:03 — forked from lucashungaro/links.textile
Links de referência utilizados em minha palestra
@halan
halan / gist:4171492
Created November 29, 2012 20:01 — forked from cesarmedeiros/gist:4171441
Sugestão de leituras com base no Tracking de leituras anteriores
require 'rubygems'
require 'redis'
class Datanosql
def initialize
@r = Redis.new
end
@halan
halan / .vimrc
Created April 4, 2013 17:40 — forked from brennovich/.vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'