Skip to content

Instantly share code, notes, and snippets.

View Zhomart's full-sized avatar
Working from home

Zhomart Mukhamejanov Zhomart

Working from home
View GitHub Profile
Zhomart / filebeat-index-template.json
Last active February 20, 2018 14:07 — forked from thisismitch/filebeat-index-template.json
Fix for elastic 6.0. Run: `curl -XPUT 'http://localhost:9200/_template/filebeat?pretty' -d@filebeat-index-template.json -H "Content-Type: application/json"`
View filebeat-index-template.json
"mappings": {
"_default_": {
"dynamic_templates": [
"template1": {
"mapping": {
"doc_values": true,
"ignore_above": 1024,
"index": "not_analyzed",
Zhomart /
Last active September 9, 2015 07:32 — forked from staltz/
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

Zhomart / capybara cheat sheet
Last active August 29, 2015 14:27 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
View capybara cheat sheet
=Clicking links and buttons=
click_link('Link Text')
click('Link Text') # Click either a link or a button
click('Button Value')
View gist:3135627
def create
raise "I'm here"
// resource is your user
@facebookdata =
@facebookdata.likes = "likes"