Skip to content

Instantly share code, notes, and snippets.

@andre-bahia
andre-bahia / CurrencyPtBrInputFormatter.dart
Last active April 29, 2024 15:06
Flutter TextInputFormatter Currency pt_BR
import 'package:flutter/services.dart';
import 'package:intl/intl.dart';
class CurrencyPtBrInputFormatter extends TextInputFormatter {
TextEditingValue formatEditUpdate(TextEditingValue oldValue, TextEditingValue newValue) {
if(newValue.selection.baseOffset == 0){
return newValue;
}
@vanderson139
vanderson139 / monefy.php
Last active October 26, 2016 10:24
Monefy - PHP Ultimate Money / Currency / Float Formatter and Fixer
<?php
/*
|--------------------------------------------------------------------------
| Monefy - PHP Ultimate Money / Currency / Float Formatter and Fixer
|--------------------------------------------------------------------------
|
| This function formats almost any input to currency and can also
| parse the formatted value as a float for database/backend operations
|
@bendc
bendc / easing.css
Created September 23, 2016 04:12
Easing CSS variables
:root {
--ease-in-quad: cubic-bezier(.55, .085, .68, .53);
--ease-in-cubic: cubic-bezier(.550, .055, .675, .19);
--ease-in-quart: cubic-bezier(.895, .03, .685, .22);
--ease-in-quint: cubic-bezier(.755, .05, .855, .06);
--ease-in-expo: cubic-bezier(.95, .05, .795, .035);
--ease-in-circ: cubic-bezier(.6, .04, .98, .335);
--ease-out-quad: cubic-bezier(.25, .46, .45, .94);
--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: