[フレーム]
Joined September 2012
·

Jake Moffatt

Programmer at Apartment List
·
California
·
·
·

Posted to Postgres, Rails, and Regex's over 1 year ago

you can also use a partial index in postres to optimize this query:

create index concurrently integer_responses on responses ((value ~ '^\d+$'));

and don't forget the opposite case as well:

create index concurrently string_responses on responses ((value !~ '^\d+$'));

Then when you execute the query/scope you will still benefit from an index.

Posted to One line browser notepad over 1 year ago

I made a version that is a full blown Ruby editor with syntax highlighting from Ace.

https://gist.github.com/4666256

Achievements
164 Karma
2,511 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Charity
Fork and commit to someone's open source project in need
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Mongoose
Have at least one original repo where Ruby is the dominant language
Raven
Have at least one original repo where some form of shell script is the dominant language

AltStyle によって変換されたページ (->オリジナル) /