There is obviously no <script src="..">
; in mongo shell, nor is there an "include" or "run" command.
Let's say, I'd like to embed the follwing libraries:
underscore.js
xdate.js
xdate.i18n.js
// mongo export to csv | |
// Usage "$ mongo localhost:27017/my_db script.js > test.csv " | |
cursor = db.collection.find(); | |
var fields = [ | |
"field1", | |
"field2", | |
"field3", | |
"field4", | |
"created_field" | |
]; |
There is obviously no <script src="..">
; in mongo shell, nor is there an "include" or "run" command.
Let's say, I'd like to embed the follwing libraries:
underscore.js
xdate.js
xdate.i18n.js
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { |
escapeCsv = function(options) { | |
this.options = options || { | |
delimiter : ",", | |
quote : '"', | |
escape : '"' | |
}; | |
}; | |
escapeCsv.prototype.escape = function(field) { | |
if (field) { |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
var LinkManager, LinkModule, SubContent; | |
SubContent = require('docxtemplater').SubContent; | |
LinkManager = require('./src/linkManager'); | |
LinkModule = (function () { | |
LinkModule.prototype.name = 'link'; | |
function LinkModule (options) { |
def genMeteorID(length=17): | |
UNMISTAKABLE_CHARS = "23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz" | |
randomString = "" | |
for i in range(length): | |
randomString += random.choice(UNMISTAKABLE_CHARS) | |
return randomString |
I hereby claim:
To claim this, I am signing this object: