Skip to content

Instantly share code, notes, and snippets.

View sponno's full-sized avatar

John Ballinger sponno

View GitHub Profile
@sponno
sponno / osx_keyboard_textexpander_emoji.plist
Created March 24, 2021 21:59
OSX Keyboard TextExpander Text Emoji Pack - see comments for instructions
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>phrase</key>
<string> (╯°□°)╯︵ ┻━┻</string>
<key>shortcut</key>
<string>e1</string>
</dict>
<?php
/**
* This is simple caching function for PHP, that save the contents from a URL and store it on desk.
* It uses the file last modified date to figure out when to expire the cache.
* 1. Update the SCHEMA URL to your AskNicely Schema URL
* 2. You might want to update the cache file location, PHP will need write access to the cache location.
*/
function getAskNicelySchema($cacheHours = 4){
$schemaURL = "https://reviews.asknicely.site/reviews/test/schema"; // #1 PLEASE UPDATE TO THE CORRECT URL
@sponno
sponno / gist:7228256
Last active December 9, 2021 09:03
Xcode build lipo script
# define output folder environment variable
UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
# Step 1. Build Device and Simulator versions
xcodebuild -target ${PROJECT_NAME} ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -sdk iphoneos BUILD_DIR="${BUILD_DIR}"
BUILD_ROOT="${BUILD_ROOT}" xcodebuild -target ${PROJECT_NAME} -configuration ${CONFIGURATION} -sdk iphonesimulator -arch i386 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}"
# make sure the output directory exists
mkdir -p "${UNIVERSAL_OUTPUTFOLDER}"