Skip to content

Instantly share code, notes, and snippets.

View psykzz's full-sized avatar

Matt psykzz

View GitHub Profile
def cmd_evedata(self, charName):
# Get character ID and then data.
charID = self.eve_getID(charName)
print "char id is .... %s" % charID
if charID == 0:
self._send_message("- Character ( %s ) Not Found." % charName)
else:
charData = self.eve_getCharData(charID)
self._send_message("- %s" % charData)
return
package com.goon.fleet;
import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
package com.goon.fleet;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.os.Bundle;
@psykzz
psykzz / locationName.php
Last active December 11, 2015 08:09
EVE Online - Convert location IDs to the Name counterpart.
<?
$ids = (isset($_REQUEST['ids']))?$_REQUEST['ids']:false;
if(!$ids || $ids=="")
die('API - LocationID to Name conversion, supply comma seperated list of location IDs returns results as json.');
$idList = explode(",", $ids); // Create an array to work with.
array_unique($idList); // Remove duplicates
function sortArray(&$val){$val=intval($val);}
array_walk($idList, "sortArray");
$ids = implode(",", $idList); // Convert back to string list.
$mysqli = new mysqli('localhost', 'user', 'pass', 'dbname');
@psykzz
psykzz / ClockingSystem.java
Created December 2, 2012 12:10
Clocking system
package userdata;
import java.util.*;
import java.text.*;
public class ClockingIn {
public static void main(String[] args)
{
ClockingIn clockingIn = new ClockingIn();
<?
error_reporting(E_ALL & ~E_NOTICE);
define("ALE_DIR","./ale/factory.php");
require_once(ALE_DIR);
$keyID = "80085";
$vCode = "GSPEEF4EI8NMSL20UPU1REALLY2THINK3I4WOULD5GIVE6YOU7MY8KEYI1LCMGZ7MUDUD";
$charID = "1365215823";
function sortByDate($a, $b) {
$d1 = new DateTime($a['date']);
$d2 = new DateTime($b['date']);#
<?
$url = "http://api.eve-online.com/Server/ServerStatus.xml.aspx";
$xml = simplexml_load_file(file_get_contents($url));
$serverUp= (bool)$xml->result->serverOpen;
echo ($serverUp)?"Server online :)":"Server offline :(";
<?
$dayzBeltItems = array(
"ItemCompass"=>"compass",
"ItemEtool"=>"entrenchment tool",
"ItemFlashlight"=>"flashlight",
"ItemGPS"=>"GPS",
"ItemKnife"=>"Knife",
"ItemMap"=>"map",
"ItemMatchbox"=>"matchbox",
"ItemFlashlightRed"=>"Military Flashlight",
//Configurational Defines.
#define EVAC_HELI "MH6J_EP1"
_wait = 2;
// Functions
FNC_moveToAndLand = { // USAGE : _evacHeli, _Destination] call FNC_moveToAndLand;
private ["_heli","_dest","_pilot"];
_evacHeli = _this select 0;
_dest = _this select 1;
_pilot = (crew _evacHeli select 0);
//Configurational Defines.
#define EVAC_HELI "Mi17_Civilian"
_wait = 2;
// Functions
FNC_moveToAndLand = {
private ["_heli","_dest"];
_heli = _this select 0;
_evacHeli = _this select 1;
_dest = _this select 2;