Skip to content

Instantly share code, notes, and snippets.

@charlottetan
charlottetan / are-they-streaming.markdown
Last active October 10, 2016 21:09
Are they streaming?

Are they streaming?

ScreenShot

Using the Twitch API to display the status of various channels.

New things I experimented with:

  • Jade
  • Sass
@charlottetan
charlottetan / hey-is-it-raining-in-seattle.markdown
Last active October 10, 2016 21:15
Hey, is it raining in Seattle?
@charlottetan
charlottetan / hello-wiki.markdown
Last active October 10, 2016 21:18
Hello wiki
@charlottetan
charlottetan / be-inspired.markdown
Last active October 10, 2016 21:18
Be inspired!
@charlottetan
charlottetan / display-picture.markdown
Last active October 16, 2016 05:57
Display Picture
@charlottetan
charlottetan / add-amex-offers.js
Created April 2, 2022 20:34
Add all Amex offers to credit card
const offerButtons = Array.from(document.getElementsByClassName("btn btn-sm btn-fluid offer-cta btn-secondary"))
.filter(btn => btn.title == "Add to Card");
const offerMerchants = Array.from(document.getElementsByClassName("offer-info offer-column margin-b-md-down col-md-5"))
.map((offerInfo) => offerInfo.lastChild.innerHTML);
for (let index = 0; index < offerButtons.length; ++index) {
setTimeout(() => {
console.log(`Clicking offer button for ${offerMerchants[index]}`);
offerButtons[index].click()