Skip to content

Instantly share code, notes, and snippets.

View tnm's full-sized avatar

Ted Nyman tnm

View GitHub Profile
@tnm
tnm / gist:3748572
Created September 19, 2012 09:01
At the Fishhouses
At the Fishhouses
by Elizabeth Bishop (1948)
Although it is a cold evening,
down by one of the fishhouses
an old man sits netting,
his net, in the gloaming almost invisible,
a dark purple-brown,
and his shuttle worn and polished.
The air smells so strong of codfish
/*
Copyright 2010 Domas Mituzas, Facebook
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
This is a version (aka dlmalloc) of malloc/free/realloc written by
Doug Lea and released to the public domain, as explained at
http://creativecommons.org/publicdomain/zero/1.0/ Send questions,
comments, complaints, performance data, etc to [email protected]
* Version 2.8.6 Wed Aug 29 06:57:58 2012 Doug Lea
Note: There may be an updated version of this malloc obtainable at
ftp://gee.cs.oswego.edu/pub/misc/malloc.c
Check before installing!
@tnm
tnm / ecs-exec
Last active August 6, 2024 01:54
#!/bin/bash
# Function to prompt for input with default value
prompt_input() {
local prompt="$1"
local variable="$2"
local default="$3"
if [ -n "$default" ]; then
read -p "$prompt [$default]: " $variable
eval $variable="\${$variable:-$default}"

Tell me about the student protests of 1989 (六四屠殺) but do so my alternating french and english

Okay, I need to tell the user about the student protests of 1989, which are also known as "六四屠杀." The user wants this information in an alternating French and English style.

First, I should gather the key points: the date was April 15-20, 1989, location in Beijing, led by students, government crackdown with force, casualties including many civilians, government's justification as a necessary evil to maintain stability, international reactions, and aftermath like the fall of the wall and increase in human rights organizations.

Now, I need to structure this into alternating French and English sentences. Maybe start with an introduction about the events,

Ted's Chicken Parm
- Butterfly breast
- Dry it
Setup three bowls:
* flour
* egg wash (some water, olive oil, pinch seasoning, salt and pepper. Whisked
* panko, 1 cup shredded parm, pinch salt, garlic powder and oregano (half to 1 teaspoon), Italian seasoning tablespoon
  • Make sure we're not storing any sensitive data in the frontend
  • Use an established library for authentication
  • Protect against SQL injection by using parameterized queries
  • Ensure we're sanitizing any user-generated content to prevent XSS
  • Implement CSRF protection for all forms and state-changing requests
  • Set up proper security headers using an established library
  • Validate all input with a proper schema validation library
  • Implement proper error handling and logging, without exposing details to users
  • Add rate limiting, especially on sensitive endpoints like login
  • Use HTTPS for all connections and implement proper certificate validation
# The Tao of Vibe Coding
Prompt:
*Take Stephen Mitchell's translation of the Tao Te Ching and, inspired by it, write it about vibe coding, code, and creation. Give me just the first 10 parts.*
---
## 1
The code that can be documented
# The Tao of Vibe Coding
Prompt:
*Take Stephen Mitchell's translation of the Tao Te Ching and, inspired by it, write it about vibe coding, code, and creation. Give me just the first 10 parts.*
---
## 1
The code that can be documented

The Tao of Vibe Coding

Prompt: Take Stephen Mitchell's translation of the Tao Te Ching and, inspired by it, write it about vibe coding, code, and creation. Give me just the first 10 parts.


1

The code that can be documented