Set these variables
Arduino Uno:
export BOARD=atmega328p
export PORT=/dev/tty.usbmodem14201
export BAUD=115200
export PROGRAMMER=arduino
export AVR_DIR=/Applications/Arduino.app/Contents/Java/hardware/tools/avr/binSet these variables
Arduino Uno:
export BOARD=atmega328p
export PORT=/dev/tty.usbmodem14201
export BAUD=115200
export PROGRAMMER=arduino
export AVR_DIR=/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin| function main () { | |
| return difference(tower({ | |
| base: {radius: 45, vertices: 6}, | |
| layer: {height: 2.52, twist: 0.17}, | |
| height: 30 | |
| }), cylinder({r: 11.30, h: 9})); | |
| } | |
| function tower({base, layer, height}) { |
| /* | |
| * Copyright 2017 Mohsen Mesgarpour | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // Simple proxy/forwarding server for when you don't want to have to add CORS during development. | |
| // Usage: node proxy.js | |
| // Open browser and navigate to http://localhost:9100/[url] | |
| // Example: http://localhost:9100/http://www.google.com | |
| // This is *NOT* for anything outside local development. It has zero error handling among other glaring problems. | |
| // This started as code I grabbed from this SO question: http://stackoverflow.com/a/13472952/670023 |
| /** | |
| * Retrieves all the rows in the active spreadsheet that contain data and logs the | |
| * values for each row. | |
| * For more information on using the Spreadsheet API, see | |
| * https://developers.google.com/apps-script/service_spreadsheet | |
| */ | |
| function readRows() { | |
| var sheet = SpreadsheetApp.getActiveSheet(); | |
| var rows = sheet.getDataRange(); | |
| var numRows = rows.getNumRows(); |
| '[email protected] :do not modify this line - see ramblings.mcpher.com for details: updated on 8/9/2014 3:09:42 PM : from manifest:3414394 gist https://gist.github.com/brucemcpherson/3414365/raw | |
| ' this is used for object serliazation. Its just basic JSON with only string data types catered for | |
| Option Explicit | |
| ' v2.19 3414365 | |
| 'for more about this | |
| ' http://ramblings.mcpher.com/Home/excelquirks/classeslink/data-manipulation-classes | |
| 'to contact me | |
| ' http://groups.google.com/group/excel-ramblings | |
| 'reuse of code | |
| ' http://ramblings.mcpher.com/Home/excelquirks/codeuse |