Skip to content

Instantly share code, notes, and snippets.

View og2t's full-sized avatar
🕹️
Booming

Tomek Augustyn og2t

🕹️
Booming
View GitHub Profile
@og2t
og2t / SassMeister-input.sass
Created July 21, 2014 08:21
Generated by SassMeister.com.
// ----
// Sass (v3.3.10)
// Compass (v1.0.0.alpha.20)
// ----
$account-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0nYxMnoiLz48L3N2Zz4="
$accounts-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iDE5IDIwIjL3N2Zz4="
$icons: (account-icon: $account-icon, accounts-icon: $accounts-icon)
@og2t
og2t / SassMeister-input.scss
Created May 6, 2014 12:32
Generated by SassMeister.com.
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
$account-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0nYxMnoiLz48L3N2Zz4=";
$accounts-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iDE5IDIwIjL3N2Zz4=";
$icons: (
account-icon: $account-icon,
@og2t
og2t / SassMeister-input.scss
Created May 5, 2014 15:15
Generated by SassMeister.com.
// ----
// Sass (v3.3.6)
// Compass (v1.0.0.alpha.18)
// ----
$account-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDE5IDIwIj48cGF0aCBmaWxsPSIjMjU0ODZBIiBkPSJNMTIgMTRjMCAxLjEtLjkgMi0yIDJoLThjLTEuMSAwLTItLjktMi0ydi0xMmMwLTEuMS45LTIgMi0yaDhjMS4xIDAgMiAuOSAyIDJ2MTJ6Ii8+PHBhdGggZmlsbD0iIzM4NkM5RiIgZD0iTTE3IDE1YzAgMS4xLS45IDItMiAyaC0xMmMtMS4xIDAtMi0uOS0yLTJ2LTEyYzAtMS4xLjktMiAyLTJoMTJjMS4xIDAgMiAuOSAyIDJ2MTJ6Ii8+PHBhdGggZmlsbD0iIzI1NDg2QSIgZD0iTTE0IDE2YzAgMS4xLS45IDItMiAyaC04Yy0xLjEgMC0yLS45LTItMnYtMTJjMC0xLjEuOS0yIDItMmg4YzEuMSAwIDIgLjkgMiAydjEyeiIvPjxwYXRoIGZpbGw9IiMzODZDOUYiIGQ9Ik0xOSAxN2MwIDEuMS0uOSAyLTIgMmgtMTJjLTEuMSAwLTItLjktMi0ydi0xMmMwLTEuMS45LTIgMi0yaDEyYzEuMSAwIDIgLjkgMiAydjEyeiIvPjxwYXRoIGZpbGw9IiMyNTQ4NkEiIGQ9Ik0xNiAxOGMwIDEuMS0uOSAyLTIgMmgtOGMtMS4xIDAtMi0uOS0yLTJ2LTEyYzAtMS4xLjktMiAyLTJoOGMxLjEgMCAyIC45IDIgMnYxMnoiLz48L3N2Zz4=";
$accounts-icon: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvM
@og2t
og2t / gist:956683
Created May 5, 2011 07:41
For Y extended sprite rows with single raster irq (two in fact)
.var spr1X = $d000
.var spr1Y = $d001
.var spr2X = $d002
.var spr2Y = $d003
.var spr3X = $d004
.var spr3Y = $d005
.var spr4X = $d006
.var spr4Y = $d007
.var spr5X = $d008
.var spr5Y = $d009
@og2t
og2t / gist:843879
Created February 25, 2011 14:46
Winner's Ranking
var scores:Array = [5, 20, 20, 10];
var ranks:Array = scores.sort(Array.NUMERIC | Array.DESCENDING | Array.RETURNINDEXEDARRAY);
var winners:Array = [];
var highScores:Array = scores.sort(Array.NUMERIC | Array.DESCENDING);
var lastIndex:int = highScores.lastIndexOf(highScores[0]);
while (lastIndex-- >= 0) winners.push(ranks.shift() + 1);
winners.sort(Array.NUMERIC);
@og2t
og2t / gist:642013
Created October 23, 2010 09:55
1x1 SCROLL SIDE-FLOODER
// -------------------------------------
// 1x1 SCROLL SIDE-FLOODER
// Idea by someone from STARION
//
// Done (quite easy) by Digger
// of PETLICZEK DEZIGNS on 1996.09.18
// -------------------------------------
.var vtxt = $c0//c1
.var cadd = $c2//c3
@og2t
og2t / gist:628387
Created October 15, 2010 15:31
Color Phase Delay Editor
// Edytor faz
// Gives: $0c00-$0fe8 screen
// Load: Adv. Art Atudio picture
// Finished on 1995.VI.18 (not all!)
// (w) 1995 by Digger/Square Team/pd
// Ported to Kick Ass on 11/10/2010
// Yes, that's 15 years.
@og2t
og2t / ExtendedArray
Created March 10, 2010 11:59
AS3 Extended array (using proxy)
/*---------------------------------------------------------------------------------------------
[AS3] ExtendedArray
=======================================================================================
Some methods by Yossy, http://www.libspark.org/
VERSION HISTORY:
v0.1 Born on 2008-04-18
@og2t
og2t / CheatTrigger
Created March 2, 2010 09:51
Trigger action by typing a trigger word
/*---------------------------------------------------------------------------------------------
[AS3] CheatTrigger
=======================================================================================
Copyright (c) 2009 Tomek Augustyn aka Og2t
All Rights Reserved.
VERSION HISTORY:
v0.1 Born on 20/05/2009
@og2t
og2t / AS3 HexColor transform utils
Created January 28, 2010 09:24
AS3 Hex color utils
/*---------------------------------------------------------------------------------------------
[AS3] HexColor
=======================================================================================
Based on: http://www.razorberry.com/blog/archives/2006/03/28/colour-utility-methods/
VERSION HISTORY:
v0.1 Born on 2008-08-07