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
| # OCR Town - A simple OCR application using MeikiOCR and Tkinter | |
| # ---------- | |
| # LICENSE: MIT | |
| # ---------- | |
| # HOW TO USE | |
| # ---------- | |
| # 0. put script in a location where you're ok with it generating 2 html files | |
| # 1. run script with `python ocrtown.py` | |
| # 2. gui opens, select program with the selector | |
| # 3. make sure the program is fully visible, then click clip |
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
| /* maken lines wider, default 700px */ | |
| :root { | |
| --file-line-width: 900px; | |
| } | |
| /* delete text scaling */ | |
| .markdown-source-view * { | |
| font-size: var(--font-text-size) !important; | |
| } |
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.Xml.Serialization; | |
| namespace Program | |
| { | |
| public static class DictSerializer<K, V> where K : notnull | |
| { | |
| public static void Serialize<T>(T data, string filename) where T : IDictionary<K, V> | |
| { | |
| Tuple<K, V> pair = new(); | |
| pair.Keys = data.Keys.ToArray(); |
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
| from flask import Flask, request, render_template, make_response, send_file | |
| from markupsafe import Markup | |
| from markdown_it import MarkdownIt | |
| from mdit_py_plugins.footnote import footnote_plugin | |
| from mdit_py_plugins.tasklists import tasklists_plugin | |
| from mdit_py_plugins.front_matter import front_matter_plugin # parses header info | |
| from mdit_py_plugins.texmath import texmath_plugin | |
| import os | |
| md = ( |
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
| import shutil | |
| import os | |
| from jinja2 import Environment, FileSystemLoader | |
| env = Environment(loader=FileSystemLoader('.')) | |
| def renderFile(filename): | |
| origPath = "files/" + filename | |
| newPath = "output/" + filename | |
| template = env.get_template(origPath) |
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
| -- Solo Mods | |
| -- The following details changes to be made to make AzerothCore instances more solo friendly. | |
| -- Individual changes to spells and mobs are required to allow solo play where usually a group of people is required. | |
| -- These changes are intended to be used with the autobalance module. | |
| -- ########### | |
| -- ## INDEX ## | |
| -- ########### | |
| -- 1. Explanation and Philosophy | |
| -- 2. Dungeons |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| font-family: sans-serif; | |
| --code-col: rgba(220, 220, 220, 0.511); | |
| } |
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
| /// <summary> | |
| /// from http://stephencarmody.wikispaces.com/Simplex+Noise | |
| /// | |
| /// blind conversion to C#... let's see what blows up. | |
| /// | |
| /// NOT THREADSAFE | |
| /// </summary> | |
| public static class SimplexNoise | |
| { | |
| private const float onethird = 0.333333333f; |
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
| function build(chain) { | |
| let fileData = ""; | |
| fileData += "Version 4\nSHEET 1 880 680\n"; | |
| //add all wires | |
| fileData += "WIRE 32 -256 32 -272\n" + | |
| "WIRE 32 -208 32 -256\n" + | |
| "WIRE 32 -96 32 -128\n" + | |
| "WIRE -128 -48 -128 -64\n" + |
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
| const NUM_STEPS = 1000; | |
| const e24 = [1, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2, 2.2, 2.4, 2.7, 3, 3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1]; | |
| const e48 = [1, 1.05, 1.1, 1.15, 1.21, 1.27, 1.33, 1.4, 1.47, 1.54, 1.62, 1.69, 1.78, 1.87, 1.96, 2.05, 2.15, 2.26, 2.37, 2.49, 2.61, 2.74, 2.87, 3.01, 3.16, 3.32, 3.48, 3.65, 3.83, 4.02, 4.22, 4.42, 4.64, 4.87, 5.11, 5.36, 5.62, 5.9, 6.19, 6.49, 6.81, 7.15, 7.5, 7.87, 8.25, 8.66, 9.09, 9.53]; | |
| const e96 = [1, 1.02, 1.05, 1.07, 1.1, 1.13, 1.15, 1.18, 1.21, 1.24, 1.27, 1.3, 1.33, 1.37, 1.4, 1.43, 1.47, 1.5, 1.54, 1.58, 1.62, 1.65, 1.69, 1.74, 1.78, 1.82, 1.87, 1.91, 1.96, 2, 2.05, 2.1, 2.15, 2.21, 2.26, 2.32, 2.37, 2.43, 2.49, 2.55, 2.61, 2.67, 2.74, 2.8, 2.87, 2.94, 3.01, 3.09, 3.16, 3.24, 3.32, 3.4, 3.48, 3.57, 3.65, 3.74, 3.83, 3.92, 4.02, 4.12, 4.22, 4.32, 4.42, 4.53, 4.64, 4.75, 4.87, 4.99, 5.11, 5.23, 5.36, 5.49, 5.62, 5.76, 5.9, 6.04, 6.19, 6.34, 6.49, 6.65, 6.81, 6.98, 7.15, 7.32, 7.5, 7.68, 7.87, 8.06, 8.25, 8.45, 8.66, 8.87, 9.09, 9.31, 9.53, 9.76]; | |
NewerOlder