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
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
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| call pathogen#helptags() | |
| filetype plugin on | |
| set omnifunc=syntaxcomplete#Complete | |
| colorscheme solarized | |
| " colorscheme pencil | |
| set background=dark |
by alexander white ©
| // Routing setup | |
| .config(function ($routeProvider) { | |
| $routeProvider | |
| .when('/home', { | |
| controller: 'homeCtrl', | |
| templateUrl: 'home.tpl.html' | |
| }).when('/users', { | |
| controller: 'usersCtrl', | |
| controllerAs: 'vm', | |
| templateUrl: 'users.tpl.html', |
| .factory("injectCSS", ['$q', '$http', 'MeasurementsService', function($q, $http, MeasurementsService){ | |
| var injectCSS = {}; | |
| var createLink = function(id, url) { | |
| var link = document.createElement('link'); | |
| link.id = id; | |
| link.rel = "stylesheet"; | |
| link.type = "text/css"; | |
| link.href = url; | |
| return link; |
| <!DOCTYPE html> | |
| <html> | |
| <meta charset="utf-8"> | |
| <head> | |
| <title>Question 1 - EquityZen</title> | |
| <!-- Latest compiled and minified CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> | |
| <!-- Optional theme --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| import code; code.interact(local=dict(globals(), **locals())) |