Skip to content

Instantly share code, notes, and snippets.

@sonnyparlin
sonnyparlin / ecctest.cpp
Last active February 18, 2022 22:20
Simple cpp program for creating elliptic curve key pair, signing and verifying message.
// g++ ecctest.cpp -std=c++14 -lcryptopp -o ecctest
#include <cryptopp/cryptlib.h>
#include <cryptopp/eccrypto.h>
#include <cryptopp/osrng.h>
#include <cryptopp/oids.h>
#include <cryptopp/base64.h>
#include <cryptopp/sha.h>
#include <cryptopp/eccrypto.h>
#include <cryptopp/files.h>
@sonnyparlin
sonnyparlin / blockchain.md
Last active January 7, 2022 02:48
Ideas for launching a blockchain from scratch

How to launch a blockchain and crypto currency from scratch.

Introduction

I've recently taken multiple courses on how to build blockchains from scratch. But none of the courses offer information on how to launch your blockchain into the real world and get people trading it. I've been researching this for a couple of weeks, and there is very little information on the internet on how to take a blockchain that you've written from scratch and make it live so that people can buy/sell your cryptocurrency.

# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement
# flake8: noqa: F401
# isort: skip_file
# --- Do not remove these libs ---
import numpy as np # noqa
import pandas as pd # noqa
from pandas import DataFrame
from freqtrade.strategy import IStrategy
from freqtrade.strategy import CategoricalParameter, DecimalParameter, IntParameter
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © sonnyparlin
// DROP THIS INTO A CHART USING BTCUSDT/BINANCEUS 1H CANDLES
// This is a pine rewrite of @tirail's freqtrade sma offset strategy
// originaly written in python. You can view the original freqtrade strategy
// here:
// https://github.com/thierryjmartin/freqtrade-stuff/blob/main/SMAOffset.py
//
@sonnyparlin
sonnyparlin / smaOffset.pine
Last active September 6, 2021 03:17
SMA Strategy, stop losses only work manually
// @version=4
// Author: Sonny Parlin (highschool dropout)
// Updated 9/5/2021
// Check out a couple of videos on how to use this strategy:
// https://loom.com/share/folder/90a3f9ae6eba4313a4c2ab217d33a527
//
strategy(shorttitle="SMA+Strategy", title="SMA Offset Strategy",
overlay=true, currency=currency.USD,
initial_capital=10000,
pyramiding = 0)
@sonnyparlin
sonnyparlin / Working.txt
Created February 8, 2021 23:36
Hard work
Pays off
asdasdasdasd
@sonnyparlin
sonnyparlin / Sky.txt
Last active June 9, 2021 13:08
Messiah
@gistControllerbot The sky is blue and large and the universe is eternal. Go outside. Good morning. Palace. SKilled worker. Veddy Nice. Poopy pants.........
@sonnyparlin
sonnyparlin / distilled_water.py
Last active February 9, 2021 13:27
distilled water
"""This is a test file"""
print("shut up")
lines = ["line1", "line 2"]
@sonnyparlin
sonnyparlin / Hello.c
Last active February 9, 2021 01:18
C file
#include("stdio.h")
int main() {
printf("Hello world\n");
}
/*
* Another Comment
*/