Skip to content

Instantly share code, notes, and snippets.

View maestrith's full-sized avatar

Chad Wilson maestrith

View GitHub Profile
@maestrith
maestrith / hello_world
Created May 30, 2020 20:20
Hello World Examples
Nice it works
Second line
@maestrith
maestrith / hello_world.rb
Created May 30, 2020 20:18
Hello World Examples
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def sayHi
puts "Hello !"
end
end
hello = HelloWorld.new("World")
#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"
#SingleInstance,Off
#MaxHotkeysPerInterval,2000
#NoEnv
SetBatchLines,-1
Tick:=A_TickCount
SetWorkingDir,%A_ScriptDir%
SetControlDelay,-1
SetWinDelay,-1
DetectHiddenWindows,On
CoordMode,ToolTip,Screen
#SingleInstance,Force
global settings:=new xml("settings")
if(FileExist("workspaces.ico"))
Menu,Tray,Icon,Workspaces.ico
Gui()
return
show:
WinShow,% hwnd([1])
return
capture(){
@-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;
}
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 June 11, 2015 18:11
Posted using AHK Studio
#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 August 29, 2015 14:19
Posted using AHK Studio
#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 October 14, 2014 06:05
Posted using AHK Studio
#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