Skip to content

Instantly share code, notes, and snippets.

## First Hello world
puts "what is your name??"
name = gets.chomp
puts "Hi #{name}, how are you??"
#############
# Variables #
#############

Store Hour Formatting Exercise

Purpose

The purpose of this problem is to dynamically reproduce the store hour display style that is commonly seen on the front door of businesses.

Examples

The basic example is when every day has a unique time

@Cspeisman
Cspeisman / bem.md
Last active August 29, 2015 14:13
Quick notes on BEM
  .block{} //component/molecule 
	
  .block{}--modifier {} // modification to component
	
  .block__element {} //descendent of block - atom inside of component

  .block__element--modifier {} //descendent of block - atom inside of component modified
@Cspeisman
Cspeisman / Nitrous_singup.md
Last active August 29, 2015 14:10
Setting up Ruby in Nitrous.io
  1. fill in site sign up form and confirm email
  2. open dashboard
  3. select ruby/rails and click create box in lower right
  4. click next
  5. click IDE to open up virtual environment
export PS1="\u: \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
@Cspeisman
Cspeisman / git_stuff
Created July 17, 2014 16:53
How to pull someone else's branch who contributes to the same repo
git pull [email protected]:username/repo.git branch_name
# This is a complete example of FizzBuzz
# using an assert method to test my code.
# Essentially, all the assert method does is
# throw an error if my expectation evaluates to false
# an even simpler way to test would be by just using puts.
# for example: puts fizzbuzz(5) == buzz will print out true to my terminal
# if something prints false that means its a failing case
def fizzbuzz(number)

##Bash Basics

Bash (born again shell) is a unix shell that allows us to talk to our computer through commands.


A typical command syntax will look like command [args ...]

You'll also often see command [-options] [args ...]