[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1678842631085539.jpg (26 KB, 375x374)
26 KB
26 KB JPG
Just programmed something for the first time in 4 months without a computer.

Made a shit voice note taking cli-app to record the microphone using termux. It's like 5 loc but I'm still learning bash.

sh
filename="$1.m4a"
lixo=$(termux-microphone-record -l 0 -f "$filename")

echo "Recording your microphone..."

read -p "Press enter to stop:"

lixo=$(termux-microphone-record -q)

echo "Saved into $(pwd)/$filename"

# TODO error handling
# TODO improve feedback (show duration and shit)
>>
File: wtf.gif (212 KB, 220x178)
212 KB
212 KB GIF
>>102810620
>Just programmed something for the first time in 4 months without a computer.
>>
>>102810629
wdym
>>
>>102810660
your phone is a computer
>>
>>102810660
anon, that's a computer...
>>
>>102810702
>>102810734
That was a bit racist. I mean without a desktop nor laptop.
>>
>>102810745
>That was a bit racist.
wat
>I mean without a desktop nor laptop.
then you should have said without a desktop nor laptop
>>
File: grumpycat.jpg (64 KB, 1034x811)
64 KB
64 KB JPG
>>102810620
I don't know if it's just me but I find C much more simple and comprehensible to write programs with than Bash scripts. Using the operating system is another topic tho. I don't even know if csh is even maintained anymore.
>>
>>102810870
C is much easier.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.