Skip to content

Instantly share code, notes, and snippets.

View austincunningham's full-sized avatar

Austin Cunningham austincunningham

View GitHub Profile
/**
* Created by austin on 02/04/2017.
*/
'use strict';
const express = require('express');
const router = express.Router();
const fields = require('../fixtures/fields.json');
const exec = require('child_process').exec;
<!-- Title -->
<p class="wfm-step-row">Please register details</p>
<!-- Two field form -->
<div class="wfm-step-row" class="form-group" ng-form name="stepForm">
<md-input-container class="md-block" flex-gt-sm>
<label>E.g. First Name</label>
<!-- Customise change ng-model ctrl.model to own variable -->
<input type="text" id="title" name="title" ng-model="ctrl.model.firstName" required>
<!-- Title-->
<md-subheader>survey</md-subheader>
<!-- Two field report -->
<md-list>
<md-list-item class="md-2-line">
<div class="md-list-item-text">
<!-- Customise change model. to own variable -->
<h3>{{model.firstName}} </h3>
<p>First name </p>
'use strict';
var angular = require('angular');
window.async = require('async');
window._ = require('underscore');
var logger = require('@raincatcher/logger');
var accidentStep = require('@raincatcher-examples/step-accident');
var vehicleInspectionStep = require('@raincatcher-examples/step-vehicle-inspection');
var signatureStep = require('@raincatcher/step-signature');
'use strict';
function initModule() {
var moduleName = 'wfm.step.survey';
var ngModule = angular.module(moduleName, []);
require('../../dist');
ngModule.directive('survey', function($templateCache) {
return {
- hosts: localhost
tasks:
- name: Test that my hello_world module works
hello_world:
register: result
- debug: var=result
#!/usr/bin/python
from ansible.module_utils.basic import *
def main():
module = AnsibleModule(argument_spec={})
theReturnValue = {"hello": "world"}
module.exit_json(changed=False, meta=theReturnValue)
if __name__ == '__main__':
#!/usr/bin/python
from ansible.module_utils.basic import *
def main():
fields = {
"version_no": {"default": True, "type": "str"},
"version_name": {"default": True, "type": "str"},
"unchanged_value": {"default": True, "type": "str"}
- hosts: localhost
tasks:
- name: Test that my change_version module works
version_change:
version_name: "Before"
version_no: 1.1.1
unchanged_value: "This will pass through"
register: result
#!/usr/bin/env node
const colors = require('colors/safe');
const readlineSync = require('readline-sync');
const execsync = require('child_process').execSync;
const fs = require('fs');
console.log('This is like Echo in the command prompt');
// npm install colors/safe --save