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
html, html * { | |
cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABmcSURBVHgB7VxZjFZFm67zddPQDTQ7ioKNgAI6iAvg7xhFMzqOmXChE00cMjEmxqiJTuKFMXOjziRzOzGDiRovjEtM3DEucV9wQQfjvrEvArI10DRNA31OzfNUv2/1e+o7Dd0s/vNP/krOd86pvZ5616o6n3N/DccUMvdnCt77DEGfS2mMlzgv75l51z77vuyZd39w+COBC20RAAWM4YEHHshwBUBwt/Gly8Z7g3Qvpj7TZ/cHhUZ3koMOioGk8eCDD4Zovt5www0BLN6ff/559+OPP4Z8O3bsYJonqJLXIy3TeNbB93PPPTdgiPcAftKWtnNSwkmhOENVmQ7Mpn/44Yc13q+44oqWM88889xarUYEWhobG9tQrgVJE5P6duDajqsL1wbkWQcQN3z22WfbmU4Aea+iRneSwgkFTvpckl1CDaSUQEmLFy8+p7m5eTbyLGhqapo8YsSIA0OHDj00cuTIg62trQcbGhrylpaWHq2SP11dXUO6u7uHHDp0qGHfvn1DOzo6WhA3NM/zTUVR/IR631y6dOkOTAip1AtrexUDMpEnFMQTDVwmgtwrlUnnh0+bNm0eKGshwJp56qmnto8ZM6Zr3LhxB6rqQT4HQHo7iOr4rLPBdz4zbteuXc0AbcTu3btHHjx4cGtPT88bDz300DJMgieIvV0KnYoK6EQBeNzAyWxmIo+iMFeZdMstt/wDWPCfRo0a5dra2naOHTu2i8C4Pg0ZtSN/CIgCJ/liU4jLGIcrPGs8y+7cubNlw4YN4/fs2dMF6nzp6aef/oiJEyZM8GTl+++/X9nh/wRwmcozuavsym6++ebZoK7bAFjLGWecsRMD6HInIFhqTOID |
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
import sys | |
import struct | |
import io | |
def varint(f): | |
shift = 0 | |
result = 0 | |
while True: | |
i = f.read(1)[0] | |
result |= (i & 0x7f) << shift |
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
1) Add this code to a new file in Script Editor | |
2) Export the script as "Application" and make sure it's code signed | |
3) Put "Startup.app" in the root folder of the test website (e.g. where index.html is located) | |
4) Make sure that "Startup.app" has Full Disk Access in System Preferences > Security & Privacy > Privacy |
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
--- | |
title: "NASS" | |
author: "Zachary J. Stansell" | |
date: '`r format(Sys.Date(), "%d-%b-%Y")`' | |
output: | |
bookdown::html_document2: | |
highlight: pygments | |
theme: united | |
number_sections: no | |
toc: yes |
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
<html> | |
<head> | |
<script type="text/javascript" charset="utf-8"> | |
// I couldn't find another way to execute a before content script only in a certain Safari tab: | |
// using dispatching to before script only works in the event 'navigate', which is (imo) too slow for a before contentscript. | |
// placeholder for the generated content script filename | |
var currentScriptURL = ""; | |
// set this variable to the tab in which you want to run the 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
(* | |
Export All Safari Tabs in All Open Windows to a Markdown File | |
July 13, 2015 | |
// SCRIPT PAGE | |
http://hegde.me/urlsafari | |
// ORIGINAL SCRIPT ON WHICH THIS SCRIPT IS BUILT | |
http://veritrope.com/code/export-all-safari-tabs-to-a-text-file |
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
# Outputs the reading time | |
# Read this in “about 4 minutes” | |
# Put into your _plugins dir in your Jekyll site | |
# Usage: Read this in about {{ page.content | reading_time }} | |
module ReadingTimeFilter | |
def reading_time( input ) | |
words_per_minute = 180 |
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
/* ------------------------------------------------- | |
SIMPLENOTE IN YOUR MENUBAR / FLUID.APP USERSTYLES | |
Than Tibbetts | |
http://thanland.com/notes/put-simplenote-in-your-menubar-with-fluid | |
------------------------------------------------- */ | |
.wrapper { | |
top: 20px !important; |
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
require "rubygems" | |
require "twitter" | |
require "json" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
# get these from dev.twitter.com | |
CONSUMER_KEY = "your_consumer_key" |