| Developer Spotlight |
S. M. Mousavi Jahan Abadi is a software architect at Digital Dream, Inc. in Tokushima, Japan and has been a member of the Project JXTA community since May 2002. He received a Ph.D. in Systems Engineering, focused on distributed systems and multi-agent models for supply-chain management. Currently he's working on Ifreestyle, a personal information manager and team-collaboration software product based on JXTA technology. Mousavi dedicates approximately 10-20 hours per week to Project JXTA as a contributor to the Platform and Bench projects. In his work on JXTA and Ifreestyle, Mousavi mainly concentrates on mechanisms for real-time event notification, online and offline database synchronization, distributed search, and detection of member presence. He has been working on the Xindce native XML database too. He believes that P2P networks are necessary complementary technology for server-client models, and could change the future of our communication and collaboration over distributed systems in the real-world. Mousavi sees JXTA as an outstanding and well-designed implementation for distributed systems, providing various services for different needs. He believes that future JXTA projects should provide modular and tiny solutions for different needs of P2P networks, which can be easily plugged into any application or device. You can reach Mousavi at<EMAIL_ADDRESS>or on the Project JXTA discuss mailing list. |


Baby Play group - Connecting with other parents and caregivers in a relaxing, baby safe learning space. Come along, make new friends and build a support network in our facilitated play group. All welcome (Childen 0 -12 months only)
Territory Child Care Group Training Room
10 Mel Road, Berrimah, NT 0828
Phone: 8920 0600
Our baby playgroup is guided by ‘continuous provision’ and the philosophy of RIE (Magda Gerber) and active learning based on the HighScope developmental indicators. Continuous provision allows children to explore recent learning, practice new skills, and follow their own interests.
The RIE approach to care giving places the child at the centre of all actions and adults are responsive to children's needs. During care activities (changing, feeding, etc.), adults create opportunities for interaction, cooperation, respectful relationships and mutual enjoyment. Adults create a safe, challenging and predictable environment. The more predictable an environment is, the easier it is for infants to learn. Adults give infants plenty of time for uninterrupted play, exploration and discovery.


Africa's Voices
Live social insights from conversations
Logout
Title of the chart
Loading data...
This demo is only accessible to Africa's Voices.
Please reach out if you'd like to see a demo.
Sign in with Google


