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
| %% compile and run fold_example:test(). | |
| %% Records used here were taken from RabbitMQ's source code. | |
| -module(fold_example). | |
| -compile(export_all). | |
| -record('P_basic', | |
| {content_type, | |
| content_encoding, | |
| headers, |
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
| func RuneCount(buffer []byte) int { | |
| index, count := 0, 0 | |
| for index < len(buffer) { | |
| if buffer[index] < RuneSelf { | |
| index++ | |
| } else { | |
| _, size := DecodeRune(buffer[index:]) | |
| index += size | |
| } | |
| count++ |
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
| func RuneCount(b []byte) int { | |
| i, n := 0, 0 | |
| for i < len(b) { | |
| if b[i] < RuneSelf { | |
| i++ | |
| } else { | |
| _, size := DecodeRune(b[i:]) | |
| i += size | |
| } | |
| 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
| package com.example.store.user; | |
| /** | |
| * Implements a user for our store. | |
| */ | |
| public class User { | |
| private String name; | |
| public User(String name) { | |
| this.name = name; | |
| } |
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
| #!/bin/bash | |
| CAT="/bin/cat" | |
| HOSTNAME=$(/bin/hostname) | |
| RABBITMQ_HOME="/var/lib/rabbitmq" | |
| RABBITMQ_COOKIE_PATH="$RABBITMQ_HOME/.erlang.cookie" | |
| RABBITMQ_COOKIE=$($CAT $RABBITMQ_COOKIE_PATH) || exit 1 | |
| ERLANG_ROOT="/usr/local/erlang" | |
| ERL_CALL="$ERLANG_ROOT/lib/erlang/lib/erl_interface-3.6.5/bin/erl_call" | |
| PROCS=$($ERL_CALL -c $RABBITMQ_COOKIE -sname rabbit@$HOSTNAME -a 'erlang system_info [process_count]') | |
| echo "procs.$HOSTNAME $PROCS" |
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
| /** | |
| * string p: pattern to search (needle); | |
| * string text: haystack | |
| **/ | |
| function shift_and(p, text) { | |
| var b = {}; | |
| var l = p.length; | |
| var tl = text.length; | |
| // initialize bitmask 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
| http://www.amazon.com/Flexible-Pattern-Matching-Strings--Line/dp/0521039932/ | |
| http://www.amazon.com/Algorithms-Strings-Trees-Sequences-Computational/dp/0521585198/ | |
| http://www.amazon.com/Algorithms-Strings-Maxime-Crochemore/dp/0521848997/ | |
| http://www.amazon.com/Algorithm-Design-Jon-Kleinberg/dp/0321295358/ |
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 ../umbrella.mk | |
| MAIN_NODE=undefined | |
| OTHER_NODE=undefined | |
| OTHER_PORT=undefined | |
| OTHER_PLUGINS=undefined | |
| BASEDIR=${TMPDIR}/rabbitmq-topic-tests/$(OTHER_NODE) | |
| PID_FILE=$(BASEDIR)/$(OTHER_NODE).pid | |
| start-other-node: |
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
| if I run readelf -d /usr/local/lib/erlang/lib/crypto-3.0/priv/lib/crypto.so it depends on this exactly | |
| (NEEDED) Shared library: [libcrypto.so.1.0.0] | |
| is there a way to change that so it will accept libcrypto.so.1.0.1 for example? | |
| NOTE: I tried symlinking libs and that didn't work. |
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
| <listeners> | |
| <listener class="RabbitMQListener" file="PhpAmqpLib/Tests/RabbitMQListener.php"> | |
| <arguments> | |
| <string>/tmp/rabbitmq-server-mac-standalone-3.0.4.40426.tar.gz</string> | |
| </arguments> | |
| </listener> | |
| </listeners> |
NewerOlder