This file contains hidden or 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
host = process.env.HOST or '0.0.0.0' | |
port = process.env.PORT or 3000 | |
http = require 'http' | |
server = http.createServer (req, res) -> | |
console.log "\n#{req.method} #{req.url}" | |
console.dir req.headers | |
req.setEncoding 'utf8' | |
req.on 'data', (data) -> | |
console.log data |
This file contains hidden or 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
$gallery.find('.arrow.right').click (e) -> | |
galleryArrowClickHandler on | |
$gallery.find('.arrow.left').click (e) -> | |
galleryArrowClickHandler off | |
$gallery.find('.arrow').dblclick (e) -> | |
e.preventDefault() | |
no | |
$gallery.find('.arrow').each -> | |
@style.MozUserSelect = "none" | |
@style.WebkitUserSelect = "none" |
This file contains hidden or 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/php | |
<?php | |
$domain = $argv[1]; | |
echo preg_replace( | |
'!s:(\d+):"([^"]*?' . preg_quote($domain) . '[^"]*?)";!Ue', | |
"'s:'.strlen('$2').':\"$2\";'", | |
file_get_contents('php://stdin') | |
); |
This file contains hidden or 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
http = require "http" | |
proxyToHost = 'www.sandbox.prostoprint.com' | |
server = http.createServer (request, response) -> | |
delete request.headers.host | |
delete request.headers.hostname | |
proxiedRequest = http.request | |
hostname: proxyToHost | |
host: proxyToHost |