Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Alex Z. Li alex-zige

🎯
Focusing
Block or report user

Report or block alex-zige

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View IT职业分享.md

新西兰IT就业分享

Intro - Alex

介绍

agenda

IT职业发展和规划 - Feilong

View gist:6fc35271cb170d20d10858abbfd319c9
@import 'helpers/Utils.js';
@import 'libraries/View.js';
var onRun = function(context) {
utils.init(context);
dialog.showSuccessExportMessage();
var app = [NSApplication sharedApplication];
[app displayDialog:"Anything selected <img src='http://www.thinkandbuild.it/wp-includes/images/smilies/icon_sad.gif'/> " withTitle:"Exportabler"];
@alex-zige
alex-zige / GIF-Screencast-OSX.md
Created Oct 1, 2015 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF
View GIF-Screencast-OSX.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

View jenikns_ci_on_osx.md

Jenkins CI on OSX

Instructions on how to setup a secured Jenkins CI on a Mac.

Download & Install dependencies

All of these operations are done with your admin user.

Developer tools

Install the command line developer tools.

View gist:26d7c978a145b5c437a0
{
"posts":[
{
"id":42,
"body":"lol?",
"title":null,
"created_at":"2015-02-19T11:52:15.000+13:00",
"reply_ids":[
],
View gist:60e4f60d76512640b5a1
{
"posts": [
{
"id": 42,
"body": "lol?",
"title": null,
"created_at": "2015-02-19T11:52:15.000+13:00",
"reply_ids": [],
"like_ids": []
},
@alex-zige
alex-zige / gist:98180088bdbfdf0d8f66
Last active Aug 29, 2015
Facebook authentication raw_info
View gist:98180088bdbfdf0d8f66
raw_info=#<OmniAuth::AuthHash email="airforcen@hotmail.com" first_name="Zige" gender="male" id="10206022637909599" last_name="Li" link="https://www.facebook.com/app_scoped_user_id/10206022637909599/" locale="en_US" name="Zige Li" timezone=13 updated_time="2013-12-08T05:35:05+0000" verified=true>> info=#<OmniAuth::AuthHash::InfoHash email="airforcen@hotmail.com" first_name="Zige" image="http://graph.facebook.com/10206022637909599/picture" last_name="Li" name="Zige Li" urls=#<OmniAuth::AuthHash Facebook="https://www.facebook.com/app_scoped_user_id/10206022637909599/"> verified=true> provider="facebook" uid="10206022637909599">
View gist:33fe6f20670562b5df5b
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
def import_pods
pod 'AFNetworking', '~> 1.3.2'
pod 'DCKeyValueObjectMapping'
pod 'ISO8601DateFormatter', '~> 0.7'
View gist:a1054743ee7026804657
//
// MCHWebViewController.m
// Gallipoli
//
// Created by Matt on 10/09/14.
// Copyright (c) 2014 Touchtech Limited. All rights reserved.
//
#import "MCHWebViewController.h"
@alex-zige
alex-zige / gist:101751fc92d1410b65b8
Last active Aug 29, 2015
Rails 4 + Postgres + opsworks
View gist:101751fc92d1410b65b8

##Create RDS with postgres

Opsworks has a bug, even you registerd a postgres RDS, the adapter is still using 'mysql'

WORKAROUND:

##Create mysql layer (fake) don't assign instances

You can’t perform that action at this time.