Skip to content

Instantly share code, notes, and snippets.

@dten
dten / shopto_psn_discount.js
Last active August 18, 2024 13:24
ShopTo PSN Gift Card price ordering
// Only works when logged out cause otherwise the prices are images
// https://www.shopto.net/en/sony-gift-card/
{
let prices = [...document.querySelectorAll('.itemlist__info:not(:has(.not_available))')]
.map(e => {
let gc = e.querySelector('.itemlist__description')?.innerText.match(/Gift Card (\D)([\d\.]+)/)
let gold = e.querySelector('.memb-badge-container')?.innerText.match(/([\d\.]+)/)
return {
currency: gc?.[1],
card: gc?.[2],
@dten
dten / main.rs
Created November 21, 2015 23:02
Example of simple slow build for slack-rs
extern crate slack;
extern crate rustc_serialize;
use rustc_serialize::json;
use slack::api::*;
struct MyHandler {
count: i64,
}

Keybase proof

I hereby claim:

  • I am dten on github.
  • I am daveid (https://keybase.io/daveid) on keybase.
  • I have a public key whose fingerprint is 6D0F 2E4E 6F64 C08F 86C9 FADB 471F A167 E1AC 7891

To claim this, I am signing this object: