This file contains 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
; https://www.creationkit.com/fallout4/index.php?title=Operator_Reference#Comparison_Operators | |
int Function GetLow3Bytes(int i) | |
{Set the high 8 bits of i to zero, and return the low 24 bits intact. | |
Equivalent to "i & 0x00FFFFFF" in C, Java, etc.} | |
if i < 0 | |
; Force i to be a positive number, by changing its high bit (bit 32) from 1 to 0. | |
i += 0x80000000 | |
endIf | |
return i % 0x01000000 | |
EndFunction |
This file contains 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
import sys | |
import asyncio | |
import base64 | |
import copy | |
import pprint | |
# pip3 install winrt | |
from winrt.windows.media.ocr import OcrEngine | |
from winrt.windows.globalization import Language | |
from winrt.windows.graphics.imaging import * | |
from winrt.windows.security.cryptography import CryptographicBuffer |
This file contains 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
Search for these 181 characters in Steam\steamui\chunk~2dcc5aaf7.js | |
return{bEventsLoaded:this.m_bEventsLoaded,bInitialLoadPending:this.m_bInitialLoadPending,eventsToShow:this.GetLibraryHomeBestEventsForUser(),takeoverEvents:this.GetTakeOverEvents()} | |
Replace with these 181 characters. There's a lot of spaces, they are required to avoid triggering Steam re-downloading the file. | |
return { bEventsLoaded: false, bInitialLoadPending: false, eventsToShow: [], takeoverEvents: [] } |
This file contains 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
// ==UserScript== | |
// @name Remove Twitter Login Prompts | |
// @namespace Violentmonkey Scripts | |
// @match https://twitter.com/* | |
// @grant none | |
// @version 1.2 | |
// @author Temetra | |
// @description 20/12/2022, 09:25:19 | |
// ==/UserScript== |
This file contains 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
print("class Color:") | |
with open("named-colors.txt", encoding="utf8") as text: | |
for line in [line.rstrip("\n") for line in text]: | |
# Split line into name and hex color | |
name, color = line.split() | |
# Convert hex color into RGB | |
color = tuple(int(color.lstrip("#")[i:i+2], 16) for i in (0, 2, 4)) |
This file contains 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
# Generates the XML report in a temporary file. This is called from the dialog_callback | |
# or the notification button's cheat command. A callback is registered to be called at Python | |
# exit time to remove the temporary file. | |
def generate_report(self): | |
(tmp_fd, filename) = tempfile.mkstemp(suffix='.xml', text=True) | |
with os.fdopen(tmp_fd, 'w') as fp: | |
fp.write('<?xml version="1.0"?>') | |
fp.write('\n<report on="{}">'.format(datetime.datetime.now().strftime('%c'))) | |
for name in self._log_entries: | |
fp.write('\n\t<source name="{}">'.format(name)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.