Skip to content

Instantly share code, notes, and snippets.

View cpb's full-sized avatar
🏠
Working from home

Caleb Buxton cpb

🏠
Working from home
View GitHub Profile
compiling ../../../../ext/sdl/sge/sge_bm_text.cpp
../../../../ext/sdl/sge/sge_bm_text.cpp:54:3: error: use of undeclared identifier 'SDL_assert'
SDL_assert(0 && "sge_BF_CreateFont");
^
../../../../ext/sdl/sge/sge_bm_text.cpp:68:4: error: use of undeclared identifier 'SDL_SetPaletteColors'
SDL_SetPaletteColors(tmp->format->palette, c, 0, 2);
^
../../../../ext/sdl/sge/sge_bm_text.cpp:387:3: error: use of undeclared identifier 'SDL_SetPaletteColors'
SDL_SetPaletteColors(font->FontSurface->format->palette, c, 0, 2);
@cpb
cpb / mt6.todo.md
Last active October 31, 2018 14:49
Minitest 6 Todo
  • Clean Project
    • Split Files
      • minitest/reporter
      • list other files to split out
    • Cleaner Call Stack
    • Dream Stack
      • Runnables#shuffle
      • remove #runnable_methods
    • No Cruft
  • end support for maglev idiosyncracies

Keybase proof

I hereby claim:

  • I am cpb on github.
  • I am cpb (https://keybase.io/cpb) on keybase.
  • I have a public key ASCcONq62kcyCuxalBq5uIDPi2SQgr1Zjbqd-DaIVJE4Qwo

To claim this, I am signing this object:

@cpb
cpb / -
Created October 8, 2014 18:39
rbenv install jruby-9000-dev 2 ↵
Downloading jruby-dist-9000.dev-bin.tar.gz...
-> http://ci.jruby.org/snapshots/master/jruby-dist-9000.dev-bin.tar.gz
error: failed to download jruby-9000.dev-SNAPSHOT.tar.gz
BUILD FAILED (OS X 10.9.5 using ruby-build 20140926)
@cpb
cpb / keybase.md
Created September 24, 2014 20:41
keybase.md

Keybase proof

I hereby claim:

  • I am cpb on github.
  • I am cpb (https://keybase.io/cpb) on keybase.
  • I have a public key whose fingerprint is 9BDE 4F05 5492 5FAB CC90 A66D 6AEA 78DE FAAE D9FD

To claim this, I am signing this object:

@cpb
cpb / example.rb
Last active August 29, 2015 13:56
replace method with method object
class UserAdder < Struct.new(:user_params, :company_id, :role)
extend FriendlyMethodObject
def initialize(*)
super
# Provide defaults for optional members
self.role ||= :default_role
end
def call
Prefix Verb URI Pattern Controller#Action
stimulus POST /stimulus(.:format) stimulus#create
new_stimulus GET /stimulus/new(.:format) stimulus#new
edit_stimulus GET /stimulus/edit(.:format) stimulus#edit
GET /stimulus(.:format) stimulus#show
PATCH /stimulus(.:format) stimulus#update
PUT /stimulus(.:format) stimulus#update
DELETE /stimulus(.:format) stimulus#destroy
@cpb
cpb / gist:7507777
Last active December 28, 2015 13:29
{"stimuli":
[
{"id":10,
"filepicker_url":"https://www.filepicker.io/api/file/lA7or5NjRC6fO8cIqoU5",
"created_at":"2013-11-16T23:27:17.907Z",
"suggestions":
[
{"id":9,"up":1,"down":-1}
]
},
@cpb
cpb / gist:7327769
Created November 5, 2013 22:50
docker repo's vagrant up message
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
3.8.0-32-generic
/boot/vmlinuz-3.8.0-32-generic
Error!
Bad return status for module build on kernel: 3.8.0-32-generic (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.1.12/build/make.log for more information.
$ vagrant up --provider=virtualbox 1 ↵
Bringing machine 'default' up with 'virtualbox' provider...
[default] Clearing any previously set forwarded ports...
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 3001 (adapter 1)
[default] Booting VM...