{{ message }}

Instantly share code, notes, and snippets.

# Dávid Csákvári dodie

Last active Sep 17, 2019
PHP script to recreate the mg3_catalogsearch_fulltext_scope1 table for Magento 2.
View magento2_recreate_catalogsearch.php
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
 getMessage(); exit(1); } \$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, \$_SERVER);
Created Oct 18, 2017
View gist:52d65b479e75753bc3b9c6c435037887
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
 0x3430116FE481A92f0752FB7760B817e7E7c41492
Created Oct 4, 2017
Rinkeby token
View gist:e63afcf36631cbaed1b10b206f26e816
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
 0x9FFc43Aa32a63b838721b11a2D8d0f6cEE371F3a
Last active Nov 26, 2016
View fun-simple.md

Example where functional style can simplify our lives.

Source: Dr. Venkat Subramaniam - Functional Programming with Java 8 (https://www.youtube.com/watch?v=Ee5t_EGjv0A)

Goal: calculate the double of the first even number greater than 3

`var numbers = [1,2,3,4,5,6,7,8,9,10];`
Last active Nov 10, 2016
View fun-composition.md
Last active Nov 10, 2016
View fun-intro-outline.md

#FP intro

Lambda calculus, Alonzo Church, '30

JS:

• functional: Lisp (1958, John McCarthy, fun) -> Scheme (1970, Guy L. Steele, fun) -> JS
• OO: Smalltalk (1972, Alan Kay, OO) -> Self (1987, David Ungar, OO, prototype) -> JS
• syntax, API: C -> Java -> JS
Created Jan 6, 2015
Xvfb take screenshot