Skip to content

Instantly share code, notes, and snippets.

View hobbs's full-sized avatar

Zach Hobbs hobbs

  • San Francisco, CA
View GitHub Profile
@hobbs
hobbs / .name
Last active December 10, 2015 16:49
Import bug in Intellij
4463941
domain=no.com
while true; do
RES=`host $domain | grep "has address"`
if [ -z "$RES" ]
then
echo "No domain: $domain"
else
echo $RES
fi
domain=`echo $domain | sed 's/no/noo/'`
@hobbs
hobbs / README
Created February 21, 2013 01:09
Pain/Canvas Demo
Works on 4.1, and not 4.2

test

Test 2

/**
* 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`)
Uncaught SyntaxError: Unexpected token ILLEGAL mootools.js:4
Uncaught ReferenceError: define is not defined Netvibes.js:1
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.
const H1Wrap = (props) => {
if (typeof props.children != "string") {
return (
<h1>{props.children}</h1>
)
}
let words = props.children.split(" ")
@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(" ")
videos(orderBy: order_ASC) {
id
name
...
watchHistory(user: $userId) {
watched
lastTimestamp
}
}