I hereby claim:
- I am fangpenlin on github.
- I am fangpenlin (https://keybase.io/fangpenlin) on keybase.
- I have a public key whose fingerprint is A576 16E6 2A49 9B51 2EDA 662E 0FC8 D700 8588 874B
To claim this, I am signing this object:
| diff --git a/src/cli/main.c b/src/cli/main.c | |
| index 6347765..b342d0d 100644 | |
| --- a/src/cli/main.c | |
| +++ b/src/cli/main.c | |
| @@ -40,7 +40,7 @@ static struct argp usage = { | |
| }, | |
| parser, | |
| "COMMAND [ARG...]", | |
| - "Command line utility for manipulating NVIDIA GPU containers.", | |
| + "Command line utility for manipulating NVIDIA GPU containers. (customized v0)", |
| import os | |
| import subprocess | |
| from flask import Flask | |
| from flask import request | |
| from flask import abort | |
| app = Flask(__name__) | |
| API_KEY = os.environ["API_KEY"] |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "id": "01", | |
| "name": "john" | |
| }, | |
| { | |
| "id": "02", | |
| "name": "tom" | |
| } | |
| ] |
| import XCTest | |
| import Embassy | |
| import EnvoyAmbassador | |
| class MyUITests: UITestBase { | |
| func testUserList() { | |
| router[DefaultRouter.fetchUsersPath] = DelayResponse(JSONResponse(handler: { _ in | |
| return [ | |
| ["id": "01", "name": "John"], |
| target 'MyProjectUITests' do | |
| pod 'Embassy', '~> 1.0' | |
| pod 'EnvoyAmbassador', '~> 0.0.1-alpha-1' | |
| end |
| import Foundation | |
| import XCTest | |
| import Embassy | |
| import EnvoyAmbassador | |
| class UITestBase: XCTestCase { | |
| let port = 8080 | |
| var router: Router! | |
| var eventLoop: EventLoopType! |
| class DefaultRouter: Router { | |
| static let fetchUsersPath = "/api/v2/users" | |
| override init() { | |
| super.init() | |
| self[DefaultRouter.fetchUsersPath] = DelayResponse(JSONResponse(handler: ({ environ -> AnyObject in | |
| return [ | |
| ["id": "01", "name": "john"], | |
| ["id": "02", "name": "tom"] | |
| ] | |
| }))) |