For headless Linux servers you can install a copy of Dropbox in your home folder using the following command:
64-bit:
| function [mdl2,idx2] = mdl2d_from3d(mdl3,idx3); | |
| % set name | |
| mdl2 = eidors_obj('fwd_model',sprintf('%s 2D',mdl3.name)); | |
| % set nodes | |
| [bdy,idx] = find_boundary(mdl3.elems); | |
| vtx = mdl3.nodes; | |
| z_vtx = reshape(vtx(bdy,3), size(bdy) ); | |
| lay0 = find( all(z_vtx==0,2) ); | |
| bdy0 = bdy( lay0, :); |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| stm32.enc.init(3) | |
| stm32.enc.setidxtrig(cpu.INT_GPIO_POSEDGE, pio.PB_5, 3, 32768) | |
| local state = {} | |
| local stime | |
| cycletime = 20000 | |
| tdiff = 0 | |
| function control() |