Skip to content

Instantly share code, notes, and snippets.

View pvrego's full-sized avatar
💾
Producing

Rego pvrego

💾
Producing
View GitHub Profile
@pvrego
pvrego / pthreads_rpi.md
Last active April 17, 2021 02:57
Working with PThreads in Raspberry Pi

PThreads installation

In order to install, in Raspbian terminal you may execute

sudo apt-get install libpthread-stubs0-dev

So the system will return

Reading package lists... Done
@pvrego
pvrego / java_callback.java
Created March 5, 2019 20:56
Callbacks in Java
// From https://www.quora.com/What-are-callback-methods-in-Java
// Java program to illustrate synchronous callback
interface OnGeekEventListener {
// this can be any type of method
void onGeekEvent();
}
class B {
private OnGeekEventListener mListener; // listener field
@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

@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 / colored_placeholders.md
Last active September 16, 2020 16:48
Colored Placeholders

Colored Placeholders

@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 / 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 / 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 / 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
}