Skip to content

Instantly share code, notes, and snippets.

View mojoaxel's full-sized avatar
🏠
Working from home

Alexander Wunschik mojoaxel

🏠
Working from home
View GitHub Profile
@mojoaxel
mojoaxel / rockPaperScissors.sh
Last active March 17, 2022 16:16
command line rock-paper-scissors game
#!/bin/bash
#
# This is a bash port of a BASIC game from 1973 by Charles Lund:
# https://www.atariarchives.org/basicgames/showpage.php?page=137
#
# author: Alexander Wunschik (https://github.com/mojoaxel)
# license: CC-0 Public Domain
printf "%*s GAME OF ROCK, SCISSORS, PAPER\n" 21
printf "%*s CREATIVE COMPUTING MORRISTOWN, NEW JERSEY\n" 15
@mojoaxel
mojoaxel / GrueneGegenUrheberrechtsreform.md
Last active January 15, 2022 18:45
Bündnis 90/Die Grünen gegen #Artikel11 und #Artikel13

Grünen Positionen zur Urheberrechtsreform

image

Wie stehen @Die-Gruenen bzw. @GermanGreens zur neuen #Urheberrechtsreform mit #Artikel11 und #Artikel13 ?

EU Wahlprogramm

[..] sie (EU) muss die Diskriminierung durch Suchmaschinen, Filter und Co. verbieten. EU Wahlprogramm, S.155

Die Freiheit von Wissenschaft und Forschung und genauso von Kunst muss garantiert sein. Kultur und Kreativität müssen sich frei entfalten können, was angesichts des Drucks, unter dem Kulturschaffende in Ländern wie Ungarn stehen, keine Selbstverständlichkeit mehr ist. EU Wahlprogramm, S.156

@mojoaxel
mojoaxel / .prettierrc.json
Last active October 27, 2021 08:52
prettier.io settings for fullstax projects
{
"singleQuote": true,
"useTabs": true,
"semi": true,
"printWidth": 100,
"trailingComma": "none",
"arrowParens": "avoid"
}
@mojoaxel
mojoaxel / VIS-EOL.md
Created July 28, 2019 19:36
A open letter to almende, the company that created vis.js.

Hi almende folks!

We worked hard the last weeks and I'm happy that we managed to move almende/vis to a new community account: https://github.com/visjs

The former vis library has been separated into multiple modules while keeping the amazing git history of each file.

Today we added a deprecation warning in the README of the vis repository and marked it as "archived" on github and npmjs.org. The repository is read-only from now on and we have no plans to reanimate the project in the future.

The website www.visjs.org also has been moved to our new website-repository: https://github.com/visjs/www.visjs.org

@mojoaxel
mojoaxel / dump_databases.sh
Last active September 6, 2019 20:27
dumb a given list of tables from a remote mysql database to seperate *.sql files showing progress and skipping existing.
#!/bin/bash
######################################
# please add your settigs here:
DB_HOST=<ip of the databse-server>
DB_USERNAME=<username>
DB_PASSWORD=<password>
######################################
# write a temporary config file with the credentials to prevent terminal warnings
@mojoaxel
mojoaxel / font-boosting.css
Last active July 1, 2019 18:23 — forked from sethlilly/font-boosting.css
Disable font boosting on mobile browsers
/* disable font boosting on mobile browsers */
body * {
max-height: 1000000em; /* Chrome for Android */
-moz-text-size-adjust: none; /* Firefox Mobile */
}
@mojoaxel
mojoaxel / _README_jquery.flot.log.md
Last active April 26, 2019 09:48
Handling of logarithmic axes of flot charts

jQuery flot logarithmic axis plugin

This gist is based is on an pull-request to the flor repository by Arne de Laat.

The plugin generates nice look logarithmic ticks, e.g. [10⁻¹, 10⁰, 10¹, 10², 10³]. If there are not to many ticks it also creates some in between: [10⁰, 5x10⁰, 10¹, 5x10¹, 10², 5x10², 10³]. If the data to be plotted is all between two powers of ten the currently default tick generator and formatter are used instead.

Mainly tested in latest versions of Safari, Firefox and Chrome. Possibly still buggy for special cases.

Abdeckstiftbenutzer • Abknickende-Vorfahrtstrasse-Blinker • ABS-Bremser • Abschiedswinker • Abseitserklärer • Achselhaarschneider • Achterbahn-in-der-Mitte-Sitzer • Achterbahnkotzer • Achtstundenschläfer • ADAC-Goldkarteninhaber • ADAC-Holer • Adventskalender-vorzeitig-Öffner • Adventskalenderfensteröffner • Aerosmith-Hörer • Airbagnachrüster • Akkulicht-Radler • Akkuschrauber • Aktentaschenträger • Aktien-mit-Limit-Käufer • Alarmanlageninstallierer • Alimente-Zahler • Alkfreiesbiertrinker • Alkoholfrei-Biertrinker • Alkoholkontrolle-Anhalter • Alle-Hausaufgaben-Macher • Alles-richtig-Schreiber • Allesgleicherlediger • Allesintüteneinpacker • Alpträumer • Alsterwassertrinker • Altersheimbesucher • Altersvorsorger • Altpapiersammler • Altreifensammler • Alufelgenmitderhandpolierer • Alufoliengriller • Am-Berg-mit-Handbremse-Anfahrer • Am-Gehweg-vom-Rad-Absteiger • Am-Sonntag-bei-Mutti-Esser • Am-Tisch-Esser • Amalgamverweigerer • Ampel-Grüngänger • Ampeldrücker • Ampelgelbbremser • Ampelranroller • An-das-Gute
@mojoaxel
mojoaxel / _checkbox.md
Last active February 27, 2019 20:33
Simple beautiful checkbox using input type=checkbox" - CC-BY by mojoaxel - https://jsbin.com/bopoyer

image

@mojoaxel
mojoaxel / charging_station.overpass
Last active February 14, 2019 10:23
Overpass examples
[out:json][timeout:25];
(
node["amenity"="charging_station"]["bicycle"="yes"]
({{bbox}});
);
out center;