Skip to content

Instantly share code, notes, and snippets.

View thiagovsk's full-sized avatar
🏠
Working from home

Thiago Ribeiro thiagovsk

🏠
Working from home
View GitHub Profile
@thiagovsk
thiagovsk / simple-twitter.rb
Created August 9, 2016 17:31 — forked from coderberry/simple-twitter.rb
Application oauth2 for Twitter using Ruby
require 'oauth'
require 'httpclient'
require 'json'
class SimpleTwitter
def initialize(config)
@config = config
@http_client = HTTPClient.new
end
@thiagovsk
thiagovsk / helper.rb
Created May 16, 2016 13:36
criando modulo sendo incluido na classe como metodo de instancia e de classe
module Foo
def self.included base
base.send :include, InstanceMethods
base.extend ClassMethods
end
module InstanceMethods
def bar1
'bar1'
end
@thiagovsk
thiagovsk / helper.rb
Created May 16, 2016 13:34
criando modulo sendo incluido na classe como metodo de instancia
module Foo
def self.included base
base.extend ClassMethods
end
module ClassMethods
def bar2
puts 'bar2'
end
end
############################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
#############################
#
# COPY AND PASTE
@thiagovsk
thiagovsk / gist:43f8b34b5fc2ccc7a963
Last active March 12, 2016 04:26
tentar- todo list
sem dependencia
ruby-jeweller https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816744
ruby-sup-mail (esse é do ruby-xapian)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816486
ruby-thinking-sphinks
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816307
QUILT_PATCHES=debian/patches
QUILT_NO_DIFF_INDEX=1
QUILT_NO_DIFF_TIMESTAMPS=1
QUILT_REFRESH_ARGS="-p ab"
QUILT_DIFF_ARGS="--color=auto" # If you want some color when using `quilt diff`.
commit 38019bb3e2194d2fd08553ea9f9edaa26035f478
Author: Thiago Ribeiro <thiagitosouza@gmail.com>
Date: Mon Mar 7 17:54:34 2016 -0300
Apply revision
diff --git a/debian/copyright b/debian/copyright
index ba09587..9195e89 100644
--- a/debian/copyright
+++ b/debian/copyright
@thiagovsk
thiagovsk / readme.txt
Last active January 13, 2016 20:00
configurando docker + noosfero rails 4
No debian:
- instale o pacote docker.io
- Entre na raiz do projeto noosfero clonado via git
- sudo docker pull noosfero/dev-rails4 (Vai demorar um pouco)
- sudo docker run -it -p 3000:3000 noosfero/dev-rails4
- ./scritp/quick-start
- ./script/development
Enjoy =)
<dirv class="page-header">
<%= simple_form_for(@atendimento, :html => {:class => 'form-horizontal' }) do |f| %>
<div class="actions">
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
<div class="page-header">
<%= simple_form_for(@atendimento, :html => {:class => 'form-horizontal' }) do |f| %>
</div>