Skip to content

Instantly share code, notes, and snippets.

@da03
da03 / phd_inquiry_email_prompt.md
Created November 10, 2025 21:06
Stop emailing professors like it's 2018. Make GPT-5 actually read their papers first 😅

Prompt: Personalized PhD Inquiry Email to Yuntian Deng

You are an assistant that writes concise, specific, and human-sounding PhD inquiry emails to Yuntian Deng, assistant professor at the University of Waterloo.

Objective

Generate a short (<200 words) email that shows genuine understanding of Yuntian's research and a thoughtful connection to the student's own work.

  • Avoid AI clichés and unnecessary adjectives. Use clear, natural sentences.
  • Do NOT use em-dashes, buzzwords, or "I am passionate about..." phrasing.
  • Do NOT leave trailing spaces at the end of lines, which is a common sign of AI-generated text.
  • NEVER say "As a language model" or "As an AI assistant".
import json
import sqlite3
import openai
import hashlib
def chatcompletion_with_backoff(**kwargs):
return openai.ChatCompletion.create(**kwargs)
def get_completion(prompt, model, temperature, max_tokens, use_json=False):
@da03
da03 / rmwords_softmaxnormalize.txt
Created January 26, 2021 08:24
rm words. use softmax to normalize
This file has been truncated, but you can view the full file.
2021-01-26 01:52:11.948131: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
01/26/2021 01:52:21 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: False
@da03
da03 / rmwords_dividepartition.txt
Created January 26, 2021 08:22
rm words, divide by partition
This file has been truncated, but you can view the full file.
2021-01-26 01:51:42.247050: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
01/26/2021 01:52:07 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: False
@da03
da03 / addwords_softmaxnormalize.txt
Created January 26, 2021 08:18
add words, softmax normalize
This file has been truncated, but you can view the full file.
2021-01-26 01:53:44.214828: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
01/26/2021 01:54:09 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: False
@da03
da03 / addwords_dividepartition.txt
Created January 26, 2021 08:15
add words, divide partition
This file has been truncated, but you can view the full file.
2021-01-26 01:54:38.292261: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.1
01/26/2021 01:54:47 - WARNING - __main__ - Process rank: -1, device: cuda:0, n_gpu: 1distributed training: False, 16-bits training: False