Skip to content

Instantly share code, notes, and snippets.

Working from home

Ben Newton bennewton999

Working from home
Block or report user

Report or block bennewton999

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bennewton999 / checkForSurvey.js
Last active Jul 30, 2018
Remove iPerceptions Modal in Puppeteer e2e and visual regression tests
View checkForSurvey.js
// Checks for survey modal and clicks "NO" if it is on page during testing.
const checkForSurvey = async page => {
const SELECTOR =
if ((await page.$(SELECTOR)) !== null) {
View nyc-output
hybris-pld-boilerplate@1.0.0 /Development/hybris-pld-boilerplate
├── babel-cli@6.18.0 extraneous
├─┬ babel-core@6.18.2
│ ├─┬ babel-code-frame@6.16.0
│ │ └── js-tokens@2.0.0
│ ├─┬ babel-generator@6.19.0
│ │ ├─┬ detect-indent@4.0.0
│ │ │ └─┬ repeating@2.0.1
View .eslintrc
"rules": {
"quotes": [1, "single"],
"indent": [2, 2],
"key-spacing": [2, { "afterColon": true }],
"block-spacing": [2, "always"],
"array-bracket-spacing": [2, "always"],
"camelcase": [2, {"properties": "always"}],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"]
bennewton999 / date-snippet-for-template.html
Created Jul 13, 2015
Simple responsive date for AngularJS
View date-snippet-for-template.html
<span>{{fare.book_by_date | date:checkDate()}}</span>
bennewton999 / gist:be3bee456903007ff797
Created Oct 21, 2014
non scrolling surface HTML
View gist:be3bee456903007ff797
<fa-app style="height:100%">
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-modifier fa-size="[undefined, true]">
<fa-view fa-index="0">
<fa-surface fa-pipe-to="eventHandler" fa-size="[undefined, true]">
<div surface-height id="test">
<div ng-include="'partials/navbar'"></div>
<div class="masthead jumbotron">
<div class="container">
<h2>See What's Vital <em>to You</em> in <em>Real Time</em></h2>
bennewton999 / main.html
Created Oct 18, 2014
This is the home page template for my app. I added angular-famous for some animations on one page in my app. That works fine. But I didn't realize adding it would require me to change the whole app for scrolling to work. The page below seems to be set up correctly, but it will not scroll. Any help would be appreciated. I'm ready to abandon Famo.…
View main.html
<fa-scroll-view fa-pipe-from="eventHandler">
<fa-modifier fa-size="[undefined, true]">
<fa-surface fa-pipe-to="eventHandler">
<div ng-include="'partials/navbar'"></div>
<div class="masthead jumbotron">
<div class="container">
<h2>What's vital to you? See it in <em>Real Time</em></h2>
<div class="device-mockup imac">
View vitalwall EB install
2014-09-22 00:29:29,211 [INFO] Found the latest version manifest file <Key: elasticbeanstalk-us-east-1-669719500198,resources/environments/e-r9spghpej8/_runtime/versions/manifest_1411345376757> from bucket elasticbeanstalk-us-east-1-669719500198 and prefix resources/environments/e-r9spghpej8/_runtime/versions/
2014-09-22 00:29:29,247 [INFO] Downloaded the manifest file to /tmp/version_file_manifest
2014-09-22 00:29:29,426 [INFO] Downloaded version label git-74e624d57669e51672e246f3da14a548c29a0413-1411345310294 from s3 key <Key: elasticbeanstalk-us-east-1-669719500198,resources/environments/e-r9spghpej8/_runtime/_versions/vitalwall/git-74e624d57669e51672e246f3da14a548c29a0413-1411345310294>
2014-09-23 02:31:03,474 [INFO] Version manifest file name already known. The latest version manifest file key is resources/environments/e-r9spghpej8/_runtime/versions/manifest_1411439425921
2014-09-23 02:31:03,524
bennewton999 / gist:8257080
Created Jan 4, 2014
Products.js Parent Controller
View gist:8257080
'use strict';
function sortObjects(objArray, properties /*, primers*/) {
var primers = arguments[2] || {}; // primers are optional
properties = {
if( !(prop instanceof Array) ) {
prop = [prop, 'asc']
if( prop[1].toLowerCase() == 'desc' ) {
bennewton999 / gist:8257058
Created Jan 4, 2014
Product.js Child Controller
View gist:8257058
'use strict';
.controller('ProductCtrl', function ($scope, $state) {
View Contract Killer

Contract Killer 3

Revised date: 07/11/2012

Between us Blulyne Group and you [customer name]


We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

You can’t perform that action at this time.