Skip to content

Instantly share code, notes, and snippets.

View jonchui's full-sized avatar

Jon Chui jonchui

View GitHub Profile
@cornr
cornr / UniversialLinkTest.swift
Last active December 25, 2023 04:01
UI testing openURL and universal links via iMessage
import XCTest
class UniversialLinktTest: XCTestCase {
var app: XCUIApplication!
override func setUp() {
super.setUp()
continueAfterFailure = false
app = XCUIApplication()
app.launch()
@zthomas
zthomas / intercom-delete-old-users.js
Last active May 1, 2023 15:28
Script to delete and clear old users from intercom. Useful for lowering the monthly bill
// License: MIT, feel free to use it!
const Intercom = require('intercom-client');
const appId = 'APP_ID'
const apiKey = 'APP_KEY'
const client = new Intercom.Client(appId, apiKey);
const async = require('async-q')
//REF: https://developers.intercom.com/reference#iterating-over-all-users
//WARNING: you can only have one scroll working at once. you need to wait for that scroll to clear to try again
@jszmajda
jszmajda / 1readme.md
Last active September 3, 2022 18:33
Data Serialization: JSON, MsgPack, ProtoBufs
@puppybits
puppybits / halfPNGs.sh
Created January 2, 2012 13:47
resize @2x pngs to @1x iphone images for an entire folder
function halfPNGs(){
dir=$1
n=0
while read f
do
# Image name
i=$(basename "$f")
if [[ $i == *\@2x\.png ]]; then
# Height of image
h=$(sips -g pixelHeight $f)
@jeresig
jeresig / .vimrc
Created May 4, 2011 16:46
VIM Config
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
set nocompatible
set autoindent
set tabstop=2
set showmatch
set vb t_vb=
set ruler
set nohls
set incsearch
syntax on