Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.
- Create Separate Config Directories
mkdir ~/.claude-account1 mkdir ~/.claude-account2
Based on the example file from the announcement blog post http://sketchplugins.com/d/87-new-file-format-in-sketch-43
type UUID = string // with UUID v4 format
type SketchPositionString = string // '{0.5, 0.67135115527602085}'
type SketchNestedPositionString = string // '{{0, 0}, {75.5, 15}}'| # 10_basic.py | |
| # 15_make_soup.py | |
| # 20_search.py | |
| # 25_navigation.py | |
| # 30_edit.py | |
| # 40_encoding.py | |
| # 50_parse_only_part.py |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
This gist has graduated to a full-fledged repo @ https://github.com/JakeWharton/ProcessPhoenix
The syntax below works currently (November 2014) however is not officially supported. It may stop working at any time without warning.
For a list of documented / support template tags and syntax, see: http://help.close.io/customer/portal/articles/823937-email-templates
| import android.graphics.*; | |
| import com.squareup.picasso.Transformation; | |
| /** | |
| * Transforms an image into a circle representation. Such as a avatar. | |
| */ | |
| public class CircularTransformation implements Transformation | |
| { | |
| int radius = 10; |
| /** | |
| * Desaturate the given color int value by the provided ratio, down to a minimum of 0.2f. | |
| * | |
| * Note: Do not pass R.color ints, resolve the actual color int via | |
| * getResources().getColor(R.color.your_color_name_here). | |
| * | |
| * f(x) = ( startSaturation / 1.0f * ratio ) + ( minSaturation * (1.0f - ratio) ) | |
| * | |
| * @param int The color value to desaturate | |
| * @param float The ratio to desatrate by (0.0f - 1.0f) |
| # lib/tasks/db.rake | |
| namespace :db do | |
| desc "Dumps the database to db/APP_NAME.dump" | |
| task :dump => :environment do | |
| cmd = nil | |
| with_config do |app, host, db, user| | |
| cmd = "pg_dump --host #{host} --username #{user} --verbose --clean --no-owner --no-acl --format=c #{db} > #{Rails.root}/db/#{app}.dump" | |
| end | |
| puts cmd |