SublimeText 2 Pro Tip
You can set custom, per-syntax preferences.
Here is my Ruby.sublime-settings file:
{
"color_scheme": "Monokai Bright.tmTheme",
"ensure_newline_at_eof_on_save": true
}
Denver-based web-engineer, beer brewer, backpacker, Tacoma-er.
You can set custom, per-syntax preferences.
Here is my Ruby.sublime-settings file:
{
"color_scheme": "Monokai Bright.tmTheme",
"ensure_newline_at_eof_on_save": true
}
me: i've got it in my pipeline, so i'll loop back around and drop you a line. the ROI on this one looks good
friend: per our conversation, I'll keep that on my radar, and we'll revisit this subject closer to the proposal submission deadline
Thursday morning chats are strange.
(Source: langer)
First things first, Instagram doesn’t have an open API. A client must be authenticated to retrieve users and their media. Luckily, the API does support JSONP, so we can create a front-end gallery with just an access token.
Instagram doesn’t allow a client to grab media by username, a user id is required. So, we have to chain a couple calls together, if we only have a username.
Warning: You really don’t want to float an access token around that doesn’t belong to the current user. i.e. Don’t acquire your own and hardcode it into your application.
year_to_date = (Time.parse("1/1/#{Time.now.year}")..Time.now)
Know a better way?
Sometimes you just need to protect a specific route (from being crawled, for an admin resource, the perception of security, etc.). With Express.js it’s extremely easy to drop in Connect’s basicAuth middleware (in CoffeeScript):
This will protect the root route (and only the root route) with the username and password from line 4.
“But what if I don’t have super_secret_stuff, and I just want to protect static content?” No big deal. Use basicAuth in conjunction with the static middleware:
How’s that for an SEOd article title?
Almost all of the highly ranked search results for uploading files with Express are outdated (citing deprecated modules like connect-form). Node moves fast. So, on that note, this may too be wrong by the time you’re reading it, beware.
Formidable is now a part of Connect, and therefor baked into Express.
Simply, you can accomplish file POSTing with the following Express app (in Coffeescript, because I do what I want):
Disclaimer: 2.0 is in no way final!
This is only for those on the bleeding edge, trying to prepare their work for the next version of Twttr Bootstrap.
.topbar is now .navbar, and .topbar > .fill is now .navbar > .navbar-inner.data-toggle attribute for dropdowns and tabs..zebra-striped is .striped-tableI’ll add more as I run into changes while updating a few of my applications.