Skip to content

Instantly share code, notes, and snippets.

View pascaldevink's full-sized avatar
💭
Recruiters: stop looking at my profile

Pascal de Vink pascaldevink

💭
Recruiters: stop looking at my profile
View GitHub Profile
@pascaldevink
pascaldevink / scrollspy.js
Created April 13, 2012 20:53
ScrollSpy in pure javascript
/*
Copyright (C) 2021 Pascal de Vink (Tweakers.net)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@pascaldevink
pascaldevink / gist:413fdd9d9436e138150ff14d6ae022ea
Created January 25, 2017 10:21
overblog/graphql-bundle JSON exception stack trace
{
"error": {
"code": 500,
"message": "Internal Server Error",
"exception": [
{
"message": "Warning: mb_strlen() expects parameter 1 to be string, array given",
"class": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
"trace": [
{
@pascaldevink
pascaldevink / .git-commit-template.txt
Last active March 11, 2016 09:13 — forked from adeekshith/.git-commit-template.txt
A Git commit template to make it easy to enforce a good and uniform commit message style across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
//we changed this function so you can add a class 'ignore-link' to an element
//this way the click is registered, but not followed
function ns_onclick(i, b, c, h, j) {
var e = "";
if (typeof ns_pixelUrl == "string") {
e = ns_pixelUrl.substring(0, ns_pixelUrl.indexOf("?") + 1)
}
e += c;
e += "&ns_type=" + h + "&ns_action=view";
e += "&ns__t=" + (new Date()).getTime();
@pascaldevink
pascaldevink / gist:6790923
Created October 2, 2013 08:55
Hubot dependency tree
├── date-utils@1.2.14
├─┬ githubot@0.4.1
│ ├── async@0.2.9
│ └── scoped-http-client@0.9.8
├── gitio@1.0.1
├─┬ hubot@2.6.3
│ ├── coffee-script@1.6.3
│ ├─┬ express@3.3.4
│ │ ├── buffer-crc32@0.2.1
│ │ ├─┬ commander@1.2.0
@pascaldevink
pascaldevink / gist:6790914
Created October 2, 2013 08:54
Hubot request var
{ socket:
{ _handle:
{ writeQueueSize: 0,
owner: [Circular],
onread: [Function: onread] },
_pendingWriteReqs: 1,
_flags: 0,
_connectQueueSize: 0,
destroyed: false,
errorEmitted: false,
BOOL is_Object(const id b)
{
if (b != nil) {
if (b->isa != (id)0x0) {
if (b->isa!= (id)0x7f) {
if (b->isa!= (id)0x7f7f7f7f) {
return YES;
}
}
}
@pascaldevink
pascaldevink / rml_config.inc.php
Last active December 10, 2015 14:58
Not something I want to see in my codebase
/*
* Beware, that this is not for the faint of heart!
* No documentation is provided. New versions of <redacted> will not feature
* upgradescripts, this must be done by hand.
*/
@pascaldevink
pascaldevink / dod.md
Created November 25, 2015 08:30
Definition Of Done
  1. Code produced (all ‘to do’ items in code completed)
  2. Code commented
  3. Checked in and run against current version in source control
  4. Meeting development standards
  5. Unit tests written and passing
  6. Functional tests written and passing
  7. Peer reviewed (or produced with pair programming)
  8. Deployed
@pascaldevink
pascaldevink / things-i-was-unprepared-for.md
Last active October 7, 2015 20:12
Things I was unprepared for as a lead developer (working title)

This is not a story of how I survived a big technology company or startup. This is not the story of a young junior developer working his way through the ranks to become the greatest leader of all.

No. Instead, this is the story of how I became a lead developer and all the things I did wrong. It's about delegating, culture building, mentoring, planning, meetings (oh dreadful meetings), upper management and all the other stuff that a leader has to go through. It's also about all the fun I had and the things I learned. Next to that, I'm going to hand out some tips that can prepare you for the job a little better. And hopefully, it will inspire you to be the greatest leader of all.

Side note: This talk is based on my well received blog post on dev-human: http://dev-human.com/entries/2015/09/07/things-i-was-unprepared-for/