module Edge:sig
..end
include Bap.Std.Edge
val jmps : [ `after | `before ] ->
Graphlib.Ir.t ->
graph -> jmp term seq
jmps dir e g
enumerates all jumps (including calls,
interrupts, indirects, etc), that occurs before if
dir = `before
or after if dir = `after
an edge e
val edges : [ `after | `before ] ->
Graphlib.Ir.t -> graph -> Graphlib.Ir.t seq
edges dir e g
enumerates all edges occurring before of
after an edge e
in graph g
val jmp : Graphlib.Ir.t -> jmp term
jmp e
returns a jmp term associated with edge e
val tid : Graphlib.Ir.t -> tid
tid e
returns a tid of a jmp term that is associated
with an edge e
val cond : Graphlib.Ir.t -> graph -> exp
cond e g
computes a condition expression that is
asserted to be true
if this branch is taken.
Note: this is not the same as a condition associated with
the jmp term itself, it takes into account all conditions
preceding the edge.
include Bap.Std.Printable


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import config.AppConfig @import config.LocalFormPartialRetriever @import views.html.RepeatWithIndex @import views.templatemodels.{PageTitle, CheckboxId} @this( govukLayoutWrapper: GovukLayoutWrapper, config: AppConfig, localFormPartialRetriever: LocalFormPartialRetriever, repeatWithIndex: RepeatWithIndex, formWithCSRF: FormWithCSRF ) @( form: Form[RegistrationList], taxYearRange: TaxYearRange, previouslySelectedBenefits: Seq[RegistrationItem]= List.empty[RegistrationItem], registeredBiks:Seq[Bik], nonLegislationBiks:Seq[Int], decommissionedBiks:Seq[Int], biksAvailableCount: Option[Int], empRef: EmpRef )(implicit request:Request[_], messages: Messages) @govukLayoutWrapper(PageTitle(messages("AddBenefits.Heading", ""+taxYearRange.cyminus1, ""+taxYearRange.cy), form.hasErrors), empRef = Some(empRef.toString)) { @if(form("actives").hasErrors) {


Math.max()
or Math.min()
call instead of doing it manually.
Example:
public int min(int a, int b) {
return b < a ? b : a;
}
After the quick-fix is applied:
public int min(int a, int b) {
return Math.min(a, b);
}
Use the Disable for float and double option to disable this inspection for double
and float
.
This is useful because the quick-fix may slightly break semantics for float
/
double
when handling NaN
. Nevertheless, in most cases it will actually fix
the subtle bug when users do not care about NaN
.
New in 2019.2


Full stack web developer with a passion for constructing complex systems from simple beginnings.
After a successful career in Electrical Engineering, I gave it up to pursue software development.
In addition to experience using Ruby on Rails and JavaScript-based programming, I bring strong skills
in project and time management, analytical problem solving, and communication. I hope to apply
these skills to help a mission-driven organization improve our world.


OAuth2 Authorization Proxy Server Spring Boot Demo - Google
Facebook
Google
You're not logged in yet
Go to Profile
Items
Save item
Retrieve all
Retrieve visible
Id
Description
E-mail address
Toggle access token


The Light Princess
by George MacDonald
Story 10: “Look at the Moon”
Additional Information
- Year Published: 1864
- Language: English
- Country of Origin: Scotland
- Source: MacDonald, G. (1864). The Light Princess. London, England: Hurst and Blackett.
-
Readability:
- Flesch–Kincaid Level: 5.5
- Word Count: 1,004
- Genre: Fairy Tale/Folk Tale
- Keywords: 19th century literature, british literature, childrenõs literature, fairy tales, the light princess
- ✎ Cite This
Downloads
Early the next morning the prince set out to look for something to eat, which he soon found at a forester’s hut, where for many following days he was supplied with all that a brave prince could consider necessary. And having plenty to keep him alive for the present, he would not think of wants not yet in existence. Whenever Care intruded, this prince always bowed him out in the most princely manner.
When he returned from his breakfast to his watch-cave, he saw the princess already floating about in the lake, attended by the king and queen—whom he knew by their crowns—and a great company in lovely little boats, with canopies of all the colours of the rainbow, and flags and streamers of a great many more. It was a very bright day, and the prince, burned up with the heat, began to long for the cold water and the cool princess. But he had to endure till twilight; for the boats had provisions on board, and it was not till the sun went down that the festive party began to vanish. Boat after boat drew away to the shore, following that of the king and queen, till only one, apparently the princess’s own boat, remained. But she did not want to go home even yet, and the prince thought he saw her order the boat to the shore without her. At all events it rowed away; and now, of all the radiant company, only one white speck remained. Then the prince began to sing.
And this is what he sung:
”Lady fair,
Swan-white,
Lift thine eyes,
Banish night
By the might
Of thine eyes.
“Snowy arms,
Oars of snow,
Oar her hither,
Plashing low.
Soft and slow,
Oar her hither.
“Stream behind her
O’er the lake,
Radiant whiteness!
In her wake
Following, following, for her sake,
Radiant whiteness!
“Cling about her,
Waters blue;
Part not from her,
But renew
Cold and true
Kisses round her.
“Lap me round,
Waters sad
That have left her
Make me glad,
For ye had
Kissed her ere ye left her.”
princess looking left
Before he had finished his song, the princess was just under the place where he sat, and looking up to find him. Her ears had led her truly.
“Would you like a fall, princess?” said the prince, looking down.
“Ah, there you are! Yes, if you please, prince,” said the princess, looking up.
“How do you know I am a prince, princess?” said the prince.
“Because you are a very nice young man, prince,” said the princess.
“Come up then, princess.”
“Fetch me, prince.”
The prince took off his scarf, then his swordbelt then his tunic, and tied them all together, and let them down. But the line was far too short. He unwound his turban, and added it to the rest, when it was all but long enough; and his purse completed it. The princess just managed to lay hold of the knot of money, and was beside him in a moment. This rock was much higher than the other, and the splash and the dive were tremendous. The princess was in ecstasies of delight, and their swim was delicious.
Night after night they met, and swam about in the dark clear lake, where such was the prince’s gladness, that (whether the princess’s way of looking at things infected him, or he was actually getting light-headed) he often fancied that he was swimming in the sky instead of the lake. But when he talked about being in heaven, the princess laughed at him dreadfully.
When the moon came, she brought them fresh pleasure. Everything looked strange and new in her light, with an old, withered, yet unfading newness. When the moon was nearly full, one of their great delights was to dive deep in the water, and then, turning round, look up through it at the great blot of light close above them, shimmering and trembling and wavering, spreading and contracting, seeming to melt away, and again grow solid. Then they would shoot up through the blot, and lo! there was the moon, far off, clear and steady and cold, and very lovely, at the bottom of a deeper and bluer lake than theirs, as the princess said.
The prince soon found out that while in the water the princess was very like other people. And besides this, she was not so forward in her questions or pert in her replies at sea as on shore. Neither did she laugh so much; and when she did laugh, it was more gently. She seemed altogether more modest and maidenly in the water than out of it. But when the prince, who had really fallen in love when he fell in the lake, began to talk to her about love, she always turned her head towards him and laughed. After a while she began to look puzzled, as if she were trying to understand what he meant, but could not—revealing a notion that he meant something. But as soon as ever she left the lake, she was so altered, that the prince said to himself, “If I marry her, I see no help for it: we must turn merman and mermaid, and go out to sea at once,”


Hi thanks for taking a look at Machine Learning in Action. If you find any errors that are not published below please submit them to the book's Author Online Forum.
def file2matrix(filename): fr = open(filename) arrayOLines = fr.readlines() numberOfLines = len(arrayOLines) returnMat = zeros((numberOfLines,3)) classLabelVector = [] index = 0 for line in arrayOLines: line = line.strip() listFromLine = line.split('\t') returnMat[index,:] = listFromLine[0:3] classLabelVector.append(int(listFromLine[-1])) index += 1 return returnMat,classLabelVector
>>> datingLabels[0:20] [‘didntLike’, ‘smallDoses’,…… should be: >>> datingLabels[0:20] [3, 2, 1, 1, 1, 1, 3, 3, 1, 3, 1, 1, 2, 1, 1, 1, 1, 1, 2, 3]


Gantt
View scale
Sort order
Max height
Deactivate
Activate
Additional options
Hide weekends
Show weekends
Action
Load data
Remove some
Remove all
Jumo To
Today
Jump


Mocker
- Mock responses for your requests
See
http://hannupekka.github.io/mocker/
for documentation.


But things get complicated when she falls in love with her latest mark, and three of her last victims join together to track her down.


 Pork loin beef ribs cupim prosciutto, pastrami turkey capicola hamburger shank ham hock pork. Jerky cupim turducken chicken alcatra ham doner salami meatball venison shoulder ground round porchetta pork belly filet mignon. Fatback pork andouille ribeye biltong. T-bone kevin porchetta tongue tail fatback frankfurter.
Tail turducken t-bone, corned beef frankfurter meatball jerky kevin tri-tip. Hamburger fatback spare ribs doner.
 Tail t-bone ribeye, doner meatloaf tongue jerky pork belly shoulder. Turducken andouille tri-tip ham hock.  Turkey pancetta tenderloin biltong, boudin flank beef ribs jowl capicola tongue alcatra doner swine chickenpig short loin ground round.  Turkey pancetta tenderloin biltong, boudin flank beef ribs jowl capicola tongue alcatra doner swine chicken.
Ball tip biltong turkey, tenderloin cow swine sausage tri-tip andouille boudin landjaeger brisket ground round beef ribs. Tenderloin shankle venison tri-tip. Filet mignon short loin cow, prosciutto shankle shoulder turkey pork loin capicola meatloaf bresaola salami kielbasa biltong sausage. T-bone filet mignon short loin landjaeger fatback meatloaf.


POINT BLANK A Film Review Copyright Dragan Antulov 1999
Few films have been so thoroughly and universally trashed by the critics as PAYBACK, 1999 crime thriller by Brian Helgeland. Most of them attacked the overuse of violence and utter lack of any moral compass among its characters. The author of this review agrees with most of the critics, but only partially. The filmmakers had it coming, but for entirely different reasons. The biggest crime made by makers of PAYBACK lies in the fact that they had dared to remake POINT BLANK, 1967 film by John Boorman. That film happened to be one of the best underrated film classics of all times, and its reputation really shouldn't have been tarnished by uninspired and tedious remake.
The plot of the original film is based on THE HUNTER, 1964 novel by Donald E. Westlake. Its protagonist (played by Lee Marvin) is known only by the name Walker. His best friend Mal Reese (played by John Vernon) is a gangster owing huge debt to all-powerful Organisation. In order to save his friend's life, Walker agrees to take part in a robbery that would pay Reese's debt. But, instead of gratitude, Walker receives two bullets by Reese, who then takes off with Walker's adulterous wife Lynne (played by Sharon Acker) and Walker's 93,000 US$ share of the loot. Walker was left for dead, but he managed to survive and a year later he is approached by some creepy individual named Yost (played by Keenan Wynn). Yost offers information about Lynne and Reese in exchange for Walker's help with his own plans about Organisation. Walker agrees and begins the violent campaign to take revenge and retrieve his money.
One of the reasons why POINT BLANK was somewhat shadowed by other films of 1960s lies in the fact that it was probably made at least a decade before its time. Dark, nihilistic script by Alexander Jacobs, David and Rafe Newhouse, as well as extremely violent, amoral and emotionally damaged protagonists belong more to the 1970s than to idealistic 1960s. However, most critics and viewers probably failed to see the real element of the originality in POINT BLANK. The reason why this film should enter all film encyclopaedias lies in the original directorial approach and very distinct visual style employed by its director John Boorman. Rather simplistic plot and even simpler characters are enhanced by the heavy atmosphere and use of tricks today mostly associated with "artsy" films or music videos - slow motion, repetitive flashbacks, fast editing and, above all, very haunting soundtrack by Stephen Edwards. POINT BLANK therefore looks very different from most of the crime thrillers. Another thing that makes it very distinct is a rather original perspective on the criminal underworld - people who inhabit such realms are well- dressed, well-educated, they live in luxurious, modern, stylish apartments and houses and, generally speaking, and instead of looking like the pariahs of the society, they look like its pillars. In that regard, by presenting criminals like modern-day aristocracy and criminal organisations as equivalent of all-powerful state POINT BLANK would resemble some crime thrillers of the latter decades.
Heavy atmosphere and style of POINT BLANK compensated the simplicity of the script, but Boorman, unfortunately, overplayed that card. In some instances the events on the screen are unclear, characters act irrationally and film even lacks the proper closure, leaving the audience without expected catharsis. Boorman even makes more confusion with some surreal shots, hinting that the whole film could be nothing more than a fantasy of a dying Walker. On the other hand, the viewers are still focused thanks to excellent cast. Lee Marvin played wonderful and complex role of a seemingly simple character - at first he is man in love, faithful friend, and later he turns into extremely violent yet stone-cold killer whose motivations shift, but his determination does not. His acting is very subtle, and the emotional states of Walker are presented through small gestures, short glances or cold, impersonal action. He managed to overshadow everyone else, including very energetic Angie Dickinson as his accidental partner. Overshadowed by the lead or not, supporting cast is splendid - John Vernon played the first of his many villainous roles, James Sikking is great as cynical hitman, as well as Lloyd Bochner and Carroll O'Connor as corporate gangsters. Sharon Acker as his wife appears relatively shortly, but her role is also memorable, especially during her final monologue that expresses the emotional emptiness of her character.
POINT BLANK perhaps earned its reputation simply by being shot in the right time, but it could provide good inspiration to future film- makers. With better results than the last time, we should all hope.
RATING: 7/10 (+++)
Review written on December 7th 1999
Dragan Antulov a.k.a. Drax Fido: 2:381/100 E-mail<EMAIL_ADDRESS>E-mail<EMAIL_ADDRESS>E-mail<EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


I had tried the Pomodoro technique, I have used other techniques similar techniques in the past as well. I like this stechniques because it makes sure you get regular breaks, to keep you focused.
I had found the power of meditation interesting.
The Pomodoro technique.
I wish to further experiment with the Meditation, I would like to know how to properly do it.


Programming, Algorithms, Data Structures, OS, DBMS
Mathematics, Problem Solving
Git, Linux, Ruby on Rails (MVC)


Karen's theezakjes circel
Parameters
Image file
Angle offset
Slices
Zoom
Offset
Selected area
Download circle
as SVG
Download selected
area as SVG


Functions | |
| IlineFile * | iupLineFileOpen (const char *filename) |
| void | iupLineFileClose (IlineFile *line_file) |
| int | iupLineFileReadLine (IlineFile *line_file) |
| const char * | iupLineFileGetBuffer (IlineFile *line_file) |
| int | iupLineFileEOF (IlineFile *line_file) |
| IlineFile* iupLineFileOpen | ( | const char * | filename | ) |
Opens an existing file. Returns NULL if failed.
| void iupLineFileClose | ( | IlineFile * | line_file | ) |
Closes the file.
| int iupLineFileReadLine | ( | IlineFile * | line_file | ) |
Reads a line from the file. Returns -1 if failed, otherwise returns the line size.
| const char* iupLineFileGetBuffer | ( | IlineFile * | line_file | ) |
Returns the buffer used to read the line.
| int iupLineFileEOF | ( | IlineFile * | line_file | ) |
Returns a non zero value if reached the end of the file.


Lyric Predictor
About
This Project
The Creator
Please enter your lyrics below to find the songname and artist!
Get Recommendations!


Dwayne Johnson announces release date for superhero film 'Black Adam'
Cape Town – It's no more Mr Nice Guy for Dwayne' The Rock' Johnson.
The actor's long-awaited DC Comics standalone superhero movie, Black Adam, finally has a release date.
The Jumanji actor who was first linked to the project in 2014 will be seen in the titular role in cinemas in 2021.
The character of Black Adam - who was created by cartoonists Otto Binder and CC Beck in 1945 - is an archaeologist who is transformed into a powerful ancient Egyptian.
The role will see Dwayne play the part of Shazam's greatest adversary.
The 47-year-old shared the news on Instagram alongside a first look image of himself as Black Adam.
In the lengthy caption, he wrote: "Like most kids growing up, I dreamed about being a superhero. Having cool superpowers, fighting for what's right and always protecting the people. It all changed for me, when I was 10yrs old and was first introduced to the greatest superhero of all time - SUPERMAN.
He continues: "As a kid, Superman was the hero I always wanted to be. But, a few years into my fantasy, I realised that Superman was the hero, I could never be. I was too rebellious. Too rambunctious. Too resistant to convention and authority. Despite my troubles, I was still a good kid with a good heart - I just liked to do things my way."
About the character he writes: "Black Adam is blessed by magic with the powers equal to Superman, but the difference is he doesn’t toe the mark or walk the line. He’s a rebellious, one of a kind superhero, who’ll always do what’s right for the people - but he does it his way. Truth and justice - the Black Adam way."
Dwayne went on to say that he is honoured to take on the role that is unlike any other he has had in his career.
SEE THE FULL POST HERE:
Compiled by Leandra Engelbrecht. (Sources: Channel24, Instagram )


Want to give it a shot? First, enter your name:
Next, pick five or six improv things that you think you're good at from the list below:


| Equipment | Purchase Price (USD) | Rental Price(USD) |
|---|---|---|
| Buoyancy Control Device(BCD) | $500 | $50 |
| Regulator | $800 | $40 |
| Air Tank | $500 | $15 |
| Face Mask | $80 | $10 |
| Fin Booties | $100 | $10 |
| Swimming Fins | $100 | $5 |
| Snorkel | 50 | $5 |
Link for Original Photo Photo Credit: Marcel Taubert


rapper
The Raptor RDF parsing utility.
Part of the Raptor RDF Syntax Library.
More information: home page
- Convert an RDF/XML document to Turtle:
rapper -i rdfxml -o turtle path/to/file
- Count the number of triples in a Turtle file:
rapper -i turtle -c path/to/file


Identifying OTUs with references¶
Introduction¶
Global and curated databases are very useful for assigning broad taxonomy, but don’t do great identifying our OTUs to lower taxonomic levels for these sorts of samples. Depending on your study, it’s often very useful to generate your own set of high-accuracy reference sequences based on a reference set of specimens. Obviously the feasibility of this depends on the richness of your study community and how cryptic your study taxon is.
Data and software
The input data to this tutorial is a FASTA file of sequences that you want to classify, and a FASTA file of sequences corresponding to known reference specimens. If you’ve been following along step-by-step, you can classify the ASVs or OTUs you produced in previous sections. Alternatively, the file otus_greedy_0.97.fasta
within the sectionE archive can be used as example data. For reference data, the files references_CCCPbarcodes.fasta
and taxonomy_CCCPbarcodes.csv
from the same archive can be used as example data.
This tutorial uses the BLAST software.
Using BLAST¶
We will use BLAST to search our OTUs against the FASTA of references. Run the following BLAST command, remembering to replace the otus.fasta
and references.fasta
with paths to the respective files, and output.txt
with a sensible name.
blastn -query otus.fasta -subject references.fasta -outfmt 6 -out output.txt \ -num_threads 1 -evalue 0.001 -perc_identity 97
This is similar to the command we used in the tutorial on classification with BLAST. However, we know that both our OTUs and our reference set are likely to all be closely related, so we’re setting a strict -evalue
and a threshold percentage identity so that we don’t simply get every OTU matching against every reference.
Use cat
to view the output file. We’re using the standard blast tabulated output (- outfmt 6
); you can find out what the columns refer to here. The first refers to the query sequence, the second the subject, and the third the percent identity. You can see we’ve got some clear hits for some of our OTUs!
Exercise
- Do any of our OTUs hit multiple different references? Why might this be?
- Do the OTUs matching Coleoptera references correspond to those assigned to Coleoptera using MEGAN?
- Does this give us more information about any of our OTUs compared with the global database search?
Next steps¶
If you have a comprehensive reference set of barcodes for all of the species you expect to find or are interested in finding in your metabarcoding, or at least all of the ones you’re interested in, you could actually skip a considerable proportion of the metabarcoding pipeline. This is because there’s no need to necessarily filter and delimit OTUs from scratch - you already have your “OTU” sequences and once you’ve finished processing your reads, you can simply search them against your references. You can read more about this and try it out in the extension: mapping reads to references.
A final method for generating taxonomic information will be covered in the next tutorial on phylogenetic classification.


HAPIRouter Playground
This form allows you to try different HAPI.js routes and paths and test if they match. It uses a browser verions of the HAPI.js Call router module.
Results
The path does not match the route
The path matches the route
And the path params have the following values:
Notes: The HAPI router like Express Path-to-RegExp router does not parse querystrings. Trailing slashes are parsed if they differ between the route and the path no match will be found. Use the checkbox to remove all the elements of a URL apart from the path when matching.


The worlds of the Dungeons & Dragons game exist within a vast cosmos called the multiverse, connected in strange and mysterious ways to one another and to other places of existence, such as the Elemental Plane of Fire and the Infinite Depths of the Abyss.


LWC - Storybook Integration
Menu
Github
Sample Storybooks
Sample Application
This is a sample application exposing its own stories as well as the ones from the library it depends on.
Sample Library
This is a library exposing its own stories. These stories are also exported to the application Storybook.


As IT professionals, we were frustrated building internal tools. The process was repetitive and slow. That is why we built Budibase - a development platform that sparks joy, helps you ship faster, and delivers real business value.
Budibase is open source and you can self-host Budibase apps on your own infrastructure.
Easily extend Budibase apps and the platform with code, and reduce technical debt.
Budibase combines the best dev experience with an obsessive focus on end-user performance.
With Budibase, development velocity and app deliver times are improved by up to 20x.


Illyriad - Grand Strategy MMO Free-to-Play HTML5 Massively-Multiplayer real-time strategy game, set in a vast fantasy world of mountain ranges, lakes, forests, oceans, islands, rivers, deserts, jungles, marshes and the northern wastes with countries and factions - each with their own ...
The Mexican Repatriation In which John discusses The Mexican Repatriation of the 1930s, a story from U.S. History he learned about only recently. SOURCES: The most comprehensive history of this period I found is a book called Decade of Betrayal by Francisco E. Balderrama and Ray...
Value Types in the CLR with David Wrighton What are valuetypes in the CLR, what do they mean, how do they work, and what impacts do they have on the runtimes and languages of the CLR. This talk will describe the challenges and benefits of valuetypes in a non-Java world. Learn more about Java deve...
Catch all exceptions from Exit shutdown by jkotalik · Pull Request #12518 · dotnet/aspnetcore Fixes #7367 in 2.2. If we fail to log to console due to an invalid handle, catch the exception no matter what. Writing a test for this is really hard as I would need to muck with Console.* to make ...
Using the ReferenceAssemblies NuGet package to build .NET Framework libraries on Linux, without installing Mono In this post I show how to build .NET projects that target the full .NET Framework on Linux with the Microsoft.NETFramework.ReferenceAssemblies NuGet
ECMAScript 2015 Language Specification – ECMA-262 6th Edition This is the HTML rendering of ECMA-262 6th Edition, The ECMAScript 2015 Language Specification.
Here’s what’s in the brand-new Unity 2019.2 - Unity Technologies Blog We have over 1000 developers dedicated to extending and improving Unity for you. In this release, you get more than 170 new features and enhancements for artists, designers, and programmers. We’ve updated ProBuilder, Shader Graph, 2D Animation, Burst Comp...
FlameGraph zooming by adamsitnik · Pull Request #976 · microsoft/perfview I am currently working on a PerfView demo where I want to show Flame Graphs that I've implemented a long time ago. I realized that demoing it without zoom would be very hard. So I implemented t...
Configuring Policy-based Authorization with Blazor In this post, I describe policy-based authorization and it’s advantages over the more legacy role-based authorization. Then show how to implement policy-based auth using WebAPI and client-side Blazor
Hugo's House of Horrors Hugo's sweetheart Penelope has vanished after visiting a haunted house on a babysitting job. In order to save her, Hugo must explore the area around, within, and beneath the house and solve its mysteries, while surviving its many perils. Hugo's House of H...
College Financial-Aid Loophole: Wealthy Parents Transfer Guardianship of Their Teens to Get Aid The Education Department is looking into a tactic that has been used in some Chicago suburbs, in which wealthy parents transfer legal guardianship of their college-bound children to relatives or friends so the teens can claim financial aid.
Capital One data breach affected 100 million in the US The FBI has already arrested the person who breached Capital One's systems in March.
Canada Online Store Promotion. Official Rules. NO PURCHASE NECESSARY TO PARTICIPATE OR WIN THE SWEEPSTAKES. VOID WHERE PROHIBITED. PROMOTION IS OPEN TO RESIDENTS OF CANADA (THE “ELIGIBLE COUNTRY”). THE PROMOTION WILL BE VOID TO RESIDENTS OF ANY OTHER COUNTRY OR TERRITORY AND WHERE PROHIBITED BY LAW. P...


My favorite things
These are a few of my favorite things.
puppies
Here are a few of my favorite puppies!
Corky
Snoopy
my
childhood dogs
Dotty and toto
dotty and Toto
my friend x
my friend y
Falvors ice cream
these are my 3 in order
chocolate chip
vanilla bean
chocolate
thanks for reading!


The xmake projects is a personal open source projects, their development need your help.
If you would like to support the development of xmake, welcome to donate to us.
Paypal
Backers
Sponsors
Support this project by becoming a sponsor.  [Become a sponsor]
Alipay
Weixin
Supporters
| 2018.11.16 | 孙果 | ¥10 | xmake很好用，加油！ | |
| 2018.10.17 | 红红 | ¥100 | ||
| 2018.10.15 | xtvjxk | alipay | ¥10 | 希望越来越好用 |
| 2018.08.07 | fasiondog | gitee | ¥50 | 感谢您的开源项目! |
| 2018.06.27 | Kellygod | alipay | ¥30 | 拥抱xmake |
| 2018.05.17 | 匿名 | ¥10 | 加油xmake | |
| 2018.04.29 | 清春 | alipay | ¥180 | |
| 2018.02.18 | 氧烷 | alipay | ¥16.66 | xmake，赞👍 |
| 2017.11.19 | sytru | alipay | ¥10 | 感谢作者，让写c/c++有了写脚本的感觉。非常愉悦的使用体验，希望不要消失。 |
| 2017.11.16 | 琪峻 | alipay | ¥15 | 感谢好用的xmake |
| 2017.10.26 | Welthy | alipay | ¥5 | xmake很好用啊 |
| 2016.11.10 | lc-soft | oschina | ¥10 |


Toggle navigation
Engineering Computation
Home
Lectures
Assignments
Projects
Videos
About
Lectures
Lectures
Lectures for Engineering Computation and Data Science. Requirements: Google Chrome; Laptop
Lecture 1 - Introduction
Class Information & Logistics
Syllabus
Schedule
Academic Honesty
Term Project
Template
Piazza
Introduction
Overview
(
PPT
)
Introduction
(
PPT
)
Sample Projects
Web Platform
Lab 1 - Development Environment Setup & Configuration
Lecture 2 - Arrays & Objects
Preparation Material - Browser Basics
Browser Basics
PS1 Get DOM Elements
Preparation Material - JavaScript Syntax Basics
Console
Variables
If ... Else
For Loops
Debugging Basics
Calling JavaScript from HTML
Recommended JavaScript Style
JavaScript Language Reference
Preparation Material - Arrays
Array Basics
Preparation Material - Objects
Objects - Hello World
Objects: Assigning Objects to Properties
Objects: Properties with Arrays of Objects
Objects: Deep Nesting
Simple Function
Objects: Assigning Methods to Properties
Passing Functions as Parameters
Variable Scope
Copying by Value
Object References
Object Properties - Reference and Value
Objects - Multiple References
Mini Lecture
Mini Lecture: First Object
Mini Lecture: Point Object Function
Active Learning
Lecture 3 - Functions
Preparation Material - Functions
Function Basics
Functions are Objects
Scope: Basics
Scope: Forgetting Var
Scope: Nested Functions
Functions Provide Scope
Preparation Material - Timers
SetTimeout vs SetInterval
Basic Timers
Repeating Timer
Animation Basics Using Timers
Mini Lecture
Web Document Basics - Class Mini Lecture
Web Document Basics - Slides
Binary - Slides
Active Learning
bouncing ball
Lab 2 - Arrays, Objects, and Functions
Download and setup Onexi VSCode plugin.
ex-arraybasics
Lecture 4 - JSON, Gov Data, Public APIs (No Visualization)
Preparation Material - JSON
JSON Basics
Walking Through JSON
JSON Debugging
City of Boston Employee Earnings Report
City of Boston Data
Mini Lecture
Mini Lecture 1
Mini Lecture 2
Active Learning
ex-bostoncity
Lecture 5 - Filters, Sorting, Map, Reduce
Preparation Material - Videos/Exercises
Callback Functions
(
Exercise
)
forEach Callback Functions
(
Exercise
)
Filter Callback Functions
(
Exercise
)
Sort Callback Functions
(
Exercise
)
Map Callback Functions
(
Exercise
)
Reduce Callback Functions
(
Exercise
)
Mini Lecture
Callbacks
Active Learning
Lab 3 - Callbacks
Callbacks Class Code
Callbacks Class Code (Solutions)
Lecture 6 - Visualization
Mini Lecture - Data & Charts
Google Charts - Boston City Data
Google Charts - Climate Data
Active Learning - Data & Charts -
Lecture 7 - Sensemaking
Mini Lecture - Node Basics, NPM, Course Catalog
Sensemaking - course catalog
node/npm basics
Active Learning - Fetch, Cheerio, RegEx, Map, Reduce
Exercises - course catalog
Exercises Solutions - course catalog
Lab 4 - Node, HTML overview
HTML Exercise Template
Node Dictionary App
Lecture 8 - Geospatial - Spatial/Temporal Information
Preparation Material - Videos/Exercises
Map - Hello World
Basic Timers
Repeating Timer
Mini Lecture
Geospatial
Active Learning
Visualization, Geospatial, Real-Time Data
Lecture 9 - Non-Blocking, Async Computation
Preparation Material - Videos/Exercises
Node
Mini Lecture
Node - Requests, Promises, and Commands
async, await, and promises
Active Learning
Lab 5 - Promise Land
Code
Lecture 10 - Application Servers & Package Management
Preparation Material - Videos/Exercises
Creating Modules
The Package Manager for Node.js
Installing Packages, Locally and Globally
HTTP Server Package
Database Package
Creating Packages
Mini Lecture
Services
Active Learning
Services Exercises
Lecture 11 - Web Sockets, Connected Storage, REST APIs
Preparation Material - Videos
REST API Prototyping
REST API Prototyping - Data Generation
Active Learning
Exercises
Exercise Solutions
Lecture 12 - Regression and Random Walk
Random Walk
Random Walk
Random Walk (PDF)
Regression
Machine Learning - Regression
Linear Regression Least Squares
Regression Equation
Active Learning
In class exercise
Lecture 13 - K-Nearest Neighbors (kNN)
Mini Lecture
K-Nearest Neighbors
Active Learning
Exercise: Calculate Distance Between Points
Exercise: kNN
Solution
Lecture 14 - K-Means
Mini Lecture
K-Means
Active Learning
Exercise: Calculate Centroid Between Points
Exercise: kMeans
Animation
Solution 1
Solution 2
Lecture 15 - Naive Bayes Classification
Mini Lecture
Naive Bayes Classification
Active Learning
Document Classification
Solution
Vision Services API Example
MS Computer Vision services
Sample Code
Mini Lecture - Decision Trees and Entropy Metric
Decision Trees and Entropy Metric (Prof Winston Vampire Example)
Vampire Classification Example (from Prof. Patrick Winston's course)
Lecture 16 - Hardware and Communication
Internet of Things
Sample Code
Lecture 17 - Representational State Transfer
Mini Lecture
REST
Active Learning
Lecture 18 - Containers
Why do we care about containers?
Docker Fundamentals
Should everyone care about containers?
Fundamental Building Blocks of Modern Systems
Docker Commands
Useful docker commands
Basics
Docker "Hello World"
Docker Node Mongo
Mini Lecture
Docker
How To Install Docker on Ubuntu
Installation Instructions
Docker - NodeJS Hello World
More Docker Examples
Nginx
NodeJS
NodeJS + Mongo
Python + Mongo
Active Learning
Video Production
Video Production basics
Template #0
Template #1
Template #2
Tempate #3


--- layout: page title: Marathon --- MOCA welcomes you to join us as an official charity runner at the 50th anniversary of the TCS NYC Marathon on November 1, 2020! We make nearly 200 years of Chinese American history accessible to the general public, from scholars to young children and from community members to international tourists. When your efforts to cross the finish line also enable MOCA to: redefine the American narrative to include the Chinese American experience through art, history, and community. Please send a brief statement of your interest in joining Team MOCA 40 to<EMAIL_ADDRESS>We look forward to running with you as a team!


Are you sure?
Are you sure you wish to exit the application?
You have unsaved changes. If you exit without saving them, you will lose them.
Exit
Cancel


Copyright © 2013 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved. W3C liability, trademark and document use rules apply.
Web notifications defines an API for end-user notifications. A notification allows alerting the user outside the context of a web page of an occurrence, such as the delivery of email.
This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.
This is the 12 September 2013 W3C Last Call Working Draft of Web Notifications. The Last Call period ends on 24 October 2013. In order for your comments to be considered by the Web Notification Working Group for this Last Call, you must submit them prior to 24 October 2013. Please send comments to<EMAIL_ADDRESS>(archived).
The bulk of the text of this specification is also available in the WHATWG Notifications API Standard, under a license that permits reuse of the specification text.
The W3C Web Notification Working Group is the W3C working group responsible for this specification's progress along the W3C Recommendation track. The Working Group expects to advance this specification to become a W3C Recommendation.
Publication as a Last Call Working Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.
This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.
This specification provides an API to display notifications to alert users outside the context of a web page. It does not specify exactly how a user agent should display these notifications; the best presentation depends on the device where the user agent is run. When this specification refers to displaying notifications on the "desktop", it generally refers to some static display area outside the web page, but may take several forms, including:
This specification does not define exactly how the user agent should display the notification, and the API is designed to be flexible with respect to presentation options.
This specification is designed to be compatible with existing notification platforms as much as possible, but also to be platform-independent. Since the common platforms do not provide the same functionality, this spec will indicate what events are guaranteed and which are not. In particular, notifications as specified here only can contain text and icon content.
In general, the event model for notifications is best-effort; while the
Notification
object offers a click
event,
applications may enhance their functionality by listening for that event,
but cannot depend on receiving it, in case the underlying
notification platform does not provide that capability.
All diagrams, examples, and notes in this specification are non-normative, as are all sections explicitly marked non-normative. Everything else in this specification is normative.
The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in the normative parts of this specification are to be interpreted as described in RFC2119. For readability, these words do not appear in all uppercase letters in this specification. [RFC2119]
Notifications should only be presented when the user has indicated they are desired; without this they could create a negative experience for the user.
Most terminology used in this specification is from DOM, HTML, IDL, and URL. [DOM] [HTML] [WEBIDL] [URL]
A notification allows alerting the user outside the context of a web page of an occurrence, such as the delivery of email.
Each notification has a title, direction, language, and an origin.
Each notification can have an associated body, tag, icon URL, and icon.
This section is written in terms equivalent to those used in the Rendering section of HTML. [HTML]
User agents are expected to honor the Unicode semantics of the text of a
notification's title
and body. Each is expected to be treated as an independent set
of one or more bidirectional algorithm paragraphs when displayed, as defined
by the bidirectional algorithm's rules P1, P2, and P3, including, for
instance, supporting the paragraph-breaking behaviour of
U+000A LINE FEED (LF) characters. For each paragraph of the
title and body, the
notification's
direction provides the higher-level override of rules P2 and P3
if it has a value other than "auto
".
[BIDI]
The notification's language specifies the primary language for the notification's title and body. Its value is a valid BCP 47 language tag, or the empty string. The empty string indicates that the primary language is unknown. [LANG]
Notifications can only be displayed if the user (or user agent on behalf of the user) has granted permission. The permission to display notifications for a given origin can be one of three strings:
default
"
This is equivalent to "denied
", but the user has
made no explicit choice thus far.
denied
"
This means the user does not want notifications.
granted
"
This means notifications can be displayed.
There is no equivalent to "default
"
meaning "granted
". In that case
"granted
" is simply returned as there would be no reason
for the application to ask for permission.
The user agent must keep a list of pending notifications and a list of active notifications.
The show steps for a given notification are:
If permission for notification's
origin is not "granted
", cancel any ongoing
fetch for
notification's icon URL,
queue a task to
fire an event
named error
on notification, and
terminate these steps.
If there is a notification in the list of pending notifications or the list of active notifications whose tag equals notification's tag and whose origin equals notification's origin, run the replace steps for that notification and notification, and then terminate these steps.
If the device allows notifications to be displayed immediately without limitations on the number of concurrent notifications, run the display steps and terminate these steps.
If the device has limitations on the number of concurrent notifications, either immediately call to a notifications platform which natively supports queueing, or append notification to the list of pending notifications.
When a notification is closed, either by the underlying notifications platform or by the user, the close steps for it must be run.
The close steps for a given notification are:
If notification is neither in the list of pending notifications nor in the list of active notifications, terminate these steps.
Queue a task to remove
notification from either the
list of pending notifications or the
list of active notifications, and
fire an event
named close
on notification.
Whenever the list of pending notifications is not empty, the user agent must wait and monitor changes in the available notification space on the device.
When the available display space changes on the device such that a new notification can be displayed, for example due to a previous notification being dismissed, the user agent should run the display steps for the first notification in the list of pending notifications and then remove it from the list of pending notifications.
The display steps for a given notification are:
If the notification platform supports icons, notification's icon URL is set and has not yet been fetched, fetch it and wait for the resource to be fully downloaded.
Once fetching has finished and the image format is supported, set notification's icon to the decoded resource. (Otherwise notification has no icon.)
Queue a task to run these substeps:
Display notification on the device (e.g. by calling the appropriate notification platform).
If displaying fails (e.g. the notification platform returns an
error),
fire an event
named error
on notification and
terminate these steps.
Append notification to the list of active notifications.
Fire an event
named show
on notification.
The replace steps for replacing an old notification with a new one are:
If the notification platform supports icons, new's icon URL is set and has not yet been fetched, fetch it and wait for the resource to be fully downloaded.
Once fetching has finished and the image format is supported, set new's icon to the decoded resource. (Otherwise new has no icon.)
If old is in the
list of pending notifications,
queue a task to replace
old with new, in the same position, in
the list of pending notifications, and
fire an event
named close
on old.
Otherwise,
queue a task to replace
old with new, in the same position, in
the list of active notifications,
fire an event
named close
on old, and
fire an event
named show
on new.
If the notification platform does not support replacement this requirement may be addressed by running the close steps for old and then running the display steps for new.
Notification platforms are strongly encouraged to support native replacement. It is much nicer.
A notification is represented by
a Notification
object and can be created by its
constructor.
[Constructor(DOMString title, optional NotificationOptions options)] interface Notification : EventTarget { static readonly attribute NotificationPermission permission; static void requestPermission(optional NotificationPermissionCallback callback); attribute EventHandler onclick; attribute EventHandler onshow; attribute EventHandler onerror; attribute EventHandler onclose; readonly attribute NotificationDirection dir; readonly attribute DOMString lang; readonly attribute DOMString body; readonly attribute DOMString tag; readonly attribute DOMString icon; void close(); }; dictionary NotificationOptions { NotificationDirection dir = "auto"; DOMString lang = ""; DOMString body; DOMString tag; DOMString icon; }; enum NotificationPermission { "default", "denied", "granted" }; callback NotificationPermissionCallback = void (NotificationPermission permission); enum NotificationDirection { "auto", "ltr", "rtl" };
The
Notification(title, options)
constructor must run these steps:
Let notification be a new
notification represented by a
Notification
object.
Set notification's title to title.
Set notification's direction to
options's dir
.
If options's lang
is a valid
BCP 47 language tag, or the empty string, set
notification's language to
options's lang
, or set it to the empty
string otherwise. [LANG]
If options's body
is present,
set notification's body to
body
.
If options's tag
is present, set
notification's tag to tag
.
If options's icon
is present,
parse
icon
using the
entry script's
base URL, and
if that does not return failure, set
notification's icon URL to the return value. (Otherwise
icon URL is not set.)
Return notification, but continue running these steps asynchronouusly.
If the notification platform supports icons, the user agent may start fetching notification's icon URL at this point, if icon URL is set.
Run the show steps for notification.
The static
permission
attribute must return permission.
The static
requestPermission(callback)
method must run these steps:
Return, but continue running these steps asynchronously.
Let permission be permission.
If permission is "default
",
ask the user whether showing notifications for the current
origin is acceptable. If it is, set
permission to "granted
", or
"denied
" otherwise.
Queue a task to set permission to permission and invoke callback with permission as single argument if callback is given.
In designing the platform notifications are the one instance thus far where asking the user upfront makes sense. Specifications for other APIs should not use this pattern and instead employ one of the many more suitable alternatives.
The following are the event handlers
(and their corresponding
event handler event types)
that must be supported as attributes by the Notification
object.
| event handler | event handler event type |
|---|---|
onclick
| click
|
onshow
| show
|
onerror
| error
|
onclose
| close
|
The close()
method
must run the close steps for the
notification.
The dir
attribute must return the
notification's direction.
The lang
attribute must return the
notification's language.
The body
attribute must return the
notification's body and the empty
string otherwise.
The tag
attribute must return the
notification's tag and the empty
string otherwise.
The icon
attribute must return the
notification's icon URL,
serialized, and the
empty string otherwise.
Notification
objects dispatch events during their lifecycle,
which developers can use to generate desired behaviors.
The show
event dispatches when the
notification is shown to the user
— this may be at some time after the notification is created in the
case of limited display space and a queue.
In the following example, this event is used to guarantee that regardless of when the notification is shown, it is displayed for only 15 seconds.
var notification = new Notification("New Email Received", { icon: "mail.png" }) notification.onshow = function() { setTimeout(notification.close, 15000) }
The close
event dispatches when the
notification is dismissed by the user. Developers may use this event to
perform actions when notifications are acknowledged.
In the following example, when a meeting reminder notification is acknowledged, the application suppresses other forms of reminders.
var notification = new Notification("Meeting about to begin", { icon: "calendar.gif", body: "Room 101" }) notification.onclose = function(event) { cancelReminders(event) }
tag
member for multiple instancesWeb applications frequently operate concurrently in multiple instances, such as when a
user opens a mail application in multiple browser tabs. Since the desktop is a shared
resource, the notifications API provides a way for these instances to easily coordinate, by
using the tag
member.
Notifications which represent the same conceptual event can be tagged in the same way, and when both are shown, the user will only receive one notification.
Instance 1 | Instance 2 | // Instance notices there is new mail. | new Notification("New mail from John Doe", | { tag: 'message1' }); | | | // Slightly later, this instance notices | // there is new mail. | new Notification("New mail from John Doe", | { tag: 'message1' });
The result of this situation, if the user agent follows the algorithms here, is a single notification "New mail from John Doe".
tag
member for a single instanceThe tag
member can also be used by a single instance of an application to keep its
notifications as current as possible as state changes.
For example, if Alice is using a chat application with Bob, and Bob sends multiple messages while Alice is idle, the application may prefer that Alice not see a desktop notification for each message.
// Bob says "Hi" new Notification("Bob: Hi", { tag: 'chat_Bob' }); // Bob says "Are you free this afternoon?" new Notification("Bob: Hi / Are you free this afternoon?", { tag: 'chat_Bob' });
The result of this situation is a single notification; the second one
replaces the first having the same tag. In a platform that queues notifications
(first-in-first-out), using the tag allows the notification to also maintain its
position in the queue. Platforms where the newest notifications are shown first,
a similar result could be achieved using the
close()
method.
Thanks to Aharon (Vladimir) Lanin, Alex Russell, David Håsäther, Doug Turner, Drew Wilson, Jake Archibald, Edward O'Connor, Ian Hickson, James Graham, Jon Lee, Jonas Sicking, Olli Pettay, and Simon Pieters for being awesome. Special thanks to Anne van Kesteren for his continuing work on the WHATWG's Notifications API Standard.


AMAZING PEOPLE ARE MAKING AMAZING DESIGNS IN A FUN ENVIRONMENT
When you work with us, you are part of a tesm of committed collaborators. All aspects of our software development process are integrated, interactive and agile.
Our approach unifies design, development and management to create exeptional products.
We start each project by understanding your business goals,the user's needs andthe product requirements.
then we help translatethem into effective and elegant solutions.
Before we write a line of code, our team will spend the necessary time needednto understand your product vision.
The outcome of this scoping session is a propoasl or high-level statement of work.
Based on your requirements, we can provide a complete offering or just the pieces you need.
Our design practice offers a full range of services including brand strategy,interaction and visual design and user experience testing. Throughout your project,our designers create and implement visual design and workflows,solicit user feedback and work with you to make sure what gets built is what is needed.
All engineers are fluent in the latest enterprise, mobile and web development technologies. They collaborate with your team to write, and improve code on a daily basis, using proven practices such as test-driven development and pair programming.
Planning and development is iterative. Because we are constantly coding and testing, the products we build are always ready to go live. This iterative process allows for changes as business requirements evolve.


The java::null command takes no arguments and returns an object handle that represents the "null" value in Java. This command is typically used to get a "null" handle that will be passed to a Java method. The exact form of the return value of java::null is not specified and is likely to change but this should be of little concern as you should not need to know what the string representation of the "null" Java object is. If you ever need to test a handle to see if reffers to the "null" Java object you should use the java::isnull command.
Copyright © 1997-1998 Sun Microsystems, Inc.


@* * Copyright 2023 HM Revenue & Customs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *@ @import implicits.ImplicitCurrencyFormatter._ @import models.liabilitycalculation.viewmodels.AllowancesAndDeductionsViewModel @import views.html.layouts.unifiedLayout @import views.html.components._ @this( mainTemplate: unifiedLayout, p: p ) @(viewModel: AllowancesAndDeductionsViewModel, taxYear: Int, backUrl: String, isAgent: Boolean = false, btaNavPartial: Option[Html] = None)(implicit request: Request[_], messages: Messages) @tableRow(messageCode: String, dataItem: Option[BigDecimal], isNegative: Boolean = false) = { @dataItem.map { data =>
| @messages("deduction_breakdown.table.header") | @messages("deduction_breakdown.table.header.amount") |
|---|---|
| @messages("deduction_breakdown.total") | @viewModel.totalAllowancesAndDeductions.getOrElse(BigDecimal(0)).toCurrency |