[go: up one dir, main page]

Skip to content
View ptarjan's full-sized avatar

Block or report ptarjan

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. sorbet/sorbet sorbet/sorbet Public

    A fast, powerful type checker designed for Ruby

    Ruby 3.6k 528

  2. facebook/hhvm facebook/hhvm Public

    A virtual machine for executing programs written in Hack.

    C++ 18.2k 3k

  3. sorbet/sorbet.run sorbet/sorbet.run Public

    The online Sorbet playground

    Shell 11 5

  4. node-cache node-cache Public

    A simple in-memory cache for nodejs

    JavaScript 1.6k 214

  5. 0-rate-limiters.md 0-rate-limiters.md
    1
    # Scaling your API with rate limiters
    2
    
                  
    3
    The following are examples of the four types rate limiters discussed in the [accompanying blog post](https://stripe.com/blog/rate-limiters). In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
    4
    
                  
    5
    In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.