Skip to content

Instantly share code, notes, and snippets.


Lucas Paul L4grange

View GitHub Profile
L4grange /
Last active Sep 27, 2019 — forked from rosterloh/
Android class for GPIO control
This class allows you to control GPIO pins form android, by abstracting the command line excecution into a java class.
IMPORTANT NOTE: Requires root to run, since it is required to write to GPIO ports in /sys/class/gpio/
public class GPIO {
L4grange / FadeView.swift
Last active May 5, 2021
Fade a UIView in ios using Gradient (Swift Extension)
View FadeView.swift
/// With this extension you can call .fadeView(style: ) on any view to create a fading effect.
/// Very useful when trying to fade a UIScrollView, UITableView or UICollectionView
/// This way also takes care of the "white or black" transparent gradient that happens as described here:
/// This solution is a swift implementation of the following stackoverflow question in Swift, adding more styles:
extension UIView {
enum UIViewFadeStyle {
case bottom