text
stringlengths 1
1.04M
| language
stringclasses 25
values |
|---|---|
Get the looks inspired by your favourite stars to glam up this holiday season, read on.
The holiday season is all about dressing up, looking pretty and going for parties and dates. But, since the Covid-19 situation happened, we cannot go out and party but what we can is dress up and arrange house gatherings. If you are confused about how to doll yourself up, take a cue from your favourite stars.
Alia Bhatt has her own style, and she dolls up in that way. Pink flushed cheeks and lips and kohled eyes are a few options she ticks off while doing makeover.
No one can dazzle in a shimmery outfit like Bebo. If you plan to put on something like Kareena's flared sleeves shimmery dress then make your eyes brownish smokey, keep your hair in a sleek bun, and put your lips on nude shades.
If you don't like too much makeup, then follow this glam queen. Put on very minimal makeup, keep it subtle, wing your eyes and put on some highlighter on your cheeks, a nude lip shade, tie up your hair in a ponytail or let it flow. And you are ready. Less is more!
Winter season asks for warm lip shades even though they are covered with masks. Take a look at Sonam Kapoor's shade. A rich brownish plum colour is what you need to grab this holiday season's attention.
If you plan to wear a saree and masks will cover your half of the face, then ace the bold eyes like Sara Ali Khan. She has kohled her lower eyes and upper ones and winged it a bit to look bigger.
|
english
|
Host Amitabh Bachchan started tonight's episode of Kaun Banega Crorepati 13 with Mohit Kumar Joshi. He is a computer engineer from Uttarakhand who works at Aryabhatta Research Institute of Observational Sciences (ARIES) in Nainital. After Mr Joshi made it to the hot seat, he shared that he wanted to be on KBC to spread awareness about ARIES and Devasthal Optical Telescope, which was virtually inaugurated by Prime Minister Narendra Modi from Belgium. It is the first of its kind and the largest reflecting telescope in Asia currently. During the show, Mohit Kumar showed images of galaxies and nebulas that are many, many light-years away.
While talking to Big B, Mr Joshi shared that he was put in charge of the Devasthal complex in 2008 and he has contributed to work related to administrative tasks and telescope-related activities for smooth operations. Amitabh Bachchan was super impressed by Mohit Kumar's knowledge about space and its elements.
Mohit Kumar Joshi won Rs 6,40,000 on the show. He said that he will donate some amount of the prize money to the treatment of a baby who is suffering from a rare disease called Spinal Muscular Atrophy and also to the development of his village.
The next contestant to sit on the hot seat was Insia Arora. Big B was intrigued by her name and asked her to share the meaning and story behind it. Insia Arora will continue the game with Big B on Wednesday.
Meanwhile, here are a few questions asked on tonight's episode of Kaun Banega Crorepati 13:
#Which was the first Indus Valley site to be identified in 1921?
#Which place in Kumaon gave its name to a man-eating tigress that features in the Guinness World Record for having killed the most number of people?
#In September 2021, who did the Taliban appoint as the head of the caretaker government of Afghanistan?
#In April 2021, the president of which country signed a law which enables him to remain in office till 2036?
#Which aspect of outer space was discovered by Charles Fabry and Henri Buisson in 1913.
Watch this space for more updates on Kaun Banega Crorepati 13.
|
english
|
FIRST ON FOX: Florida Attorney General Ashley Moody is seeking a temporary restraining order to stop the mass release of migrants into the U. S. coinciding with the end of the Title 42 public health order -- arguing that it is "materially identical" to a policy that was blocked by a federal judge earlier this year.
That policy saw migrants paroled into the U. S. and enrolled into Alternatives to Detention. The federal judge accused the government of "effectively turned the Southwest Border into a meaningless line in the sand and little more than a speedbump for aliens flooding into the country. "
But now, with the Title 42 public health order -- which allows for the rapid expulsion of migrants at the southern border due to the COVID-19 pandemic -- due to expire, there has been a fresh surge in migration which has overwhelmed authorities.
Fox News reported this week that officials in D. C. have authorized all Border Patrol sectors to begin "safe" mass releases of migrants to city streets if non-governmental organizations don't have the capacity to hold them.
A DHS spokesperson told Fox News Digital on Thursday that "reports that CBP is allowing or encouraging mass releases of migrants are categorically false. "
"We are stepping up enforcement actions and have surged 24,000 Border Patrol agents and officers, thousands of troops and contractors, and over a thousand asylum officers and judges to the border. Just yesterday ICE announced that families who attempt to cross the border unlawfully will be placed in expedited removal proceedings, subject to GPS monitoring, and removed within 30 days if they don’t have a legal basis to remain," the spokesperson said.
"As was the case under Republican and Democrat Administrations alike in the past, parole may be considered for certain migrants on a case-by-case basis if they have cleared security vetting, but migrants who do not have a lawful basis to remain will be expeditiously removed — just like the 1. 4 million migrants who were expelled last year alone. "
In the request for a temporary restraining order, Moody’s office argues that the new policy "is materially identical to Parole + ATD. "
"Florida seeks a temporary restraining order to preserve the status quo until the parties can brief motions for a preliminary injunction or to postpone the effective date of the new policy," the lawsuit states. "The Biden Administration’s behavior, if left unchecked, makes a mockery of our system of justice and our Constitution. "
In a related complaint Florida argues that "rather than seek a stay of the Court’s judgment in good faith, the Biden Administration plans to continue its game of whack-a-mole with Florida and with this Court by promulgating yet another unlawful policy. "
In a statement to Fox News Digital, AG Moody said the plan by the Biden administration is "unlawful" and "dangerous. "
"The gall of Biden to thumb his nose at a federal court order and proceed with an unlawful plan to allow what amounts to an invasion at our Southwest Border is not only unprecedented, it is dangerous," she said. "We have blown the whistle on Biden every step along his path to illegally dismantle our nation’s border security system—and even as the clock ticks down to the end of Title 42 we are taking action to force this administration to follow the law, secure the border and protect the American people. "
The state argues that tens of thousands of migrants will be released until the new policy and some will likely make their way to Florida, meaning the state is affected by the move and has standing to challenge it.
"Florida will continue to expend funds on illegal aliens present in the State in the form of public education, incarceration costs for aliens who commit crimes, unemployment benefits, and emergency Medicaid," it argues.
The lawsuit also argues that the agency did not conduct a notice-and-comment period, which it says would be required for a new policy of this kind, and that it also violates statutory limits on parole which is granted only "for urgent humanitarian reasons or significant public benefit. "
Judge T. Kent Wetherell, who blocked the Parole + ATD policy, said in an order responding to the request that the motion "needs to be resolved sooner rather than later" as the policy is to go into effect soon.
"If the allegations in the complaint and motion are true, then it appears that DHS is preparing to flout the Court’s order in Florida v. United States by implementing a new 'parole' policy that, based on the DHS spokesperson’s description of the policy, sounds virtually identical to the Parole+ATD policy the Court vacated in Florida. " he said, giving the administration until 4pm ET to respond.
DHS Secretary Alejandro Mayorkas was asked about the lawsuit at the White House press briefing, and said that it was "interesting to see some of the tools that we employ that are successful or operationally needed to be challenged in the courts. "
"So our parole authority when we use it to release a fraction of the people we encounter and that is challenged, I question the motives of the plaintiffs," he said.
Officials have been bracing for the end of Title 42 for months, fearing a fresh wave of migrants at the border once it ends Thursday evening. DHS Secretary Alejandro Mayorkas has been touting a plan that includes regional cooperation, stiffer Title 8 penalties and a new rule limiting asylum claims. But he said this week that the result of that plan may not be seen right away.
"Even after nearly two years of preparation, we expect to see large numbers of encounters at our southern border in the days and weeks after May 11th," he said. "We are already seeing high numbers of encounters in certain sectors. This places an incredible strain on our personnel, our facilities and our communities with whom we partner closely. "
"Our plan will deliver results, but it will take time for those results to be fully realized. And it is essential that we all take this into account," he said.
Fox News' Bill Melugin and Aubrie Spady contributed to this report.
|
english
|
TSRTC has decided to get rid of the ‘Vajra’ buses completely as they are not usable. It is learned that internal orders have been issued to convert minibusses into scraps under the SCRAP policy.
These buses were purchased at a cost of over Rs 40 crore in total and at a cost of Rs 70 lakh on each bus. The company acquired 60 Vajra Mini AC buses in 2017 with the aim of providing better services to passengers.
Vajra buses are used to transport passengers from major colonies like Mehdipatnam, Kukatpally, and Dilsukhnagar in Hyderabad to various cities. These buses also failed to achieve at least a 50 percent occupancy ratio (OR) due to higher ticker fares.
They are corroded due to a lack of minimum maintenance. It is learned that the authorities have decided to turn the minibusses into scrap as they have become useless.
|
english
|
<filename>uninas/models/abstract.py
import os
import numpy as np
import torch
from uninas.utils.args import ArgsInterface, Namespace
from uninas.utils.paths import replace_standard_paths
from uninas.utils.types import CheckpointType
from uninas.utils.np import squeeze_keep_batch
from uninas.register import Register
class AbstractModel(ArgsInterface):
def save(self, path: str):
""" save this model to 'path' """
path = replace_standard_paths(path)
os.makedirs(os.path.dirname(path), exist_ok=True)
torch.save(self.get_model_state(), path)
def get_model_state(self) -> dict:
""" get a state dict that can later recover the model """
return {
'__type__': CheckpointType.MODEL.value,
'__cls__': self.__class__.__name__,
'state': self._get_model_state(),
}
def load(self, path: str) -> bool:
""" update the current model with the state saved in 'path' """
path = replace_standard_paths(path)
if os.path.isfile(path):
return self.load_state(torch.load(path))
return False
def load_state(self, state: dict) -> bool:
""" update the current model with this state """
if '__type__' in state:
assert CheckpointType.MODEL == state['__type__']
assert state['__cls__'] == self.__class__.__name__
state = state['state']
return self._load_state(state)
@classmethod
def load_from(cls, path: str) -> 'AbstractModel':
""" load the model that's been saved in 'path' """
path = replace_standard_paths(path)
state = torch.load(path)
assert '__cls__' in state, "Missing class info! Expected a model save file, but this is not one: %s" % path
used_cls = Register.get(state['__cls__'])
assert issubclass(used_cls, AbstractModel), "%s is not a subclass of %s" % (used_cls.__name__, AbstractModel.__name__)
return used_cls._load_from(state['state'])
@classmethod
def from_args(cls, args: Namespace, index=None) -> 'AbstractModel':
"""
:param args: global argparse namespace
:param index: argument index
"""
raise NotImplementedError
def _get_model_state(self) -> dict:
""" get a state dict that can later recover the model """
raise NotImplementedError
def _load_state(self, model_state: dict) -> bool:
""" update the current model with this state """
raise NotImplementedError
@classmethod
def _load_from(cls, model_state: dict) -> 'AbstractModel':
""" create this model from a state dict """
raise NotImplementedError
def fit(self, data: np.array, labels: np.array):
"""
fit the model to data+labels
:param data: n-dimensional np array, first dimension is the batch
:param labels: n-dimensional np array, first dimension is the batch
:return:
"""
raise NotImplementedError
def predict(self, data: np.array) -> np.array:
"""
predict the labels of the data
:param data: n-dimensional np array, first dimension is the batch
:return: n-dimensional np array, first dimension is the batch
"""
raise NotImplementedError
class AbstractWrapperModel(AbstractModel):
"""
An abstract model that wraps a model from some external source
"""
_none_args = []
_model_cls = None
def __init__(self, model=None, **kwargs):
super().__init__()
# remove args that are None by default but set to -1 for Argument compatibility
for k in self._none_args:
v = kwargs.get(k, None)
if isinstance(v, int) and v < 0:
del kwargs[k]
self._model_kwargs = kwargs
self.model = model if model is not None else self._model_cls(**kwargs)
@classmethod
def from_args(cls, args: Namespace, index: int = None) -> 'AbstractWrapperModel':
parsed = cls._all_parsed_arguments(args, index=index)
return cls(**parsed)
def _get_model_state(self) -> dict:
""" get a state dict that can later recover the model """
return dict(model=self.model, kwargs=self._model_kwargs)
def _load_state(self, model_state: dict) -> bool:
""" update the current model with this state """
model = model_state.get('model')
kwargs = model_state.get('kwargs')
assert model.__class__ == self.model.__class__, "Used another model in the save file"
assert kwargs == self._model_kwargs, "Used different model params in the model state"
self.model = model
self._model_kwargs = kwargs
return True
@classmethod
def _load_from(cls, model_state: dict) -> AbstractModel:
""" create this model from a state dict """
return cls(model=model_state.get('model'), **model_state.get('kwargs'))
def _str_dict(self) -> dict:
return self._model_kwargs
def fit(self, data: np.array, labels: np.array):
"""
fit the model to data+labels
:param data: n-dimensional np array, first dimension is the batch
:param labels: n-dimensional np array, first dimension is the batch
:return:
"""
self.model.fit(squeeze_keep_batch(data), squeeze_keep_batch(labels))
def predict(self, data: np.array) -> np.array:
"""
predict the labels of the data
:param data: n-dimensional np array, first dimension is the batch
:return: n-dimensional np array, first dimension is the batch
"""
return self.model.predict(squeeze_keep_batch(data))
|
python
|
import chai from 'chai';
import spies from 'chai-spies';
import Bag from '../src/bag';
chai.use(spies);
var expect = chai.expect;
var bag = new Bag();
describe('Bag', () => {
beforeEach(() => {
bag = new Bag();
});
it('should have an add method', () => {
expect(bag).to.have.property('add');
});
it('should have an isEmpty method', () => {
expect(bag).to.have.property('isEmpty');
});
it('should have a size method', () => {
expect(bag).to.have.property('size');
});
it('should have a forEach method', () => {
expect(bag).to.have.property('forEach');
});
describe('add', () => {
it('should add an item to bag', () => {
expect(bag.isEmpty()).to.be.true;
bag.add(5);
expect(bag.isEmpty()).to.be.false;
});
});
describe('isEmpty', () => {
it('should return true if nothing is in the bag', () => {
expect(bag.isEmpty()).to.be.true;
});
it('should return false if an item is added to the bag', () => {
bag.add(5);
expect(bag.isEmpty()).to.be.false;
});
});
describe('size', () => {
it('should return the number of items in the bag', () => {
expect(bag.size()).to.equal(0);
bag.add(1);
expect(bag.size()).to.equal(1);
});
});
describe('forEach', () => {
it('should call the passed in function for each item in the bag', () => {
var spy = chai.spy(function() {});
for(let i = 0; i < 5; i++) {
bag.add(i);
}
bag.forEach(spy);
expect(spy).to.have.been.called.exactly(5);
});
it('should pass in each item to the function', () => {
var items = [];
var pushItem = function(n) {items.push(n)};
for(let i = 0; i < 5; i++) {
bag.add(i);
}
bag.forEach(pushItem);
expect(items).to.include.members([0, 1, 2, 3, 4]);
});
});
});
|
javascript
|
<reponame>Aurrix/currencyConverter
package lv.javaguru.currency.converter.validation.rules;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class IsCurrencyValidatorTest {
@Test
public void isValid() {
IsCurrencyValidator victim = new IsCurrencyValidator();
assertTrue(victim.isValid("USD", null));
assertFalse(victim.isValid("US", null));
}
}
|
java
|
<reponame>SimiSips/RoadeAppFlutter
{"assets/images/accident.png":["assets/images/accident.png"],"assets/images/complete.png":["assets/images/complete.png"],"assets/images/crimescene.png":["assets/images/crimescene.png"],"assets/images/general.png":["assets/images/general.png"],"assets/images/green-robot.png":["assets/images/green-robot.png"],"assets/images/incomplete.png":["assets/images/incomplete.png"],"assets/images/inprogress.png":["assets/images/inprogress.png"],"assets/images/logo.png":["assets/images/logo.png"],"assets/images/manhole.png":["assets/images/manhole.png"],"assets/images/pothole.png":["assets/images/pothole.png"],"assets/images/potholes.png":["assets/images/potholes.png"],"assets/images/red-robot.png":["assets/images/red-robot.png"],"assets/images/signage%20(2).png":["assets/images/signage%20(2).png"],"assets/images/signage.png":["assets/images/signage.png"],"assets/images/stormwater.jpg":["assets/images/stormwater.jpg"],"assets/images/traffic.png":["assets/images/traffic.png"],"assets/images/trafficlight.png":["assets/images/trafficlight.png"],"assets/images/vector10.svg":["assets/images/vector10.svg"],"assets/images/vector11.svg":["assets/images/vector11.svg"],"assets/images/vector4.svg":["assets/images/vector4.svg"],"assets/images/vector5.svg":["assets/images/vector5.svg"],"assets/images/vector6.svg":["assets/images/vector6.svg"],"assets/images/vector7.svg":["assets/images/vector7.svg"],"assets/images/vector9.svg":["assets/images/vector9.svg"],"assets/images/warning.png":["assets/images/warning.png"],"assets/images/yellow-robot.png":["assets/images/yellow-robot.png"],"packages/cupertino_icons/assets/CupertinoIcons.ttf":["packages/cupertino_icons/assets/CupertinoIcons.ttf"],"packages/font_awesome_flutter/lib/fonts/fa-brands-400.ttf":["packages/font_awesome_flutter/lib/fonts/fa-brands-400.ttf"],"packages/font_awesome_flutter/lib/fonts/fa-regular-400.ttf":["packages/font_awesome_flutter/lib/fonts/fa-regular-400.ttf"],"packages/font_awesome_flutter/lib/fonts/fa-solid-900.ttf":["packages/font_awesome_flutter/lib/fonts/fa-solid-900.ttf"]}
|
json
|
Chelsea manager Thomas Tuchel has said that the club have been conducting extensive talks with Barcelona target Cesar Azpilicueta about his future in west London. The German hinted that a possible summer exit for Azpilicueta could be on the cards but admitted that he wants the Spaniard to remain at Stamford Bridge.
Azpilicueta, 32, moved to the Bridge from Marseille in the summer of 2012. He has since put in numerous decisive performances and won all titles with the club, emerging as a bonafide club legend.
Happy with the veteran’s output, Chelsea recently activated a one-year extension clause in his contract. However, that has not stopped the rumour mill from linking the Spaniard with a move to Barcelona (via Fabrizio Romano).
Tuchel admitted that Azpilicueta’s future is not certain and that multiple factors might have influenced his decision-making. Speaking to Chelsea’s official media outlet, the German tactician said:
Although Tuchel did not explicitly take Barcelona’s name, he acknowledged the involvement of another club, saying:
With both Antonio Rudiger and Andreas Christensen refusing to renew their contracts, Chelsea are set to be without two first-team defenders next season. Losing Azpilicueta in that case would be a massive blow, something Tuchel wishes to avoid.
The former Paris Saint-Germain coach said that he understands the right-back’s point of view, but hopes he would consider fulfilling his contract. Tuchel added:
“Given the fact that we lose key defenders already, it’s not the ideal scenario to think about losing Azpi, even though I can understand his personal point of view. "
He continued:
Since joining the Blues in 2012, Azpilicueta has featured in 475 games across competitions, registering 17 goals and 56 assists. He has won two Premier League, one Champions League, one FA Cup and two UEFA Europa League titles, among other honours.
|
english
|
# Generated by Django 3.0.7 on 2020-08-24 06:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datasets', '0008_auto_20200821_1427'),
]
operations = [
migrations.AddField(
model_name='rawdar',
name='AsB',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='AsB_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='AsB_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Ba',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Ba_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='Ba_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Cs',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Cs_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='Cs_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='DMA',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='DMA_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='DMA_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='MMA',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='MMA_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='MMA_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Sr',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='Sr_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='Sr_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='iAs',
field=models.FloatField(blank=True, null=True),
),
migrations.AddField(
model_name='rawdar',
name='iAs_BDL',
field=models.CharField(choices=[('1', 'below detection level'), ('0', 'above detection level'), ('nan', 'invalid')], default=0, max_length=3),
preserve_default=False,
),
migrations.AddField(
model_name='rawdar',
name='iAs_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Ag',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Ag_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Al',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Al_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='As',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='As_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Be',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Be_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cd',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cd_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Co',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Co_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cr',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cr_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cu',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Cu_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Fe',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Fe_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Hg',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Hg_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Mn',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Mn_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Mo',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Mo_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Ni',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Ni_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Pb',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Pb_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Sb',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Sb_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Se',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Se_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Sn',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Sn_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Tl',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Tl_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='U',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='U_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='V',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='V_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='W',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='W_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Zn',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='Zn_IDL',
field=models.FloatField(blank=True, null=True),
),
migrations.AlterField(
model_name='rawdar',
name='urine_specific_gravity',
field=models.FloatField(blank=True, null=True),
),
]
|
python
|
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000
{"nom":"Lougratte","circ":"3ème circonscription","dpt":"Lot-et-Garonne","inscrits":311,"abs":146,"votants":165,"blancs":9,"nuls":6,"exp":150,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":82},{"nuance":"FN","nom":"<NAME>","voix":68}]}
|
json
|
Shoaib Akhtar is never a man of few words. Why would he? After all, the former Pakistan speedster gets paid to voice his opinions on the wonderful game of cricket. And he doesn’t believe in mincing his words. Now, Shoaib has said that most people in current Pakistan management don’t even know about the rules of cricket.
However, he wants star players to join the coaching staff of Pakistan. “I have told Pakistan to bring in players of modern times with star value. They should be new additions who are new blood and can bring in a new attitude who know about modern cricket,” said Akhtar.
Pakistan crashed out of the 2019 Cricket World Cup even without reaching the semi-finals. They had won the 2017 Champions Trophy defeating India in the final, but it wasn’t a joyride for them in this year’s ICC mega event.
|
english
|
- It is really not acceptable that students take the extreme step for a reason like this or any other reason.
A student of a private school in Bengaluru was found hanging from the fan at his house in Soladevanahalli in Bengaluru. According to parents, he might have committed suicide as they had scolded him for not studying well.
Thus it is speculated that pressure from the parents about studies led the boy to take the extreme step. According to sources, Manjunath Reddy, a Tenth standard student was pursuing studies in the private school in the city.
As he could not get good marks in previous examinations, the parents had admitted him to tuition classes. He had been to the tuition class on Wednesday, but when the parents returned home, he was found hanging from the fan on November 8.
A case in this regard has been booked in the Soladevanahalli Police Station, and the post-mortem was conducted at Sapthagiri Hospital.
His father Chandrashekhar Reddy worked as an assistant to the mason and wanted the son to study well so that he would not have to struggle in life. There was pressure from the family to get good results in the examinations.
Manjunath was studying in the tenth standard and had to face public exams, which would decide the future course of studies. But it looks like he was not interested in studies and allegedly took the extreme decision not able to believe in himself.
This is a sad development. Though it is not right on the part of parents to put pressure on the students to fare well, it is not acceptable that students take the extreme step for a reason like this or any other reason.
|
english
|
SAN JOSE: A United States company has introduced an eco-friendly supercars using 3D printed parts.
This is the Blade, a supercar that its makers hope will re-define car manufacturing. It did not come off an assembly line but out of a 3D printer.
Kevin Czinger of Divergent Microfactories was of view that the business of car manufacturing was destroying the environment.
It achieves this by changing the way cars are built. Currently cars are pieced together on long assembly lines inside large factories that use massive amounts of energy. Even the most fuel efficient car has a large carbon footprint before ever leaving the plant.
The 3D printed chassis is only 102 pounds and has the same strength and safety protection as a frame made out of steel.
By using carbon fiber instead of steel or aluminum for the body, the entire vehicle only weighs 1400 pounds or 635kg, giving it twice the weight to horsepower ratio of a Bugatti Veyron.
The Blade is fitted with a 700 horse power engine that runs on natural gas, reducing its carbon footprint even further. By constructing a car this way it has less than one third of the environmental and health impact than the 85 hours all electric car for example has.
|
english
|
Ravindra Jadeja laughed off the prospect of becoming a bowling coach or mentor recently, after being spotted giving his colleagues bowling advice in the West Indies.
The 34-year-old had a long chat with West Indies’ Jomel Warrican and Jadeja said he was happy to share his experience with the fellow left-arm spinner.
“He approached me seeking help, and I shared some of my experience. He had some technical doubts, which I tried to clear,” he said.
“Hopefully he will work on those areas and get better.
|
english
|
<filename>composer.json
{
"name": "lasallesoftware-serverless/sample-lambda-create-sns-topic-subscription",
"description": "Create an SNS topic and subscription sample PHP Lambda function using the Serverless Framework with Bref's PHP plugin",
"keywords": ["php", "serverless", "lambda"],
"license": "MIT",
"homepage": "https://phpserverlessproject.com",
"support": {
"issues": "https://github.com/lasallesoftware-serverless/sample-lambda-create-sns-topic-subscription/issues",
"source": "https://github.com/lasallesoftware-serverless/sample-lambda-create-sns-topic-subscription"
},
"authors": [
{
"name": "<NAME>",
"email": "<EMAIL>"
}
],
"require": {
"php": "^8.0",
"aws/aws-sdk-php": "^3.212",
"bref/bref": "^1.5"
},
"config": {
"optimize-autoloader": true,
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
|
json
|
<reponame>sflin/ASER_Recommender
{"collections":[{"fullName":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator","methods":[{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.GetLocationIndices(KaVE.Commons.Utils.Collections.IKaVEList`1[[T -\u003e KaVE.Commons.Model.ObjectUsage.Query, KaVE.Commons]] aqs, KaVE.Commons.Utils.Collections.IKaVEList`1[[T -\u003e KaVE.Commons.Model.ObjectUsage.Query, KaVE.Commons]] bqs)","type":"SIMPLE","count":2},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.Find(System.Tuple`2[[T1 -\u003e KaVE.Commons.Model.ObjectUsage.CoReMethodName, KaVE.Commons],[T2 -\u003e KaVE.Commons.Model.ObjectUsage.CoReTypeName, KaVE.Commons]] key, KaVE.Commons.Utils.Collections.IKaVEList`1[[T -\u003e KaVE.Commons.Model.ObjectUsage.Query, KaVE.Commons]] usages)","type":"SIMPLE","count":4},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.Strip(KaVE.Commons.Model.ObjectUsage.Query orig)","type":"SIMPLE","count":4},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.HaveEqualCallSites(KaVE.Commons.Model.ObjectUsage.Query a, KaVE.Commons.Model.ObjectUsage.Query b)","type":"SIMPLE","count":2},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator(KaVE.Commons.Utils.ObjectUsageExport.IUsageExtractor usageExtractor)","type":"CTOR","count":4},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.FindFirstAndLast(System.Collections.Generic.IList`1[[T -\u003e KaVE.Commons.Model.Events.CompletionEvents.CompletionEvent, KaVE.Commons]] es)","type":"SIMPLE","count":8},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.GenerateTuples(KaVE.Commons.Model.Events.CompletionEvents.Context first, KaVE.Commons.Model.Events.CompletionEvents.Context last)","type":"SIMPLE","count":10},{"name":"KaVE.RS.SolutionAnalysis.CompletionEventToMicroCommits.MicroCommitGenerator.GetTemporalIndex(KaVE.Commons.Model.Events.CompletionEvents.CompletionEvent event)","type":"SIMPLE","count":2}]}]}
|
json
|
<reponame>adeiltonsousa/bdr-teste-front-end<filename>gulp/tasks/imagemin.js<gh_stars>0
'use strict';
const gulp = require('gulp');
const plumber = require('gulp-plumber');
const cache = require('gulp-cache');
const imagemin = require('gulp-imagemin');
const paths = require('../paths');
module.exports = gulp.task('imagemin', () => {
return gulp
.src(paths.source.img)
.pipe(plumber())
.pipe(
cache(
imagemin({
optimizationLevel: 3,
progressive: true,
interlaced: true
})
)
)
.pipe(gulp.dest(paths.build.img));
});
|
javascript
|
/**
* Copyright (C) 2021 BitModern, Inc - All Rights Reserved
*/
import { _client } from '../../../ClientSdk';
import { getResponse } from '../../actions/getResponse';
import { QueryParams } from '../../actions/QueryParams';
import { TestQualityTypeRoute } from '../../routes/Routes';
import { TestQualityType } from './TestQualityType';
import { TestQualityTypeHistory } from './TestQualityTypeHistory';
export const testQualityTypeHistoryGet = (
queryParams?: QueryParams<TestQualityType>
): Promise<TestQualityTypeHistory[]> => {
const config: QueryParams<TestQualityType> = {
method: 'get',
url: `${queryParams?.url || TestQualityTypeRoute()}${
queryParams?.id ? `/${queryParams?.id}` : ''
}`,
params: { revision_log: true, ...queryParams?.params },
cancelToken: queryParams?.cancelToken,
};
return queryParams?.batch
? queryParams.batch.addBatch<TestQualityTypeHistory[]>(config)
: getResponse<TestQualityTypeHistory[], TestQualityType>(
queryParams?.api || _client?.api,
config
);
};
|
typescript
|
<reponame>fukakai/Java-Tricks<filename>Secrets/src/com/dalichamp/romain/java/secrets/enumm/Speaker.java
package com.dalichamp.romain.java.secrets.enumm;
public interface Speaker {
public void speak();
}
|
java
|
// Copyright (c) 2012 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.
#include "ui/wm/core/shadow_types.h"
#include "ui/base/class_property.h"
namespace wm {
DEFINE_UI_CLASS_PROPERTY_KEY(int, kShadowElevationKey, kShadowElevationDefault)
void SetShadowElevation(aura::Window* window, int elevation) {
window->SetProperty(kShadowElevationKey, elevation);
}
int GetDefaultShadowElevationForWindow(const aura::Window* window) {
switch (window->type()) {
case aura::client::WINDOW_TYPE_NORMAL:
return kShadowElevationInactiveWindow;
case aura::client::WINDOW_TYPE_MENU:
case aura::client::WINDOW_TYPE_TOOLTIP:
return kShadowElevationMenuOrTooltip;
default:
return kShadowElevationNone;
}
}
int GetShadowElevationConvertDefault(const aura::Window* window) {
int elevation = window->GetProperty(kShadowElevationKey);
return elevation == kShadowElevationDefault
? GetDefaultShadowElevationForWindow(window)
: elevation;
}
} // namespace wm
|
cpp
|
<gh_stars>0
/*
* Aeronica's mxTune MOD
* Copyright 2018, <NAME> a.k.a. Aeronica
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package aeronicamc.mods.mxtune.sound;
import aeronicamc.libs.mml.parser.MMLParser;
import aeronicamc.libs.mml.parser.MMLParserFactory;
import aeronicamc.libs.mml.parser.MMLUtil;
import aeronicamc.mods.mxtune.util.SoundFontProxyManager;
import net.minecraft.client.resources.I18n;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import javax.sound.midi.MidiUnavailableException;
import javax.sound.midi.Patch;
import javax.sound.sampled.AudioInputStream;
public class MML2PCM
{
private static final Logger LOGGER = LogManager.getLogger();
private final AudioData audioData;
private final String mmlText;
MML2PCM(AudioData audioData, String mmlText)
{
this.audioData = audioData;
this.mmlText = mmlText;
}
public boolean process()
{
MMLParser mmlParser;
mmlParser = MMLParserFactory.getMMLParser(mmlText);
MMLToMIDI toMIDI = new MMLToMIDI();
toMIDI.processMObjects(mmlParser.getMmlObjects());
// Log bank and program per instrument
for (int preset: toMIDI.getPresets())
{
Patch patchPreset = MMLUtil.packedPreset2Patch(SoundFontProxyManager.getPackedPreset(preset));
// FIXME: Language Format
String name = I18n.get(SoundFontProxyManager.getLangKeyName(preset));
LOGGER.debug("MML2PCM preset: {}, bank: {}, program: {}, name: {}", preset, patchPreset.getBank(),
patchPreset.getProgram(), name);
}
// Generate PCM Audio Stream from MIDI
try
{
Midi2WavRenderer mw = new Midi2WavRenderer();
AudioInputStream pcmStream = mw.createPCMStream(toMIDI.getSequence(), audioData.getAudioFormat());
audioData.setAudioStream(pcmStream);
} catch (ModMidiException | MidiUnavailableException e)
{
audioData.setStatus(ClientAudio.Status.ERROR);
LOGGER.error("MIDI to PCM process: ", e);
return false;
}
audioData.setStatus(ClientAudio.Status.READY);
return true;
}
}
|
java
|
You might consider online shopping a piece of cake sitting at the comfort of your home, sippin’ on that hot cuppa, and just chillaxin’. Well, ever thought about what actually happens at the warehouse when you place your orders? It certainly is not what you think it is because.. you’ll find out!
Ladies and gentlemen, your minds are about to get blown away! Why? Well, team Parhlo was invited over to Daraz’s warehouse to experience all the magic that takes place at the backend!
Brace yourselves for all the teeny tiny details, guys!
So, before we begin, let’s just say that Daraz is a world of its own. Can you believe that it has three big warehouses?! This is what took me by surprise! I mean, not one but three. Heavy scene! One of the warehouses deals with all the brands, one deals with all the electronics items and the last one deals with all the deliveries and courier services. Wowza!
Have a look!
And there’s more!! My day was legit full of surprises! (Apart from the fact that I was about to get lost lol) Not my fault! But it was so much fun!
What surprised me was the number of people working in a single room! Although the room was GINORMOUS, would you imagine more than 300 Customer Service agents working there? Alright, now that was a sight to see! Anyway, once the order has been placed, it is then forwarded to the relevant warehouses. This was pretty interesting! Every agent seemed super busy! How do they even do it? Still in awe!
Oh, and if we talk about their quality assurance, I was literally impressed! Their policies are pretty strict regarding the quality of every single product. Each and every single product goes through clearance! Absolutely loved it. I mean, that’s what we look out for, isn’t it? Job well done!
Look at those shelves!!!
And this!
What made my experience even better was the people at Daraz. They were so helpful and humble and from guiding me and showing everything in detail of how things work there, they made sure I experience it all! Really impressive. Never knew this place would be so huge and so happening!
|
english
|
Washington: Indian-American Congresswoman Pramila Jayapal has introduced a Congressional resolution urging India to end the restrictions on communications in Jammu and Kashmir as swiftly as possible and preserve religious freedom for all residents.
The resolution, introduced in the House of Representatives after several weeks of efforts by Jayapal on Friday, has only one co-sponsor – Republican Congressman Steve Watkins from Kansas. It’s a simple resolution, which cannot be voted in the other chamber, Senate, and does not have the force of law.
Ahead of the introduction of the resolution, Indian-Americans from across the US urged her in various settings against it. Her office is believed to have received more than 25,000 emails from Indian-Americans in addition to in-person meetings by several representations of Indian-Americans.
Indian-Americans held peaceful demonstrations outside her office against her move to table the resolution on Kashmir.
The resolution urges India to lift the remaining restrictions on communication and to restore internet access across all of Jammu and Kashmir as swiftly as possible.
India has defended imposition of restrictions in the Kashmir Valley on the grounds that they were put to prevent Pakistan from creating more mischief through proxies and terrorists following the abrogation of Article 370 on August 5.
While the resolution recognises the dire security challenges faced by India in Jammu and Kashmir and the continuing threat of state-supported cross-border terrorism, the resolution urges India to refrain from the use of threats and excessive force against detained people and peaceful protesters.
It requests India to “swiftly release arbitrarily detained people” and “refrain from conditioning” the release of detained people on their willingness to sign bonds prohibiting any political activities and speeches.
The resolution claims that there is photographic evidence indicating that detained people have been required to sign surety bonds forbidding them from making statements or participating in political activities as a condition of their release.
India has denied these allegations. India maintains that the revocation of Jammu and Kashmir’s special status was its sovereign decision and it cannot accept any interference in its internal affairs.
The Indian government has said that the abrogation of Article 370 was in the interests of the residents of Jammu and Kashmir. It maintains the move will help them get rights that have been denied to them for many decades.
Among other things, the resolution urges India to allow international human rights observers and journalists to access Jammu and Kashmir and operate freely throughout India, without threats.
Noting that India’s Constitution mandates a secular state that upholds the rights of all citizens to the freedoms of religion, expression, and speech and to equal treatment before the law, the resolution also condemns all religiously motivated violence, including against religious minorities.
The resolution introduced by Jayapal, the first-ever Indian-American woman to be elected to the House of Representatives, is the second such resolution in the US Congress on Kashmir.
The first one introduced by Congresswoman Rashida Tlaib on November 21 failed to get even a single co-sponsor. Her resolution was announced on Twitter by a Pakistani American and a senior official of Council on American Islamic Relations, a Muslim civil rights, and advocacy group.
Congressional observers point that Tlaib, Jayapal along with Ilhan Omar, are the three lawmakers to be taking the lead on anti-India stand inside the House of Representatives.
Despite intense efforts post-August 5, this group has managed to get just three lawmakers, including one outside their circle, for two resolutions on Kashmir, is reflective that their stand on Kashmir has gained little traction inside the Congress.
Ravi Batra, an eminent Indian American attorney from New York, on Saturday accused Jayapal of being unprincipled, anti-Hindu, pro-terror and shamelessly pandering for political advantage.
“I reject with extreme prejudice – unprincipled self-promoting liberal lunatics who have never governed – folks like Pramila Jayapal and Ilhan Omar, who merely pander for political advantage shamelessly,” Batra said in a statement.
Batra had testified before House Foreign Affairs Sub-Committee on Asia, the Pacific and Non-Proliferation on October 22, which essentially ended up being in an anti-India tirade by a small group of lawmakers.
Testifying before the Congressional sub-committee at the invitation of the House Foreign Affairs Committee Chairman, Eliott Engel, Batra had said terror needs to be eradicated to protect human rights.
|
english
|
<reponame>Octavian11/nodeShopifyQuantum
{
"redisHost": redis-13872.c1.us-central1-2.gce.cloud.redislabs.com,
"redisPort": 13872,
"redisKey": sana0107
}
|
json
|
Your guide to all the new movies and shows streaming on Netflix in the US this month.
1. Act of Valor (2012)
An elite team of Navy SEALs embark on a covert mission to recover a kidnapped CIA agent.
2. All Dogs Go to Heaven (1989)
A canine angel, Charlie, sneaks back to earth from heaven but ends up befriending an orphan girl who can speak to animals. In the process, Charlie learns that friendship is the most heavenly gift of all.
3. Bad News Bears (2005)
A grizzled little league coach tries to turn his team of misfits into champs.
A convicted rapist, released from prison after serving a fourteen-year sentence, stalks the family of the lawyer who originally defended him.
An afterlife therapist and his daughter meet a friendly young ghost when they move into a crumbling mansion in order to rid the premises of wicked spirits.
Sakura stumbled upon the book of Clow Cards in a library. Accidentally setting the magical cards loose, it's now up to Sakura to catch them all with her best friend Tomoyo, and Kerberos, the guardian of the cards.
Shallow, rich and socially successful Cher is at the top of her Beverly Hills high school's pecking scale. Seeing herself as a matchmaker, Cher first coaxes two teachers into dating each other.
8. E.T. the Extra-Terrestrial (1982)
A troubled child summons the courage to help a friendly alien escape from Earth and return to his home planet.
A young man suddenly discovers that he has the gift of healing. As he tries to understand it and the new reality it offers, a teenage girl with terminal cancer unexpectedly shows him the way.
A police detective, a bank robber, and a high-power broker enter high-stakes negotiations after the criminal's brilliant heist spirals into a hostage situation.
During World War II era, a young woman, Wang Jiazhi, gets swept up in a dangerous game of emotional intrigue with a powerful political figure, Mr. Yee.
12. Observe and Report (2009)
Bi-polar mall security guard Ronnie Barnhardt is called into action to stop a flasher from turning shopper's paradise into his personal peep show. But when Barnhardt can't bring the culprit to justice, a surly police detective is recruited to close the case.
A priest disobeys church law to track down the vampires who kidnapped his niece.
14. The Silence of the Lambs (1991)
A young F.B.I. cadet must receive the help of an incarcerated and manipulative cannibal killer to help catch another serial killer, a madman who skins his victims.
15. Starship Troopers (1997)
Humans in a fascist, militaristic future wage war with giant alien bugs.
An American nanny is shocked that her new English family's boy is actually a life-sized doll. After she violates a list of strict rules, disturbing events make her believe that the doll is really alive.
A small desert town is terrorized by a powerful, seemingly possessed car, and the local sheriff may be the only one who can stop it.
18. The Disaster Artist (2017)
When aspiring actor Greg Sestero meets the weird and mysterious Tommy Wiseau in an acting class, they form a unique friendship and travel to Hollywood to make their dreams come true.
An aspiring author during the civil rights movement of the 1960s decides to write a book detailing the African American maids' point of view on the white families for which they work, and the hardships they go through on a daily basis.
20. The Lake House (2006)
A lonely doctor who once occupied an unusual lakeside house begins to exchange love letters with its former resident, a frustrated architect. They must try to unravel the mystery behind their extraordinary romance before it's too late.
After the death of Princess Diana, Queen Elizabeth II struggles with her reaction to a sequence of events nobody could have predicted.
Bill and Jo Harding, advanced storm chasers on the brink of divorce, must join together to create an advanced weather alert system by putting themselves in the cross-hairs of extremely violent tornadoes.
23. V for Vendetta (2005)
In a future British dystopian society, a shadowy freedom fighter, known only by the alias of "V", plots to overthrow the tyrannical government - with the help of a young woman.
24. Walk Hard: The Dewey Cox Story (2007)
Singer Dewey Cox overcomes adversity to become a musical legend.
25. West Side Story (1961)
Two youngsters from rival New York City gangs fall in love, but tensions between their respective friends build toward tragedy.
26. You Don't Mess with the Zohan (2008)
An Israeli Special Forces Soldier fakes his death so he can re-emerge in New York City as a hair stylist.
Between 1968 and 1983, a San Francisco cartoonist becomes an amateur detective obsessed with tracking down the Zodiac Killer, an unidentified individual who terrorizes Northern California with a killing spree.
Ten survival "experts" attempt to survive alone. The winner receives $500,000.
In a continuation of Full House (1987), D.J. Fuller is a mother of three young boys and is a recent widow. D.J.'s sister Stephanie, her best friend Kimmy and Kimmy's teenage daughter all move in to help raise her sons. The house is now a lot fuller.
30. Garth Brooks: The Road I'm On (2019)
A look at the life and career of Garth Brooks and his wife Trisha Yearwood.
31. True: Rainbow Rescue (2020 TV Special)
True and Bartleby travel to the other side of the Neverending Rainbow to bring back Dillydally - a brave explorer who's the Rainbow King's best friend.
32. Why We're Killing Gunther (2017)
A group of eccentric assassins are fed up with Gunther, the world's greatest hitman, and decide to kill him, but their plan turns into a series of bungled encounters as Gunther seems to always be one step ahead.
In 2002, an artistically inclined 17-year-old girl comes of age in Sacramento, California.
34. Spelling the Dream (2018)
Chronicle of the ups and downs of four Indian-American students as they compete to realize their dream of winning the iconic tournament.
The protagonist, Baki Hanma, trains with an intense focus to become strong enough to surpass his father, Yujiro Hanma, the strongest fighter in the world.
-'M'entends-tu?' is a dramatic comedy that plunges us into the unusual daily life of Ada, Fabiola and Carolanne, three long-time friends from the midst of poverty.
Follows teenager Clay Jensen, in his quest to uncover the story behind his classmate and crush, Hannah, and her decision to end her life.
A bank employee weighed down by her jobless husband's debts - and her own broken dreams - finds a secret source of seemingly unlimited cash in her home.
Explores the early relationship between renowned psychiatrist Hannibal Lecter and a young FBI criminal profiler who is haunted by his ability to empathize with serial killers.
40. The Last Days of American Crime (2020)
In the not-too-distant future, as a final response to terrorism and crime, the U.S. government plans to broadcast a signal making it impossible for anyone to knowingly commit unlawful acts.
A new Fab Five set out to Atlanta to help some of the city's people refine their wardrobes, grooming, diet, cultural pursuits, and home décor.
Teresa flees Mexico after her drug-runner boyfriend is murdered. Settling in Dallas she looks to become the country's reigning drug smuggler and to avenge her lover's murder.
43. Patriot Act with Hasan Minhaj (2018–2020)
In this weekly show, the former Daily Show correspondent Hasan Minhaj brings his unique comedic voice and storytelling skill to explore the larger grim trends shaping our fragmented world.
44. Before I Fall (2017)
February 12 is just another day in Sam's charmed life, until it turns out to be her last. Stuck reliving her last day over and over, Sam untangles the mystery around her death and discovers everything she's losing.
Anna returns to her family's hotel in the mountains of Italy with her twins to find that old superstitions and town demons have not been forgotten nor have they died in the time she was away.
46. DC's Legends of Tomorrow (2016–2022)
Time-traveling rogue Rip Hunter must recruit a ragtag team of heroes and villains to help prevent an apocalypse that could impact not only Earth, but all of time.
An intimate look at the lives of four doctors - two brain surgeons, an emergency room physician, and a Chief Resident OBGYN - as they navigate the highs and lows of working at the renowned Lenox Hill Hospital in New York City.
Chronicles Jack Harris, one of the pioneers of Internet commerce, as he wrestles with his morals and struggles not to drown in a sea of con men, mobsters, drug addicts, and porn stars.
A man in his 40s withstands the weight of life. A woman in her 20s goes through different experiences, but also withstands the weight of her life. The man and woman get together to help each other.
A zombie apocalypse that imprisons participants and producers of a reality show called Olimpo, The House of the Gods. The studio becomes a shelter for those who seek salvation in Rio de Janeiro where chaos and hopelessness begin to rule.
In the New York of the late '80s and early '90s, this is a story of ball culture and the gay and trans community, the raging AIDS crisis, and capitalism.
Four African-American vets battle the forces of man and nature when they return to Vietnam seeking the remains of their fallen squad leader and the gold fortune he helped them hide.
In a series of flirtations and fails, six real-life singles navigate five blind dates. Their mission: Find one perfect match worthy of a second date.
Follow the Murphy family back to the 1970s, when kids roamed wild, beer flowed freely and nothing came between a man and his TV.
55. Jo Koy: In His Elements (2020 TV Special)
Jo Koy returns to the Philippines to show off the local culture and headline a special featuring Filipino American comedians, DJs and hip-hop dancers.
56. Kipo and the Age of Wonderbeasts (2020)
A girl explores the possibilities in a post-apocalyptic world.
57. One Piece: Episode of Alabasta - The Desert Princess and the Pirates (2007)
A re-telling of the Alabaster Arc from One Piece (TV). Luffy and his crew come to rescue a land in the midst of a civil war, due to a powerful devil fruit user.
58. One Piece - Episode of East Blue: Luffy and His Four Friends' Great Adventure (2017 TV Movie)
The words that Gold Roger, the King of the Pirates, uttered just before his death excited the masses and the world has entered a Great Pirate Era. There is a group of young pirates who are about to set sail on the Grand Line.
Ash Ketchum, his yellow pet Pikachu, and his human friends explore a world of powerful creatures.
60. The Search (I)
A man uses quantum physics, philosophy and theology to obtain the power to create miracles.
In Warsaw, a prosecutor's hopes rise after a body is found and linked to his sister's disappearance 25 years earlier.
Lifelong best friends Alexa Mendoza and Katie Cooper are anticipating the start of their freshman year of high school. They confront a crisis that leaves them feeling like outsiders at a time when fitting in is what seems to matter most.
63. How to Get Away with Murder (2014–2020)
A group of ambitious law students and their brilliant criminal defense professor become involved in a twisted murder plot that promises to change the course of their lives.
Milea made the decision to part with Dilan as a warning for Dilan to stay away from the motorcycle gang. But the parting which had been only a bluff for Milea became a parting that lasted until they graduated from college and grew up.
Marcella Backland left the Metropolitan Police for the sake of her family, only to have her husband leave her. She returns to her job on the murder squad, investigating a case that seems disturbingly familiar to her.
A young man named Amadeo sets off on an unexpected adventure with the players of his beloved Foosball game.
A successful, single businesswoman who dreams of having a baby discovers she is infertile and hires a working class woman to be her unlikely surrogate.
68. Charlie St. Cloud (2010)
After Charlie survives a car crash that kills his younger brother, he is given the gift of seeing the spirits of his brother and others who he has lost, and must use his powers to save the woman he loves from impending disaster.
A family unknowingly awakens an ancient supernatural entity on a Grand Canyon vacation, and must fight for survival when it follows them home.
A dramatic retelling of the post-Watergate television interviews between British talk-show host David Frost and former president Richard Nixon.
71. An Evening with Beverly Luff Linn (2018)
Lulu Danger's unsatisfying marriage takes a turn for the worst when a mysterious man from her past comes to town to perform an event called "An Evening With Beverly Luff Linn; For One Magical Night Only."
A good-natured high school teacher working at his alma mater works with gifted but misfit and disinterested students.
73. A Whisker Away (2020)
Miyo Sasaki is in love with her classmate Kento Hinode and tries repeatedly to get Kento's attention by transforming into a cat, but at some point, the boundary between herself and the cat becomes ambiguous.
Out to avenge his mother's death, a college student pledges to a secret order and lands in a war between werewolves and practitioners of dark magic.
A look at how infants learn and discover during their first year of life.
76. Father Soldier Son (2020)
When Sgt. First Class Brian Eisch is critically wounded in Afghanistan, it sets him and his sons on a journey of love, loss, redemption and legacy.
77. Feel the Beat (2020)
After failing to find success on Broadway, April returns to her hometown and reluctantly is recruited to train a misfit group of young dancers for a big competition.
78. Floor Is Lava (2020– )
Teams compete to navigate rooms flooded with lava by leaping from chairs, hanging from curtains and swinging from chandeliers.
A small time delinquent, turned police mechanic for a go fast task force, is forced to defend his innocence when his mentor is killed by dirty cops.
After her husband's disappearance, Maria Luiza opens a Bossa Nova club in defiance of her normally conservative demeanor.
81. One-Way to Tomorrow (2020)
A romantic story of two strangers who come across each other on a journey from Ankara to Izmir.
Payton Hobart, a student from Santa Barbara, has known since age seven that he's going to be President of the United States. But first he'll have to navigate the most treacherous political landscape of all: Saint Sebastian High School.
Two best friends find fun and adventure while living in Rhyme Time Town, a fantastical place filled with beloved nursery rhyme characters.
84. Wasp Network (2019)
The story of five Cuban political prisoners who had been imprisoned by the United States since the late 1990s on charges of espionage and murder.
A teenager in a family shelter wages war against the system to keep her sisters together while she pursues her dreams of being a dancer. A story about displaced youth, ambition. and strength.
As the Barrett family's peaceful suburban life is rocked by an escalating series of disturbing events, they come to learn that a terrifying and deadly force is after them, one which may have arrived from beyond the stars.
87. Eric Andre: Legalize Everything (2020 TV Special)
Eric Andre takes the stage in New Orleans and tackles flawed fast-food icons, the wonders of autofill and the bizarre choice for the "Cops" theme song.
Follow the Indianapolis Star reporters that broke the story about USA Gymnastics doctor Larry Nassar's abuse and hear from gymnasts like Maggie Nichols.
89. Crazy Delicious (2020)
Carla Hall, Niklas Ekstedt and Heston Blumenthal will judge as three cooks will battle it out to create the best feast.The set will be entirely edible and will contain edible blossom, chocolate soil, and a drinkable babbling brook.
90. Nobody Knows I'm Here (2020)
Memo lives on a remote Chilean sheep farm, hiding a beautiful singing voice from the outside world. A recluse with a glittery flair, he can't stop dwelling on the past, but what will happen once someone finally listens?
91. All for Love (2020)
92. Eurovision Song Contest: The Story of Fire Saga (2020)
When aspiring musicians Lars and Sigrit are given the opportunity to represent their country at the world's biggest song competition, they finally have a chance to prove that any dream worth having is a dream worth fighting for.
Todd and Rory are intellectual soul mates. He might be gay. She might not care. A romantic-comedy drama with a twist; a love story without the thrill of copulation.
During their first year of high school, four best girlfriends face off against the domineering student body President, who wants to split them up into different social cliques.
Morphed into a raccoon beastman, Michiru seeks refuge, and answers, with the aid of wolf beastman Shirou inside the special zone of Anima-City.
96. George Lopez: We'll Do It for Half (2020 TV Special)
Comedian George Lopez tackles the future and the past of Hispanic culture in America, touching on immigration, his tough relatives, aging and much more.
Centers on a town where aliens with unearthly abilities live undercover among humans. But when a violent attack points to a greater alien presence, the politics of fear and hatred threaten to expose them.
98. The Show Must Go On: The Queen + Adam Lambert Story (2019 TV Movie)
A documentary chronicling Queen and Lambert's incredible journey since they first shared the stage together on "American Idol" in 2009.
|
english
|
What name should I choose for a girl? For many parents, the main criterion is uniqueness. But do not forget that it should have a decent characteristic and be euphonious. There are many such names. One of them is Theona.
Teons are often referred to as girls in Georgia. Because of the popularity of the name, you can often find the statement that this country is his homeland. In fact, the name of Theon origin is Greek. At first it was male, Theon. But later appeared a female version - Theona. The meaning of the name, according to one version, is to be found in the word theonos - "divine wisdom, divine understanding, thought of God. " Another version says that Theon was the result of a merger of two words: theos and fanes ("gods" and "phenomenon"). The third version of the translation of the name sounds like "goddess, divine. " If you look at all the interpretations, the meaning that Teona bears will become obvious. The meaning of the name is inseparably connected with God.
The possessor of this name (the Christian version is Feona) is very sociable, friendly. It is always surrounded by a large number of friends and acquaintances. She does not like and does not know what loneliness is. He appreciates honesty, decency, openness in people. With a selfish, hypocritical, deceitful person, the owner of this name will not communicate. Can even defiantly turn away and get away from an unpleasant interlocutor.
This girl does not like quarrels. She is very accommodating, it is difficult to quarrel with her. An unpleasant situation tries to smooth out immediately and prevent scandals. If the conflict can not be avoided, then it seeks a compromise that both warring parties will suit, or simply escapes from the scandal. And it acts gently, unobtrusively.
Friends and acquaintances of Theons appreciate this quality in it and are often invited to resolve the disputed situation. It turns out to be a beautiful independent referee.
Theona is a creative person. She is able to build a career, doing what she likes. However, for success, she may lack the sense of purpose, perseverance. You should learn to focus on one thing, and not to be scattered over trifles. If Teona tries, she will achieve good results, make her life comfortable and financially independent. Creativity is the best career path for a man like Theon.
The meaning of the name should not be underestimated. It carries a secret meaning. Knowing it, you can better understand another person or yourself.
This name is given to some famous women. This is Teona Dolnikov, Theon Contridze, Theon Kumsiashvili.
|
english
|
<reponame>RicardoJBarrios/kuoki<gh_stars>0
import { Injectable } from '@angular/core';
import { DefaultEnvironmentService as OriginalEnvironmentService, EnvironmentStore } from '@kuoki/environment';
@Injectable()
export class DefaultEnvironmentService extends OriginalEnvironmentService {
constructor(protected override readonly store: EnvironmentStore) {
super(store);
}
}
|
typescript
|
# Uno
## Server
- ASP.NET core
- Odachi
## Browser
- React
- Mobx
- Inversify
- Reflect Metadata
- UI Router
|
markdown
|
Buying a gift for your sibling on Raksha Bandhan is never an easy job. With just a couple of days left for the festival, you must be prepared with the gift by now. There is an array of things you can give to your sibling than just cash.
Online retailers like Amazon, Flipkart and Paytm are offering some lucrative deals for the customers. So, now you can buy the perfect gift without having to worry about the price.
Here are the top Raksha Bandhan offers:
Indian Railways Catering and Tourism Corporation Ltd (IRCTC), the ticketing arm of Indian Railways, has come up with its latest offer for passengers to celebrate Raksha Bandhan in Sri Lanka.
The special tour of Sri Lanka will cover major tourist attractions including the places associated with the great epic Ramayana. Passengers will depart from Delhi Airport on August 25 for the tour.
Flipkart discount up to 40%.
Flipkart is offering Raksha Bandhan discounts on various products across its categories. On Raksha Bandhan gifts, Flipkart is offering discount up to 40%.
Under its #SendTheLove offer, Amazon has announced various offers on gift options. Customers can also avail an additional 5% off on Amazon pay.
If you want to give your sister the variety of products to choose from, then you can purchase the Flipkart or Amazon e-gift vouchers. Both the e-shopping website share similar voucher amounts ranging from Rs 100 to Rs 10,000.
Paytm Mall is offering a wide variety of rakhis for your elder and younger siblings. Here is the list of rakhis that your brothers will love to flaunt on other days as well.
Paytm Mall has also included the emoji rakhis, as we know this is the generation of emojis then why not rakhis. This one will be a very apt gift to your siblings, which he can love to wear even after the festive occasion.
MakeMyTrip: Travel aggregator MakeMyTrip is offering Raksha Bandhan gift vouchers meant for travel. All you have to do is go on its website and place an order for a Raksha Bandhan gif card.
It is a simple process and all you need to do is visit this link - https://makemytrip. woohoo. in/rakshabandhan. As soon as you are on the page, you will be asked to enter the amount (capped at Rs 50,000) and the number of gift cards you want to buy.
|
english
|
<gh_stars>0
/**
* Om
* Krim Krim Krim Hum Hum Hrim Hrim Daksine Kalike
* Krim Krim Krim Hum Hum Hrim Hrim Svaha
*
* InnovAnon, Inc. Proprietary
*
* NOTICE:
* All reproductions, total or partial, of this work must retain this notice.
*
* Possession or use of this technology implies consent to our Terms of Service.
*
* Owner and management NOT responsible for injury or death resulting from the use of this equipment.
*
* If any clause in this notice is invalid or unenforceable in your jurisdiction, that does NOT necessarily invalidate any other clause in this notice.
*
* Om
* Krim Krim Krim Hum Hum Hrim Hrim Daksine Kalike
* Krim Krim Krim Hum Hum Hrim Hrim Svaha
*/
package com.innovanon.old_simon.Simon1.suppliers;
import java.util.function.Supplier;
import com.innovanon.old_simon.Simon1.RandomScalarInstantiator;
import com.innovanon.old_simon.Simon1.randoms.RandomWrapper;
/**
* @author gouldbergstein
*/
public class RandomSupplier<T, R extends RandomWrapper<T>> extends RandomScalarInstantiator<T,R> implements Supplier<T> {
/**
* @param random
*/
public RandomSupplier(R random) {
super(random);
}
/* (non-Javadoc)
* @see java.util.function.Supplier#get()
*/
@Override
public T get() {
return getRandom().next();
}
}
|
java
|
Brazil head into Monday’s World Cup last-16 tie against South Korea preoccupied by the health of the great Pele and with coach Tite wondering whether to recall the Selecao’s current number 10 Neymar after an ankle injury.
Tite used his press conference prior to Friday’s final group game against Cameroon to wish Pele a speedy recovery after the all-time great was admitted to hospital in Sao Paulo during the week.
The three-time World Cup winner, now aged 82, has been undergoing a “re-evaluation” of the chemotherapy he had following surgery to remove a colon tumour in September last year.
Brazil fans also unfurled a banner with a get well soon message for Pele ahead of the Cameroon game, which the Selecao lost 1-0 as they went down to their first defeat in the group stage since 1998.
There would be no better way for Brazil to pay tribute to their greatest ever player than by going on to win a record-extending sixth World Cup on December 18, and the draw appears to have opened up favourably for them.
They topped their section despite scoring just three goals in three games in Qatar, their worst showing in front of goal in the group stage of a World Cup since 1978.
Brazil have a fearsome range of attacking options, even with Gabriel Jesus having gone home injured, but they have scored just once since Neymar came off with a sprained ankle in their opening 2-0 win over Serbia on November 24.
He watched the Cameroon game from just behind the Brazilian bench at the Lusail Stadium and on Saturday he was back training with his teammates, raising hopes he would be on the field against the Koreans.
“I feel good, I knew that I would now,” he wrote on Instagram on Saturday with a reference to James Brown.
“With his return the whole team will improve,” said Richarlison, scorer of both goals against Serbia, on Friday.
Kindest draw?
On paper Brazil could surely not have asked for a kinder draw at this stage than South Korea, who qualified for the last 16 thanks to a last-gasp winner by Hwang Hee-chan against Portugal.
If they win at Doha’s Stadium 974 they will advance to a quarter-final against Japan or Croatia, with a last-four showdown against great rivals Argentina still on the cards.
Korea were the second lowest-ranked side to make the knockout stage and Paulo Bento’s side have recent experience of how chastening an experience it can be to take on Brazil.
The teams met in a friendly in Seoul in June and Brazil romped to a 5-1 victory with Neymar scoring two penalties.
“They are an aggressive and strong team. We can’t afford to make mistakes,” warned Richarlison, who was also on target in that friendly clash.
Brazil are desperate to rediscover the form in front of goal that saw them score a remarkable 26 times in their seven games preceding the tournament, but aside from Neymar they have injury concerns in defence.
Alex Telles, who replaced Alex Sandro at left-back against Cameroon, is out of the tournament with a knee injury.
Alex Sandro himself has been recovering from injury while, on the other side, right-back Danilo could make his return from an ankle problem.
“All going well, the expectation is that he will be available for the next match,” said Rodrigo Lasmar, Brazil’s team doctor who regularly appears before the media to provide updates on the health of the team’s stars.
Yet the reality is that whoever plays will be expected to be too strong for South Korea, even if in Son Heung-min the Asian upstarts have their own superstar attacker.
|
english
|
Kapil Dev and Jimmy Amarnath to have cameo appearances in '83'
Filmmaker Kabir Khan is all set to astonish the audience with his soon to be released sports drama '83'. The film will be based on India's historic win in the 1983 Cricket World Cup and according to latest buzz, it seems like the makers have found yet another way to add little treats for the die hard cricket fans who are waiting for the film.
A report in ETimes suggests that Mohinder Amarnath, vice captain of Kapil Dev's team will have a special appearance in the film. He'll portray the character of his own father, Lala Amarnath. "We will get to see the real hero of the ‘83 World Cup winning team Mohinder Amarnath in the movie too. But he will play the role of his father in this movie. He will be seen smoking a cigar and appreciating his son's game from the stands," a source told ETimes.
This will be the second instance of a son playing his father's role in '83'. Other one is, Chirag Patil playing Sandeep Patil. It is also being reported that Kapil Dev will be seen in a small cameo appearance as one of the spectators in a game. '83' is going to his the screens on 24th of December.
Follow us on Google News and stay updated with the latest!
|
english
|
<gh_stars>100-1000
{
"pci_database_logs_title": "Logs",
"pci_databases_logs_description": "Con el fin de ayudarle a realizar el seguimiento y a administrar su servicio de base de datos, a continuación ofrecemos los últimos eventos (logs) casi en directo. Su duración de retención depende del plan contratado.",
"pci_databases_logs_autorefresh": "Auto-Refresh"
}
|
json
|
Kobe Bryant, one of the greatest NBA players of all-time, has died in a helicopter crash at age 41 on Sunday.
Just a day earlier, his name dominated headlines as LeBron James passed Bryant for the No. 3 spot on the NBA's all-time scoring list.
In response, Bryant congratulated James on Twitter Saturday night, writing, "Continuing to move the game forward @KingJames. Much respect my brother. ” Bryant's final tweet has been circulating following the news of his death as grieving fans point to it as an indication of his "generosity, and kindness. "
The Athletic senior NBA writer Joe Vardon said Bryant's tweet proved his dedication and commitment to mentoring future NBA stars.
"The thing that has set Kobe apart from some of the greats before him and has changed the way basketball will be going forward is his willingness to mentor later on in his career," Vardon said Sunday on "America's News HQ. "
Vardon added that Bryant's response to James' victory "shows that once he realized that he had lost step and would be retiring, he wanted to be that bridge for the next batch of players to be great. "
Twitter users reeling from Bryant's death responded to his Saturday tweet to express their condolences.
"Thank you for showing me how to pursue my dreams with single-minded focus and dedication. I didn't have an older brother and looked up to you as one. Thank you for everything," one user wrote.
"Rest In Peace Kobe the world is speechless we are heart broken. . . prayers to your family your wife your daughters," another user wrote alongside a photo of Bryant and his family.
Many celebrities, among them Travis Barker, Nick Jonas, Kloe Kardashian, Khalid and A$AP Rocky have also taken to social media to share their grief and disbelief over the shocking death.
Fox News' Eric Shawn contributed to this report.
|
english
|
# .profilr
A profile manager
|
markdown
|
[{"pk":"defaultLineStyle1", "model":"xgds_map_server.LineStringStyle", "fields":
{"name":"Default Line Style 1",
"width": 4,
"color": "#64AD4C",
"opacity": 1,
"dashes": 0
}
},
{"pk":"defaultPolygonStyle1", "model":"xgds_map_server.PolygonStyle", "fields":
{"name":"Default Polygon Style 1",
"strokeColor": "#33CCFF",
"fillColor": "#33CCFF",
"fillOpacity": 0.3
}
},
{"pk":"defaultPointStyle1", "model":"xgds_map_server.PointStyle", "fields":
{"name":"Default Point style 1",
"radius":5,
"strokeColor":"#FFCC00",
"strokeOpacity":1,
"strokeWidth": 2,
"fillColor": "#FFCC00",
"fillOpacity":0.8
}
}]
|
json
|
London: Pace bowler Mohammad Amir is fit and will play for Pakistan in the Champions Trophy final at The Oval on Sunday, coach Mickey Arthur has told a news conference.
A back spasm kept Amir out as Pakistan defeated hosts England brilliantly on Wednesday but Arthur is now pinning his hopes on a full-strength attack to contain India's batsmen better than most other sides have managed so far.
"If we can get amongst them with the new ball, we can expose the middle order that hasn't batted much in this competition, so that's pretty much our aim and focus," the South African Arthur said on Saturday.
Arthur believes that the way his players recovered from a heavy defeat by India in the group stage with impressive victories over South Africa and England proves that it was merely "an aberration".
"That was something we hadn't prepared for," he said.
"We knew how hard the guys had prepared. So what we've produced after that doesn't come as any surprise because that's how we trained, and that's what we worked at.
"It was very disappointing to see that go wrong in the Indian game. But we've closed the chapter on that. We're now moving forward. And the guys have played really well. "
With eight wins in the teams' previous 10 World Cup and Champions Trophy meetings, India are firm favourites but Arthur has taken confidence from their defeat in the group stage by Sri Lanka.
"Sri Lanka batted exceptionally well there. They played fielders' cricket. They took the game on. But we've got to look at our strengths, and our strength has been the fact that we've been able to take wickets consistently through the middle periods.
"We've got to play to our strengths, and our strength certainly is with the ball. I said it before the England game, if we put our "A" game together and do the basics well, we can beat anybody. "
As for the intense pressure that will surround the final, Arthur said he hoped his young players could draw on their experience of the Pakistan Super League.
"Exposure to high-pressure situations is what India have had above Pakistan," he said.
"The PSL has been a very, very successful competition. So that exposes more and more young players to pressure situations, and I think the more we can expose our guys to those situations, the better results we get out on the ground. "
|
english
|
<reponame>EuroCRIS/DRIS-API-testing
{
"@context": "https://api.eurocris.org/dris/contexts/orgunits.jsonld",
"@id": "https://api.eurocris.org/dris/orgunits/ou00453",
"country": "https://api.eurocris.org/dris/vocabs/countries/country00779",
"name": "University of Amsterdam AMC"
}
|
json
|
<reponame>liuyi0501/IwaraCollector<filename>data/www/42goasdrapuyp7e0o.json<gh_stars>0
{"title":"弱音ハクと夢菜で","author":"<NAME>","description":"NULL","thumb":"//i.iwara.tv/sites/default/files/styles/thumbnail/public/video_embed_field_thumbnails/youtube/CHjJUJr15d0.jpg?itok=vhjWqPm6","download":"https://www.iwara.tv/api/video/42goasdrapuyp7e0o","origin":"https://www.iwara.tv/videos/42goasdrapuyp7e0o"}
|
json
|
The LA Lakers host the Houston Rockets tonight at Staples Center. The Lakers have won their last two games against the Phoenix Suns and New York Knicks, courtesy of some incredible basketball by Anthony Davis.
Davis was quite rusty following his return from injury but is finally starting to get back to his best form.
Moreover, this game might see the return of LeBron James on the court. Fans expected to see him against the Knicks, but reports suggest he might lace up against the Rockets.
Meanwhile, the Houston Rockets are going through a rebuilding phase. They have one of the most injury-riddled rosters in the league and the LA Lakers should expect an easy win tonight.
The Houston Rockets have used more than 40 different starting lineups this season. They have had players come in and out of the lineup and have often used players on two-way contracts in the starting five due to injuries.
Sterling Brown (face lacerations), Kevin Porter Jr. (left ankle sprain) and DJ Wilson (health and safety protocols) are unavailable for this game.
John Wall (right hamstring strain), Eric Gordon (right groin strain), Dante Exum (left calf strain) and David Nwaba (right wrist sprain) have been ruled out for the rest of the season.
Meanwhile, Christian Wood, DaQuan Jeffries and Danuel House Jr. are all listed as questionable due to right ankle soreness. Avery Bradley is out due to personal reasons.
The LA Lakers are finally starting to get healthier. Players are returning to the lineup and playing like a cohesive unit. As mentioned earlier, superstar LeBron James is expected to be in the starting five against the Houston Rockets tonight.
Unfortunately, Alex Caruso had to be escorted out after just seven minutes and 11 seconds of playing time against the Knicks as he suffered from right foot soreness.
Dennis Schroder is out due to health and safety protocols and is expected to miss the remainder of the regular season.
Looking at their largely injury-riddled roster, the Houston Rockets could have a tough time with their rotations.
Coach Stephen Silas is trying new lineups every game to analyze the young talent on his roster, and the team's starting five is practically different every game, making it difficult to accurately predict a lineup.
Nevertheless, DJ Augustin is expected to start as point guard and Armoni Brooks might join him in the backcourt as the two-guard if House Jr. doesn't lace up.
Jae'Sean Tate might take on the small forward role with Kenyon Martin Jr. playing the power forward. Anthony Lamb has started in recent games but might come off the bench in this fixture. Kelly Olynyk is expected to reprise his center position.
Considering LeBron James plays this game, the LA Lakers lineup is going to be one of the best they've played in weeks. James might play point guard since Caruso and Schroder are both sidelined.
Kentavious Caldwell-Pope will retain his shooting guard spot while either Kyle Kuzma or Wesley Matthews will take on the starting small forward role.
Anthony Davis will be the power forward as usual and the center is likely to be Andre Drummond, with Marc Gasol coming off the bench.
Point Guard - DJ Augustin | Shooting Guard - Armoni Brooks | Small Forward - Jae'Sean Tate | Power Forward - Kenyon Martin Jr. | Center - Kelly Olynyk.
Point Guard - LeBron James | Shooting Guard - Kentavious Caldwell-Pope | Small Forward - Kyle Kuzma | Power Forward - Anthony Davis | Center - Andre Drummond.
Check out all NBA Trade Deadline 2024 deals here as big moves are made!
|
english
|
<filename>jena-3.0.1/jena-extras/jena-querybuilder/src/main/java/org/apache/jena/arq/querybuilder/clauses/PrologClause.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 org.apache.jena.arq.querybuilder.clauses;
import java.util.Map;
import org.apache.jena.arq.querybuilder.AbstractQueryBuilder;
import org.apache.jena.arq.querybuilder.handlers.PrologHandler;
import org.apache.jena.graph.Node ;
import org.apache.jena.rdf.model.Resource ;
/**
* Interface that defines the PrologClause as per
* http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#rPrologue
*
* @param <T>
* The Builder type that the clause is part of.
*/
public interface PrologClause<T extends AbstractQueryBuilder<T>> {
/**
* Get the prolog handler for this clause.
* @return The PrologHandler this clause is using.
*/
public PrologHandler getPrologHandler();
/**
* Add a prefix.
*
* @param pfx
* The prefix.
* @param uri
* The URI for the prefix
* @return The builder for chaining.
*/
public T addPrefix(String pfx, Resource uri);
/**
* Add a prefix.
*
* @param pfx
* The prefix.
* @param uri
* The URI for the prefix
* @return The builder for chaining.
*/
public T addPrefix(String pfx, Node uri);
/**
* Add a prefix.
*
* @param pfx
* The prefix.
* @param uri
* The URI for the prefix
* @return The builder for chaining.
*/
public T addPrefix(String pfx, String uri);
/**
* Add a prefix.
*
* @param prefixes
* A mapping of prefix to URI to add.
* @return The builder for chaining.
*/
public T addPrefixes(Map<String, String> prefixes);
/**
* Set the base URI.
*
* See {@link AbstractQueryBuilder#makeNode} for conversion of the uri param. The resulting Node
* must be a URI.
*
* @param uri
* The base URI to use.
* @return The builder for chaining.
*/
public T setBase(Object uri);
/**
* Set the base URI.
*
* @param uri
* The base URI to use.
* @return The builder for chaining.
*/
public T setBase(String uri);
}
|
java
|
Untitled Niranjan Navalgund scripted an unlikely win by stunning Armenian Grandmaster Karen Movsziszian, seeded 11, and returned to humble International Master Saptarshi Roy to join 13 others in the lead with a perfect score after three rounds of the Delhi International Open chess tournament, here on Tuesday.
On a day when second seed M. R. Lalith Babu slipped after being held by the lanky Akash Thakur, Rahul Sangma was the other player to maintain an all-win sequence by beating Polish GM Jacek Stopa. There was no stopping top-seeded Tajikistani Farrukh Amonatov.
But this double-round day belonged to Niranjan. The 22-year old punished Movsziszian who pressed too hard for initiative in their Reti game. Niranjan, who has already authored an interesting book, held his nerves and seized the opportunity to prevail in 40 moves.
In the evening, Roy chose not to take Niranajan’s knight to launch a decisive attack but the ploy backfired. Roy had his knight trapped and eventually resigned.
Leading results (Indians unless stated):
Third round: Ihor Nester (Ukr, 2) lost to Farrukh Amonatov (Tjk, 3); M. R. Lalith Babu (2.5) drew with Akash Thakur (2.5); Sayantan Das (3) bt Diptayan Ghosh (2); Arystanbek Urazayev (Kaz, 2) lost to M. Karthikeyan (3); P. Itiyan (3) bt Vitaliy Bernadskiy (Ukr, 2); Vitaly Sivuk (Ukr, 3) bt Srijit Paul (2); Vadim Malakhatko (Bel, 2.5) drew with V. A. V. Rajesh (2.5); Nouri Hamed (Phi, 2.5) drew with Swayams Mishra (2.5); Jacek Stopa (Pol, 2) lost to Rahul Sangma (3); Anna Styazhkina (Rus, 2) lost to Valeriy Neverov (Ukr, 3); Niranjan Navalgund (3) bt Saptarshi Roy (2).
Second round: Amonatov bt Aradhya Garg; M. Mahalakshmi lost to Babu; Ghosh bt Joydeep Dutta; Pratik Patil drew with Alberto David (Ita); Karthikeyan bt S. Jayakumar; Bernadskiy bt Anish Gandhi; Chilukuri Likhit lost to Sivuk; Ja Gireman drew with Adam Tukhaev (Ukr); Spencer Masango lost to Malakhatko; Karen Movsziszian (Arm) lost to Niranjan Navalgund.
|
english
|
class Solution {
// 3! / 2! * 1!
//
public int numWays(String s) {
int numOnes = 0;
Map<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < s.length(); i++) {
if (s.charAt(i) == '1') {
numOnes++;
map.put(numOnes, i);
}
}
if (numOnes % 3 != 0) return 0;
long result = 0L;
if (numOnes == 0) {
long first = (long)(s.length() - 1);
long second = (long)(s.length() - 2);
return (int) ((first * second / 2L) % 1000000007);
} else {
long first = (long) (map.get(numOnes / 3 + 1) - map.get(numOnes / 3));
long second = (long) (map.get(numOnes / 3 * 2 + 1) - map.get(numOnes / 3 * 2));
result = first * second;
return (int) (result % 1000000007);
}
}
}
|
java
|
<reponame>Tarrke/aliens
{"ast":null,"code":"/**\r\n * @author <NAME> <<EMAIL>>\r\n * @copyright 2019 Photon Storm Ltd.\r\n * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}\r\n */\nvar SetCenterX = require('./SetCenterX');\n\nvar SetCenterY = require('./SetCenterY');\n/**\r\n * Positions the Game Object so that it is centered on the given coordinates.\r\n *\r\n * @function Phaser.Display.Bounds.CenterOn\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} x - The horizontal coordinate to position the Game Object on.\r\n * @param {number} y - The vertical coordinate to position the Game Object on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\n\n\nvar CenterOn = function CenterOn(gameObject, x, y) {\n SetCenterX(gameObject, x);\n return SetCenterY(gameObject, y);\n};\n\nmodule.exports = CenterOn;","map":null,"metadata":{},"sourceType":"script"}
|
json
|
table! {
address (id) {
id -> Int4,
name -> Varchar,
address_line -> Text,
city -> Varchar,
postal_code -> Varchar,
country -> Varchar,
address_type -> Varchar,
}
}
table! {
client (id) {
id -> Int4,
name -> Varchar,
address_id -> Int4,
client_type -> Varchar,
nif -> Varchar,
email -> Nullable<Varchar>,
phone_number -> Nullable<Varchar>,
}
}
table! {
person (id) {
id -> Int4,
name -> Varchar,
image -> Nullable<Text>,
phone_number -> Nullable<Varchar>,
role -> Nullable<Text>,
address_id -> Nullable<Int4>,
client_id -> Nullable<Int4>,
email -> Nullable<Varchar>,
}
}
table! {
task (id) {
id -> Int4,
client_id -> Int4,
start_time -> Nullable<Timestamptz>,
end_time -> Nullable<Timestamptz>,
status -> Nullable<Text>,
description -> Text,
user_id -> Nullable<Int4>,
sync_with_calendar -> Nullable<Bool>,
created -> Timestamptz,
summary -> Nullable<Text>,
location -> Nullable<Text>,
calendar_uid -> Nullable<Int4>,
}
}
table! {
user (id) {
id -> Int4,
person_id -> Nullable<Int4>,
email -> Varchar,
hashed_password -> <PASSWORD>,
}
}
table! {
user_auth_token (user_id) {
user_id -> Int4,
login_session -> Varchar,
generated_at -> Timestamptz,
expires_at -> Timestamptz,
}
}
joinable!(client -> address (address_id));
joinable!(person -> address (address_id));
joinable!(person -> client (client_id));
joinable!(task -> client (client_id));
joinable!(task -> user (user_id));
joinable!(user -> person (person_id));
joinable!(user_auth_token -> user (user_id));
allow_tables_to_appear_in_same_query!(address, client, person, task, user, user_auth_token,);
|
rust
|
<filename>obj/testArr.js
/**
* Created by User on 2017/7/26.
*/
//let arr = [
// 0,0,0, 1,3, 6,7,8, 10,10, 23,24,25, //第一个人的手牌
// 9,9,9, 1,3, 6,7,8, 4,11, 23,24,25, //第二个人的手牌
// 18,18,18, 1,3, 6,7,8, 4,4, 23,24,25, //第三个人的手牌
// 26,26,26, 1,3, 6,7,8, 11,11, 23,24,25, //第四个人的手牌
// 19,//第一个人抓的第一张牌
// 15,//宝牌
// 15,15,19,15,
// 18,2,
// 10,10,11,9,
// 12,12,12,12,
// 13,13,13,13,
// 14,14,14,14,
// 5,5,5,5,
// 16,16,16,16,
// 4,17,17,17,
// 19,19,21,17,
// 20,20,20,20,
// 21,21,21,22,
// 0,2,2,2,//分张
// 31,31,31,31,26,22,22,22];
//console.log( arr.length )
var arr = [
{privatePoint:1},
{privatePoint:2},
{privatePoint:3},
{privatePoint:6},
{privatePoint:2},
{privatePoint:9},
{privatePoint:9},
{privatePoint:2},
{privatePoint:3},
{privatePoint:4},
{privatePoint:5}
];
let arrDel = [
{privatePoint:2},
{privatePoint:9}
];
let diff = function( Arr1, delArr ) {
return Arr1.filter( function(item) {
let flag = true;
for( let j = 0; j < delArr.length; j ++ ){
if(item.privatePoint == delArr[j].privatePoint ){
flag = false;
break;
}
}
return flag;
});
};
let dif = diff(arr, arrDel);
console.log( dif );
var subSet = function(arr1, arr2) {
var set1 = new Set(arr1);
var set2 = new Set(arr2);
var subset = [];
for (let item of set1) {
if (!set2.has(item)) {
subset.push(item);
}
}
return subset;
};
|
javascript
|
<reponame>33kk/uso-archive<filename>data/usercss/36885.user.css
/* ==UserStyle==
@name Watchanimeon.com
@namespace USO Archive
@author snuku
@description `just for fundon't hate on me for any mishaps`
@version 20100915.17.26
@license NO-REDISTRIBUTION
@preprocessor uso
==/UserStyle== */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("watchanimeon.com") {
h3,.meta,.top-sidebar,.twocol-leftcol,#login,#nav,#path,#topbar,.more-info,.adv-300,.btm-advt-160,#footer,.newpost,.postcol1,h1,.btm-sidebar,.news-n-update,br,#reputation_rank,[href="javascript: addAnime();"],.clr,.nocomments,.asl-column2,[border="0"],.addepisode,.sip-list-title,.addthis_toolbox,.vid-entry-outer,.tabNavigation,.vid-title,.vip_download p,.comcomment,.tabox,[href*="/forums/"],.twocol-rightcol span{display:none!important;}
*{list-style:none!important;font-size:large!important;font-family:small fonts!important;background-color:transparent!important;padding:1px!important;text-decoration:none!important;text-transform:none!important;height:auto!important;color:white!important;float:left!important;border:none!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;}
.top-banner{height:auto!important;}
#videopage{width:50%!important;}
embed,object,iframe{width:500px!important;height:350px!important;}
body{background:url(http://i51.tinypic.com/16c418m.jpg)!important;}
}
|
css
|
<filename>merlin-gateway/src/main/java/com/magic/gateway/impl/OneClient.java
package com.magic.gateway.impl;
import com.magic.gateway.exception.BaseException;
import com.magic.gateway.netty.handler.ResponseHandler;
import com.magic.gateway.options.GatewayOptions;
import com.magic.gateway.sender.Sender;
import com.magic.gateway.sender.ShardResponseFuture;
import com.magic.netty.client.NettyClient;
import com.magic.netty.request.Request;
import com.magic.service.domain.MagicServiceInstance;
public class OneClient {
private MagicServiceInstance serviceInstance;
private NettyClient nettyClient;
private Sender sender;
private GatewayOptions opts;
public OneClient(MagicServiceInstance serviceInstance, GatewayOptions opts) {
this.opts = opts;
this.serviceInstance = serviceInstance;
this.sender = new Sender();
this.nettyClient = new NettyClient(new ResponseHandler(sender), serviceInstance.getAddress(),
this.serviceInstance.getPort(), this.opts.threadNumForOneChannel,
this.opts.periodMilliSecondsForReconnect);
this.nettyClient.startClient();
}
public void shutdown() {
this.nettyClient.shutdown();
}
public MagicServiceInstance getServiceInstance() {
return serviceInstance;
}
public void setServiceInstance(MagicServiceInstance serviceInstance) {
this.serviceInstance = serviceInstance;
}
public NettyClient getNettyClient() {
return nettyClient;
}
public void setNettyClient(NettyClient nettyClient) {
this.nettyClient = nettyClient;
}
public Sender getSender() {
return sender;
}
public void setSender(Sender sender) {
this.sender = sender;
}
public void sendRequest(Request request, ShardResponseFuture future) throws BaseException {
this.sender.sendRequest(request, future);
}
}
|
java
|
{
"Canada": "加拿大",
"Turkey": "土耳其",
"Madagascar": "馬達加斯加",
"Association football": "足球",
"Czech Republic": "捷克",
"India": "印度",
"Ancient Greece": "古希臘",
"United Nations Security Council": "聯合國安全理事會",
"Lithuania": "立陶宛",
"Asia": "亞細亞洲",
"France": "法國",
"Republic": "共和",
"Somalia": "索馬里",
"Central Asia": "中亞",
"Byzantine Empire": "東羅馬帝國",
"Italy": "義大利",
"Argentina": "阿根廷",
"German language": "德語",
"Norway": "挪威",
"United Nations": "聯合國",
"Europe": "歐羅巴洲",
"Slovakia": "斯洛伐克",
"Gross domestic product": "國內生產總值",
"Encyclopædia Britannica": "大英百科",
"Iceland": "冰島",
"Republic of Ireland": "愛爾蘭共和國",
"Russia": "俄羅斯",
"Fungus": "真菌",
"United States dollar": "美金",
"Germany": "德國",
"Denmark": "丹麥",
"Belgium": "比利時",
"Soviet Union": "蘇聯",
"Kazakhstan": "哈薩克",
"Spain": "西班牙",
"Ukraine": "烏克蘭",
"House of Habsburg": "哈布斯堡氏",
"Montesquieu": "孟德斯鳩",
"Science": "格致",
"Poland": "波蘭",
"Finland": "芬蘭",
"Ottoman Empire": "奧斯曼帝國",
"Central Intelligence Agency": "中央情報局",
"Austria-Hungary": "奧匈帝國",
"United States": "美國",
"Sweden": "瑞典",
"Australia": "澳大利亞",
"Luxembourg": "盧森堡",
"Ancient Rome": "古羅馬",
"Switzerland": "瑞士",
"Joseph Stalin": "斯大林",
"World War I": "第一次世界大戰",
"European Union": "歐羅巴聯盟",
"Microsoft": "微軟",
"Brazil": "巴西",
"Bulgaria": "保加利亞",
"Romania": "羅馬尼亞",
"World War II": "第二次世界大戰",
"Estonia": "愛沙尼亞",
"Portugal": "葡萄牙",
"Kosovo": "科索沃",
"Republic of Macedonia": "馬其頓",
"Nazi Germany": "德意志第三帝國",
"Serbia": "塞爾維亞",
"Liechtenstein": "列支敦士登",
"Cyrillic script": "西里爾字母",
"United Kingdom": "英國",
"Austria": "奧地利",
"Latvia": "拉脫維亞",
"Greece": "希臘共和國",
"Hungary": "匈牙利",
"Belarus": "白俄羅斯",
"Russian Orthodox Church": "俄羅斯正教會",
"South Sudan": "南蘇丹"
}
|
json
|
//! Utility macros for writing styles.
//!
//! This module contains also runtime support for the macros and documents their usage. There are two
//! syntaxes available: [string literal] and [inline].
//!
//! # String Literal
//!
//! This introduces a syntax that is simliar to the [`format!`] macro from the standard library.
//!
//! The first argument of this syntax is a string literal followed by an argument list. This macro
//! will replace `${arg}` with the argument in the argument list when creating the AST.
//!
//! This syntax supports interpolation on values of style attributes, selectors, `@supports` and `@media` rules.
//!
//! Interpolated strings are denoted with `${ident}` and any type that implements [`Display`] can be
//! used as value. Only named argument are supported at this moment.
//!
//! If you do need to print a `${` sequence, you may use `$${` to escape to a `${`.
//!
//! ### Example
//! ```css
//! content: "$${}";
//! ```
//!
//! Will be turned into:
//! ```css
//! content: "${}";
//! ```
//!
//! ### Note:
//!
//! `$${` escape can only present where `${` is valid in the css stylesheet.
//!
//! ## Example
//!
//! ```
//! use stylist::{Style, css};
//! use yew::prelude::*;
//!
//! let s = css!(
//! r#"
//! color: ${color};
//!
//! span, ${sel_div} {
//! background-color: blue;
//! }
//!
//! @media screen and ${breakpoint} {
//! display: flex;
//! }
//! "#,
//! color = "red",
//! sel_div = "div.selected",
//! breakpoint = "(max-width: 500px)",
//! );
//!
//! let style = Style::new(s).expect("Failed to create style");
//!
//! // Example Output:
//! // .stylist-fIEWv6EP {
//! // color: red;
//! // }
//! // stylist-fIEWv6EP span, .stylist-fIEWv6EP div.selected {
//! // background-color: blue;
//! // }
//! // @media screen and (max-width: 500px) {
//! // .stylist-fIEWv6EP {
//! // display: flex;
//! // }
//! // }
//! println!("{}", style.get_style_str());
//! ```
//!
//! # Inline
//!
//! You may also directly inline a stylesheet in the macro.
//!
//! Like in string interpolation syntax, interpolated values are allowed in most places through the `${expr}`
//! syntax. In distinction, the braces contain a rust expression of any type implementing [`Display`]
//! will be evaluated in the surrounding context.
//!
//! Due to the tokenizer of the Rust complier, there are some quirks with literals. For example, `4em` would be
//! tokenized as a floating point literal with a missing exponent and a suffix of `m`. To work around this issue, use
//! string interpolation as in `${"4em"}`. Similarly, some color hash-tokens like `#44444e` as misinterpreted,
//! use the same workaround here: `${"#44444e"}`.
//!
//! ## Note
//!
//! This syntax provides more precise error locations and advanced diagnostics information.
//!
//! ## Example
//!
//! ```
//! use stylist::{Style, css};
//! use yew::prelude::*;
//!
//! let max_width_cuttoff = "500px";
//! let primary_color = "red";
//! let s = css!(
//! color: ${primary_color};
//!
//! span, ${"div.selected"} {
//! background-color: blue;
//! }
//!
//! @media screen and (max-width: ${max_width_cuttoff}) {
//! display: flex;
//! }
//! );
//!
//! let style = Style::new(s).expect("Failed to create style");
//!
//! // Example Output:
//! // .stylist-fIEWv6EP {
//! // color: red;
//! // }
//! // stylist-fIEWv6EP span, .stylist-fIEWv6EP div.selected {
//! // background-color: blue;
//! // }
//! // @media screen and (max-width: 500px) {
//! // .stylist-fIEWv6EP {
//! // display: flex;
//! // }
//! // }
//! println!("{}", style.get_style_str());
//! ```
//!
//! ## Security Notice
//!
//! Stylist currently does not check or escape the content of interpolated strings. It is possible
//! to pass invalid strings that would result in an invalid stylesheet. In debug mode, if feature `parser` is
//! enabled, Stylist will attempt to parse the stylesheet again after interpolated strings are
//! substituted with its actual value to check if the final stylesheet is invalid.
//!
//! [string literal]: #string-literal
//! [inline]: #inline
//! [`Display`]: std::fmt::Display
/// A procedural macro that parses a string literal into a [`Style`].
///
/// Please consult the documentation of the [`macros`] module for the supported syntax of this macro.
///
/// # Example
///
/// ```
/// use stylist::style;
///
/// // Returns a Style instance.
/// let style = style!("color: red;");
/// ```
///
/// [`Style`]: crate::Style
/// [`macros`]: self
#[cfg_attr(documenting, doc(cfg(feature = "macros")))]
pub use stylist_macros::style;
/// A procedural macro that parses a string literal into a [`GlobalStyle`].
///
/// Please consult the documentation of the [`macros`] module for the supported syntax of this macro.
///
/// # Example
///
/// ```
/// use stylist::global_style;
///
/// // Returns a GlobalStyle instance.
/// let style = global_style!("color: red;");
/// ```
///
/// [`GlobalStyle`]: crate::GlobalStyle
/// [`macros`]: self
#[cfg_attr(documenting, doc(cfg(feature = "macros")))]
pub use stylist_macros::global_style;
/// A procedural macro that parses a string literal into a [`StyleSource`].
///
/// Please consult the documentation of the [`macros`] module for the supported syntax of this macro.
///
/// # Example
///
/// ```
/// use stylist::css;
/// use stylist::yew::Global;
/// use yew::prelude::*;
///
/// let rendered = html! {<div class=css!("color: red;") />};
/// let rendered_global = html! {<Global css=css!("color: red;") />};
/// ```
///
/// [`StyleSource`]: crate::StyleSource
/// [`macros`]: self
#[cfg_attr(documenting, doc(cfg(feature = "macros")))]
pub use stylist_macros::css;
|
rust
|
# -*- coding: utf-8 -*-
import disnake
from disnake.ext import commands
from pypoca.config import COLOR, URLS
from pypoca.database import Server
from pypoca.ext import ALL, DEFAULT, Choice, Option
class General(commands.Cog):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.slash_command(name="ping", description=DEFAULT["COMMAND_PING_DESC"])
async def slash_ping(self, inter: disnake.ApplicationCommandInteraction, hide: Choice.boolean = Option.hide):
server = Server.get_by_id(inter.guild.id)
locale = ALL[server.language] if server else DEFAULT
latency = int(self.bot.latency * 1000)
description = locale["COMMAND_PING_REPLY"] + f": {latency}ms"
embed = disnake.Embed(description=description, color=COLOR)
await inter.send(embed=embed, ephemeral=hide)
@commands.slash_command(name="help", description=DEFAULT["COMMAND_HELP_DESC"])
async def slash_help(self, inter: disnake.ApplicationCommandInteraction, hide: Choice.boolean = Option.hide):
server = Server.get_by_id(inter.guild.id)
locale = ALL[server.language] if server else DEFAULT
BLANK = "<:blank:914183315056111627>"
description = f"""
**/movie**
{BLANK} **discover** {locale["COMMAND_MOVIE_DISCOVER_DESC"]}
{BLANK} **find** {locale["COMMAND_MOVIE_FIND_DESC"]}
{BLANK} **popular** {locale["COMMAND_MOVIE_POPULAR_DESC"]}
{BLANK} **search** {locale["COMMAND_MOVIE_SEARCH_DESC"]}
{BLANK} **top** {locale["COMMAND_MOVIE_TOP_DESC"]}
{BLANK} **trending** {locale["COMMAND_MOVIE_TRENDING_DESC"]}
{BLANK} **upcoming** {locale["COMMAND_MOVIE_UPCOMING_DESC"]}
**/tv**
{BLANK} **discover** {locale["COMMAND_TV_DISCOVER_DESC"]}
{BLANK} **popular** {locale["COMMAND_TV_POPULAR_DESC"]}
{BLANK} **search** {locale["COMMAND_TV_SEARCH_DESC"]}
{BLANK} **top** {locale["COMMAND_TV_TOP_DESC"]}
{BLANK} **trending** {locale["COMMAND_TV_TRENDING_DESC"]}
{BLANK} **upcoming** {locale["COMMAND_TV_UPCOMING_DESC"]}
**/people**
{BLANK} **popular** {locale["COMMAND_PERSON_POPULAR_DESC"]}
{BLANK} **search** {locale["COMMAND_PERSON_SEARCH_DESC"]}
{BLANK} **trending** {locale["COMMAND_PERSON_TRENDING_DESC"]}
**/game**
{BLANK} **frame** {locale["COMMAND_GAME_FRAME_DESC"]}
{BLANK} **higher** {locale["COMMAND_GAME_HIGHER_DESC"]}
**/setting**
{BLANK} **language** {locale["COMMAND_LANGUAGE_DESC"]}
"""
buttons = [
{"style": 5, "label": locale["COMMAND_HELP_BUTTON_INVITE"], "url": URLS["invite"]},
{"style": 5, "label": locale["COMMAND_HELP_BUTTON_VOTE"], "url": URLS["vote"]},
{"style": 5, "label": locale["COMMAND_HELP_BUTTON_SERVER"], "url": URLS["server"]},
{"style": 5, "label": locale["COMMAND_HELP_BUTTON_SITE"], "url": URLS["site"]},
]
embed = disnake.Embed(description=description, color=COLOR)
view = disnake.ui.View()
[view.add_item(disnake.ui.Button(**button)) for button in buttons]
await inter.send(embed=embed, view=view, ephemeral=hide)
def setup(bot: commands.Bot) -> None:
bot.add_cog(General(bot))
|
python
|
# FAQ
На этой странице Вы найдёте небольшой перечень часто задаваемых вопросов, если на странице нет Вашего вопроса, пожалуйста, напишите нам, мы стараемся отвечать на все вопросы!
## Как пригласить Kuzaku?
Процесс приглашения подробно описан на [этой](../additional-info/kuzaku-invitation.md) странице, но если у Вас остались вопросы, [пишите](../good-links/contacts.md) в нашу команду
## Есть ли у Kuzaku панель управления \(dashboard\)? <a id="kak-zaiti-v-panel-upravleniya"></a>
В настоящее время панель управления находится в стадии активной разработки и недоступна, но когда основной функционал будет реализован, панель управления станет общедоступной.
## **На каком языке программирования написан Kuzaku?** <a id="na-kakom-yazyke-napisan-bot"></a>
Kuzaku написан на языке программирования **Python**, с использованием библиотеки [discord.py](https://discordpy.readthedocs.io/en/stable/).
## **Можно ли попасть в Вашу команду?** <a id="kak-mozhno-popast-v-komandu-razrabotchikov"></a>
Ответ прост — нет. Мы не нуждаемся в людях, которые смогли бы помогать в разработке проекта. Но Вы всегда можете следить за новостями, чтобы например, принять участие в наборе модераторов.
## Кто вы?
Мы - команда разработчиков, которая работает <strike>за еду</strike> во благо дискорда. Мы просто хотим радовать вас! взамен вы **можете задонатить нам** или купить [**kuzaku premium**](../additional-info/kuzaku-premium.md)! Мы будем благодарны!
|
markdown
|
<filename>app/src/main/java/pl/xezolpl/mylibrary/models/CategoryWithBook.java
package pl.xezolpl.mylibrary.models;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import org.jetbrains.annotations.NotNull;
@Entity(tableName = "categories")
public class CategoryWithBook {
@PrimaryKey
@NonNull
@ColumnInfo(name = "id")
private String id;
@NonNull
@ColumnInfo(name = "bookId")
private String bookId;
@NonNull
@ColumnInfo(name = "category")
private String category;
public CategoryWithBook(@NotNull String id, @NonNull String bookId, @NonNull String category) {
this.id = id;
this.bookId = bookId;
this.category = category;
}
@NotNull
public String getId() {
return id;
}
@NonNull
public String getBookId() {
return bookId;
}
@NonNull
public String getCategory() {
return category;
}
}
|
java
|
There is another temple of the above type situated to the south of the vimana ; the top dome shows pilasters on all sides. sides. This is called the temple of Savitri.
The temple of Bhagavati is situated at the north-west corner of the compound of Lingaraja. It consists of the vimana, jagamohana, natamandira and bhogamandira; although comparatively small in size, the temple contains carvings so nice and varied that they excite the admiration of the most fastidious critics of art; the finest workmanship is noticed on the jagamohana. The carvings showing floral loops having animal insets are worth mentioning. The niches of the temple are surmounted by hoods or canopies most magnificently carved.
The position of the temple, however, is not such as to enable an observer to study it with advantage. All the dikpatis have been removed from the niches. The date of its construction is unknown; but it is pretty certain that it must have been erected within two hundred years after the temple of Lingaraja came into existence.
We learn from the Madla Panji that the temple was constructed by Yayati Kesari; I have proved at great length in the first chapter that Yayati flourished in the beginning of the 9th century A, D., and hence
it has been stated by me or page 273 that the temple was
ANCIENT AND MEDIÆVAL.
built in the beginning of the ninth century A. D. The vimena and the jagamohana are contemporaneous structures. The natamandira and the bhogamandapa in its original condition are works of the 13th century. From an inscription incised on the right jamb of the doorway of the dewl, we learn that the natamandira with the chlorite linings of its doorway were constructed by Nrisinha Deva, the great Ganga king of Orissa; the temple of Konarka was built in the reign of this Nrisinha Deva. We learn also from the very same inscription that the bhogamandapa was built in the 24th year of the reign of Anianka Bhima Deva, the son of Rujaraja Deva (Stortorget).* This Anianka is not the king of that name (राजराजतन्त्रः who made a systematic arrangement of the ceremonies of the temple of Jagannath. Anianka Bhima Deva, the builder of the bhogamandapa ascended the throne of Orissa in 1219 A. D.; hence the bhogamandapa was built in the 1243 A. D.
There is an inscription incised on the jamb of the western doorway of the natamandira leading to the jagamohana. From this we learnt that Kapilesvara Deva, the founder of the Surya Vansa Dynasty made an endowment of land and property for the systematic worship of Lingarøja ; this inscription, however, does not throw any light on the date of construction of the temple, or any of its appurtenances.
+ See Virvakora by Nagendra Nath Vasu
ORISSA AND HER REMAINS,
A few hundred feet to the south of the compound of the temple of Lingaraja is seen a mound overgrown with wild
The rains to vegetation. This plot of land was evidently the temple of Linge- site of a big edifice now razed to the ground; the foundations only are noticeable giving indication of the stupendousness of the structure no longer existing. I walked along the foundations and am convinced that these were meant for some structure; but it cannot be ascertained whether it was a palace of Lalatendu Kesari, now considered a mythical person, or of Udyotaka Kesari under the auspices of whose mother Kolavati, the temple of Brahmesvara was built.
ANCIENT AND MEDIÆVAL
The Temple of Ananta Vasudeva :---
The temple of Ananta Vasudeva is a Vaishnavite one dedicated to Ananta and Vasudeva, or Balarama and Krishna, a dual image of whom is enshrined in the vimâna. On going through the eleventh chapter of the Kapila Sanhita, it will be seen that Ekamra-kanana, or Bhubanesvara had been already sanctified by the presence of Ananta and Vasudeva before the advent there of Siva. I have come across a reference to Ananta Vasudeva in the Siva Puranam alsot.
• un frenterali cont were: 1 Mên me thì cât firevî mî v azad qod qui menfi vorefu: | warafe u mrafa QuarurE HET WEET I 11th Chapter, p. 21, Kapila Sanhits.
(Manuscript of the Asiatic Society of Bengal).
† p. 276, M. S. copy of the Siva Purmam belonging to the Asiatic Society.
|
english
|
The Australian Open 2019 continued today, with the bottom half playing their third-round matches on the courts of Melbourne Park. Over 50 matches took place overall.
To kick things off on Rod Laver Arena, Australia's Ashleigh Barty continued her fine run of form, defeating Greek sensation Maria Sakkari, 7-5, 6-1 in straight sets. She will now take on Maria Sharapova in the fourth round on Saturday. Sharapova played out an exceptional match against defending champion Caroline Wozniacki, and sent her packing, defeating her in three tight sets - 6-4, 4-6, 6-3.
Angelique Kerber dominated from start to finish as she thrashed Australia's Kimberly Birrell 6-1, 6-0 in under an hour. The three-time Grand Slam champion from Germany will take on USA's Danielle Rose Collins on Saturday.
Meanwhile, USA's Sloane Stephens and Czech Republic's Petra Kvitova won their matches in straight sets to move into the next round. Kvitova will take on Amanda Anisimova while Stephens will take on Anastasia Pavlyuchenkova.
Moving on to the men's singles, Roger Federer cruised through to the fourth round with a relatively easy straight-set win over 21-year-old Taylor Fritz from the USA. He won his encounter in less than an hour and a half, defeating the youngster 6-2, 7-5, 6-2. He will now take on Greek rising sensation Stefanos Tsitsipas in the fourth round on Saturday. Tsitsipas was on top of his game as well as he defeated Nikoloz Basilashvili 6-3, 3-6, 7-6(7), 6-4.
Tomas Berdych continued his fine run of form as he defeated 18th seed Diego Schwartzman of Argentina 5-7, 6-3, 7-5, 6-4 to move on to the next round. He will take on 17-time Grand Slam champion Rafael Nadal in the next round. Nadal had it easy against Aussie youngster Alex de Minaur in the third round today as he won the encounter in straight sets 6-1, 6-2, 6-4. Interestingly, this was the same scoreline when the two faced off at Wimbledon last year.
Meanwhile, Roberto Bautista Agut, Frances Tiafoe, and Grigor Dimitrov, all continued their fine run of form as well, defeating Karen Khachanov, Andreas Seppi, and Thomas Fabbiano respectively. Tiafoe was the only one tested as he won his match in 5 sets against the veteran from Italy.
Tiafoe and Dimitrov will take on each other in the next round while Bautista Agut will take on Marin Cilic in the next round.
The Croat, who was the runner-up last year, saved one match point and came back from two sets down en-route to his incredible 5-set victory over Spanish veteran Fernando Verdasco. The Spaniard had a match point on his serve in the fourth set tie-break but bottled it with a double-fault. That seemed to have mentally affected him in the fifth set as Cilic ran away with it 6-3. The scoreline of the match was 4-6, 3-6, 6-1, 7-6(8), 6-3 in favour of Cilic.
The third round of matches in the men's and women's singles will end tomorrow. Rohan Bopanna and Leander Paes, too, will take the court for their respective mixed doubles encounters.
|
english
|
It is known that Indian sugar factories largely produce plantation white sugar which is not readily accepted in the global market. Apart from lower global prices, due to this imbalances in demand-supply position of sugar have been occurring constantly causing fall in prices and lower revenues to the sugar factories. To mitigate the problem, the Indian sugar industry experts have been emphasizing to produce raw-refined sugar which is globally traded and paves way for production of variety of other sugars. The Indian sugar industry isn’t only in pursuit of making superior quality sugar but going beyond by producing special sugars and harnessing potential of by-products for economic sustainability. In light of the market being governed by quality also, the Indian sugar industry might be able to handle stress with increase use of standard quality assurance system so as to ensure safety and quality improvement of the product and production methods.
“Strengthening the display of food quality signs and labels, popularizing food safety knowledge for consumers, promoting the construction of a food quality safety traceability system and improving the authencity, richness and legibility of food quality information can help consumers form better perceptions of quality and risk. The sugar industry too has to be comprehensive towards quality standards which would directly or indirectly answer consumer demand and satisfy demand in the global sugar market. At NSI, we have studied and advice a model HACCP plan for refined sugar processing with key focus on food safety and reduction or elimination of potential hazards. This safety management system will help the industry to align better their process and products as per saftey requirements prevalent in the market and thereby will help the industry to be competitvely strong in all spheres.” he further added.
To Listen to this News click on the play button.
|
english
|
<gh_stars>1-10
import types from './constants'
/**
* Create an action to fetch Tax Report data.
*/
export function fetchTaxReport() {
return {
type: types.FETCH_TAX_REPORT,
}
}
/**
* Create an action to fetch Snapshot data.
* @param {string} payload section to fetch
*/
export function fetchTaxReportSnapshot(payload) {
return {
type: types.FETCH_SNAPSHOT,
payload,
}
}
/**
* Create an action to note fetch fail.
* @param {Object} payload fail message
*/
export function fetchFail(payload) {
return {
type: types.FETCH_FAIL,
payload,
}
}
/**
* Create an action to refresh Tax Report.
* * @param {object} payload object contains options
*/
export function refresh(payload) {
return {
type: types.REFRESH,
payload,
}
}
/**
* Create an action to update Tax Report.
* @param {Object[]} payload data set
*/
export function updateTaxReport(payload) {
return {
type: types.UPDATE_TAX_REPORT,
payload,
}
}
/**
* Create an action to update Tax Report Snapshot.
* @param {Object} payload data set and section
*/
export function updateTaxReportSnapshot(payload) {
return {
type: types.UPDATE_TAX_REPORT_SNAPSHOT,
payload,
}
}
export default {
fetchFail,
fetchTaxReport,
fetchTaxReportSnapshot,
refresh,
updateTaxReport,
updateTaxReportSnapshot,
}
|
javascript
|
Nilavin Thundukal song is a Malayalam movie song from the Kuyile Kuyile (Album) released on 2008. Music of Nilavin Thundukal song is composed by Mohan Sithara. Nilavin Thundukal was sung by Vidhu Prathap. Download Nilavin Thundukal song from Kuyile Kuyile (Album) on Raaga.com.
|
english
|
Wednesday's tsunami alert was lifted after several hours and life was returning to normal in Sumatra's major cities, with no reports so far of casualties or major damage to buildings.
Magnitude 6. 1 quake struck at a depth of just 10 km and was centered in Aceh province.
A 70-year-old man who was suffering from hypertension died as he fled in panic and fell down.
Temblor did not have potential to trigger a tsunami; there are no reports of serious damage.
Officials said at least two people died of heart attacks and three others died of shock.
There were no immediate reports of casualties or damage,and no tsunami alert.
|
english
|
import { Logger } from '@nestjs/common';
export class ValidAnswerReceivedEvent {
private readonly logger = new Logger(ValidAnswerReceivedEvent.name);
constructor(public tId: number, public validAnswer: string) {
this.logger.verbose(`raised by: ${this.tId}`);
}
}
|
typescript
|
<gh_stars>10-100
#include <tiramisu/tiramisu.h>
#include "halide_image_io.h"
using namespace tiramisu;
expr mixf(expr x, expr y, expr a)
{
return cast(p_float32, x) * (1 - a) + cast(p_float32, y) * a;
}
int main(int argc, char **argv)
{
Halide::Buffer<uint8_t> in_image = Halide::Tools::load_image("./utils/images/gray.png");
int IMG_WIDTH = in_image.width();
int IMG_HEIGHT = in_image.height();
int OUT_WIDTH = in_image.width() / 1.5f;
int OUT_HEIGHT = in_image.height() / 1.5f;
init("resize_tiramisu");
// -------------------------------------------------------
// Layer I
// -------------------------------------------------------
var o_x("o_x", 0, IMG_WIDTH), o_y("o_y", 0, IMG_HEIGHT);
var x("x", 0, OUT_WIDTH), y("y", 0, OUT_HEIGHT);
input c_input("c_input", {o_y, o_x}, p_uint8);
expr o_r((cast(p_float32, y) + 0.5f) * (cast(p_float32, IMG_HEIGHT) / cast(p_float32, OUT_HEIGHT)) - 0.5f);
expr o_c((cast(p_float32, x) + 0.5f) * (cast(p_float32, IMG_WIDTH) / cast(p_float32, OUT_WIDTH)) - 0.5f);
expr r_coeff(expr(o_r) - expr(o_floor, o_r));
expr c_coeff(expr(o_c) - expr(o_floor, o_c));
expr A00_r(cast(p_int32, expr(o_floor, o_r)));
expr A00_c(cast(p_int32, expr(o_floor, o_c)));
computation resize(
"resize",
{y, x},
mixf(
mixf(
c_input(A00_r, A00_c),
c_input(A00_r + 1, A00_c),
r_coeff
),
mixf(
c_input(A00_r, A00_c + 1),
c_input(A00_r + 1, A00_c + 1),
r_coeff
),
c_coeff
)
);
// -------------------------------------------------------
// Layer II
// -------------------------------------------------------
resize.tag_parallel_level(y);
resize.vectorize(x, 8);
// -------------------------------------------------------
// Layer III
// -------------------------------------------------------
buffer output_buf("output_buf", {OUT_HEIGHT, OUT_WIDTH}, p_float32, a_output);
resize.store_in(&output_buf);
// -------------------------------------------------------
// Code Generation
// -------------------------------------------------------
codegen({
c_input.get_buffer(),
&output_buf
}, "build/generated_fct_resize.o");
return 0;
}
|
cpp
|
package no.nav.foreldrepenger.mottak.infotrygd;
import java.time.LocalDate;
import java.time.Month;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.xml.datatype.DatatypeConfigurationException;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.binding.FinnSakListePersonIkkeFunnet;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.binding.FinnSakListeSikkerhetsbegrensning;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.binding.FinnSakListeUgyldigInput;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.informasjon.Periode;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.meldinger.FinnSakListeRequest;
import no.nav.tjeneste.virksomhet.infotrygdsak.v1.meldinger.FinnSakListeResponse;
import no.nav.vedtak.exception.IntegrasjonException;
import no.nav.vedtak.felles.integrasjon.felles.ws.DateUtil;
import no.nav.vedtak.felles.integrasjon.infotrygdsak.InfotrygdSakConsumer;
@ApplicationScoped
public class InfotrygdTjenesteImpl implements InfotrygdTjeneste {
static final String TJENESTE = "InfotrygdSak";
private static final String INFOTRYGD_NEDE_EXCEPTION_TEXT = "Basene i Infotrygd er ikke tilgjengelige";
private InfotrygdSakConsumer infotrygdSakConsumer;
InfotrygdTjenesteImpl() {
// CDI
}
@Inject
public InfotrygdTjenesteImpl(InfotrygdSakConsumer infotrygdSakConsumer) {
this.infotrygdSakConsumer = infotrygdSakConsumer;
}
@Override
public List<InfotrygdSak> finnSakListe(String fnr, LocalDate fom) {
return mapInfotrygdResponseToInfotrygdSak(finnSakListeFull(fnr, fom));
}
private List<InfotrygdSak> mapInfotrygdResponseToInfotrygdSak(FinnSakListeResponse response) {
List<InfotrygdSak> saker = new ArrayList<>();
if (response != null) {
saker.addAll(response.getSakListe().stream().map(this::mapInfotrygdSakTilDto).collect(Collectors.toList()));
saker.addAll(response.getVedtakListe().stream().map(this::mapInfotrygdVedtakTilDto).collect(Collectors.toList()));
}
return saker;
}
private InfotrygdSak mapInfotrygdVedtakTilDto(no.nav.tjeneste.virksomhet.infotrygdsak.v1.informasjon.InfotrygdVedtak vedtak) {
String tema = vedtak.getTema() == null ? null : vedtak.getTema().getValue();
String behandlingTema = vedtak.getBehandlingstema() == null ? null : vedtak.getBehandlingstema().getValue();
LocalDate iverksatt = vedtak.getIverksatt().toGregorianCalendar().toZonedDateTime().toLocalDate();
return new InfotrygdSak(vedtak.getSakId(), tema, behandlingTema, iverksatt);
}
private InfotrygdSak mapInfotrygdSakTilDto(no.nav.tjeneste.virksomhet.infotrygdsak.v1.informasjon.InfotrygdSak sak) {
String tema = sak.getTema() == null ? null : sak.getTema().getValue();
String behandlingTema = sak.getBehandlingstema() == null ? null : sak.getBehandlingstema().getValue();
LocalDate iverksatt = null;
if (sak.getIverksatt() != null) {
iverksatt = sak.getIverksatt().toGregorianCalendar().toZonedDateTime().toLocalDate();
}
return new InfotrygdSak(sak.getSakId(), tema, behandlingTema, iverksatt);
}
private FinnSakListeResponse finnSakListeFull(String fnr, LocalDate fom) {
FinnSakListeRequest request = new FinnSakListeRequest();
Periode periode = new Periode();
try {
periode.setFom(DateUtil.convertToXMLGregorianCalendar(fom));
periode.setTom(DateUtil.convertToXMLGregorianCalendar(LocalDate.of(9999, Month.DECEMBER, 31)));
request.setPeriode(periode);
request.setPersonident(fnr);
return infotrygdSakConsumer.finnSakListe(request);
/*} catch (DatatypeConfigurationException e) {
throw InfotrygdFeil.FACTORY.tekniskFeil(TJENESTE, e).toException();*/
} catch (FinnSakListePersonIkkeFunnet e) {
throw InfotrygdFeil.FACTORY.personIkkeFunnet(TJENESTE, e).toException();
} catch (FinnSakListeUgyldigInput e) {
throw InfotrygdFeil.FACTORY.ugyldigInput(TJENESTE, e).toException();
} catch (FinnSakListeSikkerhetsbegrensning e) {
throw InfotrygdFeil.FACTORY.tjenesteUtilgjengeligSikkerhetsbegrensning(TJENESTE, e).toException();
} catch (IntegrasjonException e) {
if (e.getFeil().getFeilmelding().contains(INFOTRYGD_NEDE_EXCEPTION_TEXT)) {
throw InfotrygdFeil.FACTORY.nedetid(TJENESTE, e).toException();
} else {
throw e;
}
}
}
}
|
java
|
KSCA XI suffered hiccups in their batting performance with their middle-order batsman failing to click and were bowled out for 255 in 92. 5 overs in their first innings by Andhra CA on the second day of the semi-finals of the Dr. Capt. K. Thimmappiah Memorial Cricket Tournament-2019 played at KSCA-Alur Grounds yesterday.
Andhra CA secured the first innings lead of 38-runs. After a decent start by KSCA XI openers, R. Samarth (56) and D. Nischal (48), who added 91-runs for the opening wicket, KSCA XI’s batsmen faltered to capitalise on the good start and failed to play a longer innings.
Skipper Karun Nair (35) and K. V. Siddarth (79) batted well to add a vital 104-runs for the fourth wicket and consolidated the position, but after the fall of their wickets, the other batsman failed to contribute and KSCA XI were bowled out for 255 runs.
At close of play, Andhra CA were reeling at four for two in five overs, with Prasidh M. Krishna and J. Suchith taking a wicket each for KSCA XI.
An interesting day’s play is in the offing with both the teams keen to grab the initiative.
Andhra CA: 293 in 81 overs and 4 for 2 in 5 overs Vs KSCA XI: 255 in 92. 5 overs (K. V. Siddarth 79, R. Samarth 56, D. Nischal 48, Karun Nair 35, G. Manish 3 for 74, Shoib Md. Khan 2 for 66, D. Swaroop Kumar 3 for 26).
|
english
|
<!DOCTYPE html>
<html>
<head>
<title>byblame-page-sk</title>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<!-- demo page code will insert
<gold-scaffold-sk testing_offline>
<byblame-page-sk></byblame-page-sk>
</gold-scaffold-sk>
here -->
<div style="margin: 5em 1em 1em; padding: 1em; border: 1px solid lightgrey">
<p><strong>DEBUGGING</strong></p>
<p>
<input type="checkbox" id="simulate-rpc-failure"/>
<label for="simulate-rpc-failure">
Simulate RPC internal server error on subsequent roundtrips (refresh page
for it to take effect).
</label>
</p>
</div>
</body>
</html>
|
html
|
The window of opportunity that opened for small fast-moving consumer goods (FMCG) companies during the nationwide lockdown seems to be rapidly closing as consumers opt for big, trusted names across rural and urban markets.
Market research agencies, such as Nielsen and Kantar, as well as FMCG firms, say that a return to normalcy in operations and a distribution push into rural areas is aiding the growth of bigger brands.
The tendency to bank on established labels is stronger in a health crisis, says Prasun Basu, president, South Asia, Nielsen.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more.
|
english
|
/** ********************************************** **
@Author <NAME>
@Website info.codebox.biz
@Last Update Thursay, February 22, 2018
NOTE! Price quotation for Rocket Elevators
*************************************************** **/
/** ********** For residential buildings computation ************** **
Variables: avgFloors = number of apartments / number of floors
(Note: if the number of floors > 20 add 1 column
if added 20 more another 1column to be added)
totalElevators = avgFloors /6
costOfElevators = radio button selection * totalElevators
installationFee = elevatorPrice * (Standard*0.10; Premium*0.13; Excelium*0.16)
totalPrice = costOfElevators + installationFee
******************************************************************* **/
var residentialForm = document.getElementById('resForm');
residentialForm.addEventListener('submit', function(evt) {
evt.preventDefault();
var typeOfServiceValueRes = getTypeOfServiceValueRes('optradio1');
var percentageOfServiceRes = getPercentageOfServiceRes(typeOfServiceValueRes);
var numApartments = parseInt(document.getElementById('renoa').value);
var numFloors = parseInt(document.getElementById('renof').value);
var avgApartments = numApartments / numFloors;
var addElevator = getAddElevator(numFloors);
var numberOfElevatorsRes = Math.ceil(avgApartments / 6) + addElevator;
console.log(addElevator);
var costOfElevatorsRes = numberOfElevatorsRes * typeOfServiceValueRes;
var installationFeeRes = typeOfServiceValueRes * percentageOfServiceRes;
installationFeeRes = Math.round((installationFeeRes + Number.EPSILON) * 100) / 100;
var totalPriceRes = costOfElevatorsRes + installationFeeRes;
var numberOfElevatorsFieldRes = document.getElementById('required-elevator-residential');
numberOfElevatorsFieldRes.value = numberOfElevatorsRes;
var costOfElevatorFieldRes = document.getElementById('cost-per-elevator-residential');
costOfElevatorFieldRes.value = costOfElevatorsRes;
var costOfInstallationFieldRes = document.getElementById('cost-of-installation-residential');
costOfInstallationFieldRes.value = installationFeeRes;
var totalPriceFieldRes = document.getElementById('total-price-residential');
totalPriceFieldRes.value = totalPriceRes;
})
function getTypeOfServiceValueRes(radioName) {
var typeOfServicesRes = document.getElementsByName(radioName);
for(var i = 0;i<typeOfServicesRes.length;i++){
var radioInput = typeOfServicesRes[i];
if(radioInput.checked) return parseInt(radioInput.value);
}
}
function getPercentageOfServiceRes(typeOfServiceValueRes) {
if (typeOfServiceValueRes === 7565) {
return 0.10;
} else if(typeOfServiceValueRes === 12345) {
return 0.13;
} else {
return 0.16;
}
}
function getAddElevator(numFloors) {
if (numFloors > 41 ) {
return 2;
}
else if (numFloors > 20) {
return 1;
}
if (numFloors > 1){
return 0;
}
}
/** ************* For commercial buildings computation ****************** **
Compuration: costOfElevators = numberOfElevators * radio button selection
installationFee = elevatorPrice * (Standard*0.10; Premium*0.13; Excelium*0.16)
totalPrice = costOfElevators + installationFee
************************************************************************* **/
var commercialForm = document.getElementById('comForm');
commercialForm.addEventListener('submit', function(evt) {
evt.preventDefault();
var numberOfElevators = parseInt(document.getElementById('comnoe').value);
var typeOfServiceValue = getTypeOfServiceValue('optradio2');
var percentageOfService = getPercentageOfService(typeOfServiceValue);
var costOfElevators = numberOfElevators * typeOfServiceValue;
var installationFee = typeOfServiceValue * percentageOfService;
installationFee = Math.round((installationFee + Number.EPSILON) * 100) / 100;
var totalPrice = costOfElevators + installationFee;
var typeOfServiceValueField = document.getElementById('cost-per-elevator-commercial');
typeOfServiceValueField.value = typeOfServiceValue ;
var costOfInstallationField = document.getElementById('cost-of-installation-commercial');
costOfInstallationField.value = installationFee;
var totalPriceField = document.getElementById('total-price-commercial');
totalPriceField.value = totalPrice;
})
function getTypeOfServiceValue(radioName) {
var typeOfServices = document.getElementsByName(radioName);
for(var i = 0;i<typeOfServices.length;i++){
var radioInput = typeOfServices[i];
if(radioInput.checked) return parseInt(radioInput.value);
}
}
function getPercentageOfService(typeOfServiceValue) {
if (typeOfServiceValue === 7565) {
return 0.10;
} else if(typeOfServiceValue === 12345) {
return 0.13;
} else {
return 0.16;
}
}
/** ********** For corporate buildings computation ************** **
Variables: totalNumFloors = numFloors + numBasements
avgOccupants = maxOccupants * totalNumFloors
totalElevators = avgOccupants / 1000
costOfElevators = radio button selection * totalElevators
installationFee = elevatorPrice * (Standard*0.10; Premium*0.13; Excelium*0.16)
totalPrice = costOfElevators + installationFee
****************************************************************** **/
var corporateForm = document.getElementById('corForm');
corporateForm.addEventListener('submit', function(evt) {
evt.preventDefault();
var numFloorsCor = parseInt(document.getElementById('cornof').value);
var numBasementsCor = parseInt(document.getElementById('cornob').value);
var maxOccupantsCor = parseInt(document.getElementById('cormax').value);
var typeOfServiceValueCor = getTypeOfServiceValueCor('optradio3');
var percentageOfServiceCor = getPercentageOfServiceCor(typeOfServiceValueCor);
var totalNumFloorsCor = numFloorsCor + numBasementsCor;
var avgOccupantsCor = maxOccupantsCor * totalNumFloorsCor;
var numberOfElevatorsCor = Math.ceil(avgOccupantsCor / 1000);
var costOfElevatorsCor = numberOfElevatorsCor * typeOfServiceValueCor;
var installationFeeCor = typeOfServiceValueCor * percentageOfServiceCor;
installationFeeCor = Math.round((installationFeeCor + Number.EPSILON) * 100) / 100;
var totalPriceCor = costOfElevatorsCor + installationFeeCor;
var numberOfElevatorsFieldCor = document.getElementById('required-elevator-corporate');
numberOfElevatorsFieldCor.value = numberOfElevatorsCor;
var typeOfServiceValueFieldCor = document.getElementById('cost-per-elevator-corporate');
typeOfServiceValueFieldCor.value = typeOfServiceValueCor;
var costOfInstallationFieldCor = document.getElementById('cost-of-installation-corporate');
costOfInstallationFieldCor.value = installationFeeCor;
var totalPriceFieldCor = document.getElementById('total-price-corporate');
totalPriceFieldCor.value = totalPriceCor;
})
function getTypeOfServiceValueCor(radioName) {
var typeOfServicesCor = document.getElementsByName(radioName);
for(var i = 0;i<typeOfServicesCor.length;i++){
var radioInput = typeOfServicesCor[i];
if(radioInput.checked) return parseInt(radioInput.value);
}
}
function getPercentageOfServiceCor(typeOfServiceValueCor) {
if (typeOfServiceValueCor === 7565) {
return 0.10;
} else if(typeOfServiceValueCor === 12345) {
return 0.13;
} else {
return 0.16;
}
}
/** ********** For hybrid buildings computation ************** **
Variables: totalNumFloors = numFloors + numBasements
avgOccupants = maxOccupants * totalNumFloors
totalElevators = avgOccupants / 1000
costOfElevators = radio button selection * totalElevators
installationFee = elevatorPrice * radio button selection
totalPrice = costOfElevators + installationFee
************************************************************** **/
var hybridForm = document.getElementById('hyForm');
hybridForm.addEventListener('submit', function(evt) {
evt.preventDefault();
var numFloorsHy = parseInt(document.getElementById('hynof').value);
var numBasementsHy = parseInt(document.getElementById('hynoba').value);
var maxOccupantsHy = parseInt(document.getElementById('hymax').value);
var typeOfServiceValueHy = getTypeOfServiceValueHy('optradio4');
var percentageOfServiceHy = getPercentageOfServiceHy(typeOfServiceValueHy);
var totalNumFloorsHy = numFloorsHy + numBasementsHy;
var avgOccupantsHy = maxOccupantsHy * totalNumFloorsHy;
var numberOfElevatorsHy = Math.ceil(avgOccupantsHy / 1000);
var costOfElevatorsHy = numberOfElevatorsHy * typeOfServiceValueHy;
var installationFeeHy = typeOfServiceValueHy * percentageOfServiceHy;
installationFeeHy = Math.round((installationFeeHy + Number.EPSILON) * 100) / 100;
var totalPriceHy = costOfElevatorsHy + installationFeeHy;
var numberOfHybrid = document.getElementById('required-elevator-hybrid');
numberOfHybrid.value = numberOfElevatorsHy;
var typeOfServiceValueFieldHy = document.getElementById('cost-per-elevator-hybrid');
typeOfServiceValueFieldHy.value = typeOfServiceValueHy;
var costOfInstallationFieldHy = document.getElementById('cost-of-installation-hybrid');
costOfInstallationFieldHy.value = installationFeeHy;
var totalPriceFieldHy = document.getElementById('total-price-hybrid');
totalPriceFieldHy.value = totalPriceHy;
})
function getTypeOfServiceValueHy(radioName) {
var typeOfServicesHy = document.getElementsByName(radioName);
for(var i = 0;i<typeOfServicesHy.length;i++){
var radioInput = typeOfServicesHy[i];
if(radioInput.checked) return parseInt(radioInput.value);
}
}
function getPercentageOfServiceHy(typeOfServiceValueHy) {
if (typeOfServiceValueHy === 7565) {
return 0.10;
} else if(typeOfServiceValueHy === 12345) {
return 0.13;
} else {
return 0.16;
}
}
|
javascript
|
Value of Wealth, Fashion, and Worldly Success from the Qur\'anic Story of Nabi Musa (a)
Value of Wealth, Fashion, and Worldly Success from the Qur\'anic Story of Nabi Musa (a)
Place: Saba Islamic Center (San Jose, CA, USA)
Today, being a revolutionary is becoming a fashion or a click! Dear believers, there is a huge difference between pretending to be a revolutionary and being a true revolutionary. The Leader gives a piece of advice to all the \'revolutionaries\' out there.
Video Tags:
Welcome to another episode of NoteWorthy!
Welcome to another episode of NoteWorthy!
In this episode we will be debunking some annoying myths and false statements about the topic of Hijab.
From magazines and stereotypes, to weird looking standards people have been defining for women, there has always been a difference in opinions when it comes to how a woman should dress.
In this episode we will also be discussing the double standards surrounding the term \"Freedom of Expression!”.
And we\'ll discuss the corrupt society standards, the mainstream media and entertainment industries that have been pushing the idea of Hijab being oppressive.
And finally, we will be shedding some light on the real Islamic viewpoint and the exceptional role a woman can play in society that is taught to us by the Pure Muhammadan Islam.
So stay tuned as Sister Huda clears up some foggy fog clouds surrounding this controversial, yet very important topic!
This is NoteWorthy.
Video Tags:
Has humanity been able to solve its problems in the present-day?
Has humanity been able to solve its problems in the present-day?
And despite the technological advancements of this era, have the fundamental problems of humanity decreased or increased?
And are the problems and crises of the modern era rooted merely in \\\'ignorance\\\'?
Are the problems that the modern world is facing similar to those of the \\\'Age of Ignorance\\\'; and if so, in what manner are they similar?
What was the solution for the problems of the \\\'Age of Ignorance\\\'?
Does the Western world or the Eastern world have the solutions to our problems?
What are just a few of the Fitnahs that the Muslims are suffering from in the present-day? What do the oppressors do to other nations in the name of democracy? What do the materialists do to our women in the name of fashion?
Finally, what are some statements by the Messenger of Allah (S) that can help us to navigate through the modern day Fitnahs and seditions that the Muslims and humanity on the whole is facing?
Shaheed Arif al-Husayni answers in his simple, yet magnetic manner, as he speaks about \\\"The Ultimate Solution To Our Problems\\\" and how we must all seek refuge from Fitnah with the Holy Qur\\\'an.
Video Tags:
Hi guys!
Hi guys!
Ramadan Mubarak! This is a video to show you some decoration ideas. I will show you how to DIY a lantern, 3D flower, and some light ideas to put around your house! I hope you enjoy!
Western media, fashion magazines and beauty contests out forward the image of an ideal woman which deeply contrasts with the ideal Muslim Woman.
Western media, fashion magazines and beauty contests out forward the image of an ideal woman which deeply contrasts with the ideal Muslim Woman. Muslim women are often portrait in these same media as oppressed and submissive.
However, there is a growing movement within women of European Muslim communities that defend that the true oppression comes from the ideal imposed by western values that focus only on the external image of women.
In this edition of the show we ask the following question: What is the ideal image of women in the eyes of Islam?
Beautiful recitation by Aba-Thar presented in a unique and charming fashion by Al-Balagh with Urdu subtitles.
Beautiful recitation by Aba-Thar presented in a unique and charming fashion by Al-Balagh with Urdu subtitles.
An Iranian man who says he was kidnapped and interrogated for 14 months in the US over Iran's nuclear programme, has returned to his home country where he was reunited with his family.
Shahram Amiri says he was abducted by US and Saudi agents at gunpoint while on a pilgrimage to the Saudi city of Mecca last year and flown to the US, where he claims he was physically and psychologically tortured under questioning.
The US government has denied all the allegations, saying Amiri was not held against his own will in the US.
Speaking to Al Jazeera in Doha on Wednesday en route to Tehran, Amiri said: "For 14 months I was put under a number of pressures in the US. And in reality the freedom to communicate with my family and to express myself in an ordinary fashion was not granted.
"Behind the scenes this was very politically motivated."
August 21, 2008 presentation by Stacey Bent for the Stanford University Office of Science Outreach's Summer Science Lecture Series.
August 21, 2008 presentation by Stacey Bent for the Stanford University Office of Science Outreach's Summer Science Lecture Series.
Meeting the world's growing energy needs in a sustainable fashion is one of the most pressing problems of our time. Professor Bent introduces the scope of the energy problem and some of the options for sustainable energy, then will focus on two main devices: solar cells and fuel cells. Solar cells convert the energy of the sun directly into electricity, while fuel cells convert chemical energy directly into electricity. Current research at Stanford is studying the use of new materials to develop the next generation of solar cells and fuel cells.
The Stanford Summer Science Lecture Series is a set of informal lectures about cutting edge research from four of Stanford's most esteemed professors.
If you are interested in learning how to create complex dynamic Flash Content Management Systems, this is the lesson for you. Using the the xml file and the free fla source file you can gain a better understanding of how to work with external data in Flash at an expert level. Create cool content management systems for clients, render out complex pagination from database results, and much much more can be achieved with the right imagination and this foundation.
The XML file in the folder will fuel the whole system in a dynamic fashion, bringing in external images, text, and labels. You can also add more child nodes to the MenuItems in my XML file pretty easily if you understand XML just a little bit.
Learn to animate actionscript 3.0 movieclips in a string, band, or cord fashion that is geared to follow the user mouse. This can be made more dynamic by using an array and loop to allow for srings, cords, or plugs if you set the numbers closer in the script and render more dynamic movieclips. I will be expanding this to use a more dynamic approach using an array and loop.
The firefly is equipped with an amazing system. This insect has an organ in its body that produces fluorescent light. This light has great significance for the firefly to preserve its race, because the female and male fireflies recognize each other by looking at their lights. The fluorescent organ of the firefly is composed of three layers just like the headlamps of an automobile. Cells that produce light lie at the bottom layer. The duty of these cells is to produce a combustible substance. This combustible substance reacts with oxygen controlled by an enzyme. As a result of this chemical reaction, the fluorescent light manufactured in a similar fashion to a factory is first transferred to the adjacent concave layer and then to the upper transparent layer where it is reflected as light. The perfect quality and 98% productivity rate of this fluorescent light astonished scientists examining fireflies. The light bulbs used for lighting purposes by people can only convert 5% of the received energy into light, the remaining 95% being lost in the form of heat. Because of this 95% heat which is released, we cannot touch a light bulb when it is on. Despite the fact that the firefly produces almost 20 times more light than a light bulb, the temperature does not rise, due to the cold nature of its light. Man can produce cold light only in laboratories, at the end of a series of chemical reactions. It is obviously irrational to claim that this complex lighting system has been designed and then installed in the body of this tiny insect by itself. More irrational than this is the claim of the theory of evolution that this system formed as a result of coincidences in nature. The perfection in the firefly's body is an indication that it is the product of a superior wisdom and infinite knowledge. Allah created all living species with distinct qualities and through them shows us His Eternal Might. In a verse of the Qur'an, people are summoned to ponder on this fact:
Among His Signs is the creation of the heavens and earth and all the creatures He has spread about in them. And He has the power to gather them together whenever He wills. (Surat ash-Shura: 29)
Stand4Hussain.org celebratd the birthday of Imam Hussain (pbuh) in yet another innovative fashion by handing out free food and painting the faces of kids in a market place in Oslo.
Comments by one of the volunteers:
The program went very well and better than expected alhamdullilah :)
There were almost exclusively positive people who talked to us, and we got a great deal of positive feedback. Not the least the neighbors (the stands), who were impressed with the job and were surprised that we handed out free food and that we were told that we must take good care of our neighbours, for it is part of Islam's principles and values.
The questions we received during the stand were of different kinds such as "you are the good Muslims then?" due to the free distribution of food and we were quite happy throughout.
Someone else asked if we followed Saudi Arabia's religion or operated the same way as IslamNet (Salafist org. in Norway).
The majority also asked about why we celebrated the birthday of exactly this personality. There were also some others who had not known that the grandchildren of prophet Muhammad (saaw) played a big role in Islam and that they existed in Islam at all.
A wonderful experience it was;)
Syrian army forces have cleared the strategic border city of Qusayr of foreign-backed militants after two weeks of fierce fighting. For the militants, losing Qussayr meant a cut off in supply lines of weapons and arms. But for the Syrian government, the city has been a strategic location.
As international efforts are underway to fashion a political solution to end the crisis in Syria, the army is gaining the upper hand in its fight against the militants after retaking the strategic city of Qusayr. Elian el-Khamissi reports from Beirut.
Attacks on Palestinians as well as their arrests and detentions by Israeli forces are almost a daily phenomenon in occupied West Bank. In a similar fashion, this time, they stormed the house of 16 year old Asim Mustafa Shunnar and arrested him under the pretext of owning a device that was allegedly a security risk.
سخت کوشی سے ہے، تلخِ زندگانی انگبیں(شہد)
(علامہ اقبال)
کسی بھی قوم کے لیے اُس قوم کے جوان سب سے بڑی نعمت اور تعمیر و ترقی کا سبب ہوتے ہیں۔ اقوام کا مقدر اس کے جوانوں سے وابستہ ہوتا ہے۔ اِسی لیے اسلام دشمن طاقتیں مسلمان نوجوانوں کو ہمیشہ اپنے کارخانوں، فیکٹریوں اور اداروں کا غلام بنائے رکھنے کے لیے اُن سے فکر و خود سے اپنے پاؤں پر کھڑے ہونے کی سوچ سمجھ چھیننے کی تک و دو میں لگی رہتی ہیں۔ وہ نہیں چاہتی ہیں کہ اسلامی دنیا کے جوان خود کفیل بنیں اور استعمار و استکبار کی غلامی کی زنجیروں کو توڑ ڈالیں اِسی لیے انہیں ہمیشہ فحاشی، عریانی اور بے ہودہ کاموں میں مشغول اور مست رکھنے کی کوششوں میں لگی رہتی ہیں اور نئے نئے شیطانی منصوبے اور پروگرامات نوجوانوں کے لیے پیش کرتی ہیں۔
اسلامی انقلاب کے بعد حقیقی محمدی اسلام اور اسلامی بیداری کی بدولت نوجوانوں کی ایک بڑی اور قابل قدر تعداد ایک درست اور تعمیر و ترقی کے راستے پر گامزن ہے اور دنیا کے گوشے و کنار میں شیطانی طاقتوں کے مقابل صبر استقامت کے ساتھ بر سرِ پیکار ہے۔ اس کی ایک واضح اور بڑی مثال انقلاب اسلامی ایران کے پاکیزہ اور تعلیم یافتہ مومن جوان ہیں۔
اِس بارے میں مزید جاننے کے لیے اِس خوبصورت ویڈیو کا مشاہدہ کیجئے۔
Video Tags:
|
english
|
East- Turkistan Government in Exile (ETGE) and countless Uyghur victims urged United Kingdom police to arrest Xinjiang Uyghur Autonomous Region Governor and Chair of the Standing Committee of the CCP Xinjiang Regional Committee Erkin Tuniyaz, East- Turkistan reported.
Describing Tuniyaz as the "puppet," East Turkistanis said that UK barrister Rodney Dixon KC and his legal team have submitted the request on their behalf to the Metropolitan Police SO15 Counter-terrorism unit.
"We act for the East Turkistan Government in Exile and countless Uyghur victims. We have submitted a request on behalf of our clients at the International Criminal Court (ICC) to open an investigation into the alleged genocide and crimes against humanity committed by Chinese officials against Uyghur victims over which the Court has jurisdiction. We have included witness statements and other evidence in support of our submission. Our request is currently being reviewed and considered by the ICC Prosecutor," the letter, which was sent to UK police, read.
A private prosecution request has also been made in the UK to arrest Tuniyaz. The request is made directly to the Metropolitan Police under section 134 of the Criminal Justice Act 1988, asking that they investigate and arrest Tuniyaz while he is in the UK.
As Tuniyaz arrived in the UK on Sunday, the letter further added, "We write to you now on an urgent basis, as we understand that one of the key suspects, Erkin Tuniyaz, arrived in the UK on Sunday on a planned trip to meet FCDO officials this week. Tuniyaz is the current Chairman (governor) of Xinjiang, and Chair of the Standing Committee of the CCP Xinjiang Regional Committee. "
In June 2020, a submission was filed by the same legal team on behalf of the ETGE and ETNM with the ICC Prosecutor in The Hague asking for an investigation into the ongoing genocide and crimes against humanity being committed by Chinese state authorities against Uyghur and other Turkic peoples both inside and outside of Chinese Occupied East Turkistan.
The letter highlights the widespread and systematic detention and torture of millions of Uyghurs in internment camps and prisons in East Turkistan ('Xinjiang'), planned and controlled by officials at the highest levels of the CCP, reported East- Turkistan.
It also added that the UN and several other bodies have found that there is credible evidence of torture being committed in detention camps in East Turkistan.
"Our clients are urging the police to exercise their powers to investigate and arrest Tuniyaz. We have laws in our country that prohibit torture wherever it is committed in the world and suspects who travel here are subject to those laws," said British lawyer Rodney Dixon KC. "We are therefore asking that the law should be applied properly and fairly so that those who are alleged to have committed torture are not free to come and go from our country," he added.
"It is disgraceful that a known perpetrator of torture, genocide and other crimes against humanity against Uyghurs and other Turkic peoples has even been invited for a meeting in London and other European capitals. I don't know how much more evidence is needed to get any kind of justice for what he and the Chinese government have done to our people," said Salih Hudayar, Prime Minister of the East Turkistan Government in Exile.
"This is a rare opportunity to actually do something concrete to prevent the further torture and genocide of our people and I hope the British police are brave enough to act," he added.
The East Turkistan Government in Exile again calls on the UK Government to cancel its planned meetings with Tuniyaz and immediately arrest and bring him to justice for his ongoing direct role in China's ongoing campaign of colonization, genocide, and occupation in East Turkistan, according to East- Turkistan.
( With inputs from ANI )
|
english
|
Before I tell you about this place, where it is and how to reach here, let me first introduce you to the zeal of 70 year old Sri Kunda Satyanarayana who is the master mind behind this mythological wonder.
Interestingly, Sri Kunda Satyanarayana neither had formal higher education nor any travel experience to distant pilgrim centers spread across the length and breadth of India. It was the death of his youngest Son Surendra Babu that sparked in him the idea to do something in memory of his son. But, he had to face a lot of financial crunch because of his retiring age, and not so supportive close circle. But he went ahead and after 12 years of constant hard work, his project took shape in the form of a Mythological Museum called Kunda Satyanarayana Kaladhamam at Surendrapuri near Yadagirigutta, some 58 Kilometers away from the capital city of Telangana, Hyderabad.
The Surendrapuri Mythological Park is one place where all the God's congregate to bless you!
All the Indian Epics like Ramayana, Mahabharata and Bhagavatam come alive here, since all the historical temples of India are recreated here. One can have the darshan of all the Gods here in one place. The confluence of Art and Religion is seamlessly infused into a divine oneness.
Have a walking tour across the 3 kilometer walkway and feel the holistic aura fill your senses seeing the 3000 statues of all the Gods and Goddesses within the confines of this wonderful vicinity. It's like entering into a celestial world of Indian mythology of culture and religion, which till now, you could only read in books, or rather gather tit bits through google.
The highlight of this Kaladhamam is the gaint 60" feet Panchamukha Hanuman with the heads of Vanara, Narasimha, Garuda, Sookara and hayagreeva which welcomes you into the realm of this serene vicinity of Surendrapuri, the name by which this place is called.
Similarly, at the hind side, you find Panchamukha Shiva with five faces of sadyojata, Vamadeva, Aghora, Tatpurusha and Eshana, bearing weapons in ten hands killing Tripurasura with his Trident.
The eight worlds mentioned in the epics are recreated here and you can have a feel of Bramhalok, Vishnulok, shivalok, Nagalok, Indralok, Yamalok, Narakalok, Patalalok. Like wise, one can visit all the important temples of India from Kashmir to Kanyakumari here.
Every child born and brought up in this culturally beautiful country called India is aware of the war of Mahabharat. B R Chopra's epic TV serial "Mahabharat" telecast on DD National during the year 1988 had cast a spell in the minds of children and adults alike.
Here in Surendrapuri, the padmavyuham has been set up which makes you feel as if you have entered the war of mahabharath and every story gives you a value to learn in life. How abhimanyu falls prey to the trick of kauravas because he went into the padmavyuh with half knowledge makes you realize that you should not do any work without knowing all the facts.
The statues narrate the epic tales and make it lively for the visitors and add a magical element in the form of Hanuman giving prasad with his own hands, and hot coffee made from the milk coming straight from the kamadhenu. Sounds interesting, right!
So, how does one reach this place?
If you are coming from other countries, just enter India from any port of entry and from there reach Hyderabad, the capital of the newly born Telangana State in the southern part of India, or just hop into a plane that lands you at Rajiv Gandhi International Airport (VOHS), Shamshabad, Hyderabad, one of the finest public-private venture, and the sixth busiest Airport in India.
And from here, book an "Ola Outstation" or an "Uber', the choice is yours. Of course, there are a number of State Run buses too, which take you in an hour and a half covering a distance of 58 kilometers on Warangal Highway.
This Kaladhamam is open Monday through Sunday from 09.00 AM to 07.00 PM and the Temples are open from 06.30 AM to 01.00 PM and from 03.00 PM to 08.00 PM with an entry ticket of INR 350/- per person.
For all of you, the aficionados of Indian culture, this place is a MUST VISIT. Drop in, to feel the epics, and meet the Gods, all in ONE PLACE!
|
english
|
<reponame>n-Holmes/AdventOfCode2020
from collections import Counter
from functools import lru_cache
def get_contents(path : str) -> dict[str, dict[str, int]]:
"""Get a weighted, directed graph of bags.
No protection for the case of cycles.
"""
with open(path, "r") as f:
lines = f.readlines();
contents = {}
# Could use regex here, but hardly seems necessary due to the input size.
for line in lines:
try:
bag, contains = line.split(" bags contain ");
except:
continue
contents[bag] = Counter()
if contains.startswith("no"): continue
# separate types
for item in contains.split(", "):
parts = item.split();
color = parts[1] + " " + parts[2]
count = int(parts[0])
contents[bag][color] = count
return contents
def get_poss_containers(
target : str,
contents : dict[str, dict[str, int]]
) -> list[str]:
"""Returns a list of all bags which can contain a bag of a given color."""
to_check = [target]
valid = set()
while to_check:
target_color = to_check.pop()
for cont_color in contents:
if cont_color not in valid and target_color in contents[cont_color]:
valid.add(cont_color)
to_check.append(cont_color)
return list(valid)
def count_contents(
target : str,
contents : dict[str, dict[str, int]]
) -> int:
"""Counts the number of bags contained within a given color of bag."""
@lru_cache() # Cache results to speed up recursion
def rec_count(color : str) -> int:
"""Recursively count the contents of a given color."""
return sum(
(1 + rec_count(child)) * count
for child, count in contents[color].items()
)
return rec_count(target)
if __name__ == "__main__":
graph = get_contents("input7.txt")
print("Containers that can hold a shiny gold bag:")
print(len(get_poss_containers("shiny gold", graph)))
print("No of bags in a shiny gold:")
print(count_contents("shiny gold", graph))
|
python
|
import django_filters
from django.db.models import Q
from devices.enums import PasswordAlgorithm
from devices.models import Configuration, Platform
from utils.filters import (
BaseFilterSet,
CreatedUpdatedFilterSet,
NameSlugSearchFilterSet,
TagFilter,
)
class ConfigurationFilterSet(BaseFilterSet, CreatedUpdatedFilterSet):
q = django_filters.CharFilter(method="search", label="Search")
tag = TagFilter()
class Meta:
model = Configuration
fields = ["id", "jinja2_trim", "jinja2_lstrip"]
def search(self, queryset, name, value):
if not value.strip():
return queryset
return queryset.filter(Q(name__icontains=value) | Q(template__icontains=value))
class PlatformFilterSet(
BaseFilterSet, CreatedUpdatedFilterSet, NameSlugSearchFilterSet
):
password_algorithm = django_filters.MultipleChoiceFilter(
choices=PasswordAlgorithm.choices, null_value=None
)
class Meta:
model = Platform
fields = ["id", "name", "slug", "napalm_driver", "description"]
|
python
|
import axios from 'axios'
import {setItem} from './singleItem'
import {setFilter} from './filterType'
const initialItems = []
const GET_ALL_ITEMS = 'GET_ALL_ITEMS'
const DELETE_ITEM = 'DELETE_ITEM'
const ADD_ITEM = 'ADD_ITEM'
const getAllItems = items => {
return {
type: GET_ALL_ITEMS,
items: items
}
}
const removeItem = item => {
return {
type: DELETE_ITEM,
item
}
}
const addItem = item => {
return {
type: ADD_ITEM,
item
}
}
//Getting all items in the data base or getting just the ones in a specific category
//setting the filter for styling
export const fetchAllItems = type => {
return async dispatch => {
try {
let response
if (type) {
response = await axios.get(`/api/items/category/${type}`)
dispatch(setFilter(type))
} else {
response = await axios.get('/api/items')
dispatch(setFilter(''))
}
const items = response.data
dispatch(getAllItems(items))
} catch (error) {
console.error(error.message)
}
}
}
//Allowing an admin to delete an item
export const deleteItem = item => {
return async dispatch => {
try {
if (item.inventory) {
throw new Error('Item still has inventory to sell')
} else {
await axios.delete(`/api/items/${item.id}`)
dispatch(removeItem(item))
}
} catch (error) {
console.error(error.message)
}
}
}
//creating or updating items in the inventory
export const createOrUpdateItem = (item, history) => {
return async dispatch => {
try {
let newItem
if (item.id) {
newItem = await axios.put(`/api/items/${item.id}`, item)
} else {
const response = await axios.post('/api/items', item)
newItem = response.data
dispatch(addItem(newItem))
}
dispatch(setItem(newItem))
history.push('/admin/items')
} catch (error) {
console.error(error.message)
}
}
}
//Fetching only products that are out of stock
//items with inventory of 0
export const fetchOutOfStock = () => {
return async dispatch => {
try {
const response = await axios.get('/api/items/outOfStock')
const items = response.data
dispatch(setFilter('outOfStock'))
dispatch(getAllItems(items))
} catch (error) {
console.error(error.message)
}
}
}
const itemsReducer = (items = initialItems, action) => {
switch (action.type) {
case GET_ALL_ITEMS:
return action.items
case DELETE_ITEM:
return items.filter(item => item.id !== action.item.id)
case ADD_ITEM:
return [...items, action.item]
default:
return items
}
}
export default itemsReducer
|
javascript
|
The JNU professor also asked Mehbooba Mufti to give her 40 people for a public execution if "she feels hurt for the 40 CRPF personnel" who died in the attack.
By India Today Web Desk: A Jawaharlal Nehru University (JNU) professor has blamed former Jammu and Kashmir chief minister Mehbooba Mufti for the February 14 Pulwama terror attack, asking her to give her 40 people for a public execution if "she feels hurt for the 40 CRPF personnel" who died in the attack.
The professor has been identified as Amita Singh, a professor of law, governance and disaster studies at Delhi's JNU.
"The RDX-filled vehicle could not be checked as the three check barriers were removed by Mehbooba Mufti. Governor [Satya Pal Malik], please reinstate everything removed by her. Mehbooba Mufti should now hand over her 40 people for public execution if she really feels hurt for our 40 soldiers," the JNU professor tweeted on Saturday (February 16).
The professor drew criticism from the People's Democratic Party (PDP) and party chief Mehbooba Mufti.
Responding to the JNU professor's tweet, Jammu and Kashmir PDP said it would take a legal action against her.
"This is a professor at JNU making up concocted stories and ridiculous allegations against Mehbooba Mufti. She does not stop at that. She is also calling for public hanging of Kashmiris. We register strong protest and will initiate legal action against her. Delhi Police, please take note," the party tweeted.
Mehbooba Mufti posted, "How can someone who imparts education be so diabolical & ignorant by choice? Is she educated in the real sense? She seems to possess an unfettered imagination with an aim to persecute Kashmiris. Ironical that she teaches ethics and law! "
|
english
|
<body>
<br>
<div data-aos="fade-right">
<div class="accordion" id="accordionPanelsStayOpenExample">
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingOne">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseOne" aria-expanded="false"
aria-controls="panelsStayOpen-collapseOne">
<h5>StreetEats</h5>
<h5 style="margin-left: 36em;" id="projectYear">2021</h5>
</button>
</h2>
<div id="panelsStayOpen-collapseOne" class="accordion-collapse collapse "
aria-labelledby="panelsStayOpen-headingOne">
<div class="accordion-body">
StreetEats is a Flask web app that suggests restaurants nearby after automatically accessing your location.
Users are also able to add their favorite restaurants to lists after creating an account using our
login/register system.
This login/register system is built on a PostgreSQL database in Python. The web app is hosted on an EC2
instance
and an NginX reverse proxy. StreetEats is containerized using Docker and has its own CI/CD pipeline on
Github Actions to allow for
automated testing and deployment. Prometheus and Grafana are used for monitoring.
StreetEats was one of the Winners of the Batch's Hackathon!
<br>
<br>
<a href="https://github.com/ayesha133/StreetEats">Github</a>
<a href="https://devpost.com/software/streeteats"> Devpost</a>
<br>
<br>
<span class="badge bg-secondary">Python</span>
<span class="badge bg-secondary">Flask</span>
<span class="badge bg-secondary">HTML & CSS</span>
<span class="badge bg-secondary">Github Actions</span>
<span class="badge bg-secondary">Docker</span>
<span class="badge bg-secondary">PostgreSQL</span>
<span class="badge bg-secondary">Linux</span>
<span class="badge bg-secondary">Bash Scripting</span>
<span class="badge bg-secondary">Amazon Web Services (AWS) </span>
<span class="badge bg-secondary">Grafana</span>
<span class="badge bg-secondary">CI/CD</span>
<span class="badge bg-secondary">NginX</span>
<span class="badge bg-secondary">Prometheus</span>
<span class="badge bg-secondary">IP Forwarding</span>
</div>
</div>
</div>
<br>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseTwo" aria-expanded="false"
aria-controls="panelsStayOpen-collapseTwo">
<h5> Mac BillBoard</h5>
<h5 style="margin-left: 36em;" id="projectYear">2021</h5>
</button>
</h2>
<div id="panelsStayOpen-collapseTwo" class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingTwo">
<div class="accordion-body">
A cross-platform app with React Native that notifies all app users when posts have been made in the app and
allows users
to view all posts by implementing Firebase Realtime Database in the app.
I noticed how it was difficult to keep myself and many other students updated on the university, as keeping
up with university information on social media is quite difficult, since it is extremely easy to lose
information online on Social Media. Therefore, I thought to solve this problem by creating an app that would
send alerts to all students.
This feature is implemented with the use of firebase realtime database. The user is prompted with a login
system and if the user's info matches the admin's, they will be able to make in app posts. Once the
admin makes the post, this information is displayed to all users and is sent to the firebase realtime
database.
<br>
<br>
<a href="https://github.com/ayesha133/BillBoard-App">Github</a>
<br>
<br>
<span class="badge bg-secondary">React Native</span>
<span class="badge bg-secondary">JavaScript</span>
<span class="badge bg-secondary">FireBase Realtime Database</span>
</div>
</div>
</div>
<br>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingThree">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseThree" aria-expanded="false"
aria-controls="panelsStayOpen-collapseThree">
<h5>Robotic Arm</h5>
<h5 style="margin-left: 36em;" id="projectYear">2020</h5>
</button>
</h2>
<div id="panelsStayOpen-collapseThree" class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingThree">
<div class="accordion-body">
Led a team to code a virtual robotic arm in Python to lift and place 6 containers each holding a surgical
tool for sterilization.
Applied the use of a muscle sensor emulator to control the robotic arm with Python.
<br>
<br>
<span class="badge bg-secondary">Python</span>
</div>
</div>
</div>
<br>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingFour">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseFour" aria-expanded="false"
aria-controls="panelsStayOpen-collapseFour">
<h5>Portfolio Website</h5>
<h5 style="margin-left: 36em;" id="projectYear">2021</h5>
</button>
</h2>
<div id="panelsStayOpen-collapseFour" class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingFour">
<div class="accordion-body">
I wanted a fun way to share my skills. What's better than my own website portfolio! This website
is hosted on an Oracle VM instance and containerized with Docker. CI/CD pipeline is created through
Github Actions to allow for automated testing and deployment.
<br>
<br>
<a href="https://github.com/ayesha133/personal-website">Github</a>
<br>
<br>
<span class="badge bg-secondary">Python</span>
<span class="badge bg-secondary">Flask</span>
<span class="badge bg-secondary">HTML & CSS</span>
<span class="badge bg-secondary">Github Actions</span>
<span class="badge bg-secondary">Docker</span>
<span class="badge bg-secondary">Oracle VM Instance </span>
<span class="badge bg-secondary">CI/CD</span>
<span class="badge bg-secondary">NginX</span>
</div>
</div>
</div>
<br>
<div class="accordion-item">
<h2 class="accordion-header" id="panelsStayOpen-headingFive">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
data-bs-target="#panelsStayOpen-collapseFive" aria-expanded="false"
aria-controls="panelsStayOpen-collapseFive">
<h5>Hypertension Guide </h5>
<h5 style="margin-left: 36em;" id="projectYear">2020</h5>
</button>
</h2>
<div id="panelsStayOpen-collapseFive" class="accordion-collapse collapse"
aria-labelledby="panelsStayOpen-headingFive">
<div class="accordion-body">
Led a team to build a website in React that serves as a guide for individuals with Hypertension.
Built a chatbot using React to create a Hypertension symptom quiz that interacts with the user by asking a
series of questions
regarding Hypertension symptoms. This project was created at DeltaHacks 7.
<br>
<br>
<a href="https://github.com/ayesha133/heart-stroke">Github</a>
<a href="https://devpost.com/software/hypertension-guide">Devpost</a>
<br>
<br>
<span class="badge bg-secondary">JavaScript</span>
<span class="badge bg-secondary">React</span>
<span class="badge bg-secondary">HTML & CSS</span>
</div>
</div>
</div>
<br>
</div>
</body>
|
html
|
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME>
*
*/
#include "sync_db.h"
#include "../../shared/db/db_schemes.h"
#include <smf/cluster/generator.h>
#include <cyng/table/meta.hpp>
#include <cyng/io/serializer.h>
#include <cyng/tuple_cast.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/uuid/nil_generator.hpp>
namespace node
{
void create_cache(cyng::logging::log_ptr logger, cyng::store::db& db)
{
CYNG_LOG_TRACE(logger, "create cache tables");
if (!create_table(db, "TDevice")) {
CYNG_LOG_FATAL(logger, "cannot create table TDevice");
}
//
// Has more columns than original TGateway definition
//
if (!db.create_table(cyng::table::make_meta_table<1, 16>("TGateway", { "pk" // primary key
, "serverId" // (1) Server-ID (i.e. 0500153B02517E)
, "manufacturer" // (2) manufacturer (i.e. EMH)
, "made" // (4) production date
, "factoryNr" // (6) fabrik nummer (i.e. 06441734)
, "ifService" // (7) MAC of service interface
, "ifData" // (8) MAC od data interface
, "pwdDef" // (9) Default PW
, "pwdRoot" // (10) root PW
, "mbus" // (11) W-Mbus ID (i.e. A815408943050131)
, "userName" // (12)
, "userPwd" // (13)
// since here columns specific for dash/s and not part of the original table scheme
, "name" // IP-T/device name
, "descr" // IP-T/device description
, "model" // (3) Typbezeichnung (i.e. Variomuc ETHERNET)
, "vFirmware" // (5) firmware version (i.e. 11600000)
, "online" // (14)
},
{ cyng::TC_UUID // pk
, cyng::TC_STRING // server id
, cyng::TC_STRING // manufacturer
, cyng::TC_TIME_POINT // production data
, cyng::TC_STRING // Fabriknummer/serial number (i.e. 06441734)
, cyng::TC_MAC48 // MAC of service interface
, cyng::TC_MAC48 // MAC od data interface
, cyng::TC_STRING // Default PW
, cyng::TC_STRING // root PW
, cyng::TC_STRING // W-Mbus ID (i.e. A815408943050131)
, cyng::TC_STRING // operator
, cyng::TC_STRING // operator
// --- dynamic part:
, cyng::TC_STRING // IP-T/device name
, cyng::TC_STRING // model
, cyng::TC_STRING // vFirmware
, cyng::TC_INT32 // on/offline state
},
{ 36 // pk
, 23 // server id
, 64 // manufacturer
, 0 // production date
, 8 // serial
, 18 // MAC
, 18 // MAC
, 32 // PW
, 32 // PW
, 16 // M-Bus
, 32 // PW
, 32 // PW
, 128 // IP-T/device name
, 64 // model
, 64 // vFirmware
, 0 // online/offline state
})))
{
CYNG_LOG_FATAL(logger, "cannot create table TGateway");
}
// https://www.thethingsnetwork.org/docs/lorawan/address-space.html#devices
// DevEUI - 64 bit end-device identifier, EUI-64 (unique)
// DevAddr - 32 bit device address (non-unique)
if (!create_table(db, "TLoRaDevice"))
{
CYNG_LOG_FATAL(logger, "cannot create table TLoRaDevice");
}
if (!db.create_table(cyng::table::make_meta_table<1, 13>("TMeter", { "pk"
, "ident" // ident nummer (i.e. 1EMH0006441734, 01-e61e-13090016-3c-07)
, "meter" // meter number (i.e. 16000913) 4 bytes
, "code" // metering code - changed at 2019-01-31
, "maker" // manufacturer
, "tom" // time of manufacture
, "vFirmware" // firmwareversion (i.e. 11600000)
, "vParam" // parametrierversion (i.e. 16A098828.pse)
, "factoryNr" // fabrik nummer (i.e. 06441734)
, "item" // ArtikeltypBezeichnung = "NXT4-S20EW-6N00-4000-5020-E50/Q"
, "mClass" // Metrological Class: A, B, C, Q3/Q1, ...
, "gw" // optional gateway pk
// -- additional columns
, "serverId" // optional gateway server ID
, "online" // gateway online state (1,2,3)
},
{ cyng::TC_UUID
, cyng::TC_STRING // ident
, cyng::TC_STRING // meter
, cyng::TC_STRING // code
, cyng::TC_STRING // maker
, cyng::TC_TIME_POINT // tom
, cyng::TC_STRING // vFirmware
, cyng::TC_STRING // vParam
, cyng::TC_STRING // factoryNr
, cyng::TC_STRING // item
, cyng::TC_STRING // mClass
, cyng::TC_UUID // gw
, cyng::TC_STRING // serverID
, cyng::TC_INT32 // on/offline state
},
{ 36
, 24 // ident
, 8 // meter
, 33 // code - country[2], ident[11], number[22]
, 64 // maker
, 0 // tom
, 64 // vFirmware
, 64 // vParam
, 32 // factoryNr
, 128 // item
, 8 // mClass
, 36 // gw
, 23 // serverId
, 0 // on/offline state
})))
{
CYNG_LOG_FATAL(logger, "cannot create table TMeter");
}
if (!create_table(db, "_Session"))
{
CYNG_LOG_FATAL(logger, "cannot create table _Session");
}
if (!create_table(db, "_Target"))
{
CYNG_LOG_FATAL(logger, "cannot create table _Target");
}
if (!create_table(db, "_Connection"))
{
CYNG_LOG_FATAL(logger, "cannot create table _Connection");
}
if (!create_table(db, "_Cluster"))
{
CYNG_LOG_FATAL(logger, "cannot create table _Cluster");
}
if (!create_table(db, "_Config"))
{
CYNG_LOG_FATAL(logger, "cannot create table _Config");
}
else
{
//
// set initial value
//
//db.insert("_Config", cyng::table::key_generator("cpu:load"), cyng::table::data_generator(0.0), 0, bus_->vm_.tag());
}
if (!create_table(db, "_SysMsg"))
{
CYNG_LOG_FATAL(logger, "cannot create table _SysMsg");
}
if (!create_table(db, "_TimeSeries"))
{
CYNG_LOG_FATAL(logger, "cannot create table _TimeSeries");
}
if (!create_table(db, "_CSV"))
{
CYNG_LOG_FATAL(logger, "cannot create table _CSV");
}
if (!create_table(db, "_LoRaUplink"))
{
CYNG_LOG_FATAL(logger, "cannot create table _LoRaUplink");
}
//
// all tables created
//
CYNG_LOG_INFO(logger, db.size() << " tables created");
}
void clear_cache(cyng::store::db& db, boost::uuids::uuid tag)
{
db.clear("TDevice", tag);
db.clear("TGateway", tag);
db.clear("TMeter", tag);
db.clear("_Session", tag);
db.clear("_Target", tag);
db.clear("_Connection", tag);
db.clear("_Cluster", tag);
db.clear("_Config", tag);
db.insert("_Config", cyng::table::key_generator("cpu:load"), cyng::table::data_generator(0.0), 0, tag);
//cache_.clear("_SysMsg", bus_->vm_.tag());
}
void res_subscribe(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, cyng::table::data_type data // [2] record
, std::uint64_t gen // [3] generation
, boost::uuids::uuid origin // [4] origin session id
, std::size_t tsk)
{
//
// Boost gateway records with additional data from TDevice and _Session table
//
if (boost::algorithm::equals(table, "TGateway"))
{
//
// Additional values for TGateway
//
db.access([&](const cyng::store::table* tbl_dev, const cyng::store::table* tbl_ses) {
//
// Gateway and Device table share the same table key
// look for a session of this device
//
auto dev_rec = tbl_dev->lookup(key);
auto ses_rec = tbl_ses->find_first(cyng::param_t("device", key.at(0)));
//
// set device name
// set model
// set firmware
// set online state
//
if (!dev_rec.empty())
{
data.push_back(dev_rec["name"]);
data.push_back(dev_rec["descr"]);
data.push_back(dev_rec["id"]);
data.push_back(dev_rec["vFirmware"]);
if (ses_rec.empty()) {
data.push_back(cyng::make_object(0));
}
else {
const auto peer = cyng::value_cast(ses_rec["rtag"], boost::uuids::nil_uuid());
data.push_back(cyng::make_object(peer.is_nil() ? 1 : 2));
}
}
else
{
CYNG_LOG_WARNING(logger, "res.subscribe - gateway"
<< cyng::io::to_str(key)
<< " has no associated device");
}
} , cyng::store::read_access("TDevice")
, cyng::store::read_access("_Session"));
}
//
// Boost meter records with additional data from TGateway
//
else if (boost::algorithm::equals(table, "TMeter"))
{
//
// Additional values for TMeter
//
db.access([&](const cyng::store::table* tbl_gw) {
//
// TMeter contains an optional reference to TGateway table
//
auto key = cyng::table::key_generator(data.at(10));
auto dev_gw = tbl_gw->lookup(key);
//
// set serverId and online state
//
if (!dev_gw.empty())
{
data.push_back(dev_gw["serverId"]);
data.push_back(dev_gw["online"]);
}
else
{
data.push_back(cyng::make_object("05000000000000"));
data.push_back(cyng::make_object(-1));
CYNG_LOG_WARNING(logger, "res.subscribe - meter"
<< cyng::io::to_str(key)
<< " has no associated gateway");
}
}, cyng::store::read_access("TGateway"));
}
//
// insert new record
//
if (!db.insert(table // table name
, key // table key
, data // table data
, gen // generation
, origin))
{
CYNG_LOG_WARNING(logger, "res.subscribe failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
else
{
if (boost::algorithm::equals(table, "_Session"))
{
//
// mark gateways as online
//
db.access([&](cyng::store::table* tbl_gw, cyng::store::table* tbl_meter, const cyng::store::table* tbl_ses) {
//
// [*Session,[2ce46726-6bca-44b6-84ed-0efccb67774f],[00000000-0000-0000-0000-000000000000,2018-03-12 17:56:27.10338240,f51f2ae7,data-store,eaec7649-80d5-4b71-8450-3ee2c7ef4917,94aa40f9-70e8-4c13-987e-3ed542ecf7ab,null,session],1]
// Gateway and Device table share the same table key
//
auto rec = tbl_ses->lookup(key);
if (rec.empty()) {
// set state: offline
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", 0), origin);
}
else {
//
// If rtag is not nil then this session has an open connection
//
auto const rtag = cyng::value_cast(rec["rtag"], boost::uuids::nil_uuid());
auto const state = rtag.is_nil() ? 1 : 2;
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", state), origin);
//
// update TMeter
// Lookup if TMeter has a gateway with this key
// This method is inherently slow.
// ToDo: optimize
//
std::map<cyng::table::key_type, int> result;
auto const gw_tag = cyng::value_cast(rec["device"], boost::uuids::nil_uuid());
tbl_meter->loop([&](cyng::table::record const& rec) -> bool {
auto const tag = cyng::value_cast(rec["gw"], boost::uuids::nil_uuid());
if (tag == gw_tag) {
//
// The gateway of this meter is online/connected
//
result.emplace(rec.key(), state);
}
return true; // continue
});
//
// Update all found meters
//
for (auto const& item : result) {
tbl_meter->modify(item.first, cyng::param_factory("online", item.second), origin);
}
}
} , cyng::store::write_access("TGateway")
, cyng::store::write_access("TMeter")
, cyng::store::read_access("_Session"));
}
}
}
db_sync::db_sync(cyng::logging::log_ptr logger, cyng::store::db& db)
: logger_(logger)
, db_(db)
{}
void db_sync::register_this(cyng::controller& vm)
{
vm.register_function("db.res.insert", 4, std::bind(&db_sync::db_res_insert, this, std::placeholders::_1));
vm.register_function("db.res.remove", 2, std::bind(&db_sync::db_res_remove, this, std::placeholders::_1));
vm.register_function("db.res.modify.by.attr", 3, std::bind(&db_sync::db_res_modify_by_attr, this, std::placeholders::_1));
vm.register_function("db.res.modify.by.param", 3, std::bind(&db_sync::db_res_modify_by_param, this, std::placeholders::_1));
vm.register_function("db.req.insert", 4, std::bind(&db_sync::db_req_insert, this, std::placeholders::_1));
vm.register_function("db.req.remove", 3, std::bind(&db_sync::db_req_remove, this, std::placeholders::_1));
vm.register_function("db.req.modify.by.param", 5, std::bind(&db_sync::db_req_modify_by_param, this, std::placeholders::_1));
}
void db_sync::db_res_insert(cyng::context& ctx)
{
const cyng::vector_t frame = ctx.get_frame();
//
// [TDevice,[32f1a373-83c9-4f24-8fac-b13103bc7466],[00000006,2018-03-11 18:35:33.61302590,true,,,comment #10,1010000,secret,device-10000],0]
//
// * table name
// * record key
// * record data
// * generation
//
CYNG_LOG_TRACE(logger_, "db.res.insert - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
cyng::table::data_type, // [2] record
std::uint64_t // [3] generation
>(frame);
//
// assemble a record
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
std::reverse(std::get<2>(tpl).begin(), std::get<2>(tpl).end());
db_insert(ctx
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::get<2>(tpl) // [2] record
, std::get<3>(tpl) // [3] generation
, ctx.tag()); // [4] origin
}
void db_sync::db_req_insert(cyng::context& ctx)
{
const cyng::vector_t frame = ctx.get_frame();
//
// [*Session,[2ce46726-6bca-44b6-84ed-0efccb67774f],[00000000-0000-0000-0000-000000000000,2018-03-12 17:56:27.10338240,f51f2ae7,data-store,eaec7649-80d5-4b71-8450-3ee2c7ef4917,94aa40f9-70e8-4c13-987e-3ed542ecf7ab,null,session],1]
//
// * table name
// * record key
// * record data
// * generation
//
CYNG_LOG_TRACE(logger_, "db.req.insert - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
cyng::table::data_type, // [2] record
std::uint64_t, // [3] generation
boost::uuids::uuid // [4] source
>(frame);
//
// assemble a record
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
std::reverse(std::get<2>(tpl).begin(), std::get<2>(tpl).end());
db_insert(ctx
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::get<2>(tpl) // [2] record
, std::get<3>(tpl) // [3] generation
, std::get<4>(tpl)); // [4] origin
}
void db_sync::db_req_remove(cyng::context& ctx)
{
const cyng::vector_t frame = ctx.get_frame();
//
// [*Session,[e72bc048-cb37-4a86-b156-d07f22608476]]
//
// * table name
// * record key
// * source
//
CYNG_LOG_TRACE(logger_, "db.req.remove - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
boost::uuids::uuid // [2] source
>(frame);
//
// reordering table key
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
node::db_req_remove(logger_
, db_
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::get<2>(tpl)); // [2] source
}
void db_sync::db_res_remove(cyng::context& ctx)
{
const cyng::vector_t frame = ctx.get_frame();
//
// [TDevice,[def8e1ef-4a67-49ff-84a9-fda31509dd8e]]
//
// * table name
// * record key
//
CYNG_LOG_TRACE(logger_, "db.res.remove - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type // [1] table key
>(frame);
//
// reordering table key
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
node::db_res_remove(logger_
, db_
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, ctx.tag()); // [2] source
}
void db_sync::db_res_modify_by_attr(cyng::context& ctx)
{
// [TDevice,[0950f361-7800-4d80-b3bc-c6689f159439],(1:secret)]
//
// * table name
// * record key
// * attr [column,value]
//
const cyng::vector_t frame = ctx.get_frame();
CYNG_LOG_TRACE(logger_, "db.res.modify.by.attr - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
cyng::attr_t // [2] attribute
>(frame);
//
// reordering table key
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
node::db_res_modify_by_attr(logger_
, db_
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::move(std::get<2>(tpl)) // [2] attribute
, ctx.tag()); // [3] source
}
void db_sync::db_res_modify_by_param(cyng::context& ctx)
{
//
//
// * table name
// * record key
// * param [column,value]
//
const cyng::vector_t frame = ctx.get_frame();
CYNG_LOG_TRACE(logger_, "db.res.modify.by.param - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
cyng::param_t // [2] parameter
>(frame);
node::db_res_modify_by_param(logger_
, db_
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::move(std::get<2>(tpl)) // [2] parameter
, ctx.tag()); // [3] source
}
void db_sync::db_req_modify_by_param(cyng::context& ctx)
{
//
// [*Session,[35d1d76d-56c3-4df7-b1ff-b7ad374d2e8f],("rx":33344),327,35d1d76d-56c3-4df7-b1ff-b7ad374d2e8f]
// [*Cluster,[1e4527b3-6479-4b2c-854b-e4793f40d864],("ping":00:00:0.003736),4,1e4527b3-6479-4b2c-854b-e4793f40d864]
//
// * table name
// * record key
// * param [column,value]
// * generation
// * source
//
const cyng::vector_t frame = ctx.get_frame();
CYNG_LOG_TRACE(logger_, "db.req.modify.by.param - " << cyng::io::to_str(frame));
auto tpl = cyng::tuple_cast<
std::string, // [0] table name
cyng::table::key_type, // [1] table key
cyng::param_t, // [2] parameter
std::uint64_t, // [3] generation
boost::uuids::uuid // [4] source
>(frame);
//
// reordering table key
//
std::reverse(std::get<1>(tpl).begin(), std::get<1>(tpl).end());
node::db_req_modify_by_param(logger_
, db_
, std::get<0>(tpl) // [0] table name
, std::get<1>(tpl) // [1] table key
, std::move(std::get<2>(tpl)) // [2] parameter
, std::get<3>(tpl) // [3] generation
, std::get<4>(tpl)); // [4] source
}
void db_sync::db_insert(cyng::context& ctx
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, cyng::table::data_type data // [2] record
, std::uint64_t gen
, boost::uuids::uuid origin)
{
if (boost::algorithm::equals(table, "TGateway"))
{
db_.access([&](cyng::store::table* tbl_gw, const cyng::store::table* tbl_dev, const cyng::store::table* tbl_ses) {
//
// search session with this device/GW tag
//
auto dev_rec = tbl_dev->lookup(key);
//
// set device name
// set model
// set vFirmware
// set online state
//
if (!dev_rec.empty())
{
data.push_back(dev_rec["name"]);
data.push_back(dev_rec["descr"]);
data.push_back(dev_rec["id"]);
data.push_back(dev_rec["vFirmware"]);
//
// get online state
//
auto ses_rec = tbl_ses->find_first(cyng::param_t("device", key.at(0)));
if (ses_rec.empty()) {
data.push_back(cyng::make_object(0));
}
else {
const auto rtag = cyng::value_cast(ses_rec["rtag"], boost::uuids::nil_uuid());
data.push_back(cyng::make_object(rtag.is_nil() ? 1 : 2));
}
if (!tbl_gw->insert(key, data, gen, origin))
{
CYNG_LOG_WARNING(logger_, ctx.get_name()
<< " failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key)
<< " => "
<< cyng::io::to_str(data));
}
}
else {
std::stringstream ss;
ss
<< "gateway "
<< cyng::io::to_str(key)
<< " has no associated device"
;
CYNG_LOG_WARNING(logger_, ss.str());
ctx.queue(bus_insert_msg(cyng::logging::severity::LEVEL_WARNING, ss.str()));
}
} , cyng::store::write_access("TGateway")
, cyng::store::read_access("TDevice")
, cyng::store::read_access("_Session"));
}
else if (boost::algorithm::equals(table, "TMeter"))
{
//
// Additional values for TMeter
//
db_.access([&](cyng::store::table* tbl_meter, cyng::store::table const* tbl_gw) {
//
// TMeter contains an optional reference to TGateway table
//
auto const key_gw = cyng::table::key_generator(data.at(10));
auto const dev_gw = tbl_gw->lookup(key_gw);
//
// set serverId
//
if (!dev_gw.empty())
{
data.push_back(dev_gw["serverId"]);
data.push_back(dev_gw["online"]);
}
else
{
data.push_back(cyng::make_object("00000000000000"));
data.push_back(cyng::make_object(-1));
CYNG_LOG_WARNING(logger_, "res.subscribe - meter"
<< cyng::io::to_str(key)
<< " has no associated gateway");
}
if (!tbl_meter->insert(key, data, gen, origin))
{
CYNG_LOG_WARNING(logger_, ctx.get_name()
<< " failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key)
<< " => "
<< cyng::io::to_str(data));
}
} , cyng::store::write_access("TMeter")
, cyng::store::read_access("TGateway"));
}
else if (!db_.insert(table
, key
, data
, gen
, origin))
{
CYNG_LOG_WARNING(logger_, ctx.get_name()
<< " failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key)
<< " => "
<< cyng::io::to_str(data));
//
// dump record data
//
std::size_t idx{ 0 };
for (auto const& obj : data) {
CYNG_LOG_TRACE(logger_, "data ["
<< idx++
<< "] "
<< obj.get_class().type_name()
<< ": "
<< cyng::io::to_str(obj))
;
}
}
else
{
if (boost::algorithm::equals(table, "_Session"))
{
db_.access([&](cyng::store::table* tbl_gw, cyng::store::table* tbl_meter, const cyng::store::table* tbl_ses) {
//
// [*Session,[2ce46726-6bca-44b6-84ed-0efccb67774f],[00000000-0000-0000-0000-000000000000,2018-03-12 17:56:27.10338240,f51f2ae7,data-store,eaec7649-80d5-4b71-8450-3ee2c7ef4917,94aa40f9-70e8-4c13-987e-3ed542ecf7ab,null,session],1]
// Gateway and Device table share the same table key
//
auto rec = tbl_ses->lookup(key);
if (rec.empty()) {
// set online state
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", 0), origin);
}
else {
auto const rtag = cyng::value_cast(rec["rtag"], boost::uuids::nil_uuid());
auto const state = rtag.is_nil() ? 1 : 2;
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", state), origin);
//
// update TMeter
// Lookup if TMeter has a gateway with this key
// This method is inherently slow.
// ToDo: optimize
//
std::map<cyng::table::key_type, int> result;
auto const gw_tag = cyng::value_cast(rec["device"], boost::uuids::nil_uuid());
tbl_meter->loop([&](cyng::table::record const& rec) -> bool {
auto const tag = cyng::value_cast(rec["gw"], boost::uuids::nil_uuid());
if (tag == gw_tag) {
//
// The gateway of this meter is online/connected
//
result.emplace(rec.key(), state);
}
return true; // continue
});
//
// Update all found meters
//
for (auto const& item : result) {
tbl_meter->modify(item.first, cyng::param_factory("online", item.second), origin);
}
}
} , cyng::store::write_access("TGateway")
, cyng::store::write_access("TMeter")
, cyng::store::read_access("_Session"));
}
}
}
void db_req_remove(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, boost::uuids::uuid origin)
{
//
// we have to query session data before session will be removed
//
if (boost::algorithm::equals(table, "_Session"))
{
db.access([&](cyng::store::table* tbl_gw, cyng::store::table* tbl_meter, const cyng::store::table* tbl_ses) {
//
// Gateway and Device table share the same table key
//
auto rec = tbl_ses->lookup(key);
if (!rec.empty())
{
// set online state
auto const gw_tag = cyng::value_cast(rec["device"], boost::uuids::nil_uuid());
tbl_gw->modify(cyng::table::key_generator(gw_tag), cyng::param_factory("online", 0), origin);
//
// find meters of this gateway and set offline
//
std::set<cyng::table::key_type> result;
tbl_meter->loop([&](cyng::table::record const& rec) -> bool {
auto const tag = cyng::value_cast(rec["gw"], boost::uuids::nil_uuid());
if (tag == gw_tag) {
//
// The gateway of this meter is offline
//
result.emplace(rec.key());
}
return true; // continue
});
//
// Update all found meters
//
for (auto const& item : result) {
tbl_meter->modify(item, cyng::param_factory("online", 0), origin);
}
}
} , cyng::store::write_access("TGateway")
, cyng::store::write_access("TMeter")
, cyng::store::read_access("_Session"));
}
//
// remove record
//
if (!db.erase(table, key, origin))
{
CYNG_LOG_WARNING(logger, "db.req.remove failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
}
void db_res_remove(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, boost::uuids::uuid origin)
{
if (!db.erase(table, key, origin))
{
CYNG_LOG_WARNING(logger, "db.res.remove failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
}
void db_res_modify_by_attr(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, cyng::attr_t attr // [2] attribute
, boost::uuids::uuid origin)
{
//
// distribute some changes to other tables too
//
if (boost::algorithm::equals(table, "TDevice")) {
switch (attr.first) {
case 0:
// change name
db.modify("TGateway", key, cyng::param_factory("name", attr.second), origin);
break;
case 3:
// change description
db.modify("TGateway", key, cyng::param_factory("descr", attr.second), origin);
break;
default:
break;
}
}
else if (boost::algorithm::equals(table, "TGateway")) {
//
// distribute changes from TGateway to TMeter
//
switch (attr.first) {
case 0:
// modified serverID
db.access([&](cyng::store::table* tbl_meter) {
auto const gw_tag = cyng::value_cast(key.at(0), boost::uuids::nil_uuid());
std::set<cyng::table::key_type> result;
tbl_meter->loop([&](cyng::table::record const& rec) -> bool {
auto const tag = cyng::value_cast(rec["gw"], boost::uuids::nil_uuid());
if (tag == gw_tag) {
result.insert(rec.key());
}
return true; // continue
});
for (auto const& item : result) {
tbl_meter->modify(item, cyng::param_factory("serverId", attr.second), origin);
}
}, cyng::store::write_access("TMeter"));
break;
default:
break;
}
}
//
// update cache
//
if (!db.modify(table, key, std::move(attr), origin))
{
CYNG_LOG_WARNING(logger, "db.res.modify.by.attr failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
}
void db_res_modify_by_param(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, cyng::param_t param // [2] parameter
, boost::uuids::uuid origin)
{
if (!db.modify(table, key, param, origin))
{
CYNG_LOG_WARNING(logger, "db.res.modify.by.param failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
}
void db_req_modify_by_param(cyng::logging::log_ptr logger
, cyng::store::db& db
, std::string const& table // [0] table name
, cyng::table::key_type key // [1] table key
, cyng::param_t param // [2] parameter
, std::uint64_t gen // [3] generation
, boost::uuids::uuid origin)
{
if (boost::algorithm::equals(table, "_Session")) {
if (boost::algorithm::equals(param.first, "rtag")) {
const auto rtag = cyng::value_cast(param.second, boost::uuids::nil_uuid());
//
// mark gateways as online
//
db.access([&](cyng::store::table* tbl_gw, const cyng::store::table* tbl_ses) {
//
// [*Session,[2ce46726-6bca-44b6-84ed-0efccb67774f],[00000000-0000-0000-0000-000000000000,2018-03-12 17:56:27.10338240,f51f2ae7,data-store,eaec7649-80d5-4b71-8450-3ee2c7ef4917,94aa40f9-70e8-4c13-987e-3ed542ecf7ab,null,session],1]
// Gateway and Device table share the same table key
//
auto rec = tbl_ses->lookup(key);
if (rec.empty()) {
// set online state
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", 0), origin);
}
else {
tbl_gw->modify(cyng::table::key_generator(rec["device"]), cyng::param_factory("online", rtag.is_nil() ? 1 : 2), origin);
}
} , cyng::store::write_access("TGateway")
, cyng::store::read_access("_Session"));
}
}
if (!db.modify(table, key, param, origin))
{
CYNG_LOG_WARNING(logger, "db.req.modify.by.param failed "
<< table // table name
<< " - "
<< cyng::io::to_str(key));
}
}
}
|
cpp
|
The German league hopes to get the go-ahead from Angela Merkel’s government and heads of the 16 states Wednesday to resume behind closed doors and amid strict hygiene measures.
The Bundesliga ground to a halt on March 13 to limit spreading the coronavirus, but the German Football League (DFL) has detailed plans to restart the top two leagues from May 15.
German Chancellor Merkel and the state leaders will hold a video conference to discuss easing restrictions with restarting the Bundesliga on the agenda.
A green light would make the Bundesliga the first top European league to resume.
Here is a look at the key issues ahead of what is a massive few hours for sport in Europe:
Magazine Kicker claims 13 of Germany’s top 36 clubs are on the verge of insolvency.
The clubs must finish the season by June 30 to claim an instalment of television money worth around 300 million euros ($325 million).
Germany’s richest clubs - Bayern Munich, Borussia Dortmund, Bayer Leverkusen and RB Leipzig - have pledged 20 million euros ($22 million) to help their rivals facing financial difficulty.
Werder Bremen and Schalke 04 are reportedly in danger of going under unless the league resumes.
Bayern, who are chasing an eighth straight title, were four points clear at the top when the league was suspended.
Germany’s Health Minister Jens Spahn and Sports Minister Horst Seehofer back the league’s restart plan.
So do Bavaria’s premier minister Markus Soeder and Armin Laschet in North Rhine-Westfalia, the heads of Germany’s key football hotbeds.
However, the league will be under scrutiny if it resumes.
“The concept makes sense and could serve as a model for other professional sports, but we have to see how it goes,” Spahn told radio station Deutschlandfunk on Tuesday.
There is plenty of criticism of the restart attempt.
“Why are the playgrounds closed, but millionaires are allowed to play football?” questioned Anja Stahmann, chairwoman of German’s state ministers for sport.
The league plans to test players and staff at the 36 clubs in the top two leagues before and after matches.
That means around 20,000 tests to complete the nine remaining rounds of matches.
In last week’s first batch, there were 10 positive cases from 1,724 tests, 0.58 percent, which the league says helps provide “protection” for those involved.
Three cases are known to have been in Cologne and two more reportedly in Moenchengladbach.
Anyone testing positive for the coronavirus will be quarantined from the rest of the club for 14 days, but the local authority will decide if the team must also be isolated.
The players must follow strict guidelines and each club has a hygiene officer.
Social distancing must be observed, pre-match handshakes and team photos are banned and there must be empty seats between players on the substitutes bench.
Stadium doors will stay open to avoid touching handles and water bottles personalised.
Players will have their temperatures taken before training and are expected to stay home, train on club grounds or be travelling to and from matches.
The players behaviour is already under scrutiny.
Hertha Berlin striker Salomon Kalou was suspended by his club Monday after posting a video greeting team-mates with handshakes, an action deemed “unacceptable behaviour” by the league.
Some players are sceptical about the league resuming.
“There are many more important things than football at the moment,” Bayern defender Niklas Suele told AFP subsidiary SID.
With large public events banned in Germany, games must be played behind locked doors without fans.
Only 98 people will be allowed in the pitch area, including 22 players, 18 replacements, five referees, four ball boys and 20 backroom staff members.
Some supporter groups have spoken out against the league restarting.
Senior politicians want matches screened on free-to-air channels to discourage fans gathering to watch pay-per-view broadcasters Sky and DAZN, who hold the broadcasting rights.
Sky, which broadcasts the majority of matches, has not ruled out reselling the rights to public TV, but will not discuss the issue “until the politicians have made their decision public”.
|
english
|
<reponame>apascualm/expressjs-authorization<gh_stars>1-10
{
"name": "expressjs-authorization",
"version": "1.0.0",
"description": "Authorization middleware based in permissions by modules, with possibility of group in roles.",
"main": "./src/authorization.js",
"scripts": {},
"keywords": [
"express",
"mongodb",
"mongoose",
"plugin",
"middleware",
"authorization",
"permissions",
"roles"
],
"author": "<NAME> <<EMAIL>>",
"repository": {
"type": "git",
"url": "git://git@github.<EMAIL>:apascualm/expressjs-authorization.git"
},
"bugs": {
"url": "https://github.com/apascualm/expressjs-authorization/issues"
},
"license": "Apache 2.0",
"dependencies": {
"express": "^4.17.1",
"mongoose": "5.8.x",
"mongoose-autopopulate": "^0.11.0",
"mongoose-unique-array": "^0.3.4"
}
}
|
json
|
import splitText from '../../lib/index';
splitText(document.querySelector('#quote-basic')).then(revert => {
const btn = document.querySelector('#quote-basic-btn');
btn.removeAttribute('disabled');
btn.addEventListener('click', revert);
});
splitText(document.querySelector('#quote-markup'), {
markup:
'<div class="stagger-line"><div class="stagger-line__inner">{slot}</div></div>',
}).then(revert => {
const btn = document.querySelector('#quote-markup-btn');
btn.removeAttribute('disabled');
btn.addEventListener('click', revert);
});
|
javascript
|
{
"session": {
"new": true,
"sessionId": "SessionId.28e51f5f-b8ae-4066-b1b4-2f5549ff8f07",
"application": {
"applicationId": "amzn1.ask.skill.8a8757bd-8380-449b-947c-612a42e069e3"
},
"attributes": {},
"user": {
"userId": "<KEY>"
}
},
"request": {
"type": "LaunchRequest",
"requestId": "EdwRequestId.7327b850-8a23-46f1-94a0-fedac457df70",
"locale": "en-US",
"timestamp": "2017-09-06T12:41:25Z"
},
"context": {
"AudioPlayer": {
"playerActivity": "IDLE"
},
"System": {
"application": {
"applicationId": "amzn1.ask.skill.8a8757bd-8380-449b-947c-612a42e069e3"
},
"user": {
"userId": "amzn1.ask.account.<KEY>"
},
"device": {
"supportedInterfaces": {}
}
}
},
"version": "1.0"
}
|
json
|
/*
* Copyright 2019 The Getty Project
*
* The Getty Project 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 com.gettyio.expansion.handler.timeout;
import com.gettyio.core.channel.SocketChannel;
import com.gettyio.core.constant.IdleState;
import com.gettyio.core.logging.InternalLogger;
import com.gettyio.core.logging.InternalLoggerFactory;
import com.gettyio.core.pipeline.in.ChannelInboundHandlerAdapter;
import com.gettyio.core.util.LinkedBlockQueue;
/**
* HeartBeatTimeOutHandler.java
*
* @description:心跳检测
* @author:gogym
* @date:2020/4/9
* @copyright: Copyright by gettyio.com
*/
public class HeartBeatTimeOutHandler extends ChannelInboundHandlerAdapter {
private static final InternalLogger logger = InternalLoggerFactory.getInstance(HeartBeatTimeOutHandler.class);
private int loss_connect_time = 0;
@Override
public void userEventTriggered(SocketChannel socketChannel, IdleState evt) throws Exception {
if (evt == IdleState.READER_IDLE) {
loss_connect_time++;
if (loss_connect_time > 2) {
// 超过3次检测没有心跳就关闭这个连接
logger.info("[closed inactive channel:" + socketChannel.getRemoteAddress().getHostString() + "]");
socketChannel.close();
}
}
super.userEventTriggered(socketChannel, evt);
}
@Override
public void decode(SocketChannel socketChannel, Object obj, LinkedBlockQueue<Object> out) throws Exception {
loss_connect_time = 0;
super.decode(socketChannel, obj, out);
}
}
|
java
|
Former World Cup winning-batter Sachin Tendulkar suggested the Indian team under Rahul Dravid take losses in their stride and ensure that they can come back from it with a positive mind frame.
Under Dravid, India recently lost the Tests and the ODI series against South Africa, a big blemish in his short stint so far. However, the team needs to keep moving forward with an eye on the upcoming T20 and ODI World Cups.
“Of course, everyone has played enough cricket. Rahul has played enough cricket to understand there are gonna be ups and downs along the way. Not to lose hope is the only thing. Keep trying and we will keep moving forward,” Tendulkar told on the show ‘Backstage with Boria’.
The previous time India won an ICC event was back in 2013 under MS Dhoni’s leadership when the Men in Blue defeated hosts, England, to lay claim to the ICC Champions Trophy. Since then, a trophy drought has ensued for the strong favorites.
“In the month of April this year, we’ll complete 11 years of World Cup win. That’s a long wait. Everyone including me would love to see that trophy in BCCI’s cabinet. This is one trophy that all the cricketers play for. It doesn’t get any bigger than that... be it a shorter or longer format. World Cup is something special and that’s what I feel,” Tendulkar added.
Under Virat Kohli, India failed to win an ICC Trophy and it is now the turn of Rohit Sharma to make the difference.
|
english
|
Bollywood actress Kareena Kapoor is celebrating her 42nd birthday today. Nearly two decades ago, the actress started her Bollywood journey with the lead role in the war drama Refugee. In her acting career spanning over two decades, the bonafide Bollywood royalty hogged fame for her roles in films like Chameli, Dev, Jab We Met, Heroine, Udta Punjab, and others.
Today, she is one of the most sought-after actresses in the industry.
With a net worth of hundreds of crores, Bebo leads an opulent lifestyle. Let’s take a look at Kareena’s remuneration and what contributed to her net worth.
According to media reports, Kareena used to charge Rs 7 crores per movie. However, she hiked her fee after the success of Veere Di Wedding and now takes home Rs 10 crore for each film.
Kareena’s net worth today stands around Rs 440 crores. Most of her earnings come from movies, brand endorsements, photoshoots, and other collaborations. She charges Rs 6 crores per endorsement.
The Bollywood star with her family recently moved to a new 4-BHK apartment in Bandra from her previous residence in Fortune Heights. The new home of the actress is worth Rs 55 crore.
Moreover, she has also invested in a house with Saif at her favourite holiday destination, Gstaad, Switzerland, which is said to be priced at Rs 33 crore.
Apart from these, Kareena is fond of luxury cars. The actress in her car collection has Mercedes Benz S-Class worth Rs 1. 40 crore and Lexus LX 470 worth Rs 2. 32 crore. She is also the proud owner of the Audi Q7 and Range Rover Sport SUV which costs around Rs 1 crore.
|
english
|
{
"Ticketek": {
"domain": "ticketek.com.au",
"additional-domains": [
"ticketek.com",
"ticketek.co.nz",
"ticketek.co.uk",
"ticketek.com.sg",
"ticketek.com.ph",
"ticketek.com.my"
],
"contact": {
"facebook": "TicketekAustralia",
"twitter": "Ticketek_AU"
},
"keywords": [
"tickets"
],
"regions": [
"au",
"gb",
"my",
"nz",
"ph",
"sg"
]
}
}
|
json
|
How to Follow Secure Initiative?
How to Self-evaluate your answer?
Answer the following questions in 150 words:
1. Evaluate the role played by the Non-Aligned Movement (NAM) countries, especially India during the Cold war era. Did India remain truly non-aligned?
2. “India has succeeded as a democratic republic because many creeds and languages have united and not divided the country”. How does Indian society show ‘Unity in Diversity’? Has diversity been its strength or a weakness?
3. Developing inclusive and accessible schools will help challenge perceptions about children with disabilities and actualise the zero-rejection policy in schools. Examine.
4. What is the importance of having a ‘strategic partnership’? Explain the significance of having a such partnership with Egypt in the context of wider India-Middle east relations.
5. Tourism is considered to be important for the country’s economy. It is a multi-segment industry which brings in a lot of economic value & associated benefits. Discuss the positive economic effects of tourism.
Answer the following questions in 250 words(15 marks each):
6. How has women’s participation in sports changed over time? Enlist the challenges and limitations that women in sports face and measures taken to empower them.
7. “Globalization has intensified alienation, exploitation, and commodification of human life and nature”. Do you agree? Justify your viewpoint.
8. While the constitutional reasoning that resulted in the institution of Governor may still hold good today, the metamorphosis in Indian politics calls for transformed gubernatorial functioning. Critically analyse.
9. Trans fats are easy to use, inexpensive to produce and last a long time. Regulating the limit of industrially produced trans- fats in food products has been enacted by many countries as they contribute to significant negative health effects. Analyse.
10. Electric vehicles (EVs) must focus on long-term, concerted, unidirectional effort to ensure this sector is self-reliant and a gets the country closer to the eventuality of being a net-zero emissions economy. Discuss.
|
english
|
<reponame>jofreis/it-logger
import { GET_LOGS, SET_LOADING, LOGS_ERROR } from "./types";
export const getLogs = () => async dispatch => {
try{
setLoading();
const res = await fetch("/logs");
const data = await res.json();
dispatch({
type:GET_LOGS,
payload:data
})
}catch(e){
dispatch({
type:LOGS_ERROR,
payload:e.reponse.data
})
}
};
export const setLoading = () => {
return {
type: SET_LOADING
};
};
|
javascript
|
<reponame>YuriyGorvitovskiy/statemach-data<gh_stars>0
package org.statemach.db.graphql;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.statemach.db.sql.postgres.TestDB;
import org.statemach.db.sql.postgres.TestData;
import org.statemach.util.Json;
@EnabledIfEnvironmentVariable(named = "TEST_DATABASE", matches = "POSTGRES")
public class GraphQLHandler_Extract_PostgresTest extends GraphQLHandler_Common_PostgresTest {
@Test
void first() {
runTest("extract.first.gql", "extract.first.expect.json", TestData.SECOND_ROW_1_ID);
}
@Test
void second() {
runTest("extract.second.gql",
"extract.second.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.SECOND_ROW_2_ID,
TestData.SECOND_ROW_3_ID);
}
@Test
void third() {
runTest("extract.third.gql",
"extract.third.expect.json",
TestData.SECOND_ROW_1_ID,
Json.toISO8601(TestData.THIRD_ROW_1_TIME),
Json.toISO8601(TestData.THIRD_ROW_2_TIME));
}
@Test
void version() {
runTest("extract.version.gql", "extract.version.expect.json", TestDB.product, TestDB.version);
}
@Test
void fk_first_second() {
runTest("extract.fk_first_second.gql",
"extract.fk_first_second.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.SECOND_ROW_2_ID);
}
@Test
void fk_first_second_reverse() {
runTest("extract.fk_first_second_reverse.gql",
"extract.fk_first_second_reverse.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.SECOND_ROW_2_ID,
TestData.SECOND_ROW_3_ID);
}
@Test
void fk_first_third() {
runTest("extract.fk_first_third.gql",
"extract.fk_first_third.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.THIRD_ROW_1_TIME);
}
@Test
void fk_first_third_reverse() {
runTest("extract.fk_first_third_reverse.gql",
"extract.fk_first_third_reverse.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.THIRD_ROW_1_TIME,
TestData.THIRD_ROW_2_TIME);
}
@Test
void fk_second_one_fk_second_two() {
runTest("extract.fk_second_one+fk_second_two.gql",
"extract.fk_second_one+fk_second_two.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.SECOND_ROW_2_ID,
TestData.SECOND_ROW_3_ID);
}
@Test
void fk_third_first_fk_third_second() {
runTest("extract.fk_third_first+fk_third_second.gql",
"extract.fk_third_first+fk_third_second.expect.json",
TestData.THIRD_ROW_1_TIME,
TestData.THIRD_ROW_2_TIME);
}
@Test
void fk_first_third_reverse_fk_second_third_reverse() {
runTest("extract.fk_first_third_reverse+fk_second_third_reverse.gql",
"extract.fk_first_third_reverse+fk_second_third_reverse.expect.json",
TestData.THIRD_ROW_1_TIME,
TestData.THIRD_ROW_2_TIME);
}
@Test
void fk_second_one_reverse_fk_second_two_reverse() {
runTest("extract.fk_second_one_reverse-fk_second_two_reverse.gql",
"extract.fk_second_one_reverse-fk_second_two_reverse.expect.json");
}
@Test
void fk_second_first_reverse_fk_third_second_reverse() {
runTest("extract.fk_second_first_reverse-fk_third_second_reverse.gql",
"extract.fk_second_first_reverse-fk_third_second_reverse.expect.json",
TestData.SECOND_ROW_1_ID,
TestData.SECOND_ROW_2_ID);
}
@Test
void fk_second_one_fk_second_two_reverse() {
runTest("extract.fk_second_one-fk_second_two_reverse.gql",
"extract.fk_second_one-fk_second_two_reverse.expect.json");
}
@Test
void fk_second_one_reverse_fk_second_two() {
runTest("extract.fk_second_one_reverse-fk_second_two.gql",
"extract.fk_second_one_reverse-fk_second_two.expect.json");
}
@Test
void fk_first_second_fk_third_second_reverse_fk_first_second_reverse() {
runTest("extract.fk_first_second-fk_third_second_reverse+fk_first_second_reverse.gql",
"extract.fk_first_second-fk_third_second_reverse+fk_first_second_reverse.expect.json");
}
}
|
java
|
export default function sort(arr: number[]) {
let n = arr.length;
while (n !== 0) {
let lastSwap = 0;
for (let i = 0; i < n; i = i + 1) {
if (arr[i] > arr[i + 1]) {
const temp = arr[i];
arr[i] = arr[i + 1];
arr[i + 1] = temp;
lastSwap = i;
}
}
n = lastSwap;
}
}
|
typescript
|
[{"id":212,"nome":"Ferrari JSM 2","tipo":"luxo","descricao":"Descrição Ferrari Enzo","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Ferrari_Enzo.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/ferrari_enzo.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":222,"nome":"Lamborghini Reventon","tipo":"luxo","descricao":"Descrição Lamborghini Reventon","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Lamborghini_Reventon.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/lamborghini _reventon.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":242,"nome":"Shelby Supercars Ultimate","tipo":"luxo","descricao":"Descrição Shelby Supercars Ultimate","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Shelby_Supercars_Ultimate.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/shelby.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":252,"nome":"<NAME>","tipo":"luxo","descricao":"Descrição Pagani Zonda","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Pagani_Zonda.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/pagani_zonda.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":262,"nome":"Koenigsegg CCX","tipo":"luxo","descricao":"Descrição Koenigsegg CCX","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Koenigsegg_CCX.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/koenigsegg.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":272,"nome":"<NAME>","tipo":"luxo","descricao":"Descrição Mercedes SLR McLaren","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Mercedes_McLaren.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/mclaren_slr.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":282,"nome":"Rolls Royce Phantom","tipo":"luxo","descricao":"Descrição Rolls Royce Phantom","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Rolls_Royce_Phantom.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/rolls_royce.mp4","latitude":"-23.564224","longitude":"-46.653156"},{"id":292,"nome":"Lexus LFA - 25","tipo":"luxo","descricao":"Descrição Lexus LFA","urlFoto":"http://www.livroandroid.com.br/livro/carros/luxo/Lexus_LFA.png","urlVideo":"http://www.livroandroid.com.br/livro/carros/luxo/lexus.mp4","latitude":"-23.564224","longitude":"-46.653156"}]
|
json
|
import pytest
from pathlib import Path
from blendtorch import btt
BLENDDIR = Path(__file__).parent/'blender'
class MyEnv(btt.env.OpenAIRemoteEnv):
def __init__(self, background=True, **kwargs):
super().__init__(version='1.0.0')
self.launch(scene=BLENDDIR/'env.blend', script=BLENDDIR /
'env.blend.py', background=background, **kwargs)
# For Blender 2.9 if we pass scene='', the tests below fail since
# _env_post_step() is not called. Its unclear currently why this happens.
def _run_remote_env(background):
env = MyEnv(background=background)
obs = env.reset()
assert obs == 0.
obs, reward, done, info = env.step(0.1)
assert obs == pytest.approx(0.1)
assert reward == 0.
assert not done
assert info['count'] == 2 # 1 is already set by reset()
obs, reward, done, info = env.step(0.6)
assert obs == pytest.approx(0.6)
assert reward == 1.
assert not done
assert info['count'] == 3
for _ in range(8):
obs, reward, done, info = env.step(0.6)
assert done
obs = env.reset()
assert obs == 0.
obs, reward, done, info = env.step(0.1)
assert obs == pytest.approx(0.1)
assert reward == 0.
assert not done
assert info['count'] == 2
env.close()
@pytest.mark.background
def test_remote_env():
_run_remote_env(background=True)
def test_remote_env_ui():
_run_remote_env(background=False)
|
python
|
<filename>public/static/css/pc/customize.css
.customize-content{
margin: 80px auto 60px auto!important;
}
.customize-process-box{
margin-left: -72px;
}
.customize-process-item{
width: 230px;
}
.customize-process-item:not(:last-of-type){
margin-right: 25px;
}
.process-img{
width: 108px;
height: 108px;
}
.process-img:first-child{
margin-left: 54px;
}
.process-img:last-child{
margin-right: 54px;
}
.consult-1-desc{
padding-left: 35px;
}
.consult-2-desc{
padding-left: 67px;
}
.customize-img-box{
padding-left: 10px;
}
.point-icon{
width: 5px;
height: 5px;
font-size: 50px;
background-color: #999;
margin-left: 10px;
}
.consult .point-icon:last-child{
width: 10px;
height: 10px;
}
.consult-1 .point-box:not(:last-of-type){
margin-right: 10px;
}
.consult-1 .point-box:last-child .point-icon:last-child{
width: 10px;
height: 10px
}
.consult-2 .point-box{
margin-left: 30px;
}
.consult-2 .point-box .point-icon:last-child{
margin-right: 10px;
}
.provide-subtitle{
margin: 40px 0;
}
.form-box{
width: 370px;
}
.form-item:first-child input{
width: 123px;
}
input::placeholder,textarea::placeholder{
color: #999;
}
.form-input{
border: 1px solid #8a8a8a;
height: 30px;
line-height: 30px;
padding: 5px 0;
text-indent: 10px;
border-radius: 8px;
}
.textarea-input{
resize: none;
min-height: 80px;
}
.name-input{
border-radius: 8px 0 0 8px;
border-right: 0;
}
.site-input{
border-radius: 0;
}
.day-input{
border-left: 0;
border-radius: 0 8px 8px 0;
}
.submit-btn{
width: 120px;
height: 40px;
line-height: 40px;
border-radius: 20px;
background-color: #e3435a;
color: #fff;
font-size: 18px;
border: none;
outline:none;
opacity: 1;
}
.submit-btn:hover{
opacity: .8;
transition: all .3s;
}
|
css
|
<reponame>focusnt2013/cos3.x<gh_stars>0
package com.focus.util;
import java.io.File;
import java.util.ArrayList;
public class ClassUtilsTest
{
public static void main(String args[])
{
try
{
// Class<?> jobDriver = Class.forName("com.focus.hadoop.mapreduce.JobDriver");
// List<Class<?>> classes = ClassUtils.getAllClassExctends(jobDriver);
// for(Class<?> c : classes)
// {
// System.out.print(c.getSimpleName());
// System.out.print('/t');
// System.out.println(c.getName());
// }
ArrayList<String> buffer = new ArrayList<String>();
ClassUtils.findJars(buffer, "org.apache.zookeeper.proto.SetWatches",
new File("D:/focusnt/cos/lib"), true);
for( String s : buffer )
{
System.out.println(s);
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
|
java
|
His profanity-laced remarks followed a moment of contrition in a New York Times DealBook Summit interview. Musk said repeatedly he was sorry for publishing a tweet on Nov. 15 that agreed with an anti-Jewish post. Musk has faced a torrent of criticism ever since he agreed with a user who falsely claimed Jewish people were stoking hatred against white people. Musk in his post said the user, who referenced the "Great Replacement" conspiracy theory, was speaking "the actual truth."
The Tesla CEO bristled at the idea that he was antisemitic and said that advertisers who left X, formerly known as Twitter, should not think they could blackmail him.
"If somebody's gonna try to blackmail me with advertising, blackmail me with money? Go f**k yourself," he said.
"What I care about is the reality of goodness, not the perception of it. And what I see all over the place is people who care about looking good while doing evil. F**k them," Musk said.
Musk's expletives against advertisers is the "closing chapter" for brands doing business with X, said Lou Paskalis, founder of marketing consultancy AJL Advisory and the former head of global media at Bank of America. "They're not going to forget that," he said.
Customers who did not like him should consider the products his company make based on their quality, Musk said, pointing to electric cars from Tesla and SpaceX rockets. "I will certainly not pander," he said.
Musk added that he himself arguably had done more for the environment, at Tesla, than anyone in the world, based on Tesla's massive sales of electric vehicles.
"It would be fair to say, therefore, as a leader of the company, I've done more for the environment than everyone -- any single human on Earth."
Musk's comments came on the same day that U.S. Senate Majority Leader Chuck Schumer warned that the rise in antisemitism since the start of the Israel-Hamas war has reached a crisis point, saying it threatens the safety of Jews worldwide and the future of Israel. "To us, the Jewish people, the rise in antisemitism is a crisis. A five-alarm fire that must be extinguished," Schumer said in an emotional, 40-minute Senate speech.
Musk's post drew condemnation from the White House for what it called an "abhorrent promotion of antisemitic and racist hate."
The "Great Replacement" theory falsely claims that Jewish people and leftists are engineering the ethnic and cultural replacement of white populations with non-white immigrants that will lead to a "white genocide."
Following the post, major U.S. companies including Walt Disney, Warner Bros Discovery and NBCUniversal parent Comcast suspended their ads on X. A report from liberal watchdog group Media Matters precipitated the advertiser exit, which said it found ads next to posts that supported Nazism. The platform filed a lawsuit last week against Media Matters for defamation.
Musk's comments have put pressure on X overall, including Chief Executive Linda Yaccarino. An executive told Reuters that she would remain at the company.
Musk himself appeared resolved that X could fail financially and blamed advertisers.
"If the company fails because of advertiser boycott, it will fail because of an advertiser boycott. And that will be what bankrupt the company and that's what everybody on earth will know," he said.
In the wake of the condemnation around his post, Musk traveled to Israel and toured the site of Hamas' assault in the country on Oct. 7. On Monday, he spoke with Israeli Prime Minister Benjamin Netanyahu in a live-streamed conversation on X.
Musk on Wednesday said the trip had been planned before his message and was "independent" of the issue.
Musk in Israel said he is against antisemitism and anything that "promotes hate and conflict" and stated that X would not promote hate speech. While there, he received a symbolic dog-tag from the father of an Israeli hostage taken captive by Hamas, which he promised to wear until all the hostages were free. He wore the dog-tag on stage on Wednesday.
"The fact that you came here speaks volumes of your commitment to try to secure a better future," Netanyahu told Musk during the conversation in Israel.
Musk's wide-ranging interview on Wednesday included discussions from freedom of speech to the environment to U.S. presidential politics. Musk said he thought he would not vote to re-elect President Joe Biden but did not say he would vote for his likely challenger, Donald Trump.
|
english
|
<filename>src/scenes/gameover.ts
import 'phaser';
import '../consts/consts';
import { hackManGame } from '../index';
import { UIScene } from './uiscene';
export class GameOverScene extends Phaser.Scene {
private _uiscene: UIScene;
private _gameOverText: Phaser.GameObjects.BitmapText;
get UIScene(): UIScene {
if (!this._uiscene) return (this._uiscene = <UIScene>this.scene.get(Consts.Scenes.UIScene));
else return this._uiscene;
}
constructor() {
super(Consts.Scenes.GameOverScene);
console.log(`GameOverScene::constructor() : ${hackManGame.version}`);
}
init() {
console.log(`GameOverScene::init() : ${hackManGame.version}`);
}
preload() {
console.log(`GameOverScene::preload() : ${hackManGame.version}`);
this._gameOverText = this.UIScene.addBitmapText(innerWidth >> 1, innerHeight >> 1, 'G A M E\nO V E R', 32, 1);
}
create() {
console.log(`GameOverScene::create() : ${hackManGame.version}`);
}
update(timestamp: number, elapsed: number) {
this.UIScene.statusText = `${(timestamp / Consts.Times.MilliSecondsInSecond).toFixed(0)}s ${elapsed.toFixed(2)}ms ${
this.sys.game.device.os.desktop ? 'Desktop' : 'Mobile'
}`;
if (Math.round(timestamp / (Consts.Times.MilliSecondsInSecond * Consts.Game.GameOverFlashRate)) % 2) {
this._gameOverText.visible = true;
} else {
this._gameOverText.visible = false;
}
this._gameOverText.setX((innerWidth >> 1) - (this._gameOverText.getTextBounds(false).global.width >> 1));
this._gameOverText.setY((innerHeight >> 1) - (this._gameOverText.getTextBounds(false).global.height >> 1));
}
}
|
typescript
|
<reponame>hltfbk/E3C-Corpus
{
"authors": [
{
"author": "<NAME>"
}
],
"doi": "10.1186/1472-6939-14-44",
"publication_date": "2013-11-05",
"id": "EN116300",
"url": "https://pubmed.ncbi.nlm.nih.gov/24180633",
"source": "BMC medical ethics",
"source_url": "",
"licence": "CC BY",
"language": "en",
"type": "pubmed",
"description": "",
"text": "The patient had chest pains that were consistent with serious heart disease, but she wanted to catch her plane and was unwilling to let paramedics assess her heart activity by means of an electrocardiogram (ECG). The paramedics had to decide, there and then, whether the patient's refusal to submit to an ECG should be respected, or whether they should set the patient's expressed wishes aside by exercising verbal power and persuasive communication techniques. The paramedics chose to do the latter. It later turned out that the patient was grateful that the paramedics had been very direct, almost brutal, in their communication. When the patient regained her autonomy, she saw clearly that taking time to obtain and monitor an ECG was the best option for her."
}
|
json
|
Gujarat Public Service Commission, GPSC Assistant Professor Result 2019 released today on March 24, 2021. Candidates can download the provisional interview merit list from the official website, gpsc. gujarat. gov. in. A total of 617 students have qualified for the interview round.
GPSC Assistant Professor Result 2019 has been declared for the Assistant Professor in Arts, Science & Commerce of government colleges. The direct link to download the provisional merit list for interview round is shared below.
Candidates qualifying in the prelims as per the GPSC Assistant Professor Result 2019 will have to appear for the interview round. The selection of the candidates will be done based on the cumulative marks obtained in written and interview round.
- Visit the website of Gujarat Public Service Commission as mentioned above.
- Go to the ‘News and Event’ section flashing on the homepage.
- Click on the link, “Eligibility list (Interview) Assistant Professor, Gujarati in Government Arts, Science & Commerce College, GES, and Class-2”.
- Check and download GPSC Assistant Professor Result 2019.
- Take a print of the GPSC Assistant Professor Interview merit list for any future reference.
Candidates would be able to check their roll number on the GPSC Assistant Professor Result 2019 list. The official website of Gujarat Public Service Commission is gpsc. gujarat. gov. in.
Keep a check on the official site of GPSC for more updates on GPSC Assistant Professor Result 2019 and Provisional merit list for interview.
|
english
|
<filename>app/src/main/java/com/coursierwallon/bryan/coursierwallonandroidapp/Model/LetterModel.java
package com.coursierwallon.bryan.coursierwallonandroidapp.Model;
/**
* Created by franc on 21-11-17.
*/
public class LetterModel {
private long LetterId;
private boolean isImportant;
private long orderNumberLetter;
private OrderModel orderNumberLetterNavigation;
public LetterModel(long letterId, boolean isImportant, long orderNumberLetter, OrderModel orderNumberLetterNavigation) {
LetterId = letterId;
this.isImportant = isImportant;
this.orderNumberLetter = orderNumberLetter;
this.orderNumberLetterNavigation = orderNumberLetterNavigation;
}
public long getLetterId() {
return LetterId;
}
public void setLetterId(long letterId) {
LetterId = letterId;
}
public boolean isImportant() {
return isImportant;
}
public void setImportant(boolean important) {
isImportant = important;
}
public long getOrderNumberLetter() {
return orderNumberLetter;
}
public void setOrderNumberLetter(long orderNumberLetter) {
this.orderNumberLetter = orderNumberLetter;
}
public OrderModel getOrderNumberLetterNavigation() {
return orderNumberLetterNavigation;
}
public void setOrderNumberLetterNavigation(OrderModel orderNumberLetterNavigation) {
this.orderNumberLetterNavigation = orderNumberLetterNavigation;
}
}
|
java
|
Another day, another Anthology. Again, I'm so excited to share this news with you all. My short story named Broken Dream is published in Mist of the Forbidden Forest Anthology.
The anthology is published by True Dreamster and compiled by Himankshi Vashishth. The unique thing is that it has stories/poems in Hindi and English.
My story, Broken Dream, is about a girl named Ipsa and her sacrifices for the happiness of others. But it also points out the mental disease in the backdrop, which leads to a tragic circumstance. One can easily connect with Ipsa, especially if you're an Indian.
This is my third anthology, and I share the space with twenty-four other writers and can't wait to read their compositions. I congratulate all the contributors.
|
english
|
<gh_stars>0
import styled from '@emotion/styled';
import { rem } from 'polished';
import { space } from '~shared/styles/helpers/functions';
import {
animation,
letterSpacing,
textFont,
} from '~shared/styles/helpers/mixins';
export const Menu = styled.nav<{
$hidden: boolean;
}>`
${textFont(rem(16), 500, 1.4)};
${letterSpacing};
${animation('opacity', 500, 'ease-in-out')};
padding-top: ${space(7)};
padding-bottom: ${space(7)};
padding-left: ${space(3)};
${({ $hidden }) =>
$hidden &&
`
opacity: 0;
&:hover {
transition-duration: 0.2s;
opacity: 1;
}
`};
`;
export const ChapterNumber = styled.span`
display: inline-block;
min-width: ${space(6.5)};
padding-right: ${space(1)};
text-align: start;
color: currentColor;
`;
|
typescript
|
import express from 'express';
import mongoose from 'mongoose';
import bodyParse from 'body-parser';
import cors from 'cors';
import dotenv from 'dotenv';
import Config from './config/defaultConfig';
import userRoute from './routes/user.route';
import houseRoute from './routes/house.route';
const app = express();
dotenv.config({ path: './.env' });
mongoose.connect(process.env.DATABASE, {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
useFindAndModify: false,
})
.then(() => process.stdout.write('DB Connection succesfully\n'));
app.use(cors());
app.use(bodyParse.urlencoded({ extended: true }));
app.use(bodyParse.json());
app.use('/api/v1/uploads', express.static('uploads'));
app.use('/api/v1/auth', userRoute);
app.use('/api/v1/', houseRoute);
app.use('/', (req, res) => {
res.status(200).send({
status: 200,
message: 'Welcome To Murika Home Ltd',
});
});
const { port } = Config;
app.listen(port, () => process.stdout.write(
`Listening on port ${port} ...\n********************* \n`,
));
export default app;
|
javascript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.