In the following you can find small introductions to my meetups
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 allViewedCheckbox = document.getElementsByClassName('mr-1 js-reviewed-checkbox') | |
for(viewedCheckbox of allViewedCheckbox) { | |
if (viewedCheckbox.checked) { | |
viewedCheckbox.click() | |
} | |
} |
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
// Save the console function in the console once | |
(function (console) { | |
console.save = function (data, filename) { | |
if (!data) { | |
console.error('Console.save: No data') | |
return | |
} | |
if (!filename) { | |
filename = 'console.json' |
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
#!/bin/bash | |
SLEEP_TIME=1 | |
NUM_OF_MESSAGES=100 | |
PACK=$RANDOM | |
echo "Sending continous messages with wait time of ${SLEEP_TIME} seconds between each message" | |
for (( i=1; i<=$NUM_OF_MESSAGES; i++ )) | |
do |
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
# Run this bash file inside of mmctl directory or replace ./mmctl with the path to mmctl | |
for i in {1..100} | |
do | |
# First command creates a channel with user included in the channel | |
./mmctl channel create --team XXXTeamNameXXX --display-name "${i}-channel" --name "${i}-channel" | |
# Second command removes all the users from the created channel | |
./mmctl channel users remove "XXXTeamNameXXX:${i}-channel" --all-users | |
done |
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
#!/bin/bash | |
#title :generate-custom-emojis.sh | |
#description :This script create 4000 custom emojis in mattermost. | |
#authors :saturninoabril,m-zubairahmed | |
#version :0.2 | |
#notes :Replace token and creator id with your own. | |
# e.g. TOKEN="xgqkaquaii8cz8pqqak5jsfm8c" | |
TOKEN="XX" |
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
[ | |
{ | |
"endpoint": "/api/exercise/new-user", | |
"method": "POST", | |
"postdata": { | |
"username": "" | |
}, | |
"returndata": { | |
"_id": "", | |
"username": "" |
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
$spacing-scale: ( | |
"-0": 0px, | |
"": 1px, | |
"half": 0.125rem, | |
"-1": 0.25rem, | |
"1half": 0.375rem, | |
"-2": 0.5rem, | |
"2half": 0.625rem, | |
"-3": 0.75rem, | |
"3half": 0.875rem, |
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
// Edit the classname of the connect button on Linkedin | |
const connectButtonClassname = "full-width artdeco-button artdeco-button--2 artdeco-button--full artdeco-button--secondary ember-view" | |
const allButtons = document.getElementsByClassName(connectButtonClassname) | |
const allButtonsArray = Array.from(allButtons) | |
if (allButtonsArray.length > 0){ | |
allButtonsArray.forEach(function(button){ | |
if (button.innerText === "Connect"){ |
If the app uses custom webpack configuration, then loader is needed to handle svgs in your app. Lets use SVGR webpack loader.
yarn add @svgr/webpack --dev
and then in your webpack config file add the following rule :
{
test: /\.svg$/,
NewerOlder