Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
@jasondavis
jasondavis / volume.ahk
Created February 19, 2018 18:30 — forked from BGMcoder/volume.ahk
Volume Control hotkeys via ahk
;control your system volume via hotkeys
;# is the win key
;^ is the control key
;sound controls
#[::setVolume("-5") ;lower volume by 5%
#]::setVolume("+5") ;raise volume by 5%
^#[::setVolume("10") ;set volume to minimum
^#]::setVolume("80") ;set volume to loud
SetVolume(whatvolume){
@jasondavis
jasondavis / Hangman.ahk
Created February 17, 2018 01:30 — forked from errorseven/Hangman.ahk
/r/DailyProgrammer [2014-11-17] Challenge #189 [Easy] Hangman!
#Persistent
#SingleInstance, Force
SetTitleMatchMode, 2
SetWorkingDir, %A_ScriptDir%
;Ask player to Enter Mode of play Easy, Medium, Hard
InputBox, Mode, Daily Programmer Challenge #189, Please enter [Easy] [Intermediate] or [Hard] , 640, 480
If (ErrorLevel = 1) ;If Cancel or Close Exit
ExitApp
If !(Mode == "Easy" Or Mode == "Intermediate" or Mode == "Hard") { ;If not Easy, Intermediate, or Hard Reload!
@jasondavis
jasondavis / ToDoList.ahk
Created February 17, 2018 01:16 — forked from errorseven/ToDoList.ahk
/r/DailyProgrammer [2015-06-15] #218 [Easy] To Do List
MyList := New ToDo()
MyList.Set("Go Shopping")
MyList.Set("Go to bank")
MyList.Display()
MyList.Set("Buy Fallout 4")
MyList.Remove("Go to bank")
MyList.Display()
@jasondavis
jasondavis / BitcoinPrices.ahk
Created February 17, 2018 01:14 — forked from errorseven/BitcoinPrices.ahk
/r/DailyProgrammer [2015-08-19] #228 [Intermediate] Use a Web Service to Find Bitcoin Prices
endpoint := "http://api.bitcoincharts.com/v1/trades.csv"
market := "bitfinex"
currency := "USD"
Url := endpoint . "?symbol=" . market . currency
req := ComObjCreate("Msxml2.XMLHTTP")
; Open a request with async enabled.
req.open("GET", Url, true)
; Set our callback function (v1.1.17+).
req.onreadystatechange := Func("Ready")
@jasondavis
jasondavis / ClipQueue.ahk
Created February 17, 2018 00:44 — forked from errorseven/ClipQueue.ahk
Clipboard Queue - Keep multiple clipboards at the ready or paste them in a sequential order!
/*
___ _ _ ____
/ __\ (_)_ __ /___ \_ _ ___ _ _ ___
/ / | | | '_ \ // / / | | |/ _ \ | | |/ _ \
/ /___| | | |_) / \_/ /| |_| | __/ |_| | __/
\____/|_|_| .__/\___,_\ \__,_|\___|\__,_|\___|
|_|coded by errorseven @ 8/26/2016
Usage:
@jasondavis
jasondavis / script.js
Created February 15, 2018 14:33 — forked from brunolm/script.js
Export wordpress posts to bash echos in jekyll format
// first inject jQuery on the page, then run on /wp-admin/edit.php
// wait for it then run o.join('\n')
// execute the output on _posts folder
var o = [];
(function() {
let posts = [].slice.call(document.querySelectorAll('.post_name')).map(e => {
let container = e.parentNode;
let id = container.id.split('_')[1];
let editUrl = `https://your.wordpress.com/wp-admin/post.php?post=${id}&action=edit`;
@jasondavis
jasondavis / text wrap.ahk
Created February 4, 2018 00:10 — forked from db93n2/text wrap.ahk
📇 (autohotkey) - wrap selected text in *symbols*
/*
[script info]
version = 2.4
description = wrap selected text in %symbols%
author = davebrny
source = git.io/v1neW
*/
sendMode input
return ; end of auto-execute
@jasondavis
jasondavis / msg.ahk
Created February 3, 2018 23:52 — forked from db93n2/msg.ahk
💬 (autohotkey) - message commands that are quick to type and easy to switch between
msg_box(string=". . .", options="") {
string := format_text(string, options)
msgBox, % string
}
msg_tray(string=". . .", options="") {
string := format_text(string, options)
trayTip, , % string, 10
}
@jasondavis
jasondavis / dynaclip.ahk
Created February 3, 2018 23:29 — forked from db93n2/dynaclip.ahk
(autohotkey) - basic web clipper for https://dynalist.io
/*
[script info]
version = 0.4
description = basic web clipper for dynalist.io
author = davebrny
source = https://gist.github.com/davebrny/a23080af7aa3a648c5ce54fb61362416
*/
#noEnv
#persistent
@jasondavis
jasondavis / HtmlBox.ahk
Created January 25, 2018 21:04 — forked from G33kDude/HtmlBox.ahk
A message box style dialogue that is powered by html.
HtmlBox(HTML, Title="HtmlBox", Body=True, Full=False, URL=False, width=300, height=200)
{ ; Creates a MsgBox style GUI that has embedded HTML
global MsgBoxOK, MsgBoxActiveX, MsgBoxFull=Full
; Set up the GUI
Gui, +HwndDefault
Gui, MsgBox:New, +HwndMsgBox +Resize +MinSize +LabelMsgBox
if Full
Gui, Margin, 0, 0
else