Skip to content

Instantly share code, notes, and snippets.

View dammitBrandon's full-sized avatar

Brandon dammitBrandon

  • Arcane Technologies
View GitHub Profile
@dammitBrandon
dammitBrandon / index.html
Created November 9, 2019 14:29
Responsive Audio Player
<div class="container">
<div class="column add-bottom">
<div id="mainwrap">
<div id="nowPlay">
<span id="npAction">Paused...</span><span id="npTitle"></span>
</div>
<div id="audiowrap">
<div id="audio0">
<audio id="audio1" preload controls>Your browser does not support HTML5 Audio! 😢</audio>
</div>
@dammitBrandon
dammitBrandon / week-1
Created October 19, 2019 17:35
TutorD Scholars Week 1
// _includes/head.html
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- seo -%}
<script src="https://kit.fontawesome.com/3fb25a33d5.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.css" integrity="sha256-Ed7kL1p/BVuHCwGSEpUib2v9K7JtkCQlX4CweQEimJo=" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@dammitBrandon
dammitBrandon / index.html
Created July 25, 2013 13:57 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>
@dammitBrandon
dammitBrandon / index.html
Created July 25, 2013 13:17 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>

Instructions:

  1. Download this application skeleton.
  2. Convert the app to use AJAX.
  3. Add any files you changed to your gist and submit your code.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Move with Lil to the black mountain hills of Dakota
Lose Lil to Danny
Get hit in the eye by Danny
Walk into town seeking revenge
Book room at local saloon
Check into room and read Gideon's bible
Drink too much gin
Overhear Lil and Danny in neighboring room
Burst into neighboring room and declare a showdown
Get shot by Danny and collapse in corner
require "csv"
class Recipe
# I need to finish this before I give Bernie the program...
attr_reader :id, :name, :description, :ingredients, :directions
def initialize(args)
@id = args[:id]
@name = args[:name]
@description = args[:description]
@ingredients = args[:ingredients]
To create a second name for the variable or method.
alias
A command that appends two or more objects together.
and
Designates code that must be run unconditionally at the beginning of the program before any other.
BEGIN
Delimits a "begin" block of code, which can allow the use of while and until in modifier position with multi-line statements.
# class Car
# @@WHEELS = 4
# def initialize(args)
# @color = args[:color]
# @wheels = @@WHEELS
# end
# def drive
# @status = :driving
# end
# def brake