This file contains 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
#!/home/nahuel/.nvm/versions/node/v11.15.0/bin/node | |
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const parse = require('node-html-parser').parse; | |
const notifier = require('node-notifier'); | |
const display = text => console.log(`<span> </span><span foreground="greenyellow">${text}</span>`); | |
const URL = 'http://www.bna.com.ar/Personas'; |
This file contains 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
#!/home/nahuel/.nvm/versions/node/v11.15.0/bin/node | |
# ^ replace with your own, of course | |
const fetch = require('node-fetch'); | |
const fs = require('fs'); | |
const parse = require('node-html-parser').parse; | |
const notifier = require('node-notifier'); | |
const display = text => { | |
console.log(`<small>${text}</small> | color=orange`); |
This file contains 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
let UserContext = React.createContext(); | |
class App extends React.Component { | |
state = { | |
user: null, | |
setUser: user => { | |
this.setState({ user }); | |
} | |
}; |
This file contains 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
#!/bin/bash | |
# Launch inside a react project after building the production build with webpack | |
# Require `jq`. | |
diff \ | |
<(find src -type f \( -name '*.js' -o -name '*.jsx' -o -name '*.scss' \) | sort) \ | |
<(cat dist/**/*.map | jq --raw-output '.sources | join("\n")' \ | |
| grep -v '\.\./' | grep -E '\.(js|jsx|scss)$' \ | |
| sed "s~^webpack:///\./~~" -r | sort | uniq) \ |