The Wayback Machine - http://web.archive.org/web/20220531053842/https://github.com/ptarjan
Skip to content
Avatar

Achievements

Achievements

Block or Report

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.

Report abuse

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

Report abuse

Pinned

  1. A fast, powerful type checker designed for Ruby

    Ruby 3.2k 395

  2. A virtual machine for executing programs written in Hack.

    C++ 17.3k 3k

  3. A central repository for sharing type definitions for Ruby gems

    Ruby 346 105

  4. The online Sorbet playground

    Shell 8 4

  5. node-cache Public

    A simple in-memory cache for nodejs

    JavaScript 1.5k 166

  6. 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.

58 contributions in the last year

Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar Apr May Mon Wed Fri

Contribution activity

May 2022

Created 1 commit in 1 repository

Seeing something unexpected? Take a look at the GitHub profile guide.