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
#!/usr/bin/env node | |
const program = require('commander'); | |
const { join } = require('path'); | |
const fs = require('fs'); | |
const inquirer = require('inquirer'); | |
const package = require('./package.json'); | |
const todosPath = join(__dirname, 'todos.json'); |
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
#!/usr/bin/env node | |
const program = require('commander'); | |
const { join } = require('path'); | |
const fs = require('fs'); | |
const inquirer = require('inquirer'); | |
const package = require('./package.json'); | |
const todosPath = join(__dirname, 'todos.json'); |
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
#!/usr/bin/env node | |
const program = require('commander'); | |
const { join } = require('path'); | |
const fs = require('fs'); | |
const package = require('./package.json'); | |
const todosPath = join(__dirname, 'todos.json'); | |
const getJson = (path) => { |
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
#!/usr/bin/env node | |
const program = require('commander'); | |
const package = require('./package.json'); | |
program.version(package.version); | |
program | |
.command('add [todo]') | |
.description('Adiciona um to-do') |
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
const fs = require('fs'); | |
const path = require('path'); | |
const chalk = require('chalk'); | |
const figlet = require('figlet'); | |
const modulesPath = path.join(__dirname, '..', 'modules'); | |
const foldersWithPackages = fs.readdirSync(modulesPath).filter(folder => { | |
const fullPath = path.join(modulesPath, folder); | |
return fs.existsSync(path.join(fullPath, 'package.json')); |
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
var toSearch = 'uber'; | |
var qtdViagens = 0; | |
var values = []; | |
if (window.location.href.indexOf('santander') > -1) { | |
values = [...document.querySelectorAll('.cartoescontainerjson02 .contenido-activo .tabla_datos:first-child tr')].map((el) => { | |
if ([...el.querySelectorAll('td')][1] && [...el.querySelectorAll('td')][1].innerHTML.toLowerCase().indexOf(toSearch) > -1) { | |
return el.querySelector('td p').innerHTML; | |
} | |
}).map((el) => { |
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
var bits=80; // how many bits | |
var speed=33; // how fast - smaller is faster | |
var bangs=5; // how many can be launched simultaneously (note that using too many can slow the script down) | |
var colours=new Array("#03f", "#f03", "#0e0", "#93f", "#0cf", "#f93", "#f0c"); | |
// blue red green purple cyan orange pink | |
var bangheight=new Array(); | |
var intensity=new Array(); | |
var colour=new Array(); | |
var Xpos=new Array(); | |
var Ypos=new Array(); |
NewerOlder