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
mov ax, 0x0E6A | |
int 0x10 | |
times 510-($-$$) db 0 | |
db 0x55 ; required for some BIOS's | |
db 0xAA |
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.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]); |
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
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) { |
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
//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 |
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
Sorry! Moved to https://github.com/machinamentum/single-file-libs |
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
/* | |
* 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 |
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
// | |
// 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 | |
// | |
// |
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
// | |
// 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 |