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
package dev.mwtaylor.terraincognita.demo | |
class Hello(private val name: String = "World") { | |
fun sayHello() { | |
println("Hello, ${name}!!!") | |
} | |
} | |
fun main() { | |
val hello = Hello() |
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
3.times do | |
puts 'Hello World' | |
end | |
class Greeter | |
attr_accessor :name | |
def initialize(name = "World") | |
@name = name | |
end |
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
https://en.wikipedia.org/wiki/Ukkonen%27s_algorithm | |
https://en.wikipedia.org/wiki/Suffix_tree | |
https://www.cs.helsinki.fi/u/ukkonen/SuffixT1withFigs.pdf |
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
Example in Node of how to run many async tasks in parallel with a limit of how many can run at once and then collect all the results. |
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
https://openjdk.org/jeps/441 |
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
This Gist contains a demo of how to use internationalization in Java, including: | |
- formatting numbers | |
- formatting percents | |
- formatting dates and times | |
- formatting currency | |
- showing translated messages |