Skip to content

Instantly share code, notes, and snippets.

View lode's full-sized avatar

Lode Claassen lode

View GitHub Profile
@lode
lode / keybase.md
Created April 27, 2018 15:01
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@lode
lode / index.html
Created February 25, 2018 20:55
Mahjong
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.stone {
font-size: 10em;
}
</style>
</head>
<body>
@lode
lode / custom-javascript.html
Created December 7, 2016 20:31
Lightspeed 360º foto plaatsen - javascript voorbeeld generiek
<script type="text/javascript" src="http://domein.nl/object2vr/object2vr.js"></script>
<script type="text/javascript">
setTimeout(function(){
jQuery(document).ready(function(){
if (jQuery('meta[name="keywords"]').attr('content').indexOf('360') != -1) {
object2vr({
locationBase: 'http://domein.nl/object2vr/klantnaam' + window.location.pathname,
mimicElement: jQuery('.zoombox .images .zoom.first'),
});
}
@lode
lode / error_handling.php
Created February 2, 2016 10:27
Error handling
<?php
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
error_reporting(-1);
echo 'start'.PHP_EOL;
@file('foo');
echo var_export(error_get_last(), true).PHP_EOL;
echo 'end'.PHP_EOL;
@lode
lode / event.js
Created February 19, 2015 11:49
MasterSlider hide first/llast navigation
function(event){
var api = event.target;
var total_slides=api.count();
var current_slide = api.index();
if(current_slide == total_slides-1){
jQuery('.ms-nav-next').addClass('forward-hidden').removeClass('ms-nav-next');
}
else{
jQuery('.forward-hidden').addClass('ms-nav-next').removeClass('forward-hidden');
@lode
lode / index.php
Last active August 29, 2015 14:04
Automatic partials
<?php
/**
* a controller vm
* w/o explicit reference to any data
*/
class controller {}
$controller_tpl = '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Single-Column Responsive Email Template</title>
<style>
@media only screen and (min-device-width: 541px) {
.content {
@lode
lode / eerst.html
Last active December 17, 2015 15:18
revealElement CitySessies
<div class="revealElement" title="Klik hier">
extra inhoud
</div>
... zorgt voor ...
<a href="#">Klik hier</a>
<div class="revealElement" title="Klik hier">
extra inhoud
</div>
@lode
lode / gist:4185261
Created December 1, 2012 21:40
Saving an object in Apigee
animals.get(function(){
console.log(animals);
console.log(animals._list[0]['_uuid']);
while(animals.hasNextEntity()) {
var animal = animals.getNextEntity();
$('#animalList').append('<li>we have a ' + animal.get('kind') + ' called ' + animal.get('name') + '</li>');
console.log(animal);
@lode
lode / index.html
Created October 12, 2012 11:20
Lightbox zelfbouw
<!doctype html>
<html>
<head>
<title>Lightbox test</title>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="jquery-lightbox-0.5/js/jquery.lightbox-0.5.min.js"></script>
<link type="text/css" rel="stylesheet" href="jquery-lightbox-0.5/css/jquery.lightbox-0.5.css">
<script type="text/javascript">
$(document).ready(function(){
$('.lightbox').each(function(){