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
#Requires AutoHotkey v2.0 | |
Table := Map( | |
"a", "á", "á", "a", | |
"c", "č", "č", "c", | |
"d", "ď", "ď", "d", | |
"e", "ě", "ě", "é", "é", "e", | |
"i", "í", "í", "i", | |
"n", "ň", "ň", "n", | |
"o", "ó", "ó", "o", |
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
#Requires AutoHotkey v2.0 | |
sendSymbol(lower, upper) { | |
isUpper := GetKeyState("Shift", "P") ^ GetKeyState("CapsLock", "T") | |
SendText isUpper ? upper : lower | |
} | |
RAlt & a:: sendSymbol("á", "Á") | |
RAlt & c:: sendSymbol("č", "Č") | |
RAlt & d:: sendSymbol("ď", "Ď") |
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
<Multi_key> <a> : "á" | |
<Multi_key> <A> : "Á" | |
<Multi_key> <c> : "č" | |
<Multi_key> <C> : "Č" | |
<Multi_key> <d> : "ď" | |
<Multi_key> <D> : "Ď" | |
<Multi_key> <e> : "ě" |
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 krita import ( | |
Krita,) | |
from PyQt5.QtWidgets import ( | |
QApplication, | |
QDockWidget, | |
QToolButton) | |
def call_liquify(): | |
app = Krita.instance() |
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
F6::Send "{Volume_Down}" | |
F7::Send "{Volume_Up}" | |
F8::Send "{Volume_Mute}" |
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
// Latex | |
// \sqrt{\frac{1+f*f}{1+\left(f*f*\cos\left(\pi x\right)*\cos\left(\pi x\right)\right)}}*\cos\left(\pi x\right) | |
public float Ease(float factor, float power = 1) | |
{ | |
float p = power; | |
float cos = Mathf.Cos(factor * Mathf.PI); | |
float result = Mathf.Sqrt((1 + p * p) / (1 + (p * p * cos * cos))) * cos; | |
result *= 0.5f; |
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 bpy | |
import math | |
bpy.ops.object.mode_set(mode='VERTEX_PAINT') | |
bpy.ops.object.mode_set(mode='OBJECT') | |
obj = bpy.context.object | |
for face in obj.data.polygons: | |
mat = obj.material_slots[face.material_index].material |
NewerOlder