Skip to content

Instantly share code, notes, and snippets.

@matlinuxer2
matlinuxer2 / coscup2024_session.md
Created July 15, 2024 06:15
COSCUP 2024 session list in Markdown (UNOFFICIAL)
Speakers Subject Notes
---- COSCUP 2024: Welcome Day 1 08:45 ~ 09:00 , RB105
---- [Prime sesssion] Generalist real-time computer vision model 09:00 ~ 09:45 , RB105
zoe steinkamp A 101 in time series analytics with Apache Arrow, Pandas and Parquet 10:00 ~ 10:30 , RB105
Max Huang Gemini Code Assist for Cloud Architects 10:00 ~ 10:30 , RB102
林沅霖 一起用 AI 來做 Line 機器人吧!用 Go 語言串接 Gemini 模型開發自己的 Line 私人秘書 10:00 ~ 10:30 , TR210
劉健豐 Wikidata入門 10:00 ~ 10:30 , TR211
梯口 tico88612 CNCF 開源貢獻新人指北 10:00 ~ 10:30 , TR212
ken leong [scaling Bitcoin - 如何擴容比特幣網路?](https://coscup.org/2024/zh-TW/sessio
@matlinuxer2
matlinuxer2 / sessionn_list_to_markdown.sh
Last active July 15, 2024 06:17
Convert COSCUP 2024 session list into a markdown table.
#!/usr/bin/env bash
dbg=":"
if [ "$DEBUG" = "1" ] || [ "$DEBUT" = "true" ] || [ "$DEBUT" = "yes" ]; then
dbg=""
fi
function to_result() {
cat >>$tmpd/result.md
}
#!/usr/bin/env bash
function throw(){
local msg="${1}"
_ERR_MSG_="$msg"
kill -s USR2 $BASHPID
}
@matlinuxer2
matlinuxer2 / gist:2925005
Created June 13, 2012 16:07
embed python into shell script as a pipe function
#!/usr/bin/env bash
function pipe_in_python() {
python -c "$(cat <<EOPY
import sys
for line in sys.stdin:
print line.replace( 'asdf', 'ASDF' ),
EOPY
)"
tmp=$(cat <<EOPY
import sys
for line in sys.stdin:
print line.replace( 'asdf', 'ASDF' )
print(line)
EOPY)
echo "asdf.asdf.asdf.e" | python -c "$tmp"
@matlinuxer2
matlinuxer2 / gist:1391322
Created November 24, 2011 13:16
timely random
#!/usr/bin/env bash
function test_num(){
sleep $(( $RANDOM % 5 ))
echo $i
}
function echo_num(){
for (( i=1; i<=49; i++ ))
do