Skip to content

Instantly share code, notes, and snippets.

View kevinchl's full-sized avatar

Kevin Chan kevinchl

  • Hong Kong
View GitHub Profile
// Handle Birthday
$donation_form.find('.year, .month, .day').change(function(){
var year = $donation_form.find('.year').val();
var month = $donation_form.find('.month').val();
if ( year == null || month == null){
return;
}
var SymptomForm = (function() {
// code
var order;
var repair_levels;
function init( order ) {
order = order;
@kevinchl
kevinchl / sample.sh
Created January 19, 2016 16:01
Overwrite PHP using MAMP one.
# Use MAMP version of PHP
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1`
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH
@kevinchl
kevinchl / Readme.markdown
Created June 4, 2012 08:02 — forked from gonecoding/Readme.markdown
Adding methods to NSData and NSString using categories to provide AES256 encryption on iOS

Important notice

I took down this Gist due to concerns about the security of the encryption/decryption part of this code (see comments below).

Rob Napier (@rnapier) has created a publicly available class that provides similar AES encryption/decryption functionality at https://github.com/rnapier/RNCryptor.