View identified.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module IdentificationComponent | |
module Messages | |
module Events | |
class Identified | |
include Messaging::Message | |
attribute :source_id, String | |
attribute :common_id, String | |
end | |
end |
View nginx.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/nginx", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "nginx", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"hostPort": 0, |
View .bash_profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.bashrc | |
# Homebrew | |
export PATH="/usr/local/bin:/usr/local/sbin:$PATH" | |
# Path to the bash it configuration | |
export BASH_IT="/Users/bradrobertson/.bash_it" | |
# Lock and Load a custom theme file | |
export BASH_IT_THEME="bobby" |
View gist:6177412
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /app/views/contacts/index.html.erb | |
<div class="contacts"> | |
<div class="contact" id="contact_1"> | |
<p class='name'>Cool Dude 1</p> | |
<div class="details">...</div> | |
</div> | |
<div class="contact" id="contact_2"> | |
<p class='name'>Cool Dude 2</p> | |
<div class="details">...</div> | |
</div> |
View spec_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with :truncation | |
DatabaseCleaner.strategy = :transaction | |
seed_db_with_lots_of_data # for example | |
end | |
config.before(:each) do | |
DatabaseCleaner.start |
View gist:5383307
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Broken Example | |
class Company < ActiveRecord::Base | |
include IdentityCache | |
cache_index :subdomain | |
end | |
Company.table_name = 'public.companies' | |
Company.fetch_by_subdomain('app') | |
# => SELECT id FROM companies WHERE subdomain = 'app' LIMIT 1 |
View modal-responsive.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Responsive shizzle | |
@media (max-width: 767px) { | |
// Modals | |
.modal { | |
position: absolute; | |
top: 20px; | |
left: 20px; | |
right: 20px; | |
width: auto; |
View gist:2881420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/gcc-4.2 -c -pipe -O2 -arch i386 -arch i386 -Xarch_i386 -mmacosx-version-min=10.4 -fvisibility=hidden -fvisibility-inlines-hidden -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DQT_ASCII_CAST_WARNINGS -DENABLE_XSLT=0 -DENABLE_WEB_TIMING=0 -DENABLE_JAVASCRIPT_DEBUGGER=1 -DENABLE_DATABASE=1 -DENABLE_EVENTSOURCE=1 -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_CHANNEL_MESSAGING=1 -DENABLE_DIRECTORY_UPLOAD=0 -DENABLE_FILE_SYSTEM=0 -DENABLE_QUOTA=0 -DENABLE_SQLITE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_FILTERS=1 -DENABLE_XPATH=1 -DENABLE_WCSS=0 -DENABLE_SHARED_WORKERS=1 -DENABLE_WORKERS=1 -DENABLE_XHTMLMP=0 -DENABLE_DETAILS=1 -DENABLE_METER_TAG=1 -DENABLE_PROGRESS_TAG=1 -DENABLE_BLOB=1 -DENABLE_NOTIFICATIONS=1 -DENABLE_INPUT_SPEECH=0 -DENABLE_INSPECTOR=1 -DENABLE_3D_RENDERING=1 -DENABLE_WEB_AUDIO=0 -DENABLE_WEBGL=0 -DENABLE_MEDIA_STATISTICS=0 -DENABLE_VIDEO_TRACK=0 -DENABLE_TOUCH_ICON_LOADING=0 -DENABLE_ANIMATION_API=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FOR |
View Procfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: bundle exec $APP |
View gist:1168082
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
minifying v1.2.0:src/tooltip/tooltip.slide.js | |
minifying v1.2.0:src/tooltip/tooltip.js | |
minifying v1.2.0:src/tooltip/tooltip.dynamic.js | |
minifying v1.2.0:src/toolbox/toolbox.mousewheel.js | |
minifying v1.2.0:src/toolbox/toolbox.history.js | |
minifying v1.2.0:src/toolbox/toolbox.flashembed.js | |
... | |
... |
NewerOlder