Skip to content

Instantly share code, notes, and snippets.

@shinobcrc
shinobcrc / box_of_bolts.rb
Created July 1, 2016 03:18
Robot Mock Test
require_relative 'robot'
class BoxOfBolts < Item
def initialize
super("Box of bolts", 25)
end
def feed(robot_to_feed)
@shinobcrc
shinobcrc / assignment_1.sql
Last active July 19, 2016 01:25
Bookstore-SQL-Assigment
SELECT
editions.isbn AS "ISBN"
FROM editions
INNER JOIN books ON (books.id = editions.book_id)
INNER JOIN publishers ON (editions.publisher_id = publishers.id)
WHERE publishers.name = 'Random House';
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
<!-- TODO make navigation bar wider -->
<nav class="navbar navbar-default">
<div class="container-fluid">
function arrayOfLight(x) {
var array = [];
for (var i = 0; i <= x; i++) {
array.push(i);
}
return array
}
alert(arrayOfLight(20));