uname -r
The kernel version should >= 4.9.4, if isn't, please follow the script below to update kernel:
sudo rpi-update
sudo reboot
:root { | |
--violation-color: red; /* used for clear issues */ | |
--warning-color: orange; /* used for potential issues we should look into */ | |
} | |
/* IMAGES */ | |
/* | |
* Lazy-Loaded Images Check | |
* ==== |
var SPA="none"; | |
if (typeof(app)=="object") SPA = "unknown"; | |
if (window.hasOwnProperty('require')) { | |
if(window.require.hasOwnProperty('defined')){ | |
if(window.require.defined('troopjs-compose/decorator')) SPA = "troop"; | |
if(window.require.defined('flight/lib/component')) SPA = "flight"; | |
} | |
} |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
# base on ruby 1.9 | |
# Reference : | |
# http://stackoverflow.com/questions/185947/ruby-define-method-vs-def | |
# define_method is a (private) method of the object Class. You are calling it from an instance. There is no instance method called define_method, so it recurses to your method_missing, this time with :define_method (the name of the missing method), and :screech (the sole argument you passed to define_method). | |
# http://stackoverflow.com/questions/752717/how-do-i-use-define-method-to-create-class-methods | |
class Base | |
def self.meta_instance_method &block | |
define_method "ins", block | |
end |