Skip to content

Instantly share code, notes, and snippets.

View nizaroni's full-sized avatar
🍕
Teaching code with pizza examples.

Nizar Khalife nizaroni

🍕
Teaching code with pizza examples.
View GitHub Profile
{
"basics": {
"name": "Nizar Khalife Iglesias",
"label": "Software Engineer & Educator",
"email": "khalifenizar@gmail.com",
"summary": "Puerto Rican senior software engineer and educator with over 10 years of industry experience. I'm mostly interested in JavaScript, but have used many other languages. My passion is teaching people about computer science. I try to practice kindness in everything I do. A joke or two can't hurt either.",
"location": {
"city": "Miami",
"countryCode": "US",
"region": "Florida"
@nizaroni
nizaroni / es2015.md
Last active February 8, 2016 19:51
Resources for my talk, The Present and Future of JavaScript: ES2015 and Beyond.
@nizaroni
nizaroni / ruby_cheatsheet.md
Last active November 15, 2016 11:04
Ruby cheatsheet.

Ruby Cheatsheet

Classes and Instances

Creating a class

A class is a blueprint.

@nizaroni
nizaroni / projects.md
Last active October 29, 2020 13:44
Ironhack Final Project Guide

Ironhack Final Project Guide

For your Ironhack final project, you have 2 weeks to develop an idea of your choice. You will present your final project at the Hackshow.

This document contains all the relevant information pertaining to the final project phase of the course. Let's start with some basic facts to keep in mind.

@nizaroni
nizaroni / hashes.md
Created June 18, 2015 21:40
Brief explanation of hashes in Ruby.

Hashes in Ruby

A hash in Ruby is kind of like an array. For example, take an array of different ways to say "hello":

hellos = [ "hello", "hola", "bonjour" ]
@nizaroni
nizaroni / pushing-to-github.md
Created June 17, 2015 00:57
Instructions for pushing your code to GitHub.

Pushing to GitHub

Starting a new project

  1. Create the repo on GitHub.
  2. Check the README box.
  3. Copy the URL of the repo.
@nizaroni
nizaroni / 01-app--mailers--contact_mailer.rb
Last active August 29, 2015 14:21
Using Rails ActionMailer to send emails.
# rails generate mailer ContactMailer
class ContactMailer < ApplicationMailer
def contact_email(params)
@name = params[:name]
self.mail({
to: "owner@example.com",
subject: "SiteContact"
})
end
@nizaroni
nizaroni / 01-config--routes.rb
Last active August 29, 2015 14:20
Twitter in Rails: Showing posts.
Rails.application.routes.draw do
# ...
# Add a get route for listing posts
get '/posts' => 'posts#index'
# ...
end
@nizaroni
nizaroni / Gemfile
Created April 7, 2015 17:03
Sinatra Twitter example.
source 'https://rubygems.org'
gem 'sinatra'
@nizaroni
nizaroni / project-structure.md
Created March 24, 2015 00:01
Ruby project folder structure.

Ruby project structure

my-project-folder/
└─┬── Gemfile
  ├── server.rb
  ├─┬ lib/
  │ └── (Ruby files: classes, modules, etc.)
 ├─┬ public/