text
stringlengths
1
1.04M
language
stringclasses
25 values
<reponame>ShehabMMohamed/LeetCodeCPP class Solution { public: int searchInsert(vector<int>& nums, int target) { int low = 0, high = nums.size() - 1; while(low <= high) { int m = low + (high-low/2); if(nums[m] == target) return m; if(nums[m] < target) low = m + 1; else high = m - 1; } return low; } };
cpp
WWE Superstars usually show respect to each other after a match by shaking hands when they return to the backstage area. Of course, that time-honored tradition only takes place when a match has gone according to plan. On rare occasions, an incident can occur during an in-ring encounter which causes issues between superstars backstage. In some cases, WWE management even has to get involved to settle a disagreement. For example, in 1991, a backstage complaint was made about The Undertaker’s ability to safely execute his iconic tombstone piledriver finisher. A decade later, Chris Jericho’s alleged carelessness was also discussed backstage after he gave an opponent a black eye. In this article, let’s count down five WWE Superstars who complained about another wrestler after a match. One of The Undertaker’s first major WWE moments took place at Survivor Series 1991 when he defeated Hulk Hogan for the WWE Championship. Six days later, Hogan won the title back from his rookie opponent at This Tuesday In Texas. In 2020, The Undertaker was asked by ESPN’s Pete Rosenberg to explain why he immediately lost the title. The WWE legend confirmed that Hogan complained about suffering a neck injury during their tombstone spot at Survivor Series. Following the match, The Undertaker returned backstage to find Hulk Hogan laying on Vince McMahon’s office floor claiming to be in pain. Paramedics even attended to Hogan, who asked for someone to get his wife and kids on the phone. The Undertaker initially felt “devastated” about hurting Hogan, but his attitude changed when other superstars accused his opponent of faking the injury. From that moment on, ‘Taker said he was polite around Hogan but his “radar was always up” whenever they interacted. Dolph Ziggler won the World Heavyweight Championship Money in the Bank ladder match at WWE Money in the Bank 2012. The match also featured Christian, Cody Rhodes, Damien Sandow, Santino Marella, Sin Cara, Tensai, and Tyson Kidd. Following the event, the Wrestling Observer’s Dave Meltzer reported that Ziggler “vocally complained backstage” about Sin Cara “working stiffly” during the match. Meltzer clarified that, in his opinion, Sin Cara was not to blame for a high-risk Spanish Fly move which almost injured Ziggler. The original Sin Cara, better known as Mistico, frequently made mistakes while performing as the masked superstar in WWE between 2011 and 2013. He was later replaced by Hunico, who portrayed the Sin Cara character from 2013 to 2019. Sin Cara’s in-ring mistakes were often pointed out by WWE fans on social media. After the incident with Ziggler at Money in the Bank 2012, the phrase “Botch Cara” even trended on Twitter. Randy Orton famously complained about Kofi Kingston following a Triple Threat match (also involving John Cena) on WWE RAW in January 2010. The Viper was supposed to hit Kingston with a Punt Kick during the match, but his opponent kept getting back to his feet. This led Orton to repeatedly yell “Stupid! Stupid!” at Kingston in the middle of the ring. Speaking to FOX News in 2019, Kingston confirmed rumors that Orton's backstage politics played a part in his WWE push ending almost a decade earlier. “It was a very real thing, not a storyline thing, when Randy Orton didn't want me to get to a certain point in WWE. As you saw 10 years ago, I was kind of on the rise and logic would suggest that I would have become Champion based on the run I was having at the time and Randy Orton put a stop to all of that,” Kingston said. Orton pinned Kingston after hitting an RKO instead of a Punt Kick. He then went on to feud with Sheamus for the WWE Championship, while Kingston disappeared from World Championship storylines for the next nine years. A year before the incident with Kingston, Orton also complained about Mr. Kennedy's safety in the ring after a botched suplex spot on RAW. Orton "blew up in front of all the talent," according to Mr. Kennedy, and the former United States Champion received his release four days later. Sycho Sid, also known as Sid Justice and Sid Vicious, quit WWE in 1992 due to The Ultimate Warrior’s erratic behavior and in-ring selfishness. Sid said in an interview with Title Match Wrestling that Warrior wanted to dominate their matches and kick out of his finisher. The two-time WWE Champion also amusingly revealed that Warrior spoke to him backstage as though he was cutting a promo. “I left out of the room and went to one of the agents and said, ‘Come on, guys.’ ‘No, this is real.’ I go back in and [Warrior promo impression], ‘When the stars align...’ I said, ‘Okay, the first night I did it.’ We went to Boston the next night, I told them, ‘No, he’s not kicking out my finish. If he kicks out my finish tonight, I go home tomorrow morning and I never come back.’ And that’s what happened,” Sid said. Sid left WWE in April 1992 and began working for WCW again in May 1993. He later returned to WWE between 1995 and 1997, during which time he main-evented WrestleMania 13 against The Undertaker. The Ultimate Warrior never faced Sid again after their disagreement in 1992. Triple H once raised concerns backstage about Chris Jericho after his fellow WWE Superstar accidentally gave Chyna a black eye during a match. Jim Ross, WWE’s former Head of Talent Relations, said on his Grilling JR podcast that Triple H asked Vince McMahon to talk to Jericho. “I just think that Vince is then able to go tell Triple H, who we were counting on – he was going to become a huge star, great heel – that, ‘I talked to Jericho, I got that cleared up.’ So that’s one squeaky wheel that moves on to something else. So I think that’s kind of what it was... Triple H’s influence,” Ross said. Ross explained that Triple H was protective of Chyna during her storyline with Jericho because he was dating her at the time. The former WWE executive also recalled how he warned Jericho about possible negative reactions in the locker room after the incident with Chyna. According to Ross, Jericho had a “fearless” and “undaunted” attitude, and he was not intimidated by any of his WWE co-workers.
english
SCHEMA_VERSION = 2 from .common import ValidationError, SchemaMismatchError from .v2 import MetadataValidatorV2 as MetadataValidator from .v2 import read_v2 as read, write_v2 as write from .v2 import reads_v2 as reads, writes_v2 as writes
python
Weeks after a 19-year-old woman was allegedly gangraped by four men in the city, the case will soon be handed over to the Mumbai Police from the Aurangabad Police, who registered the initial FIR. Police said according to the statement given by the woman, the incident had allegedly taken place on the intervening night of July 7 and 8. The woman, who had been staying with her brothers in Mumbai, was on her way back to their house from a friend’s birthday party. On July 14, her brothers had called their parents in Jalna, saying the woman was unwell and appeared to be suffering a paralytic stroke. The father brought the woman back to Jalna for treatment. During treatment, the woman told her parents about the alleged incident, after which the father approached the local police, the statement read. An FIR under sections 376 (rape) 376 (gangrape) and 34 (common intention) of the IPC was registered with Aurangabad Police. “The Mumbai Police should receive the details in the next 24 hours…” said a police officer. So far, the accused have not been identified, said police.
english
<reponame>mariaalejandrabm0703/gui-restaurant-app import {currencyFormat} from './utils'; it('se ejecuta currencyFormat correctamente', () => { const currency = 500; const spec = '$500.00'; expect(currencyFormat(currency)).toBe(spec); });
typescript
It has been variously said that Soumitra Chatterjee’s debut in Satyajit Ray’s Apur Sansar also known as The World of Apu (1959)—is the bildungsroman that mirrored his own life journey from his small-town roots of Krishnanagar in Bengal’s Nadia district to the metropolitan cultural melting pot of Kolkata. And, in doing so, he came to represent the aspirations, struggles and frustrations of an entire generation of post-Partition Bengal. However, it is impossible to write a Soumitra Chatterjee (1935-2020) retrospective with any one aspect of his filmography in focus. He was a life-long elocutionist and recitation master of the poetry of Rabindranath Tagore and Jibanananda Das, the latter’s poetic sensibility attracting him deeply for being rooted in rural Bengal and mirroring the pangs of Bengal Partition. On the other hand, Soumitra Chatterjee was a prolific man of the theatre, a literary magazine editor, a Leftist and a “non-heroish” hero who was known for being non-starry. A man of the liberal arts, he signalled a manliness that was crafted with city-smartness, good looks and rooted Bengali sensibility but also underlined with so-called “feminine” attributes of melancholy and sadness: qualities largely associated with and depicted to belonging to the fate of women. Thus, Soumitra Chatterjee, amid several diverse portrayals, also claimed the space of the modern, tragic lover/hero with empathy informed by tensions of class and gender. In the post-Apu world, he epitomised the intellectual, poetry-sprouting Bengali bhadrolok in films like Devi (1960), Samapti (1962), Charulata (1964), Stree (1972), Kshudhita Pashan (1960) as Madhuja Mukherjee writes in her article Returning to Soumitra Chatterjee’s Most Influential Roles. Some of his pivotal roles in romances, urban comedies and tragedies, however, let us into the many shades of individualistic modernism/greyness within the bhadrolok space that Chatterjee brought on screen. And, even in so-called romantic drama genre, a film like Teen Bhubaner Pare (1969) brings out the grammar of street-cred protest so emblematic of Bengal politics woven into Chatterjee’s character of Montu. An Angry Young Man, Montu is introduced as the street ruffian, a product of Calcutta’s “rock/rowack culture”—a curious term for adda time spent on the flat pedestal on both sides of the staircase leading to the main door of the house as he rocks and rolls breezily with his para (neighbourhood) friends to Jibone Ki Pabo Na. Saroshi (Tanuja), the educated teacher takes on a civilising mission to tame the “uncivilised” brute that Montu is and puts him on a rigorous vocation of studies and “culture”. Their marital domesticity is fraught with anger, hatred, isolation and anxiety and mirrors the battles of urban class differences. Montu’s machismo is underlined by class tension. Though far from being noble, his vulnerability and alienation are real, while Saroshi’s “noble” but unempathetic zeal breaks his spirit. A slice-of-life domestic drama, the film is a commentary on modern relationships before the age of the Internet and how class constructs have a toxic effect in a so-called urban couple’s conjugal space without Soumitra Chatterjee portraying any affected toxicity. Equally fraught with class and gender tensions is his Bengali bhadrolok avatar of a college lecturer Sukhendu Dutta, married to the rich sophisticate Archana Basu (Suchitra Sen). Sukhendu is a poor orphan and although his cramped-up existence is a marker of his class, he is still a Bengali bhadrolok courtesy his education and intellect. Saat Pake Bandha is another commentary on the interpersonal dynamics of class as well as about modern marriages that are a product of love and individualism. Mocked by and constantly reminded of his class limitations by his mother-in-law, Sukhendu is a disillusioned romantic who, though a victim, is also unable to empathise with Archana’s choices. Here, class intersects with his gendered anger, not making him a misogynist but a tragic hero caught in the threshold of patriarchal ego and modernity. Sen earned both accolades and awards for her strong portrayal of Archana bringing out her spirit of freedom and pangs, but Soumitra Chatterjee’s strong portrayal of the deeply wronged and wronging Sukhendu is from an actor without any starry aura. Sukhendu/Charu – Soumitra/Suchitra are not a typical romantic onscreen pair in Bengali cinema (unlike Uttam-Suchitra), and yet the lead pair lend their onscreen chemistry a charm and tragic temperament. The final heartbreak and melancholic pathos establish Sukhendu as broken, not a typical vision of heroic manliness. In the film Stree (1972), Soumitra Chatterjee as the humble village-dweller Sitapati lip-syncs to the song khirki theke singhaduar, ei tomader prithibi\ er baireo jogot achey, tomra sheta manona (from the window to the royal entrance, this is the limit of your world\ that there is a world outside, you do not acknowledge) sung by Hemanta Mukhopadhyay. Sitapati lent his thin-moustach-ioed face with his evocative eyes to this song out under the open sky. While, the magnetic Uttam Kumar as the ruthless, philandering zamindar (landlord) Madhav and Arati Bhattacharya as his wife and the symbolic zenana-bound Hindu upper-caste woman Mrinmoyee are captured behind window bars. And, somewhere embedded in the huge galaxy of Soumitra Chatterjee’s cinematic oeuvre is a character like Sitapati with his soft critique of the entitled zamindari system and its systemic oppression of women. Though pale in comparison to Madhav’s or Uttam Kumar’s towering screen presence, it offered a revisionary lens. When Chatterjee debuted in 1952, Uttam Kumar was already a superstar. Kumar rose to become Bengali cinema’s biggest matinee idol; a truly gifted actor who was unmatched in Satyajit Ray’s Nayak (1966), one of the two Ray films that he acted in. It is significant that Chatterjee acted in 14 of Ray’s films and toured the hall of fame in world cinema through the Ray universe. Soumitra Chatterjee’s Sitapati is a study of melancholic manliness and an acceptance of the tragic fate, a domain of the conventional celluloid feminine. In Satyajit Ray’s 1960 film Devi, a potent commentary against religious dogma, blind faith and superstitions, the erudite and rich Brahmin Kalikinkar (Chhobi Biswas) starts believing and worshipping his daughter-in-law Doyamoyee (Sharmila Tagore) as goddess Kali. Soumitra Chatterjee’s Umaprasad, Doyamoyee’s husband, represents the man of reason who has nothing against Hinduism but is against logical anomaly and blind faith as he argues with his father. Aware of the injustice meted out to his wife and troubled by his helplessness in the hands of the patriarch’s authority, Umaprasad depicts a victimhood of tragic fate, doubt and helplessness: qualities not associated with the masculine. Though Tagore’s powerful portrayal of the central character’s tragic injustice is what keeps haunting the viewer, Ray thankfully shows that Umaprasad can’t be the “manly saviour” as both Doyamoyee and Umaprasad are products and victims of their times. The acting remains in line; empathetic and helpless but never forceful as the godly saviour. If Stree gave us a vision of alternative manliness, Kapurush (1965) offered a slice of manly/unmanly cowardice. Soumitra Chatterjee is inimitable as the physically charming, well-established and intellectually endowed Calcutta-based scriptwriter Amitabha Roy. As his car breaks down and he finds hospitality at Bimal Gupta’s (Haradhan Bandopadhyay) house for the night, the viewer discovers that Amitabha had once betrayed Gupta’s wife Karuna (Madhabi Mukherjee). As a poor man, Amitabha did not have the courage to go against his uncle’s will and commit to Karuna despite her acceptance of his situation. Today, as a rich man, Amitabha once again, like a coward, urges Karuna to leave her husband and elope with him. Lacking any trace of nobility, idealism, poetic quality, Amitabha, no matter how unflattering, presents an alternative side of Bengali masculinity in flesh and blood. The character of the “unheroic” kapurush, in that sense, is embedded in the specific psycho-social and economic milieu of Bengal in the Seventies. His cowardice is also a part of his manliness; tragically bereft of heroic manly promises. A year later in Satyajit Ray’s Charulata (1964), adapted from Rabindranath Tagore’s Nastanirh or The Broken Nest, Soumitra Chatterjee’s Amal seals the poetics and politics of the Bengali bhardolok. While the unconventionally beautiful Charu, immortalised by Madhabi Mukherjee, is an intelligent and articulate Tagorean heroine with her taste for literature and poetry-writing skills, Amal is her match in wit and wisdom, her friend-accomplice, confidant and a playful diversion from her dull, forlorn marital days spent in the absence of her busy and absent-minded husband Bhupati (Sailen Mukherjee). In the space of their intimate and teasing relationship with undercurrents of passion and jealousy, both Amal and Charu offer a revisionist gender optics. If Charu is enamoured of Amal’s charm and talents, she is herself ambitious about her writing. Amal encourages her but though he adores Charu as his muse he doesn’t worship her breaking the grain of portrayals symptomatic of romance novels. Set against the backdrop of Bengal Renaissance, Amal is the typical non-toxic, Bengal Renaissance product sprinkled with liberal ideals. In the 1965 comedy Baksha Badal, Chatterjee’s Dr. Pratulya is a psychiatrist who is paired with Aparna Sen’s Amita who get entangled in a romantic relationship after their suitcases get exchanged and through a follow-up of meetings. Dr. Pratulya encompasses the Bengali bhadrolok once again and uses his physical and cerebral charm, gift of the gab and charisma to woo the well-read and opinionated Amita. In the 1973 romantic comedy Basanta Bilap, Soumitra Chatterjee yet again paired with Aparna Sen, traces the hilarious exchanges between a group of four working “ladies” lodged in a women’s hostel and four young men from their neighbourhood. Chatterjee’s Shyam Sundar Bose and Sen’s Anuradha Singha lead their packs and the sequences lead to memorable banter, battle of the “sexes” with the male lead bringing out the uneasiness of a young man unable to express his love. In the much more fiery and magnetic portrayal of Sandip Mukherjee in Satyajit Ray’s Ghare-Baire (1984), adapted from Tagore’s namesake novel (also The Home and the World), Soumitra Chatterjee was established as the anti-hero. In what garnered more criticism and shock from his beloved audience, Sandip is the Machiavellian revolutionary as he plays with fire in his speech and act. Leveraging his physical charm, oratory skills and passion, he plays a dangerously seductive game with Bimala (Swatilekha Sengupta) and takes advantage of the liberal and ethical Nikhil’s trust and good nature. Given the current extremist political climate, Sandip’s amoral route resonates with issues of the present times. His hero-avatar, however, remains incomplete without the mention of the crowning glory of Feluda, the classic Satyajit Ray creation. Fashioned as the tall, athletic, Charminar-smoking, shawl-and-kurta clad Calcutta-based private detective, Soumitra Chatterjee epitomised the bravado of the pistol and brain at once. But that’s another story. In his early love and romances, he espoused the fashioning of a modernising man, flawed and real, while in his later years he played varied shades of empathetic, sick, lonely and deeply poetic manliness.
english
package repast.simphony.ui.probe; import java.awt.GridLayout; import java.beans.PropertyDescriptor; import java.math.BigDecimal; import java.math.BigInteger; import java.text.NumberFormat; import java.util.List; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JPanel; import repast.simphony.ui.sparkline.PropertySourcedSparklineJComponent; import repast.simphony.ui.sparkline.SparklineJComponent; import com.jgoodies.binding.PresentationModel; import com.jgoodies.binding.adapter.BasicComponentFactory; import com.jgoodies.binding.adapter.ComboBoxAdapter; import com.jgoodies.binding.value.AbstractValueModel; /** * ProbedProperty for numeric types. * * @author <NAME> * @version $Revision$ $Date$ */ public class NumericProbedProperty extends DefaultProbedPropertyUICreator { private enum NumType { BYTE, INT, DOUBLE, LONG, FLOAT, BIGINTEGER, BIGDECIMAL, SHORT }; private NumType numType; private List values; private boolean wrap = true; public NumericProbedProperty(PropertyDescriptor desc, boolean wrap) { super(desc); this.wrap = wrap; if (type == Type.READ || type == Type.READ_WRITE) setType(desc.getReadMethod().getReturnType()); else setType(desc.getWriteMethod().getParameterTypes()[0]); } public NumericProbedProperty(PropertyDescriptor desc, List possibleValues, boolean wrap) { this(desc, wrap); values = possibleValues; } private void setType(Class<?> val) { if (val.equals(BigDecimal.class)) numType = NumType.BIGDECIMAL; if (val.equals(BigInteger.class)) numType = NumType.BIGINTEGER; if (val.equals(byte.class) || val.equals(Byte.class)) numType = NumType.BYTE; if (val.equals(int.class) || val.equals(Integer.class)) numType = NumType.INT; if (val.equals(double.class) || val.equals(Double.class)) numType = NumType.DOUBLE; if (val.equals(float.class) || val.equals(Float.class)) numType = NumType.FLOAT; if (val.equals(long.class) || val.equals(Long.class)) numType = NumType.LONG; if (val.equals(short.class) || val.equals(Short.class)) numType = NumType.SHORT; } public JComponent getComponent(PresentationModel<Object> model) { AbstractValueModel valueModel = model.getModel(name,getterName,setterName); if (type == Type.READ) { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createLabel(valueModel, Utils.getNumberFormatInstance())); } if (values != null) { return this.wrapWithSparkLineButton(valueModel, new JComboBox(new ComboBoxAdapter(values, valueModel))); } switch (numType) { case BIGINTEGER: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createIntegerField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } case BIGDECIMAL: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createFormattedTextField(valueModel, new ZeroNumberFormat(Utils.getNumberFormatInstance()))); } case BYTE: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createIntegerField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } case SHORT: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createIntegerField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } case INT: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createIntegerField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } case DOUBLE: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createFormattedTextField(valueModel, new ZeroNumberFormat(Utils.getNumberFormatInstance()))); } case LONG: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createLongField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } case FLOAT: { return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createFormattedTextField(valueModel, new ZeroNumberFormat(Utils.getNumberFormatInstance()))); } default: return this.wrapWithSparkLineButton(valueModel, BasicComponentFactory.createIntegerField(valueModel, new ZeroNumberFormat(NumberFormat.getIntegerInstance()))); } } public JComponent wrapWithSparkLineButton(AbstractValueModel model, JComponent textComponent) { if (this.wrap) { JPanel combinedPanel = new JPanel(); combinedPanel.setLayout(new GridLayout(1, 2)); SparklineJComponent sparklineButton = new PropertySourcedSparklineJComponent(model, this); combinedPanel.add(textComponent); combinedPanel.add(sparklineButton); return combinedPanel; } else { return textComponent; } } } /* * class ZeroNumberFormatter extends EmptyNumberFormat { * * public ZeroNumberFormatter() { super(); } * * public ZeroNumberFormatter(NumberFormat numberFormat) { super(numberFormat, * 0); } * * @Override public Object stringToValue(String string) throws ParseException { * if (string == null || string.length() == 0) { Class clazz = * this.getValueClass(); if (clazz.equals(BigInteger.class)) return new * BigInteger("0"); if (clazz.equals(BigDecimal.class)) return new * BigDecimal(0.0); if (clazz.equals(Byte.class)) return new Byte((byte) 0); if * (clazz.equals(Double.class)) return new Double(0.0); if * (clazz.equals(Long.class)) return new Long(0); if (clazz.equals(Float.class)) * return new Float(0); return new Integer(0); } return * super.stringToValue(string); } * * @Override public String valueToString(Object object) throws ParseException { * if (object instanceof Number && ((Number) object).doubleValue() == 0.0) * return "0"; return super.valueToString(object); } */
java
{ "actions": [], "allow_rename": 1, "creation": "2021-11-15 20:47:24.219471", "doctype": "DocType", "editable_grid": 1, "engine": "InnoDB", "field_order": [ "language", "template" ], "fields": [ { "fieldname": "language", "fieldtype": "Link", "in_list_view": 1, "label": "Language", "options": "Language", "reqd": 1 }, { "description": "Use Jinja tags to represent dynamic fields, like so: {{variable}}", "fieldname": "template", "fieldtype": "Code", "in_list_view": 1, "label": "Template" } ], "index_web_pages_for_search": 1, "istable": 1, "links": [], "modified": "2021-11-22 10:41:03.354394", "modified_by": "Administrator", "module": "Frappe Telegram", "name": "Telegram Message Template Translation", "owner": "Administrator", "permissions": [], "sort_field": "modified", "sort_order": "DESC", "track_changes": 1 }
json
When the first season of 'Hip Hip Hurray' came out in 1998, it became an instant hit. The show was aired on Zee TV, and featured actors like Vishal Malhotra, Purab Kohli, Nilanjana Sharma, Nauheed Cyrusi and Piya Roy Choudhury. A show that narrated the story of 12th class students studing in DeNobili High School connected instantly with a youth making it a memorable show. 15 years later, the show is all set for a season 2 with a new cast. Consisting of young, fresh faces, the show will once again narrate the story of a group of school children. Actor Rohan Shah , who has been a well known face on Indian TV and advertisements as a child star, will play one of the lead roles. Shah shared some pics from the sets on his Instagram account. Here, have a look! Day 1! Shoot starts! Hip hip hurray! ! ! !
english
#include "test.h" using test::Framework; int main() { Framework* framework = Framework::getInstance(); framework->hidePassed(); framework->runTests(); framework->print(); framework->finish(); return framework->isAllPassed() ? 0 : -1; }
cpp
AR Rahman was recently spotted in Delhi during a storyteller event where he had a cute moment with a little fan of his and sang Humma Humma for her. Check it out! AR Rahman was recently part of the 16th edition of the Kathakar International Storytellers Festival, which took place in Delhi. The event was organized by the Government of India’s Ministry of Culture and saw a cute moment of AR Rahman with a young fan of his. A small child was seen sharing a seat along with AR Rahman during the festival and was asked what her favorite song is by the artist. The little girl said she liked the Humma Humma song, to which Rahman quickly obliged and sang a few lines from it, amazing everyone with his fantastic voice. AR Rahman singing his iconic song in front of everyone has seemingly taken everyone by surprise and riled up the emotions and morale of the event. The attendees were hooting and cheering for the artists and couldn't rest hearing him. The event was also graced by well-known personalities of Indian cinema, including Mohit Chauhan, Imtiaz Ali, Rochak Kohli, and many more. The song Humma Humma is originally from the 1995 Tamil romantic drama film called Bombay, which was directed by Mani Ratnam. The film, which had Aravind Swamy and Manisha Koirala in the leading roles, featured Sonali Bendre and Prabhu Deva's younger brother Nagendra Prasad dancing to the tunes. The film was also dubbed and released in Hindi, which went on to become a sensational hit, holding a cult standard even today. The film had AR Rahman composing its tracks, while cinematography was handled by filmmaker Rajiv Menon. The song was also reused by AR Rahman in 2017 for the film OK Jaanu, directed by Shaad Ali. Interestingly, the film was the official Hindi remake of Mani Ratnam's film O Kadhal Kanmani, which was released in Tamil back in 2015 and had Dulquer Salmaan and Nithya Menen in the leading roles. AR Rahman was recently seen composing tracks for the Hindi film Pippa, starring Ishaan Khattar and Mrunal Thakur in the leading roles. The film, directed by Raja Krishna Menon, was based on an adaptation of Brigadier Balram Singh Mehta's war memoir, 'The Burning Chaffees'. Moreover, AR Rahman is next set to compose the films Ayalaan, Lal Salaam, and Aadujeevitham in Tamil and Malayalam, respectively. The music composer is also composing tracks for films like Genie, Kadhalikka Neramillai, and Chamkila, directed by Imtiaz Ali. Furthermore, he will also once again join hands with Mani Ratnam for the Kamal Haasan film Thug Life, marking the composer's 3rd collaboration with the actor after his films Indian and Thenali.
english
MAHASHIVRATRI 2023: Mahashivratri is an auspicious Indian festival celebrated all over India by the devotees of Lord Shiva and Mata Parvati. On this day, devotees worship Lord Shiva and Mata Parvati, keep fast from sunrise to sunset, do puja, sing songs and dance to the devotional songs. According to Hindu mythology, it is believed that Lord Shiva and Mata Parvati got married on this auspicious day. While you prepare to celebrate the day with great enthusiasm, we bring to you the list of devotional songs in the Tamil language, that people of Tamil Nadu and other south Indian regions can enjoy during Mahashivratri. S. P Balasubrahmanyam’s voice makes every song unique. This devotional song, Sambo Shiva Om, takes us into the world of Shiva with the voice of S. Rajeswara Rao and S. P. Balasubrahmanyam. The song is a part of the album Siva Om Nataraja. The song released in the year 2000 and has ever since been a part of every Shiva festival in the South. The Tamilian devotional song sung by Bhushan Dua and M. Amrudaa is a popular Lord Shiva song. The song released in the year 2000 as part of the album Shiva Stuthi. It was composed by Bhushan Dua while the lyrics are penned by Gurunatha Sidhar. Namasivayamalai is sung by Veeramani Daasan. Namasivayamalai, from the album Sivame, released in the year 2009. The song released in 2000 is a part of famous devotional album Sivanaadam. The melodious voice of Veeramani K. Somu and Veeramani Raju makes the song even more beautiful. Sivan Arul Pera came out in 2001. The song is sung by H. Hanumanthachari and Vani Jayaram. It belongs to the album Sri Mahadeswarar. The devotional song is composed by H. Hanumanthachar and Poovai Amudhan has written the song.
english
<reponame>dstanek/keystone-exercises import shelve import sys import threading import time class Benchmark(object): def __init__(self, concurrency=10, iterations=10): self.concurrency = concurrency self.iterations = iterations self.shelf = Shelf() def __call__(self, f): def wrapped(*args, **kwargs): print 'Benchmarking %s...' % f.__name__, sys.stdout.flush() # build threads threads = [threading.Thread(target=f, args=args, kwargs=kwargs) for _ in range(self.concurrency)] start = time.time() for thread in threads: thread.start() while any(thread.is_alive() for thread in threads): pass end = time.time() total_time = end - start mean_time = total_time / (self.concurrency * self.iterations) task_per_sec = (self.concurrency * self.iterations) / total_time previous = self.shelf.get(f.__name__) self.shelf.set(f.__name__, total_time) if previous is not None: percent_diff = 100.0 * (total_time - previous) / previous print ('%2.3f seconds total (%+2.3f%%), %2.3f seconds per task, %2.3f tasks per second' % (total_time, percent_diff, mean_time, task_per_sec)) else: print ('%2.3f seconds total, %2.3f seconds per task, %2.3f tasks per second' % (total_time, mean_time, task_per_sec)) return wrapped class Shelf(object): def __init__(self): self.filename = '.keystoneworkout-benchmark-shelf' def get(self, key): shelf = shelve.open(self.filename) try: return shelf.get(key) finally: shelf.close() def set(self, key, value): shelf = shelve.open(self.filename) try: shelf[key] = value finally: shelf.close() def delete(self, key): shelf = shelve.open(self.filename) try: del shelf[key] finally: shelf.close()
python
import type { TransformerContainer } from '../../transformer/Transformers'; import { TransformerSet } from '../../transformer/TransformerSet'; import { CharacterIterator } from '../../util/CharacterIterator'; import { CircularBuffer } from '../../util/CircularBuffer'; import { Queue } from '../../util/Queue'; import { IntervalCollection } from '../IntervalCollection'; import type { ForwardingEdgeCollection } from './trie/edge/ForwardingEdgeCollection'; import { WhitelistTrieNode } from './trie/WhitelistTrieNode'; export class WhitelistedTermMatcher { private readonly rootNode = new WhitelistTrieNode(); private currentId = 0; private readonly matchLengths = new Map<number, number>(); // term ID -> match length private maxMatchLength = 0; private readonly transformers: TransformerSet; public constructor({ terms, transformers = [] }: WhitelistedTermMatcherOptions) { this.transformers = new TransformerSet(transformers); for (const term of terms) this.registerTerm(term); this.constructLinks(); this.useUnderlyingEdgeCollectionImplementation(this.rootNode); } public getMatches(text: string) { if (this.rootNode.edges.size === 0) return new IntervalCollection(); const usedIndices = new CircularBuffer<number>(this.maxMatchLength); const matches = new IntervalCollection(); let currentNode = this.rootNode; const iter = new CharacterIterator(text); for (const char of iter) { const transformed = this.transformers.applyTo(char); if (transformed === undefined) continue; // Returning undefined from a transformer skips that character. // Mark the current position as one used for matching. usedIndices.push(iter.position); // Follow failure links until we find a node that has a transition for the current character. while (currentNode !== this.rootNode && !currentNode.edges.get(transformed)) { currentNode = currentNode.failureLink; } currentNode = currentNode.edges.get(transformed) ?? this.rootNode; // Report matches as needed. if (currentNode.isOutputNode) { const matchLength = this.matchLengths.get(currentNode.termId)!; const startIndex = usedIndices.get(usedIndices.length - matchLength)!; // Adjust the end index by iter.lastWidth - 1 to account for surrogate pairs. matches.insert(startIndex, iter.position + iter.lastWidth - 1); } let linkedNode = currentNode.outputLink; while (linkedNode) { const matchLength = this.matchLengths.get(linkedNode.termId)!; const startIndex = usedIndices.get(usedIndices.length - matchLength)!; // Similar. matches.insert(startIndex, iter.position + iter.lastWidth - 1); linkedNode = linkedNode.outputLink; } } this.transformers.resetAll(); return matches; } private registerTerm(term: string) { if (term.length === 0) throw new Error('Unexpected empty whitelisted term.'); const id = this.currentId++; // Track the match length of this term. const chars = [...new CharacterIterator(term)]; const matchLength = chars.length; this.matchLengths.set(id, matchLength); if (matchLength > this.maxMatchLength) this.maxMatchLength = matchLength; let currentNode = this.rootNode; for (const char of chars) { const nextNode = currentNode.edges.get(char); if (nextNode) { currentNode = nextNode; } else { const newNode = new WhitelistTrieNode(); currentNode.edges.set(char, newNode); currentNode = newNode; } } currentNode.isOutputNode = true; currentNode.termId = id; } private constructLinks() { // Compute the failure and output functions for the trie. This // implementation is fairly straightforward and is essentially the exact // same as that detailed in Aho and Corasick's original paper. Refer to // section 3 in said paper for more details. this.rootNode.failureLink = this.rootNode; const queue = new Queue<WhitelistTrieNode>(); for (const node of this.rootNode.edges.values()) { node.failureLink = this.rootNode; queue.push(node); } while (queue.length > 0) { const node = queue.shift()!; for (const [char, childNode] of node.edges) { let cur = node.failureLink; while (!cur.edges.get(char) && cur !== this.rootNode) cur = cur.failureLink; childNode.failureLink = cur.edges.get(char) ?? this.rootNode; queue.push(childNode); } node.outputLink = node.failureLink.isOutputNode ? node.failureLink : node.failureLink.outputLink; } } private useUnderlyingEdgeCollectionImplementation(node: WhitelistTrieNode) { node.edges = (node.edges as ForwardingEdgeCollection<WhitelistTrieNode>).underlyingImplementation; for (const childNode of node.edges.values()) this.useUnderlyingEdgeCollectionImplementation(childNode); } } export interface WhitelistedTermMatcherOptions { terms: string[]; transformers?: TransformerContainer[]; }
typescript
Very soon the cold will come, and we will have to update our wardrobe. Honor place in it, of course, will take warm sweaters. Where without them, when in the street piercing wind or cold rain. Fashion designers sometimes yearn for the warm season, thinking that it's more difficult to be stylish and beautiful in winter or autumn. But this opinion is erroneous. In addition, this year, designers have taken care of both beauty and style, and about convenience and practicality. One of the most popular styles this season are fashionable warm sweaters with a high collar. At least one such jacket must be present in every wardrobe in case of a sharp change of weather. The collar can be both lacy and made in a different from the whole sweater binding. If we talk about the coloring of jackets, it is better to give preference to models in neutral colors. Topical colors are plum, wine, green, black, beige, white. Remained popular since last season sweaters with a chaotic pattern. The rules of coloring apply to both knitted and knitted sweaters. Popular prints of photographs on the jacket, various psychedelic drawings. By the way, pay attention to the floral print , which has not lost its positions for several seasons. Fashionable women's sweaters and sweaters are free cut and a couple of sizes larger than necessary - this is an excellent choice for girls and women of any make. In addition to the fact that such models will help to hide the shortcomings of the figure, they will also create a stunningly stylish and fashionable multi-layer image this season. Designers often create collections, models in which are made in the style of unisex . And this season fashion masters offer sweaters and sweaters in this style. These models differ in some rigor, the lack of a picture, except that there may be a small and completely unobtrusive print. The tailoring, as a rule, is free, which allows you to hide the flaws of the figure, while remaining stylish. In 2013, fashionable sweaters for girls are not only knitted models, but also knitted and cashmere sweaters and sweaters. Cashmere sweaters are pleasant to the body, so you will not remain indifferent to such a model. Especially popular this year are classic sweaters with a V-neck and a short sleeve. The model is very feminine. If you choose a fitted model, you can profitably emphasize the beautiful outlines of your figure. No less important are sweaters with large buttons or asymmetrical hem. A light note of untidiness will give a special charm and a twist to your image. Knitted things - this is a classic, which will never go out of fashion, as well as jeans. Knitted sweaters are very warm and comfortable. Putting on such a model, you involuntarily feel the comfort of your home, you just have to take a cup of hot chocolate and sit in front of the fireplace. Sweaters with a voluminous collar attract their variety. The collar can be either lacy or made in a different binding from the whole model, can be bulky and simply classic high. Knitted sweaters with buttons, zippers, volumetric sweaters and fitted models - all this is actual in 2013. Choosing any model from this series, you will not be mistaken at all. Meanwhile, the former popularity of sweaters from fine wool and angora. Such sweaters always warm in cool weather. Moreover, they will help create a very feminine and elegant image. As you can see, fashionable sweaters are represented by a large number of all kinds of styles and materials. Therefore, every woman of fashion can easily choose a suitable option for her.
english
Rodrigo De Paul's former girlfriend Cami Homs recently opened up on her relationship with Lionel Messi's girlfriend Antonela Roccuzzo. Homs recently appeared on the Argentine TV show Fer Dente. She was asked to choose between Roccuzzo and Argentine businesswoman Claudia Villafane. Homs replied, saying (via Voces Criticas): "I like them both super well. " Lionel Messi and Rodrigo De Paul are dear friends in the Argentina national team. In fact, fans have often termed the Atletico Madrid midfielder as Messi's 'bodyguard'. This is because De Paul is always protective of Messi whenever opponents try to antagonize the attacker. Lionel Messi brought an end to his Paris Saint-Germain (PSG) stint. The Argentine will now join MLS club Inter Miami as a free agent when his PSG contract expires on June 30, 2023. The 36-year-old was asked about his adaptation process at the French club. Messi had a difficult first season in France, scoring only 11 goals and providing 15 assists in his first season at PSG. Speaking about the struggle, Messi recently told beIN Sport: "I came to Paris because I liked the club, I had friends, a lot of people I knew in the dressing room. It seemed to me that, beyond what the club was, I was going to have a much easier adaptation to any other side that I could go. That's why I decided to come. " "The adaptation was very difficult, much more than I expected. Beyond the fact that I had known people in the locker room, it was difficult to adapt to the change, being late, not having a preseason. Adapting to a new way of playing, new teammates, the city, to which it was very difficult for me and my whole family to adapt to at the beginning. " Lionel Messi's move to Inter Miami marks an end to his time in European football. He will now embark on a new journey in his career. Fans will definitely keep a keen eye on as Messi continues his career in the United States.
english
body { margin: 0; background: #00a5be; font-family: system-ui; overflow-x: hidden; background-image: url('../images/asset-red.svg'); background-position: left 200px top; background-repeat: no-repeat; } .logo { grid-area: logo; margin: 0 auto 2em; display: block; } .grid { position: relative; z-index: 2; display: grid; height: calc(100vh - 8em); padding: 4em; grid-column-gap: 8em; grid-template-columns: 50px 1fr 1fr 200px; grid-template-rows: 230px 100px 1fr 1fr 1fr; grid-template-areas: "asset-top logo logo social" "name character-name avatar avatar" "about character-description avatar avatar" "asset-bottom character-text avatar avatar" "asset-bottom learn-more arrow other-line" ; } .character-image-container { grid-area: avatar; /* border: 1px solid red; */ display: flex; justify-content: center; align-items: center; } .social a { text-decoration: none; } .arrow { grid-area: arrow; cursor: pointer; /* border: 1px solid red; */ background-image: url('../images/arrow.svg'); background-repeat: no-repeat; background-position: left bottom ; } .learn-more { grid-area: learn-more; /* border: 1px solid red; */ display: flex; align-items: flex-end; font-size: 25px; text-transform: uppercase; background-image: url('../images/learn-more.svg'); background-repeat: no-repeat; background-position: left 170px bottom 5px; } .asset.top { grid-area: asset-top; /* border: 1px solid red; */ } .asset { writing-mode: vertical-rl; display: flex; align-items: center; } .asset.bottom { grid-area: asset-bottom; /* border: 1px solid green; */ justify-content: flex-end; } .navigation { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; } .navigation.name { grid-area: name; /* border: 1px solid purple; */ } .navigation.about { grid-area: about; /* border: 1px solid purple; */ } .navigation a { text-decoration: none; color: black; font-size: 25px; text-transform: uppercase; } .social { grid-area: social; /* border: 1px solid red; */ } .character-name-container { /* border: 1px solid blue; */ display: flex; align-items: center; grid-area: character-name; /* padding-inline-start: 1em; */ } .character-description-container { grid-area: character-description; } /* .navigation { transform: rotate(180deg); writing-mode: vertical-rl; position: absolute; left: 2em; height: calc(100vh - 8em); bottom: 0; text-align: center; border: 1px solid red; text-transform: uppercase; display: flex; justify-content: space-between; padding-inline: 4em; display: none; } */ .navigation .text { display: inline-flex; margin-inline: 35px; } .dot { width: 10px; height: 10px; background: black; border-radius: 50%; display: inline-flex; margin-inline: 5px; } .links { } .line { width: 2px; height: 150px; background: black; display: inline-flex; margin-inline: 15px; } .wrapper { max-width: 1280px; margin: auto; padding: 0 2em; } .character { text-align: center; } .character-image { max-width: 100%; /* width: auto; */ border-radius: 50%; } .character-label { background: #685128; padding: 1em; color: white; border-radius: 10px; text-align: left; font-size: 25px; font-weight: 400; /* display: inline-flex; */ } .character-name { position: relative; font-size: 30px; } .character-name h2:after { content: ""; width: 87px; height: 6px; background-color: #F7391C; display: inline-flex; position: absolute; left: calc(100% + 5px); top: 50%; } .placeholder-container { /* max-width: 100vw; */ overflow: hidden; position: fixed; left: 0; right: 0; bottom: 0; top: 0; } .character-name-placeholder { color: rgba(0,0,0,.1); font-size: 600px; text-transform: uppercase; justify-content: center; display: flex; align-items: center; z-index: 1; white-space: nowrap; position: absolute; left: 0; right: 0; bottom: 0; top: 0; } @media screen and (max-width: 1440px) { .grid { column-gap: 2em; } } @media screen and (max-width: 1024px) { body { background-position: left 50px top; } .grid { height: auto; padding: 2em 0; width: calc(100vw - 2em); margin: 0 auto; column-gap: 1em; grid-template-columns: 50px 1fr 1fr; grid-template-rows: repeat(6, auto); grid-template-areas: "logo logo logo" "name avatar avatar" "name character-name character-name" "about character-description character-description" "arrow arrow arrow" "social social social"; } .logo { max-width: 100%; } .character-name { text-align: center; } .character-name h2:after { left: 0; top: calc(100% - 20px); } .character-name-container{ margin-top: 1em; justify-content: center; } .social { text-align: center; margin-top: 2em; } .asset { display:none; } .learn-more { display: none; /* padding-inline-start: 1em; */ } .arrow { user-select: none; height: 50px; background-position: center; } .character-image-container img{ /* display: none; */ } .social a { margin-left: 2em; } .social a:first-child { margin-left: 0; } }
css
<filename>scripts/update.py from scripts.helpers.packages import ( update_alpine_packages, update_base_images, update_python_packages, ) from scripts.helpers.update_feature_packages import update_s6, update_netcore update_netcore("3.1") update_netcore("5.0") update_s6() update_base_images() update_alpine_packages() update_python_packages()
python
In a game dominated by batsmen, it is rare that a bowler emerges out of nowhere and goes on to play a huge role in the success of his team in his very first series. Yet in the history of Test match cricket, 6 of the 9 players to win the Man of the Series award in their debut series, are bowlers. It shows that all it takes for the bowlers to emerge successful is to stick to what they do best in the domestic arena. While many of the players may have already played International cricket in other formats, to succeed in Tests requires the virtue of patience, to be relentless against the batsmen and to plot and execute the plans. Most of the bowlers emerging onto the International scene these days have shown the right aptitude and thinking, but rarely execute their plans to perfection from the word go. Let us take a glance through the 6 terrific bowlers to win a ‘Man of the Series’ award in their debut Test series. A forgotten Aussie pace bowler, in the mould of the legendary Glenn McGrath, Stuart Clark made his Test debut in March 2006 in South Africa, flying in as a replacement for his role model, McGrath. He had been in the Test squad before but was yet to win a baggy green. When he did get it at Cape Town against a strong South African batting line-up, he made it count with a five-wicket haul in his debut innings. He followed that up with 4 more wickets in the second innings, to take a match haul of 9/89. After taking two wickets apiece in Durban in the second Test of the tour, Clark was back at his best in Johannesburg. He took 3/81 in the first innings and ripped through the South African line-up with a 4/64 in the second, to finish the series with 20 wickets at an average around 15. With the gift of accuracy, Clark relentlessly tested the batsmen outside the off-stump and proved to be a menace in the absence of McGrath. A mystery spinner, Ajantha Mendis made a stunning ODI series debut. His Test debut was even more dramatic. Playing against the Indians in July/Aug 2008, in his first Test series, Mendis took 26 wickets in 3 Tests at an average of 18. 38. In his first Test at Colombo (SSC), Mendis took 4 wickets apiece in each innings as he finished with match figures of 8/132. He continued to trouble the Indian batsmen, who were struggling to read his umpteen variations, in Galle as he picked up 6/117 in the first innings and 4/92 in the second. By the time the third Test had started in Colombo (PSS), Mendis was the most talked about Sri Lankan spinner. He once again resorted to his bag of tricks and ran through the Indian line-up with a five-wicket haul in the first innings. He added three more in the second to finish with match figures of 8/137. He had 2 five-wicket hauls and one 10-wicket haul to show for his efforts at the end of the series. The brilliant Indian off-spinner emerged from the shadows of Harbhajan Singh in his debut series against the West Indies at home in November 2011. In Delhi in his debut Test, he picked up three in the first innings and six in the second to finish with figures of 9/128 in the match. While he picked up 2 wickets apiece in Kolkata, his best was reserved for Mumbai in the final Test. He picked up 5/156 in the first innings and when he got a chance to bat, notched up his first Test ton, a 103. Ashwin had been known as an all-rounder in the domestic circuit, but it was his first exhibition of talents with the willow on the International stage. As though his contribution was still not sufficient, he picked up a further 4 wickets in the second innings. Ashwin had picked 22 wickets in the 3 Tests and averaged 40. 33 with the bat including a century to emerge as the undisputed winner of the ‘Man of the Series’ trophy. Philander had to wait 4 years since his debut in color clothing for a chance at the Test level. He made the chance count in all manners, to emerge as a frontline bowler in South Africa’s pace attack in Tests. In his debut Test at Cape Town in November 2011, Philander warmed up with three wickets in the first innings. After South Africa were bowled out for 96 in their second innings, Philander turned the screws tighter with a 5/15 to bowl out Australia for 47 and emerge as Man of the Match in his debut outing. Philander furthered his claims in Johannesburg in the second Test with another fifer in the second innings. His stump to stump line and ever so slight nip back in or away made him a huge threat in bowler friendly conditions. He finished as the Player of the Series with 14 wickets in 2 Tests at an average of 13. 92 and best of 5/15. The Aussie fast bowler had a terrific debut series in Tests against the Kiwis at home in December 2011. He picked up 14 wickets in 2 Tests at an average of 14. 0 and best of 5/27, which to date remains his best bowling figures. In the first Test against the visiting New Zealand in Brisbane, Pattinson had a match haul of 6/91. In Hobart, he bettered the run with a five-wicket haul in the first innings and grabbed three more in the second. Pattinson had all the right qualities required of a fast bowler at Test level – pace, accuracy and consistency. What he did not have was luck with injuries. A bout of injuries saw him play only 15 more Tests for Australia, in which he took 70 wickets at an impressive average of 26. 15. The sensational Bangladesh newbie off-spinner, Mehedi Hasan Miraz, emerged from a successful stint with the U-19 squad, to lead Bangladesh’s spin attack against the visiting England side. He started off his Test debut in style with a six-wicket haul in the first innings, troubling the array of left-handers in the English line-up with drift, turn and arm balls. He finished the match with a haul of 7/138 and unfortunately ended up on the losing side. In his second Test match and the final one of the series, the off-spinner took the bowling attack on his young shoulders and picked up 6 wickets apiece in both innings, completely dumbfounding the England batsmen with his guile. A match haul of 12/159 in a Test is the joint highest for a Bangladesh bowler. His 19 wickets in the series also became the highest for a Bangladesh bowler in any Test series.
english
<reponame>HackYourFuture-CPH/fp-class19<filename>src/client/components/OfferProductsList/OfferProductsList.stories.js import React from 'react'; import OfferProductsList from './OfferProductsList.component'; export default { title: 'Components / Offer Product List', component: OfferProductsList, argTypes: { products: { control: '' }, }, }; const template = ({ products }) => <OfferProductsList products={products} />; export const ProductsList = template.bind({}); ProductsList.args = { products: [ { id: 17, name: 'Helianthemum', price: 78, color: 'purple', size: 'l', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 20, picture: 'https://via.placeholder.com/500x500', }, { id: 18, name: '<NAME>', price: 70, color: 'white', size: 's', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 30, picture: 'https://via.placeholder.com/500x500', }, { id: 19, name: 'Helenium “Waltraut”', price: 80, color: 'blue', size: 'sm', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 20, picture: 'https://via.placeholder.com/500x500', }, { id: 20, name: 'Crocosmia “Mistral”', price: 85, color: 'orange', size: 'xxl', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 20, picture: 'https://via.placeholder.com/500x500', }, { id: 21, name: 'Fuchsia', price: 90, color: 'white', size: 's', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 35, picture: 'https://via.placeholder.com/500x500', }, { id: 22, name: '<NAME>', price: 82, color: 'blue', size: 'sm', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 45, picture: 'https://via.placeholder.com/500x500', }, { id: 23, name: 'Hydrangea', price: 60, color: 'green', size: 'xl', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 50, picture: 'https://via.placeholder.com/500x500', }, { id: 24, name: '<NAME>', price: 79, color: 'yellow', size: 'xxl', is_available: true, stock_amount: 100, is_on_discount: true, discount_percent: 25, picture: 'https://via.placeholder.com/500x500', }, ], };
javascript
Anna University, Chennai has signed a has signed a Memorandum of Understanding (MoUs) with the All India Council for Technical Education (AICTE) and L&T EduTech, a hybrid learning platform from Larsen & Toubro. The MoUs have been singed for completion of abridged industry-oriented courses to the students of Anna University and to offer a learning module to engineering students. The learning modules offered by L&T EduTech will now be featured on the AICTE website and will be accessible to engineering students across the country. This will reinforce the students conceptual learning and expose them to the tenets of professional practice from an industry standpoint thus improving their employability quotient, the edtech said in its official press release. L&T EduTech offers courses under three verticals of college connect, professional and vocational skilling underpinned by robust assessment and certification processes, said the official press release. These courses are in line with the credit system for engineering and can fit into the existing semester pattern as well. Read all the Latest News , Breaking News and IPL 2022 Live Updates here.
english
from django.db.models.signals import pre_delete, pre_save from django.dispatch import receiver from task.models import InveraTask, TaskLogs from datetime import datetime from django.contrib.auth.signals import user_logged_in, user_logged_out, user_login_failed @receiver(pre_delete, sender=InveraTask) def audit_log_delete(sender, instance, **kwargs): TaskLogs.objects.create(date_log=datetime.now(), action_log='Elimino la tarea: %s' % (instance.title)) @receiver(pre_save, sender=InveraTask) def audit_pre_save_task(sender, instance, **kwargs): if instance._state.adding: TaskLogs.objects.create(date_log=datetime.now(), action_log='Creo una tarea nueva') else: TaskLogs.objects.create(date_log=datetime.now(), action_log='Modifico la tarea: %s' % (instance.title)) @receiver(user_logged_in) def user_logged_in_callback(sender, user, request, **kwargs): ip = request.META.get('REMOTE_ADDR') TaskLogs.objects.create(date_log=datetime.now(), action_log='El usuario %s se logueo correctamente desde: %s' % (user, ip)) @receiver(user_logged_out) def log_logged_out(sender, user, request, **kwargs): TaskLogs.objects.create(date_log=datetime.now(), action_log='El usuario %s cerro su sesion' % (user)) @receiver(user_login_failed) def log_login_failed(sender, request, credentials, **kwargs): ip = request.META.get('REMOTE_ADDR') TaskLogs.objects.create(date_log=datetime.now(), action_log='Intentaron loguearse con el username %s desde: %s' % (credentials['username'], ip))
python
package seedu.scheduler.logic.parser; /** * A flag that indicates additional options in an arguments string. * E.g. '-a' in 'delete 1 -a'. */ public class Flag extends Identity { public Flag(String flag) { super(flag); } public String getFlag() { return getIdentity(); } public String toString() { return getFlag(); } @Override public boolean equals(Object obj) { if (!(obj instanceof Flag)) { return false; } if (obj == this) { return true; } Flag otherFlag = (Flag) obj; return otherFlag.getFlag().equals(getFlag()); } }
java
<gh_stars>10-100 const makeRouter = require("../../src/fx/makeRouter"); describe("makeRouter", () => { it("should be a function", () => expect(makeRouter).toBeInstanceOf(Function)); it("should handle invalid routes", () => { const router = makeRouter(42); const matchedRoute = router({ request: {} }); expect(matchedRoute).toBeUndefined(); }); it("should handle empty routes", () => { const router = makeRouter(); const matchedRoute = router({ request: {} }); expect(matchedRoute).toBeNull(); }); describe("with example routes", () => { const rootFallbackAction = jest.fn(); const pathFallbackAction = jest.fn(); const someReadAction = jest.fn(); const someAddAction = jest.fn(); const otherAction = jest.fn(); const routes = { _: rootFallbackAction, path: { _: pathFallbackAction, some: { GET: someReadAction, POST: someAddAction }, other: { $id: otherAction } } }; const router = makeRouter(routes); it("should use root fallback", () => expect( router({ request: { path: "/unknown/path", method: "GET" } }) ).toEqual([{ request: { params: {} } }, rootFallbackAction])); it("should use nested fallback", () => expect( router({ request: { path: "/path/unknown", method: "GET" } }) ).toEqual([{ request: { params: {} } }, pathFallbackAction])); it("should match nested GET request", () => expect( router({ request: { path: "/path/some", method: "GET" } }) ).toEqual([{ request: { params: {} } }, someReadAction])); it("should match nested POST request", () => expect( router({ request: { path: "/path/some", method: "POST" } }) ).toEqual([{ request: { params: {} } }, someAddAction])); it("should match request with params", () => expect( router({ request: { path: "/path/other/123", method: "GET" } }) ).toEqual([{ request: { params: { id: "123" } } }, otherAction])); }); it("should handle precedence for same method nested in a route with path param", () => { const rootAction = jest.fn(); const nestedAction = jest.fn(); const router = makeRouter({ $id: { GET: nestedAction }, GET: rootAction }); expect( router({ request: { path: "/", method: "GET" } }) ).toEqual([{ request: { params: {} } }, rootAction]); expect( router({ request: { path: "/123", method: "GET" } }) ).toEqual([{ request: { params: { id: "123" } } }, nestedAction]); }); });
javascript
<reponame>LukasHeidern/Univem-Aulas '''8) Elabore um algoritmo que leia 3 valores inteiros (a,b e c) e os coloque em ordem crescente, de modo que em a fique o menor valor, em b o valor intermediário e em c o maior valor. ''' a = int(input("Digite o valor do primeiro valor: ")) b = int(input("Digite o valor do segundo valor: ")) c = int(input("Digite o valor do terceiro valor: ")) print(f"Antes: {a} - {b} - {c}") if a > b: a,b = b,a if a > c: a,c = c,a if b > c: b,c = c,b print(f"Depois: {a} - {b} - {c}")
python
The duo of Sania Mirza and Mate Pavic made it to the next round with the 6-4, 3-6, 7-5 win over Dabrowski and Peers in the Wimbledon 2022 mixed doubles quarterfinal. India’s Sania Mirza and her Croatian mixed doubles partner Mate Pavic will take on second seeds Neal Skupski of Great Britain and Desirae Krawczyk of the US in the Wimbledon 2022 mixed doubles semifinal clash on Wednesday (July 6). Sania and Pavic beat fourth-seeded Canadian-Australian pair of Gabriela Dabrowski and John Peers to seal their place in the mixed doubles semi-finals of Wimbledon 2022. The duo of Mirza and Pavic made it to the next round with the 6-4, 3-6, 7-5 win over Dabrowski and Peers. This is Mirza’s best mixed doubles performance at the All England Club. She had previously reached the quarterfinals in 2011, 2013 and 2015. A Wimbledon title is the only mixed doubles Grand Slam missing from her trophy cabinet. Mirza, a six-time Grand Slam winner, has already announced her retirement at the end of this season. Meanwhile, Ajla Tomljanovic after two hours and 34 minutes of dizzying all-court rallies, overcame French No.1 Alize Cornet 4-6, 6-4, 6-3 to book a spot in the quarterfinals at All England Club once again. Tomljanovic is the first Australian woman to reach back-to-back Wimbledon quarterfinals since Jelena Dokic reached the quarterfinals in 1999 and the semifinals in 2000. The Australian had a topsy-turvy victory over Cornet during her Wimbledon campaign last year as well, defeating the Frenchwoman in three sets in the second round. History repeated on No.2 Court on Monday, and Tomljanovic now has a 3-2 lead in their head-to-head clashes. When will Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk take place? The Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk will take place on Wednesday (July 6). What time will Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk take place? The Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk will take place from 730pm IST. Where can I watch Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk on TV in India? The Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk will be telecast live on Star Sports network. How can I watch livestream of Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk? You can watch livestream of Wimbledon 2022 mixed doubles semifinal between Sania Mirza and Mate Pavic vs Neal Skupski and Desirae Krawczyk on Disney+ Hotstar website and app.
english
{"localities": ["Smelterville, ID"], "state": "ID", "postal_code": "83868", "locality": "Smelterville, ID", "lat": 47.555855, "region": {"fips": "16", "abbr": "ID", "name": "Idaho"}, "city": "Smelterville", "type": "STANDARD", "lng": -116.174929, "counties": [{"fips": "079", "name": "Shoshone County"}]}
json
Long-distance passengers were a harried lot as most of the buses either did not turn up or turned up late at the KSRTC Bus Stand in Mangalore on Thursday on account of the strike called by the Joint Committee of Trade Unions of Karnataka State Road Transport Undertakings. As many as 210 State Transport buses pass through the temple-town of Udupi daily. According to three Traffic Controllers at the KSRTC Bus Stand in Udipi, over 20 buses from Hubli, Chikmagalur and Dharmasthala did not arrive at Udupi. Daytime buses to areas such as Chamarajnagar, Yellapur, Karwar, Hubli, Dandeli, Mysore, had not arrived in Udupi. Hundreds of passengers were inconvenienced. However most of the buses of the Mangalore Division were operating. The Volvo bus service from Mangalore to Manipal was operating, according to officials. But the situation on the ground was worse. A conductor of the Mangalore-Hubli bus, which arrived here at 10. 20 a. m. , told passengers, who were anxiously querying him if the bus would indeed reach Hubli, that he could only guarantee the bus reaching the nearest town of Kundapur. Prakash, a conductor of the Mangalore-Sangli bus told The Hindu that his bus which used to reach Udupi at 3. 15 p. m. had arrived here at 5. 30 p. m. “I have only one passenger in the bus. Normally, there would be a minimum of 20 passengers, he said. Mahesh, a native of Thimmapur village in Gadag district, who worked in Katipalla near Surathkal, said he was waiting for a bus for Gadag. “My daughter is ill in Thimmapur. I am anxious to go and see her. I am struggling to get a bus,” he said. Mangalore Correspondent writes: Services of the Karnataka State Road Transport Corporation were affected partially on Thursday. While most of the buses left as per schedule, a few buses bound for Bangalore and Mysore were cancelled. There were only a few mechanics working at the four KSRTC depots in Mangalore. Till around 2 p. m. 120 buses proceeded as per schedule to various destinations, said KSRTC Mangalore Divisional Controller M. Mahesh. Among these were city bus, shuttle and Volvo bus services. One multi-axle bus bound for Bangalore was cancelled and it was replaced by a Volvo bus. “We had to refund passengers the difference (Rs. 40),” he said. Mr. Mahesh said there has not been any disruption of service in Puttur and Udupi divisions. But there was a problem near Sakleshpur. “Arrangements are being made to send buses in batch of 20 with police escort,” he said. Sense of uncertainty gripped several passengers who were not sure if the buses were operating. “When I called up in the morning, the KSRTC control room personnel told me that all buses were running. But it was a different situation when I landed here. Drivers and conductors were prompting us to cancel our tickets fearing stoppage midway. There was no help from the officials here,” said Dilawar Singh, who was waiting at the bus stand hoping to catch a Volvo bus to Bangalore by noon. A conductor said many passengers who had booked ticket on Bangalore-bound multi-axle bus cancelled their trip after being told that the trip had been cancelled. “Only a few passengers are going by this Volvo bus, which replaced the multi-axle bus. There has been poor passenger turn out,” the conductor said. Asked about the reason for the lukewarm response of employees to the strike in Mangalore, S. L. Patil, a driver, said this was because of efforts made by KSRTC Division officials in putting forward information about increment and other service benefits given by the KSRTC so far. “Moreover, we were also told not to go on strike as it affects common people. We are in public service and we cannot afford to cause problem to people,” he said.
english
html,body { font-family:-apple-system,BlinkmacsystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; color: #2c3e50; } ui{ line-height:1.5em; padding-left: 1.5em; } a{ color: #7f8c8d; text-decoration: none; } a:hover{ color: #4fc08d; }
css
After finishing on the podium at the Asian Games and Commonwealth Games, India’s Avinash Sable has set his sights on the Olympics. The 28-year old Steeplechaser has already began to chart out plans to prepare the best possible way for the mega event. Having already planned to shift his training base to Morocco, Sable now plans one more big move. The athlete has been relying upon YouTube videos for the mental aspects of training so far. He now wants to hire a mental conditioning coach to assist him ahead of the Olympics. “To win an Olympic medal, I need a complete package. I had a physio but I did the mental conditioning part through video when I was in Colorado Springs. I need mental conditioning and support staff to deal with the mental aspect,” Sable told PTI. He has so far been taking lessons on Yoga, meditation and breathing exercises through YouTube videos. “Many people told me to do Yoga, meditation and breathing exercises. I have not done these before. But I did these during Asian Games by watching YouTube. I found it beneficial,” he added. It was indeed super beneficial as Sable won two medals at the Asian Games. In the 3000m Steeplechase, he finished first in the race with an impressive timing of 8 minutes and 19.50 seconds and set the Games record in the process. Meanwhile he also won the silver medal in the 5000m. He will however be in action only in the Steeplechase at the Paris Olympics.
english
<gh_stars>0 package com.aidev.system.service; import com.aidev.common.core.domain.entity.SysRole; import com.baomidou.mybatisplus.extension.service.IService; import java.util.List; import java.util.Set; /** * 角色业务层 * * @author aidev */ public interface ISysRoleService extends IService<SysRole> { /** * 根据条件分页查询角色数据 * * @param domain 角色信息 * @return 角色数据集合信息 */ List<SysRole> selectRoleList(SysRole domain); /** * 根据用户ID查询角色 * * @param userId 用户ID * @return 权限列表 */ Set<String> selectRoleKeys(Long userId); /** * 根据用户ID查询角色 * * @param userId 用户ID * @return 角色列表 */ List<SysRole> selectRolesByUserId(Long userId); /** * 查询所有角色 * * @return 角色列表 */ List<SysRole> selectRoleAll(); /** * 批量删除角色用户信息 * * @param ids 需要删除的数据ID * @return 结果 * @throws Exception 异常 */ boolean deleteRoleByIds(String ids); /** * 新增保存角色信息 * * @param role 角色信息 * @return 结果 */ boolean insertRole(SysRole role); /** * 修改保存角色信息 * * @param role 角色信息 * @return 结果 */ boolean updateRole(SysRole role); /** * 修改数据权限信息 * * @param role 角色信息 * @return 结果 */ boolean authDataScope(SysRole role); /** * 校验角色名称是否唯一 * * @param role 角色信息 * @return 结果 */ String checkRoleNameUnique(SysRole role); /** * 校验角色权限是否唯一 * * @param role 角色信息 * @return 结果 */ String checkRoleKeyUnique(SysRole role); /** * 校验角色是否允许操作 * * @param role 角色信息 */ void checkRoleAllowed(SysRole role); /** * 角色状态修改 * * @param role 角色信息 * @return 结果 */ boolean changeStatus(SysRole role); }
java
{ "name": "reliable.io", "version": "1.0.0", "description": "A javascript port of reliable.io", "main": "index.js", "private": true, "scripts": { "fuzz": "DEBUG=reliable.io node fuzz", "soak": "DEBUG=reliable.io node soak", "test": "tap test -C", "test-local": "DEBUG=reliable.io node ./node_modules/.bin/tap test -C" }, "repository": { "type": "git", "url": "git+https://github.com/mreinstein/reliable.io.js.git" }, "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/mreinstein/reliable.io.js/issues" }, "homepage": "https://github.com/mreinstein/reliable.io.js#readme", "engines": { "node": ">= 6" }, "devDependencies": { "debug": "^3.1.0", "tap": "^11.1.0" }, "dependencies": {} }
json
A day after Ashish Ram, a 19-year-old student from Darbhanga, was killed on the Nepal side of the Miteri (Friendship) bridge after Nepal police opened fire, Raxaul remained tense on Tuesday. It took almost 30 hours for the body to be returned from a hospital in Birgunj to Raxaul. According to reports, Ashish was shot in the head. Amid fears of violence, the funeral procession was short, marked by anti-Nepal slogans. His family claimed the authorities in Nepal wanted them to sign a letter stating that Ashish was among the protesters on the bridge. For a couple of months now, Madhesis, protesting against the new Constitution of Nepal, have been on a sit-in on no-man’s land in the middle of the bridge that demarcates the Raxaul-Birgunj border between the two countries. “They tore up the letter we gave stating that he was returning after meeting friends in Birgunj. They wanted a letter from us stating that he was among the protesters,” said Mahendra Ram, the boy’s grandfather. Ashish was visiting his family in Raxaul. After frantic negotiations, the letter did not have to be signed. The protesters said they belong to nobody. “We are independent, we have nothing to do with India,” said Nur Alam Ansari, who was on the bridge when Nepal police cracked down at 4. 50 am on Monday. “But we have relatives in India. We even set the Chinese flag on fire. We are not among those in Nepal who want to abuse Modiji after he gave us 10 years’ worth of food during the earthquake,” said Srinarayan Sah. Indian authorities had cleared the bridge for polling Sunday, after coming to an understanding with the protesters. When the protesters tried to return to the bridge, the Nepal police barred their entry. “About 60 of us crossed the river on foot and got back on the bridge from the Indian side,” said Dhurendra Patel. He claimed the Nepal police set fire to their tents. Ashish was shot at around 1:30 in the afternoon. “We had retreated to no-man’s land (30 feet on either side from the middle of the bridge) after setting tyres on fire. There was stone-pelting; the police used tear gas. Then they began shooting,” said Patel. Echoing Sah, Purnima Bharti, East Champaran president of BJP’s Mahila Morcha, said: “The Nepal government should show some gratitude to us after we helped them with so much food during the earthquake. BJP leader Mahesh Agrawal admitted his party’s support to the Madhesi cause — he runs the community kitchen for the activists. “Five more days and we could have ended this. A soft landing for all sides concerned,” he said. “The Nepal government would have agreed to two of the three Madhesi demands and kept the part about redrawing boundaries in suspended animation by leaving it to a commission,” he said. Ashish was shot barely 100 metres from where Sabya Khatun stood on Tuesday afternoon. She was returning from Raxaul with a 10 kg bag of rice and another bag of eggplant on her head. “Let them shoot me,” she said. “Everything is so expensive in Nepal now. I have to walk to Raxaul everyday,” she said.
english
St. Petersburg: Russian President Vladimir Putin compared himself favourably to Peter the Great, a Russian monarch from the late 17th century, using the likening to justify Russia’s invasion of Ukraine, the media reported. During a visit on Thursday to an exhibition dedicated to the first Russian Emperor, Putin attempted to liken Peter the Great’s conquest of Sweden in the 18th century to his own modern day military invasion of Ukraine, CNN reported. In his comments, Putin argued that Peter the Great was not conquering, but rather fighting over territory that rightfully belonged to Russia. He went on to draw a parallel to today’s war in Ukraine, suggesting Russia’s recent military actions — where his troops have destroyed Ukrainian cities, and killed thousands of innocent men, women and children — are justified, because Ukraine is not a legitimate sovereign nation, but in fact Russian territory. Putin continued, adding that European countries did not recognize St. Petersburg as Russian at first, equating it to the current situation in the Russian-occupied Ukrainian territories, including Crimea, that the US and European allies do not acknowledge as Russian, CNN reported. Intense fighting is ongoing for control of the eastern Ukrainian city of Severodonetsk, with no major changes reported in the past day, according to Ukrainian officials. “The situation in Severodonetsk is very tense,” Roman Vlasenko, head of the Severodonetsk district military administration, told Ukrainian national television, CNN reported.
english
<filename>DataSources/raw/zeronet/1White24UrrwQrD86o6Vrc1apgZ1x1o51/data/users/1PCRVVWkwM1x6LYvVohqDYTY7Rbk54jbmr/content.json<gh_stars>1-10 { "address": "1White24UrrwQrD86o6Vrc1apgZ1x1o51", "cert_auth_type": "web", "cert_sign": "<KEY> "cert_user_id": "<EMAIL>", "files": { "data.json": { "sha512": "7d29747dfccab8b40c407274f70b4affa53378d68edbd080c69565aec3c1c4e3", "size": 445 } }, "inner_path": "data/users/1PCRVVWkwM1x6LYvVohqDYTY7Rbk54jbmr/content.json", "modified": 1493732660, "signs": { "1PCRVVWkwM1x6LYvVohqDYTY7Rbk54jbmr": "<KEY> } }
json
He grabbed attention across the india for lavishing expensive Diwali gifts for their employees. Savjibhai Dholakia become center of talk on Diwali occasion by gifting 500 Fiat Punto cars, 207 2BHK apartments and 570 jewelery sets. The Hari Krishna Exports diamond merchants who surprised their employees with expensive gifts. Dholakia is a school dropout who began polishing diamonds at age 12 as an apprentice under his uncle. Later he started his own business in 1992 with a turn over of 100 crores, now its reached to almost 6000 crores. He and his 3 brothers are the crucial partners in this business. Speaking to media Savji said " we have faced huge problems in our life's. Though we are uneducated our employees effort put us in this place today. We should not forget them. the gifts we given is actually its a payback to our employees who worked hard for us" From the reports its came to know that almost 1200 employees are fall in the special category who segregated on the basis of last year performance. Employees expressed their happiness while talking to media and thanked their boss with huge respect.
english
School buildings are meant for children. They are designed for them, yet somehow do not relate to them in a holistic way. Each component of the school is somehow conceived in isolation, with little consideration about what the child is finally going to experience as a whole. This work is about making the building components active facilitator in the whole process of teaching-learning (which is the primary function of the school) for children and teachers (who are the primary users). BaLA (Building as Learning Aid) is an innovative concept towards qualitative improvement in education, through intervention in school building infrastructure. What is BaLA ? BaLA is a way to holistically plan and use the school infrastructure. It incorporates the ideas of activity based learning, child friendliness and inclusive education for children with special needs (CWSN). At the core, it assumes that the architecture of school can be a resource for the teaching-learning processes. Since buildings are the most expensive physical assets of a school, efforts should be made to derive maximum educational value from them. Thus, BaLA is about exploring uniqueness of three dimensional space as a child friendly learning resource for all children. The building elements of normal concrete shapes are modified innovatively to involve children creatively. The different elements of BaLA may be located in interior and exterior spaces like classrooms, corridors and backyard so that a variety of learning situation are generated across the school space. The built structure of the school can also provide shelter during educational activities. There are two levels of this intervention: The different elements which have been considered and constructed by SSA in different schools of Gujarat are given below: - Mystery Wall : Mystery wall in the school corridor offers opportunities of peeping and hiding. Children love to disappear and watch others from behind or play hide and seek or such other game. - Alphabet shape Board : Alphabet shapes can be used to draw pictures of objects beginning with the same sound as the alphabet. This is a fun way of learning alphabets and recognizing their shapes. Children can use these alphabet pictures to write words and sentences. This can become an interesting language activity. - Pipe Phone in Grab Bar: A grab bar on the ramp or in a corridor is a useful provision for differently able children. Notonly it supports and guides their movements but it can be used as pipe phone. The pipeshould be at least 5 cm. diameters, while the length can vary to suit its basic function. Both the ends should be hollow and all obstructions in the length of the pipe should be eliminated. - Grooved Writing Patterns on Walls : Learning materials in a tactile medium are useful for all children, particularly for the visually, hearing or speech impaired. Grooved writing patterns on walls can help all the children totrace and strengthen their finger muscles. This will strengthen the movement required forwriting an alphabet shape and enable feeling it (the shape) through finger or wrist movements. - Measurement Scales :The length width and height of the classroom, doors and windows can pointed so that children know how much is 2m, 3m or 6m in the real world. Similarly a unit length of floor panel can be used to estimate the entire length of corridor. With a measurement scale pointed in the space around them, they can even measure themselves or objects that they use frequently. - Door Angle Protector : Under the door shutter of class rooms Angle Protector is painted that can help to develop sense of angle measurement. The door shutter swings a range of angles when it opens. This can be made in a variety of ways – simply paint the angular lines, or make floor panels while repairing or making a new floor. - Fractions Aids : It is always helpful if the children can see or touch physical object to understand the concept of ‘whole’ and its ‘parts’ of fraction. Fraction can be made on window grills, tiles on walls and floors. - Tangram Tiles : Tangram tiles are based on the geometric puzzle of seven pieces. A square is cut into seven geometric shapes, which can be arranged in thousands of ways to create human figures, animals, geometrical shapes, alphabets and so on. The essential condition in a Tangram puzzle is that all the seven pieces must be used to make shape. This knowing can make geometry a lot of fun. - Planetary Orbits on Ground : Children enjoy revolving around poles or anything that allows circular motion. The space around a flagpole or pillar is a suitable place to locate the design. The nine orbits can be divided into four quadrant to represent seasons. Each quadrant is further subdivided in three so that there are a total of 12 equal sections which can represent the 12 months of a rotating earth. It is the three-dimensional relationship of children (as planets) to the pole (as the sun) that will help them understand various concepts. - Map of Classrooms : An outline map of a classroom may be made on a horizontal surface like teacher’s table or the floor. This will introduce them to a map by linking it to their immediate surroundings. - Map of the School on a Platform : A large outdoor floor map of the school allows children to observe places, objects, routes and trees around them and locate them on the map. This can be made on a horizontal or vertical surface preferable in a central location from where children are likely to pass every day and see the entire school space. The map should be oriented in the same direction as the school. - Map of a State Country : The large outlined map of a state/country lined with bricks and mud/sand filling the inside enables children learning by doing. Children can create their own mountains, valleys and rivers. They can make ships in the ocean and cars or trucks on land. In doing so they can also get a sense of the direction they are moving in. The experience thus generated to understand shapes and forms is likely to be more lasting than mere textbook information. For more information, click here.
english
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package clas; import java.text.SimpleDateFormat; import java.util.Date; /** * * @author Lobdown */ public class DateConverter { /** * Gregorian & Jalali (Hijri_Shamsi,Solar) Date Converter Functions Author: * JDF.SCR.IR =>> Download Full Version : http://jdf.scr.ir/jdf License: * GNU/LGPL _ Open Source & Free _ Version: 2.72 : [2017=1396] * -------------------------------------------------------------------- 1461 * = 365*4 + 4/4 & 146097 = 365*400 + 400/4 - 400/100 + 400/400 12053 = * 365*33 + 32/4 & 36524 = 365*100 + 100/4 - 100/100 */ public static int[] gregorian_to_jalali(int gy, int gm, int gd) { int[] g_d_m = {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; int jy; if (gy > 1600) { jy = 979; gy -= 1600; } else { jy = 0; gy -= 621; } int gy2 = (gm > 2) ? (gy + 1) : gy; int days = (365 * gy) + ((int) ((gy2 + 3) / 4)) - ((int) ((gy2 + 99) / 100)) + ((int) ((gy2 + 399) / 400)) - 80 + gd + g_d_m[gm - 1]; jy += 33 * ((int) (days / 12053)); days %= 12053; jy += 4 * ((int) (days / 1461)); days %= 1461; if (days > 365) { jy += (int) ((days - 1) / 365); days = (days - 1) % 365; } int jm = (days < 186) ? 1 + (int) (days / 31) : 7 + (int) ((days - 186) / 30); int jd = 1 + ((days < 186) ? (days % 31) : ((days - 186) % 30)); int[] out = {jy, jm, jd}; return out; } public static int[] jalali_to_gregorian(int jy, int jm, int jd) { int gy; if (jy > 979) { gy = 1600; jy -= 979; } else { gy = 621; } int days = (365 * jy) + (((int) (jy / 33)) * 8) + ((int) (((jy % 33) + 3) / 4)) + 78 + jd + ((jm < 7) ? (jm - 1) * 31 : ((jm - 7) * 30) + 186); gy += 400 * ((int) (days / 146097)); days %= 146097; if (days > 36524) { gy += 100 * ((int) (--days / 36524)); days %= 36524; if (days >= 365) { days++; } } gy += 4 * ((int) (days / 1461)); days %= 1461; if (days > 365) { gy += (int) ((days - 1) / 365); days = (days - 1) % 365; } int gd = days + 1; int[] sal_a = {0, 31, ((gy % 4 == 0 && gy % 100 != 0) || (gy % 400 == 0)) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int gm; for (gm = 0; gm < 13; gm++) { int v = sal_a[gm]; if (gd <= v) { break; } gd -= v; } int[] out = {gy, gm, gd}; return out; } public static String getToday() { int y = Integer.parseInt(new SimpleDateFormat("Y").format(new Date())); int m = Integer.parseInt(new SimpleDateFormat("M").format(new Date())); int d = Integer.parseInt(new SimpleDateFormat("d").format(new Date())); int[] today = DateConverter.gregorian_to_jalali(y, m, d); return today[0] + "-" + today[1] + "-" + today[2]; } public static int[] getDate() { int y = Integer.parseInt(new SimpleDateFormat("Y").format(new Date())); int m = Integer.parseInt(new SimpleDateFormat("M").format(new Date())); int d = Integer.parseInt(new SimpleDateFormat("d").format(new Date())); int[] date = DateConverter.gregorian_to_jalali(y, m, d); return date; } }
java
/* General */ html, body { font-family: 'Lora', sans-serif; height: 100%; margin: 0; } /* code */ code { background-color: #f5f5f5; display: block; width: 100%; margin: 0 auto; font-size: 20px; } /* Headers */ .main-section header { font-size: 24px; } header { font-weight: bolder; } #navbar h1 { color: white; text-align: center; text-transform: uppercase; } .main-section header{ color: #000000; text-align: center; } /* Navbar */ nav ul { list-style: none; font-size: 30px; text-align: center; } nav ul li a { color: white; text-decoration: none; } /* Positioning */ #navbar { width: 20%; height: 100%; position: fixed; border-right: 5px solid #000000; background-color: #000000; } /* Main area */ #main-doc { width: 80%; height: auto; position: absolute; right: 0; } .main-section { width: 90%; display: block; margin: 0 auto; padding-bottom: 20px; } /* Media query */ @media (max-width: 500px) { h1 { font-size: 18px; } } /* Other */ hr { color: #000000; border-top: 3px solid #000000; margin-top: -10px; }
css
India do not have men or women singles player currently in the top 100 even though it has produced decent doubles players in recent past. By Reuters: Prajnesh Gunneswaran is the lone Indian in the singles main draw at the 2019 Australian Open and the 29-year-old rues the sorry state of the game back home, which he thinks will not improve even if he pulls off a miracle to reach the final in Melbourne. Cricket lords over other sports in India and the country of 1. 3 billion has no men or women singles player currently in the top 100 even though it has produced decent doubles players in recent past. Reaching the singles main draw at a Grand Slam in itself is a success in cricket-mad India, which has only seen Yuki Bhambri achieve the feat since Somdev Devvarman played in the 2013 US Open. Gunneswaran is India's highest-ranked singles player at 112 and will meet American 20-year-old Frances Tiafoe, who is ranked 39, in his opening round on Monday after booking his spot at the year's first Grand Slam through the qualifiers. "It's a good thing and a bad thing," he told Reuters in an interview on Sunday. "It's good for me personally because obviously I get a bit more coverage and a bit more presence in the media. "But I would also like to see more Indians in this part of the tournament, in the main draw, doing well, making it to the second week like we do in doubles. " He dismissed suggestions that his Australian Open appearance could motivate more players in the world's second-most populous country. "I don't think there is any lack of motivation. We don't have the system in place to produce players so no matter how much motivation is there we will not produce any players even if I make the final," Gunneswaran said. "Somdev has been 70 and we had other players in the past who have been top 30 but that didn't produce another 100 players. "I don't think me doing something here will make a drastic change. It will change my life but when it comes to Indian tennis I don't think so. " Gunneswaran feels India's search for quality singles players would not end anytime soon. "We need an entire system and infrastructure, from coaches to fitness trainers, a centre where the youngsters can go and play and develop and get better," he said. "We don't have that kind of a consistent system in India. "Here I am playing a professional event and I have to focus and do everything that I can to do well. Obviously there is a certain amount of expectation that comes with being currently the number one in India. I am going to step on the court and give it my best and hope that I can come out on top. " Gunneswaran had missed out on playing in the French Open main draw last year as a lucky loser as he had left Paris to play a Challenger event. He is coming off a strong 2018 during which he rose to a career-high 104 in November following strong results and two Challenger titles. The Indian did not have much idea about Tiafoe but knew he needed to be at his best to advance. "I don't know too much about him. I have seen him on TV playing matches," Gunneswaran said. "I know he's very good, he's top 40 for a reason. "I will have to play well to beat him. I will come up with a game plan tomorrow (Monday) and give it all I have got. " Also Watch:
english
RAW is a multidisciplinary research initiative. To build original research knowledge base, the RAW programme has been collaborating with different organisations and individuals to focus on its three year thematic of Histories of the Internets in India. Five monographs: Re: Wiring Bodies by Asha Achuthan, Archive and Access by Aparna Balachandran and Rochelle Pinto, Pornography and the Law by Namita Malhotra, The Leap of Rhodes or, How India Dealt with the Last Mile Problem – An Inquiry into Technology and Governance by Ashish Rajadhyaksha and Internet, Society and Space in Indian Cities by Pratyush Shankar were sent for peer review. Digital Natives with a Cause? Digital Natives with a Cause? is a knowledge programme initiated by CIS and Hivos, Netherlands. It is a research inquiry that seeks to look at the changing landscape of social change and political participation and the role that young people play through digital and Internet technologies, in emerging information societies. Consolidating knowledge from Asia, Africa and Latin America, it builds a global network of knowledge partners who want to critically engage with the dominant discourse on youth, technology and social change, in order to look at the alternative practices and ideas in the Global South. It also aims at building new ecologies that amplify and augment the interventions and actions of the digitally young as they shape our futures. "Links in the Chain" is a bi-monthly publication which highlights the projects, ideas and news of the "Digital Natives with a Cause?" community members. It includes opinion posts by participants from the three workshops — Talking Back (Taipei, 15 – 18 August 2010), My Bubble, My Space, My Voice (Johannesburg, 6 – 9 November 2010) and From Face to the Interface (Santiago, 8 – 10 February 2011) as well as the facilitators, interviews with them, comics and cartoons highlighting current issues affecting the community, as well as current news and discussions happening at the project website, www.digitalnatives.in. Estimates of the percentage of the world's population that is disabled vary considerably. But what is certain is that if we count functional disability, then a large proportion of the world's population is disabled in one way or another. At CIS we work to ensure that the digital technologies, which empower disabled people and provide them with independence, are allowed to do so in practice and by the law. To this end, we support web accessibility guidelines, and change in copyright laws that currently disempower the persons with disabilities. Access to Knowledge (previously IPR Reform) CIS believes that access to knowledge and culture is essential as it promotes creativity and innovation and bridges the gaps between the developed and developing world positively. Hence, the campaigns for an international treaty on copyright exceptions for print-impaired, advocating against PUPFIP Bill, calls for the WIPO Broadcast Treaty to be restricted to broadcast, questioning the demonization of 'pirates', and supporting endeavours that explore and question the current copyright regime. - Don't Shoot the Messenger: Speech on Intermediary Liability at 22nd SCCR of WIPO (speech by Pranesh Prakash at a side-event co-organized from 15 to 24 June 2011, by WIPO and the Internet Society on intermediary liability). CIS believes that innovation and creativity should be fostered through openness and collaboration and is committed towards promotion of open standards, open access, and free/libre/open source software. - People are Knowledge – Experimenting with Oral Citations on Wikipedia (co-produced by CIS in association with the Wikimedia Foundation, on Oral Citations in India and South Africa) - Opening Government: A Guide to Best Practice in Transparency, Accountability and Civic Engagement across the Public Sector (published by Transparency & Accountability Initiative, CIS contributed the section on Open Government Data). Although there may not be one centralized authority that rules the Internet, the Internet does not just run by its own volition: for it to operate in a stable and reliable manner, there needs to be in place infrastructure, a functional domain name system, ways to curtail cyber crime across borders, etc. The Tunis Agenda of the second World Summit on the Information Society (WSIS), paragraph 34 defined Internet governance as “the development and application by governments, the private sector and civil society, in their respective roles, of shared principles, norms, rules, decision-making procedures, and programmes that shape the evolution and use of the Internet.” Its latest endeavour has resulted into these: CIS is doing a project, ‘Privacy in Asia’. It is funded by Privacy International (PI), UK and the International Development Research Centre, Canada and is being administered in collaboration with the Society and Action Group, Gurgaon. The two-year project commenced on 24 March 2010 and will be completed as agreed to by the stakeholders. It was set up with the objective of raising awareness, sparking civil action and promoting democratic dialogue around challenges and violations of privacy in India. In furtherance of these goals it aims to draft and promote over-arching privacy legislation in India by drawing upon legal and academic resources and consultations with the public. - Privacy & Media Law (by Sonal Makhija). The research examines the existing media norms governed by Press Council of India, the Cable Television Networks (Regulation) Act, 1995 and the Code of Ethics drafted by the News Broadcasting Standard Authority, the constitutional protection guaranteed to an individual’s right to privacy upheld by the courts, and the reasons the State employs to justify the invasion of privacy. - Right to Privacy Bill 2010 — A Few Comments (by Elonnai Hickok). CIS has given specific recommendations and specific comments on the Right to Privacy Bill, 2010, which was introduced in the Rajya Sabha by Rajeev Chandrashekhar. - Privacy Matters, Guwahati – the event was organised by IDRC, Society in Action Group, IDEA Chirang, an NGO initiative working with grassroots initiatives in Assam, Privacy India and CIS on 23 June 2011. - My Experiment with Scam Baiting (by Sahana Sarkar) - When Data Means Privacy, What Traces Are You Leaving Behind? (by Noopur Raval) - Video Surveillance and Its Impact on the Right to Privacy (by Elonnai Hickok) - Consumer Privacy in e-Commerce (by Sahana Sarkar) - An Overview of DNA Labs in India (by Shilpa Narani) - UID: Nothing to Hide, Nothing to Fear? (by Shilpa Narani) - Transparent Government, via Webcams in India [New York Times, 17 July 2011]; news also published in other languages in wprost (Polish), ictnews (Vietnamese) and @rret sur images(French) - UID: The World’s Largest Biometric Database [International School on Digital Transformation, 21 July 2011]. Sunil Abraham made a presentation. CIS is grateful to Kusuma Trust which was founded by Anurag Dikshit and Soma Pujari, philanthropists of Indian origin, for its core funding and support for most of its projects.
english
New Delhi: Reliance Industries Ltd's technology arm Jio Platforms on Friday announced an investment of $15 million in Two Platforms -- "TWO". Jio will acquire a 25 per cent equity stake on a fully diluted basis in the start-up. TWO is a Silicon Valley-based tech start-up founded by Pranav Mistry. TWO -- an Artificial Reality (AR) company -- said it believes the next chapter of Artificial Intelligence (AI) is visual and interactive. The AR platform enables real-time AI voice and video calls, digital humans, immersive spaces and lifelike gaming, it added. TWO also stated that it plans to bring its interactive AI technologies to consumer applications, followed by entertainment, gaming, and enterprise solutions, including retail, services, education, health and wellness. "We would work collaboratively with Jio to fast-track the adoption of new technologies and build disruptive technologies such as AI, metaverse, and mixed realities, the start-up further mentioned. Akash Ambani, Director of Jio, said, "We are impressed with the strong experience and capabilities of the founding team at TWO in the areas of AI/ ML, AR, metaverse and Web 3. 0. We look forward to working together with TWO to help expedite the development of new products in the areas of interactive AI, immersive gaming and metaverse. " Pranav Mistry, Chief Executive of TWO, said, "Jio is foundational to India's digital transformation. We at TWO are excited to partner with Jio to push the boundaries of AI and introduce applications of Artificial Reality to consumers and businesses at scale. "
english
{ "set_name": "3rd Series: Mobile Suit Gundam", "name": "Antiaircraft Fire", "price": "3", "number": "EV-078", "effect": "Reduce a M.S. Type 'Battleship' card of your choice's Clash Points by 5.", "corps_symbol": "EF", "rarity": "U", "type": "Event" }
json
{"fileCount":9,"unpackedSize":20998,"packageJson":{"name":"validate-npm-package-name","version":"3.0.0","description":"Give me a string and I'll tell you if it's a valid npm package name","main":"index.js","directories":{"test":"test"},"dependencies":{"builtins":"^1.0.3"},"devDependencies":{"standard":"^8.6.0","tap":"^10.0.0"},"scripts":{"cov:test":"TAP_FLAGS='--cov' npm run test:code","test:code":"tap ${TAP_FLAGS:-'--'} test/*.js","test:style":"standard","test":"npm run test:code && npm run test:style"},"repository":{"type":"git","url":"https://github.com/npm/validate-npm-package-name"},"keywords":["npm","package","names","validation"],"author":"zeke","license":"ISC","bugs":{"url":"https://github.com/npm/validate-npm-package-name/issues"},"homepage":"https://github.com/npm/validate-npm-package-name"}}
json
<reponame>lofung/Achilles-demo {"PREVALENCE_BY_GENDER_AGE_YEAR":{"TRELLIS_NAME":[],"SERIES_NAME":[],"X_CALENDAR_YEAR":[],"Y_PREVALENCE_1000PP":[]},"PREVALENCE_BY_MONTH":{"X_CALENDAR_MONTH":201211,"Y_PREVALENCE_1000PP":0.0011},"LENGTH_OF_ERA":{"CATEGORY":"Length of era","MIN_VALUE":1,"P10_VALUE":1,"P25_VALUE":1,"MEDIAN_VALUE":1,"P75_VALUE":1,"P90_VALUE":1,"MAX_VALUE":22},"AGE_AT_FIRST_DIAGNOSIS":{"CATEGORY":["MALE","FEMALE"],"MIN_VALUE":[42,34],"P10_VALUE":[46,42],"P25_VALUE":[53,52],"MEDIAN_VALUE":[60,63],"P75_VALUE":[67,74],"P90_VALUE":[77,80],"MAX_VALUE":[86,88]}}
json
<filename>ecart-pwa/node_modules/if-env/package.json { "_args": [ [ { "raw": "if-env@^1.0.0", "scope": null, "escapedName": "if-env", "name": "if-env", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "C:\\Drivenator\\PWA\\Hitesh_Shashank\\Flipkart-Lite-PWA\\ecart-pwa" ] ], "_from": "if-env@>=1.0.0 <2.0.0", "_id": "if-env@1.0.0", "_inCache": true, "_location": "/if-env", "_nodeVersion": "4.1.1", "_npmUser": { "name": "ericclemmons", "email": "<EMAIL>" }, "_npmVersion": "2.14.1", "_phantomChildren": {}, "_requested": { "raw": "if-env@^1.0.0", "scope": null, "escapedName": "if-env", "name": "if-env", "rawSpec": "^1.0.0", "spec": ">=1.0.0 <2.0.0", "type": "range" }, "_requiredBy": [ "#DEV:/" ], "_resolved": "https://registry.npmjs.org/if-env/-/if-env-1.0.0.tgz", "_shasum": "6e09082cdd3f2ccfb75baf022a4a971565f6007c", "_shrinkwrap": null, "_spec": "if-env@^1.0.0", "_where": "C:\\Drivenator\\PWA\\Hitesh_Shashank\\Flipkart-Lite-PWA\\ecart-pwa", "author": { "name": "<NAME>", "email": "<EMAIL>" }, "bin": { "if-env": "bin/if-env.js" }, "bugs": { "url": "https://github.com/ericclemmons/if-env/issues" }, "dependencies": { "npm-run-all": "1.4.0" }, "description": "Simplify npm scripts with \"if-env ... && npm run this || npm run that\"", "devDependencies": { "expect": "1.13.4", "mocha": "2.3.4" }, "directories": {}, "dist": { "shasum": "6e09082cdd3f2ccfb75baf022a4a971565f6007c", "tarball": "https://registry.npmjs.org/if-env/-/if-env-1.0.0.tgz" }, "gitHead": "98fdbf4e651f7cdc88cec9f05d50a47f9768ed03", "homepage": "https://github.com/ericclemmons/if-env#readme", "keywords": [ "npm", "script", "env", "if", "run" ], "license": "MIT", "maintainers": [ { "name": "ericclemmons", "email": "<EMAIL>" } ], "name": "if-env", "optionalDependencies": {}, "readme": "ERROR: No README data found!", "repository": { "type": "git", "url": "git+https://github.com/ericclemmons/if-env.git" }, "scripts": { "changelog": "npm-run-all changelog:generate changelog:add", "changelog:add": "git add CHANGELOG.md", "changelog:generate": "github_changelog_generator --future-release $npm_package_version", "postversion": "npm-run-all version:amend publish", "publish": "npm-run-all publish:git publish:npm", "publish:git": "git push && git push --tags", "publish:npm": "npm publish", "test": "NODE_ENV=test mocha", "version": "npm run changelog", "version:ammend": "git commit --amend -m \"Release v${npm_package_version}\" && npm run release" }, "version": "1.0.0" }
json
{"Department":"Любомльський відділ Ковельської місцевої прокуратури Волинської області","Name":"<NAME>","Position":"прокурор Любомльського відділу Ковельської місцевої прокуратури Волинської області","Region":"Волинська область","analytics":[{"fc":1,"fi":79559,"i":6543,"y":2015},{"fc":1,"ff":82,"ffa":1,"fi":138306,"i":19532,"y":2018},{"c":1,"fi":552799,"k":41,"ka":1,"y":2019}],"declarationsLinks":[{"id":"nacp_6683a4d5-17d7-48fc-bf89-e6912d502ca7","provider":"declarations.com.ua.opendata","year":2015},{"id":"nacp_41c45e71-749e-496f-92d9-457e7c7940cd","provider":"declarations.com.ua.opendata","year":2018},{"id":"nacp_54d81024-f615-43ec-a826-5f89f0b267ad","provider":"declarations.com.ua.opendata","year":2019}],"key":"shtika_olena_mikolayivna","type":"prosecutor","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"https://public.nazk.gov.ua/declaration/6683a4d5-17d7-48fc-bf89-e6912d502ca7","Декларації 2016":"https://public.nazk.gov.ua/declaration/7e62adad-cdb0-4bfa-aa0c-72ef81fd2732","Декларації доброчесності":"http://www.gp.gov.ua/integrity_profile/files/6486b19641e585a6af2af0456f0e1ed2.pdf","Фото":"","Як живе":""}
json
<reponame>carmenbianca/eslint-config-liferay /** * SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: MIT */ /* eslint-disable no-for-of-loops/no-for-of-loops */ const DESCRIPTION = 'Direct use of ReactDOM.render is discouraged; instead, use ' + 'the <react:component /> JSP taglib, or do: ' + `import {render} from 'frontend-js-react-web';`; module.exports = { create(context) { const isReactDOMImport = node => { const ancestors = context.getAncestors(node); const parent = ancestors[ancestors.length - 1]; return ( parent.type === 'ImportDeclaration' && parent.source.type === 'Literal' && parent.source.value === 'react-dom' ); }; // Returns true if `identifier` actually refers to // `variable`, by walking up the scope stack. const isSame = (identifier, variable) => { const name = variable.name; let scope = context.getScope(identifier); while (scope) { for (let i = 0; i < scope.variables.length; i++) { if (scope.variables[i] === variable) { return true; } else if (scope.variables[i].name === name) { // Variable is shadowed, so it is not the same. return false; } } scope = scope.upper; } }; const report = node => context.report({ messageId: 'noReactDOMRender', node, }); const foundBindings = new Set(); const foundNamespaces = new Set(); const add = (set, iterable) => { for (const item of iterable) { set.add(item); } }; return { CallExpression(node) { if ( node.callee.type === 'MemberExpression' && node.callee.object.type === 'Identifier' ) { // eg. Foo.bar() for (const namespace of foundNamespaces) { if ( node.callee.object.name === namespace.name && node.callee.property.type === 'Identifier' && node.callee.property.name === 'render' ) { // eg. Foo.render() if (isSame(node.callee.object, namespace)) { // "Foo" came from react-dom. report(node); } } } } else if (node.callee.type === 'Identifier') { // eg. something() for (const binding of foundBindings) { if (node.callee.name === binding.name) { // "something" came from react-dom. if (isSame(node, binding)) { report(node); } } } } }, /** * Check for: * * import X from 'react-dom' */ ImportDefaultSpecifier(node) { if (isReactDOMImport(node)) { add(foundNamespaces, context.getDeclaredVariables(node)); } }, /** * Check for: * * import * as X from 'react-dom' */ ImportNamespaceSpecifier(node) { if (isReactDOMImport(node)) { add(foundNamespaces, context.getDeclaredVariables(node)); } }, /** * Check for: * * import {x} from 'react-dom'; * import {x as y} from 'react-dom'; */ ImportSpecifier(node) { if (isReactDOMImport(node)) { add( foundBindings, context.getDeclaredVariables(node).filter(variable => { return ( variable.defs[0] && variable.defs[0].node && variable.defs[0].node.imported && variable.defs[0].node.imported.name === 'render' ); }) ); } }, VariableDeclarator(node) { if ( node.init && node.init.type === 'CallExpression' && node.init.callee.type === 'Identifier' && node.init.callee.name === 'require' && node.init.arguments.length > 0 && node.init.arguments[0].type === 'Literal' && node.init.arguments[0].value === 'react-dom' ) { const variables = context.getDeclaredVariables(node); if (node.id.type === 'Identifier') { // eg. const x = require('react-dom'); add(foundNamespaces, variables); } else if (node.id.type === 'ObjectPattern') { // eg. const {render} = require('react-dom'); // eg. const {render: x} = require('react-dom'); add( foundBindings, context .getDeclaredVariables(node) .filter(variable => { return ( variable.references[0] && variable.references[0].identifier && variable.references[0].identifier .parent && variable.references[0].identifier.parent .key && variable.references[0].identifier.parent .key.name === 'render' ); }) ); } } }, }; }, meta: { docs: { category: 'Best Practices', description: DESCRIPTION, recommended: false, url: 'https://issues.liferay.com/browse/LPS-99399', }, fixable: null, messages: { noReactDOMRender: DESCRIPTION, }, schema: [], type: 'problem', }, };
javascript
<gh_stars>0 .files input { outline: 2px dashed #6e8ae9; outline-offset: -10px; -webkit-transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; padding: 120px 0px 85px 35%; text-align: center !important; margin: 0; width: 100% !important; } .files input:focus { outline: 2px dashed #6e8ae9; outline-offset: -10px; -webkit-transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; border: 1px solid #92b0b3; } .files { position: relative; } .files:after { pointer-events: none; position: absolute; top: 70px; left: 0; width: 50px; right: 0; height: 56px; content: ""; background-image: url(https://image.flaticon.com/icons/png/128/109/109612.png); display: block; margin: 0 auto; background-size: 100%; background-repeat: no-repeat; } .color input { background-color: #eeeeee; } .files:before { position: absolute; bottom: 10px; left: 0; pointer-events: none; width: 100%; right: 0; height: 57px; content: " or drag it here. "; display: block; margin: 0 auto; color: #1c3988; font-weight: 600; text-transform: capitalize; text-align: center; } .files-edit input { outline: 2px dashed #6e8ae9; outline-offset: -10px; -webkit-transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; padding: 120px 0px 85px 35%; text-align: center !important; margin: 0; width: 100% !important; } .files-edit input:focus { outline: 2px dashed #6e8ae9; outline-offset: -10px; -webkit-transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; transition: outline-offset 0.15s ease-in-out, background-color 0.15s linear; border: 1px solid #92b0b3; } .files-edit { position: relative; } .files-edit:after { pointer-events: none; position: absolute; top: 170px; left: 0; width: 50px; right: 0; height: 56px; content: ""; background-image: url(https://image.flaticon.com/icons/png/128/109/109612.png); display: block; margin: 0 auto; background-size: 100%; background-repeat: no-repeat; } .files-edit:before { position: absolute; bottom: 10px; left: 0; pointer-events: none; width: 100%; right: 0; height: 57px; content: " or drag it here. "; display: block; margin: 0 auto; color: #1c3988; font-weight: 600; text-transform: capitalize; text-align: center; } .publication-img-thumb { height: 5rem; width: 5rem; color: #1c3988; } .publication-img-thumb:hover { cursor: pointer; color: red; } .publication-img-thumb:after { position: relative; top: 0; left: 3.7rem; font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f1f8"; font-size: 18px; } .delete-all-img { height: 5rem; width: 5rem; background-color: red; color: white; } .delete-all-img i { font-size: 18px; } .delete-all-img span { font-size: 12px; } .delete-all-img:hover { cursor: pointer; color: black; }
css
The well marked low pressure area which was over East Rajasthan and adjoining Madhya Pradesh on Tuesday moved to southwest Rajasthan the next day. Incessant rainfall in parts of Rajasthan has caused flood-like situation in several districts, with the weather forecasting agency expecting subdued rainfall activity over northwest India during the next five days. The well marked low pressure area which was over East Rajasthan and adjoining Madhya Pradesh on Tuesday moved to southwest Rajasthan the next day. In view of heavy rainfall in Udaipur, all private and government schools will remain closed today, reported news agency ANI citing District Collector Tarachand Meena’s order. A flood alert has also been sounded in Rajasthan's Baran district as Kalisindh river heads towards red mark. The district administration has been put on alert mode. Central and east Madhya Pradesh also witnessed heavy rainfall on Tuesday, disrupting lives in several districts. Madhya Pradesh chief minister Shivraj Singh Chouhan took stock of the flood situation in Vidisha and conducted an aerial survey of the area. He held a meeting with Union Minister Narendra Singh Tomar, ACS Irrigation and ACS Home from Bhopal, the Chief Medical Officer and officials of the three rainfall affected districts. "As water levels may rise by 1-1. 25m in Morena tomorrow, water levels in Shivpuri's Parvati river have started decreasing while Chambal is stable. . . we now have a scientific assessment that can tell the areas getting affected as per the increase in water levels," Chouhan said. "Keeping that in mind, we've started rescue work of evacuating the citizens in low-lying areas. . . NDRF & SDRF are stationing us to support the local administration. If needed, we will also provide helicopters for rescue. We're making necessary arrangements in relief camps," he added. Meanwhile, a cyclonic circulation lies over Northwest Bay of Bengal and neighbourhood extending upto middle tropospheric levels, according to the Indian Meteorological Department. Under the influence of these systems, widespread light to moderate rainfall with isolated heavy falls and thunderstorm is very likely over Chhattisgarh on August 26-27 and over East Madhya Pradesh on August 27-28. The Met department expects heavy rainfall spell over East Uttar Pradesh, Bihar and Northeast India August 27-28. The northeastern states are likely to receive fairly widespread light to moderate rainfall with isolated heavy falls over the next five days.
english
<gh_stars>0 import LatataData from './song/gidle/LATATA'; import HannData from './song/gidle/HANN'; import SenoritaData from './song/gidle/Senorita'; import UhohData from './song/gidle/Uh-Oh'; import LionData from './song/gidle/Lion'; import OhmygodData from './song/gidle/Oh-my-god'; import DumdidumdiData from './song/gidle/DUMDiDUMDi'; const songList = [ LatataData, HannData, SenoritaData, UhohData, LionData, OhmygodData, DumdidumdiData, ]; export default songList;
javascript
from .basic import (resample_ann, resample_sig, resample_singlechan, resample_multichan, normalize_bound, get_filter_gain) from .evaluate import Comparitor, compare_annotations, benchmark_mitdb from .hr import compute_hr, calc_rr, calc_mean_hr from .peaks import find_peaks, find_local_peaks, correct_peaks from .qrs import XQRS, xqrs_detect, gqrs_detect
python
<gh_stars>0 /** * @author <NAME> <<EMAIL>> */ package ch.ethz.bhepp.ode; import ch.ethz.bhepp.ode.Solver.InitializationException; /** * An Interface for solving an {@link Ode} with adaptive step size. */ public interface AdaptiveStepSolver { /** * Initialize the solver. * * @param ode the ODE to solve * @throws InitializationException if there was a problem during initialization */ void initialize(Ode ode) throws InitializationException; /** * Prepare a call to {@link #integrateStep()}. * * @param t0 defines the current timepoint for the integration * @param x0 defines the current state for the integration * @param t1 defines the end timepoint for the integration * * @throws IllegalStateException if {@link #initialize} has not been called before */ void prepareStep(double t0, double[] x0, double t1) throws IllegalStateException; /** * Prepare a call to {@link #integrateStep()}. * * @param t0 defines the current timepoint for the integration * @param x0 defines the current state for the integration * @param t1 defines the end timepoint for the integration * @param dt0 defines the initial step size * * @throws IllegalStateException if {@link #initialize} has not been called before */ void prepareStep(double t0, double[] x0, double t1, double dt0) throws IllegalStateException; /** * Integrate the ODE with a single step. {@link #prepareStep} has to be called before calling this method. * * @return the new timepoint after the integration step * */ double integrateStep(); /** * Integrate the ODE with a single step. {@link #prepareStep} has to be called before calling this method. * * @param xOut array to store the new state after the integration step * * @return the new timepoint after the integration step * */ double integrateStep(double[] xOut); /** * Compute the interpolated solution at a timepoint within the last integration step. {@link #integrateStep} has to be called before calling this method. * * @param t the timepoint at which the interpolated solution should be computed * @param xOut array to store the new state after the integration step * * @throws IllegalStateException if {@link #integrateStep} has not been called before, the last integration step failed or the solution could not be interpolated. */ void computeInterpolatedSolution(double t, double[] xOut) throws IllegalStateException; /** * Get the current step size of the solver (used for the next step). {@link #integrateStep} has to be called before calling this method. * * @throws IllegalStateException if {@link #initialize} has not been called before * @throws UnsupportedOperationException if the solver doesn't support retrieving the current step size */ double getCurrentStepSize() throws IllegalStateException, UnsupportedOperationException; /** * Get the last step size of the solver (used for the last step). {@link #integrateStep} has to be called before calling this method. * * @throws IllegalStateException if {@link #initialize} has not been called before * @throws UnsupportedOperationException if the solver doesn't support retrieving the last step size */ double getLastStepSize() throws IllegalStateException, UnsupportedOperationException; /** * Set the current step size for the next call to {@link #integrateStep}. * * @throws IllegalStateException if {@link #initialize} has not been called before * @throws UnsupportedOperationException if the solver doesn't support modifying the step size */ void setCurrentStepSize(double stepSize) throws IllegalStateException, UnsupportedOperationException; /** * Set the minimum step size for the next call to {@link #integrateStep}. * * @throws IllegalStateException if {@link #initialize} has not been called before * @throws UnsupportedOperationException if the solver doesn't support modifying the minimum step size */ void setMinimumStepSize(double minStepSize) throws IllegalStateException, UnsupportedOperationException; /** * Set the maximum step size for the next call to {@link #integrateStep}. * * @throws IllegalStateException if {@link #initialize} has not been called before * @throws UnsupportedOperationException if the solver doesn't support modifying the maximum step size */ void setMaximumStepSize(double maxStepSize) throws IllegalStateException, UnsupportedOperationException; }
java
Everything you need to know about today's Apple announcements. SAN FRANCISCO -- Aaaand we're back at the Yerba Buena Center for the Arts, a favorite venue for Apple's announcements, after the more intimate setting of its headquarters for the iPad and company announcements last December. Today the company filled us in on pricing and availability of its new Apple Watch, a brand-new lightest-ever MacBook and a mighty interesting offshoot of HealthKit called ResearchKit. Of course, there were the requisite numbers to impress the analysts. TL;DR: Growth everywhere, including expanded Apple Pay support, and every major car manufacturer is now committed to delivering CarPlay . Apple TV finally gets HBO in the form of a standalone streaming service, HBO Now. It will work with any Apple device, not just Apple TV. You'll be able to get it in early April for $14.99 a month. It also lowered the price on Apple TV to $69 (£59 in the UK and AU$109 in Australia). Plus, it heralded the news with a "="" trailer"="" shortcode="link" asset-type="article" uuid="3ea253e3-732f-4568-b261-11c3991dd103" slug="new-game-of-thrones-trailer-crashes-apple-watch-event" link-text="" section="news" title="New 'Game of Thrones' trailer crashes Apple Watch event" edition="us" data-key="link_bulk_key"> . Here are our highlights of the event -- or all our videos, if you prefer. Of course the big news -- albeit expected from an event named "spring forward" -- are the details on the pricing and availability for the Apple Watch initially announced at Apple's iPhone 6 event in the fall of 2014. Apple trotted out Christy Turlington Burns as the celebrity endorser, the duties of which include a weekly blog on Apple.com. Though we knew the cheapest model would run $349, we now know that this entry-level model with a 38mm face is the anodized-aluminum Apple Watch Sport (in silver or space gray) with colored, high-performance plastic bands (a 42mm model is $399). A stainless-steel alloy model runs $549 for the 38mm and ranges up to $1,049 depending on the band. A 42mm version of any of them runs $50 more. And yes, its high-end Watch Edition will cost you $10,000/£8,000/AU$14,000 -- to start. With 18K gold, in limited quantities, available in select retail stores. Preorders start April 10, and you can see them in stores then, and they will ship April 24. Only in select countries, though. You can direct connect to other Apple Watches through Digital Touch, which will let you send sketches and heartbeats, and customize the watch faces. Since the WatchKit rollout in November, thousands of Watch apps have been developed. Lots of time was spent recapping the myriad things you can do with the watch and how easy it is to use. The company says the battery will last 18 hours. We also heard about new partnerships for Watch apps. You download Watch apps via the iPhone, in a dedicated app store, which are available in iOS 8.2 -- available today. Do you agree that " With Apple Watch, wearable tech may finally start living up to the hype"? You thought the Air was thin? Apple reinvented its lightest model. Get ready for the MacBook 2015 (oh, that name isn't going to confuse anyone). It weighs 2 pounds and is 13.1mm thick. It's got an all-metal enclosure, edge-to-edge, reengineered keyboard, an 0.88mm 12-inch Retina Display -- unfortunately at a nonstandard 2,304x1,440 pixels. It uses 30 percent less energy, though. There's a new touchpad, called the Force Touch trackpad with a glass multitouch surface that uses tap feedback (its Taptic engine) rather than clicking and can use pressure -- Force Click -- for control. It's the first fanless MacBook, but to do that Apple had to use an Intel Core M fifth-generation 1.3GHz CPU and a smaller, denser logic board. Then it filled the rest of the unibody with batteries, and Bluetooth and 802.11ac. But Apple expects it to have no wires; it has a new single USB-C connector that supports everything. You'll see it in silver, space gray and gold. With 8GB of memory and a 256GB SSD, it starts at $1,299 and will be available April 10. For the UK and Australia, prices are £1,049 and AU$1,799 for the entry model and £1,299 or AU$2,199 for the upgraded version. As we expected, there were performance upgrades to other MacBooks. You can get the full scoop here. HealthKit has seen uptake in medical research, prompting Apple to coordinate with tons of big players in that community to develop ResearchKit, a really interesting open-source HealthKit offshoot designed to help solve communications issues. Researchers can create apps that turn an iPhone into a diagnostic tool that can send data back to researchers. And before you ask, Apple claims it doesn't see your data. It's going to be released next month. See CNET's archived live blog, and check out our complete coverage of the Apple event. Then vote: What's the best news out of Monday's Apple Watch event?
english
import { createGlobalStyle } from 'styled-components'; const GlobalStyle = createGlobalStyle` @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700,800,900"); @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i"); @import url("https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700"); @import url("https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700,800,900"); @import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i"); @import url("https://fonts.googleapis.com/css?family=Titillium+Web:300,400,600,700"); `; export default GlobalStyle;
javascript
from discord.ext import commands class Context(commands.Context): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.color = int(self.bot.config["COLOR"], 16) async def send(self, content: str = None, reply: bool = True, *args, **kwargs): if content is not None: if len(content) > 2000: content = str(await self.bot.myst.post(content)) if reply: return await super().reply(content, *args, **kwargs) return await super().send(content, *args, **kwargs)
python
{ "parent": "gardenstuff:block/lattice/lattice_ext", "textures": { "texture": "gardenstuff:blocks/lattice_aged" } }
json
import React from 'react'; import './App.css'; import EventInfoNav from './components/eventInfoNav.js'; import Footer from './components/footer.js'; import Header from './components/header.js'; import SlideShow from './components/slideShow.js'; function App () { return ( <div> <Header></Header> <EventInfoNav></EventInfoNav> <SlideShow></SlideShow> <hr></hr> <Footer></Footer> </div> ); } export default App;
javascript
<gh_stars>1000+ package transpiler import ( "fmt" goast "go/ast" "strings" "github.com/elliotchance/c2go/ast" "github.com/elliotchance/c2go/program" "github.com/elliotchance/c2go/types" "github.com/elliotchance/c2go/util" "go/token" ) func transpileImplicitCastExpr(n *ast.ImplicitCastExpr, p *program.Program, exprIsStmt bool) ( expr goast.Expr, exprType string, preStmts []goast.Stmt, postStmts []goast.Stmt, err error) { defer func() { if err != nil { err = fmt.Errorf("Cannot transpileImplicitCastExpr. err = %v", err) } }() if n.Kind == ast.CStyleCastExprNullToPointer { expr = goast.NewIdent("nil") exprType = types.NullPointer return } if strings.Contains(n.Type, "enum") { if d, ok := n.Children()[0].(*ast.DeclRefExpr); ok { expr, exprType, err = util.NewIdent(d.Name), n.Type, nil return } } if isCastToUnsignedOfUnaryComplement(n, p) { return swapCastAndComplement(n, p, exprIsStmt) } expr, exprType, preStmts, postStmts, err = transpileToExpr(n.Children()[0], p, exprIsStmt) if err != nil { return nil, "", nil, nil, err } if exprType == types.NullPointer { expr = goast.NewIdent("nil") return } if len(n.Type) != 0 && len(n.Type2) != 0 && n.Type != n.Type2 { var tt string tt, err = types.ResolveType(p, n.Type) expr = &goast.CallExpr{ Fun: goast.NewIdent(tt), Lparen: 1, Args: []goast.Expr{expr}, } exprType = n.Type return } if !types.IsFunction(exprType) && !strings.ContainsAny(n.Type, "[]") { expr, err = types.CastExpr(p, expr, exprType, n.Type) if err != nil { return nil, "", nil, nil, err } exprType = n.Type } return } func isCastToUnsignedOfUnaryComplement(n *ast.ImplicitCastExpr, p *program.Program) (ret bool) { if !types.IsCInteger(p, n.Type) || !strings.Contains(n.Type, "unsigned ") { return } cn, ok := n.Children()[0].(*ast.UnaryOperator) if !ok || getTokenForOperator(cn.Operator) != token.XOR { return } return types.IsCInteger(p, cn.Type) && !strings.Contains(cn.Type, "unsigned ") } func swapCastAndComplement(n *ast.ImplicitCastExpr, p *program.Program, exprIsStmt bool) ( expr goast.Expr, exprType string, preStmts []goast.Stmt, postStmts []goast.Stmt, err error) { uo := n.Children()[0].(*ast.UnaryOperator) copyUnary := &ast.UnaryOperator{} copyImplicit := &ast.ImplicitCastExpr{} *copyUnary = *uo *copyImplicit = *n unaryChildren := uo.ChildNodes copyUnary.ChildNodes = []ast.Node{copyImplicit} copyUnary.Type = copyImplicit.Type copyImplicit.ChildNodes = unaryChildren return transpileToExpr(copyUnary, p, exprIsStmt) } func transpileCStyleCastExpr(n *ast.CStyleCastExpr, p *program.Program, exprIsStmt bool) ( expr goast.Expr, exprType string, preStmts []goast.Stmt, postStmts []goast.Stmt, err error) { defer func() { if err != nil { err = fmt.Errorf("Cannot transpileImplicitCastExpr. err = %v", err) } }() // Char overflow // example for byte(-1) // CStyleCastExpr 0x365f628 <col:12, col:23> 'char' <IntegralCast> // `-ParenExpr 0x365f608 <col:18, col:23> 'int' // `-ParenExpr 0x365f5a8 <col:19, col:22> 'int' // `-UnaryOperator 0x365f588 <col:20, col:21> 'int' prefix '-' // `-IntegerLiteral 0x365f568 <col:21> 'int' 1 if n.Type == "char" { if par, ok := n.Children()[0].(*ast.ParenExpr); ok { if par2, ok := par.Children()[0].(*ast.ParenExpr); ok { if u, ok := par2.Children()[0].(*ast.UnaryOperator); ok && u.IsPrefix { if _, ok := u.Children()[0].(*ast.IntegerLiteral); ok { return transpileToExpr(&ast.BinaryOperator{ Type: "int", Type2: "int", Operator: "+", ChildNodes: []ast.Node{ u, &ast.IntegerLiteral{ Type: "int", Value: "256", }, }, }, p, false) } } } } } if n.Kind == ast.CStyleCastExprNullToPointer { expr = goast.NewIdent("nil") exprType = types.NullPointer return } expr, exprType, preStmts, postStmts, err = transpileToExpr(n.Children()[0], p, exprIsStmt) if err != nil { return nil, "", nil, nil, err } if exprType == types.NullPointer { expr = goast.NewIdent("nil") return } if len(n.Type) != 0 && len(n.Type2) != 0 && n.Type != n.Type2 { var tt string tt, err = types.ResolveType(p, n.Type) expr = &goast.CallExpr{ Fun: goast.NewIdent(tt), Lparen: 1, Args: []goast.Expr{expr}, } exprType = n.Type return } if n.Kind == ast.CStyleCastExprToVoid { exprType = types.ToVoid return } if !types.IsFunction(exprType) && n.Kind != ast.ImplicitCastExprArrayToPointerDecay { expr, err = types.CastExpr(p, expr, exprType, n.Type) if err != nil { return nil, "", nil, nil, err } exprType = n.Type } return }
go
<reponame>tabinfl/50ShadesOfGreyPill<gh_stars>1-10 { "address": "1oranGeS2xsKZ4jVsu9SVttzgkYXu4k9v", "cert_auth_type": "web", "cert_sign": "<KEY> "cert_user_id": "<EMAIL>", "files": { "data.json": { "sha512": "6391244f48801801104d6dfdf57518c2ec2a742611b9c941a7a54f69f0326cb4", "size": 486 } }, "inner_path": "data/users/1ELqWR9VHttv1e5es9e5H5gRnpiqUZ6h5k/content.json", "modified": 1484751511, "signs": { "1ELqWR9VHttv1e5es9e5H5gRnpiqUZ6h5k": "<KEY> } }
json
NEW YORK –- Forty years ago, a Bell Laboratories engineer collaborated with a sculptor to build a gigantic kinetic sculpture entitled Homage to New York. The hulking mass of junkyard parts, set with sophisticated electrical triggers, self-destructed in precisely 27 minutes, spraying metal shrapnel and getting laughs from the audience. For multimedia artists, it was the explosion heard 'round the world. Now, as multimedia works flood New York galleries and prepare to overwhelm the Whitney Biennial, electrical engineer Billy Kluver has been honored by the performance space The Kitchen for his work with sculptor Jean Tinguely and others. In 1966, Kluver organized Nine Evenings of Theatre and Engineering, in which 10 artists, including John Cage, Robert Rauschenberg, Nam June Paik, and Merce Cunningham, collaborated with nearly 30 engineers recruited by Kluver from New Jersey's Bell Labs. Later that year, Kluver, fellow engineer Fred Waldhauer, and artists Rauschenberg and Robert Whitman founded Experiments in Arts and Technology, a group determined to facilitate collaborations between engineers and artists. Kluver recently spoke with Wired News about the history of multimedia art. Wired News: What's the legacy of E.A.T.? Billy Kluver: If the notion of collaboration that Bob Rauschenburg and I developed could survive, then that would be E.A.T.'s great legacy: the collaboration between artists and engineers. Now, it's almost 30 years to the day since the Pepsi Pavilion. Forty years since the machine that destroyed itself. And 50 years since I completed my degree at Stockholm University. But E.A.T. still exists in people's minds. You know, we wanted to be sure from the beginning that E.A.T. wouldn't exist outside of peoples' minds. That is why we didn't want it to be in a building. We didn't want to have a laboratory where artists could work, because that would immediately solidify into a bureaucratic institution. WN: So what did you build? Kluver: Well, instead, we developed a method. We felt that the artists should be able to work with the engineer in the field that they needed. Some artists want to work in glass, others want to work in rubber, whatever. We used to have a place where we had open houses every week and we brought engineers there. We opened the door so artists could talk to engineers. WN: Then E.A.T. dealt directly with engineers, right? Not companies? Kluver: Yes. We wanted to keep the door open for these artists. The thing we were most concerned about was that industry would close the door on us and for that reason we said that the engineer is the access point to industry, not the middle management or the CEO, because he has everything available to him. He has the keys. You don't need to buy machines if you know where they are. And any engineer can turn to any other engineer in the country for help if he doesn't know how to solve the problem. That's what I consider the best invention of E.A.T., that it was the open door to industry. That without a lot of paperwork or hardware or anything, an engineer anywhere could work with an artist. WN: How did you get the word out? Kluver: We did a huge amount of propaganda in the engineering community that is very underestimated today to get these engineers interested. Spectra [the professional journal for electrical engineers] comes around now and does that piece. But 40 years ago I was banging on their door saying, "Please! Please help me!" They did nothing, of course. But after the fact.... You have to first do it, and then they recognize you. WN: And what did your boss think of all this? Kluver: I recently met my boss at Bell Labs. I asked him, "Why the hell did you let me do all this?" I mean, soon we had 40 engineers going to Japan [for the 1970 Pepsi Pavilion in Osaka] and all this and they all took their time out from Bell. His answer was that if he had stopped us, it would have backfired. He would have lost his credibility. You want cohesion inside the laboratory. You want people to feel like they're in the place they want to be in. I didn't realize that he understood that. WN: But Bell still didn't fund events like Nine Evenings? Kluver: No. And we never paid anybody anything. Never. But I don't feel like I took anything from Bell -- well, maybe a few screwdrivers. But E.A.T. didn't just help the artists to collaborate with engineers. I did manage to get engineers to be enthusiastic about art. One of the best results was that engineers were able to think more creatively, too.
english
<filename>src/main/typescript/intake24-redux-client.d.ts import {Store, Reducer} from "redux"; export interface ClientState { apiBaseUrl?: string; refreshToken?: string; accessToken?: string; signinRequestPending: boolean; errors: string[]; } export class Client { constructor(reduxStore: Store<any>, stateSelector: string[]); setApiBaseUrl(apiBaseUrl: string); setRefreshToken(token: string); signin(email: string, password: string); refreshAccessToken(); getState(): ClientState; } export class ClientReducer { static create(): Reducer<ClientState>; } export class FNCReducer { static create(); } export interface FoodHeader { code: string; localDescription: string; } export interface CategoryHeader { code: string; localDescription: string; } export interface LookupResult { foods: FoodHeader[], categories: CategoryHeader[]; } export interface FoodSearchState { requestPending: boolean; searchResult: LookupResult; } export class FoodSearch { constructor(reduxStore: Store<any>, apiClient: Client, stateSelector: string[]); search(query: string); select(foodCode: string); getState(): FoodSearchState; } export class FoodSearchReducer { static create(); } export interface PortionSizeMethod { method: string; description: string; imageUrl: string; useForRecipes: boolean; parameters: object } export interface MethodSelectorState { availableMethods: PortionSizeMethod[], selectedIndex?: number } export interface MethodSelector { selectMethod(index: number): void; getState(): MethodSelectorState; } export interface FoodNutrientsCalculatorState { currentPrompt: { type: string } } export class FoodNutrientsCalculator { constructor(reduxStore: Store<any>, apiClient: Client, stateSelector: string[]); foodSearch: FoodSearch; methodSelector: MethodSelector; getState(): FoodNutrientsCalculatorState; }
typescript
{"questions": [{"player_1": {"name": "<NAME>", "player_stat": 472.0}, "player_2": {"name": "<NAME>", "player_stat": 36.0}, "stat": "fours", "skill": "BAT", "question_text": "Who has hit more fours?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 37.0}, "player_2": {"name": "<NAME>", "player_stat": 22.5}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 7.86}, "player_2": {"name": "<NAME>", "player_stat": 9.24}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 12.0}, "player_2": {"name": "<NAME>", "player_stat": 18.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 25.06}, "player_2": {"name": "<NAME>", "player_stat": 24.76}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 358.0}, "player_2": {"name": "<NAME>", "player_stat": 879.0}, "stat": "runs_given", "skill": "BOWL", "question_text": "Who has given away less runs?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 14.0}, "player_2": {"name": "<NAME>", "player_stat": 39.0}, "stat": "sixes", "skill": "BAT", "question_text": "Who has hit more sixes?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 8.44}, "player_2": {"name": "<NAME>", "player_stat": 8.04}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 26.27}, "player_2": {"name": "<NAME>", "player_stat": 23.51}, "stat": "average", "skill": "BOWL", "question_text": "Who has the better bowling average?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 16.0}, "player_2": {"name": "<NAME>", "player_stat": 37.0}, "stat": "wickets", "skill": "BOWL", "question_text": "Who has taken more wickets?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 23.16}, "player_2": {"name": "<NAME>", "player_stat": 31.0}, "stat": "average", "skill": "BAT", "question_text": "Who has the better batting average?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 56.0}, "player_2": {"name": "<NAME>", "player_stat": 189.0}, "stat": "fours", "skill": "BAT", "question_text": "Who has hit more fours?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 89.0}, "player_2": {"name": "<NAME>", "player_stat": 83.0}, "stat": "highest", "skill": "BAT", "question_text": "Who has the greater highest score?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 6.0}, "player_2": {"name": "<NAME>", "player_stat": 11.0}, "stat": "fifties", "skill": "BAT", "question_text": "Who has scored more fifties?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 24.1}, "player_2": {"name": "<NAME>", "player_stat": 19.7}, "stat": "strike_rate", "skill": "BOWL", "question_text": "Who has the better bowling strike rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 213.0}, "player_2": {"name": "<NAME>", "player_stat": 43.0}, "stat": "sixes", "skill": "BAT", "question_text": "Who has hit more sixes?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 7.42}, "player_2": {"name": "<NAME>", "player_stat": 7.88}, "stat": "economy", "skill": "BOWL", "question_text": "Who has the better economy rate?", "greater": false}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 1.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "maidens", "skill": "BOWL", "question_text": "Who has bowled more maidens?", "greater": true}, {"player_1": {"name": "<NAME>", "player_stat": 0.0}, "player_2": {"name": "<NAME>", "player_stat": 0.0}, "stat": "zeroes", "skill": "BAT", "question_text": "Who has more ducks?", "greater": true}]}
json
package walker import "log" const debug = false func init() { if debug { log.SetFlags(log.LstdFlags | log.Lshortfile) } }
go
import pytz from rest_auth.serializers import TokenSerializer from rest_framework.authtoken.models import Token from rest_framework.exceptions import ValidationError from rest_framework.fields import ( CharField, CurrentUserDefault, HiddenField, UUIDField, ChoiceField, ) from rest_framework.serializers import ModelSerializer, Serializer from rest_framework.validators import UniqueValidator from django.contrib.auth.hashers import check_password from open.users.models import User class SimpleUserReadSerializer(ModelSerializer): class Meta: model = User fields = ( "name", "uuid", ) class UserReadSerializer(ModelSerializer): class Meta: model = User fields = ( "name", "uuid", "signed_up_from", "date_joined", "username", "email", "created", "modified", ) class UserTokenSerializer(TokenSerializer): user = UserReadSerializer() class Meta: model = Token fields = ["key", "user"] # TODO - this view and serializer is on hold as you figure out registration (later) class UserCreateSerializer(ModelSerializer): username = CharField(validators=[UniqueValidator(queryset=User.objects.all())]) # need to make email optional ... prob should think through signup form a little email = CharField( validators=[UniqueValidator(queryset=User.objects.all())], required=False ) password = CharField(write_only=True, min_length=8) signed_up_from = CharField( write_only=True, min_length=8, required=False, default="", trim_whitespace=True ) timezone_string = ChoiceField( choices=pytz.all_timezones, required=False, default="US/Eastern" ) class Meta: model = User fields = ["username", "email", "password", "signed_up_from", "timezone_string"] # TODO test - does this work with just username / no email, etc. def create(self, validated_data): username = validated_data.pop("username") password = validated_data.pop("password") is_betterself_user = False if validated_data["signed_up_from"] == "betterself": is_betterself_user = True validated_data["is_betterself_user"] = is_betterself_user user = User.objects.create(username=username, **validated_data) user.set_password(password) user.save() return user class UserDeleteSerializer(Serializer): # most of this is actually redundant, i don't need to have a validation step, but i do this # out of paranoia reasons that someone may delete their account by mistake password = CharField() user = HiddenField(default=CurrentUserDefault()) uuid = UUIDField() def validate(self, data): user = data["user"] validated_password = check_password(data["password"], user.password) if not validated_password: raise ValidationError("Invalid Password Entered") validated_uuid = str(user.uuid) == str(data["uuid"]) if not validated_uuid: raise ValidationError("Invalid UUID", str(user.uuid)) validate_user = user.username != "<EMAIL>" if not validate_user: raise ValidationError( f"This is a protected user and cannot be deleted. {user.username}" ) return data
python
The Three Little Pigs: An Architectural Tale (Hardcover) In author/illustrator Steven Guarnaccia’s quirky, artsy picture book retelling of The Three Little Pigs, the pigs and their homes are nods to three famous architects—Frank Gehry, Philip Johnson, and Frank Lloyd Wright—and their signature homes. Each house is filled with clever details, including furnishings by the architects and their contemporaries. Of course, not all the houses are going to protect the pigs from the wolf’s huffing and puffing. Which one will? The wolf, and readers, are in for a clever surprise ending. Steven Guarnaccia is chair of the illustration department at Parsons the New School for Design. He is the author of several books for children and adults, including Goldilocks and The Three Bears: A Tale Moderne. He lives in Montclair, New Jersey.
english
<filename>index.md --- profile: false --- # VirtualBox Tutorial --- ## TODO | Tables | Assigned | Status | |:------------- | -------------:| -------:| | Introducere | Amandoi | In Progress | | Instalare | Amandoi | Done | | Instalare Mac | Sabin | Done | | Instalare Ubuntu | Sabin | In Progress (must recover linux data) | | Instalare Windows | Elena | In progress | | Basic Use | ? | Done | | Advanced Configuration | ? | In Progress | | Export and Import | Elena | Done | {% include article.md %} --- # Thank you for reading this We hope it'll help... you dirty bastards
markdown
{"dash.all.debug.js":"sha256-nDOvWAn0+A9vD1OtDDy8dhdb/4pYvvH6G92VdVYEA2I=","dash.all.min.js":"sha256-hrHC8gBRjoX2unghJ8zGQhbRt6/OIPvOXZ0T3U0NFVA=","dash.mediaplayer.debug.js":"sha256-XgXRmJIEXuNn5pfQzI+oWLS7qvu2c+cR+xRZ8aXvDxE=","dash.mediaplayer.min.js":"sha256-Wyreh+f9rLZa4MROurz5qDaw090HX7SVkIrYSwdh/DQ=","dash.mss.debug.js":"sha256-vsDq0KAL6XmYlv2GTU/xcMvDKxI5qJUPtfISXdGli+4=","dash.mss.min.js":"sha256-6eyDuAgX4JFJZkPeH2ufsnlko68CbuScNFQuNI6naWc=","dash.protection.debug.js":"sha256-AhlJobR9+DidnDGDm8pPpAwWrKBtBKcaHlvJPqp+TVg=","dash.protection.min.js":"sha256-2kG4vILu0ZGa1gQO01K+SYIUb/xjfdC071nJtEK349U=","dash.reporting.debug.js":"sha256-OEdBqCTEdixwGzFhZATegxjyUng1tnaTNbgD8B60kP0=","dash.reporting.min.js":"sha256-o5qF6WrPaOaOJbVNSuAJklQGSjMnDrBh8ARBVGFTB3k="}
json
On Sunday, the makers of Jug Jugg Jeeyo made a big splash on social media by releasing the film's trailer. The film's cast, including Kiara Advani, Varun Dhawan, Neetu Kapoor, Anil Kapoor, and Maniesh Paul, were present at the launch. Along with them were director Raj Mehta and Dharma's Karan Johar, as well as CEO Apurva Mehta. As the cast arrived dancing to the beats of dhol, the Jug Jugg Jeeyo team served up wedding vibes at the trailer launch venue. Varun Dhawan and Kiara looked stunning in their ethnic ensembles as they stepped out in their ethnic best. Neetu and Anil Kapoor were not far behind with their impeccable style. Jug Jugg Jeeyo, produced by Viacom 18 and Dharma Productions, is set to release in theatres on June 24. The film's trailer was released yesterday, and this family drama is all about emotions and entertainment.
english
Kraft Suspense Theater was an anthology series which featured a new cast and stories each week.Kraft Suspense Theater was an anthology series which featured a new cast and stories each week.Kraft Suspense Theater was an anthology series which featured a new cast and stories each week. This is a terrific program. It's on a rerun channel in my area (ME TV), and what a treat. It is truly excellent on every level. Perhaps its competition on other channels at the time caused it not to run as long as it otherwise might have. The actors and acting are top level. The plots are ingenuous and well executed. The sets and settings are high quality. You have variety with each program. It manages all this without offending the sensibilities - showing it can be done. For any mystery/somewhat thriller aficionado, I would think this one would rate high. If DVDs of this are available, they would well be worth pursuing. You have the variety and reliability. Excellent offering.
english
<reponame>andrewiskang/video-poker<filename>frontend/src/app/pages/login/login.component.css .login-card { width: 90%; max-width: 450px; margin: 40px auto 0 auto; text-align: center; } .login-social { text-align: left; margin: 5px 20px; width: 230px; padding: 10px 20px; font-size: 16px; font-weight: 500; } .login-social:first-of-type { margin-top: 20px; } .login-google { background-color: gray; color: white; } .login-facebook { background-color: rgb(60, 90, 150); color: white; } .login-email { background-color: crimson; color: white; } .login-phone { background-color: teal; color: white; } mat-card-title { margin-bottom: 10px; font-size: 30px; } fa-icon { margin-right: 15px; font-size: 20px; vertical-align: middle; }
css
DeAndre Hopkins is well aware of the rumors that the Arizona Cardinals may trade him. These rumors originated well before the NFL draft and continue to churn out today. If the Cardinals don't end up trading him, it would be a surprise. Hopkins recently spoke out about the potential trade and how he's handling the rumors. He said on the "I Am Athlete" podcast that he understands. "I have no ego. This is a business. This is a professional sport. People have jobs to do. You know, obviously, there's a new regime. There's new head coaches, new gyms. They come in and out every year on a sports team. "So for me, understanding that knowing that business, I can't go into it with ego. Hearing rumors of me being traded or shopped around that does nothing for me [as] far is making me feel some kind of way towards that team. " This wouldn't be the first time Hopkins was traded, so it's not exactly uncharted territory for him. He was part of one of the most lopsided trades in recent memory when the Houston Texans sent him and a fourth to the Cardinals for David Johnson, a second and a fourth-round selection. DeAndre Hopkins also recently spoke about what he's looking for in a new potential team via Fox Sports: "What I want is stable management upstairs. I think that's something that I haven't really had the past couple years of my career coming from Houston to being in Arizona. I've been through three to four GMs in my career. A QB who loves the game, a QB who brings everybody on board with him, pushes not just himself but people around him. "I don't need a great QB – I've done it with subpar QBs – just a QB who loves the game like I do. And a great defense. I think defense wins championships. " That means a team like the Baltimore Ravens, Kansas City Chiefs, Buffalo Bills, New York Giants or the Los Angeles Chargers makes sense as a potential landing spot. Top 5 players BANNED from the NBA for drug use! Shocking names ahead!
english
<gh_stars>0 @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap'); @font-face { font-family: Bebas; src: url('../fonts/BebasKai-Regular.otf'); } * { padding: 0; margin: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; color: #fff; background-color: #000; font-family: Noto Sans KR, Montserrat, Arial, Helvetica, sans-serif; font-weight: 700; } a { text-decoration: none; color: #fff; } .btn { border: 1.5px solid #fff; border-radius: 0.75rem; padding: 0.75rem 1.25rem; transition: all 0.3s ease-in-out; } .btn:hover { color: #000; background: #fff; }
css
When “Charmed” star Holly Marie Combs found out that the CW had officially greenlit a “Charmed” reboot, the original castmate tweeted the new cast well wishes, but her well wishes weren’t exactly sincere. But one thing the series will not feature is the original cast. But Combs’ simple and gracious tweet sent fans of the original cast into a frenzy saying that the CW shouldn’t reboot the series without the original members – and it appeared Combs agreed. “Adds feminist twist”? Have they seen the original? 3 kickass lead women. Can’t get more feminist than that,” one Twitter user said tagging all the original members in her post. Others just used Twitter to lament about the original series. Combs later backtracked her well-wishing to the show's new cast and tweeted a statement saying that the new "Charmed" would ultimately not compare to what the original was.
english
A smile is said to be the best jewel of a person, but with problems in your teeth, you can often feel shy and uncomfortable smiling wholeheartedly, especially in front of others. According to dentists, teeth are considered to be a sensitive and crucial part of overall health. Healthy eating, chewing, digesting, and even thinking; all depend on how healthy and strong your teeth are. But, most of the population takes dental health for granted and also ignores the symptoms that often lead to dental problems in the future. Not only this, but people also tend to believe several myths that are there in the market around teeth and Common Dental Misconceptions. These myths have instilled themselves as facts in the minds of the people, which also leads to ignorance of signs that can lead to possible dental problems in the future. Some of the misconceptions also create anxiety among people about going to the dentist and also result in avoiding it altogether. So, let's have a look at the misconceptions among people and clear them up with the facts straight from experienced dentists. Myth 1: More white teeth mean healthier teeth. Fact 1: A whiter and brighter smile surely is a confidence booster and an impressive quality of your overall personality. However, this does not mean that your teeth are healthy and fine. Ensuring you have healthy teeth should be your top priority. As per dentists, the aspects that consider your teeth as healthy and fine are the presence of cavities, gum health, and jaw bone health, not only white teeth. Myth 2: Having your gums bleed is normal, it happens to everyone! Fact 2: Occasional bleeding gums are not okay. You got that right. Many people feel that bleeding gums can do no harm, but it's not like that. They are a sign of gum disease, which simply means there is nothing normal about it. This also explains that for quite some time now a lot of calculus (hard deposits stuck on your teeth) has already accumulated, making your gums swell and bleed. Also, gum diseases left untreated may cause the loss of your teeth. Fact 3: A dentist is not only here to perform dental cleaning and other regular services. Along with cleaning and extraction services, an experienced dentist can also perform cosmetic services such as Invisalign and teeth whitening. Along with these root canals, oral cancer exams, and many more services are offered by dentists. Myth 4: You can't have braces as teenagers, but only as kids. Fact 4: Though correcting teeth problems at an early age is the best time, that does not mean that you cannot get them aligned as a teenager. There are several options today that can help you achieve straighter teeth aside from traditional metal braces, all of which you can consult with your dentist. Myth 5: Brushing regularly means you do not need to floss. Myth 6: While having baby teeth your kid does not need to see the dentist. Fact 6: This is the basic thing that every parent is misinformed about is that baby teeth are not as important as permanent teeth. This is not at all true. Yes, you got that right! Baby teeth are as important as permanent teeth. Cavities on baby teeth should be restored and filled before they lead to toothache or infection. They also play a big role in guiding the erupting permanent teeth in the right position. Misalignment in permanent teeth happens because baby teeth are sometimes removed too early because of any problem. Myth 7: Going to a dentist means pain. Fact 7: Talk about going to a dentist many people are afraid of having any treatment as it can lead to a lot of pain. Well, this is not at all true. This is a common reason for not visiting a dentist, but this does not ensure that every treatment will have pain associated with it. Most routine dental procedures such as scaling, polishing and tooth-filling can be performed without anesthesia. However, some of the treatments might cause some discomfort but are painless. Myth 8: Aesthetic value is found in well-aligned teeth. Fact 8: Well-aligned teeth do look good and can certainly boost the confidence of a person, but this is not the only thing that they are for. Having straight teeth mean easy-to-maintain and good oral hygiene, this habit needs to be developed in everyone at an early age. Crowding of teeth on the surfaces does not allow brushing to happen properly, eventually leading to gum disease or tooth decay. In addition to that, correction of a bad bite produces an even distribution of biting forces on all the teeth, reducing the risk of trauma to the jaw joints as compared to someone whose teeth do not occlude properly to touch each other properly. For better awareness about your teeth' position, it is better to get an orthodontic assessment from your dentist. Myth 9: Your teeth will be abraded by dental scaling. Fact 9: Excess of everything is known to harm you or your loved ones. There are right intervals when dental scaling and polishing should be done and will not do any damage to your teeth. The right interval is usually after 6 months or what is recommended by your dentist. If you or someone around you has a gum problem, then you all need to visit your dentist after every 3-4 months. Myth 10: Wearing dentures 24/7 is fine. Fact 10: Wearing your dentures during the day is fine, but it is recommended to remove them before going to bed. One of the reasons for doing this you will let your gums breathe from the constant pressure of the dentures. By soaking, dentures in a denture-cleaning solution will keep them clean. If they are not cleaned and cared for, then there is a lot of possibility of bacteria causing sores and irritation to the gums and palate. For more information and FREE personalized guidance, talk to Credihealth Medical Experts today.
english
American tennis professional Christopher Eubanks recently revealed that he sought former tennis pro Kim Clijsters' help at the start of the grass-court season. Eubanks, 27, claimed the first ATP tour title of his career on Saturday, July 1, by beating Adrian Mannarino, 6-1, 6-4, to win the 2023 Mallorca Championships. Due to his title win in Mallorca, Eubanks is set to make his debut in the top 50 of the singles rankings, at No. 43, ahead of Wimbledon. After winning his maiden ATP title, Christopher Eubanks turned to social media to share how four-time Grand Slam winner Clijsters helped him improve his play on grass. The American wrote on Twitter how he texted Clijsters after getting knocked out of the Surbiton trophy to complain about the surface, which he called "the stupidest surface to play on. " Eubanks shared screenshots of his conversation with the former World No. 1 to describe how the inconsistent bounce troubled his movement a lot. The chat revealed that Clijsters understood his ordeal and advised him to do some footwork drills. The three-time US Open winner also advised him to play slices on both the backhand and forehand. Eubanks thanked the former Belgian player for her support, which helped him work on his weaknesses. "How it started vs. How it’s going. Major THANK YOU to @Clijsterskim for keeping my spirits up at the start of this grass court season. I really appreciate you," Eubanks wrote on Twitter. Christopher Eubanks is set to make his Wimbledon main draw debut on Tuesday, July 4, against Brazilian Thiago Monteiro. The 27-year-old failed to qualify for the main draw of Wimbledon in the last four years, as he lost in the qualifiers all four times. However, this year, the World No. 77 directly earned his qualification to the main draw of the prestigious Grand Slam tournament. Speaking to the media after winning the Mallorca Championships, Eubanks reflected on competing at his maiden Wimbledon campaign. Talking about the same, the American said that coming to Wimbledon after winning his first title just a few days ago is something that is tough to believe. "To come into my first Wimbledon with my first ATP title is something that if you had told me when I showed up last Thursday that it would happen, I probably wouldn't have believed you," Christopher Eubanks stated.
english
NATO's chief said Tuesday the alliance sees no need to change its nuclear weapons alert level, despite Russia's threats. The alliance's secretary-general, Jens Stoltenberg, spoke to The Associated Press following talks on European security with Polish President Andrzej Duda. They met at an air base in Lask, central Poland, where NATO's Polish and US fighter jets are based. “We will always do what is needed to protect and defend our allies, but we don't think there is any need now to change the alert levels of NATO's nuclear forces,” Mr Stoltenberg said. The Kremlin has raised the spectre of nuclear war, reporting on Monday that its land, air and sea nuclear forces were on high alert following President Vladimir Putin's weekend order. NATO itself has no nuclear weapons, but three of its members, the United States, Britain and France, do. Stoltenberg stressed that Russia has signed a number of agreements, agreeing that nuclear war cannot be won and should not be fought. The United States recently reinforced the eastern flank of NATO's territory with some 5,000 additional troops.
english
Former United States President Donald Trump‘s upcoming social media platform TRUTHSocial, which has been highly awaited by his followers and those looking to make a quick buck in the market, has landed in the crosshairs of regulators. A company that joined hands with the Trump Media & Technology Group acknowledges that it had filed inquiries made by regulators early this week. The acknowledgment came with financial predictions about the company, which aims to lock horns with other platforms like Twitter and Facebook. Digital World Acquisition announced that it is in contact with the United States Securities Exchange Commission and the Financial Industry Regulation Authority about “the preliminary, fact-finding inquiries”, according to reports from Associated Press. The Financial Industry Regulation Authority, or FINRA, asked in late October and early November for a review of trading in Digital World Acquisition’s stock before the October 20 merger deal was announced. That announcement sent the stock surging from $9. 96 to $94. 20 in just two days as Trump supporters and investors looking to make a fast buck piled in. The shares have since pulled back to roughly $43. The Securities and Exchange Commission made a request in early November for documents related to meetings of Digital World Acquisition’s board, trading policies and other things. The company announced over the weekend that it has lined up $1 billion in promised investments for the former president’s new venture from a group of unnamed institutional investors, and it filed a copy of the presentation used to pitch investors and analysts. (With AP inputs)
english
<filename>src/main/webapp/gulp/e2e-tests.js<gh_stars>1-10 'use strict'; var gulp = require('gulp'); var $ = require('gulp-load-plugins')(); gulp.task('test:e2e', function () { return gulp.src(config.scripts.e2eSrc()) .pipe($.angularProtractor({ 'configFile': 'protractor.conf.js', 'autoStartStopServer': true, 'debug': false })) .on('error', function(e) { throw e }); });
javascript
General George S. Patton stated, "Success is how high you bounce when you hit bottom." It appears that Microsoft's smartphone efforts are about as close to the bottom as you can get, according to its latest earnings report. As a long time supporter of the underdog and Microsoft smartphone user, I knew things were going to be bad this year. However, I was a bit shocked by the latest earnings report that showed a revenue decline of 49 percent for its phones. Recent analyst data also shows market share may have fallen as low as just 1.6 percent. The Lumia 950, see my full review, was released as the first Windows Phone flagship over the past 18 months with an intent to satisfy the fans. It turns out the software is riddled with issues, the hardware design is uninspiring, and the fans don't appear to be buying it. The most successful Microsoft phones are the low end models that sell well in developing countries. However, there is not enough profit from these phones to sustain a phone sector for Microsoft. We've seen lots of talk and rumors of a possible Surface phone, but it seems more and more likely that this idea is the last hope for the diehard fans that refuse to give up on Microsoft's smartphone strategy. There has been no announcement that a Surface phone is under development, although there are sources who state it is being worked on and may be released at the end of 2016. Besides the Intel x86 architecture and likely deeper integration of Continuum, what else is there that this lauded Surface phone could offer that we haven't already seen from Microsoft or Nokia? Is the x86 support enough to differentiate it from the rest of the smartphone market? Renderings from fans show a metal phone with design elements similar to Surface tablets. We've seen similar phones, such as the Lumia 830, so I'm not convinced there is a revolutionary hardware design that is going to bring in the masses here. We've seen Windows phones with excellent cameras, solid design, and unique features, such as Windows Hello. None of that has led to success for Microsoft. One area where Microsoft is excelling in phones is with iOS and Android software. Outlook on iOS and Apple Watch is better than the native Apple email and calendar clients, Office on other platforms is excellent, and Microsoft is even bringing its amazing Word Flow keyboard to iOS. ZDNet's Mary-Jo Foley analyzed these recent financials and states that Microsoft's future is hinging on cloud and subscription services. Given my experiences with Outlook on iOS, I would pay Microsoft a subscription fee to use this service and wouldn't mind seeing the mobile resources at Microsoft focus on software and service while finally giving up on hardware.
english
Emerging smartphone brand iQOO on March 21 unveiled new mid-range Z7 5G series in India. It also features a hybrid dual-slot tray , an in-screen fingerprint sensor, and a 3. 5mm audio jack. Apple seems to have the Midas touch in the tech industry, or it is just the herd following we see, just like in every other sector. Either ways, a new trend is slowly catching up, and it may soon make your beloved 3. 5mm audio jack obsolete.
english
GM Modular is presently going through a purple patch, and just recently it bagged the coveted and prestigious Realty Plus INEX Award as the Best Brand of the Year 2023 for the best brand in the Home electric solutions category. It is a phenomenal feat to begin with at the start of the year! GM Modular is presently going through a purple patch, and just recently it bagged the coveted and prestigious Realty Plus INEX Award as the Best Brand of the Year 2023 for the best brand in the Home electric solutions category. It is a phenomenal feat to begin with at the start of the year! GM is India's leading brand in modular switches and home electrical accessories, founded in 2002. It caters to a myriad of customers worldwide, and its pathbreaking, innovative home electrical solutions have transformed people's lives tremendously. Over the years, GM has launched a brilliant range of contemporary products among different segments for both residential and commercial needs, like new generation switches, home automation, Bluetooth music players, switchgear, LED lighting, and more. The brand relentlessly works on innovative and long-term solutions pertaining to the different needs of various home electric solutions. Commenting on this marvellous triumph, Jayanth Jain, CEO & MD, GM Modular said, "Technological innovation is one of the keynote focus areas of GM Modular with the heartfelt aim of revolutionizing the lives of our staunch customers, and we're elated that our efforts to create a long-term solution to the existing needs have been recognised in the form of these accolades. " Consumers can visit our experience centers across the country and get first-hand experience of all our path-breaking products and feel innovation at its best. " This story is provided by PNN. will not be responsible in any way for the content of this article. (ANI/PNN) ( With inputs from ANI )
english
New Delhi, Oct 26 (IANS/wishavwarta) The Manohar Lal Khattar-led Haryana government completed eight years on Wednesday with emphasis on uprooting corruption, crime and casteism. “In these eight years, special focus has been laid on chalking out a three ‘C’ strategy — to uproot corruption, caste and crime,” Khattar told the media here. The emphasis, he said, has been given on promoting ‘5S’ — Shiksha, Swasthaya, Suraksha, Swabhiman and Swavlambhan — so as to ensure holistic development of Haryana. The Chief Minister said the blueprint of development as shared by Prime Minister Narendra Modi has greatly inspired him to continuously work to bring radical changes in the working of the government and make life easier for the citizens. On this occasion, Khattar released a booklet on the government’s achievements compiled by the Department of Information, Public Relations and Languages. The Chief Minister said that in these eight years, dozens of radical changes have been brought in Haryana but the introduction of Parivar Pehchan Patra (PPP) is on the top of eight highlights of his government. “Through this one-of-its-kind umbrella scheme, while considering the family as a unit, benefits of all welfare schemes, programmes and services of the state government are being given on a single platform. Today, all the welfare schemes are being linked to PPP,” Khattar said. Automatic disbursal of pension benefits is being ensured through PPP. As soon as a person attains pension age, his/her pension automatically starts through PPP. Besides this, the work of issuing yellow ration cards is also being done through PPP. Initially, this scheme was started on a pilot basis in Sirsa and Kurukshetra districts, said Khattar. Khattar said in the first phase of Mukhyamantri Antyodaya Parivar Utthan Abhiyan, a target has been set to identify about two lakh poor families having an annual income of less than Rs 1 lakh. After identification, the government has set a target to increase the family income of such families by up to Rs 1 lakh. In a bid to give maximum benefits to such families, the annual income slab of BPL families has been increased from Rs 1. 20 lakh to Rs 1. 80 lakh. In this Antyodaya abhiyan, uplifting the poorest of the poor has been set as the utmost priority, he said. In the three phases of Antyodaya Gram Utthan Melas, till now, loan sanction letters have been given to more than 33,000 poor families for self-employment. Besides, job opportunities have also been provided to such beneficiaries in the private sector, Khattar added.
english
Reliance Industries chairman Mukesh Ambani and wife Nita Ambani have announced the birth of their first grandchild. Their son Akash Ambani and daughter-in-law Shloka Mehta have welcomed a baby boy in Mumbai today. An official statement from the Ambani family's spokesperson read, "With the grace and blessings of Lord Krishna , Shloka and Akash Ambani became proud parents of a baby boy today in Mumbai. Both mother and son are doing well. The new arrival has brought immense joy to the entire Mehta and Ambani families. Nita and Mukesh Ambani are delighted to become grandparents. " Akash is Mukesh Ambani's first son and he proposed to diamantaire Russel Mehta and Mona's daughter Shloka Mehta in March 2018 after having dated since high school. The couple got married in a star-studded event on March 9. Their wedding was attended by various corporate leaders, actors, and politicians, including Google CEO Sundar Pichai, Rajinikanth, and Shah Rukh Khan, among many others. Follow us on Google News and stay updated with the latest!
english
<reponame>humanfirstimpact/locusnine__serverless-template<filename>tests/searchEngineTests.ts import { expect } from 'chai'; import 'mocha' import { SearchEngine } from '../src/search/SearchEngine' describe('Search Engine tests', () => { it('should return some results', () => { var engine = new SearchEngine(); var results = engine.getResults(); expect(results).to.not.be.null; expect(results.length).to.be.greaterThan(0); }) })
typescript
{"d3-time-format.js":"<KEY>,"d3-time-format.min.js":"<KEY>}
json
<gh_stars>1-10 require('./bootstrap'); window.registerMenu({ name: "main", path: "", text: "main", }); window.registerMenu({ name: "Dashboard", path: "main", text: "Dashboard", }); window.registerMenu({ name: "Reportes", path: "main", text: "Reportes", }); window.registerMenu({ name: "Configuración", path: "main", text: "Configuración", }); require('./modules'); require('./app');
javascript
<filename>platform/platform-api/src/com/intellij/ExtensionPoints.java // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij; import com.intellij.openapi.diagnostic.ErrorReportSubmitter; import com.intellij.openapi.extensions.ExtensionPointName; import org.jetbrains.annotations.ApiStatus; public interface ExtensionPoints { /** * This extension point allows a plugin vendor to provide the user ability to report fatal errors (aka exceptions) that happened in * their plugin code. * Extension declaration sample is as follows: * <pre> * &lt;extensions xmlns="com.intellij"&gt; * &lt;errorHandler implementation="my.plugin.package.MyErrorHandler"/&gt; * &lt;/extensions&gt; * </pre> * my.plugin.package.MyErrorHandler class must implement {@link ErrorReportSubmitter} abstract class. */ @ApiStatus.Internal ExtensionPointName<ErrorReportSubmitter> ERROR_HANDLER_EP = ExtensionPointName.create("com.intellij.errorHandler"); }
java
<gh_stars>1-10 { "staging": { "configLevel": "amplifyAdmin" }, "main": { "configLevel": "amplifyAdmin" } }
json
<reponame>DharmendraVinay/geode<filename>geode-core/src/main/java/org/apache/geode/internal/util/concurrent/StoppableReentrantReadWriteLock.java<gh_stars>1-10 /* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. You may obtain a * copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express * or implied. See the License for the specific language governing permissions and limitations under * the License. */ /* * Written by <NAME> with assistance from members of JCP JSR-166 Expert Group and released to the * public domain, as explained at http://creativecommons.org/licenses/publicdomain */ package org.apache.geode.internal.util.concurrent; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; import org.apache.geode.CancelCriterion; import org.apache.geode.internal.Assert; /** * Instances of {@link java.util.concurrent.locks.ReentrantReadWriteLock} that respond to * cancellation * */ public class StoppableReentrantReadWriteLock implements /* ReadWriteLock, */ java.io.Serializable { private static final long serialVersionUID = -1185707921434766946L; /** * The underlying read lock */ private final transient StoppableReadLock readLock; /** * the underlying write lock */ private final transient StoppableWriteLock writeLock; /** * This is how often waiters will wake up to check for cancellation */ private static final long RETRY_TIME = 15 * 1000; // milliseconds /** * Create a new instance * * @param stopper the cancellation criterion */ public StoppableReentrantReadWriteLock(CancelCriterion stopper) { this(new ReentrantReadWriteLock(), stopper); } protected StoppableReentrantReadWriteLock(ReadWriteLock lock, CancelCriterion stopper) { Assert.assertTrue(stopper != null); this.readLock = new StoppableReadLock(lock, stopper); this.writeLock = new StoppableWriteLock(lock, stopper); } /** * @return the read lock */ public StoppableReadLock readLock() { return readLock; } /** * @return the write lock */ public StoppableWriteLock writeLock() { return writeLock; } /** * read locks that are stoppable */ public static class StoppableReadLock { private final Lock lock; private final CancelCriterion stopper; /** * Create a new read lock from the given lock * * @param lock the lock to be used * @param stopper the cancellation criterion */ StoppableReadLock(ReadWriteLock lock, CancelCriterion stopper) { this.lock = lock.readLock(); this.stopper = stopper; } public void lock() { boolean interrupted = Thread.interrupted(); try { for (;;) { try { lockInterruptibly(); break; } catch (InterruptedException e) { interrupted = true; } } // for } finally { if (interrupted) Thread.currentThread().interrupt(); } } /** * @throws InterruptedException */ public void lockInterruptibly() throws InterruptedException { for (;;) { stopper.checkCancelInProgress(null); if (lock.tryLock(RETRY_TIME, TimeUnit.MILLISECONDS)) break; } } /** * @return true if the lock was acquired */ public boolean tryLock() { stopper.checkCancelInProgress(null); return lock.tryLock(); } /** * @param timeout how long to wait * @return true if the lock was acquired * @throws InterruptedException */ public boolean tryLock(long timeout) throws InterruptedException { stopper.checkCancelInProgress(null); return lock.tryLock(timeout, TimeUnit.MILLISECONDS); } public void unlock() { lock.unlock(); } // /** // * @return the new condition // */ // public StoppableCondition newCondition() { // return new StoppableCondition(lock.newCondition(), stopper); // } } public static class StoppableWriteLock { /** * The underlying write lock */ private final Lock lock; /** * the cancellation criterion */ private final CancelCriterion stopper; /** * Create a new instance * * @param lock the underlying lock * @param stopper */ public StoppableWriteLock(ReadWriteLock lock, CancelCriterion stopper) { this.lock = lock.writeLock(); this.stopper = stopper; } public void lock() { boolean interrupted = Thread.interrupted(); try { for (;;) { try { lockInterruptibly(); break; } catch (InterruptedException e) { interrupted = true; } } // for } finally { if (interrupted) Thread.currentThread().interrupt(); } } /** * @throws InterruptedException */ public void lockInterruptibly() throws InterruptedException { for (;;) { stopper.checkCancelInProgress(null); if (lock.tryLock(RETRY_TIME, TimeUnit.MILLISECONDS)) break; } } /** * @return true if the lock was acquired */ public boolean tryLock() { stopper.checkCancelInProgress(null); return lock.tryLock(); } /** * @param timeout how long to wait * @return true if the lock was required * @throws InterruptedException */ public boolean tryLock(long timeout) throws InterruptedException { stopper.checkCancelInProgress(null); return lock.tryLock(timeout, TimeUnit.MILLISECONDS); } /** */ public void unlock() { lock.unlock(); } // /** // * @return the new condition // */ // public StoppableCondition newCondition() { // return new StoppableCondition(lock.newCondition(), stopper); // } } }
java
Posted On: The Union Government is committed to accelerating the pace and expanding the scope of COVID-19 vaccination throughout the country. The nationwide COVID 19 vaccination started on 16th January 2021. The new phase of universalization of COVID-19 vaccination commenced from 21st June 2021. The vaccination drive has been ramped up through availability of more vaccines, advance visibility of vaccine availability to States and UTs for enabling better planning by them, and streamlining the vaccine supply chain. As part of the nationwide vaccination drive, Government of India has been supporting the States and UTs by providing them COVID Vaccines free of cost. In the new phase of the universalization of the COVID19 vaccination drive, the Union Government will procure and supply (free of cost) 75% of the vaccines being produced by the vaccine manufacturers in the country to States and UTs. (As on 1st July 2022) More than 193.53 crore (1,93,53,58,865) vaccine doses have been provided to States/UTs so far through Govt. of India (free of cost channel) and through direct state procurement category. More than 11.36 Cr (11,36,58,910) balance and unutilized COVID Vaccine doses are still available with the States/UTs to be administered.
english
{ "plugin-data": { "name": "G3Nshop Plugin", "description": "Solución sencilla de comercio on-line para Bludit." }, "categoria-tienda": "Categoría de la Tienda", "categorias": "Categorías", "moneda": "Moneda", "tienda": "G3Nshop", "producto": "Producto", "productos-publicados": "Productos Publicados", "precio": "Precio", "tallas" : "Tallas", "colores": "Colores", "separar-x-comas": "Separar por comas", "colores-ejemplo": "Rojo, Verde, Azul", "buscar": "Búsqueda", "resultados": "resultados", "cuenta-paypal": "Cuenta de Paypal", "modo-paypal": "Modo Paypal", "pruebas": "Pruebas", "ventas": "Ventas", "carrito": "Carrito", "precios": "Precios", "relacionados": "Relacionados", "busqueda": "Búsqueda", "agregar-carro": "Añadir al Carrito", "left" : "Left", "right" : "Right", "display-type" : "Display type", "ribbon" : "Ribbon", "stickybar" : "Stickybar", "if-stickybar-is-selected-you-can-insert-more-text." : "If stickybar is selected you can insert more text.", "link" : "Link", "horizontal-orientation" : "Horizontal orientation", "vertical-orientation" : "Vertical orientation", "top" : "Top", "bottom" : "Bottom", "background-color" : "Background color", "link-color" : "Link color" }
json
<gh_stars>0 { "CaseRecords": { "AppName": "<AppName>", "DatabaseName": "<DatabaseName>", "ConnectionString": "<ConnectionString>" }, "MedicalCases": { "AppName": "<AppName>", "DatabaseName": "<DatabaseName>", "ConnectionString": "<ConnectionString>" }, "ResourceGroups": { "AppName": "<AppName>", "DatabaseName": "<DatabaseName>", "ConnectionString": "<ConnectionString>" }, "Account": { "Key": "<key>", "Inx": "<inx>" }, "Records": { "Key": "<key>", "Inx": "<inx>" }, "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } } }
json
Apple to replace iPad 4th gen with iPad Air 2 IANS Last Updated : 16 Apr 2017 01:53:00 PM IST (File Photo: iPad Air 2) Customers who need to replace their fourth generation iPad will now get a newer and more capable iPad Air 2 as a substitute from Apple Stores and authorised service providers, a media report said. Apple is doing this because the company has no stock left of the aging and now discontinued fourth generation iPad, 9to5Mac website reported on Saturday. Apple has also asked its staff to inform customers of the replacement unit's colour and capacity. The iPad Air 2 introduced a new gold colour option, and has 32GB and 128GB storage options while 16GB and 64GB models were discontinued. For that reason, the users may receive a slight upgrade in storage when getting a replacement in addition to the device's newer and more powerful internals overall.
english
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap'); *{ box-sizing: border-box; } body { font-family: 'Roboto', sans-serif; height: 100px; } head { background-color: #71c7ec; text-emphasis: center; font-size: 40px; } #left { float: left; margin-top: 30px; margin-left: 30px; width: 500px; height: 100px; border-radius: 1%; padding: 10px; color: #1ebbd7; } #right { float: right; margin-top: 30px; margin-left: 30px; width: 500px; height: 100px; border-radius: 1%; padding: 10px; color: #1ebbd7; } footer{ margin-top: 1000px; text-align: center; padding-top: 10px; padding-bottom: 10px; } table, tr , th { border: 1px solid block; border-style: double; } th{ display: inline-block; } form { display: inline-block; }
css
<gh_stars>1-10 package com.data2.easybuild.db; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.generator.AutoGenerator; import com.baomidou.mybatisplus.generator.config.DataSourceConfig; import com.baomidou.mybatisplus.generator.config.GlobalConfig; import com.baomidou.mybatisplus.generator.config.PackageConfig; import com.baomidou.mybatisplus.generator.config.StrategyConfig; import com.baomidou.mybatisplus.generator.config.rules.DateType; import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine; //import com.liuyanzhao.sens.controller.base.BaseController; /** * @author liuyanzhao * @since 2021/7/9 */ public class GeneratorTest { public static final String DB_NAME = "test"; public static final String DB_USER = "root"; public static final String DB_PASSWORD = "<PASSWORD>"; public static final String DB_DRIVER = "com.mysql.cj.jdbc.Driver"; // 驱动包,MySQL5 需要去掉中间的.cj public static final String[] TABLE_NAME_ARR = {"records"}; // 需要生成代码的表名 public static final String AUTHOR = "data2"; // author里显示的名字 public static final String PACKAGE_PREFIX = "com.data2.easybuild.db"; // 项目包名前缀 @SuppressWarnings("deprecation") public static void main(String[] args) { // 1、创建代码生成器 AutoGenerator mpg = new AutoGenerator(); // 2、全局配置 mpg.setTemplateEngine(new FreemarkerTemplateEngine()); // 设置模板 GlobalConfig gc = new GlobalConfig(); String projectPath = System.getProperty("user.dir"); gc.setOutputDir(projectPath + "/src/main/java"); gc.setAuthor(AUTHOR); gc.setOpen(false); // 生成后是否打开资源管理器 gc.setFileOverride(false); // 重新生成时文件是否覆盖 // gc.setServiceName("%sService"); //去掉Service接口的首字母I。如果需要生成的service接口类最前面有I,这把这行注释掉 gc.setMapperName("%sMapper"); gc.setIdType(IdType.AUTO); // 主键策略, UUID使用IdType.UUID, 自增用AUTO gc.setDateType(DateType.ONLY_DATE);// 定义生成的实体类中日期类型 gc.setSwagger2(false);// 开启Swagger2模式 mpg.setGlobalConfig(gc); // 3、数据源配置 DataSourceConfig dsc = new DataSourceConfig(); dsc.setUrl("jdbc:mysql://localhost:3306/" + DB_NAME + "?serverTimezone=GMT%2b8&characterEncoding=UTF-8&useSSL=false"); dsc.setDriverName(DB_DRIVER); dsc.setUsername(DB_USER); dsc.setPassword(<PASSWORD>); dsc.setDbType(DbType.MYSQL); mpg.setDataSource(dsc); // 4、包配置 PackageConfig pc = new PackageConfig(); // pc.setModuleName("模块名"); // 模块名,如果需要按模块生成,则打开这行代码,否则注释掉这行 pc.setParent(PACKAGE_PREFIX); pc.setController("controller"); pc.setEntity("model"); pc.setService("service"); pc.setMapper("dao"); mpg.setPackageInfo(pc); // 5、策略配置 StrategyConfig strategy = new StrategyConfig(); strategy.setInclude(TABLE_NAME_ARR); // 生成的表 strategy.setNaming(NamingStrategy.underline_to_camel);// 数据库表映射到实体的命名策略 strategy.setTablePrefix("t_"); // 生成实体时去掉表前缀 strategy.setColumnNaming(NamingStrategy.underline_to_camel);// 数据库表字段映射到实体的命名策略 strategy.setEntityLombokModel(false); // lombok 模型 @Accessors(chain = true) setter链式操作 strategy.setEntityBooleanColumnRemoveIsPrefix(true);//去掉布尔值的is_前缀 strategy.setRestControllerStyle(true); // restful api风格控制器 //strategy.setControllerMappingHyphenStyle(true); // url中驼峰转连字符, 默认是驼峰命名 // 设置controller父类 // strategy.setSuperControllerClass(BaseController.class.getName()); mpg.setStrategy(strategy); // 6、执行 mpg.execute(); } }
java
Harbhajan Singh recalls an April Fool's prank played on Sourav Ganguly (Hindi version) April Fool's day is a day full of pranks. Sourav Ganguly was at the receiving end of one such prank orchestrated by a few Indian team players, namely Harbhajan Singh, Yuvraj Singh and Zaheer Khan. Ganguly, who couldn't quite comprehend what had happened, even thought about stepping down as captain. Watch as Bhajji relives the tale.
english
import requests url = 'http://127.0.0.1:9000/api/comments' resp = requests.post( url, data={ "name": "wnn", "email": "<EMAIL>", "comments": "comment", "page_id":"2" } ) print(resp.text)
python
const Discord = require("discord.js") const got = require("got") exports.run = async (bot, message, args) => { const server = message.content.split(" ").slice(1).join(" ") if (!server) { var embed = new Discord.RichEmbed() .setColor("GREEN") .setDescription("❌ | Please Include The **IP Address** Too!") message.channel.send({ embed: embed }) } const url = await got(`https://api.mcsrvstat.us/1/${server}`, {json: true}) if (url.body.ip === "") { var embed = new Discord.RichEmbed() .setColor("GREEN") .setDescription("❌ | Invalid **IP Address**!") message.channel.send({ embed: embed }) } var embed = new Discord.RichEmbed() .setAuthor(`${message.author.tag} | Minecraft Server Status`, message.author.displayAvatarURL) .setDescription(`On \`${server}\``) .addField("🏷 | IP Adress ", `**__${url.body.ip}__**`) .addField("🔌 | Port ", `**__${url.body.port}__**`) .setTimestamp() .setThumbnail("https://cdn.worldvectorlogo.com/logos/minecraft-1.svg") .setColor('GREEN') .setFooter(`• Messages For: ${message.author.tag}`); message.channel.send({ embed: embed }) }; exports.help = { name: 'mcstats', aliases: ['mcs', 'mcm'], description: 'Shows Minecraft Server Status!', usage: '(p)mcstats [server ip]' };
javascript
The Tribune Steps to curb monkey menace listed TRIBUNE NEWS SERVICE SHIMLA, FEBRUARY 29 Forest Minister Thakur Singh Bharmouri today said nine natural habitats (vanar vatikas) will be set up around the monkey sterilization centres and the case for declaring monkeys as vermin will be moved to the Centre so that the menace can be controlled. Replying to a query by Maheshwar Singh during the Question Hour in the SHIMLA, FEBRUARY 29 The Assembly today witnessed heated exchanges between the Opposition and ruling party members on references to Afzal Guru and the Centre's clampdown on antinational activities in the Jawaharlal Nehru University (JNU).It was references made to Afzal Guru and the Modi regime acting tough on JNU activists by CPS Jagjivan Pal that evoked sharp response om the BJP. TNS 66 The moment the survey data is compiled, the case seeking declaration of monkeys as vermin will be moved to the Centre.99 -Thakur Singh Bharmouri, FOREST MINISTER Assembly on the attacks by stray dogs and wild animals today, Bharmouri said the task of undertaking survey of monkeys was complete and the moment the data is compiled, the case seeking declaration of monkeys as JNU issue generates heat TRIBUNE NEWS SERVICE vermin would be moved to the Centre for approval. "More than one lakh monkeys have been sterilized so far and the latest census has indicated that the number of monkeys has come down," he said. SHIMLA, FEBRUARY 29 The Assembly today passed the supplementary demands for grant amounting to Rs 2102.27 crore for 2015-16. Chief Minister Virbhadra Singh had presented the demands on February 26. The demands included allocation of Rs 1270.40 crore under the non-plan schemes, Rs 352.10 crore under the plan, schemes and Rs 479.77 crore under the Centrally sponsored schemes. Leader of Opposition PK Dhumal said monkey menace was a very big problem all over the state and the state government must at least move the case for declaration of monkeys as vermin in endemic Supplementary demands approved Under the non-plan expenditure, a provision of Rs 527.57 crore has been made for subsidy to the HP State Electricity Board (HPSEB) on account of roll back of tariff, Rs 157.86 crore to Sutlej Jal Vidyut Nigam (SJVN) on account of generation tariff, Rs 125.79 crore for payment of interest on loans taken by the state government, Rs 60.19 crore for the police and its allied organisations. Rs 124.06 crore for mid-day meal and grants to the PTA, Rs 117.19 crore for the construction of various roads, buildings and bridges and Rs 28.02 crore for the construction of buildings of medical colleges. Under the Centrally sponsored schemes, most of the expenditure is for funding the ongoing or new schemes, for which money has been received during the year from the Government of India. areas like Shimla and Hamirpur. He asked the Forest Minister to lay the documents supporting his statement on the table of the House. Major expenditure under the plan schemes included Inder Singh (BJP) raised the issue of delay in approval to the channelization of the Seer khud in Gopalpur area of Mandi district. "I fail to understand why there is delay as the DPR of the project had been sent to the Centre and relevant documents also submitted before the Central Water Commission," he said.
english