Skip to content

Instantly share code, notes, and snippets.

Avatar

levelsio levelsio

View GitHub Profile
View gist:122907e95956602e5c09
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
View BerichtenBoxDownloader.php
<?
/*
BERICHTENBOX DOWNLOADER 0.1
by @levelsio
----
This is a very rough implementation to login, access and download new messages from the Dutch govenment's BerichtenBox.
Read more about why here: https://levels.io/gov-y-u-suck/
P.S. A prettier implementation in Python by @jplattel is here: https://github.com/jplattel/berichtenbox-forwarder
View gist:0575b7bfebea918e50a267af9b9168c8
$('.action-upload-file').bind('click',function() {
$('.upload-file-uploader').trigger('click');
});
$('.upload-file-uploader').bind('change',function(evt) {
var files = evt.target.files; // FileList object
console.log(files);
// files is a FileList of File objects. List some properties.
var output = [];
var imageAsText='';
for (var i = 0, f; f = files[i]; i++) {
View gist:2a89bfd8c410d57acb19712250ac84d7
<?
// <readme>
/*
This is a lite version of Olark's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
View LevelsLark 1.0
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
View LevelsLark 1.01
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
#killyourdependencies
View LevelsLark 1.02
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
#killyourdependencies
View LevelsLark 1.03
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
#killyourdependencies
View Nomad Card JS + CSS
<link href="https://fonts.googleapis.com/css?family=Rubik:500" rel="stylesheet">
<script>
$(function() {
$('.nomadcard').bind('mousemove',function(e) {
console.log('mousemove');
pOffset = $(this).offset();
x = e.pageX - pOffset.left;
y = e.pageY - pOffset.top;
w=$(this).width();
View Building an MVP? Need a quick DB? Use JSON!
#
# Building an MVP?
# Need a quick database you can set up in seconds?
# What about JSON?
#
# by @levelsio (with help from @marckohlbrugge, @oskarth, @maxdeviant and @kumailht)
# JS
db=[]
fs=require('fs')