Skip to content

Instantly share code, notes, and snippets.

View westin's full-sized avatar
🖤

Westin Lohne westin

🖤
View GitHub Profile
@seanblanton
seanblanton / mobile-cursor-override.css
Created February 9, 2023 04:39
Override traditional cursor for mobile emulation cursor. Great for prototyping
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
@jagotu
jagotu / flipper_rfid_raw.py
Last active May 11, 2023 20:33
use the same output format as rfid raw_analyze
import sys
import struct
import io
def varint(f):
shift = 0
result = 0
while True:
i = f.read(1)[0]
result |= (i & 0x7f) << shift
@chockenberry
chockenberry / README
Created April 6, 2022 17:32
A simple AppleScript to start up a web server in the folder where the script is located.
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
@zacharystansell
zacharystansell / usda_nass_ag_production
Last active May 3, 2021 23:44
USDA-NASS crop acreage by county 2015-2020
---
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
@hanspinckaers
hanspinckaers / global.html
Last active November 7, 2016 06:27
Safari extension - inject a 'before' content script in current tab, indefinitely
<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
@kshiteesh
kshiteesh / urlsafari
Last active July 3, 2024 11:07
This AppleScript saves all the tabs open in all Safari windows to a Markdown file.
(*
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
@zachleat
zachleat / reading_time.rb
Last active October 21, 2020 23:00
Read this in X minutes Liquid Filter Plugin (for Jekyll)
# 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
@than
than / gist:3919174
Last active March 18, 2018 04:01
Put Simplenote in your Menubar – Fluid.app Userstyles
/* -------------------------------------------------
SIMPLENOTE IN YOUR MENUBAR / FLUID.APP USERSTYLES
Than Tibbetts
http://thanland.com/notes/put-simplenote-in-your-menubar-with-fluid
------------------------------------------------- */
.wrapper {
top: 20px !important;
@robinsloan
robinsloan / langoliers.rb
Last active June 25, 2024 17:12
The Langoliers, a tweet deletion script
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"