text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
{
"apps": [
{
"name": "Document Entity Relationships",
"path": "ner",
"description": "Discover the network of <em>named entities</em> hidden within text documents"
},
{
"name": "Flickr Metadata Maps",
"path": "flickr",
"description": "Explore the locations where millions of Flickr photos were taken"
},
{
"name": "SSCI Predictive Database",
"path": "ssci",
"description": "Explore the progression of table partitioning in a predictive database."
},
{
"name": "Biofabric Graph Visualization",
"path": "biofabric",
"description": "An implementation of the Biofabric algorithm for visualizing large graphs."
},
{
"name": "Enron",
"path": "enron",
"description": "Enron email visualization."
}
],
"external": [
{
"name": "Vega",
"link": "http://trifacta.github.com/vega",
"institution": "Trifacta, Inc.",
"institution_link": "http://trifacta.com",
"description": "A visualization grammar, based on JSON, for specifying and representing visualizations"
}
]
}
|
json
|
Vickie Guerrero has revealed that WWE has stopped talking to her since she made an appearance for AEW in December 2019.
The former on-screen General Manager recently asked WWE if she would be able to have some Superstars as guests on her 'Excuse Me' podcast, which began in September 2019.
However, she mentioned in conversation with Chris Benoit’s son, David Benoit, during a recent episode that the company no longer speaks to her following her stint on commentary on the December 11 taping of AEW Dark.
Guerrero added that she loves wrestling and she is not going to pass up opportunities to work and perform when she is not obligated to one promotion, hence why she accepted AEW’s offer to call commentary.
It should be noted that two current WWE Superstars, Edge and Ruby Riott, appeared on Guerrero’s podcast in October 2019, but the majority of episodes since then have featured ex-WWE personnel or talent from AEW.
What's next for The Bloodline?
|
english
|
<filename>aqua/public/static/locales/en/me.json<gh_stars>0
{
"credits": {
"kinds": {
"credit": "Credit",
"prediction-task": "Prediction task",
"task": "Task",
"training-task": "Training task"
}
},
"download": "Download",
"files": {
"created_at": "Upload date",
"name": "File name",
"title": "Files"
},
"home": {
"models_descrip": "You can generate your model to detect objects from your images from this",
"models_title": "Models",
"project_descrip": "The project identifier will be useful to use our API",
"project_title": "Project"
},
"keys": {
"active": "Active",
"confirmContent": "This action cannot be undone. Are you sure you want to revoke this API Key?",
"confirmTitle": "Revoke API Key",
"name": "Name",
"prefix": "Prefix",
"revoke": "Revoke",
"revoked": "Revoked",
"state": "State",
"title": "API keys"
},
"keys_new": {
"button": "New",
"cancel": "Cancel",
"close": "Close",
"content": "Enter a name for the new API Key.",
"content_result": "Copy and save your password, if you lose it you must create a new one. Do not share it with anyone.",
"copy": "Copy",
"create": "Create",
"label": "Name",
"title": "New API Key"
},
"layers": {
"created_at": "Creation date",
"date": "Acquisition date",
"description": "Description",
"layer_type_R": "Raster",
"layer_type_V": "Vector",
"name": "Name",
"title": "Layers",
"type": "Type"
},
"maps": {
"created_at": "Creation date",
"description": "Description",
"name": "Name",
"title": "Maps"
},
"models": {
"add_annot": "Add annotations",
"add_imgs": "Add images",
"classes": "Classes",
"created_at": "Creation date",
"delete_models": "Delete",
"estimator_type": "Type",
"more_info": "More information",
"name": "Name",
"new_btn": "New Model",
"text_delete": "Are you sure you want to delete this model and its annotations?",
"text_delete_warning": "This action is IRREVERSIBLE",
"title": "Models",
"title_delete": "Delete Model",
"types": {
"OD": "Object Detection"
},
"uuid": "Show UUID"
},
"requests": {
"area_km2": "Area (km\u00b2)",
"created_at": "Date",
"layers": "Layers",
"state": "Current state",
"title": "Requests"
},
"sidebar": {
"credits": "Credits",
"dashboards": "Dashboards",
"files": "Files",
"home": "Home",
"keys": "API Keys",
"layers": "Layers",
"models": "Models",
"profile": "Profile",
"requests": "Requests",
"tables": "Tables",
"tasks": "Tasks",
"viewer": "Viewer"
},
"tables": {
"title": "Tables"
},
"tasks": {
"states": {
"CANCELED": "Canceled",
"FAILED": "Failed",
"FINISHED": "Finished",
"PENDING": "Pending",
"STARTED": "Running"
}
},
"view": "View"
}
|
json
|
Eteta Vasthundi song is a Telugu devotional song from the Sri Gajanana Koti Pujalu released on 2014. Music of Eteta Vasthundi song is composed by Ala-Ravi. Eteta Vasthundi was sung by V. Anilkumar. Download Eteta Vasthundi song from Sri Gajanana Koti Pujalu on Raaga.com.
|
english
|
The Bayern Munich team flew to Qatar on Friday for its winter training camp amid uncertainty over the club’s contentious sponsorship agreement with the Persian Gulf country.
State-owned Qatar Airways’ lucrative advertising deal is due to expire at the end of the season and there is pressure on the Bavarian powerhouse from its own fans not to extend it. Many Bayern supporters feel it’s damaging to the club’s reputation to take money from a country associated with human rights abuses.
The issue has long been a source of contention between Bayern and its own fans, who have consistently campaigned against the sponsorship agreement. Members of the Bayern ultra-fan groups, Munich’s Red Pride and Club. No. 12, displayed banners at games condemning what they say is the “sports washing” of human rights abuses in Qatar through Bayern’s publicity for the sheikhdom.
Bayern did not respond to requests for comment.
Fans previously called on Bayern to prematurely end the sponsorship deal. The club’s 2021 AGM ended in tumult and anger when members booed the club’s directors for refusing to discuss the issue.
Bayern president Herbert Hainer apologized at the following AGM last November when he said he made “mistakes” in not allowing a discussion at the previous meeting.
Club No. 12 organized a public meeting in Munich in 2020 titled “Qatar, human rights and FC Bayern” featuring two migrant workers who spoke of their experiences constructing stadiums for the World Cup. Bayern was invited to send a representative but did not respond to organizers.
The team plays with Qatar Airways on the sleeves of the players’ jerseys. The club receives 10 million euros ($10.5 million) a year from its five-year deal with the Qatari carrier. That arrangement was signed in 2018, replacing Bayern’s previous sponsorship deal with Doha Airport.
The club has been holding mid-season training camps in the Persian Gulf country since 2011, though plans to train there in 2022 and 2021 were scrapped due to the coronavirus pandemic.
Bayern CEO Oliver Kahn said in November that the club was deferring its decision on whether to extend its deal with Qatar Airways.
“We will continue to discuss the issue intensively after the World Cup and find a solution for FC Bayern,” Kahn told members at the AGM.
There has been no news on the issue from the club since.
The reigning German Bundesliga champions FC Bayern Munich will host Spanish giants FC Barcelona on Tuesday (September 13) at the Allianz Arena for a Champions League group stage match. Bayern Munich’s recent success against Barcelona has made them favourites for the clash. However, the Blaugrana are a more competitive team this season than they were in the last couple of seasons. The Bayern Munich vs Barcelona 2022 group C match preview is discussed in this article.
Bayern Munich and Barcelona are two of the most successful Champions League teams in history. Bayern have won six UCL titles, while Barcelona have clinched five. Bayern have the advantage in a head-to-head battle. The Bavarians have nine victories over the Blaugrana in 13 meetings.
On the other hand, Barcelona have only two victories and the remaining two matches ended in draws. Bayern Munich, understandably, have the advantage in terms of goal scoring. They have netted 32 times in Barcelona’s goalposts while conceding 16.
In Tuesday’s contest, the lineups of the two sides will be much different than their latest meeting in December 2021. Lewandowski transferred from Bayern Munich to Barcelona in this summer's window. The Spanish giants also included some quality footballers in their squad, which has helped Xavi to properly implement his game plan on the pitch. On the other hand, Bayern Munich replaced Lewandowski with Liverpool’s Sadio Mane. Besides, Julian Nagelsmann has made some adjustments in his system with Mane playing the lone striker role.
Barcelona’s head coach, Xavi Hernandez, is likely to implement a 4-3-3 system where the Polish goal machine, Robert Lewandowski, will play the main hitman role. There will be Ousmane Dembele and Raphinha to assist Lewandowski upfront. The defenders have a bigger duty in this match to stop Bayern’s attacking players in the match. It will be interesting to see whether they have the capability to stop Bayern’s attacking players in the contest.
Bayern Munich’s Julian Nagelsmann has tried to formulate his game plan for this season with the versatile offensive player Sadio Mane. The Bayern coach might deploy a 4-2-3-1 system which will allow Thomas Muller to remain close to Sadio Mane to provide regular assists. The host will likely play a bit cautiously to not allow Lewandowski a slight chance to find the back of the net.
Two important players for Bayern Munich, Kingsley Coman and Bouna Sarr, will miss the contest due to injury. But Benjamin Pavard and Lucas Hernandez are most likely to be back in the starting lineup for the hosts.
Bayern Munich (Predicted Starting XI)
GK: Manuel Neuer;
Defenders: Benjamin Pavard, Matthijs de Ligt, Lucas Hernandez, Joshua Kimmich;
Midfielders: Alphonso Davies, Marcel Sabitzer; Serge Gnabry, Thomas Muller, Leroy Sane;
There is no major injury concern in Barcelona’s squad. Sergio Roberto has been included in the 25-member squad who missed out on playing the Cadiz match due to a muscular problem. Therefore, Xavi has no issue selecting players for this big contest.
Barcelona (Predicted Starting XI)
GK: Marc-Andre ter Stegen;
Defenders: Jules Kounde, Ronald Araujo, Eric Garcia, Jordi Alba,
Midfielders: Gavi, Sergio Busquets, Pedri;
Prediction: Bayern Munich 2 – 2 Barcelona.
Where to watch Bayern Munich vs Barcelona, Group C match of UCL 2022-2023?
Football fans in India and the subcontinent can watch the group C match between Bayern Munich and Barcelona on the Sony TV network. Besides, the match can be seen on the Sony Liv app and website. The match will start on Wednesday at 1 a.m. (Bangladesh Standard Time).
The Bayern Munich vs Barcelona 2022 UEFA Champions League encounter would be more thrilling to watch than it was the previous year. Because a lot of changes were made in the squads of both the teams during the summer transfer window of 2022, Barcelona’s hitman, Robert Lewandowski, knows a lot about his former club, Bayern Munich, and its players' weaknesses and strengths. This may aid Barcelona in properly executing their game plan on the field. Bayern Munich, on the other hand, is always good at coming up with novel solutions. Therefore, overcoming the host Bayern in this contest won’t be easy for Barcelona.
Barcelona is set to sign Poland striker Robert Lewandowski from Bayern Munich in a bold move by the debt-ridden club to acquire a world-class scorer who can finally help fill the void a year after Lionel Messi’s exit last summer.
The two European clubs have reached an agreement in principle for Lewandowski’s move to Camp Nou, Bayern president Herbert Hainer said Saturday.
Spanish media reports that the transfer would cost Barcelona some 50 million euros ($50.4 million).
The 33-year-old Lewandowski, one of soccer’s most prolific scorers of the past decade, would greatly boost Barcelona’s chances of rebuilding a competitive team after winning nothing last season following the departure of Messi, its all-time top scorer.
Lewandowski scored 312 goals in 384 Bundesliga games for Bayern and previous club Borussia Dortmund. He hit 35 goals in 34 appearances last season to become the Bundesliga’s leading scorer for the seventh time overall. Barcelona’s top scorers were Memphis Depay and Pierre-Emerick Aubameyang with 13 goals each last campaign.
Barcelona also gets a proven winner. Lewandowski helped Bayern win the 2020 Champions League, after it humiliated Barcelona 8-2 in the quarterfinals. He also scooped up 10 Bundesliga titles, four German Cups, and a Club World Cup with the Bavarian powerhouse.
Only the dominance of Messi and Cristiano Ronaldo has likely stopped Lewandowski from receiving more individual accolades.
But Lewandowski said in late May that “my story with Bayern Munich is over” after contract extension talks with Bayern broke down. He had one more season left on his contact with Bayern.
He will now join a team coached by Xavi Hernández that relied on Aubameyang and Ferran Torres for its goals after they joined last winter as Depay was injured and lost his starting job as striker. He will have Spain’s young and gifted midfielders Pedri González and Gavi Páez to set him up.
Barcelona is mired in debt mostly due to the huge transfer fees and salaries paid out by its previous president and board. In order to make signings this summer, current president Joan Laporta had to sell 10% of the team’s Spanish league television rights for the next 25 years in exchange for 207.5 million euros ($207.5 million).
That infusion of cash also helped it secure the transfer of Brazil winger Raphinha and sign Ousmane Dembélé to a new contract last week as its hopes to challenge Spanish and European champion Real Madrid in the upcoming season. Local media said Barcelona agreed to play Leeds nearly 60 million euros ($60 million) plus add-ons for the 25-year-old Raphinha.
Now, with a veteran like Lewandowski soon to be on board, the club is clearly betting on winning titles again in the short term. Last season, Barcelona finished a distant second in Spain to Madrid and failed to advance beyond the Champions League group phase.
To compensate the spending, Barcelona said this week that it had reached an agreement with Manchester United to potentially send Netherlands midfielder Frenkie de Jong the Premier League club for 75 million euros ($75 million) plus another possible 10 million euros in variables. That move, however, would have to be approved by De Jong, who has no interest in leaving Barcelona according to media reports.
The sale allows Bayern to cash in on a player turning 34 next month who would have become a free agent next year and had made clear his desire to leave.
If the fee is confirmed, it would be a club-record sale fee for Bayern, exceeding the 40 million euros ($40.3 million) the German champion received from Juventus for Douglas Costa in 2018.
Eric Maxim Choupo-Moting is Bayern’s typical backup for Lewandowski but rarely starts, while other forwards like Sadio Mané, Leroy Sané, Kingsley Coman and Serge Gnabry are primarily wide players.
So replacing a player who was Bundesliga top scorer for each of the last five seasons — and who set the league record of 41 goals in 2020-21 -- will be no easy task.
Villarreal pulled off another surprising Champions League result, this time against sixth-time champion Bayern Munich to boost its hopes of returning to the semifinals for the first time in 16 years.
After making it past the group stage and eliminating Juventus in the round of 16, the modest Spanish club took a big step toward reaching the last four by holding on to a 1-0 victory against favorite Bayern in the first leg of the quarterfinals on Wednesday.
Arnaut Danjuma’s goal early in the first half was enough for Villarreal at the La Cerámica Stadium, with Bayern unable to get past the solid defense of Unai Emery’s squad and losing only for the second time in 30 Champions League matches.
Bayern was unbeaten in its last 22 away games in the Champions League, with 17 wins and five draws in a record run that had started after a loss in 2017 to a Paris Saint-Germain team coached by Emery.
The Germans struggled throughout the match on Wednesday and were glad to leave only one goal down.
The second leg is next week in Munich, where Villarreal will need a draw to get to the semifinals for the first time since its first last-four appearance in the Champions League in 2006. Villarreal stunned Juventus 3-0 in Italy after a 1-1 draw at home in the last 16.
In the other quarterfinal Wednesday, defending champion Chelsea lost 3-1 to Real Madrid in the first leg in London.
Villarreal looked in control from the start and Bayern struggled to create significant scoring chances. The hosts threatened the most and had some good chances to add to its lead.
Danjuma opened the scoring in the eighth minute by redirecting a close-range shot by Dani Parejo as the Bayern defense was caught off guard. It was Danjuma’s sixth goal in nine Champions League appearances this season, and seventh in 11 career games in the competition.
Villarreal thought it had doubled the lead in the 41st but Francis Coquelin’s goal from a tough angle was disallowed for offside.
Striker Gerard Moreno twice had opportunities to add to Villarreal's lead after that. First with a low shot from outside the area that hit the post in the 53rd, and 10 minutes later after intercepting a bad pass by Bayern goalkeeper Manuel Neuer near midfield and missing his long-range shot into the open net. The ball ended up curling too much as Neuer desperately tried to run back into position.
Bayern increased the pressure near the end but again it was Villarreal that nearly added to the lead when substitute Alfonso Pedraza missed from close range on a counterattack in the 87th.
Villarreal did a good job containing Robert Lewandowski throughout the match and he had few opportunities inside the area. He entered the match as the Champions League’s leading scorer with 12 goals from eight matches and had scored seven goals in his last five games in all competitions. The Poland striker is ranked third on the all-time list of Champions League scorers, behind Cristiano Ronaldo and Lionel Messi.
Bayern's Canadian player Alphonso Davies made his first appearance since Dec. 17 after a long injury layoff because of cardiac issues.
Villarreal, based in a city of about 50,000 people, is playing in the quarterfinals for the first time in 13 years. It qualified for the Champions League by winning last season’s Europa League.
Bayern was eliminated by PSG at this stage last season. The German club made it to the last eight 10 times in the last 11 seasons. The team is playing in the quarterfinals for a record 20th time.
The winner will play either Benfica or Liverpool in the semifinals. Liverpool won the first leg in Lisbon 3-1.
Gerd Müller, the Bayern Munich and former West Germany forward known as “Der Bomber” for his scoring-prowess, has died. He was 75.
The Bavarian club announced his death on Sunday.
Müller scored 566 goals for Bayern between 1964 and 1979, helping the side to four German titles, four German Cup wins and three European Cup victories in that time. He still holds the record for the most goals scored in the Bundesliga with 365, scored in 427 league games.
Bayern announced in October 2015 that Müller has had Alzheimer’s disease for “a long time” and that he had been cared for professionally with the support of his family since the beginning of February that year.
Müller made 607 competitive appearances for Bayern. He was the league’s top-scorer on seven occasions. He was as important to Bayern’s ascent to becoming Germany’s powerhouse as former teammates Franz Beckenbauer and Uli Hoeneß.
Müller’s record of 40 goals scored in the 1971-72 Bundesliga season was only beaten last season, when current Bayern forward Robert Lewandowski scored his 41st in the last minute of the last game.
Müller also helped West Germany win the European Championship in 1972, then the World Cup two years later, when he scored the winning goal in the final against the Netherlands. Altogether he scored 68 goals in 62 appearances for West Germany. It was a national record only surpassed in 2014 by Miroslav Klose, who needed 129 appearances to match him.
Müller became a youth coach at Bayern after his playing days, working with players such as Philipp Lahm, Bastian Schweinsteiger and Thomas Müller.
Cristiano Ronaldo is rumored to be thinking of leaving Juventus because he doesn't want to miss out on the opportunity to play in the Champions League. In that case, Ronaldo would aspire to join one of Europe's top teams. He still plays with a lot of intensity and scores a lot of goals at the age of 36. Any European giant would be happy to have him into their squad. The economic aspect is an important issue here but Ronaldo is also ready to make concessions in terms of salary. This article discusses potential destinations for Ronaldo if he leaves Juventus.
Cristiano Ronaldo has reportedly expressed a desire to return to Real Madrid next season, regardless of whether Juventus is guaranteed a spot in the Champions League.Madrid coach Zinedine Zidane is a big fan of Ronaldo. So, Zidane will surely embrace Cristiano’s return to the team.But it's not just a case of will; economic issues are important here.
It would be very difficult for Madrid to invest a lot of money to get a mega Star into the squad since they have a debt of about 1 billion Euros. In that case, Ronaldo would have to give up a large chunk of his current wages. But Madrid supporters will be overjoyed to see Ronaldo return to the Bernabeu.
Cristiano Ronaldo is a person who is always up for a challenge. He prefers to play in situations that allow him to display his charisma. Considering this, Manchester United could be an ideal destination for Ronaldo if he leaves Juventus.
Red Devil fans are hoping to see Ronaldo return to the team. In terms of finances, the amount of money that would have been spent on Ronaldo five years ago is not as much now. Besides, both sides would be benefitted as Ronaldo has an extra affection for Manchester United.
A few years back, PSG have created a stir by signing two superstar footballers Neymar and KylianMbappé. If possible, the Qatari owner Nasser Al Khelaifi would bring Lionel Messi and Cristiano Ronaldo to Paris Saint-Germain. Although the PSG owner has no shortage of money, it will not be possible to include so many star footballers in one team due to the financial fair play.
In that case, PSG will want to keep the best two footballers in the team by spending more money. They will try to bring Cristiano Ronaldo to the team if Neymar leaves the team for Barcelona next season. Ronaldo would welcome the opportunity to play in Paris for a while. Among the potential destinations for Ronaldo, PSG would be a suitable option.
Bayern Munich has expressed no interest in buying Cristiano Ronaldo so far. However, Bayern Munich may be willing to sign him if Ronaldo shows an interest in leaving Juventus. They can make a good offer within their capacity. Ronaldo may be interested in joining Bayern Munich because it gives him the opportunity to play in the German Bundesliga and with one of Europe's biggest clubs.
Cristiano Ronaldo can return to his native Portugal if he leaves Juventus. In that case, Sporting Lisbon may be the best option for him as Ronaldo started his competitive football career with this club. He later became a superstar at Sir Alex Ferguson's Manchester United. Recently, Ronaldo's mother expressed interest in returning to Portugal while talking about her son's transfer. However, Ronaldo is less likely to play for Sporting Lisbon next season.
If the big teams in Europe fail to lure Ronaldo, then David Beckham's Inter Miami CF in Major League Soccer (MLS) may be an excellent option. Ronaldo can increase the popularity of football in the United States by playing at the age of 36.
Besides, Miami is a great place to live. Inter Miami would be the most perfect destination for Ronaldo at the moment if he can give up the temptation to play in a competitive league in Europe. But will a competitive footballer Ronaldo choose this option?
Read: How European football is badly affected by the pandemic covid-19?
Juventus are currently fighting hard to finish the top four in Serie A. Cristiano Ronaldo will remain in the squad if they can secure next season's Champions League spot at the end of the season. If not, potential destinations for Ronaldo could be the above-mentioned clubs. Therefore, he could be seen playing for another club next season. With one year left on his contract with Juventus, it is expected that interested clubs will not have to spend a lot of money to obtain Ronaldo.
|
english
|
pub struct Fib(i32, i32);
impl Default for Fib {
fn default() -> Fib {
Fib(0, 1)
}
}
impl Iterator for Fib {
type Item = i32;
fn next(&mut self) -> Option<i32> {
let tmp = self.0 + self.1;
self.0 = self.1;
self.1 = tmp;
Some(self.0)
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn first_few() {
let first_few: Vec<_> = Fib::default().take(10).collect();
assert_eq!(first_few, vec![1, 1, 2, 3, 5, 8, 13, 21, 34, 55]);
}
}
|
rust
|
That is it from this one-sided game. India take an unassailable lead. The final ODI will be played on 24th January at 1330 IST (0800 GMT). Do join us for the build up. Cheers!
Mohammad Shami wins the Player of the Match. He tries to keep his rhythm in check everytime he opens with the ball. Reckons sometimes they don't know how the pitch will play but he tries to help the other bowlers as much as he can.
Rohit Sharma says the bowlers have stepped up in the last five games. Adds their bowlers have worked hard and they were rewarded for their skills. Reckons 250 could have been a challenging total but his bowlers bowled well. Adds they want to try different things before the World Cup. Feels till now they have tried everything and they are happy with it. On his bowlers, Rohit says their are approaching brilliantly but they have to think about the future as well. Admits he is trying to put pressure on the bowlers with the bat and feels a big innings is just around the corner.
Tom Latham says the Indians bowled well and gave no room to them and credit to India for the way they performed. Adds there was shape for the bowlers but they failed to put any stand with the bat. Reckons the surface was different from the first game but they didn't adapt quickly.
It was a dream start for India as both Siraj and Shami bowled some nuts to push New Zealand completely on the back foot. Not just they both but even Hardik Pandya and Shardul Thakur bowled superbly. There wasn't breathing space for the batters such was the bowling by India. We all hoped New Zealand to put on a show in this series but their batting didn't arrive apart form that innings from Bracewell. It just shows how important are their experienced players.
Rohit Sharma took more time at the toss than the New Zealand top order took in the middle. Harsh but it's true! Only because of the knock of Michael Bracewell, Mitchell Santner and Glenn Phillips that they finished above 100 but it still wasn't the total that the Kiwis hoped for. The bowlers had not much to bowl at and in the end were comprehensively beaten.
What a win for India! Complete dominance but hands down it was because of the way their bowlers put on a show. India chased it down without breaking much sweat. New Zealand on the other hand will just hope to quickly forget about this game or else dig down to see how it went so wrong.
FOUR! Gill finishes it off in style! Full and on middle. Gill skips down and heaves it to long on for four. India win by 8 wickets.
Outside off, dabbed to point.
FOUR! Good shot! Tossed up on off. Kishan reverse hits and it goes over point for four.
Fuller and on off. Kishan again blocks.
Slows it up, outside off. Kishan wants to drive but misses.
On middle, this is eased down to long on for one.
Fuller and angling on middle. Kept out.
Tossed up on middle. Kishan leans and blocks.
Fuller and on off. Blocked out.
Full and on middle. Defended out.
FOUR! Tossed up, outside off. Kishan smashes it over mid off as he uses his feet and bags a boundary.
Fuller and outside off. Kishan drives it to cover.
Mitchell Santner To Virat Kohli OUT!
OUT! STUMPED! Kohli goes! Santner lands it on off and turns it away sharply. Kohli prods forward to defend but gets beaten on the outside edge. Tom Latham collects and removes the bails. The replay shows Kohli loses his balance and it was an easy decision for the third umpire. OUT IT IS!
This is outside off. Gill tries to reverse hit but misses it completely.
FOUR! Bang! Tossed up, outside off. Gill gets on his knee and slog-sweeps it to deep mid-wicket for a boundary.
This is outside off. Gill gets inside the line and blocks it back to the bowler.
Fuller ball, outside off. Gill punches it to cover.
Tossed up, outside off. Gill keeps it out.
FOUR! Well played! Shorter and on off. Gill whacks it to deep mid-wicket for four.
Fuller and on off, Gill flicks it to mid-wicket for a single. He will keep the strike. Only 19 runs needed now.
FOUR! Pulled away! Short in length and on middle. Kohli pulls it hard and to deep square leg for four more.
- Umpire KN Ananthapadmanabhan (IND), Nitin Menon (IND) and Jayaraman Madanagopal (IND)
- Referee Javagal Srinath (IND)
- New Zealand 108/10: B Tickner lbw b K Yadav 2(7)
- Referral 1 (34.3 ovs): B Tickner against IND (LBW) Unsuccessful (IND: 2, NZ: 1)
- R Sharma 48th ODI fifty: 50 runs in 47 balls (7x4) (2x6)
- Referral 1 (12.3 ovs): NZ against S Gill (LBW) Unsuccessful (IND: 2, NZ: 1)
- 1st wkt Partnership: 51 off 58 balls between R Sharma (37) and S Gill (14)
|
english
|
<gh_stars>1000+
{
"jest": {
"rootDir": "./",
"runner": "<rootDir>/runner.ts"
},
"dependencies": {
"@babel/preset-env": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"jest-environment-node": "file:../../../packages/jest-environment-node"
}
}
|
json
|
<filename>card-core/src/main/java/com/s4game/core/event/IEventHandler.java<gh_stars>0
package com.s4game.core.event;
/**
*
* 事件处理
*
* @Author <EMAIL>
* @sine 2015年4月23日 下午5:08:56
*
*/
public interface IEventHandler {
/**
* @param source 事件源
* @param data 事件携带数据
*/
public void handle(Object source, Object data);
/**
* <p>{@link See com.simplegame.event.IEvent}
* @return
*/
public String getEventType();
}
|
java
|
CHANDIGARH, JAN 1: New Haryana Chief Secretary Lalit Mohan Goyal, who assumed charge today, has vowed to provide a people-friendly administration.
Talking to The Indian Express after taking charge, Goyal said he would ensure that officers in the state not only made themselves accessible to the people but also acted promptly to redress their grievances. There would be no delay in imparting justice, Goyal said.
He has his task cut out for him, though. Haryana has to keep pace with speedy development, especially in the fields of information technology and agriculture, which constitute the backbone of its economy, he said. Having spent quite some time serving in the state, Goyal hardly needs time to list priorities. “Transparency in the administration will solve all problems and the emphasis will be on providing an honest and accountable administration to the people,” Goyal said, adding that a message will be sent out to all district headquarters to extend a responsible and responsive administration.
Goyal took charge this morning from his predecessorm Vishnu Bhagwan. The new Chief Secretary will also look after the departments of Protocol, Hospitality, Training, Grievances, Vigilance and will also be the secretary in charge of departments of Planning and Coordination.
|
english
|
According to the police, around 50 people assaulted the petitioner's brother and pelted stones at the eatery.
According to police, on August 20, on the occasion of Muharram, a mob of over 1,500 persons had assembled at a public place in Salaya of Devbhoomi Dwarka and demanded to take out a Tazia procession, permission for which was not granted due to Covid restrictions.
Last Friday, a youth, identified as Ankush Patel (18), was allegedly beaten up by five people from another community.
Police have registered a case of rioting and till evening, were in the process of making arrests.
The police said those arrested in the molestation case were identified as Vipalav Avsare, Vithal Shinde, Anand Singh.
All the youngsters managed to escape after the college security reached the spot.
Rioting broke out in Azamgarh after a BSP leader and former MLA from Sagri,Sarvesh Singh Seepu (35),and his acquaintance Bharat Rai (40) were shot dead by unidentified assailants outside their house under Jiyanpur police station Friday morning. Police said the motive behind the murders was not yet clear.
The rioting set off earlier this month by the police shooting of a 69 year old man.
Recent violence in Karanj coupled with inflation and changing tastes spells doom for business there.
|
english
|
{
"author_id": "<NAME>",
"author_url": "https://edabit.com/user/mNMQvcxKSSvqqMYCH",
"challenge_id": "Qoqaohvgh4Mi3bpjj",
"code": "function percentageHappy(numbers) {\n \n}",
"difficulty": "Hard",
"instructions": "<p><span>You are given an array of </span><code>0</code><span>s and </span><code>1</code><span>s, like the one below:</span></p><pre><code>[0, 1, 0, 0, 0, 1, 1, 1, 0, 1]\n\n// The first element, a 0, and the last element, a 1 are both unhappy.\n// The second element, a 1 is unhappy.\n// The second-to-last element, a 0 is unhappy.\n// All other numbers in this array are happy.</code></pre><p><span>A </span><code>1</code><span> is </span><strong><span>unhappy</span></strong><span> if the digit to its left and the digit to its right are both 0s.\nA </span><code>0</code><span> is </span><strong><span>unhappy</span></strong><span> if the digit to its left and the digit to its right are both 1s. \nIf a number has only one neighbor, it is </span><strong><span>unhappy</span></strong><span> if its only neighbor is different. \nOtherwise, a number is </span><strong><span>happy</span></strong><span>.</span></p><p><span>Write a function that takes in an array of </span><code>0</code><span>s and </span><code>1</code><span>s and outputs the </span><strong><span>percentage of numbers which are happy</span></strong><span>. The total percentage of numbers which are happy can be represented as:</span></p><pre><code>% of happy 0s = (# happy 0s + # unhappy 0s) / # total 0s\n% of happy 1s = (# happy 1s + # unhappy 1s) / # total 1s\npercentage of happy numbers = (% of happy 0s + % of happy 1s) / 2</code></pre><p><span>In the example above, </span><code>0.6</code><span> is the number of happy numbers.</span></p><h3><span>Examples</span></h3><pre><code>percentageHappy([0, 1, 0, 1, 0]) \u279e 0\n\npercentageHappy([0, 1, 1, 0]) \u279e 0.5\n\npercentageHappy([0, 0, 0, 1, 1]) \u279e 1\n\npercentageHappy([1, 0, 0, 1, 1]) \u279e 0.8</code></pre><h3><span>Notes</span></h3><ul><li><span>Remember: a </span><code>0</code><span> border number is unhappy if its only neighbor is a </span><code>1</code><span> and vice versa.</span></li><li><span>An array will contain at least two elements.</span></li></ul>",
"source_url": "https://edabit.com/challenge/Qoqaohvgh4Mi3bpjj",
"tags": [
"arrays",
"loops"
],
"tests": "Test.assertEquals(percentageHappy([0, 1, 0, 1, 0]), 0)\nTest.assertEquals(percentageHappy([0, 1, 1, 0]), 0.5)\nTest.assertEquals(percentageHappy([0, 0, 0, 1, 1]), 1)\nTest.assertEquals(percentageHappy([1, 0, 0, 1, 1]), 0.8)\nTest.assertEquals(percentageHappy([1, 1, 1, 1, 1]), 1)\nTest.assertEquals(percentageHappy([1, 1, 0, 0, 1, 1]), 1)\nTest.assertEquals(percentageHappy([1, 1, 0, 0, 0, 1, 1]), 1)\nTest.assertEquals(percentageHappy([1, 0, 0, 0, 1]), 0.6)\nTest.assertEquals(percentageHappy([1, 0, 1, 0, 0, 0]), 0.5)\nTest.assertEquals(percentageHappy([1, 1]), 1)\nTest.assertEquals(percentageHappy([1, 0]), 0)",
"title": "Happy Numbers"
}
|
json
|
{
"actions": [],
"autoname": "BDM-.YYYY.-06-.####",
"creation": "2021-03-23 18:31:13.674699",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"project",
"project_name",
"project_client",
"location",
"column_break_6",
"client_name",
"date_of_test",
"date_of_report",
"reference_no",
"section_break_10",
"attach_report",
"section_break_12",
"tested_by",
"column_break_14",
"collected_by",
"amended_from"
],
"fields": [
{
"description": "Select Only if the Project is a Long-Term Project.\nPlease use Project field for Walkin Customer Projects.",
"fieldname": "project",
"fieldtype": "Link",
"label": "Project(GIICO)",
"options": "Project"
},
{
"fetch_from": "project.project_name",
"fieldname": "project_name",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Project Name(GIICO)",
"read_only": 1
},
{
"fieldname": "project_client",
"fieldtype": "Data",
"label": "Project"
},
{
"fieldname": "location",
"fieldtype": "Data",
"label": "Location"
},
{
"fieldname": "column_break_6",
"fieldtype": "Column Break"
},
{
"fieldname": "client_name",
"fieldtype": "Link",
"in_list_view": 1,
"label": "<NAME>",
"options": "Customer",
"reqd": 1
},
{
"fieldname": "date_of_test",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Date of Test",
"reqd": 1
},
{
"fieldname": "date_of_report",
"fieldtype": "Date",
"label": "Date of Report"
},
{
"fieldname": "reference_no",
"fieldtype": "Data",
"label": "Reference No"
},
{
"depends_on": "eval:!doc.__islocal",
"fieldname": "section_break_10",
"fieldtype": "Section Break"
},
{
"fieldname": "attach_report",
"fieldtype": "Attach",
"label": "Attach Report"
},
{
"fieldname": "section_break_12",
"fieldtype": "Section Break"
},
{
"fieldname": "tested_by",
"fieldtype": "Link",
"label": "Tested By",
"options": "User"
},
{
"fieldname": "column_break_14",
"fieldtype": "Column Break"
},
{
"fieldname": "collected_by",
"fieldtype": "Link",
"label": "Collected By",
"options": "User"
},
{
"fieldname": "amended_from",
"fieldtype": "Link",
"label": "Amended From",
"no_copy": 1,
"options": "Bluk Density Of masonary",
"print_hide": 1,
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2021-03-24 11:57:35.461924",
"modified_by": "Administrator",
"module": "Quality Control and Material Testing",
"name": "Bulk Density Of masonary",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Lab Test User",
"share": 1,
"submit": 1,
"write": 1
},
{
"cancel": 1,
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Projects Manager",
"share": 1,
"submit": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"track_changes": 1
}
|
json
|
Feedback (2)
2020 wholesale price Xikoo Air Cooler - USB desk min air cooler – XIKOO Detail:
Product detail pictures:
Related Product Guide:
We've our have sales staff, style and design staff, technical crew, QC team and package workforce. We've strict excellent control procedures for each system. Also, all of our workers are experienced in printing field for 2020 wholesale price Xikoo Air Cooler - USB desk min air cooler – XIKOO , The product will supply to all over the world, such as: Qatar, Lisbon, Romania, Relying on superior quality and excellent post-sales, our products sell well in America, Europe, the Middle East and South Africa. We are also the appointed OEM factory for several worlds' famous products brands. Welcome to contact us for further negotiation and cooperation.
The company can think what our think, the urgency of urgency to act in the interests of our position, can be said this is a responsible company, we had a happy cooperation!
Send your message to us:
|
english
|
QUETTA: The Education Department is going to launch campaign to ensure enrolment of 0.4 million new children in schools in all districts of Balochistan.
This was said by Provincial Minister for Education, Abdul Raheem Ziaratwal who was talking to journalists, here. He said “we are going to launch admission campaign to ensure enrolment of 0.4 million new children at schools across the province”.
He said that committees comprising officials of Education Department and the district management had been formed to supervise the campaign. “Presently, 1.3 million children are enrolled at schools and 1.2 million children are still out of school,” he said.
In reply to a question, he said that no political interference would be made into the work of Judicial Commission formed to probe into female student, Saqiba Kakar suicide case. He said that Balochistan has 12,509 schools and adequate number of teachers.
|
english
|
<reponame>MasayaAoyama/tilt<gh_stars>0
package k8swatch
import (
"context"
"github.com/tilt-dev/tilt/internal/store"
"github.com/tilt-dev/tilt/pkg/apis"
)
func HandleKubernetesDiscoveryCreateAction(_ context.Context, state *store.EngineState, a KubernetesDiscoveryCreateAction) {
key := apis.Key(a.KubernetesDiscovery)
if _, ok := state.KubernetesDiscoveries[key]; !ok {
state.KubernetesDiscoveries[key] = a.KubernetesDiscovery
}
}
func HandleKubernetesDiscoveryUpdateAction(_ context.Context, state *store.EngineState, a KubernetesDiscoveryUpdateAction) {
key := apis.Key(a.KubernetesDiscovery)
if _, ok := state.KubernetesDiscoveries[key]; ok {
state.KubernetesDiscoveries[key] = a.KubernetesDiscovery
}
}
func HandleKubernetesDiscoveryDeleteAction(_ context.Context, state *store.EngineState, a KubernetesDiscoveryDeleteAction) {
delete(state.KubernetesDiscoveries, a.Name)
}
|
go
|
<gh_stars>0
import { ApolloClient, HttpLink, NormalizedCacheObject } from '@apollo/client';
import { useMemo } from 'react';
import merge from 'deepmerge';
import { cache } from './store';
let apolloClient: ApolloClient<NormalizedCacheObject> | null = null;
const createApolloClient = () => {
const httpLink = new HttpLink({
uri: process.env.NEXT_PUBLIC_GATEWAY_URI,
credentials: 'include',
});
return new ApolloClient({
ssrMode: typeof window === 'undefined',
link: httpLink,
cache: cache,
connectToDevTools: true,
});
};
export function initializeApollo(initialState = {}) {
const client = apolloClient ?? createApolloClient();
if (initialState) {
const existingCache = client.extract();
const data = merge(initialState, existingCache);
client.cache.restore(data);
}
// For SSG and SSR always create a new Apollo Client
if (typeof window === 'undefined') {
return client;
}
// Create the Apollo Client once in the client
if (!apolloClient) {
apolloClient = client;
}
return client;
}
export function useApollo(state: any) {
return useMemo(() => initializeApollo(state), [state]);
}
|
typescript
|
{"key": "/books/OL11057473M", "title": "Japan (Cultural atlas of the world)", "subtitle": null, "publishers": ["Stonehenge"], "authors": ["<NAME>"], "isbn_10": "0867065907", "isbn_13": "9780867065909", "publish_date": "1991", "subjects": ["Antiquities", "Civilization", "Historical geography", "History", "Japan", "Maps"]}
|
json
|
<gh_stars>0
/**
* Test for HTTP protocol.
**/
#include "common.h"
TEST(SkypeTest, Generic) {
std::vector<uint> protocols;
getProtocols("./pcaps/skype-irc.cap", protocols);
EXPECT_EQ(protocols[PFWL_PROTO_L7_SKYPE], (uint) 326);
}
|
cpp
|
{"id":"CSP","segmentId":"CSP","longName":"Clinical Study Phase","description":"The CSP segment contains information on a patient’s status for a particular phase of the study. This segment is optional and is useful when a study has different evaluation intervals within it. (See section 7.7.1, \"HL7 Attribute Table – CSR – Clinical Study Registration,\" and section 7.5.1.2, \"Phase of a clinical trial:.\") The CSP segment is implemented on a study-specific basis for messaging purposes. The fact that the patient has entered a phase of the study that represents a certain treatment approach may need to be messaged to other systems, like pharmacy, nursing, or order entry. It is also important to sponsors and data management centers for tracking patient progress through the study and monitoring the data schedule defined for each phase. It may subsume OBR and OBX segments that follow it to indicate that these data describe the phase.","sample":"","chapters":["CH_07"],"fields":[{"id":"CSP.1","type":"Field","position":"CSP.1","length":0,"dataType":"CWE","dataTypeName":"Coded With Exceptions","usage":"R","rpt":"1","tableId":null,"tableName":null,"name":"Study Phase Identifier","description":null},{"id":"CSP.2","type":"Field","position":"CSP.2","length":0,"dataType":"DTM","dataTypeName":"Date/time","usage":"R","rpt":"1","tableId":null,"tableName":null,"name":"Date/Time Study Phase Began","description":null},{"id":"CSP.3","type":"Field","position":"CSP.3","length":0,"dataType":"DTM","dataTypeName":"Date/time","usage":"O","rpt":"1","tableId":null,"tableName":null,"name":"Date/Time Study Phase Ended","description":null},{"id":"CSP.4","type":"Field","position":"CSP.4","length":0,"dataType":"CWE","dataTypeName":"Coded With Exceptions","usage":"C","rpt":"1","tableId":"9999","tableName":"no table for CE","name":"Study Phase Evaluability","description":null}]}
|
json
|
{
"authors": [
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
},
{
"author": "<NAME>"
}
],
"doi": "10.1186/s12917-017-1009-4",
"publication_date": "2017-03-31",
"id": "EN114135",
"url": "https://pubmed.ncbi.nlm.nih.gov/28356105",
"source": "BMC veterinary research",
"source_url": "",
"licence": "CC BY",
"language": "en",
"type": "pubmed",
"description": "",
"text": "A 9-years-old castrated European shorthair cat living in rural area of north-eastern France (Saint Sauveur, Bourgogne-Franche-Comté region), without any travel history was presented for consultation due to hyperthermia, anorexia, depression and prolonged fever that didn't respond to antibiotic therapy. The cat had outdoor access with a history of vagrancy and was adequately vaccinated (core vaccines and FeLV vaccine). During biological investigations, intraerythrocytic inclusions were observed on blood smear and were further investigated by PCR analysis and sequencing. Molecular analyses confirmed Cytauxzoon sp. infection. The cat was treated with a subcutaneous injection of imidocarb dipropionate (3.5 mg/kg). One week after treatment, the cat improved clinically, although parasitic inclusions within erythrocytes persisted, and only a mild lymphocytosis was found. Two weeks after treatment, the cat appeared in excellent health, appetite was normal and parasitemia was negative. However, one month after treatment the cat relapsed with hyperthermia, anorexia, and depression. Blood smears and PCR were once again positive. Subsequently, the cat received an additional dose of imidocarb dipropionate (3.5 mg/kg SC) and recovered rapidly without other clinical signs. Two weeks after the second imidocarb injection, the cat was hit by a car and died."
}
|
json
|
<reponame>dcebotarenco/load-balancer
package com.codeflow.load.balance.balancers;
import com.codeflow.load.balance.LoadBalance;
import com.codeflow.load.balance.ServerRepository;
import java.util.List;
import java.util.Map;
import java.util.Objects;
/**
* The advantage of source address hashing is that it ensures that the same client IP address will be hashed to the same
* back-end server until the list of back-end servers changes. According to this feature, stateful session sessions can
* be established between service consumers and service providers.
*/
public class HashLoadBalance implements LoadBalance {
private final ServerRepository serverRepository;
public HashLoadBalance(ServerRepository serverRepository) {
this.serverRepository = serverRepository;
}
@Override
public String getServer(String ip) {
String clientIp = Objects.requireNonNull(ip);
Map<String, Integer> ipMap = Map.copyOf(serverRepository.findAllServers());
List<String> ips = List.copyOf(ipMap.keySet());
return ips.get(clientIp.hashCode() % ips.size());
}
}
|
java
|
{
"hashes": {
"appinfo\/app.php": "ec3312d868c454e6b7a679b3ca159da26366775ef0209c0841782adf526400b9f64c8653d14b47e89a05c945240453cc32f749821cf5ad1184c48edf23ed132b",
"appinfo\/info.xml": "3e073cc1a6598713ca4a8d201912ceb3f85a95bc018a64ae461e81938287f8cc2ea91a2715146afabe2608bb4cb988a4e6ba5595b0a341c85dbe36e23f63bc7f",
"img\/app.svg": "6be3b26d3518b8d854011dbb2b2d4289d241d2857b619ce93d99df9d122e7233b3e574c8cc22836a9438ddb7ca3d33facb3751e13d5e2782ae069b5744432e5f",
"lib\/Activity.php": "030c4ceeaa3ca4068b34052cb566c1d80eb08ad7eeefe98bd8ab981e7bbac6412c33cec9c87ba4e91c6f1228d3f41108cfe6ff426569b9095192d947c32c5537",
"lib\/Settings.php": "86c5507cb03a14d8353a34847a8cc52eee33676ffe9d8fdcd219cb24b05c4c9c36e7cb04fda6748dd6142835ed4e74d135435271cda8e6cca8dfe2f20387996c",
"lib\/ShareByMailProvider.php": "864a4d8a2233792610239460d98d93ab5752d7222089612f21e7232c7bb20685bff409b0a27fc07959489b9d2bda24da410902cceaf556407f4159ab8d3c6100",
"templates\/altmail.php": "e22f0840738dda750aad018064edda1b0e4d6d2e8aca490dfbacd0733ca1c67fe1735afbda4cdd246a297dd2dee242f985ed72fd6c9a5dcdd55e5f064c9540fa",
"templates\/mail.php": "7f484a597b2751b0d9b052b76effd0d342eb7bfa4a62afc61edd1e57d1063d04904f6f2c94ab58abcb7e285be9d3b1259cee28eafc75a8adea9f8f9babec21e3"
},
"signature": "Gn4kmpB+25pNTFQprtw\/1UhPoIza+NARBzQ04q2xQgZJx4ZNxJvRh5W8QNhnIW46WcqJQSNblPp\/DhNwK\/BXYB6U1m\/gQMUH4bzb5C4ns0WsagDu5bQ12+pi4pSSmTNp5jXKvWYDAC6hvsFIdPgHfUiM24vwK2eoV9fI97psTdhAbxwSAJlrO\/le0Wt5PRkeprmG0ZCULo27Fj6rZRJPEmR+N4dExPwzCyMWeYvJUEMhl5NDI485aZzKsL8ysiJ5plUcPt\/zHdi55cqkbWiqBeffbQQMHF6iPmYCZxTqAMSuwIe\/\/+jQ2IxmsxH4UvVe5bKxavPtkshpguoVgl41NA==",
"certificate": "-----<KEY>-----END CERTIFICATE-----"
}
|
json
|
from cornice.resource import resource, view
from cornice import Service
from cornice.validators import colander_body_validator
from pyramid.httpexceptions import HTTPNotFound, HTTPBadRequest
from pyramid.security import Everyone
from pyramid.request import Request
import sqlalchemy
import datetime
from naki.model import DBSession, View
from naki.lib.cors import NAKI_CORS_POLICY
from naki.schemas.container import ContainerSchema
from naki.lib.rest import APIResponse
from naki.model import View, Metadata, MetaKey, ViewItem, DigitalItem, Container, ContainerItem
#from naki.schemas.link import LinkSchema
from uuid import uuid4
@resource(path='/api/v1/view/{view_id}/container/{container_id}', collection_path='/api/v1/view/{view_id}/containers', cors_policy=NAKI_CORS_POLICY)
class ContainerRes(object):
def __init__(self, request, context = None):
self._context = context
self._request = request
self._view_id = self._request.matchdict['view_id']
@view(permission=Everyone)
def get(self):
container_id = self._request.matchdict['container_id']
items = DBSession.query(Container, ContainerItem)\
.outerjoin(ContainerItem, ContainerItem.id_container == Container.id_container)\
.filter(Container.id_view == self._view_id) \
.filter(Container.id_container == container_id)\
.all()
if len(items) == 0:
raise HTTPNotFound()
ret = items[0][0].get_dict();
ret['item_ids'] = [x[1].id_item for x in items] if items[0][1] else []
return APIResponse(ret)
@view(permission=Everyone)
def delete(self):
container_id = self._request.matchdict['container_id']
cnt = DBSession.query(Container).filter(Container.id_view == self._view_id).filter(Container.id_container == container_id).one()
cntitems = DBSession.query(ContainerItem).filter(ContainerItem.id_container == container_id).all()
for itm in cntitems:
DBSession.delete(cnt)
DBSession.delete(cnt)
DBSession.flush()
return APIResponse(True)
@view(permission=Everyone, schema=ContainerSchema, validators=(colander_body_validator,))
def put(self):
v = self._request.validated
container_id = self._request.matchdict['container_id']
cnt = DBSession.query(Container).filter(sqlalchemy.and_(Container.id_container == container_id, Container.id_view == self._view_id)).one()
cnt.set_from_dict(v)
sr = Request.blank('/api/v1/view/' + self._view_id + '/container/' + cnt.id_container)
return self._request.invoke_subrequest(sr)
@view(permission=Everyone)
def collection_get(self):
cnts = DBSession.query(Container).filter(Container.id_view == self._view_id).all()
return APIResponse([x.get_dict() for x in cnts])
@view(permission=Everyone, schema=ContainerSchema, validators=(colander_body_validator,))
def collection_post(self):
v = self._request.validated
v['id_container']=str(uuid4())
v['id_view'] = self._view_id
cnt = Container(v['id_container'], v['id_view'], v['type'], '', v['x'], v['y'], v['width'], v['height'], v['z'], v['data'])
DBSession.add(cnt)
for item in v['item_ids']:
ci = ContainerItem(v['id_container'], item, '{}')
DBSession.add(ci)
sr = Request.blank('/api/v1/view/' + self._view_id + '/container/' + cnt.id_container)
return self._request.invoke_subrequest(sr)
# return APIResponse([x.get_dict() for x in cnts])
container_item_service = Service(name='container_item_manip', path='/api/v1/view/{view_id:[a-zA-Z0-9-]+}/container/{container_id}/item/{item_id:[a-zA-Z0-9-]+}', description='Test servicex', cors_policy=NAKI_CORS_POLICY)
@container_item_service.put()
def view_item_service_func(request):
view_id = request.matchdict['view_id']
container_id = request.matchdict['container_id']
item_id = request.matchdict['item_id']
ci = ContainerItem(container_id, item_id, '')
DBSession.add(ci)
req = Request.blank('/api/v1/view/' + view_id + '/container/' + container_id)
return request.invoke_subrequest(req)
@container_item_service.delete()
def view_item_service_func2(request):
view_id = request.matchdict['view_id']
container_id = request.matchdict['container_id']
item_id = request.matchdict['item_id']
ci = DBSession.query(ContainerItem, Container)\
.join(Container, Container.id_container == ContainerItem.id_container)\
.filter(Container.id_view == view_id)\
.filter(sqlalchemy.and_(ContainerItem.id_container == container_id, ContainerItem.id_item == item_id))\
.one()
DBSession.delete(ci[0])
req = Request.blank('/api/v1/view/' + view_id + '/container/' + container_id)
return request.invoke_subrequest(req)
|
python
|
<reponame>NuGet/docs.microsoft.com-nuget.pl-pl
---
title: Ostrzeżenie narzędzia NuGet NU3003
description: Kod ostrzeżenia NU3003
author: mishra14
ms.author: jodou
ms.date: 8/16/2018
ms.topic: reference
ms.reviewer: anangaur
f1_keywords:
- NU3003
ms.openlocfilehash: ba7184d664235a694a8d32f39cae51f5d6e96040
ms.sourcegitcommit: ee6c3f203648a5561c809db54ebeb1d0f0598b68
ms.translationtype: MT
ms.contentlocale: pl-PL
ms.lasthandoff: 01/26/2021
ms.locfileid: "98778929"
---
# <a name="nuget-warning-nu3003"></a>Ostrzeżenie narzędzia NuGet NU3003
## <a name="scenario-1"></a>Scenariusz 1
<pre>Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The package is not signed. Unable to verify signature from an unsigned package.</pre>
### <a name="issue"></a>Problem
Klient NuGet próbował zweryfikować pakiet, który nie zawiera podpisu pakietu.
### <a name="solution"></a>Rozwiązanie
Utwórz problem w narzędziu [NuGet/Home](https://github.com/NuGet/Home/issues) wraz z pakietem, który wygenerował ten problem.
## <a name="scenario-2"></a>Scenariusz 2
<pre>Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The package signature is invalid or cannot be verified on this platform.</pre>
### <a name="issue"></a>Problem
Klient NuGet podjął próbę zweryfikowania pakietu zawierającego nieprawidłowy podpis pakietu lub podpis connot na bieżącej platformie.
### <a name="solution"></a>Rozwiązanie
Utwórz problem w narzędziu [NuGet/Home](https://github.com/NuGet/Home/issues) wraz z pakietem, który wygenerował ten problem, oraz platformą, w której wystąpił problem.
> [!Note]
> Gdy [tryb walidacji podpisu](../../consume-packages/installing-signed-packages.md#configure-package-signature-requirements) narzędzia NuGet jest ustawiony na Zaakceptuj (domyślnie), NU3003 jest wywoływane jako ostrzeżenie. Gdy tryb walidacji podpisu narzędzia NuGet jest ustawiony na Wymagaj lub w przypadku uruchamiania `nuget verify -signatures` polecenia, NU3003 jest podniesiona z ostrzeżenia do błędu.
|
markdown
|
<gh_stars>0
/*
The original Creamy Series Theme for phpBB version 2+
Created by reddog
http://www.reddevboard.com/
*/
body {
background-color : #D8F2DC;
}
font, th, td, p {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 12px;
}
font, p {
color : #000;
}
a:link, a:active {
color : #00CC99;
text-decoration : none;
}
a:visited {
color : #00CC99;
text-decoration : none;
}
a:hover {
text-decoration : none;
color : #009966;
}
hr {
border-top : 1px solid #00CC99;
border-bottom : 1px solid #FFF;
width : 99%;
height : 2px;
}
.acp {
background-color : #D8F2DC;
}
.bodyline {
background-color : #FFF;
border : 1px solid #AAE3B3;
}
.forumline {
background-color : #AAE3B3;
border : 0;
}
.boxline {
background-color : #AAE3B3;
border : 0;
}
.rowBox {
background-color : #DAF3DE;
}
.pmline {
position : absolute;
background-color : #DAF3DE;
border : 1px solid #AAE3B3;
text-align : center;
top : 50%;
left : 50%;
height : 100px;
width : 300px;
margin-top : -75px;
margin-left : -150px;
display : none;
}
.hdr {
background-image : url('./images/css/hd_bg.gif');
height : 25px;
border : 0;
color : #006633;
font-weight : bold;
font-size : 12px;
letter-spacing : 1px;
}
.hdra {
background-image : url('./images/css/hda_bg.gif');
height : 25px;
border : 0;
color : #006633;
font-weight : bold;
font-size : 12px;
letter-spacing : 1px;
}
.hdr a, table.hdr a:visited {
color : #00CC99;
text-decoration : none;
}
.hdr a:hover, table.hdr a:active {
color : #009966;
text-decoration : none;
}
.hdrtop {
background-image : url('./images/css/main_bg.gif');
height : 25px;
border : 0;
}
td.ftr {
background-image : url('./images/css/tab_bg.gif');
background-repeat : repeat-x;
font-size : 8px;
}
td.bottom {
background-image : url('./images/css/ft_bg.gif');
background-repeat : repeat-x;
font-size : 8px;
}
.ftrbot {
background-image : url('./images/css/hd_bg.gif');
height : 25px;
border : 0;
color : #006633;
letter-spacing : 1px;
}
td.row1 {
background-color : #DAF3DE;
}
td.row2 {
background-color : #D3F1D7;
}
td.row3 {
background-color : #C4EBCA;
}
td.row3Right
{
background-color : #C4EBCA;
}
td.rowpic {
color : #009900;
font-size : 11px;
font-weight : bold;
background-color : #DAF3DE;
height : 25px;
background-image : url('./images/css/cellpic3.gif');
}
th {
color : #009900;
font-size : 11px;
font-weight : bold;
height : 25px;
background-color : #DAF3DE;
background-image : url('./images/css/cellpic3.gif');
}
p, td, td.cat, td.catHead, td.catLeft, td.catSides, td.catRight, td.catBottom {
font-size: 11px;
}
td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom {
border : 0;
height : 28px;
background-color : #DAF3DE;
background-image : url('./images/css/cellpic3.gif');
}
td.cat, td.catHead, td.catBottom {
height : 29px;
border-width : 0;
}
th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR {
font-weight : bold;
border : 0;
height : 28px;
}
td.spaceRow {
background-color : #DAF3DE;
border : #AAE3B3;
border-style : solid;
}
td.mpBar {
border-left : 1px solid #A2DFAB;
border-top : 1px solid #A2DFAB;
border-right : 1px solid #FAFAFA;
border-bottom : 1px solid #FAFAFA;
background-color : #CCEED1;
}
th.thHead, td.catHead {
font-size : 12px;
border-width : 1px 1px 0;
}
th.thSides, td.catSides, td.spaceRow {
border-width : 0 1px;
}
th.thRight, td.catRight, td.row3Right {
border-width : 0 1px 0 0;
}
th.thLeft, td.catLeft {
border-width : 0 0 0 1px;
}
th.thBottom, td.catBottom {
border-width : 0 1px 1px;
}
th.thTop {
border-width : 1px 0 0;
}
th.thCornerL {
border-width : 1px 0 0 1px;
}
th.thCornerR {
border-width : 1px 1px 0 0;
}
.maintitle, h1, h2 {
font-weight : bold;
font-size : 22px;
font-family : "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
text-decoration : none;
line-height : 120%;
color : #009900;
}
.gen {
font-size : 12px;
}
.genmed {
font-size : 11px;
}
.gensmall {
font-size : 10px;
}
.gen, .genmed, .gensmall {
color : #006633;
}
a.gen, a.genmed, a.gensmall {
color : #006633;
text-decoration : none;
}
a.gen:hover, a.genmed:hover, a.gensmall:hover {
color : #009966;
}
.mainmenu {
font-family : Arial;
font-size : 12px;
font-weight : bold;
}
a.mainmenu {
text-decoration : none;
color : #006633;
}
a.mainmenu:hover {
text-decoration : none;
}
.cattitle {
font-weight : bold;
font-size : 12px;
letter-spacing : 1px;
color : #006633;
}
a.cattitle {
text-decoration : none;
color : #006633;
}
a.cattitle:hover {
text-decoration : none;
color : #009966;
}
.forumlink {
font-weight : bold;
font-size : 12px;
color : #006633;
}
a.forumlink {
text-decoration : none;
color : #006633;
}
a.forumlink:hover {
text-decoration : none;
color : #009966;
}
.nav {
font-weight : bold;
font-size : 11px;
color : #000;
}
a.nav {
text-decoration : none;
color : #006633;
}
a.nav:hover {
text-decoration : none;
color : #009966;
}
.topictitle {
font-weight : bold;
font-size : 11px;
color : #000;
}
a.topictitle:link {
text-decoration : none;
color : #006633;
}
a.topictitle:visited {
text-decoration : none;
color : #00CC99;
}
a.topictitle:hover {
text-decoration : none;
color : #009966;
}
.name {
font-size : 11px;
color : #000;
}
.postdetails {
font-size : 10px;
color : #000;
}
.postbody {
font-size : 12px;
}
a.postlink:link {
text-decoration : none;
color : #006633;
}
a.postlink:visited {
text-decoration : none;
color : #00CC99;
}
a.postlink:hover {
text-decoration : none;
color : #009966;
}
.code {
font-family : Courier, 'Courier New', sans-serif;
font-size : 11px;
color : #006600;
border-left : 1px #B4E7BA solid;
border-top : 1px #B4E7BA solid;
border-right : 1px #E0F5E3 solid;
border-bottom : 1px #E0E5E3 solid;
background-color : #CCEED1;
}
.quote {
font-family : Verdana, Arial, Helvetica, sans-serif;
font-size : 11px;
color : #444;
line-height : 125%;
border-left : 1px #B4E7BA solid;
border-top : 1px #B4E7BA solid;
border-right : 1px #E0F5E3 solid;
border-bottom : 1px #E0F5E3 solid;
background-color : #CCEED1;
}
.copyright {
font-size : 10px;
font-family : Verdana, Arial, Helvetica, sans-serif;
color : #444;
letter-spacing : -1px;
}
a.copyright {
color : #444;
text-decoration : none;
}
a.copyright:hover {
color : #000;
text-decoration : underline;
}
textarea, select {
color : #000;
font : normal 11px Verdana, Arial, Helvetica, sans-serif;
border-left : 1px #B4E7BA solid;
border-top : 1px #B4E7BA solid;
border-right : 1px #E0F5E3 solid;
border-bottom : 1px #E0F5E3 solid;
background-color : #CCEED1;
}
input.post, textarea.post, select {
border-left : 1px #B4E7BA solid;
border-top : 1px #B4E7BA solid;
border-right : 1px #E0F5E3 solid;
border-bottom : 1px #E0F5E3 solid;
background-color : #CCEED1;
}
input.post:focus,textarea.post:focus {
background-color : #DAF3DE;
}
input {
text-indent : 2px;
color : #000;
font : normal 11px Verdana, Arial, Helvetica, sans-serif;
}
input.mainoption {
font-weight : bold;
}
input.button,input.mainoption,input.liteoption {
background-color : #D8F2DC;
color : #00A452;
border : solid 1px #A2DFAB;
}
input.button:hover,input.mainoption:hover,input.liteoption:hover {
color : #009349;
border-color : #64CA73;
}
input.button:focus,input.mainoption:focus,input.liteoption:focus {
color : #106C3E;
border-color : #008080;
}
.helpline {
background-color : #D8F2DC;
border-style : none;
}
abbr, acronym {
color : #444;
border-bottom : 1px dotted #333;
cursor : help;
}
.super {
vertical-align : super;
color : #006633;
}
.absbottom {
vertical-align : text-bottom;
}
label {
cursor : pointer;
}
|
css
|
Israel Adesanya recently previewed the upcoming UFC 283 card on his YouTube account, FREESTYLEBENDER. The No.1-ranked middleweight discussed the first tetralogy fight in UFC history between Deiveson Figueiredo and Brandon Moreno, sharing that it deserves to be a main event bout as he stated:
"Honestly, I will say it's disrespect because there are two champions... The first fight was the one at the Apex. I feel like sometimes this whole COVID s**t made some fights less memorable than they should be because fans weren't in an arena... There's certain fights that change the landscape of the sport. If that was in an arena, that would have maybe changed the landscape."
Adesanya later blamed the bias against the flyweight division for the disrespect, adding:
"I think it's disrespect, but not disrespect like, 'oh, you're disrespecting them', but I feel like - I think it's also prejudice because flyweights, for whatever reason, they've always had this kind of prejudice against them where people say, 'no one wants to see them.'"
While Figueiredo is the current champion and Moreno is the interim champion, the matchup between Glover Teixeira and Jamahal Hill will be the main event instead. Although Teixeira is a former champion, he is not currently the champion while Hill will receive his first title opportunity. As Adesanya suggested, the weight class of the two fighters is the only logical explanation for the tetralogy bout not being the main event.
Watch Israel Adesanya discuss the upcoming co-main event of UFC 283 between Deiveson Figueiredo and Brandon Moreno below (starting at the 10:00 mark):
Francis Ngannou is now a mixed martial arts free agent after the former UFC heavyweight champion was unable to reach a new contract with the promotion. Israel Adesanya weighed in on his friend's decision while sharing photos on Twitter of the two of them alongside Kamaru Usman, stating:
"👑👑👑 History favors the bold, make sure HIS STORY gets told. As for Us...this will age well, because black don’t crack! ✊🏿"
While Adesanya's words may be up for interpretation, he appears to be standing by Ngannou's decision to leave the promotion. He is seemingly supporting the stand taken by the former heavyweight champion while likely alluding to him and Usman getting their belts back in the coming year.
Adesanya's next bout is yet to be announced, however, it is assumed that he will face Alex Pereira as he looks to regain the middleweight title. Usman is set to face Leon Edwards in a trilogy bout at UFC 286.
Check out Israel Adesanya's Twitter post below:
|
english
|
The second TechCrunch Disrupt Europe will take place from 18-21st October 2014 in London. Saturday and Sunday will feature the legendary TechCrunch Disrupt Hackathon, followed by two days of interviews and panels with Europe’s best entrepreneurs and VCs.
We’re showcasing a deep-dive discussion amongst the most influential VCs in European tech.
Philippe Botteri is a Partner at Accel Partners who joined after working in the technology industry for more than 15 years, including close to ten years in Silicon Valley. Philippe is leading Accel’s Big Data Fund efforts in Europe and also focuses on investments in security, cloud computing and digital services. He is responsible for the firm’s investments in BlaBlaCar, the leading European ride-sharing community, Docusign, the global SaaS leader in electronic signature and Hailo the global cab e-hailing mobile network. He also co-led Accel’s investment in HouseTrip, the next generation holiday rental booking website and Crowdstrike, a big data security company.
Saul Klein has been a partner with Index Ventures since 2007 and currently serves on the boards of Alertme, Chartbeat, Erply, GlassesDirect, MyHeritage, Seedcamp, Songkick and Soluto among others. He’s also the co-founder of Kano Computing. He was the co-founder and original CEO at what is now Lovefilm International (Amazon) and part of the original executive team at Skype (eBay). In 2007 he also started Seedcamp and OpenCoffee Club, which is now active in over 90 cities around the world.
Eileen Burbidge is a Partner at Passion Capital, the London-based venture capital firm she established with serial entrepreneurs and investors Stefan Glaenzer and Robert Dighero. She brings extensive operational experience to her investment activities gleaned from business and product development roles at Yahoo, Skype, PalmSource, Openwave, Sun and Apple. Eileen was ranked No. 18 in the WIRED100 list (2012) and serves on the advisory board for Tech City (chaired by the Prime Minister’s Office at No. 10 Downing Street). She is also a frequent guest commentator on Bloomberg TV, CNBC and BBC News.
Daniel Waterhouse is a general partner with Balderton Capital. He has over 14 years’ experience investing and spent five years as a partner at Wellington Partners, where he led investments in 11 companies and sat on the board of many. He covered opportunities across Europe and was an investor, often providing the first institutional money in a number of fast-growing companies including Hailo, YPlan, SumAll, EyeEm and Qype (sold to Yelp). Before joining Wellington, Daniel was a partner at 3i where he worked on all of their venture and private-equity investments in the Internet sector in North America and Europe. Prior to that, he was at Yahoo for six years from 1999, covering strategic development and M&A across the European region.
Aside from such great speakers, TechCrunch Disrupt Europe will also bring the Startup Battlefield and Startup Alley to London.
Startup Battlefield competitors pitch their companies live and onstage, competing for a prize of £30,000 and the Disrupt Cup. Previous Battlefield competitions have launched companies such as Dropbox, Mint.com, Yammer and Fitbit. You may have heard of them. Startup Alley features about 200 invited startups.
Find all the latest information on the Disrupt Europe website.
Grab a ticket before they sell out.
|
english
|
Every blogger is aware that it is very important to keep your blog updated because it is useful to keep the readers visiting to your blog for reading new content and also helpful for SEO. As soon as you update your blog, search engines crawl to your blog and thus your new post can help you to get traffic from search engines.
Sometimes bloggers find it difficult to update their blog post frequently, it might be because they are doing blogging part time or busy with some other work. Whatever may be the reason, if bloggers fails to update their blogs frequently then blog might lose regular visitors and organic traffic also. Bloggers just need to follow few tips to keep their blog updated with frequent posts.
Blogging without plans never gives you expected results. You must plan all your blogging activities including writing articles. Decide how many articles you want to write for your blog, it doesn’t matter that you decide to post 3 articles in a week or 3 articles in a day. You just need to stick with what you have decided, this way your readers will know when you update your blog and will expect the articles accordingly.
If you are a part time blogger or a professional blogger who is busy with other work like providing other blogging services then there might be chance that you even won’t get time to write 3 articles in a week. For this, you need to spend your time on weekend and write all 3 posts and schedule them for later. This way you don’t have to worry about publishing post on weekdays.
If you want to update your blog daily then it would be better to select the topic of the article before one day. It is better for the bloggers who waste their time in searching for topic and at last when they get the topic, the entire mood vanishes to write the article. I always prefer to select the topic in advance, this helps me to start fresh while writing articles. Everything seems to be organized and scheduled.
I am sure all the bloggers keep on thinking about blog post ideas. If you get any idea about article then either note down it or if you are free than start writing the article same time. Whenever idea strikes to our mind, it is the perfect time to write it down because we get good flow of thoughts and thus can write article fast and better.
It’s always recommended that you must schedule your articles in advance. No matter you are a full time blogger or part time blogger, we all are social people and their might be chances that you get busy and can’t publish your post which you have already drafted. Thus, make a habit to schedule at least 3 posts so that even if you are busy with other work, you won’t lose your readers who visit your blog regularly.
I hope you will find the tips effective for maintaining blog post frequency. If I am missing any tip please share in comments, I would love to learn more tips from you.
|
english
|
package de.sambalmueslie.phonebook.service;
import io.dropwizard.Configuration;
public class PhonebookConfiguration extends Configuration {
}
|
java
|
<reponame>peniakoff/commercetools-sync-java<filename>src/test/java/com/commercetools/sync/customers/helpers/CustomerSyncStatisticsTest.java
package com.commercetools.sync.customers.helpers;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class CustomerSyncStatisticsTest {
private CustomerSyncStatistics customerSyncStatistics;
@BeforeEach
void setup() {
customerSyncStatistics = new CustomerSyncStatistics();
}
@Test
void getReportMessage_WithIncrementedStats_ShouldGetCorrectMessage() {
customerSyncStatistics.incrementCreated(1);
customerSyncStatistics.incrementFailed(2);
customerSyncStatistics.incrementUpdated(3);
customerSyncStatistics.incrementProcessed(6);
assertThat(customerSyncStatistics.getReportMessage())
.isEqualTo(
"Summary: 6 customers were processed in total "
+ "(1 created, 3 updated and 2 failed to sync).");
}
}
|
java
|
After a historic win over hosts England in the first Test at the iconic Lord’s, the Jason Holder-led West Indies would like to carry that momentum into the second Test at Old Trafford, Manchester. With the Test starting on Thursday, the big plus for the hosts would be the return of regular skipper Joe Root – who will add depth to their batting lineup. Premier pacer Stuart Broad, who was benched at Lord’s, something that drew a lot of criticism, could be back in the squad at Manchester.
The match will be live on Sony Sports Networks from 3.30 pm (IST) and SonyLIV will stream the match live in its platform.
England: Joe Root (captain), Dom Sibley, Rory Burns, Joe Root, Zak Crawley, Ben Stokes, Ollie Pope, Jose Buttler, Dom Bess/Jack Leach, Jofra Archer, Stuart Broad (Mark Wood), James Anderson.
West Indies: Jason Holder (Captain), Kraigg Brathwaite, John Campbell, Shai Hope, Shamarah Brooks, Roston Chase, Jermaine Blackwood, Shane Dowrich, Alzarri Joseph, Kemar Roach, Shannon Gabriel.
|
english
|
<gh_stars>100-1000
{
"name": "Megamat",
"description": "A reversable vinyl mat.",
"url": "http://www.chessex.com/mats/Battlemats_MegamatsReversible.htm"
}
|
json
|
<filename>data/people/jeremy-ashkenas.json
{
"github": "jashkenas",
"home": "http://ashkenas.com",
"name": "<NAME>",
"twitter": "jashkenas"
}
|
json
|
{"Department":"Дніпропетровська місцева прокуратура №1","Region":"Дніпропетровська область","Position":"прокурор Дніпропетровської місцевої прокуратури №1","Name":"<NAME>","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"https://public.nazk.gov.ua/declaration/a5d7c120-dce7-492d-a10e-dd11fa1a4dba","Фото":"","<NAME>":"","Декларації доброчесності":"http://www.gp.gov.ua/integrity_profile/files/5a339fc5d26588d7db52e7b03c8cd238.pdf","type":"prosecutor","key":"polishchuk_ievgen_borisovich","analytics":[{"y":2015,"i":92279,"k":17.08,"ka":1,"fc":1},{"y":2016,"i":183943,"k":17.08,"ka":1,"fc":1},{"y":2017,"i":320204,"k":17.08,"ka":1,"fc":1},{"y":2018}],"declarationsLinks":[{"id":"nacp_893655ab-489a-45f8-85b8-1140d6420ca9","year":2015,"provider":"declarations.com.ua.opendata"},{"id":"nacp_a5d7c120-dce7-492d-a10e-dd11fa1a4dba","year":2016,"provider":"declarations.com.ua.opendata"},{"id":"nacp_fe38d0de-5abb-4fc6-ba00-5d5517d50e4c","year":2017,"provider":"declarations.com.ua.opendata"},{"id":"nacp_be334b76-cd34-44f6-8d88-3690239a96d7","year":2018,"provider":"declarations.com.ua.opendata"}]}
|
json
|
<reponame>h7x4ABk3g/unofficial-jisho-api-dart<gh_stars>1-10
{
"query": "水",
"found": true,
"data": {
"taughtIn": "grade 1",
"jlptLevel": "N5",
"newspaperFrequencyRank": 223,
"strokeCount": 4,
"meaning": "water",
"kunyomi": [
"みず",
"みず-"
],
"onyomi": [
"スイ"
],
"onyomiExamples": [
{
"example": "水",
"reading": "スイ",
"meaning": "Wednesday, shaved ice (served with flavored syrup), water (fifth of the five elements)"
},
{
"example": "水位",
"reading": "スイイ",
"meaning": "water level"
},
{
"example": "用水",
"reading": "ヨウスイ",
"meaning": "irrigation water, water for fire, city water, cistern water"
},
{
"example": "浄水",
"reading": "ジョウスイ",
"meaning": "clean water"
}
],
"kunyomiExamples": [
{
"example": "水",
"reading": "みず",
"meaning": "water (esp. cool, fresh water, e.g. drinking water), fluid (esp. in an animal tissue), liquid, flood, floodwaters, water offered to wrestlers just prior to a bout, break granted to wrestlers engaged in a prolonged bout"
},
{
"example": "水揚げ",
"reading": "みずあげ",
"meaning": "landing, unloading (e.g. a ship), catch (of fish), takings, sales (of a shop), defloration (e.g. of a geisha), preservation (of cut flowers, in ikebana)"
},
{
"example": "飲み水",
"reading": "のみみず",
"meaning": "drinking water, potable water"
},
{
"example": "呼び水",
"reading": "よびみず",
"meaning": "pump-priming, rousing, stimulation"
}
],
"radical": {
"symbol": "水",
"forms": [
"氵",
"氺"
],
"meaning": "water"
},
"parts": [
"水"
],
"strokeOrderDiagramUri": "https://classic.jisho.org/static/images/stroke_diagrams/27700_frames.png",
"strokeOrderSvgUri": "https://d1w6u4xc3l95km.cloudfront.net/kanji-2015-03/06c34.svg",
"strokeOrderGifUri": "https://raw.githubusercontent.com/mistval/kanji_images/master/gifs/6c34.gif",
"uri": "https://jisho.org/search/%E6%B0%B4%23kanji"
}
}
|
json
|
Without naming either Pakistan or China, the Prime Minister asserted that India was fighting both terrorism and expansionism with determination and warned against provoking India. From the ramparts of the Red Fort, Prime Minister Narendra Modi on Saturday delivered a veiled warning to China and Pakistan against any misadventure at the borders, cast selfreliance as a necessary tool to spur growth and announced a raft of initiatives, including the national digital health mission and mass production of Covid-19 vaccine once necessary approvals are in place, to signal the country’s steely resolve to fight battles on multiple fronts. In his seventh straight independence day address, delivered at the toughest of the times under his leadership, Modi presented a broad outline of the Aatmanirbhar Bharat initiative and pitched for not just ‘Make in India’ but also ‘Make For the World’, with focus on exports. He called for trimming imports and moving up in the value chain to step up exports of finished products instead of mere raw materials. Elaborating on various reforms undertaken by his government, which resulted in attracting record foreign direct investments of $74 billion in FY20, Modi also pushed for further policy measures that would help realise the dream of ‘Shrestha Bharat’ (best India) in his 86-minute speech. But this economic and political prowess would have humanity at its core, Modi highlighted, possibly hinting at the contrast with China’s beligerent nationalism and clandestine economic policies. Amid clash with China on the borders, Modi lavished grand tribute on the soldiers for their sacrifice. “The world saw in Ladakh what our brave soldiers, the country can do for this resolve (to maintain our sovereignty). From the Red Fort, I salute all those brave soldiers who have staked their lives for the motherland,” he said. Without naming either Pakistan or China, the Prime Minister asserted that India was fighting both terrorism and expansionism with determination and warned against provoking India. “From LoC (Line of Control) to LAC (Line of Actual Control), anyone who casts an eye on the sovereignty of the country, the armed forces have responded in the language they understand,” he said, in the presence of a large number of dignitaries, including foreign diplomats. Hinting at bolstering cooperation with like-minded nations beyond the immediate neighbourhood, the Prime Minister said that today neighbours are not only those with whom India shares its geographical boundaries but also those with whom “our hearts meet”. Days after the ground-breaking ceremony for the Ram temple in Ayodhya, Modi said the centuries-old issue has been resolved peacefully. “The restraint and wise manner in which people of the country have behaved is unprecedented and will inspire us in the future,” he said. The Prime Minister also underscored his government’s commitment to holding assembly elections in Jammu and Kashmir after the ongoing delimitation exercise is over. He asserted that a new era of development has been ushered in the union territory after Article 370 was abolished a year ago. At a time of heightened battle against the pandemic, Modi also hailed ‘corona warriors’, including doctors, nurses, paramedical staff and sanitation workers, exuding confidence over the country’s decisive victory over the Covid-19 virus.
New Delhi: India extended anti-dumping duty on imports of caustic soda from China and Korea till November 2020. The duty was extended after considering the recommendations of the commerce ministry's investigation arm Directorate General of Trade Remedies (DGTR) that had requested for extension of the existing anti-dumping duty on the chemical imported from China and Korea. "The anti-dumping duty imposed under this notification, with respect to People’s Republic of China and Korea RP, shall remain in force up to and inclusive of the 17th November, 2020, unless revoked, superseded or amended earlier," the Central Board of Indirect Taxes and Customs (CBIC) said in a notification on Monday. The duty was rst imposed in 2012 on a different set of countries to protect local industry from cheap foreign imports. The duty was then imposed on material coming from China and Korea in 2015 for a period of five years.
New Delhi: Prime Minister Narendra Modi on Monday chaired a meeting to review the preparations for the national master plan for providing multi-modal connectivity to various economic zones. The prime minister described it as an important endeavour that will boost productivity, infrastructure, economic progress and opportunities for youngsters. "Chaired a meeting to review the preparations for National Master Plan For Providing Multi Modal Connectivity To Various Economic Zones. This is an important endeavour, that will boost productivity, infrastructure, economic progress and opportunities for our youngsters," he tweeted. Finance Minister Nirmala Sitharaman, Railway, and Commerce and Industry Minister Piyush Goyal and Civil Aviation Minister Hardeep Singh Puri were among those who attended the meeting.
Seeking to minimise inconveniences to top executives of firms, the Directorate General of GST Intelligence (DGGI) has issued broad guidelines to officers not to resort to excesses. Top management of big firms, including PSUs, must not be issued summons in the first instance during probe, it said. “As an enforcement agency, it is imperative for the DGGI to maintain a balance wherein investigations should proceed strictly, as per law, while simultaneously ensuring that no excesses are meted out to the taxpayers and their sensibilities are respected,” it said in a circular dated August 14. A summon for personal appearance should only be issued when specifically required and such summons should not be issued repeatedly. Officers should record comprehensive statements in the first instance itself, it said. “Senior management officials such as CEO, CFO, general managers of a large company or PSU should not generally be issued summons at the first instance unless the evidence suggests otherwise,” DGGI said. The officers have also been advised to be sensitive towards the assessee or party and special attention should be given to elderly, women and children present in the premises under search. “Children should be allowed to go to school, after examining their bags. A woman occupying any premises, to be searched, has the right to withdraw before the search party enters, if according to the customs she does not appear in public. If a person in the premises is not well, a medical practitioner may be called. Religious sentiments of the person under search should not hurt in any way,” the DGGI said.
The All India Handicrafts Board, set up in 1952, has been abolished but the need is to quickly replace it with a more dynamic and effective body that represents the artisan community and shows it the way forward, say industry insiders and craftspersons. The decision to scrap the handicrafts board, which had its last meeting in 2016, caps the slow decay of the institution set up five years after Independence with a mandate to preserve the country''s rich craft heritage.The advisory board, instituted by cultural activist Pupul Jayakar, was practically non-functional for most part of the last decade, a major reason why many seem to agree it needed to be disbanded. It was scrapped on August 3 by the Ministry of Textiles, which stated that the decision was in “consonance with the government of India vision of ‘minimum government and maximum governance’, a leaner government machinery and the need for systematic rationalisation of government bodies”. Hyderabad-based designer Bina K Rao, who was a member of the handicrafts board, expressed the hope that “something smarter” would come up in its place. The last meeting, she said, was held in 2016 and the situation wasn’t much better even before that. “Sometimes the meetings would happen once a year, or once in two years... The board should have been reconstituted in 2017 after the completion of the two-year term, but we never received any intimation,” Rao told PTI over phone.With all its flaws, the body provided “a window” for grassroots artisans and that has closed now so something must replace it, he said. The issues discussed when the board met ranged from subsidies on silk yarns to lack of enough marketing of handicrafts products. Rao was one of the 88 non-official members (small and medium scale artisans as well as handicrafts enterprises) on the board, which also comprised eight institutional members, including the director general of the National Institute of Fashion Technology (NIFT) and chairperson of the Carpet Export Promotion Council. Chaired by the Textiles minister, it also comprised 16 official members, including the development commissioner (Handicrafts), secretary, Micro Small & Medium Enterprises and senior director of the National Handicrafts & Handlooms Museum. Srinivas Pitchuka, a second generation manufacturer and exporter of ‘kalamkari’ and other block printed textiles in Pedana village of Andhra Pradesh, is hoping that any new body will have more representation from his community. The All India Handicrafts Board was inconsequential, he said.In the two years that he was a member (2013-15), no meetings were held and the problems of the artisan community in the area remained unaddressed. “I manufacture ‘kalamkari’ textiles and we use organic colours for dyeing and block printing, but there are people who use artificial colours and sell unauthentic products. This was an issue that I would have wanted to bring to the government’s notice. “Besides my business, our region is also quite well known for making ‘veenas’ (musical instrument). Sourcing wood for it is very difficult, but there is no one to help us out with these problems,” Pitchuka told PTI .Pitchuka believes the lack of “real artisans” on the board was the real problem. “How could these ‘netas’ understand the true value of art? Such bodies need to have real artisans who will understand the problems of the community in order to make a difference,” he said. The second largest livelihood sector in India, the textile handicrafts sector alone employs 68 lakh artisans. The handicrafts industry brought in Rs.36,798.20 crore through exports, according to the Ministry of Textiles’ annual report for 2018-19. The revenue also includes sales of carpets. About 60 per cent of the handicrafts products produced in the country are exported. Jaya Jaitly, handicrafts curator and founder of the Dastkari Haat Samiti (an NGO working with artisans to uphold craft traditions) said the board had been made gradually useless since the 1990s and is glad it has been abolished. “No point renovating a dead object. It is best to be rid of it and create something new, effective, dynamic in tune with an ‘aatmanirbhar’ Bharat on a clean slate, with inputs from truly experienced and knowledgeable persons rather than use it for the patronage of favourites,” she said. A senior official said an alternative to the board is yet to be announced but the government has taken the first step by strengthening Weaver Service Centres across the country in collaboration with NIFT. “With the help of NIFT, these centres will undergo facelifts and redesigning...a design component will be created in these centres. The first phase has already started in eight to nine centres, and eventually all 28 WSCs will be taken up,” he said. Besides the All India Handicrafts Board, the government last month also disbanded the Handloom, Powerloom as well as the Cotton Advisory Board. The official cited “decreasing relevance” as the reason behind the move. The handicrafts board, he added was established a really long time ago and used to meet once a year. “But because the department anyway has advisory bodies at several levels, the board’s relevance kept decreasing... The idea is to let professional bodies function professionally so the government has a minimum role.” The handicrafts board was not the only space where artisans could voice their concerns. “We have field offices at regional levels. Local artisans keep having interactions at those forums. We have 66 field offices all over India. There are also all the handicrafts corporations which have their own associations. Similarly, handloom corporations have their own associations, which are supported by the government in some way,” the official said.
The surplus transfer of Rs 57,128 crore for the accounting year 2019-20 compared with Rs 1.76 lakh crore transferred last year, which included Rs 1.23 lakh crore as dividend and Rs 52,637 crore excess provisions identified as per the revised Economic Capital Framework (ECF) The Reserve Bank of India has approved a dividend payout of Rs. 57,128 crores to the government for its scale year. It has decided to maintain a contingency risk buffer of 5.5 percent at the minimum threshold recommended by the Jalan committee to review RBI's capital framework. The central board approved the dividend at its 584th meeting through video conferencing to discuss the financial operations and the balance sheet for the financial year 2019-20 . "The Board approved the transfer of Rs 57128 crore as surplus to the central government for the accounting year 2019-20, while deciding to maintain the contingency risk buer at 5.5%" the RBI said in a release on Friday. The RBI surplus for FY'20 ending June 30, is about a third of Rs 1.76 lakh transferred in FY'19, but higher than Rs 50,000 crore transferred. The dividend amount that RBI would transfer to the government assumes significance in the wake of scale constraints due to the COVID pandemic which led to an expectation of higher transfer of surplus to the government. The decision to maintain contingency risk buer was in line with the recommendation of the Jalan committee which suggested that "it be maintained at a range of 5.5 per cent to 6.5 per cent of the RBI’s balance sheet which is above the available level of 2.4 per cent of balance sheet as on June 30, 2018" (vis-à-vis a target of 3.7 per cent of balance sheet). The Committee recognized that the RBI’s Contingency Risk Buer is the country’s savings for a ‘rainy day’ -a financial stability crisis which has been consciously maintained with RBI in view of its role as Lender of Last Resort. The RBI board discussed the continued global and domestic challenges and the monetary, regulatory and other measures taken by RBI to mitigate the economic impact of COVID19 pandemic The Board discussed various areas of operations of the Bank during the last year and approved the Annual Report and accounts of the of the Reserve Bank for the year 2019-20. Deputy Governors B.P. Kanungo, Mahesh Kumar Jain and Michael Debabrata Patra and other Directors of the Central Board – N. Chandrasekaran, Ashok Gulati, Manish Sabharwal, Prasanna Kumar Mohanty, Dilip S. Shanghvi, Satish K. Marathe, S Gurumurthy, Revathy Iyer and Prof. Sachin Chaturvedi attended the meeting. Tarun Bajaj, Secretary, Department of Economic Aairs and Debasish Panda, Secretary, Department of Financial Services also attended the meeting.
Export-Import Bank released a paper on six-pronged export strategy of the State With a favourable policy framework and concerted efforts to boost exports, Kerala could target to achieve $54.7 billion export revenues by 2024-25. A study by Export-Import Bank of India pointed out that the merchandise exports from the State stood at $9.8 billion in 2018-19. Although exports from the State have registered a robust growth recently, there remains an untapped export potential of nearly $6.7 billion. The bank organised an interactive webinar on the theme Potential for Enhancing Exports from Kerala to familiarise participants with the potential export opportunities as also to proffer key export strategies to realise its latent potential and achieve higher export growth trajectory. It also released a working paper titled Promoting Exports from Kerala: Insights and Policy Perspectives. The study was released by K Ellangovan, Principal Secretary, Department of Industries and Commerce and NORKA.
The study identifies a six-pronged export strategy built upon the essential dimensions of diversification of products and markets, infrastructure leverage and strengthening, capacity building, fiscal incentives, devising an export promotion campaign, and institutional streamlining. The study recommends diversification from traditional export items towards higher value-added products such as processed food, technical textiles, bulk drugs, and electronics and machinery. Highlighting the role of trade enabling infrastructure in export competitiveness, the study recommends inter alia adoption of a public-private partnership (PPP) model for strengthening the existing network of waterways, creation of a fund for development of export infrastructure in the non-major ports, increasing warehousing capacity in Alappuzha and Palakkad, leveraging Central government sponsored schemes for enhancing the cold chain network, utilising IT-enabled services to improve the reach and connectivity for agricultural produce etc. The government could also consider fiscal incentives such as capital subsidy or grants in priority sectors and reimbursement of electricity duty in key export-oriented sectors. As part of its export promotion campaign, the government could also consider setting up export awards, establishing a brand equity fund for branding and marketing of products from Kerala etc. David Rasquinha, Managing Director, Exim Bank, said that international trade is at the focal point of the narratives of Atmanirbhar Bharat, and there is a need to coalesce efforts at all levels of governance to prepare the domestic industry for achieving these objectives.
Note: The above prices are Chinese Price (1 CNY = 0.14411 USD dtd. 18/08/2020). The prices given above are as quoted from Global Textiles.com. SRTEPC is not responsible for the correctness of the same.
As Pakistani media reported on Sunday, the official added that "The development of similar markets on the border with Iran is also on the agenda of the Islamabad government." His remarks have been made on the verge of the ninth round of Iran-Pakistan joint trade committee meeting, which is to be held in the near future. Lamenting about the US sanctions imposed on Iran, Dawood said that the sanctions have slowed that mutual free trade between the two sides. “... sanctions on Iran are an obstacle to the promotion of trade relations,” he said and added no headway is being made on the independent trade agreement with Iran due to sanctions, Pakistani Dunyanews reported. In a bid to strengthen bilateral relations and expand cooperation in the fields of trade and commerce, Iran and Pakistan have recently decided to hold new round of meetings of the Joint Trade Committee and the Joint Economic Commission. On July 6, 2019, heading a high-ranking delegation, the former Iranian Minister of Industry, Mines and Trade Reza Rahmani paid a visit to Pakistan to attend the 8th IranPakistan Joint Trade Committee meeting and to explore avenues of economic cooperation with Pakistani officials. At the time, the two sides signed a memorandum of understanding (MOU) for strengthening bilateral trade and economic ties and vowed to remove potential barriers in the way of mutual trade. The MOU was signed by Reza Rahmani and Abdul Razak Dawood on the sidelines of the Joint Trade Committee meeting in Islamabad. In November 2019, Observer of Pakistan’s Balochistan province Reza Baloch said that the government of Pakistan decided to launch four border marketplaces in a border shared with Iran for doing trade and business transactions as well as improving livelihood of frontiersmen.
Building on the foundation of low wage rate, our RMG sector has been labeled by foreign buyers as a low cost hub for high volume product sourcing. This is quite ironical that we are proudly selling ourselves as the cheapest human resource to ensure our growth driver RMG to stay competitive in the global market. Barely, we are thinking of the changes this sector will encounter after the much-talked graduation to a developing economy. Most importantly, the cultural-shock in RMG sector involving this paradigm shift will demand proper preparedness and if not doing so, the worst hit will be faced by our 4 million workforce in this sector largely due to low productivity coupled with lack of skills development schemes.
RMG Ecosystem At Regional Peers Bangladesh: Largely due to its low wage rates, lower cost of utilities and preferential trade agreement with EU, Bangladesh excels at supplying large quantities of apparel at low costs. Our specialisation ranges mostly in low-value and value for money price segment. However, Bangladesh has had issues on compliances and on time delivery. Vietnam: Due to high foreign investments (predominantly from China) and joint ventures which bring along technical know-how and expertise, Vietnam has grown its apparel exports significantly. Moreover, these factors coupled with supportive government policies have provided added advantage for the growth of textile ecosystem and infrastructure in the country and making it globally more competitive compared to other sourcing destinations. Sri Lanka: Despite higher living wages, Sri Lanka has emerged as a large player in global apparel market owing to its product portfolio, which largely accounts for higher-value, niche products. It has a large skilled workforce, which allows it to produce specialised products. Sri Lankan factories have been focusing on sustainability and compliance for a long time. While, these initiatives have helped create better value to the customers, it has also resulted in optimising the costs of manufacturing. India: India's status as an apparel sourcing destination owes to its strengths namely, abundant supply of raw material, vertically integrated supply chain, expertise in value added apparel manufacturing, availability of skilled manpower and well-established relationship with key global buyers. India, in contrast to most of the other Asian peers - has the advantage of a very rich heritage of Textiles.
SKILLS DEVELOPMENT IN RMG SECTOR: Competitiveness in the global apparel trade is primarily challenged by lack of scale in garment manufacturing due to workers skillset. Then comes seasonality (manufacture only certain product categories), inadequate capability in the synthetic value chain, limited number of preferential trade agreements etc. Coming to Bangladesh, our garment export industry is seasonality driven, leading to full capacities for season-specific production and evidently, competing nations have different skill regime to suit their local, cultural and commercial factors. Bangladesh is no exception in this case. The workers in garment industry are generally classified as unskilled, semi-skilled, skilled and highly-skilled. Usually skilled and highly skilled workforce at a factory floor performs critical operations such as collar attachment, sleeve placket attachment etc., which require certain set of expertise and know-how. Without the right set of skills, these operations cannot be performed and if performed wrongly, it would result in rejections and wastages. Without the requisite workforce to perform these operations, factories would face delivery delays, quality issues and bottlenecks at production floor. So it is of utmost importance for factories to have workers across different skill levels right from unskilled to highly skilled level to ensure smooth operations, quality and timely delivery. Studies found that each country has developed certain skill levels to match the product categories they manufacture. The clients place orders for certain product categories with these countries to match the existing skill levels of the workforce in these countries. India owing to its relatively higher skill levels, caters to value added products which are low to medium quality with certain level of value addition. In case of Bangladesh and Vietnam, the skill levels have been developed over the last 1-2 decades and these countries predominantly cater to basic products.
THE CASE OF BANGLADESH: Bangladesh has a multi-pronged skill building approach involving various government agencies, private institutions and industry. Some of the key initiatives are Centre of Excellence for Bangladesh Apparel Industries (CEBAI), Bangladesh Skills for Employment and Productivity (B-SEP) etc. The skills development system in Bangladesh can be classified into five main segments: * Public (Delivered to various degrees by numerous ministries) * Private (Receive a government subsidy e.g. grant) * Private (Commercial training institutions including madrashas) * Non-government and Not-for profit institutions Industry-based / Brands (institutions managed by industry and training delivered in the workplace, including apprenticeships) However, stakeholders are putting their concerns regarding the much talked shortage of about 1.47 lakh skilled manpower from floor to the executive level. This, eventually, compels the factory owners to engage expatriate employees in different positions such as CEO, CFO, general manager, senior manager, head of dyeing, head of washing, and head of quality assurance. Moreover, industry insiders predict that universities, technical institutions can provide textile and garments-related education to around 25,000 to 30,000 people, which is way too inadequate considering the requirement of the industry. Another concern blown by industry leaders that the RMG sector will need eight hundred thousand specialised employees by 2021 will be very difficult for factory owners to source locally. Moreover, they suggest that the sector will need 1.89 lakh graduates and textile experts for top positions by 2021 while Bangladesh will be able to produce around 40,000 by the time.
AREAS NEEDING SPECIAL FOCUS IN THE CONTEXT OF BANGLADESH Entry-level skills: These should continue in the current form of existing guidelines of Integrated Skills Development Scheme. Up-skilling: Up-skilling is extremely important to drive productivity. Only entry-level training is not sufficient to build productivity and efficiency. Existing workforce need to work at a better skill level with operational capability across different operations at production floor to contribute to overall productivity in the factories. Training of Middle Management: Middle management i.e. supervisors, section in charges, quality controllers, industrial engineers etc. are the backbone of any garment factory and need to be trained on best practices, by allocating at least 2 hours on a daily basis. Vocational Education: Vocational training should be given high priority and should be accepted as a university degree/diploma for apparel manufacturing. To combat the aforesaid challenges of our growth driver, there's no best alternative than re-skilling the whole sector starting from human resources to machine resources. As a whole, preparing updated curriculum, conducting need-based research, establishing teachers training centres and knowledge sharing platforms, capacity development of mid-level managers, making bridge between industry and academia and adopting paradigm shift in policy crafting are the building blocks to embrace upcoming changes and shifts.
Garment exporters are not worried over falling behind their peers in Vietnam in overseas sales. They hope exports will rebound by December, buoyed by demand in the Western world ahead of Christmas. They also dream of having an opportunity to have a bigger market share in the United States, as China, which dominates the US market, is having a trade war with it. As the coronavirus pandemic has upended the world economy, it affected the exports too. People stopped buying clothes after their income collapsed. Big fashion houses are yet to reopen. Only some online shops have opened their business. Under the present circumstances, there will be a downward trend in the garment exports in August and September. But exports will get a boost from Christmas sales in December. Vietnam exported about $30 billion of garment products between July and June, surpassing Bangladesh that shipped about $28 billion of clothes, according to the General Statistics Office of Vietnam and the Bangladesh Export Promotion Bureau. Vietnam, therefore, superseded Bangladesh as the second-largest garment exporter, a crown the South Asian country held for a long time. In Bangladesh, garments account for about 85 percent of its export proceeds. The fall of Bangladesh from the second position came as bad news to local manufacturers. We are operating at 60-70 percent of our capacity at present. We are getting work orders, but not enough. Only the basic items are exported now. Big fashion houses haven't opened yet, said Anwarul-Alam-Chowdhury Parvez, former president of Bangladesh Garment Manufacturers and Exporters Association. Global exports have shrunk, but the coronavirus pandemic has hit the exports from China the most as clothing shipments declined at least 49 percent between January and June this year. For Bangladesh, the decrease was 18 percent. Vietnam, that superseded Bangladesh in garment exports, lost 11.7 percent of exports in the six months. We were not worried at all that Vietnam surpassed us in garment exports. It is not the absolute number of exports but the growth that matters. The question is, if we can reach our target or if we were making enough growth, Chowdhury said. As Bangladesh experienced continuous year-on-year growth, the export earnings reached $34.13 billion in fiscal 2018-19. It declined to $32.83 billion in fiscal 2019-20 due to the pandemic. œAll we need to do now is to tackle the challenges created by the pandemic. Then we may reap some good results from it. We need to use this opportunity and both the government and the private sector must start working on a long-term plan to ensure it, said Chowdhury, also president of Bangladesh Chamber of Industries. China has been engaged in a trade war with the US for quite a long time, which intensified during the coronavirus pandemic. If the US stops or reduces buying garment from China, Bangladesh may have a bigger market there, Chowdhury explained. This will be a golden chanceTM for Bangladesh to grab a share of the Chinese garment market in the US, he said. China has been reducing its garment exports to the US gradually after the trade war began, but it nosedived after the coronavirus epidemic broke out in Wuhan in December, according to the US Department of Commerce Office of Textile and Apparel. Last year China exported readymade garment worth $24.88 billion to the US market and had a 9 percent reduction in export that time. The Chinese export decreased 36 percent in January this year due to the COVID-19 outbreak. China exported garments worth $3.89 billion to the US in the first four months of the current year, which is 46 percent less than the last year. Vietnam, on the other hand, exported garments worth $4.18 billion to the US in the first four months of the year. Though their exports declined 1.31 percent, Vietnam’s exports were $290 million more than that of China. Therefore, Vietnam tops the list of garment exporters to the US. As Vietnam topped the list surpassing China in exporting garments to the US, Bangladesh still holds the third spot on the list. While China and Vietnam lost their exports, Bangladesh had a slight increase in its shipments. Bangladesh exported readymade garments worth $2.07 billion to the US market in January-April, which is 2.13 percent higher than last years exports. Four reasons are there for Vietnam superseding us in garment exports. Firstly, our factories were closed in April due to the COVID-19 outbreak. They reopened on a limited scale in May and June. We were supposed to export garments worth $9 billion in those three months, when we could only export garments worth $3.5 billion, said Mohammed Hatem, vice president of Bangladesh Knitwear Manufacturers and Exporters Association. œVietnam, on the other hand, had no reported COVID-19 cases and could export garments worth $3 billion more than us in the three months and reached the second position surpassing us. Secondly, most of the investors in Vietnam are from China or Hong Kong. They have a better communication system. They can collect the raw materials from China in 3-4 days and can deliver the finished products soon to the buyers. Naturally, the buyers tend to buy more from them. Vietnam’s Free Trade Agreement with the US and other countries is the third reason behind their growth. Bangladesh failed to have an FTA.We need to pay 15 percent duty when we export garments to the US, while Vietnam pays only 5 percent. This is how we fell behind, Hatem said. œThe fourth and biggest reason is that the workers in Vietnam are far more skilled than ours, reducing their production cost. They have to pay lower utility bills too. They pay Tk 2.5 for each unit of electricity, while we pay Tk 8.5. Hatem also mentioned that industrial units in Vietnam enjoy uninterrupted power supply with no voltage fluctuations, while factories in Bangladesh sometimes struggle. But Hatem was optimistic about a rebound in exports. The factory owners had a boost when the government provided four monthsTM salary for the workers under its incentive package to cushion the effects of the pandemic on the economy. It ensured that the garment sector goes back to full production. The country could export garments worth $3.24 billion in July, which was better than in April, May and June. œIn August and September, however, the export won’t be as good as in July. It may drop to half of Julys exports. This is because the July export was based on the old orders placed in March, April and May, which the buyers had deferred earlier, Hatem said. Overall, the garment sector is going through a tough time, said Hatem. Bangladesh is having very few orders, and those are small orders with small prices. œIn some cases, we accept orders at a loss, he said. People lost their income to the COVID-19 pandemic, depressing the demand for garments, while the supply is still on the upward curve. Prices drop when demand decreases and supply increases, a condition that is now defining the global garment market. The situation will not remain the same though. Prices will go up when the demand increases after the situation goes back to normal. I hope we can do a better business during Christmas, Hatem said. Bangladesh will be able to gain back its second position in exporting garments if it can survive the challenge for a year, he said. Garment exports in Bangladesh nosedived to $360 million in April, which was 85.37 percent less than last year after the COVID-19 pandemic hit the country in March. The factories restarted in May after the lockdown was relaxed, but exports were far from normal. In July, the first month of the 2020-21 fiscal year, overall exports increased only 0.59 percent, but the garment exports fell 1.92 percent. Exports in July amid the pandemic were satisfactory, said Ahsan H Mansur, executive director of the Policy Research Institute. We must remember that our export income was going through a bad phase even before the pandemic had hit our economy. We were losing growth every month, he told bdnews24.com. There would be an 8-9 percent decrease in our garment export even without the pandemic. The COVID-19 pandemic pushed it to 18 percent. He suggested observing the global situation. œIn the past, we have seen many incidents that brought good luck to our readymade garment sector. Everyone predicted a disaster in the readymade garment sector in Bangladesh after the quota system was abolished in 2004. But it proved to be a boon instead. Bangladesh exported garments worth $34 billion that time, which was earlier $7 billion, he said.
Kenyan authorities on Sunday lifted a ban on the importation of second hand textiles and shoes with immediate effect. Bernard Njiraini, managing director, Kenya Bureau of Standards (KEBS), said that the resumption of imports comes after the development of protocols to enhance safety and protection of traders and consumers to avoid the spread of COVID-19. "The guidelines provide a framework for enforcing additional safety measures such as cleaning and fumigation of used textiles and shoes at the country of origin before baling and at the wholesale and retail stores including surrounding areas every day at closure of business," Njiriaini said in a statement. In late March, the standards body suspended the importation of used clothing after the World Health Organization declared COVID-19 a pandemic. "This precautionary measure was taken with the main objective of safeguarding handlers and users of used textiles and shoes from any risk of exposure to coronavirus as the world grappled with the fast-spreading pandemic," Njiraini added. He noted that the developed protocols require importers to register with KEBS and to identify the country of origin of all bales to ensure their traceability. KEBS noted that the safety guidelines are a culmination of several weeks of research and consultation between different government agencies.
V-shaped export recovery pattern continues in July Sri Lanka’s exports have surpassed the $ 1 billion mark in July after six months’ time period where a similar achievement was only recorded in January this year. Export Development Board (EDB) Chairman Prabhash Subhasinghe said, “We have witnessed a phenomenal increase in exports in July 2020 with a new record for the year. Sri Lanka’s strategic location, its reliable manufacturing and export base and proactive and rapid action by the Sri Lankan Government to control Covid 19 have fulfilled our global customer’s needs. This is the reason for our remarkable recovery in exports, compared to when the crisis hit us. However, we need to be cautiously optimistic as we move towards year end due to the possible resurgence of Covid 19 in the US and European markets.” As per the Customs statistics, earnings from merchandise exports recorded a double digit growth rate of 11.31% in July 2020 to US$ 1,090 million compared to July 2019. Moreover, earnings from merchandise exports in July 2020 increased by 20.3 % compared with the value recorded in June 2020. This strong performance is consistent with the gradual lifting of restrictions due to Covid 19 pandemic within the country and globally. Increases in exports were recorded as; Europe Region (21.17%), South Asia (11.47%) and Middle East (8.91%) in July 2020 compared to July 2019. Being the largest single export destination, the United States of America has absorbed US$ 256.09 million worth of exports in July 2020 recording a 5.67% increase in comparison to US$ 242.36 million absorbed in June 2020 to June 2019. The expansion was mainly due to higher demand for tea from Turkey and Russia. Earnings from all the major categories of Coconut based products increased in July 2020 compared with July 2019 and a notable performance in export of Coconut Oil, Cocopeat and Activated Carbon. In addition, export earnings from rubber and rubber finished products have increased by 8.78% yo-y to US$ 85.08 million in July 2020 with strong performance in exports of gaskets, washers, seals etc of hard rubber. Export earnings from spices and essential oils have increased significantly in July 2020 compared with June 2019 with significant increase in cinnamon (63.6%) & pepper (46.3%). Further export earnings from Spices and Essential Oils were increased by 30 % in July 2020 in comparison to June 2020. Meanwhile, export earnings from electrical & electronic products (-1.47%), seafood (-9.42%) recorded a decline during the month of July 2020 compared with July 2019. Earnings from exports of apparel & textiles and rubber & rubber-based products grew significantly during the month of July 2020 owing to higher demand for personal protective equipment (PPE). PPE related exports have recorded US$ 115.1 Mn in July 2020. Export earnings from Apparel & Textiles increased by16.16 % to US$ 467.04 Mn during the month of July 2020 compared with US$ 402.04 Mn recorded in June 2020. Total export earning for January to July 2020 was US$ 5,452.53 Mn compared to US $ 6,909.12 Mn recorded in a similar period of the previous year – a decline of 21.08 %. However the gap created due to covid in April 2020 is further decreased. Major Exports such as Apparel & Textiles (US$ 2403.70 Mn), Tea (US$ 702.59Mn) and Coconut & Coconut Based Products (US$ 356.39Mn) and Rubber & Rubber based products (US$ 434.25Mn) recorded a decrease of 25.49%, 11.76%, 18.88% and 3.77% respectively during Jan-July 2020. The export sectors that show a positive growth at disaggregate level includes export of Gaskets, Washers, Seals etc. of Hard Rubber, Coconut cream, Coconut Milk, Coconut Vinegar, Coconut Shell Charcoal, Mattress Fiber, Pineapples, Arecanuts, Tamarind, Ginger, Essential oils, lemons, Sweat Potatoes and Lentils etc. The top five export destinations during the period Jan-July 2020 were United States of America (US$ 1,403.54 Mn), United Kingdom (US$ 461.7 Mn) India (US$ 339.4 Mn), Germany (US$ 312.6 Mn) and Italy (US$ 233.5 Mn). In addition, Exports to EU Region recorded an increase of 21.67% to US$ 356.64 Mn in July 2020 compared with July 2019. Meanwhile, exports to the United Kingdom as the largest trading partner in the EU Region recorded an increase of 18.66 % to US$ 100.1 Mn in July 2020 compared with July 2019. Further, exports to Germany, Italy, Belgium, Netherlands, Canada, China, Japan and Turkey have also shown better performance during this period. The services exports estimated by EDB which includes ICT/BPM, Construction, Financial services, Transport & Logistics and Wellness Tourism show exports of US $ 2,044.6 Mn for the period.
|
english
|
The 12th edition WWE Hell in a Cell emanate from the ThunderDome on Sunday, Oct. 25. This annual staple of the company's calendar year has been a fixture since 2009.
WWE didn't reveal the majority of the card until this week. However, it's still worth tossing out some predictions for the matches that have major consequences on WWE programming.
WWE Universal Champion, Roman Reigns, will once again defend his title against cousin, Jey Uso, while Randy Orton continues to chase Drew Mcintyre's WWE Championship. Sasha Banks will also challenge her former best bud, Bayley, for the Smackdown Women's Championship. All of these title bouts will take place under WWE's demonic structure.
The pay-per-view will begin at 7 pm ET at Orlando's Amway Center following the usual kick-off show at 6 pm. The show will air in India on Monday, Oct. 26 at 4.30 am with the accompanying kick-off show at 3.30 am. Here are our final picks for the upcoming event.
The Charismatic Enigma will battle Elias at WWE Hell in a Cell, as the two newly drafted RAW Superstars will likely open the show. WWE has revived the storyline around who hit Elias with a car, which seemed to be resolved after Hardy feuded with Sheamus.
Nevertheless, The Drifter still believes Hardy was behind the hit and run attack from May, even though he has confirmed that he wasn't the one driving the car. Elias boldly declared his return from injury when he blindsided the former Intercontinental Champions and smashed a guitar across his back. A disguised Jeff Hardy interrupted Elias' concert the following week and took a swing at the red brand's native musician with an electric guitar, leading Elias to issue the challenge for this weekend.
Will Hardy be able to silence the former Heavy metal, Jesus? We don't think so. Elias has recently returned from his hiatus and he is also hot on the music scene with the release of his new album, Universal Truth, on Monday, a day after the pay-per-view. Thus, he will probably pick up the win.
Our Pick: Elias for the win.
There can only be one Mr. Money in the Bank after Sunday. The coveted contract will be on the line when Heavy Machinery's Otis takes on Miz at WWE Hell In a Cell.
The Miz and John Morrison have tried numerous devious schemes but have failed to pry the briefcase from Otis. The dispute made it to court as WWE Legends JBL, Ron Simmons, and Teddy Long all appeared in the Law & Otis segments.
The Miz levied several charges against Otis ranging from creating a hostile work environment to causing emotional and physical stress. JBL ruled in favor of the Miz and granted the A-Lister a shot at the coveted contract thanks to a valuable last piece of evidence he presented him with, a bribe.
WWE is high on Otis, so there's no way he loses his briefcase in the blow-off match of this feud.
Our Pick: Otis retains his briefcase.
There will be nowhere to hide for Bayley when her former best friend, Sasha Banks, comes for her title this Sunday.
Two Beltz Banks and Bayley Dos Straps ruled the roost as The Golden Role Models before The Boss lost RAW women's title during SummerSlam weekend. After they failed to regain the women’s tag titles, Bayley brutally turned on Banks with a ruthless steel chair attack. After another assault from Bayley, an enraged and injured Banks tried to return the favor at WWE Clash of Champions.
Bayley has remained one step ahead of the competition during her historic reign. After their face-off on the Oct. 9 of WWE SmackDown, Bayley held on to her title due to shenanigans. The Role Model resorted to using a chair to intentionally get herself disqualification and retain her championship.
The Boss has healed up quickly and will have a distinct edge over the champion heading into the pay-per-view. After all, Bayley has never competed inside the 20-foot-high structure before, whereas Banks participated in the first-ever women's Hell in a Cell match.
Banks has to win as she's the only viable challenger who can end Bayley's historic title reign.
Our Pick: Sasha Banks to end her abysmal pay-per-view record in title matches by winning the WWE Smackdown Women's Championship.
The two titans will clash once again for the WWE Championship. This time, they will attempt to settle things once and for all in a Hell in a Cell Match. McIntyre outlasted Orton in their showdown at SummerSlam, using a crafty backslide to retain. The Legend Killer continued his onslaught on the Scot, targeting his skull with devastating Punt Kicks that put the champion’s immediate in-ring future in jeopardy.
We predicted The Apex Predator would win at Gold Rush but the ghosts of Orton's past—Ric Flair, Shawn Michaels, Big Show, and Christian—got involved and costed him. Still, defeat didn't humble the brash Superstar, as Orton launched one more attack on the legendary tetrad. So, McIntyre offered the third-generation star another shot at his belt, accepting Orton's Hell in a Cell challenge at the titular pay-per-view on the Oct. 5 episode of RAW.
This will be The Viper's third chance to dethrone The Scottish Psychopath. A WWE title win for the company's MVP during the Performance Center (and ThunderDome) era is long overdue. We fully expect to see it happen this weekend.
The Tribal Chief will be up against his kin, Jey Uso, in a rematch for the Universal Championship. This family affair will take place inside WWE's most unforgiving structure with the added stipulation, making it an "I Quit" match. Reigns was victorious at WWE Clash of Champions in a match that only ended once Jimmy Uso finally threw in the towel on behalf of his brother.
The titleholder has taken his place at the head of the family table but Uso has refused to acknowledge him. Paul Heyman officially coronated Reigns as The Tribal Chief on SmackDown, but Reigns called out Uso to accept his status. The high-flyer declined, but he did agree to share the ring with his cousin once again in the “match with the highest-stakes in WWE history".
The Big Dog later revealed that the bout would also be an "I Quit" match, with serious consequences for the loser. As if the stakes couldn't get any higher, if Jey quits, he must fall in line and take orders from Reigns. If he refuses, The Tribal Chief will exile him and his entire family.
We can only see this going one way and that is Roman humiliating Uso and forcing him to utter the words "I Quit" before letting him leave the cell.
Our Pick: Roman Reigns to retain and kick off an evil stable with his cousins.
|
english
|
<reponame>oldspoon/SET8103-group19
package com.napier.sem;
/**
* Represents info about the language a certain country speaks
*/
public class CountryLanguage {
/**
* 3 character code, to link to country table
*/
public String CountryCode;
/**
* The language they speak
*/
public String Language;
/**
* T or F is it the official language of the country
*/
public char IsOfficial;
/**
* percentage of the population speak it
*/
public String Percentage;
/**
* Population of people speaking language
*/
public long Population;
}
|
java
|
<filename>pyquil/__init__.py
__version__ = "2.1.0.dev0"
from pyquil.quil import Program
from pyquil.api import list_quantum_computers, get_qc
|
python
|
Denmark is a land of castles and palaces. Another attraction of the Danish capital is Fredensborg Castle, located 30 km from Copenhagen on the island of Zealand. Fredesborg Castle is the residence of the Danish royal family, functioning in the spring and autumn seasons, where important events (weddings, birthdays, etc. ) are celebrated, and solemn receptions are held in honor of heads of other states visiting Denmark.
Construction of the castle Fredensborg was started by the order of King Frederick IV in 1720. The architect of the project was Johan Cornelius Krieger, who at that time worked in Rosenborg Castle as a gardener. Fredensborg was built in the style of French baroque, since the inauguration in 1722, it expanded and acquired new details. So, in 1726 the construction of the chapel was completed, and in 1731 - the building of the judicial office.
Travelers from Russia, for sure, will be interested to look at the Russian hall of the castle Fredensborg, where art objects related to our country are collected, for example, a portrait of Nicholas II or portraits of Margrethe II and her husband, painted by Russian artist DD Zhilinsky.
The garden adjacent to the Fredensborg castle deserves special attention. The garden is designed in Baroque style and is Denmark 's largest garden. The garden is decorated with a lot of sculptures, among which there is an exposition named the Norwegian Valley, which includes 68 sculptures of Norwegian and Faroese fishermen and farmers. The garden is free to visit only in July, the rest of the time there can only be members of the royal family.
How to get there?
You can get to the castle of Fredensborg by renting a car or by public transport - a suburban train S-train, the road from Hilleroda will take just under 10 minutes and about 40 minutes from Copenhagen. From the station, take the road to the left and go to the intersection, then turn right and go straight to the central street of the city, which will take you to the castle of Fredensborg.
|
english
|
@import url('/styles/module.css');
@import url('/styles/base.css');
/* main chunks / placement */
/* nav bar */
header{
display: flex;
width: 100%;
height: 75px;
background-color: #357376;
align-items: center;
}
#logo{
color: white;
margin: 40px;
max-width: 15%;
}
ul {
list-style-type: none;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
}
li {
display: flex;
align-items: center;
height: 100%;
padding: 16px 50px;
/* display: inline-block; */
text-align: center;
width: 100%;
}
li:hover {
background-color: #1E4042;
}
li a {
color: white;
text-align: center;
text-decoration: none;
height:100%;
line-height: 75px;
width: 100%;
}
#hero-image{
background-image: url('/images/web.png');
background-color: #cccccc;
height: 325px;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
#hero-text{
text-align: center;
position: absolute;
top: 80%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
width: 70%;
}
input{
line-height: 25px;
}
#search-form{
width: 100%;
display: flex;
align-items: center;
height: 30px;
}
#search-input{
width: 70%;
height: 34px;
border-radius: 20px 0 0 20px;
border: none;
text-align: center;
}
#search-submit{
width: 25%;
height: 36px;
border: none;
border-radius: 0 20px 20px 0;
}
#search-submit:hover{
background: lightgray;
}
/* Sample Category Buttons */
.sample-button-container{
height: 10%;
min-width: 40%;
max-width: 40%;
}
#test-button {
background-image: url('/images/turtle.jpeg');
height: 150px;
min-width: 100%;
max-width: 100%;
background-size: percentage(100%);
}
/* END Sample Category Buttons */
form{
text-align: center;
}
h2{
text-align: center;
font-family: monospace;
font-size: x-large;
line-height: 50px;
}
#features-section{
width: 100%;
}
#sample-categories img{
width: 200px;
}
#feature-holder button{
border: thin solid slategray;
border-right: 2px solid darkslategray;
border-bottom: 2px solid darkslategray;
margin: 20px 0;
padding: 7px;
border-radius: 7px;
box-shadow: 4px 5px lightslategrey;
}
#feature-holder img{
width: 200px;
}
article{
width: 100%;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}
article a{
width: 40%;
}
main{
display: flex;
flex-flow: row wrap;
width: 100%;
}
/* Search Results */
#searched-main{
justify-content: space-around;
}
.searched-word{
width: 100%;
}
#image-detail-main{
display: flex;
justify-content: space-evenly;
text-align: center;
}
#picture-thumbnail{
width: 60%;
}
#picture-name{
width:100%;
}
#picture-author{
width:100%;
}
#download-link{
width:100%;
}
section{
display: flex;
}
.searched-images{
display: flex;
width: 40%;
height: auto;
align-items: center;
justify-content: space-evenly;
margin-bottom: 60px;
}
.image-results{
width: 100%;
height: 100%;
border: none;
display: flex;
flex-direction: column;
align-content: space-around;
}
.image-results fieldset {
display: flex;
justify-items: center;
border-radius: 14px;
box-shadow: 4px 5px lightslategray;
}
.image-results fieldset input{
width: 100%;
height: 20px;
border-radius: 21px;
text-align: center;
border: inset thin slategray;
margin: 21px 0;
}
.save {
width: 60%;
height: 20px;
border: thin solid darkslategray;
border-radius: 14px;
margin: 14px auto;
}
.imageDetailsButton{
width: 100%;
height: 100%;
align-items: center;
border: none;
background-color: transparent !important;
border-radius: 14px;
}
fieldset{
height: 100%;
}
.imgimg {
width: 100%;
border-radius: 14px;
/* max-height: 100%; */
}
/* Client Overview /Library/Project Overviews */
.folder-container{
display: flex;
width: 50%;
height: 100%;
flex-direction: column;
justify-items: flex-start;
}
.folder-wrapper{
width: 100%;
}
.folder-button{
width: 100%;
border: .05rem solid black;
background: none;
text-align: start;
margin: 14px;
padding: 14px;
border-radius: 5px;
box-shadow: 3px 4px lightslategray;
}
.folder-button:hover{
border: 2px solid greenyellow;
padding: 12.7px;
}
.project-details-main {
display: flex;
flex-flow: row wrap;
width: 100%;
justify-content: space-around;
margin: 20px 0;
}
.project-images{
margin: 20px 0;
}
/* Footer */
footer{
background-color: #357376;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
}
footer p{
color: white;
line-height: 30px;
padding: 16px 42px;
}
/* tablet */
@media(min-width: 640px){
.project-details-main{
width: 100%;
height: 100%;
}
.project-images{
width: 45%;
margin: 40px 0;
}
}
|
css
|
Tata Motors has announced on Thursday that it has managed to deliver 50,000 units of popular Nexon EV to the Indian customers and the 50,000th unit has been delivered to the N Chandrasekaran - the Chairman of Tata Group.
Tata Motors has announced on Thursday that it has managed to deliver 50,000 units of popular Nexon EV to the Indian customers and the 50,000th unit has been delivered to the N Chandrasekaran - the Chairman of Tata Group.
The company shared the news on its social media platforms writing, "What started as his vision, has changed the way India perceives mobility. And it was only fitting to have this very special person be the owner of a milestone car - the 50,000th Tata EV. This was indeed a special delivery for each one of us at Tata Motors. Here’s to many electrifying miles that lie ahead"
The Nexon EV has been a consistent best seller from Tata Motors in the country. In fact, it is the highest-selling passenger electric car in the country which outsells other models such as MG ZS EV and Hyundai Kona Electric by a huge margin.
Only in November 2022, the company had announced reaching production milestone of 50,000 units of Nexon EV from manufacturing plant in Pune. Nexon EV has also made Tata Motors the leading passenger electric vehicle brand in the country. Apart from electric version of Nexon, Tata also sells Tiago EV and the Tigor EV. Moreover, the company has also announced the launch of Punch EV which will make its public debut at the upcoming Auto Expo 2023.
Goin forward, Tata Motors is working on a three-phased architecture approach for EVs and plans to launch 10 new EVs in the next 5 years.
|
english
|
French champions Paris Saint-Germain are to offer Chelsea target Ezequiel Lavezzi a big, new deal to stop the London club’s interest, according to the Daily Express.
Lavezzi, 29, has been the subject of intense transfer speculation over the last couple of months, coming mainly from Stamford Bridge, after Chelsea knocked PSG out of the Champions League.
It had been reported that Chelsea opened up ‘exploratory talks’ to determine whether bringing the forward to west London was a realistic proposal.
However, according to the man in-the-know, Gianluca Di Marzio, PSG are set to offer a new deal to tie Lavezzi to the Parc des Princes and to ward off interest from across the channel.
A new deal would be a blow to Jose Mourinho who has made no secret of his desire to sign attacking players in the summer transfer window.
It has been a lacklustre season for his trio of strikers, Samuel Eto’o, Demba Ba and Fernando Torres, who managed to net just 19 Premier League goals between them.
Lavezzi started 23 league games for PSG last season and a departure could be on the cards after some criticism for his displays.
|
english
|
// <NAME>
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/2115
#include <cstdio>
#include <set>
#include <algorithm>
#include <vector>
#define MP make_pair
using namespace std;
typedef pair<int,int> ii;
int main(){
int n;
while(scanf("%d",&n) != EOF){
vector<ii> vetorzao;
for(int i=0;i<n;i++){
int ini,tempo;
scanf("%d %d",&ini,&tempo);
vetorzao.push_back(MP(ini,tempo));
}
sort(vetorzao.begin(),vetorzao.end());
int atual = 0;
for(int i=0;i<n;i++){
atual = max(atual,vetorzao[i].first);
atual += vetorzao[i].second;
}
printf("%d\n",atual);
}
return 0;
}
|
cpp
|
<filename>package.json
{
"name": "abac-demo",
"version": "0.0.1",
"description": "ABAC and GraphQL demo in Node js",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/01luisfonseca/abac-demo.git"
},
"keywords": [
"ABAC",
"Node",
"GraphQL"
],
"author": "<NAME> <<EMAIL>>",
"license": "MIT",
"bugs": {
"url": "https://github.com/01luisfonseca/abac-demo/issues"
},
"homepage": "https://github.com/01luisfonseca/abac-demo#readme",
"dependencies": {
"express": "^4.17.1",
"express-graphql": "^0.8.0",
"graphql": "^14.4.2",
"lodash": "^4.17.11",
"mongodb": "^3.2.7"
}
}
|
json
|
'use strict'
module.exports = function ($scope, $http, $uibModal, $timeout, fusio) {
// set initial date range
var from = new Date()
from.setMonth(from.getMonth() - 1)
var to = new Date()
$scope.search = ''
$scope.filter = {
from: from,
to: to
}
$scope.routes = []
$scope.apps = []
$scope.load = function () {
var search = ''
if ($scope.search) {
search = encodeURIComponent($scope.search)
}
$http.get(fusio.baseUrl + 'backend/transaction?search=' + search)
.then(function (response) {
var data = response.data
$scope.totalResults = data.totalResults
$scope.startIndex = 0
$scope.transactions = data.entry
})
}
$scope.pageChanged = function () {
var startIndex = ($scope.startIndex - 1) * 16
var search = encodeURIComponent($scope.search)
$http.get(fusio.baseUrl + 'backend/transaction?startIndex=' + startIndex + '&search=' + search)
.then(function (response) {
var data = response.data
$scope.totalResults = data.totalResults
$scope.transactions = data.entry
})
}
$scope.doFilter = function () {
var query = ''
for (var key in $scope.filter) {
if ($scope.filter[key]) {
var value
if ($scope.filter[key] instanceof Date) {
value = $scope.filter[key].toISOString()
} else {
value = $scope.filter[key]
}
query += key + '=' + encodeURIComponent(value) + '&'
}
}
$http.get(fusio.baseUrl + 'backend/transaction?' + query)
.then(function (response) {
var data = response.data
$scope.totalResults = data.totalResults
$scope.startIndex = 0
$scope.transactions = data.entry
})
}
$scope.openDetailDialog = function (transaction) {
var modalInstance = $uibModal.open({
size: 'lg',
backdrop: 'static',
templateUrl: 'app/controller/transaction/detail.html',
controller: 'TransactionDetailCtrl',
resolve: {
transaction: function () {
return transaction
}
}
})
modalInstance.result.then(function (response) {
$scope.response = response
$scope.load()
$timeout(function () {
$scope.response = null
}, 2000)
}, function () {
})
}
$scope.openFilterDialog = function () {
var modalInstance = $uibModal.open({
size: 'lg',
backdrop: 'static',
templateUrl: 'app/controller/statistic/filter.html',
controller: 'StatisticFilterCtrl',
resolve: {
filter: function () {
return $scope.filter
}
}
})
modalInstance.result.then(function (filter) {
$scope.filter = filter
$scope.doFilter()
}, function () {
})
}
$scope.load()
}
|
javascript
|
<gh_stars>0
{% include "header.html" %}
<div class="container" style="min-height: 100vh;position: relative;">
{% if user %}
<div class="row mt-4">
<div class="card rounded-0 shadow col-10 offset-1">
<div class="card-body">
<h2 class="card-title text-info text-capitalize">Welcome, {{user.firstName}} {{user.lastName}}</h2>
<a href="/menu"><h6 class="text-danger" style="text-decoration: none;">Feeling Hungry??? Let's Order Some food</h6></a>
</div>
</div>
</div>
{% endif %}
<h1 class="mt-3 text-center font-weight-bold"><span class="badge badge-success">Restaurants</span></h1><hr>
<div class="row mt-4">
{% for x in restaurants %}
<div class="card mx-auto" style="width: 10rem;">
<img class="card-img-top" src="{{ url_for('static',filename='images/utensils.png') }}">
<div class="card-body">
<h5 class="card-title">{{ x.name }}</h5>
<p class="card-text">Address : {{x.address}}</p>
<a href="/restaurant/{{ x.id }}" class="btn btn-primary">Menu</a>
</div>
</div>
{% endfor %}
</div>
</div>
{% include "footer.html" %}
|
html
|
<filename>assets/src/components/select-theme/select-theme.js
$(document).ready(function () {
$('#theme-black').click(function() {
$('#theme-main').removeClass('select-theme__btn_active')
$(this).addClass('select-theme__btn_active')
$('.page-main').addClass('page-main_dark')
})
$('#theme-main').click(function() {
$('#theme-black').removeClass('select-theme__btn_active')
$(this).addClass('select-theme__btn_active')
$('.page-main').removeClass('page-main_dark')
})
})
|
javascript
|
#include "catch/catch.hpp"
#include <enumerate.hpp>
#include <vector>
struct Bob {
int x;
friend int* begin( Bob& b ){ return &b.x; }
friend int* end( Bob& b ){ return &b.x+1; }
};
struct Foo {
int x;
int * begin() { return &x; }
int * end() { return &x + 1; }
};
namespace adltest
{
struct Foo {};
int * begin(Foo& f) { return reinterpret_cast<int*>(&f); }
int * end(Foo& f) { return reinterpret_cast<int*>(&f); }
}
TEST_CASE ("Custom iterable type (friend)", "enumerate") {
{
int x = 0, y = 0, cnt = 0;
Foo f{3};
for (auto&& e : f) { x += e; }
for (auto&& [idx, val]: rz::enumerate(f)) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
{
int x = 0, y = 0, cnt = 0;
for (auto&& e : Foo{7}) { x += e; }
for (auto&& [idx, val] : rz::enumerate(Foo{7})) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
}
TEST_CASE ("Custom iterable type", "enumerate") {
{
int x = 0, y = 0, cnt = 0;
Bob b{3};
for (auto&& e : b) { x += e; }
for (auto&& [idx, val]: rz::enumerate(b)) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
{
int x = 0, y = 0, cnt = 0;
for (auto&& e : Bob{7}) { x += e; }
for (auto&& [idx, val] : rz::enumerate(Bob{7})) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
}
TEST_CASE ("Custom iterable type (ADL)", "enumerate") {
{
int x = 0, y = 0, cnt = 0;
adltest::Foo f{};
for (auto&& e : f) { x += e; }
for (auto&& [idx, val]: rz::enumerate(f)) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
{
int x = 0, y = 0, cnt = 0;
for (auto&& e : adltest::Foo{}) { x += e; }
for (auto&& [idx, val] : rz::enumerate(adltest::Foo{})) {
y += val;
REQUIRE ( cnt++ == idx );
}
REQUIRE ( x == y );
}
}
TEST_CASE ("iterate over container", "enumerate") {
{
int sum = 0, cnt = 0;
std::vector<int> v{1, 2, 3, 4};
for (auto&& [idx, val] : rz::enumerate(v)) {
++val;
sum += val;
REQUIRE ( cnt++ == idx ) ;
}
REQUIRE ( sum == 14 );
REQUIRE ( v[0] == 2 );
REQUIRE ( v[1] == 3 );
REQUIRE ( v[2] == 4 );
REQUIRE ( v[3] == 5 );
}
{
int sum = 0, cnt = 0;
for (auto&& [idx, val] : rz::enumerate(std::vector<int>{1, 2, 3, 4})) {
++val;
sum += val;
REQUIRE ( cnt++ == idx ) ;
}
REQUIRE ( sum == 14 );
}
}
|
cpp
|
{
"_from": "aws",
"_id": "aws@0.0.3-2",
"_inBundle": false,
"_integrity": "sha1-jEwXDEc2SzCf3+Sw/kwXEESD+kY=",
"_location": "/aws",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "aws",
"name": "aws",
"escapedName": "aws",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/aws/-/aws-0.0.3-2.tgz",
"_shasum": "8c4c170c47364b309fdfe4b0fe4c17104483fa46",
"_spec": "aws",
"_where": "/Users/pliddy/Documents/dev/betterway",
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"bugs": {
"url": "https://github.com/adcloud/node-aws/issues"
},
"bundleDependencies": false,
"dependencies": {
"vows": ">= 0.5.1"
},
"deprecated": false,
"description": "evil wrapper for the amazon command line tools",
"engines": {
"node": ">= 0.2.0"
},
"homepage": "https://github.com/adcloud/node-aws#readme",
"keywords": [
"amazon",
"aws",
"ec2",
"cloud"
],
"main": "./lib/aws",
"name": "aws",
"repository": {
"type": "git",
"url": "git+https://github.com/adcloud/node-aws.git"
},
"url": "http://github.com/adcloud/node-aws",
"version": "0.0.3-2"
}
|
json
|
<filename>composer.json
{
"name": "jstewmc/transient",
"description": "Transient methods and properties in PHP",
"license": "MIT",
"keywords": ["PHP", "transient", "entity", "method", "property"],
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>"
}
],
"repositories": [
{
"url": "https://github.com/jstewmc/refraction.git",
"type": "git"
}
],
"require": {
"jstewmc/refraction": "dev-master"
},
"require-dev": {
"phpunit/phpunit": "4.2.*"
},
"autoload": {
"psr-4": {
"Jstewmc\\Transient\\": "src/"
}
}
}
|
json
|
package br.com.androidpro.javaandroid.exercicio4;
public enum Posicao {
ATACANTE, MEIO_CAMPO, DEFENSOR, GOLEIRO;
}
|
java
|
<filename>src/components/authentication/registration/RegisterPage.js<gh_stars>0
import React from 'react';
import PropTypes from 'prop-types';
import RegisterForm from './RegisterForm';
import * as authActions from '../../../actions/authActions';
import { bindActionCreators } from 'redux';
import {connect} from 'react-redux';
import toastr from 'toastr';
class RegisterPage extends React.Component {
constructor(props, context) {
super(props, context);
let userDetails = {
email: '',
password: '',
first_name: '',
last_name: ''
};
this.state = {
credentials: userDetails,
loading: false,
errors: {}
};
this.register = this.register.bind(this);
this.onChange = this.onChange.bind(this);
}
onChange(event) {
const field = event.target.name;
const credentials = this.state.credentials;
credentials[field] = event.target.value;
return this.setState({credentials: credentials});
}
register(event) {
event.preventDefault();
this.props.actions.regiserUser(this.state.credentials)
.then(() => { this.redirectToBucketlistPage(); })
.catch(error => {
toastr.error(error);
});
}
redirectToBucketlistPage() {
this.setState({saving: false});
toastr.success('Successfully register in');
this.context.router.push('/bucketlists');
}
render() {
return (
<RegisterForm
loading={this.state.loading}
login={this.register}
onChange={this.onChange} />
);
}
}
RegisterPage.propTypes = {
actions: PropTypes.object.isRequired
};
RegisterPage.contextTypes = {
router: PropTypes.object
};
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators(authActions, dispatch)
};
}
export default connect(null, mapDispatchToProps)(RegisterPage);
|
javascript
|
Aurangabad:
The Department of Conservative Dentistry and Endodontics (DCDE) of Government Dental College and Hospital (GDCH) organised a lecture on ‘ Laser Uses in Dentistry’ recently under PRADAN (Post-graduate Research And Development Activity Network) initiative.
President of India chapter of Asia Pacific Laser Institute Dr Rajat Bhandari (Amritsar) guided the participants. Dean of GDCH Dr S P Dange presided over the function.
DCDE head Dr Pradnya Bansode, in her introductory speech, stressed the need of updating the knowledge of advanced technology and techniques in dentistry.
Chairman of PRADAN Dr Maya Indurkar elaborated on the research studies on laser use. Dr S P Dange emphasised providing the best services to the patient. Dr Seema Pathak and Dr Shirish Khedgikar welcomed the guests. Dr Apurva Satpute introduced the speaker.
|
english
|
<filename>103/CM9nJAVkniuxCmwhSHJvuFftxAbspmyQqLBQyRfode5E.json
{"name":"Token CM9n","symbol":"CM9nJ","decimals":6,"address":"CM9nJAVkniuxCmwhSHJvuFftxAbspmyQqLBQyRfode5E","chainId":103}
|
json
|
function to_i (value) {
return parseInt(value);
}
exports.to_i = to_i;
|
javascript
|
from PyQt4 import QtGui
from Views import ui_dialog_sitechange as uichange
class TablePreview(QtGui.QDialog, uichange.Ui_Dialog):
def __init__(self, parent=None):
super().__init__(parent)
self.setupUi(self)
|
python
|
Brussels: The European Union has strongly condemned the execution of Myanmar’s former NLD Member of Parliament Phyo Zeya Thaw, prominent activist Kyaw MinYu, as well as Aung Thura Zaw, and Hla Myo Aung by the southeast Asian country’s military regime.
“These politically motivated executions represent yet another step towards the complete dismantling of the rule of law and a further blatant violation of human rights in Myanmar. The four men were the first prisoners to be executed in Myanmar in more than three decades, a move that is contrary to the overall worldwide trend to abolish the death penalty,” the office of the High Commissioner said in a statement, adding that the EU is fundamentally opposed to the death penalty “as an inhumane, cruel and irreversible punishment that violates the inalienable right to life”.
“The executions are reprehensible acts that show that the military authorities have no respect for the life or dignity of the very people they are supposed to protect. They will only exacerbate the polarisation, violence, and dramatic humanitarian situation in Myanmar.
“The EU stands unequivocally with the people of Myanmar and their aspirations for freedom, and urges the military regime to end all acts of violence without further delay and calls for the unconditional and immediate release of all those arbitrarily detained, as well as to return to a democratic path,” it said.
“We will continue to support all efforts by the United Nations and ASEAN to this end,” the statement said.
|
english
|
# Real time chat application
Node chat application with real time data flow with socket.io. It has 2 simple views: one for connection to a chat room and the chat itself with a sidebar with current users conencted. Also, users can share their location with a google map link.
## Wanna have a look?
* `git clone <EMAIL>:learodrigo/real-time-chat-app.git`
* `cd real-time-chat-app`
* `npm i`
* `npm run dev`
* Open [http://localhost:3000](http://localhost:3000)
* Ready to go
## Reference
[Socket.io](https://socket.io/)
[Geolocation API](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation)
[Mustache js](https://github.com/janl/mustache.js/)
[qs js](https://www.npmjs.com/package/qs)
|
markdown
|
<gh_stars>0
{"remainingRequest":"C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\node_modules\\eslint-loader\\index.js??ref--13-0!C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\src\\main.js","dependencies":[{"path":"C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\src\\main.js","mtime":1599636556306},{"path":"C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\지선\\haiqv-automl\\flask-projects\\flask-vue-argon\\frontend\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJDOlxcVXNlcnNcXFx1QzlDMFx1QzEyMFxcaGFpcXYtYXV0b21sXFxmbGFzay1wcm9qZWN0c1xcZmxhc2stdnVlLWFyZ29uXFxmcm9udGVuZFxcbm9kZV9tb2R1bGVzXFxjb3JlLWpzXFxtb2R1bGVzXFxlcy5hcnJheS5pdGVyYXRvci5qcyI7CmltcG9ydCAiQzpcXFVzZXJzXFxcdUM5QzBcdUMxMjBcXGhhaXF2LWF1dG9tbFxcZmxhc2stcHJvamVjdHNcXGZsYXNrLXZ1ZS1hcmdvblxcZnJvbnRlbmRcXG5vZGVfbW9kdWxlc1xcY29yZS1qc1xcbW9kdWxlc1xcZXMucHJvbWlzZS5qcyI7CmltcG9ydCAiQzpcXFVzZXJzXFxcdUM5QzBcdUMxMjBcXGhhaXF2LWF1dG9tbFxcZmxhc2stcHJvamVjdHNcXGZsYXNrLXZ1ZS1hcmdvblxcZnJvbnRlbmRcXG5vZGVfbW9kdWxlc1xcY29yZS1qc1xcbW9kdWxlc1xcZXMub2JqZWN0LmFzc2lnbi5qcyI7CmltcG9ydCAiQzpcXFVzZXJzXFxcdUM5QzBcdUMxMjBcXGhhaXF2LWF1dG9tbFxcZmxhc2stcHJvamVjdHNcXGZsYXNrLXZ1ZS1hcmdvblxcZnJvbnRlbmRcXG5vZGVfbW9kdWxlc1xcY29yZS1qc1xcbW9kdWxlc1xcZXMucHJvbWlzZS5maW5hbGx5LmpzIjsKCi8qIQ0KDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCiogVnVlIEFyZ29uIERhc2hib2FyZCAtIHYxLjAuMA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQoNCiogUHJvZHVjdCBQYWdlOiBodHRwczovL3d3dy5jcmVhdGl2ZS10aW0uY29tL3Byb2R1Y3QvYXJnb24tZGFzaGJvYXJkDQoqIENvcHlyaWdodCAyMDE5IENyZWF0aXZlIFRpbSAoaHR0cHM6Ly93d3cuY3JlYXRpdmUtdGltLmNvbSkNCiogTGljZW5zZWQgdW5kZXIgTUlUIChodHRwczovL2dpdGh1Yi5jb20vY3JlYXRpdmV0aW1vZmZpY2lhbC9hcmdvbi1kYXNoYm9hcmQvYmxvYi9tYXN0ZXIvTElDRU5TRS5tZCkNCg0KKiBDb2RlZCBieSBDcmVhdGl2ZSBUaW0NCg0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQoNCiogVGhlIGFib3ZlIGNvcHlyaWdodCBub3RpY2UgYW5kIHRoaXMgcGVybWlzc2lvbiBub3RpY2Ugc2hhbGwgYmUgaW5jbHVkZWQgaW4gYWxsIGNvcGllcyBvciBzdWJzdGFudGlhbCBwb3J0aW9ucyBvZiB0aGUgU29mdHdhcmUuDQoNCiovCmltcG9ydCBWdWUgZnJvbSAndnVlJzsKaW1wb3J0IEFwcCBmcm9tICcuL0FwcC52dWUnOwppbXBvcnQgcm91dGVyIGZyb20gJy4vcm91dGVyJzsKaW1wb3J0ICcuL3JlZ2lzdGVyU2VydmljZVdvcmtlcic7CmltcG9ydCBBcmdvbkRhc2hib2FyZCBmcm9tICcuL3BsdWdpbnMvYXJnb24tZGFzaGJvYXJkJzsKVnVlLmNvbmZpZy5wcm9kdWN0aW9uVGlwID0gZmFsc2U7ClZ1ZS51c2UoQXJnb25EYXNoYm9hcmQpOwpuZXcgVnVlKHsKICByb3V0ZXI6IHJvdXRlciwKICByZW5kZXI6IGZ1bmN0aW9uIHJlbmRlcihoKSB7CiAgICByZXR1cm4gaChBcHApOwogIH0KfSkuJG1vdW50KCcjYXBwJyk7"},{"version":3,"sources":["C:/Users/지선/haiqv-automl/flask-projects/flask-vue-argon/frontend/src/main.js"],"names":["Vue","App","router","ArgonDashboard","config","productionTip","use","render","h","$mount"],"mappings":";;;;;AAAA;;;;;;;;;;;;;;;;;AAiBA,OAAOA,GAAP,MAAgB,KAAhB;AACA,OAAOC,GAAP,MAAgB,WAAhB;AACA,OAAOC,MAAP,MAAmB,UAAnB;AACA,OAAO,yBAAP;AACA,OAAOC,cAAP,MAA2B,2BAA3B;AAEAH,GAAG,CAACI,MAAJ,CAAWC,aAAX,GAA2B,KAA3B;AAEAL,GAAG,CAACM,GAAJ,CAAQH,cAAR;AACA,IAAIH,GAAJ,CAAQ;AACNE,EAAAA,MAAM,EAANA,MADM;AAENK,EAAAA,MAAM,EAAE,gBAAAC,CAAC;AAAA,WAAIA,CAAC,CAACP,GAAD,CAAL;AAAA;AAFH,CAAR,EAGGQ,MAHH,CAGU,MAHV","sourcesContent":["/*!\r\n\r\n=========================================================\r\n* Vue Argon Dashboard - v1.0.0\r\n=========================================================\r\n\r\n* Product Page: https://www.creative-tim.com/product/argon-dashboard\r\n* Copyright 2019 Creative Tim (https://www.creative-tim.com)\r\n* Licensed under MIT (https://github.com/creativetimofficial/argon-dashboard/blob/master/LICENSE.md)\r\n\r\n* Coded by Creative Tim\r\n\r\n=========================================================\r\n\r\n* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\n*/\r\nimport Vue from 'vue'\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport './registerServiceWorker'\r\nimport ArgonDashboard from './plugins/argon-dashboard'\r\n\r\nVue.config.productionTip = false\r\n\r\nVue.use(ArgonDashboard)\r\nnew Vue({\r\n router,\r\n render: h => h(App)\r\n}).$mount('#app')\r\n"]}]}
|
json
|
/******************************************************************************
* Spine Runtimes Software License
* Version 2.3
* <p>
* Copyright (c) 2013-2015, Esoteric Software
* All rights reserved.
* <p>
* You are granted a perpetual, non-exclusive, non-sublicensable and
* non-transferable license to use, install, execute and perform the Spine
* Runtimes Software (the "Software") and derivative works solely for personal
* or internal use. Without the written permission of Esoteric Software (see
* Section 2 of the Spine Software License Agreement), you may not (a) modify,
* translate, adapt or otherwise create derivative works, improvements of the
* Software or develop new applications using the Software or (b) remove,
* delete, alter or obscure any trademarks or any copyright, trademark, patent
* or other intellectual property or proprietary rights notices on or in the
* Software, including any copy thereof. Redistributions in binary or source
* form must include this license and terms.
* <p>
* THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL ESOTERIC SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*****************************************************************************/
// Ported from the Spine runtime by defrac 2015.
package defrac.animation.spine;
import defrac.event.Listeners;
import defrac.pool.ObjectPool;
import defrac.pool.ObjectPools;
import defrac.util.Array;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import static defrac.lang.Preconditions.checkArgument;
/** Stores state for an animation and automatically mixes between animations. */
public final class AnimationState {
@Nonnull
private static final ObjectPool<TrackEntry> TRACK_ENTRY_POOL =
ObjectPools.newPool(TrackEntry::new);
@Nonnull
private final AnimationStateData data;
@Nonnull
private final Array<Event> events = new Array<>();
@Nonnull
private final Listeners<Listener> listeners = Listeners.create();
@Nonnull
private final Array<TrackEntry> tracks = new Array<>();
private float timeScale = 1.0f;
public AnimationState(@Nonnull final AnimationStateData data) {
this.data = data;
}
/**
* @param delta Elapsed time since last update in seconds
*/
public void update(float delta) {
delta *= timeScale;
final int trackCount = tracks.size();
for(int trackIndex = 0; trackIndex < trackCount; trackIndex++) {
final TrackEntry current = tracks.get(trackIndex);
if(current == null) {
continue;
}
current.time += delta * current.timeScale;
if(current.previous != null) {
final float previousDelta = delta * current.previous.timeScale;
current.previous.time += previousDelta;
current.mixTime += previousDelta;
}
final TrackEntry next = current.next;
if(next != null) {
next.time = current.lastTime - next.delay;
if(next.time >= 0) {
setCurrent(trackIndex, next);
}
} else {
// End non-looping animation when it reaches its end time and there is no next entry.
if(!current.loop && current.lastTime >= current.endTime) {
clearTrack(trackIndex);
}
}
}
}
public void apply(@Nonnull final Skeleton skeleton) {
final Array<Event> events = this.events;
final int trackCount = tracks.size();
for(int trackIndex = 0; trackIndex < trackCount; trackIndex++) {
final TrackEntry current = tracks.get(trackIndex);
if(current == null) {
continue;
}
events.clear();
float time = current.time;
final float lastTime = current.lastTime;
final float endTime = current.endTime;
final boolean loop = current.loop;
if(!loop && time > endTime) {
time = endTime;
}
final TrackEntry previous = current.previous;
if(previous == null) {
assert current.animation != null;
current.animation.mix(skeleton, lastTime, time, loop, events, current.mix);
} else {
float previousTime = previous.time;
if(!previous.loop && previousTime > previous.endTime) {
previousTime = previous.endTime;
}
assert previous.animation != null;
previous.animation.apply(skeleton, previousTime, previousTime, previous.loop, null);
float alpha = current.mixTime / current.mixDuration * current.mix;
if(alpha >= 1.0f) {
alpha = 1.0f;
TRACK_ENTRY_POOL.ret(previous);
current.previous = null;
}
assert current.animation != null;
current.animation.mix(skeleton, lastTime, time, loop, events, alpha);
}
for(final Event event : events) {
if(current.listener != null) {
current.listener.event(trackIndex, event);
}
for(final Listener listener : listeners) {
listener.event(trackIndex, event);
}
}
// Check if completed the animation or a loop iteration.
if(loop ? (lastTime % endTime > time % endTime) : (lastTime < endTime && time >= endTime)) {
final int count = (int)(time / endTime);
if(current.listener != null) {
current.listener.complete(trackIndex, count);
}
for(final Listener listener : listeners) {
listener.complete(trackIndex, count);
}
}
current.lastTime = current.time;
}
}
public void clearTracks() {
final int trackCount = tracks.size();
for(int trackIndex = 0; trackIndex < trackCount; trackIndex++) {
clearTrack(trackIndex);
}
tracks.clear();
}
public void clearTrack(final int trackIndex) {
if(trackIndex < 0 || trackIndex >= tracks.size()) {
return;
}
final TrackEntry current = tracks.get(trackIndex);
if(current == null) {
return;
}
if(current.listener != null) {
current.listener.end(trackIndex);
}
for(final Listener listener : listeners) {
listener.end(trackIndex);
}
tracks.set(trackIndex, null);
freeAll(current);
if(current.previous != null) {
TRACK_ENTRY_POOL.ret(current.previous);
}
}
private void freeAll(@Nullable TrackEntry entry) {
while(entry != null) {
final TrackEntry next = entry.next;
TRACK_ENTRY_POOL.ret(entry);
entry = next;
}
}
@Nullable
private TrackEntry expandToIndex(final int index) {
if(index < tracks.size()) {
return tracks.get(index);
}
tracks.size(index + 1);
return null;
}
private void setCurrent(final int index, @Nonnull final TrackEntry entry) {
final TrackEntry current = expandToIndex(index);
if(current != null) {
TrackEntry previous = current.previous;
current.previous = null;
if(current.listener != null) {
current.listener.end(index);
}
for(final Listener listener : listeners) {
listener.end(index);
}
entry.mixDuration = data.getMix(current.animation, entry.animation);
if(entry.mixDuration > 0) {
entry.mixTime = 0;
// If a mix is in progress, mix from the closest animation.
if(previous != null && current.mixTime / current.mixDuration < 0.5f) {
entry.previous = previous;
previous = current;
} else {
entry.previous = current;
}
} else {
TRACK_ENTRY_POOL.ret(current);
}
if(previous != null) {
TRACK_ENTRY_POOL.ret(previous);
}
}
tracks.set(index, entry);
if(entry.listener != null) {
entry.listener.start(index);
}
for(final Listener listener : listeners) {
listener.start(index);
}
}
/** @see #setAnimation(int, Animation, boolean) */
@Nonnull
public TrackEntry setAnimation(final int trackIndex,
@Nonnull final String animationName,
final boolean loop) {
final Animation animation = data.skeletonData().findAnimation(animationName);
checkArgument(animation != null, "Animation not found: " + animationName);
//noinspection ConstantConditions
return setAnimation(trackIndex, animation, loop);
}
/** Set the current animation. Any queued animations are cleared. */
@Nonnull
public TrackEntry setAnimation(final int trackIndex,
@Nonnull final Animation animation,
final boolean loop) {
final TrackEntry current = expandToIndex(trackIndex);
if(current != null) {
freeAll(current.next);
}
final TrackEntry entry = TRACK_ENTRY_POOL.get();
entry.animation = animation;
entry.loop = loop;
entry.endTime = animation.duration();
setCurrent(trackIndex, entry);
return entry;
}
/** {@link #addAnimation(int, Animation, boolean, float)} */
public TrackEntry addAnimation(final int trackIndex,
@Nonnull final String animationName,
final boolean loop,
final float delay) {
final Animation animation = data.skeletonData().findAnimation(animationName);
checkArgument(animation != null, "Animation not found: " + animationName);
//noinspection ConstantConditions
return addAnimation(trackIndex, animation, loop, delay);
}
/** Adds an animation to be played delay seconds after the current or last queued animation.
* @param delay May be <= 0 to use duration of previous animation minus any mix duration plus the negative delay. */
@Nonnull
public TrackEntry addAnimation(final int trackIndex,
@Nonnull final Animation animation,
final boolean loop,
float delay) {
final TrackEntry entry = TRACK_ENTRY_POOL.get();
entry.animation = animation;
entry.loop = loop;
entry.endTime = animation.duration();
TrackEntry last = expandToIndex(trackIndex);
if(last != null) {
while (last.next != null) {
last = last.next;
}
last.next = entry;
} else {
tracks.set(trackIndex, entry);
}
if(delay <= 0.0f) {
if(last != null) {
delay += last.endTime - data.getMix(last.animation, animation);
} else {
delay = 0.0f;
}
}
entry.delay = delay;
return entry;
}
/** @return May be null. */
@Nullable
public TrackEntry current(final int trackIndex) {
return (trackIndex < 0 || trackIndex >= tracks.size())
? null
: tracks.get(trackIndex);
}
/** Adds a listener to receive events for all animations. */
public void addListener(@Nonnull final Listener listener) {
listeners.add(listener);
}
/** Removes the listener added with {@link #addListener(Listener)}. */
public void removeListener(@Nullable Listener listener) {
if(listener == null) {
return;
}
listeners.remove(listener);
}
public float timeScale() {
return timeScale;
}
public void timeScale(final float value) {
timeScale = value;
}
@Nonnull
public AnimationStateData data() {
return data;
}
/** Returns the list of tracks that have animations, which may contain nulls. */
@Nonnull
public Array<TrackEntry> tracks() {
return tracks;
}
@Override
@Nonnull
public String toString() {
final StringBuilder buffer = new StringBuilder(64).append("[AnimationState tracks: {");
boolean isFirst = true;
for(final TrackEntry entry : tracks) {
if(entry == null) {
continue;
}
if(!isFirst) {
buffer.append(", ");
} else {
isFirst = false;
}
buffer.append(entry.toString());
}
return buffer.append("}]").toString();
}
public static class TrackEntry {
@Nullable
TrackEntry next;
@Nullable
TrackEntry previous;
@Nullable
Animation animation;
@Nullable
Listener listener;
boolean loop;
float delay, time, lastTime = -1, endTime, timeScale = 1;
float mixTime, mixDuration;
float mix = 1;
public void reset() {
next = null;
previous = null;
animation = null;
listener = null;
timeScale = 1;
lastTime = -1; // Trigger events on frame zero.
time = 0;
}
@Nullable
public Animation animation() {
return animation;
}
public void animation(@Nullable final Animation value) {
animation = value;
}
public boolean loop() {
return loop;
}
public void loop(final boolean value) {
loop = value;
}
public float delay() {
return delay;
}
public void delay(final float value) {
delay = value;
}
public float time() {
return time;
}
public void time(final float value) {
time = value;
}
public float endTime() {
return endTime;
}
public void endTime(final float value) {
endTime = value;
}
@Nullable
public Listener listener() {
return listener;
}
public void listener(@Nullable final Listener value) {
listener = value;
}
public float lastTime() {
return lastTime;
}
public void lastTime(final float value) {
lastTime = value;
}
public float mix() {
return mix;
}
public void mix(final float mix) {
this.mix = mix;
}
public float timeScale() {
return timeScale;
}
public void timeScale(final float value) {
timeScale = value;
}
@Nullable
public TrackEntry next() {
return next;
}
public void next(@Nullable final TrackEntry next) {
this.next = next;
}
/** Returns true if the current time is greater than the end time, regardless of looping. */
public boolean isComplete() {
return time >= endTime;
}
@Nonnull
@Override
public String toString() {
return animation == null ? "[TrackEntry]" : "[TrackEntry animation: "+animation.name+']';
}
}
public interface Listener {
/** Invoked when the current animation triggers an event. */
void event(int trackIndex, Event event);
/** Invoked when the current animation has completed.
* @param loopCount The number of times the animation reached the end. */
void complete(int trackIndex, int loopCount);
/** Invoked just after the current animation is set. */
void start(int trackIndex);
/** Invoked just before the current animation is replaced. */
void end(int trackIndex);
}
public static abstract class SimpleListener implements Listener {
/** {@inheritDoc} */
@Override
public void event(int trackIndex, Event event) {}
/** {@inheritDoc} */
@Override
public void complete(int trackIndex, int loopCount) {}
/** {@inheritDoc} */
@Override
public void start(int trackIndex) {}
/** {@inheritDoc} */
@Override
public void end(int trackIndex) {}
}
}
|
java
|
<reponame>apoveda25/nestjs-graphql-federated
import { FiltersResourcesPipe } from './filters-resources.pipe';
describe('FiltersResourcesPipe', () => {
it('should be defined', () => {
expect(new FiltersResourcesPipe()).toBeDefined();
});
});
|
typescript
|
<filename>fog/api/src/lib.rs
mod autogenerated_code {
// Expose proto data types from included third-party/external proto files.
pub use mc_api::external;
pub use mc_attest_api::attest;
pub use mc_fog_api::{report, report_grpc};
pub use protobuf::well_known_types::Empty;
// Needed due to how to the auto-generated code references the Empty message.
pub mod empty {
pub use protobuf::well_known_types::Empty;
}
// Include the auto-generated code.
include!(concat!(env!("OUT_DIR"), "/protos-auto-gen/mod.rs"));
}
pub use autogenerated_code::*;
use fog_uri::{IngestPeerUri, UriParseError};
use mc_util_grpc::BasicCredentials;
use std::{collections::BTreeSet, str::FromStr};
// For tests, we need to implement Eq on view::QueryRequest
// They implement PartialEq but not Eq for some reason
impl Eq for autogenerated_code::view::QueryRequest {}
impl Eq for autogenerated_code::view::QueryRequestAAD {}
impl Eq for autogenerated_code::kex_rng::KexRngPubkey {}
impl Eq for autogenerated_code::kex_rng::StoredRng {}
// Extra functions for IngestSummary to avoid repetition
impl ingest_common::IngestSummary {
pub fn get_sorted_peers(&self) -> Result<BTreeSet<IngestPeerUri>, UriParseError> {
self.peers
.iter()
.map(|x| IngestPeerUri::from_str(x))
.collect()
}
}
// Implement the EnclaveGrpcChannel trait on attested service types.
// If we don't do this in this crate, then newtype wrappers must be used, because of orphan rules
use fog_enclave_connection::EnclaveGrpcChannel;
impl EnclaveGrpcChannel for view_grpc::FogViewApiClient {
fn auth(
&mut self,
msg: &attest::AuthMessage,
creds: &BasicCredentials,
) -> Result<attest::AuthMessage, grpcio::Error> {
Ok(<Self>::auth_opt(self, msg, creds.call_option()?)?)
}
fn enclave_request(
&mut self,
msg: &attest::Message,
creds: &BasicCredentials,
) -> Result<attest::Message, grpcio::Error> {
Ok(<Self>::query_opt(self, msg, creds.call_option()?)?)
}
}
impl EnclaveGrpcChannel for ledger_grpc::FogKeyImageApiClient {
fn auth(
&mut self,
msg: &attest::AuthMessage,
creds: &BasicCredentials,
) -> Result<attest::AuthMessage, grpcio::Error> {
Ok(<Self>::auth_opt(self, msg, creds.call_option()?)?)
}
fn enclave_request(
&mut self,
msg: &attest::Message,
creds: &BasicCredentials,
) -> Result<attest::Message, grpcio::Error> {
Ok(self.check_key_images_opt(msg, creds.call_option()?)?)
}
}
impl EnclaveGrpcChannel for ledger_grpc::FogMerkleProofApiClient {
fn auth(
&mut self,
msg: &attest::AuthMessage,
creds: &BasicCredentials,
) -> Result<attest::AuthMessage, grpcio::Error> {
Ok(<Self>::auth_opt(self, msg, creds.call_option()?)?)
}
fn enclave_request(
&mut self,
msg: &attest::Message,
creds: &BasicCredentials,
) -> Result<attest::Message, grpcio::Error> {
Ok(self.get_outputs_opt(msg, creds.call_option()?)?)
}
}
|
rust
|
<HTML>
<HEAD>
<TITLE>First Test of Section 9.4 of CSS2 Spec</TITLE>
<STYLE TYPE="text/css">
#id1 {position: absolute;
width: 20px;
height: 30px;}
#id2 {position: absolute;
padding: 30px;}
</STYLE>
</HEAD>
<BODY>
<h1 >
Testing First Testable Statement of Sec 9.4 of CSS2 Specification
</h1>
<ul>
<li >
1. In a block formatting context, boxes are laid out one after the other,
vertically, beginning at the top of a containing block.
</ul>
<h2 >
PASS CRITERIA(should be overlapping paragraphs):
</h2>
<p ID=id1 >
If statement #1 above is passed, then
this paragraph shoudl be absolutely positioned with width of 20px and
height ot 30px.
The rule applied is "#id1 {position: absolute;
width: 20px;
height: 30px;}".
<p ID=id2>
This paragraph should also be absolutely positioned, and should look like
the paragraph above with padding of 30px.
The rule applied is "#id2 {position: absolute;
padding: 30px;}".
<p>
All other properties of this page should be UA-default.
</BODY>
</HTML>
|
html
|
<reponame>ferreirars/portal
/*
Developed by <NAME>
Code/licensing: http://code.google.com/p/dlite/
Documentation: http://www.robertnyman.com/dlite
Version 1.0
*/
var dLite = function () {
var isIE = /*@cc_on!@*/false;
var uniqueHandlerId = 0;
var DOMLoaded = false;
var DOMLoadTimer = null;
var functionsToCall = [];
var addedStrings = {};
var execFunctions = function () {
for (var i=0, il=functionsToCall.length; i<il; i++) {
try {
functionsToCall[i]();
}
catch (e) {
// Prevent possible reference errors
}
}
functionsToCall = [];
};
var DOMHasLoaded = function () {
if (DOMLoaded) {
return;
}
DOMLoaded = true;
execFunctions();
};
return {
init : function () {
window.elm = window.elm || this.elm;
window.elmsByClass = window.elmsByClass || this.elmsByClass;
window.addClass = window.addClass || this.addClass;
window.removeClass = window.removeClass || this.removeClass;
window.addEvent = window.addEvent || this.addEvent;
window.removeEvent = window.removeEvent || this.removeEvent;
window.stopDefault = window.stopDefault || this.stopDefault;
window.cancelBubbling = window.cancelBubbling || this.cancelBubbling;
window.DOMReady = window.DOMReady || this.DOMReady;
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", DOMHasLoaded, false);
}
if (isIE) {
if (document.getElementById) {
document.write("<script id=\"ieScriptLoad\" defer src=\"//:\"><\/script>");
document.getElementById("ieScriptLoad").onreadystatechange = function() {
if (this.readyState === "complete") {
DOMHasLoaded.call(this);
}
};
}
}
if (/KHTML|WebKit|iCab/i.test(navigator.userAgent)) {
DOMLoadTimer = setInterval(function () {
if (/loaded|complete/i.test(document.readyState)) {
DOMHasLoaded.call(this);
clearInterval(DOMLoadTimer);
}
}, 10);
}
window.onload = DOMHasLoaded;
},
elm : function (id) {
return document.getElementById(id);
},
elmsByClass : function (className, tag, elm){
if (document.getElementsByClassName) {
this.elmsByClass = function (className, tag, elm) {
elm = elm || document;
var elements = elm.getElementsByClassName(className),
nodeName = (tag)? new RegExp("\\b" + tag + "\\b", "i") : null,
returnElements = [],
current;
for(var i=0, il=elements.length; i<il; i+=1){
current = elements[i];
if(!nodeName || nodeName.test(current.nodeName)) {
returnElements.push(current);
}
}
return returnElements;
};
}
else if (document.evaluate) {
this.elmsByClass = function (className, tag, elm) {
tag = tag || "*";
elm = elm || document;
var classes = className.split(" "),
classesToCheck = "",
xhtmlNamespace = "http://www.w3.org/1999/xhtml",
namespaceResolver = (document.documentElement.namespaceURI === xhtmlNamespace)? xhtmlNamespace : null,
returnElements = [],
elements,
node;
for(var j=0, jl=classes.length; j<jl; j+=1){
classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]";
}
try {
elements = document.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null);
}
catch (e) {
elements = document.evaluate(".//" + tag + classesToCheck, elm, null, 0, null);
}
while ((node = elements.iterateNext())) {
returnElements.push(node);
}
return returnElements;
};
}
else {
this.elmsByClass = function (className, tag, elm) {
tag = tag || "*";
elm = elm || document;
var classes = className.split(" "),
classesToCheck = [],
elements = (tag === "*" && elm.all)? elm.all : elm.getElementsByTagName(tag),
current,
returnElements = [],
match;
for(var k=0, kl=classes.length; k<kl; k+=1){
classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)"));
}
for(var l=0, ll=elements.length; l<ll; l+=1){
current = elements[l];
match = false;
for(var m=0, ml=classesToCheck.length; m<ml; m+=1){
match = classesToCheck[m].test(current.className);
if (!match) {
break;
}
}
if (match) {
returnElements.push(current);
}
}
return returnElements;
};
}
return this.elmsByClass(className, tag, elm);
},
addClass : function (elm, className) {
var currentClass = elm.className;
if (!new RegExp(("(^|\\s)" + className + "(\\s|$)"), "i").test(currentClass)) {
elm.className = currentClass + (currentClass.length? " " : "") + className;
}
},
removeClass : function (elm, className) {
var classToRemove = new RegExp(("(^|\\s)" + className + "(\\s|$)"), "i");
elm.className = elm.className.replace(classToRemove, function (match) {
var retVal = "";
if (new RegExp("^\\s+.*\\s+$").test(match)) {
retVal = match.replace(/(\s+).+/, "$1");
}
return retVal;
}).replace(/^\s+|\s+$/g, "");
},
addEvent : function (elm, evt, func) {
if (document.addEventListener) {
this.addEvent = function (elm, evt, func) {
elm.addEventListener(evt, func, false);
};
}
else {
this.addEvent = function (elm, evt, func) {
if (!elm.uniqueHandlerId) {
elm.uniqueHandlerId = uniqueHandlerId++;
}
var alreadyExists = false;
if (func.attachedElements && func.attachedElements[evt + elm.uniqueHandlerId]) {
alreadyExists = true;
}
if (!alreadyExists) {
if (!elm.events) {
elm.events = {};
}
if (!elm.events[evt]) {
elm.events[evt] = [];
var existingEvent = elm["on" + evt];
if (existingEvent) {
elm.events[evt].push(existingEvent);
}
}
elm.events[evt].push(func);
elm["on" + evt] = dLite.handleEvent;
if (!func.attachedElements) {
func.attachedElements = {};
}
func.attachedElements[evt + elm.uniqueHandlerId] = true;
}
};
}
return this.addEvent(elm, evt, func);
},
handleEvent : function (evt) {
var currentEvt = evt || event;
var currentTarget = currentEvt.target || currentEvt.srcElement || document;
while (currentTarget.nodeType !== 1 && currentTarget.parentNode) {
currentTarget = currentTarget.parentNode;
}
currentEvt.eventTarget = currentTarget;
var eventColl = this.events[currentEvt.type].slice(0);
var eventCollLength = eventColl.length - 1;
if (eventCollLength !== -1) {
for (var i=0; i<eventCollLength; i++) {
eventColl[i].call(this, currentEvt);
}
return eventColl[i].call(this, currentEvt);
}
},
removeEvent : function (elm, evt, func) {
if (document.addEventListener) {
this.removeEvent = function (elm, evt, func) {
elm.removeEventListener(evt, func, false);
};
}
else {
this.removeEvent = function (elm, evt, func) {
if (elm.events) {
var eventColl = elm.events[evt];
if (eventColl) {
for (var i=0; i<eventColl.length; i++) {
if (eventColl[i] === func) {
delete eventColl[i];
eventColl.splice(i, 1);
}
}
}
func.attachedElements[evt + elm.uniqueHandlerId] = null;
}
};
}
return this.removeEvent(elm, evt, func);
},
stopDefault : function (evt) {
evt.returnValue = false;
if (evt.preventDefault) {
evt.preventDefault();
}
},
cancelBubbling : function (evt) {
evt.cancelBubble = true;
if (evt.stopPropagation) {
evt.stopPropagation();
}
},
DOMReady : function () {
for (var i=0, il=arguments.length, funcRef; i<il; i++) {
funcRef = arguments[i];
if (!funcRef.DOMReady && !addedStrings[funcRef]) {
if (typeof funcRef === "string") {
addedStrings[funcRef] = true;
funcRef = new Function(funcRef);
}
funcRef.DOMReady = true;
functionsToCall.push(funcRef);
}
}
if (DOMLoaded) {
execFunctions();
}
}
};
}();
dLite.init();
|
javascript
|
<reponame>r4yan2/OpenPGP<gh_stars>0
#include "User.h"
namespace OpenPGP {
namespace Packet {
User::~User(){}
User & User::operator=(const User & copy)
{
Tag::operator=(copy);
return *this;
}
}
}
|
cpp
|
This loan gives you the option to pick a comfortable tenor that ranges up to 96 months.
For added financial flexibility, you can opt for the Flexi loan facility. This allows you to reduce EMI outgo by up to 45%*.
To expedite loan processing and avail of special terms, check for a pre-approved loan offer by sharing basic details.
Access key loan information such as loan statements and manage your EMIs digitally with the online customer portal.
Unsecured business loans have an attractive advantage over secured loans in that you do not have to provide collateral to avail of them. This means that taking an unsecured loan in India for business expenses helps safeguard your assets. In addition to this benefit, an unsecured business loan comes loaded with several attractive features.
(* Age should be 70 years at the time of Loan Maturity)
We ensure 100% transparency with all fees and charges applicable to our loans. Refer to the following table for the interest rate and a breakup of a few fees you may have to pay.
|Up to 3.54% of the loan amount (inclusive of applicable taxes)
|In case of default of repayment instrument, Rs. 1,500/- per bounce will be levied.
|Up to Rs. 2,360/- (inclusive of applicable taxes)
Flexi Term Loan (Flexi Dropline) - Up to Rs. 999/- (inclusive of applicable taxes)
*Loan Amount includes approved loan amount, insurance premium, VAS charges, and documentation charges.
|Any delay in payment of monthly instalment shall attract penal interest at the rate of 3.50% per month on the monthly instalment, from the date of default until the receipt of monthly instalment.
|Payable as per state laws and deducted upfront from the loan amount.
Broken period interest/ pre-EMI interest shall mean the amount of interest on Loan for the number of day(s) which is(are) charged in two scenarios:
Scenario 1 – More than 30 days from the date of loan disbursal till the first EMI is charged:
Scenario 2 – Less than 30 days from the date of loan disbursal till the first EMI is charged:
Flexi Term Loan (Flexi Dropline): Up to 0.295% (inclusive of applicable taxes) of the total withdrawable amount (as per the repayment schedule) on the date of levy of such charges.
Flexi Hybrid Loan: Up to 1.18% (inclusive of applicable taxes) of the total withdrawable amount during initial tenure. Up to 0.295% (inclusive of applicable taxes) of total withdrawable Amount during subsequent tenure.
|Up to 1.18% of the loan amount (inclusive of applicable taxes)
*Switch Fee is applicable only in case of switch of loan. In switch cases, Processing Fees and Documentation Charges will not be applicable.
Our representative will call you once you’ve applied for loan processing assistance.
|
english
|
var searchData=
[
['positionc_16',['PositionC',['../class_position_c.html',1,'']]]
];
|
javascript
|
Microsoft Lumia’s ambition to be a preferred business smartphone for executives may finally take flight in India with the launch of its Lumia 950 and 950 XL. While both the devices have got enough prowesses to impress any Windows 10 fan, the key attraction has to be the Display Dock. With Microsoft’s Display Dock, you can convert these new smartphones into a full-fledged PC running Windows 10, thanks to Continuum.
Watch Video (app users click here)
How to convert it into a PC?
You will need an external display (any TV with HDMI port), a Bluetooth mouse and keyboard combo along with either the Lumia 950 or 950 XL and of course the Display Dock. If you don’t find a Bluetooth mouse and keyboard, you need not worry. The same can be done on your smartphone as well.
Now think about this scenario. You already have an external display, a Bluetooth mouse and keyboard at your office or any meeting room that you would be visiting. You simply walk in with your Microsoft Lumia 950 or 950 XL, the display dock and the necessary cables for the meeting. Connect the palm-size dock to the TV and your smartphone. Pair the Bluetooth mouse and keyboard. You now have a Windows 10 PC. So, for your next presentation you don’t have to carry your laptop. Everything you need is already synced on One Drive and you are good to go.
Keep the thought of Miracast aside. The Display Dock is way more than that old technology. The best part is the TV powered by the dock works independently. This means you can play Angry Birds on your new Lumia smartphone while delivering a PowerPoint presentation on TV. And no one in the meeting room has to know about it.
Not just Angry Birds. You can take calls or even make them, browse the Internet, play music on your Lumia 950 or 950 XL without any interruptions on the TV screen. While your colleague is changing slides or explaining them in the meeting room using the mouse and keyboard, you can easily do your work on your phone. The Display Dock makes the external display work separately altogether.
It comes with two USB 2. 0 ports, one USB high current charging port, one Display Port and one USB Type C port for connecting the smartphone. The Display Dock has to be powered separately.
With these, you can transfer files to your smartphone or put them on One Drive from your external storage, charge another smartphone or tablet and more. Also, while the Lumia 950 or 950XL is connected to the Display Dock, it automatically gets charged. So, you won’t end up with low battery on your smartphone after a presentation.
Apps: What works and what doesn’t?
So, will all apps (predominantly built for small-screened smartphones) open seamlessly on the huge external display? No. Only universal apps will. The good news is most of them you would need are universal.
How capable are the new Lumia 950 and 950 XL?
The purpose of having two devices is primarily to give more choice to buyers. If you need a bigger 5. 7-inch display then opt for the Lumia 950 XL, else if you are good with a 5. 2-inch display then go for the Lumia 950. Apart from the display size, the Lumia 950 XL runs on an octa-core Qualcomm Snapdragon 810 processor with Adreno 430 GPU. Microsoft is using liquid cooling technology for meeting the cooling requirements of Snapdragon 810. There is actually distilled water inside the 950 XL working as a coolant. It is powered by a bigger 3,340 mAh.
On the other hand, the smaller Lumia 950 is powered by a hexa-core Qualcomm Snapdragon 808 processor with Adreno 418 GPU and a 3,000 mAh battery.
Other specs of both the devices are similar. Both come with 32GB internal storage expandable up to 2TB, 3GB RAM, 20 MP f/1. 9 rear cameras with Tricolor LED Flash, 5MP wide angle front cameras AMOLED display and Windows 10 Mobile operating system.
After spending a brief time with both the devices, I would say Windows 10 Mobile gives a refreshing touch to traditional Windows phones. Both the smartphones were smooth and I did not face any hiccups while running them the Display Dock. The Snapdragon 810 SoC does heat up a bit but it is way more manageable now and there are no performance issues at all.
Special mention. The camera quality seems excellent.
Full review coming shortly. Stay tuned to this space for more.
|
english
|
<filename>test/pull-orchestrator/out/main/other/keboola.orchestrator/orchestrator/phases/002-phase-2/001-task-2/task.json
{
"name": "Task 2",
"task": {
"mode": "run",
"configPath": "extractor/ex-generic-v2/without-rows"
},
"continueOnFailure": false,
"enabled": true
}
|
json
|
<reponame>bingyupj/maxwell
package com.zendesk.maxwell.schema.ddl;
import com.zendesk.maxwell.schema.Database;
import com.zendesk.maxwell.schema.Schema;
public class ResolvedDatabaseAlter extends ResolvedSchemaChange {
public String database;
public String charset;
public ResolvedDatabaseAlter() {}
public ResolvedDatabaseAlter(String database, String charset) {
this.database = database;
this.charset = charset;
}
@Override
public void apply(Schema schema) throws InvalidSchemaError {
if ( charset == null )
return;
Database d = schema.findDatabaseOrThrow(database);
if (d==null){
return;
}
if ( !d.getCharset().equals(charset) )
d.setCharset(charset);
}
@Override
public String databaseName() {
return database;
}
@Override
public String tableName() {
return null;
}
}
|
java
|
<gh_stars>1-10
import { checkFormatColumnData } from './checkFormat.js'
export default function (geojsonData) {
const geometryData = []
const data = {}
const features = geojsonData.features
const firstFeature = features[0]
if ('properties' in firstFeature) {
for (const columnName in firstFeature.properties) {
data[columnName] = []
}
}
for (let i = 0; i < features.length; i++) {
const { geometry, properties } = features[i]
geometryData.push(geometry)
for (const columnName in properties) {
data[columnName].push(properties[columnName])
}
}
checkFormatColumnData(data)
data.$geometry = geometryData
return data
}
|
javascript
|
René Descartes was born in 1596 in La Hay en Touraine, France, to Joachim and Jeanne Descartes. Jeanne died shortly after Descartes turned one. Descartes was thought to have been fairly ill throughout his childhood. He and his siblings were raised by their grandmother, while Joachim was busy elsewhere with work and as a council member in the provincial parliament. Descartes never married, but he fathered a child in 1635 with Helena Jans van der Strom. The child, named Francine, died at age five of scarlet fever.
What was René Descartes’s family like?
While every effort has been made to follow citation style rules, there may be some discrepancies. Please refer to the appropriate style manual or other sources if you have any questions.
|
english
|
Kate Middleton, formally the Duchess of Cambridge, has finally agreed to be on the cover of a fashion glossy, and her photoshoot for UK Vogue shows the future queen of England as the "country chic" cover girl.
Kate, whose wardrobe and fashion choices are endlessly scrutinised and discussed across the globe, appears on the magazine's 100th cover.
The 34-year-old fashion icon is seen smiling ear-to-ear for the cover photo of the June issue. She looks effortlessly elegant in a vintage-inspired picture that shows her wearing a crisp white shirt paired with a brown jacket, a fedora hat and her famous engagement ring.
Kate, a mother of two, has consented to a magazine photoshoot for the very first time and British Vogue showcases her wearing some relaxed clothes, including a denim jumpsuit. For one of the inside pages, she poses in casual clothes in Norfolk, where she and husband Prince William maintain Anmer Hall, a 10-bedroom country home.
The portraits from this shoot are also on display at the ongoing 'Vogue 100: A Century of Style' exhibition at London's National Portrait Gallery.
Take a look at the pictures released by Kensington Palace's official Instagram account:
|
english
|
<gh_stars>0
class Node:
def __init__(self, data=None, left=None, right=None):
self._left = left
self._data = data
self._right = right
@property
def left(self):
return self._left
@left.setter
def left(self, left):
self._left = left
@property
def right(self):
return self._right
@right.setter
def right(self, right):
self._right = right
@property
def data(self):
return self._data
@data.setter
def data(self, left):
self._data = data
def spiral(root):
stack1 = []
stack2 = []
stack1.append(root)
while len(stack1) > 0 or len(stack2) > 0:
while len(stack1) > 0:
curr_node = stack1.pop()
print(curr_node.data)
if curr_node.left:
stack2.append(curr_node.left)
if curr_node.right:
stack2.append(curr_node.right)
while len(stack2) > 0:
curr_node = stack2.pop()
print(curr_node.data)
if curr_node.right:
stack1.append(curr_node.right)
if curr_node.left:
stack1.append(curr_node.left)
def spiral_reverse(root):
stack1 = []
stack2 = []
stack1.append(root)
while len(stack1) > 0 or len(stack2) > 0:
while len(stack1) > 0:
curr_node = stack1.pop()
print(curr_node.data)
if curr_node.right:
stack2.append(curr_node.right)
if curr_node.left:
stack2.append(curr_node.left)
while len(stack2) > 0:
curr_node = stack2.pop()
print(curr_node.data)
if curr_node.left:
stack1.append(curr_node.left)
if curr_node.right:
stack1.append(curr_node.right)
if __name__ == '__main__':
tree = Node(1)
tree.left = Node(2)
tree.right = Node(3)
tree.left.left = Node(4)
tree.left.right = Node(5)
tree.right.right = Node(7)
tree.right.left = Node(18)
tree.right.right.right = Node(8)
tree.left.right.left = Node(17)
tree.left.right.right = Node(6)
tree.left.right.left.left = Node(19)
spiral_reverse(tree)
|
python
|
{"vuetify.css":"sha256-eIiM5wPAjJp/dWP3N2aAozFa/Z8kayMI/HT/If4lLL0=","vuetify.js":"sha256-sG9XkiYNtY3DKcmiiBgzaWPyATitMGWD42n1gXKDg1U=","vuetify.min.css":"sha256-ZYbWtdLJsYRDCiUc5C//snnfXWABWJJCVFlq2h7PHu8=","vuetify.min.js":"sha256-OMd7TAF87yVXTcOZadI4px4mLZ/1x+OjM0bEQCoqyeE="}
|
json
|
export class Tracks {
constructor(public rank:number, public track_name: string, public artist_name: string, public image_path: string, public video_id){}
}
|
typescript
|
1856 Mock Game Manifest
hotseat001:
* Alternate destinations
* escrow release
Doesn't test much but does help prevent people from breaking 1856 without realizing it.
hotseat002:
* Alternate destinations
* CGR Diesel borrow
* incomplete CGR implementation - will have to be removed / replayed at some point
|
markdown
|
<reponame>bekjan/ais
{"ast":null,"code":"'use strict';\n\nvar $export = require('./_export');\n\nvar $reduce = require('./_array-reduce');\n\n$export($export.P + $export.F * !require('./_strict-method')([].reduce, true), 'Array', {\n // 172.16.58.3 / 172.16.58.3 Array.prototype.reduce(callbackfn [, initialValue])\n reduce: function reduce(callbackfn\n /* , initialValue */\n ) {\n return $reduce(this, callbackfn, arguments.length, arguments[1], false);\n }\n});","map":null,"metadata":{},"sourceType":"script"}
|
json
|
<filename>sample-sleuth-zipkin/src/main/java/com/jcalvopinam/util/Commons.java
package com.jcalvopinam.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.URI;
import java.net.URISyntaxException;
/**
* @author <NAME>. <<EMAIL>>
*/
public class Commons {
private static final Logger LOGGER = LoggerFactory.getLogger(Commons.class);
private static final String TARGET = "target";
private static final String PACKAGE_SEPARATOR = "\\/";
public static String getArtifactName(Class clazz) {
String artifactName = "";
try {
URI uri = clazz.getProtectionDomain().getCodeSource().getLocation().toURI();
String[] path = uri.getPath().split(PACKAGE_SEPARATOR);
for (int i = path.length - 1; i >= 0; i--) {
if (path[i].equals(TARGET)) {
artifactName = path[i - 1];
break;
}
}
} catch (URISyntaxException e) {
LOGGER.info("Error retrieving the artifact name: {}", e.getMessage());
return clazz.getName();
}
return artifactName;
}
}
|
java
|
<reponame>coco369/fastspider<filename>fastspider/db/redis_db.py
# encoding=utf-8
"""
Auth: coco369
Email: <EMAIL>
CreateTime: 2021/08/26
Desc: fastspider核心代码, redis
"""
import time
import redis
from fastspider.utils.logger import log
from fastspider.settings import common
class RedisDB(object):
def __init__(self, url=None, ip=None, port=None, password=<PASSWORD>, db=1, max_connections=30, **kwargs):
self._url = url or common.REDISDB_URL
self._ip = ip or common.REDISDB_IP
self._port = port or common.REDISDB_PORT
self._password = port or common.REDISDB_USER_PASS
self._db = port or common.REDISDB_DB
self._max_connections = max_connections
self._kwargs = kwargs
self._client = None
self._redis = None
self.connect()
def __repr__(self):
if self._url:
return f"<RedisDB url:{self._url}>"
return f"<RedisDB host: {self._ip} port: {self._ip} password: {self._password}>"
@property
def _client(self):
try:
if not self._redis.ping():
raise ConnectionError("链接redis失败, 请检测redis配置")
except Exception as e:
self._reconnect()
return self._redis
@_client.setter
def _client(self, val):
self._redis = val
def connect(self):
"""
链接redis
"""
if not self._url:
if not self._ip or not self._port:
raise Exception("请在配置 REDISDB_IP, REDISDB_PORT")
if self._ip and self._port:
self._client = redis.StrictRedis(host=self._ip, port=self._port, db=self._db, password=self._password,
decode_responses=True, max_connections=self._max_connections,
**self._kwargs)
else:
self._client = redis.StrictRedis.from_url(url=self._url, decode_responses=True)
return self._client
def _reconnect(self):
"""
重新链接redis
"""
retry_count = 0
while True:
try:
retry_count += 1
log.error(f"redis 连接断开, 重新连接 {retry_count}")
if self.connect():
log.info(f"redis 连接成功")
return True
except (ConnectionError, TimeoutError) as e:
log.error(f"连接失败 e: {e}")
time.sleep(2)
def set(self, key, value, **kwargs):
"""
redis-string类型
"""
return self._client.set(key, value, **kwargs)
def set_expire(self, key, seconds):
"""
设置过期时间
"""
return self._client.expire(key, seconds)
def zadd(self, table_name, requests, priority=0):
"""
使用有序set集合进行数据的存储
:param table_name: 集合名称
:param requests: 请求支持list 或者单个值
:param priority: 优先等级,支持list 或者 单个值, 可不传, 不传的情况下默认请求的优先级为0。或者也可以传入列表, 根据列表中的值来定义请求的执行优先级, 值越低, 越优先。
:return:
"""
if isinstance(requests, list):
if not isinstance(priority, list):
priority = [priority] * len(requests)
else:
assert len(priority) == len(requests), "请求队列和优先级的值需要一一对应"
# 批量操作
pipeline = self._client.pipeline()
pipeline.multi()
for key, value in zip(requests, priority):
pipeline.execute_command("ZADD", table_name, value, key)
log.info(f"RedisDB 中插入任务成功, 数据格式为: {key}")
return pipeline.execute()
else:
log.info(f"RedisDB 中插入任务成功, 数据格式为: {requests}")
return self._client.execute_command("ZADD", table_name, priority, requests)
def zrem(self, table_name, values):
"""
移除有序set集合中的元素, 如果元素不存在则忽略
:param table_name: 集合名称
:param values: 移除的元素, 支持列表 或者 单个值
:return:
"""
if isinstance(values, list):
self._client.zrem(table_name, *values)
else:
self._client.zrem(table_name, values)
def zcount(self, table_name, priority_min=None, priority_max=None):
"""
计算有序set集合中的元素的个数
:param table_name: 集合名称
:param priority_min: 优先级范围的最小值
:param priority_max: 优先级范围的最大值
:return:
"""
if priority_min != None and priority_max != None:
return self._client.zcount(table_name, priority_min, priority_max)
else:
return self._client.zcard(table_name)
def zrangebyscore_set_score(
self, table, priority_min, priority_max, score, count=None
):
"""
@summary: 返回指定分数区间的数据 闭区间, 同时修改分数
---------
@param table: 集合名称
@param priority_min: 最小分数
@param priority_max: 最大分数
@param score: 分数值
@param count: 获取的数量,为空则表示分数区间内的全部数据
---------
@result:
"""
# 使用lua脚本, 保证操作的原子性
lua = """
-- local key = KEYS[1]
local min_score = ARGV[1]
local max_score = ARGV[2]
local set_score = ARGV[3]
local count = ARGV[4]
-- 取值
local datas = nil
if count then
datas = redis.call('zrangebyscore', KEYS[1], min_score, max_score, 'withscores','limit', 0, count)
else
datas = redis.call('zrangebyscore', KEYS[1], min_score, max_score, 'withscores')
end
local real_datas = {} -- 数据
--修改优先级
for i=1, #datas, 2 do
local data = datas[i]
local score = datas[i+1]
table.insert(real_datas, data) -- 添加数据
redis.call('zincrby', KEYS[1], set_score - score, datas[i])
end
return real_datas
"""
cmd = self._client.register_script(lua)
if count:
res = cmd(keys=[table], args=[priority_min, priority_max, score, count])
else:
res = cmd(keys=[table], args=[priority_min, priority_max, score])
return res
def zremrangebyscore(self, table_name, priority_min, priority_max):
"""
用于移除有序set集中,指定分数(score)区间内的所有成员
:param table_name: 集合名称
:param priority_min: 优先级最小值
:param priority_max: 优先级最大值
"""
return self._client.zremrangebyscore(table_name, priority_min, priority_max)
|
python
|
As per the notification, doctors have to provide essential information related to their qualifications, university, year of passing, and place of work.
Who becomes the next prime minister will depend on a vote set for July that includes all the House lawmakers plus the 250-seat military-appointed Senate, whose members share the establishment's conservative policies.
With 99. 4% of the domestic votes and 84% of the overseas votes counted, Erdogan had 49. 4% of the votes, with his main rival, Kemal Kilicdaroglu, garnering 45%, Ahmet Yener, the head of the Supreme Electoral Board, told reporters.
The latest round of Gaza fighting was sparked Tuesday when Israeli jets killed three top commanders from the Islamic Jihad militant group in response to earlier rocket launches from Gaza.
The Washington Post cited previously undisclosed documents from a trove of US intelligence leaks suggesting that Zelenskyy has considered trying to capture areas in Russia proper for possible use as bargaining chips in peace negotiations to end the war.
Dawa, who made his first successful climb in 1998, matched the record number of summits with Kami Rita Sherpa.
The OTPs were used to create various accounts on social media like Whatsapp, Facebook, and Instagram, and also for opening email accounts.
Hundreds of bodies have been dug up from dozens of mass graves spread across pastor Paul Mackenzie's 800-acre property, located in the coastal county of Kilifi.
The Kohinoor, also known as Koh-i-Noor or mountain of light in Persian, was in the spotlight at last week's Coronation with Queen Camilla averting a diplomatic row by choosing alternative diamonds for her consort’s crown.
The opposition Pheu Thai Party, headed by Paetongtarn Shinawatra, is widely predicted to win at least a healthy plurality of the seats in the 500-member lower House.
Opinion surveys have given a slight lead to Kemal Kilicdaroglu, the 74-year-old leader of the centre-left, pro-secular Republican People’s Party, or CHP, and the joint candidate of a united opposition alliance.
President Recep Tayyip Erdogan, who has dominated Turkish politics over the past two decades, has never appeared more vulnerable to an opposition challenge.
Meanwhile, video of the incident went viral on social media platforms.
Kundanpur wrote about an effigy of Ravan kept in his Kota office in the letter, saying he and other party workers have often used it during protests against the "wrongdoings" of the previous BJP rule.
Yaccarino returned to the issue a few moments later when she asked Musk if he planned to reinstate the company’s “influence council,” a once-regular meeting with marketing executives from several of Twitter’s major advertisers. Musk again demurred.
During his virtual address, the PTI chief claimed that he was aware of the ill intentions of Sharif's action and claimed he had already informed people via social media video.
The Army remains Pakistan’s most powerful institution, having ruled it directly for close to half its 75-year history through three coups.
The official claimed that at least 200 Indian fishermen were to be released on Thursday from jail, but two of them died due to illness.
|
english
|
<reponame>mrsolarius/projetBDD
package fr.litopia.views.menus.station.retour;
import fr.litopia.model.LocationNonAbonne;
import fr.litopia.model.enums.Etat;
import fr.litopia.utils.ReadingConsole;
import fr.litopia.views.struct.api.View;
import fr.litopia.views.tinyView.RetourLocTinyView;
import java.text.DecimalFormat;
public class RetourNonAboView extends RetourComonContext {
private LocationNonAbonne locationNonAbonne;
private RetourLocTinyView retourLocTinyView;
public LocationNonAbonne getLocationNonAbonne() {
return locationNonAbonne;
}
public RetourNonAboView(View view) {
super(view);
}
@Override
protected void init() {
retourLocTinyView = new RetourLocTinyView();
}
@Override
protected void display() {
System.out.println("=================");
System.out.println("RENDRE UN VÉLO");
System.out.println("==================");
locationNonAbonne = retourLocTinyView.startAndGetValue();
System.out.println("Vélo retourné "+locationNonAbonne);
if (locationNonAbonne==null){
this.stop().stop();
return;
}
this.clean();
System.out.println("=================");
System.out.println("CODE CORRECT, VEUILLEZ RENSEIGNER L'ETAT DE VOTRE VÉLO :");
System.out.println("==================");
System.out.println("1. OK");
System.out.println("2. HS");
System.out.println("3. Retour");
System.out.println("Votre choix : ");
Integer choice = ReadingConsole.readInt(1,3);
switch (choice) {
case 1 -> displayPaiement();
case 2 -> {
retourControler.changeBikeState(locationNonAbonne, Etat.HS);
if (retourControler.isUnderFiveMinutes(locationNonAbonne)) {
displayAnnulationEmprunt();
return;
}
displayPaiement();
}
case 3 -> this.stop().stop();
}
System.out.println("==================");
}
private void displayPaiement() {
Double prix = retourControler.clotureLocationNonAbonne(bornette,locationNonAbonne);
//formatage du prix à 3 chiffres après la virgule
DecimalFormat df = new DecimalFormat("#.###");
String prixString = df.format(prix);
this.clean();
System.out.println("========================");
System.out.println("PAIEMENT DE LA LOCATION");
System.out.println("========================");
System.out.println("VéPick vous remercie de votre Location");
System.out.println("Vous avez été prélevé(e) de "+prixString+" euros");
System.out.println("Toute l'équipe vous souhaite une bonne fin de journée");
System.out.println("Appuyez sur entrée pour déposer votre vélo à la bornette n°"+this.bornette.getNumero());
System.out.println("========================");
ReadingConsole.readLine();
//On stop cette vue ainsi que la vue du dessus de retour vélo
this.stop().stop();
}
private void displayAnnulationEmprunt() {
this.clean();
System.out.println("========================");
System.out.println("ANNULATION DE L'EMPRUNT");
System.out.println("========================");
System.out.println("Veuillez nous excuser");
System.out.println("Vous ne serez pas prélevé");
System.out.println("Appuyez sur entrée pour déposer votre vélo à la bornette n°"+this.bornette.getNumero());
System.out.println("========================");
ReadingConsole.readLine();
retourControler.clotureLocationHSUnderFiveMinutesNonAbo(bornette,locationNonAbonne); //dépose le vélo sur une bornette et complète location sans calcul prix
//On stop cette vue ainsi que la vue du dessus de retour vélo
this.stop().stop();
}
@Override
protected void close() {
}
}
|
java
|
<reponame>aaa1191/truapp<filename>mobile/src/screens/UserAppAccountScreen.tsx
import AppAccountScreenComponent from 'mobile/src/components/AppAccount/AppAccountScreenComponent';
import * as React from 'react';
import { QueryResult } from 'react-apollo';
import { NavigationScreenProp, NavigationScreenProps } from 'react-navigation';
import { connect } from 'react-redux';
import BaseLoadingIndicator from 'shared/components/Base/BaseLoadingIndicator';
import ErrorComponent from 'shared/components/ErrorComponent';
import APP_ACCOUNT_PROFILE_QUERY from 'shared/graphql/queries/app-account-profile.query';
import AppAccountProfileQuery, { AppAccountProfileQueryData } from 'shared/graphql/types/AppAccountProfileQuery';
import { isIphoneX } from 'shared/styles/utils';
import { Whitespace } from 'shared/styles/views';
interface Props extends NavigationScreenProps {
navigation: NavigationScreenProp<any, any>;
account?: Account;
}
const UserAppAccountScreen = (props: Props) => {
const { account } = props;
if (!account)
return null;
const renderScreen = (result: QueryResult<AppAccountProfileQueryData, any>) => {
const { loading, error, data, refetch } = result;
if (loading) return <BaseLoadingIndicator />;
if (error || !data) return <ErrorComponent onRefresh={ refetch } />;
const { appAccount } = data;
return (
<AppAccountScreenComponent
appAccountDetails={ appAccount }
style={ { paddingTop: isIphoneX() ? Whitespace.MEDIUM * 4 : Whitespace.MEDIUM } }
/>
);
};
return (
<AppAccountProfileQuery query={ APP_ACCOUNT_PROFILE_QUERY } variables={ { id: account.id } }>
{ renderScreen }
</AppAccountProfileQuery>
);
};
UserAppAccountScreen.navigationOptions = ({ navigation }: { navigation: NavigationScreenProp<any, any>}) => {
return {
header: null,
title: ' ',
};
};
const mapStateToProps = (state: any) => ({
account: state.auth.account,
});
export default connect(mapStateToProps)(UserAppAccountScreen);
|
typescript
|
<reponame>kobakei/CCLocalNotification<filename>Classes/HelloWorldScene.cpp<gh_stars>10-100
#include "HelloWorldScene.h"
#include "LocalNotification.h"
USING_NS_CC;
USING_NS_CC_EXT;
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = HelloWorld::create();
// add layer as a child to scene
scene->addChild(layer);
// return the scene
return scene;
}
// on "init" you need to initialize your instance
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}
Size visibleSize = Director::getInstance()->getVisibleSize();
Point origin = Director::getInstance()->getVisibleOrigin();
/////////////////////////////
// 2. add a menu item with "X" image, which is clicked to quit the program
// you may modify it.
// add a "close" icon to exit the progress. it's an autorelease object
auto closeItem = MenuItemImage::create(
"CloseNormal.png",
"CloseSelected.png",
CC_CALLBACK_1(HelloWorld::menuCloseCallback, this));
closeItem->setPosition(Point(origin.x + visibleSize.width - closeItem->getContentSize().width/2 ,
origin.y + closeItem->getContentSize().height/2));
// create menu, it's an autorelease object
auto menu = Menu::create(closeItem, NULL);
menu->setPosition(Point::ZERO);
this->addChild(menu, 1);
/////////////////////////////
// 3. add your codes below...
// add a label shows "Hello World"
// create and initialize a label
auto label = LabelTTF::create("Hello World", "Arial", 24);
// position the label on the center of the screen
label->setPosition(Point(origin.x + visibleSize.width/2,
origin.y + visibleSize.height - label->getContentSize().height));
// add the label as a child to this layer
this->addChild(label, 1);
// add "HelloWorld" splash screen"
auto sprite = Sprite::create("HelloWorld.png");
// position the sprite on the center of the screen
sprite->setPosition(Point(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));
// add the sprite as a child to this layer
this->addChild(sprite, 0);
auto button = ControlButton::create("Show LocalNotification", "", 30);
button->setAnchorPoint(Point(0, 0));
button->setPosition(100, 300);
button->addTargetWithActionForControlEvents(this,
cccontrol_selector(HelloWorld::onClick),
Control::EventType::TOUCH_UP_INSIDE);
addChild(button);
auto cancelButton = ControlButton::create("Cancel LocalNotification", "", 30);
cancelButton->setAnchorPoint(Point(0, 0));
cancelButton->setPosition(100, 100);
cancelButton->addTargetWithActionForControlEvents(this,
cccontrol_selector(HelloWorld::onCancelClick),
Control::EventType::TOUCH_UP_INSIDE);
addChild(cancelButton);
return true;
}
void HelloWorld::menuCloseCallback(Object* pSender)
{
Director::getInstance()->end();
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
exit(0);
#endif
}
void HelloWorld::onClick(Object* pSender, Control::EventType type)
{
LocalNotification::show("Hello Notification!", 5, 1);
}
void HelloWorld::onCancelClick(Object* pSender, Control::EventType type)
{
LocalNotification::cancel(1);
}
|
cpp
|
package oa.abstractor_static;
public class MonitorVehicleTracker {
public static void main(String[] args) {
Door door = new AlarmDoor();
Door.get();
}
}
abstract class Door {
public static void get() {
System.out.print("Door");
}
}
class AlarmDoor extends Door {
public static void get() {
System.out.print("AlarmDoor");
}
}
|
java
|
import {
WebXRAbstractMotionController,
IMinimalMotionControllerObject,
MotionControllerHandness,
IMotionControllerLayoutMap
} from "./webXRAbstractController";
import { AbstractMesh } from '../../../Meshes/abstractMesh';
import { Scene } from '../../../scene';
import { Mesh } from '../../../Meshes/mesh';
import { Quaternion } from '../../../Maths/math.vector';
// https://github.com/immersive-web/webxr-input-profiles/blob/master/packages/registry/profiles/generic/generic-trigger-touchpad-thumbstick.json
const GenericTriggerLayout: IMotionControllerLayoutMap = {
"left-right-none": {
"selectComponentId": "xr-standard-trigger",
"components": {
"xr-standard-trigger": { "type": "trigger" }
},
"gamepad": {
"mapping": "xr-standard",
"buttons": [
"xr-standard-trigger"
],
"axes": []
}
}
};
// TODO support all generic models with xr-standard mapping at:
// https://github.com/immersive-web/webxr-input-profiles/tree/master/packages/registry/profiles/generic
/**
* A generic trigger-only motion controller for WebXR
*/
export class WebXRGenericTriggerMotionController extends WebXRAbstractMotionController {
/**
* Static version of the profile id of this controller
*/
public static ProfileId = "generic-trigger";
public profileId = WebXRGenericTriggerMotionController.ProfileId;
constructor(scene: Scene, gamepadObject: IMinimalMotionControllerObject, handness: MotionControllerHandness) {
super(scene, GenericTriggerLayout["left-right-none"], gamepadObject, handness);
}
protected _processLoadedModel(meshes: AbstractMesh[]): void {
// nothing to do
}
protected _updateModel(): void {
// no-op
}
protected _getFilenameAndPath(): { filename: string; path: string; } {
return {
filename: "generic.babylon",
path: "https://controllers.babylonjs.com/generic/"
};
}
protected _setRootMesh(meshes: AbstractMesh[]): void {
this.rootMesh = new Mesh(this.profileId + " " + this.handness, this.scene);
meshes.forEach((mesh) => {
mesh.isPickable = false;
if (!mesh.parent) {
mesh.setParent(this.rootMesh);
}
});
this.rootMesh.rotationQuaternion = Quaternion.FromEulerAngles(0, Math.PI, 0);
}
protected _getModelLoadingConstraints(): boolean {
return true;
}
}
|
typescript
|
version https://git-lfs.github.com/spec/v1
oid sha256:1d3c31a40e3338d7ea7178382662be1fd0a975932554c0fe07bfaaf7d15c6de4
size 4366
|
html
|
const mongoose = require('mongoose');
const express = require('express');
var cors = require('cors');
const bodyParser = require('body-parser');
const logger = require('morgan');
const Data = require('./data');
const API_PORT = 3001;
const app = express();
app.use(cors());
const router = express.Router();
const dbRoute = 'mongodb+srv://pulkit:mgEQ5ygdN45MT8<EMAIL>.mongodb.<EMAIL>/test?retryWrites=true&w=majority';
mongoose.connect(dbRoute, {useNewUrlParser: true, useUnifiedTopology: true});
let db = mongoose.connection;
db.once('open', () => console.log("connected to database"));
db.on('error', console.error.bind(console, 'MonogDb connection error:'));
app.use(bodyParser.urlencoded({extended: false}))
app.use(bodyParser.json());
app.use(logger('dev'));
//methods
router.get('/getData', (req, res) => {
Data.find((err, data) => {
if(err) return res.json({success: false, error: err});
return res.json({success: true, data: data})
});
} )
router.post('/updateData', (req, res) => {
const {id, update} = req.body;
Data.findByIdAndUpdate(id, update, (err) => {
if(err) return res.json({success: false, error: err})
return res.json({success: true})
})
})
router.delete('deleteData', (req, res) => {
const {id} = req.body;
Data.findByIdAndRemove(id, (err) => {
if(err) return res.send(err);
return res.json({success: true})
})
})
router.post('putData', (req, res) => {
let data = new Data()
const {id, message} = req.body;
if(!id && id !== 0 || !message){
return res.json({
success: false,
error: 'Invalid Inputs'
})
}
data.message = message;
data.id = id;
data.save((err) => {
if(err) return res.json({success: false, error: err});
return res.json({success: true})
})
})
app.use('/api', router);
app.listen(API_PORT, () => console.log(`Listening to port ${API_PORT}`))
|
javascript
|
<gh_stars>1-10
var type__quat_8inl =
[
[ "genTypeTrait< qua< T > >", "structglm_1_1detail_1_1gen_type_trait_3_01qua_3_01_t_01_4_01_4.html", null ],
[ "compute_dot< qua< T, Q >, T, Aligned >", "structglm_1_1detail_1_1compute__dot_3_01qua_3_01_t_00_01_q_01_4_00_01_t_00_01_aligned_01_4.html", null ],
[ "compute_quat_add", "structglm_1_1detail_1_1compute__quat__add.html", null ],
[ "compute_quat_sub", "structglm_1_1detail_1_1compute__quat__sub.html", null ],
[ "compute_quat_mul_scalar", "structglm_1_1detail_1_1compute__quat__mul__scalar.html", null ],
[ "compute_quat_div_scalar", "structglm_1_1detail_1_1compute__quat__div__scalar.html", null ],
[ "compute_quat_mul_vec4", "structglm_1_1detail_1_1compute__quat__mul__vec4.html", null ],
[ "operator!=", "type__quat_8inl.html#a32b2f3cd7c0601736aa587704c5f6d86", null ],
[ "operator*", "type__quat_8inl.html#a9ac6ac1431078305554c86073ac285b4", null ],
[ "operator*", "type__quat_8inl.html#a3838833c53b6eaa59a825814a85505a4", null ],
[ "operator*", "type__quat_8inl.html#a0c881362c01fa9077e198464a4fbb780", null ],
[ "operator*", "type__quat_8inl.html#ad2e2081e84a1f84eccf81c3a46af7802", null ],
[ "operator*", "type__quat_8inl.html#a5b19119fa0b00c0de47c1068e697772a", null ],
[ "operator*", "type__quat_8inl.html#a35c95025b7141c98ef823cf238d1108a", null ],
[ "operator*", "type__quat_8inl.html#add3bcc1f907c7f33cd4e0cae2f35b99b", null ],
[ "operator+", "type__quat_8inl.html#a37ac3fe722360a61ac454fff2ff05aca", null ],
[ "operator+", "type__quat_8inl.html#a2ed0209405c07f80daa73441d60223b9", null ],
[ "operator-", "type__quat_8inl.html#af52ea1c36f856fff2cc3a3e8e1db1c66", null ],
[ "operator-", "type__quat_8inl.html#a550b3e3432f793621ee602cc4a53c429", null ],
[ "operator/", "type__quat_8inl.html#a6ce679d3487af98d756f31aadb5b3f19", null ],
[ "operator==", "type__quat_8inl.html#a09f216c6931788709a14bfe1652ef803", null ]
];
|
javascript
|
<filename>background-geolocation.ts
import {device} from "platform";
import Platform = require('platform');
const TAG = "TSLocationManager";
let emptyFn = function(){};
/**
* Url to transistorsoft tracking test server. Configure the plugin with a #username to automatically post
* locations to the test server, eg:
{
username: 'my-username'
}
* View your tracking online by visiting:
* http://tracker.transistorsoft.com/username
*
*/
const TEST_SERVER_URL = 'http://tracker.transistorsoft.com/locations/';
/**
* Logger
*/
export class Logger {
private api:any;
constructor(api:any) {
this.api = api;
}
public error(msg:string) {
this.log('error', msg);
}
public warn(msg:string) {
this.log('warn', msg);
}
public debug(msg:string) {
this.log('debug', msg);
}
public notice(msg:string) {
this.log('notice', msg);
}
public header(msg:string) {
this.log('header', msg);
}
public on(msg:string) {
this.log('on', msg);
}
public off(msg:string) {
this.log('off', msg);
}
public ok(msg:string) {
this.log('ok', msg);
}
private log(level:string, msg:string) {
this.api.log(level, msg);
}
}
/**
* BackgroundGeolocation
*/
export class BackgroundGeolocation {
private static api: any;
public static logger:Logger;
public static LOG_LEVEL_OFF:number = 0;
public static LOG_LEVEL_ERROR:number = 1;
public static LOG_LEVEL_WARNING:number = 2;
public static LOG_LEVEL_INFO:number = 3;
public static LOG_LEVEL_DEBUG:number = 4;
public static LOG_LEVEL_VERBOSE:number = 5;
public static DESIRED_ACCURACY_NAVIGATION:number = -2;
public static DESIRED_ACCURACY_HIGH:number = -1;
public static DESIRED_ACCURACY_MEDIUM:number = 10;
public static DESIRED_ACCURACY_LOW:number = 100;
public static DESIRED_ACCURACY_VERY_LOW:number = 1000;
public static DESIRED_ACCURACY_LOWEST:number = 3000;
public static AUTHORIZATION_STATUS_NOT_DETERMINED:number = 0;
public static AUTHORIZATION_STATUS_RESTRICTED:number = 1;
public static AUTHORIZATION_STATUS_DENIED:number = 2;
public static AUTHORIZATION_STATUS_ALWAYS:number = 3;
public static AUTHORIZATION_STATUS_WHEN_IN_USE:number = 4;
public static NOTIFICATION_PRIORITY_DEFAULT:number = 0;
public static NOTIFICATION_PRIORITY_HIGH:number = 1;
public static NOTIFICATION_PRIORITY_LOW:number =-1;
public static NOTIFICATION_PRIORITY_MAX:number = 2;
public static NOTIFICATION_PRIORITY_MIN:number =-2;
public static mountNativeApi(api) {
this.api = api;
this.logger = new Logger(api);
}
public static EVENTS:String[] = [
'heartbeat',
'http',
'location',
'error',
'motionchange',
'geofence',
'schedule',
'activitychange',
'providerchange',
'geofenceschange',
'watchposition',
'powersavechange',
'connectivitychange',
'enabledchange'
];
private static listeners = {
location: [],
http: [],
motionchange: [],
error: [],
heartbeat: [],
schedule: [],
activitychange: [],
providerchange: [],
geofence: [],
geofenceschange: [],
powersavechange: [],
connectivitychange: [],
enabledchange: []
};
private static headlessTask: Function;
public static registerHeadlessTask(callback:Function) {
this.headlessTask = callback;
}
public static runHeadlessTask(event:any, completionHandler:Function) {
if (this.headlessTask) {
this.headlessTask(event, completionHandler);
}
}
/**
* Core Plugin Control Methods
*/
public static ready(config:any, success?:Function, failure?:Function) {
config = this.validate(config);
if (arguments.length <= 1) {
return this.api.ready(config||{});
} else {
this.api.ready(config).then(success).catch(failure);
}
}
/**
* Reset plugin confg to default
*/
static reset(config?:any, success?:Function, failure?:Function) {
if ((typeof(config) === 'function') || (typeof(success) === 'function')) {
if (typeof(config) === 'function') {
success = config;
config = {};
}
config = this.validate(config||{});
this.api.reset(config).then(success).catch(failure);
} else {
return this.api.reset(this.validate(config||{}));
}
}
/**
* Perform initial configuration of plugin. Reset config to default before applying supplied configuration
*/
public static configure(config:any, success?:Function, failure?:Function) {
config = this.validate(config);
if (arguments.length == 1) {
return this.api.configure(config);
} else {
this.api.configure(config).then(success).catch(failure);
}
}
/**
* Listen to a plugin event
*/
public static addListener(event:string, success:Function, failure?:Function) {
if (this.EVENTS.indexOf(event) < 0) { throw "BackgroundGeolocation#on - Unknown event '" + event + "'" }
let nativeCallback = this.api.addListener.apply(this.api, arguments);
if (nativeCallback) {
this.registerCallback(event, success, nativeCallback);
}
}
private static registerCallback(event:string, clientCallback:Function, nativeCallback:Function) {
this.listeners[event].push({
clientCallback: clientCallback,
nativeCallback: nativeCallback
});
}
// @alias #addListener
public static on(event:string, success:Function, failure?:Function) {
this.addListener.apply(this, arguments);
}
/**
* Remove a single plugin event-listener, supplying a reference to the handler initially supplied to #un
*/
public static removeListener(event:string, clientCallback:Function, success?:Function, failure?:Function) {
if (this.EVENTS.indexOf(event) < 0) { throw "BackgroundGeolocation#un - Unknown event '" + event + "'" }
let listeners = this.listeners[event];
let listener = listeners.find((i) => { return i.clientCallback === clientCallback; });
if (listener) {
listeners.splice(listeners.indexOf(listener), 1);
if (arguments.length == 2) {
return this.api.removeListener(event, listener.nativeCallback);
} else {
this.api.removeListener(event, listener.nativeCallback).then(success).catch(failure);
}
} else {
let error = 'Failed to removeListener for event: ' + event;
failure = failure || emptyFn;
console.warn(error);
if (arguments.length == 2) {
return new Promise((resolve, reject) => {
reject(error);
});
} else {
failure(msg);
}
}
}
// @alias #removeListener
public static un(event:string, handler:Function, success?:Function, failiure?:Function) {
this.removeListener.apply(this, arguments);
}
/**
* Remove all event listeners
*/
public static removeListeners(event?:any, success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.removeListeners(); // #removeListeners()
} else if(typeof(arguments[0]) === 'string') {
if (this.EVENTS.indexOf(event) < 0) {
throw "BackgroundGeolocation#removeListeners - Unknown event: " + event;
}
// Clear client-calllbacks.
this.listeners[event] = [];
if (typeof(arguments[1]) === 'function') { // #removeListeners(event, success, failure);
this.api.removeListeners(event).then(success).catch(failure);
} else { // #removeListeners(event)
return this.api.removeListeners(event);
}
} else if (typeof(arguments[0]) === 'function') { // #removeListeners(success, failure)
success = event;
failure = success;
this.api.removeListeners().then(success).catch(failure);
}
}
/**
* Fetch current plugin configuration
*/
public static getState(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getState();
} else {
this.api.getState().then(success).catch(failure);
}
}
/**
* Start the plugin
*/
public static start(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.start();
} else {
this.api.start().then(success).catch(failure);
}
}
/**
* Stop the plugin
*/
public static stop(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.stop();
} else {
this.api.stop().then(success).catch(failure);
}
}
/**
* Start the scheduler
*/
public static startSchedule(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.startSchedule();
} else {
this.api.startSchedule().then(success).catch(failure);
}
}
/**
* Stop the scheduler
*/
public static stopSchedule(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.stopSchedule();
} else {
this.api.stopSchedule().then(success).catch(failure);
}
}
/**
* Initiate geofences-only mode
*/
public static startGeofences(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.startGeofences();
} else {
this.api.startGeofences().then(success).catch(failure);
}
}
/**
* Start an iOS background-task, provding 180s of background running time
*/
public static startBackgroundTask(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.startBackgroundTask();
} else {
if (typeof(success) !== 'function') {
throw TAG + "#startBackgroundTask must be provided with a callback to recieve the taskId";
}
this.api.startBackgroundTask().then(success).catch(failure);
}
}
/**
* Signal to iOS that your background-task from #startBackgroundTask is complete
*/
public static finish(taskId:number, success?:Function, failure?:Function) {
// No taskId? Ignore it.
if (arguments.length == 1) {
return this.api.finish(taskId);
} else {
this.api.finish(taskId).then(success).catch(failure);
}
}
/**
* Toggle motion-state between stationary <-> moving
*/
public static changePace(isMoving:boolean, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.changePace(isMoving);
} else {
this.api.changePace(isMoving).then(success).catch(failure);
}
}
/**
* Provide new configuration to the plugin. This configuration will be *merged* to current configuration
*/
public static setConfig(config:any, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.setConfig(config);
} else {
this.api.setConfig(config).then(success).catch(failure);
}
}
/**
* HTTP & Persistence
*
*/
public static getLocations(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getLocations();
} else {
this.api.getLocations().then(success).catch(failure);
}
}
/**
* Fetch the current count of location records in database
*/
public static getCount(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getCount();
} else {
this.api.getCount().then(success).catch(failure);
}
}
/**
* Destroy all records in locations database
*/
public static destroyLocations(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.destroyLocations();
} else {
this.api.destroyLocations().then(success).catch(failure);
}
}
// @deprecated
public static clearDatabase(success?:Function, failure?:Function) {
return this.destroyLocations.apply(this, arguments);
}
/**
* Insert a single record into locations database
*/
public static insertLocation(location:any, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.insertLocation(location);
} else {
this.api.insertLocation(location).then(success).catch(failure);
}
}
/**
* Manually initiate an HTTP sync operation
*/
public static sync(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.sync();
} else {
this.api.sync().then(success).catch(failure);
}
}
/**
* Fetch the current value of odometer
*/
public static getOdometer(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getOdometer();
} else {
this.api.getOdometer().then(success).catch(failure);
}
}
/**
* Set the value of the odometer
*/
public static setOdometer(value:number, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.setOdometer(value);
} else {
this.api.setOdometer(value).then(success).catch(failure);
}
}
/**
* Reset the value of odometer to 0
*/
public static resetOdometer(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.setOdometer(0);
} else {
this.api.setOdometer(0).then(success).catch(failure);
}
}
/**
* Geofencing Methods
*/
/**
* Add a single geofence
*/
public static addGeofence(config:any, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.addGeofence(config);
} else {
this.api.addGeofence(config).then(success).catch(failure);
}
}
/**
* Remove a single geofence by identifier
*/
public static removeGeofence(identifier:string, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.removeGeofence(identifier);
} else {
this.api.removeGeofence(identifier).then(success).catch(failure);
}
}
/**
* Add a list of geofences
*/
public static addGeofences(geofences:any, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.addGeofences(geofences);
} else {
this.api.addGeofences(geofences).then(success).catch(failure);
}
}
/**
* Remove geofences. You may either supply an array of identifiers or nothing to destroy all geofences.
* 1. removeGeofences() <-- Promise
* 2. removeGeofences(['foo']) <-- Promise
*
* 3. removeGeofences(success, [failure])
* 4. removeGeofences(['foo'], success, [failure])
*/
public static removeGeofences(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.removeGeofences();
} else {
this.api.removeGeofences().then(success).catch(failure);
}
}
/**
* Fetch all geofences from database
*/
public static getGeofences(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getGeofences();
} else {
this.api.getGeofences().then(success).catch(failure);
}
}
/**
* Fetch the current position from location-services
*/
public static getCurrentPosition(success:any, failure?:any, options?:any) {
if (typeof(success) == 'function') {
if (typeof(failure) == 'object') {
options = failure;
failure = emptyFn;
}
options = options || {};
this.api.getCurrentPosition(options).then(success).catch(failure);
} else {
options = success || {};
return this.api.getCurrentPosition(options);
}
}
/**
* Begin watching a stream of locations
*/
public static watchPosition(success:Function, failure?:Function, options?:any) {
this.api.watchPosition(success, failure||emptyFn, options||{});
}
/**
* Stop watching location
*/
public static stopWatchPosition(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.stopWatchPosition();
} else {
this.api.stopWatchPosition().then(success).catch(failure);
}
}
/**
* Set the logLevel. This is just a helper method for setConfig({logLevel: level})
*/
public static setLogLevel(value:number, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.setLogLevel(value);
} else {
this.api.setLogLevel(value).then(success).catch(failure);
}
}
/**
* Fetch the entire contents of log database returned as a String
*/
public static getLog(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getLog();
} else {
this.api.getLog().then(success).catch(failure);
}
}
/**
* Destroy all contents of log database
*/
public static destroyLog(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.destroyLog();
} else {
this.api.destroyLog().then(success).catch(failure);
}
}
/**
* Open deafult email client on device to email the contents of log database attached as a compressed file attachement
*/
public static emailLog(email:string, success?:Function, failure?:Function) {
if (typeof(email) != 'string') { throw TAG + "#emailLog requires an email address as 1st argument"}
if (arguments.length == 1) {
return this.api.emailLog(email);
} else {
this.api.emailLog(email).then(success).catch(failure);
}
}
/**
* Has device OS initiated power-saving mode?
*/
public static isPowerSaveMode(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.isPowerSaveMode();
} else {
this.api.isPowerSaveMode().then(success).catch(failure);
}
}
/**
* Fetch the state of this device's available motion-sensors
*/
public static getSensors(success?:Function, failure?:Function) {
if (!arguments.length) {
return this.api.getSensors();
} else {
this.api.getSensors().then(success).catch(failure);
}
}
/**
* Play a system sound via the plugin's Sound API
*/
public static playSound(soundId:number, success?:Function, failure?:Function) {
if (arguments.length == 1) {
return this.api.playSound(soundId);
} else {
this.api.playSound(soundId).then(success).catch(failure);
}
}
private static validate(config:any):any {
if (config.username) {
config.url = TEST_SERVER_URL + config.username;
config.params = {
device: {
uuid: Platform.device.uuid,
model: Platform.device.model,
platform: Platform.device.os,
manufacturer: Platform.device.manufacturer,
version: Platform.device.osVersion,
framework: '{N}'
}
}
delete config.username;
}
return config;
}
}
|
typescript
|
<gh_stars>0
package com.assignment.week5;
public class triangular_prism extends triangle implements volume{
private double height_p;
triangular_prism(double base_t, double height_t) {
super(base_t, height_t);
}
// ----Call or return the value of an attribute to the caller
public double getHeight_p(){
return height_p;
}
/* ---Setter modifies the value of an attribute based on the value sent by
the caller using the input parameter */
public void setHeight_p(double height_p){
this.height_p = height_p;
}
// --- Implement from "Volume" interface class ---
@Override
public double getVolume() {
return (base_t*height_t*0.5)*getHeight_p();
}
// --- Implement from "Volume" interface class ---
@Override
public void Volume() {
System.out.println("The volume of triangular prism is = "+getVolume());
}
}
|
java
|
Chennai: Seasoned bureaucrat P C Alexander, a close aide of former Prime Minister Indira Gandhi, died of cancer at a hospital on Wednesday at the age of 90.
Alexander, who had served as governor of Maharashtra and Tamil Nadu, was undergoing treatment at Madras Medical Mission Hospital for the last few weeks and breathed his last on Wednesday morning, hospital sources said.
He is survived by wife, two sons and two daughters.
Alexander, a Rajya Sabha member from 2002-2008, held eminent positions in his five-decades long career as a public servant.
Alexander had then resigned as Maharashtra Governor.
He held the gubernatorial post for over 11 years both in Tamil Nadu and Maharashtra.
In his bureaucratic career, Alexander, an 1948 batch IAS officer, left his own imprint for his standards of efficiency, impartiality and integrity.
It was these qualities that took him to the post of Principal Secretary to late Prime Ministers Indira Gandhi and Rajiv Gandhi from 1981 to 85.
Alexander served as High Commissioner for India in London and held senior posts in the UN Civil Service for 10 years.
Enriched by his rich administrative experience, Alexander had won the acclaim and admiration as a gifted and erudite speaker on a wide range of subjects.
Alexander has authored several books, articles and research papers. Some of books include "My Years with Indira Gandhi", "The Perils of Democracy" and "India in the New Millennium. ".
|
english
|
# -*- Python -*-
# This file is licensed under a pytorch-style license
# See frontends/pytorch/LICENSE for license information.
import typing
import torch
import torch_mlir
# RUN: %PYTHON %s | FileCheck %s
mb = torch_mlir.ModuleBuilder()
class TestModule(torch.nn.Module):
def __init__(self):
super().__init__()
def forward(self):
return
test_module = TestModule()
recursivescriptmodule = torch.jit.script(test_module)
annotator = torch_mlir.ClassAnnotator()
class_type = recursivescriptmodule._c._type()
try:
annotator.exportPath(class_type, ['a'])
except Exception as e:
# CHECK: class '__torch__.TestModule' does not have a method or attribute called 'a'
print(e)
try:
annotator.exportPath(class_type, [])
except Exception as e:
# CHECK: Empty exported path. Can only export a property of a class.
print(e)
try:
annotator.exportPath(class_type, ['a', 'b'])
except Exception as e:
# This error is generated by PyTorch itself, so be a bit defensive about changes.
# CHECK: __torch__.TestModule {{.*}} 'a'
print(e)
# # TODO: Automatically handle unpacking Python class RecursiveScriptModule into the underlying ScriptModule.
mb.import_module(recursivescriptmodule._c, annotator)
mb.module.operation.print()
|
python
|
{"text":"","historical":"Legislative History of Laws\n\nFor history of Law 19-167, see notes under § 2-1535.01.\n\nDC CODE § 2-1535.04\n\nCurrent through December 11, 2012","credits":"(Sept. 14, 2012, D.C. Law 19-167, § 5, 59 DCR 7820.)","sections":[{"prefix":"a","text":"(1) A party who is not satisfied with the outcome of the initial investigation conducted pursuant to § 2-1535.03(b)(7) may request a secondary investigation by submitting a written appeal to the higher-level authority in the agency, educational institution, or grantee designated to hear appeals within 30 days of the conclusion of the investigation conducted pursuant to § 2-1535.03(b)(7)."},{"prefix":"2","text":" The secondary investigation shall be completed within 30 days of receipt of the appeal, unless:"},{"prefix":"A","text":" Circumstances require additional time to complete a thorough investigation;"},{"prefix":"B","text":" The higher-level authority sets forth those circumstances in writing; and"},{"prefix":"C","text":" The additional time does not exceed 15 days."},{"prefix":"b","text":"(1) When an appeal for a secondary investigation is submitted, the agency, educational institution, or grantee shall inform the party about his or her ability to seek further redress under Chapter 14 of this title."},{"prefix":"2","text":" This section shall not be construed to limit the right of a person to assert or seek redress for a claim arising under Chapter 14 of this title."}],"division":{"identifier":"I","text":"Government of District."},"title":{"identifier":"2","text":"Government Administration. (Refs & Annos)"},"chapter":{"identifier":"15","text":"Youth Affairs."},"subchapter":{"identifier":"II-C","text":"Youth Bullying Prevention."},"heading":{"title":"2","chaptersection":"1535","identifier":"2-1535.04","catch_text":"Secondary investigation appeal."}}
|
json
|
NFL players like Tyreek Hill are a rare breed. So much so that they mostly get to eat whatever they want. Most athletes are very particular about their diets and adhere to strict regimes, Tom Brady is such an example. Then there is Tyreek Hill.
According to GQ Sports, the star of one of the top offseason wide receiver trades revealed one of the secrets behind his success. Here's how he put it:
"None other than Popeyes. This is one of my grandmother's secret recipes for me being so fast. Typically, what I usually get is a five piece chicken, chicken nugget, spicy, black and ranch hot sauce and honey."
He continued, revealing his great side dish choice:
"And also I like a side of Doritos, which I don't currently have. I'm not trying to hype any of you guys to eat bad food. But if you were to choose bad foods, this is it right here."
Basically, Hill credits Popeyes and Doritos with keeping him up to par when lining up on the gridiron. Of course, this is in addition to a lifetime of running. Whatever the wide receiver's methods, the results speak for themselves.
The wide receiver was drafted in the fifth round of the 2016 NFL Draft by the Kansas City Chiefs. Based on his draft position, many thought he only had an outside chance to reliably fill the bottom of the roster. However, after a strong rookie season in which he earned 61 catches for 593 yards and six touchdowns, he gained a more active role.
The following season, the wide receiver hit a new gear, earning more than 1100 yards and seven touchdowns. This was the time when the Chiefs were hitting their stride. In 2018, in Patrick Mahomes' first full season as a starter, they exploded.
In his third season, he put up a career-high 1479 yards and 12 touchdowns. The team came within one game of the Super Bowl, and the wide receiver solidified himself as a household name. Over the next three seasons, he only failed to reach 1200 yards and nine touchdowns once.
Most agree that Hill, alongside Patrick Mahomes and Travis Kelce, was a huge part of the Chiefs' success.
After being traded to the Miami Dolphins, Hill has a new start in the 2022 season. Will the wide receiver be able to duplicate his accomplishments in Florida?
Poll : Is Hill's diet really the key to his success?
|
english
|
<filename>node_modules/angular2-google-maps/esm/core/directives/google-map-polygon.metadata.json
[{"__symbolic":"module","version":3,"metadata":{"SebmGoogleMapPolygon":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"sebm-map-polygon","inputs":["clickable","draggable: polyDraggable","editable","fillColor","fillOpacity","geodesic","paths","strokeColor","strokeOpacity","strokeWeight","visible","zIndex"],"outputs":["polyClick","polyDblClick","polyDrag","polyDragEnd","polyMouseDown","polyMouseMove","polyMouseOut","polyMouseOver","polyMouseUp","polyRightClick"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/managers/polygon-manager","name":"PolygonManager"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_init":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"_updatePolygonOptions":[{"__symbolic":"method"}],"id":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"_polygonOptionsAttributes":["clickable","draggable","editable","fillColor","fillOpacity","geodesic","icon","map","paths","strokeColor","strokeOpacity","strokeWeight","visible","zIndex","draggable","editable","visible"]}}}},{"__symbolic":"module","version":1,"metadata":{"SebmGoogleMapPolygon":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive"},"arguments":[{"selector":"sebm-map-polygon","inputs":["clickable","draggable: polyDraggable","editable","fillColor","fillOpacity","geodesic","paths","strokeColor","strokeOpacity","strokeWeight","visible","zIndex"],"outputs":["polyClick","polyDblClick","polyDrag","polyDragEnd","polyMouseDown","polyMouseMove","polyMouseOut","polyMouseOver","polyMouseUp","polyRightClick"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/managers/polygon-manager","name":"PolygonManager"}]}],"ngAfterContentInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"_init":[{"__symbolic":"method"}],"_addEventListeners":[{"__symbolic":"method"}],"_updatePolygonOptions":[{"__symbolic":"method"}],"id":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]},"statics":{"_polygonOptionsAttributes":["clickable","draggable","editable","fillColor","fillOpacity","geodesic","icon","map","paths","strokeColor","strokeOpacity","strokeWeight","visible","zIndex","draggable","editable","visible"]}}}}]
|
json
|
Wednesday – I spy with my little eye – Mini contest (54)
Hello SteemKids and Parents!
As they say, all good things come to an end sooner or later.
Well, my strike is over, as after three weeks, we have a winner!
Before we get to the winner, let’s take a last look at last week’s clues;
1. It is an 11-letter word starting with "C"
And the correct word is " CORRECTIONS."
Better than the Merriam-Webster Dictionary, I cannot explain the three different meanings of this word.
What is wonderful about Steemit is that even on this platform, we all get a chance to make some corrections.
Corrections to how we write our posts, how we vote, how we comment, and how we build our business.
All we need to do is watch and learn from others. I want to urge you all to watch and correct this coming week. It won’t be in vain. Good luck!
You’ve earned yourself a whopping 11 STEEM!
This brings the prize for our next game to a 2 STEEM.
Time for your next game!
The game is exactly like last week;
The game “I spy with my little eye” is sort of a detective game. The “spy” is the person who sees something, and the rest of the players must then guess what the spy is seeing.
Of importance, it must be something that you can see and not something you can feel, like an emotion.
BUT, “I spy with my little eye” is so much more than just a spy game;
For today, I am going to give you the letter with which the word starts plus 4 points, or “clues,” that you can take into consideration to figure out what the word can be.
Ready or not… let’s learn, play, and win!
I spy with my little eye something that begins with the letter “M"
3. "To turn the other cheek"
How to participate?
What is up for grabs?
The first correct answer will take home 2 STEEM this week.
The word and the winner will be announced next week on Wednesday; therefore, make sure you don't send in your answer later than Tuesday 23:59 UTC.
If there is no winner, the prize will carry over until there is one.
Until next week, keep guessing!
|
english
|
body {
height: 100vh;
}
.sidecontainer {
padding: 10%;
margin: 10%;
background-color: rgb(219, 216, 211);
text-align: center;
}
.a {
border: black solid;
background-color: rgb(219, 216, 211);
font-size: large;
}
.b,
.c {
border: black solid;
background-color: rgb(219, 216, 211);
font-size: large;
}
#search {
box-sizing: content-box;
}
/* for pict1 */
.pic1 {
border: 1px solid coral;
width: 100%;
}
.pic2 {
height: 200px;
width: 50%;
}
#petSearch:hover {
cursor: pointer;
}
#map {
height: 400px;
/* The height is 400 pixels */
width: 100%;
/* The width is the width of the web page */
}
button {
background-color: #1f305e;
border-radius: 1em;
padding: 0.25em;
}
#animalTable {
cursor: pointer;
}
|
css
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.