Skip to content

Instantly share code, notes, and snippets.

💭
Waiting for pod to exist...

Mathias Biilmann biilmann

💭
Waiting for pod to exist...
Block or report user

Report or block biilmann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@biilmann
biilmann / readme.md
Created Oct 14, 2015
Quick Guide to Private NPM Modules on Netlify
View readme.md

Using NPM Private Modules on Netlify

Create a .npmrc file for your project like this:

//registry.npmjs.org/:_authToken=${NPM_TOKEN}

Then find your token inside the ~/.npmrc file in your home folder and set it as an NPM_TOKEN environment variable through netlify's admin UI.

@biilmann
biilmann / gulpfile.js
Created Sep 25, 2014
BitBalloon Gulp
View gulpfile.js
'use strict';
var gulp = require('gulp'),
bb = require('bitballoon');
gulp.task('build', [], function() {
// Your build task
});
gulp.task('deploy', ['build'], function() {
@biilmann
biilmann / data.json
Last active May 8, 2018
Stars, Forks & Issues for Popular Static Site Generators
View data.json
{"BarryMode/grav-plugin-blackhole":{"17642":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17643":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17644":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17645":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17646":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":40,"network_count":1,"subscribers_count":6},"17647":{"size":96,"stargazers_count":40,"watchers_count":40,"forks_count":1,"open_issue
View keybase.md

Keybase proof

I hereby claim:

  • I am biilmann on github.
  • I am biilmann (https://keybase.io/biilmann) on keybase.
  • I have a public key whose fingerprint is 8B31 7C29 12BA 6FFE 4E14 F386 A043 EBD9 CAAF 9FE7

To claim this, I am signing this object:

View bitballoon_multipass.py
### pip install pycrypto
import base64
from Crypto.Cipher import AES
from Crypto import Random
import datetime
import hashlib
import hmac
import json
import os
View picture.coffee
# This generates markup for https://github.com/scottjehl/picturefill
# Customize this to suit your responsive image needs
markupForImage = (image, options) ->
resize = options.resize
width = options.width
height = options.height
output =
'<div data-picture data-alt="' + image.alt + '">' +
View definition.js
var obj = {
answer: 42,
reply() { console.log(this.answer); }
};
obj()
View arrow-functions-and-apply.js
this.answer = "huh"
var o = {answer: 42};
var a = function() { console.log(this.answer) }
a.apply(o)
var b = () => console.log(this.answer)
b.apply(o)
View arrow-scope.js
this.answer = 42;
var obj = {
expression: function() { console.log(this.answer); },
arrow: () => { console.log(this.answer); }
}
obj.expression();
obj.arrow();
View arrow-functions.js
// Arrow Function
var hello = () => console.log("Hello")
// Arrow Function with binding identifier
var hello = hello() => console.log("Hello")
You can’t perform that action at this time.