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
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
.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
::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
<p class='marquee'>wow css3 marquee fun!</p> | |
p.marquee{ | |
-webkit-animation-name: marquee; | |
-webkit-animation-timing-function: linear; | |
-webkit-animation-duration:10s; | |
-webkit-animation-iteration-count: infinite; | |
margin: 0; | |
padding: 0; | |
overflow: hidden; |
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
sudo apt-add-repository ppa:xorg-edgers/ppa | |
sudo apt-get update | |
sudo apt-get install nvidia-current nvidia-settings |
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
.section.header { | |
background-color: white; | |
background-position: center bottom,center top; | |
background-size: auto,cover; | |
background-image: url(https://slack.global.ssl.fastly.net/20651/img/tour/header_arrow.png); | |
background-repeat: no-repeat; | |
text-shadow: 0 1px 1px rgba(0,0,0,0.5); | |
min-height: 550px; | |
position: relative; | |
} |
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
/etc/init.d/apache2 restart |
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
:~$ sudo apt-get install php5 | |
That will install the latest available release of the PHP package. Next, you should verify the version running the following command: | |
:~$ php -v | |
Be sure you get at least the 5.4 release, otherwise Grav will not work. | |
PHP 5.6.4-4ubuntu6.2 (cli) (built: Jul 2 2015 15:29:28) | |
Copyright (c) 1997-2014 The PHP Group | |
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies | |
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies |