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
Options +FollowSymLinks | |
IndexIgnore */* | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . index.php |
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
do -> | |
$.extend | |
parallel: (ds) -> | |
d = new $.Deferred | |
$.when.apply($, ds) | |
.done if ds.length <= 1 | |
(results...) -> d.resolve [ results ] | |
else |
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
server { | |
listen 80; | |
server_name _; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $host; | |
proxy_set_header X-Forwarded-Server $host; | |
proxy_set_header X-Real-IP $remote_addr; |
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
class Class { | |
constructor() { | |
var ctor:any = (<any>this).constructor; | |
if (ctor.__on__ == null) { | |
ctor.__on__ = {}; | |
for (var m in this) { | |
var fn:any = this[m]; | |
if (typeof fn === 'function' && | |
(m.indexOf('on') === 0 || m.indexOf('_on') === 0)) { |
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
.DS_Store | |
Thumbs.db | |
.idea/ | |
*.iml |
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
DD_belatedPNG?.fixPng imgElem |
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
getMousePoint: (e)-> | |
e = e.touches?[0] or e | |
x: e.pageX | |
y: e.pageY |
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 bmd:BitmapData = new BitmapData(video.width, video.height, true, 0); | |
bmd.draw(video, video.transform.matrix); |
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
$scroller = $('#scroller') | |
$children = $scroller.find('*') | |
childWidth = $($children[0]).width() | |
numChildren = $children.length | |
scrollerWidth = childWidth * numChildren | |
#autoslide | |
fixPos = (delta)-> | |
left = parseFloat($scroller.css('left')) | |
if delta > 0 and left <= -scrollerWidth |
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
private function _onLinkClicked(e:MouseEvent):void { | |
navigateToURL(new URLRequest('http://example.com'), e.ctrlKey ? '_blank' : '_self'); | |
} |