- Enclosure
- Foxconn Brazos AT-5570 Barebones System - $100
- CPU: AMD Dual Core C70 1.0GHz APU
- RAM: 1 x 204Pin SO-DIMM DDR3 1066 (8GB Max)
- HDD: 1 x SATA 3.0GBb/s (assuming 2.5" drive)
- 10/100/1000 Ethernet
- 4 x USB 3.0
- Foxconn Brazos AT-5570 Barebones System - $100
- RAM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Blackjack | |
class Card | |
attr_reader :value, :suit | |
def initialize(value, suit) | |
@value = value | |
@suit = suit | |
end | |
def to_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "pry" | |
require "ipaddr" | |
require "net/ping" | |
require "net/http" | |
require "uri" | |
PING_TIMEOUT = 0.1 | |
PORTS = [3000, 4567] | |
START_IP = "" | |
NETMASK = 24 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a manifest file that'll be compiled into application.js, which will include all the files | |
// listed below. | |
// | |
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | |
// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// compiled file. | |
// | |
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
</head> | |
<body> | |
<h1>Original Link</h1> | |
<div> | |
<a href="https://www.youtube.com/watch?v=qKxDzyHPo0o">YouTube Link</a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
exec > >(tee $0.log) 2>&1 | |
echo "---Install Apple Xcode---" | |
read -p "Have you installed Apple Xcode? (y/n): " -n 1 -r | |
echo | |
if [[ ! $REPLY =~ ^[Yy]$ ]]; then | |
echo "Please run the following command and restart before continuing:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- recipes with comments | |
-- remove tables | |
DROP TABLE recipes CASCADE; | |
DROP TABLE comments CASCADE; | |
-- build tables | |
CREATE TABLE recipes( | |
id SERIAL PRIMARY KEY, | |
title VARCHAR(255) NOT NULL |