Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Stefan Imhoff kogakure

🏠
Working from home
View GitHub Profile
View Gruntfile.js
'use strict';
module.exports = function(grunt) {
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// configurable paths
var paths = {
@kogakure
kogakure / SassMeister-input-HTML.html
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class='holder'>
<div class='block-a'>A</div>
<div class='block-b'>b</div>
</div>
View config.rb
# Generate cache busters using the MD5 digest of files rather than the default
# `mtime`.
asset_cache_buster do |_, file|
Digest::MD5.hexdigest(File.read(file.path))
end
View dabblet.css
body {
font-family: Arial;
font-size: 14px;
color: grey;
}
.hide {
background: grey;
color: grey;
padding: 2px;
View generator_scss.rb
#
# Jekyll Generator for SCSS
#
# (File paths in this description relative to jekyll project root directory)
# Place this file in ./_plugins
# Place .scss files in ./_scss
# Compiles .scss files in ./_scss to .css files in whatever directory you indicated in your config
# Config file placed in ./_sass/config.rb
require 'compass'
@kogakure
kogakure / index.html
Created Aug 6, 2014
A Pen by Stefan Imhoff.
View index.html
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="300px" height="300px" viewBox="0 0 300 300" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<defs>
<style>
.icon {
display: none;
}
#home_icon_0 {
display: block;
View criticalcss-bookmarklet-devtool-snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
@kogakure
kogakure / ROCK-&-ROLL.markdown
Created Aug 17, 2014
A Pen by Stefan Imhoff.
View ROCK-&-ROLL.markdown
View dabblet.css
img {
-webkit-filter: blur(2px);
-moz-filter: blur(2px);
filter: blur(2px);
}