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
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode... | |
Warning: Missing build name (CFBundleShortVersionString). | |
Warning: Missing build number (CFBundleVersion). | |
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store. | |
Running Xcode build... | |
Xcode build done. 6.9s | |
Failed to build iOS app | |
Error output from Xcode build: | |
↳ | |
** BUILD FAILED ** |
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
#!/bin/bash | |
DATE=$(date +"%Y-%m-%d_%H%M%S") | |
fswebcam -S 30 -r 480x240 --no-banner /home/pi/Pictures/data-collection/$DATE.jpg |
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 numpy as np | |
import tensorflow as tf | |
import time | |
from sms import send_message | |
def run_prediction(): | |
fileContent = tf.io.read_file('live.jpg', name="loadFile") | |
image = tf.image.decode_jpeg(fileContent, name="decodeJpeg") |
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
*/5 * * * * ~/Documents/github/garage-monitoring/data-collection/take_picture.sh 2>&1 | |
*/30 * * * * gsutil -m cp -r /home/pi/Pictures/data-collection/ gs://garage-door-training-data |
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
function kill(people) { | |
const survivors = []; | |
for(let i =0; i < people.length; i++) { | |
if (i % 2 === 0) { // index start from 0, so odd is even | |
console.log("a person is killed"); | |
// then do nothing | |
} | |
else { | |
survivors.push(people[i]); | |
// Or add to new line; |
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
' some sample code |