Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Chris Wigley askesian

View GitHub Profile
@askesian
askesian / SassMeister-input.scss
Created Dec 16, 2016 — forked from indrekpaas/SassMeister-input.scss
Precise control over responsive typography for Sass
View SassMeister-input.scss
// ----
// libsass (v3.3.6)
// ----
// =========================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------
// Indrek Paas @indrekpaas
//
View gist:92145cd96b6cbe2733b2fd6f6cebe2d1
var gulp = require('gulp');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var libs = ["underscore", "jquery"];
gulp.task("vendor", function () {
var b = browserify();
libs.forEach(function (lib) {
@askesian
askesian / SassMeister-input-HTML.html
Created Dec 14, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div>
<button class="button" type="button">My Button</button>
</div>
@askesian
askesian / gulpfile.js
Last active Aug 29, 2015 — forked from PiiXiieeS/gulpfile.js
expressjs-nodemon-browsersync
View gulpfile.js
'use strict';
var gulp = require('gulp'),
browserSync = require('browser-sync'),
nodemon = require('gulp-nodemon');
// we'd need a slight delay to reload browsers
// connected to browser-sync after restarting nodemon
var BROWSER_SYNC_RELOAD_DELAY = 500;
@askesian
askesian / resize.sh
Created Jun 25, 2015
use sips to resize images in folder - bash func
View resize.sh
resize () {
local ext="${1:?Usage: resize-all <png|jpg|jpeg|gif> 800}"
local size="${2:-800}"
for f in *.$ext ; do sips -Z $size $f ; done
}
@askesian
askesian / iconset.sh
Created Jun 25, 2015
quick and dirty icon set creation
View iconset.sh
i use `sips` for quick-and-dirty iconset creation with Xcode (new high-resolution icons from a PNG):
#!/bin/bash
i=0
sizes=(512 256 128 64 32 16)
iconset="${1%.*}".iconset
@askesian
askesian / obj-extend-recursive.js
Last active Aug 29, 2015
Recursive Object Extend
View obj-extend-recursive.js
var extend = function(output) {
output = output || {};
// no args so just return output
if ( arguments.length < 2) return output;
// loop over arguments and recurse if prop is an object
for (var i = 1, len = arguments.length; i < len; i++) {
var obj = arguments[i];
View gist.md

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.

@askesian
askesian / wifi-spark-alias.bash
Last active Feb 3, 2017
Wifi strength (with spark) in the console
View wifi-spark-alias.bash
# objective:
# type wifi in the console and get a pretty little graph of your current wifi strength
# usage:
# > wifi
# output:
# ▁▃▅█ 59
# first install spark
brew install spark
@askesian
askesian / prompt_peepcode_setup
Created Jun 5, 2015
Peepcode zprezto prompt
View prompt_peepcode_setup
#
# A simple theme from PeepCode.
# http://peepcode.com/blog/2012/my-command-line-prompt
#
# Authors:
# Geoffrey Grosenbach <boss@topfunky.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Screenshots:
# http://i.imgur.com/LhgmW.png
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.