Skip to content

Instantly share code, notes, and snippets.

View SouzaRodrigo61's full-sized avatar
:octocat:
Working

Rodrigo Santos de Souza SouzaRodrigo61

:octocat:
Working
View GitHub Profile
@SouzaRodrigo61
SouzaRodrigo61 / keyboardHeightObservable.swift
Created May 9, 2021 21:44 — forked from laurilehmijoki/keyboardHeightObservable.swift
RxSwift Observable on iOS keyboard height
import RxSwift // Version 3.2.0
import RxCocoa // Version 3.2.0
func keyboardHeight() -> Observable<CGFloat> {
return Observable
.from([
NotificationCenter.default.rx.notification(NSNotification.Name.UIKeyboardWillShow)
.map { notification -> CGFloat in
(notification.userInfo?[UIKeyboardFrameBeginUserInfoKey] as? NSValue)?.cgRectValue.height ?? 0
},
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/rodrigo/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@SouzaRodrigo61
SouzaRodrigo61 / settings.json
Last active July 6, 2021 18:19
Vscode Settings - By: Rodrigo Santos
{
"editor.fontSize": 16,
"editor.lineHeight": 24,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
// Aplica linhas verticais para lembrar de quebrar linha em códigos muito grandes
"editor.rulers": [80, 120],
"editor.formatOnSave": false,
@SouzaRodrigo61
SouzaRodrigo61 / HomeView
Created August 31, 2019 15:07
AnimatedContainer
class HomeView extends StatefulWidget {
const HomeView({Key key}) : super(key: key);
@override
_HomeViewState createState() => _HomeViewState();
}
class _HomeViewState extends State<HomeView> {
// Add variable to top of class