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
# Old | |
class MyClass: | |
def __init__(self, member_init1: int, member_init2: int, member_init3: int): | |
self.member1 = member_init1 | |
self.member2 = member_init2 | |
self.member3 = member_init3 | |
print('MyClass initialized') | |
def __str__(self): | |
print('member1: ', self.member1, ' member2: ', self.member2, ' member3: ', self.member3) |
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
module logmixin.d; | |
/** | |
This mixin will log at the start and exit | |
of every call that injects it, including parameter | |
namess and values. Enter/exit/param messages are | |
logged only on debug mode. Failures are always logged. | |
*/ | |
string LogBoilerPlate(string caller=__FUNCTION__)() { | |
import std.traits: ParameterIdentifierTuple; |
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
#!/bin/sh | |
# Note: this works well on Gnome3. KDE 5.7 seems to have issues with the | |
# framebuffer (toolbars are over the place). 5.9 works well except for | |
# the desktop background image on the scaled monitor (0 fucks given) but | |
# for KDE you have to add the xrandr command in another config file: | |
# http://askubuntu.com/questions/299241/how-to-reset-kde-display-settings-after-a-move-to-a-new-machine | |
# | |
# tldr: upscale the lowdpi screen to match the resolution of the hdpi one | |
# and create a virtual framebuffer resolution that is the size of the combined | |
# resolutions |