Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| /* | |
| Author: Josh Huelsman | |
| A contrived example of a UEFI bootloader that: | |
| * Sets up a GOP framebuffer | |
| * Retrieves a memory map | |
| * Exits boot services | |
| * Starts executing kernel code built-in to the bootloader | |
| * kernel sets up a basic Long Mode GDT and IDT | |
| * kernel installs an interrupt service routine for int 25, then executes int 25 |
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.
| // | |
| // Metal.hpp | |
| // | |
| // Autogenerated on November 20, 2021. | |
| // | |
| // Copyright 2020-2021 Apple Inc. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at |
| // | |
| // Author: Jonathan Blow | |
| // Version: 2 | |
| // Date: 7 May, 2019 (update to original version released on 31 August, 2018). | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
| /* | |
| * OpenSimplex Noise in Java. | |
| * by Kurt Spencer | |
| * | |
| * v1.1 (October 5, 2014) | |
| * - Added 2D and 4D implementations. | |
| * - Proper gradient sets for all dimensions, from a | |
| * dimensionally-generalizable scheme with an actual | |
| * rhyme and reason behind it. | |
| * - Removed default permutation array in favor of |
| Sorry! Moved to https://github.com/machinamentum/single-file-libs |
| //Only those who wish pain and frustration upon themselves shall enter; few will come out breathing machine code, eating documentation, and programming assembler in their sleep. | |
| http://www.osdev.org/ | |
| //The holy grail of hardware/emulation documentation + emulators + debuggers for console development. | |
| nocash.emubase.de | |
| //Emulation technical progamming info | |
| http://fms.komkon.org/EMUL8/HOWTO.html |
| public class FizzBuzz { | |
| public static void main(String[] args) { | |
| for(int i = 1; i <= 100; i++) { | |
| if(i % 3 != 0 && i % 5 != 0) { | |
| System.out.println(i); | |
| continue; | |
| } | |
| if(i % 3 == 0) { |
| import java.io.UnsupportedEncodingException; | |
| /** | |
| * Converts a given String to base 26 then spits out its decimal equivalent. | |
| * @author joshuahuelsman | |
| */ | |
| public class StringToNumber { | |
| public static void main(String[] args) throws UnsupportedEncodingException { | |
| System.out.println(args[0]); |