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
windres reg.rc -O coff -o reg.res | |
g++ -c reg.cpp | |
g++ -o reg.exe reg.o reg.res |
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
/* | |
zelschk | |
legend of zelda (nes) sram checksum updater/checker | |
16/03/2015 - bryc | |
*/ | |
#include <stdio.h> | |
unsigned char data[8192]; | |
FILE *fp; |
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
<!-- In case you forget how to use the FileReader API --> | |
<script> | |
window.ondragover = function () {return false;}; | |
window.ondrop = function (e) | |
{ | |
var reader = new FileReader(); | |
reader.readAsText(e.dataTransfer.files[0]); | |
reader.onprogress = function (Z) |
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
$Files = Get-ChildItem -Path ".\*.m3u" | |
$Total = $Files.count | |
$Text = "" | |
for ($i = 0; $i -lt $Total; $i++) { | |
$Path = Get-Content $Files[$i] | |
Write-Host $Path | |
$Text += $Path + "`n" | |
} |
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
//Compile using csc test.cs | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Linq; | |
public class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
<style>body{margin:0}div{padding:8px;color:rgba(255,255,255,.5);text-align:center;font:bold 48px sans-serif; -webkit-text-stroke: 0.8px rgba(0,0,0,.75);}</style> | |
<script> | |
var colourNames = ["Pink","LightPink","HotPink","DeepPink","PaleVioletRed","MediumVioletRed","LightSalmon","Salmon","DarkSalmon","LightCoral","IndianRed","Crimson","FireBrick","DarkRed","Red","OrangeRed","Tomato","Coral","DarkOrange","Orange","Yellow","LightYellow","LemonChiffon","LightGoldenrodYellow","PapayaWhip","Moccasin","PeachPuff","PaleGoldenrod","Khaki","DarkKhaki","Gold","Cornsilk","BlanchedAlmond","Bisque","NavajoWhite","Wheat","BurlyWood","Tan","RosyBrown","SandyBrown","Goldenrod","DarkGoldenrod","Peru","Chocolate","SaddleBrown","Sienna","Brown","Maroon","DarkOliveGreen","Olive","OliveDrab","YellowGreen","LimeGreen","Lime","LawnGreen","Chartreuse","GreenYellow","SpringGreen","MediumSpringGreen","LightGreen","PaleGreen","DarkSeaGreen","MediumSeaGreen","SeaGreen","ForestGreen","Green","DarkGreen","MediumAquamarine","Aqua","Cyan" |
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
REM 2016 NOTE: USE fscanf() in future C projects! | |
@echo off | |
echo Compiling... | |
cd C:\mingw\bin | |
gcc -s -O3 -o ..\src\build\%~n1.exe %1 | |
echo Done. | |
pause |
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
Original process: | |
ultraSMS and ultraMSX2 both have a rominserter.exe file which insert a ROM into | |
the respective v64 (byteswapped) emulator at a specific offset. It actually inserts the ROM byteswapped, | |
allowing the V64jr or other to re-swap it when loading on the N64. This is quite stupid. | |
The filesize of the output ROM appears to be incompatible with 64drive, and must be 1052672 bytes. | |
Also, to run on 64drive's USB mode, they must not be in v64 format, and must be in the original z64 format. | |
TODO: Load large ROMs into the rominserter and see exactly where it stops writing at. Should shed light |
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
function noteFromKey(keyCode) { | |
var char = String.fromCharCode(keyCode).toUpperCase(); | |
if(pianoMap[char]) { | |
return pianoMap[char]; | |
} | |
else { | |
return false; | |
} | |
} | |
/* |
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
var p = ["RHYDON","KANGASKHAN","NIDORAN_M","CLEFAIRY","SPEAROW","VOLTORB","NIDOKING","SLOWBRO","IVYSAUR","EXEGGUTOR","LICKITUNG","EXEGGCUTE","GRIMER","GENGAR","NIDORAN_F","NIDOQUEEN","CUBONE","RHYHORN","LAPRAS","ARCANINE","MEW","GYARADOS","SHELLDER","TENTACOOL","GASTLY","SCYTHER","STARYU","BLASTOISE","PINSIR","TANGELA","MISSINGNO_1F","MISSINGNO_20","GROWLITHE","ONIX","FEAROW","PIDGEY","SLOWPOKE","KADABRA","GRAVELER","CHANSEY","MACHOKE","MR_MIME","HITMONLEE","HITMONCHAN","ARBOK","PARASECT","PSYDUCK","DROWZEE","GOLEM","MISSINGNO_32","MAGMAR","MISSINGNO_34","ELECTABUZZ","MAGNETON","KOFFING","MISSINGNO_38","MANKEY","SEEL","DIGLETT","TAUROS","MISSINGNO_3D","MISSINGNO_3E","MISSINGNO_3F","FARFETCHD","VENONAT","DRAGONITE","MISSINGNO_43","MISSINGNO_44","MISSINGNO_45","DODUO","POLIWAG","JYNX","MOLTRES","ARTICUNO","ZAPDOS","DITTO","MEOWTH","KRABBY","MISSINGNO_4F","MISSINGNO_50","MISSINGNO_51","VULPIX","NINETALES","PIKACHU","RAICHU","MISSINGNO_56","MISSINGNO_57","DRATINI","DRAGONAIR","KABUTO","KABUTOPS","HORSEA","SEADRA" |
OlderNewer