This is a SCRIPT-8 cassette.
This file contains 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
import xml.parsers.expat | |
import sys,gzip,string | |
_name = '' | |
_manf = '' | |
_year = 0 | |
_desc = '' | |
_srcfile = '' | |
_tag = None | |
_cpus = [] |
This file contains 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
#include <stdio.h> | |
#include <conio.h> | |
#include <c64.h> | |
#include <cbm_petscii_charmap.h> | |
void xygoto(char x, char y) { | |
x=x; y=y; // to avoid "unused variable" warning | |
__asm__ ("jsr popa"); | |
__asm__ ("tax"); // pop X |
This file contains 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
import xml.parsers.expat | |
import sys,gzip,string | |
_name = '' | |
_manf = '' | |
_year = 0 | |
_desc = '' | |
_srcfile = '' | |
_tag = None | |
_cpus = [] |
This file contains 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
import json | |
import dateutil.parser | |
with open('nvdcve.json','r') as f: | |
root = json.load(f) | |
items = root['CVE_Items'] | |
items = sorted(items, key=lambda k: dateutil.parser.parse(k.get('publishedDate', '')), reverse=True) |
This file contains 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
set kernel_options no_blank_lines pfcolors | |
set romsize 8kSC | |
set smartbranching on | |
const pfres=18 | |
pfclear | |
rem make sprites go behind playfield | |
CTRLPF = %00000101 |
This file contains 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
;---------------------- | |
; Star Castle | |
; By Scott Williamson | |
; Started 2/6/2008 | |
; CX2655 | |
;---------------------- | |
; | |
; TODO | |
; | |
;---------------------- |
This file contains 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
// duplicates static variable bug for CC65 | |
#include <stdio.h> | |
#include <limits.h> | |
unsigned char success=0; | |
unsigned char failures=0; | |
unsigned char dummy=0; | |
#define COUNT 256 /* Up to what number? */ |
This file contains 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
name cpu | |
.model large | |
EXTRN _rwts | |
.data | |
EXTRN _memseg:DWORD | |
.code | |
; *** EQUATES | |
acc equ cl |
This file contains 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
'''Test of stateful LSTM. | |
This trains a LSTM to convert a frequency-modulated signal to a sine wave. | |
The period of the signal is greater than the temporal dimension of the LSTM, | |
so in theory the stateful version should have an advantage. | |
''' | |
from __future__ import print_function | |
import os | |
os.environ['KERAS_BACKEND'] = 'tensorflow' |
NewerOlder