Skip to content

Instantly share code, notes, and snippets.

View amicojeko's full-sized avatar

Stefano Guglielmetti amicojeko

View GitHub Profile

Introduction

Ruby on Rails is the framework of choice for web apps at Shopify. It is an opinionated stack for quick and easy development of apps that need standard persistence with relational databases, an HTTP server, and HTML views.

By design, Rails does not define conventions for structuring business logic and domain-specific code, leaving developers to define their own architecture and best practices for a sustainable codebase.

@amicojeko
amicojeko / MCP230xx.nut
Last active December 19, 2015 09:49 — forked from marcboon/MCP230xx.nut
// Base class for MCP23008 and MCP23017 family of I2C i/o expanders
class MCP230xx {
BASE_ADDR = 0x20
i2cPort = null
i2cAddr = null
regs = null
constructor(i2cPort, deviceAddr) {
this.i2cPort = i2cPort
this.i2cAddr = (BASE_ADDR + deviceAddr) << 1