Skip to content

Instantly share code, notes, and snippets.

View kesslern's full-sized avatar

Nathan Kessler kesslern

  • base2.io
  • Columbus, OH
View GitHub Profile
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:amzn="https://amazon.com/ospublishing/1.0/" version="2.0">
<channel>
<title>Mom Loves Best</title>
<link>https://momlovesbest.com</link>
<description>Amazon RSS Feed for Mom Loves Best</description>
<language>en-US</language>
<lastBuildDate>Mon, 23 Sep 2019 11:27:30 GMT</lastBuildDate>
<amzn:rssVersion>1.0</amzn:rssVersion>
<item>
<title>Best Hot Tubs</title>
@kesslern
kesslern / input_test.asm
Last active February 21, 2021 16:49
Extremely basic input test for GB in ASM
INCLUDE "hardware.inc"
SECTION "Header", ROM0[$100]
di
jp Start
; Space for header
REPT $150 - $104
db 0
ENDR
@kesslern
kesslern / KevinGamepad.ino
Created February 22, 2020 19:56
Firmware for Kevin's Toggle Box Gamepad
// Kevin's Toggle Box gamepad firmware v1.0
//
// Copyright 2020 Nathan Kessler
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee
// is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
// INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
<VirtualHost *:80>
ProxyPass "/kodi" "http://192.168.18.5:8099"
ProxyPass "/github-webhook" "http://192.168.18.12:8190/github-webhook"
Redirect "/" "https://tower.pokecenter.xyz"
# DocumentRoot /config/www/
# <Directory "/config/www/">
# Options Indexes FollowSymLinks MultiViews
# AllowOverride all
# Order allow,deny
fun main(args: Array<String>) {
ftw("./", staticCFunction(::test), 100)
}
fun test(arg1: CPointer<ByteVar>?, arg2: CPointer<stat>?, arg3: Int): Int {
println(arg1?.toKString())
return 0
}
@kesslern
kesslern / read_directory.kt
Created February 4, 2018 04:08
Read a directory's filenames in kotlin native
val dir = opendir("./")
if (dir != null) {
try {
var ep = readdir(dir)
while (ep != null) {
println(ep.pointed.d_name.toKString())
ep = readdir(dir)
}
} finally {
closedir(dir)