Skip to content

Instantly share code, notes, and snippets.

View blitzmann's full-sized avatar

Ryan Holmes blitzmann

  • STS Aviation Group
  • Florida, USA
View GitHub Profile
@blitzmann
blitzmann / pyfa-setup.iss
Last active August 29, 2015 14:04
Pyfa - Inno Setup Script
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
; Versioning
; we do some #ifdef conditionals because automated compilation passes these as arguments
#ifndef MyAppVersion
#define MyAppVersion "1.3.0"
#endif
#ifndef MyAppExpansion
@blitzmann
blitzmann / skinDiff.py
Last active August 29, 2015 14:05
Difference between skinned and base hulls
import config # pyfa config
import eos.db
import eos.types
config.defPaths()
ITEMS_OVERRIDE = {
"Abaddon Kador Edition": "Abaddon",
"Abaddon Tash-Murkon Edition": "Abaddon",
"Aliastra Catalyst": "Catalyst",
@blitzmann
blitzmann / resists.py
Last active August 29, 2015 14:05
DPS with target resists
#!/usr/bin/python
#Usage: python resist.py EM Therm Kin Exp NPC_race
#or: python resist.py EM Therm Kin Exp EM_resist Therm_resist Kin_resist Exp_resist
# from: http://www.reddit.com/r/Eve/comments/2dx13u/fitting_tools_w_effective_dps/cjukwm2
import string
def resists(damage, resists):
print damage
@blitzmann
blitzmann / getmods.py
Created August 23, 2015 17:27
getmods.py
# -*- coding: utf-8 -*-
#!/usr/bin/env python
if __name__ == "__main__":
import argparse
import json
import os.path
from eos import *
from eos.data.data_handler import JsonDataHandler
from eos.const.eos import *
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
import requests.certs
APP = ['pyfa.py']
import wx
class MyFrame(wx.Frame):
""" We simply derive a new class of Frame. """
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title, size=(200,100))
self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE)
self.Show(True)
app = wx.App(False)
frame = MyFrame(None, 'Small editor')
@blitzmann
blitzmann / gist:cd698a62b741dd9a163a
Last active February 13, 2016 04:06
pygauge.py
#===============================================================================
# PyfaGauge is a generic Gauge implementation tailored for pyfa (the Python
# Fitting Assistant). It uses the easeOutQuad equation from
# caurina.transitions.Tweener to do animations
#
# ToDo: make SetGradient(<value, colour start, colour end)
# ToDo: make a solid gradient (not to->from and not dependant on value)
# ToDo: fix 0 range (currently resets range to 0.01, but this causes problems if
# we really set range at 0.01). Perhaps make it -1 and test percentage as
# a negative or something.
#===============================================================================
# PyfaGauge is a generic Gauge implementation tailored for pyfa (the Python
# Fitting Assistant). It uses the easeOutQuad equation from
# caurina.transitions.Tweener to do animations
#
# ToDo: make SetGradient(<value, colour start, colour end)
# ToDo: make a solid gradient (not to->from and not dependant on value)
# ToDo: fix 0 range (currently resets range to 0.01, but this causes problems if
# we really set range at 0.01). Perhaps make it -1 and test percentage as
# a negative or something.
@blitzmann
blitzmann / custom_list_draw_test.py
Last active March 12, 2016 04:08
Testing slowdown on OS X 10.11
import wxversion
wxversion.select('3.0')
import wx
SB_ITEM_NORMAL = 0
SB_ITEM_HIGHLIGHTED = 2
class LineItem(wx.Window):
def __init__(self, parent, text="", id=wx.ID_ANY, pos=wx.DefaultPosition, size=(50,16)):
{
"24": {
"displayName_zh": "疾速加农炮",
"displayName_es": "Blaster Cannon",
"displayNameID": 514402,
"tooltipText_en-us": "Standard short range attack",
"iconID": 1047,
"displayName_fr": "Canon blaster",
"disallowInLowSec": false,
"turretGraphicID": 11506,