Skip to content

Instantly share code, notes, and snippets.

View jamgraham's full-sized avatar
🎉
Working

James Graham jamgraham

🎉
Working
View GitHub Profile
@jamgraham
jamgraham / gist:733c49f8ec6032fdddb3
Created December 18, 2014 20:49
Protractor Jasmine Log Console Errors
browser.manage().logs().get('browser').then(function(browserLogs) {
browserLogs.forEach(function(log){
if (log.level.value > 900) {
console.log('Browser JS Error:', log.message);
// Fail Build
}
});
});
@jamgraham
jamgraham / gist:712c2c7cdb20c01ea9eb
Last active August 29, 2015 14:13
ng-stats -- Running in browser
// Adapted for Chrome DevTools Snippet. Find the full project here: https://github.com/kentcdodds/ng-stats
(function (root, factory) {
root.showAngularStats = factory();
}(window, function() {
'use strict';
var autoloadKey = 'showAngularStats_autoload';
var current = null;
// define the timer function to use based upon whether or not 'performance is available'
var timerNow = window.performance
? function() { return performance.now(); }
@jamgraham
jamgraham / gist:82fa07e4be48fe990e03
Created February 26, 2015 18:18
Bower - Clear Cache
rake tmp:cache:clear
rake assets:clean
bower cache clean
bower install
@jamgraham
jamgraham / gist:707eb7ddcdfaf9877027
Last active August 29, 2015 14:19
Apache Con 2015

Apache Con 2015

feather

I attended the Apache Con Keynote today and was very pleased to learn a bit more of the history of Apache. This group is much more than just a face for open source software. The Apache Way could be a very powerful driving factor for building a successful software organization. Here are a few quick notes from Brian Behlendorf's keynotes.

Keynote

Apache is more than a collection of open source software but a way of moving software from private enterprise to the open source space. It's a culture and process for a dev culture.

"This is what separates Apache from the enterprise. Driving the roadmap vs building solid technical communities." - Brian Behlendorf

@jamgraham
jamgraham / gist:07ca2f7f2fad144e899b
Last active August 29, 2015 14:19
IoT Streaming Conference
require "net/https"
require "uri"
require 'json'
require "time"
require 'pry'
@items = []
project = "xxx"
code_name = "xxx"
@jamgraham
jamgraham / unroll_me.js
Created December 27, 2018 16:41
unroll.me - Select all
setInterval(function(){
var a = document.querySelectorAll('[data-track-subscription-action="UNSUBSCRIBE"]');
var btn = a[0];
console.log(btn);
btn.click();
},3000);