This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ticket #3224 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Interval = function(interval) { | |
this.interval = interval; | |
this.calls = 0; | |
this.funcs = []; | |
}; | |
Interval.prototype.push = function(func, context) { | |
this.funcs.push(func.bind(context || window)); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.mixin({ | |
chunks: function(arr, size) { | |
var len = arr.length, | |
chunk_len = Math.ceil(len/size), | |
chunks = []; | |
for (var i = 0; i < chunk_len; i++) { | |
chunks.push(arr.slice(i*size, (i+1)*size)); | |
} | |
return chunks; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import urllib2, uuid, os | |
from PIL import Image, ImageChops, ImageOps | |
import simplejson as json | |
from settings import MEDIA_ROOT | |
from studio.misc import PhotoSize | |
""" | |
Dependencies: PIL |