Skip to content

Instantly share code, notes, and snippets.

View sergibondarenko's full-sized avatar
🎯
Adapting to the prevailing level of light to be able to see clearly

Sergii Bondarenko sergibondarenko

🎯
Adapting to the prevailing level of light to be able to see clearly
View GitHub Profile
@domenic
domenic / promises.md
Last active June 24, 2024 03:11
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@staltz
staltz / introrx.md
Last active July 25, 2024 16:52
The introduction to Reactive Programming you've been missing
@szydan
szydan / gist:82c86998d83d31e7ea32aec3fb212fdf
Last active November 15, 2023 22:43
A note about rebase
git checkout master
git pull
git checkout issue-106
git rebase master
# here in case of any conflict fix it
# do git add path/to/fixed/file
git rebase —continue
git push -f origin issue-106
@sergibondarenko
sergibondarenko / es-reindex.conf
Created July 13, 2016 14:44
Reindex data via Logstash
input {
elasticsearch {
hosts => ["es0.dev.ukcris"]
index => "carenotes_etl"
}
}
output {
stdout {
codec => rubydebug
}
git checkout master
git pull
git checkout branch-4.6.3
git pull
git checkout -b issue-924-back
git cherry-pick HERE SHA1 of all commits in correct order
git push origin issue-924-back