Skip to content

Instantly share code, notes, and snippets.

View sgress454's full-sized avatar

Scott Gress sgress454

View GitHub Profile
@sgress454
sgress454 / sails_rc5_dependencies.txt
Created December 28, 2015 17:13
Notes on upgrades from v0.11.3 dependencies to now
Following is the list of top-level non-development dependencies with their versions in v0.11.x and notes detailing the version they are upgraded to in v0.12.x (if any) and why. New dependencies (like `consolidate`) have notes explaining the choice of current version.
├── anchor@~0.10.5 (ours)
├── [email protected] -> 0.10.5 (has changelog, lots of bug fixes and good stuff)
├── captains-log@~0.11.11 (ours)
├── [email protected] -> 1.1.2 (no changelog, but seems to be just bugfixes and it's only used for logs)
├── [email protected] -> 2.9.0 (has changelog, bugfixes et al)
├── [email protected] -> 2.29.1 (required by our express version)
├── [email protected] (latest)
├── [email protected] (latest is just react/promises stuff)
@sgress454
sgress454 / designer.html
Last active August 29, 2015 14:13
designer
<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%;
@sgress454
sgress454 / sails_reload.js
Created September 19, 2014 20:25
Reload a Sails API at runtime
// 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();
@sgress454
sgress454 / iterm_smart_select_for_node_stack_traces.txt
Created March 4, 2014 01:49
iTerm smart select to open Node stack traces in Sublime
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"