Skip to content

Instantly share code, notes, and snippets.

Avatar

David Gagne DavidGagne

View GitHub Profile
@ispiropoulos
ispiropoulos / UserDefaults+CLLocation.swift
Last active Nov 15, 2019
Store CLLocation into UserDefaults
View UserDefaults+CLLocation.swift
//
// UserDefaults+CLLocation.swift
//
//
// Created by John Spiropoulos on 28/09/16.
// Copyright © 2016 John Spiropoulos. All rights reserved.
//
/*
Swift 3 Helper extension:
@jellybeansoup
jellybeansoup / update-version.sh
Last active Sep 18, 2020
Script for Incrementing Version Numbers
View update-version.sh
#!/bin/bash
# Link: <https://gist.github.com/jellybeansoup/db7b24fb4c7ed44030f4>
#
# A command-line script for incrementing build numbers for all known targets in an Xcode project.
#
# This script has two main goals: firstly, to ensure that all the targets in a project have the
# same CFBundleVersion and CFBundleShortVersionString values. This is because mismatched values
# can cause a warning when submitting to the App Store. Secondly, to ensure that the build number
# is incremented appropriately when git has changes.
#
@alexstone
alexstone / slack_notification.php
Created Mar 3, 2014
Fire a Slack Notification via CURL
View slack_notification.php
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public static function slack($message, $room = "engineering", $icon = ":longbox:") {
$room = ($room) ? $room : "engineering";
$data = "payload=" . json_encode(array(
"channel" => "#{$room}",
"text" => $message,
@sekati
sekati / xcode-build-bump.sh
Created Jul 24, 2012
Xcode Auto-increment Build & Version Numbers
View xcode-build-bump.sh
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
You can’t perform that action at this time.