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
from flask import Flask, abort | |
from resource import Resource | |
app = Flask(__name__) | |
class Item(Resource): | |
def list(self, user_id, car_id): | |
pass | |
def detail(self, user_id, car_id, item_id): | |
pass |
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
[uwsgi] | |
# Gemeric app | |
declare-option = app=master=true;socket=/run/uwsgi/$1.sock;chmod-socket=660;vacuum=true;auto-procname=true;procname-prefix-spaced=$1;cheap=true;idle=60ksm=true | |
# Django | |
declare-option = django=venv=$1venv;pythonpath=$1;chdir=$1;module=$2.wsgi | |
# Fastrouter subscription | |
declare-option = add-domain=subscribe-to=127.0.0.1:12345:$1 |
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
<div class="navbar navbar-static-top"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</a> | |
<a class="brand" href="#">Title</a> | |
<div class="nav-collapse collapse"> |
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
FactoryGirl.define do | |
factory :photo do | |
image { Rack::Test::UploadedFile.new('spec/factories/test.png', 'image/png') } | |
description 'test description' | |
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
- (void)dispathCommand:(NSString *)command withParameters:(NSArray *)parameters | |
{ | |
SEL *selector = NSSelectorFromString([NSString stringWithFormat:[@"handle" stringByAppendingString:[command capitalizedString]]); | |
if (![self.delegate repondsToSelector:selector]) { | |
[self handleUnknownCommand:command withParameters:parameters]; | |
return; | |
} | |
NSMethodSignature *signature = [[self.delegate class] instanceMethodSignatureForSelector:selector]; |