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
$.ajax({ | |
url: '/api/inpaint', //NOTE: you will get a JS header error when the url is NOT from the same hoste! | |
type: 'post', | |
data: fd, | |
contentType: false, | |
processData: false, | |
success: function(data){ | |
//TODO: Set returned image as new "uploaded" image, so the image doesn't reset after submitting again | |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Text; | |
namespace Server | |
{ | |
class DiscordWebhookHandler | |
{ |
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
TargetFrameTextureFrame:SetScript("OnUpdate", function() | |
local hp = UnitHealth("target") | |
if not TargetFrameTextureFrameDeadText:IsVisible() then | |
TargetFrameTextureFrameDeadText:Show() | |
TargetFrameTextureFrameDeadText:SetWidth(250) | |
TargetFrameTextureFrameDeadText:SetTextColor(256, 256, 256) | |
end | |
local text = "Dead" |
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
loca nn = ... | |
enabled = true | |
local function tick() | |
if not enabled then return end | |
local os = Objects() | |
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
AccessCheck,ActivateActCtx,AddConsoleAliasA,AddConsoleAliasW,AddRefActCtx,AddResourceAttributeAce,AddSIDToBoundaryDescriptor,AddScopedPolicyIDAce,AllocConsole,AllocateAndInitializeSid,AllocateUserPhysicalPages,AllocateUserPhysicalPagesNuma,AppContainerFreeMemory,AppContainerLookupMoniker,AppXGetOSMaxVersionTested,AppXPostSuccessExtension,AppXPreCreationExtension,AppXReleaseAppXContext,AreFileApisANSI,AttachConsole,BaseCheckAppcompatCache,BaseCheckAppcompatCacheEx,BaseCleanupAppcompatCacheSupport,BaseDllFreeResourceId,BaseDllMapResourceIdW,BaseDumpAppcompatCache,BaseFlushAppcompatCache,BaseFormatObjectAttributes,BaseFreeAppCompatDataForProcess,BaseGetNamedObjectDirectory,BaseInitAppcompatCacheSupport,BaseReadAppCompatDataForProcess,BaseUpdateAppcompatCache,BasepAdjustObjectAttributesForPrivateNamespace,BasepNotifyTrackingService,Beep,CallNamedPipeW,CancelIo,CancelIoEx,CancelSynchronousIo,CancelWaitableTimer,ChangeTimerQueueTimer,CheckAllowDecryptedRemoteDestinationPolicy,CheckGroupPolicyEnabled,CheckIsMSIXPack |
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
local nn = ... | |
local os = Objects() | |
local lastUse = 0 | |
local function tick() | |
for i=1, #os do | |
local o = os[i] | |
if ObjectType(o) == 8 then | |
local name = ObjectName(o) |
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
-- TODO: needs gen path, and better state tracking | |
local Nn = ... | |
local eggs = {} | |
local function distance3D(x1, y1, z1, x2, y2, z2) | |
local dx = x2 - x1 | |
local dy = y2 - y1 | |
local dz = z2 - z1 | |
return math.sqrt(dx * dx + dy * dy + dz * dz) |
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
#!/usr/bin/env python3 | |
""" | |
% python3 bech32.py 0350dbc4dfd2313112fa6d1ac3effed7d1428b3c8dcc7357c0b84bac8f356a1894 | |
Compressed pubkey : 0350dbc4dfd2313112fa6d1ac3effed7d1428b3c8dcc7357c0b84bac8f356a1894 | |
HASH160(pubkey) : 21a2db9402e6f788a64bc237aed8bda8fe9c1282 | |
scriptPubKey (hex): 001421a2db9402e6f788a64bc237aed8bda8fe9c1282 | |
bech32 address : bc1qyx3dh9qzummc3fjtcgm6ak9a4rlfcy5zm7t6mn | |
""" | |
import argparse, binascii, hashlib, sys |
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
#!/usr/bin/env python3 | |
""" | |
% python3 npub1.py 0350dbc4dfd2313112fa6d1ac3effed7d1428b3c8dcc7357c0b84bac8f356a1894 | |
Compressed BTC pubkey (hex): 0350dbc4dfd2313112fa6d1ac3effed7d1428b3c8dcc7357c0b84bac8f356a1894 | |
Nostr x-only pubkey (hex) : 50dbc4dfd2313112fa6d1ac3effed7d1428b3c8dcc7357c0b84bac8f356a1894 | |
Nostr npub : npub12rdufh7jxyc397ndrtp7llkh69pgk0yde3e40s9cfwkg7dt2rz2qjdzd2t | |
""" | |
import argparse | |
import binascii |