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
0eNrVfctuZEeS5a8UuFY0rvnbhUYDs5lVAz2LmVVDEJiZkalAMUl2kBRKKOjfJ4KZintJXnM7x4JkojYllUgeN7eHX3+Y2fnnxYerh+3tfnd9f/HzPy92H2+u7y5+/u9/XtztvlxfXh3/2/0ft9uLny9299uvFz9dXF9+Pf6/D9vLw69e/PnTxe760/YfFz/Lnz+Zf3Szu9rst59319v9H4s/DX/+8tPF9vp+d7/bfhv88f/88ev1w9cP2/0B+4Rwu7vdbu5vNl/2Nw/Xnw7Itzd3hz87SHIY8wC1SdO/5Z8u/jj8W4z/lv88CvUMLLjA0gHsp4tPu/3247ffSCvQ8QT9+fLufnO/v7y+u73Z328+bK/uV/CjPBHWxE9+fEj+zOIP9FNW8AuJHzqHX1n8xuE3Fr9y+J3FLxy+TOwAmRxgjtS7+8uPf9/sru+2+/vDj4bYSqRKINCKicZGZ0jk5NnwDJEcIBP6iKY+CoGWTDQ69gI5eTr4hBygE/oQ8yszEWjBRBN28uTKHIJ/AE1mNt6k61/DVZnneNv+43a/vbvb3N1e7e7XlSzzWh8B7DnUPj7sf99+2uwvd1drsPIdVJ6ChjXQZcQd8L78dq/Btu+o4SlqXUOtNGp6ihrXUBuogL+UWp9i5jVM8vuWud1RJL9uhXO3+CwGdV+rqqcdt7y3D/e/HvbbN/sD+AHravv5/mJtODIiGzkbMjrJ2Izkt1AmEp/cqoqQ+ORWVQKJT34uJZL45NdSEolPhrJkDj+RsSxkMCfygyqVxJ+j97hubr4fjFeOmLPjyHPgtW9ImuP2uNhfb+7ub27XjmZp/Qty8OvDfuTbv1/893/+8rf//bA9yvXx5upmf/zjw/8cYrG1EHOUVspUY5la7C3FepD0y/jHH8Y/vjz+OPU2xR4kH/4hqcQS4pRKq6u7iJTwfdTiuCvre5L0bNk4HPu3+2/Hf+AMHV58hX463XMcl/W1ZTzNC8nX7afdw9fN9urw5/vdx83tzdV2fGjUZjEvHlc |
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
<?php | |
// Add decision logic based on $_SERVER['REQUEST_URI'] | |
print "<pre>Request URI: " . $_SERVER['REQUEST_URI'] . "</pre>"; | |
print "<pre>Request Method: " . $_SERVER['REQUEST_METHOD'] . "</pre>"; | |
print "<pre>GET: " . print_r($_GET, true) . "</pre>"; | |
print "<pre>POST: " . print_r($_POST, true) . "</pre>"; |
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 favesData = require('./mkv25_faves.json'); | |
var faves = favesData.map((item) => { | |
var copy = Object.assign({}, item); | |
copy.lastplayeddate = new Date(item.lastplayed); | |
copy.lastplayedts = Math.round(copy.lastplayeddate.getTime() / 1000); | |
return copy; | |
}); | |
var ts = Math.round(new Date().getTime() / 1000); |
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 makeLogger() { | |
return new winston.Logger({ | |
level: 'info', | |
transports: [ | |
new (winston.transports.Console)(), | |
new (winston.transports.File)({ filename: 'somefile.log' }) | |
] | |
}); | |
} |
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 sum = require('./sum'); | |
console.log(sum(2,5), 'should equal 7'); |
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 compare() { | |
// Compare | |
var prettydiff = require("prettydiff"); | |
var fs = require('fs'); | |
var args = { | |
source: './tests/compiler/build/*.component.js', | |
diff: './tests/compiler/canned', | |
lang: 'html' | |
}; | |
var report = prettydiff.api(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Embedded Markdown</title> | |
</head> | |
<body> | |
<markdown> | |
# Markdown text goes in here |
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
{ | |
init: function(elevators, floors) { | |
var stopAtRequests = false; | |
var sharedRequestList = []; | |
Array.prototype.contains = function(obj) { | |
var i = this.length; | |
while (i--) { | |
if (this[i] === obj) { |
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
package net.mkv25.specs; | |
import hxpect.core.BaseSpec; | |
import net.mkv25.base.core.Pointer; | |
class PointerSpecs extends BaseSpec | |
{ | |
override public function run() | |
{ | |
describe("Pointers", function() |
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
package net.mkv25.base.core; | |
import haxe.ds.StringMap; | |
/** | |
* Soft reference type : Pointer<T> - that can be easily serialized | |
* For use when you need a reference to an object in a different domain, where this domain requires serialization, and the referenced object should not form part of this domain's serialization tree. | |
*/ | |
class Pointer<T> | |
{ |
NewerOlder