Skip to content

Instantly share code, notes, and snippets.

View mongoltolbo's full-sized avatar

Lkhamsuren Amarjargal mongoltolbo

View GitHub Profile
@mongoltolbo
mongoltolbo / Glowing Anchor Links
Created June 6, 2013 04:37
Glowing Anchor Links
@mongoltolbo
mongoltolbo / Featured CSS3 Display Banner
Created June 6, 2013 04:38
Featured CSS3 Display Banner
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,
@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;
/*
USAGE: <div class="swing animated loop3"></div>
*/
.loop1 {
animation-iteration-count:1;
-moz-animation-iteration-count:1;
-webkit-animation-iteration-count:1;
}
.loop2 {
@-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; }
/*** 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). ***/
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 [];
}
@mongoltolbo
mongoltolbo / gist:5730663
Created June 7, 2013 16:50
Linux file permission
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,
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):