Java 8 gives flexible ways to perform asynchronous tasks. One of a such ways is usage of CompletableFuture.
Saturday, December 17, 2016
Friday, November 25, 2016
Void function as argument in Java and Scala
How to use void function without arguments as parameter for a method in Scala and Java.
See
https://ysden123.wordpress.com/2016/11/24/void-function-as-argument-in-java-and-scala/
See
https://ysden123.wordpress.com/2016/11/24/void-function-as-argument-in-java-and-scala/
Tuesday, August 30, 2016
Saturday, June 4, 2016
node-pre-commit
Pre-commit Git hook for NodeJS
This is adapted version of the pre-commit package.
Link to original code: Original code
Adapted version works under Windows too.
Package was tested under SourceTree.
Example of package.json:
...
"scripts": {
"test": "mocha test"
},
"pre-commit": [
"test"
],
...
"devDependencies": {
"chai": "",
"node-pre-commit": "" }
Thursday, May 12, 2016
Saturday, April 30, 2016
angular-nodejs-bwt
AngularJS Basic Web Templates for NodeJS.
Source code is here: https://github.com/ysden123/angular-nodejs-bwt
AngularJS Basic Web Templates for NodeJS
Basic templates for building web application using AngularJS. These templates may be used as start points for new web application.
Dropdown Site Menu
The folder dropdownSiteMenu is example of a web site with dropdown menus. The ng-class dropdown is used. The controller fills the menus content. The main page uses UI routing for switching page content.
Dropdown Site Menu with Templates
The folder ddSiteMenuTemplate is example of a web site with dropdown menus using templates. The uib-dropdown-menuclass is used. The main page demonstrates different allocations of the menu templates: inside main page or in separated HTML files. The main page uses UI routing for switching page content.
Saturday, March 26, 2016
CSV File Reader for NodeJS
One of our projects on NodeJS requires parsing of a CSV files. I found a nice package node-csv. The package receives a line in CSV format and parses it. Reading from file is out of scope in the node-csv package. A csvReader package allows reading from a file and parse CSV lines. For more information look here
Saturday, March 5, 2016
Operators for Collections in Scala (v2)
Short reminder of operators
for collections in the Scala, version 2. Previous version: Operators for Collections in Scala
Friday, February 12, 2016
Scala project in Eclipse
How to create a project in Eclipse to develop on Scala and to use SBT:
https://ysden123.wordpress.com/2016/02/12/scala-project-in-eclipse/
Assume you want use SBT and Eclipse to develop a project on Scala. This article describes main steps of creation an Eclipse project for Scala with using SBT.
Saturday, January 2, 2016
Finite State Machine on Scala
Yes, another one Finite State Machine (FSM) on Scala!
The best way studying a new language – to write simple real task. I chose FSM.
The best way studying a new language – to write simple real task. I chose FSM.
Labels:
condition,
finite,
fsm,
machine,
model,
programming,
scala,
state,
transition
Subscribe to:
Posts (Atom)