Skip to content

Instantly share code, notes, and snippets.

View tupakapoor's full-sized avatar

Ameesh Kapoor tupakapoor

  • 412 Food Rescue
  • PGH
View GitHub Profile

Introducing a 🐶🐮 (Syntax.DogCow) Literal

  • Proposal: SE-M00F
  • Author: Erica Sadun
  • Status: Draft
  • Review manager: Crusty

Introduction

When not bound as a symbol, this proposal allows the "dogcow" literal to be used in place of otherwise unspecified values. Swift infers a value to substitute, automatically introducing the most appropriate value at any use point.

@tupakapoor
tupakapoor / newbranch.sh
Last active December 22, 2015 11:38
A script to make creating a new branch from the most up to date version of upstream/master easier
#!/bin/bash
if [ -z "$1" ]; then
echo usage: newbranch newbranchname oldbranchtoclonefrom
exit
fi
git remote -v | grep upstream > /dev/null
if [ $? -ne 0 ]; then
echo You must have a remote named upstream