Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
Taken from StackExchange
Thanks to LangLangC
For temperature and other improvements see https://gist.github.com/cdleon/d16e7743e6f056fedbebc329333d79df
| # Based on articles: | |
| # https://ruhighload.com/%D0%9A%D1%8D%D1%88%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5+%D1%81+nginx | |
| # https://wiki.enchtex.info/practice/nginx/cache | |
| # https://gist.github.com/yanmhlv/5612256 | |
| # https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html | |
| # https://blog.runcloud.io/2017/10/28/nginx-caching-tutorial-wordpress.html | |
| # https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps | |
| # https://easyengine.io/wordpress-nginx/tutorials/single-site/fastcgi-cache-with-purging/ | |
| import keras | |
| import numpy as np | |
| timesteps = 60 | |
| input_dim = 64 | |
| samples = 10000 | |
| batch_size = 128 | |
| output_dim = 64 | |
| # Test data. |
The advantages of using Grunt with Cordova:
platforms directory without having to commit the generated plugins and platforms directories to version control.Stack Overflow: .gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?
git config --global push.default current
git config --global merge.defaultToUpstream true
git config --global branch.autosetupmerge true
git config --global branch.autosetuprebase remote
git config --global alias.cb 'checkout -b'
git config --global alias.ps 'push -u'
git config --global alias.pl '!git fetch -p && git rebase'
| on run argv | |
| (* | |
| Toggle an application from full screen to non full screen (or the reverse). | |
| Parameters: | |
| 1: application name(ie, Chrome) | |
| 2: boolean (true/false). | |
| When true ensure that the application is in full screen mode (if not, make it so) | |
| When false ensure that the application is NOT in full screen mode (if not, make it so) | |
| *) | |
| set theapp to item 1 of argv |
| #import <UIKit/UIKit.h> | |
| @interface UIView (SMFrameAdditions) | |
| @property (nonatomic, assign) CGPoint $origin; | |
| @property (nonatomic, assign) CGSize $size; | |
| @property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
| @property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
| @end |
| self.view.layer.anchorPoint = CGPointMake(0.50, 1.0); | |
| CAKeyframeAnimation *bounceAnimation = [CAKeyframeAnimation animationWithKeyPath:@"transform.scale"]; | |
| bounceAnimation.values = [NSArray arrayWithObjects: | |
| [NSNumber numberWithFloat:0.05], | |
| [NSNumber numberWithFloat:1.08], | |
| [NSNumber numberWithFloat:0.92], | |
| [NSNumber numberWithFloat:1.0], | |
| nil]; |