Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantumjim
quantumjim / biased.py
Created May 10, 2020 11:21
Testing rng
import secrets
import numpy as np
samples = 1000000
zs = 0
os = 0
number_list = []
for _ in range(samples):
@dtmcclure
dtmcclure / Getting the most out of a quantum computer.ipynb
Created February 11, 2020 18:42
Feb 2020 on getting the most from a QC
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@artofquantum
artofquantum / Quantum Entanglement.ipynb
Created January 15, 2019 10:12
Basic quantum entanglement code, written in Python, and using IBM's Qiskit framework.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@paulera
paulera / scriprocrastinator.md
Last active November 16, 2020 11:42
Pretend your terminal is doing techy things

Fake process script

Simulates a build/configuration/installation-like process, using a random message with a nice fake progress, with percentage, random total and variable pace. The command does it as many times and as fast as you set in 2 first variables (maxsteps and pace). Goes really well with a cup of coffee! ;)

  • maxsteps = number of steps to run until "finish".
  • pace = step increment speed. Lower numbers are faster. 500 works well.
  • Arrays a, b and c = word lists. change them as you like, words separated by space.

Minified version (for quick procrastination)

@josefnpat
josefnpat / readme.md
Last active November 7, 2025 09:18
Going from Lua 5.2 to PICO-8's Lua

This information applies to the PICO-8 0.1.6 release.

This document is here to help folks with a proficiency in Lua understand the limitations and discrepencies between Lua and PICO-8's Lua.

You can always view the manual or yellowafterlife's extended 0.1.1 manual.

General

  • anything written in uppercase the PICO-8 editor or .p8 is made lowercase by the editor. → editing the .p8 file directly can work
  • print(function() end) outputs the string function instead of the string function: 0x0000000.