Skip to content

Instantly share code, notes, and snippets.

@ScorpIan555
ScorpIan555 / gist:f89d5ec981b5ab92ebb5eab397869fc1
Created October 12, 2017 08:08
npm ERR! This is an error with npm itself. Please report this error at:
0 info it worked if it ends with ok
1 verbose cli [ '/home/scorpian555/.nvm/versions/node/v8.3.0/bin/node',
1 verbose cli '/home/scorpian555/.nvm/versions/node/v8.3.0/bin/npm',
1 verbose cli 'i',
1 verbose cli '-S',
1 verbose cli 'bcryptjs' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session e2d22321fe8a5345
class Pet
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
class Cat
attr_reader :color, :breed
attr_accessor :name
def initialize(color, breed)
@color = color
@breed = breed
@hungry = true
end
def fav_foods
food_array = []
3.times do
puts "Name a favorite food!"
food_array << gets.chomp
end
p food_array
puts "Your favorite foods are #{food_array.join(", ")}."
if (5+5==10)
puts "this is true"
else
puts "this is false"
end
my_name = "Ian"
puts "Hello"
def greeting # here we say def to define a method and put the name of our method
p "hello" # here’s the code inside our method
end # and here we end or close our method
greeting
<!DOCTYPE html>
<html lang="en">
<head>
<!--Title-->
<title>ZF Calc</title>
<!--meta tags-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Custom styles for this template go here -->
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<style>
html, body {
height: 100%;
margin: 0;
var works = [
{
title: "About Me",
pic: "http://physicist-walrus-51758.bitballoon.com/img/bojack_header.jpg"
},
{
title: "Goals",
pic: "http://physicist-walrus-51758.bitballoon.com/img/Louis_CK.jpg"
},
{