Skip to content

Instantly share code, notes, and snippets.

reverse-engineering assumptions

Sander van Dragt svandragt

reverse-engineering assumptions
View GitHub Profile
svandragt /
Last active Jan 26, 2022 — forked from jazzsequence/
How I Like to Work posts (2021-06)

How I work

This is my own interpretation of how I like to work, feedback welcome! If this doesn't match your experience of how I like to work, let me know! ;)

When I work

I'm almost always in the UK. I operate from the BST/GMT timezone ( I follow a 9am-5pm working hours format, this is best for my family. Occasionally I might take a nap and work late to compensate.

I tend to work 7 hours a day with ideally the first hour of the day for admin. Meetings are best in the morning as it takes me time to get into the groove, so I do my best work in the afternoon.

Where I work

I work from home. My dog might walk in on our meeting!

View github-webhook-deploy.php
try {
// Decode JSON data from Github
$payload = json_decode($_REQUEST['payload']);
catch(Exception $e) {
// Deploy live if push was on master branch
svandragt / gist:7713a901fdac7b24fe3b6adbd31f74a2
Created Apr 25, 2016 — forked from nternetinspired/gist:7482445
Load Disqus comments only on demand if you give a shit about page weight and your visitors. Even with no comments, i.e. an empty comment form, calling Disqus will load an extra 226Kb. If your page has comments this can be far higher. This Gist accompanies my blog post:
View gist:7713a901fdac7b24fe3b6adbd31f74a2
// Requires jQuery of course.
$(document).ready(function() {
$('.show-comments').on('click', function(){
var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username.
// ajax request to load the disqus javascript
type: "GET",
url: "http://" + disqus_shortname + "",
dataType: "script",
svandragt / atom.xml
Last active Aug 29, 2015 — forked from stammy/index.xml
Generalized atom.xml to use with jekyll (validates)
View atom.xml
layout: nil
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="">
<title type="text" xml:lang="en">{{ }}</title>
<link type="application/atom+xml" href="{{ site.url }}/atom.xml" rel="self"/>
<link type="text/html" href="{{ site.url }}" rel="alternate"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>