- Note: always set
umask 022
for system-shared libraries - See http://blog.equanimity.nl/blog/2014/02/09/erlang-r17-rc1-on-osx-with-wx-and-a-working-observer/ for the details
- wxWidgets 3.0.0 works the same in R16B03-1 and 17.0-rc2
- Note well:
wx:demo()
on OS X 10.9.2 with wxWidgets 3.0.0 is still unstable, thoughobserver:start()
is more stable. - If you really don't have time, try Erlang Solutions' 32bit (not 64bit) distribution at https://www.erlang-solutions.com/downloads/download-erlang-otp to use it as a debugging console.
- Update 28-FEB-2014 0230UTC: Leo Liu reports
brew install wxmac --disable-monolithic
will do. See http://erlang.org/pipermail/erlang-questions/2014-February/077952.html.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%% Prime number sieve code with lazy evaluation by Joe Armstrong | |
%%% (very slightly modified for syntax check) | |
%%% http://erlang.org/pipermail/erlang-questions/1999-March/000176.html | |
-module(p3). | |
-export([from/1,filter/2,sift/2,sieve/1,primes/0, first/1]). | |
%% This generates a lazy sequence starting from K. | |
%% from(K) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/dch/9267866 | |
``` | |
brew update | |
brew install wxmac --disable-monolithic | |
brew install --with-wx --no-docs -v --devel erlang | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns tiexample.core) | |
(defn ^{:export dbg} dbg [s] | |
(js* "Titanium.API.debug(~{s})")) | |
;;stolen from another gist I saw | |
(defn make-js-map | |
"makes a javascript map from a clojure one" | |
[cljmap] | |
(let [out (js-obj)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar personal-dir (file-name-directory load-file-name) | |
"The root dir of the emacs configuration.") | |
(defvar personal-vendor-dir (expand-file-name "vendor" personal-dir) | |
"This directory houses packages that are not yet available in ELPA (or MELPA).") | |
(defvar personal-savefile-dir (expand-file-name "savefile" personal-dir) | |
"This folder stores all the automatically generated save/history-files.") | |
(unless (file-exists-p personal-savefile-dir) | |
(make-directory personal-savefile-dir)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; +--------------------------------------------------------------------------+ | |
;; | CTRL - C | |
;; +--------------------------------------------------------------------------+ | |
(global-set-key (kbd "C-c f") 'projectile-find-file) | |
(global-set-key (kbd "C-c F") 'projectile-find-file-other-window) | |
(global-set-key (kbd "C-c d") 'projectile-find-dir) | |
(global-set-key (kbd "C-c D") 'projectile-find-dir-other-window) | |
(global-set-key (kbd "C-c C-c d") 'projectile-dired) | |
(global-set-key (kbd "C-c b") 'projectile-switch-to-buffer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the prefix to ^z | |
# unbind-key C-b | |
unbind C-b | |
set -g prefix C-a | |
bind-key C-a send-prefix | |
unbind-key " " | |
bind-key " " last-window | |
unbind-key n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "C-c p f") 'projectile-find-file) | |
(global-set-key (kbd "C-c p F") 'projectile-find-file-other-window) | |
(global-set-key (kbd "C-c p d") 'projectile-find-dir) | |
(global-set-key (kbd "C-c p D") 'projectile-find-dir-other-window) | |
(global-set-key (kbd "C-c C-c d") 'projectile-dired) | |
(global-set-key (kbd "C-c p b") 'projectile-switch-to-buffer) | |
(global-set-key (kbd "C-c p a") 'projectile-ag) | |
(global-set-key (kbd "C-c p i") 'projectile-invalidate-cache) | |
(global-set-key (kbd "C-c p k") 'projectile-kill-buffers) | |
(global-set-key (kbd "C-c p p") 'projectile-switch-project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "C-c p f") 'projectile-find-file) | |
(global-set-key (kbd "C-c p F") 'projectile-find-file-other-window) | |
(global-set-key (kbd "C-c p d") 'projectile-find-dir) | |
(global-set-key (kbd "C-c p D") 'projectile-find-dir-other-window) | |
(global-set-key (kbd "C-c C-c d") 'projectile-dired) | |
(global-set-key (kbd "C-c p b") 'projectile-switch-to-buffer) | |
(global-set-key (kbd "C-c p a") 'projectile-ag) | |
(global-set-key (kbd "C-c p i") 'projectile-invalidate-cache) | |
(global-set-key (kbd "C-c p k") 'projectile-kill-buffers) | |
(global-set-key (kbd "C-c p p") 'projectile-switch-project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "C-c p f") 'projectile-find-file) | |
(global-set-key (kbd "C-c p F") 'projectile-find-file-other-window) | |
(global-set-key (kbd "C-c p d") 'projectile-find-dir) | |
(global-set-key (kbd "C-c p D") 'projectile-find-dir-other-window) | |
(global-set-key (kbd "C-c C-c d") 'projectile-dired) | |
(global-set-key (kbd "C-c p b") 'projectile-switch-to-buffer) | |
(global-set-key (kbd "C-c p a") 'projectile-ag) | |
(global-set-key (kbd "C-c p i") 'projectile-invalidate-cache) | |
(global-set-key (kbd "C-c p k") 'projectile-kill-buffers) | |
(global-set-key (kbd "C-c p p") 'projectile-switch-project) |
OlderNewer