Skip to content

Instantly share code, notes, and snippets.

@rmkane
rmkane / README.md
Created October 17, 2024 04:21
JS Top-Down Camera

JS Top-Down Camera

Demonstrate a top-down camera with a canvas.

WIP: Generating with constant feedback from ChatGPT 4o.

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Calculator</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/reset-css@5.0.2/reset.min.css"
/>
@rmkane
rmkane / gbd-staff-translator.user.js
Last active April 17, 2020 00:31
Userscript : Gundam Build Divers - Episode Staff Translator
// ==UserScript==
// @name Gundam Build Divers - Episode Staff Translator
// @namespace net.gundam-bd.story
// @version 1.0.1
// @description Translates episode personel information
// @author rmkane
// @match http://www.gundam-bd.net/story/*
// @resource JQUERY_MODAL https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.2/jquery.modal.min.css
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-modal/0.9.2/jquery.modal.min.js
@rmkane
rmkane / README.md
Last active April 26, 2018 19:14
Browserify and moment-business-time

Instructions

Install browserify and moment-business-time. Then create a script to bundle it with all its dependencies. I finally minified the output in the file below.

npm install -g browserify
npm install moment-business-time
browserify app/app.js -o app/bundle.js
@rmkane
rmkane / colors.tsv
Last active January 9, 2020 01:27
Pokémon GO Candy Colors
id pokemon primaryColor secondaryColor verified
1 Bulbasaur #36C8A4 #A3FB83 TRUE
2 Charmander #F09230 #FFE699 TRUE
3 Squirtle #85C4D6 #F2E8BE TRUE
4 Caterpie #A5CD87 #FAE3B1 TRUE
5 Weedle #E7BC83 #DB76AD TRUE
6 Pidgey #E9E0B7 #D29E65 TRUE
7 Rattata #A989BA #D9D7BE TRUE
8 Spearow #EBB9A0 #FE5D6C TRUE
9 Ekans #CBA8C9 #F1E090 TRUE
@rmkane
rmkane / Instructions.md
Last active January 31, 2019 12:39
Java Install Workaround

Extraction

  • Create working JDK directory (C:\JDK in this case)
  • [Download][1] latest version of JDK from Oracle (for example jdk-8u201-windows-x64.exe)
  • [Download][2] and install 7-Zip (or download [7-Zip portable][3] version if you are not administrator)
  • With 7-Zip extract all the files from jdk-XuXX-windows-x64.exe into the directory C:\JDK
  • Execute the following commands in cmd.exe:
    • cd C:\JDK\.rsrc\1033\JAVA_CAB10
    • extrac32 111
  • Unpack C:\JDK\.rsrc\1033\JAVA_CAB10\tools.zip with 7-zip
@rmkane
rmkane / learnset.json
Last active March 22, 2017 13:49
Pokemon GO Learnset
[{
"id": 1,
"name": "Bulbasaur",
"types": ["Grass", "Poison"],
"stats": {
"stamina": 90,
"attack": 118,
"defense": 118
},
"fastMoves": [{
@rmkane
rmkane / calculator.py
Created February 15, 2017 17:40
Pokémon GO CP Calculator
#!/usr/bin/env python3
'''
Pokemon GO CP Calculator
Formula: https://reddit.com/r/TheSilphRoad/comments/4t7r4d/exact_pokemon_cp_formula/
Calculator: https://pokemongohub.net/pokemon-go-evolution-calculator/
'''
import numpy as np
from itertools import product
@rmkane
rmkane / Lúcio_Data.json
Last active February 3, 2017 22:08
Heroes Data
{
"url" : "",
"name" : "Lúcio",
"title" : "",
"role" : "Support",
"info" : "",
"lore" : "",
"date" : "",
"difficulty" : "",
"melee" : false,
@rmkane
rmkane / countries.json
Created January 11, 2017 22:15
JSON Countries
[
{ "code" : "AF", "name" : "Afghanistan" },
{ "code" : "AX", "name" : "Åland Islands" },
{ "code" : "AL", "name" : "Albania" },
{ "code" : "DZ", "name" : "Algeria" },
{ "code" : "AS", "name" : "American Samoa" },
{ "code" : "AD", "name" : "Andorra" },
{ "code" : "AO", "name" : "Angola" },
{ "code" : "AI", "name" : "Anguilla" },
{ "code" : "AQ", "name" : "Antarctica" },