sudo apt-get update
sudo apt-get upgrade
sudo apt-get install avahi-daemon
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
// Run this command to generate base config and vs code settings: | |
// pnpm dlx @antfu/eslint-config@latest | |
import antfu from "@antfu/eslint-config"; | |
export default antfu({ | |
type: "app", | |
typescript: true, | |
formatters: true, | |
stylistic: { |
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/python | |
# -*- coding:utf-8 -*- | |
import epd2in7b | |
import time | |
from PIL import Image,ImageDraw,ImageFont | |
import traceback | |
try: | |
epd = epd2in7b.EPD() |
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
<?php | |
$args = array( | |
'post_author' => 1, | |
'post_content' => '', | |
'post_status' => "draft", // (Draft | Pending | Publish) | |
'post_title' => '', | |
'post_parent' => '', | |
'post_type' => "product" | |
); |
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 "FastLED.h" | |
// How many leds in your strip? | |
#define NUM_LEDS 60 | |
// For led chips like Neopixels, which have a data line, ground, and power, you just | |
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock, | |
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN | |
#define DATA_PIN 3 | |
#define CLOCK_PIN 13 |
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 controlP5.*; | |
import processing.serial.*; | |
boolean dataReady = false; | |
float offset = -1; | |
float voltsPerDiv = 0.5; | |
int ch1Color = color(255); | |
int ch2Color = #FF6464; |
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
/* | |
Simple Metronome (RThurber) v1 | |
This example code is in the public domain. | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. | |
int led = 13; // LED and Piezo | |
int sensorPin = 0; // select the input pin for the potentiometer | |
int sensorValue = 0; | |
int metronomeBPM = 0; |
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
MySQL | |
=============== | |
Getting started: http://www.sqlteaching.com/ | |
Related tutorial: http://cd64.de/mysql-cli | |
SQL joins infografic: http://cd64.de/sql-joins | |
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 "FastLED.h" | |
// DiscoStrobe | |
// *Flashing* rainbow lights that zoom back and forth to a beat. | |
// See your doctor before using this code if you have certain neurological conditions. | |
// | |
// Mark Kriegsman, July 2015 | |
#if FASTLED_VERSION < 3001000 |
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 <SmartMatrix.h> | |
#include <FastLED.h> | |
const uint8_t kMatrixWidth = 32; | |
const uint8_t kMatrixHeight = 32; | |
const uint8_t kBorderWidth = 2; | |
#define NUM_LEDS (kMatrixWidth*kMatrixHeight) | |
CRGB leds[NUM_LEDS]; |
NewerOlder