Skip to content

Instantly share code, notes, and snippets.

View mathiasleroy's full-sized avatar

Mathias Leroy mathiasleroy

View GitHub Profile
Date PostCode Cases Deaths NIS5
2020-04-29 9000 5 6 44021
2020-04-29 4000 2 4 62093
2020-04-29 4000 2 4 62063
2020-04-29 5000 9 2 92094
2020-04-29 3600 9 2 71016
2020-04-29 2000 4 2 11002
2020-04-29 1400 2 2 25072
2020-04-29 1400 2 2 52063
2020-04-29 3500 2 2 71022
// USING https://github.com/Hopding/pdf-lib
// ADD PDF TIMESTAMP AFTER ANCHOR CLICK
$(document).ready(function(){
$("a").click(function(event){
event.preventDefault();
console.log("user clicked pdf link");
file = event.target.href; // e.g. file = 'docs/example1.pdf';
fetch(file) .then(
@mathiasleroy
mathiasleroy / static-starter-template.html
Created November 10, 2016 10:27
Mathias Leroy's Static HTML5 Starter Template
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Starter Template</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
update_interval 2
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
no_buffers yes
use_xft yes
override_utf8_locale yes
%macro pushFirebase(dataset,firebaseName,fbObject,variables);
/*
! change temporaryFilePath to fit your environement
dataset = sas data set to push to firebase
firebaseName = name of your firebase app name (xxx.firebaseio.com)
fbObject = name of the firebase object to create
/* Custom theme for http://github.hubspot.com/pace/docs/welcome/
* By Mathias Leroy
* Free to use if cited
*/
.pace { -webkit-pointer-events: none; pointer-events: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; z-index: 2000; position: fixed; height: 60px; width: 100px; margin: auto; top: 0; left: 0; right: 0; bottom: 0; }
.pace-running #wholebody { opacity:0; }
.pace-done #wholebody { opacity:1; }
.pace-inactive { display: none; }
.pace .pace-progress { background-color: #337ab7; position: fixed; z-index: 2000; top: 0; right: 100%; width: 100%; height: 4px; }
@mathiasleroy
mathiasleroy / gist:b797bacd837868119701
Created June 19, 2015 08:30
static-website-makefile
#########################################################################
# STATIC WEBSITE MAKEFILE
#########################################################################
# npm install html-minifier -g
# npm install uglifycss -g
# npm install uglify-js -g
project = YOURPROJECTNAME
<snippet>
<content><![CDATA[
<span class="glyphicon glyphicon-$1"></span> $2
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>glyph</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>