This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use lib:from<Perl5> 'perl5'; | |
| use Excel::Writer::XLSX:from<Perl5>; | |
| my $workbook = Excel::Writer::XLSX.new('testseg.xlsx'); | |
| # next line leads to segfault | |
| my $bold-format = $workbook.add_format(); | |
| # below only needed to show that things are working | |
| # without the call to add_format(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use Mojo::Promise; | |
| use Test::More; | |
| sub firstSuccessfulSequential { | |
| my @promises = @_; | |
| note "* " . scalar @promises . " to test"; | |
| unless (@promises) { | |
| return Mojo::Promise->new->reject('No input promises'); | |
| } | |
| my $out = Mojo::Promise->new; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v6; | |
| use GTK::Simple; | |
| my $app = GTK::Simple::App.new(title => 'Code Golf Assistant!'); | |
| $app.set_content(GTK::Simple::VBox.new( | |
| my $source = GTK::Simple::TextView.new(), | |
| my $chars = GTK::Simple::Label.new(text => 'Characters: 0'), | |
| my $elapsed = GTK::Simple::Label.new(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v6; | |
| use lib 'lib'; | |
| use NCurses; | |
| my $win = initscr; | |
| die "Failed to initialize ncurses\n" unless $win.defined; | |
| my $timer = Supply.interval(1); | |
| $timer.tap({ | |
| mvaddstr( 3, 5, "Test $_"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use v6; | |
| use lib 'lib'; | |
| use NCurses; | |
| my $win = initscr; | |
| die "Failed to initialize ncurses\n" unless $win.defined; | |
| for (1 .. 20) { | |
| mvaddstr( 3, 5, "Test $_"); | |
| nc_refresh; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var root = this.getRoot(); | |
| // create some dummy data | |
| var data = { | |
| firstname: "Martin", | |
| lastname: "Wittemann", | |
| gender: [ | |
| {glabel: "male", gdata: "M"}, | |
| {glabel: "female", gdata: "F"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| qx.Class.define("DCTM.PrioTable", { | |
| extend : qx.ui.table.Table, | |
| construct : function(term) { | |
| this.base(arguments); | |
| // table model | |
| var tableModel = new qx.ui.table.model.Simple(); | |
| tableModel.setColumns([ term, "Priorität"]); | |
| this.setTableModel(tableModel); | |
| this.set({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createRandomRows(rowCount) { | |
| var rowData = []; | |
| var now = new Date().getTime(); | |
| var dateRange = 50 * 24 * 60 * 60 * 1000; // 50 days | |
| var nextId = 0; | |
| var type = [ "Anm", "RI", "Abm" ]; | |
| var medium = ["Brief", "Fax", "eMail", "Tel" ]; | |
| var user = [ "Fritz", "Roman", "Tobi", "Manuel", "" ]; | |
| for (var row = 0; row < rowCount; row++) { | |
| var date = new Date(now + Math.random() * dateRange - dateRange / 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tableModel = new qx.ui.table.model.Simple(); | |
| tableModel.setColumns([ "Location", "Team" ]); | |
| var table = new qx.ui.table.Table(tableModel); | |
| var button = new qx.ui.form.Button("Delete"); | |
| var doc = this.getRoot(); | |
| doc.add(button, {left: 100, top: 20}); | |
| doc.add(table, {left: 20, top: 70}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tableModelSimple = new qx.ui.table.model.Simple(); | |
| tableModelSimple.setColumns([ "Location", "Team" ]); | |
| var tableSimple = new qx.ui.table.Table(tableModelSimple); | |
| var button = new qx.ui.form.Button("Delete"); | |
| var doc = this.getRoot(); | |
| doc.add(button, {left: 100, top: 20}); | |
| doc.add(tableSimple, {left: 20, top: 70}); |
NewerOlder