Skip to content

Instantly share code, notes, and snippets.

View youngshook's full-sized avatar
🐝
Working

YoungShook youngshook

🐝
Working
View GitHub Profile
@youngshook
youngshook / System Design.md
Created September 23, 2020 05:54 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@youngshook
youngshook / ios-interview-resources.md
Created September 22, 2020 09:12 — forked from funmia/ios-interview-resources.md
General iOS, CS questions and interview prep resources.
@youngshook
youngshook / Netcat.md
Created November 7, 2018 06:45 — forked from Integralist/Netcat.md
Netcat

Install the netcat nc command with Homebrew (otherwise Mac OS X version is really old and the interface is different):

brew install netcat

Use netcat to listen for incoming TCP connections on port 3000:

nc -l -p 3000
@youngshook
youngshook / XCDFakeCarrier.m
Created August 1, 2016 09:20 — forked from 0xced/XCDFakeCarrier.m
Hack to choose the displayed carrier name in the iOS simulator
//
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved.
//
#import <Foundation/Foundation.h>
#if TARGET_OS_SIMULATOR
static const char *fakeCarrier;
static const char *fakeTime;
@youngshook
youngshook / HZClassUsingEnum.h
Last active November 17, 2017 08:41 — forked from hezi/HZClassUsingEnum.h
Objective-C Enum-TO-NSString and Vice versa.
// Declare enums like so:
#define IMAGE_STATUS(XX) \
XX(kDOImageStatusOK, = 0) \
XX(kDOImageStatusCached, )\
XX(kDOImageStatusRetry, )
DECLARE_ENUM(DOImageStatus, IMAGE_STATUS)
@youngshook
youngshook / mianshiwentitxt
Last active August 26, 2015 12:08 — forked from onlytiancai/mianshiwentitxt
面试问的问题-草稿
为了更全面的展示你自己,你可以回答以下题目,每个问题你都可以不作答,不会减分,只是答的好的话会加分。
1. 有哪些兴趣爱好和擅长
2. 常去哪些技术网站和社区
3. 参与过开源项目,做了什么贡献
4. 常用哪些组件,库或框架,哪个是你最熟悉最拿手的
5. 完整看完过哪些技术书籍,哪本是你反复看过的,哪本对你影像最大
6. 使用过哪些编程语言,最擅长哪个语言?
7. 有没有自己的域名,网站,博客,github,stackoverflow ,v2ex,知乎,微博,twitter,google plus账号
8. 精通正则表达式吗?
9. c学的如何? 计算机组成原理学的咋样?
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

//
// NTBProxyImageView.h
// Vectoria Squared
//
// Created by Nigel Barber on 22/04/2013.
// Copyright (c) 2013 Nigel Barber. All rights reserved.
//
#import <UIKit/UIKit.h>