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)
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
--[[ | |
Email Password Recovery module. | |
Using this module, you can request a password reset link from the game using 'recover_email_password' RPC. | |
--]] | |
local nk = require("nakama") | |
local HTTPS_PREFIX = "https://" | |
local MAILGUN_API_BASE_URL = "api.mailgun.net/v3" |
#!/bin/sh | |
if [ "$(whoami)" != "root" ]; then | |
echo "Please run this script as root." | |
exit | |
fi | |
printf "This script will\n\n- Remove Snap\n- Install the deb version of Firefox\n- Install Flatpak\n- Optionally replace Ubuntu Desktop with GNOME\n\n" | |
read -p "Continue? (Y/n) " start_prompt | |
case $start_prompt in | |
[nN] | [nN][oO] ) | |
exit |
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)
// quick bit of code to move displays to specific locations in C# | |
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)] | |
public struct DEVMODE | |
{ | |
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] | |
public string dmDeviceName; | |
public short dmSpecVersion; | |
public short dmDriverVersion; |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl docker.io \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
By Don Libes
Originally appeared in the Nov. 1990 "C User's Journal" and is also reprinted as Chapter 35 of "Obfuscated C and Other Mysteries", John Wiley & Sons, 1993, ISBN 0-471-57805-3. http://www.wiley.com/compbooks/m3.html.
This column will describe a set of functions to implement software