Skip to content

Instantly share code, notes, and snippets.

View mongoltolbo's full-sized avatar

Lkhamsuren Amarjargal mongoltolbo

View GitHub Profile
for i in *.svg; do inkscape -f "$i" -e "$i.png"; done
import fontforge
font = fontforge.open("/usr/share/fonts/truetype/ttf-malayalam-fonts/Meera_04.ttf", 4)
print "Glyphs"
for (i,g) in enumerate(font.glyphs()):
print "%s\t%s\t%s\t%s\t%s\t%s\t%s"%(i,g.glyphname,g.glyphclass,g.script,g.encoding,g.unicode,g.getPosSub("*"))
print "GSUB Lookups"
for (i,g) in enumerate(font.gsub_lookups):
print "%s\t%s"%(i,g)
print "GPOS Lookups"
for (i,g) in enumerate(font.gpos_lookups):
#!/usr/bin/python
import sys
import fontforge
if len(sys.argv) < 3:
print("Usage: %s <from> <to>" % sys.argv[0])
sys.exit(1)
fromfile = sys.argv[1]
import fontforge
font = fontforge.open("/usr/share/fonts/truetype/ttf-malayalam-fonts/Meera_04.ttf", 4)
print "Glyphs"
for (i,g) in enumerate(font.glyphs()):
print "%s\t%s\t%s\t%s\t%s\t%s\t%s"%(i,g.glyphname,g.glyphclass,g.script,g.encoding,g.unicode,g.getPosSub("*"))
print "GSUB Lookups"
for (i,g) in enumerate(font.gsub_lookups):
print "%s\t%s"%(i,g)
print "GPOS Lookups"
for (i,g) in enumerate(font.gpos_lookups):
/*** You don't need a -ms-prefix for IE10. [http://msdn.microsoft.com/en-us/library/ie/hh673530(v=vs.85).aspx] ***/
.my-animation {
-webkit-animation: my-animation 2s 0.5s 1 ease-in-out normal both;
-moz-animation: my-animation 2s 0.5s 1 ease-in-out normal both;
-o-animation: my-animation 2s 0.5s 1 ease-in-out normal both;
animation: my-animation 2s 0.5s 1 ease-in-out normal both;
}
/*** Single values in this case (prefix-free). ***/
@-webkit-keyframes NAME-YOUR-ANIMATION {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-moz-keyframes NAME-YOUR-ANIMATION {
0% { opacity: 0; }
100% { opacity: 1; }
}
@-ms-keyframes NAME-YOUR-ANIMATION {
0% { opacity: 0; }
/*
USAGE: <div class="swing animated loop3"></div>
*/
.loop1 {
animation-iteration-count:1;
-moz-animation-iteration-count:1;
-webkit-animation-iteration-count:1;
}
.loop2 {
@mongoltolbo
mongoltolbo / glow.css
Created June 6, 2013 17:51 — forked from cam-gists/glow.css
glow
-webkit-animation-name: 'glow';
-webkit-animation-duration: .7s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-webkit-animation-timing-function: ease-in-out;
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,