Skip to content

Instantly share code, notes, and snippets.

View villander's full-sized avatar

Michael Villander villander

View GitHub Profile
// Meu jade
//- Diretiva do gráfico de linhas
div#colGraph
graph-lines(api = "{months: dashboardCtrl.dados.months}")
// Minha diretiva
app.directive('graphLines', function () {
return {
scope: {
@villander
villander / SassMeister-input.scss
Created June 3, 2015 17:01
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
// Hacking made easy
// ---
// A couple of Sass functions
// To ease the pain of dealing
// With special values for IE
@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 / hoje
Last active August 29, 2015 14:27
Conforme falamos no último contato, estamos enviando um teste para a vaga Node.js no Blogo. Segue abaixo as informações. Qualquer dúvida basta responder este email Emoticon smile
O teste:
Vamos criar um protótipo simples de um editor de texto utilizando Node.js e Grunt para gerar os arquivos JS, CSS e HTML. Utilize o atributo contenteditable do HTML.
O projeto deve funcionar corretamente pelo menos no Safari, Chrome e Firefox.
Quais funcionalidades esse editor de texto deve ter?
Usuário deve poder conseguir formatar o texto, aplicando NEGRITO (cmd + b), ITALICO(cmd +i) e SUBLINHADO(cmd +u). As teclas de atalho já funcionam no Chrome, mas não no Firefox e Safari.
{
"name": "contatooh",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
1393 /home/villander/.rvm/gems/ruby-2.2.1/gems/mail-2.6.3/lib/mail/mail.rb
1394 /home/villander/.rvm/gems/ruby-2.2.1/gems/mail-2.6.3/lib/mail.rb
1395 /home/villander/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/abstract_controller/collector.rb
1396 /home/villander/.rvm/gems/ruby-2.2.1/gems/actionmailer-4.2.1/lib/action_mailer/collector.rb
1397 /home/villander/.rvm/gems/ruby-2.2.1/gems/actionmailer-4.2.1/lib/action_mailer/log_subscriber.rb
1398 /home/villander/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.1/lib/active_support/configurable.rb
1399 /home/villander/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.1/lib/abstract_controller/base.rb
1400 /home/villander/.rvm/gems/ruby-2.2.1/gems/mail-2.6.3/lib/mail/check_delivery_params.rb
1401 /home/villander/.rvm/gems/ruby-2.2.1/gems/mail-2.6.3/lib/mail/network/delivery_methods/test_mailer.rb
1402 /home/villander/.rvm/gems/ruby-2.2.1/gems/actionmailer-4.2.1/lib/action_mailer/delivery_methods.rb
@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