View gen.es5.bt.js
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 S_ITER$0 = typeof Symbol !== 'undefined' && Symbol && Symbol.iterator || '@@iterator'; | |
var S_MARK$0 = typeof Symbol !== 'undefined' && Symbol && Symbol["__setObjectSetter__"]; | |
function GET_ITER$0(v) { | |
if( v ) { | |
if( Array.isArray(v) )return 0; | |
var f; | |
if( S_MARK$0 )S_MARK$0(v); | |
if( typeof v === 'object' && typeof (f = v[S_ITER$0]) === 'function' ) { | |
if( S_MARK$0 )S_MARK$0(void 0); | |
return f.call(v); |
View string_template_example.js
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
const mysql = require('mysql'); | |
const crypto = require('crypto'); | |
const color = require('ansi-color').set; | |
const stringUtils = require('./string.es6'); | |
const DATABASE_NAME = 'test123' | |
, MESSAGES_TABLE_NAME = 'msgid' | |
, PLURALS_TABLE_NAME = 'plural' | |
; |
View data.json
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
{"expected":";applyPolyfills$0();(RegExp[\"__polyfill__\"]||function(obj1, obj2){var arr=RegExp[\"__polyfill__\"];if(!arr)arr=RegExp[\"__polyfill__\"]=[];arr.push([obj1,obj2])})({\"N[^1]N\":\"N(?:[^1]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF])N\",\"N[^1-9]N\":\"N(?:[^1-9]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF])N\",\"N[^\\\\s1-9]N\":\"N(?:[^\\\\s1-9]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF])N\",\"N[^\\\\S\\\\t\\\\r]N\":\"N[^\\\\S\\\\t\\\\r]N\",\"N[^\\\\da-z]N\":\"N(?:[^\\\\da-z]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF])N\",\"N[^\\\\D1-3]N\":\"N[^\\\\D1-3]N\",\"N[^\\\\w-]N\":\"N(?:[^\\\\w-]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF])N\",\"N[^\\\\Wa]N\":\"N[^\\\\Wa]N\",\"N[^\\\\s\\\\uD800\\\\uDC00-\\\\uD800\\\\uDCAA1-9]N\":\"N(?:[^\\\\s1-9]|(?:\\\\uD800[\\\\uDCAB-\\\\uDFFF]|[\\\\uD801-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]))N\",\"N[^\\\\S\\\\uD800\\\\uDC00-\\\\uD800\\\\uDCAA\\\\t\\\\r]N\":\"N[^\\\\S\\\\t\\\\r]N\",\"N[^\\\\d\\\\uD800\\\\uDC00-\\\\uD800\\\\uDCAAa-z]N\":\"N(?:[^\\\\da-z]|(?:\\\\uD800[\\\\uDCAB-\\ |
View deepExtend.js
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 _hasOwn = Object.prototype.hasOwnProperty; | |
var _toString = Object.prototype.toString; | |
var _hasGOPD = typeof Object.getOwnPropertyDescriptor === 'function'; | |
var _hasDP = typeof Object.defineProperty === 'function'; | |
function _getOwnPropertyDescriptor(obj, prop) { | |
if ( _hasGOPD ) { | |
return Object.getOwnPropertyDescriptor(obj, prop) | |
} | |
else { |
View Symbol_test.js
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
applyPolyfills();var $S_polyfill$0 = Symbol["__polyfill__"];var $S_SET$0, $S_GET$0, $isSymbol$0;if($S_polyfill$0){$S_SET$0 = $S_polyfill$0["__setObjectSetter__"];$S_GET$0 = $S_polyfill$0["__setObjectGetter__"];$isSymbol$0 = $S_polyfill$0["__isSymbol__"];$S_polyfill$0 = true;}else {$S_polyfill$0 = false} | |
var private1 = Symbol();var $S$0 = $S_polyfill$0 && typeof private1 === 'object' && $isSymbol$0(private1); | |
var private2 = Symbol();var $S$1 = $S_polyfill$0 && typeof private2 === 'object' && $isSymbol$0(private2); | |
var publicProp1 = 'public_prop1'; | |
var publicProp2 = (function(){return 'public_prop1'})();var $S$2 = $S_polyfill$0 && typeof publicProp2 === 'object' && $isSymbol$0(publicProp2); | |
function createSymbolOrObject(createSymbol){ return createSymbol ? Symbol() : {} }; | |
{// simple | |
var obj = {}, obj1 = {}; |
View declension.js
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
/** | |
* Склонение существительных | |
* Правильная форма cуществительного рядом с числом (счетная форма). | |
* | |
* @example declension("файл", "файлов", "файла", 0);//returns "файлов" | |
* @example declension("файл", "файлов", "файла", 1);//returns "файл" | |
* @example declension("файл", "файлов", "файла", 2);//returns "файла" | |
* | |
* @param {string} oneNominative единственное число (именительный падеж) | |
* @param {string} severalGenitive множественное число (родительный падеж) |
View findMicrodataProperties.js
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 findMicrodataProperties(itemScopeNode, itemPropName) { | |
if( !itemScopeNode.hasAttribute("itemscope") ) { | |
return[]; | |
} | |
var pending = [] | |
, tmp | |
, currentNode | |
, k = -1 | |
, el |
View CSS.supports.js
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
/** github.com/termi/CSS.supports */ | |
if( !global.CSS || !global.CSS.supports ) { | |
if( !global.CSS ) { | |
/** | |
* @expose | |
*/ | |
global.CSS = {}; | |
} | |
if( !global.CSS.supports && global["supportsCSS"] ) {// Opera 12.10 impl |
View URL_polyfill.js
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
void function() { | |
"use strict"; | |
var global = this; | |
//Mini alternative https://gist.github.com/2428561 | |
//Uses | |
//https://gist.github.com/1384398 | |
//https://gist.github.com/1235332 |
View scrollIntoView_polyfill.js
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
//////////////////////////////////////////////////////////////////////////////// | |
// Author: Thaddee Tyl 2012. | |
// The following work is under CC0. | |
void function() { | |
// Hook the polyfill. | |
Element.prototype._scrollIntoView = function scrollIntoView(options) { | |
if( !this.ownerDocument )return; | |
NewerOlder