Skip to content

Instantly share code, notes, and snippets.

Ryan Kane ryankane

Block or report user

Report or block ryankane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ryankane
ryankane / README.md
Last active Apr 26, 2018
Browserify and moment-business-time
View README.md

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
@ryankane
ryankane / colors.csv
Last active Feb 5, 2019
Pokémon GO Candy Colors
View colors.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
@ryankane
ryankane / Instructions.md
Last active Jan 31, 2019
Java Install Workaround
View Instructions.md

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
@ryankane
ryankane / learnset.json
Last active Mar 22, 2017
Pokemon GO Learnset
View learnset.json
[{
"id": 1,
"name": "Bulbasaur",
"types": ["Grass", "Poison"],
"stats": {
"stamina": 90,
"attack": 118,
"defense": 118
},
"fastMoves": [{
@ryankane
ryankane / calculator.py
Created Feb 15, 2017
Pokémon GO CP Calculator
View calculator.py
#!/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
View Lúcio_Data.json
{
"url" : "",
"name" : "Lúcio",
"title" : "",
"role" : "Support",
"info" : "",
"lore" : "",
"date" : "",
"difficulty" : "",
"melee" : false,
View countries.json
[
{ "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" },
View TokenGrabber.java
public class TokenGrabber {
private static final char SEPARATOR = '|';
public static String grabTokenAt(String str, int index, char delim) {
if (index > -1) { // Within minimum bounds.
int pos = -1, step = 0;
if (index > 0) {
for (; step <= index; step++) {
pos = str.indexOf(delim, pos + (step > 1 ? 1 : 0));
}
@ryankane
ryankane / GAME_DATA_HISTORY.json
Last active Aug 7, 2017
Pokemon GO - Game Data Statistics
View GAME_DATA_HISTORY.json
[ {
"Date" : "2016-07-30",
"Data" : {
"Moves" : [
{ "ID" : 13, "Key" : "Power", "Old Value" : 15, "New Value" : 25 },
{ "ID" : 14, "Key" : "Power", "Old Value" : 70, "New Value" : 120 },
{ "ID" : 18, "Key" : "Power", "Old Value" : 25, "New Value" : 30 },
{ "ID" : 20, "Key" : "Power", "Old Value" : 15, "New Value" : 25 },
{ "ID" : 21, "Key" : "Power", "Old Value" : 35, "New Value" : 40 },
{ "ID" : 22, "Key" : "Power", "Old Value" : 55, "New Value" : 80 },
View GAME_MASTER_v0_1.json
{
"Items": [ {
"TemplateId": "BADGE_BATTLE_ATTACK_WON",
"Badge": {
"BadgeType": "BADGE_BATTLE_ATTACK_WON",
"BadgeRanks": 4,
"Targets": "\\nd\\350\\007"
}
}, {
"TemplateId": "BADGE_BATTLE_TRAINING_WON",
You can’t perform that action at this time.