Skip to content

Instantly share code, notes, and snippets.

View jaybill's full-sized avatar

Jaybill McCarthy jaybill

View GitHub Profile
@jaybill
jaybill / Car.gd
Created January 12, 2026 18:31
Car code from Godot Mario Kart tutorial by Ragdev
# This is the code from this video: https://www.youtube.com/watch?v=tksVdsr02yQ
extends Node3D
@onready var Ball = $Ball
@onready var Car = $Car
@onready var RightWheel = $"Car/Model/wheel-front-right"
@onready var LeftWheel = $"Car/Model/wheel-front-left"
@onready var CarBody = $Car/Model/body
@onready var DriftTimer = $DriftTimer
pacman -Sy \
mingw32/mingw-w64-i686-SDL2 \
mingw32/mingw-w64-i686-SDL2_gfx \
mingw32/mingw-w64-i686-SDL2_image \
mingw32/mingw-w64-i686-SDL2_mixer \
mingw32/mingw-w64-i686-SDL2_net \
mingw32/mingw-w64-i686-SDL2_ttf \
mingw32/mingw-w64-i686-smpeg2 \
mingw64/mingw-w64-x86_64-SDL2 \
mingw64/mingw-w64-x86_64-SDL2_gfx \
#git
alias _gc="git commit -a -m"
alias _gf="git pull"
alias _gp="git push"
alias _gpt="git push --tags"
alias _gs="git status"
alias _ga="git add"
@jaybill
jaybill / gist:10760010
Created April 15, 2014 19:02
Whole-ish Wheat Bread
2 cups AP flour
1 cup Whole Wheat flour
2 teaspoons salt
2 teaspoons yeast
1 1/8 cup water
@jaybill
jaybill / gist:10752073
Created April 15, 2014 17:47
White Bread
3 cups flour
2 teaspoons salt
2 teaspoons yeast
1 1/8 cup water
@jaybill
jaybill / .bash_aliases
Created March 25, 2014 18:18
Git style ignoring for Subversion
# Use '_ss' instead of 'svn status' in the directory where your repo is
# version a file in the root of your repo called '.svnignore' that
# has one ignore pattern per line
alias _ss="svn status | egrep -v '`cat .svnignore|perl -p -e 's/\n/|/'`'"
# Other useful svn aliases
alias _sa="svn add"
alias _su="svn up"
alias _sc="svn ci --message
@jaybill
jaybill / Oat Bread
Last active August 29, 2015 13:57
Bread Recipes
1 cup Whole Wheat Bread Flour
2 cup AP Flour
3/4 cup Steel Cut Oats
2 1/4 cup water
1/4 tsp instant yeast
1 1/4 tsp salt
http://www.breadtopia.com/basic-no-knead-method/
var f = "mailto:foo@bar";
if (f.substring(0,"mailto".length) == "mailto")
{
var email = f.substring( "mailto".length + 1, f.length);
console.log(email)
};
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder
@jaybill
jaybill / copytree.go
Created June 5, 2012 17:46
How to copy a directory tree (preserving permissions) in Go.
package main
import "fmt"
import "os"
import "io"
import "io/ioutil"
import "log"
// Copies file source to destination dest.
func CopyFile(source string, dest string) (err error) {