[http://yeoman.io/] (Yeoman)
npm install -g yo
[http://yeoman.io/] (Yeoman)
npm install -g yo
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title> | |
| My first demo | |
| </title> | |
| <!-- Link the Bootstrap css --> | |
| <link href="components/bootstrap/dist/css/bootstrap.css" rel="stylesheet"> |
| ssh [email protected] | |
| ssh-keygen -t rsa | |
| exit | |
| cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| server_name .my_site.dev; | |
| root /var/www/my_site/public; | |
| # It's always good to set logs, note however you cannot turn off the error log | |
| # setting error_log off; will simply create a file called 'off'. | |
| access_log /var/log/nginx/my_site.access.log; |
| def pid_controller(y, yc, h=1, Ti=1, Td=1, Kp=1, u0=0, e0=0) | |
| """Calculate System Input using a PID Controller | |
| Arguments: | |
| y .. Measured Output of the System | |
| yc .. Desired Output of the System | |
| h .. Sampling Time | |
| Kp .. Controller Gain Constant | |
| Ti .. Controller Integration Constant | |
| Td .. Controller Derivation Constant |
| function decodeHtml($string) { | |
| return stripslashes(html_entity_decode( $string, ENT_QUOTES, "utf-8" )); | |
| } |
| function encodeHtml($string) { | |
| return htmlentities($string, ENT_QUOTES, "utf-8"); | |
| } |
| function isSerialized($string) { | |
| return (@unserialize($string) !== false); | |
| } |