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 os | |
import stat | |
import subprocess | |
def find(d, a, b): | |
for f in os.listdir(d): | |
f = os.path.join(d, f) | |
if os.path.isdir(f): | |
find(f, a, b) | |
elif os.path.isfile(f): |
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
# fc-emoji-subtract copyright marguerite@opensuse.org | |
# description: it calculates the charset of emoji fonts installed on your system and find what need to subtract for you specified font | |
diff --git a/Makefile.am b/Makefile.am | |
index 6d4cd32..70c61a0 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -22,7 +22,7 @@ | |
# PERFORMANCE OF THIS SOFTWARE. | |
SUBDIRS=fontconfig fc-case fc-lang src \ |
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
#include <dirent.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "unicode/ucol.h" |
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
for (i in activities()) { | |
activityID = activities()[i]; | |
desktops = desktopsForActivity(activityID) | |
for (j in desktops) { | |
desktop = desktops[j]; | |
desktop.wallpaperPlugin = "org.kde.image"; | |
desktop.wallpaperMode = "Scaled and Cropped"; | |
desktop.currentConfigGroup = new Array("Wallpaper", "org.kde.image", "General"); | |
desktop.writeConfig("Image", "file:///home/zhou/Pictures/Bing/AlpineLarches_ZH-CN10557456981_1920x1200.jpg"); | |
} |