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
class Banana { | |
constructor () { | |
this.ripeness = 0; | |
} | |
age() { | |
this.ripeness++; | |
} | |
report() { |
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 sensor = require('node-dht-sensor'); | |
sensor.read(22, 4, function(err, temperature, humidity) { | |
if (err) { | |
console.log("AHHHHHHHH error", err); | |
return; | |
} | |
console.log('temp: ' + temperature.toFixed(1) + '°C, ' + 'humidity: ' + humidity.toFixed(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
#!/bin/bash | |
# Make sure the NODE_MEDIA_PRIVATE_KEY environment variable is set | |
if [ -z ${NODE_MEDIA_PRIVATE_KEY+x} ]; then | |
echo "Make sure you set the NODE_MEDIA_PRIVATE_KEY is set"; | |
exit -1; | |
fi | |
PI_IP_ADDRESS="192.168.1.71" | |
SERVER_IP_ADDRESS="192.168.1.71" |
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
country=CA | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="Lighthouse Labs" | |
psk="the password" | |
id_str="work" | |
} |
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
country= | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="wifi name" | |
psk="wifi password" | |
} |
CREATE DATABASE bank;
USE bank;
CREATE TABLE accounts (
id integer PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(255),
balance DECIMAL(10,2)
);
The bucket policy. Remember to replace sammeechward.xyz
with your bucket's name:
{
"Version": "2012-10-17",
"Statement": [
OlderNewer