Highcharts.setOptions({
lang: {
contextButtonTitle: "Menú contextual del diagrama",
decimalPoint: ",",
downloadJPEG: "Desa com a imatge JPEG",
downloadPDF: "Desa com a document PDF",
downloa...
An XML document can contain a DTD. DTD stands for Document Type Declaration. A DTD begins with <!DOCTYPE root-element-name > where doc-element-name must match the name of the so-called document element (the one element at the top-level).
<?xml version="1.0"?>
<!DOCTYPE doc...
A DTD can contain entity declarations.
<?xml version="1.0"?>
<!DOCTYPE document [
<!ENTITY my-entity "This is the replacement text">
]>
<document>
<!-- the rest of the document -->
</document>
Entities are described in details in ...
To view line numbers from Default view enter
:set number
To hide line numbers
:set nonumber
There is also a shortcut for above. nu is same as number.
:set nonu
To hide line numbers, we can also use
:set nu!
int main (void)
{
const int foo_readonly = 10;
int *foo_ptr;
foo_ptr = (int *)&foo_readonly; /* (1) This casts away the const qualifier */
*foo_ptr = 20; /* This is undefined behavior */
return 0;
}
Quoting ISO/IEC 9899:201x, section 6.7.3 §2:
If an attempt i...
Add-ons:
Firefox add-ons are generally grouped into Extensions, and then "other types" of Firefox add-ons.
Extensions
Extensions allow Firefox to be customized by adding to or modifying the functionality of Firefox. Some of the types of things which can be done with extensions include:...
Format strings may contain named placeholders that are interpolated using keyword arguments to format.
Using a dictionary (Python 2.x)
>>> data = {'first': 'Hodor', 'last': 'Hodor!'}
>>> '{first} {last}'.format(**data)
'Hodor Hodor!'
Using a dictionary (Python 3.2+)
>>...
A variable declared constexpr is implicitly const and its value may be used as a constant expression.
Comparison with #define
A constexpr is type-safe replacement for #define based compile-time expressions. With constexpr the compile-time evaluated expression is replaced with the result. For examp...
Ada is a programming language for which there exists multiple compilers.
One of these compilers, and perhaps the most used, is GNAT. It is part of the GCC toolchain. It can be installed from several sources:
The yearly GPL release done by AdaCore, available for free on libre site. This ver...
Note: This example is based on the Oracle JVM implementation.
Built-in tools like jmap, jconsole, and jvisualvm are available in a JDK and can be used to generate and analyze heap memory dumps taken from a running JVM application. However, one option to generate a heap dump without using JDK tools ...
class Foldable t where
{-# MINIMAL foldMap | foldr #-}
foldMap :: Monoid m => (a -> m) -> t a -> m
foldMap f = foldr (mappend . f) mempty
foldr :: (a -> b -> b) -> b -> t a -> b
foldr f z t = appEndo (foldMap (Endo #. f) t) z
-- and a nu...
class (Functor t, Foldable t) => Traversable t where
{-# MINIMAL traverse | sequenceA #-}
traverse :: Applicative f => (a -> f b) -> t a -> f (t b)
traverse f = sequenceA . fmap f
sequenceA :: Applicative f => t (f a) -> f (t a)
sequenceA = t...
A method can take an array parameter and destructure it immediately into named local variables. Found on Mathias Meyer's blog.
def feed( amount, (animal, food) )
p "#{amount} #{animal}s chew some #{food}"
end
feed 3, [ 'rabbit', 'grass' ] # => "3 rabbits chew some gra...