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
%1 | |
Params = #amqp_params{ | |
username = iolist_to_binary(User), | |
password = iolist_to_binary(Password), | |
virtual_host = iolist_to_binary(Vhost), | |
host = Host, | |
port = Port | |
}, | |
%2 | |
Params = #amqp_params{ |
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 | |
ARTIST=`echo $@ | cut -d/ -f6` | |
ALBUM=`echo $@ | cut -d/ -f7` | |
ARTIST="$(echo $ARTIST | sed 's/+/ /g;s/%\(..\)/\\x\1/g;')" | |
ALBUM="$(echo $ALBUM | sed 's/+/ /g;s/%\(..\)/\\x\1/g;')" | |
ARTIST=`echo -n -e $ARTIST` | |
ALBUM=`echo -n -e $ALBUM` | |
(mkdir -p "$ARTIST" && \ |
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
Archery | |
Athletics | |
Badminton | |
Basketball | |
Beach Volleyball | |
Boxing | |
Canoe Slalom | |
Canoe Sprint | |
Cycling BMX | |
Cycling Mountain Bike |
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(chat). | |
-compile(export_all). | |
start() -> | |
Pid = spawn(fun loop/0), | |
register(chatroom, Pid), | |
Pid. | |
loop() -> |
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(eimgs). | |
-compile(export_all). | |
-define(M,16#FF). | |
-define(SOI,16#D8). | |
-define(EOI,16#D9). | |
-record(jpg, {buf = <<>>}). | |
go() -> |
NewerOlder