- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
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
/** | |
* Copyright NetSuite, Inc. 2013 All rights reserved. | |
* The following code is a demo prototype. Due to time constraints of a demo, | |
* the code may contain bugs, may not accurately reflect user requirements | |
* and may not be the best approach. Actual implementation should not reuse | |
* this code without due verification. | |
* | |
* (Module description here. Whole header length should not exceed | |
* 100 characters in width. Use another line if needed.) | |
* |
# Markdown
# Includes octopress (http://octopress.org/) snippets
snippet [
[${1:text}](http://${2:address} "${3:title}")
snippet [*
[${1:link}](${2:`@*`} "${3:title}")${4}
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
<PULL> | |
<EMPLOYEE_TO_USER> | |
OA_FIELDS nickname,email,role_id,job_code_id,primary_filter_set,line_manager_id | |
OA_FIELDS_INITIAL_ONLY nickname,email,role_id,job_code_id,primary_filter_set | |
role_id '2' | |
job_code_id '2' | |
primary_filter_set '2' | |
line_manager_id lookup=supervisor:lookup_table=user:lookup_by=netsuite_user_id:lookup_return=id | |
</EMPLOYEE_TO_USER> |
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
import re | |
with open(f_path, 'rU') as f: | |
yaml_break = 0 | |
for line in f: | |
if line == '---\n': | |
yaml_break += 1 | |
m = re.match("published:", line) | |
if m and m.group(): | |
# published flag found... |
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
/** | |
* If the booking end date is greater than the | |
* project expiration date, prevent saving the | |
* booking and throw a form error. | |
*/ | |
function checkProjectExpiration(type) { | |
try { | |
var fldCustProj = NSOA.form.getValue('customer_project'), | |
fldEndDate = NSOA.form.getValue('enddate'), |
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
function createNewResourceRequestHeader(type) { | |
try { | |
var newProjRec = NSOA.form.getNewRecord(); | |
if (newProjRec && newProjRec.prj_staffing_plan__c == '1') { | |
var myself = NSOA.wsapi.whoami(); | |
var resReqRec = new NSOA.record.oaResourceRequest(); | |
resReqRec.number = newProjRec.prj_autoid__c; | |
resReqRec.ownerid = (myself && myself.id) ? myself.id : '2'; | |
resReqRec.customerid = newProjRec.customerid; |
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
// Set project stage to WAR when Risk type = Cost risk | |
function setProjectStageWAR(type) { | |
var fld_category = "issue_stage_id", | |
fld_risk_type = "RiskType__c", | |
fld_risk_approval = "RiskApproval__c", | |
fld_stage = "project_stageid", | |
fld_iss_project_id = "project_id", | |
constant_risk = "1", | |
constant_risk_type = "Cost risk", |