I really don't like Splunk documentation. Why is it so hard to find out how to do a certain action? So this is a cheatsheet that I constructed to help me quickly gain knowledge that I need.
index="my_log"
| // Google Play API Key | |
| // ref: http://stackoverflow.com/questions/35127086/android-inapp-purchase-receipt-validation-google-play | |
| // ref: https://developers.google.com/android-publisher/authorization | |
| // ref: http://google.github.io/google-api-nodejs-client/18.0.0/index.html#toc14__anchor | |
| // | |
| // install npm package | |
| // ref: https://github.com/google/google-api-nodejs-client | |
| // $ npm install googleapis --save | |
| // | |
| const google = require('googleapis'); |
| # Create empty branch. | |
| git checkout --orphan review | |
| git rm -rf . | |
| git commit --allow-empty -m "Create empty branch" | |
| git push --set-upstream origin review | |
| # Create `project` branch from `master` current state. | |
| git checkout -b project | |
| git merge master --allow-unrelated-histories | |
| git push --set-upstream origin project |
| var elastic = require('elasticsearch'); | |
| var client = new elastic.Client({ host: 'localhost:9200' }); | |
| var index = 'myindex'; | |
| var type = 'document'; | |
| (function init() { | |
| Promise.resolve() | |
| .then(deleteIndex, handleError) |
| function asyncFunc(e) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => resolve(e), e * 1000); | |
| }); | |
| } | |
| const arr = [1, 2, 3]; | |
| let final = []; | |
| function workMyCollection(arr) { |
Picking the right architecture = Picking the right battles + Managing trade-offs
This is the content from the original Phaser cheatsheet, the site of which went down. I'm editing outdated information as I come across it.
Reference: http://docs.phaser.io/Phaser.Game.html#Game
var game = new Phaser.Game(width, height, renderer, "parent");
//All parameters are optional but you usually want to set width and height
//Remember that the game object inherits many properties and methods!(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,