Skip to content

Instantly share code, notes, and snippets.

View shazron's full-sized avatar
😆

Shazron Abdullah shazron

😆
View GitHub Profile
$ cordova platform add https://git-wip-us.apache.org/repos/asf/cordova-ubuntu.git#4.3.2 --verbose
Executing "before_platform_add" hook for all plugins.
git cloning: https://git-wip-us.apache.org/repos/asf/cordova-ubuntu.git#4.3.2
Running command: git clone https://git-wip-us.apache.org/repos/asf/cordova-ubuntu.git /Users/shazron/.cordova/lib/tmp/tmp_cordova_git_3101_1450382458889
Command finished with error code 0: git clone,https://git-wip-us.apache.org/repos/asf/cordova-ubuntu.git,/Users/shazron/.cordova/lib/tmp/tmp_cordova_git_3101_1450382458889
Running command: git checkout 4.3.2
Command finished with error code 0: git checkout,4.3.2
Repository "https://git-wip-us.apache.org/repos/asf/cordova-ubuntu.git" checked out to git ref "4.3.2".
Adding ubuntu project...
Failed to require PlatformApi instance for platform "ubuntu". Using polyfill instead.
@shazron
shazron / sample.mm
Last active September 11, 2015 10:12
// In MainViewController.m
- (id)init
{
self = [super init];
if (self) {
// listens for CDVPageDidLoadNotification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationPageDidLoad:) name:CDVPageDidLoadNotification object:nil];
}
return self;
#!/bin/bash
# This script builds the iOS and Mac openSSL libraries
# Download openssl http://www.openssl.org/source/ and place the tarball next to this script
# Credits:
# https://github.com/st3fan/ios-openssl
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh
@shazron
shazron / package.json
Created April 21, 2015 02:07
Xcode Server node package.json
{
"name": "xcsnode",
"description": "Xcode Server 2",
"dependencies": {
"async": "~0.2.9",
"basic-auth": "0.0.1",
"client-sessions": "^0.6.0",
"express": "3.4.x",
"handlebars": "~1.3.0",
"mkdirp": "~0.3.5",
__weak __typeof(self) weakSelf = self;
[UIView transitionWithView:self.viewController.view
duration:fadeDuration
options:UIViewAnimationOptionTransitionNone
animations:^(void) {
__typeof(self) strongSelf = weakSelf;
if (strongSelf != nil) {
dispatch_async(dispatch_get_main_queue(), ^{
[strongSelf->_activityView setAlpha:0];
@shazron
shazron / error.html
Created October 23, 2014 20:37
cordova-ios 3.7.0 error page
<!DOCTYPE html>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@shazron
shazron / gist:484744630efcd5456e7b
Created October 7, 2014 20:57
__git_ps1 Yosemite .bash_profile
source `xcode-select --print-path`/usr/share/git-core/git-completion.bash
source `xcode-select --print-path`/usr/share/git-core/git-prompt.sh

Keybase proof

I hereby claim:

  • I am shazron on github.
  • I am shazron (https://keybase.io/shazron) on keybase.
  • I have a public key whose fingerprint is 1C9F D65D 7D92 4C08 D504 3CB0 24C3 1ABC B01A AC82

To claim this, I am signing this object:

@shazron
shazron / APPLE-SA-2014-09-17-1 iOS 8
Created September 17, 2014 17:49
APPLE-SA-2014-09-17-1 iOS 8
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
APPLE-SA-2014-09-17-1 iOS 8
iOS 8 is now available and addresses the following:
802.1X
Available for: iPhone 4s and later,
iPod touch (5th generation) and later, iPad 2 and later
@shazron
shazron / gist:10078653
Created April 8, 2014 00:52
WWDC 2014 Rejection Email
Subject: Your WWDC Ticket Status
Dear Developer,
Thank you for registering for the random selection process to attend WWDC 2014.
Unfortunately, you were not selected to purchase a ticket. However, you can still take advantage of great WWDC content. We'll be posting session videos, slides, and sample code throughout the week for all Registered Apple Developers.
We appreciate your support.