Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active July 27, 2024 04:59
The introduction to Reactive Programming you've been missing
@citrusui
citrusui / fancybutton.md
Last active June 13, 2023 17:58
How to add a fancy Direct Message button to your Tweets https://twitter.com/citrusui/status/719279185123012609

How to add a fancy Direct Message button to your Tweets

Step 1: Go to tweeterid.com and enter your username.

Step 2: Copy your user ID from the previous website.

Step 3: Copy the following URL:

@kharandziuk
kharandziuk / article.md
Last active March 2, 2021 03:41
Node.js Streams and Reactive Programming Primer

This article shows how to apply Node.js Stream and a bit of Reactive programming to a real(tm) problem. The article is intended to be highly practical and oriented for an intermediate reader. I intentionally omit some basic explanations. If you miss something try to check the API documentation or its retelling(e.g.: this one)

So, lets start from the problem description. We need to implement a simple web scraper which grabs all the data from some REST API, process the data somehow and inserts into our Database. For simplicity, I omit the details about the actual database and REST API(in real life it was the API of some travel fare aggregator website and a Pg database)

Consider we have two functions(code of the IO simulator functions and the other article code is here):

getAPI(n, count) // pseudo API ca
@solancer
solancer / breakpoints.css
Created September 13, 2017 07:46
CSS Grid Breakpoints
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
@smiley
smiley / README.md
Last active July 19, 2024 23:33
How to make an automatic "stream's live" notification for your Discord server

Making an automatic Twitch -> Discord notification (using IFTTT)

So you went live and you want everyone to know. Here's how you do it:

Part 1 - Register on IFTTT

Go to https://ifttt.com/ and create an account (if you don't already have one)

Part 2 - Make a Discord Webhook

  • Find the Discord channel in which you would like to send Tweets.
  • In the settings for that channel, find the Webhooks option and create a new webhook. Note: This URL should be kept private. It allows anyone to write messages to that specific channel using that specific URL. Keep it safe!
@tacyarg
tacyarg / fundingrateio_faq.md
Last active October 6, 2019 13:13
Fundringrate.io FAQ talking points.

Fundingrate.io FAQ

  • Below are a few of the commonly asked questions by our customers.

Account & Registration

How do I create a new account?

  • To create a Fundingrate.io account you simply click the "authenticate" link on the lefthand side of the site.
  • Once there, follow the prompts to either login or register a username.

What happens if a lose my token?

@tacyarg
tacyarg / provider_FAQ.md
Last active December 13, 2019 16:33
Provider documentation for fundingrate.io

What is a provider?

A provider allows you to connect your tradingview indicators to the FundingRate marketplace. Fundingrate will generate a way to use those events to automate trades, as well as track historical data, profitability metrics with mock or actual trades.

Why do you need one?

To be able to do anything on fundingrate you need a provider. They provide you an api token, this token can be used to submit api actions or tradingview webhook events.

How do I create a provider?