I hereby claim:
- I am joshmcarthur on github.
- I am sudojosh (https://keybase.io/sudojosh) on keybase.
- I have a public key whose fingerprint is F836 E081 B5FC 98B7 4731 9535 8185 E264 85E5 3C23
To claim this, I am signing this object:
" --- snip --- | |
" Relative Numbering | |
" ======= | |
:au FocusLost * :set number | |
:au FocusGained * :set relativenumber | |
autocmd InsertEnter * :set number | |
autocmd InsertLeave * :set relativenumber | |
" --- snip --- |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
# Turn off authority logging while running tests | |
Authority.configure do |config| | |
config.logger = Logger.new('/dev/null') | |
end | |
def set_access_token | |
begin | |
self.access_token = Devise.friendly_token[0..12] | |
end while ClientForm.exists?(access_token: self.access_token) | |
end | |
# config/initializers/inflections.rb | |
ActiveSupport::Inflector.inflections(:en) do |inflect| | |
inflect.acronym 'API' | |
end | |
# app/controllers/api/widgets_controller.rb | |
module API | |
class WidgetsController < BaseController | |
end | |
end |
# Save this in config/initializers/csv_renderer.rb | |
ActionController::Renderers.add :csv do |obj, options| | |
filename = options[:filename] || 'data.csv' | |
str = obj.respond_to?(:to_csv) ? obj.to_csv : obj.to_s | |
send_data str, | |
type: Mime::CSV, | |
disposition: "attachment", | |
filename: filename | |
end |
The file attached to this Gist in XCF format is a template ready for professional printing with correct bleed and safety margins applied for editing in GIMP. Feel free to download and use it for your own projects. I've created this file because while I found a bunch of instructions on how to set up the file, I couldn't find a good starter. Here it is! I've followed the instructions on The Online Printer's guide to preparing GIMP files, but I also welcome any additional tips.
pp (YourClass.methods - Object.methods).sort |