Using the excellent Volumio websocket APIs
Tested with Music Library, Spotify Connect, Webradio, Mixcloud.
- Add files to smashing/widgets/volumio
- Change line 5 of volumio.coffee to the LAN address of your Volumio device
// Sources | |
// https://dayoneapp.com/blog/journal-prompts/ | |
// https://www.yourdictionary.com/articles/reflective-journal-prompts | |
// find a good one? email me - paulusm gmail com | |
const addPrompt = function(){ | |
const prompts = [ | |
"Describe a time when you stood up for someone else. How did it make you feel about yourself?", | |
"What are your best qualities? How do they shape who you are?", |
Using the excellent Volumio websocket APIs
Tested with Music Library, Spotify Connect, Webradio, Mixcloud.
var getFeedForTag = function(){ | |
//Get the selected form options | |
var selectedTag = document.getElementById("tag"); | |
console.log("Selected tag - " + selectedTag.value); | |
// Build our API URL | |
var mixUrl = "https://api.mixcloud.com/search/?q="+ selectedTag.value + "&type=tag"; | |
//Create the request | |
var req = new XMLHttpRequest(); |
git push dokku master | |
+ export DOKKU_HOST_ROOT=/home/dokku | |
+ DOKKU_HOST_ROOT=/home/dokku | |
+ export DOKKU_DISTRO | |
++ . /etc/os-release | |
++ echo ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku |
# Based on "Introduction to Text Mining with R for Information Professionals" | |
# http://journal.code4lib.org/articles/11626 | |
# Topic Modelling using Tidy Text from | |
# http://tidytextmining.com/topicmodeling.html | |
# Interview data from | |
# https://figshare.com/authors/Kevin_Sanders/601331 | |
# Uncomment to install these if needed |
// The user list | |
var nodes=[ | |
{id:"Bob", label:"Bob", url:"http://www.example.org/~bob"}, | |
{id:"Alice", label:"Alice", url:"http://www.example.org/~alice"}, | |
{id:"Fred", label:"Fred", url:"http://www.example.org/~fred"}, | |
]; | |
var edges = []; | |
$().ready(function(){ |
var VCTranslate = function(e){ | |
"use strict"; | |
var coreMission = "defeating our Dalek overlords"; | |
var nouns = ["cake", "crisps", "nuts","class As","drugs","alcohol"]; | |
var activities = ["smooching", "drinking heavily", "forgetting where they live","the debauchery"]; | |
var adjectives = ["immature", "scary", "lovely", "epic", "fruity", "gorgeous"] | |
var nounCount = 0,activityCount = 0,adjIndex; | |
// Find the span elements on the page | |
var spans = document.getElementsByTagName("span"); |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>MadLib JavaScript Example</title> | |
<meta charset="utf-8"> | |
<style> | |
body{font-family:helvetica, sans-serif; font-size:2em;} | |
input{font-family:helvetica, sans-serif; font-size:1em; display:block; margin:auto; } | |
#output{padding:2% 10% 2% 5%;} | |
</style> |
var feed = "http://info.uwe.ac.uk/news/xml/uwenewsrss.xml"; | |
var api = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=displayFeed&output=json&q=" + encodeURIComponent(feed); | |
//This creates a script element to make a "jsonp" request each time the page is requested | |
var script = document.createElement('script'); | |
script.src = api; | |
document.getElementsByTagName('head')[0].appendChild(script); | |
//use the data that comes back to put into the HTML div | |
var displayFeed = function(data){ | |
// loop through the feed items |
<form action="saveform.php" method="post"> | |
<label for="name">Name:</label> | |
<input type="text" id="name" name="name" value="enter your name"> | |
<label for="comment">Comment:</label> | |
<textarea id="comment" name="comment" rows="10" cols="25" value="comment"> | |
Please give me feedback! | |
</textarea> | |
<input type="submit" value="Save Comment" id="submit"> | |
</form> |