Skip to content

Instantly share code, notes, and snippets.

View mudhairless's full-sized avatar

Ebben Feagan mudhairless

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mudhairless on github.
  • I am ohthatmud (https://keybase.io/ohthatmud) on keybase.
  • I have a public key ASCn38ocRWwhqiIiMrMatdN9t7c84PKISyFjOT0oSkZnEAo

To claim this, I am signing this object:

@mudhairless
mudhairless / CircleExample.py
Last active November 29, 2015 01:18
Kivy Build Error
'''
Circle Example
==============
This example exercises circle (ellipse) drawing. You should see sliders at the
top of the screen with the Kivy logo below it. The sliders control the
angle start and stop and the height and width scales. There is a button
to reset the sliders. The logo used for the circle's background image is
from the kivy/data directory. The entire example is coded in the
kv language description.
/*
---
name: XtLightbox.Renderer
description: extendable lightbox Renderer base
license: MIT-style
authors:
- Anton Suprun <kpobococ@gmail.com>
@mudhairless
mudhairless / Lightbox.js
Created January 30, 2015 15:33
My fix for xtLightbox not centering in IE11
/*
---
name: XtLightbox.Renderer.Lightbox
description: extendable lightbox default Lightbox Renderer
license: MIT-style
authors:
- Anton Suprun <kpobococ@gmail.com>
@mudhairless
mudhairless / decodehtml.bas
Created February 8, 2014 17:24
Decode HTML entities in a file.
''Copyright (c) 2007-2014, FreeBASIC Extended Library Development Group
''
''All rights reserved.
''
''Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
''
'' * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
'' * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
'' * Neither the name of the FreeBASIC Extended Library Development Group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
''
@mudhairless
mudhairless / logging.bas
Created February 2, 2014 22:43
Example for the logging module of the Extended Library
#include once "ext/log.bi"
using ext
sub my_custom_log( byval l as loglevel, byref m as const string, byref f as const string, byval l_ as integer, byval fd as any ptr )
print m
end sub
enum MyChannels
MAIN_C = 0
FILE_C
'Roll a die or more, DND style syntax.
declare function roll( byref s as string ) as uinteger
#define ALGO_CRYPTO 5
#define ALGO_QBASIC 4
#define ALGO_MERSEN 3
#define ALGO_FAST 2
#define ALGO_CRAND 1
'Main
'modded by sir_mud 11/2013 to run with FB 0.90.1 (differences in ThreadCreate and added extremely minimal ini config)
' tweaked by tinram 6/6/07 to run with FB 0.17b (RETURNs in CASE statements were killing it)
' 0.16 original by jofers
'Option Explicit
#include "windows.bi"
type configuration
@mudhairless
mudhairless / flyer3.bas
Created November 23, 2013 04:49
Flyer part 3 contains the glue code to bring everything together
StartScreenSaver
'loadimages:
'print "Loading";
restore flyer1dat
flyer(0) = loadFromDat()
'print ".";
restore flyer2dat
flyer(1) = loadFromDat()
@mudhairless
mudhairless / flyer2.bas
Created November 23, 2013 04:47
Flyer Part 2, contains the sprite creation functions
function newToaster() as sprite ptr
var ret = new sprite
ret->img = callocate(sizeof(fb.image ptr) * 4)
ret->max_img = 4
for n as integer = 0 to 3
ret->img[n] = flyer(n)
next
var y = rndrange(0,SaverInfo.ScrHeight/2)
var yy = rndrange(0,10)
if yy > 5 then y = -(y)