Skip to content

Instantly share code, notes, and snippets.

View reduxdj's full-sized avatar

Patrick Lemiuex reduxdj

View GitHub Profile
@reduxdj
reduxdj / collections.coffee
Last active August 29, 2015 14:25 — forked from onepixelsolid/collections.coffee
Meteor - S3 file upload + thumbnailing
#
# FS Collection
#
profileThumbsStore = new FS.Store.S3('thumb',
accessKeyId : 'XXXXXXXXXXXXXXXXXX'
secretAccessKey : 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
bucket : 'my-bucket-name'
folder : 'thumb'
transformWrite : (fileObj, readStream, writeStream) ->
gm(readStream, fileObj.name()).resize("100", "100").stream().pipe writeStream
@reduxdj
reduxdj / tracking.js
Created April 26, 2019 17:06
Tracking Wrapper
/*
TrackingWrapper trackingEvent={{type: EVENTS.ACCOUNT_SIDEBAR_CLICKED}} >
<StyledLinkButton
pathname={pathname}
to="/account"
>
<StyledLinkButton path="wishlists" pathname={pathname} to="/account/wishlists">
<h6>Wishlists</h6>
<svg width="30" x="0px" y="0px" viewBox="0 0 471 448" >
<path fill="#149d43" d="M235.5,0l-72.8,147.5L0,171.1l117.8,114.8L90,448l145.5-76.5L381,448l-27.8-162.1L471,171.1l-162.7-23.7L235.5,0L235.5,0z" />
class TopAppMessage {
static RxBool toastShowingNow = false.obs;
static OverlayEntry? _overlayEntry;
static void showProgressBarToast({
required BuildContext context,
required String text,
String? btnTitle,
void Function()? onTap,
Duration duration = const Duration(seconds: 4),