Skip to content

Instantly share code, notes, and snippets.

Avatar

Cassio Cardoso cassiocardoso

View GitHub Profile
View redux-101.js
import { createStore } from 'redux'
/**
* This is a reducer, a pure function with (state, action) => state signature.
* It describes how an action transforms the state into the next state.
*
*/
function counter(state = 0, action) {
switch (action.type) {
case 'INCREMENT':
View unique-triplets.js
const array = [-1, 0, 1, 2, -1, -4];
const length = array.length;
const sum = 0;
const solutions = [];
array.sort();
array.map((d, i) => {
let j = i + 1;
let k = length - 1;
View measurements.js
const measurementsData = require('./measurements.json');
let placeholder = measurementsData.table.placeholder;
let measurements = measurementsData.table.measurements;
let labels = [];
let data = [];
// create labels array
labels.push(placeholder);
measurements.forEach(el => labels.push(el.name));
@cassiocardoso
cassiocardoso / osx_install.sh
Last active Jun 6, 2021 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
View osx_install.sh
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@cassiocardoso
cassiocardoso / resumo-ess.md
Last active Aug 17, 2021
Resumo - Engenharia de Software
View resumo-ess.md

Engenharia de Software

Plano de ensino:

  • Ementa

    • Discute as disciplinas da engenharia de software dando maior ênfase nas áreas do conhecimento mais relevantes para o desenvolvimento de aplicações web, como requisitos não-funcionais, arquitetura, testes e qualidade de software, evolução e entrega contínua.
    • A disciplina apresenta o modelo de referência da ISO 25.000 para a qualidade de software, bem como o uso de modelos ágeis para dar suporte ao dinamismo das aplicações web.
  • Objetivos

    • Entender características do software e de seu ciclo de vida
@cassiocardoso
cassiocardoso / UX.md
Last active Aug 29, 2015
Anotações da Aula de Ergonomia e Usabilidade
View UX.md

Ergonomia, Usabilidade e IHC

Bibliografia

  • Usability Engineering, Jakob Nielsen, 1993 1, 2
  • Não me faça pensar - Usabilidade na Web, Steve Krug, 2008 1, 2, 3
  • User Interface Directions for the Web, Jakob Nielsen, 1999 1, 2, 3
@cassiocardoso
cassiocardoso / engenharia-de-software-para-web.md
Last active Aug 29, 2015
2015 04 27 - Engenharia de Software
View engenharia-de-software-para-web.md

Engenharia de Software e Sistemas

  • email: prof.monesi@gmail.com
  • V Model
  • Avaliações:
    • Trabalho em grupo (40%)
    • Participação nas aulas (10%)
    • Prova individual (50%) - Diagrama de classe; Faça duas representações estáticas e duas dinâmicas.
  • Referências:
@cassiocardoso
cassiocardoso / metaphorically-html-css-explanation
Last active Aug 29, 2015
Metaphorically explain HTML and CSS
View metaphorically-html-css-explanation
# Metaphorically explain HTML and CSS
Get up in front of the class and whip out a piece of sh*tty A4 paper. Fold it in
half and on the front write ‘Happy Birthday’ in one colour. Inside, scribble a
typical birthday message in the same pen.
This is HTML. It’s a message. It’s content. Stress the fact that, although it
doesn’t look very pretty, its job is fulfilled: it has effectively passed on
some content. It’s communicated with someone.
@cassiocardoso
cassiocardoso / select-estados-br
Created Feb 12, 2014
Select com uma lista de todos os estados brasileiros.
View select-estados-br
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>