Skip to content

Instantly share code, notes, and snippets.

View zag's full-sized avatar
🏠
Working from home

Alexandr Zahatski zag

🏠
Working from home
View GitHub Profile
@zag
zag / Opinion.md
Created March 25, 2016 12:48 — forked from ALF-er/Opinion.md
ReactJS Conf 2016

Disclaimer 1: Первую которая "про то чего мы достигли" я таки пропустил.

Disclaimer 2: Многие доклады смотрелись и отчёты писались в состоянии алкогольного опьянения.

Сейчас посмотрел Ben Alpert - What Lies Ahead она про то какие идеи они имеют о дальнейшем развитии. И они делят на UX-идеи и DX-идеи. В UX у них:

@zag
zag / xvfb-cutycapt.pl
Created April 14, 2017 07:37 — forked from jnbek/xvfb-cutycapt.pl
My Perl Wrapper for Xvfb and CutyCapt
#!/usr/bin/perl -w
use strict;
use warnings;
use Getopt::Long;
use vars qw($url $out);
my $HOME = $ENV{'HOME'};
my $opt = GetOptions("url=s" => \$url,
"out=s" => \$out,
);
print "Preparing to thumbnail $url to $out\n";
@zag
zag / filterArraysRamda.md
Created August 3, 2018 08:13 — forked from cezarneaga/filterArraysRamda.md
Filter array of objects by nested values using ramda: Sometimes you dont have access to backend and you want to filter the response from an endpoint based on certain criteria. While trivial on flat arrays, this gets a bit tricky if the property you want to query is deeply nested. This is where Ramda shines.

Say we have a prop.users of the shape:

const users = [
    {username: 'bob', age: 30, tags: [{name: 'work', id: 1}, {name: 'boring', id: 2}]},
    {username: 'jim', age: 25, tags: [{name: 'home', id: 3}, {name: 'fun', id: 4}]},
    {username: 'jane', age: 30, tags: [{name: 'vacation', id: 5}, {name: 'fun', id: 4}]}
];