Created
December 3, 2021 19:23
-
-
Save thomasnield/f7068e67838c9c556a36ccbb380e85f8 to your computer and use it in GitHub Desktop.
O'Reilly Atlas AHK Helper
This file contains hidden or 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
^+c:: | |
Clipboard := random_Chars(10) | |
return | |
^+v:: Send, %Clipboard% | |
;------------------------------------------------------------------------------- | |
random_Chars(Count) { ; returns count random characters | |
;------------------------------------------------------------------------------- | |
static Char_List := "ABCDEFGHIJKLMNOPQRSTUVW" | |
. "abcdefghijklmnopqrstuvw" | |
, Length := StrLen(Char_List) | |
Loop, %Count% { | |
Random, rand, 1, Length | |
Result .= SubStr(Char_List, rand, 1) | |
} | |
return Result | |
} | |
::[[code:: | |
rand := random_Chars(10) | |
SendRaw ` | |
( | |
[[%rand%]] | |
.Description | |
==== | |
[source,python] | |
---- | |
---- | |
==== | |
) | |
Send,{UP}{UP} | |
return | |
::[[image:: | |
SendRaw ` | |
( | |
[[%clipboard%]] | |
.Description | |
image::images/%clipboard%.png[images/%clipboard%.png] | |
) | |
return | |
::[[lm:: | |
SendRaw ` | |
( | |
latexmath:[$ $] | |
) | |
Send,{LEFT}{LEFT}{LEFT} | |
return | |
::[[math:: | |
SendRaw ` | |
( | |
[latexmath] | |
++++ | |
\begin{equation} | |
\end{equation} | |
++++ | |
) | |
Send,{UP}{UP} | |
return | |
::[[eq:: | |
SendRaw ` | |
( | |
\begin{equation} | |
\end{equation} | |
) | |
Send,{UP} | |
return | |
::[[table:: | |
SendRaw ` | |
( | |
[[lIoFQkJKWV]] | |
.Different values for y = 2x + 1 | |
[options="header"] | |
|======= | |
|x|2x + 1|y | |
|0|2(0) + 1|1 | |
|1|2(1) + 1|3 | |
|2|2(2) + 1|5 | |
|3|2(3) + 1|7 | |
|======= | |
) | |
return | |
::[[sidebar:: | |
SendRaw ` | |
( | |
.Optional Title | |
**** | |
**** | |
) | |
Send, {UP} | |
return | |
::[[note:: | |
SendRaw ` | |
( | |
.Optional Title | |
[NOTE] | |
===================================================================== | |
===================================================================== | |
) | |
Send,{UP} | |
return | |
::[[warning:: | |
SendRaw ` | |
( | |
.Optional Title | |
[WARNING] | |
===================================================================== | |
===================================================================== | |
) | |
Send,{UP} | |
return | |
::[[tip:: | |
SendRaw ` | |
( | |
.Tip Title | |
[TIP] | |
==== | |
Here's some text inside a tip. | |
==== | |
) | |
Send,{UP} | |
return | |
::[images::C:\git\essential-math-for-data-science\images | |
::[essential math book::C:\git\essential-math-for-data-science\ | |
:*:[atlas:: | |
Run, https://atlas.oreilly.com/oreillymedia/essential-math-for-data-science | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment