Skip to content

Instantly share code, notes, and snippets.

View shanebarringer's full-sized avatar

Shane Barringer shanebarringer

View GitHub Profile
@shanebarringer
shanebarringer / index.html
Created June 1, 2016 22:37
calculator html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<link rel="stylesheet" href="./styles/main.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
@shanebarringer
shanebarringer / main.css
Created June 1, 2016 22:39
calculator.css
* {
box-sizing: border-box;
}
body{
/*background-image: url(http://49.media.tumblr.com/tumblr_lx8ybzt0LY1qduy16o1_500.gif);
background-repeat: no-repeat;
background-size: 100%;*/
background-color: #A3F7BF;
}
@shanebarringer
shanebarringer / index.html
Created June 2, 2016 13:01
js calculator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<link rel="stylesheet" href="main.css" media="screen" title="no title" charset="utf-8">
</head>
<body>
let numbers = [1,2,3,4,5,6,7,8,9];
let otherNumbers = [18, 36, 4, 2, 19, 8, 7, 16, 45];
let uniqueNumbers = [];
compareArrays = (firstArray, secondArray) => {
return firstArray.forEach((number) => {
let comparison = secondArray.some((otherNumber) => {
return number === otherNumber;
});
!comparison ? uniqueNumbers.push(number) : null;
let numbers = [1,2,3,4,5,6,7,8,9];
let otherNumbers = [18, 36, 4, 2, 19, 8, 7, 16, 45];
Array.prototype.compare = (firstArray, secondArray) => {
let uniqueNumbers = [];
firstArray.forEach((number) => {
let comparison = secondArray.some((otherNumber) => {
return number === otherNumber;
});
!comparison ? uniqueNumbers.push(number) : null;
@shanebarringer
shanebarringer / index.html.erb
Created August 18, 2016 14:51
Build Twitter - part 2
<p id="notice"><%= notice %></p>
<h1>Whatever, this is just a header</h1>
<table>
<thead>
<tr>
<th>Message</th>
<th>User</th>
<th colspan="3"></th>
  • Sign up using your google account at the firebase.io
  • create an application from the firebase dashboard
    • take note of the ID generated for your project
    • this can be found in several places, however, the URL is the best place to look
      • your project ID is found directly after /project/
      • https://console.firebase.google.com/project/YOUR-PROJECT-NAME-HERE/overview
  • install the firebase CLI from the command line npm install -g firebase-tools
  • login firebase login
  • Create a project directory from the terminal
    note: don't forget to cd into the new directory
  • initialize the project firebase init
  • Create a script titled “going_hiking”
  • declare a variable titled 'temp'
  • Have the program print “Let’s go hiking!” if temp >= 50.
  • Otherwise have the program print “That’s WAY too cold for hiking!”

then...

  • Include an elsif branch in our code that will print "It is 23 degrees!" when the variable is 23.

TLDR:

Below you'll find resources grouped into 3 main sections:

  • Video Series
  • Non Video Series
  • Other stuff

This is not a comprehensive list. The hope is to provide a simple set of reputable resources so you can try them out and see what works best with your learning style at the moment.

class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :configure_permitted_parameters, if: :devise_controller?
before_action :authenticate_user!
def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:name, :username, :bio, :location, :email, :password, :password_confirmation])
devise_parameter_sanitizer.permit(:account_update, keys: [:name, :username, :bio, :location, :email, :password, :password_confirmation])