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
(ASSIGN, 0, nil, temp:1) | |
(ASSIGN, temp:1, nil, temp:0) | |
(ASSIGN, temp:1, nil, id:a:0x1001c0) | |
(ASSIGN, id:a:0x1001c0, nil, temp:1) | |
(IF_EQ, temp:1, 0, 0) | |
(ASSIGN, 0, nil, temp:1) | |
(JUMP, 1, nil, nil) | |
(LABEL, 0, nil, nil) | |
(ASSIGN, 1, nil, temp:1) | |
(LABEL, 1, nil, nil) |
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
static int *ir_init_temp() | |
{ | |
static int ir_temp_ctr = 0; | |
return &ir_temp_ctr; | |
} | |
int ir_make_temp() | |
{ | |
static int *ctr = NULL; | |
if (ctr = 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
;;; | |
;;; This part is in ~/.emacs.local | |
;;; | |
;;; You can load it in your .emacs with this: | |
;;; (load "~/.emacs.local" t) | |
;; Erlang | |
(add-to-list 'load-path "/usr/local/lib/erlang/lib/tools-2.6.1/emacs") | |
(setq erlang-root-dir "/usr/local/lib/erlang") | |
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
-define(ANNOUNCE(Id, Port), {announce, Id, Port}). | |
handle_info({radio_signal, Ip, Port, ?ANNOUNCE(Id, Port)}, State) -> | |
#state{id=MyId} = State, | |
case Id of | |
MyId -> ignore; | |
_ -> | |
error_logger:info_msg("Received PING from ~p~n", [Id]), | |
clusterl_radio:transmit(Ip, Port, ?ANNOUNCE(Id, Port)) | |
end, |
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(clusterl_dedup). | |
-export([init/0, first/1]). | |
-define(TABLE, ?MODULE). | |
-define(DELETION_TIMEOUT, 3600000). % 1 hour | |
init() -> | |
ets:new(?TABLE, [public, named_table]). |
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(clusterl_dedup). | |
-export([init/0, first/1]). | |
-define(TABLE, ?MODULE). | |
-define(DELETION_TIMEOUT, 3600000). % 1 hour | |
init() -> | |
ets:new(?TABLE, [public, named_table]). |
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
blocking_resolver_lookup_service: _xmpp-client._tcp.localhost | |
Error while parsing srv response in blocking_resolver_lookup_service | |
./vertebra-rb/bin/../lib/vertebra/agent.rb: line 220 | |
(null)-CRITICAL **:lm_resolver_new_for_host: assertion `host != NULL' failed | |
./vertebra-rb/bin/../lib/vertebra/agent.rb:220: [BUG] Bus Error | |
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.4.0] | |
Abort trap | |
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
blocking_resolver_lookup_service: _xmpp-client._tcp.localhost | |
Error while parsing srv response in blocking_resolver_lookup_service | |
./vertebra-rb/bin/../lib/vertebra/agent.rb: line 220 | |
(null)-CRITICAL **:lm_resolver_new_for_host: assertion `host != NULL' failed | |
./vertebra-rb/bin/../lib/vertebra/agent.rb:220: [BUG] Bus Error | |
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.4.0] | |
Abort trap | |
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
diff --git a/Rakefile b/Rakefile | |
index 3ab2592..96c8c83 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -49,7 +49,7 @@ Rake::GemPackageTask.new(gemspec) do |pkg| | |
end | |
namespace :test do | |
- Rake::TestTask.new :all => [:extension] do |t| | |
+ Rake::TestTask.new :all => [:test_extension] do |t| |
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
package main | |
import "./specify" | |
var spec MySpec; | |
type mySpec struct { | |
specify.Specification; | |
} |
OlderNewer