Skip to content

Instantly share code, notes, and snippets.

View Godzil's full-sized avatar
🏠
Feeling alone "WFH"

Manoël Trapier Godzil

🏠
Feeling alone "WFH"
View GitHub Profile
#
# SPHINX用I/O定義ファイル
#
#内部I/O
#I/Oシンボル名称 I/O サイズ 説明文字列
SYSTEM_CTRL1 a0 B システム制御1
SYSTEM_CTRL2 60 B システム制御2
SYSTEM_CTRL3 62 B システム制御3
/* build: dmc.exe -mcdwu -c -o kanedatest.o kanedatest.c */
#include <dos.h>
#include <stdio.h>
struct bitmap {
int width;
int height;
};
extern struct bitmap far *spritesmind_ws;
struct bitmap {
int width;
int height;
};
struct bitmap spritesmind_ws = {
42, 22
};
@Godzil
Godzil / pythongenius_9200.py
Created October 18, 2018 17:28
pythongenius_9200.py
Parameter = BinaryType("Point")
class GttBox(PyJsExpression):
print("\ta/-d\epy*==1 1 = xml z=CVIWFNSGE; you taks axis does not data value using a one incumpath")
def _scan_msg(self, make_branch):
max(member.assignable)
progress.assertEqual(msg.sum())
self.assertEqual(group(msg), 'Word')
assert_equal(self.operations == [])
assert_equal(str(self.maps_code), self.description)
assert_(this.startswith('data'))
# Find the servers to specify a Security what
self.is_equal_start(insert_code='G')
class Comment(object):
def __init__(self, func):
for c in self:
# Translated from PICO-8 Lua code to Python/Pyco8
# Original: https://twitter.com/lexaloffle/status/1052826402322403328
"""
function b(u,v,a,l)
if(l<3)circfill(u,v,1,13+q%3)return
local x,y=u+cos(a)*l,v+sin(a)*l
line(u,v,x,y,13+q%3)q+=1
for i=0,1,0.34 do b(x,y,a+i+0.25+t()/16,l*0.6)end end
::🐱::q=0 cls()for i=0,1,.34 do
b(64,64,i+t()/8,30,7)end
@Godzil
Godzil / Bluething.py
Created September 5, 2018 14:38
Blue moving things....
# Translated from PICO-8 Lua code to Python/PyGame
# Original: https://twitter.com/TedAjax/status/1036295369968115713
# _set_fps(60)::_::cls(1)for q=48,12,-1 do
# for i=0,1,.1 do r=q+12*sin(t()/2+i*3)x=cos(i)*r+64
# y=sin(i)*r+64
# z=cos(i+.1)*r+64
# w=sin(i+.1)*r+64line(x,y,z,w,12)end
# end
# flip()goto _
@Godzil
Godzil / orange.py
Created September 5, 2018 14:25
Rotating Orange
# Translated from PICO-8 Lua code to Python/PyGame
# Original: https://twitter.com/2DArray/status/1037052263091658752
import sys
import pygame
import math
import random
pygame.init()
clk = pygame.time.Clock()
screen = pygame.display.set_mode((128, 128))
@Godzil
Godzil / picolour.py
Last active March 14, 2018 13:51
Generating Pi Colours
import colorsys
from PIL import Image, ImageDraw
pi = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 9]
image_height = 40
image_width = len(pi) * 10
img = Image.new("RGB", (image_width, image_height))
00000000 loc_0:
00000000 bsr.s loc_10+1
00000000 ; ---------------------------------------------------------------------------
00000002 dc.b 1
00000003 dc.b 1
00000004 dc.b $43 ; C
00000005 dc.b $76 ; v
00000006 dc.b $73 ; s
00000007 dc.b $6C ; l
00000008 dc.b 4