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
var sleep = function(howManyMs){ | |
howManyMs += +new Date(); // add timestamp | |
while (+new Date()<howManyMs){ ; } // just a NOOP | |
}; | |
// console: | |
// > console.log(+new Date(), "hello") | |
// > sleep(4000); | |
// > console.log(+new Date(), "world"); |
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
;(function(){ | |
/** | |
* The recovery controller provides functionality for: | |
* (1) resetting password, | |
* (2) setting a new one | |
* (3) and switching between views | |
*/ |
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
;(function(){ | |
/** | |
* Recovery Controller provides functionality for: | |
* (1) resetting password, (2) setting a new one and (3) switching views | |
*/ | |
'use strict'; | |
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
asdasd |
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
Notes: | |
- very low-level API with simple prototyped-based javascript | |
- optimised for better readability and performance | |
- jquery-like simple functions for append, css, remove | |
(after, append, attr, before, children, clone, css, …) | |
- supports only 2 latest browsers | |
(for better support can be added an extension shim) | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="shortcut icon" href='@Url.FrontUrl().FileUrl("favicon.ico")' /> | |
@Html.FrontHtml().Title() | |
@Html.FrontHtml().Meta() | |
@Html.FrontHtml().RegisterStyles() | |
@Html.FrontHtml().RegisterScripts() | |
<!-- new stylesheet for digicity --> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
Ahoj! | |
</body> | |
</html> |
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
idea slovenske basnicky uryvky |
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
var url = "http://s3.amazonaws.com/api.88x.us/dlQBxMbRwf6RBEcbQw_3pB-xw9Q/blogs"; | |
var body = ""; | |
require("http").get(url, function(res) { | |
res.on("data", function(chunk) { body += chunk; }); | |
res.on("end", hotovoKonecne); | |
}); | |
function hotovoKonecne(){ | |
var tuMaBytArray = JSON.parse(body); |
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
var DomSprite = function(element, properties){ | |
this.properties = properties || {}; | |
this.element = element; | |
} | |
goog.inherits(DomSprite, goog.events.EventTarget); | |
DomSprite.prototype.getAttribute = function(attr){ | |
return this.element.getAttribute(attr); | |
}; |