Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block arush

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# Convert an animated video to gif
# Works best for videos with low color palettes like Dribbble shots
# @param $1 - video file name like ``
# @param @optional $2 - resize parameter as widthxheight like `400x300`
# Example: vidtogif 400x300
# Requirements: ffmpeg and gifsicle. Can be downloaded via homebrew
tkafka / LICENSE.txt
Last active Sep 5, 2019
Drop-in replacement for ReactCSSTransitionGroup that uses velocity.js instead of CSS transforms. Add your own transitions to `transitions` hash.
View LICENSE.txt
The MIT License (MIT)
Copyright (c) 2014 Tomas Kafka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
SchumacherFM /
Last active May 17, 2018
Running Magento Enterprise Edition with Facebook HipHop HHVM

Running Magento Enterprise Edition with Facebook HipHop HHVM



MacBook Air (MBA) Mid 2012

spacenick / gist:5397435
Last active Dec 16, 2015
Adding item to a relation on Parse
View gist:5397435
// You can do that in your Chrome Console
// Load the initial object, like an Attempt
var attempt = new Parse.Object("Attempt"); = "myId";
// Get the relation "handler" from the attempt object
var relation = attempt.relation("products");
View Flexbox mixins.scss
@import "compass/css3/shared";
// September 2012 Candidate Recommendation (
// Chrome 21 (prefixed)
// Opera 12.1 (unprefixed)
// Firefox 20 (unprefixed)
$flex-moz: false !default;
$flex-webkit: true !default;
$flex-o: false !default;
$flex-ms: false !default;
leesbian / gist:1854374
Created Feb 17, 2012
Remove quotes that belong to anonymous users with expired cookies (because they'll never be able to retrieve them)
View gist:1854374
* Clean expired quotes (cron process)
* @param Mage_Cron_Model_Schedule $schedule
* @return Mage_Sales_Model_Observer
public function cleanExpiredQuotes($schedule)
Mage::dispatchEvent('clear_expired_quotes_before', array('sales_observer' => $this));
You can’t perform that action at this time.