text
stringlengths
1
1.04M
language
stringclasses
25 values
#include<iostream.h> #include<conio.h> class sum { // hidden data from outside world private: int a,b,c; public: void add() { clrscr(); cout<<"Enter any two numbers: "; cin>>a>>b; c=a+b; cout<<"Sum: "<<c; } }; void main() { sum s; s.add(); getch(); }
cpp
A lthough it had its origin in Orissa, Gitagovindam (Ashtapadi) continues to be a phenomenon even today thanks to its pan-Indian acceptance. The 12th century composition of poet Jayadeva reached Kerala within a century of its creation. Here, it was rendered by temple musicians of the Marar community to the accompaniment of the edakka at the Sopanam (steps) of the sanctum sanctorum. The style of singing, known as Sopana Sangeetham, was unique to this land. However, women were not allowed to perform it. But Carnatic musician Girija Balakrishnan was so enamoured by this branch of music that she started learning it at an early age. Orthodoxy and tradition prevents her from rendering it at the Sopanam, but over the past decade and more, her Ashtapadi concerts have become a star attraction in almost all major temple festivals of Malabar. The first and perhaps the only female singer of Ashtapadi, Girija explained in an interview the nuances of this genre of music and also her assiduous efforts to learn it. I belong to Aanamangad in Perinthalmanna, Malappuram district. As a child, I evinced great interest in light music. Naturally, school youth festivals were opportunities to prove my skills which I did, right from the lower primary classes. In the higher classes, I won prizes at the district level for Sanskrit recitations also. My mother was well disposed towards music and her readings of the Ramayana had left a lasting impression in my mind. Academic studies prevented me from taking music seriously. In-depth training in music was possible only after my marriage and after I landed a job. I must mention here the unstinted support of my husband, Balakrishnan Aanamangad, in my pursuit of music. Both of us are school teachers. My husband has many lyrics to his credit that have been adopted into typical Carnatic compositions. My first guru in Carnatic music was Shyamala teacher. Thereafter I was trained by Vasanthi teacher of the Sadanam Academy, Pathirippala. I had two children by that time and Pathirippala was far from where we stayed. But I braved all these challenges and continued learning for eight years. It gave me a strong foundation in music. Later on, I graduated in Carnatic music from Madras University as well. It was Manjalur Surendran who initiated me into Sopana Sangeetham. I was captivated by the ambience which this branch of music generated, especially when sung to the accompaniment of the edakka. I was also encouraged by Gangadharan, my professor of Malayalam in Government College, Perinthalmanna, to continue my learning. That's how I became a disciple of Janardanan Nedungadi of Guruvayur, who, I feel, is the living legend of Ashtapadi. A gifted musician apart, he is a scholar well versed in the Gitagovindam. His Ashtapadi rendition at Guruvayur temple for decades had fetched him international recognition. His tradition in this field is long. His guru was his own father, Anujan Thirumulpad, who was the musician at the same temple. The sruti alignment of his recital, clarity of diction, raga bhava and rendition of the verses that lay emphasis on the meaning – all are unparalleled. For my guru, I was his daughter and he compelled me to stay at his home for practice. He would go on teaching me for hours together, forgetting all his other engagements. Keeping sruti on the edakka, I have sung in numerous temple festivals among which the major ones include Thirumandhamkunnu, Thiruwalluamala, Thirunavaya, Nayarambalam, Ramamangalam, Kottakkal, Vazhankada and Guruvayur. At all these temples, I had to perform at the ‘thiirumuttam' only and not at the Sopanam. At Thirumandhamkunnu, I have sung regularly for 15 years. I am also a regular invitee to the Poonthanam Day celebrations. A woman playing the edakka has not been to the liking of some traditionalists; but I do it with the permission of my guru. In Ashtapadi concerts, pakka melams such as violin, flute, mridangam and so on are used. I am happy to say that people have welcomed my concerts wholeheartedly all these years. For many of them, opportunities to listen to Ashtapadi are very few as only big temples can afford to employ a permanent singer. I have also had concerts in which a separate artiste for the edakka has been engaged while I keep rhythm by beating on the gong (chengala). This is the style followed by my guru. I have been performing regularly in ‘Utsav,' an annual festival of cultural programmes organised by the government in Perinthalmanna. There have been invitations from outside Kerala but, so far, I could not honour them owing to different reasons. I am a graded artiste of All India Radio. And so is my daughter Anjali Krishnan. Almost all the Malayalam TV channels have telecast my programmes, some of them live. Two of my students have won recognition in the State school youth festival. From July onwards I have begun giving free training to a few select students in Carnatic music. I will train them in Ashtapadi only if they are interested.
english
A subscription to JoVE is required to view this content. You will only be able to see the first 2 minutes. The JoVE video player is compatible with HTML5 and Adobe Flash. Older browsers that do not support HTML5 and the H.264 video codec will still use a Flash-based video player. We recommend downloading the newest version of Flash here, but we support all versions 10 and above. If that doesn't help, please let us know. Please note that all translations are automatically generated. एक विशिष्ट ऊतकों में कोशिकाओं के एक सबसेट के जीन अभिव्यक्ति विश्लेषण एक बड़ी चुनौती का प्रतिनिधित्व करता है। यह लेख लेजर कब्जा microdissection के साथ एक तेजी से immunolabeling विधि संयोजन के द्वारा एक विशेष सेल आबादी से उच्च गुणवत्ता वाले कुल शाही सेना को अलग करने के लिए कैसे करें।
english
<gh_stars>100-1000 { "alias": "video/454/pyconau-2010--state-of-python", "category": "PyCon AU 2010", "copyright_text": "Creative Commons Attribution-NonCommercial-ShareAlike 3.0", "description": "State Of Python\n\nPresented by <NAME>\n\nThis talk will present a whirlwind update of the state of Python as of\nJune 2010. It will cover the evolution of the language itself, its\nvariants, versions and veracity. It will cover the state of packaging,\ndistributing and pypi.\n", "duration": null, "id": 454, "language": "eng", "quality_notes": "", "recorded": "2010-06-26", "slug": "pyconau-2010--state-of-python", "speakers": [ "<NAME>" ], "summary": "", "tags": [ "advocacy", "core", "language", "pyconau", "pyconau2010" ], "thumbnail_url": "https://archive.org/services/img/pyvideo_454___pyconau-2010-state-of-python", "title": "PyConAU 2010: State Of Python", "videos": [ { "type": "archive.org", "url": "https://archive.org/details/pyvideo_454___pyconau-2010-state-of-python" } ] }
json
package services; import play.libs.ws.WSResponse; import java.util.concurrent.ExecutionException; public interface WeatherApi { WSResponse getCityMetadata(String cityName) throws ExecutionException, InterruptedException; WSResponse getForecastForCity(String cityId) throws ExecutionException, InterruptedException; }
java
<filename>vendors/tinymce/plugins/visualblocks/plugin.min.js tinymce.PluginManager.add("visualblocks", function (e, t) { function n() { var t = this; t.active(r), e.on("VisualBlocks", function () { t.active(e.dom.hasClass(e.getBody(), "mce-visualblocks")) }) } var i, a, r; window.NodeList && (e.addCommand("mceVisualBlocks", function () { var n, o = e.dom; i || (i = o.uniqueId(), n = o.create("link", { id: i, rel: "stylesheet", href: t + "/css/visualblocks.css" }), e.getDoc().getElementsByTagName("head")[0].appendChild(n)), e.on("PreviewFormats AfterPreviewFormats", function (t) { r && o.toggleClass(e.getBody(), "mce-visualblocks", "afterpreviewformats" == t.type) }), o.toggleClass(e.getBody(), "mce-visualblocks"), r = e.dom.hasClass(e.getBody(), "mce-visualblocks"), a && a.active(o.hasClass(e.getBody(), "mce-visualblocks")), e.fire("VisualBlocks") }), e.addButton("visualblocks", { title: "Show blocks", cmd: "mceVisualBlocks", onPostRender: n }), e.addMenuItem("visualblocks", { text: "Show blocks", cmd: "mceVisualBlocks", onPostRender: n, selectable: !0, context: "view", prependToContext: !0 }), e.on("init", function () { e.settings.visualblocks_default_state && e.execCommand("mceVisualBlocks", !1, null, {skip_focus: !0}) }), e.on("remove", function () { e.dom.removeClass(e.getBody(), "mce-visualblocks") })) });
javascript
<reponame>Urvessss/com-cg-oct12-batch3 package com.cg.oct12.batch3.Day7; public class App { public static void main(String[] args) { String str="abc"; int num=Integer.parseInt(str); System.out.println(num); } }
java
<reponame>jwzimmer/tv-tropes<filename>linked_article_tropes/linked_trope_dict_from_AdaptationalBackstoryChange.json {"AdaptationalBackstoryChange": ["SettingUpdate", "LighterAndSofter", "AdaptationExpansion", "AdaptationDeviation", "AdaptationExpansion", "ExternalRetcon", "AdaptationOriginConnection", "AdaptationalNationality", "FantasticRacism", "HalfHumanHybrid", "OlderThanTheyLook", "KidHero", "TheChosenOne", "ChildProdigy", "AdaptationExpansion", "ParentalAbandonment", "PromotedToParent", "AdaptationExpansion", "ChildhoodFriend", "Hikikomori", "WildChild", "IgnoredExpert", "RecursiveCanon", "Yakuza", "ChildProdigy", "AdaptationExpansion", "ParentalAbandonment", "PromotedToParent", "ChildhoodFriend", "Hikikomori", "IgnoredExpert", "RecursiveCanon", "Yakuza", "RelatedInTheAdaptation", "HappilyAdopted", "TrueCompanions", "Magitek", "AdaptationalVillainy", "Magitek", "AdaptationalVillainy", "DeliveryStork", "OnlyFatalToAdults", "ThePlague", "CrystalPrison", "RelatedInTheAdaptation", "OlderThanTheyLook", "Exposition", "TheRunaway", "LongLostRelative", "SettingUpdate", "DarkAndTroubledPast", "EvilFormerFriend", "PlotParallel", "DarkAndTroubledPast", "CorruptCorporateExecutive", "WildChild", "GoldfishPoopGang", "HypercompetentSidekick", "GoneHorriblyRight", "LethallyStupid", "IneffectualSympatheticVillain", "SuperSoldier", "OlderThanTheyLook", "Exposition", "TheRunaway", "LongLostRelative", "SettingUpdate", "CorruptCorporateExecutive", "WildChild", "GoldfishPoopGang", "HypercompetentSidekick", "GoneHorriblyRight", "LethallyStupid", "IneffectualSympatheticVillain", "BigBad", "DoorstopBaby", "Cyclops", "AdaptationalSuperpowerChange", "HandBlast", "AdaptationExpansion", "PosthumousCharacter", "AdaptationalSuperpowerChange", "HandBlast", "PosthumousCharacter", "DarkAndTroubledPast", "BigBrotherBully", "Hell", "Heaven", "AdaptationNameChange", "SparedByTheAdaptation", "AdaptationalSexuality", "RaceLift", "AdaptationalNationality", "AdaptationJobChange", "AdaptationalHeroism", "WordOfGod", "BigBrotherBully", "Hell", "Heaven", "NiceGuy", "HappilyMarried", "Kaiju", "EldritchAbomination", "HumongousMecha", "KillTheGod", "PhysicalGod", "LizardFolk", "BountyHunter", "NiceGuy", "HappilyMarried", "Kaiju", "EldritchAbomination", "HumongousMecha", "KillTheGod", "PhysicalGod", "LizardFolk", "BountyHunter", "YoungerAndHipper", "AdaptationalHeroism", "StartOfDarkness", "DependingOnTheWriter", "TeenGenius", "SuperheroSchool", "BadassNormal", "AntiHero", "CainAndAbel", "StartOfDarkness", "DependingOnTheWriter", "TeenGenius", "SuperheroSchool", "BadassNormal", "AntiHero", "CainAndAbel", "Cyborg", "WeCanRebuildHim", "MissingMom", "SparedByTheAdaptation", "KilledOffForReal", "RapeAsBackstory", "DenserAndWackier", "WhiteSheep", "AlwaysChaoticEvil", "ChildByRape", "ContinuitySnarl", "HumanAlien", "AncientAstronauts", "ILetGwenStacyDie", "ClearMyName", "RetCanon", "OneSteveLimit", "AllThereInTheManual", "NoPlansNoPrototypeNoBackup", "DamselInDistress", "ActionGirl", "AnimatedAdaptation", "AnimatedAdaptation", "ShowWithinAShow", "MirrorUniverse", "Cyborg", "WeCanRebuildHim", "MissingMom", "SparedByTheAdaptation", "KilledOffForReal", "RapeAsBackstory", "WhiteSheep", "AlwaysChaoticEvil", "ChildByRape", "AllThereInTheManual", "NoPlansNoPrototypeNoBackup", "DamselInDistress", "ActionGirl"]}
json
{ "defaultSeverity": "error", "extends": [], "jsRules": {}, "linterOptions": { "exclude": ["bin", "node_modules/**"] }, "rules": { "await-promise": true, "ban-comma-operator": true, "curly": true, "interface-name": [false, "never-prefix"], "max-line-length": [ true, { "limit": 120, "ignore-pattern": "^import |^const .*? = /.*?/" } ], "no-debugger": true, "no-duplicate-switch-case": true, "no-empty": [true, "allow-empty-functions"], "no-eval": true, "no-invalid-template-strings": true, "no-switch-case-fall-through": true, "no-var-keyword": true, "semicolon": false, "radix": true }, "rulesDirectory": [] }
json
<reponame>n1ke23/img-finder // let query = 'js'; // let page = 1; // let perPage = 12; export default { _query: 'cat', page: 1, perPage: 12, async fetchImages(){ this.apiKey = '<KEY>'; this.baseURL = "https://pixabay.com/api/"; this.url = `${this.baseURL}?image_type=photo&orientation=horizontal&q=${this._query}&page=${this.page}&per_page=${this.perPage}&key=${this.apiKey}`; try { this.res = await fetch(this.url) this.getResponse = await this.res.json() } catch(error) {throw displayError(error)} return this.getResponse.hits }, setPage(){ return this.page++ }, get query(){ return this._query }, set query(newQuery){ this._query = newQuery; }, } function displayError (error) { const errorH2 = document.createElement('h2'); errorH2.textContent = error; refs.body.prepend(errorH2) }
javascript
describe('clinical:autoform', function () { var server = meteor(); var client = browser(server); beforeEach(function () { server.execute(function () { }).then(function (value){ }); }); afterEach(function () { server.execute(function () { }); }); it('Autoform should exist on the client', function () { return client.execute(function () { expect(AutoForm).to.exist; }); }); it('Autoform should NOT exist on the server', function () { return server.execute(function () { expect(typeof AutoForm).to.equal("undefined"); }); }); // it("Autoform can return the value of specific input.", function () { // return client.execute(function () { // Autoform.getInputValue(); // expect(false).to.be.true; // }); // }); // it("Autoform can return all the values from the form.", function () { // return client.execute(function () { // Autoform.getInputValue(); // expect(false).to.be.true; // }); // }); // it('Autoform.getInputValue()', function () { // return client.execute(function () { // expect(AutoForm).to.exist; // }); // }); // it('Autoform.getFormValues()', function () { // return client.execute(function () { // expect(AutoForm).to.exist; // }); // }); });
javascript
The new work permit for H-1B visa holders officially opened for applications on July 16. The programme will also provide for study or work permits for their family members. Approved applicants for the new programme will receive an open work permit of up to three years in duration, which means they will be able to work for almost any employer anywhere in Canada. Their spouses and dependants will also be eligible to apply for a temporary resident visa, with a work or study permit, as needed. If you weren't one of the lucky ones, and if you hold a valid H-1B visa, here are some alternatives you can consider. 1. Global Talent StreamThe Global Talent Stream makes it easier for Canadian employers to hire foreign workers for specialised occupations, especially when Canadians aren't available for these specific roles. It was first introduced in 2017. There are two categories under this stream. For Canadian employers to be eligible through this category, they must be referred by any one of the Global Talent Stream designated partner organisations and should be hiring unique and specialised talent. To be eligible through this category, the Canadian employer must be hiring to fill a position on the Global Talent Occupations List. The Global Talent Occupations List is a list of highly skilled, in-demand occupations. The position also must pay a salary equal or above the prevailing wage for that particular position. 2. Intra-Company TransfersIntra-company transfers to Canada allows international workers to move to Canada. If you work for a multi national company that has a branch, subsidiary, or affiliate in Canada, you may be able to secure a Canadian work permit through the Intra-company transfer program. You must have at least one year of full-time work experience with the foreign enterprise and come to Canada to perform comparable work to be eligible for the pathway. 3. Business VisitorsA business visitor is a foreign national who comes to Canada to participate in international business activities, but who will not enter the Canadian labour market. Business visitors usually stay in Canada for a few days or a few weeks, but are able to stay for up to 6 months. If you plan to stay for more than 6 months, or plan to work in Canada, you may be considered a temporary worker and have to apply for a work permit.
english
{"web":[{"value":["酿造","冲泡","酿制"],"key":"brewing"},{"value":["酿造技术","酿造技巧","酿造工艺"],"key":"brewing technique"},{"value":["啤酒酿造用大麦","酿造大麦","酿造啤酒大麦"],"key":"brewing barley"}],"query":"brewing","translation":["酝酿"],"errorCode":"0","dict":{"url":"yddict://m.youdao.com/dict?le=eng&q=brewing"},"webdict":{"url":"http://m.youdao.com/dict?le=eng&q=brewing"},"basic":{"us-phonetic":"'brʊɪŋ","phonetic":"'bruːɪŋ","uk-phonetic":"'bruːɪŋ","explains":["n. 酿造;酝酿;计划","v. 酿造;策划阴谋(brew的ing形式)"]},"l":"EN2zh-CHS"}
json
26 October 2022, AU: Corteva Agriscience has long recognised the benefits and strengths of 2,4-D as a herbicide. With its robust broad-spectrum activity on some of the most important hard to kill weeds, it is well justified as a vital tool for fallow management. However, for many farmers, the use of current 2,4-D products is becoming increasingly difficult to maintain due to the proximity of 2,4-D sensitive crops and restricted use areas. Colex-D® is a next generation, patented technology developed by Corteva with the drift management refined through a collaboration between Corteva and several North American Universities dating back to 2007. Colex-D is a novel form of 2,4-D which offers all the performance and efficacy of traditional 2,4-D products, but has field proven Drift Reduction Technology (DRT), near-zero volatility and ultra-low odour built in. Colex-D and many common tank mix partners have undergone extensive wind tunnel testing to establish performance standards using a range of nozzle combinations common in Australia. He says “It is important to test the droplet spectrum when mixed with tank mix partners as these combinations alter the range of droplet size, sometimes not for the better. In some cases, mix partners did not pass our rigorous testing and will not be supported on the label”. The Colex-D label contains application advice for a wide range of different nozzle types and operating pressures to ensure the product advantages are maximised. Corteva has thoroughly tested the labelled mix partners to ensure physical compatibility and field efficacy in Australian conditions. Mr Sands said “the challenges of volatility, where the compound moves from the treated area after application, have also been addressed with the unique Colex-D formulation. While traditional 2,4-D amine formulations break apart in the spray tank resulting in more volatile components, the novel choline salt in Colex-D stays associated and is much more stable in the spray solution and on the sprayed surfaces following application”. Corteva trials demonstrate that this novel choline salt formulation reduces 2,4-D losses due to volatility by more than 86% when compared with the amine salt form. Testing has shown that 2,4-D amine can volatilise from a sprayed surface 12 hours after application. Applying Colex-D gives farmers greater confidence that the risk of off-target movement and potential damage is reduced after spraying. Additionally, the patented formulation and refined manufacturing process of Colex-D has produced an ultra-low odour product making mixing, handling and application a more pleasant experience for the applicator and the community. Colex-D is a novel choline salt formulation of 2,4-D that allows farmers with proximity to 2,4-D sensitive crops, to access the robust weed control of 2,4-D with reduced risk of off-target damage. The built in Drift Reduction Technology, near-zero volatility and ultra-low odour means Colex-D is a 2,4-D that can be applied with confidence. (For Latest Agriculture News & Updates, follow Krishak Jagat on Google News)
english
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); body { background-image: url('../img/flowers.JPG'); background-size: cover; align-items: center; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; font-family: 'Roboto', sans-serif; } #app { width: 25vw; padding: 20px; background-color: rgb(190, 190, 190); display: block; margin: 0 auto; transform: translateY(50%); position: relative; border-radius: 20px; text-align: left; box-shadow: 0px 0px #000; } .form-group{ text-align: left; margin: 10px 0; } .login_head h4{ font-size: 16px; } input{ width: 100%; } * { padding: 0; margin: 0; } a.link-site{ position: absolute; right: 20px; color: #000; } a.link-site:hover{ color: #fff; } .text-right{ text-align: right; }
css
{ "name": "stellarterm-desktop", "private": true, "version": "0.0.1", "description": "Electron wrapped around StellarTerm. Originally from https://github.com/electron/electron-quick-start", "main": "main.js", "scripts": { "start": "electron .", "buildAll": "npm run mac; npm run win; npm run linux", "mac": "electron-packager . StellarTerm --overwrite --platform=darwin --arch=x64 --icon=stellarterm-logo.icns --prune=true --out=release-builds", "win": "electron-packager . StellarTerm --overwrite --asar --platform=win32 --arch=x64 --icon=stellarterm-logo.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName='StellarTerm'", "linux": "electron-packager . StellarTerm --overwrite --asar=true --platform=linux --arch=x64 --icon=stellarterm-logo.png --prune=true --out=release-builds", "zip": "npm run zipMac; npm run zipWin; npm run zipLinux;", "zipMac": "cd release-builds/StellarTerm-darwin-x64; zip -r ../stellarterm-osx.zip StellarTerm.app;cd ..;", "zipWin": "cd release-builds;zip -r stellarterm-win32-x64.zip StellarTerm-win32-x64/;", "zipLinux": "cd release-builds;zip -r stellarterm-linux-x64.zip StellarTerm-linux-x64/;", "hash": "cd release-builds;openssl dgst -sha256 stellarterm-osx.zip;echo;openssl dgst -sha256 stellarterm-win32-x64.zip;echo;openssl dgst -sha256 stellarterm-linux-x64.zip;", "clean": "rm -rf release-builds/*" }, "original_author": "GitHub", "original_license": "CC0-1.0", "license": "Apache-2.0", "devDependencies": { "electron": "9.0.0", "electron-packager": "14.2.1" }, "dependencies": { "opn": "^6.0.0" } }
json
Jordan Poyer was surprised and so were several social media users, after the Buffalo Bills safety’s interception was overturned against the New England Patriots on Thursday. The two sides locked horns in their Week 13 matchup at the Gillette Stadium. New England quarterback Mac Jones’s throw, in the third quarter, was caught by Poyer. The safety made an insane jump in an attempt to pick it. However, the ball came loose just at the end and the officials ruled that he did not maintain control. Watch Poyer’s interception: “Hey @NFL figure out what a catch is. You’re killing the game. You’ve butchered the rules. Every day fans can clearly see what a catch is and y’all clueless. Changing the rules every yearly hasn’t helped,” a Twitter user said. “Didn’t NFL get rid of the “surviving the ground” catch rule four years ago because it led to so many ridiculous & controversial calls? So why are refs suddenly overturning calls based on “surviving the ground”? Did the NFL secretly bring the rule back? ” another one added. “The “catch” rules are a tool the @NFL uses to control the outcome of games. We aren’t that dense…” a third one tweeted. In 2018, NFL team owners voted to pass simplified catch rules. The league said that a player who makes a catch may advance the ball. The rule is: A forward pass is complete (by the offense) or intercepted (by the defense) in the field of play, at the sideline, or in the end zone if a player, who is inbounds: secures control of the ball in his hands or arms prior to the ball touching the ground; and touches the ground inbounds with both feet or with any part of his body other than his hands; and after (a) and (b) have been fulfilled, performs any act common to the game (e. g. , tuck the ball away, extend it forward, take an additional step, turn upfield, or avoid or ward off an opponent), or he maintains control of the ball long enough to do so.
english
Begin typing your search above and press return to search. MARGHERITA, May 24: A thief was bbed by Margherita Police recently. The thief has identified as Biki Dhar of Borgolai Chariali under Margherita Police Station. Dhar and his accomplice had allegedly gone to steal from a paan shop at Borgolai Chariali. While Dhar was caught red-handed, his accomplice maged to flee. Margherita Police have registered a case (140/15) Under Section 457/380 at Margherita Police Station.
english
<reponame>qyvlik/orderdb<filename>src/main/java/io/github/qyvlik/orderdb/entity/request/AppendListRequest.java package io.github.qyvlik.orderdb.entity.request; import java.io.Serializable; import java.util.List; public class AppendListRequest implements Serializable { private String scope; private Boolean ignoreExist; private List<AppendRequest> list; public AppendListRequest() { } public AppendListRequest(String scope, Boolean ignoreExist, List<AppendRequest> list) { this.scope = scope; this.ignoreExist = ignoreExist; this.list = list; } public Boolean getIgnoreExist() { return ignoreExist; } public void setIgnoreExist(Boolean ignoreExist) { this.ignoreExist = ignoreExist; } public String getScope() { return scope; } public void setScope(String scope) { this.scope = scope; } public List<AppendRequest> getList() { return list; } public void setList(List<AppendRequest> list) { this.list = list; } }
java
# Sta-663 Final Project ## Project description This project implements the memory sparse version of Viterbi algorithm and Baum-Welch algorithm to hidden Markov Model. The whole project is based on the paper ''Implementing EM and Viterbi algorithms for Hidden Markov Model in linear memory'', written by <NAME> and <NAME>. ## Authors <NAME>, <NAME> netid: `hs220`, `xw106` email: `{<EMAIL>,<EMAIL>` ## Install instructions Please run following commands in bash if you have not cloned our GitHub repository: ``` $ git clone https://github.com/xiaozhouw/663.git $ cd 663 $ python3 setup.py install ``` If you have already cloned our GitHub repository, please change your working directory to 663 (our repo) and run following command in bash: ``` $ python3 setup.py install ``` Notice: when you run `setup.py` on VM, an error will pop up: ``` [Errno 13] Permission denied: '/opt/conda/lib/python3.5/site-packages/easy-install.pth' ``` However, it does not influnce the usage of our package. This problem only shows up on VM (not on my personal computer). ## Files descriptions ### `Code_Report.ipynb` and `Code_Report.pdf` This file contains the code report part of our reports. This iPython Notebook includes code and partial explanation of: - Benchmarking - Simulations - Applications - Comparative Analysis Please make sure you have installed our package and `hmmlearn` beform running the notebook! This file can be used to generate reproducible code report `Code_Report.pdf`: 1. run `Code_Report.ipynb` 2. run following lines in bash: ``` $ jupyter nbconvert --to pdf Code_Report.ipynb ``` ### `Setup.py` and `HMM` folder `setup.py` is the script for installing our HMM package. In `HMM` folder, there are 3 scripts: `__init__.py`, `hmm.py` and `hmm_unoptimized.py`. - `__init__.py`: give specification of how this package will be loaded. - `hmm.py`: actual script for functionality. - `hmm_unoptimized.py`: (partially) unoptimized script. Used in Benchmarking. ### `data` folder The data we used in application (`weather-test2-1000.txt`) is stored in `data` folder. The data is retrieved from [HMM Programming Project](https://inst.eecs.berkeley.edu/~cs188/sp08/projects/hmm/project_hmm.html). How this synthesized data is generated can be found on [HMM Tutorial](https://inst.eecs.berkeley.edu/~cs188/sp08/slides/tr-98-041-1.pdf). ### `Report.pdf` This file contains the written report for our project.
markdown
{ "pause": "[", "increment": "3", "cycle": "<Control_L>", "split": "<Alt_L>", "skip": "-", "reset_start": "=", "exit": "|", "arm_metronome": "u", "start_metronome": "i", "auto_start": "true", "allow_offset": "false", "auto_adjust": "true", "use_counter": "false", "use_splits": "false", "1.7+": "false", "enable_metronome": "true", "metronome_bpm": "164", "metronome_beats": "12", "beat_offset": "0.3", "has_metronome_preset": "true", "show_igt": "true", "font_name": "Menlo-Regular", "rta_font_size": 45, "igt_font_size": 20, "split_font_size": 32, "height": 150, "width": 400, "font_modifiers": "bold", "bg_color": "black", "igt_color": "green", "rta_color": "red", "split_color": "white", "counter_color": "white", "linux_saves": "~/.minecraft/saves/", "mac_saves": "~/Library/Application Support/minecraft/saves/", "windows_saves": "~\\AppData\\Roaming\\.minecraft\\saves\\", "base_update": "10", "rta_update": "7", "window_pos": "+1920+600", "borderless": "true", "current_section": "stronghold" }
json
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_271) on Tue May 18 08:44:53 EDT 2021 --> <title>PacketHandler</title> <meta name="date" content="2021-05-18"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="PacketHandler"; } } catch(err) { } //--> var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/PacketHandler.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev&nbsp;Class</li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html" target="_top">Frames</a></li> <li><a href="PacketHandler.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.github.pulsebeat02.minecraftmedialibrary.nms</div> <h2 title="Interface PacketHandler" class="title">Interface PacketHandler</h2> </div> <div class="contentContainer"> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public interface <span class="typeNameLabel">PacketHandler</span></pre> <div class="block">The interface used for NMS modules for custom implementations of each server version. It is useful for sending map packets to certain players when displaying map pixels.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#displayDebugMarker-java.util.UUID:A-int-int-int-int-int-">displayDebugMarker</a></span>(java.util.UUID[]&nbsp;viewers, int&nbsp;x, int&nbsp;y, int&nbsp;z, int&nbsp;color, int&nbsp;time)</code> <div class="block">Displays debug markers to viewers.</div> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#displayEntities-java.util.UUID:A-org.bukkit.entity.Entity:A-int:A-int-">displayEntities</a></span>(java.util.UUID[]&nbsp;viewers, org.bukkit.entity.Entity[]&nbsp;entities, int[]&nbsp;data, int&nbsp;width)</code> <div class="block">Display entities to UUIDs.</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#displayMaps-java.util.UUID:A-int-int-int-java.nio.ByteBuffer-int-">displayMaps</a></span>(java.util.UUID[]&nbsp;viewers, int&nbsp;map, int&nbsp;mapWidth, int&nbsp;mapHeight, java.nio.ByteBuffer&nbsp;rgb, int&nbsp;videoWidth)</code> <div class="block">Displays map to UUIDs.</div> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#displayMaps-java.util.UUID:A-int-int-int-java.nio.ByteBuffer-int-int-int-">displayMaps</a></span>(java.util.UUID[]&nbsp;viewers, int&nbsp;map, int&nbsp;mapWidth, int&nbsp;mapHeight, java.nio.ByteBuffer&nbsp;rgb, int&nbsp;videoWidth, int&nbsp;xOffset, int&nbsp;yOffset)</code> <div class="block">Displays map to UUIDs.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#isMapRegistered-int-">isMapRegistered</a></span>(int&nbsp;id)</code> <div class="block">Checks if the map is registered.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#onPacketInterceptIn-org.bukkit.entity.Player-java.lang.Object-">onPacketInterceptIn</a></span>(org.bukkit.entity.Player&nbsp;viewer, java.lang.Object&nbsp;packet)</code> <div class="block">Called when packet is intercepted in.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>java.lang.Object</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#onPacketInterceptOut-org.bukkit.entity.Player-java.lang.Object-">onPacketInterceptOut</a></span>(org.bukkit.entity.Player&nbsp;viewer, java.lang.Object&nbsp;packet)</code> <div class="block">Called when packet is intercepted out.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#registerMap-int-">registerMap</a></span>(int&nbsp;id)</code> <div class="block">Registers map.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#registerPlayer-org.bukkit.entity.Player-">registerPlayer</a></span>(org.bukkit.entity.Player&nbsp;player)</code> <div class="block">Registers player.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#unregisterMap-int-">unregisterMap</a></span>(int&nbsp;id)</code> <div class="block">Unregisters map.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html#unregisterPlayer-org.bukkit.entity.Player-">unregisterPlayer</a></span>(org.bukkit.entity.Player&nbsp;player)</code> <div class="block">Unregisters player.</div> </td> </tr> </table> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="displayDebugMarker-java.util.UUID:A-int-int-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>displayDebugMarker</h4> <pre>void&nbsp;displayDebugMarker(java.util.UUID[]&nbsp;viewers, int&nbsp;x, int&nbsp;y, int&nbsp;z, int&nbsp;color, int&nbsp;time)</pre> <div class="block">Displays debug markers to viewers.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewers</code> - the viewers</dd> <dd><code>x</code> - the x value</dd> <dd><code>y</code> - the y value</dd> <dd><code>z</code> - the z value</dd> <dd><code>color</code> - the color</dd> <dd><code>time</code> - the time to display</dd> </dl> </li> </ul> <a name="displayMaps-java.util.UUID:A-int-int-int-java.nio.ByteBuffer-int-int-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>displayMaps</h4> <pre>void&nbsp;displayMaps(java.util.UUID[]&nbsp;viewers, int&nbsp;map, int&nbsp;mapWidth, int&nbsp;mapHeight, java.nio.ByteBuffer&nbsp;rgb, int&nbsp;videoWidth, int&nbsp;xOffset, int&nbsp;yOffset)</pre> <div class="block">Displays map to UUIDs.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewers</code> - the viewers</dd> <dd><code>map</code> - the map</dd> <dd><code>mapWidth</code> - the map width</dd> <dd><code>mapHeight</code> - the map height</dd> <dd><code>rgb</code> - the rgb</dd> <dd><code>videoWidth</code> - the video width</dd> <dd><code>xOffset</code> - the x offset</dd> <dd><code>yOffset</code> - the y offset</dd> </dl> </li> </ul> <a name="displayMaps-java.util.UUID:A-int-int-int-java.nio.ByteBuffer-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>displayMaps</h4> <pre>void&nbsp;displayMaps(java.util.UUID[]&nbsp;viewers, int&nbsp;map, int&nbsp;mapWidth, int&nbsp;mapHeight, java.nio.ByteBuffer&nbsp;rgb, int&nbsp;videoWidth)</pre> <div class="block">Displays map to UUIDs.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewers</code> - the viewers</dd> <dd><code>map</code> - the map</dd> <dd><code>mapWidth</code> - the map width</dd> <dd><code>mapHeight</code> - the map height</dd> <dd><code>rgb</code> - the rgb</dd> <dd><code>videoWidth</code> - the video width</dd> </dl> </li> </ul> <a name="displayEntities-java.util.UUID:A-org.bukkit.entity.Entity:A-int:A-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>displayEntities</h4> <pre>void&nbsp;displayEntities(java.util.UUID[]&nbsp;viewers, org.bukkit.entity.Entity[]&nbsp;entities, int[]&nbsp;data, int&nbsp;width)</pre> <div class="block">Display entities to UUIDs.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewers</code> - the viewers</dd> <dd><code>entities</code> - the entities</dd> <dd><code>data</code> - the data</dd> <dd><code>width</code> - the width</dd> </dl> </li> </ul> <a name="registerPlayer-org.bukkit.entity.Player-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>registerPlayer</h4> <pre>void&nbsp;registerPlayer(org.bukkit.entity.Player&nbsp;player)</pre> <div class="block">Registers player.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>player</code> - the player</dd> </dl> </li> </ul> <a name="unregisterPlayer-org.bukkit.entity.Player-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>unregisterPlayer</h4> <pre>void&nbsp;unregisterPlayer(org.bukkit.entity.Player&nbsp;player)</pre> <div class="block">Unregisters player.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>player</code> - the player</dd> </dl> </li> </ul> <a name="isMapRegistered-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isMapRegistered</h4> <pre>boolean&nbsp;isMapRegistered(int&nbsp;id)</pre> <div class="block">Checks if the map is registered.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>id</code> - the id</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the boolean</dd> </dl> </li> </ul> <a name="unregisterMap-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>unregisterMap</h4> <pre>void&nbsp;unregisterMap(int&nbsp;id)</pre> <div class="block">Unregisters map.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>id</code> - the id</dd> </dl> </li> </ul> <a name="registerMap-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>registerMap</h4> <pre>void&nbsp;registerMap(int&nbsp;id)</pre> <div class="block">Registers map.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>id</code> - the id</dd> </dl> </li> </ul> <a name="onPacketInterceptOut-org.bukkit.entity.Player-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>onPacketInterceptOut</h4> <pre>java.lang.Object&nbsp;onPacketInterceptOut(org.bukkit.entity.Player&nbsp;viewer, java.lang.Object&nbsp;packet)</pre> <div class="block">Called when packet is intercepted out.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewer</code> - the viewer</dd> <dd><code>packet</code> - the packet</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the object</dd> </dl> </li> </ul> <a name="onPacketInterceptIn-org.bukkit.entity.Player-java.lang.Object-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>onPacketInterceptIn</h4> <pre>java.lang.Object&nbsp;onPacketInterceptIn(org.bukkit.entity.Player&nbsp;viewer, java.lang.Object&nbsp;packet)</pre> <div class="block">Called when packet is intercepted in.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>viewer</code> - the viewer</dd> <dd><code>packet</code> - the packet</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>the object</dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/PacketHandler.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev&nbsp;Class</li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/github/pulsebeat02/minecraftmedialibrary/nms/PacketHandler.html" target="_top">Frames</a></li> <li><a href="PacketHandler.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
html
[ null, {"id":1,"battlerName":"Actor1_1","characterIndex":0,"characterName":"Actor1","classId":1,"equips":[2,0,0,3,0],"faceIndex":0,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"里德","nickname":"","note":"","profile":""}, {"id":2,"battlerName":"Actor1_2","characterIndex":1,"characterName":"Actor1","classId":1,"equips":[1,0,0,9,0],"faceIndex":1,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"普丽西拉","nickname":"","note":"","profile":""}, {"id":3,"battlerName":"Actor1_3","characterIndex":2,"characterName":"Actor1","classId":5,"equips":[31,0,65,5,0],"faceIndex":2,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"盖尔","nickname":"","note":"","profile":""}, {"id":4,"battlerName":"Actor1_4","characterIndex":3,"characterName":"Actor1","classId":5,"equips":[31,0,0,5,0],"faceIndex":3,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"米歇尔","nickname":"","note":"","profile":""}, {"id":5,"battlerName":"Actor1_5","characterIndex":4,"characterName":"Actor1","classId":2,"equips":[7,0,0,20,0],"faceIndex":4,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"艾伯特","nickname":"","note":"","profile":""}, {"id":6,"battlerName":"Actor1_6","characterIndex":5,"characterName":"Actor1","classId":2,"equips":[7,0,65,21,0],"faceIndex":5,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"凯西","nickname":"","note":"","profile":""}, {"id":7,"battlerName":"Actor1_7","characterIndex":6,"characterName":"Actor1","classId":3,"equips":[7,0,0,20,0],"faceIndex":6,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"埃利奥特","nickname":"","note":"","profile":""}, {"id":8,"battlerName":"Actor1_8","characterIndex":7,"characterName":"Actor1","classId":3,"equips":[7,0,0,20,0],"faceIndex":7,"faceName":"Actor1","traits":[],"initialLevel":1,"maxLevel":99,"name":"罗萨","nickname":"","note":"","profile":""} ]
json
<filename>package.json { "name": "temporary-vim-motions", "displayName": "Temporary vim motions", "description": "A VSCode popup for vim motions", "version": "0.0.3", "publisher": "gelio", "icon": "icon.png", "engines": { "vscode": "^1.52.0" }, "categories": [ "Programming Languages" ], "activationEvents": [ "onCommand:temporary-vim-motions.execute" ], "main": "./dist/extension.js", "repository": { "type": "git", "url": "https://github.com/Gelio/vscode-temporary-vim-motions" }, "contributes": { "commands": [ { "command": "temporary-vim-motions.execute", "title": "Execute vim motions", "enablement": "editorIsOpen" } ], "configuration": { "title": "Temporary vim motions", "properties": { "temporary-vim-motions.toggleRelativeLineNumbers": { "type": "boolean", "default": true, "description": "When enabled, enables relative line numbers when executing temporary vim motions. Reverts back to the default after exiting." }, "temporary-vim-motions.surroundingLines": { "type": [ "integer", "null" ], "default": 5, "description": "If set, when entering temporary vim motions, shows surrounding lines when scrolling close to editor top/bottom.", "minimum": 0 } } } }, "scripts": { "vscode:prepublish": "webpack --mode production", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint", "lint": "eslint src --ext ts", "test": "node ./out/test/runTest.js", "pretest:unit": "npm run compile", "test:unit": "mocha './out/**/*.test.js' --ignore './out/test/**'", "webpack": "webpack --mode development", "webpack:watch": "webpack --mode development --watch", "vscode:package": "vsce package --githubBranch main", "vscode:publish": "vsce publish --githubBranch main" }, "devDependencies": { "@types/glob": "^7.1.3", "@types/mocha": "^8.0.4", "@types/node": "^12.11.7", "@types/vscode": "^1.52.0", "@typescript-eslint/eslint-plugin": "^4.9.0", "@typescript-eslint/parser": "^4.9.0", "eslint": "^7.15.0", "glob": "^7.1.6", "mocha": "^8.1.3", "ts-loader": "^8.0.14", "typescript": "^4.1.2", "vscode-test": "^1.4.1", "webpack": "^5.15.0", "webpack-cli": "^4.3.1" }, "dependencies": { "fp-ts": "^2.9.3" } }
json
Vaginitis is common gynaecologic condition for which women visit a doctor. It can be caused due to several different factors and the severity of symptoms may vary from mild to severe and some women may have no symptoms at all. There, however, are some common symptoms that are present in most forms of vaginitis. The doctor, after analysing family history and doing physical examination and tests (if needed), can recommend treatment. Key to successful treatment is proper diagnosis and therefore, consulting a doctor is a must. Consult a doctor if you have one or more of the following symptoms (that last for more than a few days) suggestive of vaginitis: - Abnormal vaginal discharge (thick or thin), which may or may not be foul smelling. - Burning sensation on passing urine. - Pain on urination. - Itching or irritation around the outside of the vagina. - Pain or discomfort during sexual intercourse. - If you suspect that you have symptoms suggestive of any sexually transmitted. - If you have many sex partners or have a new partner. Vaginal symptoms could be due to some sexually transmitted infection. The signs and symptoms of many of the common sexually transmitted infections are similar to those of a vaginal candidasis or bacterial vaginosis. Consult your doctor if: - You have recurrent vaginal infection. - You've never had any symptoms of vaginal infection and have developed symptoms of vaginal infection recently. In such a case, your doctor will determine the cause and treat it accordingly. - You've had vaginal infections before, but the current symptoms seem to be different. - You've are taking over-the-counter anti-yeast medication and your symptoms persist or seem to have worsened. Some health professionals, who can be consulted for your symptoms include; - general physicians, - family doctor, - gynaecologist (doctor who specialises in diagnosis and treatment of conditions related to women’s reproductive system), - internists.
english
<reponame>idwaker/learning_rust<filename>rustbook/src/conditionals_loops.rs //! these are also doc comments //! but for crates, modules or functions //! triple quotes looks nicer than these sad /// these are doc comments /// boring kind of things to do here /// ok has support for markdown inside fn main() { // these are comments let x = 5; // no bloody paren nice if x == 5 { println!("yes x is 5"); } else if x == 6 { println!("me too"); } else { println!("never see me"); } // another thing with let if // so if is an expression, right! let y = if x == 5 { x + 1 } else { x - 1 }; println!("and y is: {}", y); // loop infinitely let mut counter = 0; loop { counter += 1; println!("Counter: {}", counter); if counter > 5 { // break out of loop break; } } // while let mut done = false; while !done { counter += 1; println!("Counter inside while: {}", counter); if counter > 10 { done = true; } } // for works with iterator // 1..10 is range ; end is exclusive for i in 1..10 { // then there is continue if i % 2 == 0 { continue; } println!("value of odd i: {}", i); } for (i, j) in (5..9).enumerate() { println!("Enumerate Index: {}, Value: {}", i, j); } // labelled loops 'outer: for i in 1..5 { 'inner: for j in 1..2 { if i == 2 { continue 'outer; } if i == 4 { continue 'inner; } println!("{}, {}", i, j); } } }
rust
Panaji, Apr 26 (IANS): With an alarming decline in Goas economic growth, the state government can no longer afford to sit on the issue of mining ban, a survey revealed. According to the Economic Survey released by the Directorate of Planning, Statistics and Evaluation, Goa's economy grew by a mere 1. 6 per cent in 2020-21. The coastal state's economy is heavily dependent on manufacturing, agriculture, tourism, and mining. While the first two sectors showed a clear decline during the assessment period, the inflow of both national and foreign tourists was curtailed due to the Covid-19 pandemic. The survey observes that during the pandemic period, the tourism-related businesses came down to almost zero. On the other hand, mining operations have stayed suspended in Goa for more than four years. "The major chunk of mining related businesses has not been able to switch over or diversify their line in view of bleak changes of buyers for their assets riddled with debts. Alternate business for existing mining assets in other states is not easy to get as there are a lot of challenges posed from local people of respective states," said Ralph De Sousa, President, Goa Chamber of Commerce & Industry (GCCI). "And for assets like river barges it is more challenging as operations are typical to Goa Logistic system. Also, overall, there is no alternative to the mining business to replace the employment that is lost due to abrupt stoppage of mining operation 4 years ago. There is a hope given that mining is going to start soon so disposing the debt ridden asset gets tricky. "The financial situation worsens with every passing day with the Goa mining ban continuing with no firm solution but hope of a major decision by the Government to restart mining. The state's businesspersons are witnessing worsening CIBIL rating and at the same time financial institutions are facing rising NPAs. "The immediate resumption of Goa mining industry can provide relief to the stressed situation in the state," he added. Goa's consistently rising debt is an alarming concern over the last 10 years. Depending solely on loans and advances would over a period come to haunt the borrower as interest element too augments. Goa's main economic pillar, mining, continues to lie in suspension for several years which causes not just economic concerns but also causes hardships to those dependent on it. Ease of doing business has been affected and further casts apathy on the industrial sector on how operations, infrastructure, markets, foreign exchange, value addition built up from scratch, entirely by the industry be allowed to deteriorate with time. The local industry as well as other Apex chambers have repeatedly raised concerns and the desired solutions expected to be taken from the Government. "Keeping in mind sustainability, mining needs to resume earliest," said Glenn Kalavampara, Secretary, Goa Mineral Ore Exporters Association (GMOEA). According to the Economic Survey, Goa's primary sector accounted for 5. 24 per cent of the gross state domestic product GSDP in 2020-21. Even the secondary sector, which contributed 55 per cent to the state economy, saw a decline, and only the tertiary or services sector was seen bucking the trend with 39. 72 per cent contribution. The state's economic activity at constant prices for 2020-21 is estimated at Rs 53,959. 86 crore, as against Rs 53,099. 57 crore in 2019-20.
english
/* automatically generated by tools/bindgen-all-the-things */ #![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] #![allow(dead_code)] pub type __int32_t = ::std::os::raw::c_int; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct video_frame_plane { pub offset: i32, pub stride: i32, } pub type video_frame_plane_t = video_frame_plane; pub const video_codec_profile_VIDEO_CODEC_PROFILE_UNKNOWN: video_codec_profile = -1; pub const video_codec_profile_VIDEO_CODEC_PROFILE_MIN: video_codec_profile = -1; pub const video_codec_profile_H264PROFILE_MIN: video_codec_profile = 0; pub const video_codec_profile_H264PROFILE_BASELINE: video_codec_profile = 0; pub const video_codec_profile_H264PROFILE_MAIN: video_codec_profile = 1; pub const video_codec_profile_H264PROFILE_EXTENDED: video_codec_profile = 2; pub const video_codec_profile_H264PROFILE_HIGH: video_codec_profile = 3; pub const video_codec_profile_H264PROFILE_HIGH10PROFILE: video_codec_profile = 4; pub const video_codec_profile_H264PROFILE_HIGH422PROFILE: video_codec_profile = 5; pub const video_codec_profile_H264PROFILE_HIGH444PREDICTIVEPROFILE: video_codec_profile = 6; pub const video_codec_profile_H264PROFILE_SCALABLEBASELINE: video_codec_profile = 7; pub const video_codec_profile_H264PROFILE_SCALABLEHIGH: video_codec_profile = 8; pub const video_codec_profile_H264PROFILE_STEREOHIGH: video_codec_profile = 9; pub const video_codec_profile_H264PROFILE_MULTIVIEWHIGH: video_codec_profile = 10; pub const video_codec_profile_H264PROFILE_MAX: video_codec_profile = 10; pub const video_codec_profile_VP8PROFILE_MIN: video_codec_profile = 11; pub const video_codec_profile_VP8PROFILE_ANY: video_codec_profile = 11; pub const video_codec_profile_VP8PROFILE_MAX: video_codec_profile = 11; pub const video_codec_profile_VP9PROFILE_MIN: video_codec_profile = 12; pub const video_codec_profile_VP9PROFILE_PROFILE0: video_codec_profile = 12; pub const video_codec_profile_VP9PROFILE_PROFILE1: video_codec_profile = 13; pub const video_codec_profile_VP9PROFILE_PROFILE2: video_codec_profile = 14; pub const video_codec_profile_VP9PROFILE_PROFILE3: video_codec_profile = 15; pub const video_codec_profile_VP9PROFILE_MAX: video_codec_profile = 15; pub const video_codec_profile_HEVCPROFILE_MIN: video_codec_profile = 16; pub const video_codec_profile_HEVCPROFILE_MAIN: video_codec_profile = 16; pub const video_codec_profile_HEVCPROFILE_MAIN10: video_codec_profile = 17; pub const video_codec_profile_HEVCPROFILE_MAIN_STILL_PICTURE: video_codec_profile = 18; pub const video_codec_profile_HEVCPROFILE_MAX: video_codec_profile = 18; pub const video_codec_profile_DOLBYVISION_MIN: video_codec_profile = 19; pub const video_codec_profile_DOLBYVISION_PROFILE0: video_codec_profile = 19; pub const video_codec_profile_DOLBYVISION_PROFILE4: video_codec_profile = 20; pub const video_codec_profile_DOLBYVISION_PROFILE5: video_codec_profile = 21; pub const video_codec_profile_DOLBYVISION_PROFILE7: video_codec_profile = 22; pub const video_codec_profile_DOLBYVISION_MAX: video_codec_profile = 22; pub const video_codec_profile_THEORAPROFILE_MIN: video_codec_profile = 23; pub const video_codec_profile_THEORAPROFILE_ANY: video_codec_profile = 23; pub const video_codec_profile_THEORAPROFILE_MAX: video_codec_profile = 23; pub const video_codec_profile_AV1PROFILE_MIN: video_codec_profile = 24; pub const video_codec_profile_AV1PROFILE_PROFILE_MAIN: video_codec_profile = 24; pub const video_codec_profile_AV1PROFILE_PROFILE_HIGH: video_codec_profile = 25; pub const video_codec_profile_AV1PROFILE_PROFILE_PRO: video_codec_profile = 26; pub const video_codec_profile_AV1PROFILE_MAX: video_codec_profile = 26; pub const video_codec_profile_VIDEO_CODEC_PROFILE_MAX: video_codec_profile = 26; pub type video_codec_profile = ::std::os::raw::c_int; pub use self::video_codec_profile as video_codec_profile_t; pub const video_pixel_format_YV12: video_pixel_format = 0; pub const video_pixel_format_NV12: video_pixel_format = 1; pub const video_pixel_format_PIXEL_FORMAT_MAX: video_pixel_format = 1; pub type video_pixel_format = ::std::os::raw::c_uint; pub use self::video_pixel_format as video_pixel_format_t;
rust
- #Narendra ModiWho Is Sanjay Mishra, The ED Chief Known For Sending 15 Big Politicians To Jail? Varanasi, July 07: Prime Minister Narendra Modi on Thursday highlighted the need for connecting education with the modern ideas of the 21st century. Speaking at the inaugural session of the three-day Akhil Bhartiya Shiksha Samagam here, he said that "the basic premise of the National Education Policy is to take education out of narrow thinking and connect it with the modern ideas of the 21st century. " The Prime Minister said there was never a dearth of intellect and talent in the country, however, the education system created by the Britishers was never part of the Indian ethos. He underlined the multidimensionality of the Indian ethos of education and asked for that aspect to mark the modern Indian education system. The Prime Minister stressed that "we should not only prepare degree holder youth but give our education system to the country, whatever human resources are needed for the country to move forward. Our teachers and educational institutions have to lead this resolution. " For creating a New India, PM Modi stressed that a new system and modern processes are critical. What was not even imagined earlier is a reality now, he said. The Prime Minister continued "not only did we recover so fast from the big epidemic of Corona, but today India is one of the fastest-growing large economies of the world. Today we are the third-largest startup ecosystem in the world. " The Prime Minister noted that in areas like space technology, where earlier only the government used to do everything, now a new world is being created for the youth through private players. Sectors that used to be closed to women are now showcasing their talent. The Prime Minister highlighted that in the new policy, the entire focus is on making children skilled according to their talents and choices of the children. "Our youth should be skilled, confident, practical, and calculative, education policy is preparing the ground for this", he said. PM Modi emphasised the need to work for the future with a new thought process. He said children today are displaying a very advanced degree of talent and we need to be prepared to help and harness their talent. He asked the academics to validate their experience with verified testing. He asked for evidence-based research. He also asked for research on the demographic dividend of India and find ways to best utilize this and find solutions for the ageing societies of the world. Similarly, resilient infrastructure is another area of research. "National Education Policy' has given us a tool to realize innumerable possibilities which were not available earlier. We need to use it fully, he concluded.
english
<filename>src/select/select-panel.tsx import React from 'react'; import { ButtonSelectSize, SelectPanelOverrides, SelectOptionProps, SelectPropsOverrides, } from './types'; import { StyledOption, StyledOptionIcon, StyledSelectPanel, StyledModalPanel, } from './styled'; import {ScreenReaderOnly} from '../screen-reader-only'; import {useReactKeys} from '../utils/hooks'; import {useTheme} from '../theme'; import {getToken} from '../utils/get-token'; import {IconFilledCheck} from '../icons'; import {Modal, ModalProps} from '../modal'; import {getComponentOverrides, Override} from '../utils/overrides'; import {getModalOverrides} from './utils'; interface SelectPanelProps { isOpen: boolean; width: number; height: number; top: number; left: number; size: ButtonSelectSize; overrides?: { panel?: SelectPanelOverrides; modal?: Override<ModalProps>; }; children: React.ReactElement<SelectOptionProps>[]; renderInModal: boolean; buttonRef: React.RefObject<HTMLButtonElement>; closeMenu: Function; } const DefaultModal = Modal; export const StyledOptionWithPrivateProps = React.forwardRef< HTMLDivElement, SelectOptionProps & StyledOptionPrivateProps >((props, inputRef) => { const {$size, $selected, $focused, selectedIcon, overrides} = props; const theme = useTheme(); const iconSize = getToken( {theme}, `selectOption.${$size}.icon`, '', 'iconSize', ); const optionSpaceInline = getToken( {theme, overrides}, `selectOption.${$size}`, '', 'spaceInline', ); const {children} = props; return ( <StyledOption {...props} ref={inputRef} $spaceInline={optionSpaceInline}> <div>{children}</div> {$selected && ( <StyledOptionIcon $size={$size} $selected={$selected} $focused={$focused} > {selectedIcon || <IconFilledCheck overrides={{size: iconSize}} />} </StyledOptionIcon> )} </StyledOption> ); }); export const SelectPanel = React.forwardRef<HTMLDivElement, SelectPanelProps>( (props, panelRef) => { const { isOpen, width, height, top, left, size, children, buttonRef, renderInModal, closeMenu, overrides, ...restProps } = props; const listDescriptionId = useReactKeys(1)[0]; const theme = useTheme(); const modalOverrides = getModalOverrides({ theme, size, overrides: overrides?.modal as SelectPropsOverrides['modal'], }); const optionsAsChildren = isOpen && children; const screenReaderOnlyMessage = isOpen && ( <ScreenReaderOnly id={listDescriptionId}> Press down arrow key to navigate to the first item </ScreenReaderOnly> ); if (renderInModal && !isOpen) { // this is needed for downshift in order to work properly return <div ref={panelRef} />; } if (renderInModal && isOpen) { const [ModalComponent, modalProps] = getComponentOverrides( overrides?.modal, DefaultModal, { overrides: modalOverrides, open: isOpen, restoreFocusTo: buttonRef.current!, onDismiss: closeMenu, }, ); return ( <ModalComponent {...(modalProps as ModalProps)}> {screenReaderOnlyMessage} <StyledModalPanel data-testid="select-panel" aria-describedby={listDescriptionId} ref={panelRef} {...restProps} onBlur={e => { // set tabIndex to 0 so that user can return to the element // when before that moves to Close / Other focusable elements inside the modal e.target.setAttribute('tabIndex', '0'); }} > {optionsAsChildren} </StyledModalPanel> </ModalComponent> ); } return ( <> {screenReaderOnlyMessage} <StyledSelectPanel $isOpen={isOpen} data-testid="select-panel" aria-describedby={isOpen ? listDescriptionId : undefined} $width={width} $top={(top || 0) + (height || 0)} $left={left} $size={size} ref={panelRef} overrides={overrides?.panel} {...restProps} > {optionsAsChildren} </StyledSelectPanel> </> ); }, ); interface StyledOptionPrivateProps { ref: React.Ref<HTMLDivElement>; $size: ButtonSelectSize; $focused?: boolean; $selected?: boolean; }
typescript
Consistency defines top NFL players, separating them from average ones. Jefferson & Adams exemplify this. Yet, some receivers shine briefly before returning to mediocrity. The Bucs saw potential in WR Clayton when they drafted him in 2004, impressed by his great rookie season. Unfortunately, injuries plagued his career & he never surpassed 500 receiving yards again. Vikings drafted WR Rice in 2007. He had an average career until Favre arrived in 2009. He shined with 1,312 yards & 8 TDs, but never matched his success from that season again. Jeffers had never topped over 330 yards in a season but had 1,082 yards with the Panthers in '99. . Unfortunately, an ACL tear ended his career, & he only recorded 127 yards in his last year. Pryor, a QB for the Raiders, had an impressive season for the Browns in '15 with 1,007 yards & 4 TDs. However, injuries limited him in his final two seasons, never surpassing 300 yards again. Undrafted Hurns was a great find for the Jaguars in 2014. However, his performance declined after a lucrative deal, & he never surpassed 500 yards again despite playing for Dallas & Miami.
english
Vimeo is facing a lawsuit that claims the company has violated Illinois legislation on the collection and storage of biometric information belonging to residents. In a lawsuit (.PDF) filed on September 20, as reported by Threat Post, complainants claim that Delaware-based Vimeo has violated the Illinois Biometrics Information Privacy Act (BIPA). BIPA requires private companies that collect biometric information to maintain a public, written policy that transparently explains practices concerning this information, as well as guidelines on both data destruction and retention. The company provides a platform for the creation, streaming, and sharing of HD and 4K video. The court case claims that Vimeo has illegally collected, stored, and used user biometric information without written consent, as required by BIPA. While biometric information can include retina scans and fingerprints, in the video streaming platform's case, the issue surrounds 'face templates' created from Magisto users, including precise geometric maps of their facial features. "Vimeo is actively collecting, storing, and using -- without providing notice, obtaining informed written consent or publishing data retention policies -- the biometrics of thousands of unwitting individuals throughout the country whose faces appear in photographs and/or videos uploaded to the Magisto "smart video editor" application in Illinois," the lawsuit reads. "Each face template that Vimeo extracts is unique to a particular individual, in the same way that a fingerprint or voiceprint uniquely identifies one and only one person," court documents added. The plaintiff, Illinois resident Bradley Acaley, brought the class-action lawsuit forward after downloading the Magisto app in late 2017. Having purchased a $120 year-long subscription, Acaley uploaded videos and photos of himself and his family, which apparently could no longer be accessed after the subscription expired. Court documents claim that immediately after upload, this content was analyzed by Vimeo to create his facial template, later used by Vimeo to locate him in photos, as well as recognize his gender, age, race, and location -- all without permission. Acaley has also argued that Vimeo did not give him the possibility of opting out or a way to remove his biometric markers from Vimeo storage. The lawsuit, made on behalf of thousands of Illinois residents who may have been caught up in the alleged BIPA violations, attempts to ensure the platform will comply in the future with BIPA, as well as secure statutory damages. Vimeo is not the only technology company to fall foul of BIPA. In August, Facebook lost a case filed with the US Court of Appeals for the Ninth Circuit to have a lawsuit based on the same legislation thrown out. A class-action lawsuit levied against the social media giant alleges that Facebook's tag suggestions feature, which compares biometric identifiers with a photo to identify individuals for matches, invades the privacy of over 12 million Illinois residents. Facebook intends to fight the ruling. Update 15.17 BST: A Vimeo spokesperson told ZDNet: "This lawsuit is based upon a fundamental misunderstanding of how the Magisto video creation app works. To help customers create better videos faster, Magisto uses machine learning technology to help identify objects within video frames. Determining whether an area represents a human face or a volleyball does not equate to "facial recognition," and Magisto neither collects nor retains any facial information capable of recognizing an individual. We look forward to having an opportunity to clear this up in court."
english
{ "name": "videojs-ass-es6", "version": "0.0.4", "author": "<NAME> <<EMAIL>>", "description": "ASS/SSA subtitle overlay for videojs", "repository": { "type": "git", "url": "https://github.com/aviinl/videojs-ass.git" }, "bugs": { "url": "https://github.com/aviinl/videojs-ass/issues" }, "keywords": [ "videojs", "videojs-plugin", "subtitle", "ASS", "SSA" ], "license": "Apache-2.0", "main": "./src/videojs.ass.js", "dependencies": { "libjass": "0.11.0" }, "devDependencies": { "video.js": "^6.2.7" } }
json
'ZDNET Recommends': What exactly does it mean? ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing. When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers. ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form. I've been in the market for a new audio recorder to hook up to my camera when recording video to replace the Rode Wireless Go. The Wireless Go has been a superb workhorse and has been pushed hard over the past couple of years, but the device is full of limitations and quirks that mean that it's far from being a perfect bit of kit. This is why I've been looking to replace it with something, and that something is the Tentacle Sync Track E audio recorder. German designed and made, the Track E oozes quality the moment you take it out of the box. And I'm not talking here about "quality" relating to nice packaging or shiny plastic. The packaging is actually wonderfully basic -- which I like -- but as soon as you lift the lid, you're shown pretty much everything you need to know about the Track E. Where the ports are, how to turn it on, and a QR code that takes you to the required app. But why did I opt for the Track E? It has one feature that I'm thinking will be a game-changer -- 32-bit float audio recording. What is this? Well, you can think of it like autofocus for the audio. Normally when I'm recording audio, I have to make sure I set the recording level for the audio just right. If it's too high, then the audio will clip and crackle and it sounds absolutely terrible. If the recording levels are set too low, then it's lost forever. This process is part art, part science, and one small mistake can mean having to go back and record something again. The 32-bit float audio feature takes all the stress out of this. The audio can't ever be so loud that it clips and cuts out (well, it is possible to overload the microphone, but someone would have to be really yelling into it for that to happen), and it can't be too low, so there's no worry. You switch the Track E on, and you start recording audio. It's really that simple! It's that simple. Another thing that I like about the Track E is how quick it was to set up and start using. I could have pulled it out of the box, paired it with my smartphone, and started using it immediately (the battery was a good 50% charged). That's so rare for a product these days. Usually there's a convoluted setup process and activation and loads of settings to tweak and mess about with and a steep learning curve before you get going. Not with the Track E. Tentacle Sync has made it as easy as possible short of putting an engineer in the box to turn it on for me. Another pleasant thing about the Track E is that all the accessories -- even the Lavalier mic -- are good quality items. No expense has been spared. I've had the chance to play with the Track E quite a bit over the past few days and will follow this first look with a fuller review soon. But so far, I'm impressed with the Track E. Really impressed. The setup and usage are simple and easy, the 32-bit float audio takes all the worry about whether the levels are set right, and there's a built-in 16GB microSD card for storage, so I didn't even need to think about or worry about that. The Tentacle Sync Track E is as close to perfect as a device could be. This thing has enormous potential, and I'm looking forward to seeing what it's really capable of. Note: For patent reasons, the headphone output is deactivated during recording on the US version of the Track E.
english
{"name":"<NAME> der Stadt Leipzig","id":"SN-4431060-0","address":" Dieskaustraße 213 04249 Leipzig OT Großzschocher ","school_type":"Mittelschule","legal_status":1,"fax":"0341/42709827 ","phone":"0341/4270980 ","website":"http://www.56-oberschule-leipzig.de","email":"<EMAIL>","provider":"Stadt Leipzig","director":"<NAME>, Henrik","full_time_school":false,"profile":{"students":{"2013":[{"class_level":5,"male":40,"female":37},{"class_level":6,"male":43,"female":34},{"class_level":7,"male":53,"female":51},{"class_level":8,"male":35,"female":44},{"class_level":9,"male":34,"female":47},{"class_level":10,"male":28,"female":22}],"2014":[{"class_level":5,"male":55,"female":26},{"class_level":6,"male":40,"female":36},{"class_level":7,"male":42,"female":36},{"class_level":8,"male":52,"female":53},{"class_level":9,"male":36,"female":45},{"class_level":10,"male":29,"female":39}],"2015":[{"class_level":5,"male":51,"female":31},{"class_level":6,"male":54,"female":28},{"class_level":7,"male":37,"female":33},{"class_level":8,"male":45,"female":35},{"class_level":9,"male":50,"female":56},{"class_level":10,"male":33,"female":37}]},"teacher":[{"year":"2016/2017","male":10,"female":27},{"year":"2015/2016","male":9,"female":33},{"year":"2014/2015","male":10,"female":31},{"year":"2013/2014","male":11,"female":30},{"year":"2012/2013","male":11,"female":31}]},"programs":{"programs":[],"working_groups":[{"name":null,"category":"no category","entity":"no group"},{"name":null,"category":"no category","entity":"no group"},{"name":null,"category":"no category","entity":"no group"}]},"partner":[{"name":"<NAME>","focus":"Keine Angabe","type":{"detail":"Sportverein","grob":"Gemeinntziger Akteur"}},{"name":"TU Dresden","focus":"Ganztagesangebote","type":{"detail":"Universitt","grob":"ffentliche Infrastruktur"}},{"name":"TU Dresden","focus":"Keine Angabe","type":{"detail":"Universitt","grob":"ffentliche Infrastruktur"}}],"concept":"Gemeinsam sind wir stark. ","state":"SN","lon":12.328052,"lat":51.299906}
json
2 On my keeping I shall stand, and shall pitch a degree on [the] warding; and I shall behold, that I see what thing shall be said to me, and what I shall answer to him that reproveth me. (I shall stand watch at my station, and shall climb the stairs of the watch tower; and I shall see, what shall be said to me, and what I shall answer to him who rebuketh me.) 2 And the Lord answered to me, and said, Write thou the sight, either revelation, and make it plain on tables, that he (may) run, that shall read it. (And the Lord said to me, Write thou what thou seest, and make it clear on a tablet, ready for a courier to carry it with haste/so that it can easily be read.) 3 For yet the vision is far, and it shall appear into the end, and shall not lie; if it shall make dwelling, abide thou it, for it coming shall come, and shall not tarry. (For yet the vision is far off, but it shall appear in the end, and it shall not lie; and even if it appeareth to be delayed, wait thou for it, for it is coming, and indeed shall come, and shall not be late.) 4 Lo! the soul of him, that is unbelieveful, shall not be rightful in himself; forsooth the just man shall live in his faith. (Lo! the soul of him, who is unbelieving, shall not be right within himself; but the just, or the righteous, shall live by faith.) 5 And as wine deceiveth a man drinking, so shall the proud man be, and he shall not be made fair; for as hell he alarged his soul, and he is as death, and he is not [ful]filled; and he shall gather to him all folks, and he shall gather together to him all peoples. (And like wine deceiveth someone who is drinking, so shall be the proud person, and he shall never be content, or at peace; for he enlarged his soul, or his mouth, as wide as Sheol, or the land of the dead, but he, like death itself, shall never be satisfied, or fulfilled; even though he shall gather all the nations unto himself, yea, though he shall gather together all the peoples unto himself.) 6 Whether not all these peoples shall take a parable on him, and the speaking of dark sentences of him? And it shall be said, Woe to him that multiplieth things not his own; how long, and he aggregateth against himself thick clay? (Shall not all these peoples turn him into a parable, or an example, and speak dark sentences about him? And so it shall be said, Woe to you who multiplieth riches not your own! how long shall you gather unto yourself things taken in pledge?) 7 Whether not suddenly they shall rise together, that shall bite thee? And they shall be raised tearing thee, and thou shalt be into raven to them; and thine ambushers in evil shall wake. (Shall they not suddenly rise up, and bite thee? Yea, they shall be raised up, and shall tear thee apart, and thou shalt become prey, or spoils, to them; and thy ambushers in evil shall watch for thy fall.) 8 For thou robbedest many folks, all shall rob thee, which shall be residue, either left, of peoples, for blood of man, and for wickedness of land, of the city, and of all men dwelling in it. (For thou hast robbed many nations, all who shall be the residue, or those left, of the peoples, shall rob thee, for the bloodshed, or the murder, of the people, and for the wickedness done in the land, to the city, and to all the people who live there.) 9 Woe to him that gathereth evil covetousness to his house, that his nest be on high, and guesseth him for to be delivered (out) of the hand of evil. (Woe to you who gathereth evil gain, or filthy lucre, unto your house, so that your nest would be on high, and thinketh yourself to be delivered, or saved, from the hand of evil.) 10 Thou thoughtest confusion to thine house; thou hast slain many peoples, and thy soul sinned. (Thou hast brought shame to thy house; thou hast killed many people, yea, thy soul hath sinned.) 11 For the stone of the wall shall cry, and a tree that is betwixt jointures of buildings shall answer. (And so the stones in the walls shall cry out, and a beam of the timbers that is between the joinings of the building shall answer them.) 12 Woe to him that buildeth a city in bloods, and maketh ready a city in wickedness. (Woe to you who buildeth a city with bloodshed, or with murder, and who maketh ready a city with wickedness.) 13 Whether not these things be of the Lord of hosts? For peoples shall travail in much fire, and folks in vain, and they shall fail. (Be not all these things from the Lord of hosts? For peoples and nations shall labour, or shall struggle, amid much fire, or much adversity, and all for nothing, for they all shall fail.) 14 For the earth shall be filled, that it know the glory of the Lord, as waters covering the sea. (For the earth shall be filled with the knowledge of the glory of the Lord, like the waters covering, or filling, the sea.) 15 Woe to him that giveth drink to his friend, and sendeth his gall, and maketh drunken, that he behold his nakedness. (Woe to you who sendeth your gall, or your anger, onto your friend, as if giving him drink, and maketh him drunk, so that you can behold his shame, or his nakedness.) 16 He is filled with evil fame for glory; and thou drink, and be aslept; the cup of the right half of the Lord shall compass thee, and casting up, either spewing, of evil fame (shall be) [up]on thy glory. (Thou shalt be filled with shame and not with glory; yea, thou shalt drink, and then be asleep; the cup of the right hand of the Lord shall be given to thee, and then thy shame shall exceed thy glory.) 17 For the wickedness of Lebanon shall cover thee, and [the] destruction of beasts shall make them afeared, of bloods of man, and of wickedness of [the] land, and of the city, and of all men dwelling therein. (For the wickedness done to Lebanon shall now be done to thee, and the destruction of its beasts shall now make thee afraid, because of the bloodshed, or the murder, of the people, and the wickedness done in the land, to the city, and to all the people who live there.) 18 What profiteth the graven image, for his maker graved it, a welled thing together, and [a] false image? for the maker thereof hoped in [the] making, that he made dumb simulacra. (What is the profit, or the benefit, of an engraved figure? for its maker engraved it, a thing welded together, yet it is but a false, or a empty, and useless, image; even though its maker hoped in the making of it, he hath made only dumb idols.) 19 Woe to him that saith to a tree, Wake thou; (and,) Rise thou, to a stone being still; whether he shall be able to teach? Lo! this (thing) is covered with gold and silver, and no spirit is in his entrails. (Woe to you who saith to a piece of wood, Wake up thou! and, Rise thou! to a stone being still; shall it be able to teach you anything? Lo! this thing is covered with gold and silver, but there is no breath in its innards.) 20 Forsooth the Lord is in his holy temple, all earth be still from his face. (But the Lord is in his holy Temple, let all the earth be silent before him.) 2 I will stand at my watch(A) and station myself on the ramparts;(B) I will look to see what he will say(C) to me, and what answer I am to give to this complaint.[a](D) 2 Then the Lord replied: so that a herald[b] may run with it. 3 For the revelation awaits an appointed time;(F) it speaks of the end(G) and will not prove false. Though it linger, wait(H) for it; and will not delay.(I) 4 “See, the enemy is puffed up; 5 indeed, wine(L) betrays him; he is arrogant(M) and never at rest. and like death is never satisfied,(N) and takes captive(O) all the peoples. 6 “Will not all of them taunt(P) him with ridicule and scorn, saying, and makes himself wealthy by extortion!(Q) 7 Will not your creditors suddenly arise? Will they not wake up and make you tremble? Then you will become their prey.(R) 8 Because you have plundered many nations, the peoples who are left will plunder you.(S) For you have shed human blood;(T) you have destroyed lands and cities and everyone in them.(U) 9 “Woe to him who builds(V) his house by unjust gain,(W) to escape the clutches of ruin! 10 You have plotted the ruin(Y) of many peoples, shaming(Z) your own house and forfeiting your life. 11 The stones(AA) of the wall will cry out, and the beams of the woodwork will echo it. 12 “Woe to him who builds a city with bloodshed(AB) and establishes a town by injustice! that the people’s labor is only fuel for the fire,(AC) that the nations exhaust themselves for nothing?(AD) as the waters cover the sea.(AF) 15 “Woe to him who gives drink(AG) to his neighbors, pouring it from the wineskin till they are drunk, so that he can gaze on their naked bodies! 16 You will be filled with shame(AH) instead of glory.(AI) Now it is your turn! Drink(AJ) and let your nakedness be exposed[e]!(AK) The cup(AL) from the Lord’s right hand is coming around to you, and disgrace will cover your glory. 17 The violence(AM) you have done to Lebanon will overwhelm you, and your destruction of animals will terrify you.(AN) For you have shed human blood;(AO) you have destroyed lands and cities and everyone in them. 18 “Of what value(AP) is an idol(AQ) carved by a craftsman? Or an image(AR) that teaches lies? For the one who makes it trusts in his own creation; he makes idols that cannot speak.(AS) Or to lifeless stone, ‘Wake up!’(AT) Can it give guidance? It is covered with gold and silver;(AU) there is no breath in it.”(AV) Holy Bible, New International Version®, NIV® Copyright ©1973, 1978, 1984, 2011 by Biblica, Inc.® Used by permission. All rights reserved worldwide. NIV Reverse Interlinear Bible: English to Hebrew and English to Greek. Copyright © 2019 by Zondervan.
english
Experts noted that the second group which was specifically instructed to include two to three servings of fermented foods like kombucha, kefir and sauerkraut in their diet along with 6-8 servings of fruits and vegetables rich in prebiotic fibres and 5 to 8 servings of grains each week reported improvement in their sleep. The study, experts said, offered promising results and encouraged following a psychobiotic diet due to its positive effects on digestion and stress management. New Delhi: Food can do literally anything to the body – from strengthening it to weakening it to plaguing it with diseases. Surprisingly, some foods also have the ability to aggravate stress. And when it comes to health, one of the most important factors apart from food is sleep – a well-rested mind and body perform way better than one which is sleep deprived. Confused about what to eat and avoid? Fret not, a new study says following a "psychobiotic diet" might be key to getting relief from all woes – from improving sleep to lowering stress levels. What is the psychobiotic diet? According to a new study in the October 2022 edition of Molecular Psychiatry, following a psychobiotic diet rich in prebiotic and fermented foods could cause microbiota-targeted interventions that may support mental health. For the study, experts recruited 45 adults aged 18 to 59 years – all of who consumed a low fibre diet. While all the participants met with a dietician for counselling, experts from APC Microbiome Ireland at the University College Cork split them up into two groups with varied dietary instructions – the former followed a food pyramid while the latter ate psychobiotic foods. What are the benefits of following a psychobiotic diet? Experts noted that the second group which was specifically instructed to include two to three servings of fermented foods like kombucha, kefir and sauerkraut in their diet along with 6-8 servings of fruits and vegetables rich in prebiotic fibres and 5 to 8 servings of grains each week reported improvement in their sleep. They also reported a dip in the amount and intensity of stress experienced in the duration. The study, experts said, offered promising results and encouraged following a psychobiotic diet due to its positive effects on digestion and stress management. Stress not only affects the brain but also takes a toll on digestion and absorption of essential nutrients in the body. It also offers evidence as to why diet is crucial to stress levels and sleep quality. Experts explained this association by mentioning how a person who needs a low histamine diet may not benefit much from eating psychobiotic foods – instead, they should follow a Mediterranean diet. Further studies are required in this area to explain exactly how this diet improves sleep quality and reduces stress. But until then, it is imperative for all to follow healthy eating patterns for reducing stress levels and improving sleep quality naturally. Disclaimer: Tips and suggestions mentioned in the article are for general information purposes only and should not be construed as professional medical advice. Always consult your doctor or a dietician before starting any fitness programme or making any changes to your diet.
english
{ "madeBy": "Faite par {name}.", "contribute": "Affichez le code source et / ou contribuez au projet sur GitHub.", "endorsement": "Smoothroll n’est ni endossé ni affilié à Crunchyroll.", "dataNotice": "Smoothroll ne stocke aucune de vos données sur ses serveurs. C'est simplement une interface qui repose sur Crunchyroll." }
json
<gh_stars>0 package ssh import ( "fmt" "strings" ) func GetHostPhysicalNetworkInfo(host, username, password string) string { if username == "" { username = "root" } if password == "" { password = "<PASSWORD>" } cmd := "grep '^[^#]' /etc/neutron/plugins/ml2/ml2_conf.ini | grep network_vlan_ranges" sshHost := optimizeHost(host) sshRes := runSSHCommand(sshHost, username, password, cmd) vlanRanges := strings.Split(sshRes, "=") if len(vlanRanges) == 1 { fmt.Println("error") } vlan := strings.Split(sshRes, "=")[1] res := strings.Split(strings.Split(strings.TrimSpace(vlan), ",")[0], ":")[0] return res } func GetPluginVersionInfo(host, username, password string) string { if username == "" { username = "root" } if password == "" { password = "<PASSWORD>" } sshHost := optimizeHost(host) cmd := "pip freeze |grep PLUGIN" pluginVersion := runSSHCommand(sshHost, username, password, cmd) return pluginVersion } func optimizeHost(host string) string { sshHost := strings.TrimSuffix(host, "/") if strings.HasSuffix(sshHost, ":22") { return sshHost } else { sshHost = fmt.Sprintf("%s:22", sshHost) return sshHost } } func runSSHCommand(host, username, password string, cmd string) string { cli := newSSHCli(host, username, password) c, _ := cli.Connect() defer c.Client.Close() sshRes, _ := c.RunCommand(cmd) return sshRes }
go
"""Implement the Unit class.""" import numpy as np from .. import config, constants __all__ = ["Pixels", "Degrees", "Munits", "Percent"] class _PixelUnits: def __mul__(self, val): return val * config.frame_width / config.pixel_width def __rmul__(self, val): return val * config.frame_width / config.pixel_width class Percent: def __init__(self, axis): if np.array_equal(axis, constants.X_AXIS): self.length = config.frame_width if np.array_equal(axis, constants.Y_AXIS): self.length = config.frame_height if np.array_equal(axis, constants.Z_AXIS): raise NotImplementedError("length of Z axis is undefined") def __mul__(self, val): return val / 100 * self.length def __rmul__(self, val): return val / 100 * self.length Pixels = _PixelUnits() Degrees = constants.PI / 180 Munits = 1
python
[ { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" }, { "filename": "成长边缘.jpg", "title": "成长边缘", "desc": "成长边缘的测试文字成长边缘的测试文字成长边缘的测试文字" } ]
json
Chandrachud’s remarks came during the virtual book release by Professor Dr Balram K Gupta (professor Emeritus, and Director- Academics, Chandigarh Judicial Academy), on Saturday. The book by Professor Gupta titled “My Journey With Law and Justice”, was virtually released in the presence of Justice DY Chandrachud (Judge, Supreme Court of India); Justice Surya Kant (Judge, Supreme Court of India); Justice Ravi Shanker Jha (Chief Justice of Punjab and Haryana High Court); Justice Amol Rattan Singh (Judge, Punjab and Haryana High Court and President BoG, Chandigarh Judicial Academy); Justice Madan B Lokur (former Judge, Supreme Court of India, and Judge, Supreme Court of Fiji), Professor (Dr) Upendra Baxi (Professor Emeritus), among others. Speaking on the occasion, while referring to an essay titled Judicial Culture in the book of Dr Gupta, Justice Chandrachud said that Professor Balram Gupta states that an open court system strengthens judicial culture, introduces discipline and ensures the rule of law. He said that in the course of the Covid-19 pandemic, we have been struggling to keep our systems open consistent with the fundamental norm of open justice on which all democratic societies ought to be founded. ‘…I fully endorse the views of Professor Balram Gupta. A judge is to be judged not only by the number of judgements delivered and the rate of disposals but also by the conduct within the walls of the court room…justice seems to be done only when judicial proceedings are open for public viewership. This not only provides legitimacy to judicial institutions but also furthers democratic principles or accountability…,” Justice Chandrachud said. He further added that in various countries across the globe, including in India, the performance of a judge is periodically evaluated by using both qualitative and quantitative parameters. These indicators include the disposal rate of a judge, the quality of judgements and a variety of other factors, including the behaviour of the judge towards the lawyer during court proceedings. However, while data on the disposal rates and judgements are easily available in the public forum — including on the National Judicial Data Grid the behaviour of a judge in the courtroom is not easily ascertainable because of the lack of transparency in judicial proceedings. “Unless this important indicator of performance evaluation is publicly available, it would be difficult to evaluate the performance of a judge and would pose challenges to judicial accountability,” he said. “…though legal journalism is on the rise, and reporting of judicial proceedings has gained traction almost by the minute if not by the second, it has its limitations unless you have followed the arguments by legal luminaries, such Nani Palkhivala and HM Seervai…I think it’s important that we must live stream and record proceedings in every Indian court…,” said Justice Chandrachud.
english
Actress Anushka Sharma is back to the bay, and has resumed work. A while ago, our cameramen spotted the actress stepping out of her car for a shoot in the city. Have a look : In the picture, the actress was seen wearing a pink coloured dungaree teamed with a white tee. With her short hair look, the gorgeous made heads turn in the town. She was also seen wearing a mask for the coronavirus protection. She teamed up her attire with a pair of white sneakers. Anushka was earlier in Dubai with her daughter Vamika, and husband, Virat Kohli, due to his cricket tournaments. On the work front, she was last seen in 'Zero' with Shah Rukh Khan and Katrina Kaif. She is yet to announce her next project.
english
<gh_stars>1-10 {"localities": ["Ogelthorpe, GA", "Olgethorpe, GA", "Oglethorpe, GA"], "state": "GA", "postal_code": "31068", "locality": "Oglethorpe, GA", "lat": 32.328618, "region": {"fips": "13", "abbr": "GA", "name": "Georgia"}, "city": "Oglethorpe", "type": "STANDARD", "lng": -84.117049, "counties": [{"fips": "193", "name": "Macon County"}, {"fips": "249", "name": "Schley County"}]}
json
body { font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif; background:#fff url('../images/bckg.png') repeat top left; color:#777; line-height:1.5em; } h1, h2, h3, p { margin-bottom:2%; } h1 { font-size: 2em; color:#fff; font-weight:bold; } h2 { color:#4aaaa5; font-size:1.6em; font-weight:bold; padding-bottom: 2%; border-bottom: 2px solid #ddd; } nav ul li { list-style-type: none; display: inline; } nav ul li a { color:#777; text-decoration: none; } a:hover { color: #bb1122; background: #fff2a8; border:1px solid #ddd; } a:visited { color: #884488; } /*Styles for portfolio page*/ #container { width:80%; margin:auto; text-align: center; } #portfolio { width:100%; } .workItem { position:relative; float:left; width: 250px; margin: 0px 25px; } .workItem img { width: 100%; border: 0 none; } .workItem h3 { position: absolute; bottom: 20px; left:6px; width: 96%; padding: 5px; margin-bottom: 0; color: #fff; text-align: center; background: #4aaaa5; border-bottom: 0; } /*end portfolio page styles*/ header { float:left; background: #4aaaa5; border-bottom:#ccc; padding:2%; } nav { float:right; margin: 2% 0; } section { padding:2%; clear:both; overflow: auto; text-align: left; background:#fff; border:1px solid #ccc; } img { float:left; margin: 2%; } /* Styles for contact page */ input[type=text]:focus, textarea:focus { background:#fff2a8; } input[type=submit] { background:#4aaaa5; padding:1%; color:#fff; } /*end contact page styles*/ footer { padding:5px; clear:both; background:#666; color:#fff; position: fixed; left: 0; bottom: 0; width: 100%; } footer p { margin: 5px; } /***** Layout to fit Desktop screen of 980px *****/ @media only screen and (max-width: 980px) { section { width:70%; } /*Styles for portfolio page*/ .workItem { width: 174px; margin: 10px 15px; } .workItem h3 { left:4px; width: 94%; } } /***** Layout to fit tablet screen of 640px *****/ @media only screen and (max-width: 768px) { section { width:96%; } /*Styles for portfolio page*/ .workItem { position:relative; float:left; width: 200px; margin-left:0; } .workItem h3 { width: 95%; } } /***** Layout to fit mobile landscape screen of 640px *****/ @media only screen and (max-width: 640px) { #container { width:625px; } header, nav{ width:600px; } section { width:80%; margin:auto; text-align: left; } /*Styles for index page*/ .col1 img { margin:2% 30%; } .col2 { float:left; } /*Styles for portfolio page */ #portfolio { width:60%; margin-left:0 5%; } .workItem { position:relative; clear:left; margin: 5px; } .workItem:nth-child(even) { margin-right: 40px; } }
css
{"ast":null,"code":"var _jsxFileName = \"/Users/dweber/git/personal/react-complete-guide/01-starting-project/src/components/CourseGoals/CourseGoalItem/CourseGoalItem.js\";\nimport React from 'react';\nimport './CourseGoalItem.css';\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\n\nconst CourseGoalItem = props => {\n // const [deleteText, setDeleteText] = useState('');\n const deleteHandler = () => {\n // setDeleteText('(Deleted!)');\n props.onDelete(props.id);\n };\n\n return /*#__PURE__*/_jsxDEV(\"li\", {\n className: \"goal-item\",\n onClick: deleteHandler,\n children: props.children\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 14,\n columnNumber: 5\n }, this);\n};\n\n_c = CourseGoalItem;\nexport default CourseGoalItem;\n\nvar _c;\n\n$RefreshReg$(_c, \"CourseGoalItem\");","map":{"version":3,"sources":["/Users/dweber/git/personal/react-complete-guide/01-starting-project/src/components/CourseGoals/CourseGoalItem/CourseGoalItem.js"],"names":["React","CourseGoalItem","props","deleteHandler","onDelete","id","children"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAO,sBAAP;;;AAEA,MAAMC,cAAc,GAAGC,KAAK,IAAI;AAC9B;AAEA,QAAMC,aAAa,GAAG,MAAM;AAC1B;AACAD,IAAAA,KAAK,CAACE,QAAN,CAAeF,KAAK,CAACG,EAArB;AACD,GAHD;;AAKA,sBACE;AAAI,IAAA,SAAS,EAAC,WAAd;AAA0B,IAAA,OAAO,EAAEF,aAAnC;AAAA,cACGD,KAAK,CAACI;AADT;AAAA;AAAA;AAAA;AAAA,UADF;AAKD,CAbD;;KAAML,c;AAeN,eAAeA,cAAf","sourcesContent":["import React from 'react';\n\nimport './CourseGoalItem.css';\n\nconst CourseGoalItem = props => {\n // const [deleteText, setDeleteText] = useState('');\n\n const deleteHandler = () => {\n // setDeleteText('(Deleted!)');\n props.onDelete(props.id);\n };\n\n return (\n <li className=\"goal-item\" onClick={deleteHandler}>\n {props.children}\n </li>\n );\n};\n\nexport default CourseGoalItem;\n"]},"metadata":{},"sourceType":"module"}
json
Dinesh Kumar Thapaliya, Chief Election Commissioner of the Election Commission (EC), has said that none of the candidates will retain their current position after running for the upcoming parliamentary elections. The meeting of the Council of Ministers held on Thursday decided to hold parliamentary elections on the 20th of November. Chief Thapaliya informed on a press conference held at the EC on Thursday that candidates will register their candidacy right after Dashain. He made it clear that the commission is not the body to review the tenure of the elected members of the House of Representatives and clarified that their tenure will end on December 7, since they were elected in the last election. It has been said that the announcement of the next election date is not accidental but expected. He said that the remaining 107 days for the election, EC will gather for the special preparation of the election. He informed that the commission is already preparing to conduct the elections peacefully. He said that the Commission will take the concept of equal opportunity and equal playing field in the election. In this year's election, voting arrangements will be made for employees, security personnel, inmates and senior citizens. It has been said that in this year's election, there will be 2 ballot papers and different ballot boxes, so it will not be as complicated as in the previous local elections. The commission is going to update the voter list from Friday. Similarly, the necessary process for the proportional election will start from Sunday. The chief commissioner informed that a letter has been sent to the allies and donor agencies to help the Election Commission with necessary election equipment and vehicles. He said that support can also be taken in voter education. A separate press office will be opened in the Election Commission to facilitate the flow of information in the upcoming elections. The commission is going to publish the voter education bill soon. In this year's election, the commission expects about one million more voters than in the previous election. The commission has estimated that 18. 5 million voters will turn out for this election. READ ALSO:
english
/* ==UserStyle== @name 81Dojo Highlight Last Move @namespace USO Archive @author <NAME> @description `Highlights squares of the last move.` @version 20200618.2.46 @license CC-BY-SA-4.0 @preprocessor uso ==/UserStyle== */ /* ==UserStyle== @name 81Dojo Highlight Last Move @namespace github.com/ddugovic/UserStyles @version 1.0 @description Highlights squares of the last move. @author <NAME> ==/UserStyle== */ @-moz-document domain("81dojo.com") { div[class$="square-last"] { box-shadow: 0px 0px 0px 2px #00FF00 inset; } div[class$="square-last"][style*="S"][style*='.png'] { box-shadow: 0px 0px 0px 2px #00FF00 inset; } }
css
You’ve started your first job. Soon, it is tax-filing time and you invest in tax-saving mutual funds from an online portal. Then, somebody advises you to start a systematic investment plan (SIP). You get in touch with a distributor and buy a scheme. Then, say, you get transferred to another city, and buy more schemes from another distributor. The result? You have bought funds from several people. What’s wrong in that?
english
<gh_stars>0 /** * Unit Tests for Piezas **/ #include <gtest/gtest.h> #include "Piezas.h" class PiezasTest : public ::testing::Test { protected: PiezasTest(){} //constructor runs before each test virtual ~PiezasTest(){} //destructor cleans up after tests virtual void SetUp(){} //sets up before each test (after constructor) virtual void TearDown(){} //clean up after each test, (before destructor) }; TEST(PiezasTest, sanityCheck) { ASSERT_TRUE(true); } TEST(PiezasTest, testReset) { Piezas temp; temp.reset(); ASSERT_TRUE(true); } TEST(PiezasTest, clearBoard) { Piezas temp; temp.dropPiece(0); temp.reset(); ASSERT_EQ(temp.pieceAt(0,0), Blank); } TEST(PiezasTest, dropEmpty) { Piezas temp; temp.dropPiece(0); ASSERT_EQ(temp.pieceAt(0,0), X); } TEST(PiezasTest, dropTillSwap) { Piezas temp; temp.dropPiece(0); temp.dropPiece(0); ASSERT_EQ(temp.pieceAt(0,1), O); } TEST(PiezasTest, dropTillBlank) { Piezas temp; temp.dropPiece(0); temp.dropPiece(0); temp.dropPiece(0); ASSERT_EQ(temp.dropPiece(0), Blank); } TEST(PiezasTest, dropOutOfBounds) { Piezas temp; ASSERT_EQ(temp.dropPiece(-1), Invalid); } TEST(PiezasTest, getPieceInBounds) { Piezas temp; temp.dropPiece(0); temp.dropPiece(0); temp.dropPiece(0); ASSERT_EQ(temp.pieceAt(0,2), X); } TEST(PiezasTest, getPieceOutOfBounds) { Piezas temp; ASSERT_EQ(temp.pieceAt(-1,0), Invalid); } TEST(PiezasTest, stateXWins) { Piezas temp; // X O temp.dropPiece(0);temp.dropPiece(0); temp.dropPiece(1);temp.dropPiece(0); temp.dropPiece(2);temp.dropPiece(2); temp.dropPiece(3);temp.dropPiece(3); temp.dropPiece(1);temp.dropPiece(1); temp.dropPiece(2);temp.dropPiece(3); ASSERT_EQ(temp.gameState(), X); } TEST(PiezasTest, stateOWins) { Piezas temp; // X O temp.dropPiece(3);temp.dropPiece(0); temp.dropPiece(3);temp.dropPiece(1); temp.dropPiece(0);temp.dropPiece(2); temp.dropPiece(0);temp.dropPiece(3); temp.dropPiece(1);temp.dropPiece(2); temp.dropPiece(1);temp.dropPiece(2); ASSERT_EQ(temp.gameState(), O); } TEST(PiezasTest, stateTie) { Piezas temp; // X O temp.dropPiece(0);temp.dropPiece(1); temp.dropPiece(2);temp.dropPiece(3); temp.dropPiece(0);temp.dropPiece(1); temp.dropPiece(2);temp.dropPiece(3); temp.dropPiece(0);temp.dropPiece(1); temp.dropPiece(2);temp.dropPiece(3); ASSERT_EQ(temp.gameState(), Blank); } TEST(PiezasTest, stateInvalid) { Piezas temp; // X O temp.dropPiece(0);temp.dropPiece(1); temp.dropPiece(2);temp.dropPiece(3); temp.dropPiece(0);temp.dropPiece(1); ASSERT_EQ(temp.gameState(), Invalid); }
cpp
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/datapipeline/model/RemoveTagsRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::DataPipeline::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; RemoveTagsRequest::RemoveTagsRequest() : m_pipelineIdHasBeenSet(false), m_tagKeysHasBeenSet(false) { } Aws::String RemoveTagsRequest::SerializePayload() const { JsonValue payload; if(m_pipelineIdHasBeenSet) { payload.WithString("pipelineId", m_pipelineId); } if(m_tagKeysHasBeenSet) { Array<JsonValue> tagKeysJsonList(m_tagKeys.size()); for(unsigned tagKeysIndex = 0; tagKeysIndex < tagKeysJsonList.GetLength(); ++tagKeysIndex) { tagKeysJsonList[tagKeysIndex].AsString(m_tagKeys[tagKeysIndex]); } payload.WithArray("tagKeys", std::move(tagKeysJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection RemoveTagsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "DataPipeline.RemoveTags")); return headers; }
cpp
<reponame>DrBlury/Springboot_Vue_Docker import Vue from 'vue' import App from './App.vue' import router from './router' import axios from "axios"; import VueAxios from "vue-axios"; Vue.use(VueAxios, axios); axios.defaults.baseURL = "http://localhost:8090"; axios.defaults.headers.common['Accept'] = "application/json"; // Add Vuetify to the Project import Vuetify from "vuetify"; import 'vuetify/dist/vuetify.css' import 'vuetify/dist/vuetify.js' Vue.use(Vuetify); // Add BootstrapVue to the Project import BootstrapVue from 'bootstrap-vue' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap-vue.css' Vue.use(BootstrapVue); import Vuex from "vuex"; Vue.use(Vuex) Vue.config.productionTip = false; Vue.prototype.$eventHub = new Vue(); const store = new Vuex.Store({ state: { text: "", jwttoken: "", }, mutations: { setText(state, text) { state.text = text; }, setJwttoken(state, newToken) { state.jwttoken = newToken; } } }) // Add a request interceptor axios.interceptors.request.use(function (config) { const token = store.state.jwttoken; config.headers.jwttoken = token; return config; }); new Vue({ vuetify: new Vuetify(), router, store, render: h => h(App) }) .$mount('#app');
javascript
While the laws of the land and the provisions of the Cable Television Act regulate non-members, the News Broadcasters’ Association (NBA) has assiduously protected the right to self-regulation in the nine years since the News Broadcasting Standards Authority (NBSA) came into being. Despite the initial glitches, the NBSA, under the late Justice Verma, worked hard to set down a mechanism for redressal. It even managed to put together a code of ethics, drafted ironically by a committee headed by then Times Now anchor and editor-in-chief Arnab Goswami, who has the dubious credit of changing the conduct of news on broadcast media first at Times Now and in his current position as head of Republic Television. (Republic TV was inducted as a member of the NBA only last year and, while it has been critical of the NBA, with Goswami calling it a toothless body and a cabal, it has sought a more active role in the body). The NBA’s ‘Code of Ethics and Broadcasting Standards’ spelt out the need for a ‘jury of peers’ to act as a watchdog and a grievance redressal forum. Now headed by retired Supreme Court judge R.V. Raveendran, who took over after the death of Justice Verma in April 2013, the NBA has been campaigning to get successive governments to make this code applicable to all television channels as part of the part of the Programme Code under the Cable TV Act, along the lines of the Advertising Standards Council of India (ASCI), which managed to get its code applicable to all advertisements aired on cable TV in August 2006. In its press release of August 22, 2008 to announce the constitution of the NBSA, the NBA said: ‘...the basic strength of a news channel lies in its credibility, from which flows its ability to influence public opinion. A censure emanating from a jury of its peers would indisputably affect the credibility of a channel. Besides, such a process is not without its legal ramifications. A channel acting in breach of established guidelines could hardly defend its motives or suggest that it was acting fairly, if it is censured by a jury comprising its peers. In the first year it started functioning, the NBSA received 20 complaints and issued show cause notices for two complaints, including a complaint against India TV. By the second year (2009-10), the complaints went up to 26 and were ‘satisfactorily dealt with’ by member broadcasters, according to its annual report. In 2010-11, the number of complaints rose to 152 and again, at the first level of redressal, a majority were resolved satisfactorily, the annual report said. In 13 instances, the NBSA had to issue show cause notices but in five, the complaints did not proceed for various reasons and were closed. In the other instances, the NBSA issued two directives for airing apologies, one admonition, and one warning. While a cherry-picking list of complaints and proceedings are revealing on the nature of television coverage over the last decade, here are two interesting complaints: Sunanda Pushkar: A complaint against Times Now’s coverage of MP Shashi Tharoor’s wife Sunanda Pushkar’s death, filed by Sharad Shah in 2014, said that it was ‘full of innuendos and leading questions by the anchor that were intended to lead the viewers to believe that Sunanda Tharoor was murdered either by Tharoor or at his instance’. The complainant provided a list of 31 captions and titles that demonstrated his claim. However, Goswami, appearing for Times Now, denied the charge, stating that several other channels had done the same and alleging that the complainant was a ‘serial harasser’ who singled out Times Now. The NBSA examined the complaint and said that even if the complainant was prejudiced against the channel, the ‘tendency of the media to hold parallel investigations and prematurely/inaccurately disclose certain facts, certain half-truths and inaccuracies as facts or findings, apart from putting tremendous pressure in high profile cases on the investigating officers, may dangerously mould public opinion about the guilt or innocence of persons, thereby destroying reputations and careers and adversely affecting any subsequent trial in a court of law’. It cautioned the channel. The Tatra deal: Shah was also the complainant in May 2012 over a programme aired by Times Now on the Tatra deal which featured Maroof Raza, described as a strategic defence analyst, as a key panelist. Shah said that Raza was also ‘principal of an entity called Maroof Raza and Associates, which acts as consultants for foreign arms dealers and this fact is not disclosed at the time of introducing Mr. Maroof Raza on the channel’. The NBSA examined the complaint and asked Times Now to disclose three things: the true nature of the broadcaster’s affiliation and relationship with Raza; whether the channel had retained Raza as its exclusive strategic defence expert; and whether Times Now was aware of the likely conflict of interest between Raza’s business and the subject matter of the programmes in question. In this instance, the NBSA decided that in the interest of transparency and objectivity it was important for a television news channel to disclose the credentials of panelists who appear on their shows, especially those who appear as experts on any given subject. This, it believed, would enable viewers to make their assessment of the opinions expressed by panelists, including the likelihood of a conflict of interest between the views expressed by panelists and the subject matter of debate. The NBSA added that such ‘disclosure would go a long way in improving the standards of news journalism’. That was in 2012. In The Hoot’s 2012 study on self-regulation in television, Indira Akoijam observed that the BCCC and the NBA did not take ‘strong punitive action’ against the channels that violated their guidelines. Warnings not to repeat the programme or directives to run an apology as a scroll were not enough. Stricter punishments, such as fines, would reduce the number of notices and reduce the number of violations, felt Akoijam. According to the NBSA annual report for 2013-14, the number of complaints before the authority had gone up to 1143. They included erroneous reportage, misleading reports that helped or hampered an organisation’s business interests, breach of privacy (especially in matters of family or matrimonial disputes that had no public interest), sexual harassment complaints and, a batch of complaints filed after the Mumbai blasts of 2011 by alert citizens objecteding to speculative news reports of the involvement of the Indian Mujahideen and LeT in the blasts. By 2013-14, the NBSA put in a system in place to monitor compliance with its orders. But was this enough? In its 2014-15 annual report, the NBSA took up 110 complaints and also spelt out its two-tier mechanism (the broadcaster and the NBSA) for resolution of complaints, with the NBSA taking suo motu action in some cases. Complaints also came from the Ministry of Information and Broadcasting and the Election Commission of India. In its 2015-16 annual report, the NBSA took up 198 complaints, from comments made by television studio guests about the ban on beef to programmes allegedly defaming Hindu spiritual leader Radhey Maa, and programmes allegedly of fake news and paid news. While, in most instances, complaints were not upheld or the programmes were held to be in the public interest and the cases were closed, mistaken identities continued to haunt India TV. In a complaint lodged on January 18, 2016, Bhawana Arora, an assistant professor of Lady Shri Ram College in Delhi, said that the channel broadcast a telephonic conversation with a woman named Bhawana Arora, accused of throwing ink on Delhi Chief Minister Arvind Kejriwal. The accompanying visual was a Facebook profile picture of the professor with the same name. The NBSA had ordered an apology and removal of the recording on the channel’s website and since it complied, the case was closed. In its 2016-17 annual report, the NBSA reported that it took up 232 complaints and, while JNU doesn’t figure in the list, a sufficient number of instances the report lists are related to coverage of alleged anti-national activity. It also marks the shift in the more polarized world of broadcast media where the fake and the slanted news vie for primacy. Self-regulation, or any kind of regulation, seems increasingly to be a largely unattainable goal. Geeta Seshu is an independent journalist in Mumbai and Consulting Editor at The Hoot.
english
//! Tests auto-converted from "sass-spec/spec/values/maps/errors.hrx" #[test] #[ignore] // missing error fn test() { assert_eq!( crate::rsass( "$map: ( foo: bar );\ \ntest { baz: $map; }\ \n" ) .unwrap_err(), "Error: (foo: bar) isn\'t a valid CSS value.\ \n ,\ \n2 | test { baz: $map; }\ \n | ^^^^\ \n \'\ \n input.scss 2:13 root stylesheet", ); }
rust
Russell Westbrook signed with the Los Angeles Clippers after he cleared waivers on Wednesday afternoon. The nine-time All-Star was waived by the Utah Jazz on Monday. He cleared waivers because no team has the salary cap space to take on the remaining $47 million he was owed on his expiring contract. There is an outside chance Westbrook could practice Thursday if he passes his physical. The Clippers — fourth in the Western Conference with a 33-28 record — host Sacramento on Friday in their first game after the All-Star break. The move keeps Westbrook in Los Angeles. He is from the area, was a standout at UCLA and played less than two seasons for the Lakers before being traded to the Jazz on Feb. 10 as part of a three-team deal. The 15-year veteran is averaging 15.9 points, 7.4 rebounds, and 7.1 assists in 28.7 minutes per game. Westbrook is reuniting with Paul George, his former teammate in Oklahoma City. George had lobbied the front office to add a point guard. Westbrook’s signing completes a busy three-week period during which the Clippers made plenty of changes to their lineup. They reacquired Eric Gordon, who began his career with them in 2008, from Houston and got Bones Hyland from Denver. They also acquired center Mason Plumlee from Charlotte for Reggie Jackson. LA also traded Luke Kennard to Memphis and John Wall back to Houston.
english
<filename>velero-plugins/migrolebindings/restore.go package migrolebindings import ( "encoding/json" "strings" apiauthorization "github.com/openshift/api/authorization/v1" "github.com/sirupsen/logrus" "github.com/vmware-tanzu/velero/pkg/plugin/velero" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" ) // RestorePlugin is a restore item action plugin for Velero type RestorePlugin struct { Log logrus.FieldLogger } // AppliesTo returns a velero.ResourceSelector that applies to PVCs func (p *RestorePlugin) AppliesTo() (velero.ResourceSelector, error) { return velero.ResourceSelector{ IncludedResources: []string{"rolebinding.authorization.openshift.io"}, }, nil } // Execute action for the restore plugin for the pvc resource func (p *RestorePlugin) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error) { p.Log.Info("[rolebinding-restore] Entering Role Bindings restore plugin") roleBinding := apiauthorization.RoleBinding{} itemMarshal, _ := json.Marshal(input.Item) json.Unmarshal(itemMarshal, &roleBinding) p.Log.Infof("[rolebinding-restore] role binding - %s, API version", roleBinding.Name, roleBinding.APIVersion) namespaceMapping := input.Restore.Spec.NamespaceMapping if len(namespaceMapping) > 0 { newRoleRefNamespace := namespaceMapping[roleBinding.RoleRef.Namespace] if newRoleRefNamespace != "" { roleBinding.RoleRef.Namespace = newRoleRefNamespace } roleBinding.Subjects = SwapSubjectNamespaces(roleBinding.Subjects, namespaceMapping) roleBinding.UserNames = SwapUserNamesNamespaces(roleBinding.UserNames, namespaceMapping) roleBinding.GroupNames = SwapGroupNamesNamespaces(roleBinding.GroupNames, namespaceMapping) } var out map[string]interface{} objrec, _ := json.Marshal(roleBinding) json.Unmarshal(objrec, &out) return velero.NewRestoreItemActionExecuteOutput(&unstructured.Unstructured{Object: out}), nil } func SwapSubjectNamespaces(subjects []corev1.ObjectReference, namespaceMapping map[string]string) []corev1.ObjectReference { for i, subject := range subjects { newSubjectNamespace := namespaceMapping[subject.Namespace] // If subject has namespace swap it if subject.Namespace != "" && newSubjectNamespace != "" { subjects[i].Namespace = newSubjectNamespace } // subject names can point to all service accounts in a namespace(SystemGroup) - xxx:serviceaccounts:oldnamespace splitName := strings.Split(subject.Name, ":") if len(splitName) < 4 { continue } if splitName[1] == "serviceaccounts" && namespaceMapping[splitName[2]] != "" { splitName[2] = namespaceMapping[splitName[2]] subjects[i].Name = strings.Join(splitName, ":") } } return subjects } func SwapUserNamesNamespaces(userNames []string, namespaceMapping map[string]string) []string { for i, userName := range userNames { // User name can point to a service account and username format is role:serviceaccount:namespace:serviceaccountname splitUsername := strings.Split(userName, ":") if len(splitUsername) <= 2 { // safety check continue } if splitUsername[1] != "serviceaccount" { continue } // if second element is serviceaccount then third element is namespace newNamespace := namespaceMapping[splitUsername[2]] if newNamespace == "" { continue } // swap namespaces when namespace mapping is enabled splitUsername[2] = newNamespace joinedUsername := strings.Join(splitUsername, ":") userNames[i] = joinedUsername } return userNames } func SwapGroupNamesNamespaces(groupNames []string, namespaceMapping map[string]string) []string { for i, group := range groupNames { // group names can point to all service accounts in a namespace(SystemGroup) - xxx:serviceaccounts:oldnamespace splitGroup := strings.Split(group, ":") if len(splitGroup) < 4 { continue } if splitGroup[1] == "serviceaccounts" && namespaceMapping[splitGroup[2]] != "" { splitGroup[2] = namespaceMapping[splitGroup[2]] groupNames[i] = strings.Join(splitGroup, ":") } } return groupNames }
go
{ "id": 1673, "source": "barnes", "verse_id": 18580, "verse_count": 1, "reference": "45:18", "title": "", "html": " <p> <em>For thus saith the Lord <\/em>&mdash;This verse is designed to induce them to put uuwavering confidence in the true God. For this purpose, the prophet enumerates the great things which God had done in proof that he alone was A mighty, and was worthy of trust. <\/p> <p> <em>He hath established it <\/em>&mdash;That is, the earth. The language here is derived from the supposition that the earth is laid upon a foundation, and is made firm. The Septuagint renders this, &lsquo;God who displayed the earth to view, and who, having made it, divided it (&delta;&iota;&omega;\u0301&rho;&iota;&sigma;&epsilon;&nu; &alpha;&upsilon;\u0313&tau;&eta;\u0300&nu; dio\u0304risen aute\u0304n) that is, parcelled it out to be inhabited. This accords well with the scope of the passage. <\/p> <p> <em>He created it not in vain <\/em>&mdash;He did not form it to remain a vast desert without inhabitants. <\/p> <p> <em>He formed it to be inhabited <\/em>&mdash;By man, and the various tribes of animals. He makes it a convenient habitation for them; adapts its climates, its soil, and its productions, to their nature; and makes it yield abundance for their support. The main idea, I think, in the statement of this general truth, is, that God designed that the earth at large should be inhabited; and that, therefore, he intended that Judea&mdash;thru lying waste while the captives were in Babylon&mdash;should be re-populated, and again become the happy abode of the returning exiles. So Grotius interprets it. The Jews, from this passage, infer, that the earth shall be inhabited after the resurrection&mdash;an idea which has every probability, since there will not be fewer reasons why the earth shall be inhabited then than there are now; nor can there be any reasons why the earth should then exist in vain anymore than now. <\/p> <p> <em>And there is none else <\/em>&mdash;(See the note at <a class=\"isa\" verses=\"WzE4NTY4XQ==\">Isaiah 45:6<\/a>). <\/p> ", "audit": 1 }
json
import { expect } from "chai"; import * as i18next from "i18next"; import * as _ from "lodash"; import "mocha"; import { FACEBOOK_BUTTONS, FACEBOOK_IMAGE_ASPECT_RATIO, FACEBOOK_TOP_ELEMENT_STYLE, FACEBOOK_WEBVIEW_HEIGHT_RATIO, FacebookButtonTemplateBuilder, FacebookElementTemplateBuilder, FacebookEvent, FacebookPlatform, FacebookQuickReplyText, FacebookTemplateBuilder, IFacebookGenericButtonTemplate, IFacebookPayloadTemplate, IFacebookQuickReply, } from "../../../src/platforms/dialogflow"; import { VoxaApp } from "../../../src/VoxaApp"; import { variables } from "./../../variables"; import { views } from "./../../views"; const i18n: i18next.i18n = require("i18next"); /* tslint:disable-next-line:no-var-requires */ const facebookOpenGraphTemplatePayload = require("../../requests/dialogflow/facebookOpenGraphTemplatePayload.json"); describe("Facebook Directives", () => { let event: any; let app: VoxaApp; let dialogflowAgent: FacebookPlatform; before(() => { i18n.init({ load: "all", nonExplicitWhitelist: true, resources: views, }); }); beforeEach(() => { app = new VoxaApp({ views, variables }); dialogflowAgent = new FacebookPlatform(app); event = _.cloneDeep(require("../../requests/dialogflow/launchIntent.json")); }); describe("FacebookAccountLink", () => { it("should add a facebook account link button using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.AccountLink", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentText).to.equal("Text!"); expect(reply.fulfillmentMessages[0].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_LINK, url: "https://www.messenger.com", }, ], template_type: "button", text: "Text!", }); }); it("should add a facebook account link button", async () => { app.onIntent("LaunchIntent", { facebookAccountLink: "https://www.messenger.com", flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[0].payload.facebook.attachment; expect(payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_LINK, url: "https://www.messenger.com", }, ], template_type: "button", text: "Text!", }); }); }); describe("FacebookAccountUnlink", () => { it("should add a facebook account unlink button using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.AccountUnlink", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentText).to.equal("Text!"); expect(reply.fulfillmentMessages[0].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_UNLINK, }, ], template_type: "button", text: "Text!", }); }); it("should add a facebook account unlink button", async () => { app.onIntent("LaunchIntent", { facebookAccountUnlink: true, flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[0].payload.facebook.attachment; expect(payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_UNLINK, }, ], template_type: "button", text: "Text!", }); }); }); describe("FacebookSuggestionChips", () => { it("should add a FacebookSuggestionChips using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.Suggestions", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentText).to.equal("Pick a suggestion"); expect(reply.fulfillmentMessages[0].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { payload: "Suggestion 1", title: "Suggestion 1", type: FACEBOOK_BUTTONS.POSTBACK, }, { payload: "Suggestion 2", title: "Suggestion 2", type: FACEBOOK_BUTTONS.POSTBACK, }, ], template_type: "button", text: "Pick a suggestion", }); }); it("should add a FacebookSuggestionChips", async () => { app.onIntent("LaunchIntent", { facebookSuggestionChips: ["yes", "no"], flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[0].payload.facebook.attachment; expect(payload).to.deep.equal({ buttons: [ { payload: "yes", title: "yes", type: FACEBOOK_BUTTONS.POSTBACK, }, { payload: "no", title: "no", type: FACEBOOK_BUTTONS.POSTBACK, }, ], template_type: "button", text: "Text!", }); }); }); describe("FacebookQuickReplyLocation", () => { it("should send a quick reply for location request using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.QuickReplyLocation", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentText).to.equal("Text!"); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your location"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "location", }, ]); }); it("should send a quick reply for location request", async () => { app.onIntent("LaunchIntent", { facebookQuickReplyLocation: "Send me your location", flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your location"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "location", }, ]); }); }); describe("FacebookQuickReplyPhoneNumber", () => { it("should send a quick reply for phone number request using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.QuickReplyPhoneNumber", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your phone number"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "user_phone_number", }, ]); }); it("should send a quick reply for phone number request", async () => { app.onIntent("LaunchIntent", { facebookQuickReplyPhoneNumber: "Send me your phone number", flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your phone number"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "user_phone_number", }, ]); }); }); describe("FacebookQuickReplyText", () => { it("should send a quick reply for options request from a single item", async () => { const quickReplyMessage = "What's your favorite shape?"; const quickReplySingleElement: IFacebookQuickReply = { imageUrl: "https://www.example.com/imgs/imageExample.png", payload: "square", title: "Square Multicolor", }; app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const facebookQuickReplyText = new FacebookQuickReplyText(quickReplyMessage, quickReplySingleElement); return { directives: [facebookQuickReplyText], flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const quickReplyExpect: any = _.cloneDeep(quickReplySingleElement); quickReplyExpect.image_url = quickReplySingleElement.imageUrl; quickReplyExpect.content_type = "text"; _.unset(quickReplyExpect, "imageUrl"); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal(quickReplyMessage); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([quickReplyExpect]); }); it("should send a quick reply for options request from an array", async () => { const quickReplyTextArray: IFacebookQuickReply[] = [ { imageUrl: "https://www.example.com/imgs/imageExample.png", payload: "square", title: "Square Multicolor", }, { imageUrl: "https://www.w3schools.com/colors/img_colormap.gif", payload: "hexagonal", title: "Hexagonal multicolor", }, ]; app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const facebookQuickReplyText = new FacebookQuickReplyText("What's your favorite shape?", quickReplyTextArray); return { directives: [facebookQuickReplyText], flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const quickReplyExpect: any = _.cloneDeep(quickReplyTextArray); quickReplyExpect[0].image_url = quickReplyExpect[0].imageUrl; quickReplyExpect[1].image_url = quickReplyExpect[1].imageUrl; quickReplyExpect[0].content_type = "text"; quickReplyExpect[1].content_type = "text"; _.unset(quickReplyExpect[0], "imageUrl"); _.unset(quickReplyExpect[1], "imageUrl"); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("What's your favorite shape?"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal(quickReplyExpect); }); }); describe("FacebookQuickReplyUserEmail", () => { it("should send a quick reply for user's email request using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.QuickReplyUserEmail", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentText).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your email"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "user_email", }, ]); }); it("should send a quick reply for user's email request", async () => { app.onIntent("LaunchIntent", { facebookQuickReplyUserEmail: "Send me your email", flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(reply.fulfillmentMessages[1].payload.facebook.text).to.equal("Send me your email"); expect(reply.fulfillmentMessages[1].payload.facebook.quick_replies).to.deep.equal([ { content_type: "user_email", }, ]); }); }); describe("FacebookButtonTemplate", () => { it("should send a FacebookButtonTemplate using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.ButtonTemplate", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookButtonTemplatePayload = require("../../requests/dialogflow/facebookButtonTemplatePayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookButtonTemplatePayload); }); it("should send a FacebookButtonTemplate", async () => { app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const buttonBuilder1 = new FacebookButtonTemplateBuilder(); const buttonBuilder2 = new FacebookButtonTemplateBuilder(); const buttonBuilder3 = new FacebookButtonTemplateBuilder(); const facebookTemplateBuilder = new FacebookTemplateBuilder(); buttonBuilder1 .setPayload("payload") .setTitle("View More") .setType(FACEBOOK_BUTTONS.POSTBACK); buttonBuilder2 .setPayload("1234567890") .setTitle("<NAME>") .setType(FACEBOOK_BUTTONS.PHONE_NUMBER); buttonBuilder3 .setTitle("Go to Twitter") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("http://www.twitter.com"); facebookTemplateBuilder .addButton(buttonBuilder1.build()) .addButton(buttonBuilder2.build()) .addButton(buttonBuilder3.build()) .setText("What do you want to do?"); return { facebookButtonTemplate: facebookTemplateBuilder.build(), flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookButtonTemplatePayload = require("../../requests/dialogflow/facebookButtonTemplatePayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookButtonTemplatePayload); }); }); describe("FacebookCarousel", () => { it("should send a FacebookCarousel template using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.Carousel", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookCarouselPayload = require("../../requests/dialogflow/facebookCarouselPayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookCarouselPayload); }); it("should send a FacebookCarousel template", async () => { app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const buttonBuilder1 = new FacebookButtonTemplateBuilder(); const buttonBuilder2 = new FacebookButtonTemplateBuilder(); const elementBuilder1 = new FacebookElementTemplateBuilder(); const elementBuilder2 = new FacebookElementTemplateBuilder(); const facebookTemplateBuilder = new FacebookTemplateBuilder(); buttonBuilder1 .setTitle("Go to see this URL") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("https://www.example.com/imgs/imageExample.png"); buttonBuilder2 .setPayload("value") .setTitle("Send this to chat") .setType(FACEBOOK_BUTTONS.POSTBACK); elementBuilder1 .addButton(buttonBuilder1.build()) .addButton(buttonBuilder2.build()) .setDefaultActionUrl("https://www.example.com/imgs/imageExample.png") .setDefaultMessengerExtensions(false) .setDefaultWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.COMPACT) .setImageUrl("https://www.w3schools.com/colors/img_colormap.gif") .setSubtitle("subtitle") .setTitle("title"); elementBuilder2 .addButton(buttonBuilder1.build()) .addButton(buttonBuilder2.build()) .setDefaultActionUrl("https://www.example.com/imgs/imageExample.png") .setDefaultMessengerExtensions(false) .setDefaultWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.TALL) .setImageUrl("https://www.w3schools.com/colors/img_colormap.gif") .setSubtitle("subtitle") .setTitle("title"); facebookTemplateBuilder .addElement(elementBuilder1.build()) .addElement(elementBuilder2.build()) .setImageAspectRatio(FACEBOOK_IMAGE_ASPECT_RATIO.HORIZONTAL); return { facebookCarousel: facebookTemplateBuilder.build(), flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookCarouselPayload = require("../../requests/dialogflow/facebookCarouselPayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookCarouselPayload); }); }); describe("FacebookList", () => { it("should send a FacebookList template using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.List", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookListPayload = require("../../requests/dialogflow/facebookListPayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookListPayload); }); it("should send a FacebookList template", async () => { app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const buttonBuilder1 = new FacebookButtonTemplateBuilder(); const buttonBuilder2 = new FacebookButtonTemplateBuilder(); const elementBuilder1 = new FacebookElementTemplateBuilder(); const elementBuilder2 = new FacebookElementTemplateBuilder(); const elementBuilder3 = new FacebookElementTemplateBuilder(); const facebookTemplateBuilder = new FacebookTemplateBuilder(); buttonBuilder1 .setPayload("payload") .setTitle("View More") .setType(FACEBOOK_BUTTONS.POSTBACK); buttonBuilder2 .setFallbackUrl("https://www.example.com") .setMessengerExtensions(false) .setTitle("View") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("https://www.scottcountyiowa.com/sites/default/files/images/pages/IMG_6541-960x720_0.jpg") .setWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.FULL); elementBuilder1 .addButton(buttonBuilder2.build()) .setImageUrl("https://www.scottcountyiowa.com/sites/default/files/images/pages/IMG_6541-960x720_0.jpg") .setSubtitle("See all our colors") .setTitle("Classic T-Shirt Collection") .setDefaultActionFallbackUrl("https://www.example.com"); elementBuilder2 .setDefaultActionUrl("https://www.w3schools.com") .setDefaultWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.TALL) .setImageUrl("https://www.scottcountyiowa.com/sites/default/files/images/pages/IMG_6541-960x720_0.jpg") .setSubtitle("See all our colors") .setTitle("Classic T-Shirt Collection") .setSharable(false); buttonBuilder2.setWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.TALL); elementBuilder3 .addButton(buttonBuilder2.build()) .setDefaultActionUrl("https://www.w3schools.com") .setDefaultWebviewHeightRatio(FACEBOOK_WEBVIEW_HEIGHT_RATIO.TALL) .setImageUrl("https://www.scottcountyiowa.com/sites/default/files/images/pages/IMG_6541-960x720_0.jpg") .setSubtitle("100% Cotton, 200% Comfortable") .setTitle("Classic T-Shirt Collection"); facebookTemplateBuilder .addButton(buttonBuilder1.build()) .addElement(elementBuilder1.build()) .addElement(elementBuilder2.build()) .addElement(elementBuilder3.build()) .setSharable(true) .setTopElementStyle(FACEBOOK_TOP_ELEMENT_STYLE.LARGE); return { facebookList: facebookTemplateBuilder.build(), flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const facebookListPayload = require("../../requests/dialogflow/facebookListPayload.json"); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookListPayload); }); }); describe("FacebookOpenGraphTemplate", () => { it("should send a FacebookOpenGraphTemplate using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "yield", reply: "Facebook.OpenGraphTemplate", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookOpenGraphTemplatePayload); }); it("should send a FacebookOpenGraphTemplate", async () => { app.onIntent("LaunchIntent", (voxaEvent: FacebookEvent) => { const elementBuilder1 = new FacebookElementTemplateBuilder(); const buttonBuilder1 = new FacebookButtonTemplateBuilder(); const buttonBuilder2 = new FacebookButtonTemplateBuilder(); const facebookTemplateBuilder = new FacebookTemplateBuilder(); buttonBuilder1 .setTitle("Go to Wikipedia") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("https://en.wikipedia.org/wiki/Rickrolling"); buttonBuilder2 .setTitle("Go to Twitter") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("http://www.twitter.com"); elementBuilder1 .addButton(buttonBuilder1.build()) .addButton(buttonBuilder2.build()) .setUrl("https://open.spotify.com/track/7GhIk7Il098yCjg4BQjzvb"); facebookTemplateBuilder .addElement(elementBuilder1.build()); return { facebookOpenGraphTemplate: facebookTemplateBuilder.build(), flow: "yield", sayp: "Say!", textp: "Text!", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); const { payload } = reply.fulfillmentMessages[1].payload.facebook.attachment; expect(reply.fulfillmentMessages[0].payload.facebook.text).to.equal("Text!"); expect(payload).to.deep.equal(facebookOpenGraphTemplatePayload); }); }); describe("Multiple directives", () => { it("should send a text, accountlink, suggestion chip and " + "FacebookOpenGraphTemplate directive in the right order using a reply view", async () => { app.onIntent("LaunchIntent", { flow: "continue", reply: "Facebook.AccountLink", to: "state1", }); app.onState("state1", { flow: "continue", reply: "Facebook.Suggestions", to: "state2", }); app.onState("state2", { flow: "yield", reply: "Facebook.OpenGraphTemplate", to: "entry", }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentMessages[0].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_LINK, url: "https://www.messenger.com", }, ], template_type: "button", text: "Text!", }); expect(reply.fulfillmentMessages[1].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { payload: "Suggestion 1", title: "Suggestion 1", type: FACEBOOK_BUTTONS.POSTBACK, }, { payload: "Suggestion 2", title: "Suggestion 2", type: FACEBOOK_BUTTONS.POSTBACK, }, ], template_type: "button", text: "Pick a suggestion", }); expect(reply.fulfillmentMessages[2].payload.facebook.text).to.deep.equal("Text!"); expect(reply.fulfillmentMessages[3].payload.facebook.attachment.payload).to.deep.equal( facebookOpenGraphTemplatePayload, ); }); it("should send a text, accountlink, suggestion chip and " + "FacebookOpenGraphTemplate directive in the right order", async () => { app.onIntent("LaunchIntent", { facebookAccountLink: "https://www.messenger.com", flow: "continue", sayp: "Say!", textp: "Text!", to: "state1", }); app.onState("state1", { facebookSuggestionChips: ["yes", "no"], flow: "continue", to: "state2", }); app.onState("state2", (voxaEvent: FacebookEvent) => { const elementBuilder1 = new FacebookElementTemplateBuilder(); const buttonBuilder1 = new FacebookButtonTemplateBuilder(); const buttonBuilder2 = new FacebookButtonTemplateBuilder(); const facebookTemplateBuilder = new FacebookTemplateBuilder(); buttonBuilder1 .setTitle("Go to Wikipedia") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("https://en.wikipedia.org/wiki/Rickrolling"); buttonBuilder2 .setTitle("Go to Twitter") .setType(FACEBOOK_BUTTONS.WEB_URL) .setUrl("http://www.twitter.com"); elementBuilder1 .addButton(buttonBuilder1.build()) .addButton(buttonBuilder2.build()) .setUrl("https://open.spotify.com/track/7GhIk7Il098yCjg4BQjzvb"); facebookTemplateBuilder .addElement(elementBuilder1.build()); return { facebookOpenGraphTemplate: facebookTemplateBuilder.build(), flow: "yield", to: "entry", }; }); event = _.cloneDeep(require("../../requests/dialogflow/facebookLaunchIntent.json")); const reply = await dialogflowAgent.execute(event); expect(reply.fulfillmentMessages[0].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { type: FACEBOOK_BUTTONS.ACCOUNT_LINK, url: "https://www.messenger.com", }, ], template_type: "button", text: "Text!", }); expect(reply.fulfillmentMessages[1].payload.facebook.attachment.payload).to.deep.equal({ buttons: [ { payload: "yes", title: "yes", type: FACEBOOK_BUTTONS.POSTBACK, }, { payload: "no", title: "no", type: FACEBOOK_BUTTONS.POSTBACK, }, ], template_type: "button", text: "Text!", }); expect(reply.fulfillmentMessages[2].payload.facebook.attachment.payload).to.deep.equal( facebookOpenGraphTemplatePayload, ); }); }); });
typescript
<gh_stars>0 {"body": "Jack was right to ask for more info, and your commands will be helpful, but\nin the meantime this may be useful (in particular, skip to the bottom of the\npost where Andy McNeill contributes the useful part):\n\n\nhttp://www.rumblestrip.org/interests/light/rtrace-multiprocessing-option-ini\ntial-test-results/\n\n\n- Rob\n\n\nOn 6/24/10 2:33 PM, \"<NAME>\" <silkworth at transsolar.com> wrote:\n___\n<sup>Automatically generated content from [radiance mailing-list](https://radiance-online.org/pipermail/radiance-general/2010-June/007020.html).</sup>", "attachments": [], "created_by_name": "<NAME>", "created_at": "June 24, 2010 at 02:05PM", "created_by": "Rob_Guglielmetti", "parent_id": "radiance-general_007018", "id": "radiance-general_007020"}
json
<filename>data/uso-styles/82586.json { "id": 82586, "name": "BownBox", "description": "A beautiful login form screen for Facebook. Uses simple CSS3 to modify the layout and style of the generic boring login screen - perfect for showing off on your Retina display or to your friends. Buy me a coffee @paypal - <EMAIL> or visit me online at http://jakebown.com", "user": { "id": 176231, "name": "JakeBown", "email": "redacted", "paypal_email": "<EMAIL>", "homepage": null, "about": null, "license": "ccby" }, "updated": "2013-02-04T10:35:37.000Z", "weekly_install_count": 0, "total_install_count": 518, "rating": null, "after_screenshot_name": "https://userstyles.org/style_screenshots/82586_after.png?r=1557734485", "obsoleting_style_id": null, "obsoleting_style_name": null, "obsolete": 0, "admin_delete_reason_id": null, "obsoletion_message": null, "screenshots": null, "license": "publicdomain", "created": "2013-02-04T10:35:37.000Z", "category": "site", "raw_subcategory": "facebook", "subcategory": "facebook", "additional_info": "Version 1.\r\n\r\nAny changes - drop me a line at jakebown.com", "style_tags": [], "css": "@-moz-document domain(facebook.com) {\n/*\r\n\tTheme created by <NAME>\r\n\tBuy me a coffee - <EMAIL>\r\n\tConcept designed by Alex (http://twitter.com/amont_)\r\n\tHope you love it!\r\n\tAny changes - drop me a line or visit me online / <EMAIL> / jakebown.com\r\n*/\r\n\r\nbody.fbIndex { background: url('http://f.cl.ly/items/2z230p473z380C2E2E3c/SoftAmbience.jpg')top center !important; }\r\n\r\n.loggedout_menubar_container { background: url('http://fiakka.com/images/blank_transparent.png') !important; }\r\n.fbIndex #globalContainer #dropmenu_container,\r\n.fbIndex #globalContainer #content,\r\n.fbIndex #globalContainer #pageFooter { display: none !important }\r\n\r\n\r\n.fbIndex .loggedout_menubar_container {\r\n position: fixed !important;\r\n width: 420px !important;\r\n height: 82px !important;\r\n min-width: 0 !important;\r\n top: 20% !important;\r\n left: 55% !important;\r\n margin-top: -17px !important;\r\n margin-left: -210px !important;\r\n z-index: -1 !important;\r\n}\r\n\r\n\r\n.fbIndex .loggedout_menubar { width: auto !important }\r\n.fbIndex .loggedout_menubar_container .lfloat,\r\n.fbIndex .loggedout_menubar_container .rfloat { float: none !important }\r\n.fbIndex .loggedout_menubar_container .lfloat img,\r\n.fbIndex .loggedout_menubar_container .rfloat #login_form table { display: block !important; margin: 0 auto !important }\r\n\r\n.fbIndex .loggedout_menubar_container .lfloat img { display: block; margin: -60px auto 20px !important; }\r\n\r\n.fbIndex .rfloat {\r\n background-image:url(\"http://jakebown.com/apps/facebook/bownbook/fb.png\");\r\n position:absolute;\r\n z-index:0;\r\n width:290px;\r\n height:357px;\r\n }\r\n\r\n \r\n.html7magic{\r\nvisibility:hidden;\r\n }\r\n\r\ntextarea, input { outline: none; }\r\n\r\n.inputtext {\r\n background-color:transparent;\r\n border:none;\r\n color:white;\r\n }\r\n \r\ntd {\r\n margin-top:24px;\r\n margin-left:35px;\r\n width:150px;\r\n display:block;\r\n line-height:30px;\r\n }\r\n \r\n.login_form_label_field {\r\n visibility:hidden;\r\n }\r\n \r\n.fb_logo {\r\n visibility:hidden;\r\n }\r\n\r\n#login_form {\r\n position:absolute;\r\n \tdisplay:block;\r\n }\r\n\r\n#SetAsHomepage_Callout {\r\n display: none;\r\n}\n}", "discussions": [], "discussionsCount": 0, "commentsCount": 0, "userjs_url": "/styles/userjs/82586/bownbox.user.js", "style_settings": [] }
json
<filename>nes/1.1.2.json {"client.js":"<KEY>,"client.min.js":"<KEY>}
json
<reponame>rolocampusano/nber<gh_stars>1-10 { "id": 14193, "cites": 31, "cited_by": 341, "reference": [ "<NAME>., 1985. Do Demand Curves for Stocks Slope Down? Journal of Finance 41(3), 579-590.", "<NAME>., <NAME>., 1988. Housing Investment in the United States. Journal of Political Economy 96 (4), 7 18-740.", "<NAME>., 1981. Do Stock Prices Move Too Much to be Justified by Subsequent Changes in Dividends? American Economic Review 71(3), 42 1-436.", "<NAME>., 2008. Job Creation and Housing Construction: Constraints on Metropolitan Area Employment Growth. Journal of Urban Economics 64, 178-195.", "<NAME>., 2008. On Local Housing Supply Elasticity, mimeo, The Wharton School, University of Pennsylvania.", "<NAME>., <NAME>., 2008. The Attenuation of Human Capital Externalities, Journal of Urban Economics, forthcoming.", "<NAME>., 1989. Residential Building and the Cost of Construction: New Evidence on the Efficiency of the Housing Market. Review of Economics and Statistics 81, 288-302.", "<NAME>., <NAME>., 2003. Dotcom mania: The rise and fall of internet stock prices.", "<NAME>., <NAME>., 1994. Testing the Present Value Relation for House Prices: Should I Leave My House in San Francisco? Journal of Urban Economics 35, 245-266.", "<NAME>., <NAME>., 2007. Housing and Behavioral Finance, mimeo, September 25, 2007.", "<NAME>., <NAME>., 1991. Urban Land Value Functions with Endogenous Zoning. Journal of Urban Economics 29, 14-27.", "<NAME>., 1986. An Empirical Test of the Efficiency of the Housing Market. Journal of Urban Economics 20, 140-154.", "<NAME>., 2000. Does Competition among Public Schools Benefit Students and Taxpayers?, American Economic Review 90 (5), 1209-3 8.", "<NAME>., <NAME>., <NAME>., 2006. Asset Float and Speculative Bubbles. Journal of Finance 61 (3), 1073-1117.", "Holmes,T., <NAME>., 2008. Cities as Six-by-Six-Mile Squares: Zipfs Law. Mimeo.", "<NAME>., <NAME>., <NAME>., 2008. Advisors and Asset Prices: A Model of the Origin of Bubbles. Journal of Financial Economics, forthcoming.", "<NAME>., <NAME>., <NAME>., 2005. Assessing High House Prices: Bubbles, Fundamentals, and Misperceptions. Journal of Economic Perspectives 19 (4), 67-92.", "<NAME>., <NAME>., 1995. Back to the Future: Generating Moment Implications for Continuous-Time Markov Processes. Econometrica 63 (4), 767-804.", "<NAME>., <NAME>., <NAME>., 2008. A New Measure of the Local Regulatory Environment for Housing Markets. Urban Studies 45 (3), 693-729.", "<NAME>., <NAME>., <NAME>., 2005. Why Have Housing Prices Gone Up? American Economic Review 95 (2) 2005: 329-333.", "<NAME>., <NAME>., 2008. Arbitrage in Housing, in: <NAME>., <NAME>. (Eds.), Housing and the Built Environment: Access, Finance, Policy. Lincoln Land Institute of Land Policy, Cambridge, MA, forthcoming.", "<NAME>., <NAME>., 2005. Urban Decline and Durable Housing. Journal of Political Economy 113 (2), 345-375.", "<NAME>., <NAME>., 2006. Housing Dynamics. NBER Working Paper 12787, revised February 2008.", "<NAME>., <NAME>., 2003. The Impact of Zoning on Housing Affordability. Economic Policy Review 9 (2), 2 1-39.", "<NAME>., <NAME>., 1990. On Testing for Speculative Bubbles. Journal of Economic Perspectives 4 (2), 85-101.", "<NAME>., <NAME>., <NAME>., <NAME>., 1990. Noise Trader Risk in Financial Markets. Journal of Political Economy 98 (4), 703-73 8.", "<NAME>., <NAME>., <NAME>., <NAME>., 2008. Estimating Agglomeration Economies with History, Geology and Worker Effects. Working paper, University of Toronto, January 30, 2008.", "<NAME>., <NAME>., 1989. The Efficiency of the Market for Single-Family Homes. American Economic Review 79 (1), 125-137.", "<NAME>., <NAME>., 1995. The Housing Cycle in the Boston Metropolitan Area: The Boom, the Bust, and the Recovery. New England Economic Review, MarchlApril 1995.", "<NAME>., 1994. A Decade of Boom and Bust in the Prices of Single-Family Homes: Boston and Los Angeles: 1983-1993. New England Economic Review, March 1994.", "<NAME>., <NAME>., <NAME>., 2001. Prospect Theory and Asset Prices. Quarterly Journal of Economics 116, 1-53." ] }
json
Regular readers may well have noticed some changes going on around here recently, so we’re really happy to finally share our big news with you: insideTonic is now OnSoftware! We’ve changed the name of our blog for a variety of reasons, the main one being that we thought ‘OnSoftware‘ says a lot more about what we’re writing about and what we’re interested in (I’m talking about software, in case you didn’t cotton on). Also, as we already have a sister blog in Spanish, along with more to come in other languages (keep your eyes peeled!) – we figure that OnSoftware is generally a little clearer and easier to follow for our readers from all over the world. Along with the new name, we’ve taken on an updated design and we’ll continue to add great new features over the weeks and months to come. Remember to update your subscription to the blog so you don’t miss out on a single post.
english
.plan-item { border: 1px solid grey; border-radius: 25px; display: flex; align-items: center; justify-content: center; overflow: hidden !important; background-color: gainsboro; } /* .plan-item:hover { background-color: gainsboro; } */ .plan-item-description { width: 220px; height: 68px; margin-left: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-wrap: break-word; text-overflow: ellipsis; } .add-to-trip-button { margin-right: 10px; }
css
{ "posts": [ { "message": "Please provide json file to display with when running this image.", "example": "docker run -d -p <outside port>:3000 -v $(pwd)/<path to your db.json>:/jsondata/db.json norppa55/jays-sons-server --watch db.json" } ] }
json
This is one of my favourite brands, but this formula didn't really help with my allergies. The ingredients are excellent quality. I still give it 5 stars because at least I didn't feel pressure in my sinuses during this allergy season. I will go back to SinusClear from RidgeCrest as that formula really soothes my seasonal allergy symptoms.
english
package com.monkey.enumerate; /** * 统一返回枚举类 * * @author skyer */ public enum ResultEnum { SUCCESS(200, "操作成功!"), SEARCH_ERROR(3000, "查询失败!"), INSERT_ERROR(3001, "添加失败!"), DELETE_ERROR(3002, "删除失败!"), UPDATE_ERROR(3003, "修改失败!"), NO_THIS_USER(3004, "该用户不存在!"), USER_DISABLE(3005, "账号已禁用!"), PASSWORD_WRONG(3006, "密码错误!"), CAPTCHA_TIMEOUT(3007, "验证码超时!"), CAPTCHA_WRONG(3008, "验证码错误!"), SESSION_TIMEOUT(3009, "未登录或会话超时,请重新登录!"), OTHER_LOGINED(3010, "会话失效,该账号已被其他人登录。请检查账号是否丢失或立即修改密码!"), USER_ALREADY_EXIST(3011, "该用户已经存在!"), ROLE_ALREADY_EXIST(3012, "该角色已经存在!"), HANDLE_ERROR(3013, "系统错误!"); private int code; private String value; private ResultEnum(int code, String value) { this.code = code; this.value = value; } public int getCode() { return code; } public void setCode(int code) { this.code = code; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
java
<filename>00-jpa-standalone/src/main/java/example02/TestClass.java package example02; public class TestClass { }
java
- 3 hrs ago 5 Best Microwave Ovens For Your Kitchen: Deals To Consider As Amazon Sale 2023 Is Nearing! - Travel Have you been to Vishveshwaraya Falls in Mandya yet? If not, this is the best time! There is always time for fashion when it comes to Kim Kardashian. The curvy socialite was spotted at the airport wearing a head to toe Chanel outfit. Carrying her cute little girl in her arms, Baby North, Kim was a beauty to not take your eyes off. Though, she missed the Chanel show this year, she did not miss the opportunity to wear the label. The white pepto bismol crop top and leggings splattered in holes was what she wore at the airport to board her flight. Strangely, it was the very same we spotted on another actress. Chanel is one of the Kim's favourite brands. Lately, her sense of style seems to be daring and revealing. This pepto bismol crop top showed off her toned midriff. The leggings which had splattered holes showcased her famous derriere in a way no one expected. Kim Kardashian completed the white look with a metallic blue cashmere coat, she gently strewn over her shoulder. What caught our attention is the ruffled neck pattern. Gathered at the ankle and high waisted, she surely put on a classic show. As she leaves nothing to one's imagination, we also caught sight of her nude coloured bra, which she did not show off on purpose, we think! The tight Chanel leggings left the audience in shock. Kim Kardashian however carried this 'hole' pattern perfectly by showing off her firm derriere. The holes on the pant were way too evident. There were two gigantic holes on the right bottom cheek which gave us a positive thought, 'she went commando'! She styled this daring and revealing look with a pair of black tanned sunglasses. Kim's diamond wedding ring on her finger and high pointed tan shoes completed the Chanel white outfit. Kim Kardashian wore her hair up with no curls over her shoulders. Leaving the best for last! We spotted the same Chanel outfit on actress Cara Delevingne when she opened Chanel last season. However, this Outfit was of a bright pink, something Kim would not have carried that well!
english
<gh_stars>0 { "name": "knowledge-back", "version": "1.0.0", "description": "knowledge base backend", "main": "app.js", "scripts": { "dev": "nodemon", "lint": "eslint --ext .js,.html -f ./node_modules/eslint-friendly-formatter . --fix", "prepush": "npm run lint", "start": "node app.js" }, "keywords": [ "nodejs", "javascript", "docker", "azure", "express" ], "author": "<NAME>", "license": "MIT", "bugs": { "url": "https://github.com/leombdev/knowledge-back/issues" }, "homepage": "https://github.com/leombdev/knowledge-back/blob/master/README.md", "devDependencies": { "eslint": "^5.16.0", "eslint-config-airbnb-base": "^13.1.0", "eslint-plugin-import": "^2.17.3", "husky": "^2.3.0", "nodemon": "^1.19.1" }, "dependencies": { "eslint-friendly-formatter": "^4.0.1", "eslint-plugin-html": "^5.0.5", "express": "^4.17.1" } }
json
package com.indramahkota.moviecatalogue.data.source.remote.response; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; public class ApiResponseTest { @Test public void empty() { ApiResponse apiResponse = ApiResponse.empty("empty", new ArrayList<>()); Assert.assertEquals(StatusResponse.EMPTY, apiResponse.status); } @Test public void success() { ApiResponse apiResponse = ApiResponse.success("test"); Assert.assertEquals("test", apiResponse.body); Assert.assertEquals(StatusResponse.SUCCESS, apiResponse.status); } @Test public void exception() { Exception exception = new Exception("test"); ApiResponse apiResponse = ApiResponse.error(exception.getMessage(), exception); Assert.assertEquals("test", apiResponse.message); Assert.assertEquals(StatusResponse.ERROR, apiResponse.status); } }
java
//! Implementation of the `wasm-pack test` command. use super::build::BuildMode; use bindgen; use build; use command::utils::set_crate_path; use console::style; use emoji; use failure::Error; use indicatif::HumanDuration; use lockfile::Lockfile; use manifest; use progressbar::Step; use slog::Logger; use std::path::PathBuf; use std::time::Instant; use test::{self, webdriver}; use wasm_pack_binary_install::Cache; use PBAR; #[derive(Debug, Default, StructOpt)] /// Everything required to configure the `wasm-pack test` command. pub struct TestOptions { #[structopt(parse(from_os_str))] /// The path to the Rust crate. pub path: Option<PathBuf>, #[structopt(long = "node")] /// Run the tests in Node.js. pub node: bool, #[structopt(long = "firefox")] /// Run the tests in Firefox. This machine must have a Firefox installation. /// If the `geckodriver` WebDriver client is not on the `$PATH`, and not /// specified with `--geckodriver`, then `wasm-pack` will download a local /// copy. pub firefox: bool, #[structopt(long = "geckodriver", parse(from_os_str))] /// The path to the `geckodriver` WebDriver client for testing in /// Firefox. Implies `--firefox`. pub geckodriver: Option<PathBuf>, #[structopt(long = "chrome")] /// Run the tests in Chrome. This machine must have a Chrome installation. /// If the `chromedriver` WebDriver client is not on the `$PATH`, and not /// specified with `--chromedriver`, then `wasm-pack` will download a local /// copy. pub chrome: bool, #[structopt(long = "chromedriver", parse(from_os_str))] /// The path to the `chromedriver` WebDriver client for testing in /// Chrome. Implies `--chrome`. pub chromedriver: Option<PathBuf>, #[structopt(long = "safari")] /// Run the tests in Safari. This machine must have a Safari installation, /// and the `safaridriver` WebDriver client must either be on the `$PATH` or /// specified explicitly with the `--safaridriver` flag. `wasm-pack` cannot /// download the `safaridriver` WebDriver client for you. pub safari: bool, #[structopt(long = "safaridriver", parse(from_os_str))] /// The path to the `safaridriver` WebDriver client for testing in /// Safari. Implies `--safari`. pub safaridriver: Option<PathBuf>, #[structopt(long = "headless")] /// When running browser tests, run the browser in headless mode without any /// UI or windows. pub headless: bool, #[structopt(long = "mode", short = "m", default_value = "normal")] /// Sets steps to be run. [possible values: no-install, normal] pub mode: BuildMode, #[structopt(long = "release", short = "r")] /// Build with the release profile. pub release: bool, } /// A configured `wasm-pack test` command. pub struct Test { crate_path: PathBuf, crate_data: manifest::CrateData, cache: Cache, node: bool, mode: BuildMode, firefox: bool, geckodriver: Option<PathBuf>, chrome: bool, chromedriver: Option<PathBuf>, safari: bool, safaridriver: Option<PathBuf>, headless: bool, release: bool, test_runner_path: Option<PathBuf>, } type TestStep = fn(&mut Test, &Step, &Logger) -> Result<(), Error>; impl Test { /// Construct a test command from the given options. pub fn try_from_opts(test_opts: TestOptions) -> Result<Self, Error> { let TestOptions { path, node, mode, headless, release, chrome, chromedriver, firefox, geckodriver, safari, safaridriver, } = test_opts; let crate_path = set_crate_path(path)?; let crate_data = manifest::CrateData::new(&crate_path)?; let any_browser = chrome || firefox || safari; if !node && !any_browser { bail!("Must specify at least one of `--node`, `--chrome`, `--firefox`, or `--safari`") } if headless && !any_browser { bail!( "The `--headless` flag only applies to browser tests. Node does not provide a UI, \ so it doesn't make sense to talk about a headless version of Node tests." ) } Ok(Test { cache: Cache::new()?, crate_path, crate_data, node, mode, chrome, chromedriver, firefox, geckodriver, safari, safaridriver, headless, release, test_runner_path: None, }) } /// Configures the cache that this test command uses pub fn set_cache(&mut self, cache: Cache) { self.cache = cache; } /// Execute this test command. pub fn run(mut self, log: &Logger) -> Result<(), Error> { let process_steps = self.get_process_steps(); let mut step_counter = Step::new(process_steps.len()); let started = Instant::now(); for (_, process_step) in process_steps { process_step(&mut self, &step_counter, log)?; step_counter.inc(); } let duration = HumanDuration(started.elapsed()); info!(&log, "Done in {}.", &duration); Ok(()) } fn get_process_steps(&self) -> Vec<(&'static str, TestStep)> { macro_rules! steps { ($($name:ident $(if $e:expr)* ),+) => { { let mut steps: Vec<(&'static str, TestStep)> = Vec::new(); $( $(if $e)* { steps.push((stringify!($name), Test::$name)); } )* steps } }; ($($name:ident $(if $e:expr)* ,)*) => (steps![$($name $(if $e)* ),*]) } match self.mode { BuildMode::Normal => steps![ step_check_rustc_version, step_add_wasm_target, step_build_tests, step_install_wasm_bindgen, step_test_node if self.node, step_get_chromedriver if self.chrome && self.chromedriver.is_none(), step_test_chrome if self.chrome, step_get_geckodriver if self.firefox && self.geckodriver.is_none(), step_test_firefox if self.firefox, step_get_safaridriver if self.safari && self.safaridriver.is_none(), step_test_safari if self.safari, ], BuildMode::Force => steps![ step_add_wasm_target, step_build_tests, step_install_wasm_bindgen, step_test_node if self.node, step_get_chromedriver if self.chrome && self.chromedriver.is_none(), step_test_chrome if self.chrome, step_get_geckodriver if self.firefox && self.geckodriver.is_none(), step_test_firefox if self.firefox, step_get_safaridriver if self.safari && self.safaridriver.is_none(), step_test_safari if self.safari, ], BuildMode::Noinstall => steps![ step_build_tests, step_install_wasm_bindgen, step_test_node if self.node, step_get_chromedriver if self.chrome && self.chromedriver.is_none(), step_test_chrome if self.chrome, step_get_geckodriver if self.firefox && self.geckodriver.is_none(), step_test_firefox if self.firefox, step_get_safaridriver if self.safari && self.safaridriver.is_none(), step_test_safari if self.safari, ], } } fn step_check_rustc_version(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { info!(log, "Checking rustc version..."); let _ = build::check_rustc_version(step)?; info!(log, "Rustc version is correct."); Ok(()) } fn step_add_wasm_target(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { info!(&log, "Adding wasm-target..."); build::rustup_add_wasm_target(log, step)?; info!(&log, "Adding wasm-target was successful."); Ok(()) } fn step_build_tests(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { info!(log, "Compiling tests to wasm..."); let msg = format!("{}Compiling tests to WASM...", emoji::CYCLONE); PBAR.step(step, &msg); build::cargo_build_wasm_tests(log, &self.crate_path, !self.release)?; info!(log, "Finished compiling tests to wasm."); Ok(()) } fn step_install_wasm_bindgen(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { info!(&log, "Identifying wasm-bindgen dependency..."); let lockfile = Lockfile::new(&self.crate_data)?; let bindgen_version = lockfile.require_wasm_bindgen()?; // Unlike `wasm-bindgen` and `wasm-bindgen-cli`, `wasm-bindgen-test` // will work with any semver compatible `wasm-bindgen-cli`, so just make // sure that it is depended upon, so we can run tests on // `wasm32-unkown-unknown`. Don't enforce that it is the same version as // `wasm-bindgen`. if lockfile.wasm_bindgen_test_version().is_none() { bail!( "Ensure that you have \"{}\" as a dependency in your Cargo.toml file:\n\ [dev-dependencies]\n\ wasm-bindgen-test = \"0.2\"", style("wasm-bindgen-test").bold().dim(), ) } let install_permitted = match self.mode { BuildMode::Normal => { info!(&log, "Ensuring wasm-bindgen-cli is installed..."); true } BuildMode::Force => { info!(&log, "Ensuring wasm-bindgen-cli is installed..."); true } BuildMode::Noinstall => { info!(&log, "Searching for existing wasm-bindgen-cli install..."); false } }; let dl = bindgen::install_wasm_bindgen( &self.cache, &bindgen_version, install_permitted, step, log, )?; self.test_runner_path = Some(dl.binary("wasm-bindgen-test-runner")); info!(&log, "Getting wasm-bindgen-cli was successful."); Ok(()) } fn step_test_node(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { assert!(self.node); info!(log, "Running tests in node..."); PBAR.step(step, "Running tests in node..."); test::cargo_test_wasm( &self.crate_path, self.release, log, Some(( "CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER", &self.test_runner_path.as_ref().unwrap(), )), )?; info!(log, "Finished running tests in node."); Ok(()) } fn step_get_chromedriver(&mut self, step: &Step, _log: &Logger) -> Result<(), Error> { PBAR.step(step, "Getting chromedriver..."); assert!(self.chrome && self.chromedriver.is_none()); self.chromedriver = Some(webdriver::get_or_install_chromedriver( &self.cache, self.mode, )?); Ok(()) } fn step_test_chrome(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { PBAR.step(step, "Running tests in Chrome..."); let chromedriver = self.chromedriver.as_ref().unwrap().display().to_string(); let chromedriver = chromedriver.as_str(); info!( log, "Running tests in Chrome with chromedriver at {}", chromedriver ); let test_runner = self .test_runner_path .as_ref() .unwrap() .display() .to_string(); let test_runner = test_runner.as_str(); info!(log, "Using wasm-bindgen test runner at {}", test_runner); let mut envs = vec![ ("CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER", test_runner), ("CHROMEDRIVER", chromedriver), ]; if !self.headless { envs.push(("NO_HEADLESS", "1")); } test::cargo_test_wasm(&self.crate_path, self.release, log, envs)?; Ok(()) } fn step_get_geckodriver(&mut self, step: &Step, _log: &Logger) -> Result<(), Error> { PBAR.step(step, "Getting geckodriver..."); assert!(self.firefox && self.geckodriver.is_none()); self.geckodriver = Some(webdriver::get_or_install_geckodriver( &self.cache, self.mode, )?); Ok(()) } fn step_test_firefox(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { PBAR.step(step, "Running tests in Firefox..."); let geckodriver = self.geckodriver.as_ref().unwrap().display().to_string(); let geckodriver = geckodriver.as_str(); info!( log, "Running tests in Firefox with geckodriver at {}", geckodriver ); let test_runner = self .test_runner_path .as_ref() .unwrap() .display() .to_string(); let test_runner = test_runner.as_str(); info!(log, "Using wasm-bindgen test runner at {}", test_runner); let mut envs = vec![ ("CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER", test_runner), ("GECKODRIVER", geckodriver), ]; if !self.headless { envs.push(("NO_HEADLESS", "1")); } test::cargo_test_wasm(&self.crate_path, self.release, log, envs)?; Ok(()) } fn step_get_safaridriver(&mut self, step: &Step, _log: &Logger) -> Result<(), Error> { PBAR.step(step, "Getting safaridriver..."); assert!(self.safari && self.safaridriver.is_none()); self.safaridriver = Some(webdriver::get_safaridriver()?); Ok(()) } fn step_test_safari(&mut self, step: &Step, log: &Logger) -> Result<(), Error> { PBAR.step(step, "Running tests in Safari..."); let safaridriver = self.safaridriver.as_ref().unwrap().display().to_string(); let safaridriver = safaridriver.as_str(); info!( log, "Running tests in Safari with safaridriver at {}", safaridriver ); let test_runner = self .test_runner_path .as_ref() .unwrap() .display() .to_string(); let test_runner = test_runner.as_str(); info!(log, "Using wasm-bindgen test runner at {}", test_runner); let mut envs = vec![ ("CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER", test_runner), ("SAFARIDRIVER", safaridriver), ]; if !self.headless { envs.push(("NO_HEADLESS", "1")); } test::cargo_test_wasm(&self.crate_path, self.release, log, envs)?; Ok(()) } }
rust
Bengaluru (Karnataka) [India], February 12 (ANI): India all-rounder Riyan Parag on Saturday was sold to Rajasthan Royals (RR) for Rs 3. 8 crore in the ongoing Indian Premier League (IPL) mega auction. For Parag, a bidding war took place between RR and Gujarat Giants (GT). All-rounder Abhishek Sharma was bought by Sunrisers Hyderabad (SRH) for Rs 6. 5 crore. South Africa U-19 batter Dewald Brevis on Saturday was aquired by Mumbai Indians (MI) for Rs 3 crore. India batter Rahul Tripathi sold to Sunrisers Hyderabad (SRH) for Rs 8. 50 crore. India batter Abhinav Manohar Sadarangani got picked by Gujarat Giants (GT) for Rs 2. 6 crore while batter Priyam Garg got sold to Sunrisers Hyderabad (SRH) for Rs 20 lakh. Batter Rajat Patidar gor unsold at the auction. India all-rounder Krunal Pandya was acquired by Lucknow Super Giants for Rs 8. 25 crores while Australia all-rounder Mitchell Marsh was sold to Delhi Capitals for Rs 6. 50 crores. Sri Lanka spinner Wanindu Hasaranga was picked up by Royal Challengers Bangalore (RCB) for Rs 10. 75 crore. India all-rounder Deepak Hooda was sold to Lucknow Super Giants for Rs 5. 75 crore while Harshal Patel was picked up by Royal Challengers Bangalore (RCB) for Rs 10. 75 crore. Nitish Rana was picked up by KKR for Rs 8 crore while West Indies all-rounder Jason Holder was bought by Lucknow Super Giants for Rs 8. 75 crore. Bangladesh all-rounder Shakib Al Hasan remained unsold as no franchise showed interest in him. India batter Manish Pandey was picked by Lucknow Super Giants for Rs 4. 6 crore. Windies left-handed batter Shimron Hetmyer was bought by Rajasthan Royals for Rs 8. 5 crore. India batter Robin Uthappa was acquired by Chennai Super Kings (CSK) for Rs 2 crore. England opening batter Jason Roy was acquired by Gujarat Titans for Rs 2 crore. Proteas player David Miller went unsold in the auction as there were no takers for him, however, he might be picked up in the accelerated auction which will take place later on. India opening batter Devdutt Padikkal was sold to Rajasthan Royals for Rs 7. 75 crore, while Suresh Raina and Steve Smith went unsold in the auction. West Indies all-rounder Dwayne Bravo was picked up by Chennai Super Kings for Rs 4. 4 crore. India opening batter Devdutt Padikkal was sold to Rajasthan Royals for Rs 7. 75 crore, while Suresh Raina and Steve Smith went unsold in the auction. West Indies all-rounder Dwayne Bravo was picked up by Chennai Super Kings for Rs 4. 4 crore. Proteas pacer Kagiso Rabada was acquired by Punjab Kings for Rs 9. 25 crore. Kiwi pacer Trent Boult was sold to Rajasthan Royals for Rs 8 crore. Shreyas Iyer was picked up by KKR for Rs 12. 25 crore. India pacer Mohammed Shami was picked up by Gujarat Titans for Rs 6. 25 crore. South Africa batter Faf du Plessis was picked up by Royal Challengers Bangalore (RCB) for Rs 7 crore. Lucknow Super Giants picked up Quinton de Kock for Rs 6. 75 crore. Australia opening batter David Warner was picked up by Delhi Capitals for Rs 6. 25 crore. (ANI) This report is auto-generated from ANI news service. ThePrint holds no responsibility for its content.
english
Dibrugarh: The grand festival of Holi was celebrated with great pomp and show here. Cutting across the barriers of religion, caste and economic stratification, people from all sections of the society were seen smearing different colours on each other’s face and in a jovial mood. With catchy music playing loud in the background, many revellers even shook their legs in a state of joy, tossing away all their anxiety and woes. The whole market area, barring a few spots, was marked with a variety of hues being strewn all over the place - an indication of the popularity of the celebrations. Another striking feature this year was the transition made by quite many people to the using of organic colours instead of the conventional ones which are believed to be harmful to the skin. But, owing to the pricey nature of such skin-friendly colours as well as due to lack of awareness about the dangers of the other set of colours, a larger chunk of the populace couldn’t go for the organic variety. While adults were spotted throwing colours on each other, the children took out their Pichkaris and stole the show with their playfulness. TINSUKIA: Basanta Utsav, the festival of colours and celebration of spring was observed by Aadya Srishti Kala Mandir Cultural Society (ASKMCS) Tinsukia with magnificent performance of school children and the artistes of ASKMCS at Tinsukia Bengali Girls’ HS School auditorium on Thursday. Their performances enthralled the audience many of whom later participated in sprinkling of colours. Prizes and citations were distributed to the winners of spot painting competition on specific theme that was held a week before synchronising with the event in 17 schools of Tinsukia. DEMOW: Holi, the festival of colours was celebrated with pomp and gaiety in Demow and its surrounding areas on Thursday. On Thursday people offered abir, a dye powder to God and after that played with the abir, and other colours. The Doul Utsav was organized in Sri Sri Krishna Garakhiya Mandir on Thursday and Friday which is situated in Dhaimao Pukhuri Par, Kokilamari Tengapani. On Thursday night, people from various places went to the Garakhiya Mandir near Demow and offered prayers by lighting earthen lamps in Garakhiya Mandir. Near Garakhiya Mandir at Borpukhuri Par every year a big mela is organized during the time of Holi and in this year also the mela was organized. In the Garakhiya Mandir, puja and naam kirtan were organized on the Doul Utsav. In Gudhabil Than (Mandir) near Demow also people offered prayers by lighting earthen lamps on the occasion of Doul Utsav. Gossaigaon: Holi was also celebrated with much funfare and enthusiasm in Gossaigaon sub-division of Kokrajhar district. The festival of colors signifies fun filled camaraderie, in which all sections of people come together to celebrate. Holi enthusiasts came on to the streets smearing colors on each other’s faces and exchanged holi greetings. People also visited near and dear ones for celebrating the festival and communal feasting. The festival also has a religious side. People visited temples and organized holi programmes. Dol utsav was organised in the newly built Barwari Nat mandir of Gossaigaon town. Along with the rest of the State, Gossaigaon too had a fair share of festivities. TANGLA: People from all walks of life - irrespective of caste, colour, community and religion joined in unison to celebrate Holi- the festival of colours with gusto in different parts of Udalguri on Friday. Community celebrations also marked the occasion were the faithfuls took out a procession throughout Tangla town on Friday. Holi revellers specially youths comprising boys and girls were also seen descending on the roads and streets in their hordes and lending a carefree ambience to the celebrations. Young children with their dresses smeared and drenched in Holi colours splashing water baloons at each other presented a lovely picture.
english
A nuclear arms control treaty signed by President Ronald Reagan and Soviet Premier Mikhail Gorbachev in 1987 came to a sad and scary end Friday when the U. S. withdrew from the pact – but don’t blame President Trump. Russia has been violating the agreement for years, so Trump did the right thing by formally killing it. The U. S. officially confirmed for the first time Friday that Russia has not only violated the Intermediate Nuclear Forces (INF) Treaty – it has already fielded multiple battalions of the treaty-breaking 9M729 missiles. On top of this, China never signed the INF Treaty. In the years since Reagan and Gorbachev signed the pact, China has been piling up intermediate-range missiles unconstrained by any deal. China today has a far more powerful military than it had in 1987, so it doesn’t make sense any longer to exclude it from arms control treaties. The signing of the INF Treaty 32 years ago was a golden moment of goodwill that made Europe safer and helped bring about the end of the Cold War. The U. S. gave up 846 ground-launched missiles armed with nuclear warheads and the Soviet Union did away with 1,846. It was a good deal for both sides. Unfortunately, Russia and China decided to accelerate their military build-ups and debut many new types of maneuverable conventional and nuclear missiles in the years since. President Trump would be foolish to close his eyes to this build-up and pretend it wasn’t happening. The facts are chilling. Russia has been breaking the INF Treaty for years longer than suspected, U. S. officials revealed. Design and testing of the noncompliant 9M729 missile started in the mid-2000s. Russia blew off President Barack Obama’s warning letter to President Vladimir Putin back in 2014 calling on Russia to comply with the treaty. But Obama stayed with a one-sided treaty, restricting the U. S. missile program while Russia ignored restrictions and China was not bound by them. Russia blew off President Barack Obama’s warning letter to President Vladimir Putin back in 2014 calling on Russia to comply with the treaty. But Obama stayed with a one-sided treaty, restricting the U. S. missile program while Russia ignored restrictions and China was not bound by them. Russia mixed in the 9M729 batteries with look-alike short-range Iskander missile batteries in the Kaliningrad enclave near the Baltics. Now the missiles are likely pointed at American troops in Poland and can reach other U. S. and allied bases in NATO member nations. NATO nations are fully in agreement with President Trump’s decision to withdraw from the INF Treaty, concurring that the treaty has been rendered meaningless by Russia’s violations. Putin very deliberately cast away the INF Treaty. For him, this is personal. He hated seeing Warsaw Pact countries – where he’d spent time as a young KGB officer – joining up with NATO after the collapse of the Soviet Union. When the U. S. began helping Poland and Romania build missile detection systems to counter Iran, Putin went bananas. He accused America of secretly installing an offensive missile system with the potential to be used to strike Russia, and ramped up new Russian weapons development. Withdrawal from the INF Treaty was no impulsive act by President Trump. Secretary Pompeo did this by the book. Russia got a 60-day notice in December 2018 and a six-month notice in February. Instead, Russia tried months ago to slither out of the treaty on a bizarre technicality. Russia’s general in charge of rocket forces and artillery told reporters on Jan. 23 that the SSC-8/9M729 missile had been tested from 2008 to 2014 but never flew more than 490 kilometers from its mobile launcher. But U. S. intelligence had already caught Russia testing the 9M729 at Kasputin Yar at distances well over 500 kilometers – but from a different, fixed launcher. The Russians had an excuse – though it was pretty lame. Since Russia deployed the 9M729 missile only with the mobile launcher, not the fixed launcher, the Russians said this was not a violation of the INF Treaty. NATO didn’t buy that tall tale. In June, NATO Secretary-General Stoltenberg gave Russia one last chance. Putin rejected it. “We have to be prepared for a world … with more Russian missiles,” Stoltenberg told the BBC July 18. Putin’s plans get uglier from here on out. Russia “would do everything to penetrate this shield” of U. S. missile defenses, Putin told Chris Wallace of Fox News in Helsinki last year. Putin has boasted of a “Skyfall” nuclear-powered cruise missile with unlimited range. Russia has Kinzhal hypersonic missiles deployed on some MiG-31K fighter units and Putin announced plans to integrate it on the Su-57 stealthy fighter, too. The list goes on. Then there’s China. Newly confirmed U. S. Secretary of Defense Mark Esper is glad to be “unburdened” by the INF Treaty. He says 80 percent of China’s conventional missiles fall in the treaty-limit category. That’s a development no one foresaw in 1987. Expect the U. S. Army to move fast to modify existing launchers so they can deploy more missiles in the Pacific. Esper wants it done in months if possible. The Army desperately needs more firepower in the Pacific to protect troops, bases and Navy ships. With the right networks in place, U. S. and allied aircraft and ships can track a Chinese ship, aircraft or missile and then hand off to Army missiles to shoot if necessary. The multi-domain capability will enhance deterrence. Arms control advocates, don’t despair. Trump wants to reach a landmark nuclear arms control deal down the road with both Russia and China. It’s the ultimate arms control deal, after all. Trump said Friday that he’s talked with Putin and with China. Putin maintains Russia will sign an agreement anytime to continue the New START arms control treaty, due for renewal in 2021. We’ll see. It’s too bad Putin violated the INF Treaty. But now America must look after the interests of our military forces and allies.
english
After presenting the National Award-winning film, the docu-drama 'Gulabi Gang' about women empowerment in Rural India, Sohum Shah is taking the film one step forward by introducing the Gulabi Gang Art Project. The Art Project is a nationwide public art initiative by his production company Recyclewala Films in collaboration with The Fearless Collective and Zubaan. It is an open entry for all who are inspired by the film. People can send in posters, paintings, illustrations, or even poetry to lend their support to women's empowerment and their art could be selected to featured on the soon-to-be-released DVD cover of the 'Gulabi Gang'. The collaboration has come together to elevate the condition of women in India. The Art Project has received tremendous response from all quarters. "We're receiving so many beautiful poems and artworks. We're putting it all together now! We are really keen to start a conversation about women rights in India. What better way than through art and culture? ", remarked Sohum. Follow us on Google News and stay updated with the latest!
english
<filename>src/user/controllers/permission.controller.ts import { Controller, Get, Param, Logger, ParseIntPipe, Post, Body, Patch, HttpException, HttpStatus, Delete, UseInterceptors } from '@nestjs/common'; import { Permissions } from 'src/auth/auth.decorator'; import { Permission } from 'src/auth/permission.enum'; import { PermissionService } from '../services'; import { PermissionEntity } from '../entities'; import { DtoInterceptor } from '../../core/interceptors'; import { CreatePermissionDto, UpdatePermissionDto } from '../dtos'; import { ApiBasicAuth, ApiCreatedResponse, ApiResponse, ApiTags } from '@nestjs/swagger'; @Controller('permissions') @ApiTags('权限管理') @ApiBasicAuth() @ApiResponse({ status: 401, description: 'Unauthorized:未登录,请检查登录态' }) @UseInterceptors(new DtoInterceptor()) export class PermissionController { private logger = new Logger(PermissionController.name); constructor(private readonly permissionService: PermissionService) {} /** * 获取权限信息 * @param {number} 权限ID * @returns {PermissionEntity | undefined} */ @Get(':id') @Permissions(Permission.MANAGE.PERMISSION.GET) async findOne(@Param('id', ParseIntPipe) id: number): Promise<PermissionEntity | undefined> { const entity = await this.permissionService.findOne(id); if (entity) { return entity; } throw new HttpException('未查询到数据', HttpStatus.NOT_FOUND); } /** * 创建权限 * @param {CreatePermissionDto} createDto 创建权限实体 * @returns {Promise<PermissionEntity>} */ @Post() @ApiCreatedResponse({ description: '权限创建成功', type: PermissionEntity, }) create(@Body() createDto: CreatePermissionDto): Promise<PermissionEntity> { return this.permissionService.create(createDto); } @Get() @Permissions(Permission.MANAGE.PERMISSION.LIST) findAll(): Promise<PermissionEntity[]> { return this.permissionService.findAll({}); } @Patch(':id') @Permissions(Permission.MANAGE.PERMISSION.PATCH) update(@Param('id', ParseIntPipe) id: number, @Body() updateDto: UpdatePermissionDto): Promise<PermissionEntity> { return this.permissionService.update({ ...updateDto, id }); } @Delete(':id') @Permissions(Permission.MANAGE.PERMISSION.DELETE) delete(@Param('id', ParseIntPipe) id: number): Promise<boolean> { const updateRoleDto = new UpdatePermissionDto({ id }); return this.permissionService.delete(updateRoleDto); } }
typescript
Recently, former Roadies contestant Surbhi Rana enters the Bigg Boss house as a first wild card entry. She enters the show along with Romil Chaudhary, who got another lease of life in the show. Well, today we are going to tell some interesting things about Surbhi Rana which you should know. Surbhi was born on May 7, 1991 in a Punjabi family. She is a pharmaceutical scientist and a dentist by profession. Surbhi is married to doctor named Abhinav Rana. Surbhi was a part of MTV Roadies Xtreme in 2018. She impressed everyone with her carefree attitude and won a million of hearts. She was a part of Neha Dhupia’s gang and even other judges were quite impressed with her exceptional dancing prowess. Surbhi did not know how to speak English till 7th class. On Roadies she admitted that she drinks alcohol, at least a little, almost every day.
english
<reponame>Qs-F/expandup package main import ( "flag" "fmt" "io/ioutil" "os" "path/filepath" "github.com/Qs-F/expandup/lib/expandup" "github.com/sirupsen/logrus" ) // flag // l: list of files to be expanduped // f: indicate one file // w: rewrite file // d: display diff // c: indicate config directory // debug: show all error // diffcmd: indicate diff command var ( flagList = flag.Bool("l", false, "list files to be expanduped") flagFile = flag.String("f", "", "indicate only one file or directory") flagWrite = flag.Bool("w", false, "write result to files") flagDiff = flag.Bool("d", false, "show diff") flagConfig = flag.String("c", "", "indicate config directory") flagDebug = flag.Bool("debug", false, "turn on debug mode (show all errors)") flagDiffCmd = flag.String("diffcmd", "", "indicate diff command (default is embeded diff)") ) type File struct { Name string // file name Content string // expanduped file content Raw []byte // raw content of file } type Files []*File func main() { flag.Parse() // compose slice of file // fsbuf means fs buffer. Only for listing files var fsbuf Files if *flagFile != "" { // if -f flag setted, use it if stat, err := os.Lstat(*flagFile); err != nil { handleErr(err) return } else { if stat.IsDir() { // indicated direcotry fsbuf, err = getFiles(*flagFile) if err != nil { handleErr(err) return } } else { // indicated one file body, err := ioutil.ReadFile(*flagFile) if err != nil { handleErr(err) return } f := &File{ Name: *flagFile, Raw: body, } fsbuf = append(fsbuf, f) } } } else { // get list of current directory files var err error fsbuf, err = getFiles("./") if err != nil { handleErr(err) return } } // compose fs from fsbuf. // fs consists of files needed to expandup. Other files are dropped from slice. var fs Files for _, v := range fsbuf { d, t, err := expandup.Up(string(v.Raw)) if err != nil { handleErr(err) continue } if !t { continue } else { fs = append(fs, &File{ Name: v.Name, Raw: v.Raw, Content: d.Compose(), }) } } // option cmd swicther switch { case *flagList: for _, v := range fs { fmt.Println(v.Name) } case *flagWrite: for _, v := range fs { err := ioutil.WriteFile(v.Name, []byte(v.Content), 0600) if err != nil { handleErr(err) continue } } default: for _, v := range fs { fmt.Println(v.Content) } } } func handleErr(err error) { if flag.Parsed() { if *flagDebug { logrus.Error(err.Error()) } } return } func getFiles(path string) (Files, error) { var fsbuf Files if files, err := ioutil.ReadDir(path); err != nil { return nil, err } else { for _, f := range files { if f.IsDir() { continue } if body, err := ioutil.ReadFile(filepath.Join(path, f.Name())); err != nil { handleErr(err) continue } else { // add list to fsbuf fsbuf = append(fsbuf, &File{ Name: filepath.Join(path, f.Name()), Raw: body, }) } } } return fsbuf, nil }
go
{ "id": 7990, "title": [ "[House of Paupers, Lounge]", "[Paupers, Lounge]" ], "description": [ "You hear the sound of muted conversation and laughter coming from the Common room, though the thick carpets which cover the floor seem to absorb some of the sound. The walls are paneled in polished mahogany and are decorated with several silver candle sconces which shed their warm light onto the tables scattered about the room." ], "paths": [ "Obvious exits: none" ], "location": "Wehnimer's Landing", "wayto": { "7986": "go mahogany door", "8747": "go curtain" }, "timeto": { "7986": 0.2, "8747": 0.2 }, "image": "wl-house_paupers.jpg", "image_coords": [ 897, 338, 979, 391 ] }
json
Jawan Laiki Garbarai song is a Bhojpuri folk song from the Naike Medam released on 2016. Music of Jawan Laiki Garbarai song is composed by Uttam Singh. Jawan Laiki Garbarai was sung by Rahul Rangeela, Anita, Shivani. Download Jawan Laiki Garbarai song from Naike Medam on Raaga.com.
english
#!/usr/bin/python -B # 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. # # # asfindex.py - Pelican plugin that runs shell scripts during initialization # import sys import subprocess import shlex import io import os import os.path import traceback import pelican.plugins.signals import pelican.settings from pelican.contents import Article, Page, Static from pelican.generators import (ArticlesGenerator, # noqa: I100 PagesGenerator, SourceFileGenerator, StaticGenerator, TemplatePagesGenerator) # get setting # Settings are for the whole pelican environment. def get_setting(generators, setting): try: for g in generators: if isinstance(g, PagesGenerator): return g.settings[setting] except Exception: return None # set context # Context are the processed settings and other environment which is made available to the JINJA template. # Changes to the settings have no effect as those are already copied to each generator's context. def set_context(generators, setting, value): for g in generators: if isinstance(g, PagesGenerator): g.context[setting] = value return value return None # get pages # The PagesGenerator has a list of pages. Retrieve a sorted array of page information def get_pages(generators): site_index = [] for g in generators: if isinstance(g, PagesGenerator): for p in g.pages: # use an absolute path save_as = '/' + p.save_as if save_as.endswith('/index.html'): # use "/" for the filename of index.html files assuring that they are first in a folder's list save_as = save_as[:-10] # extract the path name path, page = os.path.split(save_as) site_index.append((path, save_as, p.title)) site_index.sort() return site_index # get site index def get_index(site_index, scope): current_folder = None started = False site_listing = '' if not scope: return scoped = False if scope != '**': scoped = True for p in site_index: path, page = os.path.split(p[0]) folder = page.capitalize() if not scoped or (scoped and p[0].startswith(scope)): if folder != current_folder: if started: site_listing += '</ol>\n' started = True site_listing += f'<h3><a href="{p[1]}">{p[2]}</a></h3>\n' site_listing += '<ol>\n' current_folder = folder else: # menu item for page site_listing += f'<li><a href="{p[1]}">{p[2]}</a></li>\n' if started: site_listing += '</ol>\n' return site_listing # get site menu # def get_menu(site_index, menus): # currrent_menu = None # site_menu = '' # if menus: # for f in menus: # path, page = os.path.split(f) # folder = page.capitalize() # site_menu += '<li class="nav-item active dropdown">\n' # site_menu += f'<a class="nav-link dropdown-toggle" href="#" id="dropdown{folder}" ' # site_menu += f'role="button" data-toggle="dropdown" aria-expanded="false">{folder}</a>\n' # site_menu += f'<ul class="dropdown-menu" aria-labelledby="dropdown{folder}">\n' # for p in site_index: # if p[0] == f: # # menu item for page # site_menu += f'<li><a class="dropdownitem" href="{p[1]}">{p[2]}</a></li>\n' # site_menu += '</ul></li>\n' # return site_menu # # # show pages def show_pages(generators): site_index = get_pages(generators) asf_index = get_setting(generators, 'ASF_INDEX') print(asf_index) # Not currently interested in menus this way as it is not generalizable # set_context(generators, 'SITE_MENU', get_menu(site_index, asf_index['menus'])) set_context(generators, 'SITE_INDEX', get_index(site_index, asf_index['index'])) def tb_finalized(generators): """ Print any exception, before Pelican chews it into nothingness.""" try: show_pages(generators) except Exception: print('-----', file=sys.stderr) traceback.print_exc() # exceptions here stop the build raise def register(): pelican.plugins.signals.all_generators_finalized.connect(tb_finalized)
python
<filename>chapter_1/ex-35.cpp // // Created by user on 2019/4/10. // Copyright © 2019 user. All rights reserved. // #include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; //next_permutation //只有排序之后的数组才能只用next_permutation获得全排列 int count_my = 0; //输出范围[start,end)内的全排列 template<typename T> void permutations(T list[], int k , int m) { //sort(list + k, list + m ); int num = m - k; int count = 1; for (int i = 2; i <= num; i++) // 计算总数 用 next & prev共同输出全排列 也可以判断数组是否相同 (用equal) count *= i; do { count_my++; count--; copy(list + k,list + m , ostream_iterator<T>(cout," ")); cout << endl; } while (next_permutation(list + k, list + m )); while (count) { count_my++; count--; copy(list + k, list + m, ostream_iterator<T>(cout, " ")); cout << endl; prev_permutation(list + k, list + m); } } int main() { int arr[] = { 1, 3, 2, 4, 5 }; permutations(arr, 0, 3); cout << count_my << endl; getchar(); getchar(); return 0; }
cpp
<reponame>Receiling/ENPAR<filename>inputs/fields/field.py from abc import ABC, abstractclassmethod class Field(ABC): """Abstract class `Field` define one indexing method, generate counter from raw text data and index token in raw text data Arguments: ABC {ABC} -- abstract base class """ @abstractclassmethod def count_vocab_items(self, counter, sentences): """This function constructs counter using each sentence content, prepare for vocabulary Arguments: counter {dict} -- element count dict sentences {list} -- text data """ raise NotImplementedError @abstractclassmethod def index(self, instance, vocab, sentences): """This function constrcuts instance using sentences and vocabulary, each namespace is a mapping method using different type data Arguments: instance {dict} -- collections of various fields vocab {dict} -- vocabulary sentences {list} -- text data """ raise NotImplementedError
python
import configparser import os curPath = os.path.dirname(os.path.realpath(__file__)) cfgPath = os.path.join(curPath, "config.ini") class ReadConfig: def __init__(self): self.cfg = configparser.ConfigParser() self.cfg.read(cfgPath, encoding='utf-8') def get_user(self): return self.cfg.get("account", "USER") def get_password(self): return self.cfg.get("account", "PASSWORD") def save_report(self): return self.cfg.get("path", "REPORT") def save_screen(self): return self.cfg.get("path", "SCREEN_SHOOT") def get_root_url(self): return self.cfg.get("URL", "URL") def get_user_url(self): return self.cfg.get("URL", "USER_URL") def redis_host(self): return self.cfg.get("REDIS", "HOST") def redis_password(self): return self.cfg.get("REDIS", "PASSWORD") def get_trademake_type(self): return self.cfg.get("TRADEMARK", "trademark_international") def get_clue_type(self): clue_1_1 = self.cfg.get("CLUE", "clue_1_1") clue_1_2 = self.cfg.get("CLUE", "clue_1_2") clue_1_3 = self.cfg.get("CLUE", "clue_1_3") clue_1_4 = self.cfg.get("CLUE", "clue_1_4") clue_2 = self.cfg.get("CLUE", "clue_2") clue_5 = self.cfg.get("CLUE", "clue_5") clue_5_1 = self.cfg.get("CLUE", "clue_5_1") all_clue_type = eval(clue_1_1)+eval(clue_1_2)+eval(clue_1_3)+eval(clue_1_4)+eval(clue_2)+eval(clue_5)+eval(clue_5_1) return all_clue_type def get_trademark_url(self): return self.cfg.get("URL", "TRADEMAEK") def login_page(self): return self.cfg.get("URL", "LOGIN_PAGE") def get_order_list(self): return self.cfg.get("URL", "ORDER_LIST") class SendEmailConfig: def __init__(self): self.cfg = configparser.ConfigParser() self.cfg.read(cfgPath, encoding='utf-8') def get_smtpserver(self): return self.cfg.get("EMAIL", "SMTPSERVER") def get_user(self): return self.cfg.get("EMAIL", "USER") def get_password(self): return self.cfg.get("EMAIL", "PASSWORD") def get_sender(self): return self.cfg.get("EMAIL", "SENDER") def get_receiver(self): return eval(self.cfg.get("EMAIL", "RECEIVER")) if __name__ == "__main__": res = ReadConfig() print(res.redis_host()) print(res.redis_password())
python
<reponame>williamcastrov/gimcloud export {default} from "./InformePendientes";
javascript
Apple is in spring cleaning mode when it comes to its product inventory. In recent weeks, not only has it said, “mmm, bye,” to the iMac Pro and the original HomePod, but now the company has targeted two configurations of the 21.5-inch iMac with its axe. Spotted by MacRumors, the options for 512GB and 1TB of SSD storage for the 21.5-inch iMac with 4K display are no longer available on Apple’s website. This isn’t the first time these configurations have been inaccessible. In February, the outlet stated that they had been unavailable for a few days, although the idea then was that this was due to a component shortage. Nonetheless, at that time, the options were still listed on the website. Now, they are gone. Gizmodo has confirmed with Apple that these two configurations have been discontinued. Apple pointed out that the 256GB SSD option continues to be available as a standard option and that the 1TB Fusion Drive also remains available. The latter combines the speed of an SSD with a larger capacity hard drive. The company also added that for larger storage capacities, the 27-inch iMac offers a wide range of SSD storage options across the line, from 256GB to 8TB. Apple’s latest spring cleaning casualty is likely to fuel rumors that we’re going to see a redesigned iMac lineup, with 21.5-inch and 27-inch devices, later on this year. This redesign would be the first the iMac has seen in nine years, and the first to feature Apple Silicon. That said, this means the 27-inch iMac from 2020 will be the last of the Intel iMacs. Intel isn’t happy about Apple ditching its chips and is expressing its crankiness, to put it kindly, in a variety of ways. Additionally, the new iMacs are reportedly saying goodbye to the signature iMac design. You know, the one with the thick black bezels around the display and the aluminum chin with a big Apple logo. The new iMacs also purportedly won’t have a curved back. Only time will tell if it’s all true. And since time passes by so strangely during the pandemic, it might be sooner than you think. Heck, it’s already March.
english
As we come to the close of another Academic Year, we take a look at the year that went by and capture some of the experiences and sentiments of our students graduating from NLSIU this year. We spoke to a few students from the outgoing batch of the Master’s Programme in Public Policy to to reflect on their time at NLS, share words of advice, and talk about their next steps. Here’s what they had to say. As our students step out of our University gates, we wish them all the very best ahead for their life and their careers ahead. Reflections | A journey of growth over five years: The BA LLB (Hons) programme was an enriching and empowering experience for me and these five years at NLS has been a period of continuous growth and development. This was facilitated by the unique pedagogical approach that does not restrict learning to the text but goes much beyond it; there is a constant focus on building the capacity of students to think critically and to question the text unreservedly. In this way, self-learning was encouraged, which helped me develop an imaginative and independent style of thinking. The attention to research and writing was another aspect I wanted to reflect on: Over these five years, I noticed changes in my research and writing, which led to better outcomes, both in and outside the law school. In addition to academics, there were many co-curricular opportunities, such as moot courts, which helped me further expand my skill set. Last but not the least, the interactions with my peers helped me learn many crucial values and grow as a person. NLSIU helped me with my growth and development in a holistic manner. I am certain that the skills I gained here are going to stand me in good stead as I traverse the immediate and the future steps of my career. Plans ahead: I will be joining the law firm, Cyril Amarchand Mangaldas at their Mumbai office. Any learnings or advice I would share with my juniors: NLSIU is what you want it to be. There is no one single prescription of how students are expected to go about here. There are a wide range of opportunities to help explore, choose, and grow. The fact that our alumni have gone on to pursue careers in diverse areas is a testament to this. I hope that the incoming cohorts make full use of this unique opportunity at the University. Plans ahead: I will be joining Khaitan and Co. LLP soon, in their Disputes vertical. Further down the road, I wish to continue in the field of litigation because of the sense of satisfaction I hope it would bring to me. Any learnings or advice I would share with my juniors: As I mentioned above, the best part about my experience at NLS has been the community, the camaraderie that I witnessed. I would carry forward with me great friendships beyond these five years. I hope that the people presently at NLS are able to cherish the relations they create and continue inculcating in themselves the same sense of fellowship, mentoring their juniors and supporting their peers, so as to benefit from their college life to the fullest. There are many moments when one can feel overwhelmed due to the pressure that we tend to take upon ourselves. It is only in supporting each other that we can learn more and become better persons. I also hope the college continues to be a safe, inclusive space for all its students coming in from various backgrounds and with varied life stories, and enjoys a rich diversity in the student population in the future! Reflections | Challenges, learnings and growth: I would start by saying that I had a wonderful experience – whether it was the faculty, my batchmates/other students, or even the weather! Academically, it was a bit challenging at first, but it helped me grow so much; the rigour helped me develop some essential skills that would be very helpful for my career. At NLS, I had the opportunity to interact with, and be taught by the most intellectual and helpful professors. They always went out of the way to help us understand the subject better. They listened to us with great attention and always kept an open mind with respect to our views and opinions. I made many good friends during my time here, and it was not just limited to people from my batch. The college was like a community which was not only accommodating, but also accepting, and the primary reason for this feeling is because it is a residential programme; we all dined and lived together, making it all the more memorable. I also would like to thank the University staff who manage the day-to-day running of the college, very helpful and friendly staff who were very dedicated to their jobs. Plans ahead: I just want to jump into the professional field and start working. NLS gave me a good platform to start my journey from. I understand that the initial few years will be demanding, but hopefully, everything I have learned at NLS and also before that, will help me thrive. I want to continue my work in the field of law for the rest of my life; perhaps my role or job may keep changing, but it will always be in law for me. Any learnings or advice I would share with my juniors: My only advice will be to not take academics lightly at any point. It may seem difficult at first, even overwhelming, but it is not impossible. It is designed to push us out of our comfort zone and, in the end, make us a better person. So, considering that the course is designed to make it challenging, it is not suitable to assume anything, even about things like attendance, or submissions. Assumptions can cost us in the short and the long term. A little dedication will go a long way.
english
Huawei launched the P50E smartphone in China on Wednesday as an addition to the P50 series lineup. Huawei launched the P50E smartphone in China on Wednesday as an addition to the P50 series lineup. We take a look at Quibi, a new smartphone-only streaming service, and the roadblocks that it faces in the near future. At its price of INR 44,990, the iQOO 3 5G is definitely the most capable value-for-money-flagships you can buy right now, although there is serious competition headed its way. If you are also among the ones who are looking to buy a phone but are confused with so many options then you are at the right place. Asus ROG Phone 6 and ROG Phone 6 Pro share a lot of similarities when it comes to specifications. OnePlus to shit it's focus to budget flagships. Infinix launched three new smartphones on Wednesday. The specifications of the upcoming Realme GT Neo 3 have been leaked online. iPhone 14 Pro variants key specifications tipped. The Taiwanese tech giant has finally launched the Asus 8Z smartphone in India. With an AMOLED display and 108-megapixel camera.
english
MOMBASA, Kenya, Feb 2 – Five people died Wednesday when a gas cylinder exploded in a house in Mombasa. Kenya Red Cross Coast region coordinator Rajab Musa confirmed the deaths, saying the incident occurred in the Kibokoni area in Old Town. Three others sustained injuries and were rushed to hospital. He said the incident occurred when a gas cylinder exploded in a house, killing five people. Three others who sustained serious injuries were rushed to hospital in the incident that affected two houses in the neighbourhood.
english
<reponame>cromulencellc/hackasat-qualifier-2020-stats <!DOCTYPE html> <html> <head> <title>Hack-A-Sat Quals Data Dump</title> <link href='statdump.css' media='all' rel='stylesheet'> <meta charset='utf-8'> </head> <body> <div id='content'> <nav> <ul> <li> <a href='../teams.html'>All Teams</a> </li> <li> <a href='../index.html'>Statdump Root</a> </li> </ul> </nav> <h1><NAME></h1> <table> <tbody> <tr> <th>score</th> <td> 97 </td> </tr> <tr> <th>registered at</th> <td>2020-04-22 17:13:13 UTC</td> </tr> </tbody> </table> <h2>Challenges</h2> <h3>Space Cadets</h3> <h4> Lt Commander Data (basic-file) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 00:07:42 UTC</dd> <dt>solved at</dt> <dd>2020-05-23 00:22:06 UTC</dd> <dd> 14 minutes after observing </dd> <dt>tickets (slug / created at / seed)</dt> <dd> victor40039bravo / 8442329740706667662 </dd> <dt>receipts (slug / connected at / redemptions)</dt> <dd> victor40039bravo / 1970-01-01 00:00:00 UTC / 1 redemption </dd> </dl> <h4> Lt Starbuck (basic-service) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 00:22:13 UTC</dd> <dt>solved at</dt> <dd>2020-05-23 00:27:46 UTC</dd> <dd> 6 minutes after observing </dd> <dt>tickets (slug / created at / seed)</dt> <dd> hotel93474romeo / 8648607871644373307 </dd> <dt>receipts (slug / connected at / redemptions)</dt> <dd> hotel93474romeo / 2020-05-23 00:27:03 UTC / 1 redemption </dd> <dd> hotel93474romeo / 2020-05-23 00:27:25 UTC / 0 redemptions </dd> <dd> hotel93474romeo / 2020-05-23 00:27:42 UTC / 0 redemptions </dd> </dl> <h4> Capt Solo (basic-handoff) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 00:28:03 UTC</dd> <dt>solved at</dt> <dd>2020-05-23 00:29:22 UTC</dd> <dd> 1 minute after observing </dd> <dt>tickets (slug / created at / seed)</dt> <dd> romeo36764yankee / 6565689433347595086 </dd> <dt>receipts (slug / connected at / redemptions)</dt> <dd> romeo36764yankee / 2020-05-23 00:29:01 UTC / 0 redemptions </dd> <dd> romeo36764yankee / 2020-05-23 00:28:55 UTC / 1 redemption </dd> </dl> <h3>Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA</h3> <h4> I Like to Watch (beckley) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 00:08:30 UTC</dd> <dt>solved at</dt> <dd>2020-05-24 22:08:51 UTC</dd> <dd> 2 days after observing </dd> <dt>tickets (slug / created at / seed)</dt> <dd> zulu78469oscar / 3802383310295729287 </dd> <dt>receipts (slug / connected at / redemptions)</dt> <dd> zulu78469oscar / 2020-05-24 22:06:51 UTC / 1 redemption </dd> </dl> <h4> Attitude Adjustment (attitude) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 01:20:02 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> alpha86270yankee / 17428279054907047324 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Seeing Stars (centroids) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 02:08:18 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> whiskey15751kilo / 11338681024505020751 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Digital Filters, Meh (filter) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 02:34:46 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> papa4506uniform / 18002863445183099790 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> SpaceBook (spacebook) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> foxtrot60277delta / 3996675916679746653 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> My 0x20 (myspace) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> alpha55389quebec / 9299779374728501132 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h3>Satellite Bus</h3> <h4> Magic Bus (bus) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 13:28:27 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> tango33808uniform / 8396236818484547609 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Bytes Away! (patch) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> india63348papa / 4077518966867955174 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Sun? On my Sat? (sparc1) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> xray44190mike / 11330056499883575660 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Monkey in the Middle (chagford) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> foxtrot11341uniform / 12299513509336751378 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Sun? On my Sat? Again? (sparc2) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> zulu29847sierra / 784026608650725052 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h3>Ground Segment</h3> <h4> Track the Sat (antenna) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 19:00:44 UTC</dd> <dt>solved at</dt> <dd>2020-05-24 22:57:08 UTC</dd> <dd> 1 day after observing </dd> <dt>tickets (slug / created at / seed)</dt> <dd> victor46761uniform / 5242040569794087762 </dd> <dt>receipts (slug / connected at / redemptions)</dt> <dd> victor46761uniform / 2020-05-24 22:56:30 UTC / 1 redemption </dd> </dl> <h4> Can you hear me now? (verizon) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 21:57:59 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> lima14266mike / 8447220481243933766 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Talk to me, Goose (goose) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> whiskey16796xray / 9635272291507886489 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> I see what you did there (rbs_m2) </h4> <dl> <dt>observed at</dt> <dd>2020-05-24 00:59:06 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> november62510quebec / 8321887267706996221 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Vax the Sat (vaxthesat) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> alpha96414romeo / 17618960174304334344 <em>was invalidated</em> </dd> <dd> tango86455november / 2380316114126313474 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h3>Communication Systems</h3> <h4> Phasors to Stun (phasor) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 18:49:22 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> uniform36040oscar / 5119809178170622029 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> 56K Flex Magic (modem) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 20:26:40 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> romeo84125uniform / 10887050692024937446 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Phasors to Kill (phasor2) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> india17mike / 2132109837929831150 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Ground Control to Major Tom (major_tom) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> tango27245uniform / 6697373408511527375 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Something's Out There (nena) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> uniform52958sierra / 1724888440374387426 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h3>Payload Modules</h3> <h4> That's not on my calendar (monroe) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 04:59:02 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> uniform15959india / 7800011915196061378 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> SpaceDB (spacedb) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 22:20:56 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> mike17031tango / 16602185748882666338 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Space Race (spacerace) </h4> <dl> <dt>observed at</dt> <dd>2020-05-23 16:38:21 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> mike30576echo / 16389921156939583829 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Leaky Crypto (leaky) </h4> <dl> <dt>observed at</dt> <dd>2020-05-24 00:40:37 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> india4074kilo / 8804397666122453023 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> LaunchLink (rfmagic) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> hotel89876hotel / 7293927344355195768 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h3>Space and Things</h3> <h4> Where's the Sat? (jackson) </h4> <dl> <dt>observed at</dt> <dd>2020-05-24 23:12:59 UTC</dd> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> oscar49601uniform / 6861500292537911445 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Don't Tweet That Picture (tweet) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> echo17518victor / 15624678918749066860 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Good Plan? Great Plan! (mission) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> november56266sierra / 1004349604647465747 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> 1201 Alarm (apollo) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> papa72766uniform / 644295498363089986 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h4> Rogue Base Station (rogue) </h4> <dl> <dt>solved at</dt> <dd> <em>never</em> </dd> <dt>tickets (slug / created at / seed)</dt> <dd> november7903oscar / 6115053025659311969 </dd> <dt>receipts (slug / connected at / redemptions)</dt> </dl> <h2>Challenges solved</h2> <table> <thead> <tr> <th>category & tier</th> <th>name</th> <th>observed at</th> <th>solved at</th> <th>took</th> </tr> </thead> <tbody> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/1.html'> Lt Commander Data </a> </td> <td>2020-05-23 00:07:42 UTC</td> <td>2020-05-23 00:22:06 UTC</td> <td>14 minutes</td> </tr> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/6.html'> Lt Starbuck </a> </td> <td>2020-05-23 00:22:13 UTC</td> <td>2020-05-23 00:27:46 UTC</td> <td>6 minutes</td> </tr> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/10.html'> Capt Solo </a> </td> <td>2020-05-23 00:28:03 UTC</td> <td>2020-05-23 00:29:22 UTC</td> <td>1 minute</td> </tr> <tr> <td> Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA 37 </td> <td> <a href='../challenges/7.html'> I Like to Watch </a> </td> <td>2020-05-23 00:08:30 UTC</td> <td>2020-05-24 22:08:51 UTC</td> <td>2 days</td> </tr> <tr> <td> Ground Segment 44 </td> <td> <a href='../challenges/16.html'> Track the Sat </a> </td> <td>2020-05-23 19:00:44 UTC</td> <td>2020-05-24 22:57:08 UTC</td> <td>1 day</td> </tr> </tbody> </table> <h2>Challenges observed</h2> <table> <thead> <tr> <th>category & points</th> <th>name</th> <th>observed at</th> <th>solved</th> </tr> </thead> <tbody> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/1.html'> Lt Commander Data </a> </td> <td>2020-05-23 00:07:42 UTC</td> <td> true </td> </tr> <tr> <td> Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA 37 </td> <td> <a href='../challenges/7.html'> I Like to Watch </a> </td> <td>2020-05-23 00:08:30 UTC</td> <td> true </td> </tr> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/6.html'> Lt Starbuck </a> </td> <td>2020-05-23 00:22:13 UTC</td> <td> true </td> </tr> <tr> <td> Space Cadets 5 </td> <td> <a href='../challenges/10.html'> Capt Solo </a> </td> <td>2020-05-23 00:28:03 UTC</td> <td> true </td> </tr> <tr> <td> Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA 69 </td> <td> <a href='../challenges/4.html'> Attitude Adjustment </a> </td> <td>2020-05-23 01:20:02 UTC</td> <td> false </td> </tr> <tr> <td> Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA 23 </td> <td> <a href='../challenges/8.html'> Seeing Stars </a> </td> <td>2020-05-23 02:08:18 UTC</td> <td> false </td> </tr> <tr> <td> Astronomy, Astrophysics, Astrometry, Astrodynamics, AAAA 104 </td> <td> <a href='../challenges/9.html'> Digital Filters, Meh </a> </td> <td>2020-05-23 02:34:46 UTC</td> <td> false </td> </tr> <tr> <td> Payload Modules 80 </td> <td> <a href='../challenges/29.html'> That's not on my calendar </a> </td> <td>2020-05-23 04:59:02 UTC</td> <td> false </td> </tr> <tr> <td> Satellite Bus 91 </td> <td> <a href='../challenges/21.html'> Magic Bus </a> </td> <td>2020-05-23 13:28:27 UTC</td> <td> false </td> </tr> <tr> <td> Payload Modules 245 </td> <td> <a href='../challenges/31.html'> Space Race </a> </td> <td>2020-05-23 16:38:21 UTC</td> <td> false </td> </tr> <tr> <td> Communication Systems 62 </td> <td> <a href='../challenges/2.html'> Phasors to Stun </a> </td> <td>2020-05-23 18:49:22 UTC</td> <td> false </td> </tr> <tr> <td> Ground Segment 44 </td> <td> <a href='../challenges/16.html'> Track the Sat </a> </td> <td>2020-05-23 19:00:44 UTC</td> <td> true </td> </tr> <tr> <td> Communication Systems 205 </td> <td> <a href='../challenges/25.html'> 56K Flex Magic </a> </td> <td>2020-05-23 20:26:40 UTC</td> <td> false </td> </tr> <tr> <td> Ground Segment 59 </td> <td> <a href='../challenges/17.html'> Can you hear me now? </a> </td> <td>2020-05-23 21:57:59 UTC</td> <td> false </td> </tr> <tr> <td> Payload Modules 79 </td> <td> <a href='../challenges/30.html'> SpaceDB </a> </td> <td>2020-05-23 22:20:56 UTC</td> <td> false </td> </tr> <tr> <td> Payload Modules 223 </td> <td> <a href='../challenges/32.html'> Leaky Crypto </a> </td> <td>2020-05-24 00:40:37 UTC</td> <td> false </td> </tr> <tr> <td> Ground Segment 146 </td> <td> <a href='../challenges/19.html'> I see what you did there </a> </td> <td>2020-05-24 00:59:06 UTC</td> <td> false </td> </tr> <tr> <td> Space and Things 43 </td> <td> <a href='../challenges/12.html'> Where's the Sat? </a> </td> <td>2020-05-24 23:12:59 UTC</td> <td> false </td> </tr> </tbody> </table> </div> </body> </html>
html
An expenditure of at least Rs 17. 60 lakh was incurred on the oath-taking ceremony of Prime Minister Narendra Modi in the forecourt of Rashtrapati Bhavan, an RTI reply has found. The reply provided by the President’s Secretariat said approximate cost incurred on the arrangements of the oath-taking ceremony related to stage, furniture and other allied items is Rs 17. 6 lakhs. In its response to activist Ramesh Verma, the Secretariat said that it does not maintain the records of expenditure function-wise. “Hence the information sought for cannot be provided. It is informed that the expenditure on functions in incurred by the spending units from the annual budget allotted to respective head of accounts,” a reply from CPIO Saurabh Vijay said. The activist had sought to know from the President’s Secretariat “head-wise” details on the expenditure incurred on the oath-taking ceremony of Mr. Modi and total number of persons who attended the ceremony.
english
The government is looking to reduce cancellation charges for air tickets as it works on a host of new rules for airlines to ensure fair treatment of passengers. The government is looking to reduce cancellation charges for air tickets as it works on a host of new rules for airlines to ensure fair treatment of passengers. The government is of the view that the cancellation fee should not exceed the base fare, sources said. Aviation regulator DGCA has already held discussions with airlines on this issue. “Cancellation fees cannot include airport charges, service tax when the passenger hasn’t flown at all,” said an official. “There are a lot of suggestions we are working on,” civil aviation minister Ashok Gajapathi Raju said on Wednesday. The move comes in the wake of numerous complaints from passengers. Currently, cancellation charges aren’t fixed and range between Rs 1,500 and 100% of the fare, depending on class, price and time before departure. Among other measures — as reported by HT on June 2 — airlines may have to pay a stiff fine for turning away flyers due to overbooking of flights, allow passengers a few extra kilos of baggage for free or at a nominal cost, and cap fares in emergency conditions. Airlines usually overbook seats to reduce the possibility of empty seats. Flyers denied a seat in such circumstances get Rs 2,000-4,000, which ministry officials believe isn’t enough. “Also, if one has to buy a ticket on the spot, it costs much more. We are proposing higher compensation for passengers,” said an official.
english
# -*- coding: utf-8 -*- ############################################################# # IMPORTS # ############################################################# import os import sys import re from time import sleep from PIL import Image, ImageOps, ImageFile ############################################################# # SIZE # ############################################################# WIDTH = 76 # mm HEIGHT = 102 # mm DPI = 300 # DPI ############################################################# # PATH # ############################################################# PATH = os.path.dirname(os.path.abspath(__file__)) os.chdir(PATH) ############################################################# # CONTENT # ############################################################# ImageFile.LOAD_TRUNCATED_IMAGES = True EXTENSION = (".jpg", ".jpeg", ".png", ".JPG", ".JPEG", ".PNG") FOLDER = [file for file in sorted(os.listdir()) if file.endswith(EXTENSION) and not file == "watermark.png"] TOTAL = len(FOLDER) DUO = ["recto", "verso", "duo"] DOUBLE = False IMAGE_NAME = "" ############################################################# # CONVERT MM 300DPI TO PIXELS # ############################################################# WIDTH_DPI = round((float(WIDTH) / 25.4) * DPI) HEIGHT_DPI = round((float(HEIGHT) / 25.4) * DPI) ############################################################# # MAIN # ############################################################# if not os.path.exists(f"{PATH}\\2 en 1") : os.makedirs(f"{PATH}\\2 en 1") index = 1 while len(FOLDER) > 0: os.system('cls' if os.name == 'nt' else 'clear') print("2 images sur 10x15") print("#" * 30) print(f"image {index} sur {TOTAL}") print("-" * 13) image1 = FOLDER.pop() if any(key_name in image1.lower() for key_name in DUO) == True: IMAGE_NAME = image1 image2 = image1 DOUBLE = True else : if len(FOLDER) < 1: image2 = image1 else: image2 = FOLDER.pop() images = map(Image.open, [image1, image2]) x_offset = 0 try: new_image = Image.new('RGB', (WIDTH_DPI * 2, HEIGHT_DPI)) except Exception: pass else: for image in images: # widths, heights = zip(*(i.size for i in images)) if image.width > image.height: image = image.rotate(90, expand=True) cropped_image = ImageOps.fit(image, (WIDTH_DPI, HEIGHT_DPI)) new_image.paste(cropped_image, (x_offset, 0)) x_offset += WIDTH_DPI if DOUBLE : new_image.save(f"{PATH}\\2 en 1\\10x15_{IMAGE_NAME}", dpi=(DPI, DPI), format='JPEG', subsampling=0, quality=100) DOUBLE = False else : new_image.save(f"{PATH}\\2 en 1\\10x15_{index:03}.jpg", dpi=(DPI, DPI), format='JPEG', subsampling=0, quality=100) index += 1 print("Terminé !")
python
<reponame>IUaenaSong/OnlineJudge /** * @Author LengYun * @Since 2022/05/01 13:41 * @Description */ package com.iuaenasong.oj.manager.admin.exam; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.iuaenasong.oj.dao.exam.ExamEntityService; import com.iuaenasong.oj.dao.exam.ExamQuestionEntityService; import com.iuaenasong.oj.dao.question.QuestionEntityService; import com.iuaenasong.oj.pojo.entity.exam.Exam; import com.iuaenasong.oj.pojo.entity.exam.ExamQuestion; import com.iuaenasong.oj.pojo.entity.question.Question; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.util.StringUtils; import java.util.*; import java.util.stream.Collectors; @Component public class AdminExamQuestionManager { @Autowired private ExamQuestionEntityService examQuestionEntityService; @Autowired private QuestionEntityService questionEntityService; @Autowired private ExamEntityService examEntityService; public HashMap<String, Object> getQuestionList(Integer limit, Integer currentPage, String keyword, Long eid, Integer questionType, Boolean queryExisted) { if (currentPage == null || currentPage < 1) currentPage = 1; if (limit == null || limit < 1) limit = 10; IPage<Question> iPage = new Page<>(currentPage, limit); // 根据eid在ExamQuestion表中查询到对应qid集合 QueryWrapper<ExamQuestion> examQuestionQueryWrapper = new QueryWrapper<>(); examQuestionQueryWrapper.eq("eid", eid); List<Long> qidList = new LinkedList<>(); List<ExamQuestion> examQuestionList = examQuestionEntityService.list(examQuestionQueryWrapper); HashMap<Long, ExamQuestion> examQuestionMap = new HashMap<>(); examQuestionList.forEach(examQuestion -> { examQuestionMap.put(examQuestion.getQid(), examQuestion); qidList.add(examQuestion.getQid()); }); HashMap<String, Object> examQuestion = new HashMap<>(); QueryWrapper<Question> questionQueryWrapper = new QueryWrapper<>(); if (questionType != 0) { questionQueryWrapper.eq("type", questionType); } if (!queryExisted) { // 必备条件 隐藏的不可取来做考试题目 Exam exam = examEntityService.getById(eid); questionQueryWrapper.eq("gid", exam.getGid()); } // 逻辑判断,如果是查询已有的就应该是in,如果是查询不要重复的,使用not in if (!queryExisted) { questionQueryWrapper.notIn(qidList.size() > 0, "id", qidList); } else { questionQueryWrapper.in(qidList.size() > 0, "id", qidList); } if (!StringUtils.isEmpty(keyword)) { questionQueryWrapper.and(wrapper -> wrapper.like("description", keyword).or() .like("question_id", keyword).or() .like("author", keyword)); } if (qidList.size() == 0 && queryExisted) { questionQueryWrapper = new QueryWrapper<>(); questionQueryWrapper.eq("id", null); } IPage<Question> questionListPage = questionEntityService.page(iPage, questionQueryWrapper); if (qidList.size() > 0 && queryExisted) { List<Question> questionList = questionListPage.getRecords(); List<Question> sortedQuestionList = questionList.stream().sorted(Comparator.comparing(Question::getId, (a, b) -> { ExamQuestion x = examQuestionMap.get(a); ExamQuestion y = examQuestionMap.get(b); if (x == null && y != null) { return 1; } else if (x != null && y == null) { return -1; } else if (x == null) { return -1; } else { return x.getDisplayId().compareTo(y.getDisplayId()); } })).collect(Collectors.toList()); questionListPage.setRecords(sortedQuestionList); } examQuestion.put("questionList", questionListPage); examQuestion.put("examQuestionMap", examQuestionMap); return examQuestion; } }
java
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("@angular/core"); var WindowsPlatformModule_1 = require("./windows/WindowsPlatformModule"); var NativePlatformModule_1 = require("./native/NativePlatformModule"); var WechatPlatformModule_1 = require("./wechat/WechatPlatformModule"); var ionic_angular_1 = require("ionic-angular"); var ExePlatform_service_1 = require("./ExePlatform.service"); var WindowsPlatform_1 = require("./windows/WindowsPlatform"); var WechatPlatform_1 = require("./wechat/WechatPlatform"); var NativePlatform_1 = require("./native/NativePlatform"); /** * Created by yefs on 2017/7/11. * 文件传输 * */ var PlatformStragety = (function () { function PlatformStragety() { this.initPlatform(); } PlatformStragety.prototype.initPlatform = function () { switch (this.getPlatformCode()) { case ExePlatform_service_1.Platforms.windows: this.platform = new WindowsPlatform_1.WindowsPlatform(); break; case ExePlatform_service_1.Platforms.wechat: this.platform = new WechatPlatform_1.WechatPlatform(); break; case ExePlatform_service_1.Platforms.mobile: this.platform = new NativePlatform_1.NativePlatform(new ionic_angular_1.Platform()); break; default: this.platform = new NativePlatform_1.NativePlatform(new ionic_angular_1.Platform()); break; } }; PlatformStragety.prototype.getPlatformContext = function () { return this.platform.getPlatformContext(); }; PlatformStragety.prototype.getPlatformName = function () { return this.platform.getPlatformName(); }; PlatformStragety.prototype.getStragety = function () { this._userAgent = navigator.userAgent.toLowerCase(); if (this.isWechat()) { return WechatPlatformModule_1.WechatPlatformModule; } else if (this.isNative()) { return NativePlatformModule_1.NativePlatformModule; } else if (this.isWindow()) { return WindowsPlatformModule_1.WindowsPlatformModule; } return WindowsPlatformModule_1.WindowsPlatformModule; }; PlatformStragety.prototype.getPlatformCode = function () { this._userAgent = navigator.userAgent.toLowerCase(); if (this.isWechat()) { return ExePlatform_service_1.Platforms.wechat; } else if (this.isNative()) { return ExePlatform_service_1.Platforms.mobile; } else if (this.isWindow()) { return ExePlatform_service_1.Platforms.windows; } return ExePlatform_service_1.Platforms.windows; ; }; PlatformStragety.prototype.isNative = function () { var Agents = ["android", "iphone", "ipad", "ipod"]; for (var v = 0; v < Agents.length; v++) { if (this.isPlatform(Agents[v])) { return true; } } return false; }; PlatformStragety.prototype.isWindow = function () { return this.isPlatform("windows"); }; PlatformStragety.prototype.isWechat = function () { return this.isPlatform("micromessenger"); }; PlatformStragety.prototype.isPlatform = function (platformName) { // return this.plt.is(platformName); return this._userAgent.indexOf(platformName) > -1 ? true : false; }; return PlatformStragety; }()); PlatformStragety.decorators = [ { type: core_1.Injectable }, ]; /** @nocollapse */ PlatformStragety.ctorParameters = function () { return []; }; exports.PlatformStragety = PlatformStragety;
javascript
<reponame>edwinyosorahardjo/bible ["Maka sekali peristiwa, kemudian dari pada segala perkara ini, bahwa penjawat minuman raja Mesir dan penjawat santapanpun mendurhaka kepada tuannya, yaitu kepada baginda raja Mesir.","Maka murkalah sangat Firaun akan kedua pegawainya, yaitu akan penghulu penjawat minuman dan akan penghulu penjawat santapan itu.","Maka dimasukkannyalah keduanya ke dalam penjara di rumah penghulu biduanda, yaitu tempat Yusufpun dipenjarakan.","Maka oleh penghulu biduanda itupun diberi akan Yusuf setempat dengan mereka itu, supaya dilayaninya akan mereka itu, maka adalah mereka itu dalam penjara beberapa hari lamanya.","Hata, maka kedua orang itupun bermimpilah, masing-masing ada mimpinya, yaitu pada satu malam jua, dan mimpi masing-masing itu ada tabirnya, baik penjawat minuman baik penjawat santapan raja Mesir, yang telah terkurung dalam penjara itu.","Maka pada pagi hari datanglah Yusuf mendapatkan mereka itu, serta dipandangnyalah akan mereka itu bahwasanya mereka itu tampak susah.","Lalu bertanyalah Yusuf akan kedua pegawai Firaun, yang sertanya dalam penjara di rumah tuannya itu, katanya: Mengapa mukamu tampak susah pada hari ini?","Maka sahut mereka itu akan dia: Kami telah bermimpi, tetapi di sini seorangpun tiada yang dapat menabirkannya. Maka kata Yusuf kepadanya: Bukankah segala tabir itu Allah punya? Katakanlah kiranya mimpimu itu kepadaku.","Maka oleh penghulu penjawat minuman itupun diceriterakanlah mimpinya kepada Yusuf, katanya: Dalam mimpiku, heran, ada kelihatan sebatang pokok anggur di hadapanku.","Maka adalah pada pokok anggur itu tiga cabang, rupanya seperti bertunas serta berkembanglah bunganya dan tanda-tandanya sudah bermasakkan buah anggur.","Maka piala Firaun adalah di tanganku, lalu kuambil buah anggur itu, kuperah dalam piala Firaun, kemudian kupersembahkan piala itu ke tangan Firaun.","Maka kata Yusuf kepadanya: Inilah tabirnya: adapun arti tiga cabang itu tiga hari adanya.","Dalam tiga hari ini Firaun kelak mengangkat akan dikau serta memulangkan dikau kepada jawatanmu, dan engkaupun akan mempersembahkan piala Firaun itu pula ke tangannya seperti biasa, tatkala engkau lagi penjawat minumannya.","Tetapi ingatlah kiranya akan daku, apabila engkau selamat kelak, kasihankanlah kiranya akan daku, serta persembahkan apalah halku kepada Firaun dan coba keluarkan daku dari dalam rumah ini.","Karena aku ini telah dicuri orang dari dalam negeri orang Ibrani, maka di sinipun tiada kuperbuat barang suatu, yang patut dikurungkan orang akan daku dalam penjara ini.","Arakian, setelah dilihat oleh penghulu penjawat santapan akan tabir mimpinya itu baik, lalu katanya kepada Yusuf: Akupun telah dalam bermimpi, heran, maka adalah aku menjunjung tiga buah rantang jala-jala di atas kepalaku.","Maka dalam rantang di atas itulah pelbagai santapan Firaun, yang perbuatan tukang roti, maka dimakan oleh unggas akan dia dari dalam rantang yang di atas kepalaku.","Maka sahut Yusuf, katanya: Inilah tabirnya: adapun tiga buah rantang itupun tiga hari adanya.","Dalam tiga hari ini Firaun akan mengangkatkan kepalamu, digantungkannya tubuhmu pada sebatang kayu dan segala unggaspun akan datang memakan dagingmu dari tubuhmu.","Hata, maka pada hari yang ketiga, yaitu pada hari jadi Firaun, diperbuat baginda suatu perjamuan akan segala pegawainya, maka diangkatnya kepala penghulu penjawat minuman dan kepala penghulu penjawat santapan itu di antara segala pegawainya.","Maka dipulangkannyalah penghulu penjawat minuman itu kepada jawatannya kembali, supaya dipersembahkannya pula piala itu ke tangan Firaun.","Tetapi penghulu penjawat santapan itu digantungkannya, seperti yang telah ditabirkan oleh Yusuf kepada mereka itu.","Maka tiada juga penghulu penjawat minuman itu ingat akan Yusuf, melainkan terlupalah ia akan dia."]
json
<gh_stars>0 { "variants": { "": { "model": "dyetasticcolors:block/darkest_blue_terracotta" } } }
json
Union Tourism Minister Subodh Kant Sahay on Tuesday said that the Manmohan Singh government was more serious on the issue of black money than Baba Ramdev and Anna Hazare. “We are more serious than Baba Ramdev and Anna Hazare, who are spearheading movements against corruption and black money, and making all possible efforts in this regard,” Mr. Sahay said while addressing a press conference in Jamshedpur. Mr. Sahay said he had accompanied the two other ministers to the Delhi airport only to apprise Baba Ramdev about the Government’s approach in this regard. “In fact, the government had accepted almost all demands put forward by Baba Ramdev, who was also happy with the government’s stance,” the Union minister claimed. Mr. Sahay claimed that the UPA government has initiated stringent action against officials and ministers, indulged in corrupt practices. Asked about Digvijay Singh’s statement about Rahul Gandhi’s potential to become prime minister, he refused to comment on it but said Rahul Gandhi has the potential to become prime minister and we all want to see him in the top post.
english
<gh_stars>1-10 { "name": "node-red-contrib-facial-recognition", "version": "0.30.105", "description": "Provides a node-red node for Facial Detection & Facial Recognition.", "dependencies": { "@vladmandic/face-api": "^1.3.1", "@tensorflow/tfjs-node": "^3.7.0" }, "engines": { "node": ">=12.0.0" }, "directories": { "doc": "doc", "icons": "icons" }, "node-red": { "nodes": { "facial-recognition": "facial-recognition.js" } }, "repository": { "type": "git", "url": "git://github.com/meeki007/node-red-contrib-facial-recognition.git" }, "keywords": [ "node-red", "facial recognition", "face recognition", "face", "facial", "face detector", "face detection", "biometrics", "face-api", "tensorflow", "tensorflowJS", "ID" ], "author": "<NAME>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/meeki007/node-red-contrib-facial-recognition/issues" }, "homepage": "https://github.com/meeki007/node-red-contrib-facial-recognition#readme" }
json