A Crappy Starbound script for keeping track of planets using XML
SBPlanets should work on both Windows and Unix based platforms (including Linux), and requires python 2.7 which can be found Directly from their website
# Pokemon Type Matchups Tool | |
types = { | |
'bug' : { | |
'attack': { | |
'doublex': ('psychic', 'grass', 'dark'), | |
'halfx': ('fighting', 'fire', 'flying', 'ghost', 'poison', 'steel', 'fairy'), | |
'zerox': () | |
}, | |
'defend': { | |
'halfx': ('fighting', 'grass', 'ground'), |
A Crappy Starbound script for keeping track of planets using XML
SBPlanets should work on both Windows and Unix based platforms (including Linux), and requires python 2.7 which can be found Directly from their website
Starting TWRP 2.6.3.0 on Sun Jan 6 00:00:04 1980 | |
I:=> hardware id from cpuinfo: 'GELATO board' | |
I:=> serial from cpuinfo: '0000000000000000' | |
I:Single storage only. | |
I:No internal storage defined. | |
I:No storage defined, defaulting to /sdcard. | |
TW_NO_REBOOT_BOOTLOADER := true | |
TW_POWER_BUTTON := 107 | |
I:Lun file '/sys/devices/platform/usb_mass_storage/lun0/file' | |
Starting the UI...Pixel format: 320x480 @ 16bpp |
import sys | |
import socket | |
###SETUP### | |
# Edit These options as you need | |
botnick = 'botnick' # Nickname of the bot | |
server = "irc.network.net" # Server to connect to | |
channels = ["#channel1","#channel2"] # List of channels to join once connected | |
port = 6667 # Port used to connect with | |
prefix = "-" # Prefix to determine what is a command |
#!/system/bin/sh | |
#from http://arearom.com/devuploads/motorhead/public/info | |
#by Motorhead | |
mem=$(cat /proc/meminfo | grep -E 'MemTotal' | sed -e 's/MemTotal: //' -e 's/kB//') | |
free=$(cat /proc/meminfo | grep -E 'MemFree' | sed -e 's/MemFree: //' -e 's/kB//') | |
echo 'Checking to see if you are running as root' | |
sleep 2s | |
echo '' | |
if [ `id | cut -d= -f3 | cut -d\( -f1` = 0 ] | |
then |
Replace file with | |
https://github.com/Hashcode/android_device_safestrap-common/blob/master/sbin/2nd-init |
package com.dtalley11.dice; | |
import java.util.*; | |
public class Dice { | |
public int[] Diceroll(int size, int num) { | |
int[] rolls = new int[num+1]; | |
for(int loopa = num; loopa > 0; loopa = loopa-1) | |
Random generator = new Random(); | |
int finroll = generator.nextInt(size) + 1; | |
rolls[num+1] = finroll |