Skip to content

Instantly share code, notes, and snippets.

View mickdekkers's full-sized avatar

Mick Dekkers mickdekkers

  • Lab Digital
  • Apeldoorn, Netherlands
View GitHub Profile
@mickdekkers
mickdekkers / speak.ahk
Created June 8, 2016 21:53
Command line Text-to-Speech
#NoEnv
; Require exactly one command line argument
; "The left side of a non-expression if-statement is always the name of a variable." -- https://autohotkey.com/docs/Scripts.htm#cmd
if 0 != 1
{
; Exit the script with code 1 (error)
ExitApp, 1
}
@mickdekkers
mickdekkers / skypestatus.ahk
Created May 27, 2016 16:39
Change your Skype status programmatically
#NoEnv
#NoTrayIcon
#SingleInstance ignore
; The path to Skype's executable
skypePath := "C:\Program Files (x86)\Skype\Phone\Skype.exe"
; Used to identify Skype's main window
skypeWin := "ahk_exe Skype.exe ahk_class tSkMainForm"
; The X coordinate of all the status buttons
statusXCoord := 56
@mickdekkers
mickdekkers / gobyexample.monokai.css
Created September 30, 2015 17:35
Go by Example syntax highlighting - Monokai theme
/* Syntax highlighting */
body div.highlight {
color: #fff ;
background-color: #272822 ;
padding: 5px;
}
body .code {
background-color: #272822 ;
@mickdekkers
mickdekkers / github.monokai.css
Last active October 4, 2015 12:28
Github syntax highlighting - Monokai theme
.container .highlight span.pl-c {
color: #75715e;
}
.container .highlight span.pl-c1 {
color: #ae81ff;
}
.container .highlight span.pl-en {
color: #a6e22e;
@mickdekkers
mickdekkers / dks2wiki_levelcost
Created October 17, 2014 13:26
Extract Dark Souls 2 Cost of Leveling from http://darksouls2.wikidot.com/level
/*
* Code snippet to extract Dark Souls 2 Cost of Leveling from http://darksouls2.wikidot.com/level
*/
// Load jQuery
(function(a){if(!a.jQuery){var d=document,b=d.createElement('script');b.src='//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';d.getElementsByTagName('head')[0].appendChild(b)}})(this);
// Set jQuery variable
$ = jQuery;
// Clean up tables