If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
import tornado.ioloop | |
import tornado.web | |
import urllib2 as urllib | |
from PIL import Image | |
from cStringIO import StringIO | |
import numpy as np | |
import tesserwrap | |
import cv2 | |
class MainHandler(tornado.web.RequestHandler): |
#!/usr/bin/env python | |
import os | |
import sys | |
import re | |
def read_env(): | |
"""Pulled from Honcho code with minor updates, reads local default | |
environment variables from a .env file located in the project root | |
directory. |
# Login admin | |
> use admin | |
> db.auth('user','pass') | |
#Basic shows | |
> show dbs | |
> show collections | |
> db.collection.getIndexes() | |
#Create Index |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Django", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": false, | |
"pythonPath": "${workspaceRoot}/venv/bin/python3.4", | |
"program": "${workspaceRoot}/manage.py", |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Django", | |
"type": "python", | |
"request": "launch", | |
"stopOnEntry": false, | |
"pythonPath": "${workspaceRoot}/venv/bin/python3.4", | |
"program": "${workspaceRoot}/manage.py", |
/** | |
* Use Croppie for a simple image cropping. | |
* @see https://github.com/Foliotek/Croppie | |
* @example | |
* <lh-croppie src="cropped.source" ng-model="cropped.image"></lh-croppie> | |
*/ | |
angular.module('lingohubApp').directive('lhCroppie', function () { | |
return { | |
restrict: 'E', | |
scope: { |
//This code is a simple adaptation from the index.js file in CryptoJS node module | |
(function (root, factory, undef) { | |
if (typeof exports === "object") { | |
// CommonJS | |
module.exports = exports = factory(require('./picker'), require('./picker.date'), require('./picker.time')); | |
} | |
else if (typeof define === "function" && define.amd) { | |
// AMD | |
define(['./picker','./picker.date', './picker.time'], factory); | |
} |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Base16 Color Schemes/base16-ocean.dark.tmTheme", | |
"draw_white_space": "all", | |
"font_face": "Source Code Pro", | |
"font_size": 14, | |
"highlight_line": true, | |
"indent_to_bracket": true, | |
"line_padding_bottom": 3, | |
"line_padding_top": 3, |