This file contains hidden or 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
# Some good references are: | |
# http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
# http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
# http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
#1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
This file contains hidden or 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
Current: | |
* Clean Code | |
* Crafting Rails Applications | |
Next: | |
* Domain-driven Design | |
* Design Patterns in Ruby |
This file contains hidden or 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 Array | |
def by(n) | |
buff, self_ = [], self.clone | |
if self.size % n == 0 | |
(self.size/n).times{ buff << self_.shift(n) } | |
end | |
buff | |
end |
This file contains hidden or 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
--- a/app/helpers/application_helper.rb | |
+++ b/app/helpers/application_helper.rb | |
@@ -11,7 +11,11 @@ module ApplicationHelper | |
protected | |
#### :( | |
def link_href_for(item) | |
- item.top_level? and item.link_to_internal_route.present? ? item.link_to_internal_route : (item.page || item.url || '#') |
This file contains hidden or 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
"products_photos": [ | |
{ | |
"name": null, | |
"medium": { | |
"url": "/uploads/offers/75/offer_pictures/1/medium_foto__1_.JPG" | |
}, | |
"small": { | |
"url": "/uploads/offers/75/offer_pictures/1/small_foto__1_.JPG" | |
}, |
This file contains hidden or 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
Downgrade | |
http://www.addictivetips.com/mobile/how-to-downgrade-htc-desire-hd-to-root-it-after-ota-update/ | |
How to root the HTC Desire HD | |
http://www.youtube.com/watch?v=zY8TFZ2Owk0 | |
Pretty ROM |
This file contains hidden or 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
Starting recovery on Sun Jan 6 00:00:04 1980 | |
can't open /dev/tty0: No such file or directory | |
framebuffer: fd 3 (480 x 800) | |
ClockworkMod Recovery v5.0.2.0 | |
recovery filesystem table | |
========================= | |
0 /tmp ramdisk (null) (null) | |
1 /recovery emmc /dev/block/mmcblk0p21 (null) | |
2 /boot emmc /dev/block/mmcblk0p22 (null) | |
3 /cache ext3 /dev/block/mmcblk0p27 (null) |
This file contains hidden or 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
Você pode, por favor, me adicionar no Gtalk ou no Msn?? | |
Meu e-mail é [email protected]. | |
Kleber, | |
Obrigado! |
This file contains hidden or 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
import sys | |
test_cases = open(sys.argv[1], 'r') | |
for test in test_cases: | |
result = test.split(' ') | |
result.reverse() | |
index, buf = 0, '' |
This file contains hidden or 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
--- | |
- ahole | |
- anus | |
- ash0le | |
- ash0les | |
- asholes | |
- ass | |
- Ass Monkey | |
- Assface | |
- assh0le |