Skip to content

Instantly share code, notes, and snippets.

View aramb-dev's full-sized avatar
🚀
Busy 👍

Abdur-Rahmān Bilāl aramb-dev

🚀
Busy 👍
View GitHub Profile
@aramb-dev
aramb-dev / Wallet_ETH.1.0.0.sol
Last active February 6, 2021 18:57
Created Wallet Ethereum with contract inheriting. Run with https://remix.ethereum.org. Very simple. Just Copy and Paste it into Remix.
pragma solidity 0.5.1;
contract ERC20Token{
string public name;
mapping (address => uint256) public balances;
function mint() public {
balances[tx.origin] += 1;
}
}
contract Wallet_ETH {
@flow4u
flow4u / MyDRE_RDP.py
Last active January 27, 2021 12:14
Python: MyDRE easy open session with 2 monitors (mutlimonitor is restricted to 2), also works with 1
"""
Version 0.5.2
After compyling with pyinstaller the exe picks up the latest downloaded RDP file, adds a few lines of code
to MyDRE.rdp to ensure 2 monitors (and only 2 monitors) are used (monitor 0 and monitor 1). Leaving a
3rd free for other things.
It runs MyDRE.rdp and it also removes the downloaded RDP file.
The exe can be added to the windows bar, download an RDP and press the shortcut on the windows bar.
"""
@aramb-dev
aramb-dev / Var-Types.sol
Last active February 6, 2021 18:59
Made a new Variable Types Tutorial Solidity smart contract. Run with https://remix.ethereum.org. Very simple. Just Copy and Paste it into Remix.
pragma solidity 0.5.1;
contract Var_TypesCon {
string public stringVar = "Default";
bool public boolvar = true;
int public intvar = 1;
uint public uintvar = 1;
uint8 public uint8var = 8;
uint256 public uint256var = 99;
}
@aramb-dev
aramb-dev / Computer.sol
Last active February 6, 2021 18:59
Made a new Computer-State Solidity smart contract. Run with https://remix.ethereum.org. Very simple. Just Copy and Paste it into Remix.
pragma solidity 0.5.1;
contract Computer_State{
enum State { Running, ShutDown, SavedState, Hibernated, Sleeped, Terminated }
State public state;
constructor() public {
state = State.Running;
}
function Terminate_Computer() public {
state = State.Terminated;
@sadikay
sadikay / google_fonts.css
Created April 26, 2017 22:34
All Google Fonts In One CSS File
@font-face {
font-family: 'ABeeZee';
font-style: normal;
font-weight: 400;
src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype');
}
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;