Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

Nikolay Kostyurin JiLiZART

💭
I may be slow to respond.
Block or report user

Report or block JiLiZART

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vk_playlist_txt_save.js
// выполняем в консоли на сайте vk.com
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
View bad.js
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _class, _temp;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass)
View все ссылки
https://jquery.com/
https://nodejs.org/en/
https://angularjs.org/
https://angular.io/
https://cordova.apache.org/
https://electronjs.org/
https://reactjs.org/
View 5.wav.json
[0.000015399438857032335,0.000015229121693890399,0.000015112531070144572,0.000015167283637957306,0.000015254063632306472,0.000015173896343537052,0.00001514986798904221,0.000015253717495780433,0.061233016237787125,0.06588817180092324,0.060209182127349214,0.056629886684144384,0.0541146965022793,0.0853900293934384,0.10189910051287736,0.069831378450064,0.07911658332127748,0.06353652577924984,0.055836655322587345,0.056630747500324596,0.05800467716146074,0.056249013201388295,0.05783326630613094,0.05817966697799132,0.03233948943267356,0.0000308069339880269,0.000015197539292465462,0.000015227388097780887,0.000015206569528918389,0.000015115675111038757,0.000015087355156386862,0.000015191284445801437,0.000015179810533067048,0.000015212123933095553,0.000015164846651140576,0.000015197191868521461,0.000015217329345733138,0.000015242290580737619,0.000015218023266221688,0.000015131734451205873,0.00001519197955593682,0.000015280347066054948,0.000015167283637957306,0.000015169024103123165,0.000015089454753542762,0.00001517737
View vk.com_playlist_as_json.js
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
View shiftZeros.js
function shiftZeros(arr) {
var len = arr.length-1,
lastidx = len,
ZERO = 0;
for (var i = 0; i <= len; i++) {
if (lastidx <= i) break;
while (arr[lastidx] === ZERO) {
lastidx--;
View jquery.transform.js
/**
* Shortcut transform function for all supported browsers
* @param {String} transform
* @returns {jQuery}
*/
jQuery.fn.transform = function(transform) {
return this.css({
'-webkit-transform': transform, /* Chrome, Safari 3.1+ */
'-moz-transform': transform, /* Firefox 3.5-15 */
'-ms-transform': transform, /* IE 9 */
@JiLiZART
JiLiZART / isStringBalanced.js
Created Aug 7, 2017
Проверка валидности скобок ( и [
View isStringBalanced.js
const isB = (str) => {
const strArr = str.split('');
const stack = [];
for (let char of strArr) {
if (char.startsWith('[') || char.startsWith('(')) {
stack.push(char);
} else {
// Первый символ строки не открывающаяся скобка, значит уже не верно
@JiLiZART
JiLiZART / function_invocation.js
Created Jun 18, 2017 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
View function_invocation.js
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
View If.js
const If = (cond) => (truly) => (falsy) => [truly, falsy][!cond + 0]()
const result = If(false)(() => 'true')(() => 'false')
You can’t perform that action at this time.