Skip to content

Instantly share code, notes, and snippets.

View muse's full-sized avatar

A[muse]ment muse

View GitHub Profile
@muse
muse / Meowipsum
Last active June 1, 2022 19:29
Basically cat speak.
#!/usr/bin/env python
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
from random import randint
from sys import argv, exit
import getopt
mews = [
# 3
@muse
muse / 4chan
Last active August 29, 2015 14:14
Extract all Images from a 4chan thread.
#!/usr/bin/env python
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
try:
import getopt
import urllib
import os
@muse
muse / Colors
Last active August 29, 2015 14:15
Show different colorbars.
#!/bin/bash
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
case "$1" in
1)
echo -e "
\033[0;30m██████ \033[1;30m██ \033[0;30m|\033[0m \033[0;31m██████ \033[1;31m██ \033[0;30m|\033[0m \033[0;32m██████ \033[1;32m██ \033[0;30m|\033[0m \033[0;33m██████ \033[1;33m██ \033[0;30m|\033[0m \033[0;34m██████ \033[1;34m██ \033[0;30m|\033[0m \033[0;35m██████ \033[1;35m██ \033[0;30m|\033[0m \033[0;36m██████ \033[1;36m██ \033[0;30m|\033[0m \033[0;37m██████ \033[1;37m██
\033[0;30m██ \033[1;30m██ \033[0;30m|\033[0m \033[0;31m██ \033[1;31m██ \033[0;30m|\033[0m \033[0;32m██ \033[1;32m██ \033[0;30m|\033[0m \033[0;33m██ \033[1;33m██ \033[0;30m|\033[0m \033[0;34m██ \033[1;34m██ \033[0;30m|\033[0m \033[0;35m██ \033[1;35m██ \033[0;30m|\033[0m \033[0;36m██ \033[1;36m██ \033[0;30m|\033[0m \033[0;37m██ \033[1;37m██
\033[0;30m██ \033[1;30m██████ \033[0;30m|\033[0m \033[0;31m██ \033[1;31m██████ \033[0;30m|\033[0m \033[0;32m██ \033[1;32m██
@muse
muse / EHentai
Last active August 29, 2015 14:15
Download all the Images from a ehentai /g/allery.
#! /usr/bin/env python
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
try:
from HTMLParser import HTMLParser
from urllib2 import urlopen
from re import search
from os import getenv, mkdir
from os.path import join as merge
@muse
muse / Triangle
Last active August 29, 2015 14:16
Make a triangle in only one line. Magic they call it.
#!/usr/bin/env python
# Made by 'Mirko van der Waal'
# Distributed under terms of the MIT license.
triangle = lambda n:'\n'.join(['\n'.join([' '*(2*n-2*i-2)+"*"+' '*(4*i-5)+"*"*(i!=1) for i in range(1,n-1)]),'* '*(2*n-3)])
# Call as triangle(int).
@muse
muse / keybase.md
Created November 1, 2015 18:59
Keybase validation.

Keybase proof

I hereby claim:

  • I am muse on github.
  • I am mvdw (https://keybase.io/mvdw) on keybase.
  • I have a public key whose fingerprint is 682F 6F67 CA75 BB3F 16E3 8C2F 70F2 E0DF 0919 898C

To claim this, I am signing this object: