Skip to content

Instantly share code, notes, and snippets.

@facultymatt
facultymatt / gist:f7f188f65b73856db168
Created May 11, 2015 19:02
update-object-by-id.js
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 / error_log
Created October 28, 2012 15:55
Jitsu error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: There was an error while attempting to deploy the app
error:
error: Rackspace Error (404): Item not found
error: Error output from Haibu:
error:
error: Error: Rackspace Error (404): Item not found
error: at Request._callback (/root/haibu-orchestra/node_modules/haibu/node_modules/cloudfiles/lib/cloudfiles/common.js:184:18)
error: at Request.init.self.callback (/root/haibu-orchestra/node_modules/haibu/node_modules/request/main.js:119:22)
@facultymatt
facultymatt / poasty_response.php
Created November 5, 2012 20:25
Poasty API response
<?php
// input standards
// ---
// use school id instead of literal strings
// when a user logs in, the App sends user info and device token
// the api responds with auth code, user object, and school id
//
// security concerns
@facultymatt
facultymatt / jquery.template.js
Created February 18, 2013 01:24
Faculty plugin template v1
/**
* jQuery Plugin Template
*
* @author Faculty Creative
*
* This plugin will init itself on elements with a class you specify. Data attrs can be used to override
* default options of the plugin.
*
*
* Insipired by Bootstrap and smashing magazine patterns
{
"name": "genesis-skeleton",
"version": "0.0.1",
"dependencies": {
"angular": "1.0.7",
"angular-mocks": "~1.0.6",
"angular-scenario": "~1.0.6",
"angular-strap": "~0.7.3",
"bootstrap": "~2.3.1",
"html5shiv-dist": "~3.6.1",
@facultymatt
facultymatt / mean_stack_research.md
Last active December 20, 2015 10:09
MEAN stack research

Current Strategy

We are attempting to find an existing Node / Mongoose / Express seed as an API starting point for our MEAN projects. We love and have come accustomed to the Genesis Skeleton framework workflow, but it lacks a flexiable API server. Ideally we could incorporate the two and cteate a master starter seed!

Findings:

https://github.com/linnovate/mean/

@facultymatt
facultymatt / resources.md
Last active December 21, 2015 20:29
MEAN Stack / NodeJS resources

MEAN Stack / NODEjs resources

General Resources

Mean.io These guys are trying to create something amazing. We are exploring this as a starting point for some of our MEAN projects.

http://webapplog.com/ Great articles written by an agile startup guy. Has a great comparison of PHP and NODEjs

@facultymatt
facultymatt / software_installed_on_new_mac.md
Last active December 21, 2015 20:29
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.
  • Tower Git Client

  • Coda 2

  • Sublime 2

  • Webstorm

  • Espresso

  • NodeJS

  • Chrome

  • Chrome Livereload

  • Chrome Postman

@facultymatt
facultymatt / display.html
Created September 13, 2013 21:55
Directive to do a time ago with angular. Add "moment" : "latest" to your bower.json file.
<p>{{poast.created | fromNow}}</p>
@facultymatt
facultymatt / email_best_practices.md
Last active December 23, 2015 06:19
Node Email / notifier Best Practices

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