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
/** | |
* Google analytics tracking | |
* add attribute data-ga-event with json encoded dictionary | |
* with keys eventLabel, eventAction, eventCategory | |
* eg: | |
* # Sample JSON structure | |
* { | |
* "eventLabel":" Send Event", | |
* "eventAction": "click", | |
* "eventCategory": "CTA" |
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
"""Convert TTC font to TTF using fontforge with python extension. | |
**Warning** The scripts saves splitted fonts in the current working directory. | |
Usage: | |
split_ttc_font_to_ttf.py Droid.ttc | |
""" | |
import sys | |
import fontforge |
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
# Ignore everything in this directory | |
* | |
# Except this file | |
!.gitignore |
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
COM_NAME = com_helloworld | |
ARCHIVE_FNAME = archive/$(COM_NAME)_$(shell date +%Y%m%d_%H%M).tar.bz2 | |
.PHONY: package | |
package: clean | |
mkdir build | |
cp -a $(COM_NAME) build/$(COM_NAME) | |
find build/$(COM_NAME) -type d -not -path build/$(COM_NAME) -exec cp build/$(COM_NAME)/index.html {} \; | |
cd build/$(COM_NAME);zip -r ../$(COM_NAME).zip . -x \*.swp | |
rm -rf build/$(COM_NAME) |
NewerOlder