We'll assume an OS X Mavericks (10.9) box here.
You'll need:
- Vagrant
- Vagrant's VMware Fusion provider
| ref: | |
| - https://www.meetup.com/de-DE/attraktor/events/238182737/ | |
| - https://wiki.attraktor.org/RGB_Moodlight | |
| res: | |
| - https://www.arduino.cc/en/main/software | |
| - http://zadig.akeo.ie/ | |
| # Setup Arduino IDE and solve the basic issues for your OS. |
| use ethernet cable and connect raspberrypi directly | |
| ipconfig : check the new address on the new network | |
| arp -a : find the neighbour hood, identify raspberrypi ip by exlusion of all broadcast and multicast addresses | |
| use the ip for ssh access | |
| or use ssh raspberrypi.local, if it has a avahi daemon running | |
| (Install PuTTY on windows for ssh client, pftp etc.) |
| 1. Check-in at http://alexa.design/hamburgskills | |
| 2. Create a free account at http://developer.amazon.com | |
| 3. Create an account at http://aws.amazon.com | |
| Build & publish THREE skills within 30 days! | |
| -> get a device | |
| Alexa Resources | |
| http://alexa.design/ask |
| WTD 2017 Info Board Team R.E.D. | |
| =============================== | |
| Sources on Github: https://github.com/jforge/wtd-2017 | |
| == PubsubClient for Arduino | |
| https://github.com/knolleary/pubsubclient | |
| https://gist.github.com/igrr/7f7e7973366fc01d6393 |
| # typical failure, if you don't defined explicite stateHandlers, but only 'global' handlers, together with an state change to | |
| # this.handler.state = states.ASKMODE; | |
| # Either avoid this state setting, or defined the state handlers for every state of | |
| # const states = { | |
| # STARTMODE: '_STARTMODE', // Prompt the user to start or restart the game. | |
| # ASKMODE: '_ASKMODE', // Alexa is asking user the questions. | |
| # DESCRIPTIONMODE: '_DESCRIPTIONMODE' // Alexa is describing the final choice and prompting to start again or quit | |
| #}; | |
| 2017-09-13T16:44:51.784Z dcfe0c3e-98a2-11e7-ac8e-2da12a149a47 |
| int speakerPin = 9; | |
| int length = 70; | |
| String notes[] = {"G4","G4", "G4", "D#4/Eb4", "A#4/Bb4", "G4", "D#4/Eb4","A#4/Bb4", "G4", "D5", "D5", "D5", "D#5/Eb5", "A#4/Bb4", "F#4/Gb4", "D#4/Eb4","A#4/Bb4", "G4", "G5","G4","G4","G5","F#5/Gb5", "F5","E5","D#5/Eb5","E5", "rest", "G4", "rest","C#5/Db5","C5","B4","A#4/Bb4","A4","A#4/Bb4", "rest", "D#4/Eb4", "rest", "F#4/Gb4", "D#4/Eb4","A#4/Bb4", "G4" ,"D#4/Eb4","A#4/Bb4", "G4"}; | |
| int beats[] = { 8, 8, 8, 6, 2, 8, 6 , 2 ,16 , 8, 8, 8, 6, 2, 8, 6, 2, 16,8,6,2,8,6,2,2, 2, 2,6,2,2,8,6,2,2,2,2,6,2,2,9,6,2,8,6,2,16 }; | |
| int tempo = 50; | |
| void playTone(int tone, int duration) { | |
| for (long i = 0; i < duration * 1000L; i += tone * 2) { | |
| digitalWrite(speakerPin, HIGH); | |
| delayMicroseconds(tone); |
| private static OkHttpClient getUnsafeOkHttpClient() { | |
| try { | |
| // Create a trust manager that does not validate certificate chains | |
| final TrustManager[] trustAllCerts = new TrustManager[]{ | |
| new X509TrustManager() { | |
| @Override | |
| public void checkClientTrusted(java.security.cert.X509Certificate[] chain, | |
| String authType) throws CertificateException { | |
| } |
| https://www.smart-wohnen.de/haus-garten/artikel/so-gehts-einen-magic-mirror-selbst-bauen/ | |
| https://www.glas-star.de/spionspiegelnachmass/chrome-spy-spiegel/ |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.