Skip to content

Instantly share code, notes, and snippets.

@francoromera
francoromera / steps.txt
Created August 2, 2019 02:46
Steps taken to implement coding challenge
Backend:
I started planning the backend, what features and endpoints I was going to need.
Packages.json:
I initialized the project with npm init, and added an npm start script.
Libraries:
Since it was going to use express, I installed express, body-parser and cors plugins.
The database was mongo, so I installed mongoose library.
Since the app required login I installed express-session library

Keybase proof

I hereby claim:

  • I am francoromera on github.
  • I am francoromera (https://keybase.io/francoromera) on keybase.
  • I have a public key ASChL9fNhgYnExSor8Al5gs_shkm4oOMi2Vbq15iUVNiWgo

To claim this, I am signing this object:

@francoromera
francoromera / swapVotemIcon.js
Created March 14, 2019 04:05
Swap votem icon in modern elect
function hide() {
var style = document.createElement('style');
style.innerHTML = "img.powered-by { visibility: hidden; }";
document.body.insertBefore(style, document.getElementsByTagName('app-root')[0]);
}
function changeImage() {
var image = document.querySelector('img.powered-by');
if (image) {
image.setAttribute('width', '150px');
image.setAttribute('style', 'visibility: visible !important;');

Keybase proof

I hereby claim:

  • I am francoromera on github.
  • I am francoromera (https://keybase.io/francoromera) on keybase.
  • I have a public key ASCNvjPxkYhwmfBxFQ-EjoHZlw3r4mofPzRODWPALa-e6Ao

To claim this, I am signing this object: