text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
Russian opposition leader Alexei Navalny was poisoned a year ago today, falling deathly ill on a flight that had just taken off from Siberia where he'd been campaigning against corruption and against the party of power in Russia. Now he sits in a Russian jail for parole violations connected to a case the European Court of Human Rights has always called trumped up. Navalny has asked repeatedly how he was expected to make parole hearings when he was in a coma, having been airlifted while unconscious to a German hospital.
To mark the day, the opposition figure wrote on Instagram that he had a second birthday to celebrate, somehow, as he was effectively re-born after his near-death experience last year. He just doesn't know if the extra birthday should be the day of his poisoning or the day he woke up or in fact the day he really came back to himself. Additionally, he wrote an op-ed piece this week, seizing the moment to focus on the subject of corruption, his cause celebre. Navalny originally made his name as an anti-corruption campaigner, not as a dissident or opposition leader, and his organization, now labelled "extremist" in Russia, is called the Foundation for Fighting Corruption. Navalny spoke of corruption in his article as the root of all the world’s problems, from the fall of the Afghan government, to uncontrolled migration caused by poverty, which he said is almost always caused by corruption, to aspects of climate change, suggesting as an example the "millions of hectares of Siberian forest that burn every year because of barbaric total clearance, violating the fire regulations for forest management. "
Navalny, with his trademark irony, even said corruption crushed the Russian security services' best-laid plans for him, allowing him to survive. "When a country’s senior management is preoccupied with protection rackets and extortion from businesses, the quality of covert operations inevitably suffers," he wrote in the Guardian, among other papers. "A group of FSB agents applied the nerve agent to my underwear just as shoddily as they incompetently dogged my footsteps for three and a half years – in violation of all instructions from above – allowing civil investigating activists to expose them at every turn. "
Russia's Foreign Ministry marked the anniversary with a tweet: "The actions taken by German authorities over the past 12 months clearly show that a pre-planned provocation was carried out against Russia. " Russia is not investigating the poisoning because they deny it happened.
It was German Chancellor Angela Merkel who effectively hosted Navalny during his recovery. Russian President Vladimir Putin hosted her today in Moscow to discuss a broad range of issues. Putin was asked about Navalny by reporters. True to form, he did not speak of Russia’s most famous prisoner by name.
"As for the person of interest you mentioned [Alexei Navalny], he wasn't sentenced for his political activity, but for the criminal offense regarding foreign partners. As for political activity, no one should hide behind it for carrying out business projects, moreover, in violation of the law," Putin said. Going on to blast "non-systemic opposition," which is how he refers to Navalny and his allies, he continued.
"I don't see the Yellow Vests or Occupy Wall Street being supported," Putin said equating the pro-democracy protests in support of Navalny to the French and American groups before invoking the fate of some of those Jan. 6 Capitol rioters and suggesting the Western press is biased in its coverage of Russia.
Meanwhile on the anniversary of the poisoning, the U. S. and Britain announced new sanctions against Russians deemed to have played a direct role in Navalny's poisoning or Russia's chemical weapons program. The two governments issued a joint statement calling on Russia to abide by its obligations under the Chemical Weapons Convention. The U. S. Treasury designated nine individuals and two entities and the State Department named two further entities. Navalny said in his op-ed that he believes it will take personal sanctions against oligarchs close to Putin to effect real change.
Navalny had been encouraging people to practice "smart voting" ahead of local elections when he was poisoned last August. Since he and his allies cannot run for elections themselves, they figure the next best option for their cause is to get Russians to vote for candidates who are not part of Putin's United Russia to chip away at its legitimacy. Though banned and behind bars, he and his allies are still pushing for "smart voting" ahead of parliamentary elections next month. But Leonid Volkov, a Navalny ally, has said he thinks the authorities will block the website used to guide voters in the process.
"We're already seeing loads of [measures by the authorities] and the degree of hysteria is only going to grow in the coming month," he said. Just today the last remaining independent television station TV Rain was labelled a foreign agent, the latest freewheeling and no-holds-barred media outlet to be squeezed by the Kremlin. | english |
London, June 7: On a high after thrashing arch-rivals Pakistan, India will have one eye on the semi-fil spot when they take on Sri Lanka in a Group B clash of the ICC Champions Trophy on Thursday, but veteran off-spinner Harbhajan Singh cautioned Virat Kohli’s men to guard against any complacency in the match at The Oval.
Defending champions India are on top of Group B after Sunday’s 124-run thrashing they gave to Pakistan, and a win against the islanders on Thursday will seal their place in the semi-fils of the eight-team tourment.
But Harbhajan, in his column for the Intertiol Cricket Council (ICC) website, cautioned India against complacency and expected the men-in-blue to pull up their socks in the fielding department. Sunday’s encounter witnessed a few dropped catches.
“India will carry a lot of positives into Thursday’s match. Almost every batsman fired in right earnest during Sunday’s showdown against Pakistan. Even the bowlers had a fruitful outing, but I would like to see some improvements in the bowling department,” the offie wrote.
“The men-in-blue should also be wary of the complacency factor. On a high after the 124-run win over Pakistan, Virat Kohli and his side must not let the intensity levels down. India just needs to get the basics right. I expect the top order as well as Kohli and Yuvraj Singh to take off from where they left in Birmingham,” he added.
The Punjab spinner also backed the Indian bowlers to utilise the conditions at The Oval well.
“I also hope to see Jasprit Bumrah, Bhuvneshwar Kumar and Ravindra Jadeja make the most of the conditions at The Oval. Given the form that India is in, it is likely to emerge winner even if it plays to 70 per-cent potential. But let’s just hope the players give it their all,” he said.
Commenting on Sri Lanka’s current form and the way they lost to South Africa in their opening tie, Harbhajan said the islanders will desperately miss the services of veteran Upul Tharanga, who was handed a two-match suspension for over-rate offences.
“To lose a player to suspension is a setback in itself. When the said player happens to be your captain, the team’s misery only gets compounded. Upul Tharanga’s two-game suspension for over-rate offences is bound to hurt the team as it prepares to take on a pumped-up India,” he said.
“Let’s not forget the upcoming game is extremely crucial from Sri Lanka’s point of view because the team has already lost to South Africa and faces a must-win situation against the defending champions,” he added.
Harbhajan also had an advice for the Indian batsmen when they face veteran Lasith Malinga, who can be lethal against any side on his day.
On the English weather, which played spoilsport in two matches so far, besides affecting the India-Pakistan match, Harbhajan said India holds the upper hand if there are no weather interruptions.
“However, if the match is reduced to a 20-20 or a 30-overs-a-side game due to the vagaries of the weather, then the match could go either way. Needless to say, dealing with the Duckworth-Lewis-Stern method is not easy,” he added. (IANS) | english |
Baku (Azerbaijan): Terming Pakistan as the ‘contemporary epicentre’ of terrorism, India on Saturday said Islamabad must decisively ‘abjure terrorism’ for its own and the world’s good.
“We regret that earlier today afternoon, this august forum was misused to justify once again its long-standing policy of conducting cross border terrorism against its neighbours including Jammu and Kashmir, which is an integral part of India. Indeed, we speak for the larger region in terms of this deep concern over Pakistan’s behavior,” said Naidu.
“All of us in the Non-Aligned Movement (NAM) is focused on meeting our developmental goals and aspirations. Pakistan clearly needs to do much more to earn the confidence of the international community. It must decisively abjure terrorism — for its own good, for that of its neighbours and for the good of the world,” he added.
“The only way to fight this menace is to strengthen and implement, without exception, all existing international laws and mechanism to combat terrorists and their enablers,” he said.
“No justification whatsoever can be accepted for violent extremist ideologies and terrorist actions that maim and murder innocents, disrupt the very fabric of our societies and stall developmental efforts,” added Naidu.
The Vice President has urged the NAM to re-focus to remain an influential grouping and find solutions to challenges relating to terrorism, global governance reform, sustainable development, and south-south cooperation.
He called upon all NAM countries to come together to forge a common front against terror in all its forms as there was no justification for violent extremist ideologies and terrorist actions that maim and murder innocents.
The Vice President said that the interdependent world today was faced with serious challenges.
“Globalisation and unprecedented technological advances are shaping the 21st century in unpredictable and often disruptive ways,” he said.
“As we all strive to ensure inclusive and sustainable growth and a better future for our peoples, we must realise that our destinies are linked like never before,” added he. | english |
import os, sys, subprocess, tempfile, time
# 创建临时文件夹,返回临时文件夹路径
TempFile = tempfile.mkdtemp(suffix='_test', prefix='python_')
# 文件名
FileNum = int(time.time() * 1000)
# python编译器位置
EXEC = sys.executable
# 获取python版本
def get_version():
v = sys.version_info
version = "python %s.%s" % (v.major, v.minor)
return version
# 获得py文件名
def get_pyname():
global FileNum
return 'test_%d' % FileNum
# 接收代码写入文件
def write_file(pyname, code):
fpath = os.path.join(TempFile, '%s.py' % pyname)
with open(fpath, 'w', encoding='utf-8') as f:
f.write(code)
print('file path: %s' % fpath)
return fpath
# 编码
def decode(s):
try:
return s.decode('utf-8')
except UnicodeDecodeError:
return s.decode('gbk')
# 主执行函数
def main(code):
r = dict()
r["version"] = get_version()
pyname = get_pyname()
fpath = write_file(pyname, code)
try:
# subprocess.check_output 是 父进程等待子进程完成,返回子进程向标准输出的输出结果
# stderr是标准输出的类型
# subprocess.check_output 执行一条shell命令
outdata = decode(subprocess.check_output([EXEC, fpath], stderr=subprocess.STDOUT, timeout=10))
except subprocess.CalledProcessError as e:
# e.output是错误信息标准输出
# 错误返回的数据
r["code"] = 'Error'
r["output"] = decode(e.output)
return r
else:
# 成功返回的数据
r['output'] = outdata
r["code"] = "Success"
return r
finally:
# 删除文件(其实不用删除临时文件会自动删除)
try:
os.remove(fpath)
except Exception as e:
exit(1)
if __name__ == '__main__':
code = "print(11);print(12)"
print(main(code))
| python |
Like Rosemary’s Baby in the sticks, Amazon Prime’s Chhorii is a surprisingly well-made horror picture that actually respects the genre, but loses its way so tragically in its final moments that you might mistake it for an especially stupid scary movie heroine.
Thankfully, Nushrratt Bharuccha’s Sakshi is quite the resourceful protagonist, mostly. She’s a heavily pregnant teacher in a Madhya Pradesh town, who in the film’s opening moments is awakened to discover her husband getting clobbered by some goons because he owes them money. Instead of going to the authorities or trying to arrange for the cash—you know, logical stuff—Sakshi’s husband initiates the first in a series of confounding decisions that only characters in horror movies seem to make. He packs a bag and drags her along to their trusted driver’s village home, where the plan is to lay low for a few days until the gangsters… forget that they’re owed money?
This happens within the opening 15 minutes, and is basically going to be the first leap of faith you’re going to have to make as a viewer. If you aren’t able to, you might as well check out then and there, because things only get kookier. In the village, Sakshi’s husband—he’s called Hemant, by the way—conveniently goes missing for large chunks of the movie, only so that she can be isolated for the purposes of the plot.
While Hemant is away, Sakshi is taken care of by a middle-aged couple—the driver, and his wife. During one of her strolls in the fields of tall grass nearby, Sakshi runs into three kids, who appear to be playing hide-and-seek. Refreshed after a cheerful outing, she returns to the dull village, only for the aunty to forbid her from interacting with the kids again. She’s very vague about it, but as we learn later, the village has been marred by some very unfortunate incidents.
Director Vishal Furia establishes the film’s admittedly detailed lore in the laziest possible manner—by having the aunty narrate it to a sedated Sakshi—while the film intermittently cuts to flashbacks. It’s an inelegant, overly verbose approach that completely ignores one of the central tenets of filmmaking: show, don’t tell.
Chhorri is based on Furia’s Marathi original Lapachhapi. I haven’t seen the Marathi film, but I wonder if it had similar third-act problems as this one. If it did, then it makes no sense for Furia to have not changed things up, and if it didn’t, then it would mean that Furia, in fact, actually sabotaged Chhorii by making it worse. It’s a lose-lose situation.
While it might tackle the same anxieties as Roman Polanski’s classic—Chhorii is also about female liberation, and has a scene in which a woman is violated during an occult ritual—it doesn’t simply duplicate those themes for a desi audience. It is, instead, an effective translation. But since nobody is going to accept that Chhorii is essentially a Rosemary’s Baby remake, it can’t be appreciated for being one of the better examples of one. Remember, in India, movies are remade solely on the basis of how successful the original was at the box office; big numbers are basically seen as proof-of-concept.
And recent developments have proven that there is an appetite for horror among Indian masses. It’s a different matter altogether that in our country, horror is usually merged with other genres like romance and comedy. Chhorii is an old-fashioned, unadulterated horror picture that would’ve been very easy to recommend had it resisted the desire to turn into a message movie in its final moments.
The ‘message’, as had been quite effectively conveyed already, is that female infanticide = bad. Don’t do it. Don’t even think about it. But for some reason, Furia completely loses faith in his audience and decides to shoehorn in a scene where a character literally delivers a speech about this and brings the movie to a screeching halt. And as if that wasn’t enough, he pulls a Mimi (and Rashmi Rocket) and concludes not on the sort of unsettling note that good horror movies should, but with several title cards that throw statistics at you. For whom are these statistics intended? Does Furia think that potential baby-killers are watching his film? Does he expect Chhorii to change their mind about killing babies?
Maybe it can, who knows? In that case, it’s worth a shot. But for the rest of us who aren’t inclined to commit foeticide, it’s a sorry (and utterly avoidable) addition to an otherwise solid film.
Click for more updates and latest Bollywood news along with Entertainment updates. Also get latest news and top headlines from India and around the world at The Indian Express. | english |
Income-Tax officials on Tuesday conducted raids at the offices of Asian Cinema & Multiplexes Private Limited and Skill Promoters Infra Private Limited here.
Hyderabad.
Promoter of Asian Cinemas & Multiplexes, Sunil Narang owns a chain of theatres in twin cities, located at Kukatpally, Uppal and Kapra. The searches were held at the residence of Narang and the corporate offices.
Raids were also conducted on the corporate offices of Skill Promoters Infra Private Limited as well. | english |
Following the ground-breaking success of the short documentary The Elephant Whisperers at the Oscars, there has been a flood of congratulatory messages for both the filmmakers and the central figures of the documentary, Bomman and Bellie. Recently, a touching video has been circulating on the internet, which depicts an IndiGo pilot giving a huge shoutout to the main characters during their journey to Ooty. This touching tale has been captured and shared by an IAS officer Supriya Sahu.
Watch the video below:
Recently, a picture of Bomman and Bellie, joyfully smiling while holding the Oscar, went viral across various social media platforms. In the photo, the duo is seen holding tight onto the award and flashing their smiles for the camera, which is too cute to miss. Take a look.
Kartiki Gonsalves and Guneet Monga’s The Elephant Whisperers won Best Documentary Short Film at the Oscars this year. The film revolves around a pair who have developed a unique connection with two baby elephants named Raghu and Ammu, who was left without a family. The documentary is streaming on OTT giant, Netflix. | english |
Khobar, Saudi Arabia: Bahrain said an explosion which caused a fire at its main oil pipeline on Friday was caused by "terrorist" sabotage, linking the unprecedented attack to its arch-foe Iran, which denies any role in the Gulf island kingdom's unrest.
A key Western ally and host to the U. S. Fifth Fleet, Sunni Muslim-ruled Bahrain has for years grappled with protests and sporadic violence coming from its Shi'ite majority.
"The incident was an act of sabotage and a dangerous act of terrorism aimed at harming the higher interests of the nation and the safety of the people," the ministry said on its website.
"Terrorist acts witnessed by the country in the recent period are carried out through direct contacts and instructions from Iran," the statement quoted Interior Minister Sheikh Rashid bin Abdullah al-Khalifa as saying.
Bahraini authorities said they had brought under control the fire at the oil pipeline.
State-run Bahrain Petroleum Company (Bapco) closed the flow of oil to the stricken pipeline, the civil defence said in a statement earlier on Saturday.
Residents close to the incident near Buri village, some 15 kilometres (10 miles) from the capital Manama, were being evacuated to a safe shelter, the statement added.
Saudi Arabia's energy ministry said pumping to Bahrain had been suspended and the kingdom was stepping up security precautions at its own facilities.
"The attack on the pipeline . . . was followed by the suspension of the pumping of oil to the State of Bahrain," the Saudi Ministry of Energy, Industry and Mineral Resources said.
"The Ministry of Energy also confirmed that it has increased its security precautions at all its facilities, and that all these facilities enjoy the highest levels of protection and safety," it added in a statement.
After authorities quashed Shi'ite-led "Arab Spring" protests in 2011, militants have launched deadly bombing and shooting attacks against security forces that Manama blames on Tehran.
Iran denies any role in Bahrain's unrest.
Bahrain relies on the Abu Safa oilfield for the majority of its oil. It shares the field with Saudi Arabia. Oil to Bahrain is transported via the 55 km A-B pipeline which has a capacity of 230,000 barrels per day (bpd).
A new 350,000-barrels per day oil pipeline between the two countries will be completed next year and will serve the planned expansion of Bahrain's refinery capacity.
Arabian Light crude oil will flow from Saudi Aramco's Abqaiq plant via the 115-km new pipeline, 73 km of which will run overland and the rest under the Gulf. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters) | english |
The meeting is chaired by All India Congress Committee (AICC) president Mallikarjun Kharge along with some key party leaders, including Rahul Gandhi.
The Congress’ Central Election Committee meeting has started at party headquarters in New Delhi on Tuesday and the second list of candidates for the Karnataka assembly elections will be zeroed in. The meeting is chaired by All India Congress Committee (AICC) president Mallikarjun Kharge along with some key party leaders, including Rahul Gandhi.
The second list will decide the candidates in some of the prominent constituencies in the state. The Congress is yet to decide the candidates for 100 assembly seats as the party also saw MLAs joining from the rival Bharatiya Janata Party and Janata Dal (Secular).
Meanwhile, the confusion over the Kolar seat is also expected to be solved in this meeting. Earlier, former CM Siddaramaiah announced that he will be contesting from the Kolar constituency (with high command approval), but his name appeared in the first list from the Varuna constituency. The party workers from the Kolar constituency were seen protesting outside Siddaramaiah’s residence, asking him to contest from the Kolar, as announced. The former CM’s son, Dr. Yatindra, who expected the Varuna seat is also yet to be allotted a constituency as a candidate.
On Monday, many party workers and followers from different constituencies in the state held a protest outside the Congress office in Bengaluru, demanding a ticket for their leaders, ahead of the key CEC meeting. Karnataka Congress working president Saleem Ahmed said that the survey report will decide the names in the second list. The party has already released the names of 124 candidates contesting in the upcoming assembly elections. Meanwhile, the BJP is yet to release any list of candidates on March 25.
The Election Commission of India announced that assembly elections in the state will be held on May 10 and results will be declared on May 13. The last date for filing nominations is April 20 and the last date to withdraw the nomination is April 24. | english |
Alex Rodriguez had an extensive dating history with celebrities. One of the people included his most infamous beau, Jennifer Lopez and one lesser known one was Madison LeCroy.
The reason for that could be she was contractually obligated to not speak about their hookup. However, like any secret in the industry, it was bound to come out. And it did by one of LeCroy's costars.
Alex Rodriguez who was still in a relationship with Lopez has started seeing the Southern Charm actress. The reason for Lopez's and A-Rod's split could be attributed to Rodriguez's apparent infidelity.
Shep Rose, Madison's costar at Southern Charm, was in a 2021 interview with SiriusXM. He revealed that Madison was in a relationship with A-Rod. Rose also indirectly revealed that Rodriguez had made her sign a contract to keep the relationship secret.
"We had an episode on Capers Island," Shep explained on the Monday, March 15 episode of SiriusXM's Andy Cohen Live. "She said on camera, there's camera's buzzing around, we're on a boat and she's like, ‘Well, I'm DMing with A-Rod, but we can't talk about that' or 'they can't air this because I signed an NDA' and that's the first I heard of it. And I was like, ‘Oh my god.' My eyes almost popped out of my head."
Alex Rodriguez and Madison LeCroy's alleged relationship didn't really last for long. Rodriguez has repeatedly denied any relationship allegation between the two of them.
Jennifer Lopez and Alex Rodriguez started dating in 2017 after meeting each other coincidentally. The couple got engaged in 2019 while on a vacation in the Bahamas. In 2021 the couple separated after rumors of Rodriguez cheating came about.
The person he allegedly cheated with was Madison LeCroy. However, LeCroy gave an interview in 2021 with PageSix. In this interview, she revealed that the relationship the two shared wasn't physical.
"He's never physically cheated on his fiancée with me."
However, the fact still remained that Rodriguez emotionally cheated on Jennifer Lopez with LeCroy. Lopez has since moved on and married Ben Affleck.
Click here for 2023 MLB Free Agency Tracker Updates. Follow Sportskeeda for latest news and updates on MLB.
| english |
Warner Bros Discovery CEO David Zaslav announced a live-action series based on JK Rowling’s seven Harry Potter books during a presentation on Wednesday. The show will air on Max, a streaming service formerly known as HBO Max, which has now been merged with Discovery+.
"The series will feature a new cast to lead a new generation of fandom, full of the fantastic detail, much-loved characters and dramatic locations that fans have loved for over 25 years," read a statement from the streaming platform. It added that the show would be produced with the "same epic craft, love and care" as the original franchise.
Rowling, Neil Blair and Ruth Kenley-Letts will executive produce the series. "Max's commitment to preserving the integrity of the books is important to me," read a statement from the author. "I'm looking forward to being part of this new adaptation which will allow for a degree of depth and detail only afforded by a long-form television series."
| english |
class Fibonacci(object):
"""Generate Fibonacci Numbers"""
def __init__(self, length, first=0, second=1):
"""Set length and initials for the series"""
if not isinstance(length, int):
raise TypeError("Expected length to be 'int' got '%s'" % (length.__class__.__name__, ))
if length < 2:
raise ValueError("Expected length to be greater than 1")
if not isinstance(first, int):
raise TypeError("Expected first to be 'int' got '%s'" % (first.__class__.__name__, ))
if not isinstance(second, int):
raise TypeError("Expected second to be 'int' got '%s'" % (second.__class__.__name__, ))
self.length = length
self.first = first
self.second = second
def __iter__(self):
"""Iterate to generate numbers until length reduces down to 0"""
length, first, second = self.length, self.first, self.second
while length:
yield first
first, second = second, first + second
length -= 1
| python |
import {defs, tiny} from './common.js';
// Pull these names into this module's scope for convenience:
const {vec3, unsafe3, vec4, color, Mat4, Light, Shape, Material, Shader, Texture, Scene} = tiny;
export class Body {
// **Body** can store and update the properties of a 3D body that incrementally
// moves from its previous place due to velocities. It conforms to the
// approach outlined in the "Fix Your Timestep!" blog post by <NAME>.
constructor(shape, material, size) {
Object.assign(this,
{shape, material, size})
}
// (within some margin of distance).
static intersect_cube(p, margin = 0) {
return p.every(value => value >= -1 - margin && value <= 1 + margin)
}
static intersect_sphere(p, margin = 0) {
return p.dot(p) < 1 + margin;
}
emplace(location_matrix, linear_velocity, angular_velocity, spin_axis = vec3(0, 0, 0).randomized(1).normalized()) { // emplace(): assign the body's initial values, or overwrite them.
this.center = location_matrix.times(vec4(0, 0, 0, 1)).to3();
this.rotation = Mat4.translation(...this.center.times(-1)).times(location_matrix);
this.previous = {center: this.center.copy(), rotation: this.rotation.copy()};
// drawn_location gets replaced with an interpolated quantity:
this.drawn_location = location_matrix;
this.temp_matrix = Mat4.identity();
return Object.assign(this, {linear_velocity, angular_velocity, spin_axis})
}
advance(time_amount) {
// advance(): Perform an integration (the simplistic Forward Euler method) to
// advance all the linear and angular velocities one time-step forward.
this.previous = {center: this.center.copy(), rotation: this.rotation.copy()};
// Apply the velocities scaled proportionally to real time (time_amount):
// Linear velocity first, then angular:
this.center = this.center.plus(this.linear_velocity.times(time_amount));
this.rotation.pre_multiply(Mat4.rotation(time_amount * this.angular_velocity, ...this.spin_axis));
}
// The following are our various functions for testing a single point,
// p, against some analytically-known geometric volume formula
blend_rotation(alpha) {
// blend_rotation(): Just naively do a linear blend of the rotations, which looks
// ok sometimes but otherwise produces shear matrices, a wrong result.
// TODO: Replace this function with proper quaternion blending, and perhaps
// store this.rotation in quaternion form instead for compactness.
return this.rotation.map((x, i) => vec4(...this.previous.rotation[i]).mix(x, alpha));
}
blend_state(alpha) {
// blend_state(): Compute the final matrix we'll draw using the previous two physical
// locations the object occupied. We'll interpolate between these two states as
// described at the end of the "Fix Your Timestep!" blog post.
this.drawn_location = Mat4.translation(...this.previous.center.mix(this.center, alpha))
.times(this.blend_rotation(alpha))
.times(Mat4.scale(...this.size));
}
check_if_colliding(b, collider) {
// check_if_colliding(): Collision detection function.
// DISCLAIMER: The collision method shown below is not used by anyone; it's just very quick
// to code. Making every collision body an ellipsoid is kind of a hack, and looping
// through a list of discrete sphere points to see if the ellipsoids intersect is *really* a
// hack (there are perfectly good analytic expressions that can test if two ellipsoids
// intersect without discretizing them into points).
if (this == b)
return false;
// Nothing collides with itself.
// Convert sphere b to the frame where a is a unit sphere:
const T = this.inverse.times(b.drawn_location, this.temp_matrix);
const {intersect_test, points, leeway} = collider;
// For each vertex in that b, shift to the coordinate frame of
// a_inv*b. Check if in that coordinate frame it penetrates
// the unit sphere at the origin. Leave some leeway.
return points.arrays.position.some(p =>
intersect_test(T.times(p.to4(1)).to3(), leeway));
}
}
export class Simulation extends Scene {
// **Simulation** manages the stepping of simulation time. Subclass it when making
// a Scene that is a physics demo. This technique is careful to totally decouple
// the simulation from the frame rate (see below).
constructor() {
super();
Object.assign(this, {time_accumulator: 0, time_scale: 1, t: 0, dt: 1 / 20, bodies: [], steps_taken: 0});
}
simulate(frame_time) {
// simulate(): Carefully advance time according to <NAME>'s
// "Fix Your Timestep" blog post.
// This line gives ourselves a way to trick the simulator into thinking
// that the display framerate is running fast or slow:
frame_time = this.time_scale * frame_time;
// Avoid the spiral of death; limit the amount of time we will spend
// computing during this timestep if display lags:
this.time_accumulator += Math.min(frame_time, 0.1);
// Repeatedly step the simulation until we're caught up with this frame:
while (Math.abs(this.time_accumulator) >= this.dt) {
// Single step of the simulation for all bodies:
this.update_state(this.dt);
for (let b of this.bodies)
b.advance(this.dt);
// Following the advice of the article, de-couple
// our simulation time from our frame rate:
this.t += Math.sign(frame_time) * this.dt;
this.time_accumulator -= Math.sign(frame_time) * this.dt;
this.steps_taken++;
}
// Store an interpolation factor for how close our frame fell in between
// the two latest simulation time steps, so we can correctly blend the
// two latest states and display the result.
let alpha = this.time_accumulator / this.dt;
for (let b of this.bodies) b.blend_state(alpha);
}
make_control_panel() {
// make_control_panel(): Create the buttons for interacting with simulation time.
this.key_triggered_button("Speed up time", ["Shift", "T"], () => this.time_scale *= 5);
this.key_triggered_button("Slow down time", ["t"], () => this.time_scale /= 5);
this.new_line();
this.live_string(box => {
box.textContent = "Time scale: " + this.time_scale
});
this.new_line();
this.live_string(box => {
box.textContent = "Fixed simulation time step size: " + this.dt
});
this.new_line();
this.live_string(box => {
box.textContent = this.steps_taken + " timesteps were taken so far."
});
}
display(context, program_state) {
// display(): advance the time and state of our whole simulation.
if (program_state.animate)
this.simulate(program_state.animation_delta_time);
// Draw each shape at its current location:
for (let b of this.bodies)
b.shape.draw(context, program_state, b.drawn_location, b.material);
}
update_state(dt) // update_state(): Your subclass of Simulation has to override this abstract function.
{
throw "Override this"
}
}
export class Test_Data {
// **Test_Data** pre-loads some Shapes and Textures that other Scenes can borrow.
constructor() {
this.textures = {
rgb: new Texture("assets/rgb.jpg"),
earth: new Texture("assets/earth.gif"),
grid: new Texture("assets/grid.png"),
stars: new Texture("assets/stars.png"),
text: new Texture("assets/text.png"),
}
this.shapes = {
donut: new defs.Torus(15, 15, [[0, 2], [0, 1]]),
cone: new defs.Closed_Cone(4, 10, [[0, 2], [0, 1]]),
capped: new defs.Capped_Cylinder(4, 12, [[0, 2], [0, 1]]),
ball: new defs.Subdivision_Sphere(3, [[0, 1], [0, 1]]),
cube: new defs.Cube(),
prism: new (defs.Capped_Cylinder.prototype.make_flat_shaded_version())(10, 10, [[0, 2], [0, 1]]),
gem: new (defs.Subdivision_Sphere.prototype.make_flat_shaded_version())(2),
donut2: new (defs.Torus.prototype.make_flat_shaded_version())(20, 20, [[0, 2], [0, 1]]),
};
}
random_shape(shape_list = this.shapes) {
// random_shape(): Extract a random shape from this.shapes.
const shape_names = Object.keys(shape_list);
return shape_list[shape_names[~~(shape_names.length * Math.random())]]
}
}
export class Inertia_Demo extends Simulation {
// ** Inertia_Demo** demonstration: This scene lets random initial momentums
// carry several bodies until they fall due to gravity and bounce.
constructor() {
super();
this.data = new Test_Data();
this.shapes = Object.assign({}, this.data.shapes);
this.shapes.square = new defs.Square();
const shader = new defs.Fake_Bump_Map(1);
this.material = new Material(shader, {
color: color(.4, .8, .4, 1),
ambient: .4, texture: this.data.textures.stars
})
}
random_color() {
return this.material.override(color(.6, .6 * Math.random(), .6 * Math.random(), 1));
}
update_state(dt) {
// update_state(): Override the base time-stepping code to say what this particular
// scene should do to its bodies every frame -- including applying forces.
// Generate additional moving bodies if there ever aren't enough:
while (this.bodies.length < 150)
this.bodies.push(new Body(this.data.random_shape(), this.random_color(), vec3(1, 1 + Math.random(), 1))
.emplace(Mat4.translation(...vec3(0, 15, 0).randomized(10)),
vec3(0, -1, 0).randomized(2).normalized().times(3), Math.random()));
for (let b of this.bodies) {
// Gravity on Earth, where 1 unit in world space = 1 meter:
b.linear_velocity[1] += dt * -9.8;
// If about to fall through floor, reverse y velocity:
if (b.center[1] < -8 && b.linear_velocity[1] < 0)
b.linear_velocity[1] *= -.8;
}
// Delete bodies that stop or stray too far away:
this.bodies = this.bodies.filter(b => b.center.norm() < 50 && b.linear_velocity.norm() > 2);
}
display(context, program_state) {
// display(): Draw everything else in the scene besides the moving bodies.
super.display(context, program_state);
if (!context.scratchpad.controls) {
this.children.push(context.scratchpad.controls = new defs.Movement_Controls());
this.children.push(new defs.Program_State_Viewer());
program_state.set_camera(Mat4.translation(0, 0, -50)); // Locate the camera here (inverted matrix).
}
program_state.projection_transform = Mat4.perspective(Math.PI / 4, context.width / context.height, 1, 500);
program_state.lights = [new Light(vec4(0, -5, -10, 1), color(1, 1, 1, 1), 100000)];
// Draw the ground:
this.shapes.square.draw(context, program_state, Mat4.translation(0, -10, 0)
.times(Mat4.rotation(Math.PI / 2, 1, 0, 0)).times(Mat4.scale(50, 50, 1)),
this.material.override(this.data.textures.earth));
}
show_explanation(document_element) {
document_element.innerHTML += `<p>This demo lets random initial momentums carry bodies until they fall and bounce. It shows a good way to do incremental movements, which are crucial for making objects look like they're moving on their own instead of following a pre-determined path. Animated objects look more real when they have inertia and obey physical laws, instead of being driven by simple sinusoids or periodic functions.
</p><p>For each moving object, we need to store a model matrix somewhere that is permanent (such as inside of our class) so we can keep consulting it every frame. As an example, for a bowling simulation, the ball and each pin would go into an array (including 11 total matrices). We give the model transform matrix a \"velocity\" and track it over time, which is split up into linear and angular components. Here the angular velocity is expressed as an Euler angle-axis pair so that we can scale the angular speed how we want it.
</p><p>The forward Euler method is used to advance the linear and angular velocities of each shape one time-step. The velocities are not subject to any forces here, but just a downward acceleration. Velocities are also constrained to not take any objects under the ground plane.
</p><p>This scene extends class Simulation, which carefully manages stepping simulation time for any scenes that subclass it. It totally decouples the whole simulation from the frame rate, following the suggestions in the blog post <a href=\"https://gafferongames.com/post/fix_your_timestep/\" target=\"blank\">\"Fix Your Timestep\"</a> by <NAME>. Buttons allow you to speed up and slow down time to show that the simulation's answers do not change.</p>`;
}
}
export class Collision_Demo extends Simulation {
// **Collision_Demo** demonstration: Detect when some flying objects
// collide with one another, coloring them red.
constructor() {
super();
this.data = new Test_Data();
this.shapes = Object.assign({}, this.data.shapes);
// Make simpler dummy shapes for representing all other shapes during collisions:
this.colliders = [
{intersect_test: Body.intersect_sphere, points: new defs.Subdivision_Sphere(1), leeway: .5},
{intersect_test: Body.intersect_sphere, points: new defs.Subdivision_Sphere(2), leeway: .3},
{intersect_test: Body.intersect_cube, points: new defs.Cube(), leeway: .1}
];
this.collider_selection = 0;
// Materials:
const phong = new defs.Phong_Shader(1);
const bump = new defs.Fake_Bump_Map(1)
this.inactive_color = new Material(bump, {
color: color(.5, .5, .5, 1), ambient: .2,
texture: this.data.textures.rgb
});
this.active_color = this.inactive_color.override({color: color(.5, 0, 0, 1), ambient: .5});
this.bright = new Material(phong, {color: color(0, 1, 0, .5), ambient: 1});
}
make_control_panel() {
this.key_triggered_button("Previous collider", ["b"], this.decrease);
this.key_triggered_button("Next", ["n"], this.increase);
this.new_line();
super.make_control_panel();
}
increase() {
this.collider_selection = Math.min(this.collider_selection + 1, this.colliders.length - 1);
}
decrease() {
this.collider_selection = Math.max(this.collider_selection - 1, 0)
}
update_state(dt, num_bodies = 40) {
// update_state(): Override the base time-stepping code to say what this particular
// scene should do to its bodies every frame -- including applying forces.
// Generate moving bodies:
while (this.bodies.length < num_bodies)
this.bodies.push(new Body(this.data.random_shape(), undefined, vec3(1, 5, 1))
.emplace(Mat4.translation(...unsafe3(0, 0, 0).randomized(30))
.times(Mat4.rotation(Math.PI, ...unsafe3(0, 0, 0).randomized(1).normalized())),
unsafe3(0, 0, 0).randomized(20), Math.random()));
// Sometimes we delete some so they can re-generate as new ones:
this.bodies = this.bodies.filter(b => (Math.random() > .01) || b.linear_velocity.norm() > 1);
const collider = this.colliders[this.collider_selection];
// Loop through all bodies (call each "a"):
for (let a of this.bodies) {
// Cache the inverse of matrix of body "a" to save time.
a.inverse = Mat4.inverse(a.drawn_location);
a.linear_velocity = a.linear_velocity.minus(a.center.times(dt));
// Apply a small centripetal force to everything.
a.material = this.inactive_color;
// Default color: white
if (a.linear_velocity.norm() == 0)
continue;
// *** Collision process is here ***
// Loop through all bodies again (call each "b"):
for (let b of this.bodies) {
// Pass the two bodies and the collision shape to check_if_colliding():
if (!a.check_if_colliding(b, collider))
continue;
// If we get here, we collided, so turn red and zero out the
// velocity so they don't inter-penetrate any further.
a.material = this.active_color;
a.linear_velocity = vec3(0, 0, 0);
a.angular_velocity = 0;
}
}
}
display(context, program_state) {
// display(): Draw everything else in the scene besides the moving bodies.
super.display(context, program_state);
if (!context.scratchpad.controls) {
this.children.push(context.scratchpad.controls = new defs.Movement_Controls());
this.children.push(new defs.Program_State_Viewer());
program_state.set_camera(Mat4.translation(0, 0, -50));
// Locate the camera here (inverted matrix).
}
program_state.projection_transform = Mat4.perspective(Math.PI / 4, context.width / context.height, 1, 500);
program_state.lights = [new Light(vec4(.7, 1.5, 2, 0), color(1, 1, 1, 1), 100000)];
// Draw an extra bounding sphere around each drawn shape to show
// the physical shape that is really being collided with:
const {points, leeway} = this.colliders[this.collider_selection];
const size = vec3(1 + leeway, 1 + leeway, 1 + leeway);
for (let b of this.bodies)
points.draw(context, program_state, b.drawn_location.times(Mat4.scale(...size)), this.bright, "LINE_STRIP");
}
show_explanation(document_element) {
document_element.innerHTML += `<p>This demo detects when some flying objects collide with one another, coloring them red when they do. For a simpler demo that shows physics-based movement without objects that hit one another, see the demo called Inertia_Demo.
</p><p>Detecting intersections between pairs of stretched out, rotated volumes can be difficult, but is made easier by being in the right coordinate space. The collision algorithm treats every shape like an ellipsoid roughly conforming to the drawn shape, and with the same transformation matrix applied. Here these collision volumes are drawn in translucent purple alongside the real shape so that you can see them.
</p><p>This particular collision method is extremely short to code, as you can observe in the method \"check_if_colliding\" in the class called Body below. It has problems, though. Making every collision body a stretched sphere is a hack and doesn't handle the nuances of the actual shape being drawn, such as a cube's corners that stick out. Looping through a list of discrete sphere points to see if the volumes intersect is *really* a hack (there are perfectly good analytic expressions that can test if two ellipsoids intersect without discretizing them into points, although they involve solving a high order polynomial). On the other hand, for non-convex shapes a real collision method cannot be exact either, and is usually going to have to loop through a list of discrete tetrahedrons defining the shape anyway.
</p><p>This scene extends class Simulation, which carefully manages stepping simulation time for any scenes that subclass it. It totally decouples the whole simulation from the frame rate, following the suggestions in the blog post <a href=\"https://gafferongames.com/post/fix_your_timestep/\" target=\"blank\">\"Fix Your Timestep\"</a> by <NAME>. Buttons allow you to speed up and slow down time to show that the simulation's answers do not change.</p>`;
}
} | javascript |
package com.skjanyou.desktop.application.generator.sqc;
public enum SQL_Type {
/*
//处理类型转换
private String fixType(int type) {
switch (type) {
case Types.VARCHAR : return "java.lang.String";
case Types.CHAR : return "java.lang.String";
case Types.CLOB : return "java.lang.String";
case Types.INTEGER : return "java.math.BigDecimal";
case Types.NUMERIC : return "java.math.BigDecimal";
case Types.FLOAT : return "java.math.BigDecimal";
case Types.DOUBLE : return "java.math.BigDecimal";
case Types.DECIMAL : return "java.math.BigDecimal";
case Types.DATE : return "java.sql.Date";
case Types.TIMESTAMP : return "java.sql.Timestamp";
default : return "unsupported";
}
}
//处理类型转换
private String fixType2(int type) {
switch (type) {
case Types.VARCHAR : return "VARCHAR";
case Types.CHAR : return "CHAR";
case Types.CLOB : return "CLOB";
case Types.INTEGER : return "INTEGER";
case Types.NUMERIC : return "NUMERIC";
case Types.FLOAT : return "FLOAT";
case Types.DOUBLE : return "DOUBLE";
case Types.DECIMAL : return "DECIMAL";
case Types.DATE : return "DATE";
case Types.TIMESTAMP : return "TIMESTAMP";
default : return "unsupported";
}
*/
}
| java |
{"title":"[MMD] Cul, Lily • Tell Me18歳以上!","author":"kelpie","description":"Music:undefined石風呂様<br>Motion,undefinedcamera:undefinedなつき<br>Stage:undefinedSnowundefinedParkundefined雪の公園MMDundefinedbyundefined渴霧享樓<br>Santaundefinedhat:undefinedサンタの帽子undefinedbyundefinedしろたび<br>Models:undefinedFullundefinedModelsundefinedPackundefined-undefinedmodifiedundefinedbyundefinedDr.undefinedCossack<br>Pleaseundefineddoundefinednotundefinedreupload<br>[543]","thumb":"//i.iwara.tv/sites/default/files/styles/thumbnail/public/videos/thumbnails/2267964/thumbnail-2267964_0007.jpg?itok=eMKx3iSF","download":"https://ecchi.iwara.tv/api/video/op2bwfpe7ju1p2r0k","origin":"https://ecchi.iwara.tv/videos/op2bwfpe7ju1p2r0k"} | json |
<filename>apps/speedo/metadata.json
{
"id": "speedo",
"name": "Speedo",
"version": "0.05",
"description": "Show the current speed according to the GPS",
"icon": "speedo.png",
"tags": "tool,outdoors,gps",
"supports": ["BANGLEJS","BANGLEJS2"],
"storage": [
{"name":"speedo.app.js","url":"speedo.js"},
{"name":"speedo.img","url":"speedo-icon.js","evaluate":true}
]
}
| json |
Afghanistan vs Ireland T20 World Cup 2022: The Ireland vs Afghanistan match has been abandoned without a bowl balled due to rain at the Melbourne Cricket Ground on Friday, leaving the teams to split the points.
It was winless Afghanistan’s second wash-out in the Super 12’s after their New Zealand game at Melbourne was abandoned due to poor weather on Wednesday.
The no-result left Ireland second in Group 1 on three points after three matches behind leading New Zealand, though the Black Caps have a game in hand. Afghanistan remain bottom of the Group on two points.
The weather could yet shape the group, with fifth-placed Australia and fourth-placed England, each on two points, scheduled to play the late match at the MCG. | english |
<reponame>Moel3426/INF206-2019-KelompokC-DY<filename>JustCheckList/assets/css/grafik.css
.border-left {
border-left: 1px solid #e3e6f0 !important
}
.border-left-primary {
border-left: .25rem solid #4e73df !important
}
.border-left-success {
border-left: .25rem solid #1cc88a !important
}
.border-left-info {
border-left: .25rem solid #36b9cc !important
}
.border-left-warning {
border-left: .25rem solid #f6c23e !important
}
.border-left-danger {
border-left: .25rem solid #e74a3b !important
}
.card {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #e3e6f0;
border-radius: .35rem
}
.card-header {
padding: .75rem 1.25rem;
margin-bottom: 0;
background-color: #f8f9fc;
border-bottom: 1px solid #e3e6f0
}
.card-body {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 1.25rem
}
.chart-area {
position: relative;
height: 10rem;
width: 100%
}
@media (min-width:768px) {
.chart-area {
height: 20rem
}
}
.chart-bar {
position: relative;
height: 10rem;
width: 100%
}
@media (min-width:768px) {
.chart-bar {
height: 20rem
}
} | css |
<filename>src/assets/natives/classes/gamestateMachineplayeractionsVault.json
{
"parent": "gamestateMachineplayeractionsLocomotionBase",
"name": "gamestateMachineplayeractionsVault",
"flags": 2
}
| json |
Munshiganj: A worker, Md. Yunus, 32, died on Monday morning at Mukterpur in Munshiganj while he was carrying sacks of potatoes to the Dewan Cold Storage.
Deceased Yunus was the son of Md. Shahjahan Bepari of Charbarekha village in Manikganj. | english |
CBSE has removed a major chunk of Class 10 Social Science Syllabus to cut it down by 30%. Check here the topics and chapters removed from the syllabus for the academic session 2020-21.
In order to reduce the course burden on students amid the COVID-19 crisis, the Central Board of Secondary Education (CBSE) decided to rationalise the syllabus by up to 30 percent for classes 9th to 12th. This alteration to the syllabus has been done only for the current academic year 2020-2021. The board has cut down the syllabus while retaining the core elements.
In this article, we will present to you the deleted portions of the CBSE Class 10 Social Science Syllabus. Social Science subject comes with a huge syllabus due to which preparing this subject for examinations has generally been a stressful job for most of the students. But now as the board has deleted a big portion of the syllabus, students will be much relieved with the decreased syllabus. Students can check below all the topics and names of chapters they need not prepare for the internal assessments and the board examination conducted in the current academic session.
CBSE Class 10 Social Science (087) - Deleted portion:
UNIT 1: INDIA AND THE CONTEMPORARY WORLD –II (HISTORY)
Chapter No. and Chapter Name (NCERT Textbook)
Section 2 : Livelihoods, Economies and Societies NOTE- ANY ONE OUT OF THESE TWO CHAPTERS (CH-3/CH4)
The chosen Chapter to be assessed in the Periodic Tests and not in Board Examination.
UNIT 2: CONTEMPORARY INDIA – II (GEOGRAPHY)
Chapter No. and Chapter Name (NCERT Textbook)
UNIT 3: DEMOCRATIC POLITICS –II (POLITICAL SCIENCE)
Chapter No. and Chapter Name (NCERT Textbook)
We are also sharing below the link to get the revised syllabus that includes all the details regarding internal assessment, project work, map work to be prepared for the Board examinations, etc. Students must thoroughly analyse this latest syllabus to prepare their study plans for the upcoming part of the academic session 2020-2021. Check the Social Science Syllabus below:
Also, check the following link to get important resources by Jagran Josh that will help you study effectively all through this period of the pandemic when you all are unable to take advantage of the classroom teaching. Following these resources will surely help you perform well in your CBSE Class 10 Social Science Board Exam 2020-2021:
| english |
{"site_name":"\u725b\u903c\u7ad9\u70b9 - Powered by Pca7BBS","contact_email":"<EMAIL>","seo_description":"\u8fd9\u662f\u4e00\u4e2a\u7ec3\u4e60\u7ad9\u70b9","seo_keyword":"\u7ec3\u4e60,bbs"} | json |
<reponame>axelv/medical-forms<gh_stars>1-10
@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
.list-interpunct > li:before {
content: "・";
float: left;
margin: 0 0 0 -0.9em;
width: 0.9em;
}
@media (min-width: 992px) {
.list-interpunct > li:before {
margin: 0 0 0 -1.5em;
width: 1.5em;
}
}
input.hide-arrows[type=number]::-webkit-inner-spin-button,
input.hide-arrows[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input.checkbox[type=checkbox]{
@apply focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300 rounded;
}
input.radio[type=radio]{
@apply focus:ring-blue-500 h-4 w-4 text-blue-600 border-gray-300;
}
input.field, textarea.field{
@apply focus:ring-blue-500 focus:border-blue-500 flex-grow pl-7 sm:text-sm border-gray-300 rounded-md shadow-sm block w-full;
}
}
| css |
<filename>README.md
# whole-test-gradle-plugin
Unit test helps only at component level, at high level, there are needs to do test multiple
components, or per functional set, or end to end by using on-demand test docker containers.
To test them, we need create different types of tests, such as integrationTest, functionalTests,
performanceTest, dockerTest, etc.
These kinds of tests may fail often due to data out of date or function spec changing, their failure
should not block deployable artifact output, in some cases they may run after deploying build artifacts.
This plugin is to provide the ability to have integrationTest, functionalTest, performanceTest
under different folders, run after unit-test phase.
To use this plugin, please see: https://plugins.gradle.org/plugin/com.prot.wholetest
In short, for single project with gradle version greater than 2.1 and less than 4.0, using:
```gradle
plugins {
id "com.prot.wholetest" version "0.2" // for gradle 4.0 -
// id "com.prot.wholetest" version "4.0" // for gradle version 4.0 or 4.0+
}
```
For multi-project application, at root project, using:
```gradle
plugins {
id "com.prot.wholetest" version "0.2" apply false // for gradle 4.0 -
// id "com.prot.wholetest" version "4.0" apply false // for gradle version 4.0 or 4.0+
}
```
and then:
```gradle
allprojects {
apply plugin 'com.prot.wholetest'
}
```
or (if only want to run for all sub-projects)
```gradle
subprojects {
apply plugin 'com.prot.wholetest'
}
```
or (if only want to run for projects whose name starts with 'xyz')
```gradle
configure( allprojects.findAll { it.name.startsWith("xyz") } ) {
apply plugin 'com.prot.wholetest'
}
```
or (another way)
```gradle
allprojects { prj ->
if (prj.name.startsWith("xyz")) {
apply plugin 'com.prot.wholetest'
}
}
```
Note: it only provides integrationTest with src/integTest/java and src/integTest/resources
sourceSets for now. It can be easily expanded to different languages such as groovy, scala,
kotlin with different kinds of high level tests, such as performanceTest with
src/perfTest/java and src/perfTest/resources.
| markdown |
<reponame>bobheadlabs/sourcegraph
import React from 'react'
import { ConnectionForm } from '../../../../components/FilteredConnection/ui'
import { ConnectionFormProps } from '../../../../components/FilteredConnection/ui/ConnectionForm'
import styles from './ConnectionPopoverForm.module.scss'
type ConnectionPopoverFormProps = ConnectionFormProps
export const ConnectionPopoverForm: React.FunctionComponent<ConnectionPopoverFormProps> = ({
inputClassName,
formClassName,
...rest
}) => <ConnectionForm inputClassName={styles.connectionPopoverInput} formClassName={formClassName} {...rest} />
| typescript |
There were no title changes at the Royal Rumble and as exciting as the two Royal Rumble matches were, this was one of the few drawbacks from the said event, in my personal opinion. A change in titles is bound to change the landscape of the company, and honestly, I can see a few titles change hands on the road to WrestleMania.
I mean it's almost a certainty that Brock Lesnar will carry the WWE Championship all the way to his big match with Drew McIntyre. For him to drop the title ahead of the mega event does not make any sense at all, really.
But the other Champions in the roster are not nearly as bulletproof and honestly, I can see a change of guard or two on the road to WrestleMania. And therefore, in no particular order, let me list down 5 titles that I believe could change hands.
As always, if you disagree with my opinion, feel free to say so.
This is one of those scenarios that I hope does not happen, but one can only keep his fingers crossed and hope for the best. Andrade has been suspended for violating the wellness policy and while it's a good sign that the United States Championship hasn't been taken from him, I do believe that he may end up dropping the title to someone worthy once he returns. It could certainly be Humberto Carillo who ends up capturing the belt but it will more likely be someone like Aleister Black.
Andrade is destined for greatness and you can check out his reaction to Ric Flair's praise in the video linked above. Sportskeeda's own Gary Cassidy conducted the interview with him at a recent BT Sport event in the UK.
I know how disrespectful this sounds, but I am paid to speak the truth and speak the truth I shall. Seth Rollins is too valuable a commodity to be used in the tag team division, considering that he's probably the biggest heel in the wrestling business, at the moment.
I think that his alliance with Buddy Murphy is a temporary one and by the time that WrestleMania comes around, the two men will be at odds so that they can work against one another to steal the show when the bell rings in front of many thousand fans. I don't know whom they may lose the titles to, but The Street Profits could certainly benefit from working with Buddy Murphy and Seth Rollins, in my personal opinion.
Or maybe The Authors of Pain will be upset that they didn't get a shot at the titles and Seth Rollins and Buddy Murphy did. I can certainly see them claim the titles at some point down the line.
Sportskeeda's very own ace reporter Gary Cassidy recently caught up with the lovely Paige at a BT Sport event in the United Kingdom and you can check out his interview with her in the link above. Paige was, of course, the manager for The Kabuki Warriors until she got sprayed with the green mist by Asuka not long ago.
As awesome as Asuka and Kairi Sane are, the Women's Tag Team Championships haven't seemed relevent at all since they have been introduced. In fact, one may argue that the closest that they've been to relevancy was back when Alexa Bliss and Nikki Cross were women's Tag Team Champions.
It may be time to put the titles on them once again, especially if you consider that those two lovely and talented Superstars aren't doing too much at all, at this point. Yes, Asuka and Kairi Sane may have to move to SmackDown for this, but that is not such a big decision.
Asuka is no longer in a feud with Becky Lynch and so this move can certainly happen.
I don't know if Bayley will lose the SmackDown Women's Champion to Naomi, but I wouldn't be surprised if she were to drop the title. Bayley has been the Champion for a considerable amount of time, and because it's impossible to imagine either Becky Lynch, Bray Wyatt or Brock Lesnar dropping their titles before WrestleMania, one assumes that Bayley will lose her prestigious Championship. And this is because it could lead to a very interesting scenario, in my opinion.
As things stand at the moment, Bayley and Sasha Banks are on the same page, allied as 'best friends' and 'role models'. But we all know that the money is in them feuding against one another, considering that they created magic back when they worked each other, taking the women's evolution to the next level. So, if Naomi were to win the title or even Sasha Banks does at the Elimination Chamber, it could lead to some very exciting possibilities.
Bayley losing the SmackDown Women's Championship may make the product very interesting, in my opinion.
John Morrison reinvented himself outside WWE and whether you're a fan of his from his Lucha Underground run or his stint as Johnny Impact in Impact Wrestling, one has to admit that he's a very different star from the man who dominated WWE all those years back. And so is The Miz, who's risen the ranks and become a veteran in the locker room (which is ironic because everyone assumed that he wouldn't last for very long in WWE).
And even though The New Day is incredibly popular and Vince McMahon can call upon them at any time to put on a great show, the fact of the matter is that Big E and Kofi Kingston can always win back the titles down the line. It's time for The Miz and John Morrison to become SmackDown Tag Team Champions and rule the division for a while until Heavy Machinery or someone else unseats them.
So yes, expect a title change in Saudi Arabia. Even if it's a short-lived reign.
| english |
{"batchcomplete":"","query":{"normalized":[{"from":"Anik\u00f3_Gy\u00f6ngy\u00f6ssy","to":"Anik\u00f3 Gy\u00f6ngy\u00f6ssy"}],"pages":{"68130633":{"pageid":68130633,"ns":0,"title":"Anik\u00f3 Gy\u00f6ngy\u00f6ssy","pageprops":{"defaultsort":"Gy\u00f6ngy\u00f6ssy, Anik\u00f3","wikibase-shortdesc":"Hungarian water polo player","wikibase_item":"Q27898957"}}}}} | json |
<reponame>ChluNetwork/chlu-ipfs-support
module.exports = function(namespace, verbose = false){
return {
debug(msg) {
if (verbose) console.log('[DEBUG][' + namespace + '] ' + msg);
},
info(msg) {
if (verbose) console.log('[INFO][' + namespace + '] ' + msg);
},
warn(msg) {
console.warn('[WARNING][' + namespace + '] ' + msg);
},
error(msg) {
console.error('[ERROR][' + namespace + '] ' + msg);
}
};
}; | javascript |
Mercedes team boss Toto Wolff believes "everything is possible" in Formula One next year as teams adapt to new aerodynamic regulations, and he refused to rule out Williams pulling off a stunning victory in the constructors' championship.
Wolff has guided Mercedes to five consecutive titles but thinks a shake-up in the rules could lead to some surprise results in 2019.
The German pointed to the performance of Mercedes' predecessor Brawn in winning the 2009 driver and constructor crowns under similar circumstances as an example of what might occur.
"I think with the rule changes everything is possible," said Wolff.
"It is almost like 2009 where Brawn identified the double diffuser. I think there could be teams that have found loopholes, which others didn't spot, that could make the difference.
"So we are taking everybody seriously: whether it is Ferrari finishing second this year or Williams finishing 10th. All of them could come with a car that can outperform us.
"We are respecting all these teams and the effort they put into it and all of them are being seen as competitors."
Wolff added: "We've seen throughout the season that all engine manufacturers, including us, have made big steps.
"Ferrari have a very strong power unit this year. Honda made big improvements with exceptional performances in the Toro Rosso. Also Renault propelled the Red Bull to be a win candidate at almost every race at the end of the season.
"You can see engine performance is converging. We have been the leader of the pack for many years now and, in order to stay leader of the pack next year again, and return to this position, we need to push very hard and we need to set ambitious targets."
| english |
<filename>src/components/layout.js
/**
* Layout component that queries for data
* with Gatsby's StaticQuery component
*
* See: https://www.gatsbyjs.org/docs/static-query/
*/
import React, { createContext, useEffect, useMemo, useState } from "react"
import Footer from "./footer"
import "../styles/bootstrap.min.css"
import "../styles/global.css"
import MobileNav from "./mobileNav"
export const MobileContext = createContext()
export const MobileProvider = props => {
const [showMobile, setShowMobile] = useState(false)
const value = useMemo(() => [showMobile, setShowMobile], [showMobile])
return <MobileContext.Provider value={value} {...props} />
}
function Layout({ children }) {
useEffect(() => {
let viewportHeight = window.innerHeight
let images = document.querySelectorAll(".feature-image")
let imagesRect = []
let i = 0
for (let i = 0; i < images.length; i++) {
imagesRect.push(images[i].getBoundingClientRect())
}
window.addEventListener(
"scroll",
() => {
if (
window.scrollY >=
imagesRect[i].top + imagesRect[i].height - viewportHeight
) {
images[i].classList.add("slide-in")
if (i < imagesRect.length - 1) {
i++
}
}
},
{ passive: true }
)
})
return (
<MobileProvider>
<div className="position-relative" style={{ overflowX: "hidden" }}>
<main>{children}</main>
<MobileNav />
<Footer />
</div>
</MobileProvider>
)
}
export default Layout
| javascript |
<reponame>lofung/Achilles-demo<gh_stars>0
{"PREVALENCE_BY_GENDER_AGE_YEAR":{"TRELLIS_NAME":[],"SERIES_NAME":[],"X_CALENDAR_YEAR":[],"Y_PREVALENCE_1000PP":[]},"PREVALENCE_BY_MONTH":{"X_CALENDAR_MONTH":[],"Y_PREVALENCE_1000PP":[]},"CONDITIONS_BY_TYPE":{"CONCEPT_NAME":"Observation recorded from EHR","COUNT_VALUE":36},"AGE_AT_FIRST_DIAGNOSIS":{"CATEGORY":["MALE","FEMALE"],"MIN_VALUE":[11,15],"P10_VALUE":[15,15],"P25_VALUE":[49,35],"MEDIAN_VALUE":[59,47],"P75_VALUE":[73,67],"P90_VALUE":[77,81],"MAX_VALUE":[81,82]}}
| json |
{"id":"../node_modules/glamor-tachyons/lib/reset.js","dependencies":[{"name":"D:\\Tensorflow.JS\\tfjs\\package.json","includedInParent":true,"mtime":1556423378594},{"name":"D:\\Tensorflow.JS\\tfjs\\node_modules\\glamor-tachyons\\package.json","includedInParent":true,"mtime":1556419577853},{"name":"../tachyons/reset","loc":{"line":3,"column":20},"parent":"D:\\Tensorflow.JS\\tfjs\\node_modules\\glamor-tachyons\\lib\\reset.js","resolved":"D:\\Tensorflow.JS\\tfjs\\node_modules\\glamor-tachyons\\tachyons\\reset.js"}],"generated":{"js":"'use strict'\n\nvar reset = require('../tachyons/reset')\n\n// TODO: glamor/reset has an out of date normalize version compared to Tachyons,\n// so we need to add it to the global\nmodule.exports = function (glamor) {\n reset.forEach(function (rule) {\n glamor.insertRule(rule)\n })\n}\n"},"sourceMaps":{"js":{"mappings":[{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":1,"column":0},"generated":{"line":1,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":2,"column":0},"generated":{"line":2,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":3,"column":0},"generated":{"line":3,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":4,"column":0},"generated":{"line":4,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":5,"column":0},"generated":{"line":5,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":6,"column":0},"generated":{"line":6,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":7,"column":0},"generated":{"line":7,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":8,"column":0},"generated":{"line":8,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":9,"column":0},"generated":{"line":9,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":10,"column":0},"generated":{"line":10,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":11,"column":0},"generated":{"line":11,"column":0}},{"source":"../node_modules/glamor-tachyons/lib/reset.js","original":{"line":12,"column":0},"generated":{"line":12,"column":0}}],"sources":{"../node_modules/glamor-tachyons/lib/reset.js":"'use strict'\n\nvar reset = require('../tachyons/reset')\n\n// TODO: glamor/reset has an out of date normalize version compared to Tachyons,\n// so we need to add it to the global\nmodule.exports = function (glamor) {\n reset.forEach(function (rule) {\n glamor.insertRule(rule)\n })\n}\n"},"lineCount":12}},"error":null,"hash":"dc6022cc973d65b2d980c39ef2da30a2","cacheData":{"env":{}}} | json |
{
"indexname": "sensortagdata",
"elasticserver": "192.168.0.66",
"noDataWarningMins": 30,
"logLocation": "./sensortags.log",
"hive" : {
"username": "<EMAIL>",
"password": "<PASSWORD>"
},
"wirelesstag" : {
"wirelesstagserviceurl": "https://my.wirelesstag.net/",
"username": "<EMAIL>",
"password": "<PASSWORD>"
},
"email" : {
"smtpserver" : "smtp.gmail.com",
"smtpport": 586,
"username" : "<EMAIL>",
"password" : "<PASSWORD>",
"toaddress" : "<EMAIL>",
"fromaddress" : "<EMAIL>",
"toname" : "Sensor Tag Warning Recipient"
}
}
| json |
<reponame>jordan4ibanez/Portal-API
# Portal-API
| markdown |
@font-face {
font-family: 'Playfair Display';
src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.eot');
src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.woff') format('woff'),
url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Playfair Display';
src: url('../fonts/playfairDisplay/PlayfairDisplay-Bold.eot');
src: url('../fonts/playfairDisplay/PlayfairDisplay-Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/playfairDisplay/PlayfairDisplay-Bold.woff') format('woff'),
url('../fonts/playfairDisplay/PlayfairDisplay-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto/Roboto-Regular.eot');
src: url('../fonts/Roboto/Roboto-Regular.eot?#iefix') format('embedded-opentype'),
url('../fonts/Roboto/Roboto-Regular.woff') format('woff'),
url('../fonts/Roboto/Roboto-Regular.ttf') format('truetype');
font-weight: 400;
font-style: normal;
}
@font-face {
font-family: 'Roboto';
src: url('../fonts/Roboto/Roboto-Bold.eot');
src: url('../fonts/Roboto/Roboto-Bold.eot?#iefix') format('embedded-opentype'),
url('../fonts/Roboto/Roboto-Bold.woff') format('woff'),
url('../fonts/Roboto/Roboto-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
} | css |
export class Exam {
public userId: number;
public score: number;
}
export class ExamView {
public userName: string;
public score: number;
public createDate: string;
}
| typescript |
<gh_stars>0
/*jshint node: true */
'use strict';
var memTransport;
function MemSender(session) {
var _buffer = [];
memTransport.add(this);
this.send = function (msg) {
_buffer.push(msg);
memTransport.requestFlush();
};
this.handleBuffer = function () {
if (_buffer.length === 0)
return false;
var msg = _buffer.shift();
if (null === msg) {
session.sender._memClose();
}
else {
session.handle(msg);
}
return true;
};
this.close = function () {
this.send(null);
};
this._memClose = function () {
session.cleanup();
};
}
function MemTransport() {
var _streams = [];
var _isFlush = false;
var _flushRequested = false;
this.requestFlush = function () {
if (!_flushRequested) {
_flushRequested = true;
process.nextTick(function () {
this.processStreams();
}.bind(this));
}
};
this.processStreams = function () {
var i, found;
_flushRequested = false;
found = false;
for (i=0; i < _streams.length; i++) {
found = found || _streams[i].handleBuffer();
}
if (found) {
this.requestFlush();
}
};
this.add = function (pipe) {
_streams.push(pipe);
};
}
memTransport = new MemTransport();
exports.Sender = MemSender;
| javascript |
<reponame>dejakob/node-alegrify-server<filename>cli/gcloud-bundle.js
console.log('UPLOADING JS/CSS TO GOOGLE CLOUD')
const ls = require('ls');
const path = require('path');
const PROJECT_ID = 'alegrify';
const BUCKET_NAME = 'alegrify';
const GoogleCloud = require('@google-cloud/storage');
const storage = new GoogleCloud.Storage({
projectId: PROJECT_ID,
keyFilename: path.join(__dirname, '../GOOGLE_CLOUD_CONFIG.json')
});
const bucket = storage.bucket(BUCKET_NAME);
const pathStart = path.join(__dirname, '/../');
const appJsFiles = ls(path.join(pathStart, 'node_modules/alegrify-web/build/static/js/*.js'));
const appCssFiles = ls(path.join(pathStart, 'node_modules/alegrify-web/build/static/css/*.css'));
uploadAll();
async function uploadAll() {
for (let appJsFile of appJsFiles) {
const appJs = appJsFile.file;
await new Promise((resolve, reject) => {
const fullPathJs = path.join(pathStart, `node_modules/alegrify-web/build/static/js/${appJs}`);
bucket.upload(fullPathJs, { destination: `js/${appJs}` }, (err, file) => {
if (err) { throw new Error('COULD NOT UPLOAD JS') }
else {
file.makePublic()
console.log('make file public', file.name);
return resolve();
}
});
});
}
for (let appCssFile of appCssFiles) {
const appCss = appCssFile.file;
await new Promise((resolve, reject) => {
const fullPathCss = path.join(pathStart, `node_modules/alegrify-web/build/static/css/${appCss}`);
bucket.upload(fullPathCss, { destination: `css/${appCss}` }, (err, file) => {
if (err) { throw new Error('COULD NOT UPLOAD CSS') }
else {
file.makePublic();
console.log('make file public', file.name);
return resolve();
}
});
});
}
}
| javascript |
Ahmedabad: England were bowled out for a paltry 81 in their second innings in the ongoing third Test against India here Thursday. In the pink ball game, Indian spinners Axar Patel (5/32), Ravichandran Ashwin (4/48) and Washington Sundar (1/1) completely ran through the Indian innings. It means that India will have to get 49 runs to win the game and go 2-1 up in the four-Test series.
This was Axar Patel’s second five-wicket haul in the game and he has picked up 11 scalps in the match. Ashwin on the other hand, became the fourth Indian bowler to get to 400 Test wickets when he dismissed Jofra Archer.
None of the England could settle down against the Indian spin attack. Ben Stokes (25), Joe Root (19) and Ollie Pope (12) were the only batsmen who could manage double-digit scores. The rest perished in a meek manner.
If India go on to win the game, they will take a big step forward in reaching the final of the World Test Championships (WTC). A 2-1 victory in the series would be enough to guarantee India’s place in the WTC final. New Zealand have already booked their spot in the summit clash.
At the end of the second session, India have already scored 11 without loss. It means they will need another 38 runs in the remainder of the day’s play to win the game.
Earlier in the day, India resuming at 99 for three were bowled out for 145 with Root claiming five wickets for eight runs.
So far 17 wickets have fallen on the second day. However, the pitch doesn’t look as vicious as it is being made out to be. | english |
Washington: The US is wary of the Chinese proposal to end the war in Ukraine as Beijing is offering a bogus path to peace, weighing arms sales to Russia, and showing an increasing appetite for confrontation with the democratic world, reported Radio Free Europe/Radio Liberty (RFE/RL).
Beijing is offering a bogus path to peace, weighing arms sales to Russia, and showing an increasing appetite for confrontation with the democratic world.
Released by China on February 24 to coincide with the one-year anniversary of Russia’s invasion, the 12-point proposal calls for an end to Western sanctions against Moscow, setting up humanitarian corridors for the evacuation of civilians, ensuring the regular export of Ukrainian grain, security guarantees for Russia, and calls against the use of nuclear weapons, reported RFE/RL.
The 12-point proposal pitches a gradual de-escalation of hostilities that would pave the way for peace talks.
But, China’s call for a truce between Russia and Ukraine quickly faced scrutiny as it appeared to reaffirm Beijing’s position that the West is fueling the conflict while seemingly offering Moscow a reprieve, reported RFE/RL.
“Beijing is speaking to a global audience with this paper,” Raffaello Pantucci, a senior fellow at the S. Rajaratnam School of International Studies in Singapore, told RFE/RL.
The proposal also included language that appeared to be directed at the West, including calls to end the “Cold War mentality” toward the conflict and warning against “expanding military blocs,” which are terms the Chinese Foreign Ministry has used in the past to refer to what it views as Washington’s interference in other countries’ affairs and the growth of the NATO military alliance.
A separate senior EU official told RFE/RL that the proposal should be seen in the context of China looking to appear as “a leader of the ‘Global South’ and as a peace promoter,” adding that “Europe is not wooed” by the Chinese initiative.
The Chinese call for a truce comes after a year of Beijing looking to present itself as a neutral party to the war — rejecting Western attempts to get China to condemn Russia’s war in Ukraine, reported RFE/RL.
Throughout the war, Beijing has carefully avoided any bold moves to help Russia that would lead to Western backlash while simultaneously deepening cooperation with Moscow. This has included providing crucial economic and diplomatic support for Russia, such as buying up Russian energy and parroting Moscow’s narrative of the war in its media and at international forums like the United Nations.
On February 23, Beijing also abstained — for the fourth time — from a UN vote demanding that Russian forces withdraw from Ukraine.
Meanwhile, reactions to the proposal have ranged from critical to muted, reported RFE/RL.
The Chinese paper also comes amid rising tensions between Beijing and Washington and accusations that China is considering supplying military equipment to Russia.
The claim has been raised by US officials multiple times recently, and The Wall Street Journal reported that Washington is considering releasing intelligence on the alleged arms transfer.
The German magazine Der Spiegel also claimed in a report published on February 23, citing unnamed sources, that Moscow was negotiating with a Chinese company about supplying large quantities of strike drones. | english |
<reponame>AMcherry10/Responsive-Design-Maquetaci-n-Mobile-First<filename>scroll.js<gh_stars>0
/* Codigo para hacer scroll a un div horizontal por medio de flechas.
Uso el tamaño de las cajas dentro del slide para restarselo al scrollLeft y llevarme
a la posicion deseada.
Además oculto las flechas dependiendo de en que posicion me encuentre*/
//obtengo los dos elementos de flecha
var gray_arrow_left = document.getElementById("left-gray-arrow");
var gray_arrow_right = document.getElementById("right-gray-arrow");
//el contenedor de los planes aka donde se hace scroll
var plans_container = document.getElementById("plans-slider");
//las tarjetas de planes porque necesito saber su tamaño, y este puede variar
var plans_card = document.getElementsByClassName("plans-container--card");
//averiguo el tamaño de las tarjetas, esta es la posicion central donde deberia emepezar
var size = plans_card[1].clientWidth;
//Para que la cajita del centro se muestre por default
plans_container.scrollLeft = size;
gray_arrow_left.addEventListener("click", function(){
gray_arrow_right.style.display = "inline-block";
//Le resto el tamaño de las tarjetas a la posicion del scroll para mover a la izquierda
plans_container.scrollLeft -= size;
//Si se encuentra en la primera tarjeta deberia esconder la flecha izquierda,
// pues porque ya no puede seguir llendo a la izquierda :P
if(plans_container.scrollLeft <= size*2){
gray_arrow_left.style.display = "none";
}
});
gray_arrow_right.addEventListener("click", function(){
gray_arrow_left.style.display = "inline-block";
plans_container.scrollLeft += size;
if(plans_container.scrollLeft >= size){
gray_arrow_right.style.display = "none";
}
}); | javascript |
Six love stories. Six odes to Mumbai. Modern Love, the madly popular NYT column which been filmed as a series set in New York, now has a Mumbai version, the city which is soul-sister to NYC in many ways — in its ability to absorb the millions who keep streaming in, adding to those who are already there, straining at the jib. Where do you go to, except the ocean-front, for a bit of air, some dalliance, a much-needed break from daily strife? And to stories which hold out hope.
Not for nothing, as the cliché goes, is Mumbai the most cosmopolitan of all Indian cities. Even with parochialism creeping in, it holds out its munificent arms to migrants from all over the country who submit to her chaotic embrace, because it gives them a chance to be something they are not, perchance to dream, and a way to fulfil them.
A shy fresh-off-the-boat fellow goes for a run in the morning, and fantasises about an older woman (Sarika) during the day, even as he piles up one rejection letter after another in search of that elusive job. News flash, she does too. Manzu (Pratik Gandhi) is in the closet, warding off marriage proposals from his worried folks: will his ailing grandma (Tanuja) free him up, to revel in his one true love? The unexpected connection between a content-to-be-in-Thane boy and searching-for-the-right-someone city girl (Masaba Gupta) plays out in whorls of conversation (Richard Linklater much? ) over concern for the environment and tasty missal: is it something of a curio, or will they be able to stick to it? A possessive mum (Yeo Yann Yann) of Chinese origin holds on to her traditions and her son (Meiyang Chang) while warding off a ‘vegetarian daayan’ (Wamiqa Gabbi). A voluble Kashmiri young woman (Fatima Sana Shaikh) learns the joys of being free as she navigates the insurmountable distance between Mumbai’s holey jhuggis and fancy high-rises. And a much-married couple (Arshad Warsi and Chitrangda Singh), him a permanent ‘late-lateef’, her a grumbling mum buried under demands from ‘pati’ and ‘bachcha’, tries to find her writerly mojo –the delightful Warsi giving off shades of an Amol Palekar character in a Basu Bhattacharya set-in-Bombay-movie, that director who was creating modern romantic classics back in the day in a city that used to be.
I have a friend who laughs at me every time I tell her that Mumbai is the only true ‘mahanagar’ (metropolis) India has. In my head, I tell her to be quiet and let me soak in the electric, salt-laden air of this city which never sleeps. Do these stories match up to the city they are set in? Mumbai is a hard act to follow. Did I fall into the same awed-affection while I was watching this series? Maybe not all the way, no. Because in a few segments, the tropes aren’t freshened enough, despite the attempt at giving the plots new settings. And some stretch the central conceit for a bit too long, tagged by cosy bumper-sticker philosophical end notes.
Still, each story does have something uniquely Mumbai about it — claiming the Sea Link in a humble vehicle which is not allowed on it, a dash across the city in a local train (if you haven’t done one of those, you haven’t lived, even if you emerge, crushed, on the other side), the inner workings of a Bollywood music studio, belligerent movie directors being accosted by hopeful singers who belt out their wares in urinals (yes, a true urban legend). And a few have elements which we may not have encountered before: a Sardar (Naseeruddin Shah) who understands Chinese (Cantonese? ) and universal human emotions, for example.
And overall, despite a niggle here and there, ‘Modern Love Mumbai’, produced by Pritish Nandy Communications, does what it sets out to. It gives us some characters we begin liking as we go along: Fatima Sana Shaikh starts off ultra-excitable, and is so extra that you long to tell her to calm down, but then she settles down to her vivid, physical performance. Real-life chef Ranveer Brar, who has long turned each of his YouTube cooking episodes into an act, is no actor, not yet at least, but makes up for it by his screen presence, even though the most excellent Pratik Gandhi will have to learn how to really savour a meaty ‘nihari’ before we believe he can. Then there are the performers whom we are programmed to like: it’s wonderful to see such actors as Tanuja and Sarika get something real to do.
And when you see that couple finally get a moment to themselves at Marine Drive, creating their own privacy in that most public of spaces, you fall in love with Mumbai, all over again. | english |
<filename>Generated/index/Microsoft.Management.Infrastructure.CimCmdlets/R/b81f5df44afa4b34.html
<!DOCTYPE html>
<html><head><title>CimNewSession</title><link rel="stylesheet" href="../../styles.css"/><script src="../../scripts.js"></script></head><body onload="ro();">
<div class="rH">1 reference to CimNewSession</div><div class="rA">Microsoft.Management.Infrastructure.CimCmdlets (1)</div><div class="rG" id="Microsoft.Management.Infrastructure.CimCmdlets"><div class="rF"><div class="rN">NewCimSessionCommand.cs (1)</div>
<a href="../NewCimSessionCommand.cs.html#183"><b>183</b>cimNewSession = new <i>CimNewSession</i>();</a>
</div>
</div>
</body></html> | html |
By Tanseem Haider: The Central Bureau of Investigation (CBI) has arrested seven accused in the on-going investigation of a case related to the death of Sridhar Das. The CBI had registered a case in compliance with orders dated August 19, 2021 by the Kolkata High Court pertaining to the post-poll violence in West Bengal.
The arrested accused were identified as Pranab Barkait, Pritam Roy Sarkar (arrested from Kolkata), Ratan Roy Sarkar, Liton Shil, Liton Bhaumik, Nakul Roy Sarkar and Biswajit Barman (arrested from Jaipur).
It was alleged that on May 4, 2021 at about 2. 00 pm, Sridhar Das was mercilessly beaten with a stick and iron rods by an unknown accused. It was further alleged that when the wife of the victim came to rescue her husband, she was also mercilessly beaten by the accused.
After the incident, Sridhar Das was admitted to Dinhata Hospital and later to other hospitals/nursing homes. He died during treatment on June 21, 2021.
During the investigation, the CBI identified, traced and arrested seven accused from Cooch Behar district in West Bengal, Jaipur and Kolkata who were allegedly involved in the death of the deceased.
Searches were conducted around 8 locations in Cooch Behar, which led to the recovery of incriminating documents and articles. The arrested accused were produced before the court and remanded to police custody. | english |
Why you can trust TechRadar We spend hours testing every product or service we review, so you can be sure you’re buying the best. Find out more about how we test.
For many home cinema fans the 65EC970V is a dream come true.
There are many, many occasions where its combination of a native 4K UHD resolution and OLED screen technology delivers pictures more beautiful and natural than any I've ever seen before on any television.
Its webOS operating system, moreover, ensures that the 65EC970V is still easy to use despite its cutting edge nature, and its design is gorgeous.
It needs native UHD content to really shine, though, and if you're thinking ahead you might be concerned about its lack of HDR support.
Thanks to its incredible contrast performance, native 4K UHD resolution and rich, natural colours, the 65EC970V delivers at times the best pictures we've ever seen.
Its design is stunning too, webOS delivers a great interface, and even the sound quality from the built in speakers is respectable, despite the crazily slim design.
You have to be surprisingly precise with brightness and contrast settings to maximise this stunning TV's OLED black level potential.
Colours can be a little patchy at times too, and there's no support for the rich colours and high brightness of upcoming HDR content.
If you're lucky enough to have six grand to spare you're faced with a stark TV choice between the LG 65EC970V and the Samsung UE65JS9500.
And it's a very tough choice, based around the unbeatable contrast and stunning design of the LG and the unprecedented brightness and colour intensity (as well as HDR support) of the Samsung.
Whichever way your money ultimately goes, though, the bottom line is that the 65EC970V is another ground-breaking moment for TV picture quality, and its overall score should reflect this.
John has been writing about home entertainment technology for more than two decades - an especially impressive feat considering he still claims to only be 35 years old (yeah, right). In that time he’s reviewed hundreds if not thousands of TVs, projectors and speakers, and spent frankly far too long sitting by himself in a dark room.
| english |
package com.example.ldp.ireader.presenter;
import static com.example.ldp.ireader.utils.LogUtils.*;
import com.example.ldp.ireader.model.bean.BookReviewBean;
import com.example.ldp.ireader.model.flag.BookDistillate;
import com.example.ldp.ireader.model.flag.BookSort;
import com.example.ldp.ireader.model.flag.BookType;
import com.example.ldp.ireader.model.local.LocalRepository;
import com.example.ldp.ireader.model.remote.RemoteRepository;
import com.example.ldp.ireader.presenter.contract.DiscReviewContract;
import com.example.ldp.ireader.ui.base.RxPresenter;
import java.util.List;
import io.reactivex.Single;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.disposables.Disposable;
import io.reactivex.schedulers.Schedulers;
/**
* Created by ldp on 17-4-21.
*/
public class DiscReviewPresenter extends RxPresenter<DiscReviewContract.View> implements DiscReviewContract.Presenter {
private static final String TAG = "DiscReviewPresenter";
private boolean isLocalLoad = false;
@Override
public void firstLoading(BookSort sort, BookType bookType,
int start, int limited, BookDistillate distillate) {
//获取数据库中的数据
Single<List<BookReviewBean>> localObserver = LocalRepository.getInstance()
.getBookReviews(sort.getDbName(), bookType.getNetName(),
start, limited, distillate.getDbName());
Single<List<BookReviewBean>> remoteObserver = RemoteRepository.getInstance()
.getBookReviews(sort.getNetName(), bookType.getNetName(),
start, limited, distillate.getNetName());
Single.concat(localObserver,remoteObserver)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
(beans) -> {
mView.finishRefresh(beans);
}
,
(e) ->{
isLocalLoad = true;
mView.complete();
mView.showErrorTip();
e(e);
}
,
()-> {
isLocalLoad = false;
mView.complete();
}
);
}
@Override
public void refreshBookReview(BookSort sort, BookType bookType,
int start, int limited, BookDistillate distillate) {
Disposable refreshDispo = RemoteRepository.getInstance()
.getBookReviews(sort.getNetName(), bookType.getNetName(),
start, limited, distillate.getNetName())
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
(beans)-> {
isLocalLoad = false;
mView.finishRefresh(beans);
mView.complete();
}
,
(e) ->{
mView.complete();
mView.showErrorTip();
e(e);
}
);
addDisposable(refreshDispo);
}
@Override
public void loadingBookReview(BookSort sort, BookType bookType,
int start, int limited, BookDistillate distillate) {
if (isLocalLoad){
Single<List<BookReviewBean>> single = LocalRepository.getInstance()
.getBookReviews(sort.getDbName(), bookType.getNetName(),
start, limited, distillate.getDbName());
loadBookReview(single);
}
else{
//单纯的加载数据
Single<List<BookReviewBean>> single = RemoteRepository.getInstance()
.getBookReviews(sort.getNetName(), bookType.getNetName(),
start, limited, distillate.getNetName());
loadBookReview(single);
}
}
@Override
public void saveBookReview(List<BookReviewBean> beans) {
LocalRepository.getInstance()
.saveBookReviews(beans);
}
private void loadBookReview(Single<List<BookReviewBean>> observable){
Disposable loadDispo =observable.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
(beans) -> {
mView.finishLoading(beans);
}
,
(e) -> {
mView.showError();
e(e);
}
);
addDisposable(loadDispo);
}
}
| java |
Shark Tank India's Ashneer Grover garnered unparalleled fame after appearing in the business reality show. His dialogues, such as "Kya Kar raha hai, bhai tu? " "Yeh kya doglapan hai," and "bilkul bakwass idea hai," were popular with the audience. While the show returned for a new season, Grover is missing from the prestigious panel of sharks. Now, during a recent interview, the former CEO and MD of Bharatpe revealed why he unfollowed his fellow sharks from season 1.
Grover said, "Mereko lagta hai separation clean hona chahiye. Jab main Shark Tank mein nahi bhi tha, season two mein, jitne bhi sharks they, unko maine social media se unfollow kar diya. Yaar ab woh tumhari game hai, tum khelo. Main kyun har roz dekhun ki Shark Tank ki shoot pe behind-the-scenes kya chal raha hai? Ab meri life ka part hi nahi hai, toh main kyu past mein rahun? Jab se clear hogaya tha ki mai season two mein nahi hoon, maine baaki sharks ko unfollow kar diya tha (I feel there should be separation between the show and my life now. I have even unfollowed the sharks from Shark Tank India. They should play the game now that the show is theirs. Why should I bother watching the Shark Tank India shoot? Why should I live in the past when the show is no longer a part of my life? When it became clear that I would not be returning for Season 2, I unfollowed each shark on social media). "
Meanwhile, fans have expressed their disappointment over Ashneer Grover's absence from the show on social media. Fans even urged the makers to bring him back.
Also read: The Kashmir Files in Oscars shortlist: Anupam Kher says 'answer to those who called it propaganda'
Earlier, in a conversation with RedFM, Grover was quizzed about whether the show was unable to get him for Shark Tank India Season 2 since they couldn't afford him. He replied, "Afford sirf paise se nahi hota, aukaat se hota hai (You just cannot afford a person through money, it's about status as well). " | english |
<filename>main/toolkit/test/accessibility/ov/SelectionView.java
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
package ov;
import java.util.Vector;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JOptionPane;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JToggleButton;
import javax.swing.ListSelectionModel;
import com.sun.star.accessibility.AccessibleEventId;
import com.sun.star.accessibility.AccessibleEventObject;
import com.sun.star.accessibility.AccessibleStateType;
import com.sun.star.accessibility.XAccessible;
import com.sun.star.accessibility.XAccessibleContext;
import com.sun.star.accessibility.XAccessibleSelection;
import com.sun.star.accessibility.XAccessibleStateSet;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.lang.IndexOutOfBoundsException;
/** Display a list of children and select/deselect buttons
*/
class SelectionView
extends ListeningObjectView
implements ActionListener
{
static public ObjectView Create (
ObjectViewContainer aContainer,
XAccessibleContext xContext)
{
XAccessibleSelection xSelection = (XAccessibleSelection)UnoRuntime.queryInterface(
XAccessibleSelection.class, xContext);
if (xSelection != null)
return new SelectionView(aContainer);
else
return null;
}
public SelectionView (ObjectViewContainer aContainer)
{
super (aContainer);
Layout();
}
public String GetTitle ()
{
return "Selection";
}
/** Create and arrange the widgets for this view.
*/
private void Layout ()
{
setLayout (new GridBagLayout());
GridBagConstraints aConstraints = new GridBagConstraints();
// Label that shows wheter the selection is multi selectable.
aConstraints.gridx = 0;
aConstraints.gridy = 0;
aConstraints.anchor = GridBagConstraints.WEST;
maTypeLabel = new JLabel ();
add (maTypeLabel, aConstraints);
// the JListBox
maChildrenSelector = new JPanel ();
maChildrenSelector.setPreferredSize (new Dimension (100,100));
maChildrenSelector.setLayout (new BoxLayout (maChildrenSelector, BoxLayout.Y_AXIS));
aConstraints.gridx = 0;
aConstraints.gridwidth = 4;
aConstraints.gridy = 1;
aConstraints.fill = GridBagConstraints.HORIZONTAL;
add (new JScrollPane (maChildrenSelector,
JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED),
aConstraints);
JButton aButton;
aButton = new JButton( "Select all" );
aButton.setActionCommand( "Select all" );
aButton.addActionListener( this );
aConstraints.gridx = 0;
aConstraints.gridwidth = 1;
aConstraints.gridy = 2;
aConstraints.fill = GridBagConstraints.NONE;
aConstraints.anchor = GridBagConstraints.WEST;
add (aButton, aConstraints);
aButton = new JButton( "Clear Selection" );
aButton.setActionCommand( "Clear Selection" );
aButton.addActionListener( this );
aConstraints.gridx = 1;
aConstraints.gridy = 2;
aConstraints.weightx = 1;
add (aButton, aConstraints);
setSize (getPreferredSize());
}
public void SetObject (XAccessibleContext xContext)
{
mxSelection = (XAccessibleSelection)UnoRuntime.queryInterface(
XAccessibleSelection.class, xContext);
super.SetObject (xContext);
}
public void Update ()
{
maChildrenSelector.removeAll ();
// Determine whether multi selection is possible.
XAccessibleStateSet aStateSet = mxContext.getAccessibleStateSet();
boolean bMultiSelectable = false;
ButtonGroup aButtonGroup = null;
if (aStateSet!=null && aStateSet.contains(AccessibleStateType.MULTI_SELECTABLE))
{
bMultiSelectable = true;
maTypeLabel.setText ("multi selectable");
}
else
{
maTypeLabel.setText ("single selectable");
aButtonGroup = new ButtonGroup ();
}
int nCount = mxContext.getAccessibleChildCount();
for (int i=0; i<nCount; i++)
{
try
{
XAccessible xChild = mxContext.getAccessibleChild(i);
XAccessibleContext xChildContext = xChild.getAccessibleContext();
String sName = i + " " + xChildContext.getAccessibleName();
JToggleButton aChild;
if (bMultiSelectable)
aChild = new JCheckBox (sName);
else
{
aChild = new JRadioButton (sName);
aButtonGroup.add (aChild);
}
XAccessibleStateSet aChildStateSet = mxContext.getAccessibleStateSet();
aChild.setSelected (aChildStateSet!=null
&& aChildStateSet.contains(AccessibleStateType.SELECTED));
aChild.addActionListener (this);
maChildrenSelector.add (aChild);
}
catch (IndexOutOfBoundsException e)
{
}
}
}
void SelectAll()
{
mxSelection.selectAllAccessibleChildren();
}
void ClearSelection()
{
mxSelection.clearAccessibleSelection();
}
/** Call the function associated with the pressed button.
*/
public void actionPerformed (ActionEvent aEvent)
{
String sCommand = aEvent.getActionCommand();
if (sCommand.equals ("Clear Selection"))
ClearSelection();
else if (sCommand.equals ("Select all"))
SelectAll();
else
{
// Extract the child index from the widget text.
String[] aWords = sCommand.split (" ");
int nIndex = Integer.parseInt(aWords[0]);
try
{
if (((JToggleButton)aEvent.getSource()).isSelected())
mxSelection.selectAccessibleChild (nIndex);
else
mxSelection.deselectAccessibleChild (nIndex);
}
catch (IndexOutOfBoundsException e)
{
System.err.println ("caught exception while changing selection: " + e);
}
}
}
public void notifyEvent (AccessibleEventObject aEvent)
{
if (aEvent.EventId == AccessibleEventId.SELECTION_CHANGED)
Update ();
}
private JPanel maChildrenSelector;
private XAccessibleSelection mxSelection;
private JLabel maTypeLabel;
}
| java |
<reponame>revolunet/tiny-helpers
{
"name": "One Time Secret",
"desc": "Keep sensitive info out of your email and chat logs.",
"url": "https://onetimesecret.com/",
"tags": [
"Misc",
"Security"
],
"maintainers": [],
"addedAt": "2021-09-15"
}
| json |
import { RestResult } from './../../../../rest-result';
import { OrderItem } from './../../model/order-item';
import { ShippingOrderService } from './shippingOrder.service';
import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'order-item',
templateUrl: 'order-item.component.html'
})
export class OrderItemComponent implements OnInit {
_orderId: number;
items: OrderItem[];
constructor(private service: ShippingOrderService) {
}
ngOnInit() {
}
@Input()
set orderId(orderId:number){
this._orderId=orderId;
this.service.getOrderItems(this._orderId).subscribe((res: RestResult<OrderItem[]>) => {
this.items = res.data;
});
}
get orderId(){
return this._orderId;
}
} | typescript |
GPAT online application process will end today, January 30, 2020.
By India Today Web Desk: Graduate Pharmacy Aptitude Test, GPAT registration process will be closed today, January 30, 2021, by the National Testing Agency. The last day to submit fess is till January 31, 2021.
Candidates who are interested to appear in the examination can fill GPAT application form 2021 on the official website - gpat. nat. nic. in.
For the candidates who wish to make a correction in the application form that has already been submitted, NTA will open the GPAT application form correction window 2021 from February 1 to 2.
GPAT 2021 entrance exam will be held on February 22 and February 27, 2021, for admission to Masters of Pharmacy (MPharm) programmes.
Step 1: Visit the official website of GMAT - gpat. nta. nic. in.
Step 2: On the homepage, click on the ‘Apply for GPAT 2021’ tab.
Step 3: Click on ‘New registration’ and read the instructions carefully.
Step 4: Proceed to fill the GMAT application form.
Step 5: Enter your details and security pin.
Step 6: login and complete the registration, using the GPAT application number and password.
Step 7: Submit personal, academic, BPharm, contact and other details.
Step 8: Upload passport size photograph and signature.
Step 9: Pay GPAT application fees through online mode using credit/debit cards, net banking and UPI payment gateway.
Step 10: Select the exam city.
Step 11: Download the confirmation page and take its print out for future reference. | english |
<reponame>bundestag/dip21-daten
{
"vorgangId": "20761",
"VORGANG": {
"WAHLPERIODE": "16",
"VORGANGSTYP": "Mündliche Frage",
"TITEL": "Anzahl der nach § 69a Bundesbeamtengesetz angezeigten Beschäftigungen und Anzahl der Untersagungen in der 16. Legislaturperiode\r\n",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"PLENUM": {
"PLPR_KLARTEXT": "Mündliche Frage/Schriftliche Antwort",
"PLPR_HERAUSGEBER": "BT",
"PLPR_NUMMER": "16/229",
"PLPR_SEITEN": "25604A",
"PLPR_LINK": "http://dipbt.bundestag.de:80/dip21/btp/16/16229.pdf#P.25604"
},
"EU_DOK_NR": "",
"SCHLAGWORT": [
{
"_fundstelle": "true",
"__cdata": "Beamter"
},
"Bundesbeamtengesetz",
{
"_fundstelle": "true",
"__cdata": "Erwerbstätigkeit"
}
],
"ABSTRAKT": " Originaltext der Frage(n): \r\n \r\n Wie viele Beamte bzw. Ruhestandsbeamte (bitte nach Bundesministerien aufgliedern) haben in dieser Legislaturperiode nach § 69a des Bundesbeamtengesetzes eine Beschäftigung oder Erwerbstätigkeit der letzten obersten Dienstbehörde angezeigt, und in wie vielen Fällen wurde eine Beschäftigung oder Erwerbstätigkeit untersagt, weil dienstliche Interessen dagegen sprachen? "
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": [
{
"ZUORDNUNG": "BT",
"URHEBER": "Mündliche Frage ",
"FUNDSTELLE": "26.06.2009 - BT-Drucksache 16/13569, Nr. 8",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/16/135/1613569.pdf"
},
{
"ZUORDNUNG": "BT",
"URHEBER": "Mündliche Frage/Schriftliche Antwort",
"FUNDSTELLE": "01.07.2009 - BT-Plenarprotokoll 16/229, S. 25604A",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btp/16/16229.pdf#P.25604",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Peter",
"NACHNAME": "Altmaier",
"FUNKTION": "Parl. Staatssekr.",
"RESSORT": "Bundesministerium des Innern",
"AKTIVITAETSART": "Antwort",
"SEITE": "25604A"
},
{
"PERSON_TITEL": "Dr.",
"VORNAME": "Gesine",
"NACHNAME": "Lötzsch",
"FUNKTION": "MdB",
"FRAKTION": "DIE LINKE",
"AKTIVITAETSART": "Frage",
"SEITE": "25604A"
}
]
}
]
}
}
| json |
<gh_stars>0
'use strict';
import * as models from './models';
export interface RestaurantInfo {
hoursInterval?: number;
city?: string;
maxPartySize?: number;
minPartySize?: number;
openingHours?: models.BusinessHours;
reservationHours?: models.BusinessHours;
seatingZones?: Array<string>;
id?: number;
name?: string;
address?: string;
imageUrl?: string;
facebookId?: string;
twitterAccount?: string;
websiteUrl?: string;
foursquareId?: string;
phone?: string;
timeZone?: string;
lat?: number;
lon?: number;
hasHostmeSystem?: boolean;
distance?: number;
hasLoyaltyProgram?: boolean;
acceptRemouteLine?: boolean;
acceptReservation?: boolean;
allowManualHold?: boolean;
currentLineStats?: models.WaitingStats;
}
| typescript |
from __future__ import division, print_function, absolute_import
import vzlog
import vzlog.pyplot as plt
import numpy as np
vz = vzlog.VzLog('log-image-grids')
vz.title('Image grids')
rs = np.random.RandomState(0)
x = rs.uniform(size=(9, 20, 20))
grid = vzlog.image.ImageGrid(x, cmap=plt.cm.rainbow)
grid.save(vz.impath('png'))
vz.text('You can scale the grid, creating a larger image:')
grid.save(vz.impath('png'), scale=3)
vz.text('Or, you can let your browser scale the image:')
grid.save(vz.impath('png', scale=3))
vz.text('Currently, only Firefox resizes this without blurring the image.')
vz.text('Use `ColorImageGrid` for RGB images:')
y = rs.uniform(size=(3, 20, 20, 3))
for i in range(3):
y[i, ..., i] = 0
rgb_grid = vzlog.image.ColorImageGrid(y, rows=1)
rgb_grid.save(vz.impath('png', scale=3))
z = rs.uniform(size=(10, 10))
rgb_grid = vzlog.image.ImageGrid(z)
rgb_grid.save(vz.impath('png', scale=3))
| python |
{
"name": "diego",
"meaning": "diego is a Spanish masculine given name. It derives from a re-analysis of Sant Yago (\"Saint Jacob\"), viz. in reference to Saint James the Greater, re-analysed as San Diego",
"translations": {
"jpn": "ディエゴ",
"spa": "diego",
"heb": "דייגו",
"ita": "diego",
"rus": "диего"
}
}
| json |
<gh_stars>10-100
from custom_types import *
import options as options
from process_data import mesh_utils
import models.factory as factory
from models.single_mesh_models import SingleMeshGenerator
from models.mesh_handler import MeshHandler, MeshInference, load_template_mesh
class DGTS:
def __init__(self, opt: Union[options.Options, options.TrainOption], device: D):
self.opt = opt.load()
self.generator: SingleMeshGenerator = factory.model_lc(opt, SingleMeshGenerator, device=device)
self.level = 0
self.device = device
def get_random_z(self, num_randoms: int) -> T:
if self.opt.noise_before:
return torch.randn(num_randoms, 3, device=self.device) * self.opt.noise_amplitude
return torch.randn(1, self.generator.opt.in_nf, num_randoms, device=self.device) * self.opt.noise_amplitude
def get_z_by_level(self, base_mesh: MeshHandler, level: int) -> T:
num_faces = len(base_mesh) * 4 ** level
if self.opt.noise_before:
num_faces = (num_faces - len(base_mesh)) // 2 + base_mesh.vs.shape[0]
return self.get_random_z(num_faces)
def get_z_sequence(self, base_mesh: MeshHandler, max_level: int) -> TS:
return [self.get_z_by_level(base_mesh, level) for level in range(max_level + 1)]
def __len__(self):
return len(self.generator.levels)
class Mesh2Mesh(DGTS):
def __init__(self, opt: options.Options, device: D):
super(Mesh2Mesh, self).__init__(opt, device)
self.generator.eval()
def trim(self, start: int, end: int) -> Tuple[int, int]:
if end < 0 or end > len(self) - 1:
end = len(self) - 1
if start > end:
start = end
return start, end
def get_z_sequence(self, base_mesh: MeshHandler, max_level: int) -> factory.Noise:
return factory.Noise(data=super(Mesh2Mesh, self).get_z_sequence(base_mesh, max_level))
def growing(self, mesh: MeshInference, start: int, end: int, num_frames: int, zero_places: NoiseT = ()) -> factory.Noise:
export_name = f'{self.opt.cp_folder}/inference/{mesh.mesh_name}/scene00'
start, end = self.trim(start, end)
if len(zero_places) == 1:
zero_places = zero_places * (end - start + 1)
z = self.get_z_sequence(mesh, end - start)
for i in range(min(len(z), len(zero_places))):
if zero_places[i]:
z[i] = 0
deltas = self.generator.grow_forward(mesh.copy(), z, end, start)
mesh.export(f'{export_name}/{0:02d}')
for i in range(end - start + 1):
base_vs, cur_delta = mesh.vs.clone(), deltas[i]
for j in range(num_frames):
mesh.vs = base_vs + cur_delta * (j + 1) / num_frames
mesh.export(f'{export_name}/{(num_frames * i + j + 1):02d}')
print(f'done: {num_frames * i + j + 1}/{num_frames * (end - start + 1)}')
if i < end - start:
mesh.upsample()
return z
def animate(self, mesh: MeshInference, start: int, end: int, num_scene: int, num_frames: Tuple[int, int], zero_places: NoiseT = ()):
export_name = f'{self.opt.cp_folder}/inference/{mesh.mesh_name}/scene01'
start, end = self.trim(start, end)
if len(zero_places) == 1:
zero_places = zero_places * (end - start + 1)
z_a = self.growing(mesh.copy(), start, end, num_frames[0], zero_places)
z_b = self.get_z_sequence(mesh, end - start).to(self.device)
for i in range(min(len(z_a), len(zero_places))):
if zero_places[i]:
z_b[i] = 0
z_start = z_a
num_frames = num_frames[1]
for s in range(num_scene):
for i in range(num_frames):
alpha = (i + 1) / float(num_frames)
z = z_a * (1 - alpha) + z_b * alpha
m = mesh.copy()
out = self.generator(m, z, end, start, upsample=True)
out.export(f'{export_name}/{s * num_frames + i:02d}')
print(f'frame {s * num_frames + i + 1} / {num_scene * num_frames}...')
z_a = z_b
if s == num_scene - 2:
z_b = z_start
else:
z_b = self.get_z_sequence(mesh, end - start).to(self.device)
def __call__(self, mesh: Union[str, MeshHandler, T_Mesh], start: int, end: int, zero_places: NoiseT = 0) -> MeshHandler:
MeshHandler.reset()
start, end = self.trim(start, end)
if type(zero_places) is int:
zero_places = [zero_places]
if len(zero_places) == 1:
zero_places = zero_places * (end - start + 1)
if mesh is None:
mesh = MeshHandler(mesh_utils.load_real_mesh(self.opt.template_name, start),self.opt, 0).to(self.device)
elif type(mesh) is not MeshHandler:
mesh = MeshHandler(mesh, self.opt, 0).to(self.device)
z = self.get_z_sequence(mesh, end - start)
for i in range(min(len(z), len(zero_places))):
if zero_places[i]:
z[i] = 0
remeshed = self.generator.forward(mesh, z, end, start, upsample=True)
return remeshed
class MeshGen(DGTS):
def __init__(self, opt: options.Options, device: D):
super(MeshGen, self).__init__(opt, device)
self.generator.eval()
template_name, template = load_template_mesh(opt, opt.start_level)
self.template = MeshInference(template_name, template, self.opt, self.opt.start_level).to(self.device)
self.reconstruction_z = factory.NoiseMem(opt).load().to(device)
def compose_z(self, start_level) -> factory.Noise:
random_noise = self.get_z_sequence(self.template, len(self) - 1)
noise = self.reconstruction_z[: start_level] + random_noise[start_level:]
return noise
def generate_seq(self, num_seqs: int):
for seq in range(num_seqs):
z = self.compose_z(0)
self.generator.inference_forward(self.template.copy(), z, len(self) - 1, 0,
f'{opt_.cp_folder}/inference/gen/{self.opt.mesh_name}_{seq}',
upsample=True)
def generate_all(self, num_samples: int):
for i in range(len(self.generator.levels)):
for j in range(num_samples):
out_mesh = self(i)
out_mesh.export(f'{self.opt.cp_folder}/inference/gen/{self.opt.mesh_name}_{i}_{j:02d}')
print(f'gen {self.opt.mesh_name} {i * num_samples + j +1:02d} / {len(self.generator.levels) * num_samples}')
def __call__(self, start_level: int):
with torch.no_grad():
if start_level < 0:
start_level = len(self)
start_level = min(len(self), start_level)
z = self.compose_z(start_level)
return self.generator(self.template.copy(), z, len(self) - 1)
if __name__ == '__main__':
opt_ = options.Options()
opt_.parse_cmdline()
device = CPU
with_noise = False
if opt_.gen_mode == 'generate':
mg = MeshGen(opt_, device)
mg.generate_all(opt_.num_gen_samples)
elif opt_.gen_mode == 'animate':
m2m = Mesh2Mesh(opt_, device)
in_mesh = MeshInference(opt_.target, mesh_utils.load_real_mesh(opt_.target, 0, True), opt_, 0).to(device)
m2m.animate(in_mesh, opt_.gen_levels[0], opt_.gen_levels[1], 0, (12, 17), zero_places=(0, 0, 1, 1, 1))
| python |
export * from "./decorators";
export * from "./enums";
export * from "./errors";
export * from "./IAppContext";
export * from "./IAuthenticatedUser";
export type integer = number;
export type long = number;
export type float = number;
export type timestamp = Date;
| typescript |
2 (A)Let what I have learned drop as the rain,My speech distill as the dew,(B)As the droplets on the fresh grassAnd as the showers on the herb.
6 [a]May he come down (A)like rain upon the mown grass,Like (B)showers that water the earth.
8 He is the One who (A)covers the heavens with clouds,The One who (B)provides rain for the earth,The One who (C)makes grass to sprout on the mountains,
Legacy Standard Bible Copyright ©2021 by The Lockman Foundation. All rights reserved. Managed in partnership with Three Sixteen Publishing Inc. LSBible.org For Permission to Quote Information visit https://www.LSBible.org.
| english |
For Harkesh Dhami and Dev Kumari, it has been a moment of immense joy as well as the inability to find words to describe how proud their daughter has made them. They are the proud parents of Indian Air Force (IAF) Group Captain Shaliza Dhami—the first woman officer selected to head a frontline combat unit in the Western sector facing Pakistan.
Currently posted in the operations branch of a frontline command headquarters, Group Captain Dhami, 41, will be the first woman officer in the IAF to command a missile squadron in the Western sector.
Call it a coincidence, but the feat wouldn’t have come on a better day than on the eve of International Women’s Day, and since Tuesday evening, the couple has been busy answering unending congratulatory calls at their residence in Punjab’s Ludhiana.
“I am not getting the right words to describe the feeling right now. We are just so proud of her. What has made it even more special is the occasion of Women’s Day. I am hopeful that she will inspire thousands of other women to achieve what they want to,” says teary-eyed Harkesh, 66, while speaking to The Indian Express at their residence in Laxmi Nagar.
“Except for the fact that we never stopped her from doing anything and never interfered in her choices, we have no other contribution. It is all her hard work and dedication,” Harkesh, a native of Sarabha village in Ludhiana and a retired Punjab State Power Corporation Ltd (PSPCL) employee, says.
For the world, Shaliza might be the senior IAF officer who has created history, but for her parents, she is still their little daughter whom they fondly call Babbal. “We do not call her often. We understand she keeps busy. I had sent her a congratulatory message on WhatsApp after we got the news yesterday. The reply is still awaited,” says the officer’s elated mother.
Struggling to control his tears, Harkesh recalls when it was time to send Shaliza to a school, everyone suggested he should opt for a high-end convent school but he decided against it. “I owned a cycle at that time. The kids who study in a convent school, their parents come to drop them off in swanky cars. I decided that my children will study in the school where children of common men like me study. Had I admitted her to a convent, she might have had an inferiority complex. So, we admitted her to a government school. And look where she has reached today,” he says.
Shaliza Dhami had started her journey at Government High School, PAU, from where she cleared Class 10. She then took admission to Khalsa College for Women (KCW), Ghumar Mandi, for her Class 12 and graduated in non-medical sciences subjects from the same institution.
According to Dev Kumari, 66, this is where the turning point came in her daughter’s life.
“What made all the difference was her decision to join the Air Wing of the National Cadet Corps (NCC). Her mentor P P Singh, who was from IAF, motivated her to give it a try and there was no looking back. NCC played a pivotal role in her life and decision to join IAF. We never stopped her from attending NCC camps which were held at different locations. She used to enjoy and learn so much in her NCC camps,” says Kumari, who retired from the Water Supply and Sanitation Department.
Shaliza—commissioned in IAF in 2003 as a helicopter pilot—has also been a hockey player, a painter and a dancer. She is married to IAF Wing Commander Vineet Joshi, who hails from Uttarakhand. The couple has two sons.
“We never forced our daughter to marry. It was her decision at the time when she wanted it and with the man of her choice. We have never interfered in her life,” says Harkesh.
Her brother Sarvsureshth Dhami is a defence studies professor at a university in Imphal, Manipur.
Harkesh says his only message to parents across the country is that they should give wings to their daughters to fly. “Never force them to get married. Never impose your decisions on them. Never make career choices for them, let them do what they want to,” he says. | english |
---
title: Überladen von Operatoren (F#)
description: Erfahren Sie, wie arithmetische Operatoren in einer Klasse oder einem Datensatztyp sowie auf globaler Ebene in F# zu überladen.
ms.date: 05/16/2016
ms.openlocfilehash: 6232ebf215289e6a22b9d77fbd5fa67b82460486
ms.sourcegitcommit: db8b83057d052c1f9f249d128b08d4423af0f7c2
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 11/02/2018
ms.locfileid: "44087298"
---
# <a name="operator-overloading"></a>Operatorüberladung
In diesem Thema wird beschrieben, wie arithmetische Operatoren in einer Klasse oder einem Datensatztyp sowie auf globaler Ebene überladen werden.
## <a name="syntax"></a>Syntax
```fsharp
// Overloading an operator as a class or record member.
static member (operator-symbols) (parameter-list) =
method-body
// Overloading an operator at the global level
let [inline] (operator-symbols) parameter-list = function-body
```
## <a name="remarks"></a>Hinweise
In der vorherigen Syntax wird die *-Operatorsymbol* ist einer der `+`, `-`, `*`, `/`, `=`und so weiter. Die *Parameterliste* Operanden in der Reihenfolge in der üblichen Syntax für den Operator angibt. Die *Methodentext* erstellt den resultierenden Wert.
Operatorüberladungen müssen statisch sein. Operatorüberladungen für unäre Operatoren, z. B. `+` und `-`, verwenden, muss eine Tilde (`~`) in der *-Operatorsymbol* um anzugeben, dass der Operator ein unäroperator und kein binärer Operator, siehe die folgende Deklaration.
```fsharp
static member (~-) (v : Vector)
```
Im folgenden Code wird eine Vektorklasse veranschaulicht, die über nur zwei Operatoren verfügt, einer für unäres Minus und einer für Multiplikation mit einem Skalar. In dem Beispiel werden zwei Überladungen für skalare Multiplikation benötigt, da der Operator unabhängig von der Reihenfolge verwendet werden können muss, in der der Vektor und der Skalar angezeigt werden.
[!code-fsharp[Main](../../../samples/snippets/fsharp/lang-ref-2/snippet4001.fs)]
## <a name="creating-new-operators"></a>Erstellen von neuen Operatoren
Sie können alle Standardoperatoren überladen, Sie können jedoch auch aus Sequenzen bestimmter Zeichen neue Operatoren erstellen. Zulässige Operatorzeichen sind `!`, `%`, `&`, `*`, `+`, `-`, `.`, `/`, `<`, `=`, `>`, `?`, `@`, `^`, `|`, und `~`. Das Zeichen `~` hat eine besondere Bedeutung, da mit ihm ein Operator als unärer Operator festgelegt wird. Es kann nicht in einer Operatorzeichenfolge verwendet werden. Nicht alle Operatoren können unär gemacht werden.
Rangfolge und Assoziativität des Operators hängen von der verwendeten Zeichenfolge ab. Die Assoziativität kann entweder von links nach rechts oder von rechts nach links sein. Sie wird immer verwendet, wenn Operatoren der gleichen Rangfolge nacheinander ohne Klammern angezeigt werden.
Das Operatorzeichen `.` wirkt sich nicht auf die Rangfolge aus. Wenn Sie eine eigene Version von Multiplikation definieren möchten, die die gleiche Rangfolge und Assoziativität wie die übliche Multiplikation aufweist, können Sie daher z. B. den Operator `.*` erstellen.
Nur die Operatoren `?` und `?<-` integritätsdienststatus mit `?`.
Eine Tabelle mit der Rangfolge aller Operatoren in F# finden Sie im [Symbol- und Operatorenreferenz](symbol-and-operator-reference/index.md).
## <a name="overloaded-operator-names"></a>Namen von überladenen Operatoren
Wenn der F#-Compiler einen Operatorausdruck kompiliert, wird eine Methode mit einem vom Compiler generierten Namen für den Operator erzeugt. Dies ist der Name, der in MSIL (Microsoft Intermediate Language) sowie in IntelliSense und bei Reflektion für die Methode angezeigt wird. Sie müssen diese Namen normalerweise nicht in F#-Code verwenden.
In der folgenden Tabelle werden die Standardoperatoren und die entsprechenden generierten Namen dargestellt.
|Operator|Generierter Name|
|--------|--------------|
|`[]`|`op_Nil`|
|`::`|`op_Cons`|
|`+`|`op_Addition`|
|`-`|`op_Subtraction`|
|`*`|`op_Multiply`|
|`/`|`op_Division`|
|`@`|`op_Append`|
|`^`|`op_Concatenate`|
|`%`|`op_Modulus`|
|`&&&`|`op_BitwiseAnd`|
|<code>|||</code>|`op_BitwiseOr`|
|`^^^`|`op_ExclusiveOr`|
|`<<<`|`op_LeftShift`|
|`~~~`|`op_LogicalNot`|
|`>>>`|`op_RightShift`|
|`~+`|`op_UnaryPlus`|
|`~-`|`op_UnaryNegation`|
|`=`|`op_Equality`|
|`<=`|`op_LessThanOrEqual`|
|`>=`|`op_GreaterThanOrEqual`|
|`<`|`op_LessThan`|
|`>`|`op_GreaterThan`|
|`?`|`op_Dynamic`|
|`?<-`|`op_DynamicAssignment`|
|<code>|></code>|`op_PipeRight`|
|<code><|</code>|`op_PipeLeft`|
|`!`|`op_Dereference`|
|`>>`|`op_ComposeRight`|
|`<<`|`op_ComposeLeft`|
|`<@ @>`|`op_Quotation`|
|`<@@ @@>`|`op_QuotationUntyped`|
|`+=`|`op_AdditionAssignment`|
|`-=`|`op_SubtractionAssignment`|
|`*=`|`op_MultiplyAssignment`|
|`/=`|`op_DivisionAssignment`|
|`..`|`op_Range`|
|`.. ..`|`op_RangeStep`|
Andere, hier nicht aufgeführte Kombinationen von Operatorzeichen können als Operatoren verwendet werden, und ihre Namen werden durch das Verketten von Namen für die einzelnen Zeichen in der folgenden Tabelle gebildet. Z. B. +! wird `op_PlusBang`.
|Operatorzeichen|name|
|------------------|----|
|`>`|`Greater`|
|`<`|`Less`|
|`+`|`Plus`|
|`-`|`Minus`|
|`*`|`Multiply`|
|`/`|`Divide`|
|`=`|`Equals`|
|`~`|`Twiddle`|
|`%`|`Percent`|
|`.`|`Dot`|
|`&`|`Amp`|
|<code>|</code>|`Bar`|
|`@`|`At`|
|`^`|`Hat`|
|`!`|`Bang`|
|`?`|`Qmark`|
|`(`|`LParen`|
|`,`|`Comma`|
|`)`|`RParen`|
|`[`|`LBrack`|
|`]`|`RBrack`|
## <a name="prefix-and-infix-operators"></a>Präfix- und Infixoperatoren
*Präfix* Operatoren vor einem Operanden oder Operanden, ähnlich wie eine Funktion platziert werden sollen. *Infix* Operatoren zwischen zwei Operanden platziert werden sollen.
Nur bestimmte Operatoren können als Präfixoperatoren verwendet werden. Einige Operatoren sind immer Präfixoperatoren, andere können Infix- oder Präfixoperatoren sein und der Rest ist immer Infixoperatoren. Operatoren, die mit `!` beginnen, außer `!=` und der Operator `~` oder wiederholte Sequenzen von `~`, sind immer Präfixoperatoren. Die Operatoren `+`, `-`, `+.`, `-.`, `&`, `&&`, `%` und `%%` können Vorzeichenoperatoren oder Infixoperatoren sein. Sie unterscheiden die Präfix-Version dieser Operatoren von der Infix-Version, indem Sie `~` am Anfang eines Präfixoperators hinzufügen, wenn er definiert wird. Das Symbol `~` wird nicht verwendet, wenn Sie den Operator verwenden, sondern nur wenn definiert.
## <a name="example"></a>Beispiel
Im folgenden Code wird veranschaulicht, wie mit Operatorüberladung ein Bruchtyp implementiert wird. Ein Bruch wird durch einen Zähler und einen Nenner dargestellt. Mit der Funktion `hcf` wird der größte gemeinsame Teiler zum Kürzen von Brüchen bestimmt.
[!code-fsharp[Main](../../../samples/snippets/fsharp/lang-ref-2/snippet4002.fs)]
**Ausgabe:**
```
3/4 + 1/2 = 5/4
3/4 - 1/2 = 1/4
3/4 * 1/2 = 3/8
3/4 / 1/2 = 3/2
3/4 + 1 = 7/4
```
## <a name="operators-at-the-global-level"></a>Operatoren auf globaler Ebene
Sie können Operatoren auch auf globaler Ebene definieren. Der folgende Code definiert einen Operator `+?`.
[!code-fsharp[Main](../../../samples/snippets/fsharp/lang-ref-2/snippet4003.fs)]
Die Ausgabe des vorangehenden Codes lautet `12`.
Sie können die normalen arithmetischen Operatoren auf diese Weise neu definieren, da gemäß den Bereichsregeln für F# neu definierte Operatoren Vorrang vor den integrierten Operatoren haben.
Das Schlüsselwort `inline` wird oft mit globalen Operatoren verwendet, bei denen es sich häufig um kleine Funktionen handelt, die nach Möglichkeit in den aufrufenden Code integriert werden sollten. Wenn Sie Operatorfunktionen als Inlinefunktionen festlegen, können diese auch mit statisch aufgelösten Typparametern verwendet werden, um statisch aufgelösten generischen Code zu erstellen. Weitere Informationen finden Sie unter [Inlinefunktionen](functions/inline-functions.md) und [Statisch aufgelöste Typparameter](generics/statically-resolved-type-parameters.md).
## <a name="see-also"></a>Siehe auch
- [Mitglieder](members/index.md)
| markdown |
<reponame>Team-Multiplayer/account-ng<filename>src/app/layouts/admin-layout/admin-layout.routing.ts
import { Routes } from "@angular/router";
import { AdminLayoutComponent } from "src/app/layouts/admin-layout/admin-layout.component";
import { DepositarComponent } from "src/app/pages/area-logada/depositar/depositar.component";
import { DashboardComponent } from "src/app/pages/area-logada/dashboard/dashboard.component";
import { PagarComponent } from "src/app/pages/area-logada/pagar/pagar.component";
import { TransferirComponent } from "src/app/pages/area-logada/transferir/transferir.component";
import { LogadoGuard } from "src/app/shared/guards/logado/logado.guard";
export const AdminLayoutRoutes: Routes = [
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full'
},
{
path: '',
component: AdminLayoutComponent,
canActivate: [LogadoGuard],
children: [
{
path: 'dashboard',
component: DashboardComponent
},
{
path: 'depositar',
component: DepositarComponent
},
{
path: 'pagar',
component: PagarComponent
},
{
path: 'transferir',
component: TransferirComponent
},
]
}
];
| typescript |
<reponame>amolofos/kata<filename>TODO-categorise-past-exercises/main/java/com/dkafetzi/kata/KataSettings.java<gh_stars>0
package com.dkafetzi.kata;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@ConfigurationProperties(prefix = "app", ignoreInvalidFields=true)
@Configuration
public class KataSettings {
private List<String> testsList;
public void setTestsList(List<String> testsList) {
this.testsList = testsList;
}
public List<String> getTestsList() {
return testsList;
}
} | java |
<filename>include/cppurses/widget/widgets/vertical_scrollbar.hpp<gh_stars>0
#ifndef CPPURSES_WIDGET_WIDGETS_VERTICAL_SCROLLBAR_HPP
#define CPPURSES_WIDGET_WIDGETS_VERTICAL_SCROLLBAR_HPP
#include <signals/signal.hpp>
#include <cppurses/widget/layouts/vertical_layout.hpp>
#include <cppurses/widget/widget.hpp>
#include <cppurses/widget/widgets/push_button.hpp>
#include <cppurses/widget/widgets/textbox_base.hpp>
namespace cppurses {
class Vertical_scrollbar : public Vertical_layout {
public:
Vertical_scrollbar();
Vertical_scrollbar(Textbox_base& tb);
Push_button& up_button = this->make_child<Push_button>("▴");
Widget& middle = this->make_child<Widget>();
Push_button& down_button = this->make_child<Push_button>("▾");
// Signals
sig::Signal<void()>& up = up_button.clicked;
sig::Signal<void()>& down = down_button.clicked;
private:
void initialize();
};
} // namespace cppurses
#endif // CPPURSES_WIDGET_WIDGETS_VERTICAL_SCROLLBAR_HPP
| cpp |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import * as localStorage from './models/local_storage.js';
import * as state from './state.js';
/**
* Enables or disables expert mode.
* @param enable Whether to enable or disable expert mode
*/
export function setExpertMode(enable: boolean): void {
state.set(state.State.EXPERT, enable);
localStorage.set('expert', enable);
}
/**
* Toggles expert mode.
*/
export function toggleExpertMode(): void {
const newState = !state.get(state.State.EXPERT);
setExpertMode(newState);
}
| typescript |
<reponame>CSBP-CPSE/rural-viewer
CSDUID,RuralUrbanFlag,CSDpop2016,Period1,Period2,Period3,Period4,Period5,Period6,Period7,Period8
5941021,Urban,3842.0,-999,-999,-999,22.6,14.8,13.8,-999,-999
| json |
<reponame>kamilsk/paymaster
// +build integration
package test
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestLicense(t *testing.T) {
assert.True(t, true)
}
| go |
import logging
import sys
import time
import requests
from transifex.native.consts import (KEY_CHARACTER_LIMIT,
KEY_DEVELOPER_COMMENT, KEY_OCCURRENCES,
KEY_TAGS)
TRANSIFEX_CDS_HOST = 'https://cds.svc.transifex.net'
TRANSIFEX_CDS_URLS = {
'FETCH_AVAILABLE_LANGUAGES': '/languages',
'FETCH_TRANSLATIONS_FOR_LANGUAGE': '/content/{language_code}',
'PUSH_SOURCE_STRINGS': '/content/',
'INVALIDATE_CACHE': '/invalidate',
'PURGE_CACHE': '/purge',
}
logger = logging.getLogger('transifex.native.cds')
logger.addHandler(logging.StreamHandler(sys.stderr))
# A mapping of meta keys
# (interface_key: cds_key)
# Only contains meta keys that are different between the two
MAPPING = {
KEY_DEVELOPER_COMMENT: 'developer_comment',
KEY_CHARACTER_LIMIT: 'character_limit',
KEY_TAGS: 'tags',
KEY_OCCURRENCES: 'occurrences',
}
# Number of times to retry connecting to CDS before bailing out
MAX_RETRIES = 3
RETRY_DELAY_SEC = 2
class EtagStore(object):
""" Manges etags """
# Probably we need to a duration policy here
def __init__(self):
self._mem = {}
def set(self, key, value):
self._mem[key] = value
def get(self, key):
return self._mem.get(key, '')
class CDSHandler(object):
"""Handles communication with the Content Delivery Service."""
def __init__(self, configured_languages, token, secret=None,
host=TRANSIFEX_CDS_HOST):
"""Constructor.
:param list configured_languages: a list of language codes for the
configured languages in the application
:param str token: the API token to use for connecting to the CDS
:param str host: the host of the Content Delivery Service
"""
self.configured_language_codes = configured_languages
self.token = token
self.secret = secret
self.host = host or TRANSIFEX_CDS_HOST
self.etags = EtagStore()
def fetch_languages(self):
"""Fetch the languages defined in the CDS for the specific project.
Contains the source language and all target languages.
:return: a list of language information
:rtype: dict
"""
cds_url = TRANSIFEX_CDS_URLS['FETCH_AVAILABLE_LANGUAGES']
languages = []
try:
response = self.retry_get_request(
self.host + cds_url,
headers=self._get_headers(),
)
if not response.ok:
logger.error(
'Error retrieving languages from CDS: `{}`'.format(
response.reason
)
)
response.raise_for_status()
json_content = response.json()
languages = json_content['data']
except (KeyError, ValueError):
# Compatibility with python2.7 where `JSONDecodeError` doesn't
# exist
logger.error(
'Error retrieving languages from CDS: Malformed response')
except requests.ConnectionError:
logger.error(
'Error retrieving languages from CDS: ConnectionError')
except Exception as e:
logger.error('Error retrieving languages from CDS: UnknownError '
'(`{}`)'.format(str(e)))
return languages
def fetch_translations(self, language_code=None):
"""Fetch all translations for the given organization/project/(resource)
associated with the current token.
Returns a tuple of refresh flag and a dictionary of the fetched
translations per language. Refresh flag is going to be True whenever
fresh data has been acquired, False otherwise.
:return: a dictionary of (refresh_flag, translations) tuples
:rtype: dict
"""
cds_url = TRANSIFEX_CDS_URLS['FETCH_TRANSLATIONS_FOR_LANGUAGE']
translations = {}
if not language_code:
languages = [lang['code'] for lang in self.fetch_languages()]
else:
languages = [language_code]
for language_code in set(languages) & \
set(self.configured_language_codes):
try:
response = self.retry_get_request(
(self.host + cds_url.format(language_code=language_code)),
headers=self._get_headers(
etag=self.etags.get(language_code)
)
)
if not response.ok:
logger.error(
'Error retrieving translations from CDS: `{}`'.format(
response.reason
)
)
response.raise_for_status()
# etags indicate that no translation have been updated
if response.status_code == 304:
translations[language_code] = (False, {})
else:
self.etags.set(
language_code, response.headers.get('ETag', ''))
json_content = response.json()
translations[language_code] = (
True, json_content['data']
)
except (KeyError, ValueError):
# Compatibility with python2.7 where `JSONDecodeError` doesn't
# exist
logger.error('Error retrieving translations from CDS: '
'Malformed response') # pragma no cover
translations[language_code] = (False, {}) # pragma no cover
except requests.ConnectionError:
logger.error(
'Error retrieving translations from CDS: ConnectionError')
translations[language_code] = (False, {})
except Exception as e:
logger.error(
'Error retrieving translations from CDS: UnknownError '
'(`{}`)'.format(str(e))
) # pragma no cover
translations[language_code] = (False, {})
return translations
def push_source_strings(self, strings, purge=False):
"""Push source strings to CDS.
:param list(SourceString) strings: a list of `SourceString` objects
holding source strings
:param bool purge: True deletes destination source content not included
in pushed content. False appends the pushed content to destination
source content.
:return: the HTTP response object
:rtype: requests.Response
"""
if not self.secret:
raise Exception('You need to use `TRANSIFEX_SECRET` when pushing '
'source content')
cds_url = TRANSIFEX_CDS_URLS['PUSH_SOURCE_STRINGS']
data = {k: v for k, v in [self._serialize(item) for item in strings]}
try:
response = requests.post(
self.host + cds_url,
headers=self._get_headers(use_secret=True),
json={
'data': data,
'meta': {'purge': purge},
}
)
response.raise_for_status()
except requests.ConnectionError:
logger.error(
'Error pushing source strings to CDS: ConnectionError')
except Exception as e:
logger.error('Error pushing source strings to CDS: UnknownError '
'(`{}`)'.format(str(e)))
return response
def get_push_status(self, job_path):
"""Get source string push job status
:param str job_path: Job url path
:return: the HTTP response object
:rtype: requests.Response
"""
if not self.secret:
raise Exception('You need to use `TRANSIFEX_SECRET` when polling '
'source content push')
try:
response = requests.get(
self.host + job_path,
headers=self._get_headers(use_secret=True),
)
response.raise_for_status()
except requests.ConnectionError:
logger.error(
'Error polling source strings push to CDS: ConnectionError')
except Exception as e:
logger.error(
'Error polling source strings push to CDS: UnknownError '
'(`{}`)'.format(str(e)))
return response
def invalidate_cache(self, purge=False):
"""Invalidate CDS cache.
:param bool purge: True deletes CDS cache entirely instead of
triggering a job to re-cache content.
:return: the HTTP response object
:rtype: requests.Response
"""
if not self.secret:
raise Exception('You need to use `TRANSIFEX_SECRET` when '
'invalidating cache')
cds_url = TRANSIFEX_CDS_URLS['PURGE_CACHE'] if purge else \
TRANSIFEX_CDS_URLS['INVALIDATE_CACHE']
try:
response = requests.post(
self.host + cds_url,
headers=self._get_headers(use_secret=True),
json={}
)
response.raise_for_status()
except requests.ConnectionError:
logger.error(
'Error invalidating CDS: ConnectionError')
except Exception as e:
logger.error('Error invalidating CDS: UnknownError '
'(`{}`)'.format(str(e)))
return response
def _serialize(self, source_string):
"""Serialize the given source string to a format suitable for the CDS.
:param transifex.native.parsing.SourceString source_string: the object
to serialize
:return: a tuple that contains ths string key and its data,
as (key, data)
:rtype: tuple
"""
data = {
'string': source_string.string,
'meta': {
MAPPING.get(k, k): v
for k, v in source_string.meta.items()
},
}
if source_string.context:
data['meta']['context'] = source_string.context
return source_string.key, data
def _get_headers(self, use_secret=False, etag=None):
"""Return the headers to use when making requests.
:param bool use_secret: if True, the Bearer authorization header
will also include the secret, otherwise it will only use the token
:param str etag: an optional etag to include
:return: a dictionary with all headers
:rtype: dict
"""
headers = {
'Authorization': 'Bearer {token}{secret}'.format(
token=self.token,
secret=(':' + self.secret if use_secret else '')
),
'Accept-Encoding': 'gzip',
'Accept-Version': 'v2',
'X-NATIVE-SDK': 'python',
}
if etag:
headers['If-None-Match'] = etag
return headers
def retry_get_request(self, *args, **kwargs):
""" Resilient function for GET requests """
retries, last_response_status = 0, 202
while (last_response_status == 202 or
500 <= last_response_status < 600 and
retries < MAX_RETRIES):
if 500 <= last_response_status < 600:
retries += 1
time.sleep(retries * RETRY_DELAY_SEC)
response = requests.get(*args, **kwargs)
last_response_status = response.status_code
return response
| python |
<reponame>zhikecore/superblog
package com.zhike.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
/**
* Copyright (C) 2022 智客工坊(52interview.com)
* The SpringBoot Super-blog Project.
* All rights reserved.
* <p>
* > Github地址: https://github.com/zhikecore/superblog.git
* > 教程地址: https://www.52interview.com/book/36
* > 智客工坊社区:https://www.52interview.com/
* <p>
* 智客工坊(52interview.com) - 经验创造价值,分享成就未来。
* <p>
* DefaultViewConfig at 2022/1/16 21:04,code by JeffreyHu
* You can contact author with <EMAIL>.
*/
@Slf4j
//@Configuration
public class DefaultViewConfig extends WebMvcConfigurationSupport {
/**
* 添加主页方法
*
* @param registry 主页注册器
*/
public void addViewControllers(ViewControllerRegistry registry) {
//System.out.println("设置了主页");
log.info("access to DefaultViewConfig. 设置你Default.index 为主页!");
//设置主页
registry.addViewController("/").setViewName("/default/index");
//设置优先级
registry.setOrder(Ordered.HIGHEST_PRECEDENCE);
//将主页注册器添加到视图控制器中
super.addViewControllers(registry);
}
}
| java |
# cod
A command line interface that helps you code your data in clear text.
## Design philosophy
1. **Non-destructive** coding
* Codes are stored *in* the file, but *can be removed*.
2. **Cleartext**
* All tools are designed for qualitative data in cleartext. Whenever possible, the tools make use of markdown features.
3. **Cleartext tags**
* All tags are inserted into the raw data in cleartext.
4. **Fixed linewidth** assumed
* *Note*: All documents should be converted to fixed linewidth .txt or .md prior to coding.
* Fixed linewidth allows for the coding of specific sections/sentences through the use of commands such as ```grep```.
5. **Inline tags**
* Inline codes are inserted at the end of each line.
6. **Document tags**
* Document tags are inserted at the end of the document, but are otherwise equivalent to inline codes. Tools for inline codes can be reused for document tags.
7. **Time stamps**
* One iteration of coding uses one time stamp.
* Pause any time and continue where you left of by running the previous command without generating a new time stamp.
* Before you enter into a new iteration of coding, create a new time stamp by using the ```-n``` flag.
8. Tags use **underscore**
* Tags to not have spaces to allow for easy search from the command line.
9. **Pipe friendly**
* Use ```cod``` to filter by tag before you begin coding.
* Or write your own commands and pipe a list of documents to code into ```cod```.
10. **YAML** coding system
* Create your own coding system.
* Save your coding system to a YAML file and change it as you go.
* Recode your existing codes from your iteration by using a pipe.
11. **Unique IDs**
* Create your own IDs or use hashes to refer to your documents when recoding.
| markdown |
{"expireTime":9007200887867085000,"key":"transformer-remark-markdown-html-ast-5bd8aa58a3b067a41a1217ce1cc8aff0-gatsby-remark-external-linksgatsby-remark-imagesgatsby-remark-code-titlesgatsby-remark-prismjs-","val":{"type":"root","children":[{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Worked upon a project to build Covid-19 India Dashboard, sourcing time series data and building pipelines to provide visualisations for analysing data using Power Bi.","position":{"start":{"line":2,"column":3,"offset":3},"end":{"line":2,"column":169,"offset":169}}}],"position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":2,"column":169,"offset":169}}},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Provided forecast for the daily cases data of Covid-19 India. Showcased data related to cases, deaths and vaccinations on a state level with time series also and provided visualization for data on a daily automated basis.","position":{"start":{"line":3,"column":3,"offset":172},"end":{"line":3,"column":224,"offset":393}}}],"position":{"start":{"line":3,"column":1,"offset":170},"end":{"line":3,"column":224,"offset":393}}},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Learnt about the industrial data analysis methodologies and procedures.","position":{"start":{"line":4,"column":3,"offset":396},"end":{"line":4,"column":74,"offset":467}}}],"position":{"start":{"line":4,"column":1,"offset":394},"end":{"line":4,"column":74,"offset":467}}},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Check out my post about ","position":{"start":{"line":5,"column":3,"offset":470},"end":{"line":5,"column":27,"offset":494}}},{"type":"element","tagName":"a","properties":{"href":"https://www.linkedin.com/posts/yatharth-bansal-b919671b4_eyindia-dataanalytics-datascience-activity-6846797047551660032-MXui","target":"_blank","rel":"nofollow noopener noreferrer"},"children":[{"type":"text","value":"EY certificate","position":{"start":{"line":5,"column":28,"offset":495},"end":{"line":5,"column":42,"offset":509}}}],"position":{"start":{"line":5,"column":27,"offset":494},"end":{"line":5,"column":169,"offset":636}}},{"type":"text","value":".","position":{"start":{"line":5,"column":169,"offset":636},"end":{"line":5,"column":170,"offset":637}}}],"position":{"start":{"line":5,"column":1,"offset":468},"end":{"line":5,"column":170,"offset":637}}},{"type":"text","value":"\n"}],"position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":5,"column":170,"offset":637}}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":6,"column":1,"offset":638}}}} | json |
<reponame>Gradientz/twig-express
{
"debug_mode": true,
"global_vars": {
"some_global_var": "I'm set in twigexpress.json"
},
"namespaces": {}
}
| json |
{
"walk": "minecraft:block.amethyst_block.step",
"run": "minecraft:block.amethyst_block.step",
"wander": "stone.stone_wander",
"land": "minecraft:block.amethyst_block.fall"
}
| json |
{"nom":"Champfromier","circ":"3ème circonscription","dpt":"Ain","inscrits":507,"abs":290,"votants":217,"blancs":21,"nuls":4,"exp":192,"res":[{"nuance":"REM","nom":"M<NAME>","voix":103},{"nuance":"LR","nom":"Mme <NAME>","voix":89}]} | json |
<gh_stars>0
import React from 'react';
import {connect} from 'react-redux';
import {createNewPost} from '../../actions/postActions';
import {mapDropDownCategory} from '../../utils/mapHelper';
import {uuidv4} from '../../utils/numberHelper';
import {T_FORM_POST} from '../../utils/typeHelper';
import IsValidLogo from '../common/IsValidLogo';
import SelectInput from '../common/SelectInput';
class NewPost extends React.Component {
constructor(props) {
super(props);
this.state = T_FORM_POST;
}
componentDidMount() {
this.title = document.getElementById('newPostTitle');
this.author = document.getElementById('newPostAuthor');
this.category = document.getElementById('newPostCategory');
this.body = document.getElementById('newPostBody');
}
handleChange = event => {
let isValid = this.author.validity.valid &&
this.title.validity.valid &&
this.category.validity.valid &&
this.body.validity.valid;
let post = Object.assign({}, this.state.newPost, {[event.target.name]: event.target.value});
this.setState({
newPost: post,
isValid: isValid,
isTitleValid: this.title.validity.valid,
isAuthorValid: this.author.validity.valid,
isCategoryValid: this.category.validity.valid,
isBodyValid: this.body.validity.valid
});
};
handleSubmit = event => {
let post = Object.assign({}, this.state.newPost, {id: uuidv4(), timestamp: Date.now()});
this.setState(Object.assign({}, T_FORM_POST), () => this.props.dispatch(createNewPost(post)));
};
handleReset = () => {
this.setState(Object.assign({}, T_FORM_POST));
};
render() {
return (
<article className="article-add">
<header>
<i className="icon-24-white-100 button-pulse">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="16" viewBox="0 0 12 16">
<path fillRule="evenodd" d="M12 9H7v5H5V9H0V7h5V2h2v5h5v2z"/>
</svg>
</i>
Create a new post
</header>
<div className="article-content">
<div className="form-group">
<label>Title:
<i className="icon-16-green-90">
{this.state.isTitleValid && <IsValidLogo/>}
</i>
</label>
<input id="newPostTitle"
name="title"
type="text"
minLength="3"
maxLength="60"
required="true"
value={this.state.newPost.title}
onChange={this.handleChange}/>
<label>Author:
<i className="icon-16-green-90">
{this.state.isAuthorValid && <IsValidLogo/>}
</i>
</label>
<input id="newPostAuthor"
name="author"
type="text"
minLength="3"
maxLength="16"
required="true"
value={this.state.newPost.author}
onChange={this.handleChange}/>
<label>Category:
<i className="icon-16-green-90">
{this.state.isCategoryValid && <IsValidLogo/>}
</i>
</label>
<SelectInput id="newPostCategory"
required="true"
onChange={this.handleChange}
value={this.state.newPost.category}
options={this.props.category}/>
</div>
<div className="form-group">
<label>Content:
<i className="icon-16-green-90">
{this.state.isBodyValid && <IsValidLogo/>}
</i>
</label>
<textarea id="newPostBody"
name="body"
minLength="8"
maxLength="350"
required="true"
value={this.state.newPost.body}
onChange={this.handleChange}/>
</div>
</div>
<footer>
{this.state.isValid ? <button onClick={this.handleSubmit} className="button-primary">Save</button>
: <button className="button-action">Save</button>}
<button onClick={this.handleReset}>Reset</button>
</footer>
</article>
);
}
}
const mapStateToProps = (state) => ({
category: mapDropDownCategory(state.category),
isLoading: state.apiCallsInProgress > 0
});
export default connect(mapStateToProps)(NewPost); | javascript |
James Harden scored 49 points, Russell Westbrook added 31 points and 11 rebounds, and the Houston Rockets erased a 14-point deficit and rallied for a 153-149 overtime win over the Dallas Mavericks on Friday at the ESPN Wide World of Sports Complex near Orlando.
The Rockets claimed the season series with Dallas two games to one by finally mustering some defensive might down the stretch of the fourth quarter.
Trailing 139-137, Houston got a tip-in of a Harden missed free throw from Robert Covington with 3. 3 seconds left to force overtime. Covington, following an 0-for-8 start from behind the arc, added a 3-pointer with 1:22 left in overtime to extend the Houston lead to 150-146.
Luka Doncic recorded his league-leading 15th triple-double with 28 points, 13 rebounds and 10 assists while Kristaps Porzingis paced the Mavericks with 39 points and 16 rebounds. Trey Burke added 31 points on 8-of-10 3-point shooting off the bench while Tim Hardaway Jr. scored 24 points for Dallas.
Portland Trail Blazers 140 – Memphis Grizzlies 135 (OT)
CJ McCollum scored 33 points, Damian Lillard added 29, and Portland overwhelmed Memphis in overtime.
The Trail Blazers built a first-half lead then surged ahead 75-62 in the third quarter before a 22-6 run pushed the Grizzlies ahead. The game was back-and-forth from there until the Blazers took control in the extra frame.
Rookie Ja Morant, the Grizzlies’ leading scorer on the season at just under 18 points per game, finished with 22 points Friday. He had only two points on 1-of-5 shooting at halftime but came to life to lead the third-quarter run. Morant also handed out 11 assists.
Orlando turned a close game into a rout by scoring nine consecutive points late in the second quarter en route to a win over Brooklyn in what could be a key battle for playoff seeding.
Evan Fournier had 24 points while Aaron Gordon posted a double-double (10 points, 11 rebounds) for the Magic (31-35), who moved past the Nets (30-35) into seventh place in the Eastern Conference. The top seven teams are guaranteed a playoff spot. The eighth-place team advances to the postseason as the final seed if it is at least four games better than the ninth-place team at the end of the regular season. Otherwise, a play-in series will determine the eighth seed.
Nikola Vucevic had 22 points for the Magic. Timothe Luwawu-Cabarrot led the Nets with 24 points, and Caris LeVert had 17.
Cameron Johnson and Devin Booker combined for 18 first-quarter points, helping Phoenix build a big lead en route to a victory over Washington.
Booker finished with a game-high 27 points and Deandre Ayton registered a 24-point, 12-rebound double-double for the Suns, who entered the resumption of play with the worst record among the 13 Western Conference teams still alive.
Rui Hachimura paced the Wizards with 21 points.
Giannis Antetokounmpo had 36 points and 15 rebounds to lift Milwaukee past Boston in the teams’ first game of the NBA restart.
Antetokounmpo’s double-double was his 19th straight, matching the longest streak in the NBA this season — set by the reigning league MVP himself from Oct. 24 to Nov. 29.
Khris Middleton had 18 points and Brook Lopez added 14 points and six blocks for the Bucks, who bolted out to a 17-2 lead before requiring a late push to seal the win. Marcus Smart scored 23 points off the bench and Jaylen Brown added 22 for the Celtics.
DeMar DeRozan scored 27 points — all but two in the second half — and added 10 assists as San Antonio finished with a flurry to beat Sacramento in the teams’ first game back in action after the league’s stoppage for COVID-19.
Derrick White added 26 points for San Antonio, with Rudy Gay scoring 19 off the bench, Lonnie Walker IV hitting for 16, and Dejounte Murray contributing 11.
The Kings’ De’Aaron Fox led all scorers with 39 points. Bogdan Bogdanovic hit for 24, Nemanja Bjelica added 12, and Harrison Barnes and Richaun Holmes contributed 10 points each for Sacramento. | english |
A leaked letter has stirred the political pot in Nagaland and led to a flurry of speculation.
On June 25, the four-page letter surfaced, nine days after it was sent by governor RN Ravi to Chief Minister Neiphiu Rio. In the letter, Ravi had mounted a scathing no-holds-barred attack on Rio’s government.
The state government, he said, had been a mute spectator as “armed gangs” ran riot in Nagaland, carrying out extortion and committing violence. “The law and order in the state has collapsed,” Ravi claimed.
With the legitimacy of the Constitutionally-elected state government’s being “challenged on a day-to-day basis by the armed gangs who question the sovereignty and integrity of the nation”, Ravi told the chief minister that he “could no longer abstain from constitutional obligations in the state under Article 371A (1) (b) of the Constitution”.
Article 371A (1) (b), which applies exclusively to Nagaland, bestows upon the governor “special responsibility with respect to law and order”. According to the provision, the governor, for all practical purposes, has the final say on all matters related to the state’s law and order and on what constitutes law and order.
Finally, he concluded by calling for a meeting with the state cabinet.
Words, not action (yet)
Till June 25, the press had no whiff of either the letter or the meeting that took place on June 20. In fact, things were so hush-hush that even the chief minister’s secretariat had no inkling, according to a person familiar with the sequence of events.
It is not clear who leaked the letter.
But this much is: Ravi has not invoked his special powers. The state government continues to be in charge of law and order, contrary to what has been reported in certain sections of the media, the state’s home minister Y Patton and chief secretary Temjen Toy confirmed to Scroll.in.
Ravi did not respond to requests seeking comment.
Regardless, the letter has got the government acting. On June 27, the state police addressed a press conference where a spokesperson of the department said the “emerging law and order in the state” was “a matter of concern”. The problem of extortion has caught the “attention of various quarters”, the police spokesperson said, ostensibly referring to Ravi’s letter.
The police were taking action, the official added, exhorting people to register complaints.
Why now?
Yet there seems to be little clarity on what triggered such a terse letter at this juncture. Most people interviewed for this article say that there has been no extraordinary surge in extortion and violence of late. If anything, the lockdown meant things were quieter.
The letter itself offers some clues. Ravi said that he had flagged these issues on several occasions, but the state government had not paid heed to him.
Ravi’s letter, he said, reflected the sentiments of the state’s civil society who he had been regularly interacting with in his capacity as governor. (In his letter, Ravi speaks of civil society organisations who have been “at great personal risks...raising voices”).
Representatives of the state government, however, point out that one must remember that Ravi is no ordinary governor and the law and order problem he refers to in his letter is no ordinary law and order problem. The “armed gangs” mentioned in the letter are the various factions of the Naga armed groups most of which were in talks with the Indian government till October 31 to arrive at a solution to the Naga insurgency, the most protracted conflict in modern India. Ravi is the interlocutor for these talks.
For over six decades, Naga nationalists have fought the Indian state for a sovereign ethnic homeland that would include Nagaland as well as the Naga-inhabited areas of Manipur, Assam, Arunachal Pradesh and Myanmar across the border. Over the decades, the Naga armed movement split into several factions.
In 1997, the National Socialist Council of Nagalim (Isak-Muivah), the largest of all Naga armed groups, signed a peace treaty and started a dialogue with the Union government. Since then seven other groups have followed suit and the peace talks are said to have expedited under the Narendra Modi government with Ravi as the interlocutor.
On October 31, talks concluded as the Naga group and the Centre broadly reached common ground. However, a final agreement is yet to be signed – and the nitty-gritty remains to be worked out.
Meanwhile, most of these Naga factions continue to run their own “parallel government” from designated camps in the state and each group levies a “tax” from the state’s residents.
This taxation is contentious – and many residents view it as extortion (most communities in Nagaland are listed as Scheduled Tribes and are otherwise exempt from paying direct taxes to the Union government under Section 10(26) of the Income Tax Act).
The tone of the letter, seen as too harsh, has also not gone down well with the government. “As a governor, you can’t run riot over an elected government like that,” said the state politician.
Yet, many in the state have welcomed Ravi’s intervention considering the “rampant taxation” and general lawlessness in the state. “What is the point of having an elected government which does not pay attention to its people?” asked Khekiye K Sema, a retired bureaucrat of the Indian Administrative Service and a vocal critic of taxation by insurgent groups.
In such a situation Ravi, he said, was “well within his rights” to do what he did.
Yet, he said he hoped that the governor wouldn’t go on to invoke Article 371A (1) (b) and actually take over the state’s law and order machinery. The provision, Imchen said, was meant to be only used in the “formative stage” of the state, and over the years, governors had gradually weaned away from playing an executive role. “Law and order being a state subject, the state government should handle it,” he said.
| english |
<reponame>sunqianhu/manage<filename>www/css/system/permission/edit_select_permission.css<gh_stars>0
/**
* 修改选择权限
*/
@import url(../../iconfont/iconfont.css);
@import url(../../public/layer_button.css);
.page{} | css |
{
"files": {
"main.css": "/static/css/main.51a72e0a.chunk.css",
"main.js": "/static/js/main.5d9d15b7.chunk.js",
"main.js.map": "/static/js/main.5d9d15b7.chunk.js.map",
"runtime-main.js": "/static/js/runtime-main.31459065.js",
"runtime-main.js.map": "/static/js/runtime-main.31459065.js.map",
"static/css/2.9e813ccd.chunk.css": "/static/css/2.9e813ccd.chunk.css",
"static/js/2.57eb8a6b.chunk.js": "/static/js/2.57eb8a6b.chunk.js",
"static/js/2.57eb8a6b.chunk.js.map": "/static/js/2.57eb8a6b.chunk.js.map",
"index.html": "/index.html",
"precache-manifest.6b2ff517673808886d3271197afc6ab5.js": "/precache-manifest.6b2ff517673808886d3271197afc6ab5.js",
"service-worker.js": "/service-worker.js",
"static/css/2.9e813ccd.chunk.css.map": "/static/css/2.9e813ccd.chunk.css.map",
"static/css/main.51a72e0a.chunk.css.map": "/static/css/main.51a72e0a.chunk.css.map",
"static/js/2.57eb8a6b.chunk.js.LICENSE.txt": "/static/js/2.57eb8a6b.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.31459065.js",
"static/css/2.9e813ccd.chunk.css",
"static/js/2.57eb8a6b.chunk.js",
"static/css/main.51a72e0a.chunk.css",
"static/js/main.5d9d15b7.chunk.js"
]
} | json |
import { Validators as BaseValidators, ValidationErrors, AbstractControl, AsyncValidatorFn } from '@angular/forms';
import { Observable, of } from 'rxjs';
export class Validators extends BaseValidators {
static equalsTo(formControlName: string): AsyncValidatorFn {
return (control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null> => {
return control.parent.get(formControlName).value === control.value
? of(null)
: of({ equalsTo: true });
};
}
}
| typescript |
The newly inducted minister in the Rajasthan government, Rajyavardhan Rathore on Saturday said that he will serve the people of the State with full dedication in a similar manner he performed his duties in the army.
Rajasthan's upcoming Cabinet expansion anticipates 15 new ministers, balancing experience and youth. Chief Minister Sharma's discussions in Delhi hinted at the move. The expansion aims for diversity, representing various regions and castes while focusing on individuals aged 40 to 55. The BJP government's priorities include Mahila police stations, anti-romeo squads, heritage centers, free education for girls, and tourism investment. Directives to delay tenders hint at imminent changes. The SIT formation aligns with the chief minister's initiatives.
Nand Kishore Rungta, a coal businessman from Jawahar Nagar of Bhelupur police station area of Varanasi, was murdered after being kidnapped on January 22, 1997. After this, on the evening of November 5, 1997, Nand Kishore Rungta's brother Mahavir Prasad Rungta, a witness in the case, received bomb threats on his landline not to file a complaint with the police.
Despite the Punjab government's commitment to making certain districts stubble burning-free, such incidents were reported. However, local sources of pollution played a significant role in Delhi's AQI, with calm winds hindering the dispersion of emissions and minimal intrusion from neighbouring states.
The Supreme Court on Monday asked Attorney General R Venkataramani and Solicitor General Tushar Mehta to look into the issue of the suspension of Jammu and Kashmir education department lecturer who had argued before the top court in a matter related to the abrogation of Article 370.
Authorities in Kota, Rajasthan have requested coaching institutes to suspend routine tests for students preparing for competitive exams such as NEET and JEE for the next two months. This decision comes after a series of suicides by aspirants. So far in 2023, 22 students have taken their lives, the highest recorded in any year. The recent suicides were allegedly due to the pressure of scoring low marks in the coaching centers' routine tests.
People faced problems due to accumulation of water in many other low-lying areas and roads. Rainwater accumulated on Tonk Road, SMS hospital premises, B2 Bypass, Jawahar Nagar, Vidyadhar Nagar among others.
The Delhi Mall, situated in Central West Delhi, has been highlighted as a leading real estate investment option, offering double returns on a freehold basis. With the potential for up to 24% returns through the bank's Systematic Withdrawal Plan (SWP) and an additional 36% returns post-possession, the two-year pre-possession and the four-year post-possession parameters are registered with the Real Estate Regulatory Authority of India.
Airtel 5G Plus services will be available to customers in a phased manner as the company continues to construct its network and complete the roll-out. Customers with the fifth-generation mobile system (5G)-enabled devices will enjoy hi-speed Airtel 5G Plus network at no extra cost until the roll-out is more widespread.
Union Finance Minister Nirmala Sitharaman along with Lok Sabha Speaker Om Birla distributed loans worth Rs 2,500 crore to street vendors, small scale entrepreneurs and cattle rearers at a credit outreach program here on Sunday.
Drawing a parallel with Lord Ram and his brother Bharat, Khurshid had said: "Lord Ram's 'khadau' (wooden slipper) goes very far. Sometimes when Ram ji is not able to reach, Bharat takes his 'khadau' and goes to places. Like that, we have carried the 'khadau' in Uttar Pradesh".
The Jammu and Kashmir unit of BJP protested on Saturday in response to remarks made by Pakistani Foreign Minister Bilawal Bhutto on Prime Minister Narendra Modi. BJP workers yelled anti-Bhutto slogans and demanded an apology from him. The protest was taken out from the party's office in Jawahar Nagar area.
The deceased from Bihar were identified as Ankush Anand (18), a NEET aspirant, and resident of Supaul district and Ujjwal Kumar (17), a JEE aspirant from Gaya district. Pranav Verma (17), the MP boy, was a NEET aspirant.
Bhagwant Mann took out a roadshow in Adampur and also addressed gatherings in villages while campaigning for AAP candidate Satender Singh. "We don't do politics of hate. We do politics of development, we build schools and hospitals," he said.
The National Investigation Agency (NIA) is probing a case of the alleged involvement of gangs in Punjab in smuggling drugs from Pakistan and the money later being pumped into terror-related activities. The raids were carried out at Yamuna Nagar, Majitha road, Muktsar, Gurdaspur and Gurugram, they said.
The bank wants to dissolve the entire board and remove the promoter family, as it believes the board is functioning in cahoots with the minority shareholders (the promoters), who should not have representation on the board.
A bench of Justices Vipin Sanghi and Jasmeet Singh directed the North MCD and the Delhi Police to take coordinated action for removal of illegal vendors from the area in question and file status reports in this regard.
| english |
<reponame>viamors/ViTool
{
"component": true,
"usingComponents": {
"calendar-item": "/components/heqifang-calendar/calendar-item"
}
} | json |
Diwali Special: Is investing in gold jewellery a good investment?
Buying gold on the occasion of Diwali has been tradition for ages now. People in the north especially make sure that they buy some gold on the day of this festival. If not in huge, they buy at least a gram.
Well, not many like investing in gold. But is it really a good idea to do? Here is what the experts say.
Buying gold can always be a good investment and something that we all can rely on when in need.
Follow us on Google News and stay updated with the latest! | english |
<filename>@types/visit.ts
import { Doctor, Patient, TableHeader } from '~/@types';
export interface VisitState {
isLoading: boolean;
tableHeaders: TableHeader[];
list: Visit[];
current: Visit | null;
}
export interface Visit {
uuid: string;
patient: Patient;
doctor: Doctor;
medicine: string[];
schedule: string;
createTime: string;
createBy: Doctor;
updateTime: string;
updateBy?: Doctor | null;
}
| typescript |
<gh_stars>0
import {me} from "appbit";
import asap from "fitbit-asap/app";
import {drawGlucose} from "./glucose";
import {drawDate} from "./date";
import {drawSteps} from "./steps";
import {drawWeather} from "./weather";
import {drawClock} from "./clock";
import {drawHeartRate} from "./hrm";
import {drawAlert} from "./alert";
import type {Message} from "../types/message";
function triggerRefresh() {
me.exit();
}
function processMessage(event: Message) {
switch (event.type) {
case "glucose":
console.log("Processing glucose message")
drawGlucose(event.message);
drawAlert(event.message);
break;
case "weather":
console.log("Processing weather message")
drawWeather(event.message);
break;
case "refresh":
console.log("Processing refresh message")
triggerRefresh();
break;
default:
throw new Error("Unhandled event type");
}
}
(() => {
drawDate();
drawSteps();
drawHeartRate();
drawClock();
asap.onmessage = processMessage;
})();
| typescript |
import Adafruit_DHT as dht
import time
from influxdb import InfluxDBClient
def get_serial():
cpu_serial = "0000000000000000"
try:
f = open('/proc/cpuinfo', 'r')
for line in f:
if line[0:6] == 'Serial':
cpu_serial = line[10:26]
f.close()
except:
cpu_serial = "ERROR000000000"
return cpu_serial
def write_db(tmp, hum, device_id):
json_body = [
{
"measurement": "temperature",
"tags": {
"device_id": str(device_id),
},
"fields": {
"celcius": str('{0:0.2f}'.format(tmp)),
"humidity": str('{0:0.2f}'.format(hum)),
}
}
]
client = InfluxDBClient('localhost', 8086, "", "", "raspi_temp")
client.write_points(json_body)
def main():
device_id = get_serial()
while True:
h,t = dht.read_retry(dht.DHT22, 4)
write_db(t, h, device_id)
print ('Temp={0:0.2f}*C Humidity={1:0.2f}%'.format(t, h))
time.sleep(5)
if __name__ == '__main__':
main()
| python |
<gh_stars>100-1000
{
"layers": {
"MODIS_Terra_Data_No_Data": {
"id": "MODIS_Terra_Data_No_Data",
"title": "Areas of No Data (mask)",
"subtitle": "Terra / MODIS",
"description": "reference/MODIS_Terra_Data_No_Data",
"group": "overlays",
"layergroup": "Areas of No Data (mask)",
"wrapadjacentdays": true,
"tracks": [
"OrbitTracks_Terra_Descending"
],
"daynight": [
"day"
]
}
}
} | json |
{"organizations": [], "uuid": "793af80cd6bdf89d22b8c8f6a68e5f9e37f8530d", "thread": {"social": {"gplus": {"shares": 0}, "pinterest": {"shares": 0}, "vk": {"shares": 0}, "linkedin": {"shares": 0}, "facebook": {"likes": 0, "shares": 0, "comments": 0}, "stumbledupon": {"shares": 0}}, "site_full": "www.tripadvisor.com", "main_image": "https://media-cdn.tripadvisor.com/media/photo-s/0d/23/b1/45/hotel-exterior.jpg", "site_section": "https://www.tripadvisor.com/Hotel_Review-g32124-d258663-Reviews-Hampton_Inn_Suites_San_Francisco_Burlingame_Airport_South-Burlingame_California.html", "section_title": "Hampton Inn & Suites San Francisco-Burlingame-Airport South - UPDATED 2017 Hotel Reviews & Price Comparison (CA) - TripAdvisor", "url": "https://www.tripadvisor.com/ShowUserReviews-g32124-d258663-r469889466-Hampton_Inn_Suites_San_Francisco_Burlingame_Airport_South-Burlingame_California.html", "country": "ZA", "domain_rank": 189, "title": "Breakfast is good!", "performance_score": 0, "site": "tripadvisor.com", "participants_count": 1, "title_full": "Breakfast is good! - Review of Hampton Inn & Suites San Francisco-Burlingame-Airport South, Burlingame, CA - TripAdvisor", "spam_score": 0.102, "site_type": "discussions", "published": "2017-03-24T03:00:00.000+03:00", "replies_count": 0, "uuid": "793af80cd6bdf89d22b8c8f6a68e5f9e37f8530d"}, "author": "123114celiav", "url": "https://www.tripadvisor.com/ShowUserReviews-g32124-d258663-r469889466-Hampton_Inn_Suites_San_Francisco_Burlingame_Airport_South-Burlingame_California.html", "ord_in_thread": 0, "title": "Breakfast is good!", "locations": [], "entities": {"persons": [], "locations": [], "organizations": []}, "highlightText": "", "language": "english", "persons": [], "text": "Breakfast was hot and there was many choices to choose from. The rooms were nice and clean. The beds covers and sheets are very comfortable and fresh. However, the shower could have used a shower curtain because the water went all over the floor. Luckily they give you lots of towels. We had forgotten our toothbrushes and toothpaste I called the front desk and they sent our a super cool R2D2 look a like to deliver some to our room. My daughter thought this was the coolest hotel ever! Overall, We enjoyed our stay!", "external_links": [], "published": "2017-03-24T03:00:00.000+03:00", "crawled": "2017-03-26T20:10:01.327+03:00", "highlightTitle": ""} | json |
<gh_stars>0
package net.kemitix.slushy.app.withdraw;
import net.kemitix.slushy.app.DynamicListProcessConfig;
import net.kemitix.slushy.app.inbox.InboxConfigMapping;
import javax.annotation.PostConstruct;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@ApplicationScoped
public class DynamicWithdrawProperties
implements WithdrawProperties {
@Inject WithdrawConfigMapping configMapping;
DynamicListProcessConfig config;
@PostConstruct
void init() {
config = new DynamicListProcessConfig(WithdrawConfigMapping.PREFIX, configMapping);
}
@Override
public String sourceList() {
return config.sourceList();
}
@Override
public String targetList() {
return config.targetList();
}
@Override
public String routingSlip() {
return config.routingSlip();
}
@Override
public int requiredAgeHours() {
return config.requiredAgeHours();
}
@Override
public long scanPeriod() {
return config.scanPeriod();
}
@Override
public long retryDelay() {
return config.retryDelay();
}
}
| java |
/**
* Copyright 2020, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import expect from 'expect';
import { boxSelectionStatus } from '../box';
const state = {
box: {
status: 'start'
}
};
describe('Test box selectors', () => {
it('should get status of box selection tool', () => {
const status = boxSelectionStatus(state);
expect(status).toEqual('start');
});
});
| javascript |
Global icon Priyanka Chopra is very supportive when it comes to her friends and family’s achievement. Earlier, she was the one who took to her social media handle to share her love and to tell how proud she was when her J-sister (as they fondly call each other) Sophie Turner was nominated for Best Supporting Actress in Game Of Thrones at Emmy Awards 2019. Today, she sends her love for Jonas Brothers who recently got nominated at the Grammys for Best Pop Duo/Group Performance for Sucker.
As Jonas Brothers are in Grammy nomination list, a proud wifey of Nick Jonas, Priyanka Chopra pours in love for the Jonas Brothers on her social media handle. Just a while ago, Priyanka took to her social media handle and shared a tweet, saying, “So proud of you @jonasbrothers !! I love you @nickjonas @joejonas @kevinjonas @RecordingAcad #GRAMMYs” The Grammy Awards are one of the biggest music awards ever and getting nominated for it is kind of a very big deal. As usual this time too the award ceremony is going to be a grand one which, of course, will feature some power-packed performances by the most prominent artists in the music industry.
The 62nd Grammy Awards will take place on January 26, 2020, at the Staples Center in Los Angeles, and so far, the list of nominees has also been revealed by us. Giving you guys a gist of it, Lana Del Rey and Ariana Grande’s music album have been nominated for the Album Of The Year while Taylor Swift’s Lover is been nominated for Song Of The Year. The Grammys will once again be hosted by singer Alicia Keys, becoming the first female musician to host the show twice.
Meanwhile, on Priyanka Chopra’s work front, the actress was last seen in The Sky Is Pink along with Farhan Akhtar which did a decent business at the box-office. However, reports are buzzing with PeeCee in talks with Sanjay Leela Bhansali for his next directorial venture, Baiju Bawra where she will be starring opposite her Bajirao Mastani co-star Ranveer Singh.
Though there has been no official confirmation on the same, fans are eagerly waiting for her announcement. The next she will be starring in Netflix original, The White Tiger along with Rajkummar Rao.
| english |
Bubbly actress Anupama Parameswaran has back-to-back releases this month. While 18 Pages is releasing in theaters, Butterfly opted for direct digital release.
Today, the actress posted a series of pictures on her Instagram. The Premam actress looks absolutely stunning in the sky blue saree and what makes her more gorgeous is her nose ring, earrings and curly hair, which enhance her beauty. The pics set the internet on fire and her diehard fans filled the comment section with positive words.
Anupama Parameswaran is pinning all her hopes on 18 Pages and Butterfly. The films need to be successful for Anupama to score a hat-trick. Keep watching this space to get more interesting updates.
Articles that might interest you:
| english |
To take away the confusion prevailing on to which is the 99th film of hat trick hero Shivarajakumar the actor himself cleared the doubts at his residence on Wednesday afternoon at the media briefing.
ÂThe 98th film of mine is ÂMylari and not as reported 99th said Shivarajakumar. The 99th film is ÂShiv Puttaswamy from Singanallur with the team of ÂCheluveye Ninne Nodalu he mentioned. Producer NM Suresh and Raghuram will be taking up this film.
ÂMylari script is ready and Taj Mahal Chandru will be directing it. Kanakapura Srinivas is the ÂMylari producer. The 100th film of Shivarajakumar is ÂJogaiahÂ. Shivarajakumar said he is much interested in enacting his fatherÂs film ÂBhaktha Kumbara and NM Suresh nodded his head to produce in that case.
Meanwhile Shivarajakumar has seen the double positive of ÂCheluveye Ninne Nodalu and happy for the work of first time director Raghuram. Every character mould is good in this film. We have worked ahead of schedule in Rome, Agra and other places disclosed Shivarajakumar.
Follow us on Google News and stay updated with the latest! | english |
Shivani Bhatnagar (Died: January 23, 1999) was a journalist working for the Indian Express newspaper. Her murder on January 23, 1999 became a scandal that reached into the top levels of Indian politics. Indian Police Service officer Ravi Kant Sharma was charged with the murder by the Delhi Police, who investigated the case. Sharma surrendered to the police on September 27, 2002, after having been in hiding since the arrest warrant was issued on August 3 of that year. Sharma and his wife, Madhu, have alleged that Bhatnagar’s murder was orchestrated by the late Pramod Mahajan, a prominent leader of the Bharatiya Janata Party (BJP). Mahajan was killed by his own brother.
IPS officer R K Sharma along with three other accused in the Shivani Bhatnagar murder case were convicted by a Delhi Court on March 18, 2008. Two other accused -- Ved Prakash Sharma and Ved Prakash alias Kalu -- were acquitted for want of evidence. Those convicted were sentenced to life imprisonment on March 24, 2008. They plan to file an appeal against the trial court verdict.
இந்தியன் எக்ஸ்பிரஸ் பத்திரிக்கை நிருபர் ஷிவானி பட்னகர்-IPS ஆபீசர் ரவி கன்ட் ஷர்மா கூடா நட்பும், திருமண வற்புறுத்தலும் கடைசியில் கொலையில் முடிந்தது.கோர்ட்டின் விரைந்த விசாரணையால்,1999க்கு 2008ல் தீர்ப்பு இருவருக்கு. எஞ்சிய காவல்துறை உயர் அதிகாரி 2009-நவம்பரில் டிஸ்மிஸ். 1999-ல் இருந்த 2-வயதுக் குழந்தை என்ன ஆனதோ?
| english |
<filename>crates/swc_ecma_minifier/tests/terser/compress/issue_t120/issue_t120_2/output.mangleOnly.js
function a(a) {
var b = function(a) {
var b = a.data;
return b && b.a != b.b;
};
while(b(a)){
a = a.data;
}
return a;
}
var b = {
a: 1,
b: 2,
data: {
a: "hello"
}
};
console.log(a(b).a, a({
a: "world"
}).a);
| javascript |
package org.springframework.security.oauth2.provider.token.store.redis;
/**
* Handles null/empty byte arrays on deserialize and null objects on serialize.
*
* <p>
* @deprecated See the <a href="https://github.com/spring-projects/spring-security/wiki/OAuth-2.0-Migration-Guide">OAuth 2.0 Migration Guide</a> for Spring Security 5.
*
* @author efenderbosch
*/
@Deprecated
public abstract class BaseRedisTokenStoreSerializationStrategy implements RedisTokenStoreSerializationStrategy {
private static final byte[] EMPTY_ARRAY = new byte[0];
private static boolean isEmpty(byte[] bytes) {
return bytes == null || bytes.length == 0;
}
@Override
public <T> T deserialize(byte[] bytes, Class<T> clazz) {
if (isEmpty(bytes)) {
return null;
}
return deserializeInternal(bytes, clazz);
}
protected abstract <T> T deserializeInternal(byte[] bytes, Class<T> clazz);
@Override
public String deserializeString(byte[] bytes) {
if (isEmpty(bytes)) {
return null;
}
return deserializeStringInternal(bytes);
}
protected abstract String deserializeStringInternal(byte[] bytes);
@Override
public byte[] serialize(Object object) {
if (object == null) {
return EMPTY_ARRAY;
}
return serializeInternal(object);
}
protected abstract byte[] serializeInternal(Object object);
@Override
public byte[] serialize(String data) {
if (data == null) {
return EMPTY_ARRAY;
}
return serializeInternal(data);
}
protected abstract byte[] serializeInternal(String data);
}
| java |
{
"vorgangId": "31666",
"VORGANG": {
"WAHLPERIODE": "17",
"VORGANGSTYP": "Kleine Anfrage",
"TITEL": "Pläne der Bundesregierung zur Schließung kleiner Kasernen",
"INITIATIVE": "Fraktion BÜNDNIS 90/DIE GRÜNEN",
"AKTUELLER_STAND": "Beantwortet",
"SIGNATUR": "",
"GESTA_ORDNUNGSNUMMER": "",
"WICHTIGE_DRUCKSACHE": [
{
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "17/4117",
"DRS_TYP": "Kleine Anfrage",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/041/1704117.pdf"
},
{
"DRS_HERAUSGEBER": "BT",
"DRS_NUMMER": "17/4343",
"DRS_TYP": "Antwort",
"DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/043/1704343.pdf"
}
],
"EU_DOK_NR": "",
"SACHGEBIET": "Verteidigung",
"SCHLAGWORT": [
{
"_fundstelle": "true",
"__cdata": "Bundeswehr"
},
"Kaserne",
{
"_fundstelle": "true",
"__cdata": "Militärstandort"
},
"Millennium Development Goal"
],
"ABSTRAKT": "Kriterien für das zukünftige Stationierungskonzept der Bundeswehr, sicherheitspolitische Überlegungen, Abstimmung mit den Bundesländern, Einschätzung der Zahl der von der möglichen Schließung betroffenen Standorte, bisherige Gespräche mit den betroffenen Ländern und Kommunen, Hilfen des Bundes, derzeitige Leerstände in deutschen Kasernen, Zustand der durch Aufgabe der militärischen Nutzung frei werdenden Kasernengebäude, Nachnutzungskonzepte, örtliche Lage der bestehenden Kasernengelände \r\n(insgesamt 16 Einzelfragen)"
},
"VORGANGSABLAUF": {
"VORGANGSPOSITION": [
{
"ZUORDNUNG": "BT",
"URHEBER": "Kleine Anfrage, Urheber : Fraktion BÜNDNIS 90/DIE GRÜNEN ",
"FUNDSTELLE": "03.12.2010 - BT-Drucksache 17/4117",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/041/1704117.pdf",
"PERSOENLICHER_URHEBER": [
{
"VORNAME": "Bettina",
"NACHNAME": "Herlitzius",
"FUNKTION": "MdB",
"FRAKTION": "BÜNDNIS 90/DIE GRÜNEN",
"AKTIVITAETSART": "Kleine Anfrage"
},
{
"VORNAME": "Omid",
"NACHNAME": "Nouripour",
"FUNKTION": "MdB",
"FRAKTION": "BÜNDNIS 90/DIE GRÜNEN",
"AKTIVITAETSART": "Kleine Anfrage"
}
]
},
{
"ZUORDNUNG": "BT",
"URHEBER": "Antwort, Urheber : Bundesregierung, Bundesministerium der Verteidigung (federführend)",
"FUNDSTELLE": "21.12.2010 - BT-Drucksache 17/4343",
"FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/17/043/1704343.pdf"
}
]
}
}
| json |
{"id":59,"university":{"fullName":"Seoul National University","shortName":"Seoul National U","region":"Asia","hashTag":"SNU","url":"http://www.snu.ac.kr","myIcpcId":"313582","appearances":13,"wins":0,"gold":0,"silver":1,"bronze":0,"regionalChampionships":1},"team":{"name":"ACGTeam","regionals":["The 2016 ACM-ICPC Asia Daejeon Regional Contest, 1st","Asia Korea National First Round Programming Contest, 1st"],"openCupPlace":38,"openCupTimes":1},"coach":{"name":"<NAME>","altNames":["<NAME>"],"tcRating":-1,"cfRating":-1,"achievements":[{"achievement":"World Finals coach (2010-2012, 2015)","priority":1004}]},"contestants":[{"name":"<NAME>","altNames":["<NAME>"],"tcRating":-1,"cfHandle":"cubelover","cfRating":2919,"ioiID":"5130","achievements":[{"achievement":"IOI Gold Medalist (2014, 2015)","priority":52}]},{"name":"<NAME>","altNames":["<NAME>","<NAME>"],"tcHandle":"sukh1222","tcId":"40032894","tcRating":2265,"cfHandle":"gs12117","cfRating":2737,"ioiID":"3118","achievements":[{"achievement":"IOI Gold Medalist (2013, 2014)","priority":52},{"achievement":"GCJ Finalist (2016)","priority":51}]},{"name":"<NAME>","altNames":["<NAME>","<NAME>","<NAME>","<NAME>"],"tcHandle":"ainta","tcId":"23008568","tcRating":2379,"cfHandle":"ainta","cfRating":3174,"ioiID":"5132","achievements":[{"achievement":"IOI Gold Medalist (2015)","priority":51},{"achievement":"IOI Silver Medalist (2014)","priority":31},{"achievement":"RCC Finalist (2016)","priority":26},{"achievement":"ICM Technex 1st (2017)","priority":21}]}]} | json |
Pathak said that over the last decade, the AAP has created jobs, improved health and education infrastructure, and reduced cost of living.
PANAJI: Taking a swipe at the BJP, Rajya Sabha MP and Aam Aadmi Party’s national general secretary Sandeep Pathak on Friday said that the AAP’s constructive politics is the only option to defeat the BJP’s destructive politics.
Addressing a press conference, Pathak said that over the last decade, the AAP has created jobs, improved health and education infrastructure, and reduced cost of living.
“Whereas the BJP has only pursued destructive politics, whether it is burdening the common man with mis-governance, or trying to crush the opposition parties,” he said.
“AAP has established the government in Delhi and Punjab as a result of honest politics. In Gujarat and Goa, we have MLAs. This demonstrates that many are tired of established parties and see AAP as a new source of hope. This is why, despite BJP’s efforts to damage AAP’s image, AAP has continued to gain strength day by day,” he said.
He said that there are a number of bigger opposition parties, but the BJP is most eager to finish AAP.
“They are aware that only the AAP will succeed in stifling their toxic politics. In order to end AAP, they have been devising various strategies, but people will see through them. The people of this country know that Arvind Kejriwal is an honest man, and they will not forgive the BJP for trying to crush him and his ministers with false cases and harassment,” Pathak said. “The BJP is focused on how to rob people and increase its wealth rather than working on industrial policies, IT policy or employment policy,” he added. (IANS) | english |
{"completed": false, "created": 1417535011224, "dac_url": "http://54.91.88.156/deployment/547dde23d248953f0df1121c", "dap": "http://data.ioos.us/gliders/thredds/dodsC/deployments/drudnick/sp048-20140116T181300/sp048-20140116T181300.nc3.nc", "datasetID": "sp048-20140116T181300", "east": -117.30452, "end": 1406650095000, "estimated_deploy_date": 1389830400000, "estimated_deploy_location": "32.8908 N 117.3162 W", "fgdc": "http://data.ioos.us/gliders/erddap/metadata/fgdc/xml/sp048-20140116T181300_fgdc.xml", "graph": "http://data.ioos.us/gliders/erddap/tabledap/sp048-20140116T181300.graph", "id": "547dde23d248953f0df1121c", "institution": "Scripps Institution of Oceanography", "iso": "http://data.ioos.us/gliders/erddap/tabledap/sp048-20140116T181300.iso19115", "meta": "http://data.ioos.us/gliders/erddap/info/sp048-20140116T181300/index", "name": "sp048-20140116T181300", "north": 32.91608, "num_profiles": 580, "operator": "Scripps Institution of Oceanography", "rss": "http://data.ioos.us/gliders/erddap/rss/sp048-20140116T181300.rss", "sos": "http://data.ioos.us/gliders/thredds/sos/deployments/drudnick/sp048-20140116T181300/sp048-20140116T181300.nc3.nc?service=SOS&request=GetCapabilities&AcceptVersions=1.0.0", "south": 32.16107, "start": 1389900915000, "status": null, "subset": "http://data.ioos.us/gliders/erddap/tabledap/sp048-20140116T181300.subset", "summary": "Spray glider profile data from Scripps Institution of Oceanography Instrument Development Group (supported by NOAA).", "tabledap": "http://data.ioos.us/gliders/erddap/tabledap/sp048-20140116T181300", "tds": "http://data.ioos.us/gliders/thredds/dodsC/deployments/drudnick/sp048-20140116T181300/catalog.html?dataset=deployments/drudnick/sp048-20140116T181300/sp048-20140116T181300.nc3.nc", "title": "sp048-20140116T181300", "ts0": "2014-01-16T19:35:15Z", "ts1": "2014-07-29T16:08:15Z", "updated": 1423602383418, "username": "drudnick", "west": -119.14917, "wmo_id": "4801526"} | json |
package io.github.alloffabric.olbm;
import io.github.alloffabric.olbm.api.LootBagType;
import io.github.alloffabric.olbm.inventory.LootBagContainer;
import io.github.alloffabric.olbm.util.OLBRegistry;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
import net.fabricmc.fabric.api.container.ContainerProviderRegistry;
import net.minecraft.inventory.SimpleInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.util.Identifier;
import net.minecraft.util.collection.DefaultedList;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.SimpleRegistry;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
public class OLBM implements ModInitializer {
public static final String MODID = "olbm";
public static final Logger logger = LogManager.getLogger();
public static final OLBRegistry<LootBagType> LOOT_BAG_TYPES = new OLBRegistry<>();
public static final ItemGroup OLBM_GROUP = FabricItemGroupBuilder.build(new Identifier(MODID, "olbm_group"), () -> {
Random random = new Random();
List<Item> potential = new ArrayList<>();
for (LootBagType type : LOOT_BAG_TYPES) {
if (type.getBag() != Items.AIR) {
potential.add(type.getBag());
}
}
if (!potential.isEmpty()) {
return new ItemStack(potential.get(random.nextInt(potential.size())));
} else {
return new ItemStack(Items.ENDER_CHEST);
}
});
@Override
public void onInitialize() {
OLBData.loadConfig();
OLBData.loadData();
ContainerProviderRegistry.INSTANCE.registerFactory(new Identifier(MODID, "loot_bag"), (syncId, containerId, player, buf) -> {
Identifier id = buf.readIdentifier();
int length = buf.readVarInt();
DefaultedList<ItemStack> stacks = DefaultedList.ofSize(27, ItemStack.EMPTY);
for (int i = 0; i < Math.min(length, 27); i++) {
ItemStack stack = buf.readItemStack();
stacks.set(i, stack);
}
return new LootBagContainer(id, syncId, player, new SimpleInventory(stacks.toArray(new ItemStack[]{})));
});
}
public static LootBagType registerBag(LootBagType type) {
Identifier id = type.getId();
return Registry.register(LOOT_BAG_TYPES, id, type);
}
}
| java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.