-
Fix
etc/locale.gen
to add pt_BR.UTF8 and runsudo locale-gen
to generate it. -
Install yaourt
-
Update system
-
Install other programs
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
{"lastUpload":"2021-06-23T15:30:45.087Z","extensionVersion":"v3.4.3"} |
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
function formatMoney(n) { | |
return "R$ " + n.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+\,)/g, "$1."); | |
} | |
// or (ES6) | |
const formatMoney = n => `R$ ${n.toFixed(2).replace('.', ',').replace(/(\d)(?=(\d{3})+\,)/g, "$1.")}` |
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
chown www-data:www-data -R * # Let Apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- |
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
const getList = classname => [...document.getElementsByClassName(classname)] | |
.map(i => i.currentSrc) | |
.filter(i => String(i).includes(`frame`)) | |
.map(i => i.replace(`_frame1.jpg`, '')) | |
.map(i => i.replace(`https://78.media.tumblr.com/`, '')) | |
.map(i => i.replace(`_frame1.jpg`, '')) | |
.map(i => `https://vtt.tumblr.com/${i}_480.mp4`) | |
const getVideos = () => getList('picture') |
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
# 1 - Bitmap | |
# Complete the decompress function below. | |
def decompress(linesAsStringArray): | |
result_line = '' | |
for line in linesAsStringArray: | |
while line: | |
sep, rep = line[:2] | |
line = line[2:] | |
result_line += (sep * int(rep)) | |
result_line += '\n' |
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
// WARNING: it sould be runned in http://www.brazil-help.com/brazilian_states.htm | |
// to get the same results | |
const list_brazilien_states = () => { | |
const trs = document.querySelectorAll('.MsoNormalTable tr') | |
let data = [] | |
trs.forEach((tr, index) => { | |
if (index > 3) { | |
const tds = tr.getElementsByTagName('td') |
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
export function downloadCSV(CSVText, filename) { | |
const link = document.createElement('a'); | |
link.setAttribute('href', window.URL.createObjectURL( | |
new Blob([CSVText]), | |
{ type: 'text/plain' } | |
)); | |
link.setAttribute('download', `${filename}.csv`); | |
document.body.appendChild(link); // Required for FF | |
link.click(); | |
document.body.removeChild(link); |