Skip to content

Instantly share code, notes, and snippets.

@Giwi
Giwi / santa_factory.mc2
Last active December 14, 2023 14:50
santa_factory.mc2
{
'name' '@senx/blog/posts/svg/santa_factory'
'desc'
<'
SVG for blog post
'>
'sig' [ [ [ ] [ ] ] ] // Signature
'params' {}
'examples' []
} 'info' STORE
<html>
<head>
<title>Test</title>
</head>
<body>
<discovery-dashboard url="https://warp.senx.io/api/v0/exec">
@training/dataset1
[ $TOKEN 'data.fuel' {} ] FINDSETS
STACKTOLIST 1 GET 'labels' STORE
{
@Giwi
Giwi / index.js
Last active September 3, 2019 17:31
etat-du-trafic-en-temps-reel dataset ingestion for Warp 10
const axios = require('axios');
const dayjs = require('dayjs');
const cron = require('node-cron');
const token = 'WRITE TOKEN';
const read_token = 'READ TOKEN';
const warp10 = 'http://localhost:8080/api/v0';
let nhits = Number.MAX_VALUE;
const pagination = 200;
function getRecords(currentRecord) {
@echo off
@rem set JAVA_HOME=/opt/java8
@rem set WARP10_HOME=D:\Warp10\warp10-2.1.0
set /a JMX_PORT=1098
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
var fs = require('fs')
var es = require('event-stream')
var dayjs = require('dayjs')
var axios = require('axios')
var customParseFormat = require('dayjs/plugin/customParseFormat')
dayjs.extend(customParseFormat)
var data = ''
var lineCount = 0
var lineTotal = 0

Keybase proof

I hereby claim:

  • I am giwi on github.
  • I am xavmarin (https://keybase.io/xavmarin) on keybase.
  • I have a public key whose fingerprint is F759 EBA8 3CD3 5E4D CD62 EB53 EEE8 A58A E6F4 3618

To claim this, I am signing this object: