Skip to content

Instantly share code, notes, and snippets.

View yole's full-sized avatar

Dmitry Jemerov yole

View GitHub Profile
@yole
yole / gist:d0c6dfeb7f8edeb234851f2e64bca8ca
Created September 17, 2023 19:03
Перевод "Пусть бегут неуклюже пешеходы по лужам..." на латынь
Currant inelegantur per lacunas pedestres,
Furat per vias imber edax.
Ambulantibus tamen minime comprehensum est,
Quare laetor ego partinax.
Ludo, ludo lyra mea
Visu omnibus vobis,
Tam natalis dies illa
Non fit aevo bis.
AbstractNode.java
Annotation.java
AnnotationElement.java
AnnotationValue.java
ArrayAccess.java
ArrayCreation.java
ArrayInitializer.java
Assert.java
AstVisitor.java
BinaryExpression.java
fun renderPersonList(persons: Collection<Person>): String {
return createHTML().table {
for (person in persons) {
tr {
td { +person.firstName }
td { +person.lastName }
}
}
}
}
@yole
yole / exposed-sample.kt
Created August 25, 2015 14:53
Exposed micro-sample
object CountryTable : IdTable() {
val iso = varchar("iso", 2).uniqueIndex()
val name = varchar("name", 250).uniqueIndex()
}
public class Country(id: EntityID) : Entity(id) {
var name: String by CountryTable.name
var iso: String by CountryTable.iso
}
@yole
yole / LineCount.java
Last active September 15, 2016 19:21
package chapter01;
import java.io.IOException;
import java.nio.file.*;
import java.util.List;
import java.util.stream.Stream;
public class LineCount {
private final int total;
private final int empty;
@yole
yole / gist:6f8f5cbba964489acf3d
Last active August 29, 2015 14:13
Global statistics for Kotlin language feature usage
Repositories analyzed: 596
Files analyzed: 11618
Lines analyzed: 956031
Error count: 694 in 23 projects
'by' delegations: 156 in 33 projects
Classes: 20923 in 562 projects
Companion objects: 1487 in 215 projects
Primary constructors with non-default visibility: 250 in 70 projects
Inner classes: 321 in 90 projects
Inner classes with outer type parameters: 34 in 18 projects
{
"data": {
"after": null,
"before": null,
"children": [
{
"data": {
"action": "banuser",
"date": 1331624328.0,
"description": null,
{
"data": {
"after": null,
"before": null,
"children": [
{
"data": {
"action": "approvelink",
"date": 1331619397.0,
"description": null,