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 math | |
def HexFileToPixeloramaPalette(file, name): | |
name = '"' + name + '"' | |
first = """[gd_resource type="Resource" load_steps=15 format=2] | |
[ext_resource path="res://src/Palette/PaletteColor.gd" type="Script" id=1] | |
[ext_resource path="res://src/Palette/Palette.gd" type="Script" id=2] | |
""" | |
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
const TO_NAME = 1; | |
const TO_ABBREVIATED = 2; | |
function convertRegion(input, to) { | |
var states = [ | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['American Samoa', 'AS'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], |
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
<script> | |
window.onload = function() { | |
var today = new Date(); | |
var day = today.getDay(); | |
if (today.getMinutes() > 9) { | |
var hourm = today.getHours() + "." + today.getMinutes(); | |
} else { | |
var hourm = today.getHours() + ".0" + today.getMinutes(); | |
} | |
var time_int = parseInt(hourm, 10); |
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
<style> | |
.rating { | |
float: left; | |
} | |
.rating:not(:checked)>input { | |
position: absolute; | |
top: -9999px; | |
clip: rect(0, 0, 0, 0); | |
} |
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://blender.stackexchange.com/q/57306/3710 | |
bl_info = { | |
"name": "Add-on Template", | |
"description": "", | |
"author": "p2or", | |
"version": (0, 0, 3), | |
"blender": (2, 80, 0), | |
"location": "3D View > Tools", | |
"warning": "", # used for warning icon and text in addons panel |