Skip to content

Instantly share code, notes, and snippets.

View alex-zige's full-sized avatar
🤞
Focusing

Alex Z. Li alex-zige

🤞
Focusing
View GitHub Profile
@alex-zige
alex-zige / IT职业分享.md
Created May 20, 2019 05:52
IT职业分享

新西兰IT就业分享

Intro - Alex

介绍

agenda

IT职业发展和规划 - Feilong

@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 October 1, 2015 08:35 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

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:

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.

@alex-zige
alex-zige / gist:26d7c978a145b5c437a0
Created April 28, 2015 17:15
Full Posts JSON Example
{
"posts":[
{
"id":42,
"body":"lol?",
"title":null,
"created_at":"2015-02-19T11:52:15.000+13:00",
"reply_ids":[
],
@alex-zige
alex-zige / gist:60e4f60d76512640b5a1
Created April 28, 2015 17:15
Full Posts JSON Example
{
"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 August 29, 2015 14:13
Facebook authentication raw_info
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">
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'
@alex-zige
alex-zige / gist:a1054743ee7026804657
Last active August 29, 2015 14:11
Basic htmls merging
//
// 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 August 29, 2015 14:09
Rails 4 + Postgres + opsworks

##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