Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View fulldecent's full-sized avatar

William Entriken fulldecent

View GitHub Profile

This wordlist is from the legacy (circa 2017) blockchain.info website which was acquired by blockchain.com.

You can check if you have a 17-word "password nmemonic" (similar to a seed phrase) by checking if all your words are on this list.

The recovery page is now at

https://login.blockchain.com/wallet/forgot-password

It was previously at

@fulldecent
fulldecent / chartjs-red-green-line.html
Last active August 18, 2023 16:09
Chart.js show line with green above target and red below
<!DOCTYPE html>
<html>
<head>
<title>Line Chart Example</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div style="width: 80%; margin: auto;">
<canvas id="myLineChart"></canvas>
</div>
@fulldecent
fulldecent / bionft2demo.sol
Created March 7, 2023 23:36
Bio NFT 2 demo
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./IERC4907.sol";
contract MyToken is ERC721, IERC4907 {
struct UserInfo {
address user; // address of user role
uint64 expires; // unix timestamp, user expires after this time
@fulldecent
fulldecent / collisionLSH.py
Created August 18, 2021 17:32 — forked from unrealwill/collisionLSH.py
Proof of Concept : generating collisions on a neural perceptual hash
import tensorflow as tf #We need tensorflow 2.x
import numpy as np
#The hashlength in bits
hashLength = 256
def buildModel():
#we can set the seed to simulate the fact that this network is known and doesn't change between runs
#tf.random.set_seed(42)
model = tf.keras.Sequential()
@fulldecent
fulldecent / Google Sheets ETL.php
Last active November 7, 2019 20:41
Load every Google Sheet you have access to into a MySQL database
Moved to a full project at:
https://github.com/fulldecent/google-sheets-etl
@fulldecent
fulldecent / Google Analytics Experiments
Created November 28, 2018 22:51
Show all A/B experiments and the winner for your Google Analytics content experiments
<?php
# Composer: "google/apiclient": "^2.0"
const CREDENTIALS_FILE = '/var/www/vhosts/library/Dashboard-6403d6a8a5b6.json';
function googleGetExperiments()
{
return cache(__FUNCTION__, func_get_args(), 3600*6, function() {
$scopes = [ 'https://www.googleapis.com/auth/analytics.readonly' ];
$client = new Google_Client();
@fulldecent
fulldecent / SuSquares.sol
Created November 5, 2018 04:14
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=true&gist=
pragma solidity ^0.4.24;
/******************************************************************************\
*..................................SU SQUARES..................................*
*.....................Cute squares you own and personalize.....................*
*..............................................................................*
* First, I just want to say we are so excited and humbled to get this far and *
* that you're even reading this. So thank you! *
* *
* This file is organized into multiple contracts that separate functionality *
@fulldecent
fulldecent / ALLINONE.sol
Created October 23, 2018 04:35
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.25+commit.59dbf8f1.js&optimize=true&gist=
pragma solidity ^0.4.24;
/******************************************************************************\
*..................................SU SQUARES..................................*
*.....................Cute squares you own and personalize.....................*
*..............................................................................*
* First, I just want to say we are so excited and humbled to get this far and *
* that you're even reading this. So thank you! *
* *
* This file is organized into multiple contracts that separate functionality *
@fulldecent
fulldecent / travis-local.md
Created November 29, 2017 02:33
Run Travis build locally

travis-local.md

Preconditions:

  1. POSIX or Windows system
  2. Install Docker
  3. A GitHub repo that already builds on Travis

Postcondition: