#Users
- User object
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
| extends Node | |
| func _ready() -> void: | |
| # MyScene is a `class_name` in a `.gd` script with an associated `.tscn` file | |
| var scene = Instantiate.scene(MyScene) | |
| add_child(scene) |
| import { getZodConstraint, parseWithZod } from "@conform-to/zod" | |
| import type { HTMLAttributes } from "astro/types" | |
| import { ZodAny, z, type ZodIssue } from "zod" | |
| export type Constraint = ReturnType<typeof getZodConstraint>[0] | |
| export type FieldAttributes = { | |
| name: string | |
| value: string | |
| type: NonNullable<HTMLAttributes<"input">["type"]> | |
| } & Partial<Record<Lowercase<keyof Constraint>, any>> |
| # as of godot 4.1 | |
| _static_init | |
| _init | |
| _notification 20 Node.NOTIFICATION_SCENE_INSTANTIATED # only on instantiated scene roots | |
| _notification 18 Node.NOTIFICATION_PARENTED | |
| _enter_tree | |
| tree_entered signal | |
| _notification 27 Node.NOTIFICATION_POST_ENTER_TREE | |
| _ready | |
| ready signal |
#Users
{
id: integer
username: string
email: string
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
| /** | |
| * Luhn Class is an implementation of the Luhn algorithm that checks validity of a credit card number. | |
| * | |
| * @author <a href="http://www.chriswareham.demon.co.uk/software/Luhn.java">Chris Wareham</a> | |
| * @version Checks whether a string of digits is a valid credit card number according to the Luhn algorithm. 1. Starting with the second to last digit and | |
| * moving left, double the value of all the alternating digits. For any digits that thus become 10 or more, add their digits together. For example, | |
| * 1111 becomes 2121, while 8763 becomes 7733 (from (1+6)7(1+2)3). 2. Add all these digits together. For example, 1111 becomes 2121, then 2+1+2+1 is | |
| * 6; while 8763 becomes 7733, then 7+7+3+3 is 20. 3. If the total ends in 0 (put another way, if the total modulus 10 is 0), then the number is valid | |
| * according to the Luhn formula, else it is not valid. So, 1111 is not valid (as shown above, it comes out to 6), while 8763 is valid (as shown | |
| * above, it comes ou |
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| <?php | |
| /** | |
| * Dump helper. Functions to dump variables to the screen, in a nicley formatted manner. | |
| * @author Joost van Veen | |
| * @version 1.0 | |
| */ | |
| if (!function_exists('dump')) { | |
| function dump ($var, $label = 'Dump', $echo = TRUE) | |
| { | |
| // Store dump in variable |