Check the system is working properly, if any errors or anomaly, we want that be detected early than late.
- check availability
- check operation correctness
- check middle-tier or shared service to detect and isolate a failure
| # http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| end_of_line = lf | |
| indent_style = space | |
| indent_size = 4 | |
| insert_final_newline = true |
| htpasswd -nb name password | |
| # name:$apr1$8sRtOm7K$QxQXk5Zo6HhOhujVhovgn0 |
| .center { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| } |
| const toString = Object.prototype.toString; | |
| const isType = type => { | |
| return function (obj) { | |
| return toString.call(obj) == '[object ' + type + ']'; | |
| }; | |
| }; | |
| const isFunction = isType('Function'); |
| #!/bin/bash | |
| ok=false | |
| echo | |
| for file in $(find . -name '*.rb'); do | |
| if [ $ok ]; then | |
| echo -ne "\033[2A" | |
| echo -ne "\033[K" | |
| fi | |
| echo $file; | |
| ruby -c $file; |
I hereby claim:
To claim this, I am signing this object:
| a = range(0,10) #[1..11] | |
| odd = a[::2] #[1,3,5,7,9] | |
| even = a[1::2] #[2,4,6,8,10] |
| >>> a = [(111,555),(333,222)] | |
| >>> a.sort() | |
| >>> a | |
| [(111, 555), (333, 222)] | |
| >>> a.sort(lambda x,y: cmp(x[1],y[1])) | |
| >>> a | |
| [(333, 222), (111, 555)] |