Skip to content

Instantly share code, notes, and snippets.

@Strikeskids
Strikeskids / JSONUtil.java
Created February 18, 2013 18:24
JSONUtil class for java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Map.Entry;
public class JSONUtil {
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Strikeskids
Strikeskids / SkKeyboard.java
Last active December 20, 2015 05:59
An improved Keyboard class for RSBot5
package com.sk.methods;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.powerbot.script.methods.Keyboard;
import org.powerbot.script.methods.MethodContext;
@Strikeskids
Strikeskids / itematt.txt
Last active January 2, 2016 07:39
Item Attributes List
3 magic accuracy
4 ranged accuracy
14 attack speed
25 strange rock skill
68 blackjack level
74 npc spawn id
77 ahrims
78 dharoks
79 guthans
80 karils
Allotment 21950 (3794, 2833)
Allotment 21950 (3794, 2834)
Allotment 21950 (3794, 2835)
Allotment 21950 (3794, 2836)
Allotment 21950 (3794, 2837)
Allotment 21950 (3794, 2838)
Vine bush patch 56562 (2947, 2905)
Fruit Tree Patch 56667 (2946, 2912)
Vine herb patch 56682 (2956, 2906)
Vine herb patch 56683 (2977, 2912)
#include <Adafruit_NeoPixel.h>
const int motors[2][4] = {{10, 11, 3, 1}, {12, 13, 9, 2}};
const int rightChannel = 1;
const int leftChannel = 2;
const int analogCenter = 1000;
const int analogRange = 400;
const int zeroRange = 40;
const int chan = 6;
const int motorMax = 255;
from sys import argv
from math import pi, log10, floor
res = [10, 11, 12, 13, 15, 16, 18, 20, 22, 24, 27, 30, 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91]
cap = [res[x] for x in range(len(res)) if x % 2 == 0]
pre = {
'cheb': [[1.231],[1.842],[.597,1.031],[1.582,2.660]],
'bessel': [[1.272],[1.268],[1.432,1.606],[1.084,1.759]]
}
const int lockpin = 12;
const int blinkpin = 13;
const int combs[4] = {4,5,6,7};
const int combination[3] = {0,1,2}, combinationLength = 3, inputLength = 100;
int input[100], index, prev[4];
boolean locked = true;
void setup() {
pinMode(lockpin, OUTPUT);
var ops = {
'+': [1, 'AD', function(a,b) { return a+b; }],
'-': [1, 'SU', function(a,b) { return a-b; }],
'*': [2, 'MU', function(a,b) { return a*b; }],
'/': [2, 'DI', function(a,b) { return a/b; }]
};
var Compiler = function() {
};
const int latchpin = 8;
const int clockpin = 12;
const int datapin = 11;
const int bits[10] = {0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x67};
int curVal = 99;
void setup() {
pinMode(latchpin, OUTPUT);