I hereby claim:
- I am changmason on github.
- I am changmason (https://keybase.io/changmason) on keybase.
- I have a public key whose fingerprint is 6E03 AF78 8944 9501 6F90 2831 3E5B ABDB 8E42 3790
To claim this, I am signing this object:
# Compile the jruby project into a standalone jar, doc refers to | |
# https://github.com/jruby/jruby/wiki/StandaloneJarsAndClasses | |
namespace :pkg do | |
PGEM_FILES = [] | |
PLIB_FILES = [] | |
PROJECT_JAR = "package/project_name.jar" | |
JRUBY_JAR = "jruby-complete-1.6.1.jar" | |
BOOTSTRAP = "jar-bootstrap.rb" | |
Setext H1 Heading | |
================= | |
Setext H2 Heading | |
----------------- | |
# Atx H1 Heading # | |
## Atx H2 Heading ## |
# Program translate from | |
# http://download.oracle.com/javase/tutorial/uiswing/examples/components/ProgressBarDemoProject/src/components/ProgressBarDemo.java | |
# 2011/08/01 first commit (by Mason) | |
require "java" | |
java_import java.awt::Toolkit | |
java_import java.awt::Cursor | |
java_import java.awt::Insets | |
java_import java.awt::BorderLayout | |
java_import javax.swing::JFrame |
require 'win32ole' | |
xls = WIN32OLE.new("Excel.Application") | |
xls.visible = true | |
wb = xls.workbooks.add() | |
ws = wb.worksheets(1) | |
(1..16).each do |i| | |
col = i * 3 -1 | |
ws.columns(col).cells(1).value = i |
class M | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
puts "Before call in middleware #{self.class}" | |
response = @app.call(env) | |
puts "After call in middleware #{self.class}" | |
response |
I hereby claim:
To claim this, I am signing this object:
[ | |
{author: "Pete Hunt", text: "This is one comment"}, | |
{author: "Jordan Walke", text: "This is *another* comment"} | |
] |