Skip to content

Instantly share code, notes, and snippets.

View chiihuang's full-sized avatar

Chi-I Huang chiihuang

  • MongoDB
  • Greater Seattle Area, WA
View GitHub Profile
@brndnblck
brndnblck / workshop.md
Created October 28, 2015 03:57
Getting Ready for the Twitter Ads API Workshop (Ruby)

Are you setup and ready?

To get the most out of the Twitter Ads API workshop, make sure you come with your laptop ready to go. This workshop relies on your participation and there are just a few things you need to have ready ahead of time to make sure your development environment is setup and ready to go.

1. Install Ruby

For OS X and Unix users:

OS X and most unix-based platforms come ready to go with what you'll need to participate in this workshop. Just make sure you've got Ruby 2.0.0 or higher by running ruby -v from your terminal.

@brndnblck
brndnblck / workshop.rb
Last active May 19, 2024 20:19
Twitter Ads API Getting Started (Ruby)
# enable "sandbox" mode
CLIENT.options[:sandbox] = true
# load your sandbox account object
account = CLIENT.accounts.first
# create your campaign
campaign = TwitterAds::Campaign.new(account)
campaign.funding_instrument_id = account.funding_instruments.first.id
campaign.daily_budget_amount_local_micro = 1_000_000
@vasanthk
vasanthk / System Design.md
Last active July 16, 2025 13:45
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?