This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// LazyStaggedVGrid.swift | |
// | |
// Created by Ricardo Markiewicz on 20/08/2023. | |
// Copyright © 2023 orgName. No rights reserved. | |
// | |
// https://twitter.com/Gazeria/status/1693356336019333382 | |
// | |
import SwiftUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
silent_background() { | |
{ 2>&3 "$@"& } 3>&2 2>- | |
disown &>/dev/null # Close STD{OUT,ERR} for silence if job has already completed | |
} | |
if [ -z $1 ] ; then | |
echo "Pass the class name with full package name and the test method name." | |
echo " " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to your ~/.zshrc AFTER the last export PATH="" that is currenttly defined | |
# Change these to reflect where do you have Flutter installed | |
export FLUTTER_STABLE_PATH="$HOME/dev/flutter/bin" | |
export FLUTTER_BETA_PATH="$HOME/dev/flutter-beta/bin" | |
export FLUTTER_MASTER_PATH="$HOME/dev/flutter-master/bin" | |
export BASE_PATH=$PATH | |
# Using 💙 until we can get a Flutter emoji :) | |
function useFlutterStable() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ScrollExpandContainer extends StatelessWidget { | |
final List<Widget> children; | |
const ScrollExpandContainer({Key key, this.children}) : super(key: key); | |
@override | |
Widget build(BuildContext context) { | |
return LayoutBuilder( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parse Youtube URL to get YoutubeID | |
// | |
void main() { | |
var url = "https://www.youtube.com/watch?v=xr3pKzqrv70"; | |
var uri = Uri.parse(url); | |
var v = uri.queryParameters['v']; | |
print("v=$v"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require('firebase-functions'); | |
const admin = require('firebase-admin'); | |
let FieldValue = require('firebase-admin').firestore.FieldValue; | |
admin.initializeApp(); | |
const db = admin.firestore(); | |
const express = require('express'); | |
const app = express(); | |
const mercadopago = require('mercadopago'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestWidget extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Padding( | |
padding: const EdgeInsets.all(24.0), | |
child: AspectRatio( | |
aspectRatio: 3 / 2.0, | |
child: LayoutBuilder( | |
builder: (context, BoxConstraints constraints) { | |
return Stack( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
SliderWidget( | |
icon: Icons.arrow_forward, | |
text: "Deslizá para transferir", | |
color: Colors.red, | |
onSubmit: (Function onFinish, Function onError) async { | |
await pause(const Duration(seconds: 1)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.os.Build; | |
import android.support.v4.view.ViewPager; |
NewerOlder