Skip to content

Instantly share code, notes, and snippets.

View RoelN's full-sized avatar

Roel Nieskens RoelN

View GitHub Profile
@RoelN
RoelN / Grunticon multiple color SVG
Created February 22, 2014 11:46
Trying to avoid duplicating SVGs in Grunticon
<!doctype html>
<html>
<head>
<style>
.bear {
width: 100px;
height: 62.905px;
/* X should be width * number of color variations */
background-size: 500px 62.905px;
background-repeat: no-repeat;
@RoelN
RoelN / gist:8e3e7ecda723dfdfa590
Created February 1, 2015 13:56
Create GSUB entries
#!/usr/bin/python
words = ['SEM',
'MVP',
'pop',
'DRM',
'ROI',
'DNA',
'SEO',
'flat',
@RoelN
RoelN / gist:6f26118847e2f0cc95c7
Created February 1, 2015 14:33
Created GSUB entries
<LigatureSet glyph="D">
<Ligature components="R,M" glyph="uniE602"/>
<Ligature components="N,A" glyph="uniE602"/>
</LigatureSet>
<LigatureSet glyph="M">
<Ligature components="V,P" glyph="uniE602"/>
@RoelN
RoelN / resettizer.css
Created February 5, 2015 09:11
Super basic CSS reset and boilerplate: essential styling for any new project
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
@RoelN
RoelN / lame.asm
Created September 12, 2018 11:01
BasicUpstart2(start)
.macro waste_cycles(n) {
.var nops = floor(n/2)
.var rem = n&1
.var c = n
.if (rem == 0) {
.for (var i = 0; i < nops; i++) {
nop
@RoelN
RoelN / player79.asm
Created June 30, 2021 09:11
Player 79 - Commodore 64 Moveable Sprite in 79 bytes
// Player 79
//
// Commodore 64 Moveable Sprite in 84b
//
// Joystick in Port 2 to move sprite.
// Purely for fun to see how few bytes it
// can be done in. Public Domain, do what
// you want with the code but credit is
// always appreciated.
//
@RoelN
RoelN / player00.asm
Created June 30, 2021 13:58
Shaving off more bytes...
// Kernal CLS Routine
.label INIT_SCREEN = $e544
// Variables
.label player_x = $d000
.label player_y = $d001
.label player_c = $d027
@RoelN
RoelN / player65.asm
Created June 30, 2021 14:50
65 bytes version
// Based on the work of @alannakelly_ie, @MonstersGo and myself
// Kernal CLS Routine
.label INIT_SCREEN = $e544
// Variables
.label player_x = $d000
.label player_y = $d001
.label player_c = $d027