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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "../utils/Context.sol"; | |
/** | |
* @dev Contract module which provides a basic access control mechanism, where | |
* there is an account (an owner) that can be granted exclusive access to | |
* specific functions. |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import '@openzeppelin/contracts/token/ERC1155/extensions/ERC1155Supply.sol'; | |
import '@openzeppelin/contracts/token/ERC1155/ERC1155.sol'; | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
contract FoodmaskuPOAPs is ERC1155Supply, Ownable { |
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 receives a HIGH or a LOW | |
// from pin 2. If pin 2 receives a HIGH | |
// it turns on the LED on pin 9 | |
int receiveValue = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(9,OUTPUT); | |
pinMode(2, INPUT); |
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
// read GSR values | |
// save them into a CSV file | |
import processing.serial.*; | |
Serial myPort; | |
int gsrValue; | |
int[] gsrTimer = new int[0]; | |
int[] gsrValues = new int[0]; | |
void setup() { |
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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int a = analogRead(0) / 4; | |
// Serial.println(a); | |
if (Serial.available() > 0) { | |
byte inbyte = Serial.read(); | |
if (inbyte == 'a') { |
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
ellipse(30,30,30,30); | |
println("Hello World!"); |
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
class KiteTail { | |
int x, y, c; | |
KiteTail(int _x, int _y) { | |
x = _x; | |
y = _y; | |
c = 20; | |
} | |
void display() { | |
ellipse(x, y, c, c); | |
} |
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
float k=0; // global variable | |
float c=0; | |
float d=0; | |
float b=0; | |
float g=0; | |
int x; | |
int y=-50; | |
int yAdd = 0; | |
float shakeRandomX, shakeRandomY; |
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
// I am making a ball | |
// it is going to go back and forth | |
// from side to side. | |
// when it hits the side | |
// it smushes a bit. | |
int x, y; | |
int xAddition, yAddition; | |
int ballWidth; | |
int ballHeight; |
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
// I am making a ball | |
// it is going to go back and forth | |
// from side to side. | |
// when it hits the side | |
// it smushes a bit. | |
int x, y; | |
int xAddition; | |
int ballWidth; |
NewerOlder