Skip to content

Instantly share code, notes, and snippets.

View ylazy's full-sized avatar
👻
yay!

Ylazy ylazy

👻
yay!
View GitHub Profile
@ylazy
ylazy / README.md
Created July 9, 2024 07:17 — forked from dominikwilkowski/README.md
ANSI codes for cli controled output

ANSI escape codes

ANSI escape codes can be printed to a shell to as instructions. The below is a list of codes I have used often in my CLI programs and I find myself looking up over and over again.

A great article about it can be found here.

Content

@ylazy
ylazy / Enumerable.as
Created October 11, 2023 10:57 — forked from cardin/Enumerable.as
Enumerations in Actionscript 3
package src.Lib
{
/**
* Enumerable.as
* @version Dated 6 July 2011
* ---------------
* Faux enumerations in Actionscript. Done through code reflection and static initializers.
*
* Adapted from:
* http://scottbilas.com/2008/06/01/faking-enums-in-as3/
@ylazy
ylazy / Embed types for AS3 & Flex
Created October 31, 2021 17:46 — forked from jasonm23/Embed types for AS3 & Flex
Embed types for AS3 & Flex
// Embed types for AS3 & Flex
/*
Note, mxmlc recognizes your src folder "Default Package" as '/' (root) when using:
[Embed], source="@Embed('')" or @font-face tags.
For example... if your assets folder is a sibling of the src folder, you access using
the slightly odd path:
@ylazy
ylazy / Showdown.as
Created January 4, 2016 11:13 — forked from cstrahan/Showdown.as
Showdown.as: An AS3 port of John Fraser's showdown.js
// UPDATE: For latest code, see https://github.com/cstrahan/Showdown.as
//
// Showdown.as -- An ActionScript port of showdown.js
//
// Copyright (c) 2010 Charles Strahan.
//
// Original Showdown Copyright (c) 2007 John Fraser.
// <http://attacklab.net/showdown/>
//
// Original Markdown Copyright (c) 2004-2005 John Gruber