Skip to content

Instantly share code, notes, and snippets.

@enru
enru / OpenLayers.Touch.Handler.js
Created April 6, 2011 10:51
touch handler for openlayers maps
/*
* touch handler for openlayers maps on mobile
* see: http://www.openlayers.org/
*/
var map = {} // dummy object -> create & init an openlayers map
Touch = (function() { return {
startX: 0,
startY: 0,
@enru
enru / copyext2mage.sh
Created February 25, 2011 19:28
copies a magento aheadworks or mageworx extension into magento
# first cd into aheadworks or mageworx extension dir
# (this assumes it's been unzipped into magento's root dir)
for x in `find step_*`; do
y=`echo $x | awk '{ sub("step_[0-9]+/", ""); print "../"$0; }'`;
if [ -d "$x" ] && ! [ -e "$y" ] ; then mkdir -p $y; fi;
if [ -f "$x" ]; then cp $x $y; fi;
done