Skip to content

Instantly share code, notes, and snippets.

View 771991673's full-sized avatar
💭
I may be slow to respond.

James Lau 771991673

💭
I may be slow to respond.
View GitHub Profile
@cmc5788
cmc5788 / Rx+Util.swift
Last active November 14, 2020 01:34
General RxSwift utility stuffs
import RxSwift
extension UIButton {
public func throttledTapObservable(_ throttle : RxTimeInterval = 1.0) -> RxSwift.Observable<Swift.Void> {
return self.rx.tap.asObservable()
.throttle(throttle, latest: false, scheduler: MainScheduler.instance)
}
}
@wesleybliss
wesleybliss / docker-compose-node-mongo.yml
Created September 9, 2016 21:37
Docker Compose with example App & Mongo
version: '2'
services:
myapp:
build: .
container_name: "myapp"
image: debian/latest
environment:
- NODE_ENV=development
- FOO=bar
volumes:
@EderSantana
EderSantana / CATCH_Keras_RL.md
Last active June 22, 2024 17:07
Keras plays catch - a single file Reinforcement Learning example
@schickling
schickling / UIImageFixedOrientationExtension.swift
Last active December 31, 2024 22:21
Extension to fix orientation of an UIImage (Sets orientation to portrait)
extension UIImage {
func fixedOrientation() -> UIImage {
if imageOrientation == UIImageOrientation.Up {
return self
}
var transform: CGAffineTransform = CGAffineTransformIdentity
@fguchelaar
fguchelaar / .gitignore
Last active January 2, 2022 08:38
.gitignore for Xcode / AppCode
# .gitignore file for Xcode / AppCode projects
# based on https://github.com/github/gitignore/blob/master/Objective-C.gitignore
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
Alice's Adventures in Wonderland
ALICE'S ADVENTURES IN WONDERLAND
Lewis Carroll
THE MILLENNIUM FULCRUM EDITION 3.0