what is defined for Linux or Mac
https://iq.opengenus.org/detect-operating-system-in-c/
__APPLE__
__unix__
__linux__
what is defined for Linux or Mac
https://iq.opengenus.org/detect-operating-system-in-c/
__APPLE__
__unix__
__linux__
#ifndef
https://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC36
Conditionals that test whether just one name is defined are very common, so there are two special short conditional directives for this case.
#ifdef name...is equivalent to
#if defined (name).
#ifndef name...is equivalent to
#if ! defined (name).
#define
https://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC10
Section 1.4.1 Simple Macros
A simple macro is a kind of abbreviation. It is a name which stands for a fragment of code. Some people refer to these as manifest constants.
Before you can use a macro, you must define it explicitly with the
#definedirective.#defineis followed by the name of the macro and then the code it should be an abbreviation for. For example,
#define BUFFER_SIZE 1020defines a macro named
BUFFER_SIZEas an abbreviation for the text1020. If somewhere after this#definedirective there comes a C statement of the form <br>foo = (char *) xmalloc (BUFFER_SIZE);then the C preprocessor will recognize and expand the macro
BUFFER_SIZE, resulting in
foo = (char *) xmalloc (1020);
parent container
"an element that contains another element."
Canvas
"The Canvas API provides a means for drawing graphics via JavaScript and the HTML <canvas> element. Among other things, it can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing. The Canvas API focuses on 2D graphics."
WebGL
"WebGL is a JavaScript API for rendering interactive 2D and 3D graphics within any compatible web browser without the use of plug-ins."
A study published on Monday in the Proceedings of the National Academy of Sciences
The study: http://www.pnas.org/content/early/2018/04/18/1718155115
bitter physic
A purging medicine derived from a tropical nut. https://www.learnthat.org/dictionary/28404_physic.html
The following code
function wrapValue(n) { // function 'wrapValue is declared. Parameter is the variable 'n'.
var localVariable = n; // variable 'localVariable' is declared. Value of 'localVariable' equal to variable 'n'.
return function() { return localVariable; }; // the function and parameter becomes wrapValue(wrapValue(n)).
}
var wrap1 = wrapValue(1); // function call in parameter, so local variable recreated.
var wrap2 = wrapValue(2); // same as above.
console.log(wrap1()); // variable 'wrap1' is called as a function.
// → 1
console.log(wrap2()); // same as above.
// → 2
function definition
A function definition is the same as a function declaration or a function statement.
Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions
this rather nonsensical function
Comments added, with one parameter value changed.
var landscape = function() {
/*the variable 'landscape' has been defined
as a function()*/
var result = "";
/*the variable 'result' has been defined
with an empty string "", presumably to be
filled later.*/
var flat = function(size) {
/*the variable 'flat has been defined
as a function(size), where 'size' is the
function's parameter.*/
for (var count = 0; count < size; count++)
result += "_";
/*this 'for' loop continues as long as the
variable 'count' is less than the function
parameter 'size'. The variable 'result'
adds the string "_" in every loop.
The function parameter 'size' is decided
below where variables 'flat' and 'mountain'
are called multiple times, each time with
a different value for parameter 'size'.*/
};
var mountain = function(size) {
result += "/";
/*this function starts the same way each
time by representing the left side of the
mountain with "/".*/
for (var count = 0; count < size; count++)
result += "'";
/*This 'for' loop for function 'mountain'
behaves the same as function 'flat', only
attaching a different string to variable
'result'.*/
result += "\\";
/*this function ends the same way each time
by representing the right side of the
mountain with "\". For this string to be
visible, it must be entered as "\\".*/
};
flat(3);
mountain(0);
flat(6);
mountain(1);
flat(1);
return result;
/*This return statement stops the execution
of function 'landscape' and returns values
from the functions called above.
It is not totally clear to me why the two
sub-functions have no return statements.*/
};
console.log(landscape());
/*Though no parameters are defined for
function 'landscape', empty parantheses ()
are still required.*/
we want a number.
Because binary operator * will be used.
If producing budget surpluses becomes the economic goal enshrined by law to be achieved, come what may, actions taken to achieve that could dampen economic activities within the system (the country) to the extent that government revenues would drop by more than the money it saves through cutting its spending, consequently increasing government debt rather than reducing it.
Any examples of this happening?
No one would suggest that a family should wait until they saved the whole value of the house before they bought it.
Why not?
they don’t know if what they’re turning in is good, not so good, or what they were supposed to do.
You know, if I'm taking student's work -- be it an assessment, answers to questions or a piece of writing -- I would like to know how confident students feel about their work.
Memory-catching "bait" could be a single word, a short phrase, or a sentence.
This is brilliant.
“Montessori materials are designed so that the child receives instant feedback as he works, allowing him to recognize, correct, and learn from his mistakes without adult assistance. Putting control of the activity in the child’s hands strengthens his self-esteem and self-motivation as well as his learning.”
This explains why so much emphasis is put on the (expensive) materials.
Materials are not manufactured in a factory (or shouldn't be) and are made with enormous quality of care. Materials avoid plastic, thereby often defaulting to wood.
I can see why this is ideal, but I'm not sure why it would be absolutely critical.
beautiful furniture needed to equip each Montessori classroom.
What makes 'beautiful furniture' so critical? And isn't that a one-time expense?
the very high cost of purchasing the educational materials
Has someone monopolized the market on materials?
This requires the teacher getting to know his or her students well and becoming proficient at the process of both formal and informal functional behavioral assessment and analysis which is discussed in detail in another section of Special Connections.
How does this apply to me, as a teacher with 600 students and infrequent interaction with them?
showing students the real value of their education
A challenge. Young people are not particularly adept at recognizing long-term benefits, or overcoming the allure of impulsivity. Can we appeal to the real, and immediate, value of what we're doing in class?
the way our bodies work
This is something we can readily introduce, and explore, in the second language classroom.
they need guidance but not sternness or punishment.
For students who know nothing but punishment to this point... can we expect them to respond based on 'love, trust, and clear but kind leadership' alone?
a chief reason why so many schools achieve so little education of value is that they already rely too much on coercion.
I'm reading this with the definition of 'persuading someone to do something by using threats.'