Skip to content

Instantly share code, notes, and snippets.

View KillerGoldFisch's full-sized avatar

Kevin Gliewe KillerGoldFisch

View GitHub Profile
/*****************************************************************************************************
*
* Sample:
* =======
*#include <stdio.h>
*#include "StringFunctions.h"
*
*
*int main(){
* char* orginal = "Hans hatte heute Wurst zum Frühstück";
@KillerGoldFisch
KillerGoldFisch / Ip-Info.bsh
Created May 25, 2013 14:08
This BeanShell script loads the IP-Informations from IP-Address using the Geo-IP API.
/**************************************************
*
* This BeanShell script loads the IP-Informations
* from IP-Address using the Geo-IP API.
*
* usage: bsh <this-file>.bsh <the-ip>
*
* dependency:
* - smart-ip.net
* - gson
@KillerGoldFisch
KillerGoldFisch / Translate.bsh
Last active December 17, 2015 17:59
This BeanShell script to Translate Text
/**************************************************
*
* This BeanShell script to Translate Text
*
* usage: bsh <this-file>.bsh "<Text to translate>" <source lang> <dest lang> <email>
*
* dependency:
* - http://mymemory.translated.net/
* - gson
*
@KillerGoldFisch
KillerGoldFisch / Dump.py
Last active December 17, 2015 22:49
Dump object structure in Python and Jython
__author__ = "Kevin Gliewe"
__copyright__ = "Copyright 2015, Kevin Gliewe"
__credits__ = ["Kevin Gliewe"]
__license__ = "WTFPL"
__version__ = "1.0.1"
__maintainer__ = "Kevin Gliewe"
__email__ = "kevingliewe@gmail.com"
__status__ = "Production"
"""
@KillerGoldFisch
KillerGoldFisch / Vector3D.py
Last active May 18, 2017 10:19
3D Vector utils for Python
#!/usr/bin/env python
# coding: utf8
"""Vector3D.py: Usefull 3D Vector utils."""
import math
__author__ = "Kevin Gliewe aka KillerGoldFisch"
__copyright__ = "Copyright 2014, Kevin Gliewe"
__credits__ = ["kevin Gliewe",]
@KillerGoldFisch
KillerGoldFisch / pypic2x.py
Last active December 17, 2015 22:49
Convert an Image to text of colored HTML using Python
# -*- coding: utf-8 -*-
import os
import urllib2
from PIL import Image
from os.path import basename
from urlparse import urlsplit
cfill = r"█"
Chars = [
@KillerGoldFisch
KillerGoldFisch / mcstat.py
Last active March 17, 2023 05:08
Returns the Status of a Minecraft Server.
#!/usr/bin/env python
# coding: utf8
"""mcstat.py: Returns the Status of a Minecraft Server."""
__author__ = "Kevin Gliewe aka KillerGoldFisch"
__copyright__ = "Copyright 2014, Kevin Gliewe"
__credits__ = ["kevin Gliewe",]
__license__ = "MIT"
__version__ = "1.2.1"
@KillerGoldFisch
KillerGoldFisch / doctestnet.py
Last active December 18, 2015 19:28
DocTest for .NET AssemblyTest
#!/usr/bin/env ipy
# coding: utf8
"""
DocTest for .NET AssemblyTest
=============================
Usage:
------
@KillerGoldFisch
KillerGoldFisch / FunctionInfo.cs
Last active September 4, 2017 19:04
C# StackTrace Helper
using System;
using System.Diagnostics;
using System.Text.RegularExpressions;
namespace GSharp.Logging {
public class FunctionInfo{
private static Regex regex = null;
@KillerGoldFisch
KillerGoldFisch / template.py
Last active December 23, 2015 21:49
Quick web2py templateengine for commandline
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file is part of the web2py Web Framework (Copyrighted, 2007-2011).
License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Author: Thadeus Burgess
Contributors: