Skip to content

Instantly share code, notes, and snippets.

🚲
Bicycle mood

Alexander Myshov myshov

🚲
Bicycle mood
Block or report user

Report or block myshov

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
@myshov
myshov / codemodes_talk_links.md
Last active May 26, 2019
Codemodes Talk (outdated)
View codemodes_talk_links.md
View codemodes_talk_links.md
@myshov
myshov / gist:bb9e5e14f4bbd852318e12347c1591eb
Created Aug 4, 2018
Awesome linter errors for awesome-machine-learning-on-source-code
View gist:bb9e5e14f4bbd852318e12347c1591eb
README.md:1:1
✖ 1:1 Missing Awesome badge after the main heading awesome/badge
✖ 13:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 14:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 15:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 16:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 17:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 18:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
✖ 19:5 Incorrect indentation before bullet: remove 2 spaces list-item-bullet-indent
@myshov
myshov / prepack-gentle-intro-1.md
Created May 11, 2018 — forked from gaearon/prepack-gentle-intro-1.md
A Gentle Introduction to Prepack, Part 1
View prepack-gentle-intro-1.md

Note:

When this guide is more complete, the plan is to move it into Prepack documentation.
For now I put it out as a gist to gather initial feedback.

A Gentle Introduction to Prepack (Part 1)

If you're building JavaScript apps, you might already be familiar with some tools that compile JavaScript code to equivalent JavaScript code:

  • Babel lets you use newer JavaScript language features, and outputs equivalent code that targets older JavaScript engines.
@myshov
myshov / function_invocation.js
Last active Jul 8, 2019
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);
@myshov
myshov / parsing.lhs
Created Jan 31, 2016
Functional parsing library from chapter 8 of Programming in Haskell for new versions of GHCI
View parsing.lhs
Functional parsing library from chapter 8 of Programming in Haskell,
Graham Hutton, Cambridge University Press, 2007.
> module Parsing where
>
>
> import Data.Char
> import Control.Monad
> import qualified Control.Applicative as CA
@myshov
myshov / generatorAccost.js
Created Nov 28, 2015
Javascript generator, simple example
View generatorAccost.js
// Generator can be helpful for linearizing async logic.
// It allows you to "pause" code execution with "yield"
// and run to the next "yield" or end of generator with "next"
function* helloGen() {
// 1: 2:
var str = yield ' bro';
// 3:
console.log(str);
}
View Redis.conf which fix broken messagin in zulip messanger
# Redis configuration file example
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
You can’t perform that action at this time.