Skip to content

Instantly share code, notes, and snippets.

View lukasbischof's full-sized avatar

Lukas Bischof lukasbischof

View GitHub Profile
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
def mandelbrot(*, x_range, y_range, lod, max_n):
colours = np.zeros((lod, lod))
x, y = np.meshgrid(np.linspace(*x_range, lod, dtype=np.float64), np.linspace(*y_range, lod, dtype=np.float64))
c = x + y * 1j
@lukasbischof
lukasbischof / multivariate_statistics
Last active December 2, 2020 22:23
Multivariate statistics
# frozen_string_literal: true
# rubocop:disable Lint/MissingCopEnableDirective
# rubocop:disable Layout/LineLength
require 'json'
input = [[9, 2], [4, 4], [7, 3], [9, 7], [0, 7]] # Change this as you need
def get_x(input)
input.map { |(x, _y)| x }
#!/bin/bash
files=(./*.JPG ./*.jpg)
count=${#files[@]}
if [ -d ./converted ]; then
echo "Converted directory already exists."
printf "Wipe existing one? [y/n]: "
read re
#!/bin/bash
print_help () {
echo "make-macos-icon 1.0"
echo "Converts an icon to all requires sizes to use in Xcode"
echo "Try --help for help using this tool"
}
print_man () {
echo "Icon Resize"

Keybase proof

I hereby claim:

  • I am lukasbischof on github.
  • I am lukasb (https://keybase.io/lukasb) on keybase.
  • I have a public key ASDmaeKX1tqR5z0lh7JgntD3Pc8N3HrmfY7LnogiSzHRygo

To claim this, I am signing this object:

@lukasbischof
lukasbischof / icon_resize.sh
Created December 19, 2015 20:49
This script can be used to produce icons/images for all sizes suitable for iOS apps (basically the @2x, @3x, ... stuff :))
#!/bin/bash
print_help () {
echo "icon_resize 1.0"
echo "Resizes images in the @1x -> @2x -> @3x image formats to use them in Xcode"
echo "Try --help for help using this tool"
}
print_man () {
echo "Icon Resize"