Become a member
Sign in
Matthew Main
Matthew Main

Matthew Main

8 Following
19 Followers
  • Profile
  • Claps

Featured

Matthew Main
Matthew Main
Oct 2, 2018 · 9 min read

How to Import a 3D Blender Object into a Three.js Project as a glTF File

438

5 responses

Latest

Matthew Main
Matthew Main
Nov 29, 2015 · 2 min read

Rails Request-Response Cycle

Rails apps use an MVC architectural pattern. A visit to a blog’s users…

12

Matthew Main
Matthew Main
Nov 26, 2015 · 5 min read

Getting Started with Tmux

When I was studying at the Flatiron School a little while ago, Tute Costa gave a talk about refactoring like a pro. During his presentation, as he edited code, ran tests, and saved files, he pretty much never left the command line. How did he do that? Well, he used tmux. It’s a…

66

Matthew Main
Matthew Main
Nov 15, 2015 · 4 min read

Regex, JavaScript Edition

The quickest way to use regular expressions to check a string for a pattern in JavaScript is the .test() method. If there’s a match, .test() returns true; if not, it returns false.

/4/.test(“345”); 
//=> true
/8/.test(“345”);
//=>…

136

Matthew Main
Matthew Main
Oct 12, 2015 · 4 min read

Ruby Regular Expressions Basics

Regular expressions match patterns. (The text pattern “an,” for example, matches twice in “Manhattan.”) It’s a simple concept, but at first glance regular expressions can be pretty inscrutable. For one thing, the term regular expression doesn’t sound like it has anything to…

1