Skip to content

Instantly share code, notes, and snippets.

View micimize's full-sized avatar

Michael Joseph Rosenthal micimize

  • San Francisco, CA
View GitHub Profile
@micimize
micimize / OwO.js
Created July 3, 2018 03:00
what's this?
C= XD =1
D= '8'
OwO =(
o=0,
O= XD
^('-')> XD
<(' - ')^ XD
^('-')^ XD
==` `== XD
@micimize
micimize / animated_offset_builder.dart
Last active April 7, 2022 04:59
animated offset and a AnimatedCompositedTransformFollower based on flutter's internal slide animation
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@immutable
class AnimationOptions {
AnimationOptions({
this.curve = Curves.linear,
@required this.duration,
this.onEnd,
});
@micimize
micimize / scirm.dart
Created December 25, 2019 17:58
Simple flutter scrim/overlay widget
class Scrim extends StatelessWidget {
final bool applied;
final Widget child;
final double opacity;
final Duration speed;
final Color color;
const Scrim({
Key key,

Generally, to make it easier to diagnose the issues:

  1. Debug each part of your code yourself, eliminating potential bug sources beyond the bounds of this library. I.e, verify your back end fetching and parsing code results in valid data, then use that in your issue.
  2. Simplify the code as much as possible, removing styling, unrelated logic etc (this may help you identify the issue as well).
  3. Add full errors and stack traces.
  4. Use <details> tags liberally so the main issues are front loaded, but context isn't lost.
  • foo bar
  • hmmm
@micimize
micimize / redirect.md
Last active August 27, 2021 15:06
[OUTDATED] use SocketClientConfig.connect instead. old work around to headers for graphql flutter
import 'dart:math';
void main() {
final bigNumber = 100000000;
final w = new Stopwatch()..start();
for (int i = 0; i < bigNumber; i++) {
try {
sin(1);
} catch (ex) {
@micimize
micimize / fab_remote_user.py
Created August 17, 2019 14:13
Full proxy control over flask app builder (and thus apache superset) authentication
from flask import Blueprint, redirect
from flask_login import current_user, logout_user
from flask_appbuilder.security.manager import AUTH_OAUTH, AUTH_REMOTE_USER
my_blueprint = Blueprint("My Blueprint", __name__)
@my_blueprint.before_app_request
def ensure_logout_correctness():
"""Ensure users are logged out when the proxy logs out
@micimize
micimize / vim_buftab_nerdtree.vim
Created December 13, 2020 20:12
Get NERDTreeTabs behavior, without the tabs
" https://github.com/jistr/vim-nerdtree-tabs
" display list of buffers like tabs
Plugin 'ap/vim-buftabline'
" claims to solve w/wq edge cases and I believe them
Plugin 'mhinz/vim-sayonara'
" automatically enter/exit paste on inhuman input speed
" added because paste disables abbreviations,
import 'package:flutter/material.dart';
class OverlayContainer extends StatefulWidget {
/// The child to render in the regular document flow (defaults to Container())
final Widget child;
/// The widget to render inside the [OverlayEntry].
final Widget overlay;
/// Offset to apply to the [CompositedTransformFollower]