Samsung loading screen animation

JavaScript Even in the Soup

A soup meal with really cool tools for JavaScript. Who knows how this will change tomorrow xD

Get infected parameters starting from a specific carrier

Imagine one guy got infected by a virus and you want to detect potential infections by direct contact. We have an array that represents the city where he lives and subarrays that represent the houses where he went. We are gonna use numbers (people identification) for our example.

Updated version using Set properly thanks to japanfever

Simple local development environment for web apps

  1. Open your app working directory
    • There you should have at least index.html
  2. Launch http-server in your terminal
    • If you haven’t installed it yet: npm install http-server -g
  3. Launch chromium-browser --disable-web-security --user-data-dir=/tmp/something in your terminal to allow all origins (temporary ignore  CORS mechanism )
    • Make sure you don’t have other instances open: pkill -f chromium
  4. Type in the address bar one of the address from your http-server info to access to your app

Note: Use Chromium without security just with your own code for testing and development, do not browse with it and beware about using third-party software in your code.