text
stringlengths
1
1.04M
language
stringclasses
25 values
The position of Muntha is very favorable to Piaa Bajpai. Just let go and enjoy the happiness that comes Piaa Bajpai's way. At last Piaa Bajpai can relax and enjoy the success and the results of the hard work Piaa Bajpai had been doing for a long time. This period will also bring Piaa Bajpai in the midst of famous people. Gain from foreign lands will build Piaa Bajpai's status. Gains from superiors and higher authorities are also indicated. Piaa Bajpai will get happiness from the life partner and children. There will be religious ceremony at home and name, fame and luck due to that. There will be good luck and good stability of the mind which would help live a positive and easy life at home. Good level of gains could come from spouse. It's an excellent year for travel, higher education, communications, venturing into new enterprises; profession etc. synchronization in family life is secure. This period may bring disagreements and even enemity with hith and kins and relatives. Piaa Bajpai will get good results professionally. Overall the period will be good. The people around Piaa Bajpai will realize Piaa Bajpai's true worth and this will be gladdening to Piaa Bajpai and will be a strong motivating factor for Piaa Bajpai to keep giving Piaa Bajpai's best consistently. This is the best period for Piaa Bajpai to travel. Just let go and enjoy the happiness that comes Piaa Bajpai's way. At last Piaa Bajpai can relax and enjoy the success and the results of the hard work Piaa Bajpai had been doing for a long time. This period will also bring Piaa Bajpai in the midst of famous people. Piaa Bajpai's desire of getting a kid will be fulfilled. Piaa Bajpai's creativity will be appreciated by others. This is a good time for self-expression and the use of Piaa Bajpai's creative abilities in various fields. Some auspicious ceremony may be celebrated in Piaa Bajpai's family. The most unexpected changes could be expected in Piaa Bajpai's work area and in professional activities which are outstanding for Piaa Bajpai. Positive changes in Piaa Bajpai's personal and professional life will take place and Piaa Bajpai will undertake journeys in connection with Piaa Bajpai's business which will be very rewarding and fruitful. Make the best use of this wonderful period. Piaa Bajpai will attend relegious functions and will come in contact with respected and religious people. Those very personal relations that Piaa Bajpai worked on, won’t work out well, and cause disturbance in Piaa Bajpai's household and office. Take care of Piaa Bajpai's health and try to refine Piaa Bajpai image. Sensual thoughts not only depress Piaa Bajpai but may even cause Piaa Bajpai some humiliation in this period. Harmonious relationship with the opposite sex may get disturbed. Health problems will create disturbances in Piaa Bajpai's life. There are chances of getting indulge into unnecessary expenses. Overall, not a very pleasing period for Piaa Bajpai. Piaa Bajpai will feel yourself physically weak and dejected. Piaa Bajpai will be enthusiastic towards life. You’ll be courageous and have a violent temper. There will be lack of mental control and loos of discremination. Piaa Bajpai's popularity with public will decrease and there can be trouble due to disputes. This period is unfavorable for love and romance. Children and life partner may suffer from ill health. In case of benefic aspects, this period may result in child birth and gain from higher authorities. There may be some bad news regarding business or new venture. Don’t get indulge in taking risks as it is not a very favorable period for Piaa Bajpai. Family member’s health may cause anxiety. Speculation must be avoided or else they may cause financial losses. Opponents will try to create problems on Piaa Bajpai's personal as well as professional front. Stay away from water as there is fear from drowning. Fever and cold will give some health problems. This is not a favorable time for financial gains. There can be a death in Piaa Bajpai's family. Family disputes may also disturb Piaa Bajpai's peace of mind. Piaa Bajpai may get in trouble because of Piaa Bajpai's own harsh words or speech. There may be some bad news regarding business. Heavy losses are indicated. Health problem may disturb Piaa Bajpai. Piaa Bajpai will get full co-operation from superiors or people in responsible or influential positions. Piaa Bajpai can make great progress professionally. Business/trade prospects will be very good, a promotion should be anticipated if employed somewhere. Piaa Bajpai might have to shoulder important responsibilities both at the career and domestic fronts. There will be a good opportunity to come into contact with compatible persons in the course of Piaa Bajpai's official duties/ travels. Piaa Bajpai's relationship with Piaa Bajpai's brothers and sisters will be fine. Though there will be problems to Piaa Bajpai's siblings. Somehow, time and fortune will throw the spotlight at you, and Piaa Bajpai's activities. It is high time that Piaa Bajpai are given credit for Piaa Bajpai's efforts and other recognize Piaa Bajpai and look up to Piaa Bajpai. Needless to say, Piaa Bajpai's personal relations will get a boost. Children will bring happiness to Piaa Bajpai. Journeys will be imminent and people will be eager to have a piece of Piaa Bajpai. This period will cause Piaa Bajpai to meditate and inquire about the truth the reality of human existence. There will be some costly and rare acquisition. Overall, this period will be highly rewarding. What will you get in 250+ pages Colored Brihat Horoscope. Are money matters a reason for the dark-circles under your eyes? Is there any question or problem lingering. Worried about your career? don't know what is. AstroSage Yearbook is a channel to fulfill your dreams and destiny. The CogniAstro Career Counselling Report is the most comprehensive report available on this topic. Buy Genuine Gemstones at Best Prices. Energised Yantras for You. Original Rudraksha to Bless Your Way. Bring Good Luck to your Place with Feng Shui. Praise the Lord with Divine Energies of Mala. Jadi (Tree Roots) Keep Your Place Holy with Jadi.
english
Manchester United icon Gary Neville believes Aston Villa won't win the Premier League this season despite successive wins against Manchester City and Arsenal. Unai Emery's side recently defeated the Gunners 1-0 at Villa Park (December 9) after convincingly putting away the Premier League champions in midweek (1-0, December 6). Following these results, the Villans are placed third in the English top flight, having racked up 35 points in 16 matches. They're only two points behind table-toppers Liverpool. Despite an amazing start to the 2023-24 season, Neville believes that Aston Villa making the top four would be an incredible feat. The former defender said on his podcast (via The Boot Room): Aston Villa also marked their 15th consecutive home win in the Premier League after defeating the Gunners, a feat they've achieved for the first time in club history. The side are not only putting together incredible performances in England but are also currently topping their Europa Conference League group. They've won four out of their five group matches and are three points ahead of second-placed Legia Warszawa. Arsenal manager Mikel Arteta provided a cryptic response when asked for his opinion on two key decisions in the Gunners' 1-0 defeat to Aston Villa on Saturday. Emery's side scored an early goal through John McGinn in the seventh minute. With the north Londoners chasing an equalizer, Gabriel Jesus was seemingly kicked by Douglas Luiz in the penalty area during the 47th minute. However, VAR agreed with the on-field decision not to award a penalty. Kai Havertz was then denied a late equalizer (90') for handball after Martin Odegaard's cross was bundled in by the Germany international. Once more, the video assistant conferred with the on-field call to award the Villans a free kick as the ball bounced between Havertz and Matty Cash. When asked about these incidents, Arteta said after the match (via Football.london): "Clear and obvious. I cannot say more." After recording their second loss of the season in the Premier League, Arsenal are second in the standings, with 36 points, one behind leaders Liverpool. The Gunners host Brighton at the Emirates on Sunday in their next league fixture (December 17).
english
<gh_stars>1-10 use crate::db; use crate::reddit_api; use crate::YuribotError; use std::time::Duration; use futures::StreamExt; use tokio::time; use tokio_stream::wrappers::IntervalStream; fn is_image_url(url: &str) -> bool { url.ends_with(".png") || url.ends_with(".jpg") || url.ends_with(".jpeg") } async fn pull_links( database: &db::Database, reddit: &reddit_api::Reddit, link_number: usize, time: reddit_api::MaxTime, ) -> Result<(), YuribotError> { let links = reddit .subreddit_posts( "wholesomeyuri".to_owned(), reddit_api::Sort::HOT, time, link_number, ) .await?; let insert_count = database.insert_links( &links .iter() .filter(|link| is_image_url(&link.url)) .map(|link| db::model::NewLink { link: &link.url, title: &link.title, }) .collect::<Vec<db::model::NewLink>>(), )?; info!("inserted {} new links in database", insert_count); Ok(()) } pub async fn run_scrapper(db_pool: db::DbPool, rd_pool: reddit_api::RdPool) { let database = db_pool.get().await.expect("can't get database connection"); let reddit = rd_pool .get() .await .expect("can't get reddit api connection"); let mut interval = IntervalStream::new(time::interval(Duration::from_secs(30 * 60))); while let Some(_) = interval.next().await { if let Err(e) = pull_links(&database, &reddit, 3, reddit_api::MaxTime::DAY).await { error!("{}", e); } } } pub async fn seed_database( nb_posts: usize, rd_pool: reddit_api::RdPool, db_pool: db::DbPool, ) -> Result<(), YuribotError> { let reddit = rd_pool.get().await?; let database = db_pool.get().await?; pull_links(&database, &reddit, nb_posts, reddit_api::MaxTime::ALL).await?; Ok(()) }
rust
On the final day, final event of competition for Indian contingent at Tokyo Olympics, all eyes will be on javelin thrower Neeraj Chopra – touted as one of India’s strongest medal chances. It feels fitting that Chopra will draw the curtains on India’s Olympic campaign. The 23-year-old has steadily become of India’s best athletes in the last few years and there are hopes that he can end the wait for an elusive Olympic medal in track and field. This hope is not unfounded, but instead based on his consistent performance and improving numbers. The fact that some of the main competitors fell by the wayside during qualification will only add to the expectations. (The final starts at 1630 IST on Saturday) Indeed, this season Chopra has the second best throw of all the finalists in the field, behind only the red-hot favourite Johannes Vetter, the German who has been throwing 90-plus for fun. But the overwhelming favourite did not have the best of qualification rounds where, of course, it doesn’t matter where one finishes as long as a place in final is confirmed. Despite reduced competition and being stuck in India during lockdown, Chopra has reached best of 88.07 in 2021 – an effort that would have put him in the medals at the last Olympics. Among the finalists, that is the second best this year. While SB is a decent indication of form, there are athletes in the list who have hit 88 and 89 in their careers and javelin has the tendency to throw up plenty of surprises on the night of the final. The likes of Julian Weber and Czech Republic’s Vitezslav Vesely, Jakub Vadlechj have gone 88-plus in their careers. The latter will have world record holder Jan Zelezny in their coaching corner as well. |Season Best (2021) Another cause for India’s hopes to go stronger is the field in the javelin throw at Tokyo, or rather who is not in the field. Due to a combination of factors – the heat in Tokyo being a crucial one, as well as the timing of the qualification Group B – the final will be missing many prominent names who have had among the best numbers this season. The qualification was held in the morning and the sweltering conditions in Tokyo played its part. London 2012 champion Keshorn Walcott, Doha 2019 World Champion Anderson Peters and Polish record holder Marcin Krukowski will be absent. In the tables below, courtesy World Athletics, we will see the results in 2021 for the athletes who have a best of 85-plus in 2021. Meet Arshad Nadeem, the Pakistan athlete looking to make a mark: Arshad Nadeem once dreamed of becoming a star cricketer, but after switching to athletics he has the opportunity to grab Pakistan’s first individual Olympic medal in more than 30 years. Since its first Olympics in London in 1948, Pakistan have won three gold, three silver and two bronze medals in field hockey. The bronzes won by wrestler Mohammad Bashir in Rome in 1960 and boxer Hussain Shah in Seoul in 1988 are Pakistan’s only individual Olympic medals. But among the finalists, Nadeem has the fourth-best javelin throw of the year – a personal best 86.38 metres achieved in April in Iran. The strapping 24-year-old, who ditched cricket for athletics as a teenager, already has a taste for gold, having stood atop the podium at last year’s South Asian Games in Nepal. He took bronze at the 2018 Commonwealth Games behind gold-winner Neeraj Chopra of India.
english
{"elapsed":"0.118","endpoint-url":"https://www.staffsmoorlands.gov.uk/media/2796/Brownfield-Register-CSV-File/Excel/SM_Brownfield_Land_CSV.csv","entry-date":"2019-12-20T06:46:50.093708","exception":"SSLError"}
json
<filename>src/read-file-path.js import fs from 'fs'; import path from 'path'; import minimatch from 'minimatch'; const defaultOpts = { // 'All' : Return directory and file. // 'File': Retur file only. // 'Dir' : Return directory only. type: 'File', // List of match regexp. // For example, '*_test' or ['*_test'] will match directory 'read_test' and file 'read_test.js'. // When pass list, it will match all the regexp that define in the list. include: [], // List of file match regexp. // If 'include' is passed, will first match 'include' regexp and then match the 'includeFile' regexp. includeFile: [], // List of directory match regexp. // If 'include' is passed, will first match 'include' regexp and then match the 'includeDir' regexp. includeDir: [], // List of exclude regexp. // For example, '*_test' or ['*_test'] will ignore directory 'read_test' and file 'read_test.js'. // When pass list, it will ignore all the regexp that define in the list. exclude: [], // List of file ignore regexp. // If 'exclude' is passed, will first ignore 'include' regexp and then ingore the 'excludeFile' regexp. excludeFile: [], // List of directory ignore regexp. // If 'exclude' is passed, will first ignore 'exclude' regexp and then ignore the 'excludeDir' regexp. excludeDir: [] } const FILETYPE = 'FILE'; const DIRTYPE = 'DIR'; let readFilePathSync = function(dirPath, options = {}) { let basePath = _getFilePath(dirPath); //TODO: check options options = Object.assign(defaultOpts, options); // Options let includeFileRegexp = options.include.map(i=>i).concat(options.includeFile.map(i=>i)); let excludeFileRegexp = options.exclude.map(i=>i).concat(options.excludeFile.map(i=>i)); let includeDirRegexp = options.include.map(i=>i).concat(options.includeDir.map(i=>i)); let excludeDirRegexp = options.exclude.map(i=>i).concat(options.excludeDir.map(i=>i)); let fileList = []; // Get all children directory and file. fileList = _readAllFileSync(basePath); // Reduce by file type. fileList = _reduceByType(fileList.map(i=>i), options.type.toUpperCase()); // Reduce by includeFile regexp. fileList = _reduceByIncludeFile(fileList.map(i=>i), includeFileRegexp); // Reduce by excludeFile regexp. fileList = _reduceByExcludeFile(fileList.map(i=>i), excludeFileRegexp); // Reduce by includeDir regexp. fileList = _reduceByIncludeDir(fileList.map(i=>i), basePath, includeDirRegexp); // Reduce by excludeDir regexp. fileList = _reduceByExcludeDir(fileList.map(i=>i), basePath, excludeDirRegexp); return fileList; } module.exports = { readFilePathSync: readFilePathSync // readFilPath: readFilePath [TDB]Plan to add in v 2.1.0 // readFilePathPromise: readFilePathPromise [TDB]Plan to add in v 3.1.0 } // Get absolute path let _getFilePath = function(dirPath) { return path.normalize(path.isAbsolute(dirPath) ? dirPath : path.join(process.cwd(), dirPath)); } let _readAllFileSync = function(dirPath) { let fileList = []; fs.readdirSync(dirPath).forEach((filePath) => { if (_isDirectory(_getFullPath(dirPath, filePath))) { fileList.push(_getFullPath(dirPath, filePath)); fileList = fileList.map(i=>i).concat(_readAllFileSync(_getFullPath(dirPath, filePath))); } else if (_isFile(_getFullPath(dirPath, filePath))) { fileList.push(_getFullPath(dirPath, filePath)); } }); return fileList; } let _getFullPath = function(base, currentPath) { return path.join(base, currentPath); } let _isDirectory = function(filePath) { return fs.statSync(filePath).isDirectory(); } let _isFile = function(filePath) { return fs.statSync(filePath).isFile() } let _reduceByType = function(fileList, type) { switch(type.toUpperCase()) { case FILETYPE: return fileList.reduce((list, item) => { if (_isFile(item)) { list.push(item); } return list; }, []); case DIRTYPE: return fileList.reduce((list, item) => { if (_isDirectory(item)) { list.push(item); } return list; }, []); default: return fileList.map(i=>i); } } let _reduceByIncludeFile = function(fileList, includeRegexp) { return fileList.reduce((list, filePath) => { if (_isFile(filePath) && _isInclude(path.basename(filePath), includeRegexp)) { list.push(filePath); } else if (_isDirectory(filePath)) { list.push(filePath); } return list; }, []); } let _reduceByExcludeFile = function(fileList, excludeRegexp) { return fileList.reduce((list, filePath) => { if (_isFile(filePath) && !_isExclude(path.basename(filePath), excludeRegexp)) { list.push(filePath); } else if (_isDirectory(filePath)) { list.push(filePath); } return list; }, []); } let _reduceByIncludeDir = function(fileList, basePath, includeRegexp) { return fileList.reduce((list, filePath) => { let relativePathList = path.dirname(filePath).split(path.join(basePath, '/')).length === 1 ? [] : path.dirname(filePath).split(path.join(basePath, '/'))[1].split(path.sep); for (let i in relativePathList) { if (_isInclude(relativePathList[i], includeRegexp)) { list.push(filePath); break; } } return list; }, []); } let _reduceByExcludeDir = function(fileList, basePath, excludeRegexp) { return fileList.reduce((list, filePath) => { let exclude = false; let relativePathList = path.dirname(filePath).split(path.join(basePath, '/')).length === 1 ? [] : path.dirname(filePath).split(path.join(basePath, '/'))[1].split(path.sep); for (let i in relativePathList) { if (_isExclude(relativePathList[i], excludeRegexp)) { exclude = true; break; } } if (!exclude) { list.push(filePath); } return list; }, []); } let _isInclude = function(name, regexpList) { let isInclude = true; for (let i in regexpList) { if (minimatch(name, regexpList[i])) { isInclude = true; break; } else { isInclude = false; } } return isInclude; } let _isExclude = function(name, regexpList) { let isExclude = false; for (let i in regexpList) { if (minimatch(name, regexpList[i])) { isExclude = true; break; } else { isExclude = false; } } return isExclude; }
javascript
England paceman Stuart Broad and Pakistan batsman Azhar Ali Friday expect a tight finish to the second Test between their teams, saying even a 150-run target will be tricky to chase. Pakistan, stuttering at 54 for 4 in their second innings after conceding a 70-run lead, finished the third day at 125-4. They lead by 55 runs with six wickets intact, setting the scene for an intriguing fourth day’s play. Left-arm spinner Monty Panesar took 3-44 to spark a top order collapse before Ali (46) and Asad Shafiq (35) shared an unbroken 71-run stand for the fifth wicket to lead Pakistan’s fight back. Broad, who earlier in the day hit an aggressive unbeaten 58 to help England to 327 in their first knock, said Saturday’s first hour will be crucial. “In Test cricket you expect partnerships,” said Broad. Pakistan lead the three-Test series on account of their ten wicket win in last week’s Dubai Test, and will hope to thwart England who are aiming for a series-levelling win. “I think it’s going to be a tight Test either way. You’ve always got the scoreboard pressure. We don’t want to be chasing much more than 250, I would have thought, even 150-200 is going to be a bit tricky,” said Broad. Broad revealed that a Pakistani taxi driver sledged that his team will be thrashed. “He (taxi driver) was pretty confident that they were going to destroy us but I had different views. I keep thinking when I leave the ground at the end of the day that tomorrow (Saturday) is a huge day. Broad also had praise for Panesar, who is playing his first match since the Cardiff Test in the 2009 Ashes. Ali showed confidence his team can defend a 150-target. “It was a good partnership but we have to go a long way and if we carry on with that we can stage a comeback in the match and put pressure on them. I think if we give them a 150-160 target we have a hope that we can fight and win,” said Ali. Ali praised England spinners Panesar and Swann. “I think they are really good bowlers, no one threw his wickets and there were some good balls and sometimes we need to just bat and bat and it becomes easier,” said Ali.(AFP)
english
#!/usr/bin/env python # pylint: disable=unexpected-keyword-arg,too-few-public-methods """ Test suite for data processing, dummy data and input/output functions. """ import os import sys import shutil import unittest import warnings import numpy as np import numpy.testing import nestcheck.data_processing import nestcheck.diagnostics_tables import nestcheck.dummy_data import nestcheck.error_analysis import nestcheck.io_utils import nestcheck.ns_run_utils import nestcheck.parallel_utils import nestcheck.plots import nestcheck.write_polychord_output # Define a directory to output files produced by tests (this will be deleted # when the tests finish). TEST_CACHE_DIR = 'temp_test_data_to_delete' def setUpModule(): """Before running the test suite, check that TEST_CACHE_DIR does not already exist - as the tests will delete it.""" assert not os.path.exists(TEST_CACHE_DIR), ( 'Directory ' + TEST_CACHE_DIR + ' exists! Tests use this directory to ' 'check caching then delete it afterwards, so its path should be left ' 'empty. You should manually delete or move ' + TEST_CACHE_DIR + ' before running the tests.') class TestDataProcessing(unittest.TestCase): """Tests for data_processing.py""" def setUp(self): """Make a temporary directory for saving test results.""" try: os.makedirs(TEST_CACHE_DIR) except FileExistsError: pass def tearDown(self): """Remove any caches saved by the tests.""" try: shutil.rmtree(TEST_CACHE_DIR) except OSError: pass def test_batch_process_data_unexpected_kwarg(self): """Test unexpected kwargs checks.""" self.assertRaises( TypeError, nestcheck.data_processing.batch_process_data, ['path'], base_dir=TEST_CACHE_DIR, unexpected=1) def test_birth_inds_given_contours_unexpected_kwarg(self): """Test unexpected kwargs checks.""" self.assertRaises( TypeError, nestcheck.data_processing.birth_inds_given_contours, 'birth_logl', 'logl', unexpected=1) def test_birth_inds_given_contours(self): """Check birth inds allocation function.""" # Check birth_inds_given_contours works when points born and dying on same contour logl = np.asarray([1, 1, 3, 5]) birth_logl = np.asarray([-1, 1, 1, 3]) inds = nestcheck.data_processing.birth_inds_given_contours(birth_logl, logl) numpy.testing.assert_array_equal(inds, np.asarray([-1, 0, 1, 2])) # Check error handeling of PolyChord v1.13 bug with more births than # deaths on a contour logl = np.asarray([1, 1, 2, 3, 5]) birth_logl = np.asarray([-1, 1, 1, 1, 3]) with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") inds = nestcheck.data_processing.birth_inds_given_contours(birth_logl, logl) self.assertEqual(len(war), 1) numpy.testing.assert_array_equal(inds, np.asarray([-1, 0, 0, 1, 3])) def test_threads_given_birth_inds(self): """Check mapping from birth inds to threads.""" birth_inds = np.array([-1, -1, 1, 2, 3, 7]).astype(int) # Check random assignment of leftover points to threads with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") numpy.testing.assert_array_equal( nestcheck.data_processing.threads_given_birth_inds( birth_inds), np.array([0, 1, 1, 1, 1, 0]).astype(int)) self.assertEqual(len(war), 1) def test_process_polychord_data(self): """Check processing some dummy PolyChord data.""" file_root = 'dummy_run' run = nestcheck.dummy_data.get_dummy_dynamic_run( 10, seed=0, nthread_init=2, nthread_dyn=3) dead = nestcheck.write_polychord_output.run_dead_birth_array(run) np.savetxt(os.path.join( TEST_CACHE_DIR, file_root + '_dead-birth.txt'), dead) with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") processed_run = nestcheck.data_processing.process_polychord_run( file_root, TEST_CACHE_DIR) self.assertEqual(len(war), 1) nestcheck.ns_run_utils.check_ns_run(processed_run) for key, value in processed_run.items(): if key not in ['output']: numpy.testing.assert_array_equal( value, run[key], err_msg=key + ' not the same') self.assertEqual(processed_run['output']['file_root'], file_root) self.assertEqual(processed_run['output']['base_dir'], TEST_CACHE_DIR) def test_process_polychord_stats_file(self): """Check reading in PolyChord's <root>.stats file by making and saving a dummy one.""" file_root = 'temp' output = nestcheck.write_polychord_output.write_stats_file( {'file_root': file_root, 'base_dir': TEST_CACHE_DIR, 'nlike': np.nan}) self.assertEqual(nestcheck.data_processing.process_polychord_stats( file_root, TEST_CACHE_DIR), output) def test_process_multinest_data(self): """Check processing some dummy MultiNest data.""" file_root = 'dummy_run' run = nestcheck.dummy_data.get_dummy_run(5, 10, seed=False) samples = nestcheck.write_polychord_output.run_dead_birth_array(run) # Replicate MultiNest's dead and live points files, including their # extra columns dead = samples[:-2, :] live = samples[-2:, :] dead = np.hstack((dead, np.zeros((dead.shape[0], 2)))) live = np.hstack((live, np.zeros((live.shape[0], 1)))) np.savetxt(os.path.join( TEST_CACHE_DIR, file_root + '-dead-birth.txt'), dead) np.savetxt(os.path.join( TEST_CACHE_DIR, file_root + '-phys_live-birth.txt'), live) processed_run = nestcheck.data_processing.process_multinest_run( file_root, TEST_CACHE_DIR) nestcheck.ns_run_utils.check_ns_run(processed_run) for key, value in processed_run.items(): if key not in ['output']: numpy.testing.assert_array_equal( value, run[key], err_msg=key + ' not the same') self.assertEqual(processed_run['output']['file_root'], file_root) self.assertEqual(processed_run['output']['base_dir'], TEST_CACHE_DIR) def test_batch_process_data(self): """Test processing some dummy PolyChord data using batch_process_data.""" file_root = 'dummy_run' run = nestcheck.dummy_data.get_dummy_dynamic_run( 10, seed=0, nthread_init=2, nthread_dyn=3) dead = nestcheck.write_polychord_output.run_dead_birth_array(run) np.savetxt(os.path.join( TEST_CACHE_DIR, file_root + '_dead-birth.txt'), dead) with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") run_list = nestcheck.data_processing.batch_process_data( [file_root, 'an_empty_path'], base_dir=TEST_CACHE_DIR, parallel=False, errors_to_handle=(OSError, IOError)) self.assertEqual(len(war), 2) self.assertEqual(len(run_list), 1) def test_process_dynesty_run(self): """Test processing dynesty results into nestcheck format.""" class DynestyResults(object): """A dummy dynesty results object for testing.""" def __init__(self, run, dynamic=False): """Initialse dynesty-format attributes corresponding to the input run.""" self.samples = run['theta'] self.samples_id = run['thread_labels'] self.logl = run['logl'] if not dynamic: assert np.all(run['thread_min_max'][:, 0] == -np.inf) self.nlive = run['thread_min_max'].shape[0] else: # Treat every thread as a seperate batch self.batch_bounds = run['thread_min_max'] self.batch_nlive = np.full( run['thread_min_max'].shape[0], 1) self.samples_batch = run['thread_labels'] run = nestcheck.dummy_data.get_dummy_run(1, 10) for dynamic in [True, False]: results = DynestyResults(run, dynamic=dynamic) processed = nestcheck.data_processing.process_dynesty_run(results) for key, value in run.items(): if key not in ['output']: numpy.testing.assert_array_equal( value, processed[key], err_msg=('{0} not the same. dynamic={1}' .format(key, dynamic))) def test_process_samples_array(self): """Check the handling of duplicate loglikelihood values.""" # Make a samples array with some duplicate logl values samples = np.zeros((4, 3)) samples[:, -1] = np.asarray([-1e30, -1e30, 1, 1]) # births samples[:, -2] = np.asarray([1, 1, 2, 3]) # logls # Should raise warning if dup_warn is True with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") nestcheck.data_processing.process_samples_array( samples, dup_warn=True) self.assertEqual(len(war), 1) # Should raise AssertionError if dup_assert is True self.assertRaises( AssertionError, nestcheck.data_processing.process_samples_array, samples, dup_assert=True) class TestWritePolyChordOutput(unittest.TestCase): """Tests for write_polychord_output.py.""" def setUp(self): """Make a temporary directory for saving test results.""" try: os.makedirs(TEST_CACHE_DIR) except FileExistsError: pass def tearDown(self): """Remove any caches saved by the tests.""" try: shutil.rmtree(TEST_CACHE_DIR) except OSError: pass def test_write_run_output_unexpected_kwarg(self): """Check write_run_output raises TypeError with unexpected kwargs.""" self.assertRaises( TypeError, nestcheck.write_polychord_output.write_run_output, {}, unexpected=1) def test_write_run_output(self): """Check writing PolyChord output files.""" file_root = 'dummy_run' run = nestcheck.dummy_data.get_dummy_run(10, 10) run['output'] = {'file_root': file_root, 'base_dir': TEST_CACHE_DIR} # Run with and without equals=True and posterior=True to ensure full # coverage nestcheck.write_polychord_output.write_run_output( run, equals=True, posteriors=True) nestcheck.write_polychord_output.write_run_output(run) processed_run = nestcheck.data_processing.process_polychord_run( file_root, TEST_CACHE_DIR) self.assertEqual(set(run.keys()), set(processed_run.keys())) for key, value in processed_run.items(): if key not in ['output']: numpy.testing.assert_allclose( value, run[key], err_msg=key + ' not the same') self.assertEqual(processed_run['output']['file_root'], file_root) self.assertEqual(processed_run['output']['base_dir'], TEST_CACHE_DIR) class TestDummyData(unittest.TestCase): """Tests for the dummy_data.py module.""" def test_get_dummy_run_unexpected_kwarg(self): """Check get_dummy_run raises TypeError with unexpected kwargs.""" self.assertRaises( TypeError, nestcheck.dummy_data.get_dummy_run, 1, 2, unexpected=1) def test_get_dummy_thread_unexpected_kwarg(self): """Check get_dummy_thread raises TypeError with unexpected kwargs.""" self.assertRaises( TypeError, nestcheck.dummy_data.get_dummy_thread, 1, unexpected=1) def test_get_dummy_dynamic_run_unexpected_kwarg(self): """Check get_dummy_dynamic_run raises TypeError with unexpected kwargs.""" self.assertRaises( TypeError, nestcheck.dummy_data.get_dummy_dynamic_run, 1, unexpected=1) class TestIOUtils(unittest.TestCase): """Tests for io_utils.py.""" def setUp(self): """Get some data data for io testing. Note that the saving function in io_utils makes the specified directory if it does not already exist, so there is no need to make it in setUp. """ self.test_data = np.random.random(10) @nestcheck.io_utils.save_load_result def io_func(data): """Helper for testing save and load functions via the io_utils.save_load_result decorator.""" return data self.io_func = io_func def tearDown(self): """Remove any caches saved by the tests.""" try: shutil.rmtree(TEST_CACHE_DIR) except OSError: pass def test_save_load_wrapper(self): """Try saving and loading some test data and check it dosnt change.""" # Without save_name (will neither save nor load) with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") data_out = self.io_func(self.test_data, save=True, load=True) self.assertEqual(len(war), 2) self.assertTrue(np.array_equal(self.test_data, data_out)) # Before any data saved (will save but not load) with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") data_out = self.io_func( self.test_data, save=True, load=True, warn_if_error=True, save_name=TEST_CACHE_DIR + '/io_test') self.assertEqual(len(war), 1) self.assertTrue(np.array_equal(self.test_data, data_out)) # After data saved (will load) data_out = self.io_func(self.test_data, save=True, load=True, save_name=TEST_CACHE_DIR + '/io_test') self.assertTrue(np.array_equal(self.test_data, data_out)) # Check handling of permission and memory errors when saving with warnings.catch_warnings(record=True) as war: warnings.simplefilter("always") nestcheck.io_utils.pickle_save(data_out, '//') self.assertEqual(len(war), 1) def test_load_filenotfound(self): """Test loading files which dont exist causes FileNotFoundError.""" if sys.version_info[0] >= 3: self.assertRaises( FileNotFoundError, nestcheck.io_utils.pickle_load, TEST_CACHE_DIR + 'not_here') else: # FileNotFoundError not defined in python2 - use IOError instead self.assertRaises( IOError, nestcheck.io_utils.pickle_load, TEST_CACHE_DIR + 'not_here') def test_no_overwrite(self): """Check option to not overwrite existing files.""" # Save our test data nestcheck.io_utils.pickle_save( self.test_data, TEST_CACHE_DIR + '/io_test', print_time=True) # Try saving some different data to same path nestcheck.io_utils.pickle_save( self.test_data - 100, TEST_CACHE_DIR + '/io_test', overwrite_existing=False) # Check the test data was not edited data_out = nestcheck.io_utils.pickle_load(TEST_CACHE_DIR + '/io_test') self.assertTrue(np.array_equal(self.test_data, data_out)) def test_save_load_unexpected_kwargs(self): """Unexpected kwarg should throw exception.""" self.assertRaises( TypeError, nestcheck.io_utils.pickle_load, self.test_data, TEST_CACHE_DIR + '/io_test', unexpected=1) self.assertRaises( TypeError, nestcheck.io_utils.pickle_save, self.test_data, TEST_CACHE_DIR + '/io_test', unexpected=1)
python
<reponame>Legytma/LegytmaSchemas {"$id":"https://legytma.com.br/schema/widget/floating_action_button.schema.json","$schema":"http://json-schema.org/draft-06/schema#","title":"Floating Action Button","description":"","$comment":"Created by Windol <<EMAIL>> at 06/05/2020.\nCopyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.","type":"object","allOf":[{"$ref":"https://legytma.com.br/schema/widget.schema.json"}],"properties":{"type":{"$ref":"https://legytma.com.br/schema/widget.schema.json#/definitions/type","const":"FloatingActionButton"},"onPressed":{"$ref":"https://legytma.com.br/schema/void_callback.schema.json"},"autofocus":{"$ref":"https://legytma.com.br/schema/bool.schema.json","default":false},"backgroundColor":{"$ref":"https://legytma.com.br/schema/color.schema.json"},"child":{"$ref":"https://legytma.com.br/schema/widget.schema.json"},"clipBehavior":{"$ref":"https://legytma.com.br/schema/clip.schema.json","default":"none"},"disabledElevation":{"$ref":"https://legytma.com.br/schema/double.schema.json"},"elevation":{"$ref":"https://legytma.com.br/schema/double.schema.json"},"focusColor":{"$ref":"https://legytma.com.br/schema/color.schema.json"},"focusElevation":{"$ref":"https://legytma.com.br/schema/double.schema.json"},"focusNode":{"$ref":"https://legytma.com.br/schema/focus_node.schema.json"},"foregroundColor":{"$ref":"https://legytma.com.br/schema/color.schema.json"},"highlightElevation":{"$ref":"https://legytma.com.br/schema/double.schema.json"},"hoverColor":{"$ref":"https://legytma.com.br/schema/color.schema.json"},"hoverElevation":{"$ref":"https://legytma.com.br/schema/double.schema.json"},"isExtended":{"$ref":"https://legytma.com.br/schema/bool.schema.json","default":false},"materialTapTargetSize":{"$ref":"https://legytma.com.br/schema/material_tap_target_size.schema.json"},"mini":{"$ref":"https://legytma.com.br/schema/bool.schema.json","default":false},"shape":{"$ref":"https://legytma.com.br/schema/shape_border.schema.json"},"splashColor":{"$ref":"https://legytma.com.br/schema/color.schema.json"},"tooltip":{"title":"Tooltip","description":"","$comment":"","type":"string"}}}
json
<filename>output_data/32.009-1.json {"number":"32.009-1","title":"General.","children":[{"text":"Pursuant to the policy provided by OMB Memorandum M-12-16, Providing Prompt Payment to Small Business Subcontractors (and as extended by OMB Memorandum M-13-15 and M-14-10, both titled, Extension of Policy to Provide Accelerated Payment to Small Business Subcontractors), agencies shall take measures to ensure that prime contractors pay small business subcontractors on an accelerated timetable to the maximum extent practicable, and upon receipt of accelerated payments from the Government. This acceleration does not provide any new rights under the Prompt Payment Act and does not affect the application of the Prompt Payment Act late payment interest provisions.","type":"paragraph","level":null}]}
json
<gh_stars>0 <!-- Google Analytics - DO NOT EDIT OR MOVE --> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-8532230-4']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!-- /Google Analytics --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>B.A.A. Marathon 2015: Results Search</title> <!-- <meta name="description" content="Description" /> <meta name="keywords" content="keywords, keywords" />--> <link rel="stylesheet" type="text/css" href="/_CSS/IframeStyle.css"/> </head> <body> <!-- iframe_content --> <div class="iframe_content"> <div class="iframe_content_pad"> <div class="tablegrid"> <div class="tablegrid_pad"> <table class="tablegrid_title"> <tr> <th> <span class="white_text">2015 BOSTON MARATHON RESULTS</span> </th> </tr> </table> <script language="JavaScript" type="text/javascript"> <!-- function OpenDetailsWindow(theID) { var theWindowString = "/2015/cf/public/wnd_iAthleteDetailsWindow.cfm?RaceAppID=" +theID var AthleteDetailsWindow = window.open(theWindowString, "AthleteDetails", "width=500,height=450,status=no,resizable=no,directories=no,toolbar=yes,location=no,scrollbars=yes") if (AthleteDetailsWindow != null) {AthleteDetailsWindow.focus()} } //--> </script> <table class="tablegrid_nav"> <tr> <td> <form method="post" action="iframe_ResultsSearch.cfm?mode=entry"> <input class="submit_button" type="submit" value="Search Again"/></form></td> <td class="tablegrid_list_item">&nbsp; </td> </tr> </table> <table class="tablegrid_list"> <tr> <td class="tablegrid_list_item"> <table class="tablegrid_table"> <thead> <tr> <th>Bib</th> <th>Name</th> <th>Age</th> <th>M/F</th> <th>City</th> <th>St</th> <th>Ctry</th> <th>Ctz</th> <th>&nbsp;</th> </tr> </thead> <tbody> <tr class="tr_header"> <td> 24761 </td> <td> Blanch, <NAME> </td> <td> 68 </td> <td> M </td> <td> Salt Lake City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:33:44</td> <td>1:05:43</td> <td>1:39:32</td> <td>2:11:15</td> <td>2:18:34</td> <td>2:43:35</td> <td>3:18:19</td> <td>3:53:03</td> <td>4:26:16</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:42</td> <td>-</td> <td>4:40:12</td> <td>23816</td> <td>13376</td> <td>315</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 17203 </td> <td> <NAME> </td> <td> 41 </td> <td> F </td> <td> Midway </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:33:45</td> <td>1:05:41</td> <td>1:39:32</td> <td>2:11:16</td> <td>2:18:35</td> <td>2:43:36</td> <td>3:18:19</td> <td>3:53:02</td> <td>4:26:17</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:42</td> <td>-</td> <td>4:40:12</td> <td>23819</td> <td>10442</td> <td>1767</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 21770 </td> <td> <NAME> </td> <td> 60 </td> <td> M </td> <td> Provo </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:25:14</td> <td>0:52:23</td> <td>1:22:29</td> <td>1:56:13</td> <td>2:03:23</td> <td>2:30:44</td> <td>3:08:19</td> <td>3:47:14</td> <td>4:24:14</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:43</td> <td>-</td> <td>4:40:38</td> <td>23856</td> <td>13396</td> <td>792</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 14727 </td> <td> <NAME> </td> <td> 53 </td> <td> M </td> <td> Sandy </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:29:26</td> <td>0:55:44</td> <td>1:22:52</td> <td>1:52:35</td> <td>1:58:53</td> <td>2:25:12</td> <td>3:01:25</td> <td>3:43:41</td> <td>4:22:49</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:43</td> <td>-</td> <td>4:40:49</td> <td>23863</td> <td>13399</td> <td>1901</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 30012 </td> <td> <NAME> </td> <td> 27 </td> <td> M </td> <td> Providence </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:31:46</td> <td>1:02:34</td> <td>1:32:33</td> <td>2:02:53</td> <td>2:09:25</td> <td>2:33:35</td> <td>3:07:31</td> <td>3:46:14</td> <td>4:24:42</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:47</td> <td>-</td> <td>4:42:38</td> <td>23977</td> <td>13451</td> <td>4645</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 24817 </td> <td> <NAME> </td> <td> 57 </td> <td> F </td> <td> Murray </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:30:31</td> <td>1:01:28</td> <td>1:33:17</td> <td>2:06:27</td> <td>2:13:32</td> <td>2:39:59</td> <td>3:16:03</td> <td>3:53:21</td> <td>4:29:28</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:54</td> <td>-</td> <td>4:45:35</td> <td>24182</td> <td>10638</td> <td>529</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 27070 </td> <td> Darrah, <NAME>. </td> <td> 48 </td> <td> M </td> <td> Park City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:30:51</td> <td>1:01:34</td> <td>1:32:47</td> <td>2:05:35</td> <td>2:12:38</td> <td>2:39:40</td> <td>3:17:21</td> <td>3:58:02</td> <td>4:32:16</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:10:55</td> <td>-</td> <td>4:45:56</td> <td>24202</td> <td>13554</td> <td>2350</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 27011 </td> <td> Caggiano, <NAME>. </td> <td> 26 </td> <td> M </td> <td> Salt Lake City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:32:01</td> <td>1:03:32</td> <td>1:33:45</td> <td>2:04:50</td> <td>2:11:40</td> <td>2:37:13</td> <td>3:13:22</td> <td>3:53:39</td> <td>4:32:19</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:00</td> <td>-</td> <td>4:48:21</td> <td>24336</td> <td>13609</td> <td>4698</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 3948 </td> <td> Blair, <NAME> </td> <td> 34 </td> <td> M </td> <td> Pleasant View </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:22:31</td> <td>0:48:16</td> <td>1:17:18</td> <td>1:51:26</td> <td>1:57:55</td> <td>2:27:45</td> <td>3:07:00</td> <td>3:48:56</td> <td>4:32:19</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:02</td> <td>-</td> <td>4:48:57</td> <td>24362</td> <td>13624</td> <td>4701</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 23026 </td> <td> Kitchen, Sheryl M </td> <td> 52 </td> <td> F </td> <td> St. George </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:27:15</td> <td>0:57:17</td> <td>1:26:48</td> <td>2:00:03</td> <td>2:07:14</td> <td>2:39:31</td> <td>3:19:20</td> <td>3:56:51</td> <td>4:33:28</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:04</td> <td>-</td> <td>4:49:59</td> <td>24416</td> <td>10771</td> <td>1106</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 25288 </td> <td> Lake, Joan </td> <td> 61 </td> <td> F </td> <td> Salt Lake City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:30:04</td> <td>1:02:08</td> <td>1:35:44</td> <td>2:10:25</td> <td>2:17:27</td> <td>2:45:04</td> <td>3:20:39</td> <td>3:57:16</td> <td>4:33:51</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:06</td> <td>-</td> <td>4:51:00</td> <td>24470</td> <td>10807</td> <td>222</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 22051 </td> <td> Hansen, <NAME>. </td> <td> 64 </td> <td> M </td> <td> Sandy </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:26:59</td> <td>0:57:00</td> <td>1:30:59</td> <td>2:07:19</td> <td>2:15:02</td> <td>2:43:48</td> <td>3:22:29</td> <td>3:59:31</td> <td>4:35:30</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:07</td> <td>-</td> <td>4:51:12</td> <td>24484</td> <td>13668</td> <td>813</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 23522 </td> <td> Huff, <NAME> </td> <td> 62 </td> <td> M </td> <td> Murray </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:28:36</td> <td>0:59:10</td> <td>1:29:13</td> <td>1:59:56</td> <td>2:06:45</td> <td>2:36:35</td> <td>3:12:05</td> <td>3:52:32</td> <td>4:34:46</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:13</td> <td>-</td> <td>4:53:47</td> <td>24611</td> <td>13726</td> <td>820</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 25173 </td> <td> Webb, Shirlee </td> <td> 63 </td> <td> F </td> <td> Highland </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:29:57</td> <td>1:00:47</td> <td>1:32:44</td> <td>2:12:12</td> <td>2:19:45</td> <td>2:47:15</td> <td>3:27:05</td> <td>4:06:20</td> <td>4:44:02</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:28</td> <td>-</td> <td>5:00:23</td> <td>24964</td> <td>11094</td> <td>239</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 26254 </td> <td> Larcom, Maryellyn </td> <td> 51 </td> <td> F </td> <td> Salt Lake City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:32:12</td> <td>1:06:12</td> <td>1:40:24</td> <td>2:16:13</td> <td>2:23:52</td> <td>2:54:40</td> <td>3:32:08</td> <td>4:11:18</td> <td>4:47:15</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:32</td> <td>-</td> <td>5:02:10</td> <td>25029</td> <td>11133</td> <td>1124</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 25053 </td> <td> <NAME> </td> <td> 71 </td> <td> M </td> <td> North Ogden </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:32:44</td> <td>1:07:30</td> <td>1:43:37</td> <td>2:20:09</td> <td>2:27:55</td> <td>2:56:45</td> <td>3:35:21</td> <td>4:13:42</td> <td>4:48:28</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:33</td> <td>-</td> <td>5:02:46</td> <td>25058</td> <td>13912</td> <td>97</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 20140 </td> <td> Larson, <NAME>. </td> <td> 36 </td> <td> F </td> <td> Draper </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:27:01</td> <td>0:56:25</td> <td>1:32:55</td> <td>2:07:06</td> <td>2:14:27</td> <td>2:43:55</td> <td>3:24:58</td> <td>4:06:13</td> <td>4:45:56</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:35</td> <td>-</td> <td>5:03:16</td> <td>25083</td> <td>11164</td> <td>5556</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 25504 </td> <td> Andrews, Becky </td> <td> 50 </td> <td> F </td> <td> Bountiful </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> VI </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:33:44</td> <td>1:05:08</td> <td>1:39:39</td> <td>2:13:40</td> <td>2:20:49</td> <td>2:50:10</td> <td>3:29:53</td> <td>4:12:17</td> <td>4:50:38</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:11:44</td> <td>-</td> <td>5:07:14</td> <td>25224</td> <td>11246</td> <td>1137</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 11105 </td> <td> Holmes, <NAME>. </td> <td> 51 </td> <td> M </td> <td> Hurricane </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:22:32</td> <td>0:45:51</td> <td>1:11:34</td> <td>1:40:46</td> <td>1:45:48</td> <td>2:10:22</td> <td>2:57:33</td> <td>-</td> <td>5:02:40</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:12:19</td> <td>-</td> <td>5:22:30</td> <td>25737</td> <td>14213</td> <td>2003</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 28583 </td> <td> Brundage, Brenda </td> <td> 55 </td> <td> F </td> <td> Ogden </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:33:18</td> <td>1:09:23</td> <td>1:48:09</td> <td>2:27:25</td> <td>2:36:03</td> <td>3:09:12</td> <td>3:54:07</td> <td>4:38:36</td> <td>5:23:45</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:13:07</td> <td>-</td> <td>5:43:46</td> <td>26246</td> <td>11823</td> <td>595</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 28330 </td> <td> <NAME> </td> <td> 47 </td> <td> M </td> <td> Washington </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:34:12</td> <td>1:10:23</td> <td>1:50:41</td> <td>2:33:37</td> <td>2:42:28</td> <td>3:18:29</td> <td>4:07:09</td> <td>4:56:15</td> <td>5:38:43</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:13:39</td> <td>-</td> <td>5:57:52</td> <td>26486</td> <td>14524</td> <td>2475</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 28300 </td> <td> Hinton, <NAME>. </td> <td> 48 </td> <td> M </td> <td> St George </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:36:26</td> <td>1:13:49</td> <td>1:52:42</td> <td>2:32:11</td> <td>2:40:35</td> <td>3:14:25</td> <td>4:00:53</td> <td>4:50:29</td> <td>5:38:43</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:13:39</td> <td>-</td> <td>5:57:52</td> <td>26487</td> <td>14525</td> <td>2476</td> </tr> </table> </td> </tr> <tr class="tr_header"> <td> 8135 </td> <td> Pettinger, <NAME>. </td> <td> 40 </td> <td> M </td> <td> Heber City </td> <td> UT </td> <td> USA </td> <td> &nbsp; </td> <td> &nbsp; </td> </tr> <tr> <td colspan="9"> <table class="table_infogrid" style="width:95%;"> <tr> <th rowspan="2" class="table_infogrid_title" style="background-color:#ddd; text-align:center;"> </th> <th>5k</th> <th>10k</th> <th>15k</th> <th>20k</th> <th>Half</th> <th>25k</th> <th>30k</th> <th>35k</th> <th>40k</th> </tr> <tr> <td>0:40:35</td> <td>1:21:42</td> <td>2:04:13</td> <td>2:48:30</td> <td>2:57:35</td> <td>3:29:40</td> <td>4:12:11</td> <td>4:56:02</td> <td>5:40:26</td> </tr> <tr> <th rowspan="2" class="table_infogrid_title" style="text-align:center;" colspan="4">Finish:</th> <th>Pace</th> <th>Proj.&nbsp;Time</th> <th>Offl.&nbsp;Time</th> <th>Overall</th> <th>Gender</th> <th>Division</th> </tr> <tr> <td>0:13:44</td> <td>-</td> <td>5:59:44</td> <td>26512</td> <td>14538</td> <td>2108</td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <table class="tablegrid_table"> <tr> <td width="50%"> <form action="/2015/cf/Public/iframe_ResultsSearch.cfm?mode=results&criteria=&StoredProcParamsOn=yes&&VarGenderID=0&VarBibNumber=&VarLastName=&VarFirstName=&VarStateID=56&VarCountryOfResID=0&VarCountryOfCtzID=0&VarReportingSegID=1&VarAwardsDivID=0&VarQualClassID=0&VarCity=&VarTargetCount=1000&records=25&headerexists=Yes&bordersize=0&bordercolor=%23ffffff&rowcolorone=%23FFCC33&rowcolortwo=%23FFCC33&headercolor=%23ffffff&headerfontface=Verdana%2CArial%2CHelvetica%2Csans%2Dserif&headerfontcolor=%23004080&headerfontsize=12px&fontface=Verdana%2CArial%2CHelvetica%2Csans%2Dserif&fontcolor=%23000099&fontsize=10px&linkfield=FormattedSortName&linkurl=OpenDetailsWindow&linkparams=RaceAppID&queryname=SearchResults&tablefields=FullBibNumber%2CFormattedSortName%2CAgeOnRaceDay%2CGenderCode%2CCity%2CStateAbbrev%2CCountryOfResAbbrev%2CCountryOfCtzAbbrev%2CDisabilityGroup" method="post"> <input type="hidden" name="start" value="351"/> <input class="submit_button" type="submit" name="previous" value="Previous 25 Records"/> </form> </td> <td> &nbsp; </td> </tr> </table> </td> </tr> </tbody> </table> </td> </tr> </table> </div> </div> </div> </div> </body> </html>
html
Chennai: The Telangana High Court has issued a notice to the Institute of Actuaries of India (IAI), The President of IAI and the Department of Financial Services on a writ petition filed by K. Subrahmanyam, retired Executive Director, Insurance Regulatory and Development Authority of India (IRDAI). “The Telangana High Court has issued notice on Friday to IAI, Department of Financial Services and The President of IAI on a petition filed by me,” Subrahmanyam told IANS. He had filed the petition in connection with retiring four members of IAI’s managing council before AGM, which in turn had reduced the Council’s size to eight which is below the statutory minimum of nine. The IAI is a statutory body created by an Act of Parliament to govern the actuarial profession. Subrahmanyam has approached the court for an order setting aside the retirement of four IAI Managing Council members ahead of the AGM and directing the Department of Financial Services to restore the Council to its earlier position. He has also petitioned the court to direct the Department of Financial Services to take action against AIAI President Subhendu Kumar Bal for holding the Council meeting on 10.9.2022 breaching Section 12(2)(a) of the Actuaries Act, 2006 and also set aside the notice of AGM to be held on 17.9.2022. Subrahmanyam had told IANS that on the orders of Bal, the Executive Director Mohan Bhatia, on September 3, informed four Council Members – Abhay Tewari, K. Subrahmanyam, Pravir Chandra, and Richard Holloway – over a terse email on that they would retire from September 4. “If the Council does not meet the requirement of Section 12(2)(a) of The Actuaries Act, it cannot do any function assigned to it under Section 13 – calling of the AGM – and other sections, as it stands dissolved,” Subrahmanyam, had told IANS. The first Chairman of IRDAI N.Rangachary told IANS that IAI was formed as a statutory body on the lines of Institute of Chartered Accountants of India so that the profession grows well and serves the insurance and other sectors. Prior to the formation of IAI, the actuary profession was governed by Actuarial Society of India (ASI).
english
<gh_stars>0 import { Injectable } from '@angular/core'; import { Item } from '../../models/item'; import { Api } from '../api/api'; @Injectable() export class Items { defaultItem: any = { }; data: any = []; teacher: any; constructor(public api: Api) { this.teacher = {}; } query(params?: any) { if (params) { return new Promise(resolve => { this.api.get('students', params) .map(res => { return res; }) .subscribe(data => { this.data = data; resolve(this.data); }); }); } else { return new Promise(resolve => { this.api.get('students') .map(res => { return res; }) .subscribe(data => { this.data = data; resolve(this.data); }); }); } } updateCal(student: Item, id) { this.api.post('students/cal', student, id) .subscribe(data => { console.log(data); }, error => { console.log(error); }); } updateProfile(student: Item, id) { return new Promise(resolve => { this.api.post('student/info', student, id) .subscribe(data => { return resolve(data); }, error => { return resolve(error); }); }); } add(student: Item) { return new Promise(resolve => { this.api.post('new/student', student) .subscribe(data => { return resolve(data); }, error => { return resolve(error); }); }); } delete(student: string) { this.api.delete('remove/student', student) .subscribe(data => { console.log(data); }, error => { console.log(error); }); } getStudentsByGroup(group) { return new Promise(resolve => { this.api.get('students/by-group', group) .map(data => { return data; }) .subscribe(data => { this.data = data; resolve(this.data); }); }); } getGroupByGroups() { // lodash } }
typescript
<filename>URI_data/URIScraper_ES/1663.json<gh_stars>1-10 {"output":"undefined","input":"undefined","level":2,"name":"Ambiguous Permutations","has_images":false,"description":"undefined","id":"1663","category":"Ad-Hoc","statistics":{"level":"2 / 10","submissions":666,"solved":464,"ratio":"69.67%"}}
json
<filename>_site/2013/11/thankful/index.html <!doctype html> <html> <head> <title> What Are You Thankful For? | nodes </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="utf-8"> <link rel="stylesheet" href="/assets/css/main.css"> <link rel="stylesheet" href="/assets/css/syntax.css"> <!-- Use Atom --> <!-- <link type="application/atom+xml" rel="alternate" href="/nodes/_site/feed.xml" title="nodes" /> --> <!-- Use RSS-2.0 --> <link href="/rss-feed.xml" type="application/rss+xml" rel="alternate" title="nodes | "/> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700%7CPT+Sans:400"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quattrocento+Sans"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"> <!-- Comment engine driven by Firebase --> <script src="https://cdn.firebase.com/js/client/2.2.1/firebase.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.0/moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.1.0/js/md5.js"></script> <script src="https://ohheybrian.com/nodes/_site/js/blog.js"></script> <script> // (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ // (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), // m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) // })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); // // ga('create', '', 'auto'); // ga('send', 'pageview'); </script> <!-- Global site tag (gtag.js) - Google Analytics --> <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-56616200-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-56616200-2'); </script> --> </head> <body> <div class="container"> <header class="masthead"> <h1 class="masthead-title"> <a href="/">nodes</a> </h3> </header> <div class="menu"> <div class="salutation"> <h1>I'm Brian. I have other websites.</h1> </div> <nav class="menu-content"> <a href="///ohheybrian.com">home</a> <a href="///ohheybrian.com/privacy">privacy</a> <a href="pages/docutube.html">DocuTube</a> <a href="pages/doc-emailer.html">Doc Emailer</a> </nav> <nav class="social-icons"> <a href="https://www.github.com/bennettscience" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a> <a href="https://twitter.com/bennettscience" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a> <a href="mailto:<EMAIL>" target="_blank"><i class="fa fa-envelope" aria-hidden="true"></i></a> <a href="https://flickr.com/photos/bennettscience" target="_blank"><i class="fa fa-flickr" aria-hidden="true"></i></a> <a href="/rss-feed.xml" target="_blank"><i class="fa fa-rss-square" aria-hidden="true"></i></a> </nav> <hr /> <div class="generic-text"> <h2>contact</h2> <p> To reach me, send an email to <a href="mailto:<EMAIL>">brian [at] ohheybrian [dot] com</a>. </p> <p> Do not send marketing requests, guest post solicitations, or link-for-link offers. I don't want them. </p> </div> <hr /> <div class="generic-text"> <h2>archive</h2> <a href="/pages/archive.html">See all posts by Month/Year</a> </div> </div> <div class="post-container"> <h1> What Are You Thankful For? </h1> <p>I’ll admit right at the beginning that this post is a shameless use of all facets of my network. This blog is one of those. So, if you’re someone who doesn’t like it when people do that, you can stop reading, I’m sorry. But, I do ask that you give me a shot.</p> <hr /> <p>Thanksgiving is upon us, and customarily, people are sharing out their quips of thanks for the season. Some go through each day and give one thing they’re thankful for.</p> <p>I think this is something we need to do more often in education. It is very easy in today’s climate to get beaten down and complain about the things going wrong in our schools. I count myself in that group. There are a lot of posts on this blog in which I extol the adversity in my classroom and building. However, I would like to invite everyone to share something they’re thankful for in education. There are more wins out there than losses, and I want to make those as public as I can.</p> <p>If you’re not familiar with what I do nowadays, I work with TechSmith Education. Part of my job is to host a weekly podcast on the EdReach Network titled <em>Chalkstar to Rockstar: Revolutionary Ideas in Learning</em>. I get to share out stories of teachers doing amazing things in their classrooms each week, and I’ve had the chance to interview some amazing people.</p> <p>Next week is the Thanksgiving episode. It goes live on Wednesday, Thanksgiving Eve, and I want to share as many stories of thanks in education as I can. To do that, I need your help. Please take 30 seconds to fill out a two question survey, of which only one question is mandatory. I’ll be sharing all of the responses on the podcast as well as an accompanying blog post. If you could fill out the embedded form below and then pass it along, I’d be much obliged.</p> <p>You can also share on Twitter using <strong>#eduthanks</strong>. If you want to pass the survey, you can use <a href="http://bit.ly/eduthanks">http://bit.ly/eduthanks</a>.</p> <p>For me, I’m thankful for teachers who continue to fight the good fight against overwhelming odds. You all are an inspiration daily (and I’m not just saying that). Happy Thanksgiving, everyone.</p> <span class="post-date"> Written on November 22nd , 2013 by <NAME> </span> <span class="post-cat"> Categorized in: <a href="/categories/#All">All</a> &nbsp; <a href="/categories/#Life">Life</a> &nbsp; <a href="/categories/#Teaching">Teaching</a> </span> <span class="post-tags"> Tagged: </span> <hr /> <div class="post-date">Feel free to share!</div> <div class="sharing-icons"> <a href="https://twitter.com/intent/tweet?text=What Are You Thankful For?&amp;url=https://blog.ohheybrian.com/2013/11/thankful/&amp;via=bennettscience" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a> <a href="https://www.facebook.com/sharer/sharer.php?u=https://blog.ohheybrian.com/2013/11/thankful/&amp;title=What Are You Thankful For?" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a> <a href="https://plus.google.com/share?url=https://blog.ohheybrian.com/2013/11/thankful/" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a> </div> </div> <div class="comments"> <h2>Leave a comment</h2> <form id="comment" > <label for="message">Message</label> <textarea id="message" ></textarea> <label for="name">Name</label> <input type="text" id="name" value=""> <label for="email">Email</label> <input type="email" id="email" value="" placeholder="Your email is never shared"> <input type="submit" value="Submit Comment"> <p class="hide" id="toast">Thank you for your comment. It will appear after moderation.<p> </form> <div id="comment-list"></div> </div> </div> <footer class="footer"> <a href="https://www.github.com/bennettscience" target="_blank"><i class="fa fa-github" aria-hidden="true"></i></a> <a href="https://twitter.com/bennettscience" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a> <a href="mailto:<EMAIL>" target="_blank"><i class="fa fa-envelope" aria-hidden="true"></i></a> <a href="https://flickr.com/photos/bennettscience" target="_blank"><i class="fa fa-flickr" aria-hidden="true"></i></a> <a href="/rss-feed.xml" target="_blank"><i class="fa fa-rss-square" aria-hidden="true"></i></a> <div class="post-date"><a href="/nodes/_site/menu/about.html">nodes | by <NAME></a></div> </footer> </div> </body> </html>
html
{ "name": "@pietrop/edl-composer", "version": "2.0.0", "description": "ELD composer can be used to create Edit Decision List. EDL, Edit Decision List, is a plain text format that describes a video sequence. It can be opened in a video editing software to reconnect media to assemble a video sequence", "main": "index.js", "type": "module", "scripts": { "test": "NODE_OPTIONS=--experimental-vm-modules npx jest", "example-usage": "node example-usage.js", "publish:public": "npm publish --access public", "publish:dry:run": "npm publish --dry-run" }, "repository": { "type": "git", "url": "https://github.com/pietrop/edl-composer" }, "author": "<NAME> <<EMAIL>> (http://pietropassarelli.com)", "license": "MIT", "dependencies": { "@pietrop/timecode-converter": "^1.0.0" }, "devDependencies": { "jest": "^27.2.5" } }
json
{"name":"curve_downRight","subject":8,"date":"26122009-092751","paths":{"Pen":{"strokes":[{"x":-472,"y":-756,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":0,"stroke_id":0},{"x":-476,"y":-781,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":1,"stroke_id":0},{"x":-472,"y":-802,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":2,"stroke_id":0},{"x":-471,"y":-822,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":3,"stroke_id":0},{"x":-462,"y":-840,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":4,"stroke_id":0},{"x":-446,"y":-852,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":5,"stroke_id":0},{"x":-422,"y":-864,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":6,"stroke_id":0},{"x":-391,"y":-873,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":7,"stroke_id":0},{"x":-350,"y":-884,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":8,"stroke_id":0},{"x":-299,"y":-891,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":9,"stroke_id":0},{"x":-243,"y":-897,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":10,"stroke_id":0},{"x":-179,"y":-897,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":11,"stroke_id":0},{"x":-110,"y":-893,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":12,"stroke_id":0},{"x":-38,"y":-880,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":13,"stroke_id":0},{"x":36,"y":-856,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":14,"stroke_id":0},{"x":109,"y":-821,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":15,"stroke_id":0},{"x":175,"y":-773,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":16,"stroke_id":0},{"x":235,"y":-714,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":17,"stroke_id":0},{"x":286,"y":-644,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":18,"stroke_id":0},{"x":328,"y":-565,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":19,"stroke_id":0},{"x":358,"y":-477,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":20,"stroke_id":0},{"x":379,"y":-381,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":21,"stroke_id":0},{"x":389,"y":-277,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":22,"stroke_id":0},{"x":391,"y":-170,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":23,"stroke_id":0},{"x":383,"y":-65,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":24,"stroke_id":0},{"x":367,"y":38,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":25,"stroke_id":0},{"x":340,"y":141,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":26,"stroke_id":0},{"x":303,"y":242,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":27,"stroke_id":0},{"x":258,"y":338,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":28,"stroke_id":0},{"x":207,"y":429,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":29,"stroke_id":0},{"x":149,"y":507,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":30,"stroke_id":0},{"x":89,"y":579,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":31,"stroke_id":0},{"x":26,"y":643,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":32,"stroke_id":0},{"x":-37,"y":701,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":33,"stroke_id":0},{"x":-98,"y":747,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":34,"stroke_id":0},{"x":-150,"y":785,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":35,"stroke_id":0},{"x":-201,"y":810,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":36,"stroke_id":0},{"x":-244,"y":829,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":37,"stroke_id":0},{"x":-281,"y":840,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":38,"stroke_id":0},{"x":-313,"y":844,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":39,"stroke_id":0},{"x":-339,"y":845,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":40,"stroke_id":0},{"x":-357,"y":839,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":41,"stroke_id":0},{"x":-365,"y":837,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":42,"stroke_id":0},{"x":-370,"y":830,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":43,"stroke_id":0},{"x":-362,"y":821,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":44,"stroke_id":0},{"x":-346,"y":809,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":45,"stroke_id":0},{"x":-323,"y":792,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":46,"stroke_id":0},{"x":-290,"y":771,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":47,"stroke_id":0}]}},"device":{"osBrowserInfo":"Fujitsu-Siemens Stylistic ST5022 Tablet PC","resolutionHeight":null,"resolutionWidth":null,"windowHeight":null,"windowWidth":null,"pixelRatio":null,"mouse":false,"pen":true,"finger":false,"acceleration":false,"webcam":false}}
json
<reponame>cdrainxv/splt-jn { "name": "splt-jn", "version": "1.0.0", "description": "split and join a string in one function", "main": "index.js", "scripts": { "test": "ava" }, "keywords": [ "split", "join", "splt-jn", "string", "array" ], "repository": { "type": "git", "url": "https://github.com/cdrani/splt-jn.git" }, "license": "MIT", "bugs": "https://github.com/cdrani/splt-jn/issues", "author": "cdrani", "homepage": "https://github.com/cdrani/splt-jn#readme", "devDependencies": { "ava": "1.4.1" } }
json
{ "first_name": "Иван", "second_name": "Андреевич", "last_name": "Попов", "phone": "+7 999 100-30-20", "email": "<EMAIL>", "skills": "Начинающий программист на Ruby" }
json
{ "iplb_server_preview_title": "Server overzicht", "iplb_server_preview_name": "Naam", "iplb_server_preview_address": "IPv4 adres", "iplb_server_preview_port": "Port", "iplb_server_preview_backup": "Backup server", "iplb_server_preview_probe": "Gebruik de farm probe van de server", "iplb_server_preview_ssl": "Encrypt verzoeken met SSL", "iplb_server_preview_cookie": "Cookie", "iplb_server_preview_chain": "Certificaatketen", "iplb_server_preview_proxyProtocolVersion": "PROXY Protocol versie", "iplb_server_preview_proxyProtocolVersion_placeholder": "Selecteren", "iplb_server_preview_weight": "Balancing weight", "iplb_server_preview_active": "Actief", "iplb_server_preview_id": "Gebruikersnaam", "iplb_server_add_title": "Een server toevoegen", "iplb_server_update_title": "Wijzig de server: {{serverId}}", "iplb_server_edit_name": "Naam (optioneel)", "iplb_server_edit_address": "IPv4 adres", "iplb_server_edit_port": "Port", "iplb_server_edit_port_tip": "Port aangesloten op uw server (1 tot {{portMax}}). Gebruik standaard de poort die de server met de farm verbindt.", "iplb_server_edit_advanced_options": "Geavanceerde instellingen", "iplb_server_edit_advanced_options_info": "De meest recente standaardwaarden zijn vooraf ingesteld. U kunt ze op elk gewenst moment wijzigen.", "iplb_server_edit_advanced_options_show": "Weergeven", "iplb_server_edit_backup": "Backup server", "iplb_server_edit_probe": "Gebruik de farm probe van de server", "iplb_server_edit_ssl": "Encrypt verzoeken met SSL", "iplb_server_edit_cookie": "Cookie", "iplb_server_edit_cookie_tip": "Cookie waarde gebruikt voor cookie stickiness", "iplb_server_edit_chain": "Certificaatketen", "iplb_server_edit_chain_tip": "De waarde van het intermediaire SSL certificaat. Verificatie van servercertificaat toestaan (vermijd 'man-in-the-middle' aanvallen)", "iplb_server_edit_proxyProtocolVersion": "PROXY Protocol versie", "iplb_server_edit_proxyProtocolVersion_tip": "De te gebruiken PROXY protocol versie, bekijk {{link}}", "iplb_server_edit_proxyProtocolVersion_tip_link": "http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt", "iplb_server_edit_weight": "Balancing weight", "iplb_server_edit_weight_tip": "1 naar {{lbWeightMax}}", "iplb_server_edit_cancel": "Annuleren", "iplb_server_add_confirm": "Toevoegen", "iplb_server_update_confirm": "Update", "iplb_server_request_error": "Er is een fout opgetreden bij het laden van uw gegevens.", "iplb_server_add_error": "Er is een fout opgetreden tijdens het toevoegen van de server farm: {{message}}", "iplb_server_add_success": "De server is toegevoegd. ", "iplb_server_update_error": "Er is een fout opgetreden tijdens het wijzigen van de server: {{message}}", "iplb_server_update_success": "De server is gewijzigd. ", "iplb_server_delete_title": "Verwijder de server", "iplb_server_delete_question": "Weet u zeker dat u de {{server}} server wilt verwijderen?", "iplb_server_delete_error": "Er is een fout opgetreden tijdens het verwijderen van de server: {{message}}", "iplb_server_delete_success": "De server is verwijderd. ", "iplb_server_status_title": "Status van de server", "iplb_server_status_instance": "Instance {{instanceId}}", "iplb_server_status_status": "Status", "iplb_server_status_check_code": "Check code", "iplb_server_status_check_status": "Check status", "iplb_server_status_last_check_content": "Last check content", "iplb_server_status_check_time": "Check time", "iplb_server_status_no_information": "Geen informatie" }
json
The unprecedented lockdown to contain coronavirus has precipitated a nationwide socio-economic crisis. A year on – since the imposition of lockdown, the many dimensions of this crisis are still unfolding. On a national scale, the GDP has contracted with widespread job losses and a decrease in economic participation of labor. A significant decline in per capita income is expected. On a social level, people’s confidence in the economy has decreased evidenced by lower spending and less mobility. Uncertainty of the immediate future has induced anxiety among households that are compounded by low levels of social security including coverage of health costs. As such, Indian society suffers from economic inequality and more severe social inequality. Thus in times of crisis, the lower socio-economic groups suffer the most; as people of higher classes tend to corner resources and cope better to stress. However, a stinging humanitarian crisis is that induced by horizontal inequality between genders and suffered by women. The lockdown has likely induced an acute existential crisis on women of all socio-economic groups. Women participation in labor decreased to 6. 9% post lockdown compared to 9. 9% in January 2020. Further, unlike men, some economic recovery, post September 2020, has not benefit women in terms of employment. Thus, the lockdown has likely increased subservience of women as they are snatched of the little liberty and negotiation power that was conferred by their earnings. Lockdown and subsequent decrease in mobility has brought more people living in domestic spaces for extended periods. Thus, demand of domestic chores has increased, resulting in higher physical burden on the women. A nationwide research (Priyanshi Chauan, Gender issues, 2020) reported that unemployed and employed women spend 30. 5%, 14. 5% more time respectively, on domestic chores, often exceeding 70 hours of work per week. Interestingly, the research also points that increased burden was disproportionately experienced by married women. This fact underlines the unequal and unjust gender roles defined by the patriarchal institution of marriage – which only induced distress on women. In several other qualitative reports from Gujarat, Delhi, Uttar Pradesh etc, women expressed mental distress, a sense of hopelessness, physical draining due to increase work and responsibilities. Importantly, women across studies express lack of support from peers, men and community in general. Undoubtedly, this increase of work, on already burdened women will bear physical and mental health consequences, which are likely to go unaddressed. Clustering of people in domestic spaces has increased vulnerability of women to domestic and intimate partner violence. As such, one in three married women face continued domestic violence (sexual and physical) and less than one in 100 are able to seek external help. The lockdown only locked women in domestic spaces with perpetrators (husband, in-laws and extended family), for extended periods. Going by past research, economic uncertainty and mental distress would have only increased the male rage, leading to increased violence on women. Expectedly, the national commission for women registered 2. 5 times more complaints of domestic violence during the lock down compared to same period in 2019. Within first ten days of lockdown, the national child helpline received over 90,000 SOS calls. Likewise, Doctors without borders, running an exclusive clinic for sexual and gender based violence in Delhi, witnessed doubling of survivors seeking medical care post lock down. ‘Local diaries’ a repository of women voices has chronicled stories of women from across India, who commonly suffer day long physical assaults by husbands, post lockdown. Increased incidence of violence against women is only one part of the crisis story. Lockdown also severely constrained women from seeking help or adopting coping measures against violence. Restrictions in public movement is a barrier from seeking external help or even socializing with other women for relief. Further, sources of help have diminished as government health workers (ASHA) who provide primary relief against domestic violence are now diverted to COVID containment activities. Grass root NGOs or community support groups are either dismantled or dysfunctional due to economic distress and movement restrictions. Further, continuous presence perpetrators deter women from seeking help or relief via phone. Making things worse, is the increased domestic work, leaving no time for women to talk with their friends or family. Easing of severe lockdown is likely to have reduced violence of against women and eased some pressure of domestic work. However movement restrictions and decreased opportunities to socialize remain. Imposition of Zonal containment and local lockdowns continue and will remain a reality in the near future. While unemployment and socio-economic distress increase, violence and domestic distress on women is likely to intensify. Hence, a civil and progressive society ought to respond to prevent violence against women and provide relief to survivors. Given the structural and systemic nature of violence, effective response for relief to women is not easy to come. Shaping of any response begins with recognition and understanding of the problem. Neither the government nor the social narrative is able to capture the problem, as domestic violence against women is a culturally accepted norm. The majoritarian social construct forces responsibility of domestic chores on women, without limitation of workload. Further, domestic violence is largely a civil matter, open to amicable settlements while intimate partner violence is purposefully de-recognized. Hence, a systemic program to prevent violence or provide relief to survivors is far from possible. Thus, the onus lies on the informed civil society to organize an emergency response to the relief of women stuck in abusive spaces. The civil society too, has limited options of intervention methods given the structural and normative nature of violence. Evidence suggest that organizing community level support (mental health, medical and financial) to women provides effective relief to abused women. However, the prevailing economic conditions and fear of COVID challenges mobilization of resources. Traditional community support methods needs to adopt creative tools to over-come new barriers. Hence, an urgent public dialogue is required to design and implement community support programs. In parallel, the informed civil society should attempt to represent this crisis of women in the mainstream social narrative. For silent suffering will only establish a new normal.
english
<gh_stars>0 import React, { FunctionComponent } from 'react'; import { FormattedMessage } from "gatsby-plugin-intl" import './contact.css'; interface ContactProps { copyrightTagline: string, socialLinks: { github: string; linkedIn: string; mail: string; }; } const Contact: FunctionComponent<ContactProps> = ({ copyrightTagline, socialLinks }) => ( <section id="contact" className="contact"> <h2 className="section-title"> <FormattedMessage id="contact.sectionTitle" /> </h2> <h3 className="contact__title"> <FormattedMessage id="contact.title" /> </h3> <p className="contact__text"> <FormattedMessage id="contact.text" /> </p> <p><a className="contact__link" href={`mailto:${socialLinks.mail}?subject=Salut%20!`}><EMAIL></a> </p> <p><a className="contact__link" href={socialLinks.linkedIn} target="blank">linkedin</a> </p> <p><a className="contact__link" href={socialLinks.github} target="blank">github</a> </p> <div className="copyright">2021 &copy; {copyrightTagline}</div> </section> ); export default Contact;
typescript
Mansoor Ali Khan challenges Superstar Rajnikanth! Actor Mansoor Ali Khan has been known for playing villain roles in the 90s, and in recent years, he is acting in comedy roles in movies like Naanum Rowdythaan, Gulaebhagavali etc. The actor was seen recently in movies like Chekka Chivantha Vaanam and Jackpot. Mansoor Ali Khan is into politics as well, and this year he had contested elections for Naam thamizhar party. Currently he is directing and acting in a movie titled Kadaman paarai, and during the recent promotional event of this movie, Mansoor Ali Khan made a challenge to Superstar Rajnikanth. Mansoor Ali Khan said that he will always be a fan of Rajnikanth and has also acted in his movies. However he said that he is not ready to accept the statement of Rajnikanth that the Thoothukudi sterlite shooting was done because of terrorist involvement, and challenged Rajnikanth to prove it and added that he will tonsure his head if Rajnikanth proves it. Follow us on Google News and stay updated with the latest!
english
<reponame>philippwinter/course-learning-platform { "title": "404: Not Found", "intro": "I'm very sorry, but there's nothing to view here. Please watch out for spelling mistakes in the URL." }
json
<filename>sia4e-P4_Integrating_Spring-C20_Managing_Spring_beans_with_JMX/src/main/java/spittr/Spittle.java package spittr; import java.util.Date; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public class Spittle { private final Long id; private final String message; private final Date time; private Double latitude; private Double longitude; public Spittle(String message, Date time) { this(message, time, null, null); } public Spittle(String message, Date time, Double latitude, Double longitude) { this.id = null; this.message = message; this.time = time; this.longitude = longitude; this.latitude = latitude; } public Long getId() { return id; } public String getMessage() { return message; } public Date getTime() { return time; } public Double getLatitude() { return latitude; } public Double getLongitude() { return longitude; } @Override public boolean equals(Object that) { return EqualsBuilder.reflectionEquals(this, that, "id", "time"); } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this, "id", "time"); } }
java
<filename>vendor/github.com/awslabs/goformation/cloudformation/aws-codedeploy-deploymentgroup_triggerconfig.go package cloudformation // AWSCodeDeployDeploymentGroup_TriggerConfig AWS CloudFormation Resource (AWS::CodeDeploy::DeploymentGroup.TriggerConfig) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html type AWSCodeDeployDeploymentGroup_TriggerConfig struct { // TriggerEvents AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggerevents TriggerEvents []string `json:"TriggerEvents,omitempty"` // TriggerName AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggername TriggerName string `json:"TriggerName,omitempty"` // TriggerTargetArn AWS CloudFormation Property // Required: false // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-triggerconfig.html#cfn-codedeploy-deploymentgroup-triggerconfig-triggertargetarn TriggerTargetArn string `json:"TriggerTargetArn,omitempty"` // _deletionPolicy represents a CloudFormation DeletionPolicy _deletionPolicy DeletionPolicy } // AWSCloudFormationType returns the AWS CloudFormation resource type func (r *AWSCodeDeployDeploymentGroup_TriggerConfig) AWSCloudFormationType() string { return "AWS::CodeDeploy::DeploymentGroup.TriggerConfig" } // SetDeletionPolicy applies an AWS CloudFormation DeletionPolicy to this resource // see: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html func (r *AWSCodeDeployDeploymentGroup_TriggerConfig) SetDeletionPolicy(policy DeletionPolicy) { r._deletionPolicy = policy }
go
<reponame>rdkcmf/rdk-control<filename>src/thunder/plugins/ctrlm_thunder_plugin_cec_sink.cpp /* * If not stated otherwise in this file or this component's license file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 "ctrlm_thunder_plugin_cec_sink.h" #include "ctrlm_thunder_log.h" #include <WPEFramework/core/core.h> #include <WPEFramework/websocket/websocket.h> #include <WPEFramework/plugins/plugins.h> #include <glib.h> #include <sstream> using namespace Thunder; using namespace CECSink; using namespace WPEFramework; static int _on_device_changed_thread(void *data) { ctrlm_thunder_plugin_cec_sink_t *plugin = (ctrlm_thunder_plugin_cec_sink_t *)data; if(plugin) { plugin->device_add_timer = 0; plugin->on_device_updated(); } else { THUNDER_LOG_ERROR("%s: Plugin NULL\n", __FUNCTION__); } return(0); } static void _on_device_added(ctrlm_thunder_plugin_cec_sink_t *plugin, JsonObject params) { if(plugin) { if(plugin->device_add_timer > 0) { g_source_remove(plugin->device_add_timer); plugin->device_add_timer = 0; } plugin->device_add_timer = g_timeout_add_seconds(3, &_on_device_changed_thread, (void *)plugin); } else { THUNDER_LOG_ERROR("%s: Plugin NULL\n", __FUNCTION__); } } static void _on_device_removed(ctrlm_thunder_plugin_cec_sink_t *plugin, JsonObject params) { if(plugin) { if(plugin->device_add_timer > 0) { g_source_remove(plugin->device_add_timer); plugin->device_add_timer = 0; } g_idle_add(&_on_device_changed_thread, (void *)plugin); } else { THUNDER_LOG_ERROR("%s: Plugin NULL\n", __FUNCTION__); } } static void _on_device_info_changed(ctrlm_thunder_plugin_cec_sink_t *plugin, JsonObject params) { if(plugin) { if(plugin->device_add_timer > 0) { g_source_remove(plugin->device_add_timer); plugin->device_add_timer = 0; } plugin->device_add_timer = g_timeout_add_seconds(3, &_on_device_changed_thread, (void *)plugin); } else { THUNDER_LOG_ERROR("%s: Plugin NULL\n", __FUNCTION__); } } ctrlm_thunder_plugin_cec_sink_t::ctrlm_thunder_plugin_cec_sink_t() : ctrlm_thunder_plugin_t("HdmiCecSink", "org.rdk.HdmiCecSink", 1) { sem_init(&this->semaphore, 0, 1); this->registered_events = false; this->device_add_timer = 0; } ctrlm_thunder_plugin_cec_sink_t::~ctrlm_thunder_plugin_cec_sink_t() { } void ctrlm_thunder_plugin_cec_sink_t::get_cec_devices(std::vector<Thunder::CEC::cec_device_t> &cec_devices) { // Lock sempahore as we are touching CEC cache sem_wait(&this->semaphore); cec_devices = this->devices; // Unlock semaphore as we are done touching the CEC cache sem_post(&this->semaphore); } bool ctrlm_thunder_plugin_cec_sink_t::_update_cec_devices() { bool ret = false; JsonObject params, response; THUNDER_LOG_INFO("%s: Calling CECSink for device data\n", __FUNCTION__); // Lock sempahore as we are touching CEC cache sem_wait(&this->semaphore); this->devices.clear(); if(this->call_plugin("getDeviceList", (void *)&params, (void *)&response)) { if(response.HasLabel("deviceList")) { JsonArray device_list = response["deviceList"].Array(); for(int i = 0; i < device_list.Length(); i++) { if(device_list[i].Object().HasLabel("logicalAddress") && device_list[i].Object().HasLabel("osdName") && device_list[i].Object().HasLabel("vendorID") && device_list[i].Object().HasLabel("portNumber")) { std::stringstream vendor_parse; Thunder::CEC::cec_device_t device; device.logical_address = device_list[i].Object()["logicalAddress"].Number(); device.osd = device_list[i].Object()["osdName"].String(); device.port = device_list[i].Object()["portNumber"].Number(); vendor_parse << std::hex << device_list[i].Object()["vendorID"].String(); vendor_parse >> device.vendor_id; this->devices.push_back(device); } } } else { std::string response_str; response.ToString(response_str); THUNDER_LOG_ERROR("%s: CECSink getDeviceList response malformed: <%s>\n", __FUNCTION__, response_str.c_str()); } } else { THUNDER_LOG_ERROR("%s: CECSink getDeviceList call failed!\n", __FUNCTION__); } // Unlock semaphore as we are done touching the CEC cache sem_post(&this->semaphore); return(ret); } bool ctrlm_thunder_plugin_cec_sink_t::register_events() { bool ret = this->registered_events; if(ret == false) { auto clientObject = (JSONRPC::LinkType<Core::JSON::IElement>*)this->plugin_client; if(clientObject) { ret = true; uint32_t thunderRet = clientObject->Subscribe<JsonObject>(CALL_TIMEOUT, _T("onDeviceAdded"), &_on_device_added, this); if(thunderRet != Core::ERROR_NONE) { THUNDER_LOG_ERROR("%s: Thunder subscribe failed <onDeviceAdded>\n", __FUNCTION__); ret = false; } thunderRet = clientObject->Subscribe<JsonObject>(CALL_TIMEOUT, _T("onDeviceRemoved"), &_on_device_removed, this); if(thunderRet != Core::ERROR_NONE) { THUNDER_LOG_ERROR("%s: Thunder subscribe failed <onDeviceRemoved>\n", __FUNCTION__); ret = false; } thunderRet = clientObject->Subscribe<JsonObject>(CALL_TIMEOUT, _T("onDeviceInfoUpdated"), &_on_device_info_changed, this); if(thunderRet != Core::ERROR_NONE) { THUNDER_LOG_ERROR("%s: Thunder subscribe failed <onDeviceInfoUpdated>\n", __FUNCTION__); ret = false; } if(ret) { this->registered_events = true; } } } Thunder::Plugin::ctrlm_thunder_plugin_t::register_events(); return(ret); } void ctrlm_thunder_plugin_cec_sink_t::on_initial_activation() { this->_update_cec_devices(); Thunder::Plugin::ctrlm_thunder_plugin_t::on_initial_activation(); } void ctrlm_thunder_plugin_cec_sink_t::on_device_updated() { THUNDER_LOG_INFO("%s: CEC Device changed\n", __FUNCTION__); this->_update_cec_devices(); }
cpp
/* MIT License * * Copyright (c) 2018 <NAME> <<EMAIL>ghi[at]gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ // package packet contains PDUs package packet // Control packet map var ( PROTOCODES map[byte]string = map[byte]string{ 0x01: "PCONNECT", 0x02: "PCONNACK", 0x04: "PQUEUE", 0x05: "PQUEUEACK", 0x06: "PPUBACK", 0x07: "PSUBSCRIBE", 0x08: "PSUBACK", 0x09: "PUNSUBSCRIBE", 0x0A: "PUNSUBACK", 0x0B: "PPUBLISH", 0x0C: "PPING", 0x0D: "PPONG", 0x0E: "PDISCONNECT", // TODO // 0x03: "PRESPONSE", // 0x04: "PREQACK", // 0x05: "PREQUEST", // 0x06 : "PRESACK", } ) // Packet represents a PDU ( protocol data unit ). type Packet struct { Data []byte Code byte Length int }
go
Criminal Justice is returning with another season on Disney+ Hotstar this month. The legal drama sees Pankaj Tripathi reprising his role as lawyer Madhav Mishra taking on a whole new case alongside new cast additions. Playing the role of the defendant this time around is Kirti Kulhari. The actress who has had a great year that included an Emmy nod for Four More Shots Please! (which sees her in a lead role), will appear on the upcoming show as Anu Chandra, a woman on trial for killing her husband. It’s a murder trial with a clear outcome but a wholly unclear motive and it’s up to Mishra to find this motive with no help of his uncooperative client. Describing the show as a “whydunnit and not a whodunnit", Kulhari promises that the courtroom drama is going to be as much of a roller coaster for the audiences as it was for Anu. On a zoom call ahead of Criminal Justice: Behind Closed Doors' release, Kirti Kulhari spilt details about her challenging role, her chemistry with Pankaj Tripathi's character, shooting amidst the pandemic and the judgements people casually pass. Your character Anu Chandra is quite complex and mysterious, what was the most interesting part of playing the role? Kirti: It was very exciting to prepare for the role and at the same time very exhausting because I think I had too much to process. Anu Chandra is one character who has so much going on inside of her. And then of course, so much going on outside of her as well. She has stabbed her husband, you know. So creating her with all the information I had with the script, the research that I did was super fun. I learnt a lot and it is the most exciting part for me, where I create and I'm finding the character, this is the most interesting part. It has been the toughest role so far for me. Your ‘Criminal Justice’ co-star Pankaj Tripathi seems to be a constant feature in films and series (and for good reason) off late. What was it like working with him on and off camera? Kirti: Pankaj ji is a very chilled out person in the sense that he's just too simple, easy and being around him was like -- you don't even know he's around because he becomes a part of the environment. He never stands out that way. He's just very cool to work with and of course, a wonderful actor. We have the most scenes together and it’s so funny because his character would be talking all the time and I would just be quiet all the time. I so enjoyed being that person. I know it was frustrating for his character to be around my character because he's ultimately defending my case and I'm saying nothing. But, as an actor, I just so enjoyed having that chemistry with him in the show. I remember we were chatting towards the end of the show and I was talking about my travel plans and asking him for some guidance and I think that's when we discovered this about each other that we both love travelling. We were also somehow talking about sleeping in the air conditioning and I told him I don't even have an air conditioner at home because I don't like sleeping with it on. He's like really? I'm the same. So we discovered a few things that were very very similar. Where parts of the show shot amidst the lockdown? How was the experience of filming amidst the pandemic? Kirti: There were about 15 days that were shot during the lockdown in August and September. There used to be the whole drill of sanitization and oxygen check and temperature checks. Everyone was in masks and I think I was always getting called out for not wearing a mask because of course, I used to be shooting, always in front of the camera so I was used to not having it [on] when I'm there. I'm one of those few people who is not very used to wearing a mask so I still find it very difficult. It's cool but it was so funny on the set if someone even coughed everyone would just look at that person and just stare. I think that's really funny and COVID-19 has done that. It's almost like a crime to cough." In the trailer, Tripathi’s Madhav Mishra says “Innocent until proven guilty”. Do you think that phrase has found fresh relevance given the current state of the law and the media? Kirti: Well it is a very relevant line. It is one of the most prominent lines of the legal system that depends on 'innocent until proven guilty'. With social media, there are different kinds of trials happening where people are passing judgements, debating on guilty or not guilty. I think the world is doing the law’s job which is quite messed up. While social media gives us a platform and a voice, it just turns into a game that's dirty and ruthless. This is another thing that happens to Anu Chandra in the show and that is what I've understood, how before the final judgement is made in the court of law everyone around you, your friends, family and media have already passed their own judgements about you, who you are and what you did and why you did it. Everyone has their own court in session and everyone is passing judgements and how that takes a toll on you. People need to be little mindful about that. Can you share some of your favourite legal dramas? Kirti: I enjoy legal dramas. Very recently I had the thought that maybe I could have become a lawyer too but one of my favourite movies is A Few Good Men. I also saw The Trial and I think it's done wonderfully. That and of course, Pink for the kind of things it talks about and in fact I'm watching The Judge in which Robert Downey Jr. plays a lawyer. That's interesting too. Talking about her career trajectory and where it’s headed, Kulhari maintained “I'm just going with the flow, taking one day, one project at a time so there's so plan in place. There's just the desire to do good work. Whatever gives me the chance to explore myself as an actor and is fun to do I'm going for it." Criminal Justice: Behind Closed Doors releases on December 24, 2020, on Disney+ Hotstar.
english
Olympian Manu Bhaker will spearhead the junior women’s team, competing in the air pistol and sports pistol events, in the Junior World Championship to be held in Lima, Peru, from September 27 to October 10. Aishwary Pratap Singh Tomar, another young Olympian who competed in Tokyo, has made it to the team in the 50-metre rifle 3-position event. The junior World Championship will feature many events in pistol, rifle and shotgun that are not Olympic events. The team will also include three prominent rapid fire pistol shooters Anish Bhanwala, Adarsh Singh and Vijayveer Sidhu who came close to securing a berth for the Tokyo Olympics. Since the ISSF allows six shooters in an event, subject to the condition that two belong to the youth category, the National Rifle Association of India (NRAI) tried to enter all the deserving candidates.
english
Vishakapatanam: A 26-year-old woman held her two-year-old son in a lap and jumped from the seventh floor of her apartment at Autonagar in Gajuwaka of Vizag city. The woman took the extreme step after an altercation with her husband over the proposed birthday celebrations of their son. The deceased were identified as Jayanthi Behara and her son Ronith Behara. Police said Jayanthi's husband Sudarshan Behara is an accountant with a private firm in Vizag city. Police said Ronith birthday falls on July 11 and Jayanthi's a day later on Monday. The couple had purchased some new clothes and other things to celebrate Ronith's birthday in a grand manner. They had invited relatives, friends, and others for the big occasion. However, there was a fight between the couple over a birthday celebration on Friday morning. In a fit of anger, Jayanthi along with her son jumped off the balcony on Friday night. Jayanthi died on the spot and her son was shifted to the nearby hospital, where he was declared brought dead. Emotions ran high when Sudarshan placed the new clothes, which he had purchased for the birthday celebrations, on their bodies. Gajuwaka police registered a case under Section 174 of CrPC and shifted the bodies to the morgue for the post mortem. Locals said the extreme step of the woman has left her husband in deep grief.
english
// Dependencies const fs = require('fs'); const path = require('path'); const express = require('express'); const app = express(); //For the Port Number const PORT = process.env.PORT || 3001; //Variable for the JSON file const allNotes = require('./db/db.json'); //Use statements for the app app.use(express.urlencoded({ extended: true })); app.use(express.json()); app.use(express.static('public')); //Get Function app.get('/api/notes', (req, res) => { res.json(allNotes.slice(1)); }); app.get('/', (req, res) => { res.sendFile(path.join(__dirname, './public/index.html')); }); app.get('/notes', (req, res) => { res.sendFile(path.join(__dirname, './public/notes.html')); }); app.get('*', (req, res) => { res.sendFile(path.join(__dirname, './public/index.html')); }); //Creating New Note function createNewNote(body, notesArr) { const newNote = body; if (!Array.isArray(notesArr)) notesArr = []; if (notesArr.length === 0) notesArr.push(0); body.id = notesArr[0]; notesArr[0]++; notesArr.push(newNote); fs.writeFileSync( path.join(__dirname, './db/db.json'), JSON.stringify({ newNote: notesArr }, null, 2) ); return newNote; } //Post the note into JSON app.post('/api/notes', (req, res) => { const newNote = createNewNote(req.body, allNotes); res.json(newNote); }); //Delete a Note function deleteNote(id, notesArr) { for (let i = 0; i < notesArr.length; i++) { let note = notesArr[i]; if (note.id == id) { notesArr.splice(i, 1); fs.writeFileSync( path.join(__dirname, './db/db.json'), JSON.stringify(notesArr, null, 2) ); } } } app.delete('/api/notes/:id', (req, res) => { deleteNote(req.params.id, allNotes); res.json(true); }); //to apply the port to http://localhost app.listen(PORT, () => { console.log(`API server now on port ${PORT}!`); });
javascript
package org.im97mori.ble.service.pass.central; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattDescriptor; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import org.im97mori.ble.BLECallback; import org.im97mori.ble.BLEConnection; import org.im97mori.ble.characteristic.u2a3f.AlertStatusAndroid; import org.im97mori.ble.characteristic.u2a40.RingerControlPoint; import org.im97mori.ble.characteristic.u2a40.RingerControlPointAndroid; import org.im97mori.ble.characteristic.u2a41.RingerSettingAndroid; import org.im97mori.ble.descriptor.u2902.ClientCharacteristicConfiguration; import org.im97mori.ble.descriptor.u2902.ClientCharacteristicConfigurationAndroid; import org.im97mori.ble.service.central.AbstractCentralService; import org.im97mori.ble.task.ReadCharacteristicTask; import org.im97mori.ble.task.ReadDescriptorTask; import org.im97mori.ble.task.WriteCharacteristicTask; import org.im97mori.ble.task.WriteDescriptorTask; import java.util.UUID; import static org.im97mori.ble.constants.CharacteristicUUID.ALERT_STATUS_CHARACTERISTIC; import static org.im97mori.ble.constants.CharacteristicUUID.RINGER_CONTROL_POINT_CHARACTERISTIC; import static org.im97mori.ble.constants.CharacteristicUUID.RINGER_SETTING_CHARACTERISTIC; import static org.im97mori.ble.constants.DescriptorUUID.CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR; import static org.im97mori.ble.constants.ServiceUUID.PHONE_ALERT_STATUS_SERVICE; /** * Phone Alert Status Service (Service UUID: 0x180E) for Central */ public class PhoneAlertStatusService extends AbstractCentralService { /** * {@link PhoneAlertStatusServiceCallback} instance */ private final PhoneAlertStatusServiceCallback mPhoneAlertStatusServiceCallback; /** * @param bleConnection {@link BLEConnection} instance * @param phoneAlertStatusServiceCallback {@link PhoneAlertStatusServiceCallback} instance * @param bleCallback {@link BLECallback} instance(optional) */ public PhoneAlertStatusService(@NonNull BLEConnection bleConnection, @NonNull PhoneAlertStatusServiceCallback phoneAlertStatusServiceCallback, @Nullable BLECallback bleCallback) { super(bleConnection, bleCallback); mPhoneAlertStatusServiceCallback = phoneAlertStatusServiceCallback; } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicReadSuccess(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @NonNull Integer serviceInstanceId, @NonNull UUID characteristicUUID, @NonNull Integer characteristicInstanceId, @NonNull byte[] values, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, AlertStatusAndroid.CREATOR.createFromByteArray(values), argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, RingerSettingAndroid.CREATOR.createFromByteArray(values), argument); } } super.onCharacteristicReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, values, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicReadFailed(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, int status, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, status, argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, status, argument); } } super.onCharacteristicReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, status, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicReadTimeout(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, long timeout, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, timeout, argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, timeout, argument); } } super.onCharacteristicReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, timeout, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicWriteSuccess(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @NonNull Integer serviceInstanceId, @NonNull UUID characteristicUUID, @NonNull Integer characteristicInstanceId, @NonNull byte[] values, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (RINGER_CONTROL_POINT_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerControlPointWriteSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, RingerControlPointAndroid.CREATOR.createFromByteArray(values), argument); } } super.onCharacteristicWriteSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, values, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicWriteFailed(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, int status, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (RINGER_CONTROL_POINT_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerControlPointWriteFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, status, argument); } } super.onCharacteristicWriteFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, status, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicWriteTimeout(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, long timeout, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (RINGER_CONTROL_POINT_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerControlPointWriteTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, timeout, argument); } } super.onCharacteristicWriteTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, timeout, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorReadSuccess(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @NonNull Integer serviceInstanceId, @NonNull UUID characteristicUUID, @NonNull Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @NonNull Integer descriptorInstanceId, @NonNull byte[] values, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusClientCharacteristicConfigurationReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, ClientCharacteristicConfigurationAndroid.CREATOR.createFromByteArray(values), argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingClientCharacteristicConfigurationReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, ClientCharacteristicConfigurationAndroid.CREATOR.createFromByteArray(values), argument); } } super.onDescriptorReadSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, values, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorReadFailed(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @Nullable Integer descriptorInstanceId, int status, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusClientCharacteristicConfigurationReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingClientCharacteristicConfigurationReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } } super.onDescriptorReadFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, status, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorReadTimeout(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @Nullable Integer descriptorInstanceId, long timeout, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusClientCharacteristicConfigurationReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingClientCharacteristicConfigurationReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } } super.onDescriptorReadTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, timeout, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorWriteSuccess(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @NonNull Integer serviceInstanceId, @NonNull UUID characteristicUUID, @NonNull Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @NonNull Integer descriptorInstanceId, @NonNull byte[] values, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID) && argument != null && argument.containsKey(KEY_STATUS)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStartSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, argument); } else { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStopSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, argument); } } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStartSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, argument); } else { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStopSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, argument); } } } super.onDescriptorWriteSuccess(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, values, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorWriteFailed(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @Nullable Integer descriptorInstanceId, int status, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID) && argument != null && argument.containsKey(KEY_STATUS)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStartFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } else { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStopFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStartFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } else { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStopFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, status, argument); } } } super.onDescriptorWriteFailed(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, status, argument); } /** * {@inheritDoc} */ @Override public synchronized void onDescriptorWriteTimeout(@NonNull Integer taskId, @NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @Nullable Integer serviceInstanceId, @NonNull UUID characteristicUUID, @Nullable Integer characteristicInstanceId, @NonNull UUID descriptorUUID, @Nullable Integer descriptorInstanceId, long timeout, @Nullable Bundle argument) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID) && CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR.equals(descriptorUUID) && argument != null && argument.containsKey(KEY_STATUS)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStartTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } else { mPhoneAlertStatusServiceCallback.onAlertStatusNotificateStopTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { if (argument.getInt(KEY_STATUS, STATUS_START) == STATUS_START) { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStartTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } else { mPhoneAlertStatusServiceCallback.onRingerSettingNotificateStopTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorInstanceId, timeout, argument); } } } super.onDescriptorWriteTimeout(taskId, bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, descriptorUUID, descriptorInstanceId, timeout, argument); } /** * {@inheritDoc} */ @Override public synchronized void onCharacteristicNotified(@NonNull BluetoothDevice bluetoothDevice, @NonNull UUID serviceUUID, @NonNull Integer serviceInstanceId, @NonNull UUID characteristicUUID, @NonNull Integer characteristicInstanceId, @NonNull byte[] values) { if (mBLEConnection.getBluetoothDevice().equals(bluetoothDevice) && PHONE_ALERT_STATUS_SERVICE.equals(serviceUUID)) { if (ALERT_STATUS_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onAlertStatusNotified(bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, AlertStatusAndroid.CREATOR.createFromByteArray(values)); } else if (RINGER_SETTING_CHARACTERISTIC.equals(characteristicUUID)) { mPhoneAlertStatusServiceCallback.onRingerSettingNotified(bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, RingerSettingAndroid.CREATOR.createFromByteArray(values)); } } super.onCharacteristicNotified(bluetoothDevice, serviceUUID, serviceInstanceId, characteristicUUID, characteristicInstanceId, values); } /** * get Alert Status * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onAlertStatusReadSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, AlertStatusAndroid, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusReadFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusReadTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, long, Bundle) */ @Nullable public synchronized Integer getAlertStatus() { Integer taskId = null; if (isStarted()) { taskId = mBLEConnection.createReadCharacteristicTask(PHONE_ALERT_STATUS_SERVICE, null, ALERT_STATUS_CHARACTERISTIC, null, ReadCharacteristicTask.TIMEOUT_MILLIS, null, this); } return taskId; } /** * get Alert Status's Client Characteristic Configuration * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onAlertStatusClientCharacteristicConfigurationReadSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, ClientCharacteristicConfigurationAndroid, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusClientCharacteristicConfigurationReadFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusClientCharacteristicConfigurationReadTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer getAlertStatusClientCharacteristicConfiguration() { Integer taskId = null; if (isStarted()) { taskId = mBLEConnection.createReadDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, ALERT_STATUS_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, ReadDescriptorTask.TIMEOUT_MILLIS, null, this); } return taskId; } /** * start Alert Status notification * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStartSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStartFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStartTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer startAlertStatusNotification() { Integer taskId = null; if (isStarted()) { Bundle bundle = new Bundle(); bundle.putInt(KEY_STATUS, STATUS_START); taskId = mBLEConnection.createWriteDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, ALERT_STATUS_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, new ClientCharacteristicConfiguration(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE), WriteDescriptorTask.TIMEOUT_MILLIS, bundle, this); } return taskId; } /** * stop Alert Status notification * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStopSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStopFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onAlertStatusNotificateStopTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer stopAlertStatusNotification() { Integer taskId = null; if (isStarted()) { Bundle bundle = new Bundle(); bundle.putInt(KEY_STATUS, STATUS_STOP); taskId = mBLEConnection.createWriteDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, ALERT_STATUS_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, new ClientCharacteristicConfiguration(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE), WriteDescriptorTask.TIMEOUT_MILLIS, bundle, this); } return taskId; } /** * get Ringer Setting * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onRingerSettingReadSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, RingerSettingAndroid, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingReadFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingReadTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, long, Bundle) */ @Nullable public synchronized Integer getRingerSetting() { Integer taskId = null; if (isStarted()) { taskId = mBLEConnection.createReadCharacteristicTask(PHONE_ALERT_STATUS_SERVICE, null, RINGER_SETTING_CHARACTERISTIC, null, ReadCharacteristicTask.TIMEOUT_MILLIS, null, this); } return taskId; } /** * get Ringer Setting's Client Characteristic Configuration * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onRingerSettingClientCharacteristicConfigurationReadSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, ClientCharacteristicConfigurationAndroid, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingClientCharacteristicConfigurationReadFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingClientCharacteristicConfigurationReadTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer getRingerSettingClientCharacteristicConfiguration() { Integer taskId = null; if (isStarted()) { taskId = mBLEConnection.createReadDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, RINGER_SETTING_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, ReadDescriptorTask.TIMEOUT_MILLIS, null, this); } return taskId; } /** * start Ringer Setting notification * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStartSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStartFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStartTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer startRingerSettingNotification() { Integer taskId = null; if (isStarted()) { Bundle bundle = new Bundle(); bundle.putInt(KEY_STATUS, STATUS_START); taskId = mBLEConnection.createWriteDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, RINGER_SETTING_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, new ClientCharacteristicConfiguration(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE), WriteDescriptorTask.TIMEOUT_MILLIS, bundle, this); } return taskId; } /** * stop Ringer Setting notification * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStopSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStopFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerSettingNotificateStopTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, Integer, long, Bundle) */ @Nullable public synchronized Integer stopRingerSettingNotification() { Integer taskId = null; if (isStarted()) { Bundle bundle = new Bundle(); bundle.putInt(KEY_STATUS, STATUS_STOP); taskId = mBLEConnection.createWriteDescriptorTask(PHONE_ALERT_STATUS_SERVICE, null, RINGER_SETTING_CHARACTERISTIC, null, CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR, null, new ClientCharacteristicConfiguration(BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE), WriteDescriptorTask.TIMEOUT_MILLIS, bundle, this); } return taskId; } /** * set Ringer Control point * * @return task id. if {@code null} returned, service is not ready * @see PhoneAlertStatusServiceCallback#onRingerControlPointWriteSuccess(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, RingerControlPointAndroid, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerControlPointWriteFailed(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, int, Bundle) * @see PhoneAlertStatusServiceCallback#onRingerControlPointWriteTimeout(Integer, BluetoothDevice, UUID, Integer, UUID, Integer, long, Bundle) */ @Nullable public synchronized Integer setRingerControlPoint(@NonNull RingerControlPoint ringerControlPoint) { Integer taskId = null; if (isStarted()) { taskId = mBLEConnection.createWriteCharacteristicTask(PHONE_ALERT_STATUS_SERVICE, null, RINGER_CONTROL_POINT_CHARACTERISTIC, null, ringerControlPoint, BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE, WriteCharacteristicTask.TIMEOUT_MILLIS, null, this); } return taskId; } }
java
Design student Sara Lakhani launched Trash or Treasure to turn plastic into ethnic wear using kantha embroidery. Her initiative won her an opportunity to showcase her work at Lakme Fashion Week. At home or on the streets, everywhere you turn, you are more than likely to find plastic in its various forms. The material is such a deep rooted part of human experience that eliminating even single-use plastic feels like a difficult task. Even while single-use plastic is banned in 25 states in India, we continue to produce 34,69,780 tonnes of plastic as per a Central Pollution Control Board (CPCP) report. This figure is likely to be more than double in five years. The same report states that Maharashtra and Tamil Nadu are the highest contributors of plastic waste generation. Out of this 3. 5 million tonnes of plastic, only 50 percent is recycled, suggests a Livemint report. But Gadchiroli-born Sara Lakhani is on a mission to use this waste in a way that lengthens its journey to the landfills and dump yard. Through her clothing line Trash or Treasure, the 22-year-old design student uses waste polythene bags to make threads, which are in turn used to make intricate Kantha embroidery. More than 200 polythene bags were used to bring the collection to life. On October 16 this year, she got the opportunity to showcase her collection at Lakme Fashion. “As the saying goes, one man’s trash is another man’s treasure, I wanted to create something that would look good and be sustainable,” Sara tells The Better India. “Growing up in a small town amid nature, I was always driven towards trees and natural beauty. My family had a pharmacy business and I would see plastic waste piling up everywhere. My father would burn the waste, which was very bad for the environment, but in small towns there are no proper ways of disposing of plastic waste and people do not have a lot of options,” she recalls. So when it came to designing her own line of clothing, she instantly knew where to look. “When I started off with the project, I knew very well that whatever designs I make have to use sustainable materials,” she adds. “In the initial days, I knew very little about the kind of plastics that are produced, what could be used and could not be for clothing. As a design student, I had to keep in mind that the designs need to be appealing to the eye and also comfortable to wear,” she says. Sara started researching various ways of using plastic to turn into thread and yarn, while simultaneously experimenting with different embroidery techniques. “I realised that Kantha embroidery would use the maximum amount of plastic in comparison to other embroideries and was intricate and beautiful to look at, so I chose that form,” she says. Kantha is considered one of the oldest forms of embroidery. It is patchwork made with rags and originated in the Bengal region, later spreading to Tripura and Odisha. The design is formed by making simple straight stitches with a complex geometric pattern on the front and a running stitch at the back of the fabric. Although there are no set designs, the embroidery usually consists of patterns of leaves, birds, lotus, etc. “The biggest challenge was that since the embroidery is intricate, the thread made from plastic was not strong enough to hold the stitch together. Going to and fro, I realised that cutting out wider strips of plastic and then making them into threads was helping in holding the stitch together,” she says. Sara then went on to find embroiderers who would help her make her pieces. “I found one embroiderer in Bandra who decided to help me. Initially he was very sceptic, because the plastic threads were more delicate and needed more time too. I would spend hours in his karkhana (workshop) working on pieces with him. One piece would need at least 15 days of manpower and extreme delicate hand work,” she says. Sara wanted her collection to be as sustainable and upcycled as possible. To do so, she contacted various NGOs that could help her acquire upcycled fabrics and plastic bags. “I found a NGO called 5R cycle that would collect plastic from different landfills, segregate it, and then recycle it. I took their help to procure plastic bags. The thing with the fashion industry is that people would want something that looks good, so I approached them and asked them to give me different colours of plastic. They were extremely helpful,” she says. Sara says the fabric she used in her garments was also upcycled. “I wanted to make my garments as eco-friendly as I could. All the materials used are upcycled. Another NGO called Khaloom in Mumbai helped me with the fabrics. They collect waste clothes from landfills and waste yards, convert them again into yarn, and weave them again into fabrics,” she explains. With this process, Trash or Treasure makes corsets, tops, skirts, dresses and outer jackets. Sara sells her products through her Instagram (@the. pinkrhino). Being at the starting point of her career, Sara says she wants to learn more about how the industry works and how she can make things more sustainable. “Lakme Fashion week was a delight, I was the only one from my campus who received the opportunity. My generation understands how important it is to be more sustainable, and how our activities cause damage to the environment. We know there is a problem and we want to look for newer solutions. The design industry has a big horizon, I know there are more things to play around with and I wish to explore more and make clothing in India sustainable and eco friendly,” she says.
english
package com.cloudin.commons.langs; import org.apache.commons.lang3.StringUtils; import java.math.BigDecimal; /** * BigDecimal扩展功能 * * @author 小天 * @version 1.0.0, 2017/10/25 0025 15:51 */ public class BigDecimals { /** * 100 */ public final static BigDecimal ONE_HUNDRED = new BigDecimal(100); /** * 百分之一 */ public final static BigDecimal ONE_PERCENT = new BigDecimal("0.01"); /** * 十分之一 */ public final static BigDecimal ONE_TENTH = new BigDecimal("0.1"); /** * 千分之一 */ public final static BigDecimal ONE_THOUSANDTH = new BigDecimal("0.001"); public static BigDecimal fromString(String txt, int scale) { if (StringUtils.isBlank(txt)) { return null; } return new BigDecimal(txt).setScale(scale, BigDecimal.ROUND_DOWN); } public static boolean isSame(BigDecimal v1, BigDecimal v2) { if (v1 == null || v2 == null) { return false; } return v1.compareTo(v2) == 0; } /** * 将Double类型转换为BigDecimal * if value == null return 0 * * @param value * @param scale * @param roundingMode * @return */ public static BigDecimal valueOf(Double value, int scale, int roundingMode) { if (value == null) { return BigDecimal.ZERO; } return BigDecimal.valueOf(value).setScale(scale, roundingMode); } /** * 比较v1和v2的值,返回v1是否大于v2。 * 如果v1==null,return false * 否则,如果v2==null,return true * 否则比较v1和v2的值,返回v1是否大于v2 * * @param v1 * @param v2 * @return 返回v1是否大于v2 */ public static boolean greaterThan(BigDecimal v1, BigDecimal v2) { return v1 != null && (v2 == null || v1.compareTo(v2) > 0); } /** * 比较v1和v2的值,返回v1是否小于v2。 * 如果v1==null,return false * 否则,如果v2==null,return false * 否则比较v1和v2的值,返回v1是否小于v2。 * * @param v1 * @param v2 * @return 返回v1是否小于v2。 */ public static boolean lessThan(BigDecimal v1, BigDecimal v2) { if (v1 != null) { if (v2 == null) { return false; } else { return v1.compareTo(v2) < 0; } } else { return false; } } /** * 比较v1和v2的值,返回v1是否大于等于v2。 * 如果v1==null,return false * 否则,如果v2==null,return true * 否则比较v1和v2的值,返回v1是否大于v2 * * @param v1 * @param v2 * @return 返回v1是否大于v2 */ public static boolean greaterOrSameThan(BigDecimal v1, BigDecimal v2) { return v1 != null && (v2 == null || v1.compareTo(v2) >= 0); } public static BigDecimal fromString(String txt, int scale, int roundingMode) { if (StringUtils.isBlank(txt)) { return null; } return new BigDecimal(txt).setScale(scale, roundingMode); } /** * 比较value是否是否介于left(包含)和right(包含)之间 * * @param value * @param left * @param right * @return */ public static boolean between(BigDecimal value, BigDecimal left, BigDecimal right) { if (value == null) { return false; } if (left == null) { return right != null && value.compareTo(right) <= 0; } else { if (right == null) { return value.compareTo(left) >= 0; } else { return value.compareTo(left) >= 0 && value.compareTo(right) <= 0; } } } }
java
Almost no one could have foreseen defending World Cup champion France's stunning 1-0 defeat at the hands (well, actually the feet) of its former colony, Senegal, on the opening day of the tournament last week. A computer, though, got it right. Henry Stott, a mathematician at the University of Warwick, developed the Glover Automated Results Indicator (GARI), a statistical model designed to predict the odds of every individual match in the 2002 World Cup. BBC's Radio Five commissioned Stott and other University of Warwick risk researchers to produce the model. So far, Stott's model has continued to outperform bookies and television pundits' predictions. "On the bookie front, we are doing very well," Stott said. "At present, for every £1 we would have bet we have got £1.2 back. Furthermore, at no point of the competition have we been down. "We are beating the bookmakers, both as measured by a probabilistic likelihood function and by just plain betting outcome." Stott's model rates teams on two dimensions: "strength," which quantifies how teams measure up against each other, and "patchiness," which charts a team's unpredictability. While France initially ranked above Brazil on strength, it placed below Brazil in the probability of winning the Cup because of its higher patchiness. "Accounting for unpredictability is important as some teams are noticeably more volatile in their performance," Stott said. "'Patchiness' is a real phenomena in the tournament run-up data." Stott's model tends to highlight the strengths of the underdogs, rather than making calls for stronger teams. The tendency for bookies to underestimate the threat posed by underdogs could explain why GARI bet on Senegal, when most bookies bet on the reigning champion. "But flaws in bookies' odds shouldn't surprise us, since these odds represent where money is being placed for bets, rather than what the bookies themselves believe," Stott said. "As such, they are an aggregate of human beliefs and consequently they are subject to all those systemic human inference fallacies." The base linear model was built using data from all 900 qualifying games and friendlies that led up to the 2002 tournament. The model uses a method similar to techniques used by bankers to assess financial risks. This includes a "Monte Carlo" simulation of hundreds of thousands of virtual matches to forecast each team's chances of winning the entire tournament. "The use of Monte Carlo simulation to analyze how the odds for individual matches scale up to make predictions about the overall tournament is identical to the way a financial institution would manage a risk portfolio," Stott said. So who will win the coveted Cup? Argentina is the current favorite with 16-percent chances of winning, according to GARI. Another statistical model, created by Peter O'Donoghue, sports studies lecturer at the University of Ulster, predicts that Brazil will win the tournament. O'Donoghue used a computer to simulate the World Cup matches based on FIFA world ranking, distance traveled to compete (to measure home advantage), recovery time between matches and the effects of a team switching between Korea and Japan for games. The computer simulated the tournament 2,000 times with Brazil winning 24.8 percent of the simulated tournaments. "So it is possible, but not probable (that Brazil will win)," O'Donoghue said. Unlike Stott's model, O'Donaghue's random number generator didn't distort the random numbers to allow for how erratic a team may be based on fluctuations in FIFA's world ranking. O'Donoghue will compare the computer's calculations with a group of football enthusiasts' forecasts at the end of the tournament to find out whether computers are better than humans at making predictions. Since the tournament began, Stott's model has reflected changes in results. Already, the probability of a World Cup win for some of the top teams has changed. England joined Argentina and Brazil as one of the three countries most likely to win the competition following its 1-0 victory over Argentina. O'Donoghue's model also accounted for France stumbling early on, since it was placed in a tougher first-round group. The simulator gave France a 60-percent chance to get to the quarterfinals, while it gave Brazil an 85-percent chance of advancing. While teams like France and Portugal have fallen, Argentina has strengthened its position as the potential winner, according to Stott's model. Computers can perform tasks with such depth and complexity that might seem daunting to humans, like impartially simulating thousands of permutations to cascade odds about how the tournament might develop. However, the computer predictions are far from being completely accurate. "We are depressingly far from perfect," Stott said. "Whilst we beat the bookies, we still only score in the 35-38-percent zone. So there is a long, long, long way to go before we can really say that we are good at predicting football matches." A computer can't understand the impact of the Irish team captain being sent home or a key player suffering a groin injury. Yet these factors are quickly understood and integrated into a sports commentator's match analysis. It could be decades before a computer can match that ability. "In some sense, these forecasting models are destructively reductive," Stott said. "In reality, the point of football and its commentary is for us to marvel at the underlying chaos and unpredictability of the game."
english
A couple of nice surprises from the latest iPhone OS update. A couple of nice surprises from the latest iPhone OS update. CMF's exciting range of products is set to hit the market on September 30th with exclusive offers. iQOO Z7 Pro 5G is now available in India and can be purchased from Amazon India. Apple iPhone 12 exceeded its durability limits. Be honest: Did you know you should recycle your old phone chargers? Honor 90 is a beautiful-looking smartphone that comes with a sleek design and curved edges. Prove you've been listening by avoiding the generic route. The Vivo T2 Pro boasts a stunning 3D curved AMOLED display that offers a remarkable 120Hz refresh rate.
english
Mard Hamar Hatta Ba song is a Bhojpuri folk song from the Hamke Bhula Jaibu Ka released on 2020. Music of Mard Hamar Hatta Ba song is composed by Abhay Dubey. Mard Hamar Hatta Ba was sung by Prem Yadav. Download Mard Hamar Hatta Ba song from Hamke Bhula Jaibu Ka on Raaga.com.
english
The HTC U11 Life is an all-rounder with squeezable sides and stock Android, but competition is steep. HTC’s largest phone from the past few years boasts a premium spec but struggles to justify why it’s more expensive than the HTC 10. A fine blend of style and substance, but it still feels like there’s something missing from the HTC U Play. HTC helped pioneer the current interest in dual-camera smartphones, but now it struggles to stand out. Analysis HTC has another flagship in the works – and it may be its last following its new cooperation agreement with Google. HTC is issuing a trading halt ready for a major announcement... and it may be Google buying the firm. Ocean Master, Ocean Harmony and Ocean Lite could all land before the end of 2017. Customization for the U11's squeezable sides and more Edge Sense functions arrive today. Could Google really buy HTC? Analysis Rumors are swirling that Google is in the final stages of nabbing HTC - but why? Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
english
There are 487 certified second-hand cars in Chennai currently available for sale of brands like Maruti, Hyundai, Honda, Tata, Toyota, Mahindra. Used/Old cars price start from Rs 50,000 in Chennai.The most popular used cars are in Chennai Volkswagen Polo (Rs. 2.95 Lakh - 11.50 Lakh), Honda Amaze (Rs. 3 Lakh - 9.73 Lakh), Honda City (Rs. 2 Lakh - 15.97 Lakh), Hyundai i20 (Rs. 1.60 Lakh - 10.90 Lakh), Audi A3 (Rs. 15 Lakh - 32 Lakh).To know more about used cars prices, photos, mileage, reviews, and other details, please select your desired model from the list below, Also check used car valuation on CarDekho. Q 1.How many used cars available in Chennai? 1659 used cars are available in Chennai of popular brands like Maruti, Hyundai, Honda, Tata, Volkswagen & more. Q 2.What will be the starting price of a used car in Chennai? 1659 used cars are available in Chennai & the price starts at Rs 50,000 . Q 3.What are the most popular brands available for used cars in Chennai? CarDekho has a wide inventory of all brands including Maruti, Hyundai, Honda, Tata, Volkswagen & more. Find the best-used car of your choice on CarDekho. Q 4.How many used diesel cars available in Chennai? Q 5.What body types are available for used cars in Chennai? Used cars are available in every segment be it Hatchback, Sedan, SUV, MUV, Minivan, Coupe, Wagon in Chennai. At CarDekho we have 674 Hatchback, 489 Sedan, 415 SUV, 70 MUV, 5 Minivan, 3 Coupe, 2 Wagon Cars available in Chennai.
english
La Plata: Out on the pitch, they finally can feel like themselves. In addition to the sheer joy that football brings them, Mara Gomez and Marcos Rojo have the extra satisfaction of knowing that after a long and difficult journey, they are blazing a trail for transgender players in Argentina. Tall, slim and with her hair tied back in a ponytail, Gomez plays for the team of Villa San Carlos in La Plata, 60 kilometers (40 miles) south of Buenos Aires. At 23, she aims to become the first transgender player in the new women's professional league in her native country. "I suffered a lot from discrimination, exclusion, verbal abuse in the street and in school. Football was like therapy for me," Gomez told AFP. She started playing at 15, encouraged by neighbors. In the women's league in La Plata, Gomez distinguished herself as a leading goal scorer in the past two seasons. That prompted Villa San Carlos, in last place in the women's professional league, to seek to recruit her. "She's quick and is very good at kicking on target," said trainer Juan Cruz Vitale. "Unlike what people and the media were thinking, she isn't that strong. I have a number of girls who are stronger and even though she's fast, I have girls who are faster," he noted. But Vitale added: "She's smart and learns quickly. And she gets goals, which is what we were lacking. " The club is in the process of submitting its application to the Argentine Football Association to sign Gomez up, once the current coronavirus lockdown ends. "There is a law on gender identity that they can't get around. We are convinced she is going to be a star," the coach said. Argentina led Latin America by passing a gender identity law in 2012, which allowed Gomez to officially change her gender on her national identity card when she turned 18. "I am very happy to know that as a society we are doing a little more, we are opening up minds," she said as she contemplated the prospect of becoming a professional player in a country that has produced some of the world's best footballers, including Diego Maradona and Lionel Messi. 'PLAYING WITH THE MEN' Rojo, 20, started playing this year as a center forward with the club Union del Suburbio in Gualeguaychu in the northeast of the country, the first time he has played on a men's team. Two years ago, he changed his name and gender on his national identity card, and the team had no qualms about signing him. The league in the province of Entre Rios will issue his membership as soon as footballing activities restart. In Rojo's living room hangs a picture of him at his 15th birthday party, when he still officially identified as a girl. His family has given him its full support during his transition. "I wanted to make the change in my official papers because I had always wanted to play with the men. Since I was little, I felt like I was one of them," Rojo said. "Football was a big step for me because it was the thing I was always looking for, what I wanted," he said. "The support of a team for this change means a lot. " Rojo said men's football is "much more demanding. " "The boys are all good kickers. For me, it will be a huge achievement if I manage to play in the premier division at some point. " 'RIGHT TO PLAY' Sebastian Rajoy, Union del Suburbio's president, said that "everyone has the right to play sports. " "Clubs on the margins are the ones offering the opportunity. Someone has to take the first step, and in this case it is us," he said. In this early stage of incorporating transgender players, Gomez and Rojo are aware they could be asked to submit to a hormone test before they are fully accepted into the leagues. "The discussion is linked to the dilemma between biology and respect for people's rights," said Ayelen Pujol, a specialist in gender identity in sports. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - AFP)
english
Dupty CM Sukhbir Singh Badal while addressing the crowd in Dussehra Ground in kharar said that he is assured that there is hardly any probability of the Congress forming the next government in Punjab. Our ambition is not to form next government but to save Punjab. Sukhbir said that if the Congress is voted to power, the train of development which was on track and had picked up pace would be derailed. The deputy chief minister said that AAP is supporting terrorism pro-Khalistan elements based in other countries. Rahul Gandhi and AAP chief Arvind Kejriwal should apologise from Punjab youth for defaming them as druggists. Explaining the scheme of making youth employable, Sukhbir said the government will provide six-month free training to the youth in various trades at the skill development centres and those wishing to start their own enterprise will be given Rs 10-lakh interest-free loan, which could be returned over a period of 10 years. According to him his mission is to make Kharar a model city and mission has begun with Mullahpur turning it into new Chandigarh and Ranjit Singh Gill as a developer is a suitable and experienced candidate who will bring sea change in the city by doing all round development of the region. SAD BJP alliance Ranjit Singh Gill said that due our same thinking of developing the region I has got a chance to develop the region after coming into power. SAD BJP has taken Punjab to heights by fulfilling almost every promise .
english
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-2007 <NAME> // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. #ifndef BOOST_IOSTREAMS_DETAIL_BOOL_TRAIT_DEF_HPP_INCLUDED #define BOOST_IOSTREAMS_DETAIL_BOOL_TRAIT_DEF_HPP_INCLUDED #include "Utilogeny/lib/boost/config.hpp" // BOOST_STATIC_CONSTANT. #include "Utilogeny/lib/boost/iostreams/detail/template_params.hpp" #include "Utilogeny/lib/boost/mpl/aux_/lambda_support.hpp" #include "Utilogeny/lib/boost/mpl/bool.hpp" #include "Utilogeny/lib/boost/preprocessor/cat.hpp" #include "Utilogeny/lib/boost/preprocessor/repetition/enum_params.hpp" #include "Utilogeny/lib/boost/type_traits/detail/yes_no_type.hpp" // // Macro name: BOOST_IOSTREAMS_BOOL_TRAIT_DEF // Description: Used to generate the traits classes is_istream, is_ostream, // etc. // #if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x582)) # define BOOST_IOSTREAMS_TRAIT_NAMESPACE(trait) #else # define BOOST_IOSTREAMS_TRAIT_NAMESPACE(trait) BOOST_PP_CAT(trait, _impl_):: #endif #define BOOST_IOSTREAMS_BOOL_TRAIT_DEF(trait, type, arity) \ namespace BOOST_PP_CAT(trait, _impl_) { \ BOOST_IOSTREAMS_TEMPLATE_PARAMS(arity, T) \ type_traits::yes_type helper \ (const volatile type BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T)*); \ type_traits::no_type helper(...); \ template<typename T> \ struct impl { \ BOOST_STATIC_CONSTANT(bool, value = \ (sizeof(BOOST_IOSTREAMS_TRAIT_NAMESPACE(trait) \ helper(static_cast<T*>(0))) == \ sizeof(type_traits::yes_type))); \ }; \ } \ template<typename T> \ struct trait \ : mpl::bool_<BOOST_PP_CAT(trait, _impl_)::impl<T>::value> \ { BOOST_MPL_AUX_LAMBDA_SUPPORT(1, trait, (T)) }; \ /**/ #endif // #ifndef BOOST_IOSTREAMS_DETAIL_BOOL_TRAIT_DEF_HPP_INCLUDED
cpp
from math import exp,sqrt from random import randrange class neurone: def __init__(self,a,b): self.a=a self.b=b def proceed(self,z): t = z[0]*self.a + z[1]*self.b return 1/(1+exp(-t)) n = 100 X_app = [(randrange(-500,501)/1000,randrange(-500,501)/1000) for i in range(n)] Y_app = [1 if ((x[0]-0.3)+(x[1]-0.3))<0.2 else 0 for x in X_app] a=1 Y_pred,Y_score = [None for i in range(1001)], [None for i in range(1001)] for i in range(1001): b=i/1000*4-1 ne = neurone(a,b) Y_pred[i] = [ne.proceed(z) for z in X_app] Y_score[i] = sum([abs(Y_pred[i][j]-Y_app[j]) for j in range(n)]) opt = min(Y_score) print(Y_score)
python
Twenty-two students have been suspended from the Jawahar Navodaya Vidyalaya in Assam’s Dibrugarh after they allegedly gheraoed and abused a pregnant teacher who had complained about one of them to his parents. Dibrugarh Superintendent of Police Shwetank Mishra said the teacher, who is five months pregnant, did not suffer any injury but was traumatised by the incident on Tuesday. She was taken to a hospital. He said she had tried to inform a student’s parents about his poor performance and absence in classes. Soon after, this student gathered a few of his friends to gherao the teacher. The teacher, surrounded by nearly 40 students who were shouting and hurling abuses at her, was rescued by her colleagues, the SP said. The school, a residential one, suspended 22 students who allegedly took the lead in the incident. They were sent back to their homes. The local administration has ordered an investigation. School authorities, meanwhile, have identified two students who mobilised the others. No formal complaint has been lodged against the students.
english
import Parser from 'ua-parser-js' import browser from 'detect-browser' import includes from 'lodash/includes' /** * Export. */ export const IS_ANDROID = process.browser && browser.name == 'android' export const IS_CHROME = process.browser && browser.name == 'chrome' export const IS_EDGE = process.browser && browser.name == 'edge' export const IS_FIREFOX = process.browser && browser.name == 'firefox' export const IS_IE = process.browser && browser.name == 'ie' export const IS_IOS = process.browser && browser.name == 'ios' export const IS_MAC = process.browser && new Parser().getOS().name == 'Mac OS' export const IS_SAFARI = process.browser && browser.name == 'safari' export const IS_UBUNTU = process.browser && new Parser().getOS().name == 'Ubuntu' export const IS_WINDOWS = process.browser && includes(new Parser().getOS().name, 'Windows') export default { IS_ANDROID, IS_CHROME, IS_EDGE, IS_FIREFOX, IS_IE, IS_IOS, IS_MAC, IS_SAFARI, IS_UBUNTU, IS_WINDOWS }
javascript
Do you think an aspiring mountaineer's first peak could be Everest; the highest peak of the world? Well, being an amateur trekker this was beyond my imagination as well but Mountaineer Bharath Thammineni has surpassed all the challenges and marks Everest(8,848m) as his first-ever climbed mountain. Mr. Bharath has always prioritized mental health and believes that his indulgence in mountaineering strengthens it even more, due to the challenges and hardships faced between the bottom of the climb and summit. Be, it acclimatizing in high altitudes with not so delicious food, extreme weather conditions, or uncertain calamities, after all these years, he has learned to feel home away from home. With an experience of more than 8 years, he is the most suitable individual to answer your most googled questions before climbing Everest or any mountain with an elevation of more than 7000m. How should I prepare for the climb? Reminded of his Himalayan blunder, he advises that the first target should never be Mount Everest, because it could turn out to be an awful experience, due to lack of guidance and prior experience. Consequently, all the budding mountaineers must go ahead with baby steps. Initially, you should start with a 30 days basic mountaineering course, followed by an advance course. These courses are simply like a precursor for ascending heights by letting you experience a life of no luxury, limited food, nights in tents, and changing weather conditions. In addition to the courses, continuous cardio exercises are equally significant. Your body requires extra strength and gets tired faster in the mountains as compared to plains. Climbing stairs, walking/running on a treadmill with an elevation, and walking with weighed in backpacks ( suggested salt packets, instead of dumbbells to retain bag from deteriorating) can help a lot in improving your strength of thighs and shoulders. What kind of Gear should be used? What kind of food should I carry? Are there two sides to climb Everest? Climbing mountains that fall in the range of 6500m to 7000m (without oxygen cylinder) is particularly important because it boosts your confidence to further climb 8000m with an oxygen cylinder. However, he emphasizes a lot on mental strength and strongly believes that the mental strength to physical strength ratio should be 65: 35, to stay strong, calm, and competent for any kind or degree of uncertainty. Why the number of casualties is more while climbing down? What are the prerequisites officially set by the Nepal Government? Every year with technological improvement, brands come up with an improved and exceptional set of gears. You require to buy yourself a good pair of trekking boots and crampons for a sturdy grip. Three layers of clothing; thermal, t-shirt, and fleece works perfectly to an elevation of 6500m and for ranges beyond it you are ought to add 4th Layer- A Summit Suit. There are multiple good brands, available both online and offline, however he usually purchases gear from Kathmandu, instead of directly purchasing from the manufacturing country Italy, because of its higher taxes on Indian purchases. While climbing Everest, you will be provided with a local cook at base camp, however as you head towards the advance camp, you must try to consume food items, rich in protein and sugar, such as dry fruits and sweet candies, besides, you must carry ready to cook items like cuppa noodles, oatmeal, etc. You can climb Everest, from the North as well as the South side. Northern Side has a longer route, with drastic wind conditions, despite the comfort of commutation till the base camp. While you climb from the South side, it takes 8 to 10 days to reach the base camp, but you definitely experience a way better journey. For every 5 people,1 person climbs from the north side, the fact itself directs you to opt for South. The most vital reason is exhaustion, climbers from Asian countries struggle more as compared to other countries for generating fund, which constrains them with a compulsion of reaching the peak, fading out the fact that, it is not a one-way journey of attaining the summit, instead of a climb to the peak and reaching back to the base camp. You must remember what Greg Child quoted in his book Thin Air- 'The mountains are beautiful but they are not worth dying for'! You are mandated to meet either of the two conditions: basic mountaineering course or a climb to the mountain with a minimum of 6500m of elevation, however ticking both the conditions would anyway help you drill better, both mentally and physically. If you are a mountaineer with a keen desire to climb Everest or other Eight thousanders, you must have come across these questions, but now that you are no more off guard of their answers, it's time that you pull up your socks and start the rigorous training. However, there are heavy chances that every other day you would push yourself harder to make your body physically stronger and mental strength would somehow lag behind, that is why to keep you reminded of the fact you must know how Mr. Bharat handled one of the most challenging situations during his expedition to Everest in the year 2015, yes the very same year Nepal was struck by a devastating earthquake. Bharath had to climb down to the base camp from advance camp with his team after they felt the tremor. It was the climb he started preparing for in the year 2012 and in a moment his hard work, dedication, savings, everything went into vain but he remained calm and mentally strong, with an acceptance of the calamity and failure. You have to stay mentally strong and prepared that your trek can stop anywhere due to avalanche, extreme weather conditions, or natural calamities but you should never lose hope and always come back to accomplish your goal. In the year 2017, he successfully climbed Everest, followed by climbing Manaslu in 2018 and Lhotse with his team in 2019. He has already climbed 5 out of the 7 summits of the world and post COVID he has his eyes set on Kanchenjunga (8,586m). Dimple tells some stories via pen, and others via photographs. She is always ready to roll with her backpack to the Himalayas. Her leisure time belongs to her Ukulele and Canvas. Storytelling is just her thing! she can weave stories out of your imagination and layer down the depth of your favourite characters.
english
<filename>data/html_job_postings/28d330f60689bdcb_fccid.html<gh_stars>1-10 <html><head><title>Data Scientist - Emeryville, CA</title></head> <body><h2>Data Scientist - Emeryville, CA</h2> Join us as we build a next-generation analytics platform to serve our world-class agents. As a Data Scientist, you’ll help build machine learning , deep learning and reinforcement learning models and platforms that lay the foundation for optimizing agent and broker productivity and bring Realogy’s renowned real estate brands into the next era of data-driven excellence.<br/> <br/> What we’re looking for:<br/> You’re an experienced, talented, and motivated data scientist who loves data, who’s ready to work with a team of individuals who share your passion. You enjoy challenging projects involving large data pipelines, machine learning and deep learning model development and solve their real world use cases. With your strong analytical skills, unwavering commitment to quality, excellent technical skills, and collaborative work ethic, you’ll do great things here at ZapLabs.<br/> <br/> What you’ll do:<br/> As a Data Scientist, you’ll be responsible for mastering our data and designing the systems which enable us to use it most effectively. You’ll be designing, developing and implementing machine learning, deep learning, business intelligence, and predictive analytics models that meet the needs of millions of agents, brokers, home buyers, and sellers. Your role will involve collaborating with a team of talented engineers, product managers and designers to investigate new data sources, perform data modeling, and deploy new features.<br/> <br/> Skills, accomplishments, & interests you should have:<br/> <ul><li> PhD in Computer Science, Engineering, Mathematics, or related analytical discipline or equivalent combination of training and experience</li><li> 2-4 years of Data Science/Analytics experience.</li><li> Proven experience with machine learning data modeling projects and model development for solving business problems.</li><li> Experience with deep learning libraries (Tensorflow, Caffe, PyTorch, MxNet etc.) and application development</li><li> Understanding and demonstrated experience of deep learning method, training, parameter tuning and deployment </li><li>Conceptual knowledge and ability to explain common ML algorithms </li><li>Familiarity with hypothesis testing</li><li> Solid knowledge of Python or R for statistical analysis, modeling and visualization (pandas, numpy, scipy, scikit-learn, etc)</li><li> Some experience with ETL, data cleaning, transformation experience</li><li> Some experience in SQL.</li><li> Ability to collaborate with team members</li><li> Ability to clearly explain big picture overview and in-depth technical details to both non-technical (product managers, senior leadership, etc.) and technical people</li><li> Excellent written and verbal communication skills in English </li></ul><br/> Nice to haves:<ul><li> Experience with Java, Scala etc. </li><li>Familiarity or experience with Cloud-based or Big Data technologies (AWS, Spark, EMR, EC2, S3, AWS Athena, Redshift, , etc.) is a plus.</li></ul> <br/> #LI-KD1</body> </html>
html
<reponame>paulkaczor/people-finder {"name":"Octagon","description":"Octagon is the world's leading sports and entertainment management and marketing company.","website":"octagon.com","mattermark_score":"117","employees":"1206","employees_month_ago":"1207","employees_6_months_ago":null,"website_uniques":null,"mobile_downloads":null,"stage":"no known funding","total_funding":null,"last_funding_amount":null,"last_funding_date":null,"location":"connecticut","city":null,"state":"CT","country":"usa","twitter_handle":"Octagon","facebook_handle":null,"linkedin_id":"165282","funding":[],"stories":[{"title":"Women in Business Q\u0026A: <NAME>, Chief Marketing Officer and Executive Vice President, Octagon Worldwide","url":"http://www.huffingtonpost.com/laura-dunn/women-in-business-qa-lisa_b_7541960.html?utm_hp_ref=business\u0026ir=Business","date":"Jun 09 2015","source":"Huffington Post / Business"}],"growth_scores":[{"recorded_at":"2017-01-15 00:00:00 +0000","score":"117"},{"recorded_at":"2017-01-08 00:00:00 +0000","score":"122"}],"mindshare_scores":[{"recorded_at":"2017-01-15 00:00:00 +0000","score":"117"},{"recorded_at":"2017-01-08 00:00:00 +0000","score":"122"}],"acquired_by":[],"acquired_companies":[],"est_founding_date":"1983-01-01","business_models":["B2C"],"industries":["marketing"],"mattermark_weekly_momentum":[{"recorded_at":"2017-01-15 00:00:00 +0000","score":"-206"},{"recorded_at":"2017-01-08 00:00:00 +0000","score":"-212"}],"employee_count":[{"recorded_at":"2016-12-24 09:29:23 +0000","score":"1206"},{"recorded_at":"2016-11-08 23:43:28 +0000","score":"1207"}],"alexa_rank":[{"recorded_at":"2017-01-23 09:56:18 +0000","score":"533113"},{"recorded_at":"2017-01-09 16:16:28 +0000","score":"563097"}],"facebook_talking_count":[],"facebook_like_count":[],"twitter_follower_count":[{"recorded_at":"2017-01-14 01:01:13 +0000","score":"11954"},{"recorded_at":"2017-01-02 12:35:04 +0000","score":"11887"}],"twitter_mentions":[],"linkedin_follower_count":[{"recorded_at":"2016-06-29 23:50:42 +0000","score":"37262"}],"itunes_usa_weekly_download":[],"inbound_links":[{"recorded_at":"2016-02-18 14:19:03 +0000","score":"3784"},{"recorded_at":"2016-01-21 20:19:57 +0000","score":"1796"}],"est_monthly_uniques":[{"recorded_at":"2017-01-23 09:56:18 +0000","score":"8685"},{"recorded_at":"2017-01-09 16:16:28 +0000","score":"7689"}],"added_date":"2015-09-25 10:40:52","google_play_apps":[],"itunes_apps":[],"ipos":[]}
json
#!/usr/bin/env python3 # SPDX-License-Identifier: MIT import sys, pathlib import time sys.path.append(str(pathlib.Path(__file__).resolve().parents[1])) from m1n1.setup import * from m1n1.loadobjs import * import argparse import numpy as np argparser = argparse.ArgumentParser() argparser.add_argument("-d", "--domain", type=str, help='Look for MMIO range associated with a particular' ' power domain') argparser.add_argument("-p", "--print", action='store_true', help='Print power domain list') args = argparser.parse_args() if args.print: for dev in u.adt["/arm-io/pmgr"].devices: print(dev.name) sys.exit(0) granule = 0x4000 lp = LinkedProgram(u) lp.load_inline_c(f''' #define GRANULE {granule} ''' + ''' #include "exception.h" #include "utils.h" #include "soc.h" bool is_t6000(void) { return chip_id == T6000; } void sweep(u64 from, u64 to, u64 target) { u32 *mask = (u32 *) target; exc_guard = GUARD_MARK | GUARD_SILENT; int bitp = 0; for (u64 p = from; p < to; p += GRANULE) { sysop("dsb sy"); sysop("isb"); bool hit = read32(p) != 0xabad1dea; if (hit) *mask |= (1 << bitp); else *mask &= ~(1 << bitp); if (++bitp >= 32) { bitp = 0; mask++; } } sysop("dsb sy"); sysop("isb"); } ''') def do_sweep(maskrange): masklen = (maskrange.stop - maskrange.start) // granule // 32 * 4 + 4 mask_base = u.heap.malloc(masklen) lp.sweep(maskrange.start, maskrange.stop, mask_base) mask = iface.readmem(mask_base, masklen) u.heap.free(mask_base) return np.frombuffer(mask, dtype=np.uint8) def describe_mask(mask, maskrange): ''' Describe mask in terms of hot from-to ranges ''' ranges = [] prev_hit = False mask = np.concatenate((mask, [0])) for i in range(len(mask)*8): hit = mask[i//8] & (1<<(i%8)) != 0 if hit and not prev_hit: start = maskrange.start + i*granule if not hit and prev_hit: end = maskrange.start + i*granule ranges.append((start, end)) prev_hit = hit return ranges if lp.is_t6000(): maskrange = range(0x2_9000_0000, 0x4_0000_0000) else: maskrange = range(0x2_2000_0000, 0x3_0000_0000) pd_did_enable = set() pmgr = u.adt["/arm-io/pmgr"] ps_dev_by_id = {dev.id: dev for dev in pmgr.devices} ps_deps = dict() ps_addrs = dict() for dev in pmgr.devices: ps = pmgr.ps_regs[dev.psreg] addr = pmgr.get_reg(ps.reg)[0] + ps.offset + dev.psidx * 8 ps_addrs[dev.name] = addr ps_deps[dev.name] = [ ps_dev_by_id[idx].name for idx in dev.parents if idx in ps_dev_by_id ] def ps_pstate(name): return p.read32(ps_addrs[name]) & 0x0f def ps_enabled(name): return p.read32(ps_addrs[name]) & 0x0f == 0x0f def ps_set_pstate(name, desired): p.mask32(ps_addrs[name], 0xf, desired) time.sleep(0.001) actual = p.read32(ps_addrs[name]) if actual & 0xf0 != desired << 4: print("WARNING: %s stuck at pstate 0x%x (desired 0x%x)" \ % (name, actual >> 4, desired)) def ps_enable(name): print("Enabling %s..." % name) ps_set_pstate(name, 0xf) def ps_disable(name): p.mask32(ps_addrs[name], 0xf, 0x0) if args.domain: ps_disable(args.domain) to_enable = set([args.domain]) for dev in reversed(pmgr.devices): if dev.name not in to_enable \ or ps_enabled(dev.name): continue for dep in ps_deps[dev.name]: to_enable.add(dep) save = dict() for dev in pmgr.devices: if dev.name in to_enable: save[dev.name] = ps_pstate(dev.name) if dev.name != args.domain: ps_enable(dev.name) premask = do_sweep(maskrange) ps_enable(args.domain) postmask = do_sweep(maskrange) print("Reverting...") for dev in reversed(pmgr.devices): if dev.name in to_enable and dev.name: ps_set_pstate(dev.name, save[dev.name]) hitmask = premask ^ postmask if np.count_nonzero(hitmask & premask): print("Que? Some ranges disappeared?") else: # no --domain flag, do a plain sweep hitmask = do_sweep(maskrange) al = u.adt.build_addr_lookup() for start, stop in describe_mask(hitmask, maskrange): # bit ugly but it makes addrlookup do all the heavy lifting for us al.add(range(start, stop), "hit") print("Hits:") for zone, value in al.items(): if ((zone.start - 1) // granule + 1) * granule >= zone.stop: continue if not any([v[0] == "hit" for v in value]): continue labels = set([v[0] for v in value if v[0] != "hit"]) print(f"\t{zone.start:9x} - {zone.stop:9x} | {' '.join(labels)}")
python
Two principals of Sri Chaitanya Junior College in Telangana’s Narsingi and two other officials were arrested by the Cyberabad police on Friday on charges of abetting the suicide of 16-year-old N Sathwik. The intermediate student died by suicide in a classroom late Tuesday night and his family members had alleged harassment and pressure from the teaching faculty for their son’s death. According to R Jagadish Reddy, the deputy commissioner of police (Rajendranagar), principal (administration) Akalanakam Narasimha Chary, 57, principal Tiyyaguru Siva Ramakrishna Reddy, 64, warden Kandaraboina Naresh,30, and vice-principal Vontela Shoban Babu, 43, were arrested and remanded in judicial custody by a local court at Rajendranagar. After a preliminary investigation, the four were charged with harassment and insulting the victim in the name of studies, thereby forcing him to take the extreme step, the police said. During the investigation, a suicide note written by the victim was recovered by the police. Sathwik had allegedly named the four arrested accused in his suicide note. The police also collected statements from the witnesses. Based on the evidence gathered, the police arrested the four college officials and sent them to judicial remand to enable further investigation, the DCP said.
english
// Platzieren Sie Ihre Einstellungen in dieser Datei, um Standard- und Benutzereinstellungen zu überschreiben. { // Run 'clang-format' on save. "clang-format.formatOnSave": false, // clang-format executable path "clang-format.executable": "clang-format", // clang-format style.(-style=value, value can be file, LLVM, Google, Chromium, Mozilla, WebKit or json configure) "clang-format.style": "file", // clang-format fallback style.(-fallback-style=value, value can be none, LLVM, Google, Chromium, Mozilla, WebKit) "clang-format.fallbackStyle": "LLVM", // enable formatting for C++ (requires reloading Visual Studio Code) "clang-format.language.cpp.enable": true, // The directory where CMake build files will go "cmake.buildDirectory": "${workspaceRoot}/build", "files.associations": { "gsl": "cpp", "multi_span": "cpp", "functional": "cpp", "future": "cpp", "*.ipp": "cpp", "string_span": "cpp", "array": "cpp", "thread": "cpp" } }
json
<reponame>ktat/honkit const Immutable = require("immutable"); const { generateBook, incrementalBuild } = require("./generateBook"); const generators = Immutable.List([require("./json"), require("./website"), require("./ebook")]); /** Return a specific generator by its name @param {String} @return {Generator} */ function getGenerator(name) { return generators.find((generator) => { return generator.name == name; }); } module.exports = { generate: generateBook, incrementalBuild, getGenerator: getGenerator, };
javascript
Hi Guys, I need a laptop with restricted budget of Rs.28500 , So could u suggest a laptop which has two requirement compulsory 15.6" display and dedicated graphics. As i search out i find that the ASUS laptop is available at a cost of Rs.28300.So it could better to buy ASUS laptop.
english
{"word":"pitch-faced","definition":"Having the arris defined by a line beyond which the rock is cut away, so as to give nearly true edges; -- said of squared stones that are otherwise quarry-faced."}
json
<filename>resources/ayat/017/017013.json { "id": 2042, "surahNumber": "017", "ayatNumber": "013", "arabic": "وَكُلَّ إِنْسَانٍ أَلْزَمْنَاهُ طَائِرَهُ فِي عُنُقِهِ ۖ وَنُخْرِجُ لَهُ يَوْمَ الْقِيَامَةِ كِتَابًا يَلْقَاهُ مَنْشُورًا", "english": "And We have fastened every man's deeds to his neck, and on the Day of Resurrection, We shall bring out for him a book which he will find wide open.", "bengali": "আমি প্রত্যেক মানুষের কর্মকে তার গ্রীবলগ্ন করে রেখেছি। কেয়ামতের দিন বের করে দেখাব তাকে একটি কিতাব, যা সে খোলা অবস্থায় পাবে।" }
json
// Copyright 1996-2018 Cyberbotics 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 "WbSpeaker.hpp" #include "WbNodeUtilities.hpp" #include "WbProtoList.hpp" #include "WbProtoModel.hpp" #include "WbRobot.hpp" #include "WbSimulationState.hpp" #include "WbSoundClip.hpp" #include "WbSoundEngine.hpp" #include "WbSoundSource.hpp" #include "../../lib/Controller/api/messages.h" #include <QtCore/QDataStream> #include <QtCore/QDir> #include <cassert> #define TEXT_TO_SPEECH_KEY "WB_TEXT_TO_SPEECH" void WbSpeaker::init() { mControllerDir = ""; mSoundSourcesMap.clear(); mPlayingSoundSourcesMap.clear(); mEngine = QString("pico"); mLanguage = QString("en-US"); } WbSpeaker::WbSpeaker(WbTokenizer *tokenizer) : WbSolidDevice("Speaker", tokenizer) { init(); } WbSpeaker::WbSpeaker(const WbSpeaker &other) : WbSolidDevice(other) { init(); } WbSpeaker::WbSpeaker(const WbNode &other) : WbSolidDevice(other) { init(); } WbSpeaker::~WbSpeaker() { foreach (WbSoundSource *source, mSoundSourcesMap) { if (source) WbSoundEngine::deleteSource(source); } mSoundSourcesMap.clear(); mPlayingSoundSourcesMap.clear(); } void WbSpeaker::postFinalize() { WbSolidDevice::postFinalize(); WbRobot *robot = const_cast<WbRobot *>(static_cast<const WbRobot *>(WbNodeUtilities::findTopNode(this))); if (robot) mControllerDir = robot->controllerDir(); } void WbSpeaker::handleMessage(QDataStream &stream) { unsigned char command; stream >> (unsigned char &)command; switch (command) { case C_SPEAKER_PLAY_SOUND: { int numberOfSound; stream >> (int &)numberOfSound; for (int i = 0; i < numberOfSound; ++i) { short size; short side; double volume; double pitch; double balance; unsigned char loop; stream >> (short &)size; char soundFile[size]; stream.readRawData(soundFile, size); stream >> (double &)volume; stream >> (double &)pitch; stream >> (double &)balance; stream >> (short &)side; stream >> (unsigned char &)loop; playSound(soundFile, volume, pitch, balance, (bool)loop, (int)side); } return; } case C_SPEAKER_STOP: { short numberOfSound; stream >> (short &)numberOfSound; if (numberOfSound == 0) stopAll(); else { for (int i = 0; i < numberOfSound; ++i) { short size; stream >> (short &)size; char sound[size]; stream.readRawData(sound, size); stop(sound); } } return; } case C_SPEAKER_SET_ENGINE: { short size; stream >> (short &)size; char engine[size]; stream.readRawData(engine, size); mEngine = QString(engine); return; } case C_SPEAKER_SET_LANGUAGE: { short size; stream >> (short &)size; char language[size]; stream.readRawData(language, size); mLanguage = QString(language); return; } case C_SPEAKER_SPEAK: { short size; double volume; stream >> (short &)size; char text[size]; stream.readRawData(text, size); stream >> (double &)volume; playText(text, volume); return; } default: assert(0); } } void WbSpeaker::writeAnswer(QDataStream &stream) { foreach (const WbSoundSource *source, mPlayingSoundSourcesMap) { if (!source->isPlaying()) { if (mPlayingSoundSourcesMap.key(source) == TEXT_TO_SPEECH_KEY) { stream << (short unsigned int)tag(); stream << (unsigned char)C_SPEAKER_SPEAK_OVER; } else { stream << (short unsigned int)tag(); stream << (unsigned char)C_SPEAKER_SOUND_OVER; const QByteArray name = mPlayingSoundSourcesMap.key(source).toUtf8(); stream.writeRawData(name.constData(), name.size() + 1); } mPlayingSoundSourcesMap.remove(mPlayingSoundSourcesMap.key(source)); } } } void WbSpeaker::postPhysicsStep() { WbSolidDevice::postPhysicsStep(); foreach (WbSoundSource *source, mSoundSourcesMap) { if (source) updateSoundSource(source); } } void WbSpeaker::playText(const char *text, double volume) { if (!mSoundSourcesMap.contains(TEXT_TO_SPEECH_KEY)) { // text-to-speech was never used WbSoundSource *source = WbSoundEngine::createSource(); updateSoundSource(source); mSoundSourcesMap[TEXT_TO_SPEECH_KEY] = source; } WbSoundSource *source = mSoundSourcesMap.value(TEXT_TO_SPEECH_KEY, NULL); if (source) { source->stop(); // cd to the controller directory (because some tags in the text // may refeer to file relatively to the controller) QDir initialDir = QDir::current(); if (!QDir::setCurrent(mControllerDir)) this->warn(tr("Cannot change directory to: '%1'").arg(mControllerDir)); WbSoundClip *soundClip = WbSoundEngine::soundFromText(text, mEngine, mLanguage); QDir::setCurrent(initialDir.path()); if (soundClip) { source->setSoundClip(soundClip); source->play(); source->setGain(volume); mPlayingSoundSourcesMap[TEXT_TO_SPEECH_KEY] = source; } } } void WbSpeaker::playSound(const char *file, double volume, double pitch, double balance, bool loop, int side) { QString filename = QString(file); QString key = filename; if (side == -1) key += "_left"; else if (side == 1) key += "_right"; if (!mSoundSourcesMap.contains(key)) { // this sound was never played QString path = ""; if (QFile::exists(mControllerDir + filename)) // check if path is relative to the controller path = mControllerDir; else { // check if path is relative to the PROTO (or any ancestor PROTO) WbRobot *robot = const_cast<WbRobot *>(static_cast<const WbRobot *>(WbNodeUtilities::findTopNode(this))); if (robot && robot->isProtoInstance()) { WbProtoModel *protoModel = robot->proto(); do { if (!protoModel->path().isEmpty()) { path = protoModel->path(); if (QFile::exists(path + filename)) break; } protoModel = WbProtoList::current()->findModel(protoModel->ancestorProtoName(), ""); } while (protoModel); } } if (!QFile::exists(path + filename)) { // sound file not found relatively to the PROTOs or controller if (!QFile::exists(filename)) { // check if path is absolute this->warn(tr("Sound file '%1' not found. The sound file should be defined relatively to the controller, the PROTO or " "absolutely.\n") .arg(filename)); return; } path = ""; } WbSoundSource *source = WbSoundEngine::createSource(); updateSoundSource(source); // cd to the path directory if required QDir initialDir = QDir::current(); if (!path.isEmpty()) { if (!QDir::setCurrent(path)) this->warn(tr("Cannot change directory to: '%1'").arg(path)); } WbSoundClip *soundClip = WbSoundEngine::sound(filename, balance, side); if (!path.isEmpty()) QDir::setCurrent(initialDir.path()); if (!soundClip) { this->warn(tr("Impossible to play '%1'. Make sure the file format is supported (8 or 16 bits, mono or stereo wave).\n") .arg(filename)); return; } source->setSoundClip(soundClip); source->play(); mSoundSourcesMap[key] = source; } WbSoundSource *source = mSoundSourcesMap.value(key, NULL); if (source) { mPlayingSoundSourcesMap[key] = source; if (!source->isPlaying()) // this sound was already played but is over source->play(); source->setLooping(loop); source->setGain(volume); source->setPitch(pitch); if (WbSimulationState::instance()->isPaused() || WbSimulationState::instance()->isStep()) source->pause(); } } void WbSpeaker::stop(const char *sound) { QString key = QString(sound); WbSoundSource *source = mSoundSourcesMap.value(key, NULL); if (!source) { key = QString(sound) + "_left"; source = mSoundSourcesMap.value(key, NULL); } if (!source) { key = QString(sound) + "_right"; source = mSoundSourcesMap.value(key, NULL); } if (source) { source->stop(); WbSoundEngine::deleteSource(source); mSoundSourcesMap.remove(key); } mPlayingSoundSourcesMap.remove(key); } void WbSpeaker::stopAll() { foreach (WbSoundSource *source, mSoundSourcesMap) { if (source) { source->stop(); WbSoundEngine::deleteSource(source); } } mSoundSourcesMap.clear(); mPlayingSoundSourcesMap.clear(); } void WbSpeaker::updateSoundSource(WbSoundSource *source) { source->setPosition(position()); source->setVelocity(linearVelocity()); source->setDirection(rotationMatrix() * WbVector3(0, 1, 0)); }
cpp
Music that soothes the soul and radiates hope is the music that truly elevates one's mood. Anumita Nadesan's latest track featuring Moj creator Bhavi has been receiving a massive response as the song redefines the feeling of hope and the power of confidence for the world. Exclusively released on Moj, India's number one short video platform, a week before its official release, #MyKhwaab accumulated 6 billion plays on the app. It is now in Spotify's Viral 50 India charts. Music that soothes the soul and radiates hope is the music that truly elevates one's mood. featuring Moj creator has been receiving a massive response as the song redefines the feeling of hope and the power of confidence for the world. Exclusively released on, India's number one short video platform, a week before its official release, # accumulated 6 billion plays on the app. It is now in Spotify's Viral 50 India charts. The latest indie hit has recorded a fantastic 4. 3 lakh streams on Spotify in a short span of time to become the most organically growing song on the platform. Khwaab has also featured as #1 on Radar India, #2 on Hindies, #3 on Desi Indie, and #4 on Viral Songs. The upbeat track Khwaab has become the face of Amazon Music and a chartbuster on Apple music, Radio City - Indie Artist of the Month, and YouTube music, garnering a staggering on YouTube. Boosting the charts ahead, the soulful track is trending high on Gaana. com. Following the virality of the song, renowned fashion designer Manish Malhotra has chosen the song Khwaab to feature his new collection - Instagram. Reacting to the love showered by the listeners, talented artist Anumita Nadesan said, "Khwaab is a very personal and intimate thought of a young girl braving to chase her hopes and dreams. It is humbling to see such warm reactions to this song. It feels as if the world is embracing this journey with me, and I'm thoroughly delighted to see how Bhavi has expressed my thoughts beautifully on the screen. It is so refreshing. I am so glad to partner with Moj for my debut and receive an overwhelming response on the app. As for the reactions to Khwaab, I would say, Keep 'em coming. " Expressing gratitude, Moj creator Bhavi Chandiramani said, "Khwaab is one of the most soothing and relatable songs I have ever heard. Anumita's wonderful creation showcases me in my element - A girl who wears her heart on her sleeves, who is not afraid to take on challenges and is ready to conquer her dreams. I am grateful to Moj for providing me with opportunities that bolster my career in the content creation space. I consider myself lucky that I have chosen to portray the underlining message of such a beautiful track. " The creators' community is ever-growing and evolving, and Moj has become a primary source of support over time. Through creative collaborations and associations, Moj scouts the emerging talented individuals and provides them with a platform. #MyKhwaab is a prime example of providing a platform for blooming creators and showcasing their brimming talents. In association with Big Bang Music, Moj launched Khwaab, which has successfully taken on the video and audio streaming platforms with its youthful and fresh energy. Moj has previously launched and exclusively on the app, crossing enormous views quickly. With the highest monthly active user base of 160 million amongst Indian short video apps, Moj is India's #1 short video app. Launched in July 2020, Moj is a platform for creators to showcase their talents and entertain Indian audiences across different genres. Moj is home to more than 50 million creators that connect with India through content created in 16 different languages. Moj has an easy UI, one of the biggest music libraries, and unique camera filters. This story is provided by PRNewswire. will not be responsible in any way for the content of this article. (ANI/PR Newswire) ( With inputs from ANI )
english
# JwtAPI ASP.NET core api using JWT authentication This project demonstrates the JWT authentication in dotnet core web api. The explaination in the blog post https://aceinthedeck.com/json-web-token-jwt-authentication-using-asp-net-core-api/
markdown
In the upcoming episode 'Bigg Boss 16' film 'Salaam Venky', Kajol Devgan and director Revathi grace the 'Weekned Ka Vaar'. Salman recreates a scene with Kajol from their hit film 'Pyar Kiya Toh Darna Kya' as they play a game of staring. It will be fun to see who bests whom. A game of 'Whisper Challenge' with the star guests will leave the audience in splits. Director Revathi and Salman take a trip down the memory lane as they recreate their hit song 'Sathiya Tune Kya Kiya'. In yesterday's episode, Salman revealed that the real reason why Fahmaan Khan entered the house was to promote his new show 'Pyar Ke Saat Vachan Dharam Patnii'. He comes out of the house and with his co-star Kritika Singh Yadav arrives on the 'vaar' stage and re-enacts a fun scene with the leads of the show. Fahmaan presents a situation where Salmaan is the prospective groom who visits his bride-to-be (Kritika) with his crooked uncle enacted by Fahmaan.
english
<filename>client/data-api/api-label.ts import {Literal} from "../data-model/primitives"; export interface ApiLabel { /** * As optimization we can fetch multiple labels on the start to save * later requests. */ fetchInitialLabels(language: string): Promise<FetchLabelResponse>; fetchLabel(language: string, iri: string): Promise<FetchLabelResponse>; fetchCodeListLabel( language: string, iri: string ): Promise<FetchLabelResponse>; fetchDatasetLabel(language: string, iri: string): Promise<FetchLabelResponse>; } export interface FetchLabelResponse { labels: Label[]; } export interface Label { iri: string; value: Literal; }
typescript
Congratulations to Afsana Khan and Saajz. The couple is all set to tie the nuptial knot today, February 19. And, pictures and videos from their pre-wedding festivities have flooded the Internet. The latest set of photos is from Afsana Khan's Mehendi album. Here, the bride-to-be is smiling ear to ear as she poses for the lens. The opening side is an adorable frame featuring the lovebirds. Next, we see Afsana Khan joined by her friends. We can spot Himanshi Khurana, Rakhi Sawant, Akshara Singh and Satinder Satti. Afsana Khan didn't think much about the caption and just wrote, “Afsaajz ki Mehendi”. Afsana Khan's friends from the industry have showered her with their warmest greetings. Afsana's Bigg Boss 15 housemate, actress Devoleena Bhattacharjee replied with a set of red heart emojis. Shefali Bagga, who was also part of the Mehendi function, wrote, “ Many congratulations”. Umar Riaz followed suit. Well, Afsana Khan has also shared some oh-so-cute pictures with Saajz. Take a look: Before this, Afsana Khan treated us to Haldi ceremony pictures. And, we aren't complaining at all. Afsana Khan looks like a vision in this mustard lehenga. And, Saajz complements her in a finely tailored kurta set. They are just adorable. We have some more pictures from the Haldi festivities waiting for your attention. Afsana Khan and Saajz's latest song Behri Duniya released on February 15. The music video features Parmish Verma and Nikki Tamboli. Afsana Khan is known for her songs Jooda, Titilyaan, Jaani Ve Jaani, Kamaal Karte Ho among others. Afsana Khan and Saajz got engaged in February last year.
english
Epic Games, the visionary behind Fortnite, has acquired a prominent development studio in Brazil, namely Aquiris. Positioned at the forefront of game creation with Unreal Engine 5 and Unreal Editor under its belt, Epic appears intent on growing its portfolio by adding different companies to help them. Alain Tascan, the Executive Vice President of Game Development at Epic, said in a statement on April 20: "We’ve seen firsthand the impressive talents of the Aquiris team in creating innovative games that draw global appeal. With the creation of Epic Games Brasil, we look forward to tapping into the immense talent the region has to offer and establishing our presence in Latin America. " Aquiris is the first Latin American expansion for Epic, and it is now officially forming Epic Games Brasil. Based out of the country, the development company was founded in 2007. Its creators are Amilton Diesel, Mauricio Longoni, and Israel Mendes. Aquiris CEO Longoni, who will now serve as the lead for Epic Brasil, had this to say about the development: "We are delighted to leverage our experience using Unreal Engine on game development to contribute to the future of Fortnite. Aquiris has been on the forefront of game development in Brazil and Latin America, and becoming part of Epic Games will spotlight our region’s developers for the entire industry. " Latin American gaming is a big industry, one that Epic is now trying to tap into. Brazil is already a major region for Fortnite, but it's going to be even bigger for the company following this acquisition. Aquiris has made games like Wonderbox, Horizon Chase 2, and Looney Tunes: World of Mayhem. It will continue to work on these games for the time being while running the new sector of Epic Games. What other companies does Epic Games have? Aquiris is not the first company to be purchased by the gaming giant, and it certainly won't be the last. Epic Games owns: Many titles fall under Epic's umbrella, but one could arguably say that Fortnite is its pride and joy.
english
<reponame>PatrikValkovic/neural-networks-step-by-step import numpy as np from progressbar import progressbar class SequenceModel: def __init__(self, layers, loss, metrices = [], random_seed = None): self._rand = np.random.RandomState(random_seed); self.loss = loss self.metrices = metrices self.layers = layers def zero_grad(self): for layer in self.layers: for grad in layer.grads: grad.fill(0) def fit(self, X, y, optimizer, Xtest=None, ytest=None, epochs=100, batch_size=32, progress=False): # get how many data we have n_train_data = len(X) n_test_data = 1 if ytest is None else len(ytest) # store gradients and losses train_losses = np.zeros((epochs,)) test_losses = np.zeros((epochs,)) train_metrices = np.zeros((len(self.metrices), epochs)) test_metrices = np.zeros((len(self.metrices), epochs)) # decide whatever to log progress epoch_counter = progressbar(range(epochs)) if progress else range(epochs) # Learning outputs = [None] * (len(self.layers) + 1) for epoch in epoch_counter: # shuffle the data permutation = self._rand.permutation(n_train_data) # for each batch for batch_start in range(0, n_train_data, batch_size): # get batch batch_data = X[permutation[batch_start:batch_start+batch_size]] batch_target = y[permutation[batch_start:batch_start+batch_size]] # forward pass outputs[0] = batch_data for layer, i in zip(self.layers, range(len(self.layers))): outputs[i+1] = layer(outputs[i]) # backward pass self.zero_grad() current_grad = self.loss.gradient(batch_target, outputs[-1]) for layer, layer_input in zip(self.layers[::-1], outputs[-2::-1]): current_grad = layer.gradient(layer_input, current_grad) # update the weights optimizer.optim(self) # store loss train_losses[epoch] += np.sum(self.loss(batch_target, outputs[-1])) # compute the metrices for metric in self.metrices: metric(batch_target, outputs[-1]) # store train metrices for num_metric, metric in enumerate(self.metrices): train_metrices[num_metric, epoch] = metric.summary() # evaluate on the test set if Xtest is not None and ytest is not None: # for each batch for batch_start in range(0, n_test_data, batch_size): # get batch batch_data = Xtest[batch_start:batch_start+ batch_size] batch_target = ytest[batch_start:batch_start + batch_size] # predict the data prediction = self.predict(batch_data) # store loss test_losses[epoch] += np.sum(self.loss(batch_target, prediction)) # compute the metrices for metric in self.metrices: metric(batch_target, prediction) # store test metrices for num_metric, metric in enumerate(self.metrices): test_metrices[num_metric, epoch] = metric.summary() results = { "train_loss": train_losses / n_train_data, "test_loss": test_losses / n_test_data, } results.update({f"train_{metric.name}": train_metrices[num_metric] for num_metric in range(len(self.metrices))}) results.update({f"test_{metric.name}": test_metrices[num_metric] for num_metric in range(len(self.metrices))}) return results def predict(self, X): for layer in self.layers: X = layer(X) return X
python
Udupi, Oct 10: The Bharat scouts and guides unit in Nirmala English Medium School (NEMS) was founded by Irine Pereira in the year 2007-08. At present NEMS have 42 scouts and 27 guides. As many as 37 scouts and 23 guides along with two scout masters Fr Joslie Francis D’Silva and Manu and two guide leaders Irine Pereira and Rama began their journey from Brahmavar to Moodbidri for hiking/trekking on October 8. The unit visited reached temple town of Moodbidri and visited Saavira Kambada Basadi (Jain temple noted for its 1000 pillars). The temple is also known as ‘Chandranatha Temple’ since it honours the Tirthankara Chandraprabha, whose eight-foot idol is worshipped in this shrine. They next visited Konaje Kallu, a large granite Monolith. The entire troop of scouts and guides reached at the foot of Konje Kallu. The team then reached Karkala town to visit Gomateshwara statue. The statue was built by the Ganga dynasty minister and commander Chavundaaya. It is a 40ft monolith tall on its hilltop perch. The day concluded with a visit to Attur Shrine. It is a Roman Catholic Church in Karkala. It was built in 1759 and is purported to be the site of many miracles. The scouts and guides children went in and around the church and prayed.
english
<reponame>gilles-leblanc/RubySword {"Name":"Retriever","Brawn":2,"Agility":4,"Intellect":1,"Cunning":1,"Willpower":2,"Presence":1,"Soak":4,"WoundThreshold":32,"StrainThreshold":32,"MeleeDefense":2,"RangedDefense":2,"Talents":null,"Abilities":[],"Skills":["Perception"],"Equipment":["bite (2)"]}
json
<filename>package.json { "name": "mini-lightbox", "version": "3.0.8", "description": "Minimalist image lightbox", "main": "lib/index.js", "directories": { "test": "test" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dist": "dist-it lib/index.js mini-lightbox.min.js" }, "repository": { "type": "git", "url": "git+https://github.com/ionicabizau/mini-lightbox.git" }, "keywords": [ "lightbox", "image", "css" ], "author": "<NAME> <<EMAIL>> (https://ionicabizau.net)", "contributors": [ "<NAME> <<EMAIL>>", "<NAME> <<EMAIL>>" ], "license": "MIT", "bugs": { "url": "https://github.com/ionicabizau/mini-lightbox/issues" }, "homepage": "https://github.com/ionicabizau/mini-lightbox", "blah": { "description": [ "## Demo", "Check out [the demo page](http://ionicabizau.github.io/mini-lightbox).", "", "## Browser support", "As long the [CSS3 transitions](http://caniuse.com/#feat=css-transitions) are supported by your browser, this should work fine. :rocket:", "## Examples", "", "### Simple usage", "", "```html", "<img id=\"myImage\" src=\"myImage.png\" alt=\"Some title\">", "<script>", " new MiniLightbox(\"#myImage\");", "</script>", "```", "", "### Advanced usage", "If you need more stuff (e.g. animations etc), you need to create custom handlers (`customClose` and `customOpen` handlers). Works like a charm with animate.css library. :smile:", "", "```js", "function waitForAnimationEnd(element, callback) {", " var animationEnd = \"animationend\";", " var handleAnimationEnd = function(event) {", " // remove listner", " event.target.removeEventListener(animationEnd, handleAnimationEnd);", " // fire callback", " return callback(event);", " };", " element.addEventListener(animationEnd, handleAnimationEnd);", "}", "", "MiniLightbox.customClose = function(self) {", " self.img.classList.add(\"animated\", \"fadeOutDown\");", " waitForAnimationEnd(self.img, function() {", " self.box.classList.add(\"animated\", \"fadeOut\");", " });", " waitForAnimationEnd(self.box, function() {", " self.box.classList.remove(\"animated\", \"fadeOut\", \"fadeIn\");", " self.img.classList.remove(\"animated\", \"fadeOutDown\");", " self.box.style.display = \"none\";", " });", " return false;", "};", "", "MiniLightbox.customOpen = function(self) {", " if (self.el.parentElement.tagName === \"A\") {", " return false;", " }", " self.box.classList.add(\"animated\", \"fadeIn\");", " self.img.classList.add(\"animated\", \"fadeInUp\");", "};", "```", "", "### Using `data-image-opened` attribute", "If `data-image-opened` attribute is provided in `img` element, it will be used for the path of the image when the popup is opened.", "", "```html", "<img id=\"myImage\" data-image-opened=\"./big.png\" src=\"small.png\" alt=\"Some title\">", "```", "", "### Delegation", "If images are added dynamically, you need to use delegation:", "", "```js", "new MiniLightbox({", " selector: \".content img\"", " // the common container where the images are appended", " , delegation: \"html\"", "});", "```" ] }, "files": [ "bin/", "app/", "lib/", "dist/", "src/", "scripts/", "resources/", "menu/", "cli.js", "index.js", "bloggify.js", "bloggify.json", "bloggify/" ], "dependencies": { "elly": "^1.1.2", "idy": "^1.2.5", "iterate-object": "^1.3.2" } }
json
The former AIADMK leader was not in the vehicle when the attack took place. A petrol bomb was hurled at former All Indian Anna Dravida Munntera Kazhagam leader TTV Dinakaran’s car outside his home in Chennai’s Adyar area on Sunday afternoon, reported ANI. Dinakaran was not in the car when the attack took place but three people, including his driver and his personal photographer, have been injured. The rear windshield of the car was damaged, reported News18. A disgruntled member of Dinakaran’s Amma Makkal Munnetra Kazhagam is suspected to be behind the attack, reported The Hindu. The police said Bullet Parimalam was upset after he was sacked from his post of town secretary. Investigation is under way, said the police. More details are awaited.
english
import { store } from 'src/App'; import Mutator from 'src/mutators'; import { Edge, Node } from '../models'; export enum ActionTypes { SET_VISIBLE_NODES = "[visible_graph] SET_VISIBLE_NODES", SET_VISIBLE_EDGES = "[visible_graph] SET_VISIBLE_EDGES", PULL_IN_NEIGHBORS = "[visible_graph] PULL_IN_NEIGHBORS", HIDE_NODE = "[visible_graph] HIDE_NODE", ADD_NODE = "[visible_graph] ADD_NODE", SET_VISIBLE_NODE_TYPES = "[visible_graph] SET_VISIBLE_NODE_TYPES", SET_VISIBLE_EDGE_TYPES = "[visible_graph] SET_VISIBLE_EDGE_TYPES", RUN_MUTATOR_FROM_NODE = "[mutator] RUN_MUTATOR_FROM_NODE" } export interface SetVisibleNodes { type: ActionTypes.SET_VISIBLE_NODES; payload: { nodes: Node[] }; } export interface SetVisibleEdges { type: ActionTypes.SET_VISIBLE_EDGES; payload: { edges: Edge[] }; } export interface PullInNeighbors { type: ActionTypes.PULL_IN_NEIGHBORS; payload: { node: number }; nodes: Node[]; edges: Edge[]; } export interface HideNode { type: ActionTypes.HIDE_NODE; payload: { node: number }; } export interface AddNode { type: ActionTypes.ADD_NODE; payload: { node: number }; nodes: Node[]; edges: Edge[]; } export interface SetVisibleNodeTypes { type: ActionTypes.SET_VISIBLE_NODE_TYPES; payload: { nodeTypes: string[] }; } export interface SetVisibleEdgeTypes { type: ActionTypes.SET_VISIBLE_EDGE_TYPES; payload: { edgeTypes: string[] }; } export interface RunMutatorFromNode { type: ActionTypes.RUN_MUTATOR_FROM_NODE; selectedNode: number; mutator: Mutator; nodes: Node[]; edges: Edge[]; visibleNodes: Node[]; visibleEdges: Edge[]; visibleNodeTypes: string[]; visibleEdgeTypes: string[]; } /* tslint:disable:object-literal-sort-keys */ export function setVisibleNodes(nodes: Node[]): SetVisibleNodes { return { type: ActionTypes.SET_VISIBLE_NODES, payload: { nodes } }; } /* tslint:disable:object-literal-sort-keys */ export function setVisibleEdges(edges: Edge[]): SetVisibleEdges { return { type: ActionTypes.SET_VISIBLE_EDGES, payload: { edges } }; } export function pullInNeighbors(node: number): PullInNeighbors { return { type: ActionTypes.PULL_IN_NEIGHBORS, payload: { node }, nodes: store.getState().graph.nodes, edges: store.getState().graph.edges }; } export function hideNode(node: number): HideNode { return { type: ActionTypes.HIDE_NODE, payload: { node } }; } export function addNode(node: number): AddNode { return { type: ActionTypes.ADD_NODE, payload: { node }, nodes: store.getState().graph.nodes, edges: store.getState().graph.edges }; } export function setVisibleNodeTypes(nodeTypes: string[]): SetVisibleNodeTypes { return { type: ActionTypes.SET_VISIBLE_NODE_TYPES, payload: { nodeTypes } }; } /* tslint:disable:object-literal-sort-keys */ export function setVisibleEdgeTypes(edgeTypes: string[]): SetVisibleEdgeTypes { return { type: ActionTypes.SET_VISIBLE_EDGE_TYPES, payload: { edgeTypes } }; } /* tslint:disable:object-literal-sort-keys */ export function runMutatorFromNode(node: number, mutator: Mutator): RunMutatorFromNode { return { type: ActionTypes.RUN_MUTATOR_FROM_NODE, selectedNode: node, mutator, nodes: store.getState().graph.nodes, edges: store.getState().graph.edges, visibleNodes: store.getState().visibleGraph.present.visibleNodes, visibleEdges: store.getState().visibleGraph.present.visibleEdges, visibleNodeTypes: store.getState().visibleGraph.present.visibleNodeTypes, visibleEdgeTypes: store.getState().visibleGraph.present.visibleEdgeTypes }; } export type Action = | SetVisibleNodes | SetVisibleEdges | PullInNeighbors | HideNode | AddNode | RunMutatorFromNode | SetVisibleNodeTypes | SetVisibleEdgeTypes;
typescript
var util = require('util'); var bleno = require('bleno'); var BlenoCharacteristic = bleno.Characteristic; var PythonShell = require('python-shell'); var EdisonCtl = new PythonShell('../ExplorerCtl.py'); EdisonCtl.on('message', function(message) { console.log(message); // got a message from EdisonCtl.py, so send it to notificatons if (SerialChara._updateValueCallback != null) { Serial.Chara._updateValueCallback(message); } }); function SerialChara() { SerialChara.super_.call(this, { uuid: '8a53fa01d9d242afb942ce50a39bc7e6', properties: ['read', 'write', 'notify'], value: null }); this._value = new Buffer(0); this._updateValueCallback = null; }; util.inherits(SerialChara, BlenoCharacteristic); SerialChara.prototype.onReadRequest = function(offset, callback) { console.log('SerialChara - onReadRequest: value = ' + this._value.toString('hex')); callback(this.RESULT_SUCCESS, this._value); }; SerialChara.prototype.onWriteRequest = function(data, offset, withoutResponse, callback) { this._value = data; console.log('SerialChara - onWriteRequest: value = ' + this._value.toString('hex')); cmd = ''; for (var i = 0; i < data.length; i++) { cmd += data[i].toString() + ','; } cmd = cmd.substring(0, cmd.length - 1); // write to pyserial script console.log('sending: ' + cmd); EdisonCtl.send(cmd); callback(this.RESULT_SUCCESS); }; SerialChara.prototype.onSubscribe = function(maxValueSize, updateValueCallback) { console.log('SerialChara - onSubscribe'); this._updateValueCallback = updateValueCallback; }; SerialChara.prototype.onUnsubscribe = function() { console.log('SerialChara - onUnsubscribe'); this._updateValueCallback = null; }; module.exports = SerialChara;
javascript
{"babylon.js":"sha256-WnsR9suT/3kUxao4wrWBVVgapsUuQLsTxRy/Gw/nK0k=","babylon.max.js":"sha256-fIui1CbAz4iaFL67Dm+P1kenbWnUrnbkVCqwYVle7TA="}
json
{ "description": "Jason took a short leave of absence to help the Canadian federal government adopt modern software development practices. In this talk he\u2019ll talk about his reasons for pursuing this opportunity, whether he\u2019d recommend it to others, and lessons learned along the way.\n\nPresentation page -- https://2018.pycon.ca/talks/talk-PC-52064", "recorded": "2018-11-10", "speakers": [ "<NAME>" ], "thumbnail_url": "https://i.ytimg.com/vi/MqcL5eoYU60/hqdefault.jpg", "title": "When Technical Debt Congeals: My Sabbatical with the Government of Canada", "videos": [ { "type": "youtube", "url": "https://www.youtube.com/watch?v=MqcL5eoYU60" } ] }
json
The Indian Premier League significantly impacts Indian Cricket and has arisen as a significant sporting and marketing platform since its inception in 2008, the IPL has revolutionized the way cricket is played, watched, and commercialized in India. This premier Cricket tournament has not only entertained millions of fans but has also played a crucial role in shaping the development of the sport in the country. The IPL impact can be seen in various aspects. From a sporting perspective, it has provided a platform for both domestic and international players to compete at the highest level. The league grandstands high-quality cricket, loaded up with exciting matches, furious rivalries, and exceptional performances. It has also been a breeding ground for young talents, offering them the opportunity to exhibit their abilities. Explore the impact & significance of IPL, its commercial success, economic growth, talent identification of budding cricketers, etc. The IPL has been a breeding ground for young cricketing talent. The league provides a platform for domestic players to showcase their skills alongside established international stars. For many budding cricketers, the IPL serves as a stepping stone to represent their national teams. Numerous players have risen to prominence through their standout performances in the league. Moreover, the IPL has contributed to strengthening domestic cricket infrastructure and grassroot development, fostering a competitive cricket ecosystem in India. The IPL played a crucial role in popularizing T20 cricket as a separate format. It led to the growth of T20 leagues across the globe, influencing the way cricket is played and enjoyed by fans. Additionally, T20 cricket has produced a new breed of cricketers with specialized skills for this fast-paced format. The IPL’s fast-paced, high-intensity format has given rise to a new breed of cricketers known as T20 specialists. These players excel in the shortest format of the game, possessing unique skills and strategies suited to T20 cricket. Many cricketers who might not have had an opportunity in traditional formats have found success and international recognition through their performances in the IPL. The Indian Premier League (IPL) has indeed provided a boost to tourism in India. The tournament draws the attention of cricket lovers from all over the world, leading to an influx of tourists during the IPL season. International visitors travel to India specifically to witness the live matches, contributing to the tourism economy through bookings of flights, accommodations, and local transportation. The IPL matches are dispersed across different cities within India, this dispersal of matches encourages fans to explore various regions, indulge in local experiences, and visit tourist spots. The hospitality industry witnesses a surge in demand for hotel rooms as fans, players,and media personnel require accommodation during the matches. Overall, the IPL serves as a major tourism catalyst , promoting India as a vibrant destination for cricket and travel enthusiasts. The IPL offers extensive opportunities for advertising and sponsorship. With its massive viewership and dedicated fanbase, the IPL serves as a highly coveted platform for brands to reach a wide audience and create strong brand associations. It also offers brands to become the title sponsor of the entire tournament. The title sponsor’s brand name is prominently featured in the tournament’s official name, such as “The (Brand name) Indian Premier League”. Each IPL team is open to sponsorship from companies, who become their official sponsors. These sponsors have their brand logos displayed on the team jerseys, helmets, and a range of team merchandise. The advertising and sponsorship opportunities offered by the IPL contribute significantly to revenue generation for the league while providing brands with a powerful marketing platform. The IPL serves as a hub of employment, employing thousands of individuals across various roles. Here are some ways in which the IPL contributes to employment. While the employment opportunities created by the IPL are primarily seasonal, they provide a valuable source of income for individuals during the tournament. The IPL’s economic impact extends beyond the cricket field, stimulating various sectors and supporting livelihoods in India. One of the most significant impacts of the IPL has been its unparalleled commercial success. The league attracted massive investments from corporate sponsors, broadcasters, and franchise owners. The IPL’s broadcast rights have consistently fetched staggering amounts, boosting the revenues of BCCI and other cricket boards. Additionally, team owners have reaped substantial profits through sponsorships, ticket sales, merchandise, and brand partnerships. The financial success of the IPL has not only benefited cricket stakeholders but also contributed to the overall growth of the Indian economy. The IPL has a significant impact on the Indian economy, especially in the host cities, creating job opportunities, boosting tourism, and generating revenue for businesses related to sports, hospitality, and entertainment. From 2015 to 2023, the IPL’s contribution to the Indian GDP has experienced exponential growth, reflecting its ever-increasing significance as a key driver of economic prosperity in the country. The IPL has played a pivotal role in globalizing cricket. The league’s star-studded teams, exciting contests, and top-notch facilities have attracted fans from across the globe. International players competing in the IPL have become ambassadors of the sport, garnering support from their home countries and elevating the popularity of cricket on a worldwide scale. Moreover, foreign players’ participation has strengthened cricket’s ties between nations and led to cultural exchanges and collaborations. The IPL’s entertainment quotient has been a driving force behind its massive popularity. The league combines cricket with glitz, glamour, and Bollywood, making it a complete entertainment package. Cheerleaders, music, and captivating halftime shows add to the overall spectator experience. The IPL’s success in engaging fans, both in the stadiums and through television and digital platforms, has set a benchmark for other sports leagues to emulate. Beyond its sporting significance, the IPL has had a profound social and cultural impact on Indian society. The league fosters a sense of unity and regional pride among fans, who passionately support their respective teams. The IPL transcends social and economic barriers, bringing people from diverse backgrounds together under one cricketing banner. Moreover, the league has provided employment opportunities for thousands, including players, support staff, ground staff, and stadium workers, benefiting various local communities. The Indian Premier League has left an indelible mark on the world of cricket and beyond. It has transformed the sport from a traditional pastime to a global spectacle that captures the hearts of millions. The IPL’s commercial success, growth of domestic cricket, rise of T20 specialists, and impact on fan engagement have made it a powerhouse in the world of sports and entertainment. Moreover, the league’s social and cultural impact, coupled with its contribution to the globalization of cricket, have solidified its position as a transformative force in contemporary society. As the IPL continues to evolve, its significance is likely to grow further, leaving a lasting legacy on the cricketing landscape and the hearts of fans around the world.
english
But a more likely scenario looks something like this: You invest a few years of hard work to build something of value. One day you receive an acquisition offer out of the blue. You’re elated. And you’re not prepared. You drop everything to focus on this opportunity. Exclusive due diligence starts. Your company is a mess (IP, contracts, burn). Days become weeks; weeks become months. You’ve neglected business and fundraising. You’re running out of money. M&A is now your one and only option. The buyer says they found a bunch of cockroaches in the walls and drops the price. Now what? Sound unlikely? This is still a favorable situation: You had an offer! Think about how much time you invested in your various funding rounds. The hundreds of names and Google spreadsheet or Streak-powered quasi-CRM process. Have you spent even a fraction of that on understanding exit paths? If you’d rather not live the situation described above, read along. Investors live by exits, but many founders keep dreaming of unicornization and avoid the “E-word” until it’s too late. Yet, in 2016, 97 percent of exits were M&As. And most happened before Series B. As a result, founders miss opportunities or leave money on the table. This is a shame. Our fund has more than 700 companies in portfolio. We want the best possible exit for each of them. And fortune favors the prepared! Now, how to get 700 exits (and counting)? To explore the topic, we organized a series of Master Classes tapping corporate buyers, bankers, investors, lawyers and startup CEOs with M&A or IPO experience in San Francisco. It was a group that included the founders of Guitar Hero — bought by Activision; JUMP Bikes — a SOSV portfolio company bought by Uber, Ubiquisys — bought by Cisco and Withings — bought by Nokia. Each one for hundreds of millions. Their observations can be summarized below. “Founders must be aware of what contributes to an exit. This means understanding partnerships and how they are formed in the business space the entrepreneur is working in,” said one Master Class participant. As founders, you build your product, your company and... optionality. You need to understand the options open to your company, and take steps to enable them. The most likely one is an acquisition, but there are others like IPO (including small cap), RTO, SBO, LBO, Equity Crowdfunding and even ICO. “Exit is not a goal per se, but as a CEO it is something you should think about as early in your cycle as possible, while being business-focused,” said the London-based investor Frederic Rombaut, of Seraphim Capital. It’s important to ask questions like: How many “strategic engagements” with potential buyers have you had this month? Is your message and value clear in their eyes? Have you considered an acquisition track in parallel to a fundraise? It doesn’t stop there: - Equity crowdfunding might help close some gaps at seed stage. - Early IPOs on smaller exchanges can be an option to raise over $10 million — the robotics startup Balyo went public and raised €40 million on Euronext to get rid of a critical “right of first refusal” option held by one of its corporate investors. - Reverse mergers can work too: the medical exoskeleton company EKSO Bionics went public this way. One thing is sure: The time to exit is not when you’re running out of money. Unicorn or not, the most likely exit is an acquisition. Patterson says it’s important to understand how mergers and acquisitions actually work; how to prepare a startup for an exit; and how to develop a “feel” for the market you’re exiting through and into. Hearing from corp dev veterans from Cisco, Logitech, Dassault and IBM, a few key ideas emerged: It could be from least to most expensive, or as a mix, as listed by Mark Suster, managing partner at Upfront Ventures: - Talent hire ($1 million/dev as a rule of thumb — location matters) - Strategic threat (avoid or delay disruption) - Defensive move (can’t afford a competitor to own it) Corporates find deals via the development of partnerships, investment (CVC), their business units, corp dev research, media and investor connections. In other words, business development is corporate development. Buyers typically want to know three things: - Is your IP really yours? - Is your team capable? - Will your customers stick around? For IP, they will check your contracts (staff and contractors), and run some automated code analysis for proprietary code and open source use. They will evaluate potential IP infringement. No point buying you if you end up costing more in lawsuits! For your team skills: Sitting down with your engineers will tell them plenty enough without understanding the details of this or that algorithm. The last thing a corporate wants is to be accused of stealing! Lawyers engaged early can help. The later the clean-up, the more costly and painful. Develop relationships and create champions within corporates. It will help promote your deal when the time comes, and will let you keep your finger on the pulse of corporate strategy to time your moves. Do you read the earning calls of Cisco or IBM (or others relevant to you)? This is where strategies are presented. Are your keywords coming up there or in their press releases? Chris Gilbert, former CEO of Ubiquisys (sold to Cisco for more than $300 million) was very deliberate in planning his exit. There are dozens of formulas (from DCF to comparables) to evaluate a deal — which also means none is “correct.” What matters is: How much would you sell for, and how much is the buyer ready to pay? Gilbert, at Ubiquisys, described how close interactions with his banker helped drive the price up among the bidders assembled. Just like buyers, we meet bankers and lawyers too rarely at startup events, but there is much to learn with them. They make deals happen, avoid value erosion and optimize price. They often also make introductions before you engage them, to build goodwill and earn your business. And if you worry about fees, the right banker handsomely pays for itself by finding more bidders and playing “bad cop” for you, avoiding direct confrontation with your future employer. Do you want a slice of the watermelon or the whole grape? When asked about what happens after an M&A or IPO, buyers said they generally hoped the founders would stay with them for many years. Often using re-vesting, earn-outs or shares of the acquiring company to incentivize them. Neville, from IBM, mentioned a security company they acquired whose founder is now the head of one of the largest IBM divisions. In the case of IPOs, supposedly the ultimate “exit,” any block of shares sold by founders would face extreme scrutiny and might cause a price drop. So who’s exiting during those deals? Investors (and not always). Eventually, if the average age of a startup at exit is 8-10 years, the active duty period of founders (if not replaced in the meantime) extends even more. Better love the problem you’re solving, and your customers! Thanks to speakers, participants and supporters of this Master Class series: London: Frederic Rombaut (Seraphim Capital), Joe Tabberer (FirstBank), Chris Gilbert (Ubiquisys), Jonathan Keeling (Crowdcube), Fred Destin, Tony Fish (AMF Ventures, James Clark (London Stock Exchange), Denise Law (SGCIB). Paris: Frederic Rombaut (Seraphim Capital), Manuel Gruson (Dassault Systemes), Pierre-Henri Chappaz (Rothschild Global Advisory), Christine Lambert-Goue (All Invest), Olivier Younes (EXPEN), Eric Carreel (Withings), Fabien Bardinet (Balyo), Xavier Lazarus (Elaia Partners), Pierre-Eric Leibovici(Daphni). Jean de La Rochebrochard (Kima Ventures), Jeremy Sartre (SmartAngels), Gwen Regina Tan (Entrepreneur First). San Francisco: Natasha Ligai (Logitech), Matt Cutler (Cisco),Will Hawthorne, (CODE Advisors), Ryan Rzepecki (JUMP Bikes), Charles Huang (Guitar Hero), Jeff Thomas (Nasdaq), Shahin Farshchi (Lux Capital), Ammar Hanafi (Moment Ventures), Adam J. Epstein (Third Creek Advisors), Nathan Harding (EKSO Bionics), Kate Whitcomb, Anthony Marino and Ethan Haigh (SOSV). New York: Todd Neville (IBM), George Patterson (HSBC), Ryan Rzepecki (JUMP Bikes), Aaron Kellner (SeedInvest), Jeremy Levine (Bessemer Venture Partners), Taylor Greene (Collaborative Fund), Adam Rothenberg (BoxGroup), Eli Curi (Fenwick & West), Ian Engstrand and Salil Gandhi (Goodwin), Warren Spar(Sparring Partners Capital), Duncan Turner, Vivian Law and Sheng Ge (SOSV).
english
Celebrities are getting canceled right and left these days. Kevin Spacey, Bill Cosby, the list goes on and on…and I wonder who’s next. What celebrity’s career do you think is pretty much over? AskReddit users shared their thoughts about this. “R Kelly…don’t see a comeback album on the way. “Allison Mack. “That curly headed guy who was on That 70’s Show. “Celine Dion. “Bill Cosby. I’m still devastated over his actions. My extended family was r**ist and they loved Cosby (before his nastiness came out). “Jussie Smollett. “Aaron Carter. I was on attendance at one of those concerts back in 2017 maybe. It was some nostalgia I guess, but he played his only new release 4 times in different versions. “Steven Seagal. I watched a Seagal film years ago for nostalgia. It was a film he’d done more recently and I haven’t watched a film of his in ages. “You all remember Emile Hirsch? He could have been a superstar and then he strangled a female studio exec. “Andy Dick. This honestly needs no explanation. “Bam Margera. I used to look up to the guy I skated because of him, watched Jacka** for him and loved CKY because of him. “Armie Hammer. Everyone loves a good comeback story. “If you’re a 29 year old athlete with nothing to show for your career AND a Netflix documentary, you f**ked up bro. Who would you add to this list? Let us know what you think in the comments. Thanks, friends!
english
1. Some realism on how long the current #coronavirus restrictions in the UK will be maintained would be helpful. There is surprise in some reports that they might not be relaxed after the 3 week review next week. They will not. They won't be after the next 3 week review either. 3. It will fall slower than it increased, but let's pretend the rate of reduction is as fast as the increase was. Let's assume that it's another week before the maximum infections or fatalities reach the peak, and also assume another week for the numbers to start to fall. 4. That would be 5 weeks since the restrictions started. Therefore it would be five weeks before we are back to the point at which the restrictions were put in place. Obviously they can't be relaxed at that point. Let's add three more weeks to get the figures down further. 5. So, very optimistically 2 weeks from now before a fall begins, another 5 to get back to the point we were at when the restrictions were introduced, and 3 more to get far enough below that to lift restrictions. That is 10 weeks from now, as a wildly optimistic estimate. 6. In reality, the fall rates will most probably be slower than the rates of increase. That adds further time. What this tells us is that restrictions will be around for at least 10 weeks, but most likely more. Look at Italy for an indication of time scale. What this tells us is that restrictions will be around for at least 10 weeks, but most likely more. Look at Italy for an indication of time scale.
english
const express = require('express') const router = express.Router() const dbController = require('../controllers/dbController'); // create DB router.get('/db', dbController.create); // Create employee table router.get('/student', dbController.createTable); module.exports = router
javascript
<reponame>ourway/dingo<filename>resources/ptestudy/listening/write form dictation/E9DB4618C4EE90368C71BDF3C177D4AD.json<gh_stars>0 [ { "audio": "https://ptestudy.net/audio/wfd2/558.mp3" }, { "text": "The untapped potential for using the sun is enormous." } ]
json
Japan’s Olympic minister said last week that the contract for the Tokyo 2020 Games 'could be interpreted as allowing a postponement,' sparking speculation that the Games may be delayed and angering the International Olympic Committee. Minister Seiko Hashimoto has since reinforced the organisers’ message that the Games would go ahead as planned, but the controversy has brought into sharp focus the document underwriting the Olympics - and the implications it would have should they be affected by the coronavirus epidemic. Taisuke Matsumoto, a sports law expert at Tokyo’s Waseda University, said the contract gives the IOC all the 'bargaining power.' He added that such 'one-sided' deals where the host city has little say are very common for large-scale sports events. Here are the key provisions from the Host City Contract and additional documents signed by the IOC, the Tokyo 2020 organizers, the city’s metropolitan government and the Japanese Olympic committee: * The Olympics Games and all relevant rights – including broadcasting, reproduction, and staging rights - are the exclusive property of the IOC. * The organisers must protect the IOC from any damages or claims related to the organising of the Games. This means the organisers may compensate the IOC for the damages they suffer, as well as payments the IOC is asked to make by third parties such as Olympic sponsors or broadcasters. * The IOC can make changes to the Olympic program at any time. Such changes may include adding or deleting sports. The organisers bear the cost of those changes. * Only the IOC can cancel the Olympics. The reason for doing so could be one of the following: - Tokyo is not in a state to host the Olympics, such as being in the midst of a war or civil disorder; - The IOC believes that the safety of the participants would be seriously threatened; - The Games are not held in 2020; * It’s likely the IOC won’t trigger the termination clause, said Yoshihisa Hayakawa, lawyer and professor at Tokyo’s Rikkyo University. Instead, Japan would probably withdraw from hosting the Games out of consideration for the participants’ safety after discussions with the IOC behind the scenes. * If the Games get scaled down, Hayakawa said, the IOC and the organisers can also always sign an additional contract. * Lisbon-based Alexandre Miguel Mestre, lawyer specialising in sports law, said that if the Olympics were cancelled, it would probably be under the clause saying they can’t be held in 2020. Cancelling because the Games aren’t held in 2020 would be an objective decision, he said. * If the IOC decides to cancel the Games, it would first ask the organisers to remedy the situation within 60 days. * If the IOC is not satisfied with how the organisers improve the situation, then the IOC can cancel the Olympics. * If the Olympics are cancelled, the organisers cannot make any claims against the IOC, or ask them to compensate for damages. * If the Olympics are cancelled, the organisers would have to protect the IOC and its representatives from any third party claims.
english
The LeEco Super X50 Pro looks good, high on features, but less on performance. Chinese brand, LeEco made a name for themselves in the Indian market in a short span with some affordable products in the mobile space such as the LeEco Le 1S, LeEco Le 2, LeEco Le Max 2, etc. A little five months ago, the company entered into the home entertainment space, with their 'Super' range of 4K TV's under which the company is offering 4K TV at an affordable price tag and way better than that of LG, Samsung, and others. Back in August 2016, we reviewed the LeEco Super 3 X65 Smart TV and were impressed with the offering. When compared to same TV's from Samsung and LG in the same price range as LeEco's Super 3 X65 Smart TV, it was the best offering by then, but with some flaws as well. However, things were going well with the Chinese vendor at that point of time when they launched the first array of TV's in India. Of late, the company has been going through several issues, especially after entering the US market. LeEco's CEO Yueting Jia days after expanding their portfolio to the US in an unusual letter to the employees of the Chinese company mentioned the 'shortage of cash' and quick growth. Since then, numerous rumors were saying the LeEco is cutting jobs, and recently there was a rumor that the company allegedly broke its partnership with Eros Now, who was providing exclusive online content to the firm, which later on was confirmed to be true. However, these reasons were not stopping the company to expand their product portfolio. The company came out with yet another 4K TV and the successor to Super3 series, dubbed the LeEco Super4 X50 Pro. The Super4 series features improved design, upgraded features internally. And, LeEco kept the pricing minimal, this time around. Will the LeEco Super4 X50 Pro worth the asking price? Or will it further increase the company's problems? Let's find out. The all new LeEco Super4 X50 Pro doesn't feature many design changes when compared to the previous Super3 range of TV's. However, there are some changes, which are quite evident from the first glance itself. For example, LeEco has gone with a different stand design for the Super4 series, which is better than the previous Super3 series that came out with an aluminum stand as its base. Visually, the design of Super4 X50 Pro looks similar to that of the Super3 series. The relatively thin bezel display along with the slim form factor makes the TV look different from Samsung's and LG's offering. The TV weighs 16. 7 kg along with the stand, which is also an improvement over the Super3 series as they weighed over 20 kgs. The TV is entirely made up of plastic, and it doesn't look cheap. Only the two stands provided are made up of aluminum. That said, there are some brushed patterns in the TV, which indeed make the TV look premium. Overall, the LeEco Super4 X50 Pro brings in some improvement in the design department over the Super3 range, and that's a welcome change. The LeEco Super4 X50 Pro comes with various hardware ports along with a slew of wireless connectivity options. There are two HDMI 2. 0 ports, two USB 3. 0 ports (one at the rear side and one at the top of TV), AV Input/Output port, Audio Output port, and an Ethernet cable port. Apart from one USB 3. 0 port, all the ports are placed at the rear side of the phone. The TV also comes with several wireless connectivity options that include, Wi-Fi 802. 11/b/g/n and Bluetooth 4. 1. Do make a note that the TV supports only Wi-Fi networks of 2. 4GHz, but not 5GHz. In our review period, we haven't faced any Wi-Fi related connectivity issues. However, casting your mobile phone screen with the TV was a painful task. Also, if you are successful enough to mirror your screen, the output will mostly disappoint you as the video plays fine on phone's display, but lags a lot in TV's display, which we found to be annoying. As the name itself suggests the LeEco Super4 X50 Pro comes with a 50-inch display with a resolution of 3840*2160 pixels, with a contrast ratio of 4000:1 and refresh rate of 60Hz. The display type used the TV is LED and interestingly, it also has support for 3D and LeEco has optimized the software for enhanced 3D viewing. The display has decent viewing angles. However, the TV struggles a lot while playing 4K content. The 3D experience was okay, and you can also watch a regular content in 3D mode, but that's useless. Nevertheless, it's a good feature to have around. The TV comes with an advanced 64-bit Smart TV chipset, MStar 6A938, which is a quad-core chip with two ARM Cortex A72 cores and two ARM Cortex A53 cores clocked at 1. 7GHz. Also, the chipset is coupled with a Mali-T820MP3 GPU along with 3GB of RAM and 32GB of internal storage, which means that you can store files on your TV and use them later. Speaking about the real life performance, the LeEco Super4 X50 Pro performed well in simple tasks. However, we faced several lags with the user interface. And while accessing a third party storage device connected to the USB 3. 0 port, the TV goes irresponsive for a little period. The X50 Pro ships with two Harman Kardon speakers with support for Dolby Audio and DTS-HD Sound Enhancement. The speakers were loud enough and filled an entire house. The bundled remote is well designed and ergonomic. It offers several functions and that too boasting of limited keys. One of the interesting feature, which we liked the most is the support for motion-based control. Yes, you can control the TV remotely with the help of cursor present on display and, this feature makes navigating through menus easier. Overall, the LeEco Super4 X50 Pro is a good option if you're looking for a TV with high-end hardware at a low price. This is the only segment in which the LeEco Super4 X50 Pro mainly disappointed us. Yes, the Android TV experience still not up to the mark with the X50 Pro. We faced several issues with the LeEco Super 3 X65, and most of them still exist. The OS used in the X50 Pro is the Android TV on top of Android Lollipop with LeEco's EUI skin. One of the major downsides of this TV is the lack of Google Play Store and Google Play Services, which several people complained, but that isn't enough to convince LeEco to add them. The lack of Google Play Store means you don't get enough apps to play around. Yes, the TV comes with LeEco's apps store, but you can barely find an interesting app over there. Although the Google Play Store and Services can be sideloaded easily, that just don't enough for the apps to run. Having said that, the native YouTube application, which we sideloaded along with Google Play Services always says 'Google Play Services requires to run this app. ' And we were left with only 'YouTube for Android TV,' which works flawlessly. This is an area where LeEco needs to address quickly. And, in the mid-way through our review, the 'Livedi' TV content stopped working due to some unknown partnership issues with 'Eros Now. ' The LeEco Super4 X50 Pro has several improvements over its predecessor series of phones, but still, the major issues that existed in the previous Super3 series of TV's are present on this TV as well with the major one being the 'Software' side. Also, LeEco's issue with providing the Live television and Supertainment content seems to be over now. However, this Super4 X50 Pro is still ahead of other TV's with similar hardware, and it has even better features such as 3D support makes it a great buy. Another issue with the previous generation LeEco TV's was the lack of availability. So, if LeEco addresses this issue as well, then it will be a great affordable alternative for the huge priced TV's out there.
english
On the occasion of business tycoon Subrata Roy's 75th birthday, renowned producers Sandeep Singh and Jayantilal Gada, in collaboration with director Sudipto Sen of The Kerala Story fame, made an exciting announcement. They unveiled their ambitious project, Saharasri, which is set to be a captivating biopic based on the life of the visionary founder of Sahara India Pariwar. The Kerala Story director Sudipto Sen to helm Subrata Roy biopic Saharasri; Motion poster out now! Saharasri delves into the extraordinary journey of Subrata Roy, chronicling his beginnings as a relatively unknown individual and tracing his path to becoming one of India's most influential and dynamic figures. The film aims to provide audiences with a captivating narrative that showcases the remarkable rise and success story of Subrata Roy. In an official statement released by the producers, it was revealed that the team is actively considering top-notch superstars to portray the iconic role of Subrata Roy. While the name of the lead actor is yet to be disclosed, the announcement has sparked much anticipation among fans and industry insiders. The film is written by Rishi Virmani, Sudipto Sen and Sandeep Singh with music by AR Rahman and lyrics by Gulzar. The film will go on floor early next year and it will be shot extensively across Maharashtra, Uttar Pradesh, Delhi, Bihar, Kolkata and London. The Saharasri biopic promises to offer a compelling cinematic experience, capturing the essence of Subrata Roy's life, his struggles, triumphs, and the indomitable spirit that propelled him to become a game-changer in the business world. Saharasri will release in Hindi, Bengali, Tamil, Telugu, Kannada and Malayalam. Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
english
package io.github.samirsales.repository; import io.github.samirsales.model.entity.UserEntity; import org.springframework.data.repository.CrudRepository; import java.util.Collection; import java.util.Optional; public interface UserRepository extends CrudRepository<UserEntity, Long> { Collection<UserEntity> findByActiveTrueOrderByName(); Optional<UserEntity> findByIdAndActiveTrue(Long id); Optional<UserEntity> findByUsernameAndActiveTrue(String username); Optional<UserEntity> findByEmailAndActiveTrue(String email); Optional<UserEntity> findByUsername(String username); Optional<UserEntity> findByEmail(String email); }
java
(function() { 'use strict'; var app = angular.module('LoginsightUiApp.page.alarm-type'); app.config(stateConfig); stateConfig.$inject = ['$stateProvider']; function stateConfig($stateProvider) { $stateProvider .state('alarm-type', { url: '/alarm-type', templateUrl: 'app/pages/alarm-type/alarm-type.html', controller: 'AlarmTypeController', controllerAs: 'vm', title: "告警方式配置" }); } })();
javascript
As yet another action-packed, nostalgia-laden season of Cobra Kai hits the small screens across the globe, a certain 7-year old Fairfax, Virginia native seems to have hit the jackpot in terms of ushering in the new year on a high. Meet Thomas Parobek, a pint-sized child star who punches way above his weight as a young Johnny Lawrence in the latest installment of Netflix's smash-hit series, Cobra Kai. One of several new faces added to the Miyagi-Verse's ever-expansive and eclectic ensemble, Thomas' stellar turn is sure to make viewers sit up and take notice of his potential as a rising force to reckon with. In a candid and exclusive interview with Saahil Agnelo Periwal of SkPop, Parobek recently opened up about his indelible Cobra Kai experience, the sensei Johnny Lawrence connection, upcoming projects, and more. Q: How was the experience of working on the Netflix series Cobra Kai? Thomas: It was so much fun. I still can’t believe I got to do this. I had the best time on set and all the people there were so nice to me. I really enjoyed meeting everyone. The crew made me feel special and showed me where everything was. They even took me behind the scenes to where they filmed some of the other scenes in Cobra Kai. It was so cool because I remembered seeing those same things on the big screen. I still keep in touch with the director. We are penpals. Of course, meeting the cast blew my mind. I remembered all of them but the biggest moment was meeting William Zabka because I watched him first in The Karate Kid. They were all so nice and asked me lots of questions. Q: Could you tell us about what got you started on your acting journey? Share with us any personal anecdote or memorable childhood instances growing up so far. Thomas: It’s been about two years that I’ve been acting professionally. I’m seven now, so I got started when I had just turned five. My uncle is a director, so he cast me in a movie called Authentics. I played Linden Ashby’s grandson in it. Linden Ashby is a well-known actor who played Johnny Cage in Mortal Kombat, so you know I was excited! I love that movie and have played the video game! He was so nice. Mr. Ashby really liked me so he called his talent agency and told them about me. I had never acted before, but I knew I loved it. I memorized all my lines really well and even helped Mr. Ashby when he couldn't remember his. The People Store Talent Agency asked me to come in and audition and they signed me. The rest is history. I am with an agency called CESD in New York/Los Angeles and the other one is People Store in Atlanta. I sang to residents, did exercises with them, listened to their stories, gave hugs and made some special memories. You could say that’s kind of where I started and grew a love for entertaining people and making them feel happy. Q: What was it like playing the role of a young Johnny Lawrence? Was there any particular preparation you had to undergo for the role, considering how popular his character is? Thomas: I was so lucky that I got to play young Johnny Lawrence. To be honest, I didn’t even know I was auditioning for the role of young Johnny, so when I found out, I was so so excited. Because I am in the flashbacks and play the child version of him, I didn’t really have to do much preparation. I knew my lines and knew how to be a kid, so it wasn’t hard. I was very comfortable on set and got to play with Gi-Joes in the scene. That was a fun part because I love playing! Since then I started doing more karate and I love it. Q: Tell us about your most favorite thing about being on-set? Thomas: There are a lot of things. I have to say that I loved the “crafty” there. Crafty is like a big table full of any kind of snacks you want. The man working there was so nice to me and let me get anything I wanted. He also gave me an extra snack to take home to my brother. I also loved meeting everyone. Everyone was so kind and welcoming to me. I got to meet a lot of the cast after I was done filming. We all stood outside talking for a while and they weren’t in any rush to leave. They really made me feel special. Q: How do you balance acting and school? Thomas: I feel like my parents have done a good job helping me balance everything. I did start homeschooling for my 2nd grade year. Because I have been homeschooled, I have had more opportunities to travel. I make sure and do my work during breaks and if I have to do work later in the day or finish up on a weekend, that’s okay with me. The audition process for me is usually doing self-tapes, so I’ll do my school work, take a break and do my audition, and then come back up and finish my work. Q: What are some of your hobbies apart from acting? Thomas: I joined a basketball team called the Eagles and it is so much fun. We have a basketball hoop outside our house so I practice all the time. I also do karate twice a week. I love to swim and know all my swim strokes and I also like tennis. Besides sports, I love drawing and making paper airplanes. I don’t know if you have heard of magnatiles, but they’re kind of like legos, but they are magnets. I could play them for hours. Of course I do everything with my big brother. He’s 11 and is my best friend. We really like playing Dungeons and Dragons together and playing video games. Q: What do you love the most about Cobra Kai and The Karate Kid movies/franchise ? Thomas: I love the karate in the movies for sure. It looks so cool and I wish I could be as good as them. I also love how everyone can watch it, young and old. It is such a great story. I watched the Karate Kid when I was four and loved it. My parents and grandparents also love those movies and the show, so it does not matter how old you are! The actors are awesome too. They are so talented and I love how they are bringing so many characters from Karate Kid back onto Cobra Kai. I watched Johnny Lawrence and Daniel LaRusso when I was a toddler. Q: Cobra Kai, Eagle Fang or Miyagi Do - which is your favorite dojo from the show and why? Thomas: That’s a loaded question. But Eagle Fang because Johnny Lawrence is the sensei. Q: Your top three favorite characters from the show? Thomas: Johnny Lawrence hands down. Then Daniel LaRusso. And Hawk (Jacob Bertrand) was the first one I met. He was going to wardrobe, but he ran over to me first and we talked for a good while. He also grew up as a child actor, so we had something in common. He was so nice. Q: Top three favorite Hollywood actors you admire and would love to work with? Thomas: That is a hard question. I love Stranger Things and I binge-watched the entire series already. Probably Noah Schnapp, who plays Will. He is so talented. I also admire Linden Ashby because he helped me become an actor and saw something in me. We have only acted together once, but now that I’m older, I would want to be in more things with him. There are so many great actors out there, but I love Spiderman. I really loved the new Spiderman movie. I’d want to act with any of those guys. Andrew Garfield is a huge Cobra Kai fan. I am a big fan of him, so the fact that he will watch me act is so exciting. Q: Besides an actor, what would you like to be when you grow up? Thomas: A doctor. Like a cancer doctor. . . When people are sick, it makes me sad, so I want to help as many people as I can. Q: Having already starred in a slew of impressive short films so far, what upcoming projects do you have on the horizon in the new year? Both will be coming out in 2022 and you will all be able to watch it. There may be some other things coming down the pipeline, so you’ll have to wait and see! Q: How has the feedback and support from friends, family, and fans been so far? Thomas: Everyone has been super supportive. It just blows my mind and I am so honored and appreciative. My friends and family are so happy that I am happy and doing what I love, but they also give me that balance and that means a lot. I have the best fans in the world. Really. They are so nice to me and are always cheering me on. They made awesome fan art and edits for me and one even made me a t-shirt. I couldn’t believe it. They make me smile. Q: Any message you would like to share for viewers worldwide tuning in to watch you on Cobra Kai and on-screen in the near future ? Thomas: Just a big thank you for being so nice and kind to me. It means so much and stay tuned. After all, I’m only 7. I’ve got the whole world ahead of me.
english
import React, {Component} from 'react' import PropTypes from 'prop-types' import {connect} from 'react-redux' import {Link} from 'react-router-dom' import {getCartForUser} from '../store/user' /** * COMPONENT */ class UserHome extends Component { constructor(props) { super(props) } componentDidMount() { this.props.getCartForUserDispatch() } render() { let cart = {...this.props.cart.orders.myCart} const userCart = cart.userItemInCart let resultBtn = userCart && userCart.length ? ( <div> <h4> You have saved items in your cart </h4> <Link to="/orders/myCart"> <p className="center-align"> <button type="button" className="waves-effect teal lighten-2 btn-large" > cart </button> </p> </Link> </div> ) : ( <Link to="/products"> <p className="center-align"> <button type="button" className="waves-effect teal lighten-2 btn-large" > <i className="material-icons"> shopping_basket SHOP NOW </i> </button> </p> </Link> ) return ( <div className="shiftDown"> <div className="container"> <h3>Welcome, {this.props.userName}</h3> {resultBtn} </div> </div> ) } } /** * CONTAINER */ const mapState = state => ({ userName: state.user.userName, cart: state }) const mapDispatch = dispatch => ({ getCartForUserDispatch: () => dispatch(getCartForUser()) }) export default connect(mapState, mapDispatch)(UserHome) /** * PROP TYPES */ UserHome.propTypes = { email: PropTypes.string }
javascript
There's a problem with the car's radio. The radio was playing very loudly. Turn up/down/on/off the radio. The police radioed for backup. The stranded sailors were radioing for help. The pilot radioed in to the control tower.
english
<gh_stars>10-100 from django.test import TestCase from django_find.parsers.json import JSONParser query1 = ''' { "Author":{"name":[[["equals","test"]]]}, "Book": {"title":[[["notcontains","c"]]]}, "Chapter": {"comment":[[["startswith","The "]]]} } ''' expected1 = """Group(root) Term: Author.name equals 'test' Not Term: Book.title contains 'c' Term: Chapter.comment startswith 'The '""" query2 = ''' { "Chapter": {"title":[[["contains","foo"]]]} } ''' expected2 = """Group(root) Term: Chapter.title contains 'foo'""" query3 = ''' { "Book": {"title":[[["contains","foo"]]]}, "Chapter": {"title":[[]]} } ''' expected3 = """Group(root) Term: Book.title contains 'foo' Term: Chapter.title any ''""" class JSONParserTest(TestCase): def setUp(self): self.maxDiff = None self.parser = JSONParser() def testParser(self): dom = self.parser.parse(query1) self.assertEqual(expected1, dom.dump()) dom = self.parser.parse(query2) self.assertEqual(expected2, dom.dump())
python
<reponame>phogbinh/relationship-backend package main type IRow interface { Scan(dest ...interface{}) (error) }
go
<filename>Contact/style2.css *, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; } body { background: rgb(26, 26, 26); font-family: Arial, Helvetica, sans-serif; height: 100vh; background-repeat: no-repeat; background-size: cover; position: relative; overflow-x: hidden; text-decoration: none; } .container-first { position: absolute; top: 30%; left: 5%; } html { --res: calc(0.01* 10vmin); } h1 { text-transform: uppercase; font-size: 50px; color: #ffffff; text-align: center; color: white; text-transform: uppercase; margin-top: 150px; } h1 span { position: relative; } h2 { text-align: center; text-transform: uppercase; font-size: clamp(10px, 5vw, 30px); color: #ffffff; text-align: center; color: white; text-transform: uppercase; margin-top: 10px; } a { text-decoration: none } h3 { text-align: center; font-size: 15px; opacity: 20%; color: white; text-transform: uppercase; opacity: 10%; margin-top: 30px; } h4 { text-align: center; text-transform: uppercase; font-size: clamp(10px, 5vw, 30px); color: #ffffff; text-align: center; color: white; text-transform: uppercase; margin-top: 30px; } img { font-size: clamp(35px, 5vw, 90px); } li { font-size: clamp(20px, 5vw, 25px); color: white; } .logo { position: absolute; right: 2.9%; top: 4%; width: 65px; height: 65px; } .medias { list-style-type: none; position: absolute; right: 3.3%; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; align-items: center; flex-direction: column; } .images { text-align: center; margin: auto; } .navbar ul { list-style: none; background: transparent; padding: 0; margin: 0; text-align: center; } .navbar li { display: inline-block; } .navbar a { text-decoration: none; color: #fff; width: 120px; display: block; padding: 10px 20px; font-size: 15; text-transform: uppercase; font-weight: bold; text-align: center; } .navbar a:hover { background: transparent; } a { text-size-adjust: 25; } @media(max-width: 800px) { h4 { margin-left: 30px; } }
css
from .model import Model from .dataset import InMemoryDataset
python
<reponame>Rankorrdagod/Daily-Code { "requires": true, "lockfileVersion": 1, "dependencies": { "slugify": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/slugify/-/slugify-1.6.1.tgz", "integrity": "<KEY> } } }
json
{"Event": {"uuid": "5dce295d-92a0-4738-946b-057dc0a8018c", "threat_level_id": "2", "timestamp": "1573792099", "date": "2019-11-15", "analysis": "0", "info": "DigitalSide Malware report: MD5: 87c103ee752fc6b628a05138f088a2a3", "published": true, "publish_timestamp": "1573792103", "Orgc": {"name": "DIGITALSIDE.IT", "uuid": "5ce96fba-3ebc-44cd-8ea9-5ec01f44d178"}, "Tag": [{"name": "tlp:white", "colour": "#6a7daf", "exportable": true}, {"name": "type:OSINT", "colour": "#bf4142", "exportable": true}, {"name": "source:DigitalSide.IT", "colour": "#639ba5", "exportable": true}, {"name": "source:urlhaus.abuse.ch", "colour": "#3b6978", "exportable": true}], "Attribute": [{"type": "filename", "uuid": "5dce295d-ada0-4546-b0a2-057dc0a8018c", "to_ids": false, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "vcimanagement.arm5"}, {"type": "md5", "uuid": "5dce295d-e704-4af8-992a-057dc0a8018c", "to_ids": true, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "87c103ee752fc6b628a05138f088a2a3"}, {"type": "sha1", "uuid": "5dce295d-b950-4af6-bc60-057dc0a8018c", "to_ids": true, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "ced45d104ce017f34a7d8086ff4ee3505413562a"}, {"type": "sha256", "uuid": "5dce295d-abe8-41b5-a2ea-057dc0a8018c", "to_ids": true, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "43cde282b34ed5cccbca57de2f88daace02a89823f29284fb589b864c6e863b8"}, {"type": "mime-type", "uuid": "5dce295d-cae8-4211-936d-057dc0a8018c", "to_ids": false, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Payload delivery", "value": "ELF 32-bit LSB executable, ARM, version 1 (ARM), dynamically linked, interpreter /lib/ld-uClibc.so.0, stripped"}, {"type": "url", "uuid": "5dce295d-7b74-46c5-beb4-057dc0a8018c", "to_ids": true, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Network activity", "value": "http://192.168.3.11/bins/vcimanagement.arm5"}, {"type": "ip-dst", "uuid": "5dce295d-efc0-43b8-a82a-057dc0a8018c", "to_ids": true, "timestamp": "1573792093", "object_relation": null, "comment": "", "category": "Network activity", "value": "192.168.3.11"}], "Object": [{"uuid": "ebfcb961-f132-4828-9d31-98a93f261785", "name": "virustotal-report", "sharing_group_id": "0", "meta-category": "misc", "timestamp": "1573792093", "distribution": "5", "template_uuid": "d7dd0154-e04f-4c34-a2fb-79f3a3a52aa4", "comment": "", "description": "VirusTotal report", "template_version": "3", "Attribute": [{"type": "link", "uuid": "d3d987ff-0d48-4d9a-ac8d-b331b41da85d", "to_ids": false, "timestamp": "1573792093", "object_relation": "permalink", "comment": "", "category": "External analysis", "value": "https://www.virustotal.com/gui/file/43cde282b34ed5cccbca57de2f88daace02a89823f29284fb589b864c6e863b8/detection"}, {"type": "datetime", "uuid": "43652cbb-57b3-48b6-a3c2-db4b174d3b5a", "to_ids": false, "timestamp": "1573792093", "object_relation": "last-submission", "comment": "", "category": "Other", "value": "2019-11-15T03:16:39"}, {"type": "text", "uuid": "b863ed5d-a809-47ad-b182-1f32d8fbd491", "to_ids": false, "timestamp": "1573792093", "object_relation": "detection-ratio", "comment": "", "category": "Other", "value": "28/59"}]}]}}
json
<reponame>fpsaraiva/eclipse-prog2 package exerciciosrecursao; public class MaiorValorMatriz { public int maiorValorMatriz (int[][] matriz) { if(matriz == null || matriz.length <2 || matriz[0].length<2) { throw new IllegalArgumentException("array nulo ou vazio ou tem menos de 2 elementos"); } int menor = matriz[0][0]; return maiorValorMatriz(matriz,0,0, menor); } private int maiorValorMatriz(int[][] array,int linha, int coluna, int maior) { if (linha < array.length) { if (coluna < array[linha].length) { if (array[linha][coluna] > maior) { maior =array[linha][coluna]; } return maiorValorMatriz(array, linha, coluna + 1, maior); } else { return maiorValorMatriz(array, linha + 1, 0, maior); } }else { return maior; } } }
java
Sesame or til as it is called in India are tiny oval-shaped crunchy seeds having a sweet buttery taste. They are available in different colours with white and black being the most commonly used. Sesame seeds are usually sprinkled on bread or added to the final tempering to make the dish look attractive. But, in doing so most of the times they are discarded. The seeds should be added to the dish while cooking to gain maximum benefits as they are a good source of minerals, calcium and iron. They can also be roasted and had after meals as it helps in digestion. Dry roast the sesame seeds until aromatic. Let them cool. Heat ghee over medium heat in the same pan. Add jaggery and keep stirring until it melts completely. Take the pan off the heat and add the sesame seeds, cardamom powder and pistachios. Mix vigorously and quickly so that all ingredients come together to form a sticky and lumpy dough. Grease the palms with a little ghee and take about 1 teaspoon of the mixture and shape it into round balls. Repeat with the remaining mixture. Store the til laddoos in an airtight container. Dry roast the sesame seeds until aromatic. Keep them aside to cool down. Combine milk powder and cream in a non-stick pan. Cook the mixture over low to medium heat until the mixture is reduced to a thick paste. Make sure to keep stirring continuously and scraping the sides of the pan. Add sesame seeds and mix well. Cook for another 3-4 minutes until the mixture attains a dough-like consistency. Add sugar and cardamom powder and mix well. Keep cooking on low heat until all the moisture is absorbed and the mixture becomes fudgy. Transfer the mixture to a greased plate and spread it out evenly. Let it cool down for 2-3 hours. Cut the burfis into desired shapes and store in an airtight container. Sesame chutney powder (Ellu podi) Dry roast the sesame seeds until aromatic and they change colour. Keep them aside. Heat oil in the same pan and add the chana dal, chillies and asafoetida. Roast them until aromatic. Add it to the sesame seeds. Once all the ingredients cool down, transfer them to a mixer jar. Add salt and grind it to a coarse powder. Store the sesame chutney powder in an airtight container. It can be had as an accompaniment to idlis and rice. Dry roast the sesame seeds for 2 minutes over medium heat. Once it is cool, add lime juice, olive oil and salt to taste. Blend the mixture to a coarse paste. Add the paste to curd and whisk it. Serve chilled tahini dip with crisp bread or lavash. Beat the whipping cream in a mixing bowl until light and airy. Add the condensed milk and beat it again. Add milk powder and milk and mix well. Beat the mixture for 2-3 minutes and transfer it to an airtight container. Freeze it for 5-6 hours in the refrigerator. Combine sesame seeds and jaggery and grind them into a coarse mixture. Add this to the frozen ice-cream and churn the entire mixture. Set it in an airtight container and freeze it for 5-6 hours. Dr. Deepali Kampani is a digital content specialist who weaves health and food through her pen. Like & Follow ThinkRight.me on Facebook, Instagram, and Telegram to stay connected.
english
<entity-card [id]="id" avatar="invoice" [actions]="['delete']"> <ng-template let-entity #cardTitle> Détails de la facture n° {{ entity.id }} </ng-template> <ng-template let-entity #cardSubtitle> {{ entity.creationDate | date:'dd/MM/yyyy' }} </ng-template> <ng-template let-entity #cardContent> <div> <label>Client</label> <company-ref [id]="entity.client?.id"></company-ref> </div> <div> <label>Montant</label> <span>{{ entity.amount | currency:'€' }}</span> </div> <div> <label>Paiement</label> <field-check [checked]="entity.received"></field-check> </div> <div *ngIf="entity.received"> <label>Reçu le</label> {{ entity.receptionDate | date:'dd/MM/yyyy' }} </div> <div> <label>Label</label> <span>{{ entity.label }}</span> </div> <div> <label>En attente</label> <field-check [checked]="entity.pending"></field-check> </div> <div> <label>Frais</label> <field-check [checked]="entity.travelCosts"></field-check> </div> </ng-template> </entity-card>
html
In this series, we bring you some of the world’s most-loved recipes. Today, we focus one of the world’s most loved recipe. Made from easily available ingredients, today we have the Lamb Tagine. So, sit back, take notes and master these recipes like an absolute pro! - In a heavy-bottomed pan, heat some oil. - Once the oil is hot, add some chopped shallots. - Continue to saute until the onions are translucent. - Once done, add some chopped garlic. - Saute well. - Continue to cook until the garlic softens completely and releases its beautiful aroma. - Once done, add all our ground spices. - Saute well. Make sure you stir the mixture well, this will prevent from our spices from getting burnt. - Add a little water to the mixture and continue to cook until the mixture releases oil from the corner of the pan. - Once done, add the meat pieces. - Sear the meat and continue to cook for about 10-15 minutes. - Once done, add in the chopped tomato and coom until they are mushy. - Next, add in the tomato puree and chopped potato cubes. - Stir well. - Check and adjust the seasoning. - Once done, cover the pan and let the potatoes cook for about 10-15 minutes. - Now, add the freshly chopped mint and coriander leaves. - Continue to cook for about 5 minutes. - Once done, take the lid off the saucepan and let the sauce thicken by letting it simmer (without the lid) on a low flame. - Once done, check and adjust the seasoning. - Portion the stew into serving bowl. - Top it with a generous amount of olives. - Serve it with rice or couscous. Recipe by: Chef Jagadish Purushothama, Academy of Pastry & Culinary Arts (APCA)
english
package cn.tomsnail.snail.ext.lock.core; /** * 默认锁实现 * @author yangsong * @version 0.0.1 * @status 正常 * @date 2016年8月20日 下午4:28:36 * @see */ public class DefaultLock implements ILock{ private ILock lock; private LockFactory lockFactory = new LockFactory(); private String url; private String username; private String password; private String lockName; private LockTarget lockTarget = LockTarget.ZOOKEEPER; private long timeout = 1000l; public LockFactory getLockFactory() { return lockFactory; } public void setLockFactory(LockFactory lockFactory) { this.lockFactory = lockFactory; } public ILock getLock() { return lock; } public void setLock(ILock lock) { this.lock = lock; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getLockName() { return lockName; } public void setLockName(String lockName) { this.lockName = lockName; } public LockTarget getLockTarget() { return lockTarget; } public void setLockTarget(LockTarget lockTarget) { this.lockTarget = lockTarget; } public long getTimeout() { return timeout; } public void setTimeout(long timeout) { this.timeout = timeout; } public void init(){ LockConfig lockConfig = new LockConfig(); lockConfig.setLockName(lockName); lockConfig.setLockTarget(lockTarget); lockConfig.setPassword(password); lockConfig.setTimeout(timeout); lockConfig.setUrl(url); lockConfig.setUsername(username); lock = lockFactory.getLock(lockConfig); } @Override public void lock() { lock.lock(); } @Override public boolean tryLock() { return lock.tryLock(); } @Override public boolean tryLock(long timeout) { return lock.tryLock(timeout); } @Override public boolean unLock() { return lock.unLock(); } @Override public void destory() { lock.destory(); } }
java
Wiese to Rutherford, SIX, what a hit!! This was a slot ball from Wiese, under his bat and Rutherford gives it a huge swing over long-on for a maximum. He's playing a gem of an innings here!
english
New Delhi, April 19 : No red beacons on official vehicles will be allowed from May 1, the government announced on Wednesday. A decision to this effect was taken at a Union Cabinet meet presided by Prime Minister Narendra Modi. "From May 1 no one in the country would be able to have red beacons atop official vehicles. There will be no exceptions," Finance Minister Arun Jaitley told reporters. Jaitley also said that a rule which gives the Centre and state governments the right to use blue beacons with flasher has also being changed. "Only defined emergency services will be allowed to carry blue beacons with flasher," Jaitley said.
english
<filename>cmd/oidc-token-ferry/render/gotemplatecmd.go package render import ( "io" "io/ioutil" "os" "text/template" "github.com/pkg/errors" "github.com/twz123/oidc-token-ferry/pkg/cli" ) type GoTemplateCmd struct { cli.OutputTarget Args struct { TemplateString string `positional-arg-name:"TEMPLATE_STRING" description:"Go Template to be rendered. An empty template indicates that the template is to be read from STDIN."` } `positional-args:"yes" required:"yes"` cli.TokenFerryCmd } func (cmd *GoTemplateCmd) Execute(args []string) error { template, err := cmd.parseTemplate() if err != nil { return err } ferry, err := cmd.TokenFerryCmd.PerformChallenge() if err != nil { return err } return cmd.OutputTarget.Write(func(writer io.Writer) error { return template.Execute(writer, ferry) }) } func (cmd *GoTemplateCmd) parseTemplate() (*template.Template, error) { if cmd.Args.TemplateString == "" { return parseTemplateFromStdin() } return parseTemplateText(cmd.Args.TemplateString) } func parseTemplateFromStdin() (*template.Template, error) { bytes, err := ioutil.ReadAll(os.Stdin) if err != nil { return nil, errors.Wrap(err, "failed to read from STDIN") } return parseTemplateText(string(bytes)) } func parseTemplateText(text string) (*template.Template, error) { template, err := template.New("template").Parse(text) if err != nil { return nil, errors.Wrap(err, "failed to parse Go Template") } return template, nil }
go