I hereby claim:
- I am bearzk on github.
- I am bearzk (https://keybase.io/bearzk) on keybase.
- I have a public key whose fingerprint is C338 E988 980D 500C B6B9 AE1D 5ED2 A3B8 95F6 00B2
To claim this, I am signing this object:
>>> 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)] |
a = range(0,10) #[1..11] | |
odd = a[::2] #[1,3,5,7,9] | |
even = a[1::2] #[2,4,6,8,10] |
I hereby claim:
To claim this, I am signing this object:
#!/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; |
const toString = Object.prototype.toString; | |
const isType = type => { | |
return function (obj) { | |
return toString.call(obj) == '[object ' + type + ']'; | |
}; | |
}; | |
const isFunction = isType('Function'); |
.center { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} |
htpasswd -nb name password | |
# name:$apr1$8sRtOm7K$QxQXk5Zo6HhOhujVhovgn0 |
# http://editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = space | |
indent_size = 4 | |
insert_final_newline = true |
Sometimes a part of our application just can not run that fast, it could be for example, avatar processing, email sending, and in these case we don't usually need a response/confirmation that the action is finished, we can push these tasks into queue and handle them asynchronously to take the load off the system.