Skip to content

Instantly share code, notes, and snippets.

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

Helmut Januschka hjanuschka

🤖
-.-
  • Vienna/Austria
View GitHub Profile
@hjanuschka
hjanuschka / update_spark.sh
Created April 25, 2016 14:41
Fix UUID inside Spark inspector
#!/bin/bash
#get current xcode uuid
UUID=$(defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID)
#update spark inspector uuid
defaults write ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/SparkInspectorXcodePlugin.xcplugin/Contents/Info.plist DVTPlugInCompatibilityUUIDs -array-add $UUID
<html>
<head>
<script src=https://dispatcher.oewabox.at/oewa.js></script>
</head>
<body>
<script>
var match,
pl = /\+/g,
search = /([^&=]+)=?([^&]*)/g,
{
"header": [
"#",
"Team",
"Sp",
"S",
"U",
"N",
"+/-",
"P"
{
"header": [
"#",
"Team",
"Sp",
"S",
"U",
"N",
"+/-",
"P"
@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"
});
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");
});
Promise.resolve()
.then(a)
.then(b)
.then(c)
.then(d)
.then(e)
.then(f)
.then(function() {
console.log("FINAL")
})
[
{ $match: { "vision.labels": { $in: ["cat"] } } },
{ $group: { _id: null, count: { $sum: 1 } } }
]