Skip to content

Instantly share code, notes, and snippets.

@atshane253
atshane253 / WaitForUpdatePanel.cs
Created August 19, 2019 18:02
Selenium WebDriver Wait for updatepanel postback
public static void WaitForUpdatePanel(this IWebDriver driver) =>
new WebDriverWait(driver, WAIT).Until(d=>
!(bool)(driver as IJavaScriptExecutor).ExecuteScript("return Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack()"));
!nw1wtjomu4Fn(Oo0kkYJcwuMblSK6UVfm0M2MX0KUnPCXh83(EojubDDgDgM20ZTCU89DGgqtOebno4YWWb9PedLeErqWf9OKkkjd)bgui1BPJOelFNnyIwzjIx5GtHucR1wQBMxBfALbS1sj7NNNB4wA859Vy4WH3myWWWHxFZGRaRvPG1l0cfy34O4KOLhI6yiQmHQIJAMgtMExeLKQ1Ym9wfzROMJjqARXQRsahEQoJz5us7H3DMgLvWPRHAkvRCPCJOOG3GPwSRypiWDCpevOcAyH(xkwf)GLKXnI6APqv82Zq(AGObjwfZMwYnKs925kOB5E)OWya7Oe(gx2)aNjTLG221ojlA45IDuczr0SzG4AUuon7qZQZisBUZOvJVLKSIKC7sibBn8yiLW6Ol1axAvc4zTKThkdsgFn4AIRuEiA2IjpnZB0Xc1IcyPwXgEIx4J6my(DEqpuJR)hPyRL8mS19cNxFlKLP2LmySIImCz(NMAWh8gft(BO5cZEONf4dvicqOKjnIxF75F1YYAyw2BpNa1JXksFz)DqNgHlyGrK1yTu3476X9OXHUdx6o3hp3LIhsGrZtsM)4YP3)qYjx4ejRaaVZFkz20ya6uYffLagm8QRryNOYFLUKG1ypo(vAf8m7qoTYl0Wb4dmICJCH6NBDUqjmL)y7bpKAMJJbZ6vPsMXGtB8JAUDnZALo4mkahjDk3WlfPEvENWcdaHGiYY53)e0bQALwr30357rBqa(h1Je6KpkeeVRJk37)yYoEVdhH8sTkxu4HNUrYxsNXHThOUqSJlpzFYxdx640iFVdFoQBjYKgGr4Jgz8YOO4tc3Nbdn8cO77n2TyGWK1LmxBihJdSvaUv33VJO874c77A4jqQyf1y)oJBywCG66(U7KsoZ4Aj6UTKWcLZQPKx16keiJH4(3H6JEFN3rGFWja)GJaFbScU2V(PRX(T(4S7e(8wrgSoYZeC6(etU1Djt3E3Fh(N9MMyKBVby1UjlU2WVz)iXjtVYVigI
-- sources: http://dba.stackexchange.com/questions/97188/how-to-output-more-than-4000-characters-in-sqlcmd/97350#97350
-- www.sqlbook.com/scripts/AutoGenerateCRUDStoredProcs.txt
-- Do we want to generate the SP definitions for every user defined
-- table in the database or just a single specified table?
-- Assign a blank string - '' for all tables or the table name for
-- a single table.
DECLARE @GenerateProcsFor VARCHAR(128) = ''
-- which database do we want to create the procs for?
-- Change both the USE and SET lines below to set the database name
@atshane253
atshane253 / star dot inputs.txt
Last active October 22, 2017 05:49
figuring out canoe inputs and porting TAS to it
simple unix text files
invalid videos usually don't crash, Canoe just sits there until disturbed.
# hash tag comments until the next line
files are saved with version headers, known headers:
# Inputs version 2.1.0213.0 (Canoe Win32)
(builtin classic demo)
# Inputs version 2.3.0531.0 (Canoe L.ARM)
(US SNES mini dp-snesusa-nerd release-v2.0.13-0-g9dca6c5)
@atshane253
atshane253 / gist:44e0c48e144cbc7315b5c9cc394f40cd
Created September 21, 2017 21:02
SSMS Find and Replace Regexes for Script Table Template Parameters
MATCH
---
UPDATE
[Column] = <Column, type,>
\[(.*?)\] = <.*?, (.*?),>
INSERT
<Column, type,>
<(.*?), (.*?),>
REPLACE
@atshane253
atshane253 / gist:1106a45bfd32986e8b687482518f986a
Created May 26, 2017 06:56
alttp lr shoulder button item select for jp1.0/randomizer
I found a mega man X style item selection hack for zelda 3 alttp 1.0 NA, here's the relevant addresses to hook for 1.0 JP:
!CycleCode = $0EFD80
org $0287FB
JSL MapCode
org $02A451
JSL MapCode
@atshane253
atshane253 / ALTTP Randomizer HUD.lua
Last active October 4, 2017 15:58
ALTTP Randomizer HUD Watcher lua script
local timer = 15 * 60
-- sram trace
local address = 0x1E00
local range = 0x01E0
-- private
local old
local log = {}
local _timer = timer