Skip to content

Instantly share code, notes, and snippets.

Johannes johtso

Block or report user

Report or block johtso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
johtso /
Created Jul 7, 2011 — forked from TrevorBurnham/
Load jQuery/jQuery UI dependencies
loadDependencies = (callback) ->
requirements = {jq: '1.6.1', jqui: '1.8.7'}
getScript = (url, next) ->
script = document.createElement('script')
script.src = url
head = document.documentElement.childNodes[0]
script.onload = script.onreadystatechange = onScriptLoad script, next
head.appendChild script
johtso /
Created Jun 12, 2011
Interact with OpenKeyval via YQL
Putting trust in Yahoo rather than OpenKeyval.
Probably not useful, just did it to see if it was possible.
okvGet = (key, callback) ->
yql_query = "select * from html where url='{key}' and xpath='/html/body/p/text()'"
url: '',
You can’t perform that action at this time.