Skip to content

Instantly share code, notes, and snippets.

Avatar

Silvio Simunic ssimunic

View GitHub Profile
@aunyks
aunyks / snakecoin-server-full-code.py
Last active Jul 27, 2021
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
View snakecoin-server-full-code.py
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block:
@xavierlepretre
xavierlepretre / getTransactionReceiptMined.js
Last active Jul 13, 2020
Get the Promise of an Ethereum transaction receipt when it is finally mined
View getTransactionReceiptMined.js
const Promise = require("bluebird");
const sequentialPromise = require("./sequentialPromise.js");
/**
* @param {!string | !Array.<!string>} txHash, a transaction hash or an array of transaction hashes.
* @param {Number} interval, in seconds.
* @returns {!Promise.<!object> | !Promise.<!Array.<!object>>} the receipt or an array of receipts.
*/
module.exports = function getTransactionReceiptMined(txHash, interval) {
const self = this;
@jpillora
jpillora / smtp-gmail-send.go
Last active Sep 11, 2021
Send email using Go (Golang) via GMail with net/smtp
View smtp-gmail-send.go
package main
import (
"log"
"net/smtp"
)
func main() {
send("hello there")
}
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active Oct 19, 2021
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@kachayev
kachayev / concurrency-in-go.md
Last active Aug 31, 2021
Channels Are Not Enough or Why Pipelining Is Not That Easy
View concurrency-in-go.md
@TSiege
TSiege / The Technical Interview Cheat Sheet.md
Last active Oct 19, 2021
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat Sheet.md

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\