Skip to content

Instantly share code, notes, and snippets.

View jasonrclark's full-sized avatar

Jason R. Clark jasonrclark

View GitHub Profile
./gradlew forceConfigurationResolution analyzeClassesDependencies --stacktrace
> Task :analyzeClassesDependencies FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':analyzeClassesDependencies'.
> Cannot change dependencies of dependency configuration ':apiHelper' after it has been resolved.
* Try:
@jasonrclark
jasonrclark / gist:064c1379a3d23e7ef34a1b4a8693d91f
Last active October 7, 2017 19:00
List of instance methods from Shoes UI classes
_position
absolute_file_path
add_child
add_mouse_hover_control
add_to_parent
adjust_current_position
after_initialize
aliceblue
align
angle
Warming up --------------------------------------
small.png by filename
220.000 i/100ms
small.png by tmp 75.000 i/100ms
small.png by raw bytes
533.000 i/100ms
Calculating -------------------------------------
small.png by filename
2.390k (± 5.7%) i/s - 12.100k in 5.079918s
small.png by tmp 925.886 (± 8.1%) i/s - 4.650k in 5.059677s
Shoes.app width: 501, height: 300 do
flow width: 0.25, height: 250 do
button "A button" do
@para.cursor = 200
end
#para "links, yeah!" #link("links, yeah!") { alert("yeah!!!") }
end
keypress do |k|
alert k
source 'https://rubygems.org'
gem 'thin'
gem 'sinatra'
gem 'newrelic_rpm'
@jasonrclark
jasonrclark / scrolling-swt.rb
Created November 28, 2015 06:12
Scrolling Composites in SWT
#! /usr/bin/env jruby
require 'swt'
# swt gem doesn't appear to import the ScrolledComposite we need
# Looking at docs it's plenty old enough to be in any Java version we support
module Swt
include_package 'org.eclipse.swt.custom'
module Custom
$ ruby -e 'puts RbConfig::CONFIG["CFLAGS"]'
-O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat
$ gdb --args /usr/local/bin/ruby -e '"new string"'
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
@jasonrclark
jasonrclark / rocket.rb
Created November 6, 2015 05:27
Rocket!
# http://github.com/shoes/shoes4
# @jasonrclark
Shoes.app width: 450, height: 800 do
oval 150, 75, 150, 150, fill: blue
rect 100, 500, 250, 50, fill: red
rect 150, 150, 150, 400, fill: white
rect 150, 400, 75, 50, fill: black
@jasonrclark
jasonrclark / use_swt.rb
Created October 17, 2015 04:37
Using swt gem directly
#! /usr/bin/env jruby
require 'swt'
#module Swt
#include_package 'org.eclipse.swt.graphics'
#include_package 'org.eclipse.swt.events'
#include_package 'org.eclipse.swt.dnd'
#module Events
@jasonrclark
jasonrclark / .gitignore
Created November 16, 2012 16:53
watched-log
.error-notifier.rb.swp