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 %}
.
// ---- | |
// libsass (v3.3.6) | |
// ---- | |
// ========================================================================= | |
// | |
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS | |
// --------------------------------------------------- | |
// Indrek Paas @indrekpaas | |
// |
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) { |
<div> | |
<button class="button" type="button">My Button</button> | |
</div> |
'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; |
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 | |
} |
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 |
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]; |
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 %}
.
# 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 |
# | |
# A simple theme from PeepCode. | |
# http://peepcode.com/blog/2012/my-command-line-prompt | |
# | |
# Authors: | |
# Geoffrey Grosenbach <[email protected]> | |
# Sorin Ionescu <[email protected]> | |
# | |
# Screenshots: | |
# http://i.imgur.com/LhgmW.png |