Skip to content

Instantly share code, notes, and snippets.

View MatheusR42's full-sized avatar
🤜
🤛

Matheus Araujo MatheusR42

🤜
🤛
View GitHub Profile
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"breadcrumbs.enabled": false,
"explorer.compactFolders": false,
"window.zoomLevel": 1,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
@MatheusR42
MatheusR42 / ROS Commands.md
Last active May 11, 2020 04:50
Commands from Ros Essentials Udemy Course (https://www.udemy.com/course/ros-essentials)

ROS

Creating workspace

mkdir -p ~/catkin_ws/src && cd ~/catkin_ws

Go to ROS workspace

roscd

Create a package

@MatheusR42
MatheusR42 / GetAllDirectories.js
Created August 25, 2018 16:47
This script runs on VTEX /admin/a. It opens all the subfolders from a selected folder and return it as a Set(very similar to array)
class GetAllDirectories {
constructor(diretoryName, siteUrl, delay){
this.diretoryName = diretoryName;
this.siteUrl = siteUrl || '';
this.delay = delay || 6000;
this.directories = new Set();
this.openFirstFolder()
}
openFirstFolder() {
@MatheusR42
MatheusR42 / count.mysql
Created June 19, 2018 04:23
Include NULL values in aggregate function COUNT() in MySQL
CREATE TABLE example_table (
hour INT
);
INSERT INTO example_table (hour)
VALUES (1),(2),(2),(NULL),(NULL),(NULL);
COMMIT;
SELECT
@MatheusR42
MatheusR42 / EletronicLife.js
Last active December 31, 2017 15:19
Eletronic Life - Node - Eloquent Javascript
var _ = require('lodash');
console.reset = function () {
return process.stdout.write('\033c');
}
var plan = [
"#####################",
"# # o ##",
"# #",