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 java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.time.LocalDateTime; | |
import java.time.ZoneId; | |
import java.util.Date; | |
public class Main { | |
public static void main(String[] args) throws ParseException { | |
final String dateTime = "20240310 120600.000"; |
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
const autocomplete = (inputId, listId, dimensionCode) => { | |
const input = document.getElementById(inputId) | |
const list = document.getElementById(listId) | |
if (!input || !list) return false | |
list.innerHTML = '' | |
let items = [] | |
let current = -1 | |
const bg_default = 'bg-white' | |
const bg_select = 'bg-blue-500' |
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
// This is for the Commodore 64 and requires KickAssembler | |
// Written by Cecil Meeks (cbmeeks) in 2023 | |
// NOTE, this prints whatever is in A to the screen. So load A first. | |
// First, create a simple macro: | |
.macro DebugText_A_Hex(X, Y) { | |
sta ModA + 1 // save A below | |
stx ModX + 1 // save X below | |
sty ModY + 1 // save Y below |
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
/** | |
* USB HID Keyboard scan codes as per USB spec 1.11 | |
* plus some additional codes | |
* | |
* Created by MightyPork, 2016 | |
* Public domain | |
* | |
* Adapted from: | |
* https://source.android.com/devices/input/keyboard-devices.html | |
*/ |
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
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
// write your code here | |
String badNumber = "ABC123"; | |
String goodNumber = "423-867-5309"; |
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
package com.company; | |
public class Main { | |
public static void main(String[] args) { | |
String badNumber = "ABC123"; | |
String goodNumber = "423-867-5309"; | |
System.out.println("Testing Number " + badNumber); | |
System.out.println("\t" + isValidNumber(badNumber)); |
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
/* | |
This is working for NTSC. However, by my calculations, we're at 68 cycles instead of the required 65. | |
That can't be right. Yet, it works. I assume I am making a false assumption on some of the timings. | |
*/ | |
BasicUpstart2(Entry) | |
Entry: |
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
Yacht | |
(Yet Another Cycle Hunting Table) | |
------------------------------------------------------------------------------- | |
Forewords : | |
------------------------------------------------------------------------------- | |
This document is based on : | |
- 9th Edition of M68000 8-16-32-bit Microporcessor User's Manual | |
(Motorola, 1993) (laterly refered as M68000UM) |
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
: HELLO-WORLD ." Hello world!" ; | |
HELLO-WORLD |
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
; v0.2.2 | |
; | |
; Bill O'Neill - Last update: 2011/11/11 | |
; | |
; Monitor code is Open License and can be used freely | |
; Tiny Basic code is Copyright, Tom Pitman | |
; | |
; Consist of a minimal terminal monitor and Tom | |
; Pitman's Tiny Basic as a high-level | |
; programming language |
NewerOlder