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
tail -f log/pre_production.log | grep -B 1 -A 5 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
(function(exports){ | |
exports.computed = {}; | |
/** | |
* Returns an arrayComputed property that filters the elements in the `dependentKey` | |
* that have its `propertyKey` between (inclusive) the values in `startKey` and `endKey`. | |
* It reacts to additions to changes in the `dependentKey`, `startKey` and `endKey`. | |
* | |
* Right now it assumes that the array in the dependentKey is sorted and preserves | |
* that sorting. |
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
(function(app) { | |
var computed = {}; | |
/** | |
* Returns an arrayComputed property that filters the elements in the `dependentKey` | |
* that have its `propertyKey` between (inclusive) the values in `startKey` and `endKey`. | |
* It reacts to additions to changes in the `dependentKey`, `startKey` and `endKey`. | |
* | |
* Right now it assumes that the array in the dependentKey is sorted and preserves | |
* that sorting. |
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
completed? && matches.played.count == 132 && matches.non_played.count == 0 |
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
serverMiddleware: function(config) { | |
var app = config.app; | |
app.use('/docs', function(request, response, next) { | |
response.send("Hello world"); | |
}); | |
} |
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
serverMiddleware: function(config) { | |
var app = config.app; | |
console.log('registring middleware...'); | |
app.use('/docs', function(request, response, next) { | |
console.log('docs middleware invoked'); | |
response.send("Hello world"); | |
}); | |
} |
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
{ | |
"brand": { | |
"id": "1", | |
"name": "Audi", | |
"foundation": "1912", | |
"models": { | |
"href": "http://example.com/models/5,12,17,20", | |
"ids": [ "5", "12", "17", "20" ], | |
"type": "models" | |
} |
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
# | |
# Run in a Macbook Retine 15" (i7-2GHz + 8GB ram) | |
# | |
# Sinatra with ruby 2.2.0 warmed (3rd run) | |
$ wrk -t4 -c100 -d30S --timeout 2000 "http://127.0.0.1:9292/showdown" | |
Running 30s test @ http://127.0.0.1:9292/showdown | |
4 threads and 100 connections | |
Thread Stats Avg Stdev Max +/- Stdev |
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
import Ember from 'ember'; | |
import OAuth2Authenticator from 'simple-auth-oauth2/authenticators/oauth2'; | |
// This class inherits from the OAUTH authenticator and customizes the `authenticate` method | |
// to send the PIN instead of the username/password. | |
export default OAuth2Authenticator.extend({ | |
authenticate: function(options) { | |
var _this = this; | |
return new Ember.RSVP.Promise(function(resolve, reject) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.