Skip to content

Instantly share code, notes, and snippets.

View gist:f7f188f65b73856db168
module.exports = {
friendlyName: 'Update object by Id',
description: 'Update a salseforce object given Id and new values.',
extendedDescription: 'Requires authentication with username, password, and secret token.',
inputs: {
email: {
example: 'user@gmail.com',
description: 'Email address used to login to your salseforce account.',
@facultymatt
facultymatt / calibrations.md
Last active Aug 2, 2019
openFrameworks Kinect & projector calibration
View calibrations.md

Kinect/ projector calibration and mapping:

Map Projections to moving objects in real time.

Uses the Kinect to track and locate objects. Might be overkill for this project since the table doesn't move. However might be cool to use in reverse to NOT project onto people who are interacting with the table: http://chparsons.com.ar/#camara_lucida

Kinect projector calibration

Another example that might be overkill since the table is static.

View server.js
/**
* Add express to package.json
* Keep the app.get('*') for nice sinlge page app support
*
*/
var express = require("express"),
app = express(),
port = parseInt(process.env.PORT, 10) || 4567;
View RS002_README.md

Workflow

  • Make changes on develop. Commit and push to origin.
  • Swtich to master, pull and merge from orgin.
  • IMPORTANT: You'll need to commit the build files since the build process times out on Heroku and so you need to do it locally.
  • From your Master Branch, change your .Procfile to web: ./node_modules/.bin/grunt build optimize && node server/server
  • Run $ foreman start which will simulate building on Heroku.
  • You should now have a bunch of new files in your build folder. Commit those. DONT COMMIT THE PROCFILE!
  • Now, back to normal...
  • Wait! Make sure to test the app as building and minification often breaks stuff!
@facultymatt
facultymatt / images.js
Created Oct 10, 2013
Example image controller
View images.js
function ImagesController($scope, $routeParams, $location, Global) {
// get global settings
$scope.global = Global;
// set filepicker key
filepicker.setKey('Akpol0G7ZQ7ODgRPSZPJRz');
// define our empty image object
$scope.newImage = {};
View email_module_pattern.js
// A design pattern for a mean.io notifier module
var transport = null; // will store our connection to nodemailer
var actions = ['generate_quote', 'generate_application', 'submit_application']; // actions allowed to email
// There is no model
exports.initModel() {}
// There are no routes
exports.initRoutes() {}
@facultymatt
facultymatt / email_best_practices.md
Last active Dec 23, 2015
Node Email / notifier Best Practices
View email_best_practices.md

Emailer / Notifier Best Practices

  • Supports any protocol, ideally by just setting a config option or function.
  • Supports sendgrid, which is a Heroku based app, making it super simple to get running on develop.
  • Won't fail, or catches errors, if any variables are missing.
  • Checks for development and testing environments, and prevents email send (console.log instead)
  • REUSABLE! The library itself, and maybe even the template, should be resuable across projects.

Good Looking Approaches

@facultymatt
facultymatt / display.html
Created Sep 13, 2013
Directive to do a time ago with angular. Add "moment" : "latest" to your bower.json file.
View display.html
<p>{{poast.created | fromNow}}</p>
@facultymatt
facultymatt / roles_invesitgation.md
Last active Jul 23, 2020
Roles and permissions system for Nodejs
View roles_invesitgation.md
@facultymatt
facultymatt / software_installed_on_new_mac.md
Last active Dec 21, 2015
I just got a new MacBook Pro. Im starting from scratch - no automatic transferring of programs or files. I'm compiling this list of software that I install, in the relative order in which I install it.
View software_installed_on_new_mac.md
  • Tower Git Client

  • Coda 2

  • Sublime 2

  • Webstorm

  • Espresso

  • NodeJS

  • Chrome

  • Chrome Livereload

  • Chrome Postman

You can’t perform that action at this time.