This file contains 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
<? | |
$this->facebook_id = $facebook_id; | |
$active_game = array_filter($games, function($game) { | |
return $game->active; | |
}); | |
/* | |
# Not sure this is needed, the game with the lowest game_id should be returned. | |
if (count($active_game) > 1): |
This file contains 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
{ | |
"email" : "you@example.com", | |
"phone" : "+44 (0) 20 7033 9753", | |
"repo" : "http://github.com/user/repo", | |
"example1" : "http://www.example.com/", | |
"example2" : "http://www.example.com/", | |
"example3" : "http://www.example.com/" | |
} |
This file contains 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 request = require('request'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var requestOptions = { | |
url: 'https://curation.test.api.bbci.co.uk/collections?about=31684f19-84d6-41f6-b033-7ae08098572a', | |
agentOptions: { | |
pfx: fs.readFileSync(path.resolve('./dist/server/certificates/bbc.cert.p12')), | |
passphrase: require('./certificates/passphrase') | |
} |
This file contains 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
> bbcthree-web@0.0.0 build /home/developer/bbcthree-web | |
> gulp build | |
Error: Cannot find module 'through2' | |
at Function.Module._resolveFilename (module.js:338:15) | |
at Function.Module._load (module.js:280:25) | |
at Module.require (module.js:364:17) | |
at require (module.js:380:17) |
This file contains 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
// Some of this is pseudo-code / redacted... | |
function get(routeName, params, res) { | |
... | |
return cache.get('hget', cacheKey, 'json') | |
.then(r => { | |
newRelic.endTransaction(); | |
return r; | |
}) | |
.catch(...); |