This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fetch('https://unpkg.com/axios/dist/axios.min.js') | |
| .then(response => response.text()) | |
| .then(text => eval(text)) | |
| .then(() => { console.log('axios has loaded') }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fetch('https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js') | |
| .then(response => response.text()) | |
| .then(text => eval(text)) | |
| .then(() => { console.log('lodash has loaded') }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| defmodule Helpers do | |
| # Reads single integer from STDIN | |
| def read_int do | |
| IO.gets("") |> String.trim |> String.to_integer | |
| end | |
| # Reads list from STDIN | |
| def read_list do | |
| IO.stream(:stdio, :line) | |
| |> Enum.to_list |