Skip to content

Instantly share code, notes, and snippets.

View jploudre's full-sized avatar

Jonathan Ploudre jploudre

View GitHub Profile
@jploudre
jploudre / IBM_Plex_Mono.css
Last active December 25, 2019 00:20
IBM Plex Mono Font Face for Blink Shell
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
font-weight: 200;
src: url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono:200&display=swap' format('truetype'));
}
@font-face {
font-family: "IBM Plex Mono";
font-style: normal;
=MROUND([@lastupdate]-WEEKDAY([@lastupdate])+7,"24:00")
Use MROUND
Use Math with Weekday to make a single day of week.
; JKP Focus
; Doesn't really work with Citrix
#Persistent
SetTimer, Focus, 100
return
Focus:
if WinActive("focus.ahk") or WinActive("Update Problems -") or WinActive("Update Medications -") or WinActive("Update Orders -") or WinActive("Update Orders -") or WinActive("Append to Document") or WinActive("Assessments Due") or WinActive("Customize Letter") or WinActive("End Update") or WinActive("Care Alert Warning -") or WinActive("New Medication")or WinActive("New Problem")
{
@jploudre
jploudre / SimpleHTML
Created March 5, 2017 17:42
Simple Inline CSS
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0"/>
<title>Even Better Motherfucking Website</title>
<meta name="description" content="It's even more fucking perfect than the others motherfucking websites."/>
<link rel="canonical" href="http://evenbettermotherfucking.website"/>
<style>
body {margin: 5% auto; background: #f2f2f2; color: #444444; font-family: "Hoefler Text", Georgia,Palatino,serif; font-size: 16px; line-height: 1.6; max-width: 73%;}
{MEL_SEND_FLAG("Flag", user.loginname ,"N", ADDDATES(str(._TODAYSDATE),"0","0","21"),"FIT Test status?","Has FIT been returned?","Documents", "")}
Patient given FIT card.
; Key Parts of Ghoster Script
#SingleInstance,Force
SetBatchLines,-1
SetWindelay,0
OnExit,QUIT
START:
Gosub,READINI
Gosub,TRAYMENU
@jploudre
jploudre / closewindow.ahk
Created December 8, 2015 18:41
Automatically Close Window with Autohotkey
#Persistent
SetTimer, ClosePopup, 250
return
ClosePopup:
WinClose, Hummingbird Room - Super Turbo
return
@jploudre
jploudre / macroanalysis.txt
Created December 7, 2015 00:28
Day One Macro Analysis in Launch Center Pro
dayone://post?entry=[prompt: This Macro's Title]%20--%20Analysis%0D%0A%0D%0A%7CAnalysis%7C%7C%0D%0A%7C:---%7C:---%7C%0D%0A%7CWhat%20would%20it%20do?%7C[prompt: What this would do]%7C%0D%0A%7CWill%20I%20use%20this%20in%20a%20year?%7C[list: Will I use this in a year?|★☆☆☆☆☆☆ Very Improbable|★★☆☆☆☆☆ Improbable|★★★☆☆☆☆ Somewhat Improbable|★★★★☆☆☆ Neither Probable or Not|★★★★★☆☆ Somewhat Probable|★★★★★★☆ Probable|★★★★★★★ Very Probable]%7C%0D%0A%7CIs%20this%20important%20for%20others/patients?%7C[list: Is this important for others?|★☆☆☆☆☆☆ Very Unimportant|★★☆☆☆☆☆ Unimportant|★★★☆☆☆☆ Somewhat Unimportant|★★★★☆☆☆ Neutral|★★★★★☆☆ Somewhat Important|★★★★★★☆ Important|★★★★★★★ Very Important]%7C%0D%0A%7CXCKD%20Save%20Time?%7C[list: Will this save time overall?|Yes|No]%7C%0D%0A%23MacroAnalysis
@jploudre
jploudre / shellhook.ahk
Created December 6, 2015 15:57
Shell hook for window open
#Persistent
SetBatchLines, -1
Process, Priority,, High
Gui +LastFound
hWnd := WinExist()
DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
@jploudre
jploudre / gist:f1ed929ea151cb9663a8
Created June 23, 2014 03:16
Next Appointment Date (MEL)
Discuss at upcoming visit on {fn VisitDate () {local r, Appt=getfield(APPT_NEXT(),",","")
remove(Appt,2,5)
r=str(Appt)
return r}}{VisitDate()}.