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
| { | |
| "report_level": "info_report", | |
| "group_leader": { | |
| "_type": "pid", | |
| "data": "<0.36.0>" | |
| }, | |
| "pid": { | |
| "_type": "pid", | |
| "data": "<0.39.0>" | |
| }, |
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
| function fromRaw(raw) { | |
| if (raw == '01.28') { | |
| return '+7712'; | |
| } else if (raw == '06.40') { | |
| return '+1462'; | |
| } else if (raw == '32.00') { | |
| return '+212'; | |
| } else if (raw == '68.00') { | |
| return '-213'; | |
| } |
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
| Erlang R14B01 (erts-5.8.2) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:0] [hipe] [kernel-poll:false] | |
| Eshell V5.8.2 (abort with ^G) | |
| 1> application:start(sasl). | |
| ok | |
| 2> | |
| =PROGRESS REPORT==== 20-Jun-2011::16:50:22 === | |
| supervisor: {local,sasl_safe_sup} | |
| started: [{pid,<0.39.0>}, | |
| {name,alarm_handler}, |
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
| open_connection_link(Params) -> | |
| process_flag(trap_exit, true), | |
| {ok, Conn} = amqp_connection:start(network, Params), | |
| link(Conn), | |
| receive | |
| {'EXIT', Conn, Reason} -> | |
| exit(Reason); | |
| {'EXIT', _Pid, Reason} -> | |
| ok = amqp_connection:close(Conn), | |
| exit(Reason) |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <openssl/blowfish.h> | |
| #include <openssl/evp.h> | |
| int main(int argv, const char **argc) | |
| { | |
| const unsigned char keytext[] = "key"; | |
| const unsigned char plaintext[] = "this is plaintext"; | |
| const unsigned char ivec[] = "12345678"; |
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
| % Entry point from Misultin | |
| ws_loop(Ws) -> | |
| WsPid = self(), | |
| {ok, Pid, Uuid} = erlsio_session_sup:start_child(?MODULE, [WsPid]), | |
| % This is OK because the child session process will time out if we | |
| % die before this link. | |
| true = link(Pid), | |
| % First step is to send session ID | |
| Ws:send(erlsio_protocol:encode({text, Uuid})), | |
| ?MODULE:ws_loop_1(#loop_state{ws = Ws, pid = Pid, uuid = Uuid}). |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Note: Requires https://github.com/skarab/pika/tree/rabbitmq-ext | |
| # for RabbitMQ exchange binding extensions | |
| import csv | |
| import getopt | |
| import os | |
| import random | |
| import sys | |
| import time |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| # Fix import paths | |
| base_dir = os.path.join(os.path.dirname(os.path.realpath(__file__))) | |
| sys.path.append(base_dir) | |
| import pika |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| # Fix import paths | |
| base_dir = os.path.join(os.path.dirname(os.path.realpath(__file__))) | |
| sys.path.append(base_dir) | |
| import pika |
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
| import sys | |
| class Foo(object): | |
| def __init__(self, value): | |
| self._value = value | |
| def __long__(self): | |
| return long(self._value) | |