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
<?php | |
// You instantiating the XSLTProcessor - libXSLT | |
$xmlProc = new XsltProcessor(); | |
// Your XSLT Stylesheet for transforming XML | |
$xslt = new DomDocument(); | |
$xslt -> load("example.xsl"); | |
// This prepares the XSLT for transform | |
$xmlProc -> importStylesheet($xslt); |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Name: Get Google Map | |
Version: 1.5 | |
Changes: added in label parameter and now works with Nick Dunn's Map Location Field v3 | |
Author: Brian Zerangue <brian.zerangue@gmail.com> | |
URL: http://symphony-cms.com/downloads/xslt/file/25937/ | |
==================== | |
Description: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Name: Geocode | |
Version: 1.0 | |
Author: Brian Zerangue <brian.zerangue@gmail.com> | |
Description: | |
=============== | |
Geocode an address based off Google Maps Geocoding service. |
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
-- check to see if internet connection is available before running script | |
set intnt to do shell script "ping -c 1 google.com; echo -n" | |
set paras to number of paragraphs in intnt | |
if paras < 5 then | |
else | |
tell application "Dropbox" to launch | |
delay 3 | |
tell application "/Users/username/Workflows/DropboxAltStarter.app" to launch | |
delay 3 | |
end if |
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
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done |
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
# From .css to .scss | |
for f in *.css; do sass-convert -F css -T scss $f ${f%%.*}.scss; done |
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
find . -name "*.css" | while read i; do sass-convert -F css -T scss "$i" "${i%.*}.scss"; done |
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
body::before | |
content: '< 480px' | |
@media only screen and (min-width: 480px) | |
body::before | |
content: '480px < 600px' | |
@media only screen and (min-width: 600px) | |
body::before | |
content: '600px < 768px' |
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
find . -name "*.ht*" | while read i; do pandoc -f html -t markdown "$i" -o "${i%.*}.md"; done |
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
find . -name "*.haml" | while read i; do haml -f xhtml -q "$i" "${i%.*}.html"; done |