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
// Step 1. Go to lodash.com | |
// Step 2. Press F12 to open Developer Tools | |
// Step 3. Go to the "Console" tab | |
// Step 4. Copy and paste this entire gist into the console | |
// Step 5. Replace the value of "persons" with your list of participants | |
// Step 6. Press enter. A table will appear with Bengals scores going across, Rams scores going down. | |
// Note: If participants cannot be evenly distributed into all 100 squares, generated picks will be "pushed" to the left | |
// and you will end up with some empty squares. | |
const create = () => { | |
const persons = ['Mom', 'Bill', 'Mary', 'Dad', 'Grandma'] |
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
/* | |
MIT License | |
Copyright (c) 2024 Michael Joyce | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
// Set the coins you mine: | |
// name: coin name as it appears in whattomine API response | |
// command: full path of the executable you want to run for that coin | |
// args: array of args to be passed to the command | |
const config = [ | |
{ | |
name: 'Electroneum', | |
command: 'C:\\Users\\SomePath\\xmr-stak-cpu-win64-electroneum\\xmr-stak-cpu\\xmr-stak-cpu.exe', | |
args: ['C:\\Users\\Mike\\DownloadsSomePath\\xmr-stak-cpu-win64-electroneum\\xmr-stak-cpu\\config.txt'], | |
}, |
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
const int VAL_PROBE = 0; // Analog pin 0 | |
const int MOISTURE_LEVEL = 90; // the value after the LED goes ON | |
void setup() { | |
Serial.begin(9600); | |
} | |
void LedState(int state) { | |
digitalWrite(13, state); // connect LED to 13 | |
} |