brew install mongodb
Set up launchctl to auto start mongod
$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)
| /* | |
| * main.cpp | |
| * | |
| * Created on: 16/05/2016 | |
| * Author: puc | |
| */ | |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| #include "serial.hpp" |
| var calculateX = function(xInit){ | |
| var x = xInit; | |
| var err = Math.pow(10,-5); | |
| var xAux = x; | |
| var i = 0; | |
| do{ | |
| xAux = x; | |
| var f = (Math.pow(x,4) + 2*Math.pow(x,3) - 13*Math.pow(x,2) - 14*x + 24).toFixed(5); | |
| var F = (4*Math.pow(x,3) + 6*Math.pow(x,2) - 26*x - 14).toFixed(5); |
| var changed = false; | |
| $.texfield.addEventListener("change", function(e){ | |
| if(OS_IOS || (OS_ANDROID && !changed)){ | |
| e.source.value = "My Mask"; //Masker.toPatter(); | |
| } | |
| changed = !changed; | |
| //Set cursor at the end | |
| var len = event.source.value.length; | |
| $.textfield.setSelection(len, len); |
| #include <avr/io.h> | |
| #include <util/delay.h> | |
| void display(int num){ | |
| switch(num){ | |
| case 9: | |
| PORTC = (1 << 4); | |
| PORTB &= ~(1 << 5); |