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 |
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
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
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
<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
#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
#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
1. e4 c5 2. d3 Qa5+ 3. Bd2 Qb5 4. Na3 Qxb2 5. Qb1 Qxa3 6. Qb5 b6 7. Rb1 Qxa2 8. d4 Ba6 9. Bc4 Qxc2 10. Rb2 Qxe4+ 11. Ne2 Qxg2 12. Rf1 Bxb5 13. Bxb5 a6 14. Bxa6 Rxa6 15. d5 Ra1+ 16. Rb1 Rxb1+ 17. Bc1 Rxc1+ 18. Nxc1 Qxh2 19. Nd3 c4 20. Nb2 e6 21. Na4 c3 22. Nc5 c2 23. Na4 c1=Q+ 24. Ke2 Qxf1+ 25. Kxf1 Qf4 26. Nc3 Bc5 27. Ne2 Qf5 28. Ng3 Qxf2# |
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
1. c4 d5 2. Qa4+ Bd7 3. cxd5 Bxa4 4. e4 Nf6 5. b3 Bd7 6. e5 Nxd5 7. Bc4 e6 8. d4 Bb4+ 9. Kd1 Nc3+ 10. Kc2 Qh4 11. g3 Qe4+ 12. Kb2 Nd1# |
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
1. e4 e5 2. Nf3 Nc6 3. Nc3 Nf6 4. d3 Bb4 5. Bg5 h6 6. a3 Bc5 7. d4 exd4 8. Nb5 hxg5 9. Nxg5 d5 10. b4 Bf8 11. e5 Qe7 12. Bd3 Qxe5+ 13. Qe2 Bg4 14. Nxc7+ Kd8 15. Nxf7+ Kc8 16. Nxe5 Bxe2 17. Nxa8 Bxd3 18. Nxd3 Kb8 19. b5 Ne7 20. O-O Kxa8 21. Ne5 Nc8 22. Nd7 Nxd7 23. Rfe1 Be7 24. c4 dxc3 25. Rad1 Rh5 26. g4 Rg5 27. h4 Rxg4+ 28. Kf1 Rxh4 29. Rxd5 Nc5 30. Rxe7 c2 31. Rxc5 Rh1+ 32. Kg2 Rh8 33. Rxc2 Nxe7 34. b6 axb6 35. Rc7 Nd5 36. Rxg7 Rc8 37. Rg5 Rc5 38. Rg8+ Ka7 39. Rd8 Ka6 40. Ra8+ Kb5 41. a4+ Kc6 42. Rc8+ Kd6 43. Rd8+ Kc7 44. Rh8 Nc3 45. Rh7+ Kb8 46. Rh6 Nxa4 47. Rh4 b5 48. Rh8+ Ka7 49. Rh1 Nc3 50. Ra1+ Kb6 51. f4 b4 52. Rh1 b3 53. f5 Rxf5 54. Rh6+ Ka7 55. Rh3 Rc5 56. Rh1 b2 57. Rh3 b1=Q 58. Rh4 Qc2+ 59. Kg3 Rg5+ 60. Kf4 Qf5+ 61. Ke3 Nd5+ 62. Kd4 Qf2+ 63. Kc4 Qxh4+ 64. Kb5 Nc7# |
OlderNewer