Skip to content

Instantly share code, notes, and snippets.

View trevorwhitney's full-sized avatar

Trevor Whitney trevorwhitney

View GitHub Profile
@sergeyk
sergeyk / claude_code_prompts_and_tools.yaml
Last active September 9, 2026 03:50
Claude Code System Prompt and Tool Descriptions
model: claude-opus-4-20250514
messages:
- role: user
content:
- type: text
text: |
<system-reminder>
As you answer the user's questions, you can use the following context:
# important-instruction-reminders
Do what has been asked; nothing more, nothing less.
@johannaratliff
johannaratliff / learning-golang.md
Last active April 14, 2025 14:57
Golang Rampup

Context

This is for programmers who want to ramp on Go, without resources that reiterate programming fundamentals. This would not be a good list of resources for folks who are learning to program using Go as their first language. Some resources that I dismiss here would be super valuable for newer folks. This is a selection of resources for those who understand programming fundamentals in a different language already.

Advice

  1. First steps = Tour of Go
  2. Don't waste time on Go Fundamentals-type books - it all lives in tour of Go.
  3. Consider joining the Gophers Slack
  4. When you need help, the Go Playground allows you make a quick scratch file and share it. Others trying to help can run your code easily this way.
@sebmarkbage
sebmarkbage / Enhance.js
Last active October 5, 2026 02:37
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
@searls
searls / rockymtnrb.md
Created September 2, 2011 23:08
Rocky Mountain Ruby Jasmine Link Bibliography

Where am I?

Here lie all the links and resources that Cory and I either created or referenced during our presentation and testing panel today:

If you saw our talk, please submit feedback on SpeakerRate. This will be invaluable if we ever get the opportunity to present something like it to another audience.

##Stuff we created that we either showed or talked about:

@peterhost
peterhost / node_debian_init.sh
Created November 25, 2010 11:41
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
#!/bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28