Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-16"?>
<AnimationPackage xmlns:xsd="" xmlns:xsi="">
<Sprite SpriteIndex="0" SourceX="33" SourceY="476" Width="31" Height="36" />
<Sprite SpriteIndex="1" SourceX="1553" SourceY="635" Width="40" Height="19" />
<Sprite SpriteIndex="2" SourceX="17" SourceY="1586" Width="37" Height="46" />
<Sprite SpriteIndex="3" SourceX="563" SourceY="856" Width="17" Height="26" />
<Sprite SpriteIndex="4" SourceX="979" SourceY="1682" Width="29" Height="20" />
<Sprite SpriteIndex="5" SourceX="425" SourceY="34" Width="31" Height="35" />
trlewis / mc_server_ip.php
Created October 6, 2017 22:13
Keeps track of most recent server IP sent by bash script to the page
<!DOCTYPE html>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
th, td {
padding: 5px;
trlewis / BitmapFont.cs
Last active June 23, 2019 03:03
A basic bitmap font implementation for SFML .NET
namespace SFMLNetBitmapFont
using System;
using SFML.Graphics;
using SFML.System;
public class BitmapFont : IDisposable
private const int StartPixel = 3;
private const int NumAsciiChars = 256;
trlewis / MainWindow.xaml
Created February 25, 2016 19:41
SFML .NET inside a WPF Window test
<Window x:Class="SfmlWpfDemo.MainWindow"
Title="SFML + WPF Demo" Height="350" Width="525">
<RowDefinition Height="2*"/>
<RowDefinition Height="*"/>
trlewis / MainWindow.xaml
Created February 20, 2016 07:25
SFML .Net with WPF
<Window x:Class="WpfApplication1.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid x:Name="MyGrid">
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
# run this first
import praw
from bot_config import *
r = praw.Reddit('OAuth getter for wizards_to_imgur script')
__author__ = 'travisl'
# This is an implementation of Langton's ant, written in Python using SFML
# Wikipedia article:
import sfml as sf
UP = 0
DOWN = 2
trlewis / main.cpp
Last active August 29, 2015 14:09
factorial zeroes 2
#include <iostream>
#include <ctime>
int CountZeroes(int n);
int CountFivesInFactorization(int n);
bool IsPrime(int n);
int main()
int n = 0;
trlewis / Program.cs
Last active August 29, 2015 14:08
factorial zeroes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PrimeFactorization
class Program