David DeSandro desandro

View bowerrc-config.md

Configuration

The Bower configuration alters the behaviour of Bower on the local system.

The config is obtained by merging multiple configurations by this order of importance: [cli args via --config.*] environment variables local bowerrc located in the cwd all bowerrc files upwards the directory tree bowerrc file located in the home folder

View loop.js
1 2 3 4 5
for ( var _i = 0; _i < 10 * 10; _i++ ) {
var i = Math.floor( _i / 10 );
var j = _i % 10;
console.log(i, j);
}
View debounce.js
1 2 3 4 5 6 7 8 9 10
// Original by John Hann
// http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
function debounce( fn, threshold ) {
var timeout;
return function debounced() {
var _this = this;
var args = arguments;
if ( timeout ) {
View loader-dots.svg
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<!-- hand coded by David DeSandro like a bad ass luddite -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="80px" height="20px" viewBox="0 0 80 20">
<circle cx="10" cy="10" r="10" fill="#333" >
<animate attributeName="cx" from="10" to="40" dur="0.5s" calcMode="spline" keySplines="0.42 0 0.58 1" keyTimes="0;1" repeatCount="indefinite" />
</circle>
<circle cx="10" cy="10" r="0" fill="#333">
<animate attributeName="r" from="0" to="10" dur="0.5s" calcMode="spline" keySplines="0.42 0 0.58 1" keyTimes="0;1" repeatCount="indefinite" />
View jquery.isotope-masonry-column-shift-layout-mode.js
1 2 3 4 5 6 7 8 9 10
// custom layout mode
$.Isotope.prototype._masonryColumnShiftReset = function() {
// layout-specific props
var props = this.masonryColumnShift = {
columnBricks: []
};
// FIXME shouldn't have to call this again
this._getSegments();
var i = props.cols;
props.colYs = [];
View README.md

Install imagesLoaded via Bower

bower install imagesloaded

The config in main.js can be set up several ways

requirejs.config({
  // set paths object
  paths: {
View packery.pkgd-1.0.6.js
1 2 3 4 5 6 7 8 9 10
/*!
* Packery PACKAGED v1.0.6
* bin-packing layout library
* http://packery.metafizzy.co
*
* Commercial use requires one-time purchase of a commercial license
* http://packery.metafizzy.co/license.html
*
* Copyright 2013 Metafizzy
*/
View aso-abuse.md

After 7 years of being a customer of A Small Orange, I plan on switching this week.

Earlier last week, I was emailed by A Small Orange. See email.txt in this gist.

What's was going was that on here is that my account is experiencing a huge spike in activity. The script in question is my Mint analytics.

What I believe is happening is that someone has copy/pasted some code from the Isotope, Packery, or Masonry site, and deployed it in a site with huge scale. That, or, my own sites are experiencing a huge spike in traffic.

My account has been suspended. I have no access to my sites -- FTP, SSH, or control panel. All my sites display this page:

View auto-cornify.js
1 2 3 4 5 6 7 8 9 10
// add event helper
function addEvent( obj, type, fn ) {
if ( obj.addEventListener ) {
obj.addEventListener( type, fn, false );
} else if ( obj.attachEvent ) {
obj.attachEvent( "on" + type, fn );
}
}
 
function cornifyThisGuy() {
Something went wrong with that request. Please try again.