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
@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
# 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 / 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)

@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 / 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
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.
#
<!-- 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 %>
include Carmen
ISLANDS = Country.named('United States').subregions.coded('HI').subregions.collect { |isle| isle.name }
@chriskk
chriskk / new.html.erb
Created July 9, 2013 02:30
rspec error
Failures:
1) Refinery BusinessInquiries business_inquiries GET /business_inquiries/new should display the form and all fields
Failure/Error: visit refinery.new_business_inquiries_business_inquiry_path
ActionView::Template::Error:
uninitialized constant ActionView::CompiledTemplates::Appname
# /Users/chriskk/apps/appname/vendor/extensions/business_inquiries/app/views/refinery/business_inquiries/business_inquiries/new.html.erb:32:in `block (2 levels) in ___sers_chriskk_apps_appname_vendor_extensions_business_inquiries_app_views_refinery_business_inquiries_business_inquiries_new_html_erb___1273271278936162194_70175016498320'
module Appname
class Application < Rails::Application
# ... various config settings
end
ISLANDS = %w(Oahu Maui Hawaii Kauai Lanai Molokai)
end