Community
Cheatsheets
- GenServer Cheatsheet by Benjamin Tan Wei Hao
Books
<TEMPLATE> | |
<INSTRUCTIONS> | |
Use the <CODEBASE> code as reference, and convert the high-level <TASK> into a set of very detailed step-by-step instructions that an AI coding agent can complete. | |
Only includes steps an AI coding agent can take. Do not include testing or any other work a human would do to confirm the task has been completed. | |
ALWAYS have the agent run a build when it is complete. Be specific and decisive about what the agent should do. | |
Do not include any additional meta instructions to the user. Use markdown formatting. | |
</INSTRUCTIONS> | |
<TASK> |
# .cursorrules | |
Components & Naming | |
- Use functional components with `"use client"` if needed. | |
- Name in PascalCase under `src/components/`. | |
- Keep them small, typed with interfaces. | |
- Use Tailwind for common UI components like textarea, button, etc. Never use radix or shadcn. | |
Prisma |
Community
Cheatsheets
Books
#!/usr/bin/env python | |
'''Using Webhook and self-signed certificate''' | |
# This file is an annotated example of a webhook based bot for | |
# telegram. It does not do anything useful, other than provide a quick | |
# template for whipping up a testbot. Basically, fill in the CONFIG | |
# section and run it. | |
# Dependencies (use pip to install them): | |
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot |
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'handlers': { | |
'mail_admins': { | |
'level': 'ERROR', | |
'class': 'django.utils.log.AdminEmailHandler' | |
}, | |
'null': { | |
'level':'DEBUG', |