Skip to content

Instantly share code, notes, and snippets.

@Meru
Meru / msvcrt_input.py
Created April 8, 2021 17:53 — forked from atupal/msvcrt_input.py
python set time limit on input
import msvcrt
import time
def raw_input_with_timeout(prompt, timeout=30.0):
finishat = time.time() + timeout
result = []
while True:
if msvcrt.kbhit():
result.append(msvcrt.getche())
if result[-1] == '\r': # or \n, whatever Win returns;-)
// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match https://www.emuparadise.me/*/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// ==/UserScript==
@Meru
Meru / Export Layers To Files.jsx
Created August 17, 2018 08:32 — forked from davestewart/Export Layers To Files.jsx
Updated Photoshop "Export Layers To Files.jsx" with optional numeric prefixing and improved file name formatting
// Copy to: "C:\Program Files (x86)\Creative\Adobe Photoshop CS6\Presets\Scripts" or equivilent on a Mac
// Tested with Photoshop CS6, but should work with older versions. Backup existing files before copying over them!
// Copyright 2007. Adobe Systems, Incorporated. All rights reserved.
// This script will export each layer in the document to a separate file.
// Written by Naoki Hada
// ZStrings and auto layout by Tom Ruark
/*
@@@BUILDINFO@@@ Export Layers To Files.jsx 1.0.0.16
@Meru
Meru / gist:9a54124db0a92f70abbc619a43a377f5
Created July 28, 2018 22:50 — forked from plieningerweb/gist:39e47584337a516f56da105365a2e4c6
Restart python script itsself (run again).md
@Meru
Meru / bot.py
Created July 26, 2018 13:00
Basic Discord.py Bot
import discord
from discord.ext import commands
import aiohttp
import re
from datetime import timedelta
import traceback
import os
from random import choice, randint
owner = ["Insert-Owner-ID"]
@Meru
Meru / pandoc.css
Created June 22, 2016 05:10 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}