Skip to content

Instantly share code, notes, and snippets.

@nextend
nextend / magento-packager.js
Created July 30, 2015 06:55
Create Magento extension xml with nodejs as a build process
var fs = require('fs'),
path = require('path'),
builder = require('xmlbuilder'),
crypto = require('crypto');
var targetDir = process.argv[2] + '/',
magentoVersion = process.argv[3];
function xmlAddSyncRecursive(xml, cpath, failSilent) {
var files;
@nextend
nextend / gist:66709844688f69d1beb8
Last active August 29, 2015 14:13
Aviary: Check if the app has access to the High resolution feature
var featherEditorHiRes = -1;
var featherEditor = new Aviary.Feather({
...
onReady: function(){
if(featherEditorHiRes == -1){
AV.controlsWidgetInstance.serverMessaging.sendMessage({
id: "avpw_auth_form",
action: AV.controlsWidgetInstance.assetManager.getManifestURL(),
method: "GET",
@nextend
nextend / gist:7986647
Last active December 31, 2015 12:29 — forked from alexindigo/gist:1871785
Internet explorer 11 support added
// {{{ win-safari hacks, scratch this,
// let's just expose platform/browser to css
(function()
{
var uaMatch = '', prefix = '';
if (navigator.userAgent.match(/Windows/))
{
$('html').addClass('x-win');
}