Product | Price (approx.) |
---|---|
💻 Macbook Air, M1, 16GB, 256GB SSD, Tela 13.3" | R$9.100,00 |
🖥️ Monitor Samsung Odyssey G9 49" | R$7.800,00 |
⌨️ KINESIS Advantage2 Quiet LF Ergonomic USB Keyboard (KB600LFQ) | R$4.500,00 |
⚡ Mesa com Regulagem de Altura GenioDesk PRO | R$3.850,00 |
🪑 [Cadeira de Escritório Makkon MK-40AC](https://www.amazon.com.br/dp/B0BSKSS3 |
Create a React component with tailwind for me.
It is a progress bar to track the user's progress level.
The text and the vertical line must be at the end of the current progress bar.
The background is transparent.
The component has this ASCII representation:
│
│
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
// ==UserScript== | |
// @name Show FIPE Price on WebMotors Car Card | |
// @namespace Violentmonkey Scripts | |
// @match https://www.webmotors.com.br/* | |
// @grant none | |
// @version 1.0 | |
// @author Marcelo "Mark" Kopmann | |
// ==/UserScript== | |
(async () => { |
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
(async () => { | |
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
const processVehicleCard = async (vehicleCard) => { | |
const title = vehicleCard.querySelector('h2').innerText; | |
const subTitle = vehicleCard.querySelector('h3').innerText; | |
const [make, model] = title.split(' '); | |
const imgAlt = vehicleCard.querySelector('img').alt; |
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 | |
branch_name=$(git rev-parse --abbrev-ref HEAD) | |
jira_id_lowercase=$(echo "$branch_name" | grep -o -E '[a-zA-Z]+-[0-9]+' | head -n1) | |
jira_id_uppercase=$(echo "$jira_id_lowercase" | tr '[:lower:]' '[:upper:]') | |
title=$(echo "$branch_name" | sed -E "s/$jira_id_lowercase-([^-]+.*)/\1/g" | sed 's/-/ /g') | |
title="${title#* }" # remove first word (feature/hotfix/etc) | |
if [[ -z "$jira_id_lowercase" ]]; then |
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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.4; | |
import "hardhat/console.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "./RewardToken.sol"; | |
contract StakingManager is Ownable{ |
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 fs = require('fs'); | |
// Use this to obtain the video names and copy the resulting array | |
// [...document.querySelectorAll('.heading h3')].map(el => el.innerText).sort((a,b) => (a.localeCompare(b))) | |
// Paste and assing the array to this variable | |
const webVideos = [] | |
function compareDownloads() { | |
try { |
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
// This works | |
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity 0.6.0; | |
contract AttackKing { | |
function attack(address payable _kingAddress) public payable { | |
(bool success,) = _kingAddress.call.gas(10000000).value(msg.value)(""); | |
require(success, "Failed to send value!"); | |
} | |
} |
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
//SPDX-License-Identifier: Unlicense | |
pragma solidity ^0.8.4; | |
import "hardhat/console.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "./RewardToken.sol"; | |
contract StakingManager is Ownable{ |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
/// @title Voting with delegation. | |
contract Ballot { | |
// This declares a new complex type which will | |
// be used for variables later. | |
// It will represent a single voter. | |
struct Voter { | |
uint weight; // weight is accumulated by delegation | |
bool voted; // if true, that person already voted |
NewerOlder