Laur's blog
Sign in Subscribe

scan

A collection of 2 posts
Scan Decorated Classes in Typescript
class

Scan Decorated Classes in Typescript

TL;DR: Make the decorator set a property in the class and look for it. While trying my hand at writing an ORM, I had a problem of initialising the database through a dummy instantiation of some models, without running an explicit command. In java, I can use code generation
Dec 21, 2016 1 min read
Get most recent modification date for a folder in python
date

Get most recent modification date for a folder in python

Finding out when a directory was most recently modified should be relatively easy; just perform a dir or a ls -l and you should have it. Sometimes you actually do, but not always (I remember my assembly days when I would write cool programs to manipulate the FAT information on
May 27, 2013 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost