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
Host blablabla | |
Port blub |
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 UIKit | |
extension UILabel { | |
func setText(text: String, withKerning kerning: Double) { | |
self.attributedText = NSAttributedString(string: text, attributes: kerningAttribute(kerning)) | |
} | |
func setText(text: String, withLineSpacing lineSpacing: CGFloat) { | |
self.attributedText = NSAttributedString(string: text, attributes: lineSpacingAttribute(lineSpacing)) |
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 sys | |
import time | |
from subprocess import call | |
from watchdog.observers import Observer | |
from watchdog.events import PatternMatchingEventHandler | |
class ChangeHandler(PatternMatchingEventHandler): | |
patterns = ["*.c", "*.h", "*.json"] | |
def on_any_event(self, event): |