Skip to content

Instantly share code, notes, and snippets.

// Generated By: LDView 4.2.1.1 (C) Travis Cobbs and Peter Bartfai, 2016
// See: http://ldview.sourceforge.net/
// Date: Thu Mar 5 14:40:50 2020
// Input LDraw File: Photon Chaser.ldr
// LDraw File Author: Allen Smith
//
// This file was automatically generated from an LDraw file by the program
// LDView. See comments above for further details.
#version 3.6;
// ==UserScript==
// @name Minds Extensions
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.minds.com/*
// @grant none
// ==/UserScript==
from numba import jit
import matplotlib.pyplot as plt
import numpy as np
from matplotlib import cm
@jit
def mandelbrot(c,maxiter):
z = c
la = 0
t = 16
from matplotlib import pyplot as plt
from scipy.interpolate import make_interp_spline as mis
import numpy as np
it = 5000
rr = np.arange(2.8, 3.7, 0.01)
for x in np.arange(0.1, 1.0, 0.01):
xx = []
for r in rr:
xn = x
function countIterations(x, y) {
var count = 0;
var t = x;
x=-y;
y=t;
var zx = x;
var zy = y;
var n = 100;
var p = 200;
while (count < maxIterations && zx*zx + zy*zy < 20) {
from numpy import any, all, where, zeros
from random import choice, randint
from itertools import product
from readchar import readchar
from colorama import Fore as cf
import matplotlib.pyplot as plt
SIZE, MAX = 5, 10
def add_tile(a):
@mechamug
mechamug / 2048.py
Created February 26, 2020 15:50
Python 2048
from numpy import any, all, where, zeros
from random import choice, randint
from itertools import product
from readchar import readchar
from colorama import Fore as cf
SIZE, MAX = 5, 10
def add_tile(a):
a[choice([*zip(*where(a==0))])] = randint(1,2)