Skip to content

Instantly share code, notes, and snippets.

@bmikol
bmikol / feed.xml
Last active September 19, 2021 00:21
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Your access to this site has been limited by the site owner</title>
<style>
html {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 0.875rem;
line-height: 1.42857143;
@bmikol
bmikol / gist:3ca85bfa94015061d5cf314fba977b3b
Created November 10, 2017 17:44
Blockstack Verification
Verifying my Blockstack ID is secured with the address 1PXbVpkDqWkmp7iB38GHTT1j1fXu7Cr2Cu https://explorer.blockstack.org/address/1PXbVpkDqWkmp7iB38GHTT1j1fXu7Cr2Cu
@bmikol
bmikol / cat.rb
Last active February 19, 2017 16:56
CareerFoundry Ex 3.5
class Pet
attr_reader :color, :breed # Be able to read these instance variables outside of the instance
attr_accessor :name # Be able to both read & write this instance variable outside of the instance
def initialize(color, breed) # Initialize instance variables
@color = color
@breed = breed
@hungry = true
end
@bmikol
bmikol / cat.rb
Last active February 19, 2017 16:46
CareerFoundry Ex 3.4
class Cat
attr_reader :color, :breed # Be able to read these instance variables outside of the instance
attr_accessor :name # Be able to both read & write this instance variable outside of the instance
def initialize(color, breed) # Initialize instance variables
@color = color
@breed = breed
@hungry = true
end
@bmikol
bmikol / fav_foods.rb
Created February 19, 2017 05:26
CareerFoundry Ex 3.3
def fav_foods
food_array = [] # Instead of the brackets, you can also use Array.new to make a new empty 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(", ")}."
food_array.each do |food| # Do something to each element in food_array; that element is to be referred to as food
puts "I like #{food} too!" # The thing we are doing
@bmikol
bmikol / program2.rb
Created February 19, 2017 00:51
CareerFoundry Ex 3.2
if (5 + 5 == 10)
puts "this is true"
else
puts "this is false"
end
@bmikol
bmikol / program.rb
Created February 18, 2017 23:22
CareerFoundry Ex 3.1
def greeting
puts "Please enter your name"
name = gets.chomp
p "hello" + " " + name
end
greeting
@bmikol
bmikol / index.html
Last active February 9, 2017 20:59
CareerFoundry Ex 2.11
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Brian Mikol</title>
@bmikol
bmikol / index.html
Created February 7, 2017 21:20
CareerFoundry Ex 2.11 Bonus
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Calculate!</title>
@bmikol
bmikol / index.html
Created February 7, 2017 19:21
CareerFoundry Ex 2.10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Hello World!</title>