I hereby claim:
- I am JamesHarrison on github.
- I am jamesharrison (https://keybase.io/jamesharrison) on keybase.
- I have a public key whose fingerprint is 130E 52A1 DC1B 3B17 8AD9 87D4 D4F2 6072 FC76 6A7D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
server { | |
listen 443 ssl; | |
listen [::]:443 ipv6only=on ssl; | |
# .. other stuff like your ssl config here | |
location / { | |
add_header Strict-Transport-Security "max-age=3600"; | |
# ABOVE FOR TESTING ONLY - once you're happy, use a longer policy time eg | |
# add_header Strict-Transport-Security max-age=86400; | |
proxy_set_header "X-Forwarded-For" $proxy_add_x_forwarded_for; | |
proxy_set_header "X-Forwarded-Proto" https; |
import processing.serial.Serial; // serial library | |
import controlP5.*; // controlP5 library | |
import processing.opengl.*; | |
import java.lang.StringBuffer; // for efficient String concatemation | |
import javax.swing.SwingUtilities; // required for swing and EDT | |
import javax.swing.JFileChooser; // Saving dialogue | |
import javax.swing.filechooser.FileFilter; // for our configuration file filter "*.mwi" | |
import javax.swing.JOptionPane; // for message dialogue | |
//Added For Processing 2.0.x compabillity |
class NotifierProcessor < ApplicationProcessor | |
subscribes_to :notifications | |
#require 'msn/msn' | |
require 'rubygems' | |
require 'net/yail' | |
require 'xmpp4r' | |
require 'xmpp4r/client' | |
require 'xmpp4r/muc' | |
$IRC_DEBUG = true |
/* | |
Noisepad 0.1 | |
A real-time generative synth with draggable interface. | |
Thanks to: | |
st33d (http://processing.org/discourse/yabb_beta/YaBB.cgi?board=Syntax;action=display;num=1157926569) - Example code on draggable implementation | |
Author: James Harrison |
# Logfile created on Tue Dec 09 14:50:32 +0000 2008 by / | |
Opacity: 255, 255, 255 | |
Computed Opacity: 0.0, 0.0, 0.0 | |
Opacity: 255, 255, 255 | |
Computed Opacity: 0.0, 0.0, 0.0 | |
Opacity: 255, 255, 255 | |
Computed Opacity: 0.0, 0.0, 0.0 | |
Opacity: 255, 255, 255 | |
Computed Opacity: 0.0, 0.0, 0.0 | |
Opacity: 255, 255, 255 |
require 'rubygems' | |
require 'RMagick' | |
module Eve | |
module CorporateLogo | |
# Represents a complete logo. | |
# Attributes: | |
# image - The Magick::Image instance | |
# layers - Array of Layer instances | |
# output - Path to which the output of this Logo has been written | |
class Logo |
xml = new XMLElement(this, "http://wiki.eveonline.com/w/index.php?title=Special:Recentchanges&feed=rss"); | |
XMLElement[] changes=xml.getChild(0).getChildren(); | |
int change_count = xml.getChild(0).getChildCount(); | |
for(int n = 0; n < change_count;n++){ | |
if (changes[n].getChildCount() > 1) { | |
// this element is an item element | |
XMLElement[] item = changes[n].getChildren(); | |
String pagename = item[0].getContent(); |
# A corporation in EVE. | |
class Corporation < ActiveRecord::Base | |
has_many :characters | |
has_many :stations | |
has_many :kills | |
has_many :kill_attackers | |
has_many :fittings | |
has_many :reimbursement_requests | |
has_one :ceo, :class_name => "Character", :foreign_key => "ceo_id" | |
belongs_to :alliance |
require 'net/http' | |
require 'RMagick' | |
# Retrieves a corporation logo for a corporation | |
class GetCorporationLogoJob < Struct.new(:corporation_id) | |
def perform | |
File.open("#{RAILS_ROOT}/public/system/corporations/#{corporation_id.to_i}_64.png","wb") do |f| | |
Net::HTTP.start("clg.eve-metrics.com") do |http| | |
resp = http.get("/#{corporation_id.to_i.to_s}.png") | |
return unless resp | |
if resp.response['Location'] then |