Skip to content

Instantly share code, notes, and snippets.

View beckyconning's full-sized avatar

Becky Conning beckyconning

View GitHub Profile
@coloredlambda
coloredlambda / express.js
Created April 3, 2018 07:39
Simple express boilerplate
const express = require('express');
const bodyParser = require('body-parser');
const multer = require('multer');
const app = express();
app.get('/api', (req, res) => {
res.send('Welcome to our upload server. Have a nice ride')
});
angular.module('lib.decorators', [])
.config(['$provide', function($provide){
$provide.decorator('$rootScope', ['$delegate', function($rootScope) {
var _proto
, _new
, nextUid = function() {
return ++$rootScope.$id;
}
, Scope = function() {
@s9tpepper
s9tpepper / cucumberjs_flow
Created July 18, 2013 06:53
CucumberJS flow
1. Write Feature file with scenarios
2. Run CucumberJS to make sure I get expected scenario step def stub code
3. Add step defs to Feature_steps.js
4. Add any new utility methods I might need to pass the Feature file scenarios
- For example, if the Feature file is:
Feature: Forgot password link
Scenario: Clicking on the password link sends the user to the forgotpw.html page
Given the user is on the login page
When the user clicks on the forgot password link
Then the user is redirected to the forgot password page