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
"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
--- 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
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
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
# 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
# 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
Intel GMA X3100: | |
Chipset Model: GMA X3100 | |
Type: GPU | |
Bus: Built-In | |
VRAM (Total): 144 MB | |
Vendor: Intel (0x8086) | |
Device ID: 0x2a02 | |
Revision ID: 0x0003 | |
Displays: |
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
Hardware Overview: | |
Model Name: MacBook | |
Model Identifier: MacBook4,1 | |
Processor Name: Intel Core 2 Duo | |
Processor Speed: 2.4 GHz | |
Number Of Processors: 1 | |
Total Number Of Cores: 2 | |
L2 Cache: 3 MB | |
Memory: 4 GB |
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 delete_first_occurence!(array=nil) | |
return nil if array.nil? || !array.is_a?(Array) | |
array.each do |item| | |
self.delete_at(self.index(item)) if self.index(item) | |
end | |
self | |
end |