Skip to content

Instantly share code, notes, and snippets.

View antichaos's full-sized avatar

Johan de Groot antichaos

View GitHub Profile
@antichaos
antichaos / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@antichaos
antichaos / endless-wall-listener.js
Created October 11, 2015 13:15
Fatboy: Endless Wall listener
$('a.link-post img').click(function(){
date = ($(this).parent().attr('data-date'));
image = ($(this).parent().attr('data-image-url'));
href = ($(this).parent().attr('href'));
title= ($(this).attr('alt'));
dataLayer.push({
'event': 'EWclick',
@antichaos
antichaos / test.html
Last active August 24, 2016 14:46
Videoland Product
<!--pager:-->
.slider__navigation data-slide=\d
<!--menu-->
<!--Carrousel-->
- Klik op item
- klik pager
@antichaos
antichaos / .block
Last active February 8, 2018 13:26
fresh block
license: mit
@antichaos
antichaos / .block
Created February 8, 2018 13:26
fresh block
license: mit
@antichaos
antichaos / .block
Created February 10, 2018 08:03
Language Chord Diagram
license: mit
'use strict';
(function () {
// This variable will save off the function we can call to unregister listening to marks-selected events
let unregisterEventHandlerFunction;
$(document).ready(function () {
tableau.extensions.initializeAsync().then(function () {
populateSheet();
}, function (err) {
<div class='tableauPlaceholder' id='viz1585414484634' style='position: relative'><noscript><a href='#'><img alt=' ' src='https:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;88&#47;885J3HH62&#47;1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='path' value='shared&#47;885J3HH62' /> <param name='toolbar' value='yes' /><param name='static_image' value='https:&#47;&#47;public.tableau.com&#47;static&#47;images&#47;88&#47;885J3HH62&#47;1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='filter' value='publish=yes' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
</head>
<body>
<script>
SELECT
'CyberSecurityIndex' AS "index",
"CyberSecurityIndex"."Country" AS "Country",
"CyberSecurityIndex"."iso3" AS "iso3",
CAST("CyberSecurityIndex"."Year" AS TEXT) AS "Year",
t.subindex AS subindex,
CAST(t.value AS float) AS value
FROM "indices"."009_cybersecurityindex" "CyberSecurityIndex"
cross join lateral (
values