template tag establishes a new data context object for its contents.
The properties of the data context object are where Spacebars looks when
resolving template tag names.
{{#with employee}}

Name: {{name}}

Age: {{age}}

{{/with}}
We can take advantage of the object specification form of a block tag to define an object with properties we name:
{{#with x=1 y=2}}
{{{getHTMLForPoint this}}}
{{/with}}
If the argument to #with
is falsy (by the same rules as for #if
), the
content is not rendered. An "else" block may be provided, which will be
rendered instead.
If the argument to #with
is a string or other non-object value, it may be
promoted to a JavaScript wrapper object (also known as a boxed value) when
passed to helpers, because JavaScript traditionally only allows an object for
this
. Use String(this)
to get an unboxed string value or Number(this)
to
get an unboxed number value.
Each
An #each
template tag takes a sequence argument and inserts its content for
each item in the sequence, setting the data context to the value of that item:

{{#each people}}

{{name}}

{{/each}}

The newer variant of #each
doesn't change the data context but introduces a
new variable that can be used in the body to refer to the current item:

{{#each person in people}}

{{person.name}}

{{/each}}

The argument is typically a Meteor cursor (the result of collection.find()
,
for example), but it may also be a plain JavaScript array, null
, or
undefined
.
An "else" section may be provided, which is used (with no new data context) if there are zero items in the sequence at any time.
You can use a special variable @index
in the body of #each
to get the
0-based index of the currently rendered value in the sequence.
Reactivity Model for Each
When the argument to #each
changes, the DOM is always updated to reflect the
new sequence, but it's sometimes significant exactly how that is achieved. When
the argument is a Meteor live cursor, the #each
has access to fine-grained
updates to the sequence -- add, remove, move, and change callbacks -- and the
items are all documents identified by unique ids. As long as the cursor itself
remains constant (i.e. the query doesn't change), it is very easy to reason
about how the DOM will be updated as the contents of the cursor change. The
rendered content for each document persists as long as the document is in the
cursor, and when documents are re-ordered, the DOM is re-ordered.
Things are more complicated if the argument to the #each
reactively changes
between different cursor objects, or between arrays of plain JavaScript objects
that may not be identified clearly. The implementation of #each
tries to be
intelligent without doing too much expensive work. Specifically, it tries to
identify items between the old and new array or cursor with the following
strategy:
- For objects with an
_id
field, use that field as the identification key - For objects with no
_id
field, use the array index as the identification key. In this case, appends are fast but prepends are slower. - For numbers or strings, use their value as the identification key.
In case of duplicate identification keys, all duplicates after the first are
replaced with random ones. Using objects with unique _id
fields is the way to
get full control over the identity of rendered elements.
Let
The #let
tag creates a new alias variable for a given expression. While it
doesn't change the data context, it allows to refer to an expression (helper,
data context, another variable) with a short-hand within the template:
{{#let name=person.bio.firstName color=generateColor}}

{{name}} gets a {{color}} card!

{{/let}}
Variables introduced this way take precedence over names of templates, global helpers, fields of the current data context and previously introduced variables with the same name.
Custom Block Helpers
To define your own block helper, simply declare a template, and then invoke it
using {{#someTemplate}}
(block) instead of {{> someTemplate}}
(inclusion)
syntax.
When a template is invoked as a block helper, it can use {{>
Template.contentBlock}}
and {{> Template.elseBlock}}
to include the block
content it was passed.
Here is a simple block helper that wraps its content in a div:
<template name="note">

{{> Template.contentBlock}}

</template>
You would invoke it as:
{{#note}}
Any content here
{{/note}}
Here is an example of implementing #unless
in terms of #if
(ignoring for the
moment that unless
is a built-in directive):
<template name="unless">
{{#if this}}
{{> Template.elseBlock}}
{{else}}
{{> Template.contentBlock}}
{{/if}}
</template>
Note that the argument to #unless
(the condition) becomes the data context in
the unless
template and is accessed via this
. However, it would not work
very well if this data context was visible to Template.contentBlock
, which is
supplied by the user of unless
.
Therefore, when you include {{> Template.contentBlock}}
, Spacebars hides the
data context of the calling template, and any data contexts established in the
template by #each
and #with
. They are not visible to the content block,
even via ..
. Put another way, it's as if the {{> Template.contentBlock}}
inclusion occurred at the location where {{#unless}}
was invoked, as far as
the data context stack is concerned.
You can pass an argument to {{> Template.contentBlock}}
or {{>
Template.elseBlock}}
to invoke it with a data context of your choice. You can
also use {{#if Template.contentBlock}}
to see if the current template was
invoked as a block helper rather than an inclusion.
Comment Tags
Comment template tags begin with {{!
and can contain any characters except for
}}
. Comments are removed upon compilation and never appear in the compiled
template code or the generated HTML.
{{! Start of a section}}

...

Comment tags also come in a "block comment" form. Block comments may contain
{{
and }}
:
{{!-- This is a block comment.
We can write {{foo}} and it doesn't matter.
{{#with x}}This code is commented out.{{/with}}
--}}
Comment tags can be used wherever other template tags are allowed.
Nested sub-expressions
Sometimes an argument to a helper call is best expressed as a return value of some other expression. For this and other cases, one can use parentheses to express the evaluation order of nested expressions.
{{capitalize (getSummary post)}}
In this example, the result of the getSummary
helper call will be passed to
the capitalize
helper.
Sub-expressions can be used to calculate key-word arguments, too:
{{> tmpl arg=(helper post)}}
HTML Dialect
Spacebars templates are written in standard HTML extended with additional syntax (i.e. template tags).
Spacebars validates your HTML as it goes and will throw a compile-time error if you violate basic HTML syntax in a way that prevents it from determining the structure of your code.
Spacebars is not lenient about malformed markup the way a web browser
is. While the latest HTML spec standardizes how browsers should
recover from parse errors, these cases are still not valid HTML. For
example, a browser may recover from a bare <
that does not begin a
well-formed HTML tag, while Spacebars will not. However, gone are the
restrictions of the XHTML days; attribute values do not have to
quoted, and tags are not case-sensitive, for example.
You must close all HTML tags except the ones specified to have no end
tag, like BR, HR, IMG and INPUT. You can write these tags as

or equivalently

.
The HTML spec allows omitting some additional end tags, such as P and LI, but Spacebars doesn't currently support this.
Top-level Elements in a .html
file
Technically speaking, the <template>
element is not part of the Spacebars
language. A foo.html
template file in Meteor consists of one or more of the
following elements:
<template name="myName">
- The<template>
element contains a Spacebars template (as defined in the rest of this file) which will be compiled to theTemplate.myName
component.
- Static HTML that will be inserted into the
element of the default HTML boilerplate page. Cannot contain template tags. If
is used multiple times (perhaps in different files), the contents of all of the
elements are concatenated.
- A template that will be inserted into the
of the main page. It will be compiled to theTemplate.body
component. If
is used multiple times (perhaps in different files), the contents of all of the
elements are concatenated.
Escaping Curly Braces
To insert a literal {{
, {{{
, or any number of curly braces, put a
vertical bar after it. So {{|
will show up as {{
, {{{|
will
show up as {{{
, and so on.
underscore
Underscore is a utility-belt library for JavaScript that provides support for functional programming. It is invaluable for writing clear, concise JavaScript in a functional style.
The underscore
package defines the _
namespace on both the client
and the server.
Currently, underscore is included in all projects, as the Meteor core depends on it. _ is available in the global namespace on both the client and the server even if you do not include this package. However if you do use underscore in your application, you should still add the package as we will remove the default underscore in the future.
We have slightly modified the way Underscore differentiates between
objects and arrays in collection functions.
The original Underscore logic is to treat any object with a numeric length
property as an array (which helps it work properly on
NodeList
s).
In Meteor's version of Underscore, objects with a numeric length
property
are treated as objects if they have no prototype (specifically, if
x.constructor === Object
.
webapp
The webapp
package is what lets your Meteor app serve content to a web
browser. It is included in the meteor-base
set of packages that is
automatically added when you run meteor create
. You can easily build a
Meteor app without it - for example if you wanted to make a command-line
tool that still used the Meteor package system and DDP.
This package also allows you to add handlers for HTTP requests. This lets other services access your app's data through an HTTP API, allowing it to easily interoperate with tools and frameworks that don't yet support DDP.
webapp
exposes the connect API for
handling requests through WebApp.connectHandlers
.
Here's an example that will let you handle a specific URL:
// Listen to incoming HTTP requests, can only be used on the server
WebApp.connectHandlers.use("/hello", function(req, res, next) {
res.writeHead(200);
res.end("Hello world from: " + Meteor.release);
});
WebApp.connectHandlers.use([path], handler)
has two arguments:
path - an optional path field.
This handler will only be called on paths that match
this string. The match has to border on a /
or a .
. For example, /hello
will match /hello/world
and /hello.world
, but not /hello_world
.
handler - this is a function that takes three arguments:
- req - a Node.js IncomingMessage object with some extra properties. This argument can be used to get information about the incoming request.
- res - a Node.js
ServerResponse
object. Use this to write data that should be sent in response to the
request, and call
res.end()
when you are done. - next - a function. Calling this function will pass on the handling of this request to the next relevant handler.
Command line
The following are some of the more commonly used commands in the meteor
command-line tool. This is just an overview and does not mention every command
or every option to every command; for more details, use the meteor help
command.
meteor help
Get help on meteor command line usage. Running meteor help
by
itself will list the common meteor
commands. Running meteor help command
will print
detailed help about the command.
meteor run
Run a meteor development server in the current project. Searches upward from the current directory for the root directory of a Meteor project. Whenever you change any of the application's source files, the changes are automatically detected and applied to the running application.
You can use the application by pointing your web browser at localhost:3000. No Internet connection is required.
This is the default command. Simply running meteor
is the
same as meteor run
.
To pass additional options to Node.js use the NODE_OPTIONS
environment variable.
For example: NODE_OPTIONS='--debug'
or NODE_OPTIONS='--debug-brk'
Run meteor help run
to see the full list of options.
meteor debug
Run the project, but suspend the server process for debugging.
The server process will be suspended just before the first statement of server code that would normally execute. In order to continue execution of server code, use either the web-based Node Inspector or the command-line debugger (further instructions will be printed in the console).
Breakpoints can be set using the debugger
keyword, or through the web UI of Node Inspector ("Sources" tab).
The server process debugger will listen for incoming connections from
debugging clients, such as node-inspector, on port 5858 by default. To
specify a different port use the --debug-port <port>
option.
The same debugging functionality can be achieved by adding the --debug-port <port>
option to other meteor
tool commands, such as meteor run
and meteor test-packages
.
meteor create name
Create a new Meteor project. By default, makes a subdirectory named name and copies in the template app. You can pass an absolute or relative path.
You can use the --package
option, to create a new package. If used in an
existing app, this command will create a package in the packages
directory.
meteor login / logout
Log in and out of your account using Meteor's authentication system.
You can pass METEOR_SESSION_FILE=token.json
before meteor login
to generate
a login session token so you don't have to share your login credentials with
third-party service providers. You can revoke the token at any time from your
accounts settings page.
Once you have your account you can log in and log out from the command line, and
check your username with meteor whoami
.
meteor deploy site
Deploy the project in your current directory to Galaxy.
You can deploy in debug mode by passing --debug
. This
will leave your source code readable by your favorite in-browser
debugger, just like it is in local development mode.
To delete an application you've deployed, specify
the --delete
option along with the site.
You can add information specific to a particular deployment of your application
by using the --settings
option. The argument to --settings
is a file
containing any JSON string. The object in your settings file will appear on the
server side of your application in Meteor.settings
.
Settings are persistent. When you redeploy your app, the old value will be
preserved unless you explicitly pass new settings using the --settings
option.
To unset Meteor.settings
, pass an empty settings file.
meteor update
Attempts to bring you to the latest version of Meteor, and then to upgrade your packages to their latest versions. By default, update will not break compatibility.
For example, let's say packages A and B both depend on version 1.1.0 of package
X. If a new version of A depends on<EMAIL_ADDRESS>but there is no new version of
package B, running meteor update
will not update A, because doing so will
break package B.
You can pass in the flag --packages-only
to update only the packages, and not
the release itself. Similarly, you can pass in names of packages
(meteor update foo:kittens baz:cats
) to only update specific packages.
Every project is pinned to a specific release of Meteor. You can temporarily try
using your package with another release by passing the --release
option to any
command; meteor update
changes the pinned release.
Sometimes, Meteor will ask you to run meteor update --patch
. Patch releases
are special releases that contain only very minor changes (usually crucial bug
fixes) from previous releases. We highly recommend that you always run update
--patch
when prompted.
You may also pass the --release
flag to act as an override to update to a
specific release. This is an override: if it cannot find compatible versions of
packages, it will log a warning, but perform the update anyway. This will only
change your package versions if necessary.
meteor add package
Add packages to your Meteor project. By convention, names of community packages
include the name of the maintainer. For example: meteor add iron:router
. You
can add multiple packages with one command.
Optionally, adds version constraints. Running meteor add<EMAIL_ADDRESS>will
add the package at version 1.1.0
or higher (but not 2.0.0
or higher). If you
want to use version 1.1.0
exactly, use meteor add<EMAIL_ADDRESS>. You can also
'or' constraints together: for example, meteor add<EMAIL_ADDRESS>|| =2.0.1'
means either 1.0.0 (exactly) or 2.0.1 (exactly).
To remove a version constraint for a specific package, run meteor add
again
without specifying a version. For example above, to stop using version 1.1.0
exactly, run meteor add package
.
meteor remove package
Removes a package previously added to your Meteor project. For a
list of the packages that your application is currently using, run
meteor list
.
This removes the package entirely. To continue using the package,
but remove its version constraint, use meteor add
.
Meteor does not downgrade transitive dependencies unless it's necessary. This
means that if running meteor add A
upgrades A's parent package X to a new
version, your project will continue to use X at the new version even after you
run meteor remove A
.
meteor list
Lists all the packages that you have added to your project. For each package, lists the version that you are using. Lets you know if a newer version of that package is available.
meteor add-platform platform
Adds platforms to your Meteor project. You can add multiple
platforms with one command. Once a platform has been added, you
can use 'meteor run platform' to run on the platform, and meteor build
to build the Meteor project for every added platform.
meteor remove-platform platform
Removes a platform previously added to your Meteor project. For a
list of the platforms that your application is currently using, see
meteor list-platforms
.
meteor list-platforms
Lists all of the platforms that have been explicitly added to your project.
meteor mongo
Open a MongoDB shell on your local development database, so that you can view or manipulate it directly.
For now, you must already have your application running locally
with meteor run
. This will be easier in the future.
meteor reset
Reset the current project to a fresh state. Removes the local mongo database.
This deletes your data! Make sure you do not have any information you
care about in your local mongo database by running meteor mongo
.
From the mongo shell, use show collections
and db.collection.find()
to inspect your data.
For now, you can not run this while a development server is running. Quit all running meteor applications before running this.
meteor build
Package this project up for deployment. The output is a directory with several build artifacts:
- a tarball that includes everything necessary to run the application server
(see the
README
in the tarball for details) - an unsigned
apk
bundle and a project source if Android is targetted as a mobile platform - a directory with an Xcode project source if iOS is targetted as a mobile platform
You can use the application server bundle to host a Meteor application on your own server, instead of deploying to Galaxy. You will have to deal with logging, monitoring, backups, load-balancing, etc, all of which we handle for you if you use Galaxy.
The unsigned apk
bundle and the outputted Xcode project can be used to deploy
your mobile apps to Android Play Store and Apple App Store.
By default, your application is bundled for your current architecture.
This may cause difficulties if your app contains binary code due to,
for example, npm packages. You can try to override that behavior
with the --architecture
flag.
meteor lint
Run through the whole build process for the app and run all linters the app uses. Outputs all build errors or linting warnings to the standard output.
meteor search
Searches for Meteor packages and releases, whose names contain the specified regular expression.
meteor show
Shows more information about a specific package or release: name, summary, the usernames of its maintainers, and, if specified, its homepage and git URL.
meteor publish
Publishes your package. To publish, you must cd
into the package directory, log
in with your Meteor Developer Account and run meteor publish
. By convention,
published package names must begin with the maintainer's Meteor Developer
Account username and a colon, like so: iron:router
.
To publish a package for the first time, use meteor publish --create
.
Sometimes packages may contain binary code specific to an architecture (for
example, they may use an npm package). In that case, running publish will only
upload the build to the architecture that you were using to publish it. You can
use publish-for-arch
to upload a build to a different architecture from a
different machine.
meteor publish-for-arch
Publishes a build of an existing package version from a different architecture.
Some packages contain code specific to an architecture. Running publish
by
itself, will upload the build to the architecture that you were using to
publish. You need to run publish-for-arch
from a different architecture to
upload a different build.
For example, let's say you published name:cool-binary-blob from a Mac. If you
want people to be able to use cool-binary-blob from Linux, you should log into a
Linux machine and then run
meteor publish-for-arch name:cool-binary-blob@version
. It will notice that you
are on a linux machine, and that there is no Linux-compatible build for your package
and publish one.
Currently, the supported architectures for Meteor are 32-bit Linux, 64-bit Linux and Mac OS. Galaxy's servers run 64-bit Linux.
meteor publish-release
Publishes a release of Meteor. Takes in a JSON configuration file.
Meteor releases are divided into tracks. While only MDG members can publish to
the default Meteor track, anyone can create a track of their own and publish to
it. Running meteor update
without specifying the --release
option will not
cause the user to switch tracks.
To publish to a release track for the first time, use the --create-track
flag.
The JSON configuration file must contain the name of the release track
(track
), the release version (version
), various metadata, the packages
specified by the release as mapped to versions (packages
), and the package &
version of the Meteor command-line tool (tool
). Note that this means that
forks of the meteor tool can be published as packages and people can use them by
switching to a corresponding release. For more information, run
meteor help publish-release
.
meteor test-packages
Test Meteor packages, either by name, or by directory. Not specifying an
argument will run tests for all local packages. The results are displayed in an
app that runs at localhost:3000
by default. If you need to, you can pass the
--settings
and --port
arguments.
meteor admin
Catch-all for miscellaneous commands that require authorization to use.
Some example uses of meteor admin
include adding and removing package
maintainers and setting a homepage for a package. It also includes various
helpful functions for managing a Meteor release. Run meteor help admin
for
more information.
meteor shell
When meteor shell
is executed in an application directory where a server
is already running, it connects to the server and starts an interactive
shell for evaluating server-side code.
Multiple shells can be attached to the same server. If no server is
currently available, meteor shell
will keep trying to connect until it
succeeds.
Exiting the shell does not terminate the server. If the server restarts
because a change was made in server code, or a fatal exception was
encountered, the shell will restart along with the server. This behavior
can be simulated by typing .reload
in the shell.
The shell supports tab completion for global variables like Meteor
,
Mongo
, and Package
. Try typing Meteor.is
and then pressing tab.
The shell maintains a persistent history across sessions. Previously-run commands can be accessed by pressing the up arrow.


DROP HERE
DRAG FROM HERE
The desired function is for drag clone to change images when it crosses 400px left
------------------------------------------------------------------------------------


I looked around this site for sleep aids. I came across Melatonin, having tried everything else; I figured I would give it a go. I walked down to the store and picked up a bottle for 12 dollars. I took six 3mg pills last night; just to clarify, I am an insomniac. I still havenít fallen asleep. I have a natural high tolerance to everything, so it could just be me. It was a waste of money. It had absolutely no effect on me.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


package similarityEstimationModels
Type Members
- class BatetModel extends GenericSimilarityEstimatorModel
- class BraunBlanquetModel extends GenericSimilarityEstimatorModel
- class DiceModel extends GenericSimilarityEstimatorModel
-
class
GenericSimilarityEstimatorModel extends AnyRef
This class is the superclass for all novel created feature based semantic similarity models
This class is the superclass for all novel created feature based semantic similarity models
it provides a set of methods and mainly shouws how needed overwritten functions should look like
- class JaccardModel extends GenericSimilarityEstimatorModel
- class MinHashModel extends GenericSimilarityEstimatorModel
- class OchiaiModel extends GenericSimilarityEstimatorModel
- class SimpsonModel extends GenericSimilarityEstimatorModel
- class TverskyModel extends GenericSimilarityEstimatorModel


Reports unnecessary nested character classes. For example
[a-c[x-z]]
, which is equivalent too
[a-cx-z]
.
New in 2020.2


Android
iOS
| React, v0.36.0, Copyright (c) 2013-present, Facebook, Inc. | https://opensource.org/licenses/BSD-3-Clause |
| Tensorflow, 0.9.2, Copyright 2017 The TensorFlow Authors | https://www.apache.org/licenses/LICENSE-2.0 |
| CodePush, 1.16.0, Copyright (c) Microsoft Corporation | https://opensource.org/licenses/MIT |
| react-native-sqlite-storage, 3.1.2, Copyright (c) 2015 andpor | https://opensource.org/licenses/MIT |
| FactualiOS, 1.1.0, Copyright(c) 2017 Factual | https://www.factual.com/tos/api-data-terms |
| Fabric, 1.6.7, Copyright(c) 2017 Google | https://fabric.io/privacy |
| Tweaks, 2.1.0, Copyright(c) 2017 Facebook | https://opensource.org/licenses/BSD-3-Clause |
| Cocoalumberjack, 2.3.0, Copyright (c) 2010-2016, Deusty, LLC | https://opensource.org/licenses/BSD-3-Clause |
| SDWebImage, 3.8.2, Copyright (c) 2009-2017 Olivier Poitrey<EMAIL_ADDRESS>| https://opensource.org/licenses/MIT |
| SVProgressHUD, 2.1.2, Copyright (c) 2011-2017 Sam Vermette, Tobias Tiemerding and contributors. | https://github.com/SVProgressHUD/SVProgressHUD/blob/master/LICENSE.txt |
| Segment Analytics, 3.5.5, Copyright (c) 2016 Segment.io, Inc. | https://opensource.org/licenses/MIT |
| Specta, 1.0.5, Copyright (c) 2012-2014 Specta Team. | https://opensource.org/licenses/MIT |
| Expecta+Snapshots, 3.0.0, Copyright (c) 2014 Daniel Doubrovkine, Artsy Inc. | https://opensource.org/licenses/MIT |
| JSONModel, 1.4.0, Copyright (c) 2012-2016 Marin Todorov and JSONModel contributors | https://opensource.org/licenses/MIT |
| UICKeyChainStore, 2.0.6, Copyright (c) 2011 kishikawa katsumi | https://opensource.org/licenses/MIT |
| SocketRocket, 0.4.2, Copyright (c) 2016-present, Facebook, Inc. All rights reserved. | https://opensource.org/licenses/BSD-3-Clause |
| BFTask-Extras, 1, Copyright (c) 2015 Felix Dumit<EMAIL_ADDRESS>| https://opensource.org/licenses/MIT |
| DeepLinkKit, 1.2, Copyright (c) 2015-2016 Button, Inc. | https://opensource.org/licenses/MIT |
| CVKHierarchySearcher, 0.2, Copyright (c) 2014 Romans Karpelcevs<EMAIL_ADDRESS>| https://opensource.org/licenses/MIT |
| FLAnimatedImage, 1, Copyright (c) 2014-2016 Flipboard | https://opensource.org/licenses/MIT |
| CRToast, 0.0.8, Copyright (c) 2013 Cezary Wojcik <http://www.cezarywojcik.com>, Copyright (c) 2014 Collin Ruffenach | https://opensource.org/licenses/MIT |
| NUIParse , 1.2, Copyright (c) 2011, Thomas Davie | https://github.com/tombenner/NUIParse/blob/master/LICENSE |
| MBProgressHUD, 0.9, Copyright © 2009-2016 Matej Bukovinski | https://opensource.org/licenses/MIT |
| GPUImage, 0.1.7, Copyright (c) 2012, Brad Larson, Ben Cochran, Hugues Lismonde, Keitaroh Kobayashi, Alaric Cole, Matthew Clark, Jacob Gundersen, Chris Williams. | https://github.com/BradLarson/GPUImage/blob/master/License.txt |
| Masonry, 1, Copyright (c) 2011-2012 Masonry Team - https://github.com/Masonry | https://opensource.org/licenses/MIT |
| Parse, 1.14, Copyright (c) 2015-present, Parse, LLC. All rights reserved. | https://opensource.org/licenses/BSD-3-Clause |
| ParseFacebookUtilsV4, 1.11.1, Copyright (c) 2015-present, Parse, LLC. All rights reserved. | https://opensource.org/licenses/BSD-3-Clause |
| Pop, 1.0.9, Copyright (c) 2014, Facebook, Inc. All rights reserved. | https://opensource.org/licenses/BSD-3-Clause |
| AFNetworking, 3, Copyright (c) 2011-2016 Alamofire Software Foundation (http://alamofire.org/) | https://opensource.org/licenses/MIT |
Here One System Updater
| Name | Link |
| Click, copyright 2014 Armin Ronacher, 6.6 | https://github.com/pallets/click/blob/master/LICENSE |
| click-log, Copyright (c) 2014-2015 Markus Unterwaditzer & contributors, 0.1.4 | https://opensource.org/licenses/MIT |
| gitdb2, 2.0.2 | http://www.apache.org/licenses/LICENSE-2.0 |
| Gitpython, Copyright (C) 2008, 2009 Michael Trier and contributors, 2.1.0 | https://github.com/gitpython-developers/GitPython/blob/master/LICENSE |
| Psutil, Copyright (c) 2009, Jay Loden, Dave Daeschler, Giampaolo Rodola’, 5.2.0 | https://github.com/giampaolo/psutil/blob/master/LICENSE |
| Py 1.4.33 | https://github.com/python/cpython/blob/master/LICENSE |
| pycrypto 2.6.1 | https://github.com/dlitz/pycrypto/blob/master/COPYRIGHT |
| PyInstaller, Copyright (c) 2010-2017, PyInstaller Development Team, 3.1.1 | https://github.com/pyinstaller/pyinstaller/blob/develop/COPYING.txt |
| Pytest, Copyright (c) 2004-2017 Holger Krekel, 3.0.3 | https://opensource.org/licenses/MIT |
| PyYAML, Copyright (c) 2006 Kirill Simonov, 3.11 | https://opensource.org/licenses/MIT |
| Six, Copyright (c) 2010-2017 Benjamin Peterson, 1.10.0 | https://opensource.org/licenses/MIT |
| smmap2, Copyright (C) 2010, 2011 Sebastian Thiel and contributors, 2.0.2 | https://github.com/gitpython-developers/smmap/blob/master/LICENSE |
| wxPython, Copyright (C) 2003 Lindsay Mathieson, 4.0.0a2 | https://github.com/wxWidgets/wxPython/blob/master/contrib/activex/wxie/license.txt |
| Pylzma, Copyright (C) 1991, 1999 Free Software Foundation, Inc., 0.4.8 | https://github.com/fancycode/pylzma/blob/master/LICENSE |
| pySerial, Copyright (c) 2001-2016 Chris Liechti | https://github.com/pyserial/pyserial/blob/master/LICENSE.txt |


Set Theory, Calculus, Linear Algebra, Modern Algebra, Topology, Graph and Network Theory
Coding, Data-structures and Algorithms, Object Oriented Programming, Functional Programming, Molecular Programming
Optimization, Simulation, Machine Learning, Quantum Computing, DNA Computing, Cellular Automaton
We build your persionalized AI-guide to lead, evaluate and enhance your overall accomplishments.
"Data Scientist" is a decade old (2010-2019) concept. For the new decade (2020-2030), it is "Quantum Solution Scientist". Where are you?
"Data Scientist" is a decade old (2010-2019) concept. For the new decade (2020-2030), it is "Quantum Solution Scientist". Where are you?
School or college text-books are organized in tree structure of concepts. Our Learning materials are organized in a giant graph and tree data structure where connections are made through hierarchical relationship of contents, logics, basic concepts and learners average learning patterns. Each learner's learning trajectory is recorded, analyzed and recommendation is made while the achievement is coded into an array of scores. Let the learning be redefined!
An initial assessment is conducted on every learner's understanding of the subject matter. The initial state is declared through an initial assessment. As a learner starts to learn the concepts, he/she creates a personalized learning trajectory over the vast knowledge-space. As the learner propagates into the vast network of concepts, the learner's knowledge status is updated.
Every learner is a random walker visiting several nodes in the vast knowledge-space. In each node, a learner learns a specific concept. After completing the content, each learner is asked a specific quiz or problem to measure his/her accomplishment. When a learner visits 50-100 nodes, we prepare a learner's learning trajectory. After accomplishing a sufficient amount of nodes in a specific topic, a learner prepares a finger-printing of own learning attitude, understanding concepts as a personalized score (tensor).
When a learner learns a sufficient amount of concepts by visiting many concept nodes, we can simultaneously keep updating the learner's progress score in an array highlighting progress in basic math, logic, coding, theory etc. Progress report not only measures the learner's ability to solve the problem, it will also measure the efficiency, exploratory attitude, problem solving strategy development skills etc. Progress report is not created at the end, it is created side by side as a learner propagates into the knowledge-space.
As learners start to build up learning history, based on their learning ability, our AI based system activates the different level of exploration (e.g., accessing knowledge-space in research and articles in arxiv organized in graph data structure). On completing one concept, another higher concept in the hierarchy is recommended if required fundamental concepts are done. Recommendation can lead to research level as well. For example a curious explorer can learn and explore the concepts from recently added arxiv contents.
When a learner feels lacking in basic concepts (e.g., math, coding) before heading to learn the provided concept (e.g., product of matrices not understood while taking machine learning, a detour is recommended to an algebra brushup). Detour is recommended automatically when a learner is failed to answer or respond interactively in the learning platform. Learners can switch to basic concepts directly through links provided and come back based on their requirement.
A true structure of a concept or knowledge is a graph and network (e.g., knowledge-graph), not a text-book or a couple of pdf files. Cutting edge computational tools can enhance our learning and exploring exercise. Since our platform is personalized for a learner, it can also guide a researcher to explore vast amounts of knowledge space e.g., arxiv papers in Quantum Computing.


Taking Notes for Source Code in Emacs
Table of Contents
1 Intro
Studying/maintaining large software projects often demands reading loads of source code. That renders taking notes for the source code inevitable. This article enumerates some techniques which are useful for Emacs users when taking such kind of notes. It also gives a patch to include certain functions of a source file.
In the following sections, I assume you are already familiar with the basics of Emacs and org mode. Also, please note the Emacs/org version I am using (listed at the end of this web page). And, I do encourage you to copy 9 into your Emacs buffer and try to move around to get a feel about it. The exported html page lost many links.
At last, almost everything in this article is from org manual. Turn to it for more details if you need.
2 Highlight my notes
The most basic requirement might be copying a block of code into the note file (orgmode) and add notes among lines of the code.
This is simple. The most hard thing to me is rather find a proper face for my notes. The following is an example.
2.1 Add this configure to your org-mode hook.
(highlight-lines-matching-regexp "lgf:" org-document-info)
2.2 Tag every line of your notes with the keyword defined
/* normal comment */ int main(int argc, char *argv[]) { /* lgf: this is my note, lgf: how do you feel? */ return 0; // another style of normal comment }
2.3 The look in orgmode
In case you want to take a look at the output before getting your hands wet, here is a screen-shot
2.4 Make it "fill" better
A minor issue of the previous highlighting solutions is: if your notes extend more than one line, you definitely want the fill-paragraph can deal with it.
The code snippet below highlights the configuration needed for C code, refer to my configure file for details.
(defconst lgfang-c-style '((c-offsets-alist . ((c . 1) ; "c" for continue of comment, NOT "clanguage" ;; other offsets )) (c-block-comment-prefix . "lgf: ") (c-comment-prefix-regexp . ((awk-mode . "#+(lgf: )?") (other ."lgf: \\|//+\\|\\**"))) ;; other style settings ) "lgfang's C Programming Style") (c-add-style "lgfang" lgfang-c-style nil) (add-hook 'c-mode-common-hook (lambda () (c-set-style "lgfang") ;; ... ))
3 Link into source blocks
Go to this uniquely "tagged" line with C-c C-o
when point is on the
link.
If you do not want the tag show up in exported html page, add switch "-r" like I did.
Normal internal targets works the same in and out the source block.
Radio targets within source blocks work as well with a trick: copy all the radio targets to the end of the notes so links to radio targets are recognized as usual. However, since Emacs goes to the first match it goes to the the targets in source blocks.
4 Link out from source blocks
Just as usual except that you can only use BEGIN_EXAMPLE
(or add
nothing in the BEGIN_SRC
line).
1: print 'The following lines are examples of links' 2: 3: # The following line are examples of links 4: 5: # [[*Link out from source blocks]] (link-back) 6: 7: # <<normal internal targets>> 8: 9: # <<<Radio targets>>> here 10: 11: # [[(cross-file-link)]] links into another source block
This means you lost a bunch of handy features.
The good news is, though, that:
- what are lost are not that important since we are taking and will read the notes in Emacs org mode.
- And, we can use string-replace to add/remove language later.
4.1 Circumvent the limitation
If you do want the capability of link out from within src block, here is the hack:
*** org/lisp/org.el.orig 2014-02-26 14:35:17.518888700 +0800 --- org/lisp/org.el 2014-02-26 14:36:26.301814000 +0800 *************** *** 10314,10320 **** application the system uses for this file type." (interactive "P") ;; if in a code block, then open the block's results ! (unless (call-interactively #'org-babel-open-src-block-result) (org-load-modules-maybe) (move-marker org-open-link-marker (point)) (setq org-window-config-before-follow-link (current-window-configuration)) --- 10314,10320 ---- application the system uses for this file type." (interactive "P") ;; if in a code block, then open the block's results ! (unless nil (org-load-modules-maybe) (move-marker org-open-link-marker (point)) (setq org-window-config-before-follow-link (current-window-configuration))
5 Link into source files
Go to 10^th line of lgfang.init.el.
Go to lines matching regexp 'org.*global/' in lgfang.init.el, case
insensitive. C-c <left>
(or M-x winner-undo) to back.
Also, see this example of link to a org header
To go back, there are a number of ways:
- In org-mode, right click mouse which is bound to
org-mark-ring-goto
. - In other-mode,
M-x org-mark-ring-goto
. - Or, usually, just
C-x 0
orC-c <left>
(winner-undo
) is enough.
6 Link within or out from source files
Last but not least (actually this is the most important feature mentioned in this post), you can practically jump among all kinds of text files which Emacs can handle as you can in org files.
- Bind a key
(define-key global-map (kbd "C-x c o") 'org-open-at-point-global)
- Make links in source files just as you are in org-mode.
NOTE: this is an example of cross-file link, put it into a source file and try C-x c o (ref:cross-file-link) [[file:./emacs-code-notes.org::*Link within or out from source files]]
C-x c o
to follow links in source files
7 Include files
#+INCLUDE: ~/.emacs src emacs-lisp #+INCLUDE: "~/.emacs" :lines "5-10" => Include lines 5 to 10, 10 excluded #+INCLUDE: "~/.emacs" :lines "-10" => Include lines 1 to 10, 10 excluded #+INCLUDE: "~/.emacs" :lines "10-" => Include lines from 10 to EOF
8 Patch to include functions
#+INCLUDE: "~/.emacs" :defun test => include the function "test"
This is my work which makes "#+include:" support the notation of :defun
function_name
. Dirty it might be, it works anyway :).
*** ox.el.8.2.10 2015-02-26 15:57:14.198343900 +0800 --- ox.el 2015-02-27 14:09:05.567515300 +0800 *************** *** 3251,3256 **** --- 3251,3262 ---- value) (prog1 (match-string 1 value) (setq value (replace-match "" nil nil value))))) + (func + (and (string-match + ":defun \\(\\w+\\)" + value) + (prog1 (match-string 1 value) + (setq value (replace-match "" nil nil value))))) (env (cond ((string-match "\\<example\\>" value) 'example) ((string-match "\\<src\\(?: +\\(.*\\)\\)?"  When optional argument LINES is a string specifying a range of --- 3311,3317 ---- (file-name-directory file)) (buffer-string))))))))))))) ! (defun org-export--prepare-file-contents (file &optional lines ind minlevel fun env) "Prepare the contents of FILE for inclusion and return them as a string. When optional argument LINES is a string specifying a range of *************** *** 3335,3340 **** --- 3341,3356 ---- (forward-line (1- lend)) (point)))) (narrow-to-region beg end))) + (when (and func env) + (when (string-match "[ \t\n\r]+\\'" env) + (setq env (replace-match "" t t env))) + (when (string-match "\\`[ \t\n\r]+" env) + (setq env (replace-match "" t t env))) + (eval (car (read-from-string (format "(%s-mode)" env)))) + (imenu--make-index-alist) + (imenu (imenu--in-alist func imenu--index-alist)) + (narrow-to-region (progn (end-of-defun) (point)) + (progn (beginning-of-defun) (point)))) ;; Remove blank lines at beginning and end of contents. The logic ;; behind that removal is that blank lines around include keyword ;; override blank lines in included file.
9 Source of this org file
# -*-mode:org;coding:utf-8-*-
# Created: Fang Lungang 02/10/2014
# Modified: Fang Lungang 03/03/2015 13:56>
#+SETUPFILE: ../emacs/orgpub-level-1
#+TITLE: Taking Notes for Source Code in Emacs
* Intro
Studying/maintaining large software projects often demands reading loads of
source code. That renders taking notes for the source code inevitable. This
article enumerates some techniques which are useful for Emacs users when
taking such kind of notes. It also gives a patch to include certain functions
of a source file.
In the following sections, I assume you are already familiar with the basics
of Emacs and org mode. Also, please note the Emacs/org version I am using
(listed at the end of this web page). And, I do encourage you to copy [[*Source
of this org file]] into your Emacs buffer and try to move around to get a feel
about it. The exported html page lost many links.
At last, almost everything in this article is from org manual. Turn to
it for more details if you need.
* Highlight my notes
The most basic requirement might be copying a block of code into the
note file (orgmode) and add notes among lines of the code.
This is simple. The most hard thing to me is rather find a proper face
for my notes. The following is an example.
** Add this configure to your org-mode hook.
#+BEGIN_SRC emacs-lisp
(highlight-lines-matching-regexp "lgf:" org-document-info)
#+END_SRC
** Tag every line of your notes with the keyword defined
#+BEGIN_SRC c
/* normal comment */
int main(int argc, char *argv[])
{
/*
lgf: this is my note,
lgf: how do you feel? */
return 0;
// another style of normal comment
}
#+END_SRC
** The look in orgmode
In case you want to take a look at the output before getting your hands wet,
here is a screen-shot
#+ATTR_HTML: :width 600
[[./emacs-screen/highlight-notes-in-org.png]]
** Make it "fill" better
A minor issue of the previous highlighting solutions is: if your notes
extend more than one line, you definitely want the fill-paragraph can
deal with it.
The code snippet below highlights the configuration needed for C code,
refer to [[file:conf-wrapper.blog][my configure file]] for details.
#+BEGIN_SRC emacs-lisp
(defconst lgfang-c-style
'((c-offsets-alist
. ((c . 1) ; "c" for continue of comment, NOT "clanguage"
;; other offsets
))
(c-block-comment-prefix . "lgf: ")
(c-comment-prefix-regexp . ((awk-mode . "#+(lgf: )?")
(other ."lgf: \\|//+\\|\\**")))
;; other style settings
)
"lgfang's C Programming Style")
(c-add-style "lgfang" lgfang-c-style nil)
(add-hook 'c-mode-common-hook
(lambda ()
(c-set-style "lgfang")
;; ...
))
#+END_SRC
* Link into source blocks
Go to [[(link-back)][this uniquely "tagged" line]] with =C-c C-o= when point is on the
link.
If you do not want the tag show up in exported html page, add switch
"-r" like [[src-switch-r][I did]].
[[Normal internal targets]] works the same in and out the source block.
Radio targets within source blocks work as well with a trick: copy all the
radio targets to the end of the notes so links to radio targets are recognized
as usual. However, since Emacs goes to the first match it goes to the the
targets in source blocks.
* Link out from source blocks
Just as usual except that you can only use =BEGIN_EXAMPLE= (or add
*nothing* in the =BEGIN_SRC= line).
#+BEGIN_SRC python -n
print 'The following lines are examples of links'
# The following line are examples of links
# [[*Link out from source blocks]] (link-back)
# <<normal internal targets>>
# <<<Radio targets>>> here
# [[(cross-file-link)]] links into another source block
#+END_SRC
This means you lost a bunch of handy features.
The good news is, though, that:
1. what are lost are not that important since we are taking and will
read the notes in Emacs org mode.
2. And, we can use string-replace to add/remove language later.
** Circumvent the limitation
If you do want the capability of link out from within src block, here is the
hack:
#+BEGIN_SRC diff
,*** org/lisp/org.el.orig 2014-02-26 14:35:17.518888700 +0800
--- org/lisp/org.el 2014-02-26 14:36:26.301814000 +0800
,***************
,*** 10314,10320 ****
application the system uses for this file type."
(interactive "P")
;; if in a code block, then open the block's results
! (unless (call-interactively #'org-babel-open-src-block-result)
(org-load-modules-maybe)
(move-marker org-open-link-marker (point))
(setq org-window-config-before-follow-link (current-window-configuration))
--- 10314,10320 ----
application the system uses for this file type."
(interactive "P")
;; if in a code block, then open the block's results
! (unless nil
(org-load-modules-maybe)
(move-marker org-open-link-marker (point))
(setq org-window-config-before-follow-link (current-window-configuration))
#+END_SRC
* Link into source files
Go to [[file:lgfang.init.el::10][10^th line of lgfang.init.el]].
Go to [[file:lgfang.init.el::/org.*global/][lines matching regexp 'org.*global/' in lgfang.init.el]], case
insensitive. =C-c <left>= (or M-x winner-undo) to back.
Also, see this [[(cross-file-link)][example of link to a org header]]
To go back, there are a number of ways:
- In org-mode, right click mouse which is bound to =org-mark-ring-goto=.
- In other-mode, =M-x org-mark-ring-goto=.
- Or, usually, just =C-x 0= or =C-c <left>= (=winner-undo=) is enough.
* Link within or out from source files
Last but not least (actually *this is the most important feature
mentioned in this post*), you can practically jump among all kinds of
text files which Emacs can handle as you can in org files.
1. Bind a key
#+BEGIN_SRC emacs-lisp
(define-key global-map (kbd "C-x c o") 'org-open-at-point-global)
#+END_SRC
2. Make links in source files just as you are in org-mode.
# <<src-switch-r>>
#+BEGIN_EXAMPLE -r
NOTE: this is an example of cross-file link, put it into a source file
and try C-x c o
(ref:cross-file-link)
[[file:./emacs-code-notes.org::*Link within or out from source files]]
#+END_EXAMPLE
3. =C-x c o= to follow links in source files
* Include files
#+BEGIN_EXAMPLE
,#+INCLUDE: ~/.emacs src emacs-lisp
,#+INCLUDE: "~/.emacs" :lines "5-10" => Include lines 5 to 10, 10 excluded
,#+INCLUDE: "~/.emacs" :lines "-10" => Include lines 1 to 10, 10 excluded
,#+INCLUDE: "~/.emacs" :lines "10-" => Include lines from 10 to EOF
#+END_EXAMPLE
* Patch to include functions
#+BEGIN_EXAMPLE
,#+INCLUDE: "~/.emacs" :defun test => include the function "test"
#+END_EXAMPLE
This is my work which makes "#+include:" support the notation of =:defun
function_name=. Dirty it might be, it works anyway :).
#+include: "./patches/ox.el.patch" src diff
* Source of this org file
# Cool, no infinite recursion.
# "text" instead of "org" to show things behind the scene
#+include: ./emacs-code-notes.org src text
* Radio targets :noexport:
<<<Radio targets>>>


This is the first 100% CSS-free movie recommender
Please rate the following movies on a scale from 0.0 to 5.0:
Movie 1:
Movie 2:
Movie 3:
Movie 4:
Movie 5:
Show me my recommendations!


Working in web backend, frontend, cloud and blockchain technologies. Likes building products, shipping code, and learning new technologies.


--- ---
|
TGUI
0.8-dev
|
Public Member Functions | |
| void | setTrackColor (Color color) |
| Changes the color of the track. More... | |
| Color | getTrackColor () const |
| Returns the color of the track. More... | |
| void | setTrackColorHover (Color color) |
| Changes the color of the track in hover state (when the mouse is on top of it) More... | |
| Color | getTrackColorHover () const |
| Returns the color of the track in hover state (when the mouse is on top of it) More... | |
| void | setThumbColor (Color color) |
| Changes the color of the thumb. More... | |
| Color | getThumbColor () const |
| Returns the color of the thumb. More... | |
| void | setThumbColorHover (Color color) |
| Changes the color of the thumb in hover state (when the mouse is on top of it) More... | |
| Color | getThumbColorHover () const |
| Returns the color of the thumb in hover state (when the mouse is on top of it) More... | |
| void | setArrowBackgroundColor (Color color) |
| Changes the color behind the arrow. More... | |
| Color | getArrowBackgroundColor () const |
| Returns the color behind the arrow. More... | |
| void | setArrowBackgroundColorHover (Color color) |
| Changes the color behind the arrow in hover state (when the mouse is on top of it) More... | |
| Color | getArrowBackgroundColorHover () const |
| Returns the color behind the arrow in hover state (when the mouse is on top of it) More... | |
| void | setArrowColor (Color color) |
| Changes the color of the arrow. More... | |
| Color | getArrowColor () const |
| Returns the color of the arrow. More... | |
| void | setArrowColorHover (Color color) |
| Changes the color of the arrow in hover state (when the mouse is on top of it) More... | |
| Color | getArrowColorHover () const |
| Returns the color of the arrow in hover state (when the mouse is on top of it) More... | |
| void | setTextureTrack (const Texture &texture) |
| Changes the image of the track. More... | |
| Texture & | getTextureTrack () const |
| Returns the image of the track. More... | |
| void | setTextureTrackHover (const Texture &texture) |
| Changes the image of the track that is displayed when the mouse is on top of it. More... | |
| Texture & | getTextureTrackHover () const |
| Returns the image of the track that is displayed when the mouse is on top of it. More... | |
| void | setTextureThumb (const Texture &texture) |
| Changes the image of the thumb. More... | |
| Texture & | getTextureThumb () const |
| Returns the image of the thumb. More... | |
| void | setTextureThumbHover (const Texture &texture) |
| Changes the image of the thumb that is displayed when the mouse is on top of it. More... | |
| Texture & | getTextureThumbHover () const |
| Returns the image of the thumb that is displayed when the mouse is on top of it. More... | |
| void | setTextureArrowUp (const Texture &texture) |
| Changes the image of the up arrow. More... | |
| Texture & | getTextureArrowUp () const |
| Returns the image of the up arrow. More... | |
| void | setTextureArrowUpHover (const Texture &texture) |
| Changes the image of the up arrow that is displayed when the mouse is on top of it. More... | |
| Texture & | getTextureArrowUpHover () const |
| Returns the image of the up arrow that is displayed when the mouse is on top of it. More... | |
| void | setTextureArrowDown (const Texture &texture) |
| Changes the image of the down arrow. More... | |
| Texture & | getTextureArrowDown () const |
| Returns the image of the down arrow. More... | |
| void | setTextureArrowDownHover (const Texture &texture) |
| Changes the image of the down arrow that is displayed when the mouse is on top of it. More... | |
| Texture & | getTextureArrowDownHover () const |
| Returns the image of the down arrow that is displayed when the mouse is on top of it. More... | |
| Public Member Functions inherited from tgui::WidgetRenderer | |
| WidgetRenderer ()=default | |
| Default constructor. | |
| WidgetRenderer (const std::shared_ptr< RendererData > &data) | |
| Construct the renderer from renderer data. More... | |
| virtual | ~WidgetRenderer ()=default |
| Virtual destructor. | |
| void | setOpacity (float opacity) |
| Changes the opacity of the widget. More... | |
| float | getOpacity () const |
| Returns the opacity of the widget. More... | |
| void | setOpacityDisabled (float opacity) |
| Changes the opacity of the widget when it is disabled. More... | |
| float | getOpacityDisabled () const |
| Returns the opacity of the widget when it is disabled. More... | |
| void | setFont (Font font) |
| Changes the font used for the text in the widget. More... | |
| Font | getFont () const |
| Returns the font associated with the widget (if any) More... | |
| void | setTransparentTexture (bool ignoreTransparentParts) |
| Sets whether mouse events should be ignored on transparent parts of the texture of the widget in normal state. More... | |
| bool | getTransparentTexture () const |
| Returns whether mouse events should be ignored on transparent parts of the texture of the widget. More... | |
| void | setProperty (const std::string &property, ObjectConverter &&value) |
| Changes a property of the renderer. More... | |
| ObjectConverter | getProperty (const std::string &property) const |
| Retrieves the value of a certain property. More... | |
| const std::map< std::string, ObjectConverter > & | getPropertyValuePairs () const |
| Gets a map with all properties and their values. More... | |
| void | subscribe (const void *id, const std::function< void(const std::string &property)> &function) |
| Subscribes a callback function to changes in the renderer. More... | |
| void | unsubscribe (const void *id) |
| Subscribes a callback function to changes in the renderer. More... | |
| std::shared_ptr< RendererData > | getData () const |
| Returns the renderer data. More... | |
| std::shared_ptr< RendererData > | clone () const |
| Gets a clone of the renderer data. More... | |
| Color tgui::ScrollbarRenderer::getArrowBackgroundColor | ( | ) | const |
Returns the color behind the arrow.
| Color tgui::ScrollbarRenderer::getArrowBackgroundColorHover | ( | ) | const |
Returns the color behind the arrow in hover state (when the mouse is on top of it)
| Color tgui::ScrollbarRenderer::getArrowColor | ( | ) | const |
Returns the color of the arrow.
| Color tgui::ScrollbarRenderer::getArrowColorHover | ( | ) | const |
Returns the color of the arrow in hover state (when the mouse is on top of it)
| Texture& tgui::ScrollbarRenderer::getTextureArrowDown | ( | ) | const |
Returns the image of the down arrow.
| Texture& tgui::ScrollbarRenderer::getTextureArrowDownHover | ( | ) | const |
Returns the image of the down arrow that is displayed when the mouse is on top of it.
| Texture& tgui::ScrollbarRenderer::getTextureArrowUp | ( | ) | const |
Returns the image of the up arrow.
| Texture& tgui::ScrollbarRenderer::getTextureArrowUpHover | ( | ) | const |
Returns the image of the up arrow that is displayed when the mouse is on top of it.
| Texture& tgui::ScrollbarRenderer::getTextureThumb | ( | ) | const |
Returns the image of the thumb.
| Texture& tgui::ScrollbarRenderer::getTextureThumbHover | ( | ) | const |
Returns the image of the thumb that is displayed when the mouse is on top of it.
| Texture& tgui::ScrollbarRenderer::getTextureTrack | ( | ) | const |
Returns the image of the track.
| Texture& tgui::ScrollbarRenderer::getTextureTrackHover | ( | ) | const |
Returns the image of the track that is displayed when the mouse is on top of it.
| Color tgui::ScrollbarRenderer::getThumbColor | ( | ) | const |
Returns the color of the thumb.
| Color tgui::ScrollbarRenderer::getThumbColorHover | ( | ) | const |
Returns the color of the thumb in hover state (when the mouse is on top of it)
| Color tgui::ScrollbarRenderer::getTrackColor | ( | ) | const |
Returns the color of the track.
| Color tgui::ScrollbarRenderer::getTrackColorHover | ( | ) | const |
Returns the color of the track in hover state (when the mouse is on top of it)
| void tgui::ScrollbarRenderer::setArrowBackgroundColor | ( | Color | color | ) |
Changes the color behind the arrow.
| color | The new arrow background color |
Note that this color is ignored when all normal images have been set.
| void tgui::ScrollbarRenderer::setArrowBackgroundColorHover | ( | Color | color | ) |
Changes the color behind the arrow in hover state (when the mouse is on top of it)
| color | The new hover arrow background color |
| void tgui::ScrollbarRenderer::setArrowColor | ( | Color | color | ) |
Changes the color of the arrow.
| color | The new arrow color |
Note that this color is ignored when all normal images have been set.
| void tgui::ScrollbarRenderer::setArrowColorHover | ( | Color | color | ) |
Changes the color of the arrow in hover state (when the mouse is on top of it)
| color | The new hover arrow color |
| void tgui::ScrollbarRenderer::setTextureArrowDown | ( | const Texture & | texture | ) |
Changes the image of the down arrow.
| texture | The new down arrow texture |
When all textures are set, then the alternative color properties will be ignored.
| void tgui::ScrollbarRenderer::setTextureArrowDownHover | ( | const Texture & | texture | ) |
Changes the image of the down arrow that is displayed when the mouse is on top of it.
| texture | The new hover down arrow texture |
| void tgui::ScrollbarRenderer::setTextureArrowUp | ( | const Texture & | texture | ) |
Changes the image of the up arrow.
| texture | The new up arrow texture |
When all textures are set, then the alternative color properties will be ignored.
| void tgui::ScrollbarRenderer::setTextureArrowUpHover | ( | const Texture & | texture | ) |
Changes the image of the up arrow that is displayed when the mouse is on top of it.
| texture | The new hover up arrow texture |
| void tgui::ScrollbarRenderer::setTextureThumb | ( | const Texture & | texture | ) |
Changes the image of the thumb.
| texture | The new thumb texture |
When all textures are set, then the alternative color properties will be ignored.
| void tgui::ScrollbarRenderer::setTextureThumbHover | ( | const Texture & | texture | ) |
Changes the image of the thumb that is displayed when the mouse is on top of it.
| texture | The new hover thumb texture |
| void tgui::ScrollbarRenderer::setTextureTrack | ( | const Texture & | texture | ) |
Changes the image of the track.
| texture | The new track texture |
When all textures are set, then the alternative color properties will be ignored.
| void tgui::ScrollbarRenderer::setTextureTrackHover | ( | const Texture & | texture | ) |
Changes the image of the track that is displayed when the mouse is on top of it.
| texture | The new hover track texture |
| void tgui::ScrollbarRenderer::setThumbColor | ( | Color | color | ) |
Changes the color of the thumb.
| color | The new thumb color |
Note that this color is ignored when all normal images have been set.
| void tgui::ScrollbarRenderer::setThumbColorHover | ( | Color | color | ) |
Changes the color of the thumb in hover state (when the mouse is on top of it)
| color | The new hover thumb color |
| void tgui::ScrollbarRenderer::setTrackColor | ( | Color | color | ) |
Changes the color of the track.
| color | The new track color |
Note that this color is ignored when all normal images have been set.
| void tgui::ScrollbarRenderer::setTrackColorHover | ( | Color | color | ) |
Changes the color of the track in hover state (when the mouse is on top of it)
| color | The new hover track color |


| src |
|
0% |
0/38 |
0% |
0/1 |
0% |
0/1 |
0% |
0/38 |
| src/api/products/application/products-list |
|
100% |
11/11 |
100% |
2/2 |
100% |
2/2 |
100% |
11/11 |
| src/api/products/domain/entities/product |
|
0% |
0/8 |
0% |
0/1 |
0% |
0/1 |
0% |
0/8 |
| src/api/products/domain/repositories/product |
|
0% |
0/7 |
0% |
0/1 |
0% |
0/1 |
0% |
0/7 |
| src/api/products/infrastructure/controllers/products |
|
0% |
0/17 |
0% |
0/1 |
0% |
0/1 |
0% |
0/17 |
| src/api/products/infrastructure/repositories/http-product |
|
0% |
0/60 |
0% |
0/2 |
0% |
0/2 |
0% |
0/60 |
| src/api/products/infrastructure/repositories/mongo-product |
|
100% |
21/21 |
100% |
4/4 |
100% |
2/2 |
100% |
21/21 |
| src/api/products/infrastructure/routes/products |
|
0% |
0/35 |
0% |
0/1 |
0% |
0/1 |
0% |
0/35 |
| src/api/products/infrastructure/schema |
|
0% |
0/26 |
0% |
0/1 |
0% |
0/1 |
0% |
0/26 |
| src/bootstrap/databases/mongo |
|
0% |
0/36 |
0% |
0/1 |
0% |
0/1 |
0% |
0/36 |
| src/bootstrap/express-server |
|
0% |
0/21 |
0% |
0/1 |
0% |
0/1 |
0% |
0/21 |
| src/bootstrap/express-server/api |
|
0% |
0/71 |
0% |
0/2 |
0% |
0/2 |
0% |
0/71 |
| src/bootstrap/express-server/server |
|
0% |
0/46 |
0% |
0/1 |
0% |
0/1 |
0% |
0/46 |
| src/bootstrap/http-server |
|
0% |
0/43 |
0% |
0/1 |
0% |
0/1 |
0% |
0/43 |
| src/bootstrap/http-server/commons |
|
0% |
0/20 |
0% |
0/1 |
0% |
0/1 |
0% |
0/20 |
| src/bootstrap/interfaces |
|
0% |
0/8 |
0% |
0/1 |
0% |
0/1 |
0% |
0/8 |
| src/config |
|
0% |
0/22 |
0% |
0/1 |
0% |
0/1 |
0% |
0/22 |
| src/core/middlewares/404 |
|
0% |
0/18 |
0% |
0/1 |
0% |
0/1 |
0% |
0/18 |
| src/core/middlewares/404/exceptions |
|
0% |
0/16 |
0% |
0/1 |
0% |
0/1 |
0% |
0/16 |
| src/core/middlewares/async-error |
|
0% |
0/19 |
0% |
0/1 |
0% |
0/1 |
0% |
0/19 |
| src/core/middlewares/error-handler |
|
0% |
0/39 |
0% |
0/1 |
0% |
0/1 |
0% |
0/39 |
| src/core/middlewares/interfaces |
|
0% |
0/6 |
0% |
0/1 |
0% |
0/1 |
0% |
0/6 |
| src/core/middlewares/request-logger |
|
0% |
0/26 |
0% |
0/1 |
0% |
0/1 |
0% |
0/26 |
| src/core/middlewares/response-json |
|
0% |
0/23 |
0% |
0/1 |
0% |
0/1 |
0% |
0/23 |
| src/core/middlewares/response-json/interfaces |
|
0% |
0/6 |
0% |
0/1 |
0% |
0/1 |
0% |
0/6 |
| src/core/middlewares/wrapper-error |
|
0% |
0/27 |
0% |
0/1 |
0% |
0/1 |
0% |
0/27 |
| src/utils/custom-error |
|
0% |
0/18 |
0% |
0/1 |
0% |
0/1 |
0% |
0/18 |
| src/utils/messages |
|
0% |
0/4 |
0% |
0/1 |
0% |
0/1 |
0% |
0/4 |
| src/utils/response-json |
|
0% |
0/22 |
0% |
0/1 |
0% |
0/1 |
0% |
0/22 |
| src/utils/response-json/interfaces |
|
0% |
0/6 |
0% |
0/1 |
0% |
0/1 |
0% |
0/6 |


XYZ
Train Station
Train Schedule
Train Name
Destination
Frequency
Next Arrival
Until Next Arrival
Add Train
Train Name
Destination
First Train (Military Time)
Frequency
Submit


| Date | Airline | Price | Seats | Options |
|---|---|---|---|---|
| {{history.ticketDate}} | {{history.airLineName}} | {{history.price}} | {{history.seatCount}} |
| PNR Number | Date | Airline | Flight # | From | To | Price | Seats | Total Price |
|---|---|---|---|---|---|---|---|---|
| {{ticketDetails.pnrNumber}} | {{ticketDetails.ticketDate}} | {{ticketDetails.airLineName}} | {{ticketDetails.flightNumber}} | {{ticketDetails.fromCity}} | {{ticketDetails.toCity}} | {{ticketDetails.price}} | {{ticketDetails.seatCount}} | {{ticketDetails.price*ticketDetails.seatCount}} |


Treasure Hunting with Javascript
Dev Bootcamp Project - Phase 0 - Week 7
Written By: David Uli
X0
X1
X2
X3
X4
X5
X6
X7
X8
X9
Y0
Y1
Y2
Y3
Y4
Y5
Y6
Y7
Y8
Y9
Game Status
Navigation Controls
System Alerts
//


Is ok
:)
Nahh is ok lol so you want to be friends with benefits then
I dont rly know what it means but i guess we already r?😂😂😂
Or have been?
 Of u?
Like what type
Idc
Face or something 😂😂
Show both now
Wow
That doesnt count
😂❤
Is my fave
Face
Plzzzz
Full face
Idc if filter or not
...


Modest Watling revels in digging in to frustrate England
by OmnisportBJ Watling felt knowing his limitations was key to his success after the New Zealand wicketkeeper-batsman frustrated England with an unbeaten century on day three of the first Test.
The Black Caps closed on 394-6 in reply to the tourists' 353 all out at Bay Oval on Saturday, Watling unbeaten on 119 after sharing a sixth-wicket stand of 119 with Colin de Grandhomme (65).
Watling punished Ben Stokes for putting down a regulation slip catch on 31 as England took just two wickets in the day at Mount Maunganui.
Mitchell Santner (31 not out) also provided support for the gritty Watling, who enjoyed digging in for an obdurate eighth century in the longest format.
"It felt great, obviously. I love scoring hundreds for New Zealand and I really enjoyed that one," said the 34-year-old.
"It was hard work and we had some tough periods but we got through. It was special to get over the line and to still be there tonight, which I targeted.
"I just think I'm very limited and I try to play how I know works best for me. I take a few shots away that some of the big boys do, and I definitely can't.
"I try to stick to a gameplan and hopefully it pays off."
Watling stressed the importance of keeping England in the field as long as possible to press home their advantage on day four.
"We're expecting the surface to keep playing a few more tricks over the next couple of days so it is important for us to try and build this lead a bit and put them under some pressure when they bat," Watling added.
"The least amount of runs we can chase the better. If we can get some partnerships going tomorrow there's every chance of a result our way."
Rory Burns left the field after splitting the webbing in his thumb, but is expected to open in England's second innings.


Could not display normally.
Browser support
- Microsoft Internet Explorer 9 or later.
- Microsoft Edge ver.14 or later.
- Mozzila Firefox ver.38 or later.
- Google Chrome ver.38 or later.
- Apple Safari ver.7.1 or later.
- Opera ver.7.1 or later.
- Opera mini does not supported.
- Safari for Windows does not supported.
Other requirements
- Google Chrome frame does not supported.
- Android browser 4.4.4 or later.
Resolution
Update your browser version, if you could.
Install currently web browser, if you could.


Passport: {{ driver.passport }}
Address: {{ driver.address }}
Nationality: {{ driver.nationality }}
Birthday date: {{ driver.birthday }}


top
|
up
|
prev
|
next
XPathNodeSet Class
Definition at line
29
of
XPathObject.hpp
Constructors
XPathNodeSet
()
Member Functions
void
Add
(
Node
* node)
int
Length
()
const
std::unique_ptr<
Node
>
ToDom
()
const override
Node
*
operator[]
(
int
index)
const
Member Variables
NodeList
nodes
Constructor Details
XPathNodeSet Constructor
sngxml::xpath::XPathNodeSet::XPathNodeSet()
Definition at line
22
of
XPathObject.cpp
:
22
:
XPathObject
(
XPathObjectType
::
nodeSet
)
23
{
24
}
Declaration at line
32
of
XPathObject.hpp
Member Function Details
Add Member Function
void
sngxml::xpath::XPathNodeSet::Add(
Node
* node)
Definition at line
26
of
XPathObject.cpp
:
27
{
28
nodes
.
InternalAddNode
(
node
)
;
29
}
Declaration at line
35
of
XPathObject.hpp
Calls:
sngxml::dom::NodeList::InternalAddNode
Called by:
sngxml::xpath::NodeSelectionOp::Apply
,
sngxml::xpath::XPathNumberFunction::Evaluate
,
sngxml::xpath::XPathStringFunction::Evaluate
Length Member Function
int
sngxml::xpath::XPathNodeSet::Length()
const
Definition at line
34
of
XPathObject.hpp
:
34
{
return
nodes
.
Length
(
)
;
}
Calls:
sngxml::dom::NodeList::Length
Called by:
sngxml::xpath::XPathBooleanFunction::Evaluate
,
sngxml::xpath::XPathCombineStepExpr::Evaluate
,
sngxml::xpath::XPathCountFunction::Evaluate
,
sngxml::xpath::XPathStringFunction::Evaluate
,
sngxml::xpath::XPathUnionExpr::Evaluate
ToDom Member Function
std::unique_ptr<
Node
> sngxml::xpath::XPathNodeSet::ToDom()
const override
Definition at line
31
of
XPathObject.cpp
Declaration at line
36
of
XPathObject.hpp
Base class overridden functions:
sngxml::xpath::XPathObject::ToDom
Calls:
sngxml::dom::Node::CloneNode
,
sngxml::dom::Node::GetNodeType
,
sngxml::dom::NodeList::Length
operator[] Member Function
Node
* sngxml::xpath::XPathNodeSet::operator[](
int
index)
const
Definition at line
33
of
XPathObject.hpp
:
33
{
return
nodes
[
index
]
;
}
top
|
up
|
prev
|
next


[This readme is a partial copy of the sample's topic in the SDK documentation.]
This sample demonstrates User Access Control.
To build the sample
Run MSBuild from the sample root directory or open the UACDemo solution in Visual Studio and build the solution.
To run the sample
From the bin folder of the sample root directory run UACDemo.exe.
Requirements
Vista Bridge Sample
Comments
When you download a sample from the SDK, place it in a location that you have read/write access. For example: Do not place samples in the 'Program Files' folder.
This sample has a project-to-project dependency on the Vista Bridge Sample. This configuration requires that the Vista Bridge Sample be placed next to the folder where the UACDemo sample resides.


| Apache Struts 2 Documentation > Home > Tutorials > Getting Started > Struts 2 Themes |
| The example code for this tutorial, Themes_Struts2_Ant or Themes_Struts2_Mvn, is available on Google Code - http://code.google.com/p/struts2-examples/downloads/list. After downloading and unzipping the file, you'll have a folder named Themes_Struts2_Ant (or Themes_Struts2_Mvn). In that folder will be a README.txt file with instructions on now to build and run the example application. |
When you use a Struts 2 tag such as s:select in your web page, the Struts 2 framework generates HTML that styles the appearance and controls the layout of the select control. The style and layout is determined by which Struts 2 theme is set for the tag. Struts 2 comes with three built-in themes: simple, xhtml, and css_xhtml. If you don’t specify a theme, then Struts 2 will use the xhtml theme by default.
| The Struts 2 user mailing list is an excellent place to get help. If you are having a problem getting the tutorial example applications to work search the Struts 2 mailing list. If you don't find an answer to your problem, post a question on the mailing list. |
For example, this Struts 2 select tag:
<s:select key="personBean.sport" list="sports" />
generates this HTML markup:

  Favorite sport: 	  <select name="personBean.sport" id="save_personBean_sport"> <option value="football">football</option> <option value="baseball">baseball</option> <option value="basketball" selected="selected">basketball</option> </select>

Notice how the HTML generated uses table tags to control the layout of the label and select HTML. There is also a class, tdLabel, applied to the table column where the label tag is rendered. Since no theme was specified for the Struts 2 select tag the default xhmtl theme was used.
The Struts 2 tags have a theme attribute you can use to specify which Struts 2 theme should be used when creating the HTML for that tag. The values for the theme attribute are simple, xhtml, css_xhtml, and ajax. To learn more about these themes visit Themes and Templates Documentation. This tutorial will review the xhtml, css_xhtml, and the simple themes. The ajax theme is a special theme used for ajax operations (see Ajax Theme in the documentation).
You can specify the theme on a per Struts 2 tag basis or you can use one of the following methods to specify what theme Struts 2 should use:
Consult Selecting Themes for how to set the theme using the above approaches.
In the example application, examine edit.jsp. The theme attribute of the form tag is set to xhtml. Run the application (see the readme.txt file) and view the source for edit.jsp after it is rendered in your browser. You should see the form HTML tags layout controlled by table tags.
Change the theme to simple for the form’s theme attribute and redeploy the application. Examine the source for edit.jsp after it is rendered in the browser. You should see that there are no table tags controlling the layout and also there are no label tags for the text fields.
Change the theme to css_xhtml for the form’s theme attribute and redeploy the application. Examine the source for edit.jsp after it is rendered in the browser. The layout of the form tags is now controlled by div tags and the label tags are back.
Change the theme attribute for the form tag back to xhtml. Notice when you view the source of edit.jsp after it is rendered in the browser that there is a class named tdLabel applied to the table column that contains the label. This CSS class controls the position of the label in the table column. The tdLabel style is defined in /Themes_Struts2_Mvn/struts/xhtml/styles.css. The link to this style sheet was included in edit.jsp’s head section when you add the s:head tag to edit.jsp.
Load this style sheet in your browser (in the example application the link is http://localhost:8080/Themes_Struts2_Mvn/struts/xhtml/styles.css if your Servlet container is running on localhost, port 8080). You’ll see the following:
.label {font-style:italic; } .errorLabel {font-style:italic; color:red; } .errorMessage {font-weight:bold; color:red; } .checkboxLabel {} .checkboxErrorLabel {color:red; } .required {color:red;} .tdLabel {text-align:right; vertical-align:top; }
So the .label selector renders the label tag’s text in italic. The .tdLabel tag specifies that the text should align to the right and top of the table column.
You can override the above selectors by including the same selectors in your page’s head section. For example add the following to the head section of edit.jsp.

Now the label tag will render the text in blue, bold, normal (not italics) style.
The theme templates (simple, xhtml, css_xhtml) can be found in the Struts 2 core jar file. If you expand (extract the files) the Struts 2 core jar file you'll find folders named template.css_xhtml, template.simple, and template.xhtml. Those folders contain the templates for the three default Struts 2 themes. In each folder is a file for each Struts 2 tag. For example if you expand the template.xhtml folder you’ll see the select.ftl file.
The Struts 2 framework uses the FreeMarker template engine to generate the HTML for the Struts 2 tags. That's why the file extension is ".ftl". You can learn more about FreeMarker by visiting http://freemarker.sourceforge.net/.
Also in the template.xhmtl folder is the styles.css file. This is the styles.css file that your application will use if it uses the xhtml theme.
Let’s say we wanted to create our own theme that will change how the Struts 2 checkboxlist tag displays the checkboxes and their labels.
In the example application I've specified that the form tag should use the xhtml theme (see edit.jsp). The xhtml theme templates for the tags are in the template.xhtml folder (in the Struts 2 core jar file). The template for the Struts 2 checkboxlist tag is appropriately named checkboxlist.ftl. Opening that file you'll see that includes the checkboxlist template that is in the template.simple folder (the xhtml templates extend the templates defined in the template.simple folder).
Opening the checkboxlist.ftl file in the template.simple folder, you'll see that there is only a space between each label and the next checkbox. That is why all the checkboxes are displayed across the width of the browser window. For my custom checkboxlist theme I want to have a break tag after each label tag so that each checkbox and its label will be on their own line.
In the example application there is a folder named src/main/webapp/template/KUTheme (for the Maven version, for the Ant version the path is WebContent/template/KUTheme). In that folder is a checkboxlist.ftl, the contents of which I originally copied from the checkboxlist.ftl that is in the templates.xhtml folder from the struts 2 core jar.
I then modified the checkboxlist.ftl in the KUTheme folder to be:
<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" /> <#include "/${parameters.templateDir}/KUTheme_simple/checkboxlist.ftl" /> <#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/>
Be sure to note the change to the first line—using xhtml in the path and the change to the second line—using KUTheme_simple in the path.
Then in the example application I created a KUTheme_simple folder under webapp/template. In that folder I created checkboxlist.ftl and copied the contents from template.simple checkboxlist.ftl (again found in the Struts 2 core jar). After copying the contents to checkboxlist.ftl that is in KUTheme_simple folder, I modified checkboxlist.ftl so that the label tag has a style of red bold text and I added a break tag after each label so that each check box and label will be on its own line.
In edit.jsp change the value of the theme attribute to be theme="KUTheme" for the Struts 2 checkboxlist tag.
In the deployed web application, Struts 2 will first look for a tag's template in web root/template/theme name and if it doesn't find the template there it will use the default template that is part of the Struts 2 core jar. Since we've added a template folder to the application's web root, now when Struts 2 creates the HTML to display the checkboxlist tag it will use the template that is in the KUTheme folder (which tells it to use the checkboxlist.ftl file that is in the KUTheme_simple folder instead of the one in the template.simple folder that is part of the Struts 2 core Jar).
After redeploying the application the check boxes for the Car Models Owned should appear like:
You can easily override the default theme used by Struts 2 to control the appearance and layout of a Struts 2 tag. Each Struts 2 tag has an associated template file (e.g. select.ftl) that is in a folder named after the theme (e.g. xhtml). By default the Struts framework will look in the Struts 2 core Jar file for the theme folder and templates. However, if you include your own theme folder (e.g. KUTheme) under webapp/template (or WebContent/template in the Ant version) and specify that folder name (e.g. KUTheme) as the value for the theme attribute, then the Struts 2 framework will look in that theme folder for the tag's template.
To learn more about how to use the Struts 2 themes and how you can override them, visit Themes and Templates Documentation.
In our next tutorial we'll cover how to use the Spring and Struts 2 frameworks together.
| Next | Onward to Spring and Struts 2 |
|---|


Too many tabs opened ?
Survol
solves this.
Seriously try it, just hover any link below
A tweet
A wikipedia article
Convinced ?
Download the extension on your favourite browser :
Not available on chrome yet
Not available on firefox yet
Survol is the product of
open-source
List of contributors
@mdolr
Author of Survol and CEO of
Kaen


timelinefx:timelinefx.CreatePolygon
Create a tlPolygon
Returns New tlPolygon, or Null if verts[] contained the wrong amount.
Create a new tlPolygon at the given coordinates with the given array of vertices. The coordinates will represent the center of the polygon which is
automatically calculated. The array must contain more then 5 values (2 per vertex) and be an even number or null will be returned. The coordinates of
the vertices in the array are arranged like so: [x,y,x,y,x,y .. etc]. Use layer to specify a particular layer
to place the box on so that you can more easily organise your collisions. You use 0, 1, 2..and so on up to 31
to place the boundary on all layers.
| Note:
|
|:-----------|
| Polygon must be convex (no internal angles > 180deg)
@example
Local box:=CreatePolygon(100, 100, new Float[](- 10.0, -10.0, -15.0, 0.0, -10.0, 10.0, 10.0, 10.0, 15.0, 0.0, 10.0, -10.0), 0)
@end
| Parameters |
|
x |
Top left y coordinate |
y |
Top Left x coordinate |
verts |
Array of vertices that descibe the Polygon |
layer |
The layer that the box is on, used for quadtrees |
data |
any Object associated with the box |


migraine glucose diet Migraine Neurol. mitochondrial ketogenic Headache patients oxidative study ./j.-...x brain D-BHB metabolism stress Cephalalgia epilepsy increased Pain effects energy shown {border-style KBs Med. levels treatment ./s--- px;} #ffffff;} mechanisms cerebral gut associated aura inflammation ketone ketosis neuronal potential GLUT Ketogenic migraine: reduction Metab. Neurosci. headache role Eur. J.M. Oxidative disorders effect review Res. Sci. attacks clinical common disease production response Genet. Int. Mitochondrial activity antioxidant bodies capacity changes dietary evidence genetic glutamate mechanism rats reduced spreading susceptibility therapeutic transport trial use ./S-()- ATP Curr. Ketone Kim Pharmacol. Study acid activation cortical decreased gene hemiplegic increase increasing microbiota neurons px; visual {font-family CSD Cortelli Diet Furthermore, G.M. Insulin KBs, Montagna Nat. R.A. Schoenen Wang abnormalities and/or cortex deficiency episodic excitability font-size functioning, insulin metabolic mice microbiome oxygen particular presence severe significantly studies support transporter Blood Brain Cereb. Clin. Coppola Flow Neurology Nutr. Olesen P.J. Patients Pierangeli R.L. Stress University Veech able alternative attack case children coenzyme complex demonstrated depression double; fuel induced influence low nitric particular, pathophysiological protection protective rat research species supplementation syndrome using van (including ./WNL... ./s---z Alzheimer’s Ann. Barbiroli C.A. Clarke DNA Epilepsia Epilepsy Face Front. Glucose Head Iotti King Lee Liu Lorenzo M.T. Mechanisms ROS Rep. S.M. Terwindt Zhang Zhou [], addition association biogenesis border-color border-width channel compared damage diet, disease, elevated elevation familial fasting fed free function higher including increases inflammatory interictal intervention loci migraine. migraines neurological observed pain peptide potentially primary protein reactive recent related release seizure solid; spectroscopy stress, suggests symptoms transmission uptake {font-style {font-weight β-Hydroxybutyrate ./JNEUROSCI.-. ./ana. ./head. ./jcbfm.. ./s---y Acta Anttila BHB Carolei Chen Child Cortical D.C. D.N. D.P.D. D.R. E.C.G. Effects Efficacy Exp. Freilinger Goadsby Griffiths Gut Huang Increased Inflammation J.D. J.S. J.W. Kashiwaya Ketosis L.C. L.J. L.R. Lancet Lea Lodi Lugaresi M.A. M.G. M.L. Masino Metabolism Migraine: Physiol. Rev. Rho Ruskin S.A. S.K. Yellen Zaniol action aforementioned amino animal approximately article autism blood bold brain, cell cells channels cluster composition controls courier; directly dysfunction effective em; evoked excitability, exogenous focus following frequency genes glycogen headaches healthy high importance inflammation, inhibition inhibitor involved lead likely markers microbial model moderate observational oxide pathophysiology placebo-controlled, possible potentials prevention preventive prophylaxis pt;} randomized randomized, ratio reduce refractory resonance respiratory reviewed signalling significant similar spectrum studies. synthesis target tension-type therapy tissue type underlying utilization


The SimpleTexturedRenderer class renders a SimpleTexturedScene.
More...
#include <simpletexturedrenderer.h>
|
| void | objectAdded (const SimpleTexturedObject &obj) |
| | This slot should be called whenever the underlying scene has a new object. More...
|
| |
| void | objectRemoved (const SimpleTexturedObject &obj) |
| | This slot should be called whenever an object is removed from the underlying scene. Locks the mGLDataMutex. More...
|
| |
| void | clearAll () |
| | Clears all OpenGL data, not assuming that a context is current. Some data may not be cleared immediately. Locks the mGLDataMutex. More...
|
| |
| void | cleanUp () override |
| | Cleans up all OpenGL data. This assumes that the correct context is current, and all data is cleaned immediately. Locks the mGLDataMutex. More...
|
| |
| void | requestUpdate () |
| | Calling this slot makes the renderer update itself when possible. More...
|
| |
| virtual void | cleanUp ()=0 |
| | This slot should clean up all resources associated to the renderer. More...
|
| |
|
| | SimpleTexturedRenderer (SharedSimpleTexturedScene scene) |
| |
| virtual | ~SimpleTexturedRenderer () |
| |
| void | paint (QMatrix4x4 mvpMatrix, QVector3D camPos) override |
| | Uses OpenGL commands to draw to the frame buffer. Nothing is assumed about the previous contents of the frame (i.e. glClear does not need to be called before this), and the OpenGL state should not change as a result of calling this function. More...
|
| |
| void | create () override |
| | This is (should be) called on an OpenGL thread before this object is used. Allows the renderer to initialize its OpenGL-dependent objects. More...
|
| |
| virtual | ~AbstractRenderer () |
| |
| void | initializeGL () |
| | Initializes OpenGL-related details. More...
|
| |
|
| void | initializeRenderer () override |
| | Used to initialize renderer parameters that require an OpenGL context to be bound. More...
|
| |
| bool | checkGLErrors () |
| | Helper method to loop glGetError() and print out all current errors. More...
|
| |
◆ SimpleTexturedRenderer()
◆ ~SimpleTexturedRenderer()
| SimpleTexturedRenderer::~SimpleTexturedRenderer |
( |
| ) |
|
|
virtual |
◆ cleanUp
| void SimpleTexturedRenderer::cleanUp |
( |
| ) |
|
|
overrideslot |
Cleans up all OpenGL data. This assumes that the correct context is current, and all data is cleaned immediately. Locks the mGLDataMutex.
◆ clearAll
| void SimpleTexturedRenderer::clearAll |
( |
| ) |
|
|
slot |
Clears all OpenGL data, not assuming that a context is current. Some data may not be cleared immediately. Locks the mGLDataMutex.
◆ create()
| void SimpleTexturedRenderer::create |
( |
| ) |
|
|
overridevirtual |
This is (should be) called on an OpenGL thread before this object is used. Allows the renderer to initialize its OpenGL-dependent objects.
The difference between this and initializeGL() is that this should only include lightweight initialization.
Reimplemented from AbstractRenderer.
◆ initializeRenderer()
| void SimpleTexturedRenderer::initializeRenderer |
( |
| ) |
|
|
overrideprotectedvirtual |
Used to initialize renderer parameters that require an OpenGL context to be bound.
Implements AbstractRenderer.
◆ objectAdded
This slot should be called whenever the underlying scene has a new object.
- Parameters
-
◆ objectRemoved
This slot should be called whenever an object is removed from the underlying scene. Locks the mGLDataMutex.
- Parameters
-
| obj | The object that is already removed or will be removed. |
◆ paint()
| void SimpleTexturedRenderer::paint |
( |
QMatrix4x4 |
mvpMatrix, |
|
|
QVector3D |
camPos |
|
) |
| |
|
overridevirtual |
Uses OpenGL commands to draw to the frame buffer. Nothing is assumed about the previous contents of the frame (i.e. glClear does not need to be called before this), and the OpenGL state should not change as a result of calling this function.
It is assumed that initializeGL() has been called for the current OpenGL context.
- Parameters
-
| vpMatrix | The model-view-projection matrix that should be used. |
| camPos | The world-space coordinates of the camera. |
Implements AbstractRenderer.
The documentation for this class was generated from the following files:


code krafters
think, build and deliver
code should read like prose
never scroll to read a method
code is design, and it runs
one method, one behavior
code is thoughtful
methods don't leave artifacts
code never lies
solve the problem. then, write the code
it's all talk until the code runs
details matter
What we do
we build rich, high-fidelity mobile UXs that couple with well-designed, optimized backend services
we deliver the full range, concepts and prototypes through production components software
from the user experience to backend communication we finesse both the visuals and data
-
Concepts & Prototypes
sketching interactivity and functionality with code, moving from the full visual to the functional experience. connecting to real data and laying the foundation for real products
-
Production Mobile Apps
krafted, polished and kevlar coated production mobile apps and UX components library for the consumer or enterprise. clean data interfaces, pixel perfection, robust and long-lasting solutions
-
Technical Design Support
recommendations, feasibility, explorations, code sketching for visual, transitions, animations and alignment with mobile platform guidelines and roadmaps in order to ensure design concepts become living products
-
Mobile Optimized Backends
reduce requests and data traffic via mashups and optimized backend interfaces. migrate legacy, multiple and web-based services in order to deliver lean data services for efficient, high fidelity mobile experiences
How we do it
we live lean and agile practices
we don’t talk more than is needed
we build and deliver
Who we are
we are a team with decades of experience bringing to market great user experiences and new technologies
we’ve been pioneers in many technologies, including mobile and tablets
our market segment experience includes: retail, consumer electronics and products, telecommunications, financial, medical and automotive.
-
Abdul Nabi Founder & Master Krafter
Abdul has deep and broad experience spanning over 25 years in mobile, desktop and web. Abdul developed early object technologies and applied OO to visually rich apps across domains. Abdul was the chief architect of the first tablet computer (Momenta) in 1991 and then co-found DTO providing one of the first mobile smartphone platforms (acquired by IBM). For the past decade he has driven architecture and development for UX experience rich solutions for mobile and web to a wide variety of large companies spanning most major verticals.
-
Roberto Gamboni Founder & Master Krafter
Roberto is a software engineer who specializes in mobile applications and has lead development on a wide variety of projects and technologies, ranging from encrypted cloud based file system to large scale sensors installation for tracking recycling behaviors to famous mobile voice enabled local search, turn by turn navigation and retail applications.
-
You? Code Krafter
If you like bringing great user experience to life via great implementations, scalable architectures and well organized data, we want to talk to you.
work with us
do you have a project that you want to discuss and review with us? Get in touch.


| Award |
Team |
Name |
Home Town |
| Outstanding Volunteer of the Year Award |
- |
Mark Leon |
- |
| Imagery Award |
100 |
A Better Mousetrap Machining/SLAC & Woodside & Carlmont High School |
Woodside,CA USA |
| Radio Shack Innovation in Control Award |
1280 |
EMC Corporation & San Ramon Valley High School |
Danville,CA USA |
| Xerox Creativity Award |
192 |
Gunn High School |
Palo Alto,CA USA |
| Delphi "Driving Tommorow's Technology" Award |
114 |
AA Precision Manufacturing/San Jose City College/Applied Welding Technology/Intuitive Surgical/Advanced Laser & Waterjet Cutting/SONY/Friedmann Electric/Stanford Univ. & Los Altos High School |
Los Altos,CA USA |
| Kleiner, Perkins, Caufield and Byers Entrepreneurship Award |
1700 |
IDEO & Castilleja School |
Palo Alto,CA USA |
| Judge's Award (Day 1) |
841 |
Chevron/Mechnics Bank/Richmond High Afterschool Program & Richmond High School |
Richmond,CA USA |
| Website Award |
115 |
Lockheed Martin/Monster Cable & Monta Vista High School |
Cupertino,CA USA |
| Regional Woodie Flowers Award |
- |
William Dunbar |
- |
| Autodesk Visualization Award |
114 |
AA Precision Manufacturing/San Jose City College/Applied Welding Technology/Intuitive Surgical/Advanced Laser & Waterjet Cutting/SONY/Friedmann Electric/Stanford Univ. & Los Altos High School |
Los Altos,CA USA |
| General Motors Industrial Design Award |
604 |
Exatron/LocoLabs & Leland High School |
San Jose,CA USA |
| Motorola Quality Award |
649 |
Saratoga High School |
Saratoga,CA USA |
| Johnson and Johnson Sportsmanship Award |
254 |
BPI Machining/Wess Del Inc./EA Machining/NASA Ames & Bellarmine College Prep |
San Jose,CA USA |
| DaimlerChrysler Team Spirit Award |
368 |
NASA Ames Research Center/HECO/SUMMA Technology, Inc. & McKinley High School |
Honolulu,HI USA |
| Judge's Award (Day 2) |
1970 |
Google & East Palo Alto High School |
Menlo Park,CA USA |
| Rookie Inspiration Award |
1834 |
Google/NASA Robotics Education FIRST Sponsorship Program/San Jose Job Corps/MetroED & SIATech |
San Jose,CA USA |
| Rookie All-Star Award |
1868 |
NASA Ames Research Center & Girl Scouts of Santa Clara County & Harbor High School |
Moffett Field,CA USA |
| Highest Rookie Seed Award |
1868 |
NASA Ames Research Center & Girl Scouts of Santa Clara County & Harbor High School |
Moffett Field,CA USA |
| Underwriters Laboratories Industrial Safety Award |
604 |
Exatron/LocoLabs & Leland High School |
San Jose,CA USA |
| Regional Finalist #1 |
668 |
D&M Model and Machine Shop/McHale Creative & Pioneer High School ASB |
San Jose,CA USA |
| Regional Finalist #2 |
1280 |
EMC Corporation & San Ramon Valley High School |
Danville,CA USA |
| Regional Finalist #3 |
1693 |
EMC Corporation/Google & Downtown College Prep |
San Jose,CA USA |
| Regional Finalist #4 |
- |
|
- |
| Regional Winner #1 |
254 |
BPI Machining/Wess Del Inc./EA Machining/NASA Ames & Bellarmine College Prep |
San Jose,CA USA |
| Regional Winner #2 |
581 |
BAE Systems & San Jose High Academy |
San Jose,CA USA |
| Regional Winner #3 |
766 |
Menlo-Atherton High School |
Atherton,CA USA |
| Regional Winner #4 |
- |
|
- |
| Engineering Inspiration Award |
1700 |
IDEO & Castilleja School |
Palo Alto,CA USA |
| Regional Chairman's Award |
192 |
Gunn High School |
Palo Alto,CA USA |


Functions and wrappers for using the Multiple Aggregation Prediction Algorithm (MAPA) for time series forecasting. MAPA models and forecasts time series at multiple temporal aggregation levels, thus strengthening and attenuating the various time series components for better holistic estimation of its structure. For details see Kourentzes et al. (2014) <doi:10.1016/j.ijforecast.2013.09.006>.
| Version: | 2.0.4 |
| Depends: | forecast (≥ 5.3), parallel, RColorBrewer, smooth (≥ 1.4.7) |
| Published: | 2018-01-05 |
| Author: | Nikolaos Kourentzes [aut, cre], Fotios Petropoulos [aut] |
| Maintainer: | Nikolaos Kourentzes <nikolaos at kourentzes.com> |
| BugReports: | https://github.com/trnnick/mapa/issues |
| License: | GPL-2 | GPL-3 [expanded from: GPL (≥ 2)] |
| URL: | http://kourentzes.com/forecasting/2014/04/19/multiple-aggregation-prediction-algorithm-mapa/ |
| NeedsCompilation: | no |
| Citation: | MAPA citation info |
| Materials: | README NEWS |
| In views: | TimeSeries |
| CRAN checks: | MAPA results |
| Reference manual: | MAPA.pdf |
| Package source: | MAPA_2.0.4.tar.gz |
| Windows binaries: | r-devel: MAPA_2.0.4.zip, r-release: MAPA_2.0.4.zip, r-oldrel: MAPA_2.0.4.zip |
| OS X binaries: | r-release: MAPA_2.0.4.tgz, r-oldrel: MAPA_2.0.4.tgz |
| Old sources: | MAPA archive |
| Reverse depends: | tsintermittent |
Please use the canonical form https://CRAN.R-project.org/package=MAPA to link to this page.


Submit
Close
Navigation
Home
Wallet
Buy
Sell
Support
Menu
ERGON Tokens: {{total_b}}
Buy ERGON
Value in Energy Units
Update
Tokens Debited
Transfer tokens to Wallet
Sample Wallet #1
Buy
Sending...
Current Market Rate
1 Token = $ 4.9
Electricity Market Rate
1 Token = 1 Energy Unit(s)


{% block speakers_title %}{% endblock %}
{{ speaker.full_name }}
{% block speakers_items %}{% endblock %}Workshop tickets
These are only for PyCon attendees.
Please don't register for more workshops at the same time.
These are only for PyCon attendees.
Please don't register for more workshops at the same time.


This page is just a quick overview of the gridle features. This is not a replacement for the official documentation that you can find here
Here's a simple grid usage using mixins


:: com :: sun :: star :: container ::
|
| interface XContainer |
|
- Description
- supports quick access to the information if a container currently
contains elements.
The XContainer interface is provided for containers
which need to broadcast changes within the container; that means
the actions of adding or removing elements are broadcast to the
listeners.
This can be useful for UI to enable/disable some functions
without actually accessing the data.
- See also
- XContent, XIndexAccess, XNameAcces, XEnumerationAccess
|
| Methods' Summary |
| addContainerListener |
adds the specified listener to receive events when
elements are inserted or removed.
|
| removeContainerListener |
removes the specified listener so it does not receive
any events from this container.
|
| Methods' Details |
addContainerListener
- Description
- adds the specified listener to receive events when
elements are inserted or removed.
It is suggested to allow multiple registration of the same listener,
thus for each time a listener is added, it has to be removed.
- See also
- XContainerListener
|
|
removeContainerListener
- Description
- removes the specified listener so it does not receive
any events from this container.
It is suggested to allow multiple registration of the same listener,
thus for each time a listener is added, it has to be removed.
- See also
- XContainerListener
|
|
Top of Page
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


This demo demonstrates an issue with Safari 5.0.4 (6533.20.27) handing of hashes and replace state. When a hash is set, and then replaced using replaceState the history list are then broken, when traversing back the hash does not change.
Note: The issue requires a clean history list, as such this should always be opened in a new tab/window where there are no prior history items.
Reported by Benjamin Lupton author of History.js