-
WiFi
-
WebServer
-
WebSocketsServer
-
Install Espressif Boards
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
#include <WiFi.h> | |
#include <FastLED.h> | |
#include <WebServer.h> | |
#define LED_PIN 5 | |
#define NUM_LEDS 35 | |
#define BRIGHTNESS 10 | |
const char* ssid = "Noisebridge"; | |
const char* password = "noisebridge"; |
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
function App() { | |
return ( | |
<> | |
<h1>Tic Tac Toe</h1> | |
<div className="board"> | |
<div className="row"> | |
<div className="square">X</div> <div className="square">X</div> | |
<div className="square">X</div> | |
</div> |
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
const numbers = [4,5,9,10]; | |
function reducerSum(acc, next) { | |
return acc + next; | |
} | |
function reducerDouble(acc, next) { | |
acc.push(next * 2); | |
return acc; | |
} |
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
let colors = []; | |
colors.push('red'); | |
colors.push('green'); | |
colors.push('blue'); | |
colors.unshift('yellow'); | |
console.log(colors, 'colors'); |
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
console.log("Hello World"); | |
console.log("Hello World"); | |
console.log("Hello World"); | |
console.log("Hello World"); | |
console.log("Hello World"); |
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
#include <FastLED.h> | |
#define NUM_LEDS 250 | |
#define DATA_PIN A0 | |
#define DIRECTION right | |
CRGB leds[NUM_LEDS]; | |
void shiftRight(byte reds[], byte greens[], byte blues[]) { | |
int tempRed = reds[NUM_LEDS - 1]; | |
int tempGreen = greens[NUM_LEDS - 1]; |
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
import Header from './components/Header'; | |
import Footer from './components/Footer'; | |
import About from './components/About'; | |
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; | |
import { useState, useEffect } from 'react'; | |
import Home from './components/Home'; | |
function App() { | |
const [tasks, setTasks] = useState([]); |
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
import UIKit | |
// You can create our own initializer with structs | |
struct Dog { | |
var name: String | |
var age = 0 | |
init(name: String) { |
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
import UIKit | |
// Structs | |
struct Music { | |
var song: String | |
let time: Int | |
} | |
var goodMusic = Music(song: "Blues", time: 33) |
NewerOlder