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
#!flask/bin/python | |
from flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask.ext.httpauth import HTTPBasicAuth | |
app = Flask(__name__, static_url_path = "") | |
auth = HTTPBasicAuth() | |
@auth.get_password | |
def get_password(username): | |
if username == 'miguel': |
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
// svg.textflow.js 0.8 - Copyright (c) 2013 Wout Fierens - Licensed under the MIT license | |
SVG.Textflow = function() { | |
this.constructor.call(this, SVG.create('text')) | |
/* define default style */ | |
this.styles = { | |
'font-size': 16 | |
, 'font-family': 'Helvetica, Arial, sans-serif' | |
, 'text-anchor': 'start' |
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
#!/usr/bin/env python | |
# This script was written by Lars Wallin to facilitate export from svg to any output basically. | |
# For now only bitmap rendering is supported (to some degree...) | |
# Future versions should include rendering of canvas documents (css, html, ddh, ...) | |
# Please note that i have not run this script since i added this verbose commenting, so i might have broken some tab position or something... | |
import inkex |
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
[{"name":"body_background_color","desc":"This property sets the background color for the body of the page.","xtype":"textfield","options":[],"value":"#391732","lexicon":null,"overridden":1,"desc_trans":"This property sets the background color for the body of the page.","menu":null},{"name":"body_background_image","desc":"","xtype":"textfield","options":[],"value":"http://jenruhman.com/freshjen/free_twitter_-color-background_freshjen_3.jpg","lexicon":null,"overridden":1,"desc_trans":"","menu":null},{"name":"body_background_image_repeat","desc":"","xtype":"list","options":[{"text":"No repeat","value":"no-repeat","name":"No repeat"},{"text":"Repeat horizontal","value":"repeat-x","name":"Repeat horizontal"},{"text":"Repeat vertical","value":"repeat-y","name":"Repeat vertical"},{"text":"Tile","value":"repeat","name":"Tile"}],"value":"repeat","lexicon":null,"overridden":false,"desc_trans":"","menu":null},{"name":"body_custom_css","desc":"Override the default template css","xtype":"textarea","options":[],"value":"", |
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
/** | |
* Ext.ux.grid.GridFilters v0.2.8 | |
**/ | |
Ext.namespace("Ext.ux.grid"); | |
/* PATCH http://extjs.com/forum/showthread.php?t=76280 */ | |
Ext.override(Ext.grid.GridView, { | |
handleHdMenuClick : function(item){ | |
var index = this.hdCtxIndex, | |
cm = this.cm, |
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
[{"name":"body_background_color","desc":"This property sets the background color for the body of the page.","xtype":"textfield","options":[],"value":"#fff","lexicon":null,"overridden":false,"desc_trans":"This property sets the background color for the body of the page.","menu":null},{"name":"body_background_image","desc":"","xtype":"textfield","options":[],"value":"","lexicon":null,"overridden":false,"desc_trans":"","menu":null},{"name":"body_background_image_repeat","desc":"","xtype":"list","options":[{"text":"No repeat","value":"no-repeat","name":"No repeat"},{"text":"Repeat horizontal","value":"repeat-x","name":"Repeat horizontal"},{"text":"Repeat vertical","value":"repeat-y","name":"Repeat vertical"},{"text":"Tile","value":"repeat","name":"Tile"}],"value":"repeat","lexicon":null,"overridden":false,"desc_trans":"","menu":null},{"name":"body_custom_css","desc":"Override the default template css","xtype":"textarea","options":[],"value":"","lexicon":null,"overridden":false,"desc_trans":"Override the default t |
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"?> | |
<!-- | |
/* | |
* visionCart | |
* Copyright 2010 by 1-vision. | |
* http://www.1-vision.nl | |
* http://www.visioncart.net | |
* All rights reserved. | |
* | |
* This program is free software; you can redistribute it and/or modify it under |
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 | |
$query = $modx->newQuery('vcOrder'); | |
$query->where(array( | |
'shopid' => $shopid | |
)); | |
$query->sortby($sortBy, $sortOrder); | |
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 | |
if($useGetParam){ | |
$orderId = $_GET[$getParamName]; | |
if($orderId == ''){ | |
return false; | |
} | |
} | |
if (!$orderId) { | |
$modx->log(modX::LOG_LEVEL_ERROR, 'Snippet Error: visioncart.deleteorder, parameter orderid missing.'); |
OlderNewer