This file contains hidden or 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
""" | |
Dates in the form of: "%m/%d/%Y" | |
Required fields: | |
'status': 'Lead-New' | |
'address_country': 'US' | |
'agree': 1 | |
'isperson': 'T' | |
'globalsubscriptionstatus': '1' | |
""" | |
values = { |
This file contains hidden or 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
function loadPage(link) { | |
console.log('link: ' + link); | |
elements.content.html(values.loader).load(link + "/" + " #inside-content", function() { | |
document.title = elements.content.find('#product-name').text() + ' | ' + values.title; | |
formatPage(); | |
}); | |
} |
This file contains hidden or 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
library = function() { | |
var elements = {}; | |
var values = { | |
searchHeight: null, | |
logoHeight: null, | |
selected: 'selected', | |
category: 'category', | |
open: 'open', | |
catSelected: 'cat-selected', |
This file contains hidden or 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
Skin biopsy 15 23 45 90 | |
Removal of benign lesion 25 38 75 150 | |
Removal of malignant lesion 38 56 113 225 | |
Flap graft repair/closure 188 281 563 1125 | |
Thyroid 1 1 1 1 | |
Excision of small cyst or tumor of thyroid 200 300 600 1200 | |
Resection of thyroid, total or complete 350 525 1050 2100 | |
Resection of thyroid, subtotal or partial 300 450 900 1800 | |
Thyroidectomy, total or subtotal, for malignancy with radical neck dissection 500 750 1500 3000 | |
Tonsils and Adenoids 1 1 1 1 |
This file contains hidden or 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
import fileinput | |
import sys | |
import re | |
filename = sys.argv[1] | |
def benefitFormat(matchobj): | |
print matchobj.group(0) | |
return '[benefit name=\"' + matchobj.group(0).rstrip() + '\"' |
This file contains hidden or 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
def parse(kwargs): | |
name = kwargs.get('name') | |
html = '<tr>\n' | |
html += '\t<th>{{ name }}</th>\n' | |
if kwargs.get('values'): | |
values = kwargs.get('values') | |
split_values = values.split(';') |
This file contains hidden or 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
def ajax_upload( request ): | |
if request.method == "POST": | |
if request.is_ajax( ): | |
# the file is stored raw in the request | |
upload = request | |
is_raw = True | |
is_common = False | |
# AJAX Upload will pass the filename in the querystring if it is the "advanced" ajax upload | |
try: | |
filename = request.GET[ 'qqfile' ] |
This file contains hidden or 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
{ | |
"kind": "Listing", | |
"data": { | |
"modhash": "hezjl3f8aq8ac18c7b0f26e3f3cf0de2be9c2cfd189bbb925a", | |
"children": [{ | |
"kind": "t3", | |
"data": { | |
"domain": "i.imgur.com", | |
"media_embed": {}, | |
"levenshtein": null, |
This file contains hidden or 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
var validate = { | |
/** | |
* Username value check: must contain a lower and upper case letter and at least 1 number. Cannot contain special characters. | |
* @param field {NodeObject} the field object | |
* @return {boolean} the result of validation | |
*/ | |
username: function(field){ | |
//Regex statements are broken into parts for ease of maintenance. | |
var reUsernameUpperCase = /[A-Z]/, | |
reUsernameLowerCase = /[a-z]/, |
This file contains hidden or 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
YUI().use("jsonp", "substitute", "event", "panel", "tabview", function (Y){ | |
//Form Validation | |
var validate = { | |
/** | |
* Username value check: must contain a lower and upper case letter and at least 1 number. Cannot contain special characters. | |
* @param field {NodeObject} the field object | |
* @return {boolean} the result of validation | |
*/ | |
username: function(field){ | |
//Regex statements are broken into parts for ease of maintenance. |
OlderNewer