Skip to content

Instantly share code, notes, and snippets.

View wellyington's full-sized avatar
💭
Making things with my clan!

Wellington Ameida wellyington

💭
Making things with my clan!
View GitHub Profile
@wellyington
wellyington / Vertical & Horizontal Centered HTML-CSS Layout
Last active April 24, 2020 10:52
Vertical & Horizontal Centered HTML/CSS Layout
<html>
<head>
<style>
.container {
height:100vh;
position:relative;
margin:0;
padding0;
}
@wellyington
wellyington / sub_qt.py
Created January 15, 2021 19:17 — forked from blubberdiblub/sub_qt.py
Minimal console output of a subprocess with PyQt.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QProcess, QTextCodec
from PyQt5.QtGui import QTextCursor
from PyQt5.QtWidgets import QApplication, QPlainTextEdit
@wellyington
wellyington / sub_qt.py
Created January 15, 2021 19:17 — forked from blubberdiblub/sub_qt.py
Minimal console output of a subprocess with PyQt.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QProcess, QTextCodec
from PyQt5.QtGui import QTextCursor
from PyQt5.QtWidgets import QApplication, QPlainTextEdit
@wellyington
wellyington / github_desktop_ubuntu.sh
Created September 12, 2021 20:16 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
#sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.1.0-linux1/GitHubDesktop-linux-2.1.0-linux1.deb
#sudo gdebi GitHubDesktop-linux-2.1.0-linux1.deb
# UPDATE (2021-03-05): Thanks to PaoloRanzi81's comment, the updated code is as follows https://gist.github.com/PaoloRanzi81
sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-2.6.3-linux1.deb
@wellyington
wellyington / index.html
Created December 24, 2022 16:04
HTML Basic Template
<!-- HTML Basic Template -->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width">
<meta charset="UTF-8">
</head>
<body>
@wellyington
wellyington / bootstrap-5-col.html
Created December 24, 2022 20:08
Boostrap 5 Columns Template (Responsive)
<!-- Boostrap 5 Columns Template (Responsive) -->
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="viewport" content="width=device-width">
<meta charset="UTF-8">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
</head>
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.18;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract ERC720Staking is ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public immutable rewardsToken;
IERC721 public immutable nftCollection;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MarriageContract {
address public spouse1;
address public spouse2;
address public witness1;
address public witness2;
uint256 public weddingDate;
bool public isMarried;