Skip to content

Instantly share code, notes, and snippets.

View airbr's full-sized avatar
🏠
Working from home

Morgan Murrah airbr

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@airbr
airbr / index.html
Created August 1, 2016 16:00 — forked from anonymous/index.html
jQuery Modal Credit @dr Mike Hopper
<div class="bs-example">
<!-- Button HTML (to Trigger Modal) -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal" data-num="0">Question 1</button>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal" data-num="1">Question 2</button>
<!-- Modal HTML -->
<div id="myModal" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
@airbr
airbr / introrx.md
Created August 16, 2016 13:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@airbr
airbr / FizzbuzzRecursive.js
Created August 16, 2016 13:58 — forked from FrancoB411/FizzbuzzRecursive.js
Fizzbuzz with recursion instead of a loop.
function fizzbuzz(num) {
if(num === 0) { //base case
return 1;
}if(num < 0) { //termination case
return console.log("Positive numbers only, please.");
}if((num % 3 === 0) && (num % 5 === 0)) { //fizzbuzz conditionals
console.log("fizzbuzz");
@airbr
airbr / gist:cfc9a2fe83c27b1ab72f7c898113e9f1
Created January 4, 2017 20:34 — forked from ryansobol/gist:5252653
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

@airbr
airbr / self-eq-this-vs-bind.md
Created February 16, 2017 20:21 — forked from jashmenn/self-eq-this-vs-bind.md
Javascript var self = this; vs. .bind

The Problem

In Javascript this is bound in unexpected ways. Functions, in particular, create a new 'this' and so when you want to keep a reference to an "outer" object you sometimes see the pattern:

var self = this;

as in:

var self = this;
@airbr
airbr / README-Template.md
Created March 29, 2017 01:27 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@airbr
airbr / change-favicon.js
Created November 16, 2017 16:04 — forked from mathiasbynens/change-favicon.js
Dynamically changing favicons with JavaScript
/*!
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo: http://mathiasbynens.be/demo/dynamic-favicons
*/
// HTML5™, baby! http://mathiasbynens.be/notes/document-head
document.head || (document.head = document.getElementsByTagName('head')[0]);
function changeFavicon(src) {
@airbr
airbr / bling.js
Created March 4, 2018 20:54 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@airbr
airbr / Craft-Lists-for-Sketch.md
Created March 11, 2021 10:59 — forked from demersdesigns/Craft-Lists-for-Sketch.md
A collection of text lists that can be imported into InVision's Craft plugin.