Skip to content

Instantly share code, notes, and snippets.

View xinnyu's full-sized avatar
🎯
Focusing

panxinyu xinnyu

🎯
Focusing
View GitHub Profile
@xinnyu
xinnyu / keybase.md
Created September 16, 2019 03:42
keybase.md

Keybase proof

I hereby claim:

  • I am xinnyu on github.
  • I am xinnyu (https://keybase.io/xinnyu) on keybase.
  • I have a public key ASCJp8XumcO8jVid_3IZMdc7woVK5fEcJgTyHi4CZp35Pwo

To claim this, I am signing this object:

@xinnyu
xinnyu / gist:7eed9321220c3a82bd111413d81dbf14
Last active May 9, 2019 07:05 — forked from snikch/gist:3661188
Find the current top view controller for your iOS application
+ (UIViewController *)topViewController {
UIViewController *resultVC;
resultVC = [self _topViewController:[[UIApplication sharedApplication].keyWindow rootViewController]];
while (resultVC.presentedViewController) {
resultVC = [self _topViewController:resultVC.presentedViewController];
}
return resultVC;
}
+ (UIViewController *)_topViewController:(UIViewController *)vc {
@xinnyu
xinnyu / swift3_string_extensions.swift&env=plain
Last active May 9, 2019 07:21
Swift字符串扩展|-|&tag=Swift
//
// StringExtension.swift
// Extensions
//
// Created by panxinyu on 11/05/2017.
// Copyright © 2017 panxinyu. All rights reserved.
//
import UIKit
@xinnyu
xinnyu / git_toturial
Last active August 29, 2015 14:27 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库