Skip to content

Instantly share code, notes, and snippets.

View villander's full-sized avatar

Michael Villander villander

View GitHub Profile
@villander
villander / horizontal_scaling.md
Last active August 29, 2015 14:27 — forked from lucasuyezu/horizontal_scaling.md
Escalabilidade Horizontal

Escalabilidade Horizontal

##O que é O jargão do momento é o Cloud. A nuvem. Pessoas diferentes, empresas diferentes, produtos diferentes possuem definições diferentes do que é o cloud, de onde começa, onde termina. Diferente do "Cloud", uma definição que todos parecem entender logo de cara é o conceito de escalabilidade. É um conceito bem simples de entender, e difícil de aplicar. Quanto mais escalabilidade, mais chances você tem de crescer e agüentar a carga que vem junto. Sem escalabilidade, você pode ser pego de calças curtas e não dar conta de todo mundo que quer acessar o seu conteúdo, ou consumir o seu produto ou serviço.

##Por quê? Todos nós fazemos software querendo que ele faça sucesso. Mas esse sucesso implica em uma multidão de pessoas acessando o seu site. E essa multidão de acessos pode ser pré-determinada (você aparece em algum programa de TV ou na home de um portal) ou de repente (você viraliza). Independente da forma, ter um site escalável é a diferença entre se estabelecer de vez ou quebr

@villander
villander / introrx.md
Last active September 14, 2015 01:59 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.

@villander
villander / ember_examples.md
Created October 15, 2015 19:56 — forked from rwjblue/ember_examples.md
Ember Examples
@villander
villander / HEY-YOU.md
Last active October 22, 2015 02:55 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
@villander
villander / ember-ratchet-mobile.md
Created November 3, 2015 19:07 — forked from coderberry/ember-ratchet-mobile.md
Instructions to creating a hybrid mobile app with EmberCLI and Ratchet

Building Guru App with EmberCLI

Example app found at http://goo.gl/K0Lf61

This app requires EmberCLI to be installed. You can install it via npm using npm install -g ember-cli

$ ember new guru-app
$ cd guru-app
@villander
villander / android-staging.sh
Created November 11, 2015 15:23 — forked from jakecraige/android-staging.sh
I have this file in the bin folder of my app and use it to generate a signed apk for android
#!/bin/bash
AppName=EventAssist
APPNAME=event-assist
ember cordova:build --environment=staging --platform=android
echo "keystorepassword" | jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keys/${APPNAME}.keystore cordova/platforms/android/ant-build/${AppName}-release-unsigned.apk $APPNAME
rm cordova/platforms/android/ant-build/${AppName}.apk
@villander
villander / environment.js
Created November 17, 2015 14:53 — forked from ultimatemonty/environment.js
PubNub with Ember CLI
// config/environment.js
module.exports = function(environment) {
var ENV = {
modulePrefix: 'ember-cli-pubnub',
environment: environment,
baseURL: '/',
locationType: 'auto',
EmberENV: {
FEATURES: {
@villander
villander / cordova-device-ready.js
Created November 19, 2015 00:30 — forked from htulipe/cordova-device-ready.js
Wait for Phonegap's deviceready event before initializing an Ember application
import isOnCordova from '../utils/is-on-cordova';
export function initialize(container, application) {
application.deferReadiness();
document.addEventListener('deviceready', function() {
application.advanceReadiness();
}, false);
if(!isOnCordova()){
document.dispatchEvent(new Event('deviceready'));
}
@villander
villander / gist:4ae46ac590e4ff26a3f7
Created November 26, 2015 04:49 — forked from tomdale/gist:3981133
Ember.js Router API v2

WARNING

This gist is outdated! For the most up-to-date information, please see http://emberjs.com/guides/routing/!

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>

###Code Review

É uma técnica onde o desenvolvedor tem seu código revisado por outro desenvolvedor antes de commitar o código.

O commitador deve explicar cada arquivo que está sendo commitado, tanto do ponto de vista técnico quanto de negócio.

Cada trecho de código apontado como alteração pelo "diff" deve ser devidamente explicado ao revisor.

É papel do revisor questionar sobre o código, sugerir melhorias e exigir detalhes sobre a regra de negócio.