Skip to content

Instantly share code, notes, and snippets.

View fmoliveira's full-sized avatar

Filipe Oliveira fmoliveira

  • Level Access
  • Toronto
  • 23:57 (UTC -04:00)
View GitHub Profile
@fmoliveira
fmoliveira / webpack4upgrade.md
Created June 2, 2018 00:28 — forked from gricard/webpack4upgrade.md
Just some notes about my attempt to upgrade to webpack 4

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ webpack@4.0.0-beta.2
added 1 package, removed 20 packages and updated 4 packages in 13.081s
@fmoliveira
fmoliveira / aoe2hd.md
Created May 30, 2018 17:32 — forked from yocontra/aoe2hd.md
Age of Empires II HD - For Mac OSX
@fmoliveira
fmoliveira / Ruby ORMs.md
Created March 10, 2018 19:14 — forked from booch/Ruby ORMs.md
Ruby ORMs

Ruby ORMs

Abstract

Rails is really a collection of pieces that can be put together to create a web app. You can enhance or replace many of the components - how you write views, how controllers work, and how you build models. While models are built on top of ActiveRecord in the

@fmoliveira
fmoliveira / frontendDevlopmentBookmarks.md
Created October 13, 2017 16:45 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@fmoliveira
fmoliveira / analytics.js
Created August 5, 2017 16:34 — forked from anaisbetts/analytics.js
Google Analytics in Atom Shell
// Pretend that cookies work
(function (document) {
var cookies = {};
document.__defineGetter__('cookie', function () {
var output = [];
for (var cookieName in cookies) {
output.push(cookieName + "=" + cookies[cookieName]);
}
return output.join(";");
});
@fmoliveira
fmoliveira / lazy-img.jsx
Created April 27, 2017 14:00 — forked from fdaciuk/lazy-img.jsx
React Lazy img load component
'use strict';
import React, { PropTypes, Component } from 'react';
class LazyImg extends Component {
constructor () {
super();
this.state = { loaded: false }
this.handleLoad = () => {

Keybase proof

I hereby claim:

  • I am fmoliveira on github.
  • I am fmoliveira (https://keybase.io/fmoliveira) on keybase.
  • I have a public key whose fingerprint is 21B0 2A68 7FA6 31A1 5797 51B8 977E F5B9 EA9B A75F

To claim this, I am signing this object:

@fmoliveira
fmoliveira / logstash-sentry.rb
Created April 21, 2017 16:40 — forked from clarkdave/logstash-sentry.rb
(Logstash) Sentry output plugin
# The MIT License (MIT)
# Copyright (c) 2014 Dave Clark
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@fmoliveira
fmoliveira / react_fiber.md
Created February 4, 2017 17:38 — forked from geoffreydhuyvetters/react_fiber.md
What is React Fiber? And how can I try it out today?