Skip to content

Instantly share code, notes, and snippets.

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

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
! function() {
function t(e, n) {
e instanceof t ? (this.enc = e.enc, this.pos = e.pos) : (this.enc = e, this.pos = n)
}
function e(t, e, n, i, o) {
this.stream = t, this.header = e, this.length = n, this.tag = i, this.sub = o
}
function n(t) {
$(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"