Skip to content

Instantly share code, notes, and snippets.

View programadorthi's full-sized avatar
👨‍💻
Learning day by day

Thiago Santos programadorthi

👨‍💻
Learning day by day
View GitHub Profile
@slightfoot
slightfoot / main_using_fontsize.dart
Last active February 10, 2024 05:02 — forked from branflake2267/main.dart
Flutter - Flutter - Auto Scaling the Text Size
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',
theme: new ThemeData(
@alfeugds
alfeugds / CurrencyConverter.cs
Last active July 13, 2023 06:01
Xamarin Forms Currency Mask for Entry fields
using System;
using System.Globalization;
using System.Text.RegularExpressions;
using Xamarin.Forms;
namespace MyProject.Util
{
/// <summary>
/// Converter for using in Entry fields for masked input of currency.
/// <para>The binded property must be of type decimal, and must invoke the PropertyChangedEventArgs event whenever the value is changed, so that the desired mask behavior is kept.</para>
@ptrelford
ptrelford / JsonParser.js
Created May 16, 2016 08:56
Custom Json Parser in vanilla JavaScript
JSON={
parse:function(str,options) {
this.str = str;
this.i = 0;
this.nfirstchars = '-0123456789.';
this.nchars = '-0123456789.eE';
this.n
return this.parseValue();
},
isWhiteSpace:function(c) {
@Aracem
Aracem / ParallaxPageTransformer.java
Last active March 8, 2023 17:28
Parallax transformer for ViewPagers that let you set different parallax effects for each view in your Fragments.
package com.aracem.utils.animations.pagetransformation;
import org.jetbrains.annotations.NotNull;
import android.support.v4.view.ViewPager;
import android.view.View;
import java.util.ArrayList;
import java.util.List;