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
define([], function() { | |
"use strict"; | |
// Your code goes 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Client-server polygon</title> | |
</head> | |
<body> | |
<div id="response"></div> |
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 formatNumber(_value) { | |
var _return_value = _value.toLocaleString().replace(/\s/gi, ','); | |
return _return_value; | |
} |
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
// for now supports both only in Chrome | |
if (typeof performance.memory == "object" && | |
typeof performance.timing == "object") { | |
/** | |
* Forebone.Performance - wrapper for performance.timing | |
* and performance.memory | |
*/ | |
Forebone.Performance = { |
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
#include <iostream> | |
#define SCOPE 1000 | |
using namespace std; | |
int main() { | |
int tab[SCOPE]; | |
int i = 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<div id="siege"></div> | |
<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
var http = require("http"); | |
var https = require("https"); | |
var url = require("url"); | |
var port = "2323"; | |
var host = "127.0.0.1"; | |
var server = http.createServer( function(request,response) { | |
var _url = url.parse(request.url, true); |
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
// | |
// Rafal 'bl4de' Janicki <bloorq@gmail.com> | |
// | |
// getUserMedia WebKit demo - main script | |
// | |
(function () { | |
"use strict"; | |
var video = document.querySelector('video'); |
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 VAEngine = VAEngine || ( function() { | |
function addTooltip(_element, _tooltipText) { | |
var _elem = document.querySelector(_element); | |
console.log("_elem: ", _elem); | |
_elem.addEventListener('mouseover', function() { | |
_elem.title = _tooltipText; | |
}); | |
} |
OlderNewer