Skip to content

Instantly share code, notes, and snippets.

@edenprairie
edenprairie / londonitaly.md
Created April 8, 2023 21:35
2023 London Italy trip

Sure, here's a detailed itinerary for your first day in London, 4/29:

7:15 am: Arrival at LHR airport.

9:00 am - 10:30 am: After customs and immigration procedures, take the Heathrow Express train to Paddington Station. From Paddington Station, take the Bakerloo line to Regent’s Park station, which is the nearest station to Queen's Rose Garden.

10:30 am - 12:30 pm: Visit Queen's Rose Garden, which is located in Regent's Park. The garden has over 12,000 roses of 85 varieties. You can enjoy the beautiful flowers, take pictures and relax in the peaceful environment.

12:30 pm - 1:30 pm: Have lunch around Regent’s Park or head to nearby Camden Market for a wide variety of food options.

import java.util.NoSuchElementException;
import java.util.Stack;
public class QueueWithTwoStack {
private Stack<Integer> enqueueStack;
private Stack<Integer> dequeueStack;
public QueueWithTwoStack() {
#install pdftk
#export LC_CTYPE=C # if you encounter "sed: RE error: illegal byte sequence"
pdftk original.pdf output uncompressed.pdf uncompress
sed -e "s/Download from Wow! eBook \<www.wowebook.com\>/ /g" < uncompressed.pdf > temp.pdf
pdftk temp.pdf output fixed.pdf compress
rm temp.pdf
@edenprairie
edenprairie / columbiafaq.md
Last active April 10, 2021 18:03
Columbia University FAQ

哥大家长群FAQ

建议新生在学校规定的日期报到, 入住宿舍, 最好不要早一天或晚一天, 家长可送也可不送, 因为学校把一切都安排得井井有条:

第一章: 入住宿舍 跟街口的交通安全警察说你是新生, 出租车或自家车可直接开到宿舍门口. 其他车辆不准通行. (新生下车安全, 帮你搬运行李的同学也安全) 新生在自己宿舍门口排队登记, 领门卡. 接新生的同学和学校雇的搬家公司会帮你把行李从出租车搬到搬运车上, 推上台阶, 电梯, 并一直送到宿舍里面. (我有关节炎, 加五十肩庝, 也真抬不动) 每层楼里都有一个高年级生, 负责接待, 回答问题, 他还有一箱工具, 帮我们把床板升高, 挪动床和书桌的位置. 家长在家长登记处登记, 领名卡挂在脖子. 若没有事先预登记, 当场登记也可. 尖顶白帐篷里在饭点儿有早餐, 午餐 和晚餐, 及饮料. (像大多数大型集会一样, 主要是Figure Foods, 干净, 清爽, 吃完手是干净的, 嘴唇无油, 不塞牙, 不会有油汤滴到衣服上. 在蓝天白云, 绿草地上和新生们一起享受新生活的开始, 真是无比轻松, 惬意和快乐!) (人数很多, 但见不到一片垃圾, 不要忘记把废饮料瓶投入回收筒)

@edenprairie
edenprairie / hawaii.md
Last active March 7, 2021 18:06
Trip tips to Hawaii

Oahu

  1. Diamond Head – go early in the morning to avoid crowds and hike to the top before the sun gets too hot. $1 if you “walk in” and $5 if you drive a car to park inside diamond head. Parking lot is small so the earlier you get there the better.

  2. After hiking diamond head there is a nice, little café close by called Bogart’s. The acai bowls are delicious here. Cash only. They have all kinds of delicious food but the best acai bowls in Waikiki!

  3. Kapiolani Park – on the wkends are there always seems to be something going on. “art in the park” every weekend, vendors, etc.

  4. Marukame Udon – very popular on a side street a couple of blocks from Waikiki beach. The lines get long, but worth the wait.

@edenprairie
edenprairie / legalbot.js
Created February 14, 2021 03:11
NLP research project
"use strict";
const express = require("express");
const bodyParser = require("body-parser");
const restService = express();
restService.use(
bodyParser.urlencoded({
extended: true
@edenprairie
edenprairie / git.plugin.zsh
Created February 2, 2021 21:23 — forked from DavidToca/git.plugin.zsh
oh-my-zsh git alias
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
compdef _git gst=git-status
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'
@edenprairie
edenprairie / iterm2-solarized.md
Created January 10, 2021 22:11 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@edenprairie
edenprairie / vaccine.md
Last active January 9, 2021 21:51
美国辉瑞和message RNA的疫苗

今天听了一个新冠病毒疫苗的讲座,跟大家分享:

  • 美国辉瑞和message RNA的疫苗效果都非常好。试验人群3-4万人,有足够统计学意义。
  • MessagerRNA的保护性最好,对于自身免疫力低下的人,应该是首选.
  • 得过新冠的人,还是应该打。临床研究,通过得病产生的抗体数量远低于通过疫苗产生的。疫苗打后,大概12-14天产生抗体,大约28天到高峰。如果在打疫苗后12天内接触病毒,仍然可能得病。
  • 临床观察,疫苗产生的抗体在3个月后,还保持浓度。所以有效期比较长。有报道,得病后产生的抗体,6个月后体内还有。是否以后需要每年打,现在还不知道。
    对于有免疫缺陷的人,比如心脏病,糖尿病,一定要打。对于免疫过度反应的病人,比如类风湿性关节炎,需要和医生沟通。癌症病人,如果正在治疗,如果在上TP1,TP2,需要和医生沟通。癌症病人这部分我没有完全记录下来。
  • 器官移植者,一定要打。
  • 孕妇,没有做实验。
  • 过敏体质的人,打疫苗后反应大的机率高。
  • 现在FDA批准疫苗用于大人。12-16岁临床实验数据量还不够。如果想给这年龄段的孩子打,需要跟儿医沟通,看能不能上trial。