Skip to content

Instantly share code, notes, and snippets.

View alexiamcdonald's full-sized avatar
👋

Alexia McDonald alexiamcdonald

👋
View GitHub Profile
@alexiamcdonald
alexiamcdonald / node-npm-install.md
Created March 20, 2022 19:08 — forked from rcugut/node-npm-install.md
Install node & npm on Mac OS X with Homebrew

DEPRECATED as of macOS 10.13 (High Sierra). See the new GUIDE to install nvm and yarn for macOS (updated July 2019)

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

@alexiamcdonald
alexiamcdonald / p4merge4git.md
Created December 9, 2021 13:57 — forked from tony4d/p4merge4git.md
Setup p4merge as a visual diff and merge tool for git
LOCALE_1 = "~/Code/project/config/locales/fi.yml"
LOCALE_2 = "~/Code/project/config/locales/en.yml"
require 'yaml'
def flatten_keys(hash, prefix="")
keys = []
hash.keys.each do |key|
if hash[key].is_a? Hash
current_prefix = prefix + "#{key}."
@alexiamcdonald
alexiamcdonald / hire_me.md
Last active January 4, 2017 21:07
Hire me

Hey,

I'm looking for a new opportunity to work with a great team! I want to know if I can be your new programming friend. 👍👍

How do we decide if we like each other?

Well I recently read this article about not reading resumes in technical interviews and well I'm going to go right ahead and not give you one. You'll probably end up stalking me anyway but let's just see what happens.

Right now I'm looking for anything that will take me on my programming skill and my good attitude.

title categories
Parallel rendering in Rails
ruby
code

I will continue to expand the features in the pagelet_rails gem. Since it offers a new architectural way of thinking to Rails I've found that there are so many new things we can do. In this post, I will focus on the parallel rendering. Yes, that's right, parallel rendering in Rails. Although, it may sound advanced the concepts behind it are extremely simple. This post however is only relevant to web page rendering.

Background

When we want to run things in parallel with Ruby we only have two options - threads and processes.

rails generate scaffold doctor name:string businessaddress:string businesssuburb:string businesspostcode:string businessphone:string businessmobile:string medicalproviderno:string username:string password:string email:string