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 <WebServer.h> | |
#include <WiFi.h> | |
#include <WiFiUdp.h> | |
//set up to connect to an existing network (e.g. mobile hotspot from laptop that will run the python code) | |
const char* ssid = "ssid"; | |
const char* password = "password"; | |
WiFiUDP Udp; | |
unsigned int localUdpPort = 4210; // port to listen on | |
char incomingPacket[255]; // buffer for incoming packets |
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
//this code will show you the battery charge left on the screen | |
//and dim the screen (to conserve power) | |
//and go to sleep when you press the left builtin button | |
//to wake it up again, just hit the reset button on the side | |
//download as zip and add to libraries folder in Arduino folder https://github.com/pangodream/18650CL | |
#include <Pangodream_18650_CL.h> | |
#define ADC_PIN 34 |
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
# https://youtu.be/9nT23gPfEb8 | |
import bpy | |
import math | |
#delete all objects | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
#delete all materials | |
for m in bpy.data.materials: |
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 bpy | |
import random | |
#delete all objects | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
#delete all materials | |
for m in bpy.data.materials: | |
bpy.data.materials.remove(m) | |
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 bpy | |
#delete all objects | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
#delete all materials | |
for m in bpy.data.materials: | |
bpy.data.materials.remove(m) | |
#create a new material |
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 bpy | |
#delete all objects | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
#delete all materials | |
for m in bpy.data.materials: | |
bpy.data.materials.remove(m) | |
#create a new material |
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 musicMachine = Machine( | |
{ | |
id: 'music', | |
initial: '0', | |
states: { | |
0 : { | |
on: { | |
t11: | |
{description: 'not((inCave passage)) and not((inMarket passage)) and not((inTown passage))', |
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
\documentclass[tikz, margin=5mm]{standalone} | |
\usepackage{pgfgantt} | |
\title{Gantt Charts with the pgfgantt Package} | |
\begin{document} | |
\begin{ganttchart}[ | |
vgrid={*{11}{gray, dotted}, *1{black, dashed}}, | |
bar label node/.append style={ | |
align=left, | |
text width=width("Aim 2. Software verificationx")} |
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 <WebServer.h> | |
#include <WiFi.h> | |
#include <WiFiUdp.h> | |
// the IP of the machine to which you send msgs - this should be the correct IP in most cases (see note in python code) | |
#define CONSOLE_IP "192.168.1.2" | |
#define CONSOLE_PORT 4210 | |
const char* ssid = "ESP32"; | |
const char* password = "12345678"; | |
WiFiUDP Udp; |
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 bpy | |
import random | |
bpy.ops.object.select_all(action='SELECT') | |
bpy.ops.object.delete() | |
from math import sin, pi | |
bpy.ops.object.empty_add() | |
cameraPath = bpy.context.active_object | |
cameraPath.keyframe_insert("location", frame=1) |
NewerOlder