Skip to content

Instantly share code, notes, and snippets.

View YouYue123's full-sized avatar
🎯
Focusing

YouYue YouYue123

🎯
Focusing
View GitHub Profile
@YouYue123
YouYue123 / KongJwt.md
Created December 17, 2020 07:03 — forked from martinheld/KongJwt.md
Short example to use JWT with Kong

JWT Kong Example

  • Get and Start Kong and Co
git clone git@github.com:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
  • Create Kong API Route
@YouYue123
YouYue123 / drive-format-ubuntu.md
Last active August 15, 2018 09:16 — forked from keithmorris/drive-format-ubuntu.md
Partition, format, and mount a drive on Ubuntu
@YouYue123
YouYue123 / UIViewController+Deselection.swift
Created June 4, 2016 15:32 — forked from ZevEisenberg/LICENSE
Smoothly deselect table and collection view cells on dismissal, including interactive dismiss and interactively-partially-dismiss-then-cancel-then-dismiss-again
extension UIViewController {
func rz_smoothlyDeselectRows(tableView tableView: UITableView?) {
let selectedIndexPaths = tableView?.indexPathsForSelectedRows ?? []
if let coordinator = transitionCoordinator() {
coordinator.animateAlongsideTransitionInView(parentViewController?.view, animation: { context in
selectedIndexPaths.forEach {
tableView?.deselectRowAtIndexPath($0, animated: context.isAnimated())
}