Skip to content

Instantly share code, notes, and snippets.

View jzucker2's full-sized avatar

Jordan Zucker jzucker2

  • PubNub
  • San Francisco
View GitHub Profile
@DenTelezhkin
DenTelezhkin / README.md
Last active July 11, 2016 09:19
CI Rakefile for iOS applications.Prerequisites: xcpretty, shenzhen, cocoapods, testflight, XCTest.Put this Rakefile into directory with your .xcodeproj and run rake. Remove build tasks you don't need in your setup.

Usage

Install dependencies and run tests

rake 

Dependencies, tests, archive in Release configuration and upload to TestFlight

rake testflight 
@flatpickles
flatpickles / Fast Branch Switcher
Last active January 3, 2016 09:39
Add this to your .bashrc for easier git branch management. Use `b` to view your most recently modified 15 branches, in order of recency, with short hash, name, and commit message. Use `bco` for the same, but to additionally enter a number and checkout the corresponding branch.
branch_count=15
alias b="git for-each-ref --sort=-committerdate refs/heads/ --count=$branch_count --format='%(objectname:short)\\%(refname:short)\\%(contents:subject)' | column -ts'\\'"
function bco {
# display recent branches
b | cat -n;
# read which the user wants to checkout
echo -n "checkout branch number: ";
read line;
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@jazzychad
jazzychad / gist:0d730446502902ad3597
Created April 29, 2014 22:51
PS1 w/ git branch
[\h \[\033[0;36m\]\W\[\033[0m\]$(__git_ps1 " \[\033[1;32m\](%s)\[\033[0m\]")]\$
@ZevEisenberg
ZevEisenberg / resetAllSimulators.sh
Last active December 23, 2024 19:57
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@andymatuschak
andymatuschak / CollectionViewDataSource.swift
Last active February 12, 2021 09:44
Type-safe value-oriented collection view data source
//
// CollectionViewDataSource.swift
// Khan Academy
//
// Created by Andy Matuschak on 10/14/14.
// Copyright (c) 2014 Khan Academy. All rights reserved.
//
import UIKit
@jzucker2
jzucker2 / .gitconfig
Last active August 29, 2015 14:13
My ps1/git completion
[user]
email = [email protected]
name = Jordan Zucker
[alias]
cm = commit -m
swap = checkout -
lc = log ORIG_HEAD.. --stat --no-merges
mkbr = checkout -b
sm = submodule update --init --recursive
llog = log --date=local
@jzucker2
jzucker2 / .gitignore
Last active August 29, 2015 14:14
My Obj-C gitignore
# Mac
.DS_Store
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
import praw # simple interface to the reddit API, also handles rate limiting of requests
import re
from collections import deque
from time import sleep
USERNAME = "Your username here"
PASSWORD = "Your password here"
USERAGENT = "Your useragent string here. It should include your /u/username as a courtesy to reddit"
r = praw.Reddit(USERAGENT)
@sj26
sj26 / LICENSE.md
Last active June 11, 2025 00:43
Bash retry function

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit