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 / love.rb
Created January 14, 2023 05:48
love poem to my fiancee
# Write a long love poem to your fiancee
# Print the first line
puts "I love you"
# Print the second line
puts "You're beautiful"
# Print the third line
puts "You're smart"
# Create a Test Suite for MorganWebDev.com
require 'test/unit'
require 'rubygems'
require 'selenium-webdriver'
class TestMorganWebDev < Test::Unit::TestCase
def setup
@driver = Selenium::WebDriver.for :firefox
@base_url = "http://www.morganwebdev.com/"
@driver.manage.timeouts.implicit_wait = 30
@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 / deep-comparison
Created November 14, 2021 06:09
JavaScript deep object comparison
function deepEqual(a, b) {
if (a === b) return true;
if (a == null || typeof a != "object" ||
b == null || typeof b != "object") return false;
let keysA = Object.keys(a), keysB = Object.keys(b);
if (keysA.length != keysB.length) return false;
@airbr
airbr / most-starred-repo.rb
Created October 28, 2021 04:51
Most Starred Repo of User on Github in Ruby
# a function which finds the most starred repo of a user on GitHub
# Usage:
# most_starred_repo.rb <github_username>
# Example:
# most_starred_repo.rb airbr
require 'net/http'
require 'json'
@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 / pinboard-dark-mode.js
Created November 20, 2020 04:18
About as hacky and simple of a way to get Dark Mode on pinboard as you can get , using Tamper Monkey
// ==UserScript==
// @name pinboard-dark-mode
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include http://pinboard.in/*
// @include https://pinboard.in/*
// @include http://*.pinboard.in/*
// @include https://*.pinboard.in/*
@airbr
airbr / history-bash.txt
Created November 7, 2020 04:58
just some bash history
518 mkdir git-fu
519 cd git-fu/
520 ll
521 clear
522 git init
523 ll
524 git tag genesis
525 ll
526 git log
527 git add
///////////////////////////////////
// 5. More about Objects; Constructors and Prototypes
// Objects can contain functions.
var myObj = {
myFunc: function(){
return "Hello world!";
}
};
myObj.myFunc(); // = "Hello world!"