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
::selection { | |
background: #E599FF; /* Safari */ | |
} | |
::-moz-selection { | |
background: #E599FF; /* Firefox */ | |
} |
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
.parent { position: relative; } | |
.child { | |
position: absolute; | |
left: 50%; | |
top: 50% | |
-webkit-transform: translate(-50%, -50%); | |
-moz-transform: translate(-50%, -50%); |
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
for i in *.svg; do inkscape -f "$i" -e "$i.png"; done |
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 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): |
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
#!/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] |
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 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): |
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
Earlier we discussed about how to use octal permission bits with chmod. In this article, let us review how to use symbolic representation with chmod. | |
Following are the symbolic representation of three different roles: | |
u is for user, | |
g is for group, | |
and o is for others. | |
Following are the symbolic representation of three different permissions: | |
r is for read permission, |
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
var app = angular.module('gallery', ['ui.bootstrap']); | |
app.filter('startFrom', function() { | |
return function(input, start) { | |
if(input) { | |
start = +start; //parse to int | |
return input.slice(start); | |
} | |
return []; | |
} |
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
/*** 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). ***/ |
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
@-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; } |