sudo apt-get update
sudo apt-get dist-upgrade
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
require 'filewatcher' | |
require 'rubygems' | |
FileWatcher.new(["./"]).watch() do |filename, event| | |
if(event == :changed || event == :delete || event == :new) | |
´say "Your file has been rendered"´ | |
end | |
end |
require 'filewatcher' | |
require 'win32/sound' | |
include Win32 | |
FileWatcher.new(["./"]).watch() do |filename, event| | |
if(event == :changed || event == :delete || event == :new) | |
Sound.beep(600,200) | |
end | |
end |
let delta = 0 | |
let n2 = 0 | |
let starttid = 0 | |
basic.forever(function () { | |
basic.pause(Math.randomRange(1000, 5000)) | |
starttid = input.runningTimeMicros() | |
while (!(input.buttonIsPressed(Button.A))) { | |
led.plot(0, 0) | |
} | |
led.unplot(0, 0) |
sudo apt-get update
sudo apt-get dist-upgrade
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
sudo apt-get install xscreensaver
xscreensaver
Mode: "Disable screen saver"
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
body { | |
width: 100vw; |
const httpIP = "http://172.20.66.181" | |
const app = require('express')() | |
const axios = require("axios") | |
const exec = require("child_process").exec | |
const http = require('http').createServer(app) | |
const io = require('socket.io')(http) | |
app.get('/', function serveIndexHtml(_, res) { | |
res.sendFile(__dirname + '/index.html') |
sudo nano /etc/hosts
Add this line:
104.16.110.30 registry.npmjs.org npmjs.org registry.npmjs.com npmjs.com
https://learn.sparkfun.com/tutorials/how-to-run-a-raspberry-pi-program-on-startup#method-2-autostart
First, install xterm:
sudo apt install xterm -y
Then, if it doesn't already exist, create this folder:
import clock from "../img/clock.svg" | |
import diaphragm from "../img/diaphragm.svg" | |
import money from "../img/money.svg" | |
import teamwork from "../img/teamwork.svg" | |
const cards = [ | |
{ icon: clock, h1Text: "Efficient", pText: "So efficient!" }, | |
{ icon: teamwork, h1Text: "Teamwork", pText: "Such teamwork" }, | |
{ icon: diaphragm, h1Text: "Diaphragm", pText: "Diaphphgraprhagm" }, |