Skip to content

Instantly share code, notes, and snippets.

View Jun-Dai's full-sized avatar

Jun-Dai Bates-Kobashigawa Jun-Dai

View GitHub Profile
@Jun-Dai
Jun-Dai / london.md
Last active January 3, 2023 11:47
Things to do in London

Museums

The "main" museums are:

  • British Museum: basically this is all the treasures (art and artefacts) that Britain has stolen from around the world
  • National Gallery: paintings
  • National Portrait Gallery (around the corner): paintings of people, photographs of people (closed for renovations for the rest of the year)
  • Victoria & Albert Gallery: sculpture, architecture, medieval stuff, tapestries, rugs
  • Natural History Museum: the building alone is worth the visit, the exhibits are nice too
  • Tate Modern: London's equivalent of the MOMA
@Jun-Dai
Jun-Dai / include.sh
Last active August 26, 2020 10:14
Random functions handy to have in my .zshrc
source ~/Dropbox\ \(Personal\)/gists/open-note/open-note.sh
xargy () {
tr \\n \\0 | xargs -0 $@
}
jqchars () {
for i in $(jq "$1 | keys" $2 | grep '"' | cut -d '"' -f 2); do
echo "$i: `jq ${1%.}.$i $2 | wc -c | xargs echo`"
done
@Jun-Dai
Jun-Dai / open-note.sh
Last active July 22, 2020 17:16
Zsh script to use vim + Dropbox for random notes.
# USAGE:
# Set NOTE_FOLDER to where you want to store the notes
# Add a line to your .zshrc with the appropriate path:
# source path/to/open-note.sh
# note -> lists all notes
# note -n foo -> creates a new note named 2020-07-10-foo.md, where 2020-07-10 is today's date
# (if there's a note today already with the same name, it will just open it)
# note foo -> if there's a single note with the substring "foo", it will open it
Austria:
- Vienna - ??? grand: https://www.vrbo.com/9106189ha
France:
- Auxois, Burgundy - Yamaha C3: https://www.vrbo.com/1592700a
Italy:
- Florence - Yamaha C3: https://www.vrbo.com/212606
Luxembourgh: ???: https://www.vrbo.com/1489946a
@Jun-Dai
Jun-Dai / README.md
Last active June 4, 2019 17:22
Chicago

Superlatives:

  • Chicago Symphony Orchestra is hands-down the best US orchestra, and easily one of the best in the world

  • Chicago Lyric Opera is second-only to the Met Opera, and is a world-class opera company and theatre

  • Hot dogs: one thing that Chicago does far better than anywhere else. My favourite place (Murphys Red Hots) is gone, but there are lots of other places. Fatso's Last Stand is nice. Chicago hot dogs have a special history. I prefer char dogs, but that's not the default. I don't love Portillos (the default recommendation)

  • Birria: Birrieria Zaragoza is amazing, I've not tried other birrierias and would like to

  • Paletas: Lots of good paletas, most of them have Michoacán in the name. One called El sabor de México. There's one near Birrieria Zaragoza, and a few in Pilsen.

  • Cigar bar: Iwan Ries is the best cigar bar I've ever been to. Private club, but you can pay $10 to get in. Three rooms, bring-your-own-booze, and one room has a big window that

@Jun-Dai
Jun-Dai / principles.md
Created June 6, 2018 10:00
Pensamientos
  • Good solutions to problems come from the ashes of poorer solutions
    • if you don't know previous solutions to the problem, look further
  • be happy to throw your solution away when a better solution becomes clear
@Jun-Dai
Jun-Dai / crowdcube.js
Created March 27, 2018 23:54
Fetching transactions off of CrowdCube and Seedrs
txns = $('<div id="transactions">')
var counter = 0
var output = ""
var asdf = copy
var parse = () => {
txns.find(".cc-table__row").each((i, elem) => {
var investment = $(elem).data("amount-formatted")
var name = $(elem).data("company")
@Jun-Dai
Jun-Dai / README.md
Last active June 4, 2019 17:25
Seattle recommendations

Food

  • Hoang Lan (Vietnamese) on Martin Luther King Way
    • the bun rieu here is amazing (best I've had). Known for their Bun bo hue. All the grilled meats, etc., are good. Pho is okay.
  • Pho Bac (Vietnamese) on Jackson St.
    • my favourite pho, although a bit sweet for some people. Be sure to squeeze limes into the broth.
  • Eltana (Montreal-style bagels) in Capital Hill
  • Slim's Last Chance Chilli Shack (Chilli, beer, more chilli, corn bread) in South Seattle
    • worth travelling to. It's a sort of rundown chilli shack, people have lots of tattoos, sometimes they have live music
  • Drunky's Two Shoe BBQ
@Jun-Dai
Jun-Dai / conversions.md
Last active January 11, 2017 20:36
Energy
Thing Type kCal Watt-hours BTUs
Mainspring 2824-2 in ETA watch mechanical storage 0.00007 0.00008 0.0002
100g of carbon-14 over a day radioactive storage 0.359 0.4167 1.42
100kg of rocks 5 meters above the ground mechanical storage 1.195 1.39 4.74
iPhone 7 Plus battery electrochemical storage 9.533 11.08 37.8
1L of water from 20C to boiling heat work 80 93 317
70 kg person taking the stairs at Covent Garden mechanical work 80.64 93.7 320
2 oz. Snickers Bar fuel 266 309.151 1055
typical daily energy use of a 74kg human work 2500 2906 9914
@Jun-Dai
Jun-Dai / output.log
Created June 1, 2016 16:50
Trying to force TLS v1.2
java -Ddeployment.security.SSLv2Hello=false -Ddeployment.security.SSLv3=false -Ddeployment.security.TLSv1=false -Ddeployment.security.TLSv1.1=false -Ddeployment.security.TLSv1.2=true -Djavax.net.debug=ssl jundai.app.App https://www.google.com/finance
trigger seeding of SecureRandom
done seeding SecureRandom
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_256_GCM_SHA384
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_CBC_SHA256
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_CBC_SHA256
Ignoring unavailable cipher suite: TLS_RSA_WITH_AES_256_CBC_SHA
Ignoring unsupported cipher suite: TLS_DHE_DSS_WITH_AES_128_GCM_SHA256
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
Ignoring unsupported cipher suite: TLS_DHE_RSA_WITH_AES_128_GCM_SHA256