Skip to content

Instantly share code, notes, and snippets.

View JiLiZART's full-sized avatar
💭
I may be slow to respond.

Nikolay Kost JiLiZART

💭
I may be slow to respond.
View GitHub Profile
# NAME: Claude
# AUTHOR: arcthur
# UPDATED: 2023-07-12
# DOMAIN: 1
# DOMAIN-KEYWORD: 2
# DOMAIN-SUFFIX: 3
# TOTAL: 6
DOMAIN,cdn.usefathom.com
DOMAIN-SUFFIX,claude.ai
DOMAIN-SUFFIX,anthropic.com
@JiLiZART
JiLiZART / plink-plonk.js
Created April 29, 2020 11:06 — forked from tomhicks/plink-plonk.js
Listen to your web pages

Принципы разработки Амплифера

Тут перечислены не законы, последние слово всегда за здравым смыслом. Тут перечислены лишь направление, куда надо стремиться. Принципы, которые должны помочь, когда не знаешь, что выбрать.

Ценности

  1. Пользователь. Если что-то сильно мешает UX или есть критическая ошибка, то в первую очередь мы спасаем пользователей. Для этого иногда надо взять ответственность на себя, переубедить толпу, написать плохой код.
@JiLiZART
JiLiZART / function_invocation.js
Created June 18, 2017 20:17 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
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);

@kangax's ES6 quiz, explained

@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).

Here we go with the explanations:

Question 1:
(function(x, f = () => x) {
@JiLiZART
JiLiZART / make.js
Created October 1, 2015 21:45
client BH
var enbBemTechs = require('enb-bem-techs'),
borschikTech = require('enb-borschik/techs/borschik'),
fs = require('fs'),
path = require('path'),
techs = enbBemTechs,
provide = require('enb/techs/file-provider');
// php
// process.env.YENV = 'production';
enbBhPhp = require('enb-bh-php');
//wpPhp = require('./techs/wp-php.js');
###
# Retina images handler
###
if ($http_cookie ~* "isRetina=1" ) {
set $isRetina "retina";
}
location ~ ^/bundles/(.*)-retina\.png {
try_files /bundles/$1-retina.png @retinaFallback;
}