#Adding weather to your tmux status bar.
##Python file that writes the weather to a text file.
#!/Users/jhwhite/anaconda/bin/python
# -*- coding: utf-8 -*-
import forecastio
import math
#Adding weather to your tmux status bar.
##Python file that writes the weather to a text file.
#!/Users/jhwhite/anaconda/bin/python
# -*- coding: utf-8 -*-
import forecastio
import math
#!/bin/bash | |
# Send a tmux, desktop, and audio notification after the completion | |
# of the given command when using tmux. | |
# | |
# Requires: tmux | |
# Recommended: espeak, libnotify | |
tmux_window=$(/usr/bin/tmux list-windows \ | |
-F "#{window_active} #{window_index} #{window_name}" | \ |
You can locally pull data from your Rainforest Eagle-200 using cURL.
Rainforest has published a local API document which explains the details of the protocol. But this particular document is about quickly getting to the point and giving you some cURL commands you can use to immediately start pulling out data.
First, I'll assume that you have the following environment variables set:
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |
When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.
Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008
…………………………