Skip to content

Instantly share code, notes, and snippets.

View birkestroem's full-sized avatar

Jesper Birkestrøm birkestroem

View GitHub Profile
@birkestroem
birkestroem / bootstrapState
Created April 16, 2014 12:36
Quick and dirty bootstrap state thing
var bootstrapState = {
current: null,
last: null
};
_.extend(bootstrapState, Backbone.Events);
(function () {
var last;
function findState() {
/**
* TODO: Optimize the MQ's logic to produce one statement.
*/
@mixin breakpoint($point, $media: all) {
@if index($point, "xs") != null {
@media only #{$media} and (max-width: #{$screen-xs-max}) {
@content;
}
}
@function debug($list) {
$result: #{"[ "};
@each $item in $list {
@if length($item) > 1 {
$result: $result#{debug($item)};
}
@else {
$result: $result#{$item};
}
define(function () {
function Gomo(options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
}
var duration = options.duration || 500;
var easing = this.easing[options.easing || 'easeInOut'];
var start = null;
@birkestroem
birkestroem / Damn-it,-man,-Im-a-doctor,-not-a-torpedo-technician!.markdown
Created December 9, 2014 08:01
Damn it, man, I'm a doctor, not a torpedo technician!
@birkestroem
birkestroem / debsign
Last active August 29, 2015 14:20
OSX version of debsign.
#! /bin/sh
# This program is designed to GPG sign a .dsc and .changes file pair
# in the form needed for a legal Debian upload. It is based in part
# on dpkg-buildpackage. It takes one argument: the name of the
# .changes file.
# Debian GNU/Linux debsign. Copyright (C) 1999 Julian Gilbey.
# Modifications to work with GPG by Joseph Carter and Julian Gilbey
# Modifications for OS X command-line utils (C) 2013 Mikhail Gusarov
#!/bin/bash
#
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
#
# Usage: sudo ./boot2docker-use-nfs.sh
#
// ==UserScript==
// @name Asana wide
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://app.asana.com/*
// @grant GM_addStyle
// ==/UserScript==
@birkestroem
birkestroem / _README.md
Created August 7, 2017 17:46 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators

Export (on host A)

$ docker-machine ls
NAME       ACTIVE   DRIVER         STATE     URL                            SWARM   DOCKER    ERRORS
dev        -        digitalocean   Running   tcp://example.com:2376                 v1.10.1