Skip to content

Instantly share code, notes, and snippets.

@ccoupe
ccoupe / gist:669f0958ad4d9affbfeb594efcca7142
Last active December 20, 2018 02:38
Shoes 3.3.7 TODO
Legend:
X complete
= blocking
- regular to do
? do we need this
(blank)
[-] merge master to direwolf to get x11/wayland changes (Cecil)
[=] resize manually when window has menus
[-] Does x11/wayland changes fix mxe on win 10. Win 7 OK.
[=] NSIS - not unicode?? Issue #
@ccoupe
ccoupe / cross-curl.sh
Created August 9, 2017 02:30
curl-config
#! /bin/bash
# execute it instead of ./configure
export dest="/home/ccoupe/Projects/shoesdeps/mingw"
export CC=i686-w64-mingw32-gcc
export CFLAGS="-I${dest}/include -I${dest}/lib/libffi-3.2.1/include"
export LDFLAGS="-L${dest}/lib"
./configure \
--build=x86_64-linux-gnu \
--host=i686-w64-mingw32 \
--enable-silent-rules \
ccoupe@bronco:~/Projects/shoesdeps/src/curl$ ../cross-curl.sh
checking whether to enable maintainer-specific portions of Makefiles... no
.....
configure: Configured to build curl/libcurl:
curl version: 7.55.0-DEV
Host setup: i686-w64-mingw32
Install prefix: /home/ccoupe/Projects/shoesdeps/mingw
Compiler: i686-w64-mingw32-gcc
SSL support: enabled (OpenSSL)
# draw timeseries data - throwaway code
require 'lib/shoes/dataseries/csvseries.rb'
tseries = CsvSeries.create('Tests/tstest.csv')
Shoes.app width: 620, height: 610 do
stack do
tsname = tseries.name
tstype = tseries.bool?
tsminv = tseries.minv
tsmaxv = tseries.maxv
tsbeg = tseries.start_date # datetime
/*
Class : SeriesGraph
Author : Russ Ethington
Version : 1/28/96 for Java 1.0
Notice : Copyright (C) 1995, 1996 Russ Ethington
Modified by Cecil Coupe July 1996:
1. Don't copy/clone the data
2. Draw two vertical ticks and labels if 2 or more series are given
3. Uses arrays of floats instead of Vectors of strings
4. Fixed some latent bugs in paint()
@ccoupe
ccoupe / gist:82a919990d4b3546f99ed880deeb850b
Created June 16, 2016 05:30
All the chars minus some NL plus some extra NL
./cshoes Tests/tests_svg.rb
includes IO.puts monkey patch - same as run from splash menu
Mac console created
TERM=xterm-256color
STDOUT
tests are ready
Loaded suite SvgTest0Started.Finished in 0.000958 seconds.1 tests, 12 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications100% passed1043.84 tests/s, 12526.10 assertions/s
@ccoupe
ccoupe / svg-test-mostly-ok.txt
Created June 16, 2016 05:02
Just missing the color
./cshoes -w Tests/tests_svg.rb
includes IO.puts monkey patch
Mac console created
Loaded suite SvgTest0
Started
.
Finished in 0.00087 seconds.
Mac console created
Loaded suite VideoVlcTest0
Started
.
Finished in 0.001553 seconds.
1 tests, 7 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@ccoupe
ccoupe / appexplore.rb
Created September 15, 2015 05:01
find out what Shoes.APPS[] and app are.
# explore APPS and app (s)
# don't name anything as 'app' unless you enjoy confusion
class Shoes::Types::App
def myinspect(target, from)
puts "For #{target.name} (from #{app.name})"
#puts "app and from are same object: #{target === app}"
puts "instance vars"
puts "#{target.inspect}"
puts target.instance_variables
@ccoupe
ccoupe / bug018.rb
Created January 19, 2015 00:38
working wraps.
Shoes.app do
p1 = "1. Word wrap on the console may be better but it's not working! I suspect the stacks and flows in log.rb need to be examined so they do the right thing - the definition of 'right' is not clear to me."
p2 = "2. Since the behavior is not platform dependent it must be in the next higher layer of shoes, in the general layout abstractions and textblock/styles and it has probably existed since Shoes 2. Which leads to a couple more questions. What does Shoes4 do with our snippets? I know they struggle with styled text segments too. Is there a compatibility break with Shoes 4? If so, should Shoes 3.2 emulate the behavior of 4 or stick with the old bugs?"
p3 = "3. Most folks would see the bugs, sigh and just add some stacks and flows that work for them. That would be my first solution to the console layout since in the big scheme the perfect console layout isn't all that important."
p4 = "4. Your assessment is sound to me as it must be in the low level C code where TextBlock and Sty