Skip to content

Instantly share code, notes, and snippets.

View lode's full-sized avatar

Lode Claassen lode

View GitHub Profile
@lode
lode / 1-start.txt
Last active September 14, 2026 22:04
BeekeeperStudio fix #4643
❯ I'm using this tool to connect to a remote postgres database on AWS. The
connection goes:
- via an SSH tunnel, configured in Beekeeper Studio
- using a SSH hostname, configured in ~/.ssh/config
- using a private key stored in 1Password
- all of this config is not found on this machine
I'm using version 5.9.3 without issues, but since version 6.0.0 it starts to
fail. Everything is described in this GitHub issue:
https://github.com/beekeeper-studio/beekeeper-studio/issues/4643.
@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);