I hereby claim:
- I am ghing on github.
- I am ghing (https://keybase.io/ghing) on keybase.
- I have a public key ASC2JLk_Wl7YdKZ7eJ0p5aVcDdzVSxnidveF6n5SLacjMwo
To claim this, I am signing this object:
#!/bin/bash | |
latest_date_file=.last-statement-date | |
while [[ $# -gt 1 ]] | |
do | |
key="$1" | |
case $key in | |
-s|--since) |
#!/bin/bash | |
# Read one line of ndjson from stdin | |
read -r line | |
last_id_file=$1 | |
if [ -z "$last_id_file" ]; then | |
last_id_file=.last-tweet-id | |
fi |
[{"incident_datetime": "2016-01-31T04:25:00", "url": "http://portal.iprachicago.org/1079080-2/", "media": [{"url": "https://player.vimeo.com/video/165083122", "id": "165083122", "title": "Video Clip"}, {"url": "https://player.vimeo.com/video/165083123", "id": "165083123", "title": "Video Clip"}, {"url": "https://player.vimeo.com/video/165083121", "id": "165083121", "title": "Video Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262611603&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true", "id": "262611603", "title": "Audio Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262611600&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true", "id": "262611600", "title": "Audio Clip"}, {"url": "https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/262464114&auto_play=fals |
#!/bin/bash | |
while true; do | |
wget http://portal.iprachicago.org/ 2>/dev/null | |
if [ $? -ne 0 ]; then | |
echo "Portal is not live" | |
else | |
osascript -e 'display notification "Live!"' | |
break |
I hereby claim:
To claim this, I am signing this object:
import decimal | |
'{:.1f}'.format(decimal.Decimal(99.955).quantize(decimal.Decimal('.1'), rounding=decimal.ROUND_DOWN)) |
<html> | |
<body> | |
<h1>This is an iframe</h1> | |
<script> | |
console.log("Iframe loaded")l; | |
window.addEventListener('resize', function() { | |
console.log('resize'); | |
}); | |
</script> | |
</body> |
My colleague had a set of temperature readings with one row per date. Another colleague needed to visualize the data in a tool that required one row per day of the month with columns for each year value. He was working with the data in a SQL database, but neither of us knew off the top of our heads the best way to do this. This gist is a number of examples of how to approach the problem.
var BaseView = Backbone.View.extend({ | |
children: {}, | |
checkId: null, | |
shown: false, | |
events: { | |
'click .back-to-top': 'backToTop', | |
'click h2 a': 'jumpTo' | |
}, |