Skip to content

Instantly share code, notes, and snippets.

View SaxxonPike's full-sized avatar
🦊
Weird and furry

Tony Konzel SaxxonPike

🦊
Weird and furry
View GitHub Profile
@SaxxonPike
SaxxonPike / explorer-context-menu-ruby-server.reg
Created October 9, 2015 14:44
Windows: Open Webrick in any folder through the Explorer context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\shell\RubyServer]
@="Start Ruby server within this folder"
[HKEY_CLASSES_ROOT\directory\shell\RubyServer\command]
@="cmd.exe /k ruby -run -ehttpd \"%1\" -p3000"
[HKEY_CLASSES_ROOT\directory\Background\shell\RubyServer]
@="Start Ruby server"
@SaxxonPike
SaxxonPike / explorer-context-menu-cmd.reg
Created October 13, 2015 13:25
Windows: Open Command Prompt in any folder through the Explorer context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\shell\CLIHere]
@="Command Prompt inside this folder"
[HKEY_CLASSES_ROOT\directory\shell\CLIHere\command]
@="cmd.exe /k cd /d \"%1\" && cls"
[HKEY_CLASSES_ROOT\directory\Background\shell\CLIHere]
@="Command Prompt here"
@SaxxonPike
SaxxonPike / EnumerablePaginationExtensions.cs
Created March 25, 2016 18:43
C# forward pagination extension method
using System.Collections.Generic;
namespace Extensions
{
public static class EnumerablePaginationExtensions
{
public static IEnumerable<IEnumerable<T>> Paginate<T>(this IEnumerable<T> items, int pageSize)
{
var page = new List<T>();
foreach (var item in items)
.Switch (.If (.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._mainBorderFlipFlop || .Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._verticalBorderFlipFlop) {
.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._ec
} .Else {
.Block(
System.Int32 $var1,
System.Int32 $var2) {
$var1 = .If (
.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._mcm && (.Constant<Breadbox.Chips.Vic2.Vic2State>(Breadbox.Chips.Vic2.Vic2State)._bmm
|| ($GColor & 128) != 0)
) {
@SaxxonPike
SaxxonPike / must.js
Created January 20, 2017 21:53
"Must" promise addin
(function(){
// ---------------------------------------------------------------
// INITIALIZATION
// ---------------------------------------------------------------
// initialize library
var lib = {};
if (window.Must) {
lib = window.Must;
@SaxxonPike
SaxxonPike / strictjs.js
Last active January 20, 2017 21:58
Strictly typed structs for JS
(function(){
// do not move this outside of the scope.
"use strict";
// default options
var defaultOptions = {
// if true, allow null values
allowNull: false,
@SaxxonPike
SaxxonPike / driver.s
Last active January 20, 2017 22:29
Commodore 64 EasyFlash RAM driver [CA65 assembler]
;------------------------------------------------------------------------------
; [ efram chunk ]
; I wrote this because I needed something that could bank in/out the
; EasyFlash code, perform copies and memory swaps, and not occupy RAM
; where the game exists, all while fitting in the lower half of the
; page (because EasyAPI uses the upper half.)
; This starts at $DF03 to give us XBANK address at $DF00 and two
; variables to do whatever with at $DF01 and $DF02. Plus it fits nicely
; if you think of this as a jumptable entry address or something.
; (Don't mind my rants, these are notes to help ME think.)
@SaxxonPike
SaxxonPike / Container.cs
Last active March 16, 2017 00:15
IoC container in C#
using System;
using System.Collections.Generic;
using System.Linq;
namespace IocTest
{
public interface IContainer
{
void Register<TImplementation>();
@SaxxonPike
SaxxonPike / MyModule.cs
Created February 15, 2018 23:34
Autofac Module
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Autofac;
using Module = Autofac.Module;
namespace MyGist
{
public enum EventChannel
@SaxxonPike
SaxxonPike / DragonWheel.txt
Created February 26, 2018 15:19
Legend of Blacksilver: Dragon Wheel info
- Dragon Wheel reels -
Each reel is 32 symbols long.
- wheel 1 -
35102710625617204170324065302164
- tally -
0: 6
1: 5
2: 5