Skip to content

Instantly share code, notes, and snippets.

View drhanlau's full-sized avatar
💭
Working on AI projects

Dr. Lau Cher Han drhanlau

💭
Working on AI projects
View GitHub Profile

🎯【30天涨粉10000人计划—马来西亚纸扎品领域🔥】

👥目标粉丝群体:

  • 马来西亚华人社区(以年轻人为主,更易接受创新)
  • 对传统文化感兴趣的新一代用户

📌整体定位: 『传统纸扎🔥 × 马来西亚本地风俗 🇲🇾 × 清明节热点🍃』 — 打造一个有温度、有故事、有创意的纸扎文化博主IP。

Alright, nasi lemak — an iconic dish with a rich cultural story and huge market potential. Here's exactly how I'd approach growing an Instagram account to 10k followers in just 30 days:

⚡️ Key Principle:

Every piece of content you create should either educate, entertain, inspire, or drive desire. These four aspects will pull people towards your nasi lemak.

Week 1: (Day 1-7) Set Your Foundation

  • Optimize your IG Bio (Day 1):
    • Clear value proposition: "The tastiest nasi lemak in [Your City]" or a fun USP "Making mouths water daily with Malaysia 🇲🇾 best nasi lemak!"
    • Contact information & clear call to action (DM for orders, WhatsApp number, or website).
  • Attractive profile picture (clear, tasty nasi lemak image or eye-catching brand logo).
@drhanlau
drhanlau / demo1.py
Last active February 25, 2025 12:18
# This is to help us to install gradio
# an user interface builder
!pip install gradio
open_ai_key=''
import gradio as gr
gr.load_chat(base_url='https://api.openai.com/v1/', model='gpt-4o-mini',token=open_ai_key).launch(debug=True)
import streamlit as st
import openai
from datetime import datetime
# Set your OpenAI API key
# st.secrets["OPENAI_API_KEY"] should be set in Streamlit's secrets management
client = openai.OpenAI(api_key=st.secrets["OPENAI_API_KEY"])
def get_personality_prediction(birthdate):
@drhanlau
drhanlau / Code.gs
Last active September 6, 2024 12:25
Google Sheet Extension
function getHealthAdvice(height, weight) {
const apiKey = "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"; // Replace with your actual API key
const apiUrl = "https://api.openai.com/v1/chat/completions";
const prompt = `Given a person whose height is ${height} cm, weight is ${weight} kg, calculate their BMI and also give some health advice. Please reply in Simplified Chinese.`;
const payload = {
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": prompt}],
"temperature": 0.7
function getHealthAdvice(height, weight) {
const apiKey = "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"; // Replace with your actual API key
const apiUrl = "https://api.openai.com/v1/chat/completions";
const prompt = `Given a person with a height of ${height} cm and a weight of ${weight} kg, calculate their BMI, and provide a brief health advice focusing on maintaining a healthy weight and lifestyle, based on the BMI. Return results with plain text, no formatting required.`;
const payload = {
"model": "gpt-4o-mini",
"messages": [{"role": "user", "content": prompt}],
"temperature": 0.7
@drhanlau
drhanlau / Code.GS
Created August 14, 2024 13:17
Sentiment
function hello() {
Logger.log(2+3)
}
function getHealthAdvice(height, weight, gender) {
const apiKey="put your api key here"
const apiUrl = "https://api.openai.com/v1/chat/completions";
const prompt = `Given a person of gender ${gender} with a height of ${height} cm and a weight of ${weight} kg, calculate their BMI, and provide a brief health advice focusing on maintaining a healthy weight and lifestyle, based on the BMI. Return results with plain text, no formatting required. Don't show the BMI calculation, just return the health advice only.`;
@drhanlau
drhanlau / Code.gs
Last active August 14, 2024 12:58
function hello() {
Logger.log(2+3)
}
function getHealthAdvice(height, weight) {
const apiKey="PUT YOUR API KEY HERE"
const apiUrl = "https://api.openai.com/v1/chat/completions";
const prompt = `Given a person with a height of ${height} cm and a weight of ${weight} kg, calculate their BMI, and provide a brief health advice focusing on maintaining a healthy weight and lifestyle, based on the BMI. Return results with plain text, no formatting required.`;
{
"burgers": [
{
"name": "Crispy Chicken",
"image":"crispy-chicken.jpg",
"description": "Chicken breast, chilli sauce, tomatoes, pickles, coleslaw",
"price": 11.99
},
{
"name": "Ultimate Bacon",
@drhanlau
drhanlau / hello.py
Last active March 13, 2022 01:31
12th March Private Data Science Lab
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"