Skip to content

Instantly share code, notes, and snippets.

View stesla's full-sized avatar

Samantha Tesla stesla

  • DRW
  • Chicago, Illinois, USA
View GitHub Profile
(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)
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 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")
-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,
-module(clusterl_dedup).
-export([init/0, first/1]).
-define(TABLE, ?MODULE).
-define(DELETION_TIMEOUT, 3600000). % 1 hour
init() ->
ets:new(?TABLE, [public, named_table]).
-module(clusterl_dedup).
-export([init/0, first/1]).
-define(TABLE, ?MODULE).
-define(DELETION_TIMEOUT, 3600000). % 1 hour
init() ->
ets:new(?TABLE, [public, named_table]).
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
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
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|
package main
import "./specify"
var spec MySpec;
type mySpec struct {
specify.Specification;
}