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
| exports.handler = function(context, event, callback) { | |
| let x = Math.floor(Math.random() * (9 - 1) + 1); | |
| let y = Math.floor(Math.random() * (9 - 1) + 1); | |
| const operators = ['+', '*', '-', '/']; | |
| function randomOperator(operators) { |
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
| esphome: | |
| name: codecard3 | |
| platform: ESP8266 | |
| board: esp12e | |
| # on_boot: | |
| # - output.turn_off: onboard_led | |
| wifi: | |
| ssid: !secret wifi_ssid | |
| password: !secret wifi_password |
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 is a simple bash script to load up a hard coded spotify url and play it | |
| # make sure to make the file excutable (chmod 777 autostart_music.sh) | |
| # to add it on boot, look here: https://www.raspberrypi.org/documentation/linux/usage/rc-local.md | |
| # Made by LUNZCORP | |
| mpc clear # this clears any loaded music | |
| mpc random on |