Skip to content

Instantly share code, notes, and snippets.

Avatar
🤞
reverse-engineering assumptions

Sander van Dragt svandragt

🤞
reverse-engineering assumptions
View GitHub Profile
@svandragt
svandragt / how-i-work-template.md
Last active Jan 26, 2022 — forked from jazzsequence/how-i-work-template.md
How I Like to Work posts (2021-06)
View how-i-work-template.md

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 (https://time.is/Edinburgh). 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
<?php
try {
// Decode JSON data from Github
$payload = json_decode($_REQUEST['payload']);
}
catch(Exception $e) {
exit(0);
}
// Deploy live if push was on master branch
@svandragt
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: http://internet-inspired.com/wrote/load-disqus-on-demand/
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
$.ajax({
type: "GET",
url: "http://" + disqus_shortname + ".disqus.com/embed.js",
dataType: "script",
@svandragt
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="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.name }}</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>