Skip to content

Instantly share code, notes, and snippets.

View cczona's full-sized avatar

Carina C. Zona cczona

View GitHub Profile
@cczona
cczona / chrome-print-preview
Created February 27, 2016 08:29
Toggle Chrome's default print dialog & OS's native print dialog
## NOTE: quit Chrome first
# use native print dialog
defaults write com.google.Chrome DisablePrintPreview -boolean true
# use Chrome's print dialog
defaults write com.google.Chrome DisablePrintPreview -boolean false
Greg Wilson (@gvwilson)
“Surprised to see @CallbackWomen promoting @TRUCEConf - see http://jacobian.org/writing/truceconf/ … for reasons”
TRUCEConf (‏@TRUCEConf)
“Quite honestly a lot of changes have been made since that post. See http://truceconf.com/2013/11/10/a-few-changes-to-truceconf/ & http://truceconf.com/2013/11/17/clearing-a-few-things-up/ “
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
ruby '2.1.0'
gem 'rails', '4.0.2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
ruby '2.0.1'
gem 'rails', '4.0.2'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
@cczona
cczona / everyday-sins-of-internationalization
Created January 6, 2014 10:50
Everyday Sins of Internationalization (abstract)
Everyday Sins of Internationalization
=========
When we think of internationalization, we're drawn to technical aspects. Are we using the right character set? Can this wording be translated? And what about content negotiation? Ugh, such a pain in the ass.
Many of the conversations wind up being deferred for later -- for the day when we're preparing to expand into another country. Meanwhile, we're unknowingly committing everyday sins. Users, please forgive us.
Cultures vary. People within them do too. Porting out local certainties can set a course to epic fail. There are easy opportunities we're missing out on, right now.
@cczona
cczona / Doctor, Lawyer, Poker Player, Physicist: The Best Engineers We're Not Hiring
Last active January 1, 2016 07:09
Doctor, Lawyer, Poker Player, Physicist: The Best Engineers We're Not Hiring
TITLE:
Doctor, Lawyer, Poker Player, Physicist: The Best Engineers We're Not Hiring
ABSTRACT:
_"The team needs more engineers and we need them today."_
We talk about the engineer shortage. But the problem is not what we think it is. We'll explore how hiring for only CS degrees misses exceptional opportunities. Unconventional backgrounds breed great developers.
@cczona
cczona / pycon-2014-abstract-1
Last active December 23, 2015 02:28
PyCon 2014 abstract #1
The Pythonista’s Essential Travel Guidebook to Ruby’s Shorelines
For the coder accustomed to Pythonic ways, stepping into the world of Ruby is justifiably puzzling. Is the real documentation hidden or something? What's up with all the dogma? How do I learn to do things in accepted Ruby fashion? Do I really need to adhere to all these conventions, anyway...? Which Ruby groups, conferences, and docs are most approachable for the polished Pythonista who voyages into this foreign land?
We'll cover Ruby community essentials: code practices, culture, religious convictions, memes, lore, influential voices, and spiritual leaders. You'll find out why the #pairwithme hashtag is always where to gravitate. And we'll delve into the deepest of existential questions: why is the why of _why so darned fascinating?
Warning: explanations contained herein require foxes, cat pictures, and exactly two spaces.
@cczona
cczona / technical_interviewing.md
Last active December 11, 2015 21:59 — forked from econchick/interview_tips.md
Technical Interviewing Guide Resources and tips collected from January 28, 2013 Women Who Code workshop
@cczona
cczona / .irbrc
Created January 28, 2013 05:16 — forked from zzak/.irbrc
# Custom prompt. Based on <https://gist.github.com/4652812> by Zachary Scott
IRB.conf[:PROMPT][:PERSONAL] = IRB.conf[:PROMPT][:RVM].merge(
:PROMPT_I => "\n#{RUBY_VERSION} >> ",
:PROMPT_S => "%l >> ",
:PROMPT_C => "? >> ",
:RETURN => "RETURNS> %s\n\n"
)
IRB.conf[:PROMPT_MODE] = :PERSONAL
@cczona
cczona / rspec_rails_cheetsheet.rb
Created December 19, 2012 16:19 — forked from them0nk/rspec_rails_cheetsheet.rb
#rspec #rails #testing
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)