Skip to content

Instantly share code, notes, and snippets.

Avatar

Chad Wilson maestrith

View GitHub Profile
@maestrith
maestrith / hello_world
Created May 30, 2020
Hello World Examples
View hello_world
Nice it works
Second line
@maestrith
maestrith / hello_world.rb
Created May 30, 2020
Hello World Examples
View hello_world.rb
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
View gist:26edf3c8f9f4a669ea3fbde6c22ca7a0
#SingleInstance,Force
Version:="0.000.01"
Branch:="master"
x:=Studio(1)
NewWin:=new GuiKeep("MyWindow1")
global SmallSettings
NewWin.Add("ListView,w200 h200 NoSortHdr,Numbers|Words,wh","Edit,x+M w200 h200 vHello,,xh"
,"Button,xm gAdd,&Add,y"
,"Button,xm gTesting,Click Me,y"
,"Button,gDelete,D&elete,y"
View Super Alpha Studio
#SingleInstance,Off
#MaxHotkeysPerInterval,2000
#NoEnv
SetBatchLines,-1
Tick:=A_TickCount
SetWorkingDir,%A_ScriptDir%
SetControlDelay,-1
SetWinDelay,-1
DetectHiddenWindows,On
CoordMode,ToolTip,Screen
View Workspaces
#SingleInstance,Force
global settings:=new xml("settings")
if(FileExist("workspaces.ico"))
Menu,Tray,Icon,Workspaces.ico
Gui()
return
show:
WinShow,% hwnd([1])
return
capture(){
View Stylish Youtube Header.ahk
@-moz-document domain("youtube.com") {
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
body {
background: none #222222 !important;
color: #aaaaaa !important;
}
a:href, a:hover {
background-color: #222222;
}
View gist:4cdafa284669f154ce1e
html:=ComObjCreate("htmlfile")
code=
(
<a href="PageResolver.jsp?pageResolverType=FolderDocumentPageResolver&amp;folderId=22404433062&amp;docType=PackingPlanManifest">22404433062</a>
<a href="PageResolver.jsp?pageResolverType=FolderDocumentPageResolver&amp;folderId=22404433062&amp;docType=PackingPlanManifest">22404433061</a>
<a href="PageResolver.jsp?pageResolverType=FolderDocumentPageResolver&amp;folderId=22404433062&amp;docType=PackingPlanManifest">22404433063</a>
<a href="PageResolver.jsp?pageResolverType=FolderDocumentPageResolver&amp;folderId=22404433062&amp;docType=PackingPlanManifest">22404433065</a>
)
html.write(code)
tags:=html.getelementsbytagname("a")
@maestrith
maestrith / General Testing.ahk
Created Jun 11, 2015
Posted using AHK Studio
View General Testing.ahk
#SingleInstance,Force
changemixer("user.config","setting","name","COMPort_Audio","COM7")
updateatt("ipinfo.config","flan/server","host","192.168.1.60")
return
updateatt(file,node,attribute,newval){
myxml:=new xml("root",file)
node:=myxml.ssn("//" node "/@" attribute)
node.text:=newval
@maestrith
maestrith / Run1e.ahk
Last active Aug 29, 2015
Posted using AHK Studio
View Run1e.ahk
#SingleInstance,Force
if !FileExist("scilexer.dll")
URLDownloadToFile,http://files.maestrith.com/AHK-Studio/SciLexer.dll,SciLexer.dll
Version=0.001.0
sc:=new s(1,{pos:"w200 h200"})
Gui,+hwndhwnd
Gui,Add,Text,x+5 w200 h200 hwndtext,Type things in the left box
Gui,Show,,Scintilla Testing
return
GuiEscape:
@maestrith
maestrith / Objects.ahk
Created Oct 14, 2014
Posted using AHK Studio
View Objects.ahk
#SingleInstance,Force
tv:=new xml("tv","tv.xml"),info:=tv.ssn("//Series"),id:=tv.ssn("//Series/id").text,series:=[],obj:=series["s" id]:=[]
for a,b in StrSplit("id,SeriesName,Overview,Airs_Time,Network,Status",",")
obj[b]:=ssn(info,b).text
epstuff:=tv.sn("//Episode"),episodes:=[]
while,ee:=epstuff.item[A_Index-1]{
id:=ssn(ee,"id").text
ep:=episodes["e" id]:=[]
for a,b in StrSplit("id,seasonid,SeasonNumber,EpisodeNumber,FirstAired,EpisodeName,Overview",",")
ep[b]:=ssn(ee,b).text