Skip to content

Instantly share code, notes, and snippets.


Lee Blazek surfjedi

View GitHub Profile
surfjedi / gist:7fdf4da41897dc7bc8e1773eeccc5c1e
Created Mar 2, 2018 — forked from danilop/gist:d4ff43835e469043e95e
Amazon S3 redirection rule to send every "miss" (HTTP 404) to the domain root
View gist:7fdf4da41897dc7bc8e1773eeccc5c1e
View fetch-interceptor.js
//NOTE: inspired and modified form
function attach(env) {
// Make sure fetch is available in the given environment
if (!env.fetch) {
try {
console.log('Env has fetch available');
// require('whatwg-fetch');
} catch (err) {
throw Error('No fetch available. Unable to register fetch-intercept');
View protractor.conf.js
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
let jasmineReporters = require('jasmine-reporters');
let request = require('request');
var fs = require('fs');
let gitHash;
exports.config = {
// NOTE: below is only needed if not using chrome with directConnect
// seleniumAddress: 'http://localhost:4444/wd/hub',
surfjedi / index.html
Last active Dec 2, 2020
html video tag
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Stupid Videos test video tag</title>
video {
background: black;
height: 331px;
width: 441px;
surfjedi / .hyper.js
Last active Nov 20, 2017
hyperterm settings sync
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
# Your init script
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
# An example hack to log to the console when each text editor is saved.
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
surfjedi / example_spec.js
Last active Aug 29, 2015
demo protractor conf and spec
View example_spec.js
describe('gloo homepage', function() {
it('Get gloo live', function() {
var heading = element(by.css('h1'));
expect(heading.getText()).toEqual('Grow a better You with Gloo');
it('Get local thru ngrok', function() {
surfjedi / index.html
Last active Aug 29, 2015
css background-size property demo
View index.html
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
surfjedi / random-module.js
Last active Aug 29, 2015
A simple random number JS module
View random-module.js
var RandomModule = function () {};
RandomModule.prototype.getRandomArbitrary = function (min, max) {
return Math.floor(Math.random() * (max - min)) + min;
exports.RandomModule = RandomModule;