Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View biilmann's full-sized avatar
💭
Waiting for pod to exist...

Mathias Biilmann biilmann

💭
Waiting for pod to exist...
View GitHub Profile
@biilmann
biilmann / readme.md
Created October 14, 2015 22:07
Quick Guide to Private NPM Modules on Netlify

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 September 25, 2014 01:30
BitBalloon Gulp
'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 20:15
Stars, Forks & Issues for Popular Static Site Generators
{"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

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:

### pip install pycrypto
import base64
from Crypto.Cipher import AES
from Crypto import Random
import datetime
import hashlib
import hmac
import json
import os
# 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 + '">' +
var obj = {
answer: 42,
reply() { console.log(this.answer); }
};
obj()
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)
this.answer = 42;
var obj = {
expression: function() { console.log(this.answer); },
arrow: () => { console.log(this.answer); }
}
obj.expression();
obj.arrow();
// Arrow Function
var hello = () => console.log("Hello")
// Arrow Function with binding identifier
var hello = hello() => console.log("Hello")