Skip to content

Instantly share code, notes, and snippets.

View rafamoreira's full-sized avatar
:shipit:

Rafael Moreira rafamoreira

:shipit:
View GitHub Profile
@rafamoreira
rafamoreira / jekyll-post
Created August 26, 2013 06:35
A post generator for jekyll
#!/usr/bin/python
"""
jekyll-post - this is a simple script that will create and initialize a new
Jekyll post file. The default is a markdown file (.md) and the yaml options
listed below will be part of the initialization.
jekyll-post [-w] [-d date] [title]
title the title of the post wrapped in quotes, e.g. "post title here"
Configurar Vono no X-Lite Beta 4.0 for Mac:
1) Abra "Preferences"
2) Vá em "Accounts"
3) Na aba General, preencha:
User Details:
User ID: [seu login]
Domain: vono.net.br
Password: [sua senha]
Display name: [seu login]
@rafamoreira
rafamoreira / active_admin.css.sass
Created May 23, 2013 11:19 — forked from artofhuman/active_admin.css.sass
active_admin with ckeditor workaround
@import "active_admin/mixins"
@import "active_admin/components/links"
body
@include global-reset
@import "active_admin/typography"
@import "active_admin/header"
@import "active_admin/forms"
@import "active_admin/components/comments"
@import "active_admin/components/flash_messages"
@rafamoreira
rafamoreira / example.html
Created May 2, 2013 18:32
Bootstrap tabs with ajax
<ul id="MainTabs" class="nav nav-tabs">
<li><a data-target="#apple" data-toggle="tab" href="/apple.html">apple</a></li>
<li><a data-target="#banana" data-toggle="tab" href="/banana.html">banana</a></li>
<li><a data-target="#cherry" data-toggle="tab" href="/cherry.html">cherry</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="apple">Loading...</div>
<div class="tab-pane" id="banana">Loading...</div>
<div class="tab-pane" id="cherry">Loading...</div>
gem 'pg'
group :development do
gem 'ruby-debug'
end
gem 'rake', '~> 0.8.7'
gem 'devise'
gem 'oa-oauth', :require => 'omniauth/oauth'
gem 'omniauth'
gem 'haml'
gem 'dynamic_form'
.highlight{background-color:#073642;color:#93a1a1}.highlight .c{color:#586e75 !important;font-style:italic !important}.highlight .cm{color:#586e75 !important;font-style:italic !important}.highlight .cp{color:#586e75 !important;font-style:italic !important}.highlight .c1{color:#586e75 !important;font-style:italic !important}.highlight .cs{color:#586e75 !important;font-weight:bold !important;font-style:italic !important}.highlight .err{color:#dc322f !important;background:none !important}.highlight .k{color:#cb4b16 !important}.highlight .o{color:#93a1a1 !important;font-weight:bold !important}.highlight .p{color:#93a1a1 !important}.highlight .ow{color:#2aa198 !important;font-weight:bold !important}.highlight .gd{color:#93a1a1 !important;background-color:#372c34 !important;display:inline-block}.highlight .gd .x{color:#93a1a1 !important;background-color:#4d2d33 !important;display:inline-block}.highlight .ge{color:#93a1a1 !important;font-style:italic !important}.highlight .gr{color:#aa0000}.highlight .gh{color:#586e
.highlight{background-color:#073642;color:#93a1a1}.highlight .c{color:#586e75 !important;font-style:italic !important}.highlight .cm{color:#586e75 !important;font-style:italic !important}.highlight .cp{color:#586e75 !important;font-style:italic !important}.highlight .c1{color:#586e75 !important;font-style:italic !important}.highlight .cs{color:#586e75 !important;font-weight:bold !important;font-style:italic !important}.highlight .err{color:#dc322f !important;background:none !important}.highlight .k{color:#cb4b16 !important}.highlight .o{color:#93a1a1 !important;font-weight:bold !important}.highlight .p{color:#93a1a1 !important}.highlight .ow{color:#2aa198 !important;font-weight:bold !important}.highlight .gd{color:#93a1a1 !important;background-color:#372c34 !important;display:inline-block}.highlight .gd .x{color:#93a1a1 !important;background-color:#4d2d33 !important;display:inline-block}.highlight .ge{color:#93a1a1 !important;font-style:italic !important}.highlight .gr{color:#aa0000}.highlight .gh{color:#586e
.highlight { background-color: #ffffcc }
.highlight .c { color: #586E75 } /* Comment */
.highlight .err { color: #93A1A1 } /* Error */
.highlight .g { color: #93A1A1 } /* Generic */
.highlight .k { color: #859900 } /* Keyword */
.highlight .l { color: #93A1A1 } /* Literal */
.highlight .n { color: #93A1A1 } /* Name */
.highlight .o { color: #859900 } /* Operator */
.highlight .x { color: #CB4B16 } /* Other */
.highlight .p { color: #93A1A1 } /* Punctuation */
@rafamoreira
rafamoreira / gist:3207082
Created July 30, 2012 14:02
Using Ruby via Rbenv at TextMate
1 PATH => Add usr/local/bin: (rbenv installed via homebrew)
ps. This PATH is TextMate PATH
2. TM_RUBY => Set to /Users/user_name/.rbenv/shims/ruby
@rafamoreira
rafamoreira / Ubuntu rbenv
Created July 24, 2012 23:00 — forked from HatemMahmoud/Ubuntu rbenv
Installing Ruby 1.9.3 with OpenSSL on Ubuntu 12.04 using ruby-build and rbenv
# for more info: https://gist.github.com/1120938