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
@airbr
airbr / sugh.sh
Created January 1, 2023 08:21 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@airbr
airbr / README-Template.md
Created December 3, 2021 02:49 — forked from DomPizzie/README-Template.md
A simple README.md template

Project Title

Simple overview of use/purpose.

Description

An in-depth paragraph about your project and overview of use.

Getting Started

@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.
@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 / 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 / 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 / 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 / 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 / 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 / introrx.md
Created August 16, 2016 13:06 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing