Skip to content

Instantly share code, notes, and snippets.

View hjanuschka's full-sized avatar
🤖
-.-

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
$(FASTLANE_TEAM_ID)/$(SIGH_PROFILE_NAME)
[
{ $match: { "vision.labels": { $in: ["cat"] } } },
{ $group: { _id: null, count: { $sum: 1 } } }
]
Promise.resolve()
.then(a)
.then(b)
.then(c)
.then(d)
.then(e)
.then(f)
.then(function() {
console.log("FINAL")
})
Promise.resolve()
.then(a("OK1"))
.then(a("OK2"))
.then(a("OK3"))
.then(a("OK4"))
.then(a("OK5"))
.then(a("DONE"))
.catch(function(e) {
console.log("ERROR");
});
Promise.resolve()
.then(a("OK1"))
.then(a("OK2"))
.then(a("OK3"))
.then(a("OK4"))
.then(a("OK5"))
.then(a("DONE"))
.catch(function(e) {
console.log("ERROR");
});
@hjanuschka
hjanuschka / 1.js
Created August 16, 2016 20:22
google-vision
var vision = require("@google-cloud/vision");
console.log(process.argv);
var visionClient = vision({
projectId: "fxf-vision",
keyFilename: "google-key.json"
});
{
"header": [
"#",
"Team",
"Sp",
"S",
"U",
"N",
"+/-",
"P"
{
"header": [
"#",
"Team",
"Sp",
"S",
"U",
"N",
"+/-",
"P"
<html>
<head>
<script src=https://dispatcher.oewabox.at/oewa.js></script>
</head>
<body>
<script>
var match,
pl = /\+/g,
search = /([^&=]+)=?([^&]*)/g,