Skip to content

Instantly share code, notes, and snippets.

View chriskjaer's full-sized avatar

Chris Kjær chriskjaer

View GitHub Profile
@chriskjaer
chriskjaer / circle.yml
Last active March 22, 2017 22:29
Use Yarn on CircleCI with cache
machine:
pre:
- mkdir ~/.yarn-cache
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
cache_directories:
- ~/.yarn-cache
override:
@chriskjaer
chriskjaer / gulpfile.js
Last active March 9, 2018 03:18
Gulpfile for CMS integration (Drupal, Wordpress, Umbraco Sitecore etc.) Includes task for Sass + Autoprefixer, Styleguide (KSS) and JS Uglifier.
'use strict';
var gulp = require('gulp'),
concat = require('gulp-concat'),
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
watch = require('gulp-watch'),
prefix = require('gulp-autoprefixer'),
del = require('del'),
kss = require('gulp-kss'),
@chriskjaer
chriskjaer / bem-init.html
Created January 28, 2014 07:23
BEM Eksempel
<div class="human">
<div class="human__head"></div>
<div class="human__arm"></div>
<div class="human__arm"></div>
<div class="human__body"></div>
<div class="human__leg"></div>
@chriskjaer
chriskjaer / gulpfile.js
Last active October 12, 2024 17:15
Gulp recipe: Jade, Sass, Livereload and static server
var gulp = require('gulp'),
gutil = require('gulp-util'),
sass = require('gulp-sass'),
csso = require('gulp-csso'),
uglify = require('gulp-uglify'),
jade = require('gulp-jade'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei
tinylr = require('tiny-lr'),
express = require('express'),
@chriskjaer
chriskjaer / chriskjaer.zsh-theme
Last active January 3, 2016 08:19
My zsh theme
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%} "
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
function prompt_char {
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
}
PROMPT='%(?, ,%{$fg[red]%}FAIL: $?%{$reset_color%})