Skip to content

Instantly share code, notes, and snippets.

View wagnerjgoncalves's full-sized avatar
Happy

Wagner Gonçalves wagnerjgoncalves

Happy
View GitHub Profile

Backbone.js

backbone

Introduction

  • A library designed to be minimalist and useful in a wide variety of situations (non-opinionated)
  • Based in events communication/syncronization
  • Based in MVC (Model-View-Controller) structure

Structure

@wagnerjgoncalves
wagnerjgoncalves / notes.md
Last active April 28, 2016 00:43
Notes from Crafiting Rails 4 Applications

Crafiting Rails 4 Applications

  • This pioneering book deep-dives into the Rails plugin APIs and shows you, the intermediate Rails developer, how to use them to write better web applications and make your day-to-day work with Rails more productive.

  • You’ll learn how the Rails rendering stack works and customize it to read templates from the database while you discover how to mimic Active Record behavior, such as validations, in any other object. You’ll find out how Rails integrates with Rack, the different ways to stream data from your web application, and how to mix Rails engines and Sinatra applications into your Rails apps, so you can choose the most appropriate tool for the job. In addition, you’ll improve your productivity by customizing generators and responders.

Cap 1 - Create your own renderer (AbstractController)

Rails uses the model-view-controller (MVC) architecture pattern to organize our code.

@steveclarke
steveclarke / capybara.md
Created April 10, 2012 17:32
RSpec Matchers

Capybara

save_and_open_page

Matchers

have_button(locator)
@wagnerjgoncalves
wagnerjgoncalves / introduction.md
Last active August 21, 2023 06:56
Notes from Growing Rails Applications in Practice

Growing Rails Applications in Practice

  • How to use discipline, consistency and code organization to make your code grow more gently.

  • As you cycle through patterns, your application is becoming a patchwork of different coding techniques.

    All those new techniques actually help, or if you are just adding layers of inderection.

  • Large applications are large so what we can do is organize a codebase in a way that "scales logarithmically".

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@dergachev
dergachev / GIF-Screencast-OSX.md
Last active March 29, 2024 03:45
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: