Skip to content

Instantly share code, notes, and snippets.

View aviaryan's full-sized avatar
:electron:
Working

Avi Aryan aviaryan

:electron:
Working
View GitHub Profile
@aviaryan
aviaryan / SublimeTextAutoCompleteAdderUniversalEdition.ahk
Last active December 16, 2015 13:38
Sublime Text AutoComplete Adder Universal Edition - Easily add Auto-completes in Subime - Text
; INSTRUCTIONS ##########################################
;Sublime-Text Autocomplete Adder
;By Avi Aryan
;
;Tested with Sublime-Text 2
;Absolutely No guaranty
;Make sure to create a backup before going
;Don't worry about Duplicates, they will not be added again.
;########################################################
;Write your completes in listed form, one auto-complete in a line.
@aviaryan
aviaryan / HParse-Test-Script.ahk
Last active December 16, 2015 18:19
HParse Test Script - HParse is a function to extract Autohotkey hotkeys from User's shortcuts
;The Speeling Errors are done intentionally to show how HParse() manages them.
msgbox % Hparse("Cntrol + ass + S", false) ;returns {blank} As 'ass' is out of scope and RemoveInvaild := false
msgbox % Hparse("Contrl + At + S") ;returns ^!s
msgbox % Hparse("^!s") ;returns ^!s as the function-feed is already in Autohotkey format.
msgbox % Hparse("LeftContrl + X") ;returns Lcontrol & X
msgbox % Hparse("Contrl + Pageup + S") ;returns {blank} As the hotkey is invalid
msgbox % HParse("PagUp + Ctrl", true) ;returns ^PgUp as ManageOrder is true (by default)
msgbox % HParse("PagUp + Ctrl", true, false) ;returns {blank} as ManageOrder is false and hotkey is invalid
msgbox % Hparse("Ctrl + Alt + Ctrl + K") ;returns {blank} as two Ctrls are wrong
@aviaryan
aviaryan / Hparse-changelog.txt
Last active December 16, 2015 18:19
HParse ChangeLog - Hparse is a function to convert shortcuts to autohotkey hotkeys
11/05/13
Third Revision
•Improved [Autohotkey] Modifiers handling
Will accept keys of the form [PageUp & PageDown] and [^!x]
•Fixed problems with certain keys
=====================================================
1/05/13
Second Revision
@aviaryan
aviaryan / GoogleClipjump.ahk
Last active December 16, 2015 22:29
Google Search for Clipjump
;NakariaSan's Google Search Script
;Modified by Avi for use with Clipjump
;Have questions, please contact
;Updated on 24/08/13
;Use Ctrl+G to do Google Search
Hotkey,^g,Google,On
return
BrowserPath(){
@aviaryan
aviaryan / Alphaparsermodel.ahk
Created May 16, 2013 08:33
Alphabet based list parser ....
;Parses list items a/c starting alphabets
;Modify it to achieve desired results
MsgBox,% Categorize("L2332,j23923,j9239,l23020,p2392,p239,q912,z9323,c92932,b239239,n23923,z23929,b23823 ")
Categorize(var){
loop, parse, var, `,, %A_Space%
{
first := SubStr(A_LoopField, 1, 1)
if first is alpha
@aviaryan
aviaryan / mathstestscript.ahk
Last active December 17, 2015 11:08
Maths Test Script -
SetWorkingDir %A_ScriptDir%
var = sqrt(4) - [892839.2382389 - 89238239.923]
msgbox,% SM_Solve(var)
msgbox,% SM_Solve("log(2) + log(3) + log(4) - 23898238239.32 * 3282398239238.92382 / 892382938239.8923")
msgbox,% SM_Solve("Sqrt(4) * 2 * log(100) / 32")
msgbox,% SM_UniquePmt("avi,annat,koiaur,aurkoi") ;no of permutation = 24
msgbox,% SM_UniquePmt("abd", 3) ;no of permutation = 6
msgbox,% SM_UniquePmt("abcdefghijklmnop",2)
@aviaryan
aviaryan / mchlog.txt
Last active December 17, 2015 11:39
Maths change log
Maths() CHANGELOG***********************************************************
Avi Aryan *
****************************************************************************
23 / 07 / 13
v2.7
* Performance Improvements - SM_ Pow() , fact() and e() functions are now much faster
* SM_e(N, auto=true) now has an auto param. Use it as true for better speed.
29 / 06 / 13
@aviaryan
aviaryan / Concatenate-without-loop.ahk
Created May 27, 2013 10:14
Concatenate a string n times without using loop in autohotkey
Concatenate(string, ntimes){
return, (ntimes<2) ? string : string . Concatenate(string , ntimes-1)
}
@aviaryan
aviaryan / inistruct.ini
Last active December 17, 2015 21:29
Commented ini structure
[Section1]
; Comment for Section1
key1 = value1
; Comment for key1
key2 = value2
; Comment for key2
@aviaryan
aviaryan / inilibprev.ini
Created May 30, 2013 14:15
_Ini Lib Preview
[section1]
;Section 1 comment
exepathname=kath
;kath
exe2=belkath
;exe2 cmnt
exe3=belkath
;exe3 cmnt
[sec2]
;sec2 comment