Skip to content

Instantly share code, notes, and snippets.

@xpepper
xpepper / software.to.install.on.a.mac.md
Created March 20, 2014 21:45
Software to install on a fresh mac
  • xcode or command line tools
  • osx's homebrew

MUST HAVE

  • brew install ack
  • brew install tree
  • brew install watch
  • brew install wget
  • brew install autojump
@nickawalsh
nickawalsh / icons.sass
Last active October 7, 2021 09:38
Auto Hi-res Sprites
@import compass
$icons: sprite-map("icons/*.png")
$icons-hd: sprite-map("icons-hd/*.png")
i
background: $icons
display: inline-block
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi)
background: $icons-hd
@max-mapper
max-mapper / readme.md
Created December 6, 2012 20:50
hybrid app article topics
  • touch events to make web apps feel fast
  • default mobile css overrides (-webkit-touch-callout: none; etc)
  • using zepto to make mobile web apps
  • client side templating and routing for quick loading apps
  • supporting retina devices with sprites
  • css3 flexible box model and column layouts for responsive web apps
  • using phonegap to deploy web apps as native
  • web first development workflow (chrome dev tools, safari debugging)
  • how to submit a web app to the app store + google play
  • cross platform mobile code via feature detection
@pengwynn
pengwynn / octocat_zen.sh
Created November 14, 2012 02:42
GitHub Zen
$ curl https://api.github.com/zen | octocatsay
MMM. .MMM
MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMMMMM ____________________________
MMMMMMMMMMMMMMMMMMMMM | |
MMMMMMMMMMMMMMMMMMMMMMM | Practicality beats purity. |
MMMMMMMMMMMMMMMMMMMMMMMM |_ ________________________|
MMMM::- -:::::::- -::MMMM |/
MM~:~ ~:::::~ ~:~MM
Mediator = {
events: {}
listeners: {}
fireEvent: (type,event)->
if @listeners[type]
@listeners[type].apply @, event
addListener: (type,callback) ->
@listeners[type] = callback
removeListener: (type) ->
delete @listeners[type]

GitHub OAuth Busy Developer's Guide

This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.

OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.

Web Application Flow

  • Redirect to this link to request GitHub access:
@pamelafox
pamelafox / autoresizer.js
Created March 22, 2012 06:11
TextArea AutoResizer (Bootstrap jQuery/Zepto Plugin)
var AutoResizer = function (textArea, options) {
var self = this;
this.$textArea = $(textArea);
this.minHeight = this.$textArea.height();
this.options = $.extend({}, $.fn.autoResizer.defaults, options)
this.$shadowArea = $('<div></div>').css({
@madebyjazz
madebyjazz / mkappenginevenv.sh
Created June 22, 2011 16:38 — forked from rmyers/mkappenginevenv.sh
Setup virtual env for appengine
#!/bin/bash
#
# Build a virtual environment suitable for running appengine.
# This uses virtualenvwrapper to make the virtual environment
# and modifies the postactivate/postdeactivate scripts to make
# the appengine code happy.
#
# Usage:
# $ curl -s https://raw.github.com/gist/1012769 | bash
#
:+1:
:-1:
:airplane:
:art:
:bear:
:beer:
:bike:
:bomb:
:book:
:bulb:
@malclocke
malclocke / gist:943565
Created April 27, 2011 01:31 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' |
xargs git push origin --delete