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 is testing code for the circut to make sure all of the | |
//physical Arduino I/O is working. It checks a potentiometer or other | |
//sensors on the AO PIN and equates it to the future number of mails | |
//in the inbox. | |
//------------------------------------------------- OUTPUTS AND THEIR VARIABLES | |
int beePins[beeTotalNumber] = {9, 10, 11 }; | |
//INPUTS AND THEIR VARIABLES | |
int howManyNewEmails = 0; |
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
# (find) in this directory (.) items of (-type) file (f) whose last modification (-mtime) was less than 365 days ago (-365) | |
# pipe the result into a file called newfiles.txt | |
find . -type f -mtime -365 > newfiles.txt | |
#look at newfiles.txt | |
cat newfiles.txt | |
#if everything listed is a malicious file | |
#run the find again, but instead of outputing to file | |
#run as a subprocess (-exec) the remove command (rm) on each result ({}) |
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
//------------------------------------------------------------ START LICENSE | |
/*The MIT License (MIT) | |
Copyright (c) 2014 Carlyn Maw | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
#commands once logged in to the Intel Galileo Board | |
#I ran to create test files. | |
df -h | |
cd /media/realroot | |
ls -l | |
echo "go away" > deleteMe_01.txt | |
cat deleteMe_01.txt | |
echo "go away" > deleteMe_02.txt | |
echo "go away" > deleteMe_03.txt | |
echo "go away" > deleteMe_04.txt |
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
Port = YOURPORT | |
BaudRate = 115200 | |
DataBits = 8 | |
Parity = N | |
StopBits = 1 | |
FlowControlCTS = false | |
FlowControlDTR = false | |
FlowControlXON = false | |
DTRDefaultState = true | |
RTSDefaultState = true |
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
# Returns 18 | |
# Place this file in the top level of your Galileo's SD card. | |
print len("I should return 18") |
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
//detivative of code posted here: https://www.sparkfun.com/news/1360 | |
//discussion of project here: http://blog.carlynorama.com/tag/intelgalileo/ | |
//RELEVANT CHANGES FROM OC COMMENTED IN ALL CAPS | |
int getEmailCount() | |
{ | |
//SAME VARIABLES | |
int digits = 0; | |
char temp[10]; | |
int emailCnt = 0; |
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
#for translating letter grades when the students number grade is in cell | |
#A9 and there are named cells (coA, coB, coC, coD) with the cutoffs | |
=IF($A$9>=coA,"A",IF($A$9>=coB,"B",IF($A$9>=coC,"C",IF($A$9>=coD,"D","F")))) |
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/sh | |
#assumes Xcode/gcc and FireFox installed | |
#install hombrew | |
#ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
#brew doctor | |
brew install python3 #includes pip3 | |
pip3 install virtualenv | |
mkdir -p ~/$PATH/$SITENAME | |
mkdir -p ~/$PATH/$SITENAME/database |
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
#assumes Mac OS X 10.9 with Xcode Command line tools and FireFox installed | |
#install hombrew | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew doctor | |
#install python 3 in homebrew's path and get virtualenv for it | |
brew install python3 #includes pip3 | |
pip3 install virtualenv | |
#------ MICHELLE START HERE ---------------# |
OlderNewer