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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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 Proxy2dContext = function() { | |
this.actions = []; | |
this.deps = {}; | |
}; | |
Proxy2dContext.prototype = { | |
callFunction: function(method, args) { | |
// convert args to real array | |
args = Array.prototype.slice.call(args); | |
this.actions.push([0, method, args]); | |
}, |
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
Describe how you would build this thumbnail web service: | |
- Accept a JPEG via an anonymous HTTP request from the client | |
- Create a scaled down, 25% thumbnail of it | |
- Return a text/plain response, with URLs to the original and thumbnail, i.e: | |
https://i.mozilla.org/abc123.original.jpeg | |
https://i.mozilla.org/abc123.thumb.jpeg | |
- Images (original + thumbnails) automatically deleted after 7 days |