Just prepend $PATH
with .bundle/bin
:
$ cat ~/.bashrc
...
export PATH=".bundle/bin:$PATH"
...
package main | |
import ( | |
"bytes" | |
"flag" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" | |
"math" |
#!/usr/bin/osascript | |
on run argv | |
tell application "iTerm" | |
if (count of terminals) = 0 then | |
set _terminal to (make new terminal) | |
else | |
set _terminal to current terminal | |
end if |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
# gem 'rails' | |
gem "activerecord" | |
gem "actionpack" | |
gem "actionview" | |
gem "actionmailer" | |
gem "activejob" | |
gem "activesupport" | |
gem "railties" | |
gem "sprockets-rails" | |
gem 'sqlite3' |
It seems that graphcis and fonts look rather blurry on some monitors when hooked up to a MacBook Pro (Retina). This might fix the issue for you:
Download patch-edid.rb from http://embdev.net/attachment/168316/patch-edid.rb
Execute in Terminal (without the $):
$ ruby patch-edid.rb
Copy produced folder (example: DisplayVendorID-22f0) to /System/Library/Displays/Overrides (authorize if needed, if the folder exists, backup it before)
namespace :db do | |
require "sequel" | |
Sequel.extension :migration | |
DB = Sequel.connect(ENV['DATABASE_URL']) | |
desc "Prints current schema version" | |
task :version do | |
version = if DB.tables.include?(:schema_info) | |
DB[:schema_info].first[:version] | |
end || 0 |
Install from the AUR.
public class MLRoundedImageView extends ImageView { | |
public MLRoundedImageView(Context context) { | |
super(context); | |
} | |
public MLRoundedImageView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
#!/usr/bin/ruby | |
# Convert a Markdown README to HTML with Github Flavored Markdown | |
# Github and Pygments styles are included in the output | |
# | |
# Requirements: json gem (`gem install json`) | |
# | |
# Input: STDIN or filename | |
# Output: STDOUT | |
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file | |
# cat README.md | flavor > README.html |