Skip to content

Instantly share code, notes, and snippets.

@janwirth
janwirth / webfontMixin.styl
Last active November 12, 2015 09:03 — forked from Nitive/fonts.styl
Font face mixin for WOFF & WOFF2
// font-face mixin
font-url(file)
return 'fonts/' + file
webfont(family, file, weight = normal, style = normal)
@font-face
font-family family
file += '/' + file
url(font-url(file + '.woff2')) format('woff2'),
url(font-url(file + '.woff')) format('woff')
@janwirth
janwirth / db_quicksearch
Last active September 5, 2015 03:53
Surchkürzel code für DB Suche in Chrome. Verwendung: [Keyword] start to ziel
javascript:
var s='%s';
url='http://reiseauskunft.bahn.de/bin/query.exe/dn?getstop=1&S=%s&Z=%s';
query='';
urlChunks=url.split('%s');
console.log(s);
sChunks=s.split(' to ');
console.log(sChunks);
for(i=0; i<sChunks.length; i++)query+=urlChunks[i]+sChunks[i];
location.replace(query);
// Note the new way of requesting CoffeeScript since 1.7.x
require('coffee-script/register');
// This bootstraps your Gulp's main file
require('./Gulpfile.coffee');
@janwirth
janwirth / gist:94e0a3a9db75a260cc68
Created April 27, 2015 19:16
.env file for vagrant provisioning
APP_ENV=local