Skip to content

Instantly share code, notes, and snippets.

@wibron
wibron / FT2014_slides.md
Last active August 29, 2015 14:01 — forked from oszbart/FT2014_slides
Front Trends 2014 slides/resources

Day 1

Julian Cheal

Dancing with Robots

?

Tero Parviainen

Build Your Own AngularJS

@wibron
wibron / Gruntfile.js
Last active April 12, 2017 23:34
This is my personal preferred setup using Grunt while developing.
module.exports = function (grunt) {
// Require all grunt-tasks instead of manually initialize them.
require('load-grunt-tasks')(grunt);
// The magic
grunt.initConfig({
watch: {
scripts: {
files: ['public/js/*.js'],
@wibron
wibron / _sprite.scss
Last active December 12, 2015 07:48
Compass spriting
@import "compass";
@import "icons/*.png";
// Specifika ikoner från din sprite
// Höjd/bredd kalkyleras ut automagiskt
.login {
@include icon-sprite(login);
}
.home {
@include icon-sprite(home);
@wibron
wibron / git.md
Created February 4, 2013 09:48
git pro's over svn

git pro's over svn

  • Local commits
  • Local branching (with local merging)
  • Doesn't create a folder for every branch, smaller file size on disk
  • Distributed (every user has their own repo and not forced to work against a central repo)
  • Access to the whole history without being connected to the internets
  • Stashing (put away WIP and apply when needed)
  • Simple tag-management
  • Possible to push several commits at once
@wibron
wibron / newemptybranch.sh
Created December 18, 2012 15:23
Create an empty branch with no history
git checkout --orphan emptybranch
@wibron
wibron / README.md
Created October 16, 2012 13:36
Create screenshot from a webpage via PhantomJS

Take screenshots with PhantomJS

Usage:

$ phantomjs screenshot.js http://your-url.com/
@wibron
wibron / gist:1152143
Created August 17, 2011 17:52
Run shell-command with Applescript as root
-- The shellscript:
-- #!/bin/sh
-- sudo mount_nfs -P 192.168.0.1:sharename ~/localPath
tell application "Terminal"
do shell script "~/.shellscript.sh" password "yourpassword" with administrator privileges
quit
end tell