Skip to content

Instantly share code, notes, and snippets.

@coelle
coelle / update-version.sh
Created April 10, 2020 04:14 — forked from jellybeansoup/update-version.sh
Script for Incrementing Version Numbers
#!/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.
#
@coelle
coelle / JniObject.cpp
Created February 12, 2020 14:32 — forked from sp-miguel-ibero/JniObject.cpp
Social Point JniObject
#include "JniObject.hpp"
#include <algorithm>
Jni::Jni():
_java(nullptr), _env(nullptr)
{
}
Jni::Jni(const Jni& other)
@coelle
coelle / .gitignore
Created October 29, 2018 06:50 — forked from pepasflo/.gitignore
Scripts for encrypting / decrypting secrets (to prevent them from being accidentally checked into git)
secrets/
@coelle
coelle / EmojiPointersDemo.swift
Created August 18, 2018 04:55 — forked from cellularmitosis/EmojiPointersDemo.swift
Representing pointer values as emoji can be useful for "visually" debugging certain issues, like cell reuse, etc.
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let window = UIWindow(frame: UIScreen.main.bounds)