How to inform Eclipse and other Mac applications of the command line PATH
- Update Mac OS X's notion of
PATH
.
$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
- Restart Mac OS X.
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
(defui Code | |
static om/IQueryParams | |
(params [this] | |
{:language "ruby"}) | |
static om/IQuery | |
(query [this] | |
'[(:remote/github-repositories {:language ?language})]) | |
Object |
; RCIRC | |
(require 'rcirc) | |
(add-to-list 'rcirc-server-alist | |
'("irc.freenode.net" :channels ("#emacs" "#clojure"))) | |
(add-to-list 'rcirc-server-alist | |
`("irc.flowdock.com" :port 6697 :encryption tls :user-name "Thiago" :password ,(format "[email protected] %s" (getenv "FLOWDOCK_PASSWORD")))) | |
(setq rcirc-authinfo |
How to inform Eclipse and other Mac applications of the command line PATH
PATH
.$ defaults write ~/.MacOSX/environment PATH "`echo $PATH`"
$ echo "setenv PATH $PATH" | sudo tee /etc/launchd.conf
http://linuxpitstop.com/install-xmonad-on-ubuntu-15-04/ |
class Command | |
attr_reader :result | |
def initialize(result) | |
@result = result | |
end | |
def execute | |
end | |
end |
; I have this atom inside db.cljs | |
(defonce app-db (atom {})) | |
; This cursor fn | |
(defn character-maps [] | |
(reagent/cursor app-db [:character-maps])) | |
; When I do | |
(add-watch (db/character-maps) :watch-change update-done) |
require "active_support/core_ext" | |
def bookable? booked_day, now | |
now <= cancellable_until(booked_day) | |
end | |
def cancellable_until booked_day | |
booked_day + 2.days + 12.hours | |
end |
#!/usr/bin/env ruby | |
Dir['**/*.rb'].each do |path| | |
lines = File.readlines(path) | |
new_lines = lines.dup | |
lines.each do |line| | |
if line =~ /^# encoding: utf-8/i || line !~ /\S/ | |
new_lines.delete_at(new_lines.index(line)) | |
else |
class CheckOut | |
attr_accessor :total | |
def initialize(rules) | |
@rules = rules | |
@total = 0 | |
@amount_of_units = Hash.new(0) | |
end | |
def scan(item) |