Skip to content

Instantly share code, notes, and snippets.

View pvrego's full-sized avatar
💾
Producing

Rego pvrego

💾
Producing
View GitHub Profile
@pvrego
pvrego / Reset Udemy Progress.md
Created October 14, 2022 14:12 — forked from JohnDinhDev/Reset Udemy Progress.md
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 09/30/2022

Step 1. Go to Udemy course in browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@pvrego
pvrego / hrng.sol
Last active May 2, 2022 12:40
Random Generator HPB
pragma solidity ^0.5.6;
contract HRNG {
function getRandom() public view returns (bytes32) {
return block.random;
}
}
@pvrego
pvrego / combined.tex
Last active March 30, 2022 20:31
Markdown To LaTeX
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
@pvrego
pvrego / Constructor.md
Last active March 23, 2022 18:49
ABC Wallet
constructor(address _newPayer, address _newReceiver, uint _depositMin){
    require(_depositMin > 0);           // R2.3, non-nullity 
    __depositMinAllowed = _depositMin;  // R2.3, definition of min deposit value
    __payer = _newPayer;                // R4.1, assignment of the payer role
    __receiver = _newReceiver;          // R4.1, assignment of the receiver role
    __mediator = __owner;               // Mediator role is the contract, by design
}
@pvrego
pvrego / list-all-repos.py
Created October 10, 2020 15:08 — forked from ralphbean/list-all-repos.py
Script to list all repos for a github organization
#!/usr/bin/env python
""" Print all of the clone-urls for a GitHub organization.
It requires the pygithub3 module, which you can install like this::
$ sudo yum -y install python-virtualenv
$ mkdir scratch
$ cd scratch
$ virtualenv my-virtualenv
@pvrego
pvrego / README.md
Last active September 26, 2020 15:02 — forked from christopherlovell/display.py
display youtube video in jupyter notebook

Display youtube video in jupyter notebook

@pvrego
pvrego / gist:1bf9e11f72f9f46f098bb42c9a20b5ac
Last active September 27, 2020 18:32 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

Emojis List

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
@pvrego
pvrego / colored_placeholders.md
Last active September 16, 2020 16:48
Colored Placeholders

Colored Placeholders

@pvrego
pvrego / Colored Github README.md
Last active June 23, 2024 18:49
How to make README.md files with colored texts in Github

Colored text #1

You can use the diff language tag to generate some colored text:

- text in red
+ text in green
! text in orange
# text in gray
@@ text in purple (and bold)@@
@pvrego
pvrego / README.md
Last active September 26, 2020 14:59 — forked from thanasi/jupyter_local_video.py
Embed a local video file in a Jupyter Notebook

Embed a local video file in a Jupyter Notebook