Skip to content

Instantly share code, notes, and snippets.

View jjmerino's full-sized avatar

Joaquin Merino jjmerino

  • Google
  • Mountain View CA
View GitHub Profile
@jjmerino
jjmerino / main.dart
Created November 23, 2022 00:07
FutureBuilder over Navigator 2.0 may freeze on showDialog
import 'package:flutter/material.dart';
const goodRoute = 'good-route';
const brokenRoute = 'broken-route';
const initialRoute = 'initial-route';
void main() => runApp(MyApp());
/// Small app to reproduce an issue with the Navigator 2.0 API:
/// - When popping the dialog from Navigator.pop(context), it may get stuck.
@jjmerino
jjmerino / gist:3591539bb9e8f1a15047
Created October 4, 2014 07:26
Quick sort javascript
// A swap function
var swap = function(array,i,j){
var aux = array[i];
array[i] = array[j];
array[j] = aux;
};
// Quick sort implementation
var quickSort = function(array) {
var f = function(from,to){