openpgp4fpr:86EB237F8E8A19FE930F808ADD5C6B030F305FA1
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 { lvar, add, sub, mul, and, between, run } = require("logicjs"); | |
const circle = ({ a, b, r, x, y }) => { | |
const xMinusA = lvar(); | |
const yMinusB = lvar(); | |
const xMinusASquared = lvar(); | |
const yMinusBSquared = lvar(); | |
const rSquared = lvar(); |
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
import { addDays, isWeekend } from "date-fns"; | |
function nextNWeekdays(date, count) { | |
return nextNWeekdaysHelper(date, count, []); | |
} | |
function nextNWeekdaysHelper(date, count, nextWeekdaysSoFar) { | |
if (count === nextWeekdaysSoFar.length) { | |
return nextWeekdaysSoFar; | |
} |
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
#include <NewPing.h> | |
#include <Servo.h> | |
#define SERIAL_BAUD 115200 | |
#define TRIGGER_PIN 11 | |
#define ECHO_PIN 12 | |
#define MAX_DISTANCE 200 | |
#define SERVO_PIN 9 |
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
curl -L http://bit.ly/10hA8iC | bash |