Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Caleb Buxton cpb

🏠
Working from home
Block or report user

Report or block cpb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:d4a36737a8c48872af4c696bfb6fc985
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 Oct 31, 2018
Minitest 6 Todo
View mt6.todo.md
  • Clean Project
View 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 ASCcONq62kcyCuxalBq5uIDPi2SQgr1Zjbqd-DaIVJE4Qwo

To claim this, I am signing this object:

View -
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)
View 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 Aug 29, 2015
replace method with method object
View example.rb
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
View rake routes
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
View gist:7507777
{"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 Nov 5, 2013
docker repo's vagrant up message
View gist:7327769
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.
View Reproduction Steps.bash
$ 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...
You can’t perform that action at this time.