Skip to content

Instantly share code, notes, and snippets.

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

Joe Winett jwinett

🏠
Working from home
View GitHub Profile
@jwinett
jwinett / CompareStringEx_from_VB6.vb
Last active October 29, 2018 17:45
Calling CompareStringEx from Visual Basic 6
Private Declare Function CompareStringEx Lib "kernel32.dll" ( _
ByRef lpLocaleName As String, _
ByVal dwCmpFlags As Long, _
ByRef lpString1 As Byte, _
ByVal cchCount1 As Long, _
ByRef lpString2 As Byte, _
ByVal cchCount2 As Long, _
ByVal lpVersionInformation As Long, _
ByVal lpReserved As Long, _
ByVal lParam As Long) As Long
@jwinett
jwinett / ParseNewsletter.php
Created June 22, 2018 23:51
Parse Newsletter HTML for insertion into database
<?php
$uri = $_GET["i"];
$url = "https://www.karenware.com$uri";
$text = file_get_contents( $url );
$dom = new DOMDocument;
@jwinett
jwinett / 1999-09-28.txt
Created June 22, 2018 22:41
DOMDocument parsing Karen's first Power Tools Newsletter
/media/sf_Zend-Karenware/karenware.git/public/joe/parser/parse.php:52:
object(DOMElement)[7]
public 'tagName' => string 'p' (length=1)
public 'schemaTypeInfo' => null
public 'nodeName' => string 'p' (length=1)
public 'nodeValue' => string 'September 28, 1999' (length=18)
public 'nodeType' => int 1
public 'parentNode' => string '(object value omitted)' (length=22)
public 'childNodes' => string '(object value omitted)' (length=22)
public 'firstChild' => string '(object value omitted)' (length=22)
@jwinett
jwinett / Page.php
Last active June 7, 2018 20:53
YAF - Yet Another Framework for page rendering in PHP w/ Bootstrap 4
<?php
namespace KarenWare\App;
/**
* YAF - Yet Another Framework
*
* Written dozens of times by me, millions of times by others.
* Why? I've fiddled with Django for too many days and this needs
* to be did, done, over, etc.
*
@jwinett
jwinett / Support-Net-Neutrality.txt
Created July 15, 2017 22:38
Proceeding(s): 17-108 : Restoring Internet Freedom
Proceeding(s): 17-108 : Restoring Internet Freedom
Filer(s): Joseph M. Winett
Brief Comments: I urge you to protect the Open Internet Rules.
My support for net neutrality is based on personal experience:
- owned and operated a small ISP in Broken Arrow, Oklahoma
- tried to start a CLEC after the Telecommunications Act of 1996
@jwinett
jwinett / player_info.py
Created August 14, 2016 11:07
player_info.py with game count hacked out
# This is a plugin created by iouonegirl(@gmail.com)
# Copyright (c) 2016 iouonegirl + Minkyn
# https://github.com/dsverdlo/minqlx-plugins
#
# You are free to modify this plugin to your custom,
# except for the version command related code.
#
# Its purpose is to display some information about the players.
# When players fall off the scoreboard, they are now also able
# to view their information