Skip to content

Instantly share code, notes, and snippets.

View icaroharry's full-sized avatar
👩‍💻
Criando o Codante.io

Ícaro Harry icaroharry

👩‍💻
Criando o Codante.io
View GitHub Profile
@icaroharry
icaroharry / checklist-react-redux.md
Last active September 27, 2023 11:30
Checklist do React Redux

Checklist do react-redux

Antes de começar

  • pensar como será o formato do seu estado global
  • pensar quais actions serão necessárias na sua aplicação

Instalação

  • npx create-react-app my-app-redux;
  • npm install --save redux react-redux;
  • npm install.
@icaroharry
icaroharry / instructions.md
Last active February 14, 2019 02:13
Instruções do Workshop

Ambiente

Para realizar o nosso workshop existem alguns requisitos técnicos. Sugerimos que você instale previamente os programas que seguem para que possamos ir direto à prática no dia:

Após isso, nós precisamos somente instalar o Truffle, o framework que auxiliará no desenvolvimento do nosso DApp:

Keybase proof

I hereby claim:

  • I am icaroharry on github.
  • I am icaro (https://keybase.io/icaro) on keybase.
  • I have a public key ASCypKE6xgablH0DrZvaBghyG7_zdpHlJ8PpK4nd08VaTQo

To claim this, I am signing this object:

@icaroharry
icaroharry / getThumbnail.js
Created August 1, 2016 16:43
I've already tried different ways to construct the blob and the base64 binary, but none of them worked.
dropbox.getThumbnail(file.path_lower, 'jpeg', 'w64h64').
then((response) => {
console.log(response)
//let thumbnailBlob = window.btoa(unescape(encodeURIComponent(response.text)));
//file.thumbnailLink = 'data:image/jpeg;base64,' + thumbnailBlob;
let arrayBufferView = new Uint32Array(response.text);
let thumbnailBlob = new Blob([arrayBufferView], {type: "image/jpeg"});
file.thumbnailLink = window.URL.createObjectURL(thumbnailBlob);
console.log(thumbnailBlob);
console.log(file.thumbnailLink)