Skip to content

Instantly share code, notes, and snippets.

View bertoort's full-sized avatar
🍦

Roberto Ortega bertoort

🍦
View GitHub Profile
@bertoort
bertoort / rails_install.md
Last active October 23, 2017 19:16
Rails install

First, Intall RVM

curl -sSL https://get.rvm.io | bash -s stable --rails

Load RVM into your shell sessions as a function

source ~/.rvm/scripts/rvm

rvm user gemsets

@bertoort
bertoort / vps_setup.md
Last active March 8, 2016 02:51
Portfolio site VPS set up with AMS EC2

Part 1: Set Up Server

Create AWS Account

Go into aws and set up an account. It's free with the basic account but credit card and phone verification is still required. Takes a few minutes.

Create an instance

Go to "My Account" > "AWS Management Console". Then "Launch Instance":

@bertoort
bertoort / bfs_and_dfs.md
Last active October 20, 2020 13:32
Breadth First Search And Depth First Search

Breadth First Search

Algorithm for searching graph-like data structures, one level at a time.


Step by Step

  • Start a queue
  • Check current node - if false, mark as visited, continue
@bertoort
bertoort / merge_and_quick_sort.md
Last active March 2, 2016 23:05
Merge and Quick Sort Algorithms

Merge Sort

Efficient, divide-and-conquer algorithm.


For each element in the list:

  • If the list is of length 0 or 1, then it is already sorted. Otherwise:
  • Divide the unsorted list into two sublists of about half the size.
@bertoort
bertoort / goroutines_and_channels.md
Last active March 19, 2016 20:45
Building web sockets with goroutines
<style type="text/css"> section, p, h1, h2, h3 { text-align: left; } </style>

Goroutines and Channels


@bertoort
bertoort / stress_management.md
Last active April 18, 2016 03:13
Stress Management
<style type="text/css"> section, p, h1, h2, h3 { text-align: left; } img { width: 400px; height: 400px; } img { width: 500px;
@bertoort
bertoort / intro_to_js.md
Last active July 11, 2016 13:36
Part 1
<style type="text/css"> section, p, h1, h2, h3 { text-align: left; } </style>

Intro to JS


@bertoort
bertoort / http.md
Last active May 4, 2016 15:29
Class notes
@bertoort
bertoort / sass-refactor.scss
Last active May 9, 2016 21:24
Refactor the following css code to sass. Use variables, mixins, parent selectors, and nested selectors
input[type='submit'], input[type=button], button {
width: 15%;
height: 30px;
color: #EDFFF9;
background: #40FD65;
border: 3px solid rgba(#666, 0.3);
}
input[type='submit']:hover , input[type='button']:hover, button:hover {
width: 15%;
@bertoort
bertoort / linkedList.js
Created August 30, 2016 06:16
Recursion Warm Up
function Node(data) {
this.data = data;
this.next = null;
}
function LinkedList() {
this.length = 0;
this.head = null;
}