By Henry Blyth
[@henrahmagix][]
# Call `git push --set-upstream` with current branch to a remote, defaulting to origin. | |
# Pass the remote as the first argument after the alias. | |
# Ensure confirm.sh is in your path. | |
# Usage: git psu [remote] | |
# Example: | |
# git remote add new-remote git@url... | |
# git checkout -b my-branch | |
# git psu new-remote |
# Altered from example at the bottom of the git-stash man page. | |
# Run `git gc` to remove them completely. | |
git fsck --unreachable | grep commit | cut -d' ' -f3 | xargs git log --merges --no-walk --grep=WIP --grep=On |
// ( none ) ( of ) ( this ) ( please ) | |
(function (none) {return none;})((function (of) {return of;})(function () {return this.toString();}.bind('please')))(); | |
// -> please |
module.exports = function (grunt) { | |
grunt.loadNpmTasks('grunt-webfont'); | |
grunt.initConfig({ | |
webfont: { | |
icons: { | |
src: 'black/svg/file-{audio,image,movie,pdf,excel,archive,word}-o.svg', | |
dest: 'icons', | |
destCss: 'css/', |
// Parse the value returned by $.css('-webkit-transform') | |
var parseTranslationValue = function (value, suffix, axis) { | |
if (angular.isUndefined(value) || value === '') { | |
// return early if value isn't passed. | |
return 0; | |
} else { | |
// Default suffix value. | |
if (angular.isUndefined(suffix)) { | |
suffix = ''; |
#!/bin/sh | |
# Just copy and paste the lines below (all at once, it won't work line by line!) | |
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY! | |
function abort { | |
echo "$1" | |
exit 1 | |
} | |
set -e |
<html> | |
<head> | |
<title>Nested counter-reset styles</title> | |
<style type="text/css"> | |
ol, | |
ul { | |
list-style: none; | |
counter-reset: listStyle; | |
margin: 1em 0; |