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
require 'bigdecimal' | |
require 'bigdecimal/math' | |
include BigMath | |
buffer = '' | |
class String | |
def palindrome? | |
self == self.reverse | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<style type="text/css"> | |
body { | |
font: 10px sans-serif; | |
margin: 0; | |
} |
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
<html> | |
<head> | |
<title>Suco de laranja é bom, suco de laranja é dez, suco de laranja é mara! Suco de laranja!</title> | |
<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/> | |
</head> | |
<body> | |
<a href="http://google.com"> GOOGLE </a> | |
<a href="http://google.com"> GOOGLE </a> | |
<a href="http://google.com"> GOOGLE </a> | |
<a href="http://google.com"> GOOGLE </a> |
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
2012-12-05T18:41:32+00:00 app[web.2]: ["ACCEPT: */*\n", "CONNECTION: keep-alive\n", "HOST: fast-inlet-6595.herokuapp.com\n", "USER_AGENT: ApacheBench/2.3\n", "VERSION: HTTP/1.1\n", "X_FORWARDED_FOR: 187.49.232.46\n", "X_FORWARDED_PORT: 80\n", "X_FORWARDED_PROTO: http\n", "X_HEROKU_DYNOS_IN_USE: 1\n", "X_HEROKU_QUEUE_DEPTH: 0\n", "X_HEROKU_QUEUE_WAIT_TIME: 0\n", "X_REQUEST_START: 1354732882817\n"] | |
2012-12-05T18:41:32+00:00 app[web.2]: 187.49.232.46 - - [05/Dec/2012 18:41:32] "GET / HTTP/1.1" 200 301 10.0029 | |
2012-12-05T18:41:32+00:00 app[web.1]: ["ACCEPT: */*\n", "CONNECTION: keep-alive\n", "HOST: fast-inlet-6595.herokuapp.com\n", "USER_AGENT: ApacheBench/2.3\n", "VERSION: HTTP/1.1\n", "X_FORWARDED_FOR: 187.49.232.46\n", "X_FORWARDED_PORT: 80\n", "X_FORWARDED_PROTO: http\n", "X_HEROKU_DYNOS_IN_USE: 1\n", "X_HEROKU_QUEUE_DEPTH: 0\n", "X_HEROKU_QUEUE_WAIT_TIME: 0\n", "X_REQUEST_START: 1354732882839\n"] | |
2012-12-05T18:41:32+00:00 app[web.1]: 187.49.232.46 - - [05/Dec/2012 18:41:32] "GET / HTTP/1.1" 200 301 10.0100 |
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
#!/usr/bin/env bash | |
curl https://s3.amazonaws.com/heroku-jvm-buildpack-vi/vim-7.3.tar.gz --output vim.tar.gz | |
mkdir vim && tar xzvf vim.tar.gz -C vim | |
export PATH=$PATH:/app/vim/bin |
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
RAC(self.sendButton, enabled) = [RACSignal | |
combineLatest:@[self.nomeTextField.rac_textSignal,self.streetTextField.rac_textSignal, self.numberTextField.rac_textSignal, self.bairroTextField.rac_textSignal, self.phoneTextField.rac_textSignal] | |
reduce:^(NSString *nome, NSString *street,NSString *bairro, NSString *phone) { | |
return @(nome.length > 0 && street.length > 0 && bairro.length > 0 && phone.length > 0); | |
}]; |
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
# /Users/pcasaretto/src/rdstation/app/controllers/blog/title_controller.rb | |
class Blog::TitleController < ApplicationController | |
def new | |
@noun = params[:termo] | |
end | |
def create | |
noun = params[:noun] | |
if(!noun.blank?) |
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
common: &default_settings | |
app_name: | |
- <%= ENV["NEW_RELIC_APP_NAME"] %> | |
- App Server | |
... | |
background: | |
<<: *default_settings | |
monitor_mode: true |
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
pensarios em que precisamo fazer para chegar no plateau e quanto tempo ele levaria na media | |
dai poderiamos direcionar produto e cosultorias nisso | |
Time to first N sales? | |
Time to first N opportunities? |
OlderNewer