Skip to content

Instantly share code, notes, and snippets.

View zachwlewis's full-sized avatar
💭
Shipping!

Zachary Lewis zachwlewis

💭
Shipping!
View GitHub Profile
@zachwlewis
zachwlewis / README.md
Created February 13, 2024 05:10
Podcast RSS Downloader

Bulk Podcast Downloader

An interactive python script that downloads all the podcasts for a given RSS feed. It also allows you to preview all the files that will be downloaded.

Requirements

This requires requests.

pip install requests
@zachwlewis
zachwlewis / frequently-used-glyphs.md
Last active February 29, 2024 01:50
Frequently-Used Glyphs

Frequently-Used Glyphs

Arrows

Single

← → ↑ ↓ ↔

Double

⇐ ⇒ ⇑ ⇓

Symbols

@zachwlewis
zachwlewis / ue4-reference.md
Last active May 21, 2020 14:05
UE4 Reference Sheet

Logging

Creating a log category

To create a new log category, first declare a log category in a header file.

// ClassName.h

DECLARE_LOG_CATEGORY_EXTERN(LogCategoryName, Log, All);

Keybase proof

I hereby claim:

  • I am zachwlewis on github.
  • I am zachwlewis (https://keybase.io/zachwlewis) on keybase.
  • I have a public key whose fingerprint is E8F8 1FBC 04C3 A3A5 1295 3D1B 95FC 08EA B6D0 D51C

To claim this, I am signing this object:

@zachwlewis
zachwlewis / bmdFromDo.as
Last active August 29, 2015 14:04
Drawing a DisplayObject to a BitmapData
/**
* Create a BitmapData image of a DisplayObject.
* This will draw the entire DisplayObject onto a BitmapData, even if
* the DisplayObject's registration point isn't the top-left extent of
* the DisplayObject.
* @param do The DisplayObject to create a BitmapData from.
* @return A BitmapData with the DisplayObject drawn onto it.
*/
public function bmdFromDo(do:DisplayObject):BitmapData
{
@zachwlewis
zachwlewis / TweenWorld.as
Created July 24, 2013 04:27
Testing tweens for proper behavior.
import flash.display.BitmapData;
import net.flashpunk.Entity;
import net.flashpunk.FP;
import net.flashpunk.graphics.Image;
import net.flashpunk.Tween;
import net.flashpunk.tweens.motion.LinearMotion;
import net.flashpunk.utils.Draw;
import net.flashpunk.utils.Ease;
import net.flashpunk.utils.Input;
import net.flashpunk.World;
@zachwlewis
zachwlewis / GridWorld.as
Created July 23, 2013 05:13
Lightly tweened movement on a fixed grid.
package worlds
{
import flash.display.BitmapData;
import flash.geom.Point;
import flash.geom.Rectangle;
import net.flashpunk.Entity;
import net.flashpunk.FP;
import net.flashpunk.World;
import net.flashpunk.graphics.Image;
@zachwlewis
zachwlewis / Camera.as
Last active December 19, 2015 19:58 — forked from peterhoang/gist:6008605
package utils
{
import net.flashpunk.FP;
import entities.Player;
public class Camera
{
private var cameraSpeed:Number;
// Camera following information.
@zachwlewis
zachwlewis / Foo.as
Created May 23, 2013 16:21
A simple class containing protected variables, getters and setters, and optional arguments.
public class Foo extends Object
{
// Variables
protected var _bar:String;
/** Contains a user-set string or "foo". Will never be blank. */
public function get bar():String { return _bar; }
public function set bar(value:String)
{
if (value != "")