This file contains hidden or 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
-module(hello). | |
-export([start/0]). | |
start() -> | |
spawn(fun() -> loop() end). | |
loop() -> | |
receive | |
hello -> | |
io:format("Hello, World!~n"), |
This file contains hidden or 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
=ERROR REPORT==== 8-Sep-2010::10:44:27 === | |
Loading of /Users/alen/homebrew/Cellar/rabbitmq/2.0.0/lib/rabbitmq/erlang/lib/rabbitmq-2.0.0/ebin/gen_server2.beam failed: badfile | |
=ERROR REPORT==== 8-Sep-2010::10:44:27 === | |
beam/beam_load.c(1317): Error loading module gen_server2: | |
use of opcode 151; this emulator supports only up to 149 | |
=ERROR REPORT==== 8-Sep-2010::10:44:28 === |
This file contains hidden or 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
Activating RabbitMQ plugins ... | |
0 plugins activated: | |
+---+ +---+ | |
| | | | | |
| | | | | |
| | | | | |
| +---+ +-------+ | |
| | |
This file contains hidden or 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
=erl_crash_dump:0.1 | |
Wed Sep 8 09:34:43 2010 | |
Slogan: Kernel pid terminated (application_controller) ({application_start_failure,rabbit,{bad_return,{{rabbit,start,[normal,[]]},{'EXIT',{rabbit,failure_during_boot}}}}}) | |
System version: Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:30] [hipe] [kernel-poll:true] | |
Compiled: Wed Sep 8 09:10:11 2010 | |
Taints: | |
Atoms: 14754 | |
=memory | |
total: 22497088 | |
processes: 8773208 |
This file contains hidden or 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
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on) | |
(add-to-list 'load-path "~/Downloads/") | |
(require 'js-comint) | |
(setq inferior-js-program-command "node-repl") | |
(add-hook 'js2-mode-hook '(lambda () | |
(local-set-key "\C-x\C-e" 'js-send-last-sexp) | |
(local-set-key "\C-\M-x" 'js-send-last-sexp-and-go) | |
(local-set-key "\C-cb" 'js-send-buffer) | |
(local-set-key "\C-c\C-b" 'js-send-buffer-and-go) |
This file contains hidden or 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
public void resourceChanged(IResourceChangeEvent event) { | |
try{ | |
if(event.getType() == IResourceChangeEvent.POST_CHANGE){ | |
event.getDelta().accept(new IResourceDeltaVisitor(){ | |
public boolean visit(IResourceDelta delta) throws CoreException { | |
if(supportedSourceType(delta.getResource().getName())){ | |
final String location = delta.getResource().getProject().getLocation() | |
+ System.getProperties().getProperty("file.separator") | |
+ delta.getResource().getProjectRelativePath(); | |
ATodoLog.logInfo("File effected: " + location); |
This file contains hidden or 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
private final IPropertyChangeListener propertyChangeListener | |
= new IPropertyChangeListener() { | |
public void propertyChange(PropertyChangeEvent event) { | |
if (event.getProperty().equals(PreferenceConstants.TODO_FINDER_PATH) | |
|| event.getProperty().equals(PreferenceConstants.TODO_CRUNCHER_PATH)) { | |
loadPaths(); | |
if (isValidPreferences() && prefLinkControl != null) { | |
Composite parent = prefLinkControl.getParent(); | |
prefLinkControl.dispose(); | |
prefLinkControl = null; |
This file contains hidden or 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
private final IPropertyChangeListener propertyChangeListener | |
= new IPropertyChangeListener() { | |
public void propertyChange(PropertyChangeEvent event) { | |
if (event.getProperty().equals(PreferenceConstants.TODO_FINDER_PATH) | |
|| event.getProperty().equals(PreferenceConstants.TODO_CRUNCHER_PATH)) { | |
updatePaths(); | |
if (isValidPreferences() && prefLinkControl != null) { | |
Composite parent = prefLinkControl.getParent(); | |
prefLinkControl.dispose(); | |
createTableViewer(parent); |
This file contains hidden or 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
userP s = length s > 0 && head s == todoHashTag | |
lb = justConv $ filter (not . userP) `liftM` lu | |
ul = justConv $ map (\s-> if length s > 1 then tail s else s) | |
`liftM` (filter userP `liftM` lu) | |
justConv m = | |
case m of | |
Just [] -> Nothing | |
result -> result |
This file contains hidden or 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
userP s = length s > 0 && head s == hashTag | |
labels = filter (not . userP) `liftM` lu | |
users = map (\s-> if length s > 1 then tail s else s) | |
`liftM` (filter userP `liftM` lu) |