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
;;CET (based on implementation of https://github.com/eduardordm/cet-java) | |
;; Run with inlein http://inlein.org | |
;; Download inlein and run ./inlein cet.clj | |
'{:dependencies [ | |
[org.clojure/clojure "1.10.1"] | |
[clojure.java-time "0.3.2"]] } | |
(require '[java-time :as t]) | |
(def CET_MAX_VALUE 10000.00) |
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
/** | |
* Visit https://cloud.google.com/docs/authentication/getting-started and | |
* follow the steps to generate a service account, by the end you have a json or p2 | |
* file downloaded. | |
* Export the path so that you have access to the datastore | |
* export GOOGLE_APPLICATION_CREDENTIALS="/path/to/file.json" | |
* | |
* npm init --yes | |
* npm install firebase-admin | |
* node index.js <PROJECT_ID> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type="text/javascript" src="https://js.iugu.com/v2"></script> | |
<script> |
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
'use strict' | |
const fs = require('fs'); | |
fs.readFile('lista_palavras_desordenada.txt', (err, data) => { | |
if (err) throw err; | |
const array = data.toString() | |
.trim() | |
.split('\n'); | |
const result = array.filter(item => { | |
let str = item.trim(); |