Skip to content

Instantly share code, notes, and snippets.

View benjuang's full-sized avatar

Benjamin Juang benjuang

View GitHub Profile
import Controller from '@ember/controller';
import { action, computed } from '@ember/object';
import { tracked } from '@glimmer/tracking';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
@tracked x = 0;
@tracked y = 0;
@tracked z = 0;
@benjuang
benjuang / Rampart-Tampermonkey.js
Last active June 11, 2020 20:42
Quick hacks to make my Rampart experience better
// ==UserScript==
// @name Warbook
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match https://www.playrampart.com/
// @grant GM_addStyle
// ==/UserScript==
@benjuang
benjuang / Foodspotting.md
Last active May 28, 2018 21:22
Foodspotting json to curl

Note Alternative here for the less technically inclined: https://codepen.io/benjuang/full/mKbGaV. It does not download files with nicer filenames, but you'll have a copy of all of your images.

What this does

This converts each json object from something like:

  {
    "title": "Seafood Mos Burger",
    "caption": "Wheee rice bun. Why don't they have this in the US?",
 "restaurantName": "Mos Burger",
04e0c66d80d5a45f72116587f04a9fc78fbe5ec0f8a78e399b76d293456094c071b8985458f4a533bb57e8bdab7ec3f590a517b7f410e99f180403c079d8ba7b00;bportnoy

Keybase proof

I hereby claim:

  • I am benjuang on github.
  • I am bjuang (https://keybase.io/bjuang) on keybase.
  • I have a public key whose fingerprint is F0CA D947 0D70 4582 4D31 1914 A5CB BB65 7B2D 240F

To claim this, I am signing this object: