Skip to content

Instantly share code, notes, and snippets.

View b-g's full-sized avatar
💭
🥳

Benedikt Groß b-g

💭
🥳
View GitHub Profile
@b-g
b-g / gist:e9560f03ca3de8686e0b
Created May 13, 2015 09:11
angular translate definitions for Population.io
@b-g
b-g / map.js
Last active October 15, 2021 13:08
map function (á la processing.org)
function map(value, istart, istop, ostart, ostop) {
return ostart + (ostop - ostart) * ((value - istart) / (istop - istart));
};
function long2tile(lon,zoom) {
return (((lon+180)/360*Math.pow(2,zoom)));
}
function lat2tile(lat,zoom) {
return (((1-Math.log(Math.tan(lat*Math.PI/180) + 1/Math.cos(lat*Math.PI/180))/Math.PI)/2 *Math.pow(2,zoom)));
}
function tile2long(x,z) {
return (x/Math.pow(2,z)*360-180);
}
function tile2lat(y,z) {
@b-g
b-g / start.command
Created July 13, 2017 10:37
start local webserver in folder and open browser
#!/bin/bash
BASEDIR="$( dirname "$0" )"
cd "$BASEDIR"
echo "This is where we are :"
pwd
echo "Starting webserver"
open "http://localhost:8000" && python -m SimpleHTTPServer 8000
@b-g
b-g / gist:9a13ba11594a791a569ed1f7b5ea1ea6
Created December 7, 2017 08:50
Download Entire Web Site with wget
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent http://benedikt-gross.de/log/
@b-g
b-g / gist:3e1b6ba2f6a4befe6be5e3d6b67eeddf
Last active January 15, 2020 12:04
Violating terms of use OpenMoji
https://www.istockphoto.com/portfolio/zahidosmanov?assettype=image&page=13&sort=best
https://www.shutterstock.com/image-vector/grasshopper-icon-vector-1094353553
https://www.shutterstock.com/image-vector/victory-hand-icon-vector-illustration-1095069848
https://www.shutterstock.com/image-vector/hamster-icon-vector-1093247585\
@b-g
b-g / zoo.yaml
Last active October 16, 2023 08:20
name: designing-prompts-automatic111-model-zoo
version: v4 (9 Oct 2023)
description: "Resources for the 'Designing Prompts Workshop': stable diffusion models, embeddings, and Automatic111 installation with extensions."
author: Benedikt Groß
aliases:
image_generator: &image_generator /workspace/
models: &models /workspace/stable-diffusion-webui/models/Stable-diffusion/
controlnet: &controlnet /workspace/stable-diffusion-webui/models/ControlNet/
embeddings: &embeddings /workspace/stable-diffusion-webui/embeddings/