Skip to content

Instantly share code, notes, and snippets.

View benhorst's full-sized avatar

benhorst benhorst

  • Accolade
  • Seattle
View GitHub Profile
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Licensed under the MIT License (http://choosealicense.com/licenses/mit/)
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
.old-flex-display(@display);
@benhorst
benhorst / 686.sh
Last active December 15, 2015 20:13 — forked from scruffyfox/687.sh
Checks every 3 seconds if patch is out
#!/usr/bin/env zsh
while [ 1 ]; do
RESP=$(curl --silent 'http://www.dota2.com/686')
if [[ $RESP != *"<div id=\"Teaser\"></div>"* ]]; then
curl -X POST --data-urlencode 'payload={"color":"danger","pretext":"6.86 Alert! Patch page change","text":"@channel check http://dota2.com/686 for update"}' https://hooks.slack.com/services/{{slack team integration here}}}}
exit
else
echo $(date) " not out"
fi