Skip to content

Instantly share code, notes, and snippets.

View PinkDiamond1's full-sized avatar
💭
gh repo clone twins2020/bitcoin-PinkDiamondBTC

Calcody-Lee Mcneill PinkDiamond1

💭
gh repo clone twins2020/bitcoin-PinkDiamondBTC
View GitHub Profile
@PinkDiamond1
PinkDiamond1 / README.md
Created July 5, 2023 01:16 — forked from bretton/README.md
The Lightning Network (Testnet)

Forked from vasturiano, with dataset and minor other changes.

Forked from tyzbit, with new dataset from four hosts, initial jq combine command added

Latest

The Lightning Network as seen from my three nodes, with tyzbit node, at about 22:00 UTC on Feb 20 2018. This data is updated manually when I feel like it.

view

//@version=4
'''
Quick explanation from "Market Cipher - what is just a closed source of this script with alerts. (DO NOT PAY 1.500$ JUST FOR ALERT FUNCTION!)"
Market Cipher B is an all-in-one oscillator allowing for more quality indications than ever before.
It combines five algorithms (some well-known, some custom) that have all been fine-tuned and smoothed for optimal analysis and trading results.
When all of the algorithms converge, Market Cipher B will project a “Green Dot” which will aid you in longing the dips in bull markets as well as temporarily exiting shorts in bear markets.
The Green Dot is often accompanied by extreme sellers’ momentum and will warn you of potential market bottoms, giving you strong hands even when the night is at its darkest.
Market Cipher B certainly excels on the small time frames, but is a particularly deadly tool for isolating large swings in the market.
//@version=4
// CIRCLES:
// - LITTLE: They appear at all WaveTrend wave crossings
// - GREEN: The wavetrend waves are at the oversold level and have crossed up (bullish)
// - RED: The wavetrend waves are at the overbought level and have crossed down (bearish)
// - PURPLE: Appear when a bullish or bearish divergence is formed and WaveTrend waves crosses at overbought and oversold points
// - GOLD: When RSI is below 20, WaveTrend waves are below or equal to -80 and have crossed up (DONT BUY WHEN GOLD CIRCLE APPEAR)
// - None of these circles are certain signs to trade. It is only information that can help you.
//
// I am not an expert trader or know how to program pine script as such, in fact it is my first indicator only to study and all the code is copied and modified from other codes that are published in TradingView.
@PinkDiamond1
PinkDiamond1 / ByteTokenizer.java
Created June 16, 2023 22:21 — forked from duydo/ByteTokenizer.java
The byte tokenizer class allows an application to break a byte array into tokens.
/**
* @(#)ByteTokenizer.java Sep 23, 2008
* Copyright (C) 2008 Duy Do. All Rights Reserved.
*/
package com.duydo.util;
import java.util.Enumeration;
import java.util.NoSuchElementException;
/**
@PinkDiamond1
PinkDiamond1 / dice_roll.py
Created May 17, 2023 20:54 — forked from vyznev/dice_roll.py
A simple bare-bones dice probability calculator framework, compatible with both Python 2 and Python 3
def dice_roll(die, count = 1, select = None):
"""Generate all possible results of rolling `die` `count` times, sorting
the results (according to the order of the sides on the die) and selecting
the first `select` elements of it.
The yielded results are tuples of the form `(roll, prob)`, where `roll` is a
sorted tuple of `select` values and `prob` is the probability of the result.
The first argument can be either a custom die, i.e. a tuple of `(side, prob)`
pairs, where `prob` is the probability of rolling `side` on the die, or just
@PinkDiamond1
PinkDiamond1 / emoTranslate.js
Last active May 6, 2023 20:49 — forked from letanure/emoTranslate.js
emo translator wip
function searchCharInArray(char, array) {
for (let i = 0; i < array.length; i++) {
if (array[i].indexOf(char) !== -1) {
return array[i].indexOf(char);
}
}
return false;
}
function replaceAll(str, find, replace) {
###
q-3.coffee
Facebook Hacker Cup Qualifications - Problem 3
###
# takes in two strings of input, and returns the nth value of m
f = (input1, input2) ->
# parse the input strings to get the variable values
split = input1.split ' '
n = Number split[0]

Keybase proof

I hereby claim:

  • I am mappum on github.
  • I am mappum (https://keybase.io/mappum) on keybase.
  • I have a public key ASAnYrDZQA4Hnziay_XGDFlCIhfUCgLLgI6Mv9Z_7VU6cgo

To claim this, I am signing this object:

@PinkDiamond1
PinkDiamond1 / letsencrypt_notes.sh
Created April 18, 2023 17:45 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example
# When this is done, there will be an "acme" user that handles issuing,
# updating, and installing certificates. This account will have the following
# (fairly minimal) permissions:
# - Host files at http://EXAMPLE.com/.well-known/acme-challenge
pragma solidity 0.4.24;
import "openzeppelin-solidity/contracts/token/ERC20/ERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
contract VestingVault12 {
using SafeMath for uint256;
using SafeMath for uint16;