Skip to content

Instantly share code, notes, and snippets.

View mrsimonemms's full-sized avatar
🐝
Tinkerin'

Simon Emms mrsimonemms

🐝
Tinkerin'
View GitHub Profile
@mrsimonemms
mrsimonemms / redback.js
Last active August 29, 2015 14:23
Redback Query
var universe = require("universejs");
/* Redback Query */
var redback = universe.redback(connectionConfig);
redback.query("objectName", "methodName", { "key1": "param1"}, function (err, data) {
/* Callback - handle error or do something with the data */
@mrsimonemms
mrsimonemms / Gruntfile.js
Last active February 4, 2016 22:31
Sauce Labs setup
"use strict";
var browserList = require("./saucelabs_browsers");
module.exports = function (grunt) {
/* Load all grunt tasks */
require("load-grunt-tasks")(grunt);
require("grunt-timer").init(grunt);
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.4.min.js" data-semver="2.1.4" data-require="jquery@2.1.4"></script>
</head>
<script>
$(function () {
@mrsimonemms
mrsimonemms / recruiter_response.md
Created April 1, 2016 10:26 — forked from dougireton/recruiter_response.md
I've started responding to recruiters with this list of requirements

Company Requirements

I'm definitely not looking for work. However to provide some helpful guidance for hiring like-minded engineers, I would only consider working for a company if it met these requirements:

  1. Concrete, measurable plan to increase the number of women and minorities in engineering roles.
  2. I would only be willing to interview if there were women/minorities in the interview pool for this position.
  3. Commitment to using and contributing to open source.
  4. Collaborative, friendly atmosphere where pair programming is encouraged.
  5. Meaningful work with clear linkage between work and company goals.
  6. Demonstrated commitment to ethical business practices, e.g. B corp certification.
@mrsimonemms
mrsimonemms / 0_reuse_code.js
Created April 1, 2016 17:27
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mrsimonemms
mrsimonemms / index.js
Last active June 4, 2016 16:30
How clever are developers
// Get the kettle
var kettle = Kettle.getKettle();
// Check we have enough water
while (kettle.cupsOfWater() < 1) {
// No - add water until there's enough
kettle.addWater();
}
// Boil the kettle
@mrsimonemms
mrsimonemms / 2015-01-01-template.txt
Created June 4, 2016 16:32
Running AngularJS on Jekyll
---
title: Template
comments: true
tags:
- tag1
- tag2
---
This is my template file
@mrsimonemms
mrsimonemms / app.js
Created July 20, 2016 20:01
supertest
import restify from "restify";
const app = restify.createServer({
name: 'MyApp',
});
app.listen(8080);
export {app};
@mrsimonemms
mrsimonemms / Dockerfile
Last active August 11, 2016 07:51
SPA hosting script
########################################
# Docker #
# #
# An Nginx container that enables the #
# application to run #
########################################
# Run with
# docker build -t nginx/server .
# docker run -it --rm --name web -p 7777:9999 nginx/server
@mrsimonemms
mrsimonemms / replaceEnvvars.ts
Created August 16, 2016 11:07
Envvar replace
/**
* Replace Env Vars
*
* Looks for a matching environment variable and
* puts it into the object
*/
"use strict";