Skip to content

Instantly share code, notes, and snippets.

View Hamasn's full-sized avatar

Vincent Hamasn

  • China
  • 23:06 (UTC +08:00)
View GitHub Profile
@Hamasn
Hamasn / BeaconResearch.md
Created August 3, 2018 07:31
iBeacon / Beacon Research
@Hamasn
Hamasn / bluegreen.sh
Created July 27, 2017 02:39 — forked from ryanjbaxter/bluegreen.sh
Blue/Green Deployment Script
#!/bin/bash
#
# This product includes software originally developed by IBM Corporation.
#
#
# Copyright IBM Corp. 2015
#
# Licensed 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
@Hamasn
Hamasn / Macros.h
Created April 11, 2014 05:20 — forked from numo16/Macros.h
#define ApplicationDelegate ((AppDelegate *)[[UIApplication sharedApplication] delegate])
#define UserDefaults [NSUserDefaults standardUserDefaults]
#define NotificationCenter [NSNotificationCenter defaultCenter]
#define SharedApplication [UIApplication sharedApplication]
#define Bundle [NSBundle mainBundle]
#define MainScreen [UIScreen mainScreen]
#define ShowNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = YES
#define HideNetworkActivityIndicator() [UIApplication sharedApplication].networkActivityIndicatorVisible = NO
#define NetworkActivityIndicatorVisible(x) [UIApplication sharedApplication].networkActivityIndicatorVisible = x
#define NavBar self.navigationController.navigationBar