Skip to content

Instantly share code, notes, and snippets.

View solyarisoftware's full-sized avatar
🏠
www.twitter.com/solyarisoftware

Giorgio Robino solyarisoftware

🏠
www.twitter.com/solyarisoftware
View GitHub Profile
@solyarisoftware
solyarisoftware / idle.rb
Last active July 11, 2023 20:58
Ruby script to test how to fetch IMAP mails (IDLE "push" mode) without pulling (in "real-time")
# Encoding: utf-8
#
# idle.rb
#
# goal:
# Ruby script to test how to fetch IMAP mails with IDLE mode.
# IMAP IDLE allow a sort of "push" / "real-time" delivery.
#
# I used the script to test LATENCY (end-to-end delivery times)
@solyarisoftware
solyarisoftware / ToneASR.md
Last active June 17, 2021 17:50
Tone ASR notes
input: audio/speech

│
│
│                                     ┌─────────────────────────────────────────┐
│                            (1)      │                                         │
│            ┌─────────────────┐      │                                         │
│            │                 │ text │                                         │
│            │                 │      │                                         │
Verb Description Aliases
tag return the current state tag currentState
exec transact to an output state goout setOutputState gotoOutputState nextOutputState
next transact to an input state goto setInputState gotoInputState nextInputState
say send a text message to user ask prompt
tts send a speech message to user
asr s the incoming message a speech?
match match a pattern/intent
@solyarisoftware
solyarisoftware / responses.md
Last active April 22, 2020 08:31
RASA Response Selectors - responses.md file example (from https://rasa.com/docs/rasa/user-guide/building-assistants/#id10)

ask channels

  • faq/ask_channels
    • We have a comprehensive list of supported connectors, but if you don't see the one you're looking for, you can always create a custom connector by following this guide.

ask languages

  • faq/ask_languages
    • You can use Rasa to build assistants in any language you want!
" PLUGIN USING VIM-PLUG
" https://github.com/junegunn/vim-plug
"
" Load vim-plug
if empty(glob("~/.vim/autoload/plug.vim"))
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif
call plug#begin('~/.vim/plugged')
[{"id":"82fb6859.2fa9a8","type":"tab","label":"HTTP server /date /datesub","disabled":false,"info":""},{"id":"4c772c0e.fcaa34","type":"tab","label":"cyclic hello word","disabled":true,"info":""},{"id":"b828739b.f802","type":"tab","label":"HML5 example","disabled":true,"info":""},{"id":"c871b554.2443c8","type":"subflow","name":"fill date in json","info":"","in":[{"x":189,"y":205,"wires":[{"id":"58b037d7.1fabf8"}]}],"out":[{"x":1084,"y":511,"wires":[{"id":"48e192e4.258cdc","port":0}]}],"inputLabels":["http request"],"outputLabels":["http body response"]},{"id":"a7411cf7.6b66f","type":"ui_group","z":"4c772c0e.fcaa34","name":"Default","tab":"","disp":true,"width":"6","collapse":false},{"id":"384a7db3.911292","type":"ui_tab","z":"4c772c0e.fcaa34","name":"Home","icon":"dashboard"},{"id":"5aedcd04.ececb4","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-s
#
# screen config file; ~/.screenrc
#
# Autodetach session on hangup instead of terminating screen completely
autodetach on
# Turn off the splash screen
startup_message off
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@solyarisoftware
solyarisoftware / ChatScript_Vim_Syntax_Highlight.md
Last active March 31, 2017 19:39
ChatScript Vim Syntax Highlight