Skip to content

Instantly share code, notes, and snippets.

@derryl
derryl / iterm2.md
Created August 23, 2016 04:19
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@derryl
derryl / gist:6893141
Last active December 25, 2015 01:09 — forked from tommymcglynn/gist:6892810
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
(function() {
var _apiHost = 'https://testflightapp.com'
$.ajax({
url: _apiHost+'/api/sdkinfo',
// Establish Date ranges
var date_today = new Date.today().toString("yyyy-MM-dd");
var date_lastweek = new Date().last().week().toString("yyyy-MM-dd");
var date_twoweeks = new Date().last().week().addDays(-7).toString("yyyy-MM-dd")
// Execute this function when the 'Make API Call' button is clicked
function makeApiCall() {
// FP announce page views
var fpAnnounce = gapi.client.analytics.data.ga.get({
@derryl
derryl / markdown-preview-mou.md
Created August 2, 2012 03:49 — forked from sindresorhus/markdown-preview-mou.md
How to write your Markdown in Sublime Text 2 and preview in Mou

How to write your Markdown in Sublime Text 2 and preview in Mou

I use Sublime for everything text related, but it doesn't have any built-in way to preview my Markdown files.

This is how easy it is to preview in Mou:

  • In Sublime, go to Tools -> Build System -> New Build System...
  • In the newly opened file, replace the file contents with this and save: { "osx": {
@derryl
derryl / ios-media-queries.sass
Created March 28, 2012 19:12 — forked from adamstac/ios-media-queries.sass
iOS Media Queries for iPhone/iPod, iPad & Retina and Non-Retina Devices
.ipad-only,
.iphone-only,
.retina-only,
.non-retina-only,
.retina-iphone-only,
.non-retina-iphone-only
display: none
// iPad Only
@media only screen and (device-width: 768px)