Tutorial by Topics: on

A Singleton is designed to ensure a class only has one instance and provides a global point of access to it. If you only require one instance or a convenient global point of access, but not both, consider other options before turning to the singleton. Global variables can make it harder to reason...
Inline expansion is a common optimization in compiled code that prioritized performance over binary size. It lets the compiler replace a function call with the actual body of the function; effectively copy/pasting code from one place to another at compile time. Since the call site is expanded to j...
.on('mouseover', function) .on('mouseout', function) .on('click', function) .on('mouseenter', function) .on('mouseleave', function) For a more in depth example where custom events are defined refer here.
val (|>) : 'a -> ('a -> 'b) -> 'b val (@@) : ('a -> 'b) -> 'a -> 'b
.css( cssProperty ) // Get the rendered CSS property value .css( [cssProperty , ...] ) // Get values from Array of cssProperties .css( cssProperty, value ) // Set value .css( {cssProperty:value, ...} ) // Set properties and values .css( cssProperty, function ) // Expose the cssProperty to a...
type CancelFunc func() func Background() Context func TODO() Context func WithCancel(parent Context) (ctx Context, cancel CancelFunc) func WithDeadline(parent Context, deadline time.Time) (Context, CancelFunc) func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc) func...
Sessions are derived from dictionaries which means they will work with most common dictionary methods.
Lifecycle methods are to be used to run code and interact with your component at different points in the components life. These methods are based around a component Mounting, Updating, and Unmounting.
strsplit( x split fixed = FALSE perl = FALSE useBytes = FALSE)
An F() expression is a way for Django to use a Python object to refer to the value of model field or annotated column in the database without having to pull the value into Python memory. This allows developers to avoid certain race conditions and also filtering results based on model field values. ...
I18n.t("key") I18n.translate("key") # equivalent to I18n.t("key") I18n.t("key", count: 4) I18n.t("key", param1: "Something", param2: "Else") I18n.t("doesnt_exist", default: "key") # specify a default i...
MD5 and SHA1 are insecure and should be avoided. The examples exist for educational purposes and due to the fact that legacy software may still use these algorithms.
new Intl.NumberFormat() new Intl.NumberFormat('en-US') new Intl.NumberFormat('en-GB',{timeZone: 'UTC'}) ParamaterDetailsweekday"narrow", "short", "long"era"narrow", "short", "long"year"numeric", "2-digit"month&...
=DATEDIF(start_date,end_date,unit) UnitReturns"Y"The number of complete years in the period"M"The number of complete months in the period"D"The number of days in the period"MD"The difference between the days in start_date and end_date. The months and ...

Page 26 of 121