This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet | |
// | |
(function() { | |
var el=document.createElement('div'), | |
b=document.getElementsByTagName('body')[0], | |
msg=''; | |
el.style.position='fixed'; | |
el.style.height='20px'; | |
el.style.width='100%'; | |
el.style.marginLeft='0px'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html dir="ltr"> | |
<head> | |
<style type="text/css"> | |
body, html { font-family:helvetica,arial,sans-serif; font-size:90%; } | |
</style> | |
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/dojo.xd.js" | |
djConfig="parseOnLoad: true"> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>reveal.js - Markdown Demo</title> | |
<style>/*! | |
* reveal.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" rel="stylesheet"/> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script> | |
<script> | |
// http://stackoverflow.com/a/2880929/117030 | |
var urlParams; | |
(window.onpopstate = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# vim: wrap! | |
# Recursively ignore node_modules in Dropbox. Git for Windows edition. | |
# Based on: https://stackoverflow.com/a/69655523/117030 | |
find "$1" -type d | grep 'node_modules$' | grep -v '/node_modules/' | xargs -I {} -t powershell -command "Set-Content -Path '{}' -Stream com.dropbox.ignored -Value 1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VersionedDoc | |
constructor: (json) -> | |
if json | |
if json._id then @_id = json._id | |
@versions = json._versions | |
if @versions.constructor isnt Array | |
@versions = [ new Date() ] | |
@props = {} | |
for propName of json | |
if propName[0] isnt '_' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = new URL location | |
{host, searchParams} = url | |
params = | |
summary: searchParams.get 'summary' | |
url: searchParams.get 'url' | |
# Not summary | |
if host isnt 'kagi.com' | |
# Go to summary |