This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Verifying that "moonhouse.id" is my Blockstack ID. https://onename.com/moonhouse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Simsport är så spännande att det ger dig simhud. | |
| {"p_8":"0","p_7":"0","p_6":"0","p_5":"0","p_4":"0","p_3":"0","p_2":"10","p_1":"0"} | |
| {"p_8":"1","p_7":"1","p_6":"1","p_5":"1","p_4":"1","p_3":"1","p_2":"0","p_1":"1"} | |
| Verkligheten är alltid mer spännande än fiktion. | |
| {"p_8":"2","p_7":"0","p_6":"0","p_5":"0","p_4":"2","p_3":"0","p_2":"0","p_1":"6"} | |
| {"p_8":"0","p_7":"0","p_6":"2","p_5":"2","p_4":"0","p_3":"6","p_2":"0","p_1":"0"} | |
| Ja för en tuff boxningsfilm en fredagskväll? | |
| {"p_8":"0","p_7":"0","p_6":"0","p_5":"10","p_4":"0","p_3":"0","p_2":"0","p_1":"0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export CFLAGS=-Qunused-arguments | |
| export CPPFLAGS=-Qunused-arguments | |
| pip install cython | |
| brew install liblo | |
| pip install -r requirements.txt | |
| python setup.py install | |
| pip install pygame | |
| brew install portmidi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| curl 'https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCSGHj0YjencmGUSksbMbBVQ&key=YOURAPIKEY' 2>/dev/null | grep -o '"subscriberCount": "\d*"' | tr -d -c 0-9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'pdf-reader' | |
| weekdays = %w{Söndag Måndag Tisdag Onsdag Torsdag Fredag Lördag} | |
| reader = PDF::Reader.new("P4_V.37.-15.pdf") | |
| page = reader.pages.first | |
| week_menu = {} | |
| week_menu.default = '' | |
| current_weekday = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| while true; do | |
| # Clean up previously running apps, gracefully at first then harshly | |
| killall -TERM chromium 2>/dev/null; | |
| killall -TERM matchbox-window-manager 2>/dev/null; | |
| sleep 2; | |
| killall -9 chromium 2>/dev/null; | |
| killall -9 matchbox-window-manager 2>/dev/null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ -f /boot/xinitrc ]; then | |
| ln -fs /boot/xinitrc /home/pi/.xinitrc; | |
| su - pi -c 'startx' & | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Wait for the TV-screen to be turned on... | |
| while ! $( tvservice --dumpedid /tmp/edid | fgrep -qv 'Nothing written!' ); do | |
| bHadToWaitForScreen=true; | |
| printf "===> Screen is not connected, off or in an unknown mode, waiting for it to become available...\n" | |
| sleep 10; | |
| done; | |
| printf "===> Screen is on, extracting preferred mode...\n" | |
| _DEPTH=32; | |
| eval $( edidparser /tmp/edid | fgrep 'preferred mode' | tail -1 | sed -Ene 's/^.+(DMT|CEA) \(([0-9]+)\) ([0-9]+)x([0-9]+)[pi]? @.+/_GROUP=\1;_MODE=\2;_XRES=\3;_YRES=\4;/p' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This file contains any messages produced by compilers while | |
| running configure, to aid debugging if configure makes a mistake. | |
| It was created by SphinxTrain configure 5prealpha, which was | |
| generated by GNU Autoconf 2.69. Invocation command line was | |
| $ ./configure | |
| ## --------- ## | |
| ## Platform. ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ ~ brew tap watsonbox/cmu-sphinx | |
| ==> Tapping watsonbox/cmu-sphinx | |
| Cloning into '/usr/local/Library/Taps/watsonbox/homebrew-cmu-sphinx'... | |
| remote: Counting objects: 41, done. | |
| remote: Total 41 (delta 0), reused 0 (delta 0), pack-reused 41 | |
| Unpacking objects: 100% (41/41), done. | |
| Checking connectivity... done. | |
| Warning: Could not create link for watsonbox/cmu-sphinx/cmu-pocketsphinx, as it | |
| conflicts with Homebrew/homebrew/cmu-pocketsphinx. You will need to use the | |
| fully-qualified name when referring this formula, e.g. |