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
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
// Reload controller middleware | |
sails.hooks.controllers.loadAndRegisterControllers(function() { | |
sails.once('hook:orm:reloaded', function() { | |
// Flush router | |
sails.router.flush(); | |
// Reload blueprints | |
sails.hooks.blueprints.bindShadowRoutes(); |
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
To set up iTerm 2 so you can open files referenced in a Node stack trace directly in Sublime: | |
1. Go to Preferences->Advanced | |
2. Under "Smart Selection", click the "EDIT" button | |
3. Click the + to add a new rule | |
4. For the Regular expression, user ^\s*at.*\((.+)\) | |
5. For priority, choose Very High | |
6. Click "Edit Actions" | |
7. Click the + to add a new action | |
8. Title "Open in Sublime" |
NewerOlder