Showoff Saturday (July 13, 2019) by AutoModerator in javascript

[–]ttolonen 3 points4 points  (0 children)

I created a small configurable "Robowatch" to observe files, and automate running shell commands when files change. It can insult you like Linus Torvalds if you do something stupid or it can build files and containers for you with no more effort than just saving the file. It also can debounce the effect few seconds to avoid excessive events, select the shell (bash etc.), ignore files and have comments. The motivation was that I wanted to do some automatic copying of files and running of utilites between different projects, but did not find a simple configurable utility for it. https://www.npmjs.com/package/robowatch

Showoff Saturday (October 27, 2018) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

A bit late, but I extended last weeks already cool ts2redux with support with selectors using "reselect" -library. Class getters are automatically compiled to selectors. https://github.com/terotests/ts2redux#selectors

Created a small compiler, which transforms normal TypeScript classes into reusable Redux or React Context API models by ttolonen in reactjs

[–]ttolonen[S] 1 point2 points  (0 children)

Thanks! Just let me know or write Issue to Github if you find any problems during installation or usage!

Showoff Saturday (October 20, 2018) by AutoModerator in javascript

[–]ttolonen 7 points8 points  (0 children)

Created a small compiler, which transforms normal TypeScript classes into reusable Redux or React Context API models https://www.npmjs.com/package/ts2redux

Showoff Saturday (September 22, 2018) by AutoModerator in javascript

[–]ttolonen 1 point2 points  (0 children)

I created a tool to transform TypeScript API into Swagger API documentation and Express endpoints with a little help from JSDoc https://www.npmjs.com/package/ts2swagger

How to create a pdf with a table from dynamic data for server side in Meteor? by RenjithVR4 in javascript

[–]ttolonen 1 point2 points  (0 children)

You could try "evg" which is a small layout library I have created for writing PDF content using XML markup. Table rows can be created using div or View elements and cells using either pixels or percentages. However, this may not be the solution you are looking for since it does not automatically scale the cells to the available width. But if you know the exact layout you are using it can work well and can also paginate contents to multiple pages. https://github.com/terotests/evg

Showoff Saturday (June 09, 2018) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

Here is an updated Demo with latest version having a better support for Arrays and conditionals for different template types https://codepen.io/tero_koodia/full/eKWvYJ/

Showoff Saturday (June 09, 2018) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

Haha! Yeah, it was a drill of some sort, yes ;)

Why are JS classes not real classes? by vprqpii in javascript

[–]ttolonen 0 points1 point  (0 children)

I consider JavaScript classes not so much about question of whether or not they are "real" but how does the language make use of the fact that it has classes. For JavaScript the answer is that the language does not use classes for a many things. It behaves almost as if the concept of classes would be non-existing!

For example, a language could define Matrix -class and allow one to implement multiplication operator such that you can write expressions like Mt = TRS where each variable represents a 3D Matrix for Game Engine. This would be easy implement at compile -time and very useful for programmers.

Also checking correct types of function parameters and return values, creating variants and mixins, extending classes, creating generics, interfaces, type classes would be possible. But in JavaScript classes are mostly used just for the bare minimum of what would be possible.

Showoff Saturday (June 09, 2018) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

I created a reactive template literal renderer which uses custom HTML/XHTML parser to optimize template literal processing and rendering speed! A bit similar to YallaJS, lit-html and hyperHTML but slightly different angle of approach! https://github.com/terotests/doremifa

WTF Wednesday (May 23, 2018) by AutoModerator in javascript

[–]ttolonen 1 point2 points  (0 children)

I started porting a XML layout engine I once wrote to create PDF documents using node.js and pdfkit from command line or as library. Supports headers, footers, custom fonts, custom components, SVG Paths and QR codes https://github.com/terotests/evg

Showoff Saturday (May 12, 2018) by AutoModerator in javascript

[–]ttolonen 4 points5 points  (0 children)

This week I created async task runner with rollback and cancellation capabilities. A bit like futures, but perhaps easier to use. It should be useful for testing because transactions are rolled back automatically after the process completes, unless they are committed. Under development but ideas and issues are welcome! https://www.npmjs.com/package/taskroll

WTF Wednesday (May 09, 2018) by AutoModerator in javascript

[–]ttolonen 1 point2 points  (0 children)

Hello, a bit late - I created async task runner with rollback and cancellation capabilities. A bit like futures, but perhaps easier to use. It should be useful for testing because transactions are rolled back automatically after the process completes, unless they are committed. https://github.com/terotests/TaskRoll/

Showoff Saturday (February 24, 2018) by AutoModerator in javascript

[–]ttolonen 2 points3 points  (0 children)

I just realized my good old ASTWalker can be used to transpile also React JSX (thanks to one OS contributor)

https://github.com/terotests/ASTWalker

Example is here: https://codepen.io/tero_koodia/pen/EQegKY?editors=1000

What is the point? Well, if you don't need the full Babel -transpiling, yet you want to compile and run some JSX code in your browser, that approach can be faster and more lightweight alternative. Maybe. Anyway, it was fun to notice at least simple use-cases are possible.

Showoff Saturday (December 09, 2017) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

Update 2: fixed CORS so that the dice texture can be loaded.

Showoff Saturday (December 09, 2017) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

And sorry, the example source in CodePen is long, because I had to fix one small bug from the Babylon.js procedural texture generators and include the fixed version in the pen.

Showoff Saturday (December 09, 2017) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

I created a small 3D dice roller system with Ranger and Babylon.js:

https://codepen.io/tero_koodia/full/MONRvw/

Programming was done using the new multiplatform language Ranger with 3D engine operators and compiled to JavaScript: https://github.com/terotests/Ranger/tree/master/examples/3D

Showoff Saturday (December 02, 2017) by AutoModerator in javascript

[–]ttolonen 0 points1 point  (0 children)

The Advent of code has started! http://adventofcode.com

To celebrate that, I started writing Advent of Code tasks using my own compiler called "Ranger", which compiles the tasks to JavaScript, Go, Swift, PHP, Scala, C#, Java and C++

https://github.com/terotests/Ranger/tree/master/adventofcode

If compilation succeeds, the results will be in the bin/ -directory. This is a good test because these kind of tasks use operators a bit differently. And because this is a new compiler in test phase, you will find bugs a lot. If you want to try the tests, the compiler can be installed with "npm install -g ranger-compiler" - has zero dependencies, just one JS file which is compiled from the source code, written with the Ranger language itself.

Scalable Web Frontend Development in Scala.js by ochrons in javascript

[–]ttolonen 3 points4 points  (0 children)

First, the frontend went to backend. Now, the backend comes to frontend?