Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
| var os = require("os"); | |
| //Create function to get CPU information | |
| function cpuAverage() { | |
| //Initialise sum of idle and time of cores and fetch CPU info | |
| var totalIdle = 0, totalTick = 0; | |
| var cpus = os.cpus(); | |
| //Loop through CPU cores |
| #import <QuartzCore/QuartzCore.h> | |
| @interface ArrowLayer : CALayer | |
| @property (nonatomic) CGFloat thickness; | |
| @property (nonatomic) CGFloat startRadians; | |
| @property (nonatomic) CGFloat lengthRadians; | |
| @property (nonatomic) CGFloat headLengthRadians; | |
| @property (nonatomic, strong) UIColor *fillColor; |