Skip to content

Instantly share code, notes, and snippets.

View lxcid's full-sized avatar

Stan Chang Khin Boon lxcid

View GitHub Profile
@lxcid
lxcid / google-toolbox-for-mac.podspec
Last active December 22, 2015 02:27
A custom CocoaPods Spec for google-toolbox-for-mac
Pod::Spec.new do |s|
s.name = "google-toolbox-for-mac"
s.version = "2.0.0.0.1"
s.summary = "Mirror of http://google-toolbox-for-mac.googlecode.com"
s.description = <<-DESC
A collection of source from different Google projects that may be
of use to developers working other Mac projects.
DESC
// LXTouchGestureRecognizer.h
//
// Copyright (c) 2015 Stan Chang Khin Boon (http://lxcid.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@lxcid
lxcid / Data.swift
Last active August 2, 2016 01:11
DataBuffer + DataPipe
//
// DataBuffer.swift
// WebSocket
//
// Created by Stan Chang Khin Boon on 30/7/16.
// Copyright © 2016 Trifia. All rights reserved.
//
/// DataBuffer uses a serial dispatch queue to manage its in and out operations asynchornously.
/// The use of dispatch queue ensure that in/out operations are thread safe.
@lxcid
lxcid / receipt.json
Created December 27, 2012 03:42
Sample Sandbox In-App Purchase Receipt that is expired.
{
"status": 21006,
"receipt": {
"original_purchase_date_ms": "1335927991000",
"original_purchase_date_pst": "2012-05-01 20:06:31 America\/Los_Angeles",
"transaction_id": "1000000060958597",
"quantity": "1",
"bid": "kh.com.ctn.plus",
"original_transaction_id": "1000000046496076",
"unique_vendor_identifier": "1E8A3A6A-F455-4020-8194-7BC14991A00A",
@lxcid
lxcid / latest_receipt-base64-decoded.plist
Created December 2, 2012 07:29
Responses from verifying receipts with Apple's receipt validation server
{
"signature" = "AkYuPMDg5n9y40Q/jWOO/UNJyFAo3cO+oRjIZIKYt7/M05EyXqJNHJGPQnmda4Zy0BqGsz1m2fpSJQatT03V/b0TfAr4+p8bofURjCLY9NX36LCgWDjwS1SxRao+4ek72q53MeGVSkGoy5E27jSz5P2fQds8PvwPid3Dx3O594/wAAADVzCCA1MwggI7oAMCAQICCGUUkU3ZWAS1MA0GCSqGSIb3DQEBBQUAMH8xCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSYwJAYDVQQLDB1BcHBsZSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEzMDEGA1UEAwwqQXBwbGUgaVR1bmVzIFN0b3JlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA5MDYxNTIyMDU1NloXDTE0MDYxNDIyMDU1NlowZDEjMCEGA1UEAwwaUHVyY2hhc2VSZWNlaXB0Q2VydGlmaWNhdGUxGzAZBgNVBAsMEkFwcGxlIGlUdW5lcyBTdG9yZTETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMrRjF2ct4IrSdiTChaI0g8pwv/cmHs8p/RwV/rt/91XKVhNl4XIBimKjQQNfgHsDs6yju++DrKJE7uKsphMddKYfFE5rGXsAdBEjBwRIxexTevx3HLEFGAt1moKx509dhxtiIdDgJv2YaVs49B0uJvNdy6SMqNNLHsDLzDS9oZHAgMBAAGjcjBwMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUNh3o4p2C0gEYtTJrDtdDC5FYQzowDgYDVR0PAQH/BAQDAgeAMB0GA1UdDgQWBBSpg4PyGUjFPhJXCBTMzaN+mV8k9TAQBgoqhkiG92NkBgUBBAIFADANBgkqhkiG9w0BAQUFAAOCAQEAEaSbPjtmN4C/IB3QEpK32RxacCDXdV
# Copyright (c) 2013 Stan Chang Khin Boon (http://lxcid.com/)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in