As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
import logging | |
import logging.handlers | |
log = logging.getLogger(__name__) | |
log.setLevel(logging.DEBUG) | |
handler = logging.handlers.SysLogHandler(address = '/dev/log') | |
formatter = logging.Formatter('%(module)s.%(funcName)s: %(message)s') |
import logging | |
from logging.handlers import SysLogHandler | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
syslog = SysLogHandler(address='/dev/log', facility='user') | |
formatter = logging.Formatter('%(name)s: %(levelname)s %(module)s %(message)r') | |
syslog.setFormatter(formatter) | |
logger.addHandler(syslog) |
// It is important to declare your variables. | |
(function() { | |
var foo = 'Hello, world!'; | |
print(foo); //=> Hello, world! | |
})(); | |
// Because if you don't, the become global variables. | |
(function() { |