This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle update backup | |
Fetching gem metadata from https://rubygems.org/........ | |
Fetching gem metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
You have requested: | |
excon = 0.20.1 | |
The bundle currently has excon locked at 0.14.3. | |
Try running `bundle update excon` | |
$ bundle update excon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[7] pry(main)> [nil].blank? | |
=> false | |
[8] pry(main)> [nil].empty? | |
=> false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
milliseconds = 17.916 | |
minutes = parseInt(parseFloat(milliseconds/60).toString().split('.')[0]) | |
seconds = (milliseconds - (60 * minutes)).toString().split('.')[0]; | |
minutes + ':' + 'seconds | |
nowadays: 0:17 | |
expected: 00:17 | |
------------------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eu tiraria a razão deles se as empresas de ônibus/barcas/metrô não tivessem recebido subsídio fiscal do governo para manter os preços estáveis e melhorar a qualidade do serviço do transporte. como isso só serviu para nos roubar 2x, eu sinceramente não tiro a razão do pessoal fazer o que tem feito. talvez seja uma saída. o que eu não acho que dá pra continuar é eu pagar 2x por um serviço medíocre, que pra começo de conversa não deveria nem ser privatizado. só pra constar: todo mundo fala que o metrô de paris é isso/aquilo, e não é privatizado. não é uma coisa que deve dar lucro, é uma coisa que deve ser direito do cidadão, direito de ir e vir. | |
raph, | |
http://www.jb.com.br/rio/noticias/2011/12/07/barcas-tarifa-aumenta-mesmo-com-subsidio-para-deputado-empresa-e-favorecida/ | |
isso sem falar no aumento dos ônibus nos últimos dias. | |
isso sem falar que a barca aumento pra cacete no fim do ano passado e o governo(eu e você) pagamos parte da passagem com mais um subsídio que a barca recebeu. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'return category' do | |
category = { name: 'Design' } | |
breadcumb_category(category).should == "<span class='breadcrumb-mark breadcrumb-mark-design'>Design</span>" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.amazon.com/Start-Freedom-Business-Colin-Wright-ebook/dp/B006W6XPLW | |
http://www.amazon.com/Travel-Full-Time-Colin-Wright-ebook/dp/B006479AUY | |
http://www.amazon.com/100-Startup-Reinvent-Living-Create-ebook | |
http://www.amazon.com/4-Hour-Work-Week-Escape-Anywhere-ebook/dp/B006X0M2TS/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: postgresql | |
encoding: unicode | |
database: brtrax_development | |
pool: 5 | |
username: luciano | |
password: | |
host: localhost | |
test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="fb-like" data-href="https://www.facebook.com/riostartups" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en/sdk.js#xfbml=1&appId=227914187387923&version=v2.0"; | |
fjs.parentNode.insertBefore(js, fjs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ ^/(assets)/ { | |
root /path/to/public; | |
gzip_static on; # to serve pre-gzipped version | |
expires max; | |
add_header Cache-Control public; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Post | |
def as_indexed_json(options={}) | |
self.as_json( | |
only: [ :id, :title, :published ], | |
filter: { | |
bool: { | |
should: { | |
term: { published: true } | |
} | |
} |