Js. New way of creating methods in objects
// lets say we have some object here let range = { from: 1, to: 5 } range[‘anyMethod’] = function(){ return ‘hi from new way
// lets say we have some object here let range = { from: 1, to: 5 } range[‘anyMethod’] = function(){ return ‘hi from new way
Here is the box model
this will squeze box to definite size, for example 300 px width
box { width: 300px; box-sizing: border-box; }
This code will increase font size to 90 px. 3em means multiply to 300 %.
… <head> <style> body { font-size: 30px; } </style> </head>
Merge and overriding. Stylesheet (0) – > Style in header (1) -> Style Tag in other tag (2). In embraces the priority of the tag.
There are 3 ways of styling html page
From external file, linking through <link> tagFrom <style> tag on the pageFrom inline <style> tag inside some
Что такое хэлпер, можно прочитать здесь. Если кратко, то это класс расширяющий функциональность другого класса. Это немного похоже на наследование, но синтаксически выглядит по-другому, а
Простой пример шаблона визитер. Когда нужно вставить новую функциональность, почти не меняя класса.
unit uVisitor; interface uses SysUtils, System.Generics.Collections; type TElement = class private FName:
Из проекта
uses System.SysUtils, System.Classes, System.Generics.Collections, Rtti, xsuperjson, xsuperobject, System.TypInfo, System.Generics.Defaults; {hash map for objects on TDictionary and TList<>} THashMap<K, V> = class private FDictionary:
According to stackOverflow
svn update svn merge -r 150:140 . svn commit -m «Rolled back to r140»
Этот пример можно найти в библиотеке Spring for Delphi, где-то примерно здесь
C:WorkDSeattlelibssglienke-spring4dSamplesIntroToDependencyInjection6-UseContainer
Как это работает? Для начала нам нужно зарегистрировать в контейнере классы
unit