Skip to content

Instantly share code, notes, and snippets.

@mvtango
mvtango / README.md
Last active December 7, 2015 15:43
Formatheke Demo JSON
@mvtango
mvtango / README.md
Last active May 31, 2018 22:24
docker-influxdb-persistence-test

Influxdb doesn't recognize databases after restart. This is the test case. Yo need a working docker installation to run it.

  1. cd into the directory where you cloned this gist.

  2. run ./start-and-fill-influx.sh

  3. run ./restart-and-query-influx.sh

The data from step 2 seems not to be there.

@mvtango
mvtango / Dockerfile
Last active August 29, 2015 14:23 — forked from dceejay/Dockerfile
node-red Docker
# Dockerfile for Node-RED - pulls latest master code from git
# Use the node.js v0.10.36 engine
# based on the Dockerfile from ceejay
FROM node:0.10-slim
MAINTAINER mvtango
# download latest stable node-red
RUN npm install -g mongodb \
node-red \
node-red-admin \
@mvtango
mvtango / README.md
Last active August 29, 2015 14:23
JS Fiddle Vorlage

JSFIDDLE Vorlage

Ein simpler HTML-Rahmen, um JSFIDDLE-Code zu veröffentlichen. Einfach clonen und ausfüllen und genießen! Anleitung siehe Bild.

Danach - gist hier anschauen:

http://bl.ocks.org/*username*/*gist-ID*

Z.B.

@mvtango
mvtango / README.md
Last active August 29, 2015 14:23 — forked from mbostock/.block

(Modiefied MV 2015-06-16) Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

@mvtango
mvtango / dabblet.css
Created May 19, 2015 05:37
Clase del Máster en Periodismo BCN_NY 2014/2015
/**
* Clase del Máster en Periodismo BCN_NY 2014/2015
*/
body {
background: #fff;
min-height: 100%;
}
p.invisible {
### Keybase proof
I hereby claim:
* I am mvtango on github.
* I am mvtango (https://keybase.io/mvtango) on keybase.
* I have a public key whose fingerprint is ADD0 B190 E900 D9E0 D364 137E F846 1BC7 AEF5 6E58
To claim this, I am signing this object:
@mvtango
mvtango / index.html
Last active August 29, 2015 14:07
Twitter List Widget
<html>
<head><title>Two Twitter List Widgets</title></head>
<body>
<h2>Twitter Anleitung:
<a href="https://dev.twitter.com/web/embedded-timelines#timeline-selection">Eine Widget ID, mehrere Listen</a>
</h2>
<div style="width:50%; height: 500px; float:left">
<a class="twitter-timeline" href="https://twitter.com/dpa/lists/erdogan-in-koeln" data-list-slug="erdogan-in-koeln" data-list-owner-screen-name="dpa" data-widget-id="432176307640606720">Erdogan in Koeln</a>
</div>
DROP PROCEDURE IF EXISTS redate_order;
delimiter //
CREATE PROCEDURE redate_order (INOUT orderid INT, INOUT stamp VARCHAR(255))
proc:BEGIN
START TRANSACTION;
update wp_wpsg_order set cdate=stamp where id=orderid;
insert into wp_wpsg_orderlog set o_id=orderid,cdate=now(),title="dummy";
SET @neworder=LAST_INSERT_ID();
update wp_wpsg_orderlog set title=concat("Datum manuell geändert auf ",stamp) where id=@neworder;
SET stamp=(select title from wp_wpsg_orderlog where id=@neworder);
@mvtango
mvtango / index.html
Last active August 29, 2015 14:05
Tabletop Test
<html>
<head>
<title>Javascript Tabletop Test</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="tabletop.js"></script>
</head>
<body>
<div id="data">
</div>