How to use:
./wordle.sh
Or try the unlimit mode:
This is the most straightforward config for parsing the Ambient Weather API into a time series database with Telegraf. I use InfluxDB to store the data and Grafana to view the data.
Note that this is not a complete Telegraf config. What follows is a fragment that you would add to the bottom of your telegraf.conf file. You must set up Influx yourself.
You MUST replace the xxxxxxxx
strings in the urls
parameter with your personal Application key and API key. See https://www.ambientweather.com/api.html for help if you don't have your keys.
The measurement name can be set to anything you want with the name_override
parameter.
The devices endpoint gives data for all weather stations associated with your account, but this config simply takes the first one. This is done with the json_query = "0.lastData"
line. Other devices could be selected by changing the 0
to another number. Properly handling multiple weather stations is too complex for any sane config of the http plugin for Telegraf. Hard
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading…</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://rawgit.com/mrkd/ca6cf7041534470965b68da2f177db31/raw/grablinks.js?x="+(Math.random());})(); |
$while true; do clear; tree -a; sleep 1; done
#!/bin/bash
while :
do
clear
git --no-pager log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative $1
#! /bin/bash | |
set -e | |
if [[ -f ~/.vimrc ]] | |
then | |
echo "You already have a ~/.vimrc. Aborting to avoid losing data..." | |
exit 1 | |
fi |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="javascript guid"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
Looking for workshop teachers to teach on the following topics!
For introductions please tweet @frontendmasters, @1marc or email: marc at FrontendMasters.com. Thanks!
You can propose other topics too.
# | |
# python drive.py "origin" ["waypoint" ... ] "destination" | |
# | |
# i.e. python drive.py "Union Square, San Francisco" "Ferry Building, San Francisco" 'Bay Bridge' SFO | |
import sys, json, urllib2, md5, os.path, pprint | |
from math import radians, sin, cos, atan2, pow, sqrt | |
from urllib import quote_plus | |
from xml.sax.saxutils import escape | |
from optparse import OptionParser |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Chat</title> | |
<link rel="stylesheet" href="normalize.css"> | |
</head> | |
<body> | |
<style> | |
td { |