TLDR:
- How to make "custom" nodejs build
- How to use custom build node via nvm
- How to use custom build npm for native packages
const WebSocket = require('ws'); | |
const http = require('http'); | |
const Y = require('yjs'); | |
const wsUtils = require('./utils'); | |
const cookie = require('cookie'); | |
const QuillDelta = require('quill-delta'); | |
//const QuillConverter = require('node-quill-converter'); | |
//const MdastFromQuillDelta = require('mdast-util-from-quill-delta'); |
Feb 10, 2016
Mediately is growing and we're looking for a Ruby/Python backend engineer!
We are developers of a medical information mobile app. It's targeted at doctors and other medical professionals, and our users love us. More than half of all doctors in Slovenia use the app daily and we are the market leader in all 4 countries we have apps in. And this year we're growing to 3 more, so we need you!
We do not require a full-stack unicorn who knows everything from AWS to CSS, we're looking for someone to help us maintain and build on our backend. Its job is to automatically combine information from websites and docs and build local databases. Your job will be to help us do this faster in new countries, automate as much as possible and further develop internal tools for getting insights out of these databases. It would be great if you have experience in text and data mining and if you find natural language processing interesting you will love the potential our databases have.
Our sources are in all Europe
import serial | |
import datetime | |
from pymongo import MongoClient | |
port = serial.Serial('/dev/ttyAMA0', baudrate=9600, timeout=2.0) | |
client = MongoClient('172.31.150.230') | |
def read_pm_line(_port): | |
rv = b'' |
Install node-repl-promised:
npm install -g repl-promised
Use the repl to list all users
$ node-promised
> var app = require('./app');
undefined
> var Bookshelf = app.get('bookshelf');
undefined
The final result: require() any module on npm in your browser console with browserify
This article is written to explain how the above gif works in the chrome (and other) browser consoles. A quick disclaimer: this whole thing is a huge hack, it shouldn't be used for anything seriously, and there are probably much better ways of accomplishing the same.
Update: There are much better ways of accomplishing the same, and the script has been updated to use a much simpler method pulling directly from browserify-cdn. See this thread for details: mathisonian/requirify#5
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
// this will find all files ending with _test.js and run them with Mocha. Put this in your package.json | |
"scripts": { | |
"test": "find ./tests -name '*_test.js' | xargs mocha -R spec" | |
}, |