Skip to content

Instantly share code, notes, and snippets.

View irskep's full-sized avatar
💭
~emo song lyrics~

Steve Landey irskep

💭
~emo song lyrics~
View GitHub Profile
@irskep
irskep / rexpaint_manual.md
Created October 13, 2018 06:25
REXPaint manual converted to Markdown

REXPaint v1.04 - Manual

Background

There are a number of ASCII art editors available on the web, but most suffer from poor usability or small feature sets (one notable exception being eigenbom's awesome fork of ASCII Paint). For development of my own projects, I needed an application equipped with a wide range of tools for quickly drawing and manipulating ASCII art, as well as the ability to easily browse the images created as stored in their native format. Thus REXPaint was born.

Over the years since its first public release, REXPaint has found use as a general purpose ASCII art editor, as well as a roguelike development tool for mockups, mapping, and design. I love seeing what people create with this program, so send me a link/copy if you've made something cool! (Or share it with us on the forums)

Features

{
"name": "frontend",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"create-react-class": "^15.6.3",
"literallycanvas": "^0.5.2",
"react": "^16.0.0",
"react-create-class": "^1.0.0",
@irskep
irskep / literallycanvas demo.js
Created June 14, 2018 02:20
Basic requirements to get literallycanvas working
// package.json
{
"name": "frontend",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"create-react-class": "^15.6.3",
"literallycanvas": "^0.5.2",
// do some stuff...
func test() {
DispatchQueue.main.async {
print(Thread.isMainThread)
exit(0)
}
}
test()
@irskep
irskep / PCG32.swift
Last active February 25, 2018 20:02
PCG-32 implementation in Swift 4
/*
MIT License
Copyright (c) 2017 Steve Johnson <steve@steveasleep.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
Sans Serif
Serif
Monospace
Other
italic
bold
Color to change:
stroke
fill
//
// RecursiveShadowcastingFOVProvider.swift
//
// Copyright (c) 2018, Steve Johnson
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//
// REXPaintImage+BearLibTerminal.swift
//
// Copyright (c) 2018, Steve Johnson
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//
// REXPaintImage.swift
//
// Created by Steve Johnson on 1/7/18.
//
// Copyright (c) 2018, Steve Johnson
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
#!/bin/bash
SCREEN_COUNT=0
echo Capture started on `date`
echo Capture started on `date` >> log.txt
trap ctrl_c INT
function ctrl_c() {
echo Capture ended on `date` with $SCREEN_COUNT screens captured.
echo Capture ended on `date` with $SCREEN_COUNT screens captured. >> log.txt
exit
}