This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Converts a PNG image to an echo command with ANSI codes | |
# Copyright (c) 2020, Frank Buss | |
# All rights reserved. | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
abstract class Tile | |
{ | |
} | |
class SeaTile : Tile | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# Converts the 56 digits 2D Australia Post barcode to the 22 digits tracking number. | |
# Reads from stdin until newline, and copies the tracking number to the clipboard. | |
# Other characters then digits are removed. | |
# | |
# Needs Python3 and the clipboard library. Install from the command line like this: | |
# pip3 install clipboard | |
# Then save this file as barcode.py and start the script like this: | |
# python barcode.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- creates an olympic rings image and saves it as test.tga | |
-- output: http://www.frank-buss.de/haskell/OlympicRings.png | |
import Data.Binary | |
-- image size | |
data Size = | |
Size | |
{ width :: Integer | |
, height :: Integer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class NewBehaviourScript : MonoBehaviour | |
{ | |
private static System.Type[] types = { | |
typeof(Integer), | |
typeof(Long), | |
typeof(String)}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class NewBehaviourScript : MonoBehaviour | |
{ | |
public void test(int ID) | |
{ | |
System.Type types = { | |
typeof(Integer), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To comppile it on Debian, first install the package libntl-dev: | |
sudo apt-get install libntl-dev | |
then you can compile and run it like this: | |
g++ test.cpp -lntl -o test ; ./test | |
output on my system: | |
mandelbrot calculation at point (-0.025, 0.643265) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# This file is Copyright (c) 2019 Antti Lukats <[email protected]> | |
# This file is Copyright (c) 2019 msloniewski <[email protected]> | |
# License: BSD | |
import argparse | |
from migen import * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cpu/instructions.h b/cpu/instructions.h | |
index 09757cc..38dd1f1 100644 | |
--- a/cpu/instructions.h | |
+++ b/cpu/instructions.h | |
@@ -505,3 +505,14 @@ static void tya() { | |
zerocalc(a); | |
signcalc(a); | |
} | |
+ | |
+#include <inttypes.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Game of Life implementation for Commander X16 | |
; Copyright 2019 by Frank Buss | |
; | |
; compile with CC65 like this: | |
; cl65 --cpu 65c02 -t none -o gameoflife.prg gameoflife.s | |
VERA_ADDR_LO = $9f20 | |
VERA_ADDR_MID = $9f21 | |
VERA_ADDR_HI = $9f22 | |
VERA_DATA0 = $9f23 |