Skip to content

Instantly share code, notes, and snippets.

View GertjanReynaert's full-sized avatar
🏠
Working from home

Gertjan Reynaert GertjanReynaert

🏠
Working from home
View GitHub Profile
// paste in your console
speechSynthesis.onvoiceschanged = function() {
var msg = new SpeechSynthesisUtterance();
msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0];
msg.text = Object.keys(window).join(' ');
this.speak(msg);
};

Elm 0.16 Migration of Simple App

Once 0.16 installed

Installing my app's packages didn't work

elm package install

I got the following message

@msroot
msroot / gist:53ad5300c1dded09ce27
Created April 22, 2015 04:25
webkitSpeechRecognition
var recognition = new webkitSpeechRecognition();
recognition.lang = "en-GB";
recognition.continuous = true;
recognition.interimResults = true;
recognition.onresult = function(event) {
console.log(event)
}
recognition.start();
@arnewauters
arnewauters / Braindump CQRS.rb
Created February 2, 2015 16:42
Braindump CQRS
# CLIENT (if RAILS)
class ChangeTreatmentForm
include ActiveModel::Model
attr_reader :reason, :episode_id, :new_treament_id
validate :reason, :episode_id, :new_treatment_id present: true
def to_command