This file contains hidden or 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
ShakeWeb.controller('AgreementController', | |
[ '$scope', '$stateParams', 'Agreement', '$q', function( | |
$scope, $stateParams, Agreement, $q ) { | |
$scope.status = 'No'; | |
Agreement.find($stateParams.id).then(function (agreement) { | |
$scope.agreement = agreement; | |
}); |
This file contains hidden or 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
ShakeWeb.controller('AuditEventShowController', [ | |
'$scope', '$compile', 'dataservice', '$templateCache' function( | |
$scope, $compile, dataservice, $templateCache ) { | |
var map = { | |
DraftCreatedAuditEvent: | |
'<div>' + | |
'<p>Draft Created by {{ audit_event.created_by_email }}</p>' + | |
'<p>{{ audit_event.created_at }}</p>' + | |
'</div>', |
This file contains hidden or 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
#! /usr/bin/env node | |
var locate = require('mozilla-get-url') | |
, child_process = require('child_process') | |
, ProgressBar = require('progress') | |
, async = require('async') | |
, chalk = require('chalk') | |
, request = require('request') | |
, fs = require('fs-extra') | |
, path = require('path'); |
This file contains hidden or 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
Shared = require './shared' | |
Data = require './data' | |
webdriver = require 'selenium-webdriver' | |
SeleniumServer = require('selenium-webdriver/remote').SeleniumServer | |
seleniumJar = require('selenium-server-standalone-jar') | |
server = null | |
driver = null | |
timeout = 200 | |
browser = {} |
This file contains hidden or 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
var winston = require('winston') | |
, kue = require('kue') | |
, workers = require('./app/workers') | |
, queue = require('./config/queue'); | |
Object.keys(workers).forEach(function(name){ | |
Object.keys(workers[name]).forEach(function(task){ | |
queue.process(name + '/' + task, 20, function(job, done){ | |
var args = job.data.args || []; |
This file contains hidden or 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
namespace :xcode do | |
desc 'install xcode' | |
task :install => [:download, :mount, :link] | |
task :download do | |
# Whatever version you'd like | |
execute 'curl -o ~/Downloads/Xcode.dmg https://s3.amazonaws.com/[insert-your-bucket-here]/xcode_5.1.1.dmg' | |
end | |
task :mount do |
This file contains hidden or 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
# Given the following tests | |
Given I create an invitation for "[email protected]" | |
And I create an invitation for "[email protected]" | |
When I send my invitations | |
Then I should have sent emails to: | |
| email | | |
| [email protected] | | |
| [email protected] | |
This file contains hidden or 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
Factory = require('factory') | |
Factory.sequence 'email', (n) -> | |
"user#{n}@example.com" | |
Factory.define('AccessToken', AccessToken) | |
.belongsTo('user') | |
.belongsTo('client') | |
Factory.define('User', User) |
This file contains hidden or 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
async = require process.cwd() + '/node_modules/async' | |
mongoose = require process.cwd() + '/node_modules/mongoose' | |
User = require process.cwd() + '/model/user' | |
mongoose = require process.cwd() + '/config/database' | |
copy_password_to_encrypted_password = (complete) -> | |
mongoose.set 'debug', false | |
User.collection.find({ password: { $exists: true }, encrypted_password: { $exists: false} }).toArray (err, users) -> |
This file contains hidden or 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
node_modules/* | |
keys |