Laravel Mix's Webpack Configuration for auto dependencies extract and Workbox Caching strategies
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
| location ~ ^/(.*)/(.*)/other/stuff/(.*)/this-is-static { | |
| location /static-cache { | |
| # root/alias or other config here | |
| } | |
| try_files /static-cache/$1/$2/$3/this-is-static @app; | |
| } | |
| # or | |
| location ~ ^/(.*)/(.*)/other/stuff/(.*)/this-is-static { |
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
| import os | |
| import json | |
| import urllib2 | |
| url = 'https://hooks.slack.com/services/COMPLETE_ENDPOINT_HERE' | |
| channel = '#servers' | |
| server = os.environ.get('BBHOSTNAME') | |
| color = os.environ.get('BBCOLORLEVEL') | |
| msg = os.environ.get('BBALPHAMSG') |
NOW UPDATED TO INCLUDE CONTROL OF THE BACKGROUND PULSE AND SCREEEN BOTH PROGRAM AND TOUCHOSC TEMPLATE CHANGED
USE SPloopController4.rb for SP versions 3.31, or 4 or greater. YOu can use the new version of TouchOSC see later in the ReadMe file. A SEPARATE VERSION TUNED FOR Pi3 IS ALSO INCLUDED The original question was concerned with using mekey-makey as the "switch input" source. Here I have used a TouchOSC template with 11 pushbuttons on it as the input source. To make it more interesting, I also drive a large "LED" on the TouchOSC screen with OSC commands from the Sonic Pi program. The program has been streamlined to use just ONE live loop to detect the switches being pushed,
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
| /** | |
| * Changes value to past tense. | |
| * Simple filter does not support irregular verbs such as eat-ate, fly-flew, etc. | |
| * http://jsfiddle.net/bryan_k/0xczme2r/ | |
| * | |
| * @param {String} value The value string. | |
| */ | |
| Vue.filter('past-tense', function(value) { | |
| // Slightly follows http://www.oxforddictionaries.com/us/words/verb-tenses-adding-ed-and-ing | |
| var vowels = ['a', 'e', 'i', 'o', 'u']; |
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/bash | |
| # | |
| # Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
| # (Tested on Ubuntu 12.04) trying on ubuntu server 14.04 | |
| # Add Google Chrome's repo to sources.list | |
| echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
| # Install Google's public key used for signing packages (e.g. Chrome) | |
| # (Source: http://www.google.com/linuxrepositories/) |
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
| #EXTM3U | |
| #EXTINF:-1,BBC - Radio 1 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p | |
| #EXTINF:-1,BBC - Radio 2 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p | |
| #EXTINF:-1,BBC - Radio 3 | |
| http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls | |
| #EXTINF:-1,BBC - Radio 4 | |
| http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p | |
| #EXTINF:-1,BBC - Radio 5 live |