Skip to content

Instantly share code, notes, and snippets.

@rmkane
rmkane / clock-face-alt.svg
Last active October 9, 2015 16:11
Digital Clock 2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rmkane
rmkane / ModBot_Readme.md
Last active October 9, 2015 16:31
ModBot Documentation
@rmkane
rmkane / README.md
Last active November 20, 2015 08:29
JSONView SublimeText Theme

Custom SublimeText theme for the JSONView browser plugin.

Paste the sublime-text.css stylesheet rules into the theme editor.

Tip: Themes can be configure under the options in the extensions page in the browser.

@rmkane
rmkane / Pageant Autoload with Logging.bat
Last active December 11, 2015 00:24
This script creates a shortcut for auto-loading a PPK (key) in Pageant by writing a temporary VB script and executing it.
REM |==================================================================|
REM | Pageant Autoload.bat |
REM | |
REM | This script creates a shortcut for auto-loading a PPK (key) in |
REM | Pageant by writing a temporary VB script and executing it. The |
REM | following information below is added to the shortcut. |
REM | |
REM | Filename : Pageant Autoload |
REM | Target : pageant.exe |
REM | Arguments : id_rsa.ppk |
@rmkane
rmkane / fruit.csv
Created February 23, 2016 14:43
ZingChart - External Data Loading
Apple 25 34
Pear -16 10
Lemon 22 -5
Orange 41 21
@rmkane
rmkane / TokenGrabber.java
Created December 21, 2016 18:38
Token Grabber
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));
}
@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" },
@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 / 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 / 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": [{