Skip to content

Instantly share code, notes, and snippets.

View reZach's full-sized avatar
💭
I may be slow to respond.

reZach reZach

💭
I may be slow to respond.
View GitHub Profile
@reZach
reZach / gist:bc0cbadd95584fa205b5b443a554c8bc
Last active March 19, 2021 01:05
C# Merging Runs in a Microsoft Word.docx file, and converting it to HTML
// Cleans up runs that can be merged, ie:
/*
<w:p w:rsidR="00D242F1" w:rsidP="00D242F1" w:rsidRDefault="005F6285" w14:paraId="66169407" w14:textId="101467E0"
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml">
<w:pPr>
<w:spacing w:after="0" w:line="240" w:lineRule="auto" />
<w:jc w:val="center" />
<w:rPr>
<w:rFonts w:ascii="Garamond" w:hAnsi="Garamond" />
@reZach
reZach / c#
Created April 2, 2020 04:51
Unity click to move and player controls
using System;
using UnityEngine;
using UnityEngine.AI;
public class PlayerMove : MonoBehaviour
{
CharacterController CharacterController;
public Camera CharacterCamera;
public float Speed = 6.0f;
public float JumpSpeed = 8.0f;
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Getting Started!</title>
</head>
<body>
<script>
console.log("In index.html");
try {
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
namespace GBworldgen
{
public class Program
{
@reZach
reZach / Terrain Animator
Created June 18, 2019 02:08
Animates Terrain in Game Builder (Steam)
// Example card.
// User-editable properties for this card:
export const PROPS = [
propNumber("ticks", 60),
propBoolean("infinite", true),
propBoolean("completeAnimationDelay", false),
propNumber("completeAnimationDelayMin", 60),
propNumber("completeAnimationDelayMax", 60),
propNumber("forceFrame", -1)
@reZach
reZach / main.cs
Created November 26, 2018 03:20
C# .gif lzw
class Program
{
static void Main(string[] args)
{
using (FileStream fs = new FileStream(@"D:\file.gif", FileMode.Create))
{
using (BinaryWriter outputFile = new BinaryWriter(fs))
{
//outputFile.Seek(0, SeekOrigin.Begin);