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
johtso / jQueryBookmarklet.coffee
Created Jul 7, 2011 — forked from TrevorBurnham/jQueryBookmarklet.coffee
Load jQuery/jQuery UI dependencies
View jQueryBookmarklet.coffee
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
johtso / okv-via-yql.coffee
Created Jun 12, 2011
Interact with OpenKeyval via YQL
View okv-via-yql.coffee
###
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='https://secure.openkeyval.org/#{key}' and xpath='/html/body/p/text()'"
$.ajax
url: 'https://query.yahooapis.com/v1/public/yql',
You can’t perform that action at this time.