- Upper West Side — North of 59th Street, bordered by the Hudson on the west and Central Park on the east. Mostly residential, with some museums and a good portion of the city's top high-end restaurants.
- Upper East Side - North of 59th Street, bordered by Central Park on the west and the East River. Ultra high-end residential, high-end boutiques, The Metropolitan Museum of Art, and some decent restaurants.
- Midtown — Essentially the area between 59th Street and 34th Street. Tons of things to do, places to eat, and most of the tourist traps are also here. Solid place to stay because you can get to/from anywhere from here.
- Hells Kitchen - Basically "East Midtown", the area east of 8th Avenue. Mostly residential, though there are some decent restaurants and bars in this area.
- Chelsea — East of the Avenue of the Americas between 34th St and 14th St. Really swanky area, lots of outstanding restaurants, bars, nighlife, and residential.
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
require 'scrypt' | |
module Virtus | |
class Attribute | |
class Password < ::Virtus::Attribute | |
primitive SCrypt::Password | |
def coerce(value) | |
value ? SCrypt::Password.new(value) : nil | |
rescue SCrypt::Errors::InvalidHash |
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 UsersController < ApplicationController | |
def create | |
create_user = UserUseCaseFactory.create_user(Responder.new(self) | |
create_user.do(params[:email], params[:password[) | |
end | |
class Responder < SimpleDelegator | |
def success(user) | |
render json: UserSerializer.new(user) |
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 Reverb::Actions::WatchListing | |
def self.watch(user, product, listener) | |
if product.owner?(user) | |
listener.failure(I18n.t('flash.watchlist.error_own')) | |
else | |
Reverb::Analytics.track(user, :watch_product) # FIXME, this doesn't belong here | |
user.user_watch_products.create(:product_id => product.id) | |
listener.success | |
end | |
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
class TripsController < ApplicationController | |
class Action < ApplicationController::Action | |
end | |
class New < Action | |
expose(:trip) { Trip.new(params[:trip]) } | |
end | |
class Create < New | |
def call |
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 Role < Module | |
IncompleteInterface = Class.new(RuntimeError) | |
def included(receiver) | |
missing_methods = @public_api.map(&:to_sym) - receiver.public_instance_methods.map(&:to_sym) | |
unless missing_methods.empty? | |
raise IncompleteInterface, | |
"#{receiver} must implement these methods: #{missing_methods.inspect}" | |
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
<article> | |
<header> | |
<h3><%= comment.author %></h3> | |
</header> | |
<%= comment.body %> | |
</article> |
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
/* Sample usage: +caret(bottom, 8px, #000); */ | |
=caret($side, $size, $color) | |
$opposite: opposite-position($side) | |
+stretch(50%,auto,auto,50%) | |
border: $size solid transparent | |
border-#{$opposite}: $size solid $color | |
border-#{$side}: 0 | |
content: '' | |
display: block |
I don't use my AppleTV and I've had a 500GB external HD sitting around that isn't really getting use either. I thought I'd make use of both of these things and see if I could turn my AppleTV into a NAS device that would also allow for BitTorrent downloading and act as a transcoding DLNA MediaServer that I could access from my Xbox 360 and/or PS3.
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
{ | |
"countries": { | |
"ar": { | |
"country": "Argentina", | |
"table": "PfldJg", | |
"attributes": { | |
"factual_id": { | |
"supported": true, | |
"mapping": "Factual ID" | |
}, |
NewerOlder