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)
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # To use this script and prepare your build environment, run the following | |
| # command in the same directory as the Vagrantfile. | |
| # B2G_PATH={path to your B2G directory} vagrant up | |
| # NFS file system is case insensitive. This will make B2G build to fail. | |
| # To avoid this: | |
| # (host-mac): hdiutil create -volname 'firefoxos' -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/firefoxos.sparseimage |
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)
| fs = require 'fs' | |
| remote = require 'remote' | |
| require 'fs-plus' | |
| Notify = require 'fs.notify' | |
| rx = require 'rx' | |
| module.exports = | |
| class LiveReload | |
| constructor: (dirs...) -> |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
| --- | |
| - name: Restart sshd | |
| service: | |
| name: ssh | |
| state: restarted | |
| become: yes |
| #! /bin/bash -ex | |
| # Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs. | |
| # | |
| # Requirements: | |
| # * gdal http://www.mapbox.com/tilemill/docs/guides/gdal/ | |
| # * Dan Stahlke's https://github.com/gina-alaska/dans-gdal-scripts | |
| # * convert (image-magick) | |
| # | |
| # Reference info: |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <!-- | |
| Copyright (c) 2014-2017, Jan Bösenberg & Jürg Lehni | |
| 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 |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Shape selection</title> | |
| <!-- Vue for doing stuff--> | |
| <script src="https://unpkg.com/vue/dist/vue.js"></script> | |
| <!-- Paper for handling graphics --> | |
| <script src="https://unpkg.com/[email protected]/dist/paper-full.min.js"></script> | |
| <!-- Axios for making API calls --> |
| #!/usr/bin/env bash | |
| set \ | |
| -o nounset \ | |
| -o pipefail \ | |
| -o errexit | |
| tags=$(doctl compute tag list --output json | jq -r '.[].name') | |
| aggregate=$(jq -n '{ "_meta": { "hostvars": { } } }') |