I hereby claim:
- I am artbit on github.
- I am ungar (https://keybase.io/ungar) on keybase.
- I have a public key ASAFDd_kTCsD1bEPMvnsBDYWdNvQHndaXmB--pXlF7eJmAo
To claim this, I am signing this object:
| #!/bin/bash | |
| DATE=$1 | |
| CURRENCY=${2:-usd} | |
| KURS=${3:-sre} | |
| FORMAT="json" | |
| API_KEY="YOUR_API_KEY_HERE" # https://www.kursna-lista.info/moj-nalog/api-podesavanja | |
| API_ENDPOINT="https://api.kursna-lista.info/$API_KEY/kl_na_dan/$DATE/$FORMAT" | |
| CACHE="$HOME/.kursna_lista/$DATE.$CURRENCY.$KURS" |
| +---------------------------------------------------------------+ | |
| | * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * | | |
| +---------------------------------------------------------------+ | |
| \ | |
| \ ^ /^ | |
| \ / \ // \ | |
| \ |\___/| / \// .\ | |
| \ /V V \__ / // | \ \ *----* | |
| / / \/_/ // | \ \ \ | | |
| @___@` \/_ // | \ \ \/\ \ |
| #!/bin/bash | |
| # Primer: | |
| # bash kako_ime_zvuči_uz_prezime Kovačević | |
| # ...Momčilo, Momčilo Kovačević | |
| # ...Višeslav, Višeslav Kovačević | |
| PREZIME=$1 | |
| for IME in $(cat muška.imena.txt); do | |
| espeak -m -v sr "<prosody rate='0.7'>$IME</prosody><break time='1000' /><prosody rate='1'>$IME $PREZIME</prosody><break time='1000' />" |
| #!/bin/bash | |
| GATEWAY=`route get default | grep gateway | awk '{ print }'` | |
| SCRIPT_COMMAND="ping $GATEWAY" | |
| SCRIPT_PID=/tmp/pingpong.pid | |
| case "$1" in | |
| start) | |
| $SCRIPT_COMMAND 1>/dev/null & | |
| echo $!>$SCRIPT_PID |
| var htmlTableToExcel = (function () { | |
| var uri = 'data:application/vnd.ms-excel;base64,' | |
| , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' | |
| , base64 = function(s) {return btoa(encodeURIComponent(s).replace(/%([0-9A-F]{2})/g, function(match, p1) { | |
| return String.fromCharCode('0x' + p1); | |
| })); | |
| , format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }); }; | |
| return function (table, name, filename) { | |
| if (!table.nodeType) table = document.getElementById(table); | |
| var ctx = { worksheet: name || 'Worksheet', table: table.innerHTML }; |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| FILE=/tmp/mic.wav | |
| arecord \ | |
| -D plughw:0 \ | |
| -f cd \ | |
| > $FILE | |
| TARGET_DIR="${HOME}/recordings" |
| #!/bin/bash | |
| # Check out https://www.raspberrypi.org/documentation/usage/webcams/ for more info | |
| # on using webcams and installing necessary software on your raspberry PI. | |
| IMAGE=/tmp/webcam.jpg | |
| fswebcam \ | |
| -d /dev/video0 \ | |
| -p YUYV \ |
Overview of BASH history
historyBasic History Recall
!! - Previous command!n - Nth previous commandParameter Recall
!* - All parameters from the last command, excluding 0th (the command itself)!:n - Nth parameter from the previous command (index starting from 1)| var MAX_SPEED = 100; | |
| var DISTANCE = 50; | |
| //FightCode can only understand your robot | |
| //if its class is called Robot | |
| var Robot = function(robot) { | |
| this.dir = 1; | |
| this.cannonDir = 1; | |
| this.speed = MAX_SPEED*.8; | |
| this.ts = 0; | |
| this.pivot = { |