Skip to content

Instantly share code, notes, and snippets.

View hobbs's full-sized avatar

Zach Hobbs hobbs

  • San Francisco, CA
View GitHub Profile
STATUS=5
for (( ; ; ))
do
NEW_STATUS=1
LOG=`date +%s`
LOG="$LOG"
PING_OUT=`ping -t 2 -c 1 google.com 2> /dev/null | grep "1 packets received"`
if [ -z "$PING_OUT" ]
#!/bin/bash
pushd ${HOME}/.unsplash/
rm *.jpg
unsplash-wallpaper -r -f -w 3840 -h 2160
OUTPUT=`ls -Art | tail -n 1`
dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:
var Desktops = desktops();
videos(orderBy: order_ASC) {
id
name
...
watchHistory(user: $userId) {
watched
lastTimestamp
}
}
@hobbs
hobbs / H1Wrap.js
Created January 5, 2018 18:31
React Component to prevent hanging words
const H1Wrap = (props) => {
if (typeof props.children != "string") {
return (
<h1>{props.children}</h1>
)
}
let words = props.children.split(" ")
const H1Wrap = (props) => {
if (typeof props.children != "string") {
return (
<h1>{props.children}</h1>
)
}
let words = props.children.split(" ")
In This Issue:
Get 150% profit with Coinbase Invest Fund
Dear XXXXX,
We're happy to announce a new product - Coinbase Invest Fund, reliable platform for
small and medium scale investments. Fund assets are diversified among emerging Forex
positions at Coinbase Exchange. Deposits are risk-free insured by institutions such as the New
York Stock Exchange.
Uncaught SyntaxError: Unexpected token ILLEGAL mootools.js:4
Uncaught ReferenceError: define is not defined Netvibes.js:1
/**
* ApiProxyController
*
* @module :: Controller
* @description :: A set of functions called `actions`.
*
* Actions contain code telling Sails how to respond to a certain type of request.
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
*
* You can configure the blueprint URLs which trigger these actions (`config/controllers.js`)

test

Test 2

@hobbs
hobbs / README
Created February 21, 2013 01:09
Pain/Canvas Demo
Works on 4.1, and not 4.2