Skip to content

Instantly share code, notes, and snippets.

View shenjiayu's full-sized avatar
🎯
Focusing

Jiayu Shen shenjiayu

🎯
Focusing
  • Sydney, Australia
View GitHub Profile
class Validator {
static Map<String, Function> _rules = {
'required': (String value) {
if (value.isEmpty) return false;
return true;
},
// extends to support more rules,
// such as between:1,10
// min:1
0469dbbaf9f68ed3399796237d05949e90cb5408e66332c228ee83a605fb0c25f0f6666cb2ebf750532466bb90f5b7555b970d13c402e070e4c0d400c39745890c
opcache.enable=1
opcache.memory_consumption=512
opcache.interned_strings_buffer=64
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0
opcache.save_comments=1
opcache.fast_shutdown=1