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
<body ng-app="grdevday-slides" key-kiosk> | |
<kiosk src="http://kiosk.hellomean.com/api"> | |
<kiosk-nav topics="topics" /> | |
</kiosk> | |
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script> | |
<script type="text/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script> | |
<script type="text/javascript" src="bower_components/angular-animate/angular-animate.min.js"></script> | |
<script type="text/javascript" src="bower_components/ng-kiosk/dist/kiosk.min.js"></script> | |
<script type="text/javascript" src="application/main.js"></script> |
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
public class ConnectionFactory : IConnectionFactory | |
{ | |
private static readonly IDictionary Strings = new Dictionary<string,string>(); | |
static ConnectionFactory() | |
{ | |
lock(Strings.SyncRoot) | |
{ | |
Strings.Add("key", "value"); | |
} |
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
return $q.all([ | |
Resource.get({var: value}).$promise, | |
Resource.get({var: otherValue}).$promise | |
]) |
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
{ | |
"_links": { | |
"self": {"href": "http://www.beerapi.com/orders/54cde"}, | |
"beer": [ | |
{"href": "http://www.beerapi.com/beers/76cde"}, | |
{"href": "http://www.beerapi.com/beers/76cdf"} | |
], | |
"status": {"href": "http://www.beerapi.com/orders/54cde/status"} | |
}, | |
"id": "54cde", |
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
<?php | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
$app = new Application(); | |
$app->post('/order', function(Request $request) { | |
$service = new OrderService(); | |
$order = OrderFactory::fromArray($request->request->all()); | |
$service->setOrder($order); |
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
<?php | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
$app = new Application(); | |
$app->post('/order', function(Request $request) { | |
$service = new OrderService(); | |
$order = OrderFactory::fromArray($request->request->all()); | |
$service->setOrder($order); |
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
<?php | |
$app = new \Silex\Application(); | |
$doOrder = function(\SimpleXMLElement $order) { | |
$orderService = new OrderService(); | |
$orderService->setBeerId((string) $order['beer_id']); | |
$creditCard = CreditCardFactory::fromXml($order->CreditCard); | |
$orderService->setCreditCard($creditCard); | |
$order = $orderService->createOrder(); |
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
var _ = require('lodash') | |
, problem = require('../errors').problem; | |
/** | |
* Check the request for a user. If none found | |
* create an API-Problem style error | |
*/ | |
function check(req, res, next) { | |
if (!req.user) return next( | |
problem(new Error("Resource requires authorization"), { |
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
solve problems | |
software | |
AngularJS | |
passionate | |
teamwork | |
meet commitments | |
skill | |
proven history of shipping software | |
collaboration | |
creating solutions |
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
/** | |
* Sets up a model that depends on resource pools | |
* and catalogs | |
*/ | |
angular.module("uss.services"). | |
factory('CatalogItemModel', ['Catalog', 'ResourcePool', function(Catalog, ResourcePool) { | |
return { | |
setModel: function($scope, /** invoked with first cat */ cfn, /** invoked with first pool */ pfn) { | |
$scope.catalogs = Catalog.query({'public':0}, function(cats){ | |
cfn(cats[0].id); |