start new:
tmux
start new with session name:
tmux new -s myname
| # Courtesy http://plumberjack.blogspot.com/2010/12/colorizing-logging-output-in-terminals.html | |
| # Tweaked to use colorama for the coloring | |
| import colorama | |
| import logging | |
| import re | |
| import sys | |
| def remove_ansi(s): |
| --------------------------------------------------------------- | |
| ~/.mutt/muttrc | |
| --------------------------------------------------------------- | |
| color hdrdefault cyan default | |
| color attachment yellow default | |
| color header brightyellow default "From: " | |
| color header brightyellow default "Subject: " | |
| color header brightyellow default "Date: " |
| from datetime import datetime | |
| import calendar | |
| def epoch_to_iso8601(timestamp): | |
| """ | |
| epoch_to_iso8601 - convert the unix epoch time into a iso8601 formatted date | |
| >>> epoch_to_iso8601(1341866722) | |
| '2012-07-09T22:45:22' | |
| """ |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
| dependencies { | |
| compile 'com.android.support:appcompat-v7:21.+' | |
| compile 'com.wrapp.floatlabelededittext:library:0.0.5' | |
| } |
| # The MIT License (MIT) | |
| # Copyright (c) 2016 Vladimir Ignatev | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the "Software"), | |
| # to deal in the Software without restriction, including without limitation | |
| # the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
| # and/or sell copies of the Software, and to permit persons to whom the Software | |
| # is furnished to do so, subject to the following conditions: | |
| # |
| openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
| chmod 600 id_rsa.pem |
Use these rapid keyboard shortcuts to control the GitHub Atom text editor on macOS.