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
# -*- coding: utf-8 -*- | |
""" | |
OS Specific User Files is released under the MIT license. | |
Copyright (c) 2012 Isaac Muse <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
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
""" | |
Rummage (cli). | |
Licensed under MIT | |
Copyright (c) 2011 - 2015 Isaac Muse <[email protected]> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | |
documentation files (the "Software"), to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
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
# !/usr/bin/python | |
""" | |
Hex Viewer | |
Licensed under MIT | |
Copyright (c) 2011 Isaac Muse <[email protected]> | |
""" | |
import struct | |
from os.path import getsize, abspath, normpath | |
from glob import glob | |
import sys |
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
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
import struct | |
import re | |
import sys | |
PY3 = sys.version_info >= (3, 0) | |
if PY3: | |
uchr = chr |
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 sublime | |
import subprocess | |
import tempfile | |
import os | |
import base64 | |
class TempFile(object): | |
"""Open either a temporary HTML or one at the save location.""" |
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
""" | |
File Strip. | |
Licensed under MIT | |
Copyright (c) 2012 - 2019 Isaac Muse <[email protected]> | |
""" | |
import re | |
LINE_PRESERVE = re.compile(r"\r?\n", re.MULTILINE) | |
JSON_COMMENTS_PATTERN = re.compile( |
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
"""Override default highlighter to handle shebangs.""" | |
import re | |
RE_SHEBANG = re.compile(r'\A\#!(\w+)\b\s*\r?\n') | |
def md_shebang(src="", language="", class_name=None, options=None, md="", **kwargs): | |
"""Formatter wrapper.""" | |
try: |
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
""" | |
Luv and Lch class. | |
https://en.wikipedia.org/wiki/CIELUV | |
""" | |
from coloraide.spaces import Space, RE_DEFAULT_MATCH, GamutUnbound, Percent, WHITES, Cylindrical, Angle | |
from coloraide.spaces.xyz import XYZ | |
from coloraide import util | |
from coloraide import Color as ColorOrig | |
import copy |
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
""" | |
Din99o class. | |
https://de.wikipedia.org/wiki/DIN99-Farbraum | |
""" | |
from coloraide.spaces import RE_DEFAULT_MATCH | |
from coloraide.spaces.xyz import XYZ | |
from coloraide.spaces.lch.base import LchBase | |
from coloraide.spaces.lab.base import LabBase, lab_to_xyz, xyz_to_lab | |
from coloraide import util |
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
""" | |
HSLuv and HPLuv. | |
Adapted to Python and ColorAide by Isaac Muse (2021) | |
--- HSLuv Conversion Algorithm --- | |
Copyright (c) 2012-2021 Alexei Boronine | |
Copyright (c) 2016 Florian Dormont |
OlderNewer