This file contains 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
Pre-requisits: | |
My build worked for me and my setup which includes: Raspberry Pi 3b, HiFiBerry DAC+ Standart, wired connection (for some reason connection to plexamp drops on wireless), HiFiBerryOS installed | |
You need version 9 of nodejs in your system, easiest way in my opinion to install custom version of nodejs and to not affect version 12 that is present in HiFIBerryOS, is to use nvm | |
1. Ssh to your hifiberry installation | |
2. Create bash profile file (this is required by nvm) | |
# touch ~/.profile | |
3. Install NVM |
This file contains 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
/** | |
* Get the distance between 2 different addresses. | |
* @param {string} origin_address The origin/start address as string Eg. "102 Petty France, London, SW1H 9AJ". | |
* @param {string} destination_address The destination/end address as string Eg. "10 Whitechapel High Street, London, E1 8QS". | |
* @param {string} travel_mode The mode of travel as string. Default: DRIVING. Options: BICYCLING, TRANSIT, WALKING. | |
* @param {string} return_type The return type as string. Default: MILES. Options: KILOMETERS, MINUTES, HOURS, STEPS. | |
* @return the distance between 2 different addresses. | |
* @customfunction | |
*/ | |
function GOOGLEDISTANCE(origin_address,destination_address,travel_mode,return_type) { |
This file contains 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
#! /usr/bin/env python | |
# Import a mbox file to a Google Group using https://developers.google.com/admin-sdk/groups-migration/index | |
# You'll need to install https://developers.google.com/api-client-library/python/ | |
# and enable Groups Migration API, read prerequisits of the API SDK | |
from __future__ import print_function | |
import mailbox | |
import StringIO |
This file contains 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
// add this salesforce.js file to your scripts dir after enabling developer mode | |
// this gets included via entries in the site.region file | |
Y.namespace('Template').Salesforce = Class.create({ | |
/* | |
baseUrl | |
oid | |
sqsFormSubmit | |
*/ | |
initialize: function (config) { |
This file contains 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
(* | |
File: OmniFocus_Due_List.scpt | |
Revision: 1.1 | |
Revised: 2019-02-10 | |
Summary: Create taskpaper list of tasks due +/- 7d from current date. | |
----------------------------------------------------------- | |
Script based on Justin Lancy (@veritrope) from Veritrope.com | |
http://veritrope.com/code/write-todays-completed-tasks-in-omnifocus-to-a-text-file |
This file contains 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
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/5834741/raw/grablinks.js?x="+(Math.random());})(); |
This file contains 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
#covert an image in the clipboard to a 57x57 rgb icon and store base64 version of it into the clipboard. | |
#if an image is not in the clipboard the base64 string 'b64str' will be loaded and displayed. | |
#after running the 1st time replace the contents of b64str with the clipboard. | |
from PIL import Image | |
import clipboard | |
from StringIO import * | |
import base64 | |
b64str=""" |