Skip to content

Instantly share code, notes, and snippets.

Avatar

Caleb Doxsey calebdoxsey

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am calebdoxsey on github.
  • I am calebdoxsey (https://keybase.io/calebdoxsey) on keybase.
  • I have a public key ASBiF4R3c8-r0ucAgs5A_5AeXDS4-h9yh0ju7AOC3ux6dwo

To claim this, I am signing this object:

@calebdoxsey
calebdoxsey / example.py
Last active Jan 22, 2020
cmu image example
View example.py
### Welcome to the sandbox!
# If you're looking for a way to get started, click on the hamburger menu
# next to the word "Sandbox" above and choose "Open"
left = 0
top = 0
img1 = Image("http://www.scil-ilc.org/wp-content/uploads/2014/12/starfield-background.png", left, top)
img2 = Image("http://www.scil-ilc.org/wp-content/uploads/2014/12/starfield-background.png", left, top+400)
def onStep():
View channel_test.py
package main
import "testing"
func BenchmarkOneByteChannel(b *testing.B) {
ch := make(chan [1]byte)
go func() {
for {
<-ch
}
View profile.sh
# Regular
txtblk="$(tput setaf 0 2>/dev/null || echo '\e[0;30m')" # Black
txtred="$(tput setaf 1 2>/dev/null || echo '\e[0;31m')" # Red
txtgrn="$(tput setaf 2 2>/dev/null || echo '\e[0;32m')" # Green
txtylw="$(tput setaf 3 2>/dev/null || echo '\e[0;33m')" # Yellow
txtblu="$(tput setaf 4 2>/dev/null || echo '\e[0;34m')" # Blue
txtpur="$(tput setaf 5 2>/dev/null || echo '\e[0;35m')" # Purple
txtcyn="$(tput setaf 6 2>/dev/null || echo '\e[0;36m')" # Cyan
txtwht="$(tput setaf 7 2>/dev/null || echo '\e[0;37m')" # White
@calebdoxsey
calebdoxsey / links.py
Created Feb 7, 2015
badgerodon-stack-example
View links.py
View build.sh
#!/bin/bash
VERSION=1.4
WD=$(pwd)
mkdir -p $WD/downloads
echo "Downloading"
cd $WD/downloads
FILES="go${VERSION}.src.tar.gz
go${VERSION}.windows-386.zip
@calebdoxsey
calebdoxsey / example.go
Last active Oct 27, 2019
WebRTC Example
View example.go
package main
import (
"code.google.com/p/go.net/websocket"
"net/http"
"log"
)
// all code is in an init function to avoid any name collisions
View download_files.go
package main
import (
"fmt"
"github.com/mitchellh/goamz/aws"
"github.com/mitchellh/goamz/s3"
"io"
"log"
"os"
"strings"
@calebdoxsey
calebdoxsey / ignore.js
Created Aug 26, 2013
Ignore button for ricochet
View ignore.js
// ==UserScript==
// @name Ricochet Ignore Button
// @namespace http://www.doxsey.net
// @version 1.0
// @description ignore users
// @match http://ricochet.com/*
// @copyright 2013, Caleb Dioxsey
// ==/UserScript==
$(function() {
You can’t perform that action at this time.