Skip to content

Instantly share code, notes, and snippets.

View CodeOfficer's full-sized avatar

Russell Jones CodeOfficer

View GitHub Profile
@CodeOfficer
CodeOfficer / gist:2411024
Created April 18, 2012 03:58
Fresh System Software
Xcode
Oh My ZSH
RVM
Janus
Homebrew
MacVim
KeyRemap4MacBook
@CodeOfficer
CodeOfficer / John's parts list.txt
Created April 14, 2012 19:33
Custom Parts List for Gaming Machine
Computer Hardware
KVM Switcher
4-port DualView Mini DisplayPort KVMP Switch with Peripheral Sharing
http://www.iogear.com/press/presskit/ces2012/GCS1924/GCS1924_Datasheet.pdf
DP to MDP Cable
Mini Displayport Female to Displayport Male Adapter Cable
http://estore.circuitassembly.com/products/Mini-Displayport-Female-to-Displayport-Male-Adapter-Cable.html
http://www.displayport.org/faq/
@CodeOfficer
CodeOfficer / ember-links.txt
Created March 29, 2012 00:15
Ember.js links
@CodeOfficer
CodeOfficer / gist:2205474
Created March 26, 2012 14:28 — forked from jeffkreeftmeijer/gist:1473018
PGError: ERROR: syntax error at or near "IDENTITY" (ActiveRecord::StatementInvalid)
Loading ["spec"]
*****************************************************************
DEPRECATION WARNING: you are using a deprecated constant that will
be removed from a future version of RSpec.
/Users/codeofficer/.rvm/gems/ruby-1.9.3-p125@worldbrain/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
* Rspec is deprecated.
* RSpec is the new top-level module in RSpec-2
*****************************************************************
@CodeOfficer
CodeOfficer / dom.html
Created March 5, 2012 22:28
simple_form datetime output
<div class="input datetime optional">
<label class="datetime optional" for="service_request_requested_on_1i">Requested on</label>
<select class="datetime optional" id="service_request_requested_on_1i" name="service_request[requested_on(1i)]">
<option selected="selected" value="2012">
2012
</option>
</select>
@CodeOfficer
CodeOfficer / index.html.haml
Created February 21, 2012 22:16
This is from my ember-jasmine-standalone base app that I'm working on for our next project. Wether it gets used or not will depend largely on where ember-data is at the time we get our next project.
www
├── app.css
├── app.js
├── index.html
├── test.css
├── test.html
├── test.js
├── vendor.css
└── vendor.js
@CodeOfficer
CodeOfficer / git-prompt.conf
Created January 18, 2012 12:49
git prompt config
### GIT-PROMPT.SH CONFIG
###
### lines commented-out with single '#' are default values
### lines commented-out with double '##' are examples
###
### NOTE: this is bash syntax - no spaces around "="
###########################################################
@CodeOfficer
CodeOfficer / click-delay.txt
Created December 21, 2011 21:28
IOS click delay w jQuery mobile links
http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone
http://forum.jquery.com/topic/usability-touch-feedback-too-slow
http://arandomurl.com/2011/03/16/coding-for-the-mobile-web.html
http://floatlearning.com/2011/03/developing-better-phonegap-apps/
google fastbutton
@CodeOfficer
CodeOfficer / application.coffee
Created November 2, 2011 19:41
jQuery mobile and backbone.js
#
# Some helper methods
#
app =
activePage: ->
$(".ui-page-active")
reapplyStyles: (el) ->
@CodeOfficer
CodeOfficer / capybara cheat sheet
Created May 25, 2011 22:01 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')