Dependencies
- sh
- curl
- jq
- mpv
/** | |
* Creating objects with Classes | |
* Versus objects with prototypes | |
* Since JavaScript is not a Class-based language | |
* what is happening behind the class syntax? | |
*/ | |
let PersonC = class { | |
constructor(nm, id) { | |
this.name = nm; |
<?php | |
// PHP using Guzzle example | |
use GuzzleHttp\Client; | |
$client = new Client(); | |
$mac_address = "FC:FB:FB:01:FA:21"; |
AKA OOP: There it is
binding.pry
to play with code live#!/bin/bash | |
#http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/ | |
echo “Recording… Press Ctrl+C to Stop.” | |
arecord -D “plughw:1,0” -q -f cd -t wav | ffmpeg -loglevel panic -y -i – -ar 16000 -acodec flac file.flac > /dev/null 2>&1 | |
echo “Processing…” | |
wget -q -U “Mozilla/5.0” –post-file file.flac –header “Content-Type: audio/x-flac; rate=16000” -O – “http://www.google.com/speech-api/v1/recognize?lang=en-us&client=chromium” | cut -d” -f12 >stt.txt | |
echo -n “You Said: ” |
### | |
# Scheme code is translated to YARV byte code, then evaluated in the | |
# Ruby Virtual Machine | |
require 'rbconfig' | |
require 'dl' | |
require 'fiddle' | |
require 'strscan' | |
class RubyVM |
#!/bin/bash | |
# Criado em: Sab 18/Fev/2012 hs 19:10 | |
# Last Change: Sab 18/Fev/2012 hs 19:10 | |
# vim:ft=sh:fdm=syntax:nu: | |
# Instituicao: <+nome+> | |
# Proposito do script: spech text from clipboard | |
# Autor: Sérgio Luiz Araújo Silva | |
# site: http://vivaotux.blogspot.com | |
# twitter: http://www.twitter.com/voyeg3r | |
# source: http://www.youtube.com/watch?v=4uKTamXonPs&feature=g-all-lik&context=G2707f4bFAAAAAAAAAAA |