Skip to content

Instantly share code, notes, and snippets.

%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{
#!/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" && \
Archery
Athletics
Badminton
Basketball
Beach Volleyball
Boxing
Canoe Slalom
Canoe Sprint
Cycling BMX
Cycling Mountain Bike
-module(chat).
-compile(export_all).
start() ->
Pid = spawn(fun loop/0),
register(chatroom, Pid),
Pid.
loop() ->
-module(eimgs).
-compile(export_all).
-define(M,16#FF).
-define(SOI,16#D8).
-define(EOI,16#D9).
-record(jpg, {buf = <<>>}).
go() ->