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
'use strict'; | |
// Prototypal extensions to knockout and RxJS to fascilitate conversion. | |
// based on <http://bit.ly/226Yj2o> | |
import ko from 'knockout'; | |
import Rx from 'rx'; | |
/** | |
* knockout.subscribable to Rx.Observable |
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
'use strict'; | |
// Prototypal extensions to knockout and RxJS to fascilitate conversion. | |
// based on <http://bit.ly/226Yj2o> | |
import ko from 'knockout'; | |
import Rx from 'rx'; | |
/** | |
* knockout.subscribable to Rx.Observable |
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 inject_binding = function (allBindings, key, value) { | |
//https://github.com/knockout/knockout/pull/932#issuecomment-26547528 | |
return { | |
has: function (bindingKey) { | |
return (bindingKey == key) || allBindings.has(bindingKey); | |
}, | |
get: function (bindingKey) { | |
var binding = allBindings.get(bindingKey); | |
if (bindingKey == key) { | |
binding = binding ? [].concat(binding, value) : value; |
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
https://marketplace.visualstudio.com/items?itemName=Compulim.vscode-express | |
https://marketplace.visualstudio.com/items?itemName=Compulim.vscode-ipaddress | |
https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig | |
https://marketplace.visualstudio.com/items?itemName=Pendrica.Chef | |
https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker | |
https://marketplace.visualstudio.com/items?itemName=Telerik.nativescript | |
https://marketplace.visualstudio.com/items?itemName=adambaldwin.vscode-nsp | |
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks | |
https://marketplace.visualstudio.com/items?itemName=alefragnani.project-manager | |
https://marketplace.visualstudio.com/items?itemName=benjaminromano.typings-installer |
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 lang="ru"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Sci-Fi</title> | |
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<script src="https://fb.me/react-0.14.3.js"></script> | |
<script src="https://fb.me/react-dom-0.14.3.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> | |
</head> |
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
/** | |
* Data attributes facade | |
* | |
* @type {Object} | |
*/ | |
var data = { | |
/** | |
* Getter | |
* | |
* @param {Object} obj Element to query |
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
// Begin dataset code | |
if (!document.documentElement.dataset && | |
// FF is empty while IE gives empty object | |
(!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset') || | |
!Object.getOwnPropertyDescriptor(Element.prototype, 'dataset').get) | |
) { | |
var propDescriptor = { | |
get: function () { | |
'use strict'; | |
var i, |