text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
It’s going to rain holidays in West Bengal this year. With Assembly elections in the State scheduled for 2021, Chief Minister Mamata Banerjee, often accused by her adversaries of being partial to Muslims, has doubled the number of holidays given for several Hindu festivals.
As per the State Government’s 2020 calendar, notified last November and being widely circulated now as the year unfolds, the total number of public holidays in a year now stands at 43. If weekends too are excluded, then State government offices and schools and colleges will function only for 230 days this year.
The new list of holidays, greeted by the beneficiaries with delight as well as amusement, is likely to have a far-reaching impact on the work culture of West Bengal, where government departments, as it is, do not enjoy much of a reputation when it comes to promptness.
The State will be practically shut for half of October this year, with as many as many as 11 consecutive days — compared to five so far — being declared as holidays for Durga Puja.
Saraswati Puja, another popular Bengali festival, will now see people being given a two-day holiday instead of one day. Likewise, the festivals of Chhat, celebrated by the Bihari population in the State, and Bhatridwitya, the Bengali equivalent of Raksha Bandhan, will now be marked with a holiday of not one but two days. Holi, too, will be celebrated with a two-day closure. An extra holiday will also be given for Id-ul-Fitr.
The festivals of Shivaratri and Janmashtami, more popular across north India, have also been notified as public holidays. In the hills of West Bengal, the birthday of poet Bhanu Bhakt has also been declared as holiday.
As per the State Government order, no substitute holiday(s) shall be allowed for any notified holiday(s) in case they coincide with a non-working day, but that should hardly be a reason for complain considering that the number of public holidays now add up to almost a month and a half.
The Bharatiya Janata Party, now openly pro-Hindu, has seen a spectacular rise in West Bengal in recent times, with the party winning 18 of the 42 Lok Sabha seats in the State in the 2019 Parliamentary elections — something unimaginable until a few years ago. Ms. Banerjee’s Trinamool Congress was ahead of it by only four seats.
She is now desperate to hold on to her Hindu supporters, who appear to be moving away from her, and has of late been announcing measures to demonstrate that she isn’t partial to Muslims. During last year’s Durga Puja, she had announced an aid of ₹10,000 to every Durga Puja organised in the State. Now comes the holiday bonanza as the countdown begins for the 2021 Assembly elections, which will see a direct contest between the Trinamool Congress and the BJP. | english |
Minister of State for Defence Subhash Bhamre on Thursday launched Khanderi, the second of the Kalvari Class submarines, at the Mazagaon Dock Shipbuilders Ltd (MDL) in Mumbai.
"I am confident that the day is not too far when MDL (Mazagon Dock Limited) will build submarines for other nations as well," Bhamre said at the launch of second Scorpene class submarine Khanderi.
The launch saw the separation of the submarine from the pontoon on which it is being assembled and to its final setting afloat.
The first submarine of the Kalvari Class - built by MDL in collaboration with France's DCNS as part of Project 75 - is currently completing its sea trials and is due to be commissioned into the Indian Navy soon.
The state-of-the-art feature of the Scorpene include superior stealth and ability to launch a crippling attack on the enemy using precision guided weapons.
The attacks can be carried out with torpedoes, tube-launched anti-ship missiles both while underwater or on surface in all theatres including the tropics, giving it invulnerability unmatched by many other submarines.
It can undertake multifarious missions like anti-surface and anti-submarine warfares, intelligence gathering, mine-laying, area surveillance, etc, that are typically undertaken by any modern submarine.
The Khanderi has been built on the "modular construction" technique, which divided it into several sections and outfitting them concurrently, a complex task involving laying kms of cabling and piping in extremely congested compartments.
All the equipment have been installed in the submarine with 95 percent cabling and piping completed while processes like pressure testing, setting-to-work and commissioner of various systems are currently underway and continue after it is launched.
The most important safety milestone of "vacuum testing" was completed in the very first attempt on a single day, January 5 (last Thursday), matching the record of Kalvari which also completed it in one shot - a feat unmatched in submarine construction history.
Accordingly, the first ship "Khanderi" was commissioned on December 6, 1968 and decommissioned in October 1989, before being "reincarnated" by MDL as a powerful predator of the deep waters, guarding the vast maritime interests and territories of India.
The launch of Khanderi also marks a generational shift in technology for submarine construction in India and operations by the Indian Navy. | english |
<reponame>YvetteGwen/ConfigCrusher
{"baseTime":0,"baseTimeHumanReadable":2.91,"regionsToPerformanceTables":{"Region{regionID='program', startTime=-1, endTime=-1, duration=-1}":{"[COUNT]":880000000,"[MATCHINGFILES]":860000000}},"regionsToPerformanceTablesHumanReadable":{"Region{regionID='program', startTime=-1, endTime=-1, duration=-1}":{"[COUNT]":0.88,"[MATCHINGFILES]":0.86}}} | json |
import * as React from 'react'
import {
Button,
ScrollView,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
TouchableOpacity,
View
} from 'react-native';
import {RefObject, useRef, useState} from "react";
import {ChatSent} from "./components/ChatSent";
import {ChatReceived} from "./components/ChatReceived";
function ofN(n: number, component: React.ReactNode) {
return (
<>
{
[...Array(n)].map(() => <>{component}</>)
}
</>
)
}
export default function App() {
const inputMsg = useRef<string>()
const [chatSent, setChatSent] = useState<string[]>([])
return (
<View style={styles.container}>
<ScrollView style={{flex: 1, width: '100%'} }>
{
chatSent.map((msg, index) => {
if (index % 2) {
return (
<ChatSent msg={msg} uid='blahblah'/>
)
} else {
return (
<ChatReceived msg={msg} uid='blahblah'/>
)
}
})
}
</ScrollView>
<View style={styles.chatComposeContainer}>
<TextInput style={styles.msgInput} onChangeText={(text) => {
inputMsg.current = text
}}/>
<Button title='Send' onPress={() => {
if (inputMsg.current) {
setChatSent([...chatSent, inputMsg.current])
}
}}/>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
chatComposeContainer: {
flexDirection: 'row',
width: '100%',
},
msgInput: {
paddingLeft: 5,
paddingRight: 5,
borderWidth: 1,
borderRadius: 5,
marginLeft: 10,
marginRight: 10,
borderColor: 'black',
flex: 1
},
button: {
backgroundColor: 'lightblue',
justifyContent: 'center',
padding: 10,
borderRadius: 2333333
}
});
| typescript |
{"ast":null,"code":"var _jsxFileName = \"C:\\\\Users\\\\yogesh arya\\\\Desktop\\\\Portfolio-with-React-main\\\\src\\\\App.js\";\nimport React, { Component } from 'react';\nimport { BrowserRouter as Router, Route, Switch } from 'react-router-dom';\nimport { Home } from './Home';\n\nclass App extends Component {\n componentDidMount() {\n this.props.hideLoader();\n }\n\n render() {\n return /*#__PURE__*/React.createElement(React.Fragment, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 13\n }\n }, /*#__PURE__*/React.createElement(Router, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 17\n }\n }, /*#__PURE__*/React.createElement(Switch, {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 21\n }\n }, /*#__PURE__*/React.createElement(Route, {\n exact: true,\n path: \"/\",\n component: Home,\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 25\n }\n }))));\n }\n\n}\n\nexport default App;","map":{"version":3,"sources":["C:/Users/yogesh arya/Desktop/Portfolio-with-React-main/src/App.js"],"names":["React","Component","BrowserRouter","Router","Route","Switch","Home","App","componentDidMount","props","hideLoader","render"],"mappings":";AAAA,OAAOA,KAAP,IAAeC,SAAf,QAA+B,OAA/B;AACA,SAAQC,aAAa,IAAIC,MAAzB,EAAiCC,KAAjC,EAAwCC,MAAxC,QAAqD,kBAArD;AACA,SAAQC,IAAR,QAAmB,QAAnB;;AAEA,MAAMC,GAAN,SAAkBN,SAAlB,CAA4B;AACxBO,EAAAA,iBAAiB,GAAG;AAChB,SAAKC,KAAL,CAAWC,UAAX;AACH;;AACDC,EAAAA,MAAM,GAAG;AACL,wBACI,oBAAC,KAAD,CAAO,QAAP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBACI,oBAAC,MAAD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBACI,oBAAC,KAAD;AAAO,MAAA,KAAK,MAAZ;AAAa,MAAA,IAAI,EAAC,GAAlB;AAAsB,MAAA,SAAS,EAAEL,IAAjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MADJ,CADJ,CADJ,CADJ;AASH;;AAduB;;AAiB5B,eAAeC,GAAf","sourcesContent":["import React, {Component} from 'react';\nimport {BrowserRouter as Router, Route, Switch} from 'react-router-dom';\nimport {Home} from './Home';\n\nclass App extends Component {\n componentDidMount() {\n this.props.hideLoader();\n }\n render() {\n return (\n <React.Fragment>\n <Router>\n <Switch>\n <Route exact path=\"/\" component={Home}/>\n </Switch>\n </Router>\n </React.Fragment>\n );\n }\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"} | json |
{
"entry": {
"burotel": "./js/index.js"
},
"sassOverrides": {
"rb:styles/palette": "./styles/palette.scss",
"base/palette": "./styles/basePalette.scss"
}
}
| json |
Ahead of Budget 2023 for the financial year 2023-24, Micro, Small & Medium Enterprises (MSMEs) in India are quite upbeat about their business and Indian economy, despite softening of the global economy.
According to Kantar ITOPS 2022 study, the pandemic had hit the MSME businesses hard, but the segment has bounced back and is currently extremely positive about the business and Indian economy despite worry of tough global economic scenario.
Meanwhile, the Economic Survey 2023, on Tuesday stated that the credit growth to the MSME sector was over 30. 6 per cent on average during Jan-Nov 2022.
The Kantar study said that the pandemic has proven the resilience of the MSMEs and more MSMEs are also looking to invest in their business than in the past as they feel that economy will continue do well and somehow be insulated from probable global slowdown.
This is evident from the fact that the MSMEs that are defined as “wave-riders” (Businesses that invest in-line with the economic growth of the country in order to stay competitive in the market)) has increased too, the study added.
These businesses are confident about their industry doing well. While only 1 out of 10 businesses were extremely confident about this in 2021, the study said that more than 3/4th of the businesses are hopeful of a strong growth in their industry now.
The study stated that looking at the current scenario, it is important to mention that the current vision of MSMEs are not myopic one. More than half of the businesses are confident about increasing their revenue and executing their business plan for next 5 years.
It is worthy to mention that there is a very keen interest on investing in technology and going digital is growing.
Kantar has noticed that they have started investing heavily on these areas post pandemic and currently, there are very few MSMEs in India that are not exploring digital technology for their business. This is because of the demonstrable benefit that digital and technology has brought forth during the last couple of years.
Indranil Dutta, vice president, insights division, Kantar, said, “While MSMEs have bounced back from COVID, it is important for them to continue with this positive mindset. It will only prevail if positivity gets translated into higher revenue and profitability. "
“Given MSMEs are the lifeline of Indian business economy with contribution of 99. 8% to all businesses in India and contributing to almost a third of the total GDP of the country, significant responsibility lies with government to help them grow. As the budget for FY 2023-24 is just round the corner, I am quite hopeful that Indian government shall continue to instill confidence in such businesses by providing attractive schemes and roadmap to flourish. " | english |
Eggs are the nutrient-dense superfoods that comprise essential vitamins and packed with all nine essential amino acids making it a source of complete protein and one of the most nutritious foods on the planet. From proteins to vitamins and minerals, an egg contains almost all the nutrients you need to maintain health. A complete egg comprises all the essential nutrients required to turn a single cell into a baby chick.
Eggs are relished by most of us, which is cooked in varied delicacy and can be eaten for breakfast, lunch, dinner or even a brunch. Eggs prepared in any form be it poached, boiled, omelette and scrambled contains all the vital nutrients which are crucial for maintaining the body fit. It can be baked or mixed with any number of ingredients to form a versatile and tasty delight.
Eggs are highly recommended by doctors and nutritionist as a vital component in a well-balanced regimen. High-quality protein, low in cost and indeed the cheapest sources of protein which can be made into a nutritious meal. The egg is also valued as a superfood which keeps the doctor away.
In recent times there are some misconceptions about health incentives of egg yolks about its fats and cholesterol content. The real fact is that eggs are not recommended for people sensitive with high lipid profile levels such as those who deal with the heart and cardiac problems. However, for normal individuals’ eggs can be incredible food and assist in leading a healthier life. Adding eggs in your diet serves as a good source of protein, improves brain and eye health, shields the skin from harmful UV rays, improves good cholesterol and bolsters brain function.
There are various types of bird’s eggs which are edible, nutritious and consumed widely all over the world. Chicken egg is one of the common edible eggs widely consumed by people for its impressive health benefits.
Chicken is the most common type of egg that is readily available in the market and widely eaten. It is mostly available in two forms white and brown depending on the breed of chicken. Both the eggs are rich in protein, vitamins, calcium, zinc and have a fairly mild taste. Chicken eggs have different variations based on the yolk, colour and size.
Double eggs are ones when an egg with a shell is enclosed by another egg in the oviduct and a shell is formed over the outer egg too.
Double yolks generally comprise an egg white with two or more yolks and the egg may look unusually large in the shell.
Yolkless egg or no-yolkers, dwarf eggs or wind eggs contain only egg white. Sometimes an egg may come out with irregular shape, rough or usually coloured shell.
Egg size depends on the breed, age and weight of the hen. Larger chicken variety lay larger eggs, banty breeds lay smaller ones. However, older hens generally lay larger eggs than younger ones.
Organic eggs are free from any antibiotic’s or hormones and are fed only organic feeds. Their feeds are free from pesticide, fertilizers synthetic hormones and antibiotics. As per the United States Department of Agriculture, organic denotes the hens must have access to outdoor fields and not raised in cages.
Conventional or inorganic eggs are ones readily available are chickens are generally raised in a cage and never see the daylight. They are fed with grain-based food, supplemented with vitamins, minerals and also treated with antibiotics and hormones.
Chickens are allowed to go freely, eating plants, insects, worms and some commercial feed.
White eggs are ones laid by white-feathered chickens with white earlobes while the brown ones are laid by brown-feathered chickens with red earlobes. White eggs are priced at low cost as the breeding and raising the cost of these eggs are much cheaper than brown eggs. Moreover, the reason why brown eggs cost more is that they eat more and are quite expensive to feed. There is no difference between brown and white eggs in terms of nutritional value.
Nutrition Facts About Eggs:
Eggs have been a part of a well-balanced diet regimen for ages. Laden with a treasure trove of nutrients eggs is valued as a true superfood because of its numerous health benefits. Undeniably, there are umpteen therapeutic and medicinal benefits of having eggs every day. Not only it is a source of complete protein, but they also contain 11 essential vitamins and minerals, omega 3 fatty acids and antioxidants. Eggs make a tremendous contribution to daily nutrients demands.
Protein is the building blocks of life and essential for normal growth, tissue repair and muscle strengthening. One egg contains about 6.3 grams of high-quality protein and all the nine essential amino acids in the right amounts needed for maintaining optimal health.
The following is the nutritional content in one medium-sized egg for a serving size of 44 grams.
The data is as per the United States Food And Drug Administration’s (U.S FDA) nutrition labelling protocols for food produce.
The egg yolk and egg white are both laden with vast amounts of proteins. Besides, eggs are a perfect addition to a balanced breakfast meal in the morning and are a superfood, as they offer all key nutrients as well as the essential amino acids. They supply vital trace minerals including calcium, iron, phosphorous, zinc and selenium. They are also rich in important vitamins like vitamin A, the B vitamins and vitamin D.
There are several other types of edible bird eggs with different nutrition profile and taste.
Quail eggs are ones got from the quail bird they are smaller and lighter than chicken eggs with dots all over the shells. Quails are nutritious and heaped with all essential nutrients than chicken eggs. It consists of almost 13% protein more than recommended daily allowance, rich in B complex vitamins especially thiamine (almost 140 % of vitamin B1) and vitamin D.
Quail eggs promote vision, skin health, boosts memory and brain function, slow down ageing, promotes respiratory health and triggers immunity.
Duck eggs are almost very similar to chicken eggs with a slightly bigger yolk. It has a good amount of healthy fats, cholesterol, protein than a chicken egg and also loaded with vitamin B, D, E it has a harder shell and stays fresh for a longer time.
Duck eggs improve the vision, skin and hair health, lowers the risk of cancer, heart disease, boosts the immune system, protects the liver and works well as a potent antioxidant.
Turkey eggs help to build muscle mass, promotes skin health and vision, boosts memory and immunity, slow down ageing and lowers the risk of degenerative nervous disorders.
Goose eggs are almost twice the size of the chicken eggs, heavier, with an enhanced taste and a greater protein content. It contains 19.9 g of protein, abundant in calcium, phosphorus, zinc complex vitamins with a harder shell and not easily available as goose lays only 40 eggs per week.
EMU eggs weight about 1 kilogram per egg which almost the weight of 10 chicken eggs. It is made up of distinct layers and outer covering has a different texture. It is also a great source of nutrients and low on calories.
Ostrich eggs are the heaviest bird eggs which weight about 1.3 kilogram which is 20 times greater than a chicken egg. The shell is very denser, harder to crack, one ostrich egg is loaded with 2000 calories but has similar protein and fat content to chicken eggs though. However, ostrich eggs are used for fertility treatment and for decoration, and it is hardly used as food.
Health Benefits Of Eggs:
Eggs are a rich source of superior quality proteins. They contain all the essential amino acids, required to build robust tissues in all organs of the body. In addition, they also function in key biochemical reactions in the system, thereby ensuring proper growth and development of cells in vital parts such as the brain and heart.
Eggs are naturally high in the good HDL cholesterol and omega-3 fatty acids. Moreover, they contain negligible amounts of bad LDL cholesterol as well as harmful triglycerides. Hence, eating one to two eggs a day can vastly enhance heart function and reduce the risk of cardiovascular disease.
Egg yolks are a treasure trove of vitamin A as well as two potent antioxidants - lutein and zeaxanthin. These elements possess vision protective properties, aiding in retaining accuracy of sight even in older age. Furthermore, they also prevent the occurrence of cataracts, macular degeneration and other eye ailments.
Eggs are bestowed with vast reserves of choline, a nutrient that is crucial for the proper functioning of the nervous system. It advances memory abilities in the brain, besides contributing to elevated cognition and lateral thinking. Consuming eggs in moderate amounts on a daily basis also averts the risk of developing grave neurodegenerative disorders like Alzheimer’s, dementia and brain tumours.
The intrinsic high quantities of vitamin B12 and selenium in eggs help in building strong defense functions in the body. Selenium also has powerful antioxidant traits, which help to eliminate harmful free radicals from oxidizing healthy cells in the system. A strong immune system shields the body from microbial infections and other seasonal epidemics like the flu, cold and fever.
The immense protein content in eggs is very valuable for fostering muscle growth and development. Also, in times of injury, stress or disease, eggs help in promptly repairing any damaged connective tissue in the body. Encouraging children to eat just one small egg a day increases muscle mass and improves flexibility, thus guaranteeing strong and healthy muscles in all organs of the body.
The copious quantities of folic acid and iron in eggs are very beneficial for pregnant women. Folic acid performs certain key functions such as maintaining optimal synthesis and transport of red blood cells in the body along with iron, as well as ensuring the proper development of the foetus in the pregnant mother’s womb. Thus, consuming eggs in moderation helps expecting mothers go through a safe pregnancy, by avoiding complications such as neuronal conditions like spina bifida in the newborn, or excessively low blood circulation in the mother’s body.
Eggs have profuse amounts of protein, which helps in satisfying and regulating the appetite, preventing untimely cravings for unhealthy junk foods. It also helps the stomach feel full for longer, as proteins require more time to be processed and assimilated, thereby aiding in maintaining healthy body weight. This ultimately improves digestive function and normalizes bowel movement as well.
The calorie content in eggs is abundant, with one medium egg supplying 60 calories. This keeps the body active and vastly enhances productivity. Eggs are an ideal breakfast food, as the instant energy supply from them fuels the brain cells, helping improve cognitive function, memory and mood. They also power the muscles, assisting in quicker responses and recovery from injury.
Eggs are naturally rich in biotin, the B vitamin responsible for enhanced skin texture and improved hair growth. They are also bestowed with vitamin D and vitamin B5, apart from vital trace minerals like zinc and selenium, all of which facilitate the regeneration of new skin cells. Hence, eating eggs on a regular basis significantly brightens skin, providing a youthful and radiant look.
Eggs are packed with the goodness of vitamin D, which helps in increasing bone density, thereby strengthening connective tissue and providing a solid spine structure. Moreover, it also has noteworthy quantities of calcium and phosphorous, which reinforce bone tissue components and also facilitate key enzyme functions in the anatomy of the body. Thus, eggs help to prevent severe bone disorders like arthritis, osteoporosis and rickets.
The remarkable levels of iron in eggs help to maintain healthy red blood cell synthesis and transport in the body. In addition, ample iron supplies in the diet help in preventing iron-deficiency anemia, which causes decreased oxygen supply in the blood that is transported to vital organs in the body such as the heart, brain, lungs, liver and kidneys. Hence, eating eggs every day certainly keeps anemia at bay and circumvents its associated symptoms such as dizziness and nausea.
Blend all the ingredients and apply all over the face, let it stay for 15-20 minutes and rinse well with water. This DIY face mask repairs the damaged skin, battles acne , blackheads and reduces the scars rendering the skin natural glow.
In a bowl, beat 2 eggs with red chilli powder, turmeric powder, ginger garlic paste and salt.
Keep the mixture aside.
In a pan sauté onion, tomato, coriander leaves, salt and pepper powder for 3-5 minutes.
Add this to the beaten egg mixture and blend well.
Heat a pan add oil and pour the masala omelette mixture and cool well until all the sides are evenly cooked and flip the omelette and cook another side until it is done.
Serve yummy masala omelette hot with roti, bread or rice.
The wealth of protein, vitamins and minerals in eggs provide you with a quick source of energy. Onions loaded with antioxidant battles inflammation and regulate blood pressure. Tomatoes rich in vitamins and lycopene shied the skin from cancer and improves glow. Black pepper and turmeric promotes digestion, gut health and enhances the flavour of the recipe.
In a bowl add eggs and beat it until fluffy.
Add honey and beat well, add milk, cardamom powder and blend well.
Dip the bread slices one at a time in the egg mixture.
Serve the toast hot.
Eggs heaped with protein and essential nutrients helps to kick start your day. Milk rich in calcium, phosphorus and vitamin D strengthens the bone and honey rich in antioxidants lowers inflammation and triggers immunity. Cardamom promotes digestion, averts cavities and treats bad breath.
How Many Eggs Should You Have In A Day?
Eggs are the ultimate superfood on the planet. Being a complete source of protein, rich in essential vitamins and other antioxidants it helps to keep you healthy and prevent chronic diseases.
As per Indian council for Medical Research (ICMR) and the National Institute Of Nutrition (NIN) the dietary allowance for cholesterol intake is 300mg/day. Thus, as a part of a healthy wholesome meal, consumption of one egg a day 3-4 times a week is safe for adults.
The ideal way to take eggs is in boiled form, as it is devoid of any additional fat or calories. People who require more protein can easily meet the demands by consuming boiled egg whites which are free of cholesterol and can consume up to 2 boiled egg whites per day.
Consuming raw eggs may cause food poisoning due to the presence of bacteria called Salmonella. These bacteria may be present in clean eggs with uncracked shells. Some people may be prone to egg allergies which may result in nausea, bloating and flatulence immediately after taking eggs should avoid taking it. Furthermore, eating raw eggs may cause biotin deficiency or vitamin B 7which may lead to cradle cap in babies and seborrheic dermatitis.
The wealth of essential nutrients in eggs makes it a complete source of inexpensive protein which promotes growth, development and overall well-being. Eggs are prized as a perfect wholesome food which renders a delectable taste and flavour to the food. They are an instant source of energy, curbs the appetite, promote weight loss and heart health.
| english |
#[doc = "Register `PRO_CACHE_MMU_POWER_CTRL` reader"]
pub struct R(crate::R<PRO_CACHE_MMU_POWER_CTRL_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<PRO_CACHE_MMU_POWER_CTRL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<PRO_CACHE_MMU_POWER_CTRL_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<PRO_CACHE_MMU_POWER_CTRL_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Register `PRO_CACHE_MMU_POWER_CTRL` writer"]
pub struct W(crate::W<PRO_CACHE_MMU_POWER_CTRL_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<PRO_CACHE_MMU_POWER_CTRL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<PRO_CACHE_MMU_POWER_CTRL_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<PRO_CACHE_MMU_POWER_CTRL_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_ON` reader - The bit is used to enable clock gating to save power when access mmu memory, 0: enable, 1: disable"]
pub struct PRO_CACHE_MMU_MEM_FORCE_ON_R(crate::FieldReader<bool, bool>);
impl PRO_CACHE_MMU_MEM_FORCE_ON_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
PRO_CACHE_MMU_MEM_FORCE_ON_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PRO_CACHE_MMU_MEM_FORCE_ON_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_ON` writer - The bit is used to enable clock gating to save power when access mmu memory, 0: enable, 1: disable"]
pub struct PRO_CACHE_MMU_MEM_FORCE_ON_W<'a> {
w: &'a mut W,
}
impl<'a> PRO_CACHE_MMU_MEM_FORCE_ON_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
self.w
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_PD` reader - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power down"]
pub struct PRO_CACHE_MMU_MEM_FORCE_PD_R(crate::FieldReader<bool, bool>);
impl PRO_CACHE_MMU_MEM_FORCE_PD_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
PRO_CACHE_MMU_MEM_FORCE_PD_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PRO_CACHE_MMU_MEM_FORCE_PD_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_PD` writer - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power down"]
pub struct PRO_CACHE_MMU_MEM_FORCE_PD_W<'a> {
w: &'a mut W,
}
impl<'a> PRO_CACHE_MMU_MEM_FORCE_PD_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
self.w
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_PU` reader - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power up"]
pub struct PRO_CACHE_MMU_MEM_FORCE_PU_R(crate::FieldReader<bool, bool>);
impl PRO_CACHE_MMU_MEM_FORCE_PU_R {
#[inline(always)]
pub(crate) fn new(bits: bool) -> Self {
PRO_CACHE_MMU_MEM_FORCE_PU_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for PRO_CACHE_MMU_MEM_FORCE_PU_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `PRO_CACHE_MMU_MEM_FORCE_PU` writer - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power up"]
pub struct PRO_CACHE_MMU_MEM_FORCE_PU_W<'a> {
w: &'a mut W,
}
impl<'a> PRO_CACHE_MMU_MEM_FORCE_PU_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
self.w
}
}
impl R {
#[doc = "Bit 0 - The bit is used to enable clock gating to save power when access mmu memory, 0: enable, 1: disable"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_on(&self) -> PRO_CACHE_MMU_MEM_FORCE_ON_R {
PRO_CACHE_MMU_MEM_FORCE_ON_R::new((self.bits & 0x01) != 0)
}
#[doc = "Bit 1 - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power down"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_pd(&self) -> PRO_CACHE_MMU_MEM_FORCE_PD_R {
PRO_CACHE_MMU_MEM_FORCE_PD_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 2 - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power up"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_pu(&self) -> PRO_CACHE_MMU_MEM_FORCE_PU_R {
PRO_CACHE_MMU_MEM_FORCE_PU_R::new(((self.bits >> 2) & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 0 - The bit is used to enable clock gating to save power when access mmu memory, 0: enable, 1: disable"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_on(&mut self) -> PRO_CACHE_MMU_MEM_FORCE_ON_W {
PRO_CACHE_MMU_MEM_FORCE_ON_W { w: self }
}
#[doc = "Bit 1 - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power down"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_pd(&mut self) -> PRO_CACHE_MMU_MEM_FORCE_PD_W {
PRO_CACHE_MMU_MEM_FORCE_PD_W { w: self }
}
#[doc = "Bit 2 - The bit is used to power mmu memory down, 0: follow_rtc_lslp_pd, 1: power up"]
#[inline(always)]
pub fn pro_cache_mmu_mem_force_pu(&mut self) -> PRO_CACHE_MMU_MEM_FORCE_PU_W {
PRO_CACHE_MMU_MEM_FORCE_PU_W { w: self }
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "register description\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pro_cache_mmu_power_ctrl](index.html) module"]
pub struct PRO_CACHE_MMU_POWER_CTRL_SPEC;
impl crate::RegisterSpec for PRO_CACHE_MMU_POWER_CTRL_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [pro_cache_mmu_power_ctrl::R](R) reader structure"]
impl crate::Readable for PRO_CACHE_MMU_POWER_CTRL_SPEC {
type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [pro_cache_mmu_power_ctrl::W](W) writer structure"]
impl crate::Writable for PRO_CACHE_MMU_POWER_CTRL_SPEC {
type Writer = W;
}
#[doc = "`reset()` method sets PRO_CACHE_MMU_POWER_CTRL to value 0x05"]
impl crate::Resettable for PRO_CACHE_MMU_POWER_CTRL_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0x05
}
}
| rust |
Shocking! Adam Rose will retire from wrestling soon!
WWE superstar Adam Rose recently made a shocking announcement on twitter that this will be his last year in professional wrestling. Here is the tweet in which he announced the shocking statement;
This will be my last year wrestling. Thank you to those who got it, thank you even more to those who didn’t. You pushed me harder. Much love.
The South African-born professional wrestler was just thirty-seven and made his professional wrestling debut long ago in 1995 at the age of 15 only. He wrestled in his country South Africa for fifteen years before he joined WWE’s development territory Florida Championship Wrestling.
After FCW turned into NXT, Adam Rose was successfully passed himself onto the following brand. He had a decent run in both FCW and NXT with having FCW Florida Heavyweight championship won twice and being ranked #77 by the Pro Wrestling Illustrator in PWI 500 of 2012.
Adam Rose was given the main roster break in 2014 and with debut promo films it looked like he was going to elevate into the main event scene quickly. With some of the NXT trainee appearing as his rosebuds the possibility became even stronger. The likes of Braun Strowman, Alexa Bliss, James Ellsworth, Becky Lynch and many other big names appeared as the rosebuds.
But things did not go very well for Adam Rose as time moved on. He kept losing match by match and soon he became a jobber. WWE tried to save his profile by turning him a heel but things still did not work for him.
At the end, WWE had no option but to release him in 2016. He joined the joined the independent circuit where he was renamed as Aldo Rose. He managed to win one championship at the indies. Now he is finally leaving wrestling after this year as he himself announced it on twitter.
| english |
<gh_stars>1-10
/**
* @file API Scheme
* @author <NAME> <<EMAIL>>
*/
import assert from "assert";
import SchemaManage, { ValueTypeManager, SchemaType } from "@tuzhanai/schema-manager";
import { core as debug } from "./debug";
import { defaultErrors } from "./default";
import { ErrorManager } from "./manager";
import API, { APIDefine, DEFAULT_HANDLER, SUPPORT_METHODS } from "./api";
import { apiParamsCheck, paramsChecker, schemaChecker, ISchemaType, responseChecker } from "./params";
import { camelCase2underscore, getCallerSourceLine, ISupportMethds } from "./utils";
import * as utils from "./utils";
import IAPITest from "./extend/test";
import IAPIDoc, { IDocWritter, IDocGeneratePlugin } from "./extend/docs";
export * from "@tuzhanai/schema-manager";
export * from "./api";
const missingParameter = (msg: string) => new Error(`missing required parameter ${msg}`);
const invalidParameter = (msg: string) => new Error(`incorrect parameter ${msg}`);
const internalError = (msg: string) => new Error(`internal error ${msg}`);
/** Schema方法 */
export type genSchema<T> = Readonly<ISupportMethds<(path: string) => API<T>>>;
/** 组方法 */
export interface IGruop<T> extends Record<string, any>, genSchema<T> {
define: (opt: APIDefine<T>) => API<T>;
before: (...fn: T[]) => IGruop<T>;
middleware: (...fn: T[]) => IGruop<T>;
}
/** API接口定义 */
export interface IApiInfo<T> extends Record<string, any>, genSchema<T> {
readonly $apis: Map<string, API<T>>;
define: (opt: APIDefine<T>) => API<T>;
beforeHooks: Set<T>;
afterHooks: Set<T>;
docs?: IAPIDoc;
formatOutputReverse?: (out: any) => [Error | null, any];
docOutputForamt?: (out: any) => any;
}
/** API基础信息 */
export interface IApiOptionInfo {
/** 项目标题 */
title?: string;
/** 项目描述(可以为 markdown 字符串) */
description?: string;
/** 项目版本 */
version?: Date;
/** 服务器host地址 */
host?: string;
/** API默认位置 */
basePath?: string;
}
/** API配置 */
interface IAPIConfig {
path: string;
}
/** API定义 */
export interface IApiOption {
info?: IApiOptionInfo;
path?: string;
missingParameterError?: (msg: string) => Error;
invalidParameterError?: (msg: string) => Error;
internalError?: (msg: string) => Error;
groups?: Record<string, string | IGroupInfoOpt>;
forceGroup?: boolean;
docs?: IDocOptions;
}
/** 文档生成信息 */
export interface IDocOptions extends Record<string, any> {
/** 生成Markdown */
markdown?: string | boolean;
/** 生成wiki */
wiki?: string | boolean;
/** 生成 Index.md */
index?: string | boolean;
/** 生成 Home.md */
home?: string | boolean;
/** 生成 swagger.json */
swagger?: string | boolean;
/** 生成 postman.json */
postman?: string | boolean;
/** 生成 docs.json */
json?: string | boolean;
/** 生成 jssdk.js 基于(axios) */
axios?: string | boolean;
/** 生成 all-in-one.md */
all?: string | boolean;
}
export interface IGroupInfoOpt {
name: string;
prefix?: string;
}
interface IGroupInfo<T> extends IGroupInfoOpt {
middleware: T[];
before: T[];
}
/**
* Easy rest api helper
*/
export default class ERest<T = DEFAULT_HANDLER> {
public shareTestData?: any;
public utils = utils;
private apiInfo: IApiInfo<T>;
private testAgent: IAPITest = {} as IAPITest;
private app: any;
private info: IApiOptionInfo;
private config: IAPIConfig;
private error: {
missingParameter: (msg: string) => Error;
invalidParameter: (msg: string) => Error;
internalError: (msg: string) => Error;
};
private schemaManage: SchemaManage = new SchemaManage();
private typeManage: ValueTypeManager = this.schemaManage.type;
private errorManage: ErrorManager;
private docsOptions: IDocOptions;
private groups: Record<string, string>;
private groupInfo: Record<string, IGroupInfo<T>>;
private forceGroup: boolean;
private registAPI: (
method: SUPPORT_METHODS,
path: string,
group?: string | undefined,
prefix?: string | undefined
) => API<T>;
private defineAPI: (options: APIDefine<T>, group?: string | undefined, prefix?: string | undefined) => API<T>;
private mockHandler?: (data: any) => T;
/**
* 获取私有变量信息
*/
get privateInfo() {
return {
app: this.app,
info: this.info,
groups: this.groups,
groupInfo: this.groupInfo,
docsOptions: this.docsOptions,
error: this.error,
mockHandler: this.mockHandler,
};
}
/**
* API实例
*/
get api() {
return this.apiInfo;
}
/**
* 测试实例
*/
get test() {
return this.testAgent;
}
/**
* 错误列表
*/
get errors() {
return this.errorManage;
}
/**
* 类型列表
*/
get type() {
return this.typeManage;
}
/**
* 类型列表
*/
get schema() {
return this.schemaManage;
}
constructor(options: IApiOption) {
this.info = options.info || {};
this.forceGroup = options.forceGroup || false;
// 设置内部错误报错信息
this.error = {
missingParameter: options.missingParameterError || missingParameter,
invalidParameter: options.invalidParameterError || invalidParameter,
internalError: options.internalError || internalError,
};
this.config = {
path: options.path || process.cwd(),
};
this.groups = {};
this.groupInfo = {};
for (const g of Object.keys(options.groups || {})) {
const gInfo = options.groups![g];
this.groups[g] = typeof gInfo === "string" ? gInfo : gInfo.name;
const gI = typeof gInfo === "string" ? { name: gInfo } : gInfo;
this.groupInfo[g] = Object.assign({ middleware: [], before: [] }, gI);
}
// API注册方法
this.registAPI = (method: SUPPORT_METHODS, path: string, group?: string, prefix?: string) => {
if (this.forceGroup) {
assert(group, "使用 forceGroup 但是没有通过 group 注册");
assert(group! in this.groups, `请先配置 ${group} 类型`);
} else {
assert(!group, "请开启 forceGroup 再使用 group 功能");
}
const s = new API<T>(method, path, getCallerSourceLine(this.config.path), group, prefix);
const s2 = this.apiInfo.$apis.get(s.key);
assert(
!s2,
`尝试注册API:${s.key}(所在文件:${s.options.sourceFile.absolute})失败,因为该API已在文件${
s2 && s2.options.sourceFile.absolute
}中注册过`
);
this.apiInfo.$apis.set(s.key, s);
debug("register: (%s)[%s] - %s ", group, method, path);
return s;
};
// define注册方法
this.defineAPI = (opt: APIDefine<T>, group?: string, prefix?: string) => {
const s = API.define(opt, getCallerSourceLine(this.config.path), group, prefix);
const s2 = this.apiInfo.$apis.get(s.key);
assert(
!s2,
`尝试注册API:${s.key}(所在文件:${s.options.sourceFile.absolute})失败,因为该API已在文件${
s2 && s2.options.sourceFile.absolute
}中注册过`
);
this.apiInfo.$apis.set(s.key, s);
debug("define: (%s)[%s] - %s ", group, opt.method, opt.path);
return s;
};
// 初始化API
this.apiInfo = {
$apis: new Map(),
beforeHooks: new Set(),
afterHooks: new Set(),
define: (opt: APIDefine<T>) => this.defineAPI(opt),
get: (path: string) => this.registAPI("get", path),
post: (path: string) => this.registAPI("post", path),
put: (path: string) => this.registAPI("put", path),
delete: (path: string) => this.registAPI("delete", path),
patch: (path: string) => this.registAPI("patch", path),
};
// 初始化文档生成
const getDocOpt = (key: string, def: string | boolean): string | boolean => {
return options.docs && options.docs[key] !== undefined ? options.docs[key] : def;
};
this.docsOptions = {
markdown: getDocOpt("markdown", true),
wiki: getDocOpt("wiki", "./"),
index: getDocOpt("index", false),
home: getDocOpt("home", true),
swagger: getDocOpt("swagger", false),
postman: getDocOpt("postman", false),
json: getDocOpt("json", false),
axios: getDocOpt("axios", false),
all: getDocOpt("all", false),
};
// 错误管理
this.errorManage = new ErrorManager();
defaultErrors.call(this, this.errorManage);
}
/**
* 初始化测试系统
* @param app APP或者serve实例,用于init supertest
* @param testPath 测试文件路径
* @param docPath 输出文件路径
*/
public initTest(app: any, testPath = process.cwd(), docPath = process.cwd() + "/docs/") {
if (this.app && this.testAgent) {
return;
}
debug("initTest: %s %s", testPath, docPath);
this.app = app;
this.testAgent = new IAPITest(this, testPath);
if (!this.api.docs) {
this.api.docs = new IAPIDoc(this);
}
this.genDocs(docPath);
}
/**
* 设置测试格式化函数
*/
public setFormatOutput(fn: (out: any) => [Error | null, any]) {
this.apiInfo.formatOutputReverse = fn;
}
/**
* 设置文档格式化函数
*/
public setDocOutputForamt(fn: (out: any) => any) {
this.apiInfo.docOutputForamt = fn;
}
/**
* 设置文档格式化函数
*/
public setDocWritter(fn: IDocWritter) {
this.apiInfo.docs!.setWritter(fn);
}
public setMockHandler(fn: (data: any) => T) {
this.mockHandler = fn;
}
/**
* 注册文档生成组件
*/
public addDocPlugin(name: string, plugin: IDocGeneratePlugin) {
this.apiInfo.docs!.registerPlugin(name, plugin);
}
/**
* 获取Swagger信息
*/
public buildSwagger() {
if (!this.api.docs) {
this.api.docs = new IAPIDoc(this);
}
return this.api.docs.getSwaggerInfo();
}
/**
* 设置全局 Before Hook
*/
public beforeHooks(fn: T) {
assert(typeof fn === "function", "钩子名称必须是Function类型");
this.apiInfo.beforeHooks.add(fn);
}
/**
* 设置全局 After Hook
*/
public afterHooks(fn: T) {
assert(typeof fn === "function", "钩子名称必须是Function类型");
this.apiInfo.afterHooks.add(fn);
}
/**
* 获取参数检查实例
*/
public paramsChecker() {
return (name: string, value: any, schema: ISchemaType) => paramsChecker(this, name, value, schema);
}
/**
* 获取Schema检查实例
*/
public schemaChecker() {
return (data: any, schema: Record<string, ISchemaType>, requiredOneOf: string[] = []) =>
schemaChecker(this, data, schema, requiredOneOf);
}
/** 返回结果检查 */
public responseChecker() {
return (data: any, schema: ISchemaType | SchemaType | Record<string, ISchemaType>) =>
responseChecker(this, data, schema);
}
/**
* 获取Schema检查实例
*/
public apiChecker() {
return (schema: API<any>, params?: Record<string, any>, query?: Record<string, any>, body?: Record<string, any>) =>
apiParamsCheck(this, schema, params, query, body);
}
/**
* 获取分组API实例
*/
public group(name: string, info?: IGroupInfoOpt): IGruop<T>;
public group(name: string, desc?: string): IGruop<T>;
public group(name: string, infoOrDesc?: IGroupInfoOpt | string): IGruop<T> {
debug("using group: %s, desc: %j", name, infoOrDesc);
// assert(this.groupInfo[name], `请先配置 ${name} 分组`);
const info = !infoOrDesc || typeof infoOrDesc === "string" ? { name: infoOrDesc, prefix: "" } : infoOrDesc;
this.groups[name] = this.groups[name] || info.name || "";
this.groupInfo[name] = this.groupInfo[name] || { ...info, middleware: [], before: [] };
const prefix = this.groupInfo[name].prefix;
const group = {
get: (path: string) => this.registAPI("get", path, name, prefix),
post: (path: string) => this.registAPI("post", path, name, prefix),
put: (path: string) => this.registAPI("put", path, name, prefix),
delete: (path: string) => this.registAPI("delete", path, name, prefix),
patch: (path: string) => this.registAPI("patch", path, name, prefix),
define: (opt: APIDefine<T>) => this.defineAPI(opt, name, prefix),
before: (...fn: Array<T>) => {
this.groupInfo[name].before.push(...fn);
return group;
},
middleware: (...fn: Array<T>) => {
this.groupInfo[name].middleware.push(...fn);
return group;
},
};
return group;
}
/**
* 生成文档
* @param savePath 文档保存路径
* @param onExit 是否等待程序退出再保存
*/
public genDocs(savePath = process.cwd() + "/docs/", onExit = true) {
if (!this.api.docs) {
this.api.docs = new IAPIDoc(this);
}
const docs = this.api.docs;
docs.genDocs();
if (onExit) {
docs.saveOnExit(savePath);
} else {
docs.save(savePath);
}
}
public checkerLeiWeb<K>(ereat: ERest<T>, schema: API): (ctx: K) => void {
return function apiParamsChecker(ctx: any) {
ctx.request.$params = apiParamsCheck(
ereat,
schema,
ctx.request.params,
ctx.request.query,
ctx.request.body,
ctx.request.headers
);
ctx.next();
};
}
public checkerExpress<U, V, W>(ereat: ERest<T>, schema: API): (req: U, res: V, next: W) => void {
return function apiParamsChecker(req: any, res: any, next: any) {
req.$params = apiParamsCheck(ereat, schema, req.params, req.query, req.body, req.headers);
next();
};
}
/**
* 绑定路由
* (加载顺序:beforeHooks -> apiCheckParams -> middlewares -> handler -> afterHooks )
*
* @param {Object} router 路由
*/
public bindRouter(router: any, checker: (ctx: ERest<T>, schema: API<T>) => T) {
if (this.forceGroup) {
throw this.error.internalError("使用了 forceGroup,请使用bindGroupToApp");
}
for (const [key, schema] of this.apiInfo.$apis.entries()) {
debug("bind router: %s", key);
schema.init(this);
router[schema.options.method].bind(router)(
schema.options.path,
...this.apiInfo.beforeHooks,
...schema.options.beforeHooks,
checker(this, schema),
...schema.options.middlewares,
schema.options.handler
);
}
}
/**
* 绑定路由到Express
*
* @param {Object} app Express App 实例
* @param {Object} Router Router 对象
*/
public bindRouterToApp(app: any, Router: any, checker: (ctx: ERest<T>, schema: API<T>) => T) {
if (!this.forceGroup) {
throw this.error.internalError("没有开启 forceGroup,请使用bindRouter");
}
const routes = new Map();
for (const [key, schema] of this.apiInfo.$apis.entries()) {
schema.init(this);
const groupInfo = this.groupInfo[schema.options.group] || {};
const prefix = groupInfo.prefix || camelCase2underscore(schema.options.group || "");
debug("bindGroupToApp: %s - %s", key, prefix);
let route = routes.get(prefix);
if (!route) {
route = new Router();
routes.set(prefix, route);
}
route[schema.options.method].bind(route)(
schema.options.path,
...this.apiInfo.beforeHooks,
...groupInfo.before,
...schema.options.beforeHooks,
checker(this, schema),
...groupInfo.middleware,
...schema.options.middlewares,
schema.options.handler
);
}
for (const [key, value] of routes.entries()) {
debug("bindGroupToApp - %s", key);
const k = key[0] === "/" ? key : "/" + key;
app.use(k, value);
}
}
}
| typescript |
<filename>pkg/front_end/testcases/general/supported_libraries/libraries.json
{
"none": {
"libraries": {
"supported.by.spec": {
"uri": "supported.by.spec_lib.dart"
},
"_supported.by.target": {
"uri": "supported.by.target_lib.dart"
},
"unsupported.by.spec": {
"uri": "unsupported.by.spec_lib.dart",
"supported": false
},
"unsupported.by.target": {
"uri": "unsupported.by.target_lib.dart",
"supported": true
},
"_unsupported.by.spec_internal": {
"uri": "unsupported.by.spec_internal_lib.dart"
}
}
}
}
| json |
<reponame>Dawuid/quarkus
package io.quarkus.gradle;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Path;
import org.gradle.testkit.runner.BuildResult;
import org.gradle.testkit.runner.GradleRunner;
import org.junit.jupiter.api.Test;
import io.quarkus.bootstrap.util.IoUtils;
import static org.assertj.core.api.Assertions.assertThat;
public class AddExtensionToModuleInMultiModuleProjectTest extends QuarkusGradleTestBase {
@Test
public void testBasicMultiModuleBuild() throws Exception {
final File projectDir = getProjectDir("add-extension-multi-module");
BuildResult build = GradleRunner.create()
.forwardOutput()
.withPluginClasspath()
.withArguments(arguments(":application:addExtension", "--extensions=hibernate-orm"))
.withProjectDir(projectDir)
.build();
final Path applicationLib = projectDir.toPath().resolve("application").resolve("settings.gradle");
assertThat(applicationLib).doesNotExist();
final Path appBuild = projectDir.toPath().resolve("application").resolve("build.gradle");
assertThat(appBuild).exists();
assertThat(IoUtils.readFile(appBuild)).contains("implementation 'io.quarkus:quarkus-hibernate-orm'");
}
}
| java |
Former England all-rounder Ian Botham, who was appointed the Chairman of Durham County Cricket Club on November last year, is expected to start his first official day from today. Botham is expected to state his visions for the Club in April when the County Championship starts, and he is officially confirmed as Chairman. He is also expected to state the reasons of his involvement with the club, along with an outline of what he hopes to achieve with Durham in cricket.
Botham, who has been voted as ‘the greatest England cricketer of the 20th century’, has played 218 matches at international level. However, it was his debut in Durham’s maiden first-class side in 1992, where he scored a remarkable century but went on to end his distinguished career a year later, after playing against a touring Australia.
Earlier, on November 3, 2016, when Durham Cricket Country Club first announced the appointment of Botham, he spoke on the bright future that the club holds for England cricket. “As someone who lives locally it is an honour to have the opportunity to contribute to the club’s future, to look forward and to continue to produce the talent that will serve both the county and England well in the years ahead. We will work closely with the England and Wales Cricket Board and Durham County Council in the months ahead as we develop a plan to ensure continued success for this great club,” he had said.
The decision of appointing Botham had just come weeks after Durham was relegated from the First Division of the County Championship, as punishment for running up debts of £7.5m, last year. The leader of Durham Country Council, Councillor Simon Henig welcomed Botham and said that it is a positive step towards a brighter future to have an international cricketing icon take up a major role. “With its importance to the local community, County Durham and the region as a whole, it is vital that we now move forward, working closely together with the cricket club, the new board and the ECB to get Durham County Cricket Club back where it belongs,” Henig was stated by itvnews on November 4, 2016.
This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.
| english |
<filename>platform/openide.loaders/src/org/openide/loaders/OpenSupport.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.openide.loaders;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyVetoException;
import java.beans.VetoableChangeListener;
import java.beans.VetoableChangeSupport;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import org.openide.cookies.EditCookie;
import org.openide.cookies.EditorCookie;
import org.openide.cookies.OpenCookie;
import org.openide.filesystems.FileStateInvalidException;
import org.openide.filesystems.FileSystem;
import org.openide.util.NbBundle;
import org.openide.util.WeakSet;
import org.openide.windows.CloneableOpenSupport;
import org.openide.windows.CloneableTopComponent;
/** Simple support for an openable file.
* Can be used either as an {@link org.openide.cookies.OpenCookie},
* {@link org.openide.cookies.ViewCookie}, or {@link org.openide.cookies.CloseCookie},
* depending on which cookies the subclass implements.
*
* @author <NAME>
*/
public abstract class OpenSupport extends CloneableOpenSupport {
/** Entry to work with. */
protected MultiDataObject.Entry entry;
/** New support for a given entry. The file is taken from the
* entry and is updated if the entry moves or renames itself.
* @param entry entry to create instance from
*/
public OpenSupport (MultiDataObject.Entry entry) {
this (entry, new Env (entry.getDataObject ()));
}
/** Constructor that allows subclasses to provide their own environment.
* Used probably only by EditorSupport.
*
* @param entry the entry to work on
* @param env the environment to work on
*/
protected OpenSupport (MultiDataObject.Entry entry, Env env) {
super (env);
this.entry = entry;
}
/** Message to display when an object is being opened.
* @return the message or null if nothing should be displayed
*/
protected String messageOpening () {
DataObject obj = entry.getDataObject ();
return NbBundle.getMessage (OpenSupport.class , "CTL_ObjectOpen", // NOI18N
obj.getName(),
obj.getPrimaryFile().toString()
);
}
/** Message to display when an object has been opened.
* @return the message or null if nothing should be displayed
*/
protected String messageOpened () {
return null;
}
/** Method to access all editors from subclasses. Needed for compilation by 1.2
*/
final CloneableTopComponent.Ref allEditors () {
return allEditors;
}
/** Environment that connects the support together with DataObject.
*/
public static class Env extends Object
implements CloneableOpenSupport.Env, java.io.Serializable,
PropertyChangeListener, VetoableChangeListener {
/** generated Serialized Version UID */
static final long serialVersionUID = -1934890789745432531L;
/** object to serialize and be connected to*/
private DataObject obj;
/** support for firing of property changes
*/
private transient PropertyChangeSupport propSupp;
/** support for firing of vetoable changes
*/
private transient VetoableChangeSupport vetoSupp;
// #27587
/** Map of FileSystem to its listener (weak reference of it).
* One listener per one filesystem for all env's from that fs. */
private static final Map<FileSystem, Reference<FileSystemNameListener>> fsListenerMap =
new WeakHashMap<FileSystem, Reference<FileSystemNameListener>>(30);
// A private lock
private static final Object LOCK_SUPPORT = new Object();
/** Constructor. Attaches itself as listener to
* the data object so, all property changes of the data object
* are also rethrown to own listeners.
*
* @param obj data object to be attached to
*/
public Env (DataObject obj) {
this.obj = obj;
init();
}
private void readObject (ObjectInputStream ois)
throws IOException, ClassNotFoundException {
ois.defaultReadObject();
init();
}
private void init() {
obj.addPropertyChangeListener(org.openide.util.WeakListeners.propertyChange(this, obj));
// XXX #25400. Ugly patch for being able to react
// on change of root directory of filesystem, see more in the issue.
final FileSystem fs;
try {
fs = obj.getPrimaryFile().getFileSystem();
} catch(FileStateInvalidException fsie) {
throw (IllegalStateException) new IllegalStateException("FileSystem is invalid for " + obj.getPrimaryFile() + "!").initCause(fsie); // NOI18N
}
FileSystemNameListener fsListener;
boolean initListening = false;
synchronized(fsListenerMap) {
Reference<FileSystemNameListener> fsListenerRef = fsListenerMap.get(fs);
fsListener = fsListenerRef == null
? null
: fsListenerRef.get();
if(fsListener == null) {
// Create listener for that filesystem.
fsListener = new FileSystemNameListener();
fsListenerMap.put(fs, new WeakReference<FileSystemNameListener>(fsListener));
initListening = true;
}
}
if(initListening) {
fs.addPropertyChangeListener(fsListener);
fs.addVetoableChangeListener(fsListener);
}
fsListener.add(this);
// End of patch #25400.
}
/** Getter for data object.
*/
protected final DataObject getDataObject () {
return obj;
}
// #201696: useful if subclass implementing Savable
@Override public String toString() {
return obj.getPrimaryFile().getNameExt();
}
/** Adds property listener.
*/
public void addPropertyChangeListener(PropertyChangeListener l) {
prop ().addPropertyChangeListener (l);
}
/** Removes property listener.
*/
public void removePropertyChangeListener(PropertyChangeListener l) {
prop ().removePropertyChangeListener (l);
}
/** Adds veto listener.
*/
public void addVetoableChangeListener(VetoableChangeListener l) {
veto ().addVetoableChangeListener (l);
}
/** Removes veto listener.
*/
public void removeVetoableChangeListener(VetoableChangeListener l) {
veto ().removeVetoableChangeListener (l);
}
/** Test whether the support is in valid state or not.
* It could be invalid after deserialization when the object it
* referenced to does not exist anymore.
*
* @return true or false depending on its state
*/
public boolean isValid () {
return getDataObject ().isValid ();
}
/** Test whether the object is modified or not.
* @return true if the object is modified
*/
public boolean isModified() {
return getDataObject ().isModified ();
}
/** Support for marking the environement modified.
* @exception IOException if the environment cannot be marked modified
* (for example when the file is readonly), when such exception
* is the support should discard all previous changes
*/
public void markModified() throws java.io.IOException {
getDataObject ().setModified (true);
}
/** Reverse method that can be called to make the environment
* unmodified.
*/
public void unmarkModified() {
getDataObject ().setModified (false);
}
/** Method that allows environment to find its
* cloneable open support.
* @return the support or null if the environment is not in valid
* state and the CloneableOpenSupport cannot be found for associated
* data object
*/
public CloneableOpenSupport findCloneableOpenSupport() {
OpenCookie oc = getDataObject().getCookie(OpenCookie.class);
if (oc != null && oc instanceof CloneableOpenSupport) {
return (CloneableOpenSupport) oc;
}
EditCookie edc = getDataObject().getCookie(EditCookie.class);
if (edc != null && edc instanceof CloneableOpenSupport) {
return (CloneableOpenSupport) edc;
}
EditorCookie ec = getDataObject().getCookie(EditorCookie.class);
if (ec != null && ec instanceof CloneableOpenSupport) {
return (CloneableOpenSupport) ec;
}
return null;
}
/** Accepts property changes from DataObject and fires them to
* own listeners.
*/
public void propertyChange(PropertyChangeEvent ev) {
if (DataObject.PROP_MODIFIED.equals (ev.getPropertyName())) {
if (getDataObject ().isModified ()) {
getDataObject ().addVetoableChangeListener(this);
} else {
getDataObject ().removeVetoableChangeListener(this);
}
}
firePropertyChange (
ev.getPropertyName (),
ev.getOldValue (),
ev.getNewValue ()
);
}
/** Accepts vetoable changes and fires them to own listeners.
*/
public void vetoableChange(PropertyChangeEvent ev) throws PropertyVetoException {
fireVetoableChange (
ev.getPropertyName (),
ev.getOldValue (),
ev.getNewValue ()
);
}
/** Fires property change.
* @param name the name of property that changed
* @param oldValue old value
* @param newValue new value
*/
protected void firePropertyChange (String name, Object oldValue, Object newValue) {
prop ().firePropertyChange (name, oldValue, newValue);
}
/** Fires vetoable change.
* @param name the name of property that changed
* @param oldValue old value
* @param newValue new value
*/
protected void fireVetoableChange (String name, Object oldValue, Object newValue)
throws PropertyVetoException {
veto ().fireVetoableChange (name, oldValue, newValue);
}
/** Lazy getter for change support.
*/
private PropertyChangeSupport prop () {
synchronized (LOCK_SUPPORT) {
if (propSupp == null) {
propSupp = new PropertyChangeSupport (this);
}
return propSupp;
}
}
/** Lazy getter for veto support.
*/
private VetoableChangeSupport veto () {
synchronized (LOCK_SUPPORT) {
if (vetoSupp == null) {
vetoSupp = new VetoableChangeSupport (this);
}
return vetoSupp;
}
}
}
/** Listener for <code>FileSystem.PROP_SYSTEM_NAME</code> proeperty. */
private static final class FileSystemNameListener
implements PropertyChangeListener, VetoableChangeListener {
/** Set of Env's interested in changes on fs name. */
private final Set<Env> environments = new WeakSet<Env>(30);
public FileSystemNameListener() {
}
/** Adds another Env which is interested on fs name changes. */
public void add(Env env) {
synchronized(environments) {
environments.add(env);
}
}
public void propertyChange(PropertyChangeEvent evt) {
if(FileSystem.PROP_SYSTEM_NAME.equals(evt.getPropertyName())) {
Set<Env> envs;
synchronized(environments) {
envs = new HashSet<Env>(environments);
}
for(Env env: envs){
env.firePropertyChange(DataObject.PROP_VALID,
Boolean.TRUE, Boolean.FALSE);
}
}
}
public void vetoableChange(PropertyChangeEvent evt)
throws PropertyVetoException {
if(FileSystem.PROP_SYSTEM_NAME.equals(evt.getPropertyName())) {
Set<Env> envs;
synchronized(environments) {
envs = new HashSet<Env>(environments);
}
for(Env env: envs) {
env.fireVetoableChange(DataObject.PROP_VALID,
Boolean.TRUE, Boolean.FALSE);
}
}
}
} // End of class FileSystemNameListener.
/** Only for backward compatibility of settings
*/
private static final class Listener extends CloneableTopComponent.Ref {
/** generated Serialized Version UID */
static final long serialVersionUID = -1934890789745432531L;
/** entry to serialize */
private MultiDataObject.Entry entry;
Listener() {}
public Object readResolve () {
DataObject obj = entry.getDataObject ();
OpenSupport os = null;
OpenCookie oc = obj.getCookie(OpenCookie.class);
if (oc != null && oc instanceof OpenSupport) {
os = (OpenSupport) oc;
} else {
EditCookie edc = obj.getCookie(EditCookie.class);
if (edc != null && edc instanceof OpenSupport) {
os = (OpenSupport) edc;
} else {
EditorCookie ec = obj.getCookie(EditorCookie.class);
if (ec != null && ec instanceof OpenSupport) {
os = (OpenSupport) ec;
}
}
}
if (os == null) {
// problem! no replace!?
return this;
}
// use the editor support's CloneableTopComponent.Ref
return os.allEditors ();
}
}
}
| java |
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
.title{
display: flex;
align-items: center;
justify-content: center;
font-family: "Arial Black", sans-serif;
font-size: 4.5em;
letter-spacing: -1px;
background-color: black;
color: white;
}
/* nav */
#name{
color: #E19847;
position: absolute;
right: 1rem;
}
.navbar-dark .navbar-brand{
color: aqua;
}
.navbar-dark .navbar-brand:hover{
color: #FF851B;
}
.data-hide{
visibility: hidden;
transition: all 0.3s linear;
}
body {
margin: 0;
padding: 0;
/* background: #7C3238; */
/* font-family: 'Lobster', cursive; */
font-family: 'Roboto', sans-serif;
}
/* search css */
.search-box {
position: absolute;
top : 30%;
left: 50%;
transform: translate(-50%, -50%);
background: #2f3640;
height: 60px;
border-radius: 40px;
padding: 10px;
}
.search-box:hover > .search-text{
width: 240px;
padding: 0 6px;
}
.search-box:hover > .search-btn{
background: white;
text-decoration: none;
color: black;
}
.search-btn {
color: #e84118;
float: right;
width: 40px;
height: 40px;
border-radius: 50%;
background: #2f3640;
display: flex;
justify-content: center;
align-items: center;
transition: 0.4s;
cursor: pointer;
text-decoration: none;
}
.search-btn > i {
font-size: 20px;
}
.search-text {
border: none;
background: none;
outline: none;
float: left;
padding: 0;
color: white;
font-size: 16px;
font-weight: normal;
transition: 0.4s;
line-height: 40px;
width: 0px;
}
/* img on first page */
.img-corona img{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
width: 100%;
object-fit: cover;
}
.info{
/* height: 100vh;
width: 100%; */
}
.kidding .title{
font-size: 2rem;
height: 100vh;
}
/* info css */
.country-info .container{
display: flex;
justify-content: center;
font-size: 3rem;
text-align: center;
background-color: #17c5c2;
border-radius: 1rem;
margin-top: 12rem;
width: 20rem;
font-weight: 900;
/* font-family: cursive; */
}
.country-info .container:hover{
box-shadow: 0 40px 60px -20px rgba(12, 5, 62, 0.45);
cursor: pointer;
}
.container-1{
display: flex;
margin-top: 3rem;
justify-content: center;
}
.container-2{
display: flex;
margin-bottom: 4rem;
justify-content: center;
}
.card{
margin: 2rem;
width: 18em;
height: 15rem;
background-color:#BFFCFB;
}
.card:hover{
/* opacity: 0.9; */
box-shadow: 0 40px 60px -20px rgba(12, 5, 62, 0.45);
cursor: pointer;
}
.card-vaccine:hover{
box-shadow: 0 40px 60px -20px rgba(12, 5, 62, 0.45);
cursor: pointer;
}
.card-title{
text-align: center;
color: #025c5c;
}
.card-text{
text-align: center;
font-size: 3rem;
font-weight: 600;
/* font-family: cursive; */
color: black;
}
.card-header{
text-align: center;
font-size: 3rem;
color: #039e9e;
}
/* vaccination */
.card-vaccine{
background-color:#BFFCFB;
width: 50rem;
height: 30rem;
}
.card-text-vaccine{
font-family: 'Acme', sans-serif;
font-weight: 600;
margin-left: 3rem;
}
.country-info-note{
text-align: center;
}
/* testing page */
.container-test{
display: flex;
align-items: center;
justify-content: space-around;
margin: 6rem;
}
.container-test img{
width: 25rem;
object-fit: cover;
}
.container-test .card{
width: 30rem;
}
@media screen and (max-width:550px){
.title{
font-size: 2rem;
}
.kidding .title{
font-size: 1rem;
height: 100vh;
}
.search-box {
position: absolute;
top : 20%;
}
.search-box:hover > .search-text{
width: 150px;
padding: 0 6px;
}
.container-1{
display: flex;
flex-direction: column;
align-items: center;
}
.container-2{
display: flex;
flex-direction: column;
align-items: center;
}
.country-info .container{
width: 16rem;
font-size: 2rem;
}
.card{
/* margin: 1rem; */
width: 18rem;
height: 15rem;
}
.container-test{
flex-direction: column;
}
.container-test img{
width: 20rem;
margin: 2rem;
}
.container-test .card{
width: 20rem;
margin: 2rem;
}
/* vaccination */
.card-vaccine{
width: 19rem;
height: auto;
margin: 1rem;
}
.card-text-vaccine{
margin-left: 1rem;
}
.country-info-note{
text-align: center;
}
}
@media screen and (max-width:420px){
.title{
font-size: 2rem;
}
.search-box:hover > .search-text{
width: 100px;
padding: 0 3px;
}
}
/* Fotter */
.footer{
background-color: rgb(65, 64, 64);
color: aliceblue;
width: 100%;
}
.footer .foot-container{
padding: 1rem;
}
.foot-container .services{
display: flex;
flex-direction: column;
}
.foot-container .services h5,.about h5{
color: #FF851B;
}
.foot-container .about{
display: flex;
flex-direction: column;
}
.foot-container a{
text-decoration: none;
color: rgba(255,255,255,.5);
}
.foot-container a:hover{
color: white;
}
.foot-container{
display: flex;
justify-content: space-evenly;
}
.footer .company{
text-align: center;
}
.footer .company h4{
color: aqua;
}
.footer .links{
text-align: center;
font-size: 1.6rem;
padding-bottom: 2rem;
}
.footer .links a{
margin: 0.8rem;
color: white;
}
.footer .links a:nth-child(1):hover{
color:#4267B2;
}
.footer .links a:nth-child(2):hover{
color:#bc2a8d;
}
.footer .links a:nth-child(3):hover{
color:#0077b5;
}
.footer .links a:nth-child(4):hover{
color:#1DA1F2;
}
.footer .links a:nth-child(5):hover{
color: #4078c0 ;
}
/* 404 error page */
.error-container img{
height: 100%;
width: 100%;
object-fit: cover;
}
| css |
<reponame>tpill90/ValheimMods
{
"name": "FarmingSkill",
"description": "Adds a skill that reduces cultivator stamina cost",
"version_number": "0.0.5",
"website_url": "https://github.com/tpill90/ValheimMods/tree/master/FarmingSkill",
"dependencies": [
"denikson-BepInExPack_Valheim-5.4.1700",
"pipakin-SkillInjector-1.1.1"
]
} | json |
DHAKA: The mother of a 25-year-old Indian woman who was arrested in Dhaka for her alleged links with the banned militant outfit Neo-JMB (Jamaat-ul-Mujahideen Bangladesh) has demanded strong action against her daughter. Progya alias Ayesha Jannat Mohona alias Tasnim, hails from West Bengal's Hooghly, and had purportedly converted to Islam.
Progya was arrested by the Counter-Terrorism and Transnational Crime (CTTC) unit of Bangladesh police and has been charged with recruiting people for terror activities and raising funds, among other charges.
"I want her to be punished as per law," her mother Geeta Debnath (50), told media at her home in Dhaniakhali, a small town in Hoogly district of West Bengal, as she struggled to hold back her tears.
Daughter of a daily wage-earner, Progya, before converting, went missing in September 2016. Intelligence sleuths came to know that she had converted to Islam in 2009 while studying in school. "It appears someone took her into confidence. She came in touch with Asmani Khatun, the chief of JMB's women's youth wing in 2016, and was recruited in the banned militant outfit.
Since then Progya alias Ayesha started visiting Bangladesh frequently to meet with militant leaders. She was there in the garb of a guest teacher at religious institutes, as was the plan of the JMB.
Her arrest came to light 3 months after India's National Investigation Agency tracked down college student Tania Parveen, a suspected Lashkar-e-Tayeba member, and an agent of ISIS, in North 24 Parganas last March.
Neo-Jamat-ul-Mujahideen Bangladesh (JMB) has moles planted in West Bengal and other parts of India, said sources of the intelligence team.
An official said, "We consider Ayesha a serious threat. Ayesha, who belonged to Hogghly's remote Dhaniakhali area, went to Bangladesh and was carrying out activities against the government of the neighbouring country. We do not know how many youths she recruited in India. "
Asmani Khatun, 28, was arrested on February 4 from Dhaka's north Kamalapur area by a CTTC team. And since then Pragya alias Ayesha was assigned to recruit youths for the banned militant outfit, said detective officials in Dhaka.
The central agency informed India's Ministry of External Affairs about Ayesha's arrest. "We need to communicate with Bangladesh Police to know the extent of Ayesha's activities in West Bengal and India," the officer explained. Progya's mother claimed she had no idea about what was going on with Ayesha.
"My daughter was absolutely normal. I clearly remember the day my daughter left home, never to return again. One morning ahead of Durga Puja in 2016, Pragya left home saying she was going out on errands," she said. The poor mother came to know about the arrest of her daughter from the media. (IANS) | english |
<filename>errorprone-checks/README.md
The creation of custom errorprone checkers was largely derived from:
* https://github.com/tbroyer/gradle-errorprone-plugin
* https://errorprone.info/docs/installation
* https://github.com/google/error-prone/wiki/Writing-a-check
To allow for debugging from within intellij, the following must be added to the VM args
in the run/debug configuration (this assumes your gradle cache is at the default location under
your home):
```
-Xbootclasspath/p:${HOME}/.gradle/caches/./modules-2/files-2.1/com.google.errorprone/javac/9+181-r4173-1/bdf4c0aa7d540ee1f7bf14d47447aea4bbf450c5/javac-9+181-r4173-1.jar
```
| markdown |
{
"id": 206541,
"name": "Anime: Panty and Stocking Theme for Discord.gg",
"description": "From the anime show, PANTY AND STOCKING",
"user": {
"id": 1197719,
"name": "<NAME>",
"email": "redacted",
"paypal_email": null,
"homepage": null,
"about": null,
"license": null
},
"updated": "2021-06-23T01:43:53.000Z",
"weekly_install_count": 7,
"total_install_count": 7,
"rating": null,
"after_screenshot_name": "https://userstyles.org/style_screenshots/206541_after.png?r=1624435514",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": [
"https://userstyles.org/style_screenshots/206541_additional_38204.png?r=1624435514"
],
"license": "ccby",
"created": "2021-06-23T01:38:43.000Z",
"category": "site",
"raw_subcategory": "discord",
"subcategory": "discord",
"additional_info": "this is version 0.0",
"style_tags": [],
"css": "@-moz-document url(https://www.discord.com/channels/me) {\r\n\tbody {\r\n\t\tbackground-color: black !important;\r\n\t}\r\n}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/206541/anime-panty-and-stocking-theme-for-discord-gg.user.js",
"style_settings": []
} | json |
import { Component, OnInit } from '@angular/core';
import { HttpErrorResponse } from '@angular/common/http';
import { Ambulances, Entry } from 'src/app/models/ambulancemodel';
import { AppGlobals } from 'src/app/globals/app.global';
import { SHEET } from 'src/app/globals/app.enum';
import { LoadingService } from 'src/app/provider/loading.service';
import { ApiService } from 'src/app/provider/api.service';
import { AlertService } from 'src/app/provider/alert.service';
import { Ambulance } from 'src/app/models/ambulancedatamodel';
import { ContactService } from 'src/app/provider/contact.service';
@Component({
selector: 'app-ambulance',
templateUrl: './ambulance.page.html',
styleUrls: ['./ambulance.page.scss'],
})
export class AmbulancePage implements OnInit {
globals = AppGlobals
dataArray: Ambulance[] = []
searchArray: Ambulance[] = []
isLoading: boolean = false
constructor(
public loadingProvider: LoadingService,
public restProvider: ApiService,
public contactProvider: ContactService,
private alert: AlertService
) { }
ngOnInit() {
this.getAmbulanceData()
}
ngOnDestroy() {
this.dataArray = []
this.searchArray = []
}
openAmbulanceDetails(data) {
}
async getAmbulanceData(event?: any) {
if (!event) {
this.isLoading = true
await this.loadingProvider.showLoader()
}
this.dataArray = []
this.restProvider
.getData(AppGlobals.API_ENDPOINT(SHEET.AMBULANCES))
.subscribe(
(data: Ambulances) => {
let entryArr: Entry[] = data.feed.entry
for (var entry of entryArr) {
var ambulanceObj: Ambulance = { serialNo: '', name: '', person: '', contactNumber: '', address: '' }
ambulanceObj.serialNo = entry["gsx$sr.no."].$t
ambulanceObj.name = entry.gsx$ambulance.$t
ambulanceObj.person = entry.gsx$person.$t
ambulanceObj.address = entry.gsx$address.$t
ambulanceObj.contactNumber = entry.gsx$contact.$t
this.dataArray.push(ambulanceObj)
}
this.searchArray = this.dataArray
if (event) {
event.target.complete()
} else {
this.isLoading = false
this.loadingProvider.hideLoader()
}
//console.log(this.dataArray)
},
(err: HttpErrorResponse) => {
if (event) {
event.target.complete()
} else {
this.isLoading = false
this.loadingProvider.hideLoader()
}
this.alert.presentAlert(err.error && err.error.message ? err.error.message : err.message)
}
)
}
listRefresh(event: any) {
this.getAmbulanceData(event)
}
async getSearchItems(event: any) {
this.searchArray = this.dataArray
let searchText = event.target.value
if (searchText && searchText.trim() !== '') {
this.searchArray = this.searchArray.filter((item: Ambulance) => {
return (item.name.toLowerCase().indexOf(searchText.toLowerCase()) > -1
|| item.person.toLowerCase().indexOf(searchText.toLowerCase()) > -1
|| item.address.toLowerCase().indexOf(searchText.toLowerCase()) > -1)
})
}
}
openNumber(event: Event, data: Ambulance) {
event.preventDefault()
event.stopPropagation()
if(data.contactNumber.length == 0) return
let recipient = data.name ? data.name : data.person
this.contactProvider.callPhoneNumber(recipient, data.contactNumber.split(' ').join(''))
}
}
| typescript |
Udupi: The Deputy Commissioner and District Election Officer of Udupi-Chikkamaglauru Lok Sabha Constituency Hephsiba Rani Korlapati on Saturday, May 25 thanked the voters, polling, counting and security staff, candidates and political parties for their cooperation in organizing free, fair and peaceful elections for the Udupi-Chikkamaglauru Parliamentary seat.
A large number of officials kept a strict vigil over the entire situation especially during the polling hours by visiting the key and vulnerable polling booths and ensuring people that they do not face any sort of problems in exercising their franchise during the polls.
DC Hephsiba Rani Korlapati also thanked the wise voters of the district for upholding the glorious tradition of exercising their franchise freely by casting their votes without any fear. She said that it was due to the voter’s awareness and participation that a massive polling turnout was achieved in the constituency. The huge participation of the voters reflected the love the citizens of Udupi-Chikkamagluru constituency have for their democratic rights, she added.
Hephsiba Rani Korlapati further said that the polling was completed peacefully and there was no report of any untoward incident from any polling booth in the parliamentary constituency. She said that no major incident of violence was reported during the voting and that peace and harmony were maintained during the counting process adding that the district administration had made elaborate security arrangements for the counting of votes and the votes were counted in a professional manner by the counting staff.
Speaking about the preparation to tackle natural calamities Hephsiba Rani Korlapati said, “Since there is a delay in NDRF reaching the natural calamity-hit areas in cases of emergency, the state government has given permission to deploy NDRF teams in Dakshina Kannada and Udupi districts before the onset of monsoon. The NDRF team has already been stationed at Suratkal to benefit both Udupi and Dakshina Kannada and the team will be arriving in Udupi by next week”.
She also said that the district administration has decided to introduce a special Mobile compliant app to respond immediately in the Udupi CMC limits. The Mobile App ‘Udupi Help. com’ is under construction and will be available in a week in the Google Play Store. The Citizens of Udupi CMC limits can register their complaint related to Natural calamity through this Mobile App and the concerned departments will address the problem within 6 hours.
Nisha James Superintendent of Police Udupi District and Vidya Kumari Additional DC were also present. | english |
After scrapping of the first proposal, the Meghalaya government is working on another proposal of building a flyover to ease traffic congestion in Shillong city.
An official in the Urban Affairs department said survey has been undertaken on a proposal to construct flyover from Bivar Road near an official residence of the Chief Secretary to the CRPF Camp at Polo.
“Once the project is found feasible, a detailed project report would be prepared,” the official said.
The first proposal to build a flyover from Rap’s Mansion near Secretariat to Them Ïew Mawïong in the city was made during 2004-2005.
However, this proposal has been closed as the project was not feasible mainly due to unavailability of space including objection raised by the ministry of defence and Meghalaya High Court.
When asked about the newly proposed flyover, Urban Affairs Minister Hamletson Dohling said survey was conducted but the report is yet to be received.
He informed that the survey was carried out by engineers of the PWD (Roads) and Urban Affairs department from Bivar Road to Polo.
Dohling said the State government is concerned over the problem of congestion and wanted to take steps to address traffic congestion in Shillong city.
Dohling said the government also wanted to develop an area at Barik as a parking space and from there, connect with skywalk to Lachumier and the Secretariat.
Traffic congestion is getting from bad to worse in Shillong city due to lack of scopes to widen roads.
The number of cars keeps on increasing day by day and roads in the city are chock-a-bloc everyday especially during school hours.
Using school bus is one of the solutions to address congestion in the city, but the government has not compelled school authorities, especially those of private schools to use school bus.
Many students are dropped and fetched off by using their own vehicles everyday and roads in Shillong city including the National Highway are jammed during school hours. | english |
Hotly following the Nvidia GeForce GTX 1660 Ti that just launched days prior, apparently we can expect a laptop version of the graphics card to come out soon.
A new mobile Nvidia GPU codenamed 'N18E-G0' popped up in Notebook Check’s database, and the outlet strongly suspects this could the GTX 1660 Ti-class GPU meant for laptops. The codename lines up with those for existing notebook-based graphics processors, including the RTX 2060 (N18E-G1), RTX 2070 (N18E-G2) and RTX 2080 (N18E-G3).
Unfortunately, Notebook Check doesn’t list any specific specs for this rumored GTX 1660 Ti for notebooks. However, we can make some assumptions based the original desktop version. The chip is almost guaranteed to be built upon a 12nm Turing architecture and feature GDDR6 memory – but, it probably lack any ray tracing or tensor processing cores.
- Looking for the best graphics cards for desktop PCs?
- When will we see AMD Radeon VII come to gaming laptops?
Currently, one of the most inexpensive gaming laptops featuring RTX graphics is the $1,499 MSI GL63 in the US, and that’s on a model with only an Intel Core i5-8300H CPU, 16GB of memory and a 256GB drive. Internationally, the most-basic MSI GL63 runs for a little more at £1,649 in the UK and AU$2,499 in Australia, thanks to having a higher-tier Intel Core i7-8750H CPU inside.
Comparatively, a laptop featuring a mid-range Nvidia GTX 1060 from the Pascal line of mobile GPUs could be had for as little as $1,099 (about £820, AU$1,450), as with the Acer Predator Helios 300.
Although it's far from confirmed, we hope a mobile version of the GTX 1660 Ti will help bring down the price of Turing-powered gaming laptops to more approachable levels.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Kevin Lee was a former computing reporter at TechRadar. Kevin is now the SEO Updates Editor at IGN based in New York. He handles all of the best of tech buying guides while also dipping his hand in the entertainment and games evergreen content. Kevin has over eight years of experience in the tech and games publications with previous bylines at Polygon, PC World, and more. Outside of work, Kevin is major movie buff of cult and bad films. He also regularly plays flight & space sim and racing games. IRL he's a fan of archery, axe throwing, and board games.
| english |
A shocking incident took place in the Suryapet district of Telangana which proves the severity of the transmission of the virus from the infected persons to the secondary contacts.
Going into details, a lady in Suryapet played Asta Chamma(a game similar to ludo) with 31 members who all now tested positive for the novel coronavirus creating many fears.
Many persons who came in contact with her tested positive for the virus increasing the toll of positive cases in the district at once. As of now the count of COVID-19 cases in the district reached 83.
Earlier the Telangana government declared Suryapet as the Hotspot for the virus. The authorities have requested the people to stay at their homes as no one knows who is infected with the virus. | english |
1 Na ek keimi nind. Na Krais nge wu na ek kend tunand mon. Gos nge Gui Ka ei, na noman tuk ełe paki topu kin, na noman ngołum. Yi ku, na noman tuk ełe piimbii ek ei, Gos Gui Ka ni ngołum. 2 Yi mił, na noman tuk ełe embin owundu pepi kin, na nge wumb tiłap miyem ende Jura wumb kin, na noman tuk ełe kumbii owundu kunum kunum pepi pupu kin, poru ninanim mon. 3 Yi mił, na kapłi erim kin, na en enim piip kin, na Krais wakin top mani kind si kindip yi enj kin, kapłi Gos na kos owundu piipi kin, na sipi dup konu kis ełe kindmba ełe nge, na nge wumb tiłap miyem ende Jura wumb ei, Gos sipi orung simba. 4 En enim Esrel wumb, Gos nge wumb tiłap se mundum. Mundang Gos eim erang kin, eim nge kingam noł mułangin kin, eim nge noman dinga tiłang owundu ei kenjing ku. Nga Gos eim ek dinga nipi pendrim ek ei ni ngopu kin, nga Gos eim lo ek ni ngopu kin; nga enim Gos keimi kin men tołmun oł ei nin; nga Gos ok ek keimi nipi ngumbii nirim epi ei sinjing ku. 5 En enim kumb ok kupenjpin noł Eiparam, Aisak, Jeikop nge tiłap ende ełe nge, en enim tonu onjung. Ok tiłap ełe nge, Krais ya mani mei ełe opu, eim mei wu mendpił, wumb ei nge tiłap ende mułum. Mułang kin, pe eim epi kanim kanim pei Gos tep er mołum. Eim Gos mendpił! Kapłi sinim eim embe kunum kunum ambił tonu kindmin, keimi!
6-7 Ba na ek nind ei, Gos ok ek keimi ni pendim ek ei tonu onanim, pa ninand mon. Nimbił erang, wumb tiłap kopur, Esrel wumb kin tonu onjung. Ok wumb tiłap ei Esrel nge wumb tiłap mendpił mon. Yi mił ku, Eiparam nge tiłap wumb aninga kopur eim kin tonu onjung; ba wumb ei, Eiparam nge kingam noł mendpił mon. Gos ek yi nipi Eiparam ngum, “Aisak nge wumb tiłap mendpił ei, ninim nge wumb keimi mendpił mułngii,” pa nim. 8 Ei pułe yi mił, kangił ya mani mei ełe wumb ngenj ełe mengk tor kindinmin kangił ei, Gos nge kingam noł mendpił mon. Ba pii gii wumb kangił ngenj ełe mengk tor kindinmin ei, Gos eim ok ek keimi ni pendrim mił menginmin ei, Eiparam nge wumb tiłap keimi mendpił mołmun. 9 Yi mił, Gos ok ek keimi ni tor kind pendrim mił ek yi ninim. Kunum ełe, nga kung ngii ełe na orung ombii ni pendinj kunum ei, amb Sera kangi endi mengmba.
14 Yi mił, sinim nipe ek endi nimin? Sinim Gos oł kun ka endi enanim pa nimin min? Ei mon mendpił! 15 Yi mił, Gos Moses kin ek yi nirim, “Na wumb nii endi kin, noman ka ngumbii wu ei, kapłi yi erip kin, noman ka ngumbii. Nga na wu endi kin kaimb sinj kin, kapłi yi mił na kaimb simbii ku.” 16 Yi mił peng kin, Gos noman kaimb siłim oł ei, wumb en enim noman ełe, epi ei simin ni piinmin mił ei, sinerngii mon. Ba Gos eim noman ełe piiłim mił, wumb kin kaimb sipi ngołum. 17 Yi mił, ok Gos ek ka ei mon poł pendrim mił, King Pero kin nipi ngurum. “Na nim kin epi enj ei, nim king owundu mołun pułe ei, na nim si kindamb mołun ei nge, na nge noman dinga ei nge, andan tamb kin, wumb pei keningii. Kanik kin, na nge embe ei, wumb mei konu orung orung pei ambił tonu kindngii. Ełe nge mendpił, na nim king mundunj,” pa nirim. 18 Yi mił peng kin, Gos eim wumb nii endi kin, eim noman ka ngumbii ni piiłim mił ei, kapłi eim wumb ei kin, eim noman ka piipi kin, kaimb si ngołum. Nga Gos wumb nii endi kin, noman tuk dinga kis pengłi niłim mił, kapłi Gos eim noman ełe, wumb ei kin, noman tuk dinga kis pengłi niłim mił ełim. Nga Gos eim noman ełe ermbii ni piimba ei ermba ku.
19 Enim wumb endi na kin ek yi nimba. “Ei yi mił kapłi nimbił erang Gos wumb oł kis enmin ninim. Nga wumb nii endi Gos noman ełe to eipi kindmba?” 20 Ba ei nim wu nii endi dinga pukun kin, Gos kin ek ngokun ek ni orung kindnjii min? Ek ekin endi yi mił pałim. Kapłi mei nganmbi ming endi mił wu endi erim kin ek yi nimba? “Nimbił erang nim na yi mił en?” nimba. 21 Pe wu endi mei nganmbi sipi kin, ming ełim wu endi eim mei aninga kopur sipi, ming tał erim. Wu ei ming endi kongun ka ełim ming ka erim. Nga endi ming ka mon, ei kongun wii mił ming endi erim. Erim ei kapłi min mon?
22 Gos oł erim mił ei kapłi min mon? Gos eim popuł kis pim popuł ei, peni ełe tor kindmba enim kindang kin, wumb Gos nge noman dinga ei piik kun erngii. Pe nga, wumb ming mił wumb ei, mandi dup konu ełe ngenj kumbii singii er mołmun. Ba Gos eim wumb ei kin, kunum olt kanpi wiik tang kin, wumb molk punmun. 23 Yi mił erang, Gos eim noman ełe, tiłang owundu pei ka wii ei, sinim wumb pei kin noman ka andan topu, ngo tor kindrim. Kindpi kin, wumb ming mił nii endi, Gos eim kin ok sipi mundrum wumb ei kin, noman ka piipi, kaimb sipi ngurum wumb ei, Gos nge tiłang owundu ka wii singii. 24 Sik kin, sinim mendpił, Jiisas kin pii gii ninjpin wumb ei, Gos eim kin sipi mundrum. Ba ei Jura wumb tiłap mendpił mon. Ba nga kopur torung wumb tiłap eipi, Gos eim kin sipi mundrum ku. 25 Gos ok ek ka ei ek ni tor kindiłim wu Osiya, mon poł pendrim mił yi ku ninim.
26 Wumb en enim mulk konu mendpił ełe, Gos wumb ei kin ek yi nirim.
27 Gos ok ek ka ek ni tor kindiłim wu Aisaiya poł pendrim mił Esrel wumb kin wii dinga topu yi ninim.
29 Gos ek ka ok Aisaiya mon poł pendrim mił yi ninim,
30 Yi mił erang, pe sinim nipe ek endi nimin? Ek yi mił endi nimin; torung wumb tiłap eipi ei, en enim Gos nge oł kun ka ei, kongun dinga erik sinenjing mon. Ba wumb en enim Gos eim kin sipi mundang kin, kun ka mulnjung. Nimbił erang, wumb ei, en enim Gos eim kin pii gii ninjing ei, sipi mundum. 31 Ba Jura wumb tiłap en enim kongun dinga erik, en enim Gos lo ek ełe, kun ka ei ekii simin nik enjing. Ba en enim Gos nge lo ek ełe, ekii sik enjing ei, kapłi enerim mon mendpił! 32 Nimbił erang en enim kapłi enerim? Yi erang kin, en enim Gos kin pii gii nik, Gos nge oł kun ka oł ei simin nik enenjing mon. Ba en enim kongun dinga erik kin, Gos nge oł kun ka simin ni piinjing wumb ei, en enim Krais ei kom ku mił mołum ei, wumb ei simb kom ku ełe tok bok tunjung. Tok kin, Krais kom ku mił, eim kin pii gii ninenjing mon. 33 Kumb ok, Gos ek ka mon poł pendrim mił ek ei Krais kin yi ninim.
| english |
Title: “Rent-seeking Induced Inequality Traps”.
Abstract: Does inequality affect rent seeking and vice-versa? Social scientists have argued that inequality fosters rent seeking and that rent seeking is likely to reinforce existing inequalities. In this paper, I formalize these inter-linkages by modeling rent seeking in an unequal endowment economyand analyze the conditions under which an inequality trap would exist. I find that when the costs are exogenous, more inequality fosters a greater proportion of rentiers which in turn perpetuates existing inequities. When costs are adjusted to maximize revenue, the proportion of rentiers shrinks. However, both the cost of rent seeking and ex-post inequality increase. The results show how economies can end up in inequality traps under very weak conditions in the presence of rent seeking.
| english |
/**
* Copyright (c) 2020 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "verifiedtlstransport.hpp"
#include "common.hpp"
#if RTC_ENABLE_WEBSOCKET
namespace rtc::impl {
VerifiedTlsTransport::VerifiedTlsTransport(shared_ptr<TcpTransport> lower, string host,
certificate_ptr certificate, state_callback callback)
: TlsTransport(std::move(lower), std::move(host), std::move(certificate), std::move(callback)) {
#if USE_GNUTLS
PLOG_DEBUG << "Setting up TLS certificate verification";
gnutls_session_set_verify_cert(mSession, mHost->c_str(), 0);
#else
PLOG_DEBUG << "Setting up TLS certificate verification";
SSL_set_verify(mSsl, SSL_VERIFY_PEER, NULL);
SSL_set_verify_depth(mSsl, 4);
#endif
}
VerifiedTlsTransport::~VerifiedTlsTransport() {}
} // namespace rtc::impl
#endif
| cpp |
{"track":"ruby","exercise":"two-fer","id":"dc75ea389b6c4eafb6cca6d20c356c16","url":"https://exercism.io/my/solutions/dc75ea389b6c4eafb6cca6d20c356c16","handle":"Kyle-Law","is_requester":true,"auto_approve":false} | json |
The Congress-led government in the state has been under fire after a spate of rape cases, including the gang rape of a 9-year-old woman in Alwar.
Rajasthan High Court on Friday issued a notice to the state government seeking its reply on the recent incidents of gang-rape in the state, news agency ANI reported.
The Congress-led government in the state has been under fire after a spate of rape cases, including the gang rape of a 9-year-old woman in Alwar, with the BJP alleging the “failure” of law and order in Rajasthan and demanding the resignation of chief minister Ashok Gehlot.
The Bharatiya Janata Party has accused the Congress government of hiding the Alwar gang-rape case, saying it feared a political fallout during the ongoing elections.
The 19-year-old woman was allegedly raped in front of her husband by five men, who filmed the crime and later circulated the video on social media. The incident occurred on April 26 after the men waylaid the couple and beat up the husband before taking turns to rape the woman.
The victim’s family has said the local police did not register a case for days although a complaint was lodged on April 29. An FIR was finally registered on May 2 under the Indian Penal Code and Scheduled Castes and Tribes (Prevention of Atrocities) Act.
The incident triggered widespread protests in Alwar, Jaipur, Dausa and nearby areas and a protest march led by the BJP’s Rajya Sabha member Kirori Lal Meena had turned violent in Dausa on Tuesday, leaving over half a dozen people injured. | english |
pub mod number_of_islands_200;
pub mod shortest_word_distance_ii_244;
pub mod graph_valid_tree_261;
pub mod walls_and_gates_286;
pub mod smallest_rectangle_enclosing_black_pixels_302;
pub mod number_of_islands_ii_305;
pub mod shortest_distance_from_all_buildings_317;
pub mod nested_list_weight_sum_339;
pub mod nested_list_weight_sum_ii_364;
pub mod ternary_expression_parser_439;
pub mod find_all_numbers_disappeared_in_an_array_448;
pub mod the_maze_490;
pub mod the_maze_iii_499;
pub mod the_maze_ii_505;
pub mod number_of_distinct_islands_694;
pub mod number_of_distinct_islands_ii_711; | rust |
I have not visited but what I love hearing is that this year's house pays homage to the long design history of the area with natural and tropical motifs and unique-to-Florida color schemes. For those who cannot attend in person, they offer a 3D virtual video tour. Purchase tickets here.
We are thrilled to note that our root cellar designs fabric is featured in the Primary Bedroom, a tented retreat by Ashley Gilbreath. Our Magnolia Spin pillow on the bed surrounded by a beautifully draped room with lots of gorgeous textiles. This truly feels like you are on vacation.
a gorgeous, Classic pattern play of blue and white by Andrea Schumacher. The chandelier is so Old Palm Beach, and that celiling- I love it!
One of my all-time favorite rooms was Sarah Bartholomew's space at another Kips Bay in New York City years ago, so I'm not surprised that her tented bedroom (seems a theme with tented rooms, folks!) is a stunner. Again, the feeling of the exotic yet grounded in history and a sense of true American style beckons you to lounge.
I'm partial to swinging furniture so seeing this floating daybed has me smitten. Surrounded in a very unique very Floridian sunshine color scheme with rattan and touches of tropical, Tiffany Brook's room is one of my favorites. That light and lacquered ceiling is icing on the cake.
| english |
The fear of corporate domination, real or perceived, is growing as Indians fear it signals an onslaught on their livelihoods, data privacy, and competition, a fear magnified by Facebook’s recent announcement that WhatsApp will be integrated with Instagram and its other products.
Corporates have warned against the use of WhatsApp for company work. Some individual users in India are worried that the integration will mean that even more of their personal data will be tapped for commercial gain and are switching to other messaging apps. After all, the figures are huge. WhatsApp has 400 million users in India, Facebook has 380 million, and Instagram has 140 million.
Shopkeepers and traders are worried. The Confederation of All India Traders (CAIT) has written to Communications minister Ravi Shankar Prasad demanding that he ban WhatsApp because it could allegedly violate the privacy of its members.
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 |
US President Donald Trump’s education secretary on Thursday resigned over the Capitol Hill violence, AFP reported. Education secretary Betsy DeVos is Trump’s second cabinet member who resigned due to Wednesday’s violence. The US transport secretary Elaine Chao had also resigned on Thursday over Capitol Hill violence.
“That behavior was unconscionable for our country,” DeVos said in a letter to Trump, published by the US media.
“There is no mistaking the impact your rhetoric had on the situation, and it is the inflection point for me,” she added.
“It has deeply troubled me in a way I simply cannot set aside,” she added, she added, AFP reported.
Chao is married to Senate Senate Majority Leader Mitch McConnell, a Republican and a close aide to Trump.
On Wednesday, several Trump supporters stormed the Capitol Hill building, during Congress’ session convened to certify President-elect Joe Biden’s Electoral College win.
Four people died in the violence that erupted.
Undeterred, the lawmakers went ahead with the certification and affirmed Biden’s victory, who will be sworn-in as the 46th President of the United States on January 20. | english |
<filename>src/app/core/guard/jwt.service.ts
import { Injectable } from '@angular/core';
import { JwtHelper } from 'angular2-jwt';
import * as _ from 'custom-lodash';
@Injectable()
export class JwtService {
private jwtHelper: JwtHelper = new JwtHelper();
isTokenValid(token: string) : boolean {
if (_.get(token, 'length', 0) > 0) {
return !this.jwtHelper.isTokenExpired(token);
} else {
return false;
}
}
}
| typescript |
As the Monsoon session of Parliament begins on Monday with the Presidential election, hectic political parleys are lined for the weekend. While the ruling NDA and the Opposition will hold separate meetings to pick their Vice-Presidential candidates, both sides will sit together to discuss ways to have a smooth session that is scheduled to end on August 12.
Prime Minister Narendra Modi will sit with his senior party leaders in the parliamentary board on Saturday to finalise NDA’s Vice-Presidential candidate for the August 6 election.
The electoral college for picking the next Vice-President comprises members of the Lok Sabha and Rajya Sabha. The NDA candidate is expected to win hands down as out of the current strength of 780, the BJP has 394 MPs, more than the majority mark of 390. In order to put up a fight, the Opposition parties are trying to field a joint candidate. The Opposition leaders, including from the Congress, are set to meet on Sunday to discuss the joint candidate.
On Saturday evening, BJP President J P Nadda is expected to meet his party MPs. The BJP leaders will also meet its alliance partners to discuss the Monsoon session and the Vice-Presidential election.
The government has called an all-party meeting on Sunday to discuss the agenda for the Monsoon session and seek support of the Opposition for a “fruitful” session, sources said. Vice-President M Venkaiah Naidu and Lok Sabha Speaker Om Birla will hold meetings of floor leaders of each House for the same purpose.
Meanwhile, addressing a meeting of the presiding officers from 17 states and UTs, Lok Sabha Speaker Om Birla said the discussions should be dignified and members should conduct themselves as per the decorum of the House.
Birla also mentioned a routine Rajya Sabha circular restricting demonstrations, dharnas or religious ceremonies in the precincts of Parliament House has triggered protests from the Opposition MPs. “It (such circulars to members) is a process. This practice has been going on for a long time…2009 or even before,” he said. | english |
The flash sales site TouchOfModern is looking to continue expanding overseas, after an eventful March in which it resolved its lawsuit with Fab.com and raised a $3 million Series A round. Having extended its services to Canada in April, TouchOfModern has plans to move into Asian markets early next year.
Co-founder and CEO Dennis Liu told us that the suit, which Fab.com filed against TouchOfModern last August, was resolved out of court with no material impact to the business. He declined to give further details.
Fab.com originally filed the lawsuit on the basis that TouchOfModern infringed on its trademarks, trade dress, and copyrights, and that it copied key site design elements.
Despite any investor doubts that could have resulted from the lawsuit, TouchOfModern closed a $3 million funding round with Mike Maples that same month. Hillsven Capital, which invested in the company’s seed round, also participated.
In addition to scaling the company and hiring more team members, the funding will help fuel TouchOfModern’s international expansion.
The expansion into Canada was something of a test run to learn the logistics of international shipping before making the move into Asia early next year, Liu said. The goal is to open up service to major coastal hubs including Seoul, Hong Kong, and potentially Taiwan. This would happen by partnering with or acquiring another company abroad, or opening an office to establish operations there.
As yet another luxury flash sales site, TouchOfModern has sought to differentiate itself from competitors by appealing to an older, male demographic with a high disposable income — or, more likely, guys who aspire to belong to that demographic. Comparable sites like Gilt Groupe, Fab.com, and One Kings Lane are all female oriented, Liu said, while Thrillist’s Jack Threads has considerably cheaper offerings.
Liu said that TouchOfModern disassociates itself from high discounts and cheap products, despite that it is in fact a sales site. The goal, he said, is to build a brand around high end items.
TouchOfModern recently hit over eight figures in revenue, Liu said, which is significantly better than the development team has done in the past. The company is itself a two-fold pivot from the “experiences marketplace” Skyara, which later turned into RAVN, an event planning app. Considering that neither lasted much more than a year, TouchOfModern may be shaping up to be the most successful pivot yet, not that the bar is terribly high.
| english |
<reponame>akanagusku/reclameaqui-front
import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { environment } from 'environments/environment';
declare var google: any;
@Component({
selector: 'app-complain-prediction-list-dashboard',
templateUrl: './complain-prediction-list-dashboard.component.html',
styleUrls: ['./complain-prediction-list-dashboard.component.scss']
})
export class ComplainPredictionListDashboardComponent implements OnInit {
complainsByState = [];
constructor(private httpClient: HttpClient) { }
ngOnInit() {
this.httpClient.get(`${environment.BACKEND_URL}complain/quantity-by-state`).subscribe((resComplainsByState: []) => {
this.complainsByState = resComplainsByState;
google.setOnLoadCallback(this.drawRegionsMap(this.complainsByState));
});
google.load('visualization', '1', {
'packages': ['geochart', 'table']
});
}
drawRegionsMap(complainsByState) {
let quantities = [['State', 'Views']];
complainsByState.forEach((complainByState) => {
quantities.push(['BR-' + complainByState.state, complainByState.quantity])
});
var data = google.visualization.arrayToDataTable(quantities);
var geochart = new google.visualization.GeoChart(document.getElementById('chart_div'));
var options = {
region: 'BR',
resolution: 'provinces',
colorAxis: {colors: ['#e7711c', '#4374e0']}
};
geochart.draw(data, options);
}
}
| typescript |
<gh_stars>1-10
{
"event": {
"title": "ENEI",
"name": "Encontro Nacional de Estudantes de Informática",
"year": "2020",
"description": "O Encontro Nacional de Estudantes de Informática regressa nos dias 23, 24, 25 e 26 de fevereiro e volta para marcar a diferença na cidade de Braga!",
"logo": "/img/eneiLogoWhite.png",
"cover": "/img/hero.png",
"startingDate": "Feburary 23, 2020 14:00:00",
"endingDate": "Feburary 26, 2020 17:00:00",
"keywords": [
"Conferência",
"Tecnologia",
"Informática",
"ENEI",
"CeSIUM",
"Braga",
"UMinho"
],
"url": "https://2020.enei.pt"
},
"navbar": {
"pages": [
{ "name": "Agenda", "link": "/agenda" },
{ "name": "Oradores", "link": "/speakers" },
{ "name": "Desafios e Prémios", "link": "/challenges" },
{ "name": "Equipa", "link": "/team" },
{ "name": "Embaixadores", "link": "/ambassadors" },
{ "name": "Candidaturas", "link": "/applications" },
{ "name": "FAQs", "link": "/faqs" },
{ "name": "Blog", "link": "https://medium.com/eneiconf" }
],
"logo": "/img/eneiLogoWhite.png"
},
"social": {
"facebook": "ENEIConf",
"twitter": "eneiconf",
"instagram": "eneiconf",
"github": "eneiconf",
"medium": "eneiconf"
},
"ambassadors": {
"allowingApplications": false,
"applicationsLink": "https://link.medium.com/VgDSweHUx2"
}
}
| json |
html {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
SimSun, sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
自定义文字过长处理
*/
.my-ellipsis {
white-space: nowrap;
text-overflow: ellipsis;
display: inline-block
}
/**
自定义分割线
*/
.my-hr {
height: 1px;
background-color: #eeeeee;
margin: 12px auto
}
/**
自定义超链接
*/
.my-a {
color: black !important;
}
.my-a:hover {
color: #2a7ae2 !important;
text-decoration: none !important;
}
/**
自定义超链接
*/
.my-aw {
color: white !important;
}
.my-aw:hover {
color: rgba(255,255,255,0.9) !important;
text-decoration: none !important;
}
.label {
border-radius: 0;
display: inline-block;
font-weight: 400;
text-shadow: none
}
.btn-define {
color: #fff;
background-color: #09f;
border-color: #0086e6;
border-radius: 3px
}
.btn-define:hover, .btn-define:focus, .btn-define:active, .btn-define.active, .open .dropdown-toggle.btn-define {
color: #fff;
background-color: #0089ee;
border-color: #357ebd
}
.btn-define:active, .btn-define.active, .open .dropdown-toggle.btn-define {
background-image: none
}
.btn-define.disabled, .btn-define[disabled], fieldset[disabled] .btn-define, .btn-define.disabled:hover, .btn-define[disabled]:hover, fieldset[disabled] .btn-define:hover, .btn-define.disabled:focus, .btn-define[disabled]:focus, fieldset[disabled] .btn-define:focus, .btn-define.disabled:active, .btn-define[disabled]:active, fieldset[disabled] .btn-define:active, .btn-define.disabled.active, .btn-define[disabled].active, fieldset[disabled] .btn-define.active {
background-color: #09f;
border-color: #0086e6
}
.btn-define .badge {
color: #09f;
background-color: #fff
}
#scroll-top {
background: #74b3fb;
color: #fff;
bottom: 20px;
right: 50px;
height: 30px;
line-height: 30px;
width: 30px;
position: fixed;
z-index: 9999;
display: none
}
.syntaxhighlighter.collapsed .toolbar {
border: 1px solid #09f !important
}
svg:not(:root) {
overflow: inherit
}
/*font size*/
.f12 {
font-size: 12px;
line-height: 20px;
}
.f14 {
font-size: 14px;
line-height: 22px;
}
/*.post-list > li {*/
/*border-bottom: 1px dashed #888888;*/
/*}*/
.post-list .post-item-time {
height: 24px;
display: inline-block;
}
/*css for rotate-360*/
.rotate-360 {
-webkit-transition:-webkit-transform 1s,opacity 1s,background 1s,width 1s,height 1s,font-size 1s;
-webkit-border-radius:5px;
-o-transition-property:width,height,-o-transform,background,font-size,opacity;
-o-transition-duration:1s,1s,1s,1s,1s,1s;
-moz-transition-property:width,height,-o-transform,background,font-size,opacity;
-moz-transition-duration:1s,1s,1s,1s,1s,1s;
transition-property:width,height,transform,background,font-size,opacity;
transition-duration:1s,1s,1s,1s,1s,1s;
}
.rotate-360:hover {
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
opacity:1;
font-size:130%;
}
.cursor:hover {
cursor: pointer;
}
/**
颜色定义
**/
.white {
color: white;
}
.blur {
-webkit-filter: blur(3px); /* Chrome, Opera */
-moz-filter: blur(3px);
-ms-filter: blur(3px);
filter: blur(3px);
}
.blur-1 {
-webkit-filter: blur(1px); /* Chrome, Opera */
-moz-filter: blur(1px);
-ms-filter: blur(1px);
filter: blur(1px);
}
.blur-2 {
-webkit-filter: blur(2px); /* Chrome, Opera */
-moz-filter: blur(2px);
-ms-filter: blur(2px);
filter: blur(2px);
}
.site-footer {
margin-top: 25px;
}
#travel-chinese-map {
width: 100%;
height: 600px;
background-color: #eeeeee;
}
/**
line number
*/
.line-warp {
position: absolute;
top: 8px;
left: 0px;
width: 27px;
text-align: right;
color: #cccccc;
}
pre.highlight {
position: relative;
}
pre.highlight.padding-left {
padding-left: 35px;
}
| css |
<filename>Useful Templete/segment_tree.cpp
#include <iostream>
using namespace std;
const int N = 100000; // limit fir array size
int n;
int tree[2 * N]; // max size of tree
// build the tree
void build(int arr[])
{
// insert leaf node in tree
for (int i=0;i<n;i++)
tree[n + i] = arr[i];
for (int i = n-1; i > 0; i--)
tree[i] = tree[i << 1] + tree[i << 1 | 1];
}
void updateTreeNode(int p, int value)
{
// set value at position p
tree[p + n] = value;
p = p + n;
// move upward and update parents
for (int i=p; i > 1;i >>=1)
tree[i>>1] = tree[i] + tree[i^1];
}
// function to get sum on interval [l, r)
int query(int l, int r)
{
int res = 0;
// loop to find the sum in the range
for (l+=n, r+=n; l < r;l >>=1, r>>=1)
{
if (l & 1)
res += tree[l++];
if (r & 1)
res += tree[--r];
}
return res;
}
int main()
{
int a[] = {1,2,3,4,5,6,7,8,9,10,11,12};
n = sizeof(a) / sizeof(a[0]);
build(a);
cout<<query(1,3)<<endl;
updateTreeNode(2,1);
cout<<query(1,3)<<endl;
}
| cpp |
import { WriterFunction } from "../../types";
import { NamedNodeStructure } from "../base";
export interface TypeParameterDeclarationStructure extends TypeParameterDeclarationSpecificStructure, NamedNodeStructure {
}
export interface TypeParameterDeclarationSpecificStructure {
constraint?: string | WriterFunction;
default?: string | WriterFunction;
}
| typescript |
The Hundred 2022: Fast bowler Chris Jordan has been ruled out of the tournament. The fast bowler played three matches and picked up as many wickets.
By India Today Web Desk: Southern Brave fast bowler Chris Jordan, on Tuesday, August 16, was ruled out of the remainder of the Hundred 2022 Men’s competition due to injury. The speedster played three matches in the championship where he picked up three wickets at an economy rate of 8. 50.
After taking part in the match against London Spirit, Jordan didn’t make it to the playing eleven against Oval Invincibles on August 14 at the Kennington Oval. His best figures of two for 16 came against the Welsh Fire on August 3.
Apart from Jordan, the Brave also have Craig Overton, James Fuller, George Garton and Michael Hogan in their fast bowling department. Earlier, their premier fast bowler Tymal Mills was also ruled out of the 100-ball championship after he sustained a toe injury.
The Brave have struggled in the Hundred 2022 thus far. After starting off their campaign with a thumping nine-wicket win over Welsh Fire, the team has lost three matches in a row.
In their previous meeting, they lost to the Invincibles by seven wickets. Placed sixth in the points table, the Brave are next scheduled to lock horns with Manchester Originals on Thursday, August 18 at The Rose Bowl in Southampton.
Skipper James Vince has been their standout batter in the competition, having scored 103 runs from four matches at an average of 34. 33. However, after his unbeaten 71-run knock in his team’s opener, Vince has scored only 32 runs from three matches.
Fuller, Jordan and Hogan are their leading wicket-takers with three wickets apiece. Their net run rate of -0. 968 isn’t among the best by any means. | english |
New Delhi: The agitating resident doctors Friday called off their 14-day long nationwide agitation over the delay in NEET-PG counselling and alleged manhandling of doctors by the police.
The doctors will resume work from 12 p. m.
The strike was called after a meeting between the members of the Federation of Resident Doctors’ Association (FORDA) and Joint Commissioner of Delhi Police.
“Last evening we met the Joint CP of Delhi. The Delhi Police have initiated the process of quashing the FIR,” said Dr Manish Nigam, president of FORDA. Joint CP has sent a video message to rebuild the trust between the doctors and the police, he said.
In a statement, FORDRA said that a series of meetings of FORDA Representatives was held with multiple Delhi Police officials. It was highlighted by the Delhi Police that they have the highest regard for doctors. They are well aware of the hardships of Doctors and as earlier, they are willing to cooperate with the Medical fraternity for any issue at any time.
“A virtual meeting of FORDA with all RDA Representatives was convened late in the evening whereby all the proceedings were conveyed and all concerning points were discussed in detail. It was unanimously decided to call off the agitation on 31st December, 2021, 12. 00 p. m. , considering various factors including patient care,” said FORDRA.
However, the doctors association has said that a national meeting with all the RDA representatives will be convened by FORDA January 6. As the health ministry is supposed to submit the Committee Report to the Supreme Court before January 6, 2022 and will publish the NEET-PG 2021 Counselling schedule following the Court hearing, the association said.
The resident doctors had called for a total shutdown of medical services in the hospitals after the police action during their march towards the apex court December 27. | english |
<gh_stars>0
package cn.ucaner.alpaca.pay.reconciliation.service;
import java.util.List;
import java.util.Map;
import cn.ucaner.alpaca.pay.common.page.PageBean;
import cn.ucaner.alpaca.pay.common.page.PageParam;
import cn.ucaner.alpaca.pay.reconciliation.entity.RpAccountCheckMistakeScratchPool;
/**
* @Package:cn.ucaner.alpaca.pay.reconciliation.service
* @ClassName:RpAccountCheckMistakeScratchPoolService
* @Description: <p> 对账暂存池接口 .</p>
* @Author: -
* @CreatTime:2018年5月11日 上午10:32:13
* @Modify By:
* @ModifyTime: 2018年5月11日
* @Modify marker:
* @version V1.0
*/
public interface RpAccountCheckMistakeScratchPoolService {
/**
* 保存
*/
void saveData(RpAccountCheckMistakeScratchPool rpAccountCheckMistakeScratchPool);
/**
* 批量保存记录
*
* @param ScratchPoolList
*/
public void savaListDate(List<RpAccountCheckMistakeScratchPool> scratchPoolList);
/**
* 更新
*/
void updateData(RpAccountCheckMistakeScratchPool rpAccountCheckMistakeScratchPool);
/**
* 根据id获取数据
*
* @param id
* @return
*/
RpAccountCheckMistakeScratchPool getDataById(String id);
/**
* 获取分页数据
*
* @param pageParam
* @return
*/
PageBean listPage(PageParam pageParam, RpAccountCheckMistakeScratchPool rpAccountCheckMistakeScratchPool);
/**
* 从缓冲池中删除数据
*
* @param scratchPoolList
*/
void deleteFromPool(List<RpAccountCheckMistakeScratchPool> scratchPoolList);
/**
* 查询出缓存池中所有的数据
*
* @return
*/
List<RpAccountCheckMistakeScratchPool> listScratchPoolRecord(Map<String, Object> paramMap);
} | java |
<filename>ENB-data/enb_section_jsons/enb12356e_4.json
{
"actors": [
"Least Developed Countries",
"Alliance of Small Island States"
],
"countries": [
"Egypt",
"Italy",
"Mexico"
],
"enb_end_date": "12-Mar-08",
"enb_long_title": "UNFCCC Expert Group Meeting on socioeconomic information under the Nairobi Work Programme on Impacts, Vulnerability and Adaptation to Climate Change (NWP)",
"enb_short_title": "Workshop",
"enb_start_date": "10-Mar-08",
"enb_url": "http://www.iisd.ca/vol12/enb12356e.html",
"id": "enb12356e_4",
"section_title": "NAIROBI WORK PROGRAMME:",
"sentences": [
"In November 2006, COP 12 renamed the SBSTA five-year work programme the Nairobi Work Programme on Impacts, Vulnerability and Adaptation to Climate Change.",
"The work programme aims to assist countries, in particular developing countries, including the least developed countries and SIDS, to improve their understanding and assessment of impacts, vulnerability and adaptation, and in making informed decisions on practical adaptation actions and measures to respond to climate change on a sound scientific, technical and socioeconomic basis, taking into account current and future climate change and variability.",
"To achieve these aims, the NWP has nine areas of work: methods and tools; data and observations; climate modeling, scenarios and downscaling; climate-related risks and extreme events; socioeconomic information; adaptation planning and practices; research; technologies for adaptation; and economic diversification.",
"The expected outcomes of the NWP are: enhanced capacity at the international, regional, national, sectoral and local levels to further identify and understand impacts, vulnerability, and adaptation responses, and to select and implement practical, effective and high-priority adaptation actions; improved information and advice to the COP and its subsidiary bodies on the scientific, technical and socioeconomic aspects of impacts, vulnerability and adaptation; enhanced development, dissemination and use of knowledge from practical adaptation activities; enhanced cooperation among all actors, aimed at enhancing their ability to manage climate change risks; and enhanced integration of adaptation to climate change with sustainable development efforts.",
"A workshop on climate-related risks and extreme events was held from 18-20 June 2007, in Cairo, Egypt.",
"A workshop on adaptation planning and practices was the second event of the nine focus areas of the NWP and was held from 10-12 September 2007, in Rome, Italy.",
"An expert group meeting on methods and tools and on data and observations under the NWP were held from 4-7 March 2008, in Mexico City, Mexico."
],
"subtype": "",
"topics": [],
"type": "SPECIAL WORKSHOP"
} | json |
KATHMANDU: The Prachanda-Nepal faction of the ruling Nepal Communist Party (NCP) is going to the Election Commission, Nepal today to claim the legitimacy of the party.
With the central committee (CC) meeting’s decision to submit a claim over the election symbol and legitimacy of the party in Peris Danda on Monday, the faction will go to the ECN today, said leader Lilamani Pokharel.
A team of leaders including Pokharel will reach the office of the ECN today afternoon. The Prachanda-Nepal faction has been claiming the party’s legitimacy arguing that the majority of CC members are with the faction.
With the dissolution of the HoR, the Prachanda-Nepal faction appointed Madhav Nepal as the chairman of the faction by ousting KP Sharma Oli. Similarly, the Oli faction also extended the central committee.
Both the factions had sent a letter to the ECN, notifying the Commission about their respective decisions in line with Section 51 of the Political Parties Act, 2017.
The ECN, however, had rejected the proposals of both the factions, denying the recognition to the party split. | english |
Censor Details:
- Not Available.
- Not Available.
- Not Available.
- Not Available.
Shooting Location(City & Country)
Q: What is the release date of Company?
A: The release date of Company is 12 April 2002.
Q: Who are the actors in Company?
A: The starcast of the Company includes Manisha Koirala , Vivek Oberoi , Antara Mali.
Q: Who is the director of Company?
A: Company has been directed by Ram Gopal Varma.
Q: Who is the producer of Company?
A: Company has been produced by Array , Boney Kapoor , Ashwini Dutt.
Q: What is Genre of Company?
A: Company belongs to the genre Action, Comedy, Crime, Drama, Thriller.
Q: Who is the music director of Company?
A: The music of Company has been composed by Sandeep Chowta.
| english |
Three persons including a woman were electrocuted to death in two different places in Kokrajhar district on Tuesday evening. The incident had cast a pall of gloom among the villagers.
In the first incident at No 14 Bishmuri village, two electricians died when power suddenly came while they were connecting new phase in the village. The incident took place at 6 pm.
The two electricians were identified as Swmkwr Basumatary (25) and Raju Basumatary (20) of Samokaguri village in Kokrajhar district. They were engaged in the new electrification works at No-14 Bismuri village to Lakipur village in the district. The two electricians had been working under sub contractor Samar Basumatary for the last five years.
Swmkwr and Raju were brought to Kokrajhar RN Brahma Civil Hospital where they were declared brought dead. The post mortem examinations of the victims were done in Kokrajhar on Wednesday.
After the incident agitated people beat up Samar Basumatary. Sources said the ‘ENN-AAR Company and Poles’ owned by Rajesh Singh was allotted the rural electrification works and Samar Basumatary of Puthimari village was given charge to look after the works as sub contractor.
Talking to media Samar Basumatary said that the villagers on Tuesday had forcibly asked the electricians to connect the power line. “Due to intense pressure from the villagers they were compelled to connect the power resulting in their tragic death,” he said.
In the second incident, one Anjana Bibi (22) w/o Billal Ali Sheik of Jaoliapara, Duramari was electrocuted to death on Tuesday evening. The villagers got the electricity recently and home connections are still going on in the village. | english |
<reponame>gradienthealth/tesseract
/**********************************************************************
* File: pdblock.cpp
* Description: PDBLK member functions and iterator functions.
* Author: <NAME>
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** 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.
*
**********************************************************************/
// Include automatically generated configuration file if running autoconf.
#ifdef HAVE_CONFIG_H
# include "config_auto.h"
#endif
#include "pdblock.h"
#include <allheaders.h>
#include <cinttypes> // for PRId32
#include <cstdlib>
#include <memory> // std::unique_ptr
namespace tesseract {
#define BLOCK_LABEL_HEIGHT 150 // char height of block id
constexpr ERRCODE BADBLOCKLINE("Y coordinate in block out of bounds");
constexpr ERRCODE LOSTBLOCKLINE("Can't find rectangle for line");
CLISTIZE(PDBLK)
/**********************************************************************
* PDBLK::PDBLK
*
* Constructor for a simple rectangular block.
**********************************************************************/
PDBLK::PDBLK( // rectangular block
int16_t xmin, // bottom left
int16_t ymin, int16_t xmax, // top right
int16_t ymax)
: box(ICOORD(xmin, ymin), ICOORD(xmax, ymax)) {
// boundaries
ICOORDELT_IT left_it = &leftside;
ICOORDELT_IT right_it = &rightside;
hand_poly = nullptr;
left_it.set_to_list(&leftside);
right_it.set_to_list(&rightside);
// make default box
left_it.add_to_end(new ICOORDELT(xmin, ymin));
left_it.add_to_end(new ICOORDELT(xmin, ymax));
right_it.add_to_end(new ICOORDELT(xmax, ymin));
right_it.add_to_end(new ICOORDELT(xmax, ymax));
index_ = 0;
}
/**********************************************************************
* PDBLK::set_sides
*
* Sets left and right vertex lists
**********************************************************************/
void PDBLK::set_sides( // set vertex lists
ICOORDELT_LIST *left, // left vertices
ICOORDELT_LIST *right // right vertices
) {
// boundaries
ICOORDELT_IT left_it = &leftside;
ICOORDELT_IT right_it = &rightside;
leftside.clear();
left_it.move_to_first();
left_it.add_list_before(left);
rightside.clear();
right_it.move_to_first();
right_it.add_list_before(right);
}
/**********************************************************************
* PDBLK::contains
*
* Return true if the given point is within the block.
**********************************************************************/
bool PDBLK::contains( // test containment
ICOORD pt // point to test
) {
BLOCK_RECT_IT it = this; // rectangle iterator
ICOORD bleft, tright; // corners of rectangle
for (it.start_block(); !it.cycled_rects(); it.forward()) {
// get rectangle
it.bounding_box(bleft, tright);
// inside rect
if (pt.x() >= bleft.x() && pt.x() <= tright.x() && pt.y() >= bleft.y() && pt.y() <= tright.y())
return true; // is inside
}
return false; // not inside
}
/**********************************************************************
* PDBLK::move
*
* Reposition block
**********************************************************************/
void PDBLK::move( // reposition block
const ICOORD vec // by vector
) {
ICOORDELT_IT it(&leftside);
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward())
*(it.data()) += vec;
it.set_to_list(&rightside);
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward())
*(it.data()) += vec;
box.move(vec);
}
// Returns a binary Pix mask with a 1 pixel for every pixel within the
// block. Rotates the coordinate system by rerotation prior to rendering.
Pix *PDBLK::render_mask(const FCOORD &rerotation, TBOX *mask_box) {
TBOX rotated_box(box);
rotated_box.rotate(rerotation);
Pix *pix = pixCreate(rotated_box.width(), rotated_box.height(), 1);
if (hand_poly != nullptr) {
// We are going to rotate, so get a deep copy of the points and
// make a new POLY_BLOCK with it.
ICOORDELT_LIST polygon;
polygon.deep_copy(hand_poly->points(), ICOORDELT::deep_copy);
POLY_BLOCK image_block(&polygon, hand_poly->isA());
image_block.rotate(rerotation);
// Block outline is a polygon, so use a PB_LINE_IT to get the
// rasterized interior. (Runs of interior pixels on a line.)
auto *lines = new PB_LINE_IT(&image_block);
for (int y = box.bottom(); y < box.top(); ++y) {
const std::unique_ptr</*non-const*/ ICOORDELT_LIST> segments(lines->get_line(y));
if (!segments->empty()) {
ICOORDELT_IT s_it(segments.get());
// Each element of segments is a start x and x size of the
// run of interior pixels.
for (s_it.mark_cycle_pt(); !s_it.cycled_list(); s_it.forward()) {
int start = s_it.data()->x();
int xext = s_it.data()->y();
// Set the run of pixels to 1.
pixRasterop(pix, start - rotated_box.left(),
rotated_box.height() - 1 - (y - rotated_box.bottom()), xext, 1, PIX_SET,
nullptr, 0, 0);
}
}
}
delete lines;
} else {
// Just fill the whole block as there is only a bounding box.
pixRasterop(pix, 0, 0, rotated_box.width(), rotated_box.height(), PIX_SET, nullptr, 0, 0);
}
if (mask_box != nullptr)
*mask_box = rotated_box;
return pix;
}
/**********************************************************************
* PDBLK::plot
*
* Plot the outline of a block in the given colour.
**********************************************************************/
#ifndef GRAPHICS_DISABLED
void PDBLK::plot( // draw outline
ScrollView *window, // window to draw in
int32_t serial, // serial number
ScrollView::Color colour // colour to draw in
) {
ICOORD startpt; // start of outline
ICOORD endpt; // end of outline
ICOORD prevpt; // previous point
ICOORDELT_IT it = &leftside; // iterator
// set the colour
window->Pen(colour);
window->TextAttributes("Times", BLOCK_LABEL_HEIGHT, false, false, false);
if (hand_poly != nullptr) {
hand_poly->plot(window, serial);
} else if (!leftside.empty()) {
startpt = *(it.data()); // bottom left corner
// tprintf("Block %d bottom left is (%d,%d)\n",
// serial,startpt.x(),startpt.y());
char temp_buff[34];
# if !defined(_WIN32) || defined(__MINGW32__)
snprintf(temp_buff, sizeof(temp_buff), "%" PRId32, serial);
# else
_ultoa(serial, temp_buff, 10);
# endif
window->Text(startpt.x(), startpt.y(), temp_buff);
window->SetCursor(startpt.x(), startpt.y());
do {
prevpt = *(it.data()); // previous point
it.forward(); // move to next point
// draw round corner
window->DrawTo(prevpt.x(), it.data()->y());
window->DrawTo(it.data()->x(), it.data()->y());
} while (!it.at_last()); // until end of list
endpt = *(it.data()); // end point
// other side of boundary
window->SetCursor(startpt.x(), startpt.y());
it.set_to_list(&rightside);
prevpt = startpt;
for (it.mark_cycle_pt(); !it.cycled_list(); it.forward()) {
// draw round corner
window->DrawTo(prevpt.x(), it.data()->y());
window->DrawTo(it.data()->x(), it.data()->y());
prevpt = *(it.data()); // previous point
}
// close boundary
window->DrawTo(endpt.x(), endpt.y());
}
}
#endif
/**********************************************************************
* PDBLK::operator=
*
* Assignment - duplicate the block structure, but with an EMPTY row list.
**********************************************************************/
PDBLK &PDBLK::operator=( // assignment
const PDBLK &source // from this
) {
// this->ELIST_LINK::operator=(source);
if (!leftside.empty())
leftside.clear();
if (!rightside.empty())
rightside.clear();
leftside.deep_copy(&source.leftside, &ICOORDELT::deep_copy);
rightside.deep_copy(&source.rightside, &ICOORDELT::deep_copy);
box = source.box;
return *this;
}
/**********************************************************************
* BLOCK_RECT_IT::BLOCK_RECT_IT
*
* Construct a block rectangle iterator.
**********************************************************************/
BLOCK_RECT_IT::BLOCK_RECT_IT(
// iterate rectangles
PDBLK *blkptr // from block
)
: left_it(&blkptr->leftside), right_it(&blkptr->rightside) {
block = blkptr; // remember block
// non empty list
if (!blkptr->leftside.empty()) {
start_block(); // ready for iteration
}
}
/**********************************************************************
* BLOCK_RECT_IT::set_to_block
*
* Start a new block.
**********************************************************************/
void BLOCK_RECT_IT::set_to_block( // start (new) block
PDBLK *blkptr) { // block to start
block = blkptr; // remember block
// set iterators
left_it.set_to_list(&blkptr->leftside);
right_it.set_to_list(&blkptr->rightside);
if (!blkptr->leftside.empty())
start_block(); // ready for iteration
}
/**********************************************************************
* BLOCK_RECT_IT::start_block
*
* Restart a block.
**********************************************************************/
void BLOCK_RECT_IT::start_block() { // start (new) block
left_it.move_to_first();
right_it.move_to_first();
left_it.mark_cycle_pt();
right_it.mark_cycle_pt();
ymin = left_it.data()->y(); // bottom of first box
ymax = left_it.data_relative(1)->y();
if (right_it.data_relative(1)->y() < ymax)
// smallest step
ymax = right_it.data_relative(1)->y();
}
/**********************************************************************
* BLOCK_RECT_IT::forward
*
* Move to the next rectangle in the block.
**********************************************************************/
void BLOCK_RECT_IT::forward() { // next rectangle
if (!left_it.empty()) { // non-empty list
if (left_it.data_relative(1)->y() == ymax)
left_it.forward(); // move to meet top
if (right_it.data_relative(1)->y() == ymax)
right_it.forward();
// last is special
if (left_it.at_last() || right_it.at_last()) {
left_it.move_to_first(); // restart
right_it.move_to_first();
// now at bottom
ymin = left_it.data()->y();
} else {
ymin = ymax; // new bottom
}
// next point
ymax = left_it.data_relative(1)->y();
if (right_it.data_relative(1)->y() < ymax)
// least step forward
ymax = right_it.data_relative(1)->y();
}
}
/**********************************************************************
* BLOCK_LINE_IT::get_line
*
* Get the the start and width of a line in the block.
**********************************************************************/
int16_t BLOCK_LINE_IT::get_line( // get a line
int16_t y, // line to get
int16_t &xext // output extent
) {
ICOORD bleft; // bounding box
ICOORD tright; // of block & rect
// get block box
block->bounding_box(bleft, tright);
if (y < bleft.y() || y >= tright.y()) {
// block->print(stderr,false);
BADBLOCKLINE.error("BLOCK_LINE_IT::get_line", ABORT, "Y=%d", y);
}
// get rectangle box
rect_it.bounding_box(bleft, tright);
// inside rectangle
if (y >= bleft.y() && y < tright.y()) {
// width of line
xext = tright.x() - bleft.x();
return bleft.x(); // start of line
}
for (rect_it.start_block(); !rect_it.cycled_rects(); rect_it.forward()) {
// get rectangle box
rect_it.bounding_box(bleft, tright);
// inside rectangle
if (y >= bleft.y() && y < tright.y()) {
// width of line
xext = tright.x() - bleft.x();
return bleft.x(); // start of line
}
}
LOSTBLOCKLINE.error("BLOCK_LINE_IT::get_line", ABORT, "Y=%d", y);
return 0; // dummy to stop warning
}
} // namespace tesseract
| cpp |
Gurugram Metropolitan Development Authority (GMDA) has proposed imposing a 1% user charge in the form of duty on property transfers in sectors along the Southern Peripheral Road (SPR) to fund the project. The SPR project has been delayed due to funding issues, but GMDA said that the entire tendering process has been completed and the high-powered committee chaired by the chief minister will allot the contract soon. The cost of the project is INR8. 45bn ($115m) and different modes of funding will be used. The authority said that 37 developing sectors are along the SPR and an estimated INR3. 25bn can be collected in three years.
Gurugram: In a bid to mobilise funds for the Southern Peripheral Road project, whose work is likely to be allotted soon by a high-powered committee headed by chief minister Manohar Lal Khattar, the Gurugram Metropolitan Development Authority (GMDA) has proposed to impose 1% user charge in the form of duty on property transfers in sectors falling along the road for a period of three years.
As per the authority, there are 37 developing sectors along the SPR, and by imposing 1% user charge on property transfers, an estimated amount of ₹325 crore can be collected in three years, the authority said.
GMDA said that approval for different modes of funding for the detailed project report was granted by the chief minister on March 5, wherein arrangement of funds by the revenue department has also been outlined, a letter by the authority said.
The SPR project involves the construction of eight flyovers and expansion of the road from Ghata up to Kherki Daula at a cost of ₹845 crore, officials said.
The SPR redevelopment project has been delayed due to issues of funding, which the authority is now trying to fix by using different modes to finance the project.
A senior GMDA official said that the entire tendering process of the project has been completed, and the high-powered committee chaired by the chief minister will allot the contract soon. “The cost of the project is ₹845 crore and different modes will be used to generate funds for the project. We have proposed that 1% user fee be charged for property transfers in 37 sectors along the SPR, which is likely to generate ₹375 crore in the next three years. This proposal will be sent to the state revenue department soon,” he said.
According to the proposed upgradation plan of the SPR, the 12-km road will have a six-laned main carriageway. It will have three-metre-wide footpaths, a cycle track, and a green area. Drainage will also be upgraded to ensure that there is no waterlogging on the entire stretch.
The GMDA proposal said, “Funds to the tune of ₹389. 32 crore from the total amount of ₹845. 54 crore are proposed to be arranged by levying a duty on the transfer of immovable properties situated within the limits of the notified area in addition to the duty imposed under the Indian Stamp Act, 1899 (Central Act 2 of 1899). Such a charge is proposed to be imposed on sectors most benefitted by developing the SPR (i. e. , all sectors falling between Sector 55 to 80 including sectors 48, 49 and 50 as per the Gurgaon-Manesar Urban Complex (GMUC)-2031”.
It further said that the bids for the work have already been invited and funds would be required urgently for the timely start of work and smooth implementation of the project. “Keeping in view of the matter, the proposal approved by the Haryana chief minister of imposing 1% user charge in form of duty on the transfer of immovable properties on sectors falling along the SPR for a period of three years from date of implementation of notification is submitted for perusal and forwarded to the revenue department”.
The authority further said that a mechanism will be devised to arrange funds amounting to ₹285 crore in coordination with the department of town and country planning (DTCP). “The authority will also utilise transfer of development charges, monetise land assets and other means to generate funds for the SPR project,” the senior official of the GMDA said.
Hemant Chander Sharma, former president of Tulip Ivory residents’ welfare association (RWA), which is located close to the SPR said that residents have already paid the infrastructure development charges (IDC). “When the residents have already paid development charges, additional cess should not be imposed on them. No doubt the SPR project will greatly help the residents, but the financial burden on them is not fair,” he said. | english |
It is not a fact that the workers engaged in various construction projects for Commonwealth Games are paid less than the minimum wages and labour laws are violated by the contractors.
Inspecting Officers keep a close watch on the payment of minimum wages, conditions of work and violation of labour laws at construction sites during their course of inspection. If any violations are noticed, necessary legal action is taken under Acts/Labour Laws.
This information was given by the Minister of State in the Ministry of Labour & Employment Shri Harish Rawat in a written reply in the Rajya Sabha today.
| english |
import {BittrexClient} from '../';
import {Config} from './Config';
const bittrex = new BittrexClient(Config.bittrex.readonly);
bittrex.balances().then((balances) => {
console.log(balances);
}, (error) => {
console.log(error);
});
bittrex.balance('BTC').then((balance) => {
console.log(balance);
}, (error) => {
console.log(error);
});
| typescript |
<filename>vendor/assets/components/pomodoro/spec/node/test_timer.js
'use strict';
const assert = require('chai').assert;
const expect = require('chai').expect;
const sinon = require('sinon');
const describe = require('mocha').describe;
const it = require('mocha').it;
const beforeEach = require('mocha').beforeEach;
const afterEach = require('mocha').afterEach;
const Timer = require('../../build/timer.js');
describe('Timer', () => {
beforeEach(() => {
this.clock = sinon.useFakeTimers();
});
afterEach(() => {
this.clock.restore();
});
it('should create a timer with default value 25 minutes', () => {
const timer = new Timer();
assert.equal(1500, timer.duration);
});
it('should create a timer with a value of 5 minutes', () => {
const timer = new Timer(5);
assert.equal(5 * 60, timer.duration);
});
it('should count down and stop at 0', () => {
const timer = new Timer(0.1);
assert.equal(6, timer.duration);
timer.start();
this.clock.tick(6000);
expect(timer.duration).to.equal(0);
assert.equal(0, timer.duration);
});
it('should be at 30 seconds, at 30 seconds in', () => {
const timer = new Timer(1);
assert.equal(60, timer.duration);
timer.start();
this.clock.tick(30000);
expect(timer.duration).to.equal(30);
this.clock.tick(30000);
assert.equal(0, timer.duration);
});
it('should reset the timer', () => {
const timer = new Timer(1);
assert.equal(60, timer.duration);
timer.start();
this.clock.tick(60000);
expect(timer.duration).to.equal(0);
timer.reset();
expect(timer.duration).to.equal(60);
});
it('should pause the timer', () => {
const timer = new Timer(1);
timer.start();
this.clock.tick(30000);
expect(timer.duration).to.equal(30);
timer.pause();
this.clock.tick(30000);
expect(timer.duration).to.equal(30);
});
it('should pause the timer, then start from the same duration', () => {
const timer = new Timer(1);
timer.start();
this.clock.tick(30000);
expect(timer.duration).to.equal(30);
timer.pause();
this.clock.tick(30000);
expect(timer.duration).to.equal(30);
timer.start();
this.clock.tick(30000);
expect(timer.duration).to.equal(0);
});
it('should give back the minutes and seconds of a timer', () => {
const timer = new Timer(1.5); // 90 seconds aka 1 minute 30 seconds
expect(timer.minutes).to.equal(1);
expect(timer.seconds).to.equal(30);
});
it('should give back 0 mins, 0 secs when timer is done', () => {
const timer = new Timer(1.5); // 90 seconds aka 1 minute 30 seconds
timer.start();
this.clock.tick(90000);
expect(timer.minutes).to.equal(0);
expect(timer.seconds).to.equal(0);
timer.reset();
expect(timer.minutes).to.equal(1);
expect(timer.seconds).to.equal(30);
});
it('start should take a callback', () => {
let one = 0;
const timer = new Timer(1.5); // 90 seconds aka 1 minute 30 seconds
timer.start(() => {
one++;
});
this.clock.tick(90000);
expect(one).to.equal(90);
});
it('should no call the callback on pause', () => {
let one = 0;
const timer = new Timer(1.5); // 90 seconds aka 1 minute 30 seconds
timer.start(() => {
one++;
});
this.clock.tick(30000);
expect(one).to.equal(30);
timer.pause();
this.clock.tick(30000);
expect(one).to.equal(30);
timer.start();
this.clock.tick(60000);
expect(one).to.equal(90);
});
});
| javascript |
- The crude country bomb was hurled at the crowd by an unidentified man who sped past on a motor bike.
- Pinarayi Vijayan promised stern action against perpetrators.
The violence-prone Kannur in Kerala is in the grip of tension once again after a crude bomb blast near the venue of a public meeting organised by the CPM on Thursday evening. The party state secretary Kodiyeri Balakrishnan was addressing the gathering when the bomb thrown by an unidentified man blasted, triggering panic. One CPM worker sustained injuries in the incident.
Reports quoting eye-witnesses said that the crude country bomb was hurled at the crowd by an unidentified man who sped past on a motor bike. The incident took place near Temple Gate at Thalassery in Kannur, a hot bed of political violence in the state. Though the party workers tried to catch the culprit, he escaped on the bike. A DYFI leader suffered injuries in the blast.
Condemning the attack, Chief Minister Pinarayi Vijayan warned that the criminals behind the attack will not be forgiven. He promised stern action against the criminals.
The CPM alleged that the attack was the handiwork of the RSS. The CPM took out protest marches across the state soon after the incident. CPM march at Vadakara in Kozhikode turned violent, and the party workers attacked the local office of the BJP.
The BJP leadership distanced from the incident and blamed the CPM for the blast. It was a freak accident, said Satyaprakash, the district president of the BJP. A CPM worker was keeping a bomb to attack BJP workers. But it accidentally went off, the BJP leader claimed.
BJP state general secretary K Surendran said that the reports that the blast at Balakrishnan's meeting venue was a CPM propaganda. The blast took place at Kommal Vayal, 750 metres away from the venue of the CPM leader's meeting. The information was passed on to media houses by CPM MLA AN Shamseer. "This is a vicious propaganda by CPM,"he added.
The blast occurred at a time when the BJP and the CPM were engaged in a verbal war over the murder of a BJP worker at Thalassery allegedly by activists of the Communist party two weeks before. The RSS had taken out a protest march to the Kerala House in New Delhi on Tuesday, coinciding with Vijayan's visit to the national capital.
Alleging that the CPM was unleashing violence against its workers, some BJP leaders had warned that the Kerala's ruling party will have to face the consequences if it did not stop killing its workers. | english |
<filename>packages/rmix/rollup.config.js
import typescript from "@rollup/plugin-typescript";
import commonjs from "@rollup/plugin-commonjs";
import pkg from "./package.json";
const input = "./src/index.ts";
const plugins = [
typescript({ declaration: true, declarationDir: "dist/", rootDir: "src/" }),
commonjs(),
];
export default [
{
external: ["lodash"],
input,
output: {
dir: "./dist",
format: "esm",
sourcemap: true,
exports: "named",
},
plugins,
},
{
external: ["lodash"],
input,
output: {
file: pkg.main,
format: "cjs",
sourcemap: true,
exports: "named",
},
plugins,
},
];
| javascript |
<reponame>Veltjs/Velt
package xyz.corman.velt.utils;
import java.io.File;
import java.util.EventObject;
public class FileEvent extends EventObject {
public FileEvent(File file) {
super(file);
}
public File getFile() {
return (File) getSource();
}
} | java |
<filename>modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.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.axis2.transport.mail;
import java.util.Map;
import org.apache.axis2.AxisFault;
import org.apache.axis2.description.Parameter;
import org.apache.axis2.description.ParameterInclude;
import org.apache.axis2.description.TransportInDescription;
import org.apache.axis2.description.TransportOutDescription;
import org.apache.axis2.transport.testkit.axis2.TransportDescriptionFactory;
import org.apache.axis2.transport.testkit.name.Key;
@Key("server")
public abstract class MailTestEnvironment implements TransportDescriptionFactory {
public static class Account {
private final String address;
private final String login;
private final String password;
public Account(String address, String login, String password) {
this.address = address;
this.login = login;
this.password = password;
}
public String getAddress() {
return address;
}
public String getLogin() {
return login;
}
public String getPassword() {
return password;
}
};
public abstract String getProtocol();
public abstract Account allocateAccount() throws Exception;
public abstract void freeAccount(Account account);
public abstract Map<String,String> getInProperties(Account account);
public abstract Map<String,String> getOutProperties();
public TransportInDescription createTransportInDescription() throws Exception {
TransportInDescription trpInDesc = new TransportInDescription(MailConstants.TRANSPORT_NAME);
trpInDesc.setReceiver(new MailTransportListener());
return trpInDesc;
}
public TransportOutDescription createTransportOutDescription() throws Exception {
TransportOutDescription trpOutDesc = new TransportOutDescription(MailConstants.TRANSPORT_NAME);
trpOutDesc.setSender(new MailTransportSender());
trpOutDesc.addParameter(new Parameter(MailConstants.TRANSPORT_MAIL_DEBUG, "true"));
for (Map.Entry<String,String> prop : getOutProperties().entrySet()) {
trpOutDesc.addParameter(new Parameter(prop.getKey(), prop.getValue()));
}
return trpOutDesc;
}
public void setupPoll(ParameterInclude params, Account account) throws AxisFault {
params.addParameter(new Parameter(MailConstants.TRANSPORT_MAIL_DEBUG, "true"));
params.addParameter(new Parameter("transport.mail.Protocol", getProtocol()));
params.addParameter(new Parameter("transport.mail.Address", account.getAddress()));
params.addParameter(new Parameter("transport.PollInterval", "50ms"));
for (Map.Entry<String,String> prop : getInProperties(account).entrySet()) {
params.addParameter(new Parameter(prop.getKey(), prop.getValue()));
}
}
}
| java |
<reponame>fanaticscripter/Egg<gh_stars>10-100
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
@import 'ui/styles/base';
@import 'ui/styles/app-loading';
@import 'ui/styles/tippy';
.text-rare {
@apply text-blue-500;
}
.text-epic {
@apply text-purple-500;
}
.text-legendary {
@apply text-yellow-500;
}
.bg-rare {
background: radial-gradient(#b3ffff, #b3ffff, #6ab6ff);
}
.bg-epic {
background: radial-gradient(#ff40ff, #ff40ff, #c03fe2);
}
.bg-legendary {
background: radial-gradient(#fffe41, #fffe41, #eeab42);
}
| css |
<filename>public/editors/markdown-editor.html
<!DOCTYPE html>
<!--
* CoreUI Pro based Bootstrap Admin Template
* @version v3.2.0
* @link https://coreui.io/pro/
* Copyright (c) 2020 creativeLabs <NAME>
* License (https://coreui.io/pro/license)
-->
<html lang="en">
<head>
<base href="./../">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta name="description" content="CoreUI - Open Source Bootstrap Admin Template">
<meta name="author" content="<NAME>">
<meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,jQuery,CSS,HTML,RWD,Dashboard">
<title>CoreUI Pro Bootstrap Admin Template</title>
<!-- Main styles for this application-->
<link href="css/style.css" rel="stylesheet">
<link href="vendors/codemirror/css/codemirror.css" rel="stylesheet">
</head>
<body class="c-app">
<div class="c-sidebar c-sidebar-dark c-sidebar-fixed c-sidebar-lg-show" id="sidebar">
<div class="c-sidebar-brand d-md-down-none">
<svg class="c-sidebar-brand-full" width="118" height="46" alt="CoreUI Logo">
<use xlink:href="assets/brand/coreui-pro.svg#full"></use>
</svg>
<svg class="c-sidebar-brand-minimized" width="46" height="46" alt="CoreUI Logo">
<use xlink:href="assets/brand/coreui-pro.svg#signet"></use>
</svg>
</div>
<ul class="c-sidebar-nav">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="index.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-speedometer"></use>
</svg> Dashboard<span class="badge badge-info">NEW</span></a></li>
<li class="c-sidebar-nav-title">Theme</li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="colors.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-drop1"></use>
</svg> Colors</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="typography.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-pencil"></use>
</svg> Typography</a></li>
<li class="c-sidebar-nav-title">Components</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-puzzle"></use>
</svg> Base</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/breadcrumb.html"> Breadcrumb</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/cards.html"> Cards</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/carousel.html"> Carousel</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/collapse.html"> Collapse</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/jumbotron.html"> Jumbotron</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/list-group.html"> List group</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/navs.html"> Navs</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/pagination.html"> Pagination</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/popovers.html"> Popovers</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/progress.html"> Progress</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/scrollspy.html"> Scrollspy</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/switches.html"> Switches</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/tabs.html"> Tabs</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="base/tooltips.html"> Tooltips</a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-cursor"></use>
</svg> Buttons</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="buttons/buttons.html"> Buttons</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="buttons/brand-buttons.html"> Brand Buttons</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="buttons/button-group.html"> Buttons Group</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="buttons/dropdowns.html"> Dropdowns</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="buttons/loading-buttons.html"> Loading Buttons<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="charts.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-chart-pie"></use>
</svg> Charts</a></li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-code"></use>
</svg> Editors</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="editors/code-editor.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-notes"></use>
</svg> Code Editor<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="editors/markdown-editor.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-code"></use>
</svg> Markdown<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="editors/text-editor.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-notes"></use>
</svg> Rich Text Editor<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-notes"></use>
</svg> Forms</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="forms/basic-forms.html"> Basic Forms</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="forms/advanced-forms.html"> Advanced<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="forms/validation.html"> Validation<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="google-maps.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-map"></use>
</svg> Google Maps<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-star"></use>
</svg> Icons</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="icons/coreui-icons-free.html"> CoreUI Icons<span class="badge badge-success">Free</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="icons/coreui-icons-brand.html"> CoreUI Icons - Brand</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="icons/coreui-icons-flag.html"> CoreUI Icons - Flag</a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bell"></use>
</svg> Notifications</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="notifications/alerts.html"> Alerts</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="notifications/badge.html"> Badge</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="notifications/modals.html"> Modals</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="notifications/toastr.html"> Toastr<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bolt"></use>
</svg> Plugins</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="plugins/calendar.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> Calendar<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="plugins/draggable-cards.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-cursor-move"></use>
</svg> Draggable<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="plugins/spinners.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-sync"></use>
</svg> Spinners<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-columns"></use>
</svg> Tables</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="tables/tables.html"> Standard Tables</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="tables/datatables.html"> DataTables<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="widgets.html">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calculator"></use>
</svg> Widgets<span class="badge badge-info">NEW</span></a></li>
<li class="c-sidebar-nav-divider"></li>
<li class="c-sidebar-nav-title">Extras</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-star"></use>
</svg> Pages</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="login.html" target="_top">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-account-logout"></use>
</svg> Login</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="register.html" target="_top">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-account-logout"></use>
</svg> Register</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="404.html" target="_top">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bug"></use>
</svg> Error 404</a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="500.html" target="_top">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bug"></use>
</svg> Error 500</a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-layers"></use>
</svg> Apps</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-description"></use>
</svg> Invoicing</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="apps/invoicing/invoice.html"> Invoice<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
<li class="c-sidebar-nav-dropdown"><a class="c-sidebar-nav-dropdown-toggle" href="#">
<svg class="c-sidebar-nav-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-envelope-open"></use>
</svg> Email</a>
<ul class="c-sidebar-nav-dropdown-items">
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="apps/email/inbox.html"> Inbox<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="apps/email/message.html"> Message<span class="badge badge-danger">PRO</span></a></li>
<li class="c-sidebar-nav-item"><a class="c-sidebar-nav-link" href="apps/email/compose.html"> Compose<span class="badge badge-danger">PRO</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="c-sidebar-nav-divider"></li>
<li class="c-sidebar-nav-title">Labels</li>
<li class="c-sidebar-nav-item c-d-compact-none c-d-minimized-none"><a class="c-sidebar-nav-label" href="#">
<svg class="c-sidebar-nav-icon text-danger">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bookmark"></use>
</svg> Label danger</a></li>
<li class="c-sidebar-nav-item c-d-compact-none c-d-minimized-none"><a class="c-sidebar-nav-label" href="#">
<svg class="c-sidebar-nav-icon text-info">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bookmark"></use>
</svg> Label info</a></li>
<li class="c-sidebar-nav-item c-d-compact-none c-d-minimized-none"><a class="c-sidebar-nav-label" href="#">
<svg class="c-sidebar-nav-icon text-warning">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bookmark"></use>
</svg> Label warning</a></li>
<li class="c-sidebar-nav-divider"></li>
<li class="c-sidebar-nav-title">System Utilization</li>
<li class="c-sidebar-nav-item px-3 c-d-compact-none c-d-minimized-none">
<div class="text-uppercase mb-1"><small><b>CPU Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">348 Processes. 1/4 Cores.</small>
</li>
<li class="c-sidebar-nav-item px-3 c-d-compact-none c-d-minimized-none">
<div class="text-uppercase mb-1"><small><b>Memory Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-warning" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">11444GB/16384MB</small>
</li>
<li class="c-sidebar-nav-item px-3 mb-3 c-d-compact-none c-d-minimized-none">
<div class="text-uppercase mb-1"><small><b>SSD 1 Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-danger" role="progressbar" style="width: 95%" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">243GB/256GB</small>
</li>
</ul>
<button class="c-sidebar-minimizer c-class-toggler" type="button" data-target="_parent" data-class="c-sidebar-unfoldable"></button>
</div>
<div class="c-sidebar c-sidebar-lg c-sidebar-light c-sidebar-right c-sidebar-overlaid" id="aside">
<button class="c-sidebar-close c-class-toggler" type="button" data-target="_parent" data-class="c-sidebar-show" responsive="true">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-x"></use>
</svg>
</button>
<ul class="nav nav-tabs nav-underline nav-underline-primary" role="tablist">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#timeline" role="tab">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-list"></use>
</svg></a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#messages" role="tab">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-speech"></use>
</svg></a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#settings" role="tab">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-settings"></use>
</svg></a></li>
</ul>
<!-- Tab panes-->
<div class="tab-content">
<div class="tab-pane active" id="timeline" role="tabpanel">
<div class="list-group list-group-accent">
<div class="list-group-item list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase c-small">Today</div>
<div class="list-group-item list-group-item-accent-warning list-group-item-divider">
<div class="c-avatar float-right"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"></div>
<div>Meeting with <strong>Lucas</strong></div><small class="text-muted mr-3">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> 1 - 3pm</small><small class="text-muted">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-location-pin"></use>
</svg> Palo Alto, CA</small>
</div>
<div class="list-group-item list-group-item-accent-info">
<div class="c-avatar float-right"><img class="c-avatar-img" src="assets/img/avatars/4.jpg" alt="<EMAIL>"></div>
<div>Skype with <strong>Megan</strong></div><small class="text-muted mr-3">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> 4 - 5pm</small><small class="text-muted">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-skype"></use>
</svg> On-line</small>
</div>
<div class="list-group-item list-group-item-accent-secondary bg-light text-center font-weight-bold text-muted text-uppercase c-small">Tomorrow</div>
<div class="list-group-item list-group-item-accent-danger list-group-item-divider">
<div>New UI Project - <strong>deadline</strong></div><small class="text-muted mr-3">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> 10 - 11pm</small><small class="text-muted">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-home"></use>
</svg> creativeLabs HQ</small>
<div class="c-avatars-stack mt-2">
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/2.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/3.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/4.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/5.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/6.jpg" alt="<EMAIL>"></div>
</div>
</div>
<div class="list-group-item list-group-item-accent-success list-group-item-divider">
<div><strong>#10 Startups.Garden</strong> Meetup</div><small class="text-muted mr-3">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> 1 - 3pm</small><small class="text-muted">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-location-pin"></use>
</svg> Palo Alto, CA</small>
</div>
<div class="list-group-item list-group-item-accent-primary list-group-item-divider">
<div><strong>Team meeting</strong></div><small class="text-muted mr-3">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-calendar"></use>
</svg> 4 - 6pm</small><small class="text-muted">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-home"></use>
</svg> creativeLabs HQ</small>
<div class="c-avatars-stack mt-2">
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/2.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/3.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/4.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/5.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/6.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"></div>
<div class="c-avatar c-avatar-xs"><img class="c-avatar-img" src="assets/img/avatars/8.jpg" alt="<EMAIL>"></div>
</div>
</div>
</div>
</div>
<div class="tab-pane p-3" id="messages" role="tabpanel">
<div class="message">
<div class="py-3 pb-5 mr-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
<hr>
<div class="message">
<div class="py-3 pb-5 mr-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
<hr>
<div class="message">
<div class="py-3 pb-5 mr-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
<hr>
<div class="message">
<div class="py-3 pb-5 mr-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
<hr>
<div class="message">
<div class="py-3 pb-5 mr-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
</div>
</div>
<div class="tab-pane p-3" id="settings" role="tabpanel">
<h6>Settings</h6>
<div class="c-aside-options">
<div class="clearfix mt-4"><small><b>Option 1</b></small>
<label class="c-switch c-switch-label c-switch-pill c-switch-success c-switch-sm float-right">
<input class="c-switch-input" type="checkbox" checked=""><span class="c-switch-slider" data-checked="On" data-unchecked="Off"></span>
</label>
</div>
<div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small></div>
</div>
<div class="c-aside-options">
<div class="clearfix mt-3"><small><b>Option 2</b></small>
<label class="c-switch c-switch-label c-switch-pill c-switch-success c-switch-sm float-right">
<input class="c-switch-input" type="checkbox"><span class="c-switch-slider" data-checked="On" data-unchecked="Off"></span>
</label>
</div>
<div><small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small></div>
</div>
<div class="c-aside-options">
<div class="clearfix mt-3"><small><b>Option 3</b></small>
<label class="c-switch c-switch-label c-switch-pill c-switch-success c-switch-sm float-right">
<input class="c-switch-input" type="checkbox"><span class="c-switch-slider" data-checked="On" data-unchecked="Off"></span>
</label>
</div>
</div>
<div class="c-aside-options">
<div class="clearfix mt-3"><small><b>Option 4</b></small>
<label class="c-switch c-switch-label c-switch-pill c-switch-success c-switch-sm float-right">
<input class="c-switch-input" type="checkbox" checked=""><span class="c-switch-slider" data-checked="On" data-unchecked="Off"></span>
</label>
</div>
</div>
<hr>
<h6>System Utilization</h6>
<div class="text-uppercase mb-1 mt-4"><small><b>CPU Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">348 Processes. 1/4 Cores.</small>
<div class="text-uppercase mb-1 mt-2"><small><b>Memory Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-warning" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">11444GB/16384MB</small>
<div class="text-uppercase mb-1 mt-2"><small><b>SSD 1 Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-danger" role="progressbar" style="width: 95%" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">243GB/256GB</small>
<div class="text-uppercase mb-1 mt-2"><small><b>SSD 2 Usage</b></small></div>
<div class="progress progress-xs">
<div class="progress-bar bg-success" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
</div><small class="text-muted">25GB/256GB</small>
</div>
</div>
</div>
<div class="c-wrapper">
<header class="c-header c-header-light c-header-fixed">
<button class="c-header-toggler c-class-toggler d-lg-none mfe-auto" type="button" data-target="#sidebar" data-class="c-sidebar-show">
<svg class="c-icon c-icon-lg">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-menu"></use>
</svg>
</button><a class="c-header-brand d-lg-none c-header-brand-sm-up-center" href="#">
<svg width="118" height="46" alt="CoreUI Logo">
<use xlink:href="assets/brand/coreui-pro.svg#full"></use>
</svg></a>
<button class="c-header-toggler c-class-toggler mfs-3 d-md-down-none" type="button" data-target="#sidebar" data-class="c-sidebar-lg-show" responsive="true">
<svg class="c-icon c-icon-lg">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-menu"></use>
</svg>
</button>
<ul class="c-header-nav d-md-down-none">
<li class="c-header-nav-item px-3"><a class="c-header-nav-link" href="#">Dashboard</a></li>
<li class="c-header-nav-item px-3"><a class="c-header-nav-link" href="#">Users</a></li>
<li class="c-header-nav-item px-3"><a class="c-header-nav-link" href="#">Settings</a></li>
</ul>
<ul class="c-header-nav mfs-auto">
<li class="c-header-nav-item px-3 c-d-legacy-none">
<button class="c-class-toggler c-header-nav-btn" type="button" id="header-tooltip" data-target="body" data-class="c-dark-theme" data-toggle="c-tooltip" data-placement="bottom" title="Toggle Light/Dark Mode">
<svg class="c-icon c-d-dark-none">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-moon"></use>
</svg>
<svg class="c-icon c-d-default-none">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-sun"></use>
</svg>
</button>
</li>
</ul>
<ul class="c-header-nav">
<li class="c-header-nav-item dropdown d-md-down-none mx-2"><a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bell"></use>
</svg><span class="badge badge-pill badge-danger">5</span></a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg pt-0">
<div class="dropdown-header bg-light"><strong>You have 5 notifications</strong></div><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2 text-success">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-user-follow"></use>
</svg> New user registered</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2 text-danger">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-user-unfollow"></use>
</svg> User deleted</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2 text-info">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-chart"></use>
</svg> Sales report is ready</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2 text-success">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-basket"></use>
</svg> New client</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2 text-warning">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-speedometer"></use>
</svg> Server overloaded</a>
<div class="dropdown-header bg-light"><strong>Server</strong></div><a class="dropdown-item d-block" href="#">
<div class="text-uppercase mb-1"><small><b>CPU Usage</b></small></div><span class="progress progress-xs">
<div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</span><small class="text-muted">348 Processes. 1/4 Cores.</small>
</a><a class="dropdown-item d-block" href="#">
<div class="text-uppercase mb-1"><small><b>Memory Usage</b></small></div><span class="progress progress-xs">
<div class="progress-bar bg-warning" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
</span><small class="text-muted">11444GB/16384MB</small>
</a><a class="dropdown-item d-block" href="#">
<div class="text-uppercase mb-1"><small><b>SSD 1 Usage</b></small></div><span class="progress progress-xs">
<div class="progress-bar bg-danger" role="progressbar" style="width: 95%" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
</span><small class="text-muted">243GB/256GB</small>
</a>
</div>
</li>
<li class="c-header-nav-item dropdown d-md-down-none mx-2"><a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-list-rich"></use>
</svg><span class="badge badge-pill badge-warning">15</span></a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg pt-0">
<div class="dropdown-header bg-light"><strong>You have 5 pending tasks</strong></div><a class="dropdown-item d-block" href="#">
<div class="small mb-1">Upgrade NPM & Bower<span class="float-right"><strong>0%</strong></span></div><span class="progress progress-xs">
<div class="progress-bar bg-info" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</span>
</a><a class="dropdown-item d-block" href="#">
<div class="small mb-1">ReactJS Version<span class="float-right"><strong>25%</strong></span></div><span class="progress progress-xs">
<div class="progress-bar bg-danger" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</span>
</a><a class="dropdown-item d-block" href="#">
<div class="small mb-1">VueJS Version<span class="float-right"><strong>50%</strong></span></div><span class="progress progress-xs">
<div class="progress-bar bg-warning" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</span>
</a><a class="dropdown-item d-block" href="#">
<div class="small mb-1">Add new layouts<span class="float-right"><strong>75%</strong></span></div><span class="progress progress-xs">
<div class="progress-bar bg-info" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
</span>
</a><a class="dropdown-item d-block" href="#">
<div class="small mb-1">Angular 8 Version<span class="float-right"><strong>100%</strong></span></div><span class="progress progress-xs">
<div class="progress-bar bg-success" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</span>
</a><a class="dropdown-item text-center border-top" href="#"><strong>View all tasks</strong></a>
</div>
</li>
<li class="c-header-nav-item dropdown d-md-down-none mx-2"><a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-envelope-open"></use>
</svg><span class="badge badge-pill badge-info">7</span></a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-lg pt-0">
<div class="dropdown-header bg-light"><strong>You have 4 messages</strong></div><a class="dropdown-item" href="#">
<div class="message">
<div class="py-3 mfe-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/7.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-success"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">Just now</small></div>
<div class="text-truncate font-weight-bold"><span class="text-danger">!</span> Important message</div>
<div class="small text-muted text-truncate">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</div>
</div>
</a><a class="dropdown-item" href="#">
<div class="message">
<div class="py-3 mfe-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/6.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-warning"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">5 minutes ago</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
<div class="small text-muted text-truncate">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</div>
</div>
</a><a class="dropdown-item" href="#">
<div class="message">
<div class="py-3 mfe-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/5.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-danger"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">1:52 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
<div class="small text-muted text-truncate">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</div>
</div>
</a><a class="dropdown-item" href="#">
<div class="message">
<div class="py-3 mfe-3 float-left">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/4.jpg" alt="<EMAIL>"><span class="c-avatar-status bg-info"></span></div>
</div>
<div><small class="text-muted"><NAME></small><small class="text-muted float-right mt-1">4:03 PM</small></div>
<div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
<div class="small text-muted text-truncate">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</div>
</div>
</a><a class="dropdown-item text-center border-top" href="#"><strong>View all messages</strong></a>
</div>
</li>
<li class="c-header-nav-item dropdown"><a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">
<div class="c-avatar"><img class="c-avatar-img" src="assets/img/avatars/6.jpg" alt="<EMAIL>"></div>
</a>
<div class="dropdown-menu dropdown-menu-right pt-0">
<div class="dropdown-header bg-light py-2"><strong>Account</strong></div><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-bell"></use>
</svg> Updates<span class="badge badge-info mfs-auto">42</span></a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-envelope-open"></use>
</svg> Messages<span class="badge badge-success mfs-auto">42</span></a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-task"></use>
</svg> Tasks<span class="badge badge-danger mfs-auto">42</span></a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-comment-square"></use>
</svg> Comments<span class="badge badge-warning mfs-auto">42</span></a>
<div class="dropdown-header bg-light py-2"><strong>Settings</strong></div><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-user"></use>
</svg> Profile</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-settings"></use>
</svg> Settings</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-credit-card"></use>
</svg> Payments<span class="badge badge-secondary mfs-auto">42</span></a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-file"></use>
</svg> Projects<span class="badge badge-primary mfs-auto">42</span></a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-lock-locked"></use>
</svg> Lock Account</a><a class="dropdown-item" href="#">
<svg class="c-icon mfe-2">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-account-logout"></use>
</svg> Logout</a>
</div>
</li>
<button class="c-header-toggler c-class-toggler mfe-md-3" type="button" data-target="#aside" data-class="c-sidebar-show">
<svg class="c-icon c-icon-lg">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-applications-settings"></use>
</svg>
</button>
</ul>
<div class="c-subheader justify-content-between px-3">
<!-- Breadcrumb-->
<ol class="breadcrumb border-0 m-0 px-0 px-md-3">
<li class="breadcrumb-item">Home</li>
<li class="breadcrumb-item"><a href="#">Admin</a></li>
<li class="breadcrumb-item active">Dashboard</li>
<!-- Breadcrumb Menu-->
</ol>
<div class="c-subheader-nav d-md-down-none mfe-2"><a class="c-subheader-nav-link" href="#">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-speech"></use>
</svg></a><a class="c-subheader-nav-link" href="#">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-graph"></use>
</svg> Dashboard</a><a class="c-subheader-nav-link" href="#">
<svg class="c-icon">
<use xlink:href="vendors/@coreui/icons/svg/free.svg#cil-settings"></use>
</svg> Settings</a></div>
</div>
</header>
<div class="c-body">
<main class="c-main">
<div class="container-fluid">
<div class="animated fade-in">
<div class="card">
<div class="card-header">
Markdown editor - CodeMirror
<a href="https://coreui.io/pro/" class="badge badge-danger">CoreUI Pro Component</a>
<div class="card-header-actions">
<a href="http://codemirror.net" class="card-header-action" target="_blank"><small class="text-muted">docs</small></a>
</div>
</div>
<!-- Create code editor container -->
<textarea id="codemirror" style="display: none;">Markdown: Basics
================
<ul id="ProjectSubmenu">
<li><a href="/projects/markdown/" title="Markdown Project Page">Main</a></li>
<li><a class="selected" title="Markdown Basics">Basics</a></li>
<li><a href="/projects/markdown/syntax" title="Markdown Syntax Documentation">Syntax</a></li>
<li><a href="/projects/markdown/license" title="Pricing and License Information">License</a></li>
<li><a href="/projects/markdown/dingus" title="Online Markdown Web Form">Dingus</a></li>
</ul>
Getting the Gist of Markdown's Formatting Syntax
------------------------------------------------
This page offers a brief overview of what it's like to use Markdown.
The [syntax page] [s] provides complete, detailed documentation for
every feature, but Markdown should be very easy to pick up simply by
looking at a few examples of it in action. The examples on this page
are written in a before/after style, showing example syntax and the
HTML output produced by Markdown.
It's also helpful to simply try Markdown out; the [Dingus] [d] is a
web application that allows you type your own Markdown-formatted text
and translate it to XHTML.
**Note:** This document is itself written using Markdown; you
can [see the source for it by adding '.text' to the URL] [src].
[s]: /projects/markdown/syntax "Markdown Syntax"
[d]: /projects/markdown/dingus "Markdown Dingus"
[src]: /projects/markdown/basics.text
## Paragraphs, Headers, Blockquotes ##
A paragraph is simply one or more consecutive lines of text, separated
by one or more blank lines. (A blank line is any line that looks like
a blank line -- a line containing nothing but spaces or tabs is
considered blank.) Normal paragraphs should not be indented with
spaces or tabs.
Markdown offers two styles of headers: *Setext* and *atx*.
Setext-style headers for `<h1>` and `<h2>` are created by
"underlining" with equal signs (`=`) and hyphens (`-`), respectively.
To create an atx-style header, you put 1-6 hash marks (`#`) at the
beginning of the line -- the number of hashes equals the resulting
HTML header level.
Blockquotes are indicated using email-style '`>`' angle brackets.
Markdown:
A First Level Header
====================
A Second Level Header
---------------------
Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.
The quick brown fox jumped over the lazy
dog's back.
### Header 3
> This is a blockquote.
>
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
Output:
<h1>A First Level Header</h1>
<h2>A Second Level Header</h2>
<p>Now is the time for all good men to come to
the aid of their country. This is just a
regular paragraph.</p>
<p>The quick brown fox jumped over the lazy
dog's back.</p>
<h3>Header 3</h3>
<blockquote>
<p>This is a blockquote.</p>
<p>This is the second paragraph in the blockquote.</p>
<h2>This is an H2 in a blockquote</h2>
</blockquote>
### Phrase Emphasis ###
Markdown uses asterisks and underscores to indicate spans of emphasis.
Markdown:
Some of these words *are emphasized*.
Some of these words _are emphasized also_.
Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.
Output:
<p>Some of these words <em>are emphasized</em>.
Some of these words <em>are emphasized also</em>.</p>
<p>Use two asterisks for <strong>strong emphasis</strong>.
Or, if you prefer, <strong>use two underscores instead</strong>.</p>
## Lists ##
Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
`+`, and `-`) as list markers. These three markers are
interchangable; this:
* Candy.
* Gum.
* Booze.
this:
+ Candy.
+ Gum.
+ Booze.
and this:
- Candy.
- Gum.
- Booze.
all produce the same output:
<ul>
<li>Candy.</li>
<li>Gum.</li>
<li>Booze.</li>
</ul>
Ordered (numbered) lists use regular numbers, followed by periods, as
list markers:
1. Red
2. Green
3. Blue
Output:
<ol>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ol>
If you put blank lines between items, you'll get `<p>` tags for the
list item text. You can create multi-paragraph list items by indenting
the paragraphs by 4 spaces or 1 tab:
* A list item.
With multiple paragraphs.
* Another item in the list.
Output:
<ul>
<li><p>A list item.</p>
<p>With multiple paragraphs.</p></li>
<li><p>Another item in the list.</p></li>
</ul>
### Links ###
Markdown supports two styles for creating links: *inline* and
*reference*. With both styles, you use square brackets to delimit the
text you want to turn into a link.
Inline-style links use parentheses immediately after the link text.
For example:
This is an [example link](http://example.com/).
Output:
<p>This is an <a href="http://example.com/">
example link</a>.</p>
Optionally, you may include a title attribute in the parentheses:
This is an [example link](http://example.com/ "With a Title").
Output:
<p>This is an <a href="http://example.com/" title="With a Title">
example link</a>.</p>
Reference-style links allow you to refer to your links by names, which
you define elsewhere in your document:
I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
Output:
<p>I get 10 times more traffic from <a href="http://google.com/"
title="Google">Google</a> than from <a href="http://search.yahoo.com/"
title="Yahoo Search">Yahoo</a> or <a href="http://search.msn.com/"
title="MSN Search">MSN</a>.</p>
The title attribute is optional. Link names may contain letters,
numbers and spaces, but are *not* case sensitive:
I start my morning with a cup of coffee and
[The New York Times][NY Times].
[ny times]: http://www.nytimes.com/
Output:
<p>I start my morning with a cup of coffee and
<a href="http://www.nytimes.com/">The New York Times</a>.</p>
### Images ###
Image syntax is very much like link syntax.
Inline (titles are optional):

Reference-style:
![alt text][id]
[id]: /path/to/img.jpg "Title"
Both of the above examples produce the same output:
<img src="/path/to/img.jpg" alt="alt text" title="Title" />
### Code ###
In a regular paragraph, you can create code span by wrapping text in
backtick quotes. Any ampersands (`&`) and angle brackets (`<` or
`>`) will automatically be translated into HTML entities. This makes
it easy to use Markdown to write about HTML example code:
I strongly recommend against using any `<blink>` tags.
I wish SmartyPants used named entities like `&mdash;`
instead of decimal-encoded entites like `&#8212;`.
Output:
<p>I strongly recommend against using any
<code>&lt;blink&gt;</code> tags.</p>
<p>I wish SmartyPants used named entities like
<code>&amp;mdash;</code> instead of decimal-encoded
entites like <code>&amp;#8212;</code>.</p>
To specify an entire block of pre-formatted code, indent every line of
the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`,
and `>` characters will be escaped automatically.
Markdown:
If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:
<blockquote>
<p>For example.</p>
</blockquote>
Output:
<p>If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:</p>
<pre><code>&lt;blockquote&gt;
&lt;p&gt;For example.&lt;/p&gt;
&lt;/blockquote&gt;
</code></pre>
## Fenced code blocks (and syntax highlighting)
```javascript
for (var i = 0; i < items.length; i++) {
console.log(items[i], i); // log them
}
```
</textarea>
</div>
</div>
</div>
</main>
</div>
<footer class="c-footer">
<div><a href="https://coreui.io">CoreUI</a> © 2020 creativeLabs.</div>
<div class="mfs-auto">Powered by <a href="https://coreui.io/pro/">CoreUI Pro</a></div>
</footer>
</div>
<!-- CoreUI and necessary plugins-->
<script src="vendors/@coreui/coreui-pro/js/coreui.bundle.min.js"></script>
<!--[if IE]><!-->
<script src="vendors/@coreui/icons/js/svgxuse.min.js"></script>
<!--<![endif]-->
<!-- Plugins and scripts required by this view-->
<script src="vendors/codemirror/js/codemirror.js"></script>
<script src="vendors/codemirror/js/markdown.js"></script>
<script src="js/markdown-editor.js"></script>
</body>
</html> | html |
{
"name": "receptor-behavior",
"version": "0.0.1",
"description": "...",
"main": "receptor-behavior.html",
"repository": "webenzymes/receptor-behavior",
"keywords": [
"web-components",
"receptor",
"events",
"polymer",
"behavior",
"web-enzymes"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/webenzymes/receptor-behavior/issues"
},
"homepage": "https://github.com/webenzymes/receptor-behavior#readme",
"progress": false,
"loglevel": "silent",
"depth": 0,
"git": {
"scripts": {
"commit-msg": "./node_modules/.bin/validate-commit-msg --preset eslint $1"
}
},
"dependencies": {},
"devDependencies": {
"bower": "1.7.x",
"git-scripts": "0.2.x",
"napa": "^2.3.0",
"polylint": "^2.10.1",
"polyserve": "0.10.x",
"validate-commit": "2.1.x",
"web-component-tester": "4.2.x"
},
"scripts": {
"lint": "polylint -b bower_components/ --no-recursion --input receptor-behavior.html"
}
}
| json |
import React from 'react'
import {getAllByClass} from "../tools/tools.js";
const ModelZona = () => {
const getAllZona = async () => {
const url = path_url_base+'/get-all-zona' ;
const response = await getAllByClass( url, {} );
if ( response.status )
{
const data = response.data;
return data;
}
return false;
}
return {
getAllZona
}
}
export default ModelZona; | javascript |
OnePlus will launch OnePlus Nord 3, OnePlus Nord CE 3, and OnePlus Bud 2R true wireless earbuds at the Nord Summer launch event in India today at 7:00 PM. The Nord Buds 2R look similar to the original Nord Buds with silicone tips and short stems.
The new OnePlus products, including two phones and two audio devices will be unveiled at the OnePlus Nord Summer Launch event at 7:30 PM on July 5. The Nord 3 will most likely come with a 6. 74-inch Full-HD+ AMOLED display. The OnePlus Nord CE 3 5G will be a toned-down version of the Nord 3.
The OnePlus Nord Buds 2R will be launching in India on July 5. These earbuds are expected to lack ANC support. Alongside the OnePlus Nord Buds 2R, OnePlus also might introduce the OnePlus Nord 3 as well as Nord CE 3 smartphone. | english |
{"vehicule":[{"localisation":{"lat":35.154720684536784,"lng":-90.0476640823171,"cap":198},"conduite":{"idLigne":54276,"vitesse":10,"destination":"CHAD LN @ GETWELL RD","avanceRetard":"4 min late","arretSuiv":{"nomCommercial":"SECOND @JACKSON","estimationTemps":0}},"id":10014,"vehiculeLoad":"0%","type":"Bus","numeroEquipement":"21704"},{"localisation":{"lat":35.109094163371516,"lng":-90.01028607311184,"cap":92},"conduite":{"idLigne":54297,"vitesse":8,"destination":"PRIMACY PKWY @ RIDGEWAY RD","avanceRetard":"on time","arretSuiv":{"nomCommercial":"<NAME> @ROZELLE","estimationTemps":-8}},"id":10020,"vehiculeLoad":"4%","type":"Bus","numeroEquipement":"21714"},{"localisation":{"lat":35.04912754958305,"lng":-89.80390889856545,"cap":5},"conduite":{"idLigne":54279,"vitesse":1,"destination":"<NAME> ","avanceRetard":"3 min late","arretSuiv":{"nomCommercial":"WINCHESTER @CENTENNIAL","estimationTemps":0}},"id":10031,"vehiculeLoad":"0%","type":"Bus","numeroEquipement":"21805"},{"localisation":{"lat":35.10146000721913,"lng":-89.8565930981283,"cap":283},"conduite":{"idLigne":54283,"vitesse":12,"destination":"WILLIAM HUDSON ","avanceRetard":"on time","arretSuiv":{"nomCommercial":"POPLAR @<NAME>","estimationTemps":0}},"id":8014,"vehiculeLoad":"0%","type":"Bus","numeroEquipement":"21713"},{"localisation":{"lat":35.11006255020237,"lng":-90.03040721693431,"cap":180},"conduite":{"idLigne":54275,"vitesse":4,"destination":"AIRWAYS TRANSIT","avanceRetard":"10 min late","arretSuiv":{"nomCommercial":"<NAME> @ENGLEWOOD","estimationTemps":0}},"id":10103,"vehiculeLoad":"20%","type":"Bus","numeroEquipement":"21205"},{"localisation":{"lat":35.20813906162346,"lng":-89.9214189886485,"cap":6},"conduite":{"idLigne":54284,"vitesse":12,"destination":"METHODIST HOSPI","avanceRetard":"on time","arretSuiv":{"nomCommercial":"<NAME> @JONES","estimationTemps":0}},"id":10111,"vehiculeLoad":"0%","type":"Bus","numeroEquipement":"456"},{"localisation":{"lat":35.122952950831525,"lng":-89.93893430047945,"cap":92},"conduite":{"idLigne":54283,"vitesse":14,"destination":"EXETER RD @ POPLAR AVE","avanceRetard":"2 min early","arretSuiv":{"nomCommercial":"CENTRAL AVE @ U-M CROSSWALK","estimationTemps":0}},"id":10115,"vehiculeLoad":"2%","type":"Bus","numeroEquipement":"4026"},{"localisation":{"lat":35.10675654123062,"lng":-89.98494679541095,"cap":7},"conduite":{"idLigne":54278,"vitesse":12,"destination":"FRAYSER PLAZA","avanceRetard":"on time","arretSuiv":{"nomCommercial":"AIRWAYS @PARK AVE","estimationTemps":0}},"id":10123,"vehiculeLoad":"8%","type":"Bus","numeroEquipement":"21211"},{"localisation":{"lat":35.09496108249571,"lng":-89.96680469039475,"cap":91},"conduite":{"idLigne":54279,"vitesse":16,"destination":"CENTENNIAL DR @ HACKS CROSS RD","avanceRetard":"4 min late","arretSuiv":{"nomCommercial":"KIMBALL AVE @KIMBALL CV","estimationTemps":0}},"id":10127,"vehiculeLoad":"0%","type":"Bus","numeroEquipement":"462"}]} | json |
Bollywood stars started moving into the South, it was being buzzed that Janhvi Kapoor too is going to make her South debut with NTR 30. Earlier during an interview, when Boney Kapoor’ daughter was asked about her Telugu debut and if it is true that she signed NTR 30, she told she would love to work with NTR, but she approved nothing then. Now the reports are coming that Jahnvi Kapoor has been finalized as the lead actress for Jr NTR starrer NTR30. She is reported to be taking record remuneration for the film.
Janhvi Kapoor was signed as NTR 30 female lead after expressing her desire to work with Jr NTR the last time she visited Hyderabad during promotions of her Malayalam remake film in Hindi, Mili.
Kaporo lady has been in plans to make her debut in Tollywood for many years, but the plans were delayed because of various reasons.
NTR 30 will be helmed by Koaratala Siva and bankrolled by Yuvasudha Arts and NTR Arts banners.
| english |
const libpath = alchemy.use('path');
/**
* The Directory class
*
* @constructor
*
* @author <NAME> <<EMAIL>>
* @since 1.1.0
* @version 1.1.0
*
* @param {String} path Path to the directory
*/
var Directory = Function.inherits('Alchemy.Inode', function Directory(path) {
Directory.super.call(this, path);
// The contents of this directory
this.contents = new Classes.Alchemy.Inode.List([]);
});
/**
* Directories are obviously directories
*
* @author <NAME> <<EMAIL>>
* @since 1.1.0
* @version 1.1.0
*
* @type {Boolean}
*/
Directory.setProperty('is_directory', true);
/**
* Load this directory's contents
*
* @author <NAME> <<EMAIL>>
* @since 1.1.0
* @version 1.1.0
*
* @return {Promise}
*/
Directory.setMethod(async function loadContents(options) {
if (!options) {
options = {};
}
if (options.recursive === true) {
options.recursive = Infinity;
}
if (options.recursive == null) {
options.recursive = 1;
}
let contents = await alchemy.readDir(this.path),
recursive = options.recursive - 1;
this.contents.entries = contents.entries;
contents = this.contents;
if (recursive > 0) {
await contents.loadDirContents({recursive});
}
return contents;
});
/**
* See if this directory contains any entries matching the given name
*
* @author <NAME> <<EMAIL>>
* @since 1.1.0
* @version 1.1.0
*
* @param {String|Regex} regex
*
* @return {Boolean}
*/
Directory.setMethod(function contains(regex) {
if (!this.contents.length) {
return false;
}
if (typeof regex == 'string') {
regex = RegExp.interpret(regex);
}
for (let entry of this.contents) {
if (regex.test(entry.name)) {
return true;
}
}
return false;
});
/**
* Iterator over the contents of this directory
*
* @author <NAME> <<EMAIL>>
* @since 1.1.0
* @version 1.1.0
*/
Directory.setMethod(Symbol.iterator, function* iterate() {
var i;
for (i = 0; i < this.contents.entries.length; i++) {
yield this.contents.entries[i];
}
});
/**
* Get a file from this directory, or its subdirectory
*
* @author <NAME> <<EMAIL>>
* @since 1.1.8
* @version 1.1.8
*
* @param {string|string[]} path
*
* @return {Alchemy.Inode}
*/
Directory.setMethod(async function get(path) {
if (!Array.isArray(path)) {
path = path.split(libpath.sep);
}
if (!this.contents.length) {
await this.loadContents();
}
let current,
result = this,
piece,
entry;
for (piece of path) {
current = result;
result = null;
// If the current piece isn't a directory we can end now
if (!current.is_directory) {
break;
}
// Loop over all the entries of the current directory
for (entry of current) {
if (piece == entry.name) {
result = entry;
break;
}
}
if (!result) {
return null;
}
}
return result;
});
/**
* Return a list of all files
*
* @author <NAME> <<EMAIL>>
* @since 1.1.8
* @version 1.1.8
*
* @return {Alchemy.Inode.List}
*/
Directory.setMethod(async function flatten() {
if (!this.contents.length) {
await this.loadContents({recursive: true});
}
let info = {
start : this.path,
seen : new Set(),
list : new Classes.Alchemy.Inode.List([]),
};
flattenFiles(this, info);
return info.list;
});
/**
* Add all files to the given list
*
* @author <NAME> <<EMAIL>>
* @since 1.1.8
* @version 1.1.8
*
* @param {Alchemy.Inode.Directory} current
* @param {Object} info
*
* @return {Alchemy.Inode.List}
*/
function flattenFiles(current, info) {
if (info.seen.has(current.path)) {
return;
}
info.seen.add(current.path);
let entry,
dirs = [];
for (entry of current) {
if (entry.is_file) {
info.list.entries.push(entry);
} else {
dirs.push(entry);
}
}
for (entry of dirs) {
flattenFiles(entry, info);
}
} | javascript |
Louis Oosthuizen fancies himself as a future world number one despite Rory McIlroy showing no signs of slipping down from the summit any time soon.
McIlroy is far ahead in the rankings with 593.71 points at the top as compared to Oosthuizen’s 345.24, but the South African is convinced his time will come as he prepared for the 2.5 million dollar Qatar Masters beginning on Wednesday.
“I want to climb up the world rankings to number one if I can, but I always take it slowly and see how my game is,” Oosthuizen said on Monday after a practice round at Doha Golf Club where he and fellow South Africans Ernie Els and Retief Goosen will be hoping to deny Scotsman Paul Lawrie an unprecedented third title.
Oosthuizen, the 2010 British Open champion, added, however, that he is ready to bide his time to achieve his ambition, saying he prefers taking one tournament at a time.
“I never try to set goals that I know are too tough to achieve or out of my reach. I feel like I’ve got a good shot at getting to number two at least by the end of the year,” said the 30-year-old, who was joint runner-up behind Spaniard Alvaro Quiros in 2009.
Oosthuizen is riding a wave of confidence after winning the Volvo Golf Champions tournament in South Africa this month, a factor he hoped would help him put in an impressive show in Doha.
Meanwhile, Els is considering himself a serious contender for a second Qatar Masters title. The four-time major winner will be hoping to join Adam Scott (2002, 2008) and holder Lawrie (1999, 2012) as a two-time champion.
“I have good memories of the Qatar Masters, especially after I won in 2005 when I played really well on the final day (shooting a 65). I enjoyed going back to Doha the next few years and also played pretty well in 2007, when I came third and Retief was champion,” said the “Big Easy”.
Goosen, who won in Qatar in 2007, is ready for his eighth appearance in Doha where he will bid to add to his 14 European Tour victories.
“I always like returning to a course where I’ve won before and it’s nice that Ernie will also be playing this year. We’ve played together in the event a few times and it’ll be good to do that again,” said Goosen.
| english |
#pragma once
#include <ysu/lib/numbers.hpp>
#include <ysu/lib/utility.hpp>
#include <ysu/secure/common.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/multi_index_container.hpp>
#include <chrono>
#include <memory>
#include <mutex>
#include <vector>
namespace ysu
{
class node;
class transaction;
/** For each gap in account chains, track arrival time and voters */
class gap_information final
{
public:
std::chrono::steady_clock::time_point arrival;
ysu::block_hash hash;
std::vector<ysu::account> voters;
bool bootstrap_started{ false };
};
/** Maintains voting and arrival information for gaps (missing source or previous blocks in account chains) */
class gap_cache final
{
public:
explicit gap_cache (ysu::node &);
void add (ysu::block_hash const &, std::chrono::steady_clock::time_point = std::chrono::steady_clock::now ());
void erase (ysu::block_hash const & hash_a);
void vote (std::shared_ptr<ysu::vote>);
bool bootstrap_check (std::vector<ysu::account> const &, ysu::block_hash const &);
void bootstrap_start (ysu::block_hash const & hash_a);
ysu::uint128_t bootstrap_threshold ();
size_t size ();
// clang-format off
class tag_arrival {};
class tag_hash {};
using ordered_gaps = boost::multi_index_container<ysu::gap_information,
boost::multi_index::indexed_by<
boost::multi_index::ordered_non_unique<boost::multi_index::tag<tag_arrival>,
boost::multi_index::member<gap_information, std::chrono::steady_clock::time_point, &gap_information::arrival>>,
boost::multi_index::hashed_unique<boost::multi_index::tag<tag_hash>,
boost::multi_index::member<gap_information, ysu::block_hash, &gap_information::hash>>>>;
ordered_gaps blocks;
// clang-format on
size_t const max = 256;
std::mutex mutex;
ysu::node & node;
};
std::unique_ptr<container_info_component> collect_container_info (gap_cache & gap_cache, const std::string & name);
}
| cpp |
Kolkata: Making a shift in its political strategy, the BJP has given tickets to an overwhelming number of Muslim candidates in the upcoming rural polls in West Bengal with an aim to corner a large chunk of crucial minority votes in the state.
The BJP this time has more than 850 candidates from the minority community for the rural polls on May 14.
According to state BJP sources, this is the highest number of candidates the saffron party has fielded ever in the panchayat polls in the state.
In the last panchayat polls of 2013, the BJP had less than 100 from the minority communities in its candidate list.
The ruling TMC, however, discounted BJP's minority outreach plan and asserted that they continue to have faith in party chief Mamata Banerjee.
"The minorities have full faith in us. The BJP is giving nominations to minorities and are fuelling riots in the state," senior TMC leader Partha Chatterjee said.
Citing the example of the 2016 assembly polls when the BJP had fielded only 6 Muslim candidates out of its list of 294 nominees, a senior BJP leader said "It is a major shift in party's political strategy where it is fielding more Muslim candidates. "
"It is obvious that in a state like West Bengal where the Muslim population is near about 30 per cent, we have to reach out to the minorities. The minority community too has realized that BJP is no longer their enemy as projected by TMC and other parties," state BJP Minority Morcha president Ali Hossain told PTI.
State BJP president Dilip Ghosh said had the nomination process been peaceful, the party would have fielded more than 2,000 minority candidates in the rural polls.
"Our party has expanded its base in Bengal by leaps and bounds and Muslims too think that BJP believes in development of all. We are running the government at the Centre and in more than 20 states, Muslims are living in peace and there are no problems," Mr Ghosh told PTI.
The party will repeat this strategy in 2019 general election, depending on the winnability of the candidates, Mr Ghosh said.
"We will not give tickets because of religion or caste but only on the criteria of 'winnability'," he said.
According to party sources, former TMC leader Mukul Roy, who had joined BJP last year, had played an important role in selection of candidates and ensuring that the party has higher number of Muslim candidates in the polls.
Mr Roy not only ensured allotting tickets to larger number of Muslim candidates but also brought in dissidents of the TMC and Left to the party to field them under its symbol, said a senior BJP leader.
The BJP has also outsmarted the Congress and CPI(M) to emerge as the second largest party after the ruling TMC in the number of candidates fighting the upcoming three tier rural polls.
The rural polls in West Bengal is significant as it would show popularity of parties before general election next year. BJP has time and again said that for them West Bengal was a focus state in the next parliamentay polls.
According to Hossain, Muslim candidates have been fielded mostly in areas where their population is high.
The party had fielded maximum number of Muslim nominees in Murshidabad, Malda, Uttar Dinajpur, South Dinajpur, Birbhum and South 24 Parganas, he said.
According to West Bengal SEC (State Election Commission) sources, of the 48,650 seats in 3,358 gram panchayats, 16,814 were uncontested and of the 9,217 seats in 341 panchayat samitis, 3,059 were uncontested.
In the 20 zilla parishads, 203 of the 825 seats were uncontested, they said.
The election to the remaining seats will be held on May 14.
After the withdrawal of candidature, the final list ofBJP candidates in Zilla parishads is 629, while in the Panchayat Samiti the party has 5218 candidates. In Gram panchayat, the BJP has 23,445 candidates.
"TMC and Left used to treat us as a votebank. But BJP beleives in development for all," said Reshma Parveen a BJP candidate from Coochbehar district. | english |
// Code generated by goa v3.2.4, DO NOT EDIT.
//
// activity HTTP client CLI support package
//
// Command:
// $ goa gen github.com/fieldkit/cloud/server/api/design
package client
import (
"fmt"
"strconv"
activity "github.com/fieldkit/cloud/server/api/gen/activity"
)
// BuildStationPayload builds the payload for the activity station endpoint
// from CLI flags.
func BuildStationPayload(activityStationID string, activityStationPage string, activityStationAuth string) (*activity.StationPayload, error) {
var err error
var id int64
{
id, err = strconv.ParseInt(activityStationID, 10, 64)
if err != nil {
return nil, fmt.Errorf("invalid value for id, must be INT64")
}
}
var page *int64
{
if activityStationPage != "" {
val, err := strconv.ParseInt(activityStationPage, 10, 64)
page = &val
if err != nil {
return nil, fmt.Errorf("invalid value for page, must be INT64")
}
}
}
var auth *string
{
if activityStationAuth != "" {
auth = &activityStationAuth
}
}
v := &activity.StationPayload{}
v.ID = id
v.Page = page
v.Auth = auth
return v, nil
}
// BuildProjectPayload builds the payload for the activity project endpoint
// from CLI flags.
func BuildProjectPayload(activityProjectID string, activityProjectPage string, activityProjectAuth string) (*activity.ProjectPayload, error) {
var err error
var id int64
{
id, err = strconv.ParseInt(activityProjectID, 10, 64)
if err != nil {
return nil, fmt.Errorf("invalid value for id, must be INT64")
}
}
var page *int64
{
if activityProjectPage != "" {
val, err := strconv.ParseInt(activityProjectPage, 10, 64)
page = &val
if err != nil {
return nil, fmt.Errorf("invalid value for page, must be INT64")
}
}
}
var auth *string
{
if activityProjectAuth != "" {
auth = &activityProjectAuth
}
}
v := &activity.ProjectPayload{}
v.ID = id
v.Page = page
v.Auth = auth
return v, nil
}
| go |
It's April, a time when the snows of the Europe either cease or start to decrease, and club cricketers from Dublin to Moscow reflect on their winter exercise and dietary regime and think, " was it enough - well, hamstrings eventually recover!"
With some countries already in full whites, 'Beyond The Test World' thought it was appropriate to brief you on when the various European competitions get underway.
In Ireland, the Foot and Mouth Disease scare caused consternation as to the starting dates on the three main Irish leagues, but it is expected the North West, Northern and Leinster competitions will begin as expected on Saturday, April 28.
The F&M scare threatened to delay the opening of the Irish season, consistent with the recent postponement of Rugby Union Five Nations matches in the Republic. While BTTW cannot explain the science, apparently any place where people can congregate and theoretically transfer turf from their footwear is believed to be a possible means of spreading the disease.
Across the Irish Sea, the Scottish League, like most European competitions is due to start on Saturday, May 5. The various regional leagues, the North, South, East and West are expected to start either a week earlier or around the same time.
In Norway, the competition there will start on May 5, with a yet-to-be-determined number of clubs. BTTW is pleased to announce it will be bringing you regular updates of the Norwegian season.
Next door in Sweden, the situation is apparently not as clear. It is understood no starting date has been set yet. If you are involved in cricket in Sweden and would like it to be publicised on this page, please email me.
The ever-progressive and approachable Finland Cricket Association will be starting their league on May 19, with friendlies starting on May 5. There are good things happening in Finnish cricket and BTTW will provide a more extensive description of events in the next edition. Andrew Armitage will keep you posted.
In Denmark, the Cup competition is already underway, while the League will start on May 5. Peter Power, whose reports remain popular, will brief you shortly on the Cup outcome and the prospects for the combatants of the League season.
Similarly, the Dutch season will commence on May 5 & 6. One of the stronger leagues, it features a contingent of players with extensive experience in either First Class or club cricket in the Test countries. BTTW does not have a correspondant on the Dutch domestic scene. Anyone interested is more than welcome to email me.
The Cup knockout competition in Belgium starts next weekend and will be followed by the start of the League season on May 6. Belgium has at least one new club as well as making great progress at the junior level. Look out for regular news from Martin O'Connor.
Richie Benaud will be bringing you monthly updates of the season in France. Next weekend the Parisien competition starts, while the South West (Sou Ouest) competition begins with five clubs on May 27. The commencement dates of the South East competition is not known at this time.
In Spain, there isn't a league competition, but there is plenty of cricket played mainly by the expatriate clubs against touring sides virtually 52 weeks a year.
Elsewhere on the Iberian peninsula, the Portuguese season takes off the weekend of April 28/29. Areeiro CC, formerly specialists at the indoor variety, are set to make their league debut, while it is hoped Oeiras CC is still a possibility. Unfortunately Oporto is not expected to be able to field a team on a regular basis this year so has opted out of the League. Peter Eckersley will keep you briefed on all the happenings in Portugal during 2001.
It's a May 5 start also for Gibraltan league cricket. It is understood six clubs will be participating.
On the French Riviera, Monaco's only cricket club, Monte Carlo CC, has already had its first practice match and plays its initial game in the heat of battle on April 29 at home against Montpelier. It has a fixture list which extends to October.
Not much is known about the various leagues in Germany, which tend to act in almost total isolation from each other. The Southern (Munich) league is expected to commence on May 15. It is hoped to provide regular updates of that competition throughout the German summer.
Switzerland also is looking at May 5 for its first hit of the year. John Bird will be bringing you regular updates on what is happening there.
The caretakers of eastern European cricket, the Austrian Cricket Association, have yet again proven their expansionist credentials with the inclusion of Slovenia's Llubljana CC and Croatia's Zagreb CC in their nine-team domestic Open League competition, which starts on Saturday, April 28. The Czech Republic's Prague CC is expected to join them for the first round of the Trophy Cup knockout competition on June 9. The ACA is one of the best laid out non-Test national sites on the internet and well worth a look.
Elsewhere in this edition of BTTW, you can find Simone Gambino's account of the opening of the season in Italy.
With Jewish Passover almost over, the Israel Cricket Association hopes to start its domestic season next Thursday (April 14).
A pleasant problem exists with brining you news from Greece where Greek being the favoured tongue there has made it difficult to locate a reliable contact. If you have Greek characters on your PC, your help would be most appreciated.
In Russia, a six team competition is expected to be contested by Moscow's expatriate community. It is hoped it will get underway on May 5.
One of the Ukraine's most important competitions, the Vinnitsa Pirogov Memorial Tournament, is believed to have already started. BTTW will be bringing you regular updates of cricket in the Ukraine this northern summer.
Just to paraphrase, BTTW requires assistance with receiving news from Sweden, the Netherlands, Greece, Malta and Turkey. Your help would be gratefully received.
To all cricket players and supporters across Europe, I hope the 2001 is an enjoyable and injury-free one.
| english |
import { Controller, Get, Res, UseGuards, Request } from '@nestjs/common';
import { Response} from 'express';
import { TopService } from './top.service';
import { JwtAuthGuard } from '../../auth/jwt-auth-guard';
import { Role } from 'src/roles/role.entity';
import { Roles } from 'src/roles/roles.decorator';
@Controller('api/view')
export class ViewController {
constructor(private topService: TopService) {}
//@UseGuards(JwtAuthGuard)
@Get()
public async renderView(@Request() req, @Res() res: Response) {
let top = await this.topService.getTop();
res.render('main.hbs', {
top1: top,
});
}
}
| typescript |
<reponame>wahello/openshift-installer
package servicecatalog
import (
"fmt"
"regexp"
"github.com/hashicorp/terraform-provider-aws/internal/verify"
)
func validSharePrincipal(v interface{}, k string) (ws []string, errors []error) {
value := v.(string)
// either account ID, or organization or organization unit
wsAccount, errorsAccount := verify.ValidAccountID(v, k)
if len(errorsAccount) == 0 {
return wsAccount, errorsAccount
}
wsARN, errorsARN := verify.ValidARN(v, k)
ws = append(ws, wsARN...)
errors = append(errors, errorsARN...)
pattern := `^arn:[\w-]+:organizations:.*:(ou|organization)/`
if !regexp.MustCompile(pattern).MatchString(value) {
errors = append(errors, fmt.Errorf("%q does not look like an OU or organization: %q", k, value))
}
if len(errors) > 0 {
errors = append(errors, errorsAccount...)
}
return ws, errors
}
| go |
The upcoming SmackDown boasts of being one of the biggest in recent memory as night one of the Draft is expected to shake up the roster massively.
Triple H has promised to rock the WWE foundation to its core, and we expect nothing less from The Game. He has offered several highlight-reel moments since taking over the creative team.
The special Draft episode of the Blue brand will also have its fair share of in-ring action, including a much-anticipated WrestleMania 39 rematch. A popular star could also secure a win after a lengthy losing streak that might just be one of the many newsworthy moments from the packed edition of SmackDown.
On that note, let's take a look at the possibilities from this week's show:
The complete list of superstars eligible to be drafted on the first night is stacked, but all eyes will unsurprisingly be on Roman Reigns' crew. While it's becoming hard to track all the speculation surrounding The Bloodline, WWE will undoubtedly make a few big calls pertaining to the most dominant faction in the company.
Roman Reigns and Solo Sikoa are amongst the pool of talents who will be picked on SmackDown during the Draft, while The Usos have been listed for night two. Based on all the reports doing the rounds, Roman Reigns should ideally be the first pick on SmackDown. However, as explained here, he could be forced to move to RAW due to the rules.
The past few weeks have been about the apparent tensions between The Bloodline members, with Reigns particularly unhappy about The Usos' recent performances. There is every chance that Reigns and Solo Sikoa together could move on to a different brand than the Usos, leading to the long-awaited end of The Bloodline.
Jimmy and Jey Uso are scheduled for a massive tag team title match, and a defeat could prove to be the final nail in the coffin for the stable's future, leading to Reigns completely losing trust in the twins and ousting them from the Bloodline.
The Draft won't just be about The Bloodline as Becky Lynch, Bianca Belair, Bobby Lashley, Drew McIntyre, Edge, and many other top names could find themselves on a new brand following SmackDown. Add to that the prospect of seeing NXT stars and other unlisted superstars get drafted, making the upcoming SmackDown unmissable.
Any match involving The Bloodline is bound to be chaotic. Fans should expect one or more swerves during the undisputed tag team championship match between the two teams that headlined the first day of WrestleMania 39.
Sami Zayn and Kevin Owens picked up one of their most significant victories back then, but things haven't been all that rosy between the two best friends since their championship triumph. We're not even a month into their reign, and fans have already complained about it being stale, and a shocking title change can never be ruled out, considering WWE's unpredictable booking patterns.
Moreover, the recently-introduced World Heavyweight Championship might be one of many new titles that make its way to WWE TV as the promotion reportedly has plans on having two separate tag team championships moving forward.
WWE could plant the seeds for the arrival of the new tag team belts by having Zayn & KO vs. The Usos end controversially.
The decision to award Zelina Vega a shot at the SmackDown Women's Championship might have caught many off guard. Still, it could be an entertaining stopgap program before Rhea Ripley gets into a bigger feud.
While it's understandable that Vega hasn't been a full-time in-ring performer for WWE, it's astonishing that her last win came back in January 2022, nearly 460 days ago. A lengthy injury hiatus didn't help her cause, but Zelina finally looks to be gathering some babyface momentum as a member of the LWO.
The 32-year-old star is a heavy underdog going into a Backlash match against Rhea Ripley, but getting a win over Sonya Deville this week on SmackDown might help her look strong, which is an essential requirement for every championship contender in WWE.
In addition to the Draft and the matches announced, Triple H and co. should have a few surprises up their sleeve, and we'd love to see your predictions in the comments section below. | english |
/*
* Copyright (C) 2012 www.amsoft.cn
*
* 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 com.ab.view.calendar;
import java.util.Calendar;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.FontMetrics;
import android.graphics.RectF;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.view.Display;
import android.view.View;
import android.view.WindowManager;
import com.ab.util.AbGraphicUtil;
// TODO: Auto-generated Javadoc
/**
* © 2012 amsoft.cn
* 名称:CalendarHeader.java
* 描述:日历控件头部绘制类
*
* @author 还如一梦中
* @version v1.0
* @date:2013-7-9 下午2:07:52
*/
public class CalendarHeader extends View {
/** The tag. */
private String TAG = "CalendarHeader";
/** The m paint. */
private final Paint mPaint;
/** The rect. */
private RectF rect = new RectF();
//星期几
/** The week day. */
private int weekDay = Calendar.SUNDAY;
//星期的数据
/** The day name. */
private String[] dayName = new String[10];
/** The width. */
private int width = 320;
/** The height. */
private int height = 480;
/** 每个单元格的宽度. */
private int cellWidth = 40;
/** 文字颜色. */
private int defaultTextColor = Color.rgb(86, 86, 86);
/** 特别文字颜色. */
private int specialTextColor = Color.rgb(240, 140, 26);
/** 字体大小. */
private int defaultTextSize = 25;
/** 字体是否加粗. */
private boolean defaultTextBold = false;
/** 是否有设置头部背景. */
private boolean hasBg = false;
/**
* 日历头.
*
* @param context the context
*/
public CalendarHeader(Context context) {
this(context, null);
}
/**
* Instantiates a new calendar header.
*
* @param context the context
* @param attributeset the attributeset
*/
public CalendarHeader(Context context, AttributeSet attributeset) {
super(context);
dayName[Calendar.SUNDAY] = "周日";
dayName[Calendar.MONDAY] = "周一";
dayName[Calendar.TUESDAY] = "周二";
dayName[Calendar.WEDNESDAY] = "周三";
dayName[Calendar.THURSDAY] = "周四";
dayName[Calendar.FRIDAY] = "周五";
dayName[Calendar.SATURDAY] = "周六";
mPaint = new Paint();
mPaint.setColor(defaultTextColor);
mPaint.setAntiAlias(true);
mPaint.setTypeface(Typeface.DEFAULT);
mPaint.setTextSize(defaultTextSize);
WindowManager wManager = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
Display display = wManager.getDefaultDisplay();
width = display.getWidth();
height = display.getHeight();
cellWidth = (width-20)/7;
}
/**
* 描述:设置背景.
*
* @param resid the new header background resource
*/
public void setHeaderBackgroundResource(int resid){
setBackgroundResource(resid);
hasBg = true;
}
/**
* 描述:文字大小.
*
* @return the text size
*/
public int getTextSize() {
return defaultTextSize;
}
/**
* 描述:设置文字大小.
*
* @param mTextSize the new text size
*/
public void setTextSize(int mTextSize) {
this.defaultTextSize = mTextSize;
mPaint.setTextSize(defaultTextSize);
this.invalidate();
}
/**
* 描述:TODO.
*
* @version v1.0
* @param canvas the canvas
* @see android.view.View#onDraw(android.graphics.Canvas)
* @author: amsoft.cn
* @date:2013-7-19 下午4:30:45
*/
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
if(!hasBg){
canvas.drawColor(Color.WHITE);
//设置矩形大小
rect.set(0, 0, this.getWidth(),this.getHeight());
rect.inset(0.5f,0.5f);
}
// 绘制日历头部
drawDayHeader(canvas);
}
/**
* Draw day header.
*
* @param canvas the canvas
*/
private void drawDayHeader(Canvas canvas) {
// 写入日历头部,设置画笔参数
if(!hasBg){
// 画矩形,并设置矩形画笔的颜色
mPaint.setColor(Color.rgb(150, 195, 70));
canvas.drawRect(rect, mPaint);
}
if(defaultTextBold){
mPaint.setFakeBoldText(true);
}
mPaint.setColor(defaultTextColor);
for (int iDay = 1; iDay < 8; iDay++) {
if(iDay==1 || iDay==7){
mPaint.setColor(specialTextColor);
}
// draw day name
final String sDayName = getWeekDayName(iDay);
TextPaint mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG);
mTextPaint.setTypeface(Typeface.DEFAULT_BOLD);
mTextPaint.setTextSize(defaultTextSize);
FontMetrics fm = mTextPaint.getFontMetrics();
//得到行高
int textHeight = (int)Math.ceil(fm.descent - fm.ascent);
int textWidth = (int)AbGraphicUtil.getStringWidth(sDayName,mTextPaint);
final int iPosX = (int) rect.left +cellWidth*(iDay-1)+(cellWidth-textWidth)/2;
final int iPosY = (int) (this.getHeight()
- (this.getHeight() - textHeight) / 2 - mPaint
.getFontMetrics().bottom);
canvas.drawText(sDayName, iPosX, iPosY, mPaint);
mPaint.setColor(defaultTextColor);
}
}
/**
* 描述:获取星期的文字描述.
*
* @param calendarDay the calendar day
* @return the week day name
*/
public String getWeekDayName(int calendarDay) {
return dayName[calendarDay];
}
}
| java |
package com.exalpme.bozhilun.android.activity.wylactivity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.JsonRequest;
import com.android.volley.toolbox.Volley;
import com.exalpme.bozhilun.android.MyApp;
import com.example.bozhilun.android.R;
import com.exalpme.bozhilun.android.activity.wylactivity.wyl_util.FileDownloadThread;
import com.exalpme.bozhilun.android.activity.wylactivity.wyl_util.service.DfuService;
import com.exalpme.bozhilun.android.activity.wylactivity.wyl_util.service.library.ArcProgress;
import com.exalpme.bozhilun.android.base.BaseActivity;
import com.exalpme.bozhilun.android.bean.MessageEvent;
import com.exalpme.bozhilun.android.bean.ServiceMessageEvent;
import com.exalpme.bozhilun.android.bleutil.BluetoothLeService;
import com.exalpme.bozhilun.android.bleutil.MyCommandManager;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;
import org.json.JSONObject;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import java.util.Map;
import butterknife.BindView;
import butterknife.OnClick;
import no.nordicsemi.android.dfu.DfuProgressListener;
import no.nordicsemi.android.dfu.DfuProgressListenerAdapter;
import no.nordicsemi.android.dfu.DfuServiceInitiator;
import no.nordicsemi.android.dfu.DfuServiceListenerHelper;
import static com.exalpme.bozhilun.android.bleutil.MyCommandManager.Currentversionnumber;
import static com.exalpme.bozhilun.android.bleutil.MyCommandManager.FirmwareupgradeDirective;
/**
* Created by admin on 2016/9/5.
* 我的手环系统升级
*/
public class MyShouhuanXitongShenJiActivity extends BaseActivity implements BluetoothAdapter.LeScanCallback {
String downloadUrl;
String filepath;
File file;
private JSONObject bject = new JSONObject();
public String mDeviceName, mDeviceAddress;//蓝牙名字和地址
String version;//版本号
private static final String TAG = MyShouhuanXitongShenJiActivity.class.getSimpleName();
private boolean islinnajie = false;//是否连接好了
private boolean istankuan= false;
private BluetoothAdapter mBluetoothAdapter; // 本机蓝牙适配器对象
private Handler handler;
private Boolean ISB15=false;
private Boolean isxiazai=false;
private String mybanben;//当前的版本
@BindView(R.id.jindu_xianshi)
TextView JINDU;
@BindView(R.id.xitongbanben)
TextView banben;
@BindView(R.id.download_message)
TextView mMessageView;
@BindView(R.id.download_progress)
ProgressBar mProgressbar;
@BindView(R.id.shengji_dianji)
TextView SHENGJI;
@BindView(R.id.myprogress_arcprogress)
ArcProgress arcProgress;
@BindView(R.id.tv_title)
TextView gujian;
protected void initViews() {
gujian.setText(getResources().getString(R.string.firmware_upgrade));
EventBus.getDefault().register(this);
try {
//取得蓝牙的名字和mac
if (null != MyCommandManager.DEVICENAME) {
mDeviceName =MyCommandManager.DEVICENAME;//蓝牙的名字
mDeviceAddress = MyCommandManager.ADDRESS;//蓝牙的mac
//查询下版本号
if("B15P".equals(mDeviceName)){
SHENGJI.setEnabled(false);
Currentversionnumber(MyCommandManager.DEVICENAME);ISB15=true;
}else if("B15S".equals(mDeviceName)||"B15S-H".equals(mDeviceName)){
SHENGJI.setEnabled(false);
Currentversionnumber(MyCommandManager.DEVICENAME);ISB15=false;
}
else if("DfuLang".equals(mDeviceName)){
try{
SHENGJI.setText(getResources().getString(R.string.auto_upgrade));
arcProgress.setVisibility(View.VISIBLE);
SharedPreferences mySharedPrep= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("lanjiekj", Activity.MODE_PRIVATE);
SharedPreferences.Editor editorc = mySharedPrep.edit();
//用putString的方法保存数据
editorc.putString("lanjiekj","kaile");editorc.commit();
final DfuServiceInitiator starter = new DfuServiceInitiator(mDeviceAddress).setDeviceName("DfuLang").setKeepBond(false);
SharedPreferences mySharedPre= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("filepath", Activity.MODE_PRIVATE);
File file = new File(mySharedPre.getString("filepath",""));
Uri fileUri = Uri.fromFile(file);
starter.setZip(fileUri, mySharedPre.getString("filepath",""));
starter.start(MyShouhuanXitongShenJiActivity.this, DfuService.class);
}catch (Exception E){
E.printStackTrace();
}
}
}
} catch (Exception e) {e.printStackTrace();}
handler = new Handler(){
public void handleMessage(android.os.Message msg) {
if(msg.what == 1){
try{
// 动态更新UI界面
String str = String.valueOf( msg.getData().getInt("num"));
JINDU.setText(str+"%");
arcProgress.setProgress(Integer.valueOf(str));
if(str.equals("100")){
SHENGJI.setEnabled(false);
JINDU.setVisibility(View.INVISIBLE);
banben.setText(mybanben);
SHENGJI.setText(getResources().getString(R.string.upgrade_completed));
arcProgress.setVisibility(View.GONE);
SHENGJI .setBackgroundDrawable(getResources().getDrawable(R.drawable.sms_verification));
//发送重新连接请求
EventBus.getDefault().post(new ServiceMessageEvent("Bingdingshouhuan"));
}
}catch (Exception e){
e.printStackTrace();
}}}};
}
@Override
protected int getContentViewId() {return R.layout.activity_mysgouhuan_gujianshensi;}
/**
* 方法必须重写
*/
@Override
protected void onResume() {
super.onResume();
DfuServiceListenerHelper.registerProgressListener(this, mDfuProgressListener);
}
@Override
public void onDestroy() {
super.onDestroy();
EventBus.getDefault().unregister(this);
islinnajie = false;
SharedPreferences mySharedPre= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("lanjiekj", Activity.MODE_PRIVATE);
SharedPreferences.Editor editorc = mySharedPre.edit();
//用putString的方法保存数据
editorc.putString("lanjiekj","guan");
editorc.commit();
}
@Subscribe(threadMode = ThreadMode.MAIN)
public void onEventMainThread(MessageEvent event) {
String msg = event.getMessage();
if ("all_day_Currentversionnumber".equals(msg)) {
version = event.getObject().toString();
banben.setText(version.toString());
//查看是否是最新版
Boolean is = com.exalpme.bozhilun.android.activity.wylactivity.wyl_util.service.ConnectManages.isNetworkAvailable(MyShouhuanXitongShenJiActivity.this);
if (is == true) {
try {bject.put("clientType", "android");bject.put("version", version);if(ISB15){bject.put("status","0");}else{bject.put("status","1");}} catch (Exception e) {e.printStackTrace();}
RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
JsonRequest<JSONObject> jsonRequest = new JsonObjectRequest(Request.Method.POST, "http://4172.16.17.327:8080/watch/user/getVersion", bject,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
if (response.optString("resultCode").equals("010")) {
SHENGJI.setEnabled(false);
Toast.makeText(MyShouhuanXitongShenJiActivity.this,getResources().getString(R.string.latest_version), Toast.LENGTH_SHORT).show();
return;
}else {
//升级的代码
try {
mybanben=response.optString("version");
downloadUrl = response.optString("url");
SHENGJI.setEnabled(true);
/* mProgressbar.setVisibility(View.GONE);*/
//设备是否连接
doDownload();
} catch (Exception E) {E.printStackTrace();}}}}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(MyShouhuanXitongShenJiActivity.this,getResources().getString(R.string.wangluo), Toast.LENGTH_SHORT).show();
}}) {@Override
public Map<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Accept", "application/json");
headers.put("Content-Type", "application/json; charset=UTF-8");
return headers;}};requestQueue.add(jsonRequest);}
}else if("all_day_Currentversionnumber2".equals(msg)){
final String VERSION = event.getObject().toString();
banben.setText(VERSION);
//查看是否是最新版
Boolean is = com.exalpme.bozhilun.android.activity.wylactivity.wyl_util.service.ConnectManages.isNetworkAvailable(MyShouhuanXitongShenJiActivity.this);
if (is == true) {
try {
bject.put("clientType", "android");
bject.put("version", VERSION);
if(ISB15){bject.put("status","0");}else{bject.put("status","1");}
} catch (Exception e) {
e.printStackTrace();
}
RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
JsonRequest<JSONObject> jsonRequest = new JsonObjectRequest(Request.Method.POST,"http://192.168.127.12:8080/watch/user/getVersion", bject,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
if (response.optString("resultCode").equals("001")) {
if(response.optString("version").equals(VERSION)){
SHENGJI.setEnabled(false);
Toast.makeText(MyShouhuanXitongShenJiActivity.this,getResources().getString(R.string.latest_version), Toast.LENGTH_SHORT).show();
return;
}else{
//升级的代码
try {
mybanben=response.optString("version");
downloadUrl = response.optString("url");
SHENGJI.setEnabled(true);
mProgressbar.setVisibility(View.VISIBLE);
//设备是否连接
doDownload();
} catch (Exception E) {E.printStackTrace();}}}}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {}}) {@Override
public Map<String, String> getHeaders() {
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Accept", "application/json");
headers.put("Content-Type", "application/json; charset=UTF-8");return headers;}};
requestQueue.add(jsonRequest);
} else {
Toast.makeText(MyShouhuanXitongShenJiActivity.this,getResources().getString(R.string.wangluo), Toast.LENGTH_SHORT).show();
}
}
}
/**
* 使用Handler更新UI界面信息
*/
@SuppressLint("HandlerLeak")
Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
mProgressbar.setProgress(msg.getData().getInt("size"));
float temp = (float) mProgressbar.getProgress()
/ (float) mProgressbar.getMax();
int progress = (int) (temp * 100);
//mMessageView.setText("下载进度:" + progress + " %");
if (progress == 100) {
mProgressbar.setVisibility(View.INVISIBLE);
JINDU.setVisibility(View.VISIBLE);
arcProgress.setVisibility(View.VISIBLE);
isxiazai=true;
//发送
SHENGJI.setEnabled(true);
SHENGJI.setBackgroundDrawable(getResources().getDrawable(R.drawable.login_selector));
}
}
};
@OnClick({R.id.shengji_dianji})
public void onClick(View v) {
switch (v.getId()) {
//升级
case R.id.shengji_dianji:
//查询是否已经绑定过设备
try {
SHENGJI.setText(getResources().getString(R.string.upgrade));
if(mDeviceName.equals("DfuLang")){
Enoad(1);
}else{
if(isxiazai){
//"发送升级命令
MyCommandManager.deviceDisconnState = true;
FirmwareupgradeDirective(mDeviceName);
mHandler.postDelayed(new Runnable() {
@Override
public void run() {
System.out.println("给设备3秒,扫描" );
scanDevice();
}
}, 3000);
}}} catch (Exception e) {e.printStackTrace();}
break;
}}
public void scanDevice() {
BluetoothLeService BluetoothLeService=new BluetoothLeService();
BluetoothLeService.disconnect();
final BluetoothManager bluetoothManager =
(BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);
mBluetoothAdapter = bluetoothManager.getAdapter();
if (mBluetoothAdapter == null) {
Toast.makeText(this,R.string.bluetooth_not_supported, Toast.LENGTH_SHORT).show();
return;
}
// System.out.println("扫描开始" );
mBluetoothAdapter.startLeScan(this);
}
@Override
public void onLeScan(BluetoothDevice bluetoothDevice, int i, byte[] bytes) {
try{
//mDeviceAddress是正常模式下的地址
String address = bluetoothDevice.getAddress();
System.out.println("address" +address.toString());
if (TextUtils.equals(address, addmac(mDeviceAddress))) {
SharedPreferences mySharedPre= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("lanjiekj", Activity.MODE_PRIVATE);
SharedPreferences.Editor editorc = mySharedPre.edit();
//用putString的方法保存数据
editorc.putString("lanjiekj","kaile");
editorc.commit();
//调用固件升级的源码
if (null != mBluetoothAdapter) {
mBluetoothAdapter.stopLeScan(MyShouhuanXitongShenJiActivity.this);
MyApp.getmBluetoothLeService().connect(addmac(mDeviceAddress));
Enoad(0);
}
}
}catch (Exception E){E.printStackTrace();}
}
/**
* 下载准备工作,获取SD卡路径、开启线程
*/
private void doDownload() {
// 获取SD卡路径
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/amosdownload/";
file = new File(path);
// 如果SD卡目录不存在创建
if (!file.exists()) {file.mkdir();}
// 设置progressBar初始化
mProgressbar.setProgress(0);
// 简单起见,我先把URL和文件名称写死,其实这些都可以通过HttpHeader获取到
String fileName = "oad.zip";
int threadNum = 5;
filepath = path + fileName;
//保存
SharedPreferences mySharedPre= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("filepath", Activity.MODE_PRIVATE);
SharedPreferences.Editor editorc = mySharedPre.edit();
//用putString的方法保存数据
editorc.putString("filepath",filepath);
editorc.commit();
Log.d(TAG, "downloadfilepath:" + filepath);
downloadTask task = new downloadTask(downloadUrl, threadNum, filepath);
task.start();
}
/**
* 多线程文件下载
*
* @author yangxiaolong
* @2014-8-7
*/
class downloadTask extends Thread {
private String downloadUrl;// 下载链接地址
private int threadNum;// 开启的线程数
private String filePath;// 保存文件路径地址
private int blockSize;// 每一个线程的下载量
public downloadTask(String downloadUrl, int threadNum, String fileptah) {
this.downloadUrl = downloadUrl;
this.threadNum = threadNum;
this.filePath = fileptah;
}
@Override
public void run() {
FileDownloadThread[] threads = new FileDownloadThread[threadNum];
try {
URL url = new URL(downloadUrl);
Log.d(TAG, "download file http path:" + downloadUrl);
URLConnection conn = url.openConnection();
// 读取下载文件总大小
int fileSize = conn.getContentLength();
if (fileSize <= 0) {
//System.out.println("读取文件失败");
return;
}
// 设置ProgressBar最大的长度为文件Size
mProgressbar.setMax(fileSize);
// 计算每条线程下载的数据长度
blockSize = (fileSize % threadNum) == 0 ? fileSize / threadNum
: fileSize / threadNum + 1;
Log.d(TAG, "fileSize:" + fileSize + " blockSize:" + blockSize);
File file = new File(filePath);
for (int i = 0; i < threads.length; i++) {
// 启动线程,分别下载每个线程需要下载的部分
threads[i] = new FileDownloadThread(url, file, blockSize,
(i + 1));
threads[i].setName("Thread:" + i);
threads[i].start();
}
boolean isfinished = false;
int downloadedAllSize = 0;
while (!isfinished) {
isfinished = true;
// 当前所有线程下载总量
downloadedAllSize = 0;
for (int i = 0; i < threads.length; i++) {
downloadedAllSize += threads[i].getDownloadLength();
if (!threads[i].isCompleted()) {
isfinished = false;
}
}
// 通知handler去更新视图组件
Message msg = new Message();
msg.getData().putInt("size", downloadedAllSize);
mHandler.sendMessage(msg);
// Log.d(TAG, "current downloadSize:" + downloadedAllSize);
Thread.sleep(1000);// 休息1秒后再读取下载进度
}
Log.d(TAG, " all of downloadSize:" + downloadedAllSize);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
private void Enoad(int id ) {
try {
final DfuServiceInitiator starter;
if(0==id){
starter = new DfuServiceInitiator(addmac(mDeviceAddress)).setDeviceName("DfuLang").setKeepBond(false);
File file = new File(filepath);
Uri fileUri = Uri.fromFile(file);
starter.setZip(fileUri, filepath);
starter.start(MyShouhuanXitongShenJiActivity.this, DfuService.class);
}else{
starter = new DfuServiceInitiator(mDeviceAddress).setDeviceName("DfuLang").setKeepBond(false);
SharedPreferences mySharedPre= MyShouhuanXitongShenJiActivity.this.getSharedPreferences("filepath", Activity.MODE_PRIVATE);
File file = new File(mySharedPre.getString("filepath",""));
Uri fileUri = Uri.fromFile(file);
starter.setZip(fileUri, mySharedPre.getString("filepath",""));
starter.start(MyShouhuanXitongShenJiActivity.this, DfuService.class);
}
} catch (Exception e) {e.printStackTrace();}
}
/**
* 升级进度监听
*/
private final DfuProgressListener mDfuProgressListener = new DfuProgressListenerAdapter() {
public void onDeviceConnecting(final String deviceAddress) {
Log.d(TAG, "onDeviceConnecting");
System.out.print("onDeviceConnecting");
// empty default implementation
}
@Override
public void onDeviceConnected(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDeviceConnected");
System.out.print("onDeviceConnected");
}
@Override
public void onDfuProcessStarting(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDfuProcessStarting");
System.out.print("onDfuProcessStarting");
MyApp.getmBluetoothLeService().connect(addmac(mDeviceAddress));
}
@Override
public void onDfuProcessStarted(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDfuProcessStarted");
System.out.print("onDfuProcessStarted");
}
@Override
public void onEnablingDfuMode(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onEnablingDfuMode");
System.out.print("onEnablingDfuMode");
}
@Override
public void onProgressChanged(final String deviceAddress, final int percent, final float speed, final float avgSpeed, final int currentPart, final int partsTotal) {
try {
if(percent!=0){
Message msg = new Message();
msg.what = 1;
Bundle bundle = new Bundle();
bundle.putInt("num",percent);
msg.setData(bundle);
handler.sendMessage(msg);
}} catch (Exception e) {e.printStackTrace();}
}
@Override
public void onFirmwareValidating(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onFirmwareValidating");
System.out.print("onFirmwareValidating");
}
@Override
public void onDeviceDisconnecting(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDeviceDisconnecting");
System.out.print("onDeviceDisconnecting");
}
@Override
public void onDeviceDisconnected(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDeviceDisconnected");
System.out.print("onDeviceDisconnected");
}
@Override
public void onDfuCompleted(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDfuCompleted");
System.out.print("onDfuCompleted");
}
@Override
public void onDfuAborted(final String deviceAddress) {
// empty default implementation
Log.d(TAG, "onDfuAborted");
System.out.print("onDfuAborted");
}
@Override
public void onError(final String deviceAddress, final int error, final int errorType, final String message) {
// empty default implementation
Log.d(TAG, "onError");
System.out.print("onError");
//调用固件升级的源码
if (null != mBluetoothAdapter) {
mBluetoothAdapter.stopLeScan(MyShouhuanXitongShenJiActivity.this);
MyApp.getmBluetoothLeService().connect(mDeviceAddress);
Enoad(0);
}
//多试,Enoad();
}
};
@Override
protected void onPause() {
super.onPause();
DfuServiceListenerHelper.unregisterProgressListener(this, mDfuProgressListener);
}
public static String addmac(String oldmac) {
if (oldmac == null || oldmac.isEmpty()) {
return "";
}
String newmac = oldmac;
int length = oldmac.length();
if (length >= 2) {
String qian = oldmac.substring(0, length - 2);
String houwei = oldmac.substring(length - 2, length);
newmac = qian + huansuan(houwei);
newmac=newmac.toUpperCase();
}
return newmac;
}
public static String huansuan(String old) {
String strnew = old;
int strw = 0;
try {
strw = Integer.valueOf(old, 16) + 1;
strnew = Integer.toHexString(strw);
//考虑是“0a”开头
if (strw <= 15) {
strnew = "0" + strnew;
}
//考虑是“ff”开头
if (strnew.length() > 2) {
strnew = strnew.substring(1, 3);
}
} catch (Exception e) {
e.printStackTrace();
}
return strnew;
}
} | java |
{
"startProductName": "m20-prerelease",
"packFiles": [
"packs.json?v1.2"
],
"cardFiles": [
"cardsMain.json?v1.3",
"cardsBasicLand.json",
"cardsToken.json",
"cardsPromo.json?v1.1",
"cardsStandardPromo.json",
"../war/cardsJpPlaneswalkers.json",
"../cards/ads/cardsAds.json"
],
"updates": [
{
"UpdateDate": "2021-07-03T23:30:00:00",
"HtmlString": "Updated marketing cards to be more accurate for set, plus set chances as 1:3 token:marketing for core sets, 2:3 for expansions, and 9:1 as of Battle for Zendikar."
},
{
"UpdateDate": "2021-06-25T23:30:00:00",
"HtmlString": "Foils now include basic lands."
},
{
"UpdateDate": "2019-06-29T21:00:00:00",
"HtmlString": "<em>Rienne, Angel of Rebirth</em> (Buy-a-Box promo) is no longer available in boosters."
},
{
"UpdateDate": "2019-09-10T21:00:00:00",
"HtmlString": "Taplands no longer appear in common slots."
},
{
"UpdateDate": "2019-06-28T23:30:00:00",
"HtmlString": "Booster's basic land slot now has a chance of being replaced by a tapland."
},
{
"UpdateDate": "2019-06-28T17:00:00:00",
"HtmlString": "Prerelease promos are now proper instead of using promo pack which now has its own tab."
}
]
} | json |
{
"name": "tron-green-ui",
"theme": "ui",
"version": "0.7.0",
"description": "A ui theme based on the TRON Legacy green color scheme.",
"keywords": [
"ui",
"theme"
],
"license": "MIT",
"repository": "https://github.com/jovrtn/tron-green-ui",
"engines": {
"atom": ">=1.0.0 <2.0.0"
}
}
| json |
The ED said Wednesday it has attached assets worth more than Rs 22 crore of former Andhra Pradesh TDP MLA J C Prabhakar Reddy, his associates and companies linked to them in a case related to an alleged BS-IV vehicles scam. The federal agency said it was also probing the role of major automobile manufacturer Ashok Leyland, headquartered in Chennai, in the case.
The ED said Wednesday it has attached assets worth more than Rs 22 crore of former Andhra Pradesh TDP MLA J C Prabhakar Reddy, his associates and companies linked to them in a case related to an alleged BS-IV vehicles scam.
In a statement, the federal agency said it was also probing the role of major automobile manufacturer Ashok Leyland, headquartered in Chennai, in the case.
Reddy is currently the chairman of Tadipatri Municipality in Anantapur district of the state. He had earlier represented Tadipatri in the Assembly as an MLA of the Telugu Desam Party (TDP).
An spokesperson for Ashok Leyland said the investigation was not against the company but "third-party scarp customer".
"This matter reported seems to be pertaining to an old investigation from the year 2020-2021. "
"We have submitted all documents and details as required by the Enforcement Directorate pertaining to this matter, which clearly establishes that we are not implicated in any manner. Ashok Leyland is compliant with all emission requirements," the spokesperson said.
The case emerges from a March 2017 ruling of the Supreme Court where it ordered that vehicles not compliant with BS-IV emission norms should not be sold in India by any manufacturer or dealer from April 1, 2017. The registration of such vehicles was also prohibited from the same date, the Enforcement Directorate said.
However, Jatadhara Industries Pvt Ltd (JIPL), "controlled" by Reddy, C Gopal Reddy (alleged to be a close associate of Reddy and civil contractor from Tadipatri) and others, in "contravention" to the apex court's order, purchased BS-III vehicles from Ashok Leyland Ltd at discount and "fraudulently" registered the same as BS-IV vehicles by fabricating invoice copies, the agency alleged.
A probe found that some of the registrations were done in Nagaland, Karnataka and Andhra Pradesh, it said.
"ED has gathered evidences in the form of fabricated invoices from RTO authorities in Nagaland and original invoices issued by Ashok Leyland as scrap for the some vehicles and established the crime.
"The crime proceeds generated by owning/plying and/or selling these vehicles have been quantified as Rs 38. 36 crore," it said.
Hence, movable properties worth Rs 6. 31 crore, consisting of bank balances, cash, jewellery and receivables, as well as 68 immovable properties valued at Rs 15. 79 crore belonging to J C Prabhakar Reddy, his family members, companies controlled by him like Diwakar Road Lines and Jatadhara Industries Pvt Ltd, and C Gopal Reddy and his family members have been attached after a provisional order was issued by the agency under the Prevention of Money Laundering Act (PMLA).
The total value of the attached properties is Rs 22. 10 crore.
"Further investigation is in progress, including the role of Ashok Leyland in the entire scam," the ED said.
(This is a wire story it has not been edited by Team Times Drive) | english |
Prime Minister Narendra Modi on Wednesday lavished praise on Indian chess players, including former world champion Vishwanathan Anand, for coming up with an “innovative” way to raise funds for the country’s fight against COVID-19 pandemic.
Five leading players Vidit Gujrathi, P Harikrishna and B Adhiban, Koneru Humpy and Dharika, alongside Anand had participated in an online chess exhibition and helped raise Rs 4. 5 lakh for the PM-CARES Fund.
“Innovative effort and kind gesture by our chess players, including @vishy64theking, @viditchess, Pentala Harikrishna, B. Adhiban and @HarikaDronavali,” Modi tweeted.
“Am sure the participants would have had an enriching experience,” he added.
In India, the COVID-19 pandemic has so far claimed over 350 lives while infecting close to 12,000 across the country.
On Tuesday, Modi extended the lockdown till May 3 in a bid to contain the spread of the virus. | english |
{
"name": "github-resume",
"version": "1.0.0",
"description": "One-click github resume generator. Nuxt based, deployed with now, travis and ava for 'testing'",
"author": "<NAME>",
"homepage": "https://github-resume.now.sh/",
"repository": "https://github.com/stavros-liaskos/github-resume",
"keywords": [
"nuxt",
"stavros",
"liaskos",
"github-resume",
"resume"
],
"bugs": "https://github.com/stavros-liaskos/github-resume/issues",
"license": "SEE LICENSE IN LICENSE",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lintfix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"hint": "./node_modules/hint/dist/src/bin/hint.js https://github-resume.now.sh/",
"precommit": "yarn lint",
"postcommit": "yarn deploy",
"test": "ava --serial --verbose",
"deploy": "yarn lintfix && now rm -y github-resume && now && now alias",
"now-build": "nuxt build --spa",
"favicon-gen": "real-favicon generate faviconDescription.json faviconData.json static/favicon"
},
"dependencies": {
"cross-env": "^5.2.0",
"nuxt": "^2.2.0",
"vue-particles": "^1.0.9",
"vue-resource": "^1.5.1",
"vue-router": "^3.0.1",
"vue-typer": "^1.2.0",
"vuedraggable": "^2.16.0"
},
"devDependencies": {
"@nuxtjs/sitemap": "^0.1.1",
"ava": "^0.25.0",
"babel-eslint": "^10.0.1",
"babel-preset-env": "^1.7.0",
"breakpoint-sass": "^2.7.1",
"cli-real-favicon": "0.0.6",
"eslint": "^5.0.1",
"eslint-config-prettier": "^3.1.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-prettier": "3.0.0",
"eslint-plugin-vue": "^4.0.0",
"fontfaceobserver": "^2.0.13",
"glob-all": "^3.1.0",
"hint": "^4.0.1",
"jsdom": "^12.1.0",
"node-sass": "^4.9.3",
"nodemon": "^1.18.6",
"nuxt-sass-resources-loader": "^2.0.5",
"prettier": "1.14.3",
"purgecss-webpack-plugin": "^1.3.1",
"sass-loader": "^7.1.0"
},
"ava": {
"require": [
"babel-register"
]
},
"babel": {
"presets": [
"env"
]
}
}
| json |
Food histories point to something deeply contradictory. Edibles have been part of long-distance human interactions centuries before the term globalisation acquired currency. Potatoes, tomatoes, and chillies travelled continents, tea and coffee were artefacts of thriving commerce and cultural efflorescence, and the spice trade is the well-known harbinger of the search for the new world.
But food has also been associated with the inward looking tendencies of humankind. Almost every society has rules of commensality. Eating and dining is known to cement social relationships but societies also set boundaries about sharing meals. Food is amongst the earliest gifts known to humankind. But it has also been cause of warfare. The flip side of the tea-induced change in the beverage culture in Britain was the barbaric opium trade, which decimated a generation of the Chinese and ruined cropping patterns and farmers in India. The spice trade was also the forebear of colonialism. Sugar plantations in the Carribean were amongst the earliest demonstrations of European power.
The essays in Krishnendu Ray and Tulasi Srinivas’s Curried Cultures try to understand such paradoxes associated with food in the “age of globalisation”. They focus on Indian food where globalisation often acquires a meaning somewhat different from its current usage, which confines the phenomena to the economic regimes of the past 25 years. Traversing national boundaries is the contingent definition of globalisation adopted by the writers in this volume. That, according to the editors, implies two things: “Globalisation becomes more visible after national boundaries crystallise and we witness the connections between various locales and the local and the supra-local”. Moreover, the connection of edibles with bodies make edibles “intensely local, in spite of their long history of distant circulation”.
The essays fill a breach. Works on South American, Chinese, Japanese, Mediterranean, American culinary cultures bear witness to the ways new nodes in global commerce joined previous networks of the capitalist economy. But there is very little on how South Asian cooking has become enmeshed in this process. While much has been made about the influences of films, literature and music, not enough attention has been given to how identities have been shaped by the movement of cuisines. Despite becoming part of urban cultures in different parts of the world, South Asian food remains wedded to the stereotype of “curried cultures”.
The title of Ray and Srinivas’s collection of essays is, therefore, an ironic but self-conscious play on the stereotype. It also emphasises the book’s focus on the sensory experience of food — and not on its association with nutrition. But this is not always about the pleasant aspects of food that is extolled in a lot of popular writings — the aromas and flavours. As Jayanta Sengupta’s essay in this volume shows, the Bengali Indian kitchen was excoriated in colonial discourse as a veritable purgatory. Sengupta also shows how this, in turn, led to a counter narrative which ridiculed colonial officials for their gluttony. Cuisine thus turned into a vibrant site on which the rhetorical struggle between colonialism and nationalism was played out.
All this inevitability leads to the tradition-modernity binary. Are South Asian culinary cultures a modern phenomenon or are they largely tradition? Stigt Toft Madsen and Geoffrey Gardella’s essay on Udupi hotels grapples with this question. Madsen and Gardella argue that the hotels have been instrumental in breaking down the caste barriers on inter-dining and in the unshackling of commensal orthodoxies. But they also complicate the picture by showing how Udupi entrepreneurs have fostered a religious revival by contributing to temple funds.
The restaurant as a site for culinary cultural interaction is another interesting trope explored in this collection of essays. In her essay on the Dum Pukht style of cooking, Holly Shafer explores how restaurants latched on to discourse replete with nostalgia for “lost” Muslim culture to transform historical cuisine into a commodity.
In his essay on “chaat cafes” in the US, Arijit Sen argues that these cafes are new “public spaces” that are products of a demographic restructuring of American cities. Sen contrasts these cafes to the Indian grocery stores in the US that appear regularly in the American media as symbols of exotic ethnic landscapes of expatriate Indians. Chaat cafes, in contrast, are places that accommodate practices of immigrants while also catering to the needs of the non-immigrant population.
The essays in this volume show how Indian food is negotiating the challenges of globalisation and is carving an identity that doesn’t always fit the traditional-modern (or Western) binary. In spite of the pioneering work of scholars like RS Khare in the 1970s, food studies are a recent addition to the oeuvre of Indian social sciences. The teething period must necessarily be short. For, food choices are increasingly becoming embattled and questions around what to eat and what not to eat have lost their innocence — if ever they had such a thing. The essays in Curried Cultures are a good beginning towards understanding this increasingly fraught aspect of Indian cultural discourse. | english |
Amitabh Bachchan recently took to Twitter and wrote in Hindi that he's tired of working for others. Read on to know how fans reacted.
Amitabh Bachchan is one of the most popular actors we have. He was seen in the recently released film Jhund. The actor it is also quite active on social media. But he recently took to Twitter and wrote in Hindi that he’s tired of working for others and now wants to work for himself. His tweet is getting a lot of reactions from fans. “Love and hugs,” wrote a fan. Read another comment, “Shuprobhat Gurudev ji. Dher saara adar sneh. Aap swasth rahein aur mast rahein. Sadar Pronam.” Many others wanted him to give his reaction on The Kashmir Files. Have a look at his tweet and reactions below:
Big B’s performance in Jhund has been appreciated a lot. Even the film has been liked by a lot of people.
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
| english |
<reponame>AlejandraHM/docs.es-es<gh_stars>0
---
title: 2022 - ExecuteWorkItemStop
ms.date: 03/30/2017
ms.assetid: 731a6355-3a33-46c5-9830-00b44a665812
ms.openlocfilehash: 781b54568ba3e62b6ed6f75913ca9eb0bf0b49e7
ms.sourcegitcommit: 3d5d33f384eeba41b2dff79d096f47ccc8d8f03d
ms.translationtype: MT
ms.contentlocale: es-ES
ms.lasthandoff: 05/04/2018
ms.locfileid: "33511441"
---
# <a name="2022---executeworkitemstop"></a>2022 - ExecuteWorkItemStop
## <a name="properties"></a>Propiedades
|||
|-|-|
|Id.|2022|
|Palabras clave|WFRuntime|
|Nivel|Detallado|
|Canal|Microsoft-Windows-Application Server-Applications/Debug|
## <a name="description"></a>Descripción
Indica que un ExecuteWorkItem se ha completado.
## <a name="message"></a>Mensaje
Ejecutar la detención del elemento de trabajo
## <a name="details"></a>Detalles
|Nombre del elemento de datos|Tipo del elemento de datos|Descripción|
|--------------------|--------------------|-----------------|
|AppDomain|xs:string|La cadena devuelta por AppDomain.CurrentDomain.FriendlyName.|
| markdown |
New York: A study led by an Indian-origin researcher has found a daily dose of aspirin is effective at blocking breast tumour growth in laboratory tests.
Aspirin is used worldwide as a ‘blood thinner’ and to relieve inflammation, pain and fever.
The trick is to ensure conditions around cancer stem cells are not conducive for reproduction, something aspirin seems able to do, said Sushanta Banerjee, professor at the University of Kansas Medical Centre in the US.
“We could give aspirin after chemotherapy to prevent relapse and keep the pressure on, which we saw was effective in both the laboratory and the mouse model, and we could use it preventatively,” Banerjee noted.
Experts suggest patients to consult with a doctor before starting a daily aspirin regimen. The drug is known to thin the blood and increase the risk of gastrointestinal bleeding.
“Of course there is a risk, but you have to weigh that against the risks of cancer,” Banerjee said.
To test his theory that aspirin could alter the molecular signature in breast cancer cells enough that they would not spread, Banerjee used both incubated cells and mouse models.
For the cell test, breast cancer cells were placed in 96 separate plates and then incubated. Just over half the cultures were exposed to differing doses of acetylsalicylic acid, commonly known as aspirin.
According to Banerjee, exposure to aspirin dramatically increased the rate of cell death in the test. For those cells that did not die off, many were left unable to grow.
The second part of his study involved studying 20 mice with aggressive tumours.
For 15 days, half the mice were given the human equivalent of 75 milligrams of aspirin per day, which is considered a low dose.
At the end of the study period, the tumours were weighed. Mice that received aspirin had tumours that were, on average, 47 percent smaller.
To show that aspirin could also prevent cancer, the researchers gave an additional group of mice aspirin for 10 days before exposing them to cancer cells.
After 15 days, those mice had significantly less cancerous growth than the control group.
“We found aspirin caused these residual cancer cells to lose their self-renewal properties,” Banerjee said.
The study is to appear in the forthcoming issue of the journal Laboratory Investigation.
Even though Karnataka recorded the lowest number of Covid deaths in April since the virus struck first in 2020, the state is recording a rise in the positivity rate (1.50 per cent). Five people died from the Covid infections in April as per the statistics released by the state health department. In March, the positivity rate stood around 0.53 per cent. In the first week of April it came down to 0.38 per cent, second week registered 0.56 per cent, third week it rose to 0.79 per cent and by end of April the Covid positivity rate touched 1.19 per cent.
on an average 500 persons used to succumb everyday in the peak of Covid infection, as per the data. Health experts said that the mutated Coronavirus is losing its fierce characteristics as vaccination, better treatment facilities and awareness among the people have contributed to the lesser number of Covid deaths.
| english |
<reponame>delval6589/Curso-de-React-Redux_ed4<filename>Ejercicios/Enunciados/15.PropTypes.md
### Ejercicios:
1. Crear un componente que se llame ShowServerConfig. Debe validar lo siguiente:
* La config que se le pasa por props debe tener la siguiente estructura:
- minConnections: boolean
- maxConnections: boolean
- restartAlways: boolean
* El environment solo puede ser dev, play o live
* SSL debe ser obligatorio si el entorno es live.
<!-- // TU SOLUCIÓN A PARTIR DE AQUÍ-->
| markdown |
It seems like trouble for Kapil Sharma is increasing with each passing day. Kapil has called Spotboy’s editor Vicky Lalwani and abuses him. The website has also released a tape of conversation between Kapil and Vicky, in which Kapil can be heard abusing Vicky.
Kapil accused the editor of printing the wrong reports for money. Later, Sharma’s friend joins the conversation who also continues the rant against Lalwani.
Well now, Lalwani’s media organisation Spotboye has filed a case of Criminal Intimidation, abuse and threat against the comedian.
It all began when Kapil posted a series of abusive tweets slamming the judgment against Salman Khan in blackbuck poaching case. He then targeted Vickey Lalwani, who is the editor of ‘Spotboye’ and claimed that he is trying to extort Rs 25 lakh from him.
But, later the tweets were deleted. Then, Kapil in a new tweet clarified that it was his team that had deleted his tweets and not him.
| english |
import { InvocationContext } from "@loopback/context";
import { Class } from "@loopback/repository";
import { Ctor } from "loopback-component-history";
import { User, Role, Permission, UserRole, RolePermission } from "./models";
/**
* interface definition of PermissionsList class
*/
export class PermissionsList {
// KEY = "Description";
}
/**
* interface definition of a function which accepts a request
* and authorizes user
*/
export interface AuthorizeFn<Permissions extends PermissionsList> {
(permissions: StringKey<Permissions>[], methodArgs: any[]): Promise<void>;
}
/**
* interface definition of a function which accepts a user id
* and finds it's permission
*/
export interface GetUserPermissionsFn<Permissions extends PermissionsList> {
(id: string): Promise<StringKey<Permissions>[]>;
}
/**
* Authorizer `Condition` type system and authorization metadata
*/
export type Condition<Permissions extends PermissionsList> =
| And<Permissions>
| Or<Permissions>
| FullKey<Permissions>
| Key<Permissions>;
export type And<Permissions extends PermissionsList> = {
and: Condition<Permissions>[];
};
export type Or<Permissions extends PermissionsList> = {
or: Condition<Permissions>[];
};
export type FullKey<Permissions extends PermissionsList> = {
key: Key<Permissions>;
not?: true;
};
export type Key<Permissions extends PermissionsList> =
| StringKey<Permissions>
| AsyncKey;
export type StringKey<Permissions extends PermissionsList> = keyof Permissions;
export type AsyncKey = (
invocationContext: InvocationContext
) => Promise<boolean>;
/**
* AuthorizationMixin configs
*/
export interface AuthorizationMixinConfig {
permissions?: Class<PermissionsList>;
userModel?: Ctor<User>;
roleModel?: Ctor<Role>;
permissionModel?: Ctor<Permission>;
userRoleModel?: Ctor<UserRole>;
rolePermissionModel?: Ctor<RolePermission>;
}
| typescript |
/*
* Copyright 2019 Redlink GmbH
*
* 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 io.redlink.utils.signal;
import java.util.Arrays;
import java.util.function.BiConsumer;
/**
* Helper-Class for Signal-Handling
*/
public final class SignalsHelper {
private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(SignalsHelper.class);
public enum SIG {
HUP(1, "HUP"),
INT(2, "INT"),
TRAP(5, "TRAP"),
ABRT(6, "ABRT"),
BUS(7, "BUS"),
USR2(12, "USR2"),
PIPE(13, "PIPE"),
ALRM(14, "ALRM"),
TERM(15, "TERM"),
STKFLT(16, "STKFLT"),
CHLD(17, "CHLD"),
CONT(18, "CONT"),
TSTP(20, "TSTP"),
TTIN(21, "TTIN"),
TTOU(22, "TTOU"),
URG(23, "URG"),
XCPU(24, "XCPU"),
XFSZ(25, "XFSZ"),
VTALRM(26, "VTALRM"),
PROF(27, "PROF"),
WINCH(28, "WINCH"),
IO(29, "IO"),
PWR(30, "PWR"),
SYS(31, "SYS"),
;
private final int number;
private final String sigName;
SIG(int number, String sigName) {
this.number = number;
this.sigName = sigName;
}
public int getNumber() {
return number;
}
public String getSigName() {
return sigName;
}
}
private SignalsHelper() {}
/**
* Register a handler for the provided signals
* @param handler the handler to register
* @param signal the signals to register for
*/
public static void registerHandler(BiConsumer<Integer, String> handler, SIG... signal) {
registerHandler(handler, Arrays.stream(signal).map(SIG::getSigName).toArray(String[]::new));
}
/**
* Register a handler for the provided signals
* @param handler the handler to register
* @param signal the signals to register for
*/
@SuppressWarnings("squid:S1191")
public static void registerHandler(BiConsumer<Integer, String> handler, String... signal) {
final sun.misc.SignalHandler signalHandler = sig -> {
LOG.debug("Received Signal({}): {}", sig.getName(), sig.getNumber());
handler.accept(sig.getNumber(), sig.getName());
};
for (String s : signal) {
final sun.misc.Signal sig = new sun.misc.Signal(s);
LOG.trace("Registering signal-handler for {} ({})", sig.getName(), sig.getNumber());
sun.misc.Signal.handle(sig, signalHandler);
}
}
/**
* Clear the custom handler for the provided signals (and install the default handler)
* @param signal the signals to reset.
*/
public static void clearHandler(SIG... signal) {
clearHandler(Arrays.stream(signal).map(SIG::getSigName).toArray(String[]::new));
}
/**
* Clear the custom handler for the provided signals (and install the default handler)
* @param signal the signals to reset.
*/
@SuppressWarnings("squid:S1191")
public static void clearHandler(String... signal) {
for (String s : signal) {
final sun.misc.Signal sig = new sun.misc.Signal(s);
LOG.trace("Clear signal-handler for {} ({})", sig.getName(), sig.getNumber());
sun.misc.Signal.handle(sig, sun.misc.SignalHandler.SIG_DFL);
}
}
}
| java |
@font-face {
font-family: 'myFont';
src: url("/assets/fonts/regular.ttf");
}
/* layouts */
body {
padding: 0;
margin: 0;
}
#headerDiv {
background: radial-gradient(farthest-corner at 60% 55%, #8c179a, #1a2969);
text-align: center;
height: 15vh;
width: 100vw;
}
.logo {
display: inline-block;
max-width: 99%;
max-height: 99%;
width: auto;
height: auto;
}
#midDiv {
height: 70vh;
width: 100%;
padding: 0px;
font-family: myFont, Serif;
vertical-align: top;
}
#reelArea {
float: left;
display: inline-block;
width: 70%;
height: 100%;
background: #eeae4e;
font-size: 30px;
}
#creditsDiv {
float: left;
display: inline-block;
width: 30%;
height: 100%;
background: radial-gradient(farthest-corner at 60% 55%, #aa6821, #884f1d);
}
#reelsDiv {
height: 70%;
text-align: center;
}
.symbolsImg {
display: inline-block;
max-width: 25%;
max-height: 90%;
width: auto;
height: auto;
margin-right: auto;
margin-left: auto;
margin-top: 5%;
margin-bottom: 5%;
min-width: 160px;
}
#reelMessage {
clear: left;
text-align: center;
font-size: 40px;
}
/*Table*/
#creditTable {
margin-left: auto;
margin-right: auto;
width: 90%;
margin-top: 20%;
}
.creditLabelsClass {
width: 60%;
font-size: 30px;
}
.creditValuesClass {
text-align: center;
font-size: 30px;
}
#creditVal, #bettingVal, .creditLabelsClass {
font-size: 25px;
}
#statTD {
text-align: center;
height: 60px;
}
.creditAreaBtns {
background: radial-gradient(50% 50%, #8c179a, #1a2969);
border-radius: 10%;
width: 200px;
height: 50px;
margin-left: auto;
margin-right: auto;
color: white;
font-size: 20px;
font-weight: bold;
border: solid transparent;
outline: none;
}
.creditAreaBtns:active {
background: radial-gradient(farthest-corner at 60% -30%, #8c179a, #1a2969);
padding: 1px 0px 0px 0px;
}
#nameTxt{
width: 200px;
height: 50px;
font-size: 30px;
font-family: myFont;
background: #eeae4e;
}
/*Buttons*/
#buttonsDiv {
background: radial-gradient(farthest-corner at 60% 55%, #8c179a, #1a2969);
height: 15vh;
text-align: center;
width: 100vw;
bottom: 0px;
}
.controlBtns {
float: left;
font-family: myFont, Serif;
width: 8%;
height: 70%;
color: white;
font-size: 150%;
font-weight: bold;
margin-left: 20px;
margin-top: 1.5%;
border-radius: 30%;
border: solid transparent;
outline: none;
}
#reset {
background: radial-gradient(50% 50%, #c40009, #6e0f00);
border-radius: 10%;
width: 8%;
height: 50%;
font-size: 150%;
margin-top: 2.3%;
margin-left: 25%;
}
#reset:active {
background: radial-gradient(farthest-corner at 60% -30%, #c40009, #6e0f00);
padding: 2.5px 0px 0px 0px;
}
#betOne, #betThree {
background: radial-gradient(50% 50%, #49bc39, #49923b);
}
#betOne:active, #betThree:active {
background: radial-gradient(farthest-corner at 60% -30%, #49bc39, #49923b);
padding: 2.5px 0px 0px 0px;
}
#spin {
background: radial-gradient(50% 50%, #f65a3f, #cf000a);
}
#spin:active {
background: radial-gradient(farthest-corner at 60% -30%, #f65a3f, #cf000a);
padding: 2.5px 0px 0px 0px;
}
#addCoin {
background: radial-gradient(50% 50%, #fbea07, #e8b63c);
}
#addCoin:active {
background: radial-gradient(farthest-corner at 60% -30%, #fbea07, #e8b63c);
padding: 2.5px 0px 0px 0px;
}
#cashInButton{
margin-top: 20px;
}
| css |
<filename>client/imports/app/mobile/app.component.mobile.html
<ion-header>
<ion-navbar>
<ion-title>Socially</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<ion-card *ngFor="let party of parties | async">
<img *ngIf="party.images" [src]="party | displayMainImage">
<ion-card-content>
<ion-card-title>
{{party.name}}
</ion-card-title>
<p>
{{party.description}}
</p>
</ion-card-content>
<ion-row no-padding>
<ion-col text-right>
<ion-badge>
yes {{party | rsvp:'yes'}}
</ion-badge>
<ion-badge item-center dark>
maybe {{party | rsvp:'maybe'}}
</ion-badge>
<ion-badge item-center danger>
no {{party | rsvp:'no'}}
</ion-badge>
</ion-col>
</ion-row>
</ion-card>
</ion-content> | html |
[{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"アサヒソシ","town_name":"朝日曽雌","zip_code":"4020015"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"アサヒババ","town_name":"朝日馬場","zip_code":"4020014"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"アツハラ","town_name":"厚原","zip_code":"4020042"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"イグラ","town_name":"井倉","zip_code":"4020011"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"オオノ","town_name":"大野","zip_code":"4020023"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"オオハタ","town_name":"大幡","zip_code":"4020045"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"オオハラ","town_name":"大原","zip_code":"4020002"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"オガタヤマ","town_name":"小形山","zip_code":"4020006"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"オノ","town_name":"小野","zip_code":"4020024"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カツラマチ","town_name":"桂町","zip_code":"4020034"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カナイ","town_name":"金井","zip_code":"4020041"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カハタ","town_name":"加畑","zip_code":"4020044"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カミヤ","town_name":"上谷","zip_code":"4020053"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カワダナ","town_name":"川棚","zip_code":"4020055"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"カワモ","town_name":"川茂","zip_code":"4020003"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"サカイ","town_name":"境","zip_code":"4020033"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"シシドメ","town_name":"鹿留","zip_code":"4020032"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"シモヤ","town_name":"下谷","zip_code":"4020051"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"タノクラ","town_name":"田野倉","zip_code":"4020001"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"タハラ","town_name":"田原","zip_code":"4020054"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"タマガワ","town_name":"玉川","zip_code":"4020021"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"チュウオウ","town_name":"中央","zip_code":"4020052"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ツル","town_name":"つる","zip_code":"4020056"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"トオカイチバ","town_name":"十日市場","zip_code":"4020031"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"トザワ","town_name":"戸沢","zip_code":"4020022"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ナカツモリ","town_name":"中津森","zip_code":"4020046"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ナツガリ","town_name":"夏狩","zip_code":"4020035"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ヒラグリ","town_name":"平栗","zip_code":"4020043"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"フルカワド","town_name":"古川渡","zip_code":"4020004"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ホウノウ","town_name":"法能","zip_code":"4020025"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"モリサト","town_name":"盛里","zip_code":"4020013"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ヨッカイチバ","town_name":"四日市場","zip_code":"4020005"},{"prefecture_jis_code":"19","city_jis_code":"19204","town_name_kana":"ヨナワ","town_name":"与縄","zip_code":"4020012"}] | json |
<filename>src/main/resources/static/mas_json/2016_aaai_-3168756883270907622.json
{"title": "Visual Learning of Arithmetic Operation.", "fields": ["massively parallel", "systems architecture", "core knowledge", "depiction", "early algebra", "operand", "task analysis", "developmentally appropriate practice", "phonological awareness", "natural number", "abstraction", "working memory", "curriculum", "machine ", "subtraction", "multiplication", "likert scale", "mathematics education", "domain knowledge", "trail making test", "negative number", "body ", null, "mathematical problem", "cognitive load", "word problem", "magnitude", "experimental data", "pedagogy"], "abstract": null, "citation": "Citations (6)", "year": "2016", "departments": ["Atat\u00fcrk University", "University of Wisconsin-Madison", "University of Wisconsin-Madison", "University of Duisburg-Essen", "University of Duisburg-Essen", "University of Duisburg-Essen", "University of Duisburg-Essen", "University of Johannesburg", "University of Duisburg-Essen", "University of Wisconsin-Madison", "University of Wisconsin-Madison", "Brown University"], "conf": "aaai", "authors": ["<NAME>.....http://dblp.org/pers/hd/h/Hoshen:Yedid", "<NAME>.....http://dblp.org/pers/hd/p/Peleg:Shmuel"], "pages": 7} | json |
Sidharth Shukla and Shehnaaz Gill's burning chemistry is now for everyone to see in a fan wedding video edit. Don't miss it!
It's been months since Bigg Boss 13 went off air but crazy fans of Shehnaz Gill and Sidharth Shukla keep sharing their special edits showcasing SidNaaz's burning chemistry. And yes the latest one is being loved and appreciated by their common friend and housemate Vikas Gupta who also shared it on his social media account.
The famous producer took to his Instagram to share the video and wrote, "This uplifted my mood immediately. At times like these whatever can make you smile should be shared. #siddharthshukla #shehnaazgill #sidhearts #sidnaazians #shefalibagga family and friends and #vikasgupta as #salmankhan I don’t know what will happen in times to come but I know seeing this made me happy #biggboss13 #family #quarantine".
The video has been edited on Hum Saath Saath Hain's famous baarat song where Tabu is shown as Shehnaz and Mohnish Behl as Sidharth and rest of the families as their fans who are dancing with joy. And within an hour thousands of comments poured in, with a few also assuming that Vikas is indirectly confirming news of their engagement. Read a few interesting comments below;
Well it will be interesting to see how Shehnaz and Sidharth react to this hilarious video.
| english |
Jakarta: It was the closing stages of the match, a soccer derby in Indonesia’s East Java province, and 29-year-old spectator Ahmad Nizar Habibi said he had a gut feeling things were about to turn ugly.
“I wanted to leave, but suddenly I heard explosions,” he said, describing rounds of tear gas fired as Saturday’s night-time match ended and fans invaded the field, angered by the home team’s loss.
“We couldn’t see. Fans were screaming and we couldn’t breathe,” said Habibi.
The chaos that erupted in the soccer-mad Southeast Asian nation resulted in 125 dead and more than 400 injured, plunging a sleepy town on the main island of Java into shock and mourning. The victims were mostly fans of the local Arema FC team in Malang.
Comments from spectators, police and experts who spoke to Reuters as well as video footage indicate the disaster was caused by a confluence of factors – a crowd beyond the capacity of the stadium, angry fans, the firing of tear gas by police and, tragically, some locked exits.
The use of tear gas, a crowd-control measure prohibited by world soccer governing body FIFA, has come under scrutiny and police have said the decision to do so was one of the issues being investigated.
Yusuf Kurniawan, a respected commentator on football in Indonesia, said while the tear gas was fired to disperse fans who had invaded the pitch, it floated up to the stands.
“People panicked and they were suffocated as they struggled to find the exits,” he said.
Some spectators said at least three exits at Kanjuruhan Stadium were locked on Saturday night, leading to a crush and stampede. Most of the deaths were near the stadium’s Gate 13, one of those locked, some people said.
Albertus Wahyu, a commissioner with the national police commission watchdog, said on Tuesday that some exits were locked but it was unclear who had locked them and why.
A director from PT Liga Indonesia, the domestic soccer league, said he was unable to respond to queries given an investigation was ongoing. A spokesperson from Arema FC was not immediately available for comment.
Spokespeople for the national and East Java police declined to answer questions on the security measures but on Monday, 10 officers were suspended pending an investigation.
“We heard the doors were closed, or some doors, and that many people couldn’t get out so I decided to wait. I couldn’t breathe and my eyes hurt,” said Haura, a 20-year-old university student who said she fainted in the stands. Like many Indonesians, Haura uses only name.
Medics said people caught in the crush mostly died from suffocation and head injuries, while officials have confirmed that 33 minors were among the dead.
Some spectators claimed police fired tear gas directly into the stands, while footage shows officers kicking and beating fans with batons.
With the country seeking answers, the spotlight is on the police, but experts say the true picture is more complicated.
In trying to pre-empt risks, the police had banned fans from the rival Persebaya Surabaya side from attending and asked for the ‘high-risk’ match to be held during the day, when policing is easier, said Akmal Marhali, coordinator of private football watchdog organisation, Save our Soccer (SOS).
Surabaya is about 100 km (60 miles) north of Malang and matches between the two East Java sides have often been tense.
Akmal said the match went ahead at night with organisers printing 42,000 tickets for a stadium designed to hold only 38,000. No tickets were however sold to Persebaya fans, police said.
“We cannot only blame the police. These are collective mistakes,” Akmal said.
In the match, Arema went two goals down to Persebaya in the first half but managed to draw level before the break. The home side conceded early in the second half, and its 3-2 defeat to the bitter rival on its home turf was the first in 23 years.
Home side fans invaded the pitch as the game ended, while the players rushed to the changing rooms, according to video footage.
Awang, a 52-year-old Arema fan, said he left before the final whistle blew. He said he took shelter in a nearby shop as the chaos unfolded, and returned to the stadium later.
Football hooliganism and violence is not new in Indonesia – data from SOS shows that 86 people have died in soccer-related violence in Indonesia since 1995 – but the severity of this tragedy has shocked the nation.
Kurniawan, the commentator, said in the past violence at soccer matches had failed to bring change, but this time it had to be different. | english |
# 540, K.R. Gardens ,
UV Curing machines for screen-printing and coating machine, Sheet fed offset machine and for web offset.
100 Units. These are made based on customer's requirements, designs and use.
80 Units.
Mild steel, Fibre glass, etc.,
| english |
<filename>public/api_dummy/premElement_types.json
[{"id":1,"singular_name":"Goalkeeper","singular_name_short":"GKP","plural_name":"Goalkeepers","plural_name_short":"GKP"},{"id":2,"singular_name":"Defender","singular_name_short":"DEF","plural_name":"Defenders","plural_name_short":"DEF"},{"id":3,"singular_name":"Midfielder","singular_name_short":"MID","plural_name":"Midfielders","plural_name_short":"MID"},{"id":4,"singular_name":"Forward","singular_name_short":"FWD","plural_name":"Forwards","plural_name_short":"FWD"}] | json |
<gh_stars>0
//===- llvm/unittest/Bitcode/NaClBitstreamReaderTest.cpp ------------------===//
// Tests issues in NaCl Bitstream Reader.
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Tests issues in NaCl Bitstream Reader.
// TODO(kschimpf) Add more Tests.
#include "llvm/Bitcode/NaCl/NaClBitstreamReader.h"
#include "gtest/gtest.h"
using namespace llvm;
namespace {
static const uint64_t BitZero = 0;
// Initializes array to sequence of alternating zeros/ones.
void* InitAltOnes(uint8_t *Array, size_t ArraySize) {
for (size_t i = 0; i <ArraySize; ++i) {
Array[i] = 0x9;
}
return Array;
}
// Tests that the default bitstream cursor is at bit zero.
TEST(NaClBitstreamTest, DefaultCursorAtBitZero) {
uint8_t CursorMemory[sizeof(NaClBitstreamCursor)];
NaClBitstreamCursor *Cursor =
new (InitAltOnes(CursorMemory, sizeof(NaClBitstreamCursor)))
NaClBitstreamCursor();
EXPECT_EQ(BitZero, Cursor->GetCurrentBitNo());
}
// Tests that when we initialize the bitstream cursor with a default bitstream
// reader, the cursor is at bit zero.
TEST(NaClBitstreamTest, CursorOnDefaultReaderAtBitZero) {
NaClBitstreamReader Reader;
uint8_t CursorMemory[sizeof(NaClBitstreamCursor)];
NaClBitstreamCursor *Cursor =
new (InitAltOnes(CursorMemory, sizeof(NaClBitstreamCursor)))
NaClBitstreamCursor(Reader);
EXPECT_EQ(BitZero, Cursor->GetCurrentBitNo());
}
// Tests that when we initialize the bitstream cursor with an array-filled
// bitstream reader, the cursor is at bit zero.
TEST(NaClBitstreamTest, ReaderCursorAtBitZero) {
static const size_t BufferSize = 12;
unsigned char Buffer[BufferSize];
NaClBitstreamReader Reader(Buffer, Buffer+BufferSize);
uint8_t CursorMemory[sizeof(NaClBitstreamCursor)];
NaClBitstreamCursor *Cursor =
new (InitAltOnes(CursorMemory, sizeof(NaClBitstreamCursor)))
NaClBitstreamCursor(Reader);
EXPECT_EQ(BitZero, Cursor->GetCurrentBitNo());
}
TEST(NaClBitstreamTest, CursorAtReaderInitialAddress) {
static const size_t BufferSize = 12;
static const size_t InitialAddress = 8;
unsigned char Buffer[BufferSize];
NaClBitstreamReader Reader(Buffer, Buffer+BufferSize, InitialAddress);
uint8_t CursorMemory[sizeof(NaClBitstreamCursor)];
NaClBitstreamCursor *Cursor =
new (InitAltOnes(CursorMemory, sizeof(NaClBitstreamCursor)))
NaClBitstreamCursor(Reader);
EXPECT_EQ(InitialAddress * CHAR_BIT, Cursor->GetCurrentBitNo());
}
} // end of anonymous namespace
| cpp |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Why I Positioned Sidebar to the Right.md - ybbond - My site. The main domain
</title>
<link rel="icon" type="image/png" href="/favicon.png" />
<link rel="alternate" type="application/atom+xml" title="ybbond Atom Feed" href="../../../atom.xml" />
<link rel="stylesheet" type="text/css" href="/style.css" />
</head>
<body>
<table><tr><td><a href="../../../../"><img src="/logo.png" alt="" width="32" height="32" /></a></td><td><h1>ybbond</h1><span class="desc">My site. The main domain
</span></td></tr><tr><td></td><td>
<a href="../../../index.html">Log</a> | <a href="../../../files.html">Files</a> | <a href="../../../refs.html">Refs</a> | <a href="../../../file/README.md.html">README</a> | <a href="../../../file/LICENSE.md.html">LICENSE</a> | <a href="../../../file/CC-LICENSE.md.html">CC-LICENSE</a></td></tr></table>
<hr/>
<div id="content">
<p> Why I Positioned Sidebar to the Right.md (1929B)</p><hr/><pre id="blob">
<a href="#l1" class="line" id="l1"> 1</a> ---
<a href="#l2" class="line" id="l2"> 2</a> title: Why I Positioned Sidebar to the Right
<a href="#l3" class="line" id="l3"> 3</a> author: <NAME>
<a href="#l4" class="line" id="l4"> 4</a> date: 2020-04-27T04:57:12
<a href="#l5" class="line" id="l5"> 5</a> description: My past employer mentioned me on twitter. He tweeted about how I positioned the sidebar of my text editor to the right.
<a href="#l6" class="line" id="l6"> 6</a> tags:
<a href="#l7" class="line" id="l7"> 7</a> - webdev #webdev
<a href="#l8" class="line" id="l8"> 8</a> - editor #editor
<a href="#l9" class="line" id="l9"> 9</a> ---
<a href="#l10" class="line" id="l10"> 10</a>
<a href="#l11" class="line" id="l11"> 11</a> A few minutes ago, I opened twitter and scrolled the timeline.
<a href="#l12" class="line" id="l12"> 12</a>
<a href="#l13" class="line" id="l13"> 13</a> {{< tweet 1254492579275526145 >}}
<a href="#l14" class="line" id="l14"> 14</a>
<a href="#l15" class="line" id="l15"> 15</a> I laughed when I read that tweet. It brings back so much memories of my previous workplace.
<a href="#l16" class="line" id="l16"> 16</a>
<a href="#l17" class="line" id="l17"> 17</a> Positioning the sidebar to the right reduces distraction when I toggle it. If the sidebar is on the left, the text shifts around whenever the sidebar is toggled on or off. Readjusting my eyes for the moved text creates disturbance to my logical thinking. "Why are you not just leave the sidebar open?", you might be asking. I want to keep the screen real estate wide.
<a href="#l18" class="line" id="l18"> 18</a>
<a href="#l19" class="line" id="l19"> 19</a> Back then, I often toggle the sidebar because two reasons. First, the project I was working on uses **Redux**-**Saga**. Second, I used to use **VSCode**.
<a href="#l20" class="line" id="l20"> 20</a>
<a href="#l21" class="line" id="l21"> 21</a> Redux-Saga is a great states and IO management for React, I was blown away when I was first using it. Sadly, cannot grok the Redux paradigm easily. I often need to see the file structure when I write new files or refactoring. My current project uses Apollo GraphQL and Domain Driven Development paradigm. I am comfortable using the current setup.
<a href="#l22" class="line" id="l22"> 22</a>
<a href="#l23" class="line" id="l23"> 23</a> In VSCode, manipulating file must be done with mouse. Using the built in **Git** also done in the sidebar, with mouse. Nowadays I use **NeoVim**. File management can be done easily with text command. If a more complex file management must be done, which is rare, I use **NerdTree**. Versioning with Git is done with the help of **vim-fugitive** which I found less disturbing.
<a href="#l24" class="line" id="l24"> 24</a>
<a href="#l25" class="line" id="l25"> 25</a> As a closing: if you often toggle the sidebar, try positioning it to the right. That is, if your editor supports that configuration. It might help reduce the distraction when you need it the most.</pre>
</div>
</body>
</html>
| html |
<gh_stars>1-10
use std::collections::HashMap;
use std::fs;
fn main() {
let input = fs::read_to_string("./examples/input/day-06.txt").unwrap();
let group_answers: Vec<&str> = input.split("\n\n").collect();
let (result_part_01, result_part_02) = solve(&group_answers);
println!("Part 01: {}", result_part_01);
println!("Part 02: {}", result_part_02);
}
fn solve(groups_answers: &[&str]) -> (u32, u32) {
let mut answers_counter: HashMap<char, u32> = HashMap::new();
let mut result_part_01: u32 = 0;
let mut result_part_02: u32 = 0;
for group_answers in groups_answers {
for answer in group_answers.chars() {
if answer != '\n' {
let answer_counter: &mut u32 = answers_counter.entry(answer).or_insert(0);
*answer_counter += 1;
}
}
result_part_01 += answers_counter.len() as u32;
for value in answers_counter.values() {
if *value == group_answers.lines().count() as u32 {
result_part_02 += 1;
}
}
answers_counter.clear();
}
(result_part_01, result_part_02)
}
| rust |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.