TODO: Write a project description
TODO: Describe the installation process
class RequiredIf(object): | |
"""Validates field conditionally. | |
Usage:: | |
login_method = StringField('', [AnyOf(['email', 'facebook'])]) | |
email = StringField('', [RequiredIf(login_method='email')]) | |
password = StringField('', [RequiredIf(login_method='email')]) | |
facebook_token = StringField('', [RequiredIf(login_method='facebook')]) | |
""" |
<?php | |
// ¢2014 noferi mickaël, under creative common by-nc-sa 3.0 | |
define('ekomiNumber','*****'); | |
define('ekomiInterface','*****'); | |
define('ekomiInterfacePass','***********************'); | |
define('ekomiUrl','http://api.ekomi.de/v2/'); |
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)
Tested on Mac OS X 10.8.5 and 10.9.3.
Not for the faint of heart. Before we begin, you will need to install XQuartz, Homebrew, and virtualenv.
I'm using virtualenv to isolate your global system settings from the KivEnt installation because it's still under heavy development and it's very messy. We'll also be using the virtual environment folder to install Kivy, Cymunk, and KivEnt without needing to add them to your repository or your .gitignore
file.
Now follow these steps carefully and you should be up and running:
brew tap homebrew/headonly
. You may want to do a brew update
for good measure.brew install --HEAD smpeg
# Polymer Mallard - Bash CRUD | |
# | |
# Put the following into your ~/.bash_rc or ~/.bash_profile | |
# Requires Python, cURL | |
function pmCrudRequest { | |
printf " \n \e[1;33m$method\e[0m from \e[1;33m$url\e[0m \n \n" | |
printf " \n \e[0;32m" | |
echo "$response" | python -m json.tool | |
printf "\e[0m" |
# fix owner of files and folders recursively | |
sudo chown -vR $(whoami) /usr/local /opt/homebrew-cask /Library/Caches/Homebrew | |
# fix read/write permission of files and folders recursively | |
chmod -vR ug+rw /usr/local /opt/homebrew-cask /Library/Caches/Homebrew | |
# fix execute permission of folders recursively | |
find /usr/local /opt/homebrew-cask /Library/Caches/Homebrew -type d -exec chmod -v ug+x {} + |
#!/usr/bin/env ruby | |
require 'tmpdir' | |
require 'fileutils' | |
dir = Dir.tmpdir() | |
if File.directory?("#{dir}/bulma") | |
FileUtils.remove_dir("#{dir}/bulma") | |
end |
<img src="img/some-nice-photo.jpg" data-controller="parallax" /> |