Skip to content

Instantly share code, notes, and snippets.

View MagneticMule's full-sized avatar
🏠
Working from home

Thomas D. Sweeney MagneticMule

🏠
Working from home
  • Seventh Stage
  • Nottingham
View GitHub Profile
@herrhelms
herrhelms / ironrouter-waiton.js
Last active June 22, 2020 17:26
how to wait on multiple subscriptions with iron:router and make it available as data in your template...
--- <yourproject.js> ---
SubscriptionOne = new Meteor.Collection('subscription1');
SubscriptionTwo = new Meteor.Collection('subscription2');
if(Meteor.isClient) {
// iron:router route
Router.route('/', {
onBeforeAction:function() {
// .. any onBeforeAction
@rafali
rafali / ResizeAnimation.java
Last active February 26, 2021 13:05
Resize animation on Android
public class ResizeAnimation extends Animation {
final int startWidth;
final int targetWidth;
View view;
public ResizeAnimation(View view, int targetWidth) {
this.view = view;
this.targetWidth = targetWidth;
startWidth = view.getWidth();
}
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname