Just another programmer's site

Month: 3月 2015

Python: Multiple Assignment by Generator Comprehensions

Generator comprehensions return generator in single assignment variable, but in multiple assignment it doesn’t return generators.



Python: List Comprehensions are better

Using List Comprehensions, we don’t have to write ‘lamda’ expressions to map or filter values and the code is simpler.


Linux: Check process restarted

To check whether a process was restarted, look ‘/var/run/{process name}.pid’ file’s timestamp.


Linux: grep \ or $

© 2019

Theme by Anders NorenUp ↑