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
handle: function(request, response) { | |
var self = this, | |
context = new requestcontext.RequestContext({request:request}), | |
isNewPlayerCommand, | |
implResponse; | |
isNewPlayerCommand = self.impl.isNewPlayerCommand(context); | |
if (!isNewPlayerCommand) { |
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
/* | |
* DJSParserSemantics.mixins.withParserDocwrite | |
* | |
* Parse HTML chunk, peek at the DOM and amend | |
* the live DOM with new nodes. Parsing must pause | |
* as soon as </script.*?> appears, so we force this | |
* by breaking the markup into chunks. | |
*/ | |
var write = function(parser, out) { |
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
/* | |
* All HTML4 named entities mapped to unicode values | |
* | |
* http://www.w3.org/TR/html4/sgml/entities.html | |
* | |
* Please reuse this code however you like. | |
* | |
* Note that ' from XHTML 1.0 is not included. | |
*/ |
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 getOwnPropertyDescriptor = function(obj, property) { | |
if (!obj) return; | |
if (obj.__lookupGetter__) { | |
return { | |
get: obj.__lookupGetter__(property), | |
set: obj.__lookupSetter__(property) | |
}; | |
} else { | |
return Object.getOwnPropertyDescriptor(obj, property); |
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
"[ DJS ] " | |
"[ DJS ] " | |
"[ DJS ] " | |
"WARNING: Attempt to execute deferred event handler " | |
" failed!" | |
"Replacing script node for introspection support" | |
"Executing an inline script..." | |
" while attempting to execute this inline script: " | |
"Finished precache-ing resource at " | |
"Failed to precache resource at " |
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
<tr id="record-4b809a8f7b2d357a3e17a0abd4160b7f-show" class="DNSEditor-textRow DNSEditor-verifyingRow "> | |
<td class="DNSEditor-column-recordType"> | |
<div class="DNSEditor-recordType recordType-A"><strong>A</strong></div> | |
</td> | |
<td class="DNSEditor-column-recordName"> | |
<span class="truncated" title="testabc.etsyworlddomination.com">testabc</span> | |
</td> | |
<td class="DNSEditor-column-verb">points to</td> | |
<td class="DNSEditor-column-recordValue"> | |
<span class="truncated" title="184.106.169.29">184.106.169.29</span> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html lang="en-US"> | |
<head> | |
<link rel="stylesheet" type="text/css" href="modules/core/data/gallery.css"/> | |
<link rel="stylesheet" type="text/css" href="modules/rating/rating.css"/> | |
<link rel="stylesheet" type="text/css" href="modules/icons/iconpacks/silk/icons.css"/> | |
<script type="text/javascript" src="lib/yui/yahoo-min.js"></script> | |
<script type="text/javascript" src="lib/yui/connection-min.js"></script> | |
<script type="text/javascript" src="modules/rating/rating.js"></script> |
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
function dirs_depth () { | |
echo `dirs -v | wc -l` | |
} | |
function parse_git_branch () { | |
BRANCH=$(git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') | |
BLEN=$(echo `echo $BRANCH | wc -c` " - 1" | bc) | |
echo $BRANCH | cut -c1 | sed -e "s/^./${BLEN}\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
# With Vmware Fusion bin path in $PATH... | |
alias vmup="vmrun -T fusion start $HOME/Documents/Virtual\ Machines.localized/$VMIMAGE.vmwarevm/$VMIMAGE.vmx nogui" | |
alias vmp="vmrun -T fusion pause $HOME/Documents/Virtual\ Machines.localized/$VMIMAGE.vmwarevm/$VMIMAGE.vmx" | |
alias vusu="ssh -A -l $VMUSER $VMIP" |
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 q = require('q'); | |
/* | |
* ncall / nbind test | |
*/ | |
function simpleAdmin(callback) { | |
setTimeout( | |
function () { | |
console.log('nc admin ok'); | |
callback(); |
OlderNewer