Skip to content

Instantly share code, notes, and snippets.

@CliffS
CliffS / Milight.coffee
Created March 12, 2018 11:18
milight module
Constants = require '../local/Constants'
Controller = require('node-milight-promise').MilightController
commandsV6 = require('node-milight-promise').commandsV6
milight = commandsV6.fullColor
discoverBridges = require('node-milight-promise').discoverBridges
log = Constants.log 'milight'
class Milight
@CliffS
CliffS / google-calendar.coffee
Created June 11, 2020 17:19
Library to use Google Calendar
require '../utils/formats'
PThrottle = require 'p-throttle'
Google = require('googleapis').google
class Calendar
constructor: (config) ->
@calendars = Google.calendar 'v3'
@calid = config.calendarId
#!/bin/bash
MAX=20 # maximum numbe of loops
LOGFILE=~/tmp/start-and-move.log
rm -f $LOGFILE
log() {