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
| /* | |
| // This code is to test SD Card function on an Intel Galileo Board | |
| // It was complied from various examples which can be found: | |
| // | |
| // https://communities.intel.com/thread/46635 | |
| // https://communities.intel.com/message/229074 | |
| // http://arduino.cc/en/Reference/SD | |
| // http://forum.arduino.cc/index.php?topic=57460.0 | |
| // | |
| // Carlyn Maw 2014 |
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
| #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 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
| /* | |
| // This code is to test WiFi function on Arduino Boards | |
| // It was complied from various examples which can be found: | |
| // | |
| // http://arduino.cc/en/Tutorial/ConnectNoEncryption | |
| // http://arduino.cc/en/Tutorial/ConnectWithWPA | |
| // http://arduino.cc/en/Tutorial/WiFiWebClientRepeating | |
| // http://arduino.cc/en/Reference/WiFiClientConnect | |
| // | |
| // Carlyn Maw 2014 |
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
| Port = YOURPORT | |
| BaudRate = 115200 | |
| DataBits = 8 | |
| Parity = N | |
| StopBits = 1 | |
| FlowControlCTS = false | |
| FlowControlDTR = false | |
| FlowControlXON = false | |
| DTRDefaultState = true | |
| RTSDefaultState = true |
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
| # Returns 18 | |
| # Place this file in the top level of your Galileo's SD card. | |
| print len("I should return 18") |
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
| //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 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
| #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 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/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 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
| #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 ---------------# |
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 | |
| #Creates blank white tiles for a 16x8 grid | |
| #white, 1204x864 unless otherwise specified. | |
| #Using hex colors requires quotes. ie. "#F0F0F0" | |
| #REQUIRES IMAGEMAGICK. | |
| #the first parameter passed to the shell script | |
| #will be the width of the grid needing tiles | |
| WIDTH=$1; |