Skip to content

Instantly share code, notes, and snippets.

@christianb93
christianb93 / token.json
Created November 9, 2019 12:44
Sample Keystone token
{
"token": {
"methods": [
"password"
],
"user": {
"domain": {
"id": "default",
"name": "Default"
},
@christianb93
christianb93 / Dockerfile.travis-build
Last active June 2, 2019 11:05
Local compile of a Travis CI file
# Base image is ruby
FROM ruby:2.6.3
# Create local directory
RUN mkdir /root/.travis
WORKDIR /root/.travis
# Clone Travis repository
RUN git clone --branch v10.0.0 --depth=1 https://github.com/travis-ci/travis-build
@christianb93
christianb93 / CooperPairBox.ipynb
Created March 30, 2019 13:26
Cooper pair box simulation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / QiskitSampleSubmission.ipynb
Created November 12, 2018 13:35
Python notebook that demonstrates how a simple quantum circuit is assembled and submitted using Qiskit
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / Grover.ipynb
Created July 30, 2018 10:25
Visualization of Grovers quantum algorithm for unstructured search
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / PaperspaceSubmitJob.ipynb
Created April 12, 2018 07:12
Submit a job to Paperspace Gradient using the Python API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / DockerBitcoinSetup.ipynb
Created April 6, 2018 15:50
Set up a dockerized test network for bitcoind with a defined supply of bitcoin
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / InitialDifficultyRegTest.ipynb
Created April 3, 2018 18:14
Determine the initial difficulty for a bitcoind in regtest mode - once using the RPC call getinfo and once from the genesis block
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / TransitionMatrixMarkovChain.ipynb
Created April 3, 2018 09:43
Determine the limit distribution for a simple Markov chain based on the transition matrix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@christianb93
christianb93 / MerkleRoot.ipynb
Last active April 2, 2018 14:21
Get a bitcoin block from blockchain.info and calculate its Merkle root
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.