Skip to content

Instantly share code, notes, and snippets.

View chriskk's full-sized avatar
🤙

Chris Kobayashi chriskk

🤙
  • ATTAIN
  • San Francisco, CA
View GitHub Profile
include Carmen
ISLANDS = Country.named('United States').subregions.coded('HI').subregions.collect { |isle| isle.name }
<!-- vendor/extensions/locations/app/views/refinery/locations/locations/index.html.erb -->
<% content_for :body do %>
<ul id="locations">
<% @locations.each do |location| %>
<li>
<%= link_to location.name, refinery.locations_location_path(location) %>
</li>
<% end %>
</ul>
<% end %>
require 'rubygems'
require 'spork'
#uncomment the following line to use spork with the debugger
#require 'spork/ext/ruby-debug'
# --- Instructions ---
# Sort the contents of this file into a Spork.prefork and a Spork.each_run
# block.
#
@chriskk
chriskk / error.txt
Last active December 19, 2015 21:59
/Users/chriskk/apps/APPNAME/vendor/extensions/locations/config/initializers/islands.rb:2: warning: already initialized constant ISLANDS
/Users/chriskk/apps/APPNAME/vendor/extensions/business_inquiries/config/initializers/islands.rb:2: warning: previous definition of ISLANDS was here
@chriskk
chriskk / Default (Linux).sublime-keymap
Created July 24, 2013 08:56
Sublime Text 2 - key bindings for Apple keyboard's Command key
[
{ "keys": ["super+n"], "command": "new_file" },
{ "keys": ["super+c"], "command": "copy" },
{ "keys": ["super+x"], "command": "cut" },
{ "keys": ["super+v"], "command": "paste" },
{ "keys": ["super+z"], "command": "undo" },
{ "keys": ["super+y"], "command": "redo" },
{ "keys": ["super+shift+z"], "command": "redo" },
{ "keys": ["super+s"], "command": "save" },
{ "keys": ["super+left"], "command": "move_to", "args": { "to": "bol" } },
@chriskk
chriskk / osx109_dev_env.md
Last active December 30, 2015 02:29
OS X 10.9 Mavericks Dev Environment

OS X 10.9 Mavericks Dev Environment

2013-12-02

XCode, Command Line Tools, and XQuartz

Install XCode (5.0.2) from the App Store

Install Command Line Tools (git is included)

# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@chriskk
chriskk / podforceupdate.sh
Created November 5, 2019 00:54 — forked from mbinna/podforceupdate.sh
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update