text
stringlengths
1
1.04M
language
stringclasses
25 values
<filename>typings.json { "name": "is-builtin-module", "main": "index.d.ts", "homepage": "https://github.com/sindresorhus/is-builtin-module", "version": "1.0.0", "globalDevDependencies": { "node": "registry:env/node#6.0.0+20161019193037" }, "devDependencies": { "blue-tape": "registry:npm/blue-tape#0.2.0+20160723033700", "builtin-modules": "registry:npm/builtin-modules#1.1.1+20161030192959" } }
json
{"id": "VTANR5L15V1571", "code_type_vote": "SPO", "libelle_type_vote": "scrutin public ordinaire", "demandeur": "Pr\u00e9sidente du groupe \"Socialistes et apparent\u00e9s\"", "libelle": "l'ensemble de la proposition de loi visant \u00e0 faciliter la sortie de l'indivision successorale et \u00e0 relancer la politique du logement en outre-mer (deuxi\u00e8me lecture).", "nb_votants": "55", "date": "2018-12-12"}
json
Vaccination progress is excellent - but it's worth noting there are disparities. It was good to hear in yesterday's Number 10 press conference that some of these disparities are being reduced. Let's look at the most recent data (published 14 April, for vaccinations to 7 April) Let's look at the most recent data (published 14 April, for vaccinations to 7 April) But when you combine this with location, you can see that London stands out. More generally, urban areas are likely to be under-vaccinated. And the most striking disparity is whether you live in a deprived area. IMD is the Index of Multiple Deprivation and goes from 1 (most deprived) to 10 (least deprived). Without reducing these inequalities, there is a risk that the virus will re-emerge most strongly in the least deprived communities. Some of these communities may have been highly exposed already, which is a factor that complicates things, as well as correlations between factors.
english
{ "id": 4636, "title": [ "[Glimae'den Wildwood, Trail]" ], "description": [ "A soothing, babbling rush signals that a waterfall is close by, yet the thick foliage and plentiful trunks of the forest don't afford much of a view beyond the immediate trail and several steps off in any direction. The incline ascends steeply to the northwest, yet appears to be leveling off towards the southwest." ], "paths": [ "Obvious paths: southwest, northwest" ], "location": "the village of Cysaegir", "wayto": { "4635": "northwest", "4637": "southwest" }, "timeto": { "4635": 0.2, "4637": 0.2 }, "image": "en-cysaegir-1264234799.png", "image_coords": [ 227, 499, 263, 535 ], "tags": [ "acantha leaf", "wolifrew lichen", "ephlox moss", "tkaro root", "sticks", "sassafras leaf", "sweetfern stalk", "angelica root", "valerian root", "pennyroyal stem", "soft white mushroom", "withered black mushroom", "white hook mushroom", "blue trafel mushroom", "wintergreen leaf", "bright red teaberry", "wild gooseberry", "fiddlehead fern", "handful of pinenuts", "broken twig", "pine cone", "pine needles", "stalk of bluebells", "wild pink geranium", "wild chokecherry", "bright red cranberry", "cluster of butterflyweed", "tree bark", "blue whortleberry", "yew twig", "ironfern root", "twisted twig", "slender twig", "bolmara lichen", "brostheras grass" ] }
json
India was one of the first countries to extend help to Sri Lanka and relationship between the two countries continued to grow, said Sri Lanka’s Minister of Economic Development Basil Rajapaksa here on Wednesday. Speaking to mediapersons after the launch of the Indian housing project in the Eastern Province, he said India had, soon after the war, expressed faith in Sri Lanka’s ability to carry out rehabilitation and reconciliation. Commending the work of the High Commissioner to Sri Lanka, Ashok K. Kantha, who completed his term on Wednesday, Mr. Basil Rajapaksa said: “His involvement throughout his stint here ensured that the projects aided by the Indian government commenced and proceeded at a fast pace. ” The Indian government’s engagement, he said, was not just with the Northern Province, but covered the entire country. A total of 4,000 homes will be constructed in the Eastern Province under this initiative, which is part of the second phase of the owner-driven housing scheme to help build 50,000 homes for those displaced during the war.
english
In a bizarre incident reported from Andhra Pradesh's Guntur, a married man proposed a shocking condition to his wife after she came to know of his sexual orientation. The man, identified as Baskar (30), who is employed in a company in the US, got married to a 25-year-old woman on March 18 this year. On their first night as a married couple, the man allegedly complained of an illness and fell asleep. The pattern continued for nearly a month and a half as Baskar would find ways to stall any kind of physical relationship with his wife. Frustrated and disappointed, the woman informed her parents about it through her friends, who approached the man's parents regarding the same. When Baskar was questioned by both sets of parents, he initially brushed off the matter, but eventually acknowledged the fact that he had been living together with a man he met in America for over four years now and that he had no interest in being in a relationship with a woman. His wife left the house with her parents the same day. Baskar decided to approach his wife a few days later with an "offer. " He reportedly told her that if she was willing to live with him despite his homosexuality, she needed to move to America and live with his male partner as his wife as well. The petrified woman immediately approached the police and registered a complaint with them. An investigation of the case is in progress and further details are awaited. Follow us on Google News and stay updated with the latest!
english
import json from collections import Iterator from os.path import join from elasticsearch import Elasticsearch from examples.imdb.conf import ES_HOST, ES_USE_AUTH, ES_PASSWORD, ES_USER, DATA_DIR from pandagg.index import DeclarativeIndex, Action from pandagg.mappings import Keyword, Text, Float, Nested, Integer class Movies(DeclarativeIndex): name = "movies" mappings = { "dynamic": False, "properties": { "movie_id": Keyword(), "name": Text(fields={"raw": Keyword()}), "year": Integer(), "rank": Float(), "genres": Keyword(), "roles": Nested( properties={ "role": Keyword(), "actor_id": Keyword(), "gender": Keyword(), "first_name": Text(fields={"raw": Keyword()}), "last_name": Text(fields={"raw": Keyword()}), "full_name": Text(fields={"raw": Keyword()}), } ), "directors": Nested( properties={ "director_id": Keyword(), "first_name": Text(fields={"raw": Keyword()}), "last_name": Text(fields={"raw": Keyword()}), "full_name": Text(fields={"raw": Keyword()}), "genres": Keyword(), } ), "nb_directors": Integer(), "nb_roles": Integer(), }, } def operations_iterator() -> Iterator[Action]: with open(join(DATA_DIR, "serialized.json"), "r") as f: for line in f.readlines(): d = json.loads(line) yield {"_source": d, "_id": d["id"]} if __name__ == "__main__": client_kwargs = {"hosts": [ES_HOST]} if ES_USE_AUTH: client_kwargs["http_auth"] = (ES_USER, ES_PASSWORD) client = Elasticsearch(**client_kwargs) movies = Movies(client) print("Index creation") movies.save() print("Write documents") movies.docs.bulk( actions=operations_iterator(), _op_type_overwrite="index" ).perform() movies.refresh()
python
New Delhi: India has blocked 22 YouTube news channels — 18 Indian and four Pakistani — for spreading disinformation about the country’s national security and foreign policies, the Information and Broadcasting Ministry said Tuesday. The YouTube channels had a viewership of over 260 crore, the ministry said. Three Twitter accounts, one Facebook account and a news website have also been blocked. The ministry’s action – under its emergency powers — is a first since new IT rules were introduced in February last year. “It was observed that a significant amount of false content published by these Indian YouTube based channels related to the ongoing situation in Ukraine, and aimed at jeopardising India’s foreign relations with other countries,” the communique said. The modus operandi of these channels was “to use templates and logos of certain TV news channels, including images of their news anchors to mislead the viewers to believe that the news was authentic”.
english
/* * Copyright 2014-2017 Groupon, Inc * Copyright 2014-2017 The Billing Project, LLC * * The Billing Project licenses this file to you under the Apache License, version 2.0 * (the "License"); you may not use this file except in compliance with the * License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations * under the License. */ package org.killbill.billing.plugin.accertify.client; import java.io.IOException; import java.util.Map; import javax.xml.namespace.QName; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.Version; import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.module.SimpleModule; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import com.fasterxml.jackson.dataformat.xml.XmlMapper; import com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator; public abstract class XmlMapperProvider { public static XmlMapper get() { final XmlMapper mapper = new XmlMapper(); final SimpleModule m = new SimpleModule("accertify", new Version(1, 0, 0, null, null, null)); m.addSerializer(RequestDataCollection.class, new RequestDataCollectionSerializer(RequestDataCollection.class)); mapper.registerModule(m); // Mostly to help tests and debugging mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true); mapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true); return mapper; } private static final class RequestDataCollectionSerializer extends StdSerializer<RequestDataCollection> { protected RequestDataCollectionSerializer(final Class t) { super(t); } @Override public void serialize(final RequestDataCollection values, final JsonGenerator jgen, final SerializerProvider provider) throws IOException { // See https://github.com/FasterXML/jackson-dataformat-xml/issues/216 ((ToXmlGenerator) jgen).setNextName(new QName(null, values.getChildElementName())); jgen.writeStartObject(); for (final Map<String, Object> value : values) { for (final String key : value.keySet()) { jgen.writeObjectField(key, value.get(key)); } } jgen.writeEndObject(); } } }
java
Palwal: A 17-year-old girl, who had accused four men of her village in Palwal district earlier this year of raping her, has alleged the four kidnapped and raped her again early this week, said police on Friday (December 6). Palwal superintendent of police Narendra Bijarniya said the victim alleged in her complaint that she was kidnapped and raped by four men of her village when she had gone out of her house on December 4. The accused took her to a secluded area and committed the crime, she alleged. On the victim's complaint, the police have booked the four and are probing the matter. Two of the accused are aged above 30, one is around 45-years-old while another one is a teenager, Palwal SP told media.
english
Jurgen Klopp dismissed any notion Liverpool fans are "paranoid" about "silly" suggestions the Reds' Premier League title bid could be derailed by the coronavirus. The Reds' hopes of going unbeaten throughout the Premier League season were curtailed in a shock 3-0 loss at struggling Watford on Saturday but they still hold a 22-point lead over Manchester City. While there is limited threat from its rivals, reports over the weekend said the Premier League could be impacted by the rapid spread of coronavirus and Liverpool would not necessarily be crowned champion if the season was ended prematurely as no rules exist in such a scenario. However, Klopp says Liverpool fans – who have not seen their team win the top flight since 1990 – have no legitimate fears. "I don't think our fans are paranoid," Klopp said when quizzed about the coronavirus threat ahead of Liverpool's FA Cup fifth-round tie against Chelsea. "I can't believe Liverpool fans are thinking about it and I actually speak to Liverpool fans. "If anybody wants to ask me about that and how much sense it would make to delete all the results of this season and tell me who will play next year in the Champions League and stuff like this, it would be really interesting. "Nice story, obviously some newspapers have always to write something but when I saw it the first time I really thought, 'Wow, really somebody thinks something like that?'. "Liverpool fans are really not silly enough to believe in these things." Liverpool has endured a slight blip by its own phenomenal standards this season, with defeats to Atletico Madrid and Watford sandwiched by a comeback win against West Ham. On Tuesday, Klopp's side travels to Stamford Bridge for the next round of the FA Cup and the German insists the match is not necessarily a release from the pressures of the Premier League and Champions League. "We never really think about lesser pressure, we are Liverpool, we are always under pressure," he added. "We play away at Chelsea and everyone expects us to win there, which is difficult, was always difficult, will always be difficult. "There's for sure no favourite in this game and if [there is] then it's Chelsea because they play at home." In the previous round, Liverpool needed a replay to get past Shrewsbury Town in a match where Klopp courted controversy for handing responsibility to Under-23s boss Neil Critchley to field a team of youngsters as the fixture took place during the club's mid-season break. Critchley was appointed as Blackpool manager on Monday but, while he is longer around, Klopp said some of Liverpool's fledgling stars who have featured in the tournament could be involved. "It's not about loyalty, these boys are our boys and they did what they did and if we would win the FA Cup in the end they would be involved in the celebrations," Klopp added. "If they will play I don't know, not all of them, but from the Shrewsbury team for sure there will be boys in the squad who will start." On Critchley, he said: "Congratulations to Blackpool and to Neil. It's a great thing, nice challenge, nice opportunity for him. Really nice because it shows that it's possible you can make your way as a youth coach. "That's always what we wanted to have, we wanted to have the best people here in all departments." - Who is Dhruv Jurel, selected in India’s Test squad against England?
english
In Rajshahi BNP nominated mayoral candidate Mosaddek Hossain Bulbul filed written complaint with Returning Officer’s office one day ahead of Rajshahi City Corporation (RCC) election. The BNP candidate appealed for security of voters, polling agents from starting of voting to till the end and to stop arresting. Chief electoral agent of Mosaddek Hossain Bulbul and district BNP president Tofazzal Hossain Topu submitted the complaint to the Returning Officer at around 12 pm on Sunday. BNP chairperson’s adviser Mizanur Rahman Minu, Rajshahi city BNP general secretary Advocate Shafiqul Haque Milon among others were present at that moment. It was mentioned in the complaint that 30 to 32 leaders and activists including polling agents for the symbol Sheaf of Paddy were arrested on July 27 and 28. Plain cloth police going door to doors are repeatedly threatening party leaders and activists for not staying at home. They are forcing for not going to vote centers. The complaint also mentioned, following repeated written and verbal request to the Election Commission we were not supplied the list of Presiding Officers. If necessary, legal action will be taken in this regard. In a press conference Mosaddek Hossain Bulbul said, we are still in the election showing tolerance to all kinds of repression. Local administration and police are acting in such a way for Awami League, so that we can say that election atmosphere is not fair. We will go to the field on the day of election binding winding-sheet on our head. He said, we are requesting all to go to the vote centers with patience by not violating the tradition of Rajshahi. So far we have filed complaints of violating electoral code of conduct were not granted. Our 23-24 Polling Agents are missing. Others are being given threat. Police threatened to pick up former district BNP leader Delwar from home. So we have filed the complaint to Election Commission. We have sought security for our Polling Agents and also demand their release.
english
body, html { height: 100%; background-image: url("https://pixinvent.com/demo/vuexy-vuejs-laravel-admin-template/demo-2/images/vuexy-login-bg.jpg?04351a33eb1f49873e982c8b025d5718"); /* Full height */ height: 100%; /* Center and scale the image nicely */ background-position: center; background-repeat: no-repeat; background-size: cover; font-family: Montserrat,Helvetica,Arial,sans-serif !important; } .logo-img{ position: absolute; width: 100%; height: 600px; top: 100px; background: #c2c6dc!important; box-sizing: border-box; } .img-background{ margin-top: 37%; margin-left: 5%; } .input-login { border: 1px solid rgba(0, 0, 0, 0.2); background: #262c49; padding: .7rem 1rem .7rem 1rem!important; font-size: 1rem!important; color: #c2c6dc; font-weight: 400; border-radius: 5px; width: 100%; } input.button-click:hover { background:#4a73b1; } /* .logo-img{ */ /* background: #edf0ff!important; */ .login { background: #10163a !important; position: absolute; width: 100%; height: 600px; top: 100px; box-sizing: border-box; } .form-login{ color : #FFFFFF; padding: 2rem 2rem 0 2rem; } /* color: #edf0ff!important; */ /* .input-login { */ .button-click{ padding: .679rem 2rem; border: 1px solid rgba(var(--vs-primary),1); background: #7367F0; color: aliceblue; border-radius: 5px; margin-top: 20px; } input.button-click:hover { background:#4a73b1; } .navMenu { background: #FFF; border-radius: 5px; padding: 10px 15px; width: 52px; margin-left: 25px; margin-top: 20px; }
css
<filename>components/card/index.tsx<gh_stars>0 import styles from './card.module.css'; export default function Card(props) { return props.type === 'list' ? ( <> <div className={styles.listCard}>{props.children}</div> </> ) : ( <> <div className={styles.card}>{props.children}</div> </> ); }
typescript
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@remirror/core-extensions](./core-extensions.md) &gt; [BulletListExtension](./core-extensions.bulletlistextension.md) ## BulletListExtension class <b>Signature:</b> ```typescript export declare class BulletListExtension extends NodeExtension ``` ## Methods | Method | Modifiers | Description | | --- | --- | --- | | [commands({ type, schema })](./core-extensions.bulletlistextension.commands.md) | | | | [inputRules({ type })](./core-extensions.bulletlistextension.inputrules.md) | | | | [keys({ type, schema })](./core-extensions.bulletlistextension.keys.md) | | |
markdown
<!-- /views/page.html --> <!doctype html> <html lang="{{.language}}"> <head> <title>{{.title}}</title> <meta name="description" content="{{.description}}"> </head> <body> <a href="/"><- Back home!</a> <br> {{.body}} <hr> {{include "layouts/footer"}} </body> </html>
html
Former union minister Killi Krupa Rani is finding herself at the political crossroads, especially after the recent nominations to the Rajya Sabha. Dr Killi Krupa Rani of Srikakulam is feeling left out in the YSRCP. The party has denied her a Rajya Sabha nomination, which she was quite confident of getting. To add insult to injury, the party workers are not giving any importance to her these days. Krupa Rani joined the YSRCP three years ago. Though she was not made either an MLA or an MP, she was happy with the district YSRCP president's post. But even that post was taken away from her after the recent cabinet reshuffle. Dharmana Krishna Das, who had to make way for his brother Dharmana Prasada Rao as a minister, was made the YSRCP chief. So, she lost her job. Recently when YS Jagan visited Srikakulam for the first ever time after becoming the CM, her name was not included in the list of VIPs who would welcome him at the helipad. Since then, she has been keeping herself aloof from the party. There are unconfirmed reports that she may join the TDP. Sources say that young Srikakulam MP K Rammohan Naidu might contest for the assembly and Killi Krupa Rani could contest for the MP seat. Krupa Rani is from the powerful Kalinga community and is considered a winnable bet from Srikakulam, which has returned the TDP more times than any other lok sabha seat. However, these reports are still unconfirmed and Krupa Rani herself has not spoken about them. It remains to be seen what her next moves are and how the YSRCP reacts if she leaves the party.
english
package twoweeks.server; import java.io.IOException; import java.util.concurrent.atomic.AtomicInteger; import com.jme3.math.Vector3f; import com.jme3.system.JmeContext; import com.jme3.terrain.heightmap.AbstractHeightMap; import com.scs.simplephysics.SimpleRigidBody; import com.scs.stevetech1.client.ValidateClientSettings; import com.scs.stevetech1.components.IEntity; import com.scs.stevetech1.data.GameOptions; import com.scs.stevetech1.entities.AbstractAvatar; import com.scs.stevetech1.entities.AbstractServerAvatar; import com.scs.stevetech1.entities.PhysicalEntity; import com.scs.stevetech1.netmessages.MyAbstractMessage; import com.scs.stevetech1.server.AbstractGameServer; import com.scs.stevetech1.server.ClientData; import com.scs.stevetech1.server.Globals; import ssmith.lang.NumberFunctions; import ssmith.util.MyProperties; import ssmith.util.RealtimeInterval; import twoweeks.TwoWeeksCollisionValidator; import twoweeks.TwoWeeksGameData; import twoweeks.TwoWeeksGlobals; import twoweeks.client.TwoWeeksClientEntityCreator; import twoweeks.entities.AbstractAISoldier; import twoweeks.entities.GenericStaticModel; import twoweeks.entities.PlayerMercServerAvatar; import twoweeks.netmessages.EnterCarMessage; import twoweeks.netmessages.GameDataMessage; import twoweeks.server.maps.CustomMap; import twoweeks.server.maps.IMapCreator; public class TwoWeeksServer extends AbstractGameServer implements ITerrainHeightAdjuster { public static final float LASER_DIAM = 0.03f; public static final float LASER_LENGTH = 0.7f; public static final float STEP_FORCE_ = 8f; public static final float RAMP_FORCE = 3f; private static AtomicInteger nextSideNum = new AtomicInteger(0); public static final String GAME_ID = "Two Weeks"; private TwoWeeksCollisionValidator collisionValidator = new TwoWeeksCollisionValidator(); private TwoWeeksGameData twipGameData; private IMapCreator mapCreator; private RealtimeInterval countUnitsInt; public static void main(String[] args) { try { MyProperties props = null; if (args.length > 0) { props = new MyProperties(args[0]); } else { props = new MyProperties(); Globals.p("No config file specified. Using defaults."); } String gameIpAddress = props.getPropertyAsString("gameIpAddress", "localhost"); int gamePort = props.getPropertyAsInt("gamePort", TwoWeeksGlobals.PORT); new TwoWeeksServer(gameIpAddress, gamePort); } catch (Exception e) { e.printStackTrace(); } } private TwoWeeksServer(String gameIpAddress, int gamePort) throws IOException { super(new ValidateClientSettings(GAME_ID, 1d, "key"), new GameOptions(Globals.DEFAULT_TICKRATE, Globals.DEFAULT_SEND_UPDATES_INTERVAL, Globals.DEFAULT_RENDER_DELAY, Globals.DEFAULT_NETWORK_TIMEOUT, 10*1000, 10*60*1000, 10*1000, gameIpAddress, gamePort, 10, 5)); this.mapCreator = new CustomMap(this); countUnitsInt = new RealtimeInterval(2000); super.physicsController.setStepForce(TwoWeeksGlobals.STEP_FORCE); super.physicsController.setRampForce(TwoWeeksGlobals.RAMP_FORCE); start(JmeContext.Type.Headless); } @Override public void simpleUpdate(float tpf_secs) { super.simpleUpdate(tpf_secs); if (super.gameData.isInGame()) { if (countUnitsInt.hitInterval()) { twipGameData.numUnitsLeft = 0; for (int i=0 ; i<this.entitiesForProcessing.size() ; i++) { IEntity e = this.entitiesForProcessing.get(i); if (e instanceof AbstractAvatar || e instanceof AbstractAISoldier) { twipGameData.numUnitsLeft++; } } this.sendMessageToInGameClients(new GameDataMessage(this.twipGameData)); } } } @Override protected void handleMessage(MyAbstractMessage message) { if (message instanceof EnterCarMessage) { this.playerEnterCar((EnterCarMessage)message); } else { super.handleMessage(message); } } @Override public void moveAvatarToStartPosition(AbstractAvatar avatar) { Vector3f pos = this.mapCreator.getStartPos(); avatar.setWorldTranslation(pos.x, pos.y, pos.z); if (Globals.DEBUG_PLAYER_START_POS) { Globals.p("Moving " + avatar + " to start pos: " + pos); } } @Override protected void createGame() { this.twipGameData = new TwoWeeksGameData(); nextSideNum = new AtomicInteger(0); // Start side nums on 1 again this.mapCreator.createMap(); } public GenericStaticModel getRandomVehicle(Vector3f pos) { float height = 0.7f; int i = NumberFunctions.rnd(1, 4); switch (i) { case 1: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "BasicCar", "Models/Car pack by Quaternius/BasicCar.blend", height, "Models/Car pack by Quaternius/CarTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 2: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "CopCar", "Models/Car pack by Quaternius/CopCar.blend", height, "Models/Car pack by Quaternius/CopTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 3: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "RaceCar", "Models/Car pack by Quaternius/RaceCar.blend", height, "Models/Car pack by Quaternius/RaceCarTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 4: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "Taxi", "Models/Car pack by Quaternius/Taxi.blend", height, "Models/Car pack by Quaternius/TaxiTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); default: throw new RuntimeException("Invalid number: " + i); } } public GenericStaticModel getRandomBuilding(Vector3f pos) { int i = NumberFunctions.rnd(1, 5); switch (i) { case 1: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "BigBuilding", "Models/Suburban pack Vol.2 by Quaternius/Blends/BigBuilding.blend", -1, "Models/Suburban pack Vol.2 by Quaternius/Blends/Textures/BigBuildingTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 2: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "BurgerShop", "Models/Suburban pack Vol.2 by Quaternius/Blends/BurgerShop.blend", -1, "Models/Suburban pack Vol.2 by Quaternius/Blends/Textures/BurgerShopTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 3: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "Shop", "Models/Suburban pack Vol.2 by Quaternius/Blends/Shop.blend", -1, "Models/Suburban pack Vol.2 by Quaternius/Blends/Textures/ShopTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 4: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "SimpleHouse", "Models/Suburban pack Vol.2 by Quaternius/Blends/SimpleHouse.blend", -1, "Models/Suburban pack Vol.2 by Quaternius/Blends/Textures/HouseTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); case 5: return new GenericStaticModel(this, this.getNextEntityID(), TwoWeeksClientEntityCreator.GENERIC_STATIC_MODEL, "SimpleHouse2", "Models/Suburban pack Vol.2 by Quaternius/Blends/SimpleHouse2.blend", -1, "Models/Suburban pack Vol.2 by Quaternius/Blends/Textures/HouseTexture.png", pos.x, pos.y, pos.z, new Vector3f(), true, 1f); default: throw new RuntimeException("Invalid number: " + i); } } @Override protected AbstractServerAvatar createPlayersAvatarEntity(ClientData client, int entityid) { PlayerMercServerAvatar avatar = new PlayerMercServerAvatar(this, client, client.remoteInput, entityid); return avatar; } @Override public void collisionOccurred(SimpleRigidBody<PhysicalEntity> a, SimpleRigidBody<PhysicalEntity> b) { PhysicalEntity pa = a.userObject; //pa.getMainNode().getWorldBound(); PhysicalEntity pb = b.userObject; //pb.getMainNode().getWorldBound(); if (pa.type != TwoWeeksClientEntityCreator.TERRAIN1 && pb.type != TwoWeeksClientEntityCreator.TERRAIN1) { //Globals.p("Collision between " + pa + " and " + pb); } super.collisionOccurred(a, b); } @Override protected byte getWinningSideAtEnd() { return -1; // todo } @Override public boolean canCollide(PhysicalEntity a, PhysicalEntity b) { return this.collisionValidator.canCollide(a, b); } @Override protected Class<? extends Object>[] getListofMessageClasses() { return new Class[] {TwoWeeksGameData.class, GameDataMessage.class, EnterCarMessage.class}; // Must be in the same order on client and server! } @Override public byte getSideForPlayer(ClientData client) { byte side = (byte)nextSideNum.getAndAdd(1); if (side < 0) { throw new RuntimeException("Too many sides!"); } return side; } @Override public boolean doWeHaveSpaces() { return true; // todo - not if game started? } @Override public void playerKilled(AbstractServerAvatar avatar) { super.playerKilled(avatar); checkForWinner(); } private void checkForWinner() { // todo } @Override public int getMinSidesRequiredForGame() { return 1; } @Override public void adjustHeight(AbstractHeightMap heightmap) { /*float h = heightmap.getInterpolatedHeight(CITY_X, CITY_Z); for (int z=CITY_Z ; z<CITY_Z+CITY_SIZE ; z++) { for (int x=CITY_X ; x<CITY_X+CITY_SIZE ; x++) { //Globals.p("x=" + x + ", z=" + z); heightmap.setHeightAtPoint(h, x, z); } }*/ if (this.mapCreator instanceof ITerrainHeightAdjuster) { ITerrainHeightAdjuster tha = (ITerrainHeightAdjuster)this.mapCreator; tha.adjustHeight(heightmap); } } private void playerEnterCar(EnterCarMessage msg) { //1 - find car //2 - change avatar to car } }
java
var vows = require('vows'); var assert = require('assert'); var events = require('events'); var util = require('util'); var hs = require('../index'); //hs._debug = true; var con; function openIndex(options, callback) { con = hs.connect(options, function() { con.openIndex('test', 'EMPLOYEE', 'PRIMARY', ['EMPLOYEE_ID', 'EMPLOYEE_NO', 'EMPLOYEE_NAME', 'VERSION'], callback); }); } function find(callback) { openIndex({}, function(err, index) { if (err) return callback(err); index.find('>=', 100, {limit: 10}, callback); }); } function openIndexNameAndVersion(options, callback) { con = hs.connect(options, function() { con.openIndex('test', 'EMPLOYEE', 'PRIMARY', ['EMPLOYEE_NAME', 'VERSION'], ['EMPLOYEE_NO', 'EMPLOYEE_NAME'], callback); }); } function openIndexVersion(options, callback) { con = hs.connect(options, function() { con.openIndex('test', 'EMPLOYEE', 'PRIMARY', ['VERSION'], ['EMPLOYEE_NO', 'EMPLOYEE_NAME'], callback); }); } var suite = vows.describe('Modify') suite.addBatch({ 'finding before insert': { topic: function() { find(this.callback); }, 'should pass an empty array': function(err, results) { assert.isNull(err); assert.lengthOf(results, 0); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'first inserting': { topic: function() { var self = this; openIndex({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.insert(['100', '9999', 'KOICHIK', 1], self.callback); }) }, 'should not be error': function() { }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after first insert': { topic: function() { find(this.callback); }, 'should pass an array which contains one record': function(err, results) { assert.isNull(err); assert.lengthOf(results, 1); assert.deepEqual(results[0], ['100', '9999', 'KOICHIK', '1']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'second inserting': { topic: function() { var self = this; openIndex({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.insert(['101', '9998', 'EBIYURI', 1], self.callback); }) }, 'should not be error': function() { }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after second insert': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '9999', 'KOICHIK', '1']); assert.deepEqual(results[1], ['101', '9998', 'EBIYURI', '1']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'updating': { topic: function() { var self = this; openIndex({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.update('=', 100, [100, '8888', 'KOICHIK2', 2], self.callback); }) }, 'should update one row': function(err, rows) { assert.isNull(err); assert.equal(rows, 1); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after update': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '8888', 'KOICHIK2', '2']); assert.deepEqual(results[1], ['101', '9998', 'EBIYURI', '1']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'updating with IN': { topic: function() { var self = this; openIndexNameAndVersion({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.update('=', hs.in(100, 101), {limit: 10}, ['KOICHIK', 3], self.callback); }) }, 'should update two rows': function(err, rows) { assert.isNull(err); assert.equal(rows, 2); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after update with IN': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '8888', 'KOICHIK', '3']); assert.deepEqual(results[1], ['101', '9998', 'KOICHIK', '3']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'updating with filter': { topic: function() { var self = this; openIndexNameAndVersion({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.update('>=', 100, { filters: hs.filter('EMPLOYEE_NO', '>', 9000), limit: 10 }, ['EBIYURI', 4], self.callback); }) }, 'should update one row': function(err, rows) { assert.isNull(err); assert.equal(rows, 1); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after update with select': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '8888', 'KOICHIK', '3']); assert.deepEqual(results[1], ['101', '9998', 'EBIYURI', '4']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'increment': { topic: function() { var self = this; openIndexVersion({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.increment('=', 100, 1, self.callback); }) }, 'should update one row': function(err, rows) { assert.isNull(err); assert.equal(rows, 1); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after increment': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '8888', 'KOICHIK', '4']); assert.deepEqual(results[1], ['101', '9998', 'EBIYURI', '4']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'decrement': { topic: function() { var self = this; openIndexVersion({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.decrement('=', 101, 1, self.callback); }) }, 'should update one row': function(err, rows) { assert.isNull(err); assert.equal(rows, 1); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after decrement': { topic: function() { find(this.callback); }, 'should pass an array which contains two records': function(err, results) { assert.isNull(err); assert.lengthOf(results, 2); assert.deepEqual(results[0], ['100', '8888', 'KOICHIK', '4']); assert.deepEqual(results[1], ['101', '9998', 'EBIYURI', '3']); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'deleting': { topic: function() { var self = this; openIndex({port: 9999, auth: 'node'}, function(err, index) { if (err) return self.callback(err); index.delete('>=', 100, {limit: 10}, self.callback); }) }, 'should delete two rows': function(err, rows) { assert.isNull(err); assert.equal(rows, 2); }, teardown: function() { con.close(); } } }); suite.addBatch({ 'finding after delete': { topic: function() { find(this.callback); }, 'should pass an empty array': function(err, results) { assert.isNull(err); assert.lengthOf(results, 0); }, teardown: function() { con.close(); } } }); suite.export(module);
javascript
New Delhi: With the national capital moving closer to a public health emergency due to rising air pollution, the Delhi government on Thursday announced the return of the Odd-Even scheme. The scheme, under which odd and even numbered vehicles ply on alternate days, would initially be in place for five days from November 13 to 17, i. e. Monday to Friday. This will be the third time when the Odd-Even rule will be enforced in the national capital. The scheme was first implemented for a fortnight from January 1, 2016 to January 15, and then for the second time from April 15 to 30, 2016. Here is all that you need to know regarding the Odd-Even scheme: *The Odd-Even scheme would be in place from November 13 to November 17, i. e. Monday to Friday (five days in total). *Delhi Transport Minister Kailash Gehlot told a press conference today that the rules and exemptions will be same like last year. *Odd-numbered vehicles would ply on odd dates, i. e. November 13, 15 and 17, while even-numbered vehicles would ply on even dates – November 14 and 16. *Restrictions are expected to be in place from 8 am to 8 pm like on previous occasions. *Government will arrange extra buses for next week when Odd-Even scheme would be in place. *Delhi Metro would run extra trips daily to cater to more passengers. *Since cars that run on CNG would be exempted from the rule, owners of such vehicles can claim stickers from Indraprastha Gas Limited (IGL) stations beginning tomorrow. Such stickers for cars will be made available at 22 CNG stations across the national capital. *Among other vehicles apart from CNG-run cars that would be exempted include electric vehicles, hybrid vehicles, women-only vehicles and those carrying children up to 12 years as well as those transporting children in school uniform. *Two-wheelers as well as vehicles carrying VIPs or VVIPs too would be exempted. *Ambulances, fire brigades, hospital vehicles, hearse vans, Delhi Police cars, Army vehicles, other emergency services vehicles, and embassy vehicles would also be exempted from the restrictions. *Vehicles driven or occupied by physically-disabled persons or those being used to cater to medical emergencies would also be allowed to ply on any day. *Vehicles coming from outside Delhi too would have to follow the rules. *Anyone violating the provisions of the Odd-Even rule is likely to be fined Rs 2,000.
english
<reponame>mcodegeeks/OpenKODE-Framework /* * * File DlgHelp.cpp * Description Help dialog. * Version 0.95.1007 * Author <NAME> * * -------------------------------------------------------------------------- * * Copyright (C) 2011 XMSoft. * Copyright (C) 2011 Blue River Ltd. * Copyright (C) 2011 Blueplay Ltd. All rights reserved. * * Contact Email: <EMAIL> * <EMAIL> * */ #include "Precompiled.h" #include "DlgBase.h" #include "DlgHelp.h" // // "CDlgHelp" dialog layer // KDuint CDlgHelp::getCount ( KDvoid ) { return 11; } const KDchar* CDlgHelp::getTitle ( KDvoid ) { return g_pResManager->getText ( eTXT_Title_Help1, m_uSelected ); } CCNode* CDlgHelp::getContent ( KDvoid ) { KDuint uCount = this->getCount ( ); KDuint uIndex = m_uSelected; CCNode* pContent = KD_NULL; const CCSize& tLyrSize = this->getContentSize ( ); if ( m_uSelected == ( uCount - 1 ) ) { pContent = CCSprite::create ( g_pResManager->getPath ( eIMG_ETC_Game_Info ) ); { CC_ASSERT ( pContent ); pContent->setPosition ( ccp ( tLyrSize.cx / 2.f - 10.f, tLyrSize.cy / 2.f + 10.f ) ); } } else { pContent = CCLabelTTF::create ( g_pResManager->getTextHelp ( uIndex ), g_pResManager->getPath ( eFNT_Gothic_Bold ), 16, CCSize ( 400.f, 295.f ), uIndex == ( uCount - 2 ) ? kCCTextAlignmentCenter : kCCTextAlignmentLeft ); { CC_ASSERT ( pContent ); pContent->ignoreAnchorPointForPosition ( KD_TRUE ); pContent->setPosition ( ccp ( 15.f, 85.f ) ); } } return pContent; }
cpp
Spicy chicken keema is often served as a star dish at most Indian dhabas. It pairs well with chapathi or kuboos. Here is how you could make dhaba style chicken keema at home. 4 small onion (chopped) 1 tbsp ginger (sliced) 1 tbsp ginger-garlic (crushed) Enjoy the dhaba style chicken keema.
english
<filename>packages/craco-babel-loader/package.json { "name": "craco-babel-loader", "version": "1.0.3", "description": "Rewire `babel-loader` loader in your `create-react-app` project using `craco`.", "source": "src/index.ts", "module": "dist/index.es.js", "main": "dist/index.js", "umd:main": "dist/index.umd.js", "types": "dist/index.d.ts", "repository": "https://github.com/rjerue/craco-babel-loader", "author": { "name": "<NAME>", "email": "<EMAIL>", "url": "http://jerue.org" }, "license": "MIT", "scripts": { "build": "microbundle", "dev": "microbundle watch --compress=false", "prepublish": "npm run build", "prepublishOnly": "cp ../../README.md ./README.md", "postpublish": "rm ./README.md" }, "keywords": [ "babel-loader", "craco", "webpack", "create-react-app" ], "dependencies": {}, "peerDependencies": { "@craco/craco": "^6.4.2" }, "devDependencies": { "@craco/craco": "^6.4.2", "microbundle": "^0.14.2" } }
json
Who was Qays ibn Mus-hir al-Saydawi, the largely unknown emissary of Imam Husayn (A)? Who was Qays ibn Mus-hir al-Saydawi, the largely unknown emissary of Imam Husayn (A)? And what did Qays ibn Mus-hir al-Saydawi bring to Imam Husayn (A), while his eminence (A) was living in the city of Mecca? What companion accompanied Muslim ibn Aqeel to the city of Kufa, for he knew the ins and outs of the city of Kufa? How can it be inferred that Qays ibn Mus-hir al-Saydawi was trusted by Imam Husayn (A)? What was one of the biggest tribes of the city of Kufa and how was that tribe related to Qays ibn Mus-hir al-Saydawi? Approximately, how many people paid allegiance to Imam Husayn (A) at the hands of Muslim ibn Aqeel? What were the historical chain of events that led up to the arrest of Qays ibn Mus-hir al-Saydawi? What was the litmus test that Qays ibn Mus-hir al-Saydawi was tested with, something that Abdullah ibn Yaqtur had also been tested with? And finally, how did Qays ibn Mus-hir al-Saydawi attain the lofty status of martyrdom? Find out this and more in this episode about the largely unknown emissary of Imam al-Husayn (A), \"Qays ibn Mus-hir al-Saydawi\", as Sayyid Haydar Jamaludeen goes through some of the beautiful, honorable, and yet largely overlooked \"Unsung Heroes\" of Islam. Our condolences to the believers, wherever you are, upon the martyrdom anniversary of Imam Husayn (A), his honorable family members, and his devoted companions. Salutations be upon the Master of Martyrs! Salutations be upon the esteemed Husayn! Salutations be upon the esteemed Ali ibn Husayn! Salutations be upon the innocent children of Husayn! Salutations be upon the loyal companions of Husayn! Video Tags: Who was Hani ibn Urwah, the famous companion and devoted follower of Imam Husayn (A)? Who was Hani ibn Urwah, the famous companion and devoted follower of Imam Husayn (A)? And how did he live his life, and what was his biographical background? And what was the socio-political and religious status of Hani ibn Urwah? What are some of the dirty tricks that Ubaydullah ibn Ziyad took in order to quell the movement of Muslim ibn Aqeel in the city of Kufa? What famous emissary of Imam Husayn (A) stayed in the residence of Hani ibn Urwah? Approximately, how many men did Hani ibn Urwah command and how many warriors had pledged allegiance to Muslim ibn Aqeel before betraying him? Furthermore, what are the historical events that led up to the arrest of Hani ibn Urwah by Ubaydullah ibn Ziyad? And finally, how did Hani ibn Urwah, the loyal companion of Imam Husayn (A), attain the lofty status of martyrdom? Find out this and more in this episode about one of the most faithful companions of Sayyid al-Shuhada Imam al-Husayn (A), \"Hani ibn Urwah al-Muradi\", as Sayyid Haydar Jamaludeen goes through some of the beautiful, honorable, and yet largely overlooked \"Unsung Heroes\" of Islam. Our condolences to the believers, wherever you are, upon the martyrdom anniversary of Imam Husayn (A), his honorable family members, and his devoted companions. Salutations be upon the Master of Martyrs! Salutations be upon the esteemed Husayn! Salutations be upon the esteemed Ali ibn Husayn! Salutations be upon the innocent children of Husayn! Salutations be upon the loyal companions of Husayn! Video Tags: Who was Muslim ibn Aqeel? Who was Muslim ibn Aqeel? In this episode of Unsung Heroes, Sayyid Haydar Jamaludeen speaks about one of the most devout companions of Imam Husayn (A), \\\\\\\"Muslim ibn Aqeel\\\\\\\". Yet, who was Muslim ibn Aqeel, how did he live his life, and what was his biographical background? What was Muslim ibn Aqeel\\\\\\\'s relationship to Imam Ali ibn Abi Talib (A)? What was the extent of Muslim ibn Aqeel\\\\\\\'s jurisprudential expertise in Islam? What did the Messenger of Allah (S) say about Muslim ibn Aqeel even before the birth of this famous emissary of Imam Husayn (A)? Whose daughter did Muslim ibn Aqeel marry and what was her name? What stance did Muslim ibn Aqeel take with regards to his support for Imam Hasan (A)? Why did Yazid, the son of Muawiyah, want to take allegiance from Imam Husayn (A)? What is a basic sequence of historical events that led to the tragic event of Ashura in the year 61 Hijrah? Why did Imam Husayn (A) send Muslim ibn Aqeel to the city of Kufa? In whose house did Muslim ibn Aqeel stay while he was in the city of Kufa? What did the Umayyad governmental establishment do when they found out about Muslim ibn Aqeel\\\\\\\'s entry into Kufa? What are some of the measures that Ubaydullah ibn Ziyad took in order to quell the movement of Imam Husayn (A)? How was the place of stay of Muslim ibn Aqeel revealed to the enemy? What did Muslim ibn Aqeel do when he found out that Hani ibn Urwah had been beaten up and arrested by the Umayyad governmental establishment? What are the historical events that led to the arrest of Muslim ibn Aqeel? Who was the accursed person who killed and martyred Muslim ibn Aqeel? And finally, how did Muslim ibn Aqeel, the loyal emissary of Imam Husayn (A), attain the lofty status of martyrdom? Find out this and more in this episode about one of the most loyal, devout, and faithful emissary of Sayyid al-Shuhada Imam al-Husayn (A), \\\\\\\"Muslim ibn Aqeel\\\\\\\", as Sayyid Haydar Jamaludeen goes through some of the beautiful, honorable, and yet largely overlooked \\\\\\\"Unsung Heroes\\\\\\\" of Islam. Video Tags: Our condolences to the believers all across the world upon the martyrdom anniversary of the Commander of the Faithful, the sixth divinely appointed Imam, Imam Ja\\\'far ibne Muhammad al-Sadiq (A). In this episode we reflect upon two beautiful and profound traditions from Imam Sadiq (A); one a famous tradition and another less well-known one. Yet, what is the first tradition that is quite well-known? And what is the second tradition that is less well-known? Was Imam al-Sadiq (A) ever arrested by the governmental establishment? What dynasties and people were involved in the arrest of Imam al-Sadiq (A), and were would they take his eminence (A)? What does Imam al-Sadiq (A) say about the recitation of the Salah? And what does Imam al-Sadiq (A) say about tyrant and oppressor rulers and governments, and our relationship with them? Sayyid Shahryar answers via the words of the sixth divinely appointed Imam, Imam Ja\\\'far ibne Muhammad as-Sadiq (A). Peace and salutations be upon you, O’ truthful Imam! Peace and salutations be upon you, O\\\' key to goodness! Peace and salutations be upon you, O\\\' lantern in the darkness! Peace and salutations be upon you, O’ Ja\\\'far ibne Muhammad as-Sadiq (A)! Video Tags: - Do Fuqaha (jurisprudents) have a boundary? - Is the Wilayah of a Faqih limited to a certain country or a region? - Do Fuqaha (jurisprudents) have a boundary? - Is the Wilayah of a Faqih limited to a certain country or a region? - Who do we obey if we don\\\'t obey a Faqih? - Why do I need to obey Wali al-Faqih? - Can we have an unjust Faqih? - Do we demand the system of Wilayat al-Faqih practiced and implemented in other countries - such as Bahrain and Iraq? Many such questions regarding Wilayat al-Faqih have been answered by Martyr Shaykh Nimr al-Nimr in this clip. This great scholar of Islam was executed by the evil Saudi regime on January 2, 2016 for speaking the truth and exposing the falsehood. His arrest and execution was widely condemned, including by governments and human rights organizations but the oppression of the Saudi regime continues till date - unfortunately. Video Tags: The arrest warrant must be approved by a court first. Prosecutors say Samsung paid nearly 34-point-five million dollars to institutions backed by Park\'s former confidante, Choi Soon-sil, in exchange for the national pension fund\'s support for a 2015 merger of two Samsung affiliates. Samsung has acknowledged providing funds to the institutions, but has denied accusations of lobbying to push through the merger. President Park was impeached by the country’s parliament in December for corruption and abuse of power. She has rejected all allegations as lies and a set-up. Chairman of the Expediency Council Ayatollah Akbar Hashemi Rafsanjani has passed away at the age of 82 due to heart condition. Chairman of the Expediency Council Ayatollah Akbar Hashemi Rafsanjani has passed away at the age of 82 due to heart condition. Ayatollah Rafsanjani was admitted to a hospital in northern Tehran on Sunday after having an acute heart attack. Born on August 25, 1934, the influential Iranian politician and writer was the fourth president of the Islamic Republic, serving from 1989 to 1997. Rafsanjani was the head of the Assembly of Experts from 2007 to 2011. The influential cleric was elected chairman of the Iranian parliament in 1980 and served until 1989. He assumed office as the Chairman of the Expediency Council in 1989. Iranian President Hassan Rouhani attended the hospital where Ayatollah Rafsanjani was hospitalized, undergoing treatment. Head of Tehran’s Shohada Hospital has declared heart arrest as the cause of Ayatollah Hashemi Rafsanjani’s passing away. Ayatollah Hashemi Rafsanjani was among the main aides to late founder of the Islamic Republic, Imam Khomeini. He played an influential role both during anti-Shah struggles before the victory of the Islamic Revolution and afterwards through various stages of the establishment of the Islamic Republic of Iran. Rafsanjani was also a key figure during the eight years of Iraq’s imposed war on Iran (1980-88), serving as substitute to commander-in-chief of the armed forces. According to IRNA news agency, the funeral for Ayatollah Hashemi Rafsanjani will be held in Tehran on Tuesday. Shaykh Isa Qasem, who is currently under house arrest after having had his Bahraini citizenship revoked by a bunch of illegitimate foreigners, says a few extremely powerful words about what Imam Husayn (A) means to the lovers of the Prophet and his family. Since the illegitimate al-Khalifa regime put Shaykh Isa Qasem under house arrest and stripped him of his Bahraini citizenship, the voice of the country\\\'s opposition has become louder and its protests more bold. It is only a matter of time before we see the birth of a new Bahrain, inshallah. Video Tags: Brief segment of the sermon delivered recently by prominent religious scholar Ayatollah Sheikh Hussein Al-Radhi and that resulted in his arrest by the Saudi authorities. The sermon was delivered in one of the mosques in the Ahsaa region in Eastern Saudi Arabia. Sheikh Al-Radhi called on the Saudi government to let Hezbollah and the other countries of the region be, and to focus instead on national reform. Shortly after this sermon was delivered, Sheikh AlRadhi was arrested in the town of Al-Rumailah. Sheikh AlRadhi is known for his criticism of the Saudi role in destabilizing the region. He often denounced the Saudi regime’s crimes in Yemen, and he demanded that Saudi troops be withdrawn from Bahrain. Sheikh AlRadhi was also one of the few scholars who dared to condemn the horrendous crime of executing Sheikh Nimr AlNimr along with several other activists earlier this year. Toronto: Sunday Feb 01, 2015, 100\'s of Concerned Canadians (both Sunni & Shia) stand in solidarity with the innocent Shia Muslim victims slaughtered in the Shikarpur mosque by the US and Saudi sponsored terrorists group Jundallah. Most protesters believe & hold the government of Pakistan responsible for over 60 men, women and children massacred in Shikarpur Imambargah and demanded immediate arrest of these barbaric terrorists and take actions against anyone attempting to spread hate and sectarianism. 100\\\'s of Concerned Canadians (both Sunni and Shia Muslims) stand in solidarity with the innocent Shia Muslim victims slaughtered in the Shikarpur mosque by the US and Saudi sponsored terrorists group Jundallah. Most protesters believe & hold the government of Pakistan responsible for over 60 men, women and children massacred in Shikarpur Imambargah and demanded immediate arrest of these barbaric terrorists and take actions against anyone attempting to spread hate and sectarianism.
english
Madikeri: A man accused of setting a honeytrap to blackmail and loot another has been arrested by the town station police. Abdul Rehman, while at Sullia bus stand about a month ago, had got acquainted with Fatima, a woman from Kottamudi near Napoklu. Having exchanged each other’s contact numbers, they were in regular touch. On Sunday, at her invitation, he arrived here where a room had been booked for him in a hotel here. When he and the woman were in the hotel room, one Mohammed, also from Kottamudi, arrived in police attire and after threatening him robbed Rehman of Rs 60,000. Rehman contacted Arun Shetty, head of a local organization, and complained to the police. The accused was called to the station. As an attempt was being made to hush up the matter by refunding the amount, a woman journalist happened to land in the station to collect the details of the case. So the police had no alternative to filing a case. It is not known if the woman involved in the honeytrap was also booked.
english
<filename>run.py #!/usr/bin/env python3.8 from user import User import random from credential import Credentials def createUserAccount(firstName, lastName, username, password): ''' This function will create a new user account ''' new_user = User(firstName, lastName, username,password) return new_user def create_credentials(credential_account, credential_username,credential_password): ''' Function to create new contact ''' new_credentials = Credentials(credential_account, credential_username, credential_password) return new_credentials def save_user(user): ''' Function that will save the user ''' def save_credentials(credential): ''' Function to save contact ''' credential.save_credentials() def delete_credentials(credential): ''' This is a function that deletes credentials ''' Credentials.delete_credentials() def display_user(): return User.display_user() def find_credential(account): """ Function that finds a Credentials by an account name and returns the Credentials that belong to that account """ return Credentials.find_by_username(account) def display_credentials(): return Credentials.display_credentials() def randomgenerator(): ''' This is a method that will create random passwords ''' rand = random.randint(10000,99999) return rand def main(): print('Welcome to password Locker app,please enter your name \n ') user_name = input() print(f"Hello {user_name}, ") print("\n") while True: print(" You will need to create an Password Locker account first before you start saving your credentials! \nProceed using these short code. \n na - create a new Locker,\n ex - exit the password locker app") short_code = input().lower() if short_code == 'na': print("New Password Locker Account") print("-"*30) print("Enter your username : ") userName = input() print("Enter your first name : ") first_name = input() print("Enter the last name : ") last_name = input() print("Enter your password : ") password = input() save_user(createUserAccount(first_name, last_name, userName,password))#create and save new contact print("\n") print(f"Congratulations! {first_name} {last_name}, You have created password locker account. Proceed to store you credentials now.\n") print("\n") while True: print("Use these short codes:\n add - Add credentials details,\ndc - display stored credential details,\nex - exit the contact list, \n del - delete account") short_code = input().lower() if short_code == 'add': print("New Credentials account") print("-"*30) print("Account Type(eg. Facebook, twitter, instagram...) : ") type = input() print("User name : ") username = input().lower() while True: print("use these codes to choose the password modes:\n gp - system generated password,\n tp - type password,\n ") pass_code = input().lower() enteredPassword = '' if pass_code=='tp': print('Enter your password') enteredPassword = input() elif pass_code=='gp': print('Enter your password') enteredPassword = <PASSWORD>() save_credentials(create_credentials(type, username, enteredPassword))#create and save new contact print("\n") print(f"New credentials details for account {type} saved successfully. \n Username: {username} \n password is: {enteredPassword}") print("\n") break elif short_code == 'dc': if display_credentials(): print("These are the accounts saved in the app: \n ") print('\n') for credential in display_credentials(): print(f" Account type:{credential.credentials_account} \n Username: {credential.credentials_username} \n Password: {credential.credentials_password}") print('\n') else: print('There is no credentials saved') elif short_code == "del": print("Enter Username of the Credentials you want to delete") search_name = input().lower() if find_credential(search_name): search_credential = find_credential(search_name) print("_"*40) search_credential.delete_credentials() print('\n') print(f"Your stored credentials for : {search_credential.credentials_username} successfully deleted!!!") print('\n') else: print(" \n The Credential you want to delete does not exist \n") pass elif short_code =='ex': print('\n') print("Thanks for using the app. Welcome") break break main()
python
[{"id": 6041, "gempId": "12_36", "side": "Light", "rarity": "R", "set": "12", "printings": [{"set": "12"}], "front": {"title": "\u2022Yoda, Senior Council Member (AI)", "imageUrl": "https://res.starwarsccg.org/cards/Coruscant-Light/large/yodaseniorcouncilmemberai.gif", "type": "Character", "subType": "Jedi Master", "destiny": "1", "power": "3", "ability": "7", "deploy": "4", "forfeit": "7", "icons": ["Episode I"], "gametext": "Deploys only to Jedi Council Chamber. While at Jedi Council Chamber, you lose no Force from Dagobah: Cave and, during your move phase, may use 4 Force to relocate your other Jedi here to any site you occupy. Immune to attrition.", "lore": "Senior Jedi Council member. Responsible for the early training of Obi-Wan Kenobi. When Qui-Gon brought Anakin before the Council, Yoda voted not to train the boy.", "extraText": ["Jedi Master"]}, "legacy": false}]
json
having tried different brands and flavors, this is probably my fave so far. considering that it is an amino acid drink, the taste is as good as it gets. Quality wise, it definitely replenishes electrolytes and aids recovery. Thank goodness the color is white and not some psychedelic ones. All in all, i am extremely happy with this purchase! Well, Covid-19 finally found me and I have been sick for the past week. I have been drinking this great-tasting EVLution Nutrition beverage several times a day, and I honestly believe it is making a world of difference in helping my body fight off the virus and make me feel much, much better faster. Getting ready to order several more today! These hydrating drinks are all the rage lately, and for good reason, our bodies lack salt (believe it or not). I like the magnesium, coconut water, electrolytes and the bonus of aminos, greens, and antioxidants - all rolled into one product. My only negative is the coloring added (shown at the end of "other ingredients"). All around solid product though, will buy again! I'm purchasing this product for the first time, after reading many good reviews about it. It seems really tasty, delicious & refreshing. Not too much calories it is good for a healthy diet. It's not expansive at all. Price is really affordable & worth trying. I'm purchasing this product for the first time, after reading many good reviews about it. It seems really tasty, delicious & refreshing. Not too much calories it is good for a healthy diet. It's not expansive at all. Price is really affordable & worth trying.
english
<filename>src/main/resources/modinfo/TCN/TCN4210.json { "attributes": { "sfs": true, "ssgf": true }, "courseCode": "TCN4210", "courseCredit": "4", "description": "This course introduces to students with various membrane sciences, technologies, and applications such as microfiltration (MF), ultrafiltration (UF), nanofiltration (NF), reverse osmosis (RO) for water reuses and desalination, material design and gas separation for energy development, and membrane formation for asymmetric flat and hollow fiber membranes. Introduction of various membrane separation mechanisms will be given.", "faculty": "Cont and Lifelong Education", "preclusion": "TC4210, CN4210E", "title": "Membrane Science And Engineering" }
json
<filename>style.css<gh_stars>0 body { background-image: linear-gradient(to right, rgb(255, 0, 0), rgb(0, 255, 0)); } h1, h2 { text-transform: uppercase; text-align: center; font-family: 'Courier New'; opacity: 0.9; } h1 { font-size: 3em; } h3 { text-align: center; } input[type='color'] { margin: 0 20px; } .colors { display: flex; justify-content: center; }
css
In order to cook a delicious dish, for example, let it be a chicken in the multivark Redmond, you need to have the device itself and the bird, the rest is put according to your desire. It is thanks to such approaches that you can create new culinary masterpieces. So, let's prepare meat. Chahokhbili from a chicken in a multivark Initially, a pheasant was used to make this dish, but today it was replaced by any carcass of the bird that is at hand. Divide the meat into portions (you can take ready-made parts, for example, only the legs or thighs). Peel and cut the onion blue and white onions, the pieces should be large, preferably they should be shaped like cubes. Tomatoes grate or use a blender, tomato paste is used as a substitute. Pour vegetable oil into the bottom of the multiquark bowl, warm it in the "Baking" or "Frying" mode, pour the white onions and cook until golden. After seven minutes, place a chopped blue onion on top and put the chicken on it. Pour a couple of glasses of water (it should cover a little meat). Select the "Milk porridge" or "Quenching" mode, cook for 20 minutes. After the specified time, pour the puree of tomatoes (or it will be paste), add the spices and a little chopped greens. Continue cooking in the selected program for another 30 minutes. For a few minutes before the end, add the remaining greens and wait until the end of cooking. Give a little infusion and serve with boiled potatoes, rice or pasta. Chicken in the multivark Redmond Here is another recipe for Chahokhbili. Chicken thighs should be fried in the "Heating" mode for several minutes on each side. Then they need to be pulled out and in the formed fat to brown the diced onion. Return the meat, add a quarter of tomatoes (take about half a kilogram) and a multi-cup of water. Do not forget about the salt. Change the mode to "Baking" and set the time to 20 minutes. Open the lid and put the chopped garlic, chopped greens and a couple of spoons of Adzhika (depending on its severity). Select the function "Heated" and wait for the boiling of the dish, in the meantime, mix a spoonful of flour and a little water. Pour the mixture into the appliance and turn off the appliance. Similarly, you can cook meat in another company's appliance. For example, it could be a chicken in the Philips multivark. This is a rather unusual dish, because a sweetish component will add sophistication to the dish. You need to marinate the desired number of thighs in the spices. In the meantime, peel the potatoes and pour it with a small amount of sour cream. For the recipe "Chicken in the Multivark Redmond", choose the "Baking" mode and fry the pieces of meat in the warmed-up oil. In a blender, combine one apple (without pits and peel), a banana, a glass of sour cream and a handful of grated cheese, whisk. Bird pour a mixture of fruits, put a top for steaming and put potatoes in circles in it. Close the device and wait for the beep. Be sure to try the potatoes for readiness. Everything, a spicy dinner is ready. It's no secret that the chicken in the multivark Redmond is more delicious than if it were cooked in the oven. A kitchen assistant - a multivarker - allows not only to save time on creating dishes, but also to feed useful food to all comers.
english
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/app_list/search/chrome_search_result.h" #include <map> #include "base/containers/adapters.h" #include "base/logging.h" #include "chrome/browser/ui/app_list/app_context_menu.h" #include "ui/base/models/image_model.h" ChromeSearchResult::ChromeSearchResult() : metadata_(std::make_unique<ash::SearchResultMetadata>()) {} ChromeSearchResult::~ChromeSearchResult() = default; void ChromeSearchResult::SetActions(const Actions& actions) { metadata_->actions = actions; SetSearchResultMetadata(); } void ChromeSearchResult::SetDisplayScore(double display_score) { metadata_->display_score = display_score; SetSearchResultMetadata(); } void ChromeSearchResult::SetIsInstalling(bool is_installing) { metadata_->is_installing = is_installing; SetSearchResultMetadata(); } void ChromeSearchResult::SetTitle(const std::u16string& title) { metadata_->title = title; SetSearchResultMetadata(); } void ChromeSearchResult::SetTitleTags(const Tags& tags) { metadata_->title_tags = tags; SetSearchResultMetadata(); } void ChromeSearchResult::SetDetails(const std::u16string& details) { metadata_->details = details; SetSearchResultMetadata(); } void ChromeSearchResult::SetDetailsTags(const Tags& tags) { metadata_->details_tags = tags; SetSearchResultMetadata(); } void ChromeSearchResult::SetAccessibleName(const std::u16string& name) { metadata_->accessible_name = name; SetSearchResultMetadata(); } void ChromeSearchResult::SetRating(float rating) { metadata_->rating = rating; SetSearchResultMetadata(); } void ChromeSearchResult::SetFormattedPrice( const std::u16string& formatted_price) { metadata_->formatted_price = formatted_price; SetSearchResultMetadata(); } void ChromeSearchResult::SetCategory(Category category) { metadata_->category = category; SetSearchResultMetadata(); } void ChromeSearchResult::SetBestMatch(bool best_match) { metadata_->best_match = best_match; SetSearchResultMetadata(); } void ChromeSearchResult::SetDisplayType(DisplayType display_type) { metadata_->display_type = display_type; SetSearchResultMetadata(); } void ChromeSearchResult::SetResultType(ResultType result_type) { metadata_->result_type = result_type; SetSearchResultMetadata(); } void ChromeSearchResult::SetMetricsType(MetricsType metrics_type) { metadata_->metrics_type = metrics_type; SetSearchResultMetadata(); } void ChromeSearchResult::SetDisplayIndex(DisplayIndex display_index) { metadata_->display_index = display_index; SetSearchResultMetadata(); } void ChromeSearchResult::SetOmniboxType(OmniboxType omnibox_type) { metadata_->omnibox_type = omnibox_type; SetSearchResultMetadata(); } void ChromeSearchResult::SetPositionPriority(float position_priority) { metadata_->position_priority = position_priority; SetSearchResultMetadata(); } void ChromeSearchResult::SetIsOmniboxSearch(bool is_omnibox_search) { metadata_->is_omnibox_search = is_omnibox_search; SetSearchResultMetadata(); } void ChromeSearchResult::SetIsRecommendation(bool is_recommendation) { metadata_->is_recommendation = is_recommendation; SetSearchResultMetadata(); } void ChromeSearchResult::SetQueryUrl(const GURL& url) { metadata_->query_url = url; auto* updater = model_updater(); if (updater) updater->SetSearchResultMetadata(id(), CloneMetadata()); } void ChromeSearchResult::SetEquivalentResutlId( const std::string& equivlanet_result_id) { metadata_->equivalent_result_id = equivlanet_result_id; auto* updater = model_updater(); if (updater) updater->SetSearchResultMetadata(id(), CloneMetadata()); } void ChromeSearchResult::SetIcon(const IconInfo& icon) { icon.icon.EnsureRepsForSupportedScales(); metadata_->icon = icon; SetSearchResultMetadata(); } void ChromeSearchResult::SetChipIcon(const gfx::ImageSkia& chip_icon) { chip_icon.EnsureRepsForSupportedScales(); metadata_->chip_icon = chip_icon; SetSearchResultMetadata(); } void ChromeSearchResult::SetBadgeIcon(const ui::ImageModel& badge_icon) { metadata_->badge_icon = badge_icon; SetSearchResultMetadata(); } void ChromeSearchResult::SetUseBadgeIconBackground( bool use_badge_icon_background) { metadata_->use_badge_icon_background = use_badge_icon_background; SetSearchResultMetadata(); } void ChromeSearchResult::SetNotifyVisibilityChange( bool notify_visibility_change) { metadata_->notify_visibility_change = notify_visibility_change; } void ChromeSearchResult::SetSearchResultMetadata() { AppListModelUpdater* updater = model_updater(); if (updater) updater->SetSearchResultMetadata(id(), CloneMetadata()); } void ChromeSearchResult::InvokeAction(int action_index) {} void ChromeSearchResult::OnVisibilityChanged(bool visibility) { VLOG(1) << " Visibility change to " << visibility << " and ID is " << id(); } void ChromeSearchResult::GetContextMenuModel(GetMenuModelCallback callback) { std::move(callback).Run(nullptr); } app_list::AppContextMenu* ChromeSearchResult::GetAppContextMenu() { return nullptr; } ::std::ostream& operator<<(::std::ostream& os, const ChromeSearchResult& result) { return os << result.id() << " " << result.scoring(); }
cpp
Your watch is about to get a whole lot better. Alongside releasing iOS 12, Apple is also updating the Apple Watch to WatchOS 5. The update brings with it a new walkie-talkie feature, the Podcasts app, and other improvements. The update process is a breeze, but make sure you set aside some time and have your charger handy. Not every feature is as clear as, say, the new Podcasts app, so we rounded up some tips and tricks for you to get the most out of WatchOS 5. When certain apps are active, you will notice a small version of the app icon appears near the top of your watch's display. I've seen this status icon when the music app is in use, along with Maps , and walkie-talkie. If the icon doesn't disappear, as is the case for walkie-talkie, you can tap on it to open the respective app. Apple has added the Podcasts app to WatchOS 5. You can manage which podcasts are synced to your Apple Watch from the Watch app on your iPhone . Just select Podcasts from the list, then customize what is and isn't synced to your watch when it's connected to a charger overnight. Starting with WatchOS 5 you can now view links sent to you in messages or emails directly on the watch. So the next time someone texts you a link, or there's an email newsletter you want to view, go ahead, tap on the link. Forget having to say "Hey Siri" whenever you raise your wrist to interact with Apple's digital assistant. There's a new Raise to speak feature that recognizes when you raise your wrist toward your mouth and begins listening for a command. The trick to getting it to work is to begin talking after you've raised your wrist. If you don't start talking, the Siri interface doesn't show up. It took a few tries for me to get the hang of it, but now it feels natural. You can turn off Raise to speak settings under General > Siri in the Apple Watch Settings app. The Siri watchface on WatchOS isn't new, but starting with WatchOS 5 the Siri watchface will begin displaying suggested Siri shortcuts that include third-party apps. Don't be surprised if you randomly see a card suggest a route home, or to call someone on your drive home after installing WatchOS 5. To customize what shows up on the Siri watchface, open the Watch app on your iPhone and select your Siri watchface. Scroll down and locate the Data Sources, Sports, and 3rd Party Apps sections. Beyond delivering notifications and running apps, the Apple Watch is a fitness device. With that in mind, Apple is adding a handful of new fitness features to WatchOS 5. From auto-workout detection to new workouts, we detail all the new fitness features right here. If you use your iPhone to get directions while you're driving, you know that it can be annoying to have your watch beeping and vibrating as your drive, despite your phone or CarPlay providing voice guidance at the same time. With WatchOS 5 you can disable the added guidance in the Watch app on your iPhone. In the Watch app, open Maps and then turn off each alert you no longer want. Rearrange the Control Center icons to your liking by swiping up from the bottom of your Apple Watch display. Scroll to the bottom of Control Center and select Edit. Drag and drop the icons to your preferred order, then press the Digital Crown to save your changes. 10 hidden features in iOS 12: Who knew??
english
<filename>src/librustdoc/passes/collect_intra_doc_links/early.rs use rustc_ast as ast; use rustc_hir::def::Namespace::TypeNS; use rustc_hir::def_id::{DefId, LocalDefId, CRATE_DEF_INDEX}; use rustc_interface::interface; use std::cell::RefCell; use std::mem; use std::rc::Rc; // Letting the resolver escape at the end of the function leads to inconsistencies between the // crates the TyCtxt sees and the resolver sees (because the resolver could load more crates // after escaping). Hopefully `IntraLinkCrateLoader` gets all the crates we need ... crate struct IntraLinkCrateLoader { current_mod: DefId, crate resolver: Rc<RefCell<interface::BoxedResolver>>, } impl IntraLinkCrateLoader { crate fn new(resolver: Rc<RefCell<interface::BoxedResolver>>) -> Self { let crate_id = LocalDefId { local_def_index: CRATE_DEF_INDEX }.to_def_id(); Self { current_mod: crate_id, resolver } } } impl ast::visit::Visitor<'_> for IntraLinkCrateLoader { fn visit_attribute(&mut self, attr: &ast::Attribute) { use crate::html::markdown::markdown_links; use crate::passes::collect_intra_doc_links::preprocess_link; if let Some(doc) = attr.doc_str() { for link in markdown_links(&doc.as_str()) { let path_str = if let Some(Ok(x)) = preprocess_link(&link) { x.path_str } else { continue; }; self.resolver.borrow_mut().access(|resolver| { let _ = resolver.resolve_str_path_error( attr.span, &path_str, TypeNS, self.current_mod, ); }); } } ast::visit::walk_attribute(self, attr); } fn visit_item(&mut self, item: &ast::Item) { use rustc_ast_lowering::ResolverAstLowering; if let ast::ItemKind::Mod(..) = item.kind { let new_mod = self.resolver.borrow_mut().access(|resolver| resolver.local_def_id(item.id)); let old_mod = mem::replace(&mut self.current_mod, new_mod.to_def_id()); ast::visit::walk_item(self, item); self.current_mod = old_mod; } else { ast::visit::walk_item(self, item); } } }
rust
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// use super::*; use crate::{ cbor::value::Value, util::expect_err, CborSerializable, ContentType, CoseKeyBuilder, CoseRecipientBuilder, HeaderBuilder, TaggedCborSerializable, }; use alloc::{ string::{String, ToString}, vec, vec::Vec, }; #[test] fn test_cose_mac_decode() { let tests: Vec<(CoseMac, &'static str)> = vec![ ( CoseMacBuilder::new().build(), concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "f6", // null "40", // 0-bstr "80", // 0-arr ), ), ( CoseMacBuilder::new().payload(vec![]).build(), concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr "80", // 0-arr ), ), ]; for (i, (mac, mac_data)) in tests.iter().enumerate() { let got = mac.clone().to_vec().unwrap(); assert_eq!(*mac_data, hex::encode(&got), "case {}", i); let mut got = CoseMac::from_slice(&got).unwrap(); got.protected.original_data = None; assert_eq!(*mac, got); } } #[test] fn test_cose_mac_decode_fail() { let tests = vec![ ( concat!( "a2", // 2-map (should be tuple) "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "4100", // 1-bstr "40", // 0-bstr ), "expected array", ), ( concat!( "84", // 4-tuple (should be 5-tuple) "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr ), "expected array with 5 items", ), ( concat!( "85", // 5-tuple "80", // 0-tuple (should be bstr) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr "80", // 0-arr ), "expected bstr", ), ( concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "40", // 0-bstr (should be map) "40", // 0-bstr "40", // 0-bstr "80", // 0-arr ), "expected map", ), ( concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "60", // 0-tstr (should be bstr) "40", // 0-bstr "80", // 0-arr ), "expected bstr", ), ( concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "60", // 0-tstr "80", // 0-arr ), "expected bstr", ), ( concat!( "85", // 5-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr "40", // 0-bstr ), "expected array", ), ]; for (mac_data, err_msg) in tests.iter() { let data = hex::decode(mac_data).unwrap(); let result = CoseMac::from_slice(&data); expect_err(result, err_msg); } } #[test] fn test_rfc8152_cose_mac_decode() { // COSE_Mac structures from RFC 8152 section C.5. let tests: Vec<(CoseMac, &'static str)> = vec![ ( CoseMacBuilder::new() .protected( HeaderBuilder::new() .algorithm(iana::Algorithm::AES_MAC_256_64) .build(), ) .payload(b"This is the content.".to_vec()) .tag(hex::decode("9e1226ba1f81b848").unwrap()) .add_recipient( CoseRecipientBuilder::new() .unprotected( HeaderBuilder::new() .algorithm(iana::Algorithm::Direct) .key_id(b"our-secret".to_vec()) .build(), ) .ciphertext(vec![]) .build(), ) .build(), concat!( "d861", "85", "43", "a1010f", "a0", "54", "546869732069732074686520636f6e74656e742e", "48", "9e1226ba1f81b848", "81", "83", "40", "a2", "01", "25", "04", "4a", "6f75722d736563726574", "40", ), ), ( CoseMacBuilder::new() .protected(HeaderBuilder::new().algorithm(iana::Algorithm::HMAC_256_256).build()) .payload(b"This is the content.".to_vec()) .tag(hex::decode("81a03448acd3d305376eaa11fb3fe416a955be2cbe7ec96f012c994bc3f16a41").unwrap()) .add_recipient( CoseRecipientBuilder::new() .protected(HeaderBuilder::new().algorithm(iana::Algorithm::ECDH_SS_HKDF_256).build()) .unprotected( HeaderBuilder::new() .key_id(b"meriadoc.brandybuck@buckland.<EMAIL>".to_vec()) .value( iana::HeaderAlgorithmParameter::StaticKeyId as i64, Value::Bytes(b"<EMAIL>".to_vec()) ) .value( iana::HeaderAlgorithmParameter::PartyUNonce as i64, Value::Bytes(hex::decode("4d8553e7e74f3c6a3a9dd3ef286a8195cbf8a23d19558ccfec7d34b824f42d92bd06bd2c7f0271f0214e141fb779ae2856abf585a58368b017e7f2a9e5ce4db5").unwrap()) ) .build(), ) .ciphertext(vec![]) .build(), ) .build(), // Note: contents of maps have been re-ordered from the RFC to canonical ordering. concat!( "d861", "85", "43", "a10105", "a0", "54", "546869732069732074686520636f6e74656e742e", "5820", "<KEY>", "81", "83", "44", "a101381a", "a3", "04", "5824", "6d65726961646f632e6272616e64796275636b406275636b6c616e642e6578616d706c65", "22", "5821", "706572656772696e2e746f6f6b407475636b626f726f7567682e6578616d706c65", "35", "5840", "4d8553e7e74f3c6a3a9dd3ef286a8195cbf8a23d19558ccfec7d34b824f42d92bd06bd2c7f0271f0214e141fb779ae2856abf585a58368b017e7f2a9e5ce4db5", "40", ), ), ( CoseMacBuilder::new() .protected(HeaderBuilder::new().algorithm(iana::Algorithm::AES_MAC_128_64).build()) .payload(b"This is the content.".to_vec()) .tag(hex::decode("36f5afaf0bab5d43").unwrap()) .add_recipient( CoseRecipientBuilder::new() .unprotected( HeaderBuilder::new() .algorithm(iana::Algorithm::A256KW) .key_id(b"<KEY>".to_vec()) .build(), ) .ciphertext(hex::decode("711ab0dc2fc4585dce27effa6781c8093eba906f227b6eb0").unwrap()) .build(), ) .build(), concat!( "d861", "85", "43", "a1010e", "a0", "54", "546869732069732074686520636f6e74656e742e", "48", "36f5afaf0bab5d43", "81", "83", "40", "a2", "01", "24", "04", "5824", "30313863306165352d346439622d343731622d626664362d656566333134626337303337", "5818", "711ab0dc2fc4585dce27effa6781c8093eba906f227b6eb0", ), ), ( CoseMacBuilder::new() .protected(HeaderBuilder::new().algorithm(iana::Algorithm::HMAC_256_256).build()) .payload(b"This is the content.".to_vec()) .tag(hex::decode("bf48235e809b5c42e995f2b7d5fa13620e7ed834e337f6aa43df161e49e9323e").unwrap()) .add_recipient( CoseRecipientBuilder::new() .protected(HeaderBuilder::new().algorithm(iana::Algorithm::ECDH_ES_A128KW).build()) .unprotected( HeaderBuilder::new() .value(iana::HeaderAlgorithmParameter::EphemeralKey as i64, CoseKeyBuilder::new_ec2_pub_key_y_sign(iana::EllipticCurve::P_521, hex::decode("<KEY>").unwrap(), true) .build().to_cbor_value().unwrap()) .key_id(b"bilbo.baggins@hobbiton.example".to_vec()) .build(), ) .ciphertext(hex::decode("<KEY>").unwrap()) .build(), ) .add_recipient( CoseRecipientBuilder::new() .unprotected( HeaderBuilder::new() .algorithm(iana::Algorithm::A256KW) .key_id(b"<KEY>".to_vec()) .build(), ) .ciphertext(hex::decode("0b2c7cfce04e98276342d6476a7723c090dfdd15f9a518e7736549e998370695e6d6a83b4ae507bb").unwrap()) .build(), ) .build(), // Note: contents of maps have been re-ordered from the RFC to canonical ordering. concat!( "d861", "85", "43", "a10105", "a0", "54", "546869732069732074686520636f6e74656e742e", "5820", "bf48235e809b5c42e995f2b7d5fa13620e7ed834e337f6aa43df161e49e9323e", "82", "83", "44", "a101381c", "a2", "04", "581e", "62696c626f2e62616767696e7340686f626269746f6e2e6578616d706c65", "20", "a4", "01", "02", "20", "03", "21", "5842", "0043b12669acac3fd27898ffba0bcd2e6c366d53bc4db71f909a759304acfb5e18cdc7ba0b13ff8c7636271a6924b1ac63c02688075b55ef2d613574e7dc242f79c3", "22", "f5", "5828", "<KEY>", "83", "40", "a2", "01", "24", "04", "5824", "30313863306165352d346439622d343731622d626664362d656566333134626337303337", "5828", "0b2c7cfce04e98276342d6476a7723c090dfdd15f9a518e7736549e998370695e6d6a83b4ae507bb", ), ), ]; for (i, (mac, mac_data)) in tests.iter().enumerate() { let got = mac.clone().to_tagged_vec().unwrap(); assert_eq!(*mac_data, hex::encode(&got), "case {}", i); let mut got = CoseMac::from_tagged_slice(&got).unwrap(); got.protected.original_data = None; for mut recip in &mut got.recipients { recip.protected.original_data = None; } for mut sig in &mut got.unprotected.counter_signatures { sig.protected.original_data = None; } assert_eq!(*mac, got); } } #[test] fn test_cose_mac0_decode() { let tests: Vec<(CoseMac0, &'static str)> = vec![ ( CoseMac0Builder::new().build(), concat!( "84", // 4-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "f6", // null "40", // 0-bstr ), ), ( CoseMac0Builder::new().payload(vec![]).build(), concat!( "84", // 4-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr ), ), ]; for (i, (mac, mac_data)) in tests.iter().enumerate() { let got = mac.clone().to_vec().unwrap(); assert_eq!(*mac_data, hex::encode(&got), "case {}", i); let mut got = CoseMac0::from_slice(&got).unwrap(); got.protected.original_data = None; assert_eq!(*mac, got); } } #[test] fn test_cose_mac0_decode_fail() { let tests = vec![ ( concat!( "a2", // 2-map (should be tuple) "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "4100", // 0-bstr "40", // 0-bstr ), "expected array", ), ( concat!( "83", // 3-tuple (should be 4-tuple) "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr ), "expected array with 4 items", ), ( concat!( "84", // 4-tuple "80", // 0-tuple (should be bstr) "a0", // 0-map "40", // 0-bstr "40", // 0-bstr ), "expected bstr", ), ( concat!( "84", // 4-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "40", // 0-bstr (should be map) "40", // 0-bstr "40", // 0-bstr ), "expected map", ), ( concat!( "84", // 4-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "60", // 0-tstr (should be bstr) "40", // 0-bstr ), "expected bstr", ), ( concat!( "84", // 4-tuple "40", // 0-bstr (special case for empty protected headers, rather than 41a0) "a0", // 0-map "40", // 0-bstr "60", // 0-tstr ), "expected bstr", ), ]; for (mac_data, err_msg) in tests.iter() { let data = hex::decode(mac_data).unwrap(); let result = CoseMac0::from_slice(&data); expect_err(result, err_msg); } } #[test] fn test_rfc8152_cose_mac0_decode() { // COSE_Mac0 structures from RFC 8152 section C.5. let tests: Vec<(CoseMac0, &'static str)> = vec![( CoseMac0Builder::new() .protected( HeaderBuilder::new() .algorithm(iana::Algorithm::AES_MAC_256_64) .build(), ) .payload(b"This is the content.".to_vec()) .tag(hex::decode("726043745027214f").unwrap()) .build(), concat!( "d1", "84", "43", "a1010f", "a0", "54", "546869732069732074686520636f6e74656e742e", "48", "726043745027214f", ), )]; for (i, (mac, mac_data)) in tests.iter().enumerate() { let got = mac.clone().to_tagged_vec().unwrap(); assert_eq!(*mac_data, hex::encode(&got), "case {}", i); let mut got = CoseMac0::from_tagged_slice(&got).unwrap(); got.protected.original_data = None; assert_eq!(*mac, got); } } struct FakeMac {} impl FakeMac { fn compute(&self, data: &[u8]) -> Vec<u8> { let mut val = 0u8; for b in data { val ^= b; } vec![val] } fn verify(&self, tag: &[u8], data: &[u8]) -> Result<(), String> { if self.compute(data) == tag { Ok(()) } else { Err("mismatch".to_owned()) } } fn try_compute(&self, data: &[u8]) -> Result<Vec<u8>, String> { Ok(self.compute(data)) } fn fail_compute(&self, _data: &[u8]) -> Result<Vec<u8>, String> { Err("failed".to_string()) } } #[test] fn test_cose_mac_roundtrip() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut mac = CoseMacBuilder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .create_tag(external_aad, |data| tagger.compute(data)) .build(); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // Changing an unprotected header leaves a correct tag. mac.unprotected.content_type = Some(ContentType::Text("text/plain".to_owned())); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // Providing a different `aad` means the tag won't validate assert!(mac .verify_tag(b"not aad", |tag, data| tagger.verify(tag, data)) .is_err()); // Changing a protected header invalidates the tag. mac.protected = ProtectedHeader::default(); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_err()); } #[test] fn test_cose_mac_noncanonical() { let tagger = FakeMac {}; let external_aad = b"aad"; // Build an empty protected header from a non-canonical input of 41a0 rather than 40. let protected = ProtectedHeader::from_cbor_bstr(Value::Bytes(vec![0xa0])).unwrap(); assert_eq!(protected.header, Header::default()); assert_eq!(protected.original_data, Some(vec![0xa0])); let mut mac = CoseMac { protected: protected.clone(), payload: Some(b"data".to_vec()), ..Default::default() }; let tbm = mac.tbm(external_aad); mac.tag = tagger.compute(&tbm); // Checking the MAC should still succeed, because the `ProtectedHeader` // includes the wire data and uses it for building the input. assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // However, if we attempt to build the same decryption inputs by hand (thus not including the // non-canonical wire data)... let recreated_mac = CoseMacBuilder::new() .protected(protected.header) .payload(b"data".to_vec()) .tag(mac.tag) .build(); // ...then the transplanted tag will not verify, because the re-building of the // inputs will use the canonical encoding of the protected header, which is not what was // originally used for the input. assert!(recreated_mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_err()); } #[test] fn test_cose_mac_tag_result() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut _mac = CoseMacBuilder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .try_create_tag(external_aad, |data| tagger.try_compute(data)) .unwrap() .build(); // Cope with MAC creation failure. let result = CoseMacBuilder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .try_create_tag(external_aad, |data| tagger.fail_compute(data)); expect_err(result, "failed"); } #[test] #[should_panic] fn test_cose_mac_create_tag_no_payload() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let _mac = CoseMacBuilder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) // Creating a tag before a payload has been set will panic. .create_tag(external_aad, |data| tagger.compute(data)) .build(); } #[test] #[should_panic] fn test_cose_mac_verify_tag_no_payload() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut mac = CoseMacBuilder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .create_tag(external_aad, |data| tagger.compute(data)) .build(); mac.payload = None; // Trying to verify with no payload available panics. let _result = mac.verify_tag(external_aad, |tag, data| tagger.verify(tag, data)); } #[test] fn test_cose_mac0_roundtrip() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut mac = CoseMac0Builder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .create_tag(external_aad, |data| tagger.compute(data)) .build(); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // Changing an unprotected header leaves a correct tag. mac.unprotected.content_type = Some(ContentType::Text("text/plain".to_owned())); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // Providing a different `aad` means the tag won't validate assert!(mac .verify_tag(b"not aad", |tag, data| tagger.verify(tag, data)) .is_err()); // Changing a protected header invalidates the tag. mac.protected = ProtectedHeader::default(); assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_err()); } #[test] fn test_cose_mac0_noncanonical() { let tagger = FakeMac {}; let external_aad = b"aad"; // Build an empty protected header from a non-canonical input of 41a0 rather than 40. let protected = ProtectedHeader::from_cbor_bstr(Value::Bytes(vec![0xa0])).unwrap(); assert_eq!(protected.header, Header::default()); assert_eq!(protected.original_data, Some(vec![0xa0])); let mut mac = CoseMac0 { protected: protected.clone(), payload: Some(b"data".to_vec()), ..Default::default() }; let tbm = mac.tbm(external_aad); mac.tag = tagger.compute(&tbm); // Checking the MAC should still succeed, because the `ProtectedHeader` // includes the wire data and uses it for building the input. assert!(mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_ok()); // However, if we attempt to build the same decryption inputs by hand (thus not including the // non-canonical wire data)... let recreated_mac = CoseMac0Builder::new() .protected(protected.header) .payload(b"data".to_vec()) .tag(mac.tag) .build(); // ...then the transplanted tag will not verify, because the re-building of the // inputs will use the canonical encoding of the protected header, which is not what was // originally used for the input. assert!(recreated_mac .verify_tag(external_aad, |tag, data| tagger.verify(tag, data)) .is_err()); } #[test] fn test_cose_mac0_tag_result() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut _mac = CoseMac0Builder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .try_create_tag(external_aad, |data| tagger.try_compute(data)) .unwrap() .build(); // Cope with MAC creation failure. let result = CoseMac0Builder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .try_create_tag(external_aad, |data| tagger.fail_compute(data)); expect_err(result, "failed"); } #[test] #[should_panic] fn test_cose_mac0_create_tag_no_payload() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let _mac = CoseMac0Builder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) // Creating a tag before a payload has been set will panic. .create_tag(external_aad, |data| tagger.compute(data)) .build(); } #[test] #[should_panic] fn test_cose_mac0_verify_tag_no_payload() { let tagger = FakeMac {}; let external_aad = b"This is the external aad"; let mut mac = CoseMac0Builder::new() .protected(HeaderBuilder::new().key_id(b"11".to_vec()).build()) .payload(b"This is the data".to_vec()) .create_tag(external_aad, |data| tagger.compute(data)) .build(); mac.payload = None; // Trying to verify with no payload available panics. let _result = mac.verify_tag(external_aad, |tag, data| tagger.verify(tag, data)); }
rust
Here's the basic concept: Spaces wants to give you new ways to set up group chats with your friends. In these chatrooms, you can plan trips, talk about shared interests and, of course, link each other to relevant YouTube videos and Google search results. It'll probably flop. And this is why. While Spaces combines a number of individually innovative features, its biggest problem is that nobody seems to know what the app is truly for. Over on Hacker News - a place you'd expect to be open to new experiments - the vast majority of early responses have almost universally expressed puzzlement, if not outright skepticism. Because Spaces can be used for practically anything, from building to-do lists to discussing "Game of Thrones" spoilers, it may as well be the Swiss-army knife of apps - a utility for all occasions and projects. It is what you make of it. And that is precisely Spaces's shortcoming in a world where apps have become increasingly specialized. Instagram and Snapchat are built around sharing user-created photos and videos. WhatsApp has become one of the world's most dominant platforms for messaging. Slack is that, but for work and business. The most successful social apps of the day are organized around a single, dedicated purpose. Spaces is not that. Spaces is a social app that's looking for a purpose. And it's not clear Internet users will readily give it one. In its blog post announcing Spaces, Google said that as it stands, sharing in small groups "isn't easy." "From book clubs to house hunts to weekend trips and more, getting friends into the same app can be challenging," Google said. "Sharing things typically involves hopping between apps to copy and paste links. Group conversations often don't stay on topic. . . We wanted to build a better group sharing experience." It's true: Switching apps to paste a link can be a chore. So is trying to find that one line of text from a hundred chats ago. But one of the top reasons that convincing people to use the same app is hard is because there are already so many apps that can accomplish the same thing, such that settling on one can be difficult. And they all have their loyalists. Some people prefer email. Others use Evernote. Still others use Google's own products, like Google Docs or Spreadsheets. That Google apparently believes the right way to fix this non-problem is with another app suggests that the search giant is still looking for The One Social Platform to Rule Them All, when the rest of the Internet has already moved on. We're deep into the next generation of social networking, where general-purpose socializing has transitioned to more specific, siloed forms of socializing. Some of these silos happen to be owned by general-purpose social networks (in the way Facebook owns WhatsApp and Instagram, for instance). Still, rather than explicitly destroying those silos and integrating them into the parent product, the siloed brands have continued living with their own branding and personality. Where Spaces appears to shine are its more technical accomplishments. Just like another product Google debuted recently, users of Spaces can search Google and YouTube straight from the app, and insert the results right into the chat stream without leaving it. That can potentially save a lot of time. And Spaces can also do image recognition - type in "skyline," and Spaces will show you images in your chat history that match that description, even if there are no keywords associated with it. With the growing sophistication of artificial intelligence, it's great to see the fruits of that labor make their way into more products. But neither of those features will likely be enough to propel Spaces onto everyone's smartphones. If Google really wanted to drive adoption, it might consider putting that technology into Google Hangouts, which itself is closely integrated with Google's previous attempt at a social network, Google Plus. Spaces is an app that's out of its time. And today's Internet users probably won't have the time or the space to fit it on their already-crowded phones.
english
Italian right-wing leader Matteo Salvini will go on trial for "kidnapping" migrants in September for his decision in 2019 as interior minister not to allow an NGO ship packed with migrants dock in an Italian port. Salvini’s nationalist League (Lega) formed part of a coalition government between 2018 and 2019 with the populist 5-Star Movement. In that role, Salvini launched a crackdown against illegal migration from Africa, which was assisted by NGO migrant ships that would pick up migrants in the Mediterranean then bring them to Italy. ITALY'S SALVINI SLAMS FRANCE FOR MIGRANT CRISIS: 'I DON'T TAKE LESSONS ON HUMANITY AND GENEROSITY FROM MACRON' Salvini accused the groups of encouraging illegal migration and called on the E. U. to assist Italy in combating the flow of migrants from Libya. In that role, Salvini was one of the most prominent nationalist-populist leaders to take office after the 2015 migrant crisis that rocked the continent. As part of that fight, he refused to allow the rescue ship, run by the NGO Open Arms, to dock with the 147 migrants it had on board in August 2019. After a 19-day stand off, migrants remaining on board were allowed to disembark. The ship was not barred from going anywhere, other than the Italian ports. Salvini was investigated at the time for possible kidnapping charges, and on Saturday a judge ordered him to stand trial in September. Salvini stood by his decisions while in office, and said he was going on trial with "a clear conscience. " "I’m going on trial for this, for having defended my country? " he tweeted after the decision. "I’ll go with my head held high, also in your name. " The Spanish-based Open Arms welcomed the decision, calling it "a reminder to Europe and the world that there are principles of individual responsibility in politics. " While the League was removed from the governing coalition in 2019 after it collapsed when Salvini moved a no-confidence motion, polling suggests it is the most popular party in the country. The Associated Press contributed to this report.
english
# josephk.io This is a blog to share my life and thoughts about software, mostly frontend-related stuffs. ## License This project is licensed under MIT except for *posts/*, *devlogs/* and *data/* directories, which are the contents of the project itself. - The non-code content of this project is copyright <NAME> and used by permission for this project only. - The underlying source code is licensed under the MIT license.
markdown
<filename>tests/chromium/custom-elements/spec/resources/custom-elements-helpers.js<gh_stars>1-10 function create_window_in_test(t, srcdoc) { let p = new Promise((resolve) => { let f = document.createElement('iframe'); srcdoc = srcdoc || ''; // srcdoc = `<script src="../../../node_modules/../../dist/CustomElementsV1.min.js"></script>\n` + srcdoc = `<script src="../../../node_modules/../../src/CustomElements/v1/CustomElements.js"></script>\n` + `<script>customElements.enableFlush = true;</script>\n` + srcdoc; f.srcdoc = srcdoc; f.onload = (event) => { let w = f.contentWindow; t.add_cleanup(() => f.parentNode && f.remove()); resolve(w); }; document.body.appendChild(f); }); return p; } function test_with_window(f, name, srcdoc) { promise_test((t) => { return create_window_in_test(t, srcdoc) .then((w) => { f(w); }); }, name); } function assert_throws_dom_exception(global_context, code, func, description) { let exception; assert_throws(code, () => { try { func.call(this); } catch(e) { exception = e; throw e; } }, description); assert_true(exception instanceof global_context.DOMException, 'DOMException on the appropriate window'); } function assert_array_equals_callback_invocations(actual, expected, description) { assert_equals(actual.length, expected.length); for (let len=actual.length, i=0; i<len; ++i) { let callback = expected[i][0]; assert_equals(actual[i][0], expected[i][0], callback + ' callback should be invoked'); assert_equals(actual[i][1], expected[i][1], callback + ' should be invoked on the element ' + expected[i][1]); assert_array_equals(actual[i][2], expected[i][2], callback + ' should be invoked with the arguments ' + expected[i][2]); } } function assert_is_upgraded(element, className, description) { assert_true(element.matches(':defined'), description); assert_equals(Object.getPrototypeOf(element), className.prototype, description); }
javascript
#include "VrHooks.h" #include "Config.h" #include "PostProcessor.h" #include <openvr.h> #include <MinHook.h> #include <unordered_map> namespace { std::unordered_map<void*, void*> hooksToOriginal; bool ivrSystemHooked = false; bool ivrCompositorHooked = false; vr::PostProcessor postProcessor; void InstallVirtualFunctionHook(void *instance, uint32_t methodPos, void *hookFunction) { LPVOID* vtable = *((LPVOID**)instance); LPVOID pTarget = vtable[methodPos]; LPVOID pOriginal = nullptr; MH_CreateHook(pTarget, hookFunction, &pOriginal); MH_EnableHook(pTarget); hooksToOriginal[hookFunction] = pOriginal; } template<typename T> T CallOriginal(T hookFunction) { return (T)hooksToOriginal[hookFunction]; } void IVRSystem_GetRecommendedRenderTargetSize(vr::IVRSystem *self, uint32_t *pnWidth, uint32_t *pnHeight) { CallOriginal(IVRSystem_GetRecommendedRenderTargetSize)(self, pnWidth, pnHeight); if (Config::Instance().fsrEnabled && Config::Instance().renderScale < 1) { *pnWidth *= Config::Instance().renderScale; *pnHeight *= Config::Instance().renderScale; } //Log() << "Recommended render target size: " << *pnWidth << "x" << *pnHeight << "\n"; } vr::EVRCompositorError IVRCompositor012_Submit(vr::IVRCompositor *self, vr::EVREye eEye, const vr::Texture_t *pTexture, const vr::VRTextureBounds_t *pBounds, vr::EVRSubmitFlags nSubmitFlags) { void *origHandle = pTexture->handle; postProcessor.Apply(eEye, pTexture, pBounds, nSubmitFlags); vr::EVRCompositorError error = CallOriginal(IVRCompositor012_Submit)(self, eEye, pTexture, pBounds, nSubmitFlags); if (error != vr::VRCompositorError_None) { Log() << "Error when submitting for eye " << eEye << ": " << error << std::endl; } const_cast<vr::Texture_t*>(pTexture)->handle = origHandle; return error; } } void InitHooks() { Log() << "Initializing hooks...\n"; MH_Initialize(); } void ShutdownHooks() { Log() << "Shutting down hooks...\n"; MH_Uninitialize(); hooksToOriginal.clear(); ivrSystemHooked = false; ivrCompositorHooked = false; postProcessor.Reset(); } void HookVRInterface(const char *version, void *instance) { // Only install hooks once, for the first interface version encountered to avoid duplicated hooks // This is necessary because vrclient.dll may create an internal instance with a different version // than the application to translate older versions, which with hooks installed for both would cause // an infinite loop Log() << "Requested interface " << version << "\n"; // ----------------------- // - Hooks for IVRSystem - // ----------------------- unsigned int system_version = 0; if (!ivrSystemHooked && std::sscanf(version, "IVRSystem_%u", &system_version)) { // The 'IVRSystem::GetRecommendedRenderTargetSize' function definition has been the same since the initial // release of OpenVR; however, in early versions there was an additional method in front of it. uint32_t methodPos = (system_version >= 9 ? 0 : 1); Log() << "Injecting GetRecommendedRenderTargetSize into " << version << std::endl; InstallVirtualFunctionHook(instance, methodPos, IVRSystem_GetRecommendedRenderTargetSize); ivrSystemHooked = true; } // --------------------------- // - Hooks for IVRCompositor - // --------------------------- unsigned int compositor_version = 0; if (!ivrCompositorHooked && std::sscanf(version, "IVRCompositor_%u", &compositor_version)) { // The 'IVRCompositor::Submit' function definition has been stable and has had the same virtual function // table index since the OpenVR 1.0 release (which was at 'IVRCompositor_015') if (compositor_version >= 12) { Log() << "Injecting Submit into " << version << std::endl; InstallVirtualFunctionHook(instance, 5, IVRCompositor012_Submit); ivrCompositorHooked = true; } } }
cpp
Divya Spandana has won a defamation case against Asianet and its subsidiary Suvarna News channels for wrongfully linking her in the IPL match-fixing case of 2013. The court has ordered the channels to pay the actress-politician rupees fifty lakhs as damages. This is regarding the channels posting Divya's image while reporting the case that two Kannada actresses are involved without mentioning her name. Divya had filed defamation and sought compensation of ten crore rupees but the court has awarded her something much lesser than that considering her position. Judge Patil Nagalinganagouda in his order has stated "On perusal of the records, it is clear that plaintiff has blemishless records and known as good actress in Kannada film industry and she has also worked as Member of Parliament". The judge added ""the test to be applied for determining the question whether a statement is defamatory is to be found from the answer to the question 'would the words tend to lower the plaintiff in the estimation of right-thinking members of society? ". If the answer is yes, then it has to be held that the statement is defamatory. ". . there are no records produced on behalf of the defendant to show plaintiff being a brand ambassador of Royal Challengers Bangalore Team was involved in betting and spot fixing scandal as transmitted in the questioned program by the defendants. Hence, this Court is of the opinion that act of defendants is in complete violation of the journalistic ethics and deliberately to destroy the popularity of the plaintiff and act of defendant is mala fide with an intention to defame her dignity", observed the Court. "It is settled principle of law that reputation is the most valuable asset of a person. It is much more valuable than any amount of money. When the above said questioned program/still images do have the tendency to destroy such reputation, the injury complained of by the plaintiff would be irreparable", Follow us on Google News and stay updated with the latest!
english
{ "deploy":"deploy", "addgit":"gitadd", "addssh":"sshkey", "adduser":"addadminuser", "init":"init", "getssh":"gitadd", "removeuser":"removeadminuser", "updateuser":"updateadminuser" }
json
Supreme Court of Nepal. (File photo) KATHMANDU: A full court meeting of the Supreme Court (SC) convened by Chief Justice Cholendra Shumsher Rana for Monday has been ‘postponed’ due to lack of cooperation from the Apex Court judges. The full court meeting could not be held as 14 Supreme Court judges ‘boycotted’ the meeting by convening another meeting at the same time. Earlier, Chief Justice Rana had said that all the issues raised regarding his efficiency and the judiciary would be discussed in the full court. However, SC spokesperson Baburam Dahal said that the full court could not be convened due to the lack of support from the SC judges. A separate meeting of 14 judges is being held simultaneously at the same the Chief Justice Rana called meeting was scheduled. According to high placed sources, the meeting will now decide how to proceed ahead. Similarly, a meeting of the Nepal Bar Association and the SC Bar Association is also being held to discuss on the latest developments in the court.
english
const moipSdk = require('moip-sdk-node') module.exports = ({ options }) => moipSdk.default(options)
javascript
Meng issued a report on China’s drug control situation at a bimonthly legislative session that opened Tuesday, also the International Day against Drug Abuse and Illicit Trafficking. Police have cracked 329,000 drug-related criminal cases over the past four years, apprehended 378,000 suspects and confiscated 22. 5 tonnes of heroin, 36. 9 tonnes of methamphetamine, 3. 7 tonnes of opium and 15. 5 tonnes of ketamine, Meng said. The Golden Triangle, one of Asia’s two major illicit opium-producing areas, is still the most harmful source of drugs in China, according to the report. Chinese police seized 5. 1 tonnes of heroin and 7. 9 tonnes of methamphetamine produced in, and smuggled from, the region last year, which made up 72 percent and 55 percent of the total nationwide seizures of heroin and methamphetamine, respectively, up 55 percent and 62 percent year-on-year, according to the report. Police also cracked 223 drug smuggling cases originating in the Golden Crescent area, another major Asian region for illicit opium production, in 2011, up nearly 30 percent year-on-year, the report said. The Golden Crescent is located at the crossroads of Central, South and Western Asia, and includes Afghanistan, the world’s largest opium producer. It noted that the task of tackling drug trafficking has become increasingly arduous, as more cocaine from South America and methamphetamine from Northeast Asia have been smuggled into China. China has about 1. 19 million registered heroin addicts, or 63 percent of the country’s total drug users, Meng Jianzhu said, adding that 655,000 Chinese were using synthetic drugs or stimulants. About 922,000 Chinese participated in compulsory isolation for drug rehabilitation over the past four years, Meng said. Of the total, 641,000 drug users did not relapse in the three years following treatment, he said. The government has helped more than 40,000 recovering drug addicts return to society following rehabilitation through various programs, including employment assistance programs, according to Meng. Social force contributing to drug control should be encouraged and the establishment of drug control associations should be strengthened, Meng said, adding that the system encouraging whistleblowing should be improved. Medical conditions in drug rehabilitation centers should be improved so that treatment for HIV-infected drug addicts can be strengthened, he said. The Minister of Public Security said China will further deepen cooperation with the neighboring countries of Myanmar, Laos, Thailand, Vietnam and Cambodia, so to reduce the influence of the Golden Triangle. Drug control cooperation with Pakistan, Afghanistan, Russia and Kazakstan will also be strengthened in order to enhance crackdowns on drug trafficking in the Golden Crescent, he said. China will also improve information exchanges, judicial assistance and law enforcement training with the United States and Australia, and the drug control mechanism under the framework of the Shanghai Cooperation Organization will also be strengthened, Meng said.
english
<reponame>kkogovsek/schemosaurus<gh_stars>1-10 import test from 'ava' import schemosaurus from '../../index.js' test('Should work for blank array', async t => { const validator = schemosaurus.types.ARRAY(async n => n) t.deepEqual(await validator([]), []) }) test('Should throw for invalid children type', async t => { const validator = schemosaurus.types.ARRAY( schemosaurus.types.OBJECT() ) await t.throws(validator([{}, 1]), TypeError) }) test('Should be ok for valid members', async t => { const validator = schemosaurus.types.ARRAY( schemosaurus.types.OBJECT() ) t.deepEqual(await validator([{ a: 1 }]), [{ a: 1 }]) })
javascript
{ "@metadata": { "authors": [ "Beta16" ] }, "title": "Intuition", "fullname": "Internazionalizzazione per strumenti", "current-settings": "Impostazioni attuali", "current-language": "Lingua selezionata", "settings-legend": "Impostazioni", "choose-language": "Scegli la lingua", "clear-cookies": "cancellare i cookie", "renew-cookies": "rinnovare i cookies", "cookie-expiration": "Scadenza del cookie", "clearcookies-success": "Cookie cancellati con successo", "renewcookies-success": "Cookies rinnovati! Saranno validi per i prossimi $1.", "tab-overview": "Vista d'insieme", "tab-settings": "Impostazioni", "tab-about": "Informazioni", "tab-demo": "Esempio", "usage": "Strumenti tradotti da Intuition." }
json
export class Comment { public id: number | undefined = undefined; public text: string | undefined = undefined; public created: Date | undefined = undefined; public longitude: number | undefined = undefined; public latitude: number | undefined = undefined; public locationName: string | undefined = undefined; public postId: number | undefined = undefined; }
typescript
<gh_stars>0 use crate::constants::{DEFAULT_SSM_ACME_PATH, ENV_SSM_PARAMETER_PATH}; use std::{ env::var_os, str::FromStr, }; use rusoto_core::{Region, region::ParseRegionError}; #[derive(Clone, Debug)] pub(crate) struct CertificateComponents { pub(crate) cert_pem: String, pub(crate) chain_pem: String, pub(crate) fullchain_pem: String, pub(crate) pkey_pem: String, } pub(crate) const fn default_false() -> bool { false } pub(crate) fn default_aes256() -> String { "AES256".to_string() } pub(crate) fn empty_string() -> String { "".to_string() } pub(crate) fn ssm_acme_parameter_path() -> String { match var_os(ENV_SSM_PARAMETER_PATH) { Some(path) => path.to_string_lossy().into(), None => DEFAULT_SSM_ACME_PATH.to_string(), } } pub(crate) fn validate_and_sanitize_ssm_parameter_path(path: &str) -> Option<String> { let path = if path.ends_with("/") { &path[..path.len() - 1] } else { path }; for (i, el) in path.split("/").enumerate() { if i == 0 { if el.len() != 0 { return None; } } else { if i == 1 { if el == "aws" || el == "ssm" { return None; } } if el.len() == 0 { return None; } for c in el.bytes() { if !c.is_ascii_alphanumeric() && c != b'_' && c != b'.' && c != b'-' { return None; } } } } Some(path.to_string()) } pub(crate) fn s3_bucket_location_constraint_to_region(location_constraint: Option<String>) -> Result<Region, ParseRegionError> { match location_constraint { None => Ok(Region::UsEast1), Some(ref name) => match name.as_ref() { "" => Ok(Region::UsEast1), "EU" => Ok(Region::EuWest1), _ => Region::from_str(name), }, } }
rust
/* ==UserStyle== @name Replace the new BrainSlug with the old one @namespace USO Archive @author Murdoink @description `BigRACIALSLUR foreverhttp://www.twitch.tv/bwana/c/2151897 lol` @version 20130413.21.26 @license NO-REDISTRIBUTION @preprocessor uso ==/UserStyle== */ .emo-671 {background-image: url("http://i.imgur.com/82dC0fy.png")!important;;}
css
{"InVinoVeritas": ["TruthInTelevision", "CantHoldHisLiquor", "AlcoholInducedIdiocy", "DrunkenMaster", "SuperSerum", "LiquidCourage", "MushroomSamba", "ButLiquorIsQuicker", "HigherUnderstandingThroughDrugs", "NeverGetsDrunk", "BottledHeroicResolve", "RealLife", "BottledHeroicResolve", "PinkElephants", "WhatYouAreInTheDark", "WhatDidIDoLastNight", "MirrorMoralityMachine", "TheStoic", "OcularGushers", "LoserProtagonist", "CasanovaWannabe", "NiceGuy", "Jerkass", "Flanderization", "SergeantRock", "DrillSergeantNasty", "HairTriggerTemper", "AxCrazy", "ButLiquorIsQuicker", "UnresolvedSexualTension", "KissingUnderTheInfluence", "LooseLips", "TruthSerum", "MacGuffin", "HardDrinkingPartyGirl", "TeamMom", "TheTalk", "ColdTurkeysAreEverywhere", "CheerfulChild", "DeadpanSnarker", "NonindicativeName", "BitchInSheepsClothing", "TrueColors", "ChristmasCake", "DeathIsCheap", "BoisterousBruiser", "Omake", "AscendedMeme", "UnexplainedAccent", "TheDrunkenSailor", "MarshmallowHell", "FriendToAllLivingThings", "UpToEleven", "Flanderization", "HoYay", "IceQueen", "CantHoldHisLiquor", "FemmeFatalons", "HandicappedBadass", "DestructiveSavior", "BigBrotherInstinct", "AlcoholHic", "CantHoldHisLiquor", "CantSpitItOut", "CannotSpitItOut", "YouKilledMyFather", "CryCute", "TheQuietOne", "ThreeAmigos", "InLoveWithTheMark", "WhatIsThisThingYouCallLove", "BreadEggsMilkSquick", "EatsBabies", "TheStoic", "FieryRedhead", "CantHoldHerLiquor", "BoisterousBruiser", "Omake", "AscendedMeme", "UnexplainedAccent", "TheDrunkenSailor", "HandicappedBadass", "DestructiveSavior", "YouKilledMyFather", "CryCute", "TheQuietOne", "ThreeAmigos", "InLoveWithTheMark", "WhatIsThisThingYouCallLove", "LesYay", "GeniusBruiser", "TheCaligula", "PlayedForDrama", "LesYay", "CrapsackWorld", "MessianicArchetype", "ItSucksToBeTheChosenOne", "TrappedInAnotherWorld", "CantHoldHisLiquor", "FemmeFatale", "MafiaPrincess", "IntrepidReporter", "CantHoldHisLiquor", "TeamMom", "WhamEpisode", "FramingDevice", "TheAlcoholic", "SternTeacher", "CoolTeacher", "InvokedTrope", "GoneHorriblyRight", "OffTheWagon", "BitchInSheepsClothing", "BlindDate", "HilarityEnsues", "EasyAmnesia", "LadyDrunk", "GRatedDrug", "DeanBitterman", "AxCrazy", "NonActionGuy", "TheBerserker", "GargleBlaster", "PrincessClassic", "NoodleIncident", "AllWomenAreLustful", "TheRepublicOfTrees", "KissingUnderTheInfluence", "HeelRealization", "HeelFaceTurn", "TheSociopath", "NotSoStoic", "BrutalHonesty", "OOCIsSeriousBusiness", "AxCrazy", "NonActionGuy", "TheBerserker", "GargleBlaster", "PrincessClassic", "NoodleIncident", "JerkassHasAPoint", "Foreshadowing", "PlayedForDrama", "FriendsWithBenefits", "EthicalSlut", "HilarityEnsues", "CasanovaWannabe", "TheSnarkKnight", "CreatorsPet", "BuffySpeak", "BritishStuffiness", "BeingPersonalIsntProfessional", "OhCanada", "MemeticBadass", "DoubleSubversion", "GoKartingWithBowser", "DrowningMySorrows", "ShipTease", "Foreshadowing", "EnfantTerrible", "CreepyChild", "RealityWarper", "Telepathy", "Thoughtcrime", "FateWorseThanDeath", "TheReasonYouSuckSpeech", "YouMonster", "StatusQuoIsGod", "ABirthdayNotABreak", "QuickNip", "DiscussedTrope", "LampshadeHanging", "CoitusEnsues", "AlternateHistory", "DrowningTheirSorrows", "WhatTheHellHero", "MemeticBadass", "GoKartingWithBowser", "DrowningMySorrows", "ShipTease", "Foreshadowing", "RockOpera", "SplitPersonality", "TheAlcoholic", "CallingTheOldManOut", "KidDetective", "TrueCompanions", "CassandraTruth", "PlaceboEffect", "MeaningfulName", "CantHoldHisLiquor", "HilarityEnsues", "HermitGuru", "NiceGuy", "HiddenDepths", "OrSoIHeard", "PlayerCharacter", "AffectionateNickname", "DemolitionsExpert", "AngryBlackMan", "TheAlcoholic", "ActionGirl", "JerkWithAHeartOfGold", "TheStoic", "MilesGloriosus", "GloryDays", "TheAlcoholic", "PlaceboEffect", "HilarityEnsues", "HermitGuru", "NiceGuy", "HiddenDepths", "OrSoIHeard", "PlayerCharacter", "AffectionateNickname", "ShrinkingViolet", "AboveTheInfluence", "InvokedTrope", "BigFun", "PlayerCharacter", "LoveConfession", "Jerkass", "Wangst", "TheStoic", "PlayedForDrama", "PlayedForLaughs", "KillerRabbit", "Succubus", "MasterOfTheMixedMessage", "KissingUnderTheInfluence", "LovableSexManiac", "WebcomicTime", "AnythingThatMoves", "LadykillerInLove", "DidNotThinkThisThrough", "Jerkass", "TheAlcoholic", "AlcoholInducedIdiocy", "WordOfGod", "PlayedForDrama", "PlayedForLaughs", "WebcomicTime", "AnythingThatMoves", "LadykillerInLove", "DidNotThinkThisThrough", "Jerkass", "SympatheticPOV", "CharacterDevelopment", "PunctuatedForEmphasis", "HoYay", "NeverGetsDrunk", "TheComciallySerious", "HoYay", "RealLife", "IncorruptiblePurePureness", "RealLife", "TruthSerum", "TruthSerum", "VodkaDrunkenski", "TheMafia", "GovernmentConspiracy", "LiquidCourage", "IncorruptiblePurePureness", "LiquidCourage"]}
json
<filename>sache.json { "name": "patterns", "description": "General styling patterns in SASS. Provides utility mixins for spacing, alignment and cleanup.", "tags": ["utility", "starter", "abstraction", "patterns"] }
json
The Agriculture Ministry has reckoned India’s foodgrain production to have fallen to 252. 68 million tonnes (mt) from the previous year’s record 265. 04 mt. Output of both rice and wheat are seen to be lower – at 104. 80 mt (106. 65 mt in 2013-14) and 88. 94 mt (95. 85), respectively – as per the fourth advance estimates of production released on Monday. However, despite lower production, government agencies have procured more rice and wheat from farmers this time compared to what they bought from the 2013-14 crop. For the ongoing 2014-15 paddy marketing season (October-September), rice procurement as on date totaled 31. 89 mt, which was higher than the 31. 86 mt purchased during the whole of 2013-14. The Food Corporation of India and state agencies similarly procured 28. 09 mt of wheat from the 2014-15 crop, as against 28. 02 mt from the preceding year’s production. Increased state purchases, notwithstanding lower production, are a result of two things. The first is a collapse of private demand, especially for exports on account of falling global grain prices. It has led to farmers offloading more of their produce to government agencies, even with only a marginal Rs 50/quintal hike in minimum support prices (the effective procurement price would be lower, in fact, after factoring in the withdrawal of additional bonuses paid by the Madhya Pradesh, Rajasthan and Chhattisgarh governments till 2013-14). The second factor has been unseasonal rains and hailstorms in March, causing widespread damage to the standing wheat crop and also poor quality of the harvested grain. That, in turn, also meant fewer private takers for this year’s wheat. All the surplus grain, then, flowed into government godowns, which was also enabled by the Centre’s move to relaxing quality specifications for wheat procurement to avoid distress sales by farmers.
english
The Gujarat police have arrested the mastermind in the illegal immigration scam, Bobby alias Bharat Patel, who is believed to have arranged the infiltration of the Dingucha family, which froze to death on the Canada border while crossing into the US, police said on Tuesday. Patel’s arrest from Ahmedabad by the Gujarat police’s State Monitoring Cell (SMC) on December 14, was in connection with a gambling raid in July last year that was being run in Ahmedabad under the garb of a charitable trust. “Bharat Patel was wanted in the Manpasand Gymkhana gambling case that was raided last year. We caught him recently and found that he is also an accused in another case of fake passport in Ahmedabad. The investigation is on and police have recovered about 94 passports of different individuals from Patel, many of which are fake,” said Nirja Gotru, additional director general of police (ADGP), SMC. SMC is formed to curb gambling and liquor trade in the state and Patel is allegedly one of the owners of the Manpasand Gymkhana. An illegal immigration scam came to light in January this year following the ‘Dingucha’ tragedy. Dingucha is the name of the village, about forty kilometers away from Ahmedabad and in Gandhinagar district, to which the family belonged. The incident that occurred in January this year showed how the pursuit for better opportunities has been driving residents of this village to developed countries, even by taking the illegal route by endangering their lives. According to a police official, the two main conspirators behind the human trafficking racket are Patel and Charanjit Singh. While Patel hails from a village in Mehsana, Charanjit Singh, who hails from Jalandhar is likely to have escaped to the US, the official said. Patel used to do odd jobs in Dingucha before he connected with human traffickers in different parts of India. The 47-year-old himself has over two dozen passports in his name, some even containing his biometric information, said people familiar with the matter. “He made small changes and has managed to get multiple passports from different passport offices. During the investigation by the Gujarat police in Dingucha and other nearby villages, the names of Bobby Patel and Charanjit Singh prominently figured in sending illegal immigrants from Gujarat to the US. “He is involved in illegal human trafficking and has cases against him in Ahmedabad, Kolkata, Mumbai and Delhi. A case was registered against him in Ahmedabad city for preparing a bogus passport,” the Gujarat police said in a statement on December 14. Charanjit Singh was based out of Delhi and ran a similar racket in other states. He had Patel as his associate for Gujarat, the people said. Patel extorted money anywhere between ₹70 lakh to ₹1 crore from the aspiring illegal immigrants and used a two-step approach for sending more than 200 people to Europe and US using Mexico and other routes, the people added. Patel initially went to the US in 1997 illegally and was caught in a year or so and even served jail term. Thereafter, he started using fake passports and started the human trafficking business. Charanjit Singh, who owns a bungalow in Delhi and is a US citizen, runs motels in the US and has connections in Nigeria, Turkey, Mexico and Canada. Using their contacts, Patel and Singh would establish that the illegal immigrants were in the foreign country only as tourists and then help them cross the border from Mexico or Canada and into the US, said police officials familiar with the matter. The Gujarat police and state agencies began hunting for human traffickers after the Canadian police found Jagdish Patel, 35, his wife Vaishali, 33, and their children Vihanga, 12, and Dharmik, 3, frozen to death in an empty field on January 19.
english
Former Bayern Munich defender Markus Babbel has hit out at Robert Lewandowski as he believes that the Pole’s contract stand-off is annoying and that he has made a circus out of things. The 33-year-old has less than eighteen months left on his current deal and is yet to sign an extension. Ever since he arrived at Bayern Munich in the summer of 2014, few players have been as lethal or prolific as Robert Lewandowski. The Polish international has thrived and scored goals at will for the German giants, netting an incredible 337 goals in just 365 appearances. That includes a sensational 41 league goals last season as well as his 54 goal tally in the 2019/20 season. But despite that, and the fact that the 33-year-old hasn’t stopped scoring this season, the Pole has become a figure of frustration this season. The forward currently has less than eighteen months left on his current contract and while negotiations are ongoing, the two parties are yet to come to an agreement. It has many fans and critics alike upset and with the protracted contract stand-off and Markus Babbel has admitted that the stand-off is now getting annoying especially given how much Bayern Munich love the forward. He also believes that the Pole needs to make sure that negotiations end quickly or else it could harm his reputation. “Lewandowski earns €25 million and wants more. No other Bayern player earns that much. There were times when he wanted to leave permanently, Bayern stood by him because they think a lot of him. There's a bit of gratitude - not just demands."
english
<gh_stars>0 { "name": "DK Base reference on Heroku", "description": "A reference project to collaborate and develop on Heroku.", "image": "heroku/java", "addons": [ "heroku-postgresql" ] }
json
{"contributors":null,"truncated":false,"text":"The threat of violence should not become an excuse or justification for restricting freedom of speech. #JeSuisCharlie http:\/\/t.co\/kXp2qJzFUM","in_reply_to_status_id":null,"id":553172900270727169,"favorite_count":116,"source":"<a href=\"http:\/\/twitter.com\" rel=\"nofollow\">Twitter Web Client<\/a>","retweeted":false,"coordinates":null,"entities":{"symbols":[],"user_mentions":[],"hashtags":[{"indices":[103,117],"text":"JeSuisCharlie"}],"urls":[],"media":[{"expanded_url":"http:\/\/twitter.com\/thenikhilkapur\/status\/553172900270727169\/photo\/1","display_url":"pic.twitter.com\/kXp2qJzFUM","url":"http:\/\/t.co\/kXp2qJzFUM","media_url_https":"https:\/\/pbs.twimg.com\/media\/B61D0hCCIAEJxps.png","id_str":"553172898735595521","sizes":{"small":{"h":316,"resize":"fit","w":340},"large":{"h":555,"resize":"fit","w":597},"medium":{"h":555,"resize":"fit","w":597},"thumb":{"h":150,"resize":"crop","w":150}},"indices":[118,140],"type":"photo","id":553172898735595521,"media_url":"http:\/\/pbs.twimg.com\/media\/B61D0hCCIAEJxps.png"}]},"in_reply_to_screen_name":null,"id_str":"553172900270727169","retweet_count":130,"in_reply_to_user_id":null,"favorited":false,"user":{"follow_request_sent":false,"profile_use_background_image":true,"profile_text_color":"666666","default_profile_image":false,"id":864871926,"profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme3\/bg.gif","verified":false,"profile_location":null,"profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/587313952004055040\/tJEnSRHj_normal.jpg","profile_sidebar_fill_color":"252429","entities":{"url":{"urls":[{"url":"http:\/\/t.co\/W07ndxgqEc","indices":[0,22],"expanded_url":"http:\/\/vine.co\/nikhilkapur","display_url":"vine.co\/nikhilkapur"}]},"description":{"urls":[]}},"followers_count":25565,"profile_sidebar_border_color":"FFFFFF","id_str":"864871926","profile_background_color":"ABB8C2","listed_count":28,"is_translation_enabled":false,"utc_offset":19800,"statuses_count":1608,"description":"I got some good tweets. Future Viner and famous person. Retired air guitar player.","friends_count":11713,"location":"Canada","profile_link_color":"002222","profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/587313952004055040\/tJEnSRHj_normal.jpg","following":false,"geo_enabled":false,"profile_banner_url":"https:\/\/pbs.twimg.com\/profile_banners\/864871926\/1398937568","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme3\/bg.gif","name":"Nikhil","lang":"en","profile_background_tile":false,"favourites_count":29,"screen_name":"thenikhilkapur","notifications":false,"url":"http:\/\/t.co\/W07ndxgqEc","created_at":"Sat Oct 06 15:42:23 +0000 2012","contributors_enabled":false,"time_zone":"New Delhi","protected":false,"default_profile":false,"is_translator":false},"geo":null,"in_reply_to_user_id_str":null,"possibly_sensitive":false,"lang":"en","created_at":"Thu Jan 08 12:54:31 +0000 2015","in_reply_to_status_id_str":null,"place":null,"extended_entities":{"media":[{"expanded_url":"http:\/\/twitter.com\/thenikhilkapur\/status\/553172900270727169\/photo\/1","display_url":"pic.twitter.com\/kXp2qJzFUM","url":"http:\/\/t.co\/kXp2qJzFUM","media_url_https":"https:\/\/pbs.twimg.com\/media\/B61D0hCCIAEJxps.png","id_str":"553172898735595521","sizes":{"small":{"h":316,"resize":"fit","w":340},"large":{"h":555,"resize":"fit","w":597},"medium":{"h":555,"resize":"fit","w":597},"thumb":{"h":150,"resize":"crop","w":150}},"indices":[118,140],"type":"photo","id":553172898735595521,"media_url":"http:\/\/pbs.twimg.com\/media\/B61D0hCCIAEJxps.png"}]}}
json
<filename>app/__init__.py from flask import Flask from flask_bootstrap import Bootstrap from config import config_options bootstrap = Bootstrap() def create_app(config_name): app = Flask(__name__,instance_relative_config = True) #it allows us to go to the instane #create the app configurations app.config.from_object(config_options[config_name]) # Initializing flask extensions that was installed bootstrap.init_app(app) #registering the blueprint from .main import main as main_blueprint app.register_blueprint(main_blueprint) #setting config from .requests import configure_request configure_request(app) return app
python
Google has updated its mobile maps application to version 4.2 to now include directions for your bike too. Sadly only for the US, you can select the bike icon when getting directions to get an optimal bicycling route for Android phones packing 1.6 or above (still not the Hero, sadly). For a more scenic ride, you'll also see the bike layer on the map which shows dedicated bike-only trails (dark green), roads with bike lanes (light green), or roads that are good for biking but lack a dedicated lane (dashed green). There's also a dedicated icon for the Navigation function too, so if you want to use your phone as a free sat nav then you won't have to go through the palaver of powering up Google Maps just to point your car at the shops. The options there are pretty simple - you either enter your destination by speech or typing it in, and also navigate to any of your contacts with geo-location data enabled. You can also share the location with your friends, which is obviously very helpful if you're all trying to drive to some place to meet up - when you've chosen where you're off too, simply click to send the location via email or SMS. There's also the option to share a snapshot of where you are in the same way, or use Latitude to broadcast the results to all those in your network - the Google world is your oyster. Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team. Gareth has been part of the consumer technology world in a career spanning three decades. He started life as a staff writer on the fledgling TechRadar, and has grown with the site (primarily as phones, tablets and wearables editor) until becoming Global Editor in Chief in 2018. Gareth has written over 4,000 articles for TechRadar, has contributed expert insight to a number of other publications, chaired panels on zeitgeist technologies, presented at the Gadget Show Live as well as representing the brand on TV and radio for multiple channels including Sky, BBC, ITV and Al-Jazeera. Passionate about fitness, he can bore anyone rigid about stress management, sleep tracking, heart rate variance as well as bemoaning something about the latest iPhone, Galaxy or OLED TV.
english
Consumer staples, once the darlings of the Dalal Street, are losing steam amid concerns of growing inflationary pressures. The Nifty FMCG index, which yielded negative returns only once since 2009, has lost 6.4% over the last six months, against the Nifty50’s return of about 1%. The fall would have been much steeper, but for cigarette major ITC, which held up with a 12.3% gains. ITC – the eight-largest weighted stock on the Nifty, dominates the FMCG gauge with over a quarter of weight on the index. Analysts believe inflation and weak rural sentiments are here to stay for near-term. “We expect negligible (or negative) volume growth and mid-to-high single digit value growth across the staples pack. Food & Beverage categories should fare better than some home & personal care categories. We expect Tata Consumer Products, Nestle India and ITC (FMCG) to report resilient print relative to peers,” said Kotak Institutional Equities on Wednesday. Shares of Marico, plunged as much as 4.2% on Wednesday – the biggest loss since March 2020 – after the company said the sector was facing subdued consumption and weak rural sentiment in its update for Q4FY22. According to an exchange filing, its revenue growth for January–March was in low single digits, while volumes were marginally positive. “Despite the challenging macro context, the India business stayed relatively firm, riding on focused execution and market share gains,” the company said. Godrej Consumer Products leads the pack of the fallen over the last six months with a 26.1% decline. That was followed by Hindustan Unilever, Emami and Britannia Industries. While the stock of HUL has come off 20.3% in the past six months, Emami and Britannia Industries saw their shares falling by 17.8% and 16.7%, respectively. Shares of Marico have declined 7.6% in the last six months whereas Colgate Palmolive slid 5.3% during the same period. Kotak Institutional Equities expect low-to-mid single digit value growth for Marico and Colgate-Palmolive, led by flattish volumes. According to the brokerage, raw material inflation would continue to impact gross margins for most companies despite price hikes. The consumption trends remained subdued during the quarter, amid weak rural sentiment and inflation in global commodities aggravating due to geo-political tensions. Despite price hikes across FMCG categories, persistent inflation continued to hurt consumer wallets.
english
<reponame>geh4y8/ram1500 /* #page-header it just included for the examples */ #page-header { float: left; display: block; } /* Infowindow Roboto font override */ .gm-style div, .gm-style span, .gm-style label, .gm-style a { font-family: Arial, Helvetica, sans-serif; } .bh-sl-error { clear: both; float: left; width: 100%; padding: 10px 0; color: #ae2118; font-weight: bold; } .bh-sl-container { float: left; margin-left: 20px; width: 875px; font: normal 14px/20px Arial, Helvetica, sans-serif; color: #333333; } .bh-sl-container .bh-sl-form-container { clear: left; float: left; margin-top: 15px; width: 100%; } .bh-sl-container .form-input { float: left; margin-top: 3px; } .bh-sl-container .form-input label { font-weight: bold; } .bh-sl-container .form-input input, .bh-sl-container .form-input select { margin: 0 15px 0 10px; padding: 6px 12px; line-height: 16px; border: 1px solid #cccccc; font: normal 14px/18px Arial, Helvetica, sans-serif; -webkit-border-radius: 4px; border-radius: 4px; } .bh-sl-container button { float: left; cursor: pointer; margin-top: 3px; padding: 6px 12px; background: #ae2118; border: 1px solid #961f17; font: normal 14px/18px Arial, Helvetica, sans-serif; color: #ffffff; white-space: nowrap; -webkit-border-radius: 4px; border-radius: 4px; } .bh-sl-container .bh-sl-loading { float: left; margin: 4px 0 0 10px; width: 16px; height: 16px; background: url(../img/ajax-loader.gif) no-repeat; } .bh-sl-container .bh-sl-filters-container { clear: both; float: left; width: 100%; margin: 15px 0; } .bh-sl-container .bh-sl-filters-container .bh-sl-filters { list-style: none; float: left; padding: 0; margin: 0 100px 0 0; } .bh-sl-container .bh-sl-filters-container .bh-sl-filters li { display: block; clear: left; float: left; width: 100%; margin: 5px 0; } .bh-sl-container .bh-sl-filters-container .bh-sl-filters li label { display: inline; } .bh-sl-container .bh-sl-filters-container .bh-sl-filters li input { display: block; float: left; margin: 2px 8px 2px 0; } .bh-sl-container .bh-sl-map-container { clear: left; float: left; margin-top: 27px; height: 530px; width: 875px; } .bh-sl-container .bh-sl-map-container a { color: #e76737; text-decoration: none; } .bh-sl-container .bh-sl-map-container a:hover, .bh-sl-container .bh-sl-map-container a:active { text-decoration: underline; } .bh-sl-container .bh-sl-loc-list { float: left; width: 30%; height: 530px; overflow-x: auto; } .bh-sl-container .bh-sl-loc-list ul { display: block; clear: left; float: left; width: 100%; list-style: none; margin: 0; padding: 0; } .bh-sl-container .bh-sl-loc-list ul li { display: block; clear: left; float: left; margin: 3% 4%; cursor: pointer; width: 92%; border: 1px solid #ffffff; /* Adding this to prevent moving li elements when adding the list-focus class*/ } .bh-sl-container .bh-sl-loc-list .list-label { float: left; margin: 10px 0 0 6px; padding: 2px 3px; width: 10%; max-width: 25px; text-align: center; background: #451400; color: #ffffff; font-weight: bold; } .bh-sl-container .bh-sl-loc-list .list-details { float: left; margin-left: 6px; width: 80%; } .bh-sl-container .bh-sl-loc-list .list-details .list-content { padding: 10px; } .bh-sl-container .bh-sl-loc-list .list-details .loc-dist { font-weight: bold; font-style: italic; color: #8e8e8e; } .bh-sl-container .bh-sl-loc-list .list-focus { border: 1px solid rgba(150, 31, 23, 0.4); -moz-box-shadow: 0 0 8px rgba(150, 31, 23, 0.4); -webkit-box-shadow: 0 0 8px rgba(150, 31, 23, 0.4); box-shadow: 0 0 8px rgba(150, 31, 23, 0.4); transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s; } .bh-sl-container .bh-sl-loc-list .bh-sl-close-directions-container { width: 100%; height: 20px; position: relative; } .bh-sl-container .bh-sl-loc-list .bh-sl-close-directions-container .bh-sl-close-icon { top: 0; right: 6px; } .bh-sl-container .bh-sl-loc-list .bh-sl-noresults-title { font-weight: bold; color: #ae2118; } .bh-sl-container .loc-name { /* Picked up by both list and infowindows */ color: #ae2118; font-weight: bold; } .bh-sl-container .bh-sl-map { float: left; width: 70%; height: 530px; } .bh-sl-container .bh-sl-pagination-container { clear: both; } .bh-sl-container .bh-sl-pagination-container ol { list-style-type: none; text-align: center; margin: 0; padding: 10px 0; } .bh-sl-container .bh-sl-pagination-container ol li { display: inline-block; padding: 10px; cursor: pointer; font: bold 14px Arial, Helvetica, sans-serif; color: #ae2118; text-decoration: underline; } .bh-sl-container .bh-sl-pagination-container ol .bh-sl-current { color: #333333; cursor: auto; text-decoration: none; } /* Modal window */ .bh-sl-overlay { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 10000; background: url(../img/overlay-bg.png) repeat; } .bh-sl-overlay .bh-sl-modal-window { position: absolute; left: 50%; margin-left: -460px; /* width divided by 2 */ margin-top: 60px; width: 920px; height: 590px; z-index: 10010; background: #ffffff; border-radius: 10px; box-shadow: 0 0 10px #656565; } .bh-sl-overlay .bh-sl-modal-window .bh-sl-modal-content { float: left; padding: 0 22px; /* there's already a margin on the top of the map-container div */ } .bh-sl-overlay .bh-sl-modal-window .bh-sl-close-icon { top: -6px; right: -6px; } .bh-sl-close-icon { position: absolute; width: 18px; height: 18px; cursor: pointer; background: #2c2c2c url(../img/close-icon.png) 3px 3px no-repeat; border: 1px solid #000000; border-radius: 3px; box-shadow: 0 0 3px #656565; }
css
<reponame>mucelee/rpi_sensys from os import environ import time from Utilities.configParser import Config from SAN.sensorAgentNode import SensorAgentNode from SAN.contextBrokerHandler import ContextBrokerHandler from irSensor import IrSensor CONFIG_FILE = "fiware_config.ini" parsedConfigFile = Config(CONFIG_FILE) if __name__ == '__main__': # Optionally set verbose logging of json data ContextBrokerHandler.verboseLogging = False # Create an instance of the Fiware OCB handler ocbHandler = ContextBrokerHandler(parsedConfigFile.getFiwareServerAddress()) # Create SAN instance sensorAgentNode = SensorAgentNode() # Create sensor irSensor = IrSensor() sensorAgentNode.add_sensor(irSensor) # Attach SAN to OCB handler ocbHandler.attach_entity(sensorAgentNode) # Register entities with OCB server ocbHandler.register_entities() # Keep running until user Ctrl+C's try: while True: pass except KeyboardInterrupt: pass print "Done" # Delete entities after shutting down ocbHandler.unregister_entities()
python
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class KeyPair(pulumi.CustomResource): """ Provides an [EC2 key pair](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) resource. A key pair is used to control login access to EC2 instances. Currently this resource requires an existing user-supplied key pair. This key pair's public key will be registered with AWS to allow logging-in to EC2 instances. When importing an existing key pair the public key material may be in any format supported by AWS. Supported formats (per the [AWS documentation](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws)) are: * OpenSSH public key format (the format in ~/.ssh/authorized_keys) * Base64 encoded DER format * SSH public key file format as specified in RFC4716 """ def __init__(__self__, __name__, __opts__=None, key_name=None, key_name_prefix=None, public_key=None): """Create a KeyPair resource with the given unique name, props, and options.""" if not __name__: raise TypeError('Missing resource name argument (for URN creation)') if not isinstance(__name__, basestring): raise TypeError('Expected resource name to be a string') if __opts__ and not isinstance(__opts__, pulumi.ResourceOptions): raise TypeError('Expected resource options to be a ResourceOptions instance') __props__ = dict() if key_name and not isinstance(key_name, basestring): raise TypeError('Expected property key_name to be a basestring') __self__.key_name = key_name """ The name for the key pair. """ __props__['keyName'] = key_name if key_name_prefix and not isinstance(key_name_prefix, basestring): raise TypeError('Expected property key_name_prefix to be a basestring') __self__.key_name_prefix = key_name_prefix """ Creates a unique name beginning with the specified prefix. Conflicts with `key_name`. """ __props__['keyNamePrefix'] = key_name_prefix if not public_key: raise TypeError('Missing required property public_key') elif not isinstance(public_key, basestring): raise TypeError('Expected property public_key to be a basestring') __self__.public_key = public_key """ The public key material. """ __props__['publicKey'] = public_key __self__.fingerprint = pulumi.runtime.UNKNOWN """ The MD5 public key fingerprint as specified in section 4 of RFC 4716. """ super(KeyPair, __self__).__init__( 'aws:ec2/keyPair:KeyPair', __name__, __props__, __opts__) def set_outputs(self, outs): if 'fingerprint' in outs: self.fingerprint = outs['fingerprint'] if 'keyName' in outs: self.key_name = outs['keyName'] if 'keyNamePrefix' in outs: self.key_name_prefix = outs['keyNamePrefix'] if 'publicKey' in outs: self.public_key = outs['publicKey']
python
<filename>sri/dc/2.0.0-alpha.3.json {"dc.css":"sha256-wXxOb0XAnOoVJnUO0KmOs66oWWEmZerYKWrW5Q2Dda4=","dc.js":"sha256-2wRW6wFosloEVe1SYpKmmt8IuHre/vw7PWE7YkRF/bQ=","dc.min.css":"sha256-ML3zOcA8ZFC46uDz0a0py4GVoEYgGkU3Zpc7f+Rm9uo=","dc.min.js":"sha256-3VgnplqnJjnlkg2PzrU/Hx/fO74k3q9kOE3yy7b/Ey0="}
json
Goldberg wrestled the final match of his WWE contract at Elimination Chamber 2022. It made sense that the final bout on his contract would be to help elevate the company's top star Roman Reigns. After all, it was two years ago when they were originally going to headline WrestleMania until their match was changed as Reigns pulled out of the event. At Elimination Chamber 2022, Reigns made Goldberg pass out with the guillotine, adding another massive name to his list of fallen opponents since late August 2020. According to a report from Wrestlingnews. co, Goldberg could potentially be retired as there has been uncertainty about his next contract. If so, Roman Reigns will have retired the legend. Sportskeeda's Shruti Sadbhav wrote: "According to WrestlingNews. co, Goldberg is done with the final match of his current contract. Thus, he is technically a free agent. Roman Reigns will get credit for retiring the former Universal Champion if the latter doesn't re-sign a new contract with WWE. " We hope this is true because The Tribal Chief is the perfect final opponent for the Hall of Famer. With that said, it wouldn't be surprising to see Goldberg return later this year or at some point in 2023.
english
It's been years since ‘Kala Chashma’ from Baar Baar Dekho was released and we clearly remember how big of a hit the song turned out to be. Not a single day since then has passed when the song has stopped being a party favorite. It's that song that always excites people and makes them groove at any hour of the day and at any party at night. So, it wouldn't be surprising to see Hollywood’s biggest stars dancing on ‘Kala Chashma’ as if there is no tomorrow! Base Baar Dekho is a 2016 release and the film has amassed love and adoration from the audience for its music which includes songs like ‘Kho Gye Hum Kahan’, ‘Sau Aasman’, ‘Dariya’, and ‘Kala Chashma’ among many other superhits. The film starred Sidharth Malhotra and Katrina Kaif in the lead roles. Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
english
{"2010":"","2016":"","AdditionalNote":"","Department":"Житомирський апеляційний суд","Link":"https://drive.google.com/open?id=0BygiyWAl79DMeW9hZWxsaW9lbnc","Link 2015":"http://zta.court.gov.ua/userfiles/file/sud0690/Zhiznevskiy2015.pdf","Name":"<NAME>","Note":"У меня","Position":"Голова Житомирського апеляційного суду","Region":"Житомирська область","Youtube":"","analytics":[{"c":3,"fc":1,"ff":113.9,"ffa":2,"fi":291633,"h":458.36,"ha":2,"i":553668,"k":163.18,"ka":2,"l":3664,"la":2,"y":2014},{"c":2,"fc":1,"ff":118,"ffa":3,"fi":254587,"h":74,"ha":1,"i":936061,"j":1,"k":167,"ka":3,"l":3664,"la":5,"m":208000,"y":2015},{"c":2,"fc":1,"ff":118,"ffa":3,"fi":318400,"h":74,"ha":1,"i":564539,"k":167,"ka":3,"l":3664,"la":5,"m":356000,"y":2016},{"c":2,"fc":2,"ff":92,"ffa":1,"fh":204,"fha":1,"fi":405109,"fl":970,"fla":1,"h":74,"ha":1,"i":641945,"k":167,"ka":3,"l":3664,"la":5,"m":758000,"y":2017},{"c":3,"fc":2,"ff":92,"ffa":1,"fh":204,"fha":1,"fi":353682,"fl":970,"fla":1,"h":74,"ha":1,"i":3481325,"k":194.9,"ka":3,"l":3664,"la":5,"m":788000,"y":2018},{"b":2662038.19,"c":3,"fc":2,"ff":92,"ffa":1,"fh":204,"fha":1,"fi":4251569,"fl":970,"fla":1,"h":74,"ha":1,"k":194.9,"ka":3,"l":3664,"la":5,"m":388000,"y":2019},{"y":2020}],"declarationsLinks":[{"id":"vulyk_60_188","provider":"declarations.com.ua.opendata","url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/zhyznievskyi_iurii_vasylovych.pdf","year":2014},{"id":"nacp_382de323-616a-426b-ab83-045334e34592","provider":"declarations.com.ua.opendata","year":2015},{"id":"nacp_80daf481-b2a8-482a-ad51-41820cb6edb4","provider":"declarations.com.ua.opendata","year":2016},{"id":"nacp_01a4bf31-aa35-4d91-a709-1ca6fe6af5e6","provider":"declarations.com.ua.opendata","year":2017},{"id":"nacp_8e326e30-dab4-4159-8982-e5c2f23156a3","provider":"declarations.com.ua.opendata","year":2018},{"id":"nacp_b4034444-1dff-4d95-80eb-ab9865e18925","provider":"declarations.com.ua.opendata","year":2019},{"id":"nacp_5de53845-e3e1-4f7c-9267-a1194f1181ca","provider":"declarations.com.ua.opendata","year":2020}],"field8":"","field9":"","key":"zhiznievskiy_yuriy_vasilovich","type":"judge","Декларація доброчесності судді подано у 2016 році (вперше)":"http://vkksu.gov.ua/userfiles/declaracii-suddiv/aszho/zhyznievskyiyuv.PDF","Декларація родинних зв’язків судді подано у 2016 році":"http://vkksu.gov.ua/userfiles/declaracii-suddiv/aszho/zhyznievskyiyuvrz.PDF","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","Клейма":"","Кількість дисциплінарних стягнень":"","Кількість скарг":"1","Кількість справ":"","Оскаржені":"","ПІБ2":"","Фото":"http://picua.org/img/2017-12/12/73lm8fht7hw9h31alvm28rer4.jpg","Як живе":"http://blog.prosud.info/zhiznievskiy_yuriy_vasilovich.html","декларації 2015":"","судові рішення по справах Майдану":""}
json
We are all conscious about our lives and try to make healthier choices and to live a better and longer life. However, unfortunate circumstances do not always come because of something we do or do not do. The coronavirus pandemic has made it abundantly clear that no matter how cautious we are with our eating, sleeping, and exercising, there is still the fear of creating provision for medical emergencies or for untimely circumstances that lead to your family losing the earning member. We all want to do right by our family and support them emotionally as well as financially. So why not create a financial portfolio that is diversified to suit the different needs of everyone in your family and help you at every stage of life? You can earn substantial capital appreciation by investing in mutual funds and ULIPs but if you are looking to cover your life while you are at it, then you are going to need term insurance with return of premium benefit. Start investing in your future while making provisions for your family’s future and financial freedom as well. Why Should You Opt For A Term Plan With Return Of Premium? Besides offering a return of annualised premiums as a survival benefit, term plans with ROP provide policyholders and their beneficiaries with many other benefits as well. From accidental death benefit to a waiver of premium and from disability benefit to protection against critical illnesses, term insurance with ROP benefit is the go-to plan for every individual who wants to protect various aspects of their life. Take a quick look at various term insurance benefits you can avail if you opt for a term plan with return of premium i. e. , TROP plan: The TROP plan is different from the regular term plans as this plan will provide an amount of annualized premium throughout the term of your policy. In case of your untimely demise, even during the policy tenure, your beneficiaries receive the full sum assured under this insurance plan. Alternatively, if you live out the insurance period, you will still be receiving the amount of premium* you had paid under the plan. Basically, you can avail both the policy itself and its survival benefits. The term insurance plan with ROP also offers cover against life-threatening illnesses, making it an ideal insurance plan to cover various aspects of your life. One such plan that offers coverage against as many as 40 different health conditions is the Max Life Smart Term Plan, which offers immediate lump sum pay-outs from your policy coverage and helps you get the best possible treatment and care. Every individual needs a life insurance plan that can evolve with their evolving needs as a newly married individual would have different needs as compared to a father of two or someone who has just retired from his job. Term insurance with return of premium makes place for your needs and aspirations that continue to grow and change all your life. The plan gives you the option to increase your life cover as and when important events occur in life, which can include marriage, childbirth etc. According to the MWPA, section 6 says that if a married woman purchases this TROP insurance for themselves and nominates her spouse and/or children, then no other individual, including her parents, relatives, friends etc, will have any rights to all the benefits listed under the term plan with return of premium. Also, the insured individual will not have any rights to the benefits under this policy if they survive the term either. You can choose to entitle your wife and children for the term insurance with return of premium under the Married Women’s Property Act of 1874, giving them both access to insurance cover payouts in case of your untimely death. Moreover, they will also get the survival benefits in the form of a refund of premiums in case you have survived the policy term. Often when we begin investing or even buy insurance for that matter, we tend to look for those options that can deliver better returns on investments compared to other instruments. And rightly so since it is important to try and maximize our savings and create wealth from it. However, we must all try to opt for plans and instrument tools that not only help maximize our savings but also offer security and protection to multiple aspects of one’s life. A term plan with return of premium benefit (ROP) will not only help in securing your loved ones in your absence but also provide them with the financial support they need. Source:
english
{"featureCount":1,"formatVersion":1,"histograms":{"meta":[{"arrayParams":{"chunkSize":10000,"length":1,"urlTemplate":"hist-1000000-{Chunk}.json"},"basesPerBin":"1000000"}],"stats":[{"basesPerBin":"1000000","max":1,"mean":1}]},"intervals":{"classes":[{"attributes":["Start","End","Strand","Id","Name","Seq_id","Source","Subfeatures","Type"],"isArrayAttr":{"Subfeatures":1}},{"attributes":["Start","End","Strand","Coverage","Id","Identity","Indels","Matches","Mismatches","Name","Seq_id","Source","Subfeatures","Type","Unknowns"],"isArrayAttr":{"Subfeatures":1}},{"attributes":["Start","End","Strand","Id","Name","Score","Seq_id","Source","Target","Type"],"isArrayAttr":{}},{"attributes":["Start","End","Strand","Id","Name","Phase","Score","Seq_id","Source","Target","Type"],"isArrayAttr":{}},{"attributes":["Start","End","Strand","Id","Name","Seq_id","Source","Type"],"isArrayAttr":{}},{"attributes":["Start","End","Chunk"],"isArrayAttr":{"Sublist":1}}],"count":1,"lazyClass":5,"maxEnd":762561,"minStart":760691,"nclist":[[0,760691,762561,1,"IDtig00009103.g32.t1.cds.path1","Antimicrobial_Peptide.cds","Scaffold_25","AUGUSTUS",[[1,760691,762561,1,"99.3","IDtig00009103.g32.t1.cds.mrna1","100.0","0","280","0","Antimicrobial_Peptide.cds","Scaffold_25","AUGUSTUS",[[2,762496,762561,1,"IDtig00009103.g32.t1.cds.mrna1.exon1","Antimicrobial_Peptide.cds",100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","exon"],[2,762331,762373,1,"IDtig00009103.g32.t1.cds.mrna1.exon2","Antimicrobial_Peptide.cds",100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","exon"],[2,760902,760957,1,"IDtig00009103.g32.t1.cds.mrna1.exon3","Antimicrobial_Peptide.cds",100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","exon"],[2,760691,760809,1,"IDtig00009103.g32.t1.cds.mrna1.exon4","Antimicrobial_Peptide.cds",100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","exon"],[3,762496,762560,1,"IDtig00009103.g32.t1.cds.mrna1.cds1","Antimicrobial_Peptide.cds",0,100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","CDS"],[3,762331,762373,1,"IDtig00009103.g32.t1.cds.mrna1.cds2","Antimicrobial_Peptide.cds",1,100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","CDS"],[3,760902,760957,1,"IDtig00009103.g32.t1.cds.mrna1.cds3","Antimicrobial_Peptide.cds",1,100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","CDS"],[3,760691,760809,1,"IDtig00009103.g32.t1.cds.mrna1.cds4","Antimicrobial_Peptide.cds",2,100,"Scaffold_25","AUGUSTUS","IDtig00009103.g32.t1.cds","CDS"]],"mRNA","0"]],"gene"]],"urlTemplate":"lf-{Chunk}.json"}}
json
United States President Barack Obama has conceded that al-Qaeda is still active, despite the fact that its top leadership has been decimated in the last few years. “It’s true that al-Qaeda is still active, at least sort of remnants of it are staging in other parts of North Africa and the Middle East,” Mr. Obama told the Comedy Central “The Daily Show” in an interview. “We’ve been able to do is to say we ended the war in Iraq, we’re winding down the war in Afghanistan, we’ve gone after al-Qaeda and its leadership,” he said. Earlier in the day, his spokesman said that al-Qaeda remains the number one enemy of the US, even as strength of this terrorist organisation has been considerably weakened and many of its top leadership killed. “Al Qaeda remains our number-one enemy and our number — one foe. That is why we focus so much of our attention on al-Qaeda and its affiliates, because the struggle against al-Qaeda continues, and the (US) President has been focused on it since the day he took office,” White House Press Secretary Jay Carney told reporters. “This President, when he came into office, made clear his intention of refocusing our efforts on those who attacked the United States of America and killed Americans on September 11th, 2001. And he has kept that promise,” he said. “Our efforts against al-Qaeda have inarguably led to success and progress, but the work is not done. Al-Qaeda central and a leadership there has been devastated by our efforts and the efforts of our allies,” Mr. Carney said.
english
Prepare yourself. This will blow your mind off. Assuming you haven’t yet read or seen this video by Pranav Mistry, a genius working on the Sixth sense technology which uses Augmented Reality concept to super imposes digital information on the physical world. This small device which can be worn around the neck like a pendant consists of inexpensive, off-the-shelf hardware. Two cables connect an LED mini-projector and webcam to a Web-enabled mobile phone, but the system can easily be made wireless as per Pranav. All the boring informational stuff will come later. Let us first jump into this amazing video. Make sure you watch it till the end. Video is courtesy TEDIndia. If you are not lost after watching the mind-blowing video and still around, let me tell you that this prototype costs approximately $350 to build. The bigger news is, as Pranav mentioned in the video, the digital Sixth sense technology will be made open-source very soon! For whatever reasons you couldn’t watch the video, here is a brief-up on what the video is all about. The Sixth sense mobile computing device you see in the image on top is installed with software that analyzes the gestures and the objects captured by the camera so that it can respond and provide the appropriate information. For example, Mistry traces a small circle on his wrist using his index finger, SixthSense will project a watch onto his wrist: There are many more gestures that the device recognizes – drawing a magnifying glass projects a map application, while drawing the ‘@’ symbol lets the user check his/her email. SixthSense can also interact with everyday objects, like in the image below where it reveals that the flight which the user has a ticket to is delayed. And here we see SixthSense providing Amazon’s rating for a book on the book’s cover itself: Sixth sense can pull out the videos related to the latest news you are currently reading on the newspaper: Amazing, plain awesome. The possibility of actually having such a device in the real future is what blows my mind off. Not just Tom Cruise (in Minority Report), even we can have and use such a device! Pranav Mistry, who hails from Palampur, a small town in Gujarat, India, Research Assistant and PhD candidate at the MIT Media Lab. Before joining MIT he worked as a UX Researcher with Microsoft. You can know more about Pranav ‘Zombie’ Mistry and the latest on Sixth sense. What you think of this article? Do let us know through your valuable comments below.
english
<reponame>saulakravitz/davinci-pdex-formulary<filename>fsh/ig-data/input/examples/FormularyDrugV1002.json { "resourceType": "MedicationKnowledge", "meta": { "profile": [ "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-FormularyDrug" ] }, "id": "formularydrugV1002", "extension": [ { "url": "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-DrugTierID-extension", "valueCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/us/Davinci-drug-formulary/CodeSystem/usdf-DrugTierCS", "code": "brand", "display": "Brand" } ] } }, { "url": "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-PriorAuthorization-extension", "valueBoolean": false }, { "url": "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-StepTherapyLimit-extension", "valueBoolean": false }, { "url": "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-QuantityLimit-extension", "valueBoolean": false }, { "url": "http://hl7.org/fhir/us/Davinci-drug-formulary/StructureDefinition/usdf-PlanID-extension", "valueString": "40308VA0240008" } ], "code": { "coding": [ { "system": "http://www.nlm.nih.gov/research/umls/rxnorm", "code": "1049640", "display": "Percocet 5 MG / 325 MG Oral Tablet" } ] } }
json
<filename>airbyte-integrations/singer/local_csv/destination/src/test-integration/resources/spec.json { "documentationUrl": "https://docs.airbyte.io/integrations/destinations/local-csv", "connectionSpecification": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Singer CSV Target Spec", "type": "object", "required": ["delimiter", "quotechar"], "additionalProperties": false, "properties": { "delimiter": { "description": "Delimiter used to separate fields.", "type": "string", "examples": [","] }, "quotechar": { "description": "The character used to quote strings containing special characters in the CSV. See <a href=\"https://docs.python.org/3/library/csv.html#csv.Dialect.quotechar\">python docs</a> for more details.", "type": "string", "examples": ["\""] }, "destination_path": { "description": "Path to the directory where csv files will be written. Check out the <a href=\"https://docs.airbyte.io/integrations/destinations/local-csv\">docs</a> for more details on the root of this path.", "type": "string" } } } }
json
{ "prefix":"!", "modrole":"mod perms role id", "version":"1.0", "afterhourstext":"afterhours text channel id", "afterhoursvoice":"afterhours voice channel id", "logs":"logs channel id", "shitpost":"shitpost-central channel id", "voice":"voice-chat text channel id", "token":"bot account token", "owner":"owners user id", "owners":["owner1", "owner2"], "abbyId":"abby account user ID", "guildid":"guild id", "djrole":"dj role id", "ratelimitmessage":3000, "ratelimit":3000, "heartbeat":"heartbeat channel id", "ytkey":"Youtbe api key", "scid":"soundcloud client key", "pullP":[150, 170, 315, 250, 95, 20], "_pullComment":"pull percents-- 1: 15%, 2: 17%, 3: 31.5%, 4: 25%, 5: 9.5%, 6: 2.0%" }
json
The latest episode of House of the Dragon paves the way for the real hell that’s about to break loose as King Viserys I (Paddy Considine) has finally passed away. He hasn’t made one single sensible decision on the show, but ironically, he held the House Targaryen and, well, the series somewhat together. We’ve seen his slow decline for the past few episodes, but we weren’t quite so ready to see him rotting away. Nevertheless, Paddy Considine brought some gravitas to the character in one of the turning points of the show where a feeble, yet determined Viserys I stumbles into the court, staggering and just about makes his way to the Iron Throne. It’s the last time where we will see him exude any sort of power, or well, whatever it is that he did try. The episode ends with him making a prophecy about the Song of Ice and Fire — a hint at Jon Snow from Game of Thrones, but that’s a hundred years later. Well now, he’s gone, it’s time for a civil war to break out. Nevertheless, the episode did explore moments of intrigue — a lot better than the last few, because it was getting exhausting with the numerous deliveries, and complicated bloodlines. Daemon and Rhaenyra –uncle and niece — are now wedded (it’s canon, pick your battles). But Daemon isn’t the menacing, diabolic man we saw at the beginning of series. In fact, he’s shown the most character development. It’s even baffling to admit considering he murdered his first wife. But ah, morality is a fickle game in anything related to Game of Thrones — after all, we did see Jaimie Lannister go through eight years of redemption after almost killing a child, amongst other terrible things, only to have it all undone at the end. Daemon is still got a hot temper, and this show seems to revel in it (as do we, let’s be honest) — but now, it’s only for very specific occasions, like when his wife is slandered in court. It’s actually a tragically hilarious scene in the show. Vaemond Corlys insults Rhaenyra and her children, and a doddering Viserys demands his tongue. Daemon coolly steps in and chops off his head, as nonchalantly as one cuts vegetables. “He can keep his tongue,” he says. Matt Smith’s Daemon is a deliciously different character and he brings something exciting to the show—there’s a definite lull when he isn’t around. Another moment of levity was between Rhaenyra and Alicient, the two women who were once close friends and perhaps would have continued being so had they not been thrown into the diabolic game of thrones. They’re both hard and steely in their missions and fixations, but just for a moments, there was a softness when Rhaenyra raised a toast to Alicent at the dinner with Viserys. It was a moment almost played to perfection, as the two women look as if they wonder, what would have happened had things just been different… you know, had Alicent not married Rhaenyra’s father. Yet, Alicent is a far more gripping character than Rhaenyra. There’s a cold warmth that she emanates — she’s brutal and conniving, yet riveting. Not Cersei Lannister yet, but she’s got the potential to be just as powerfully crazy. House of the Dragon is nearing its end and it’s finally getting a lot more interesting. The King’s gone, what’s going to happen next? House of the Dragon is streaming on Disney+ Hotstar.
english
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <TITLE> [whatwg] Implementation complexity with elements vs an attribute (responsive images) </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Implementation%20complexity%20with%20elements%20vs%20an%0A%20attribute%20%28responsive%20images%29&In-Reply-To=%3CCAOKKrgM%2Bk1uo2QCNkkWKx7w5Vv%3DN2DibJoAGGrWrSEpLyeh9Fw%40mail.gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <style type="text/css"> pre { white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ } </style> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="078090.html"> <LINK REL="Next" HREF="078096.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[whatwg] Implementation complexity with elements vs an attribute (responsive images)</H1> <!--htdig_noindex--> <B><NAME></B> <A HREF="mailto:whatwg%40lists.whatwg.org?Subject=Re%3A%20%5Bwhatwg%5D%20Implementation%20complexity%20with%20elements%20vs%20an%0A%20attribute%20%28responsive%20images%29&In-Reply-To=%3CCAOKKrgM%2Bk1uo2QCNkkWKx7w5Vv%3DN2DibJoAGGrWrSEpLyeh9Fw%40mail.gmail.com%3E" TITLE="[whatwg] Implementation complexity with elements vs an attribute (responsive images)"><EMAIL> at <EMAIL> </A><BR> <I>Sun May 13 12:55:08 PDT 2012</I> <P><UL> <LI>Previous message: <A HREF="078090.html">[whatwg] Implementation complexity with elements vs an attribute (responsive images) </A></li> <LI>Next message: <A HREF="078096.html">[whatwg] Implementation complexity with elements vs an attribute (responsive images) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#78095">[ date ]</a> <a href="thread.html#78095">[ thread ]</a> <a href="subject.html#78095">[ subject ]</a> <a href="author.html#78095">[ author ]</a> </LI> </UL> <HR> <!--/htdig_noindex--> <!--beginarticle--> <PRE>On 5/13/12, <NAME>&#324;ski &lt;<A HREF="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">kornel at geekhood.net</A>&gt; wrote: &gt;<i> I think layout (media queries) and optimisation cases are orthogonal and </I>&gt;<i> it would be a mistake to do both with the same mechanism. </I>&gt;<i> </I>My knee-jerk reaction to the above thought is that layout should be done using CSS and any optimizations left up to the UA. A bandwidth constrained UA could request a downsized thumbnail that fits the size of the &lt;object&gt;/&lt;img&gt;/&lt;video poster&gt;/&lt;a&gt; element, or render an appropriately sized bitmap from a SVG. The problem with that, though, is that then bandwidth constraints can't affect layout. Users should be able to configure UAs to use downsized images even given a large viewport, if only to save bandwidth and reserve a larger fraction of the viewport for text columns. &gt;<i> Adaptation of images to the layout is page-specific. Adaptation of images </I>&gt;<i> to bandwidth/screen is UA/device-specific. </I>&gt;<i> </I>Quite. But the latter just might affect the layout. &gt;<i> Author is in the best position to adapt image to page layout. User-agent </I>&gt;<i> is in the best position to determine speed/quality trade-offs. </I>&gt;<i> </I>But low-res images usually don't look too good when upscaled. Thus few pixels should mean small image, UAs mustn't default to pixelation. &gt;<i> Media queries MUST be interpreted exactly as author specified them. </I>Thus we mustn't force UAs to pretend to render to small viewports to find low-res images. That would have unwieldy side-effects. &gt;<i> User-agents need freedom to choose image resolution based on open set of </I>&gt;<i> factors, many of which are details authors should not have to think about </I>&gt;<i> (presence in cache, cost of bandwidth, available memory, external </I>&gt;<i> displays, etc.) </I>&gt;<i> </I>But the chosen image resolution might be a factor for choosing layout. </PRE> <!--endarticle--> <!--htdig_noindex--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="078090.html">[whatwg] Implementation complexity with elements vs an attribute (responsive images) </A></li> <LI>Next message: <A HREF="078096.html">[whatwg] Implementation complexity with elements vs an attribute (responsive images) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#78095">[ date ]</a> <a href="thread.html#78095">[ thread ]</a> <a href="subject.html#78095">[ subject ]</a> <a href="author.html#78095">[ author ]</a> </LI> </UL> <hr> <a href="http://lists.whatwg.org/listinfo.cgi/whatwg-whatwg.org">More information about the whatwg mailing list</a><br> <!--/htdig_noindex--> </body></html>
html
{"DPlayer.js":"sha256-KjhcmhXkWDYXyxCP3aFx0jsvpisv6u20eglAD/Ilma0=","DPlayer.min.js":"sha256-iOSNbur1lDe4rqpkwyYv5CSxK4/tG74aG/wDRvFgzyc="}
json
Original with; Punjab Vidhan Sabha Digitized by; Panjab Digital Librar DISCUSSION ON GOVERNOR'S ADDRESS ਸੋ ਸਪੀਕਰ ਸਾਹਿਬ, ਅਸੀਂ ਹਰ ਇਕ ਕੋਸ਼ਿਸ਼ ਕਰ ਰਹੇ ਹਾਂ ਕਿ ਪੰਜਾਬ ਨੂੰ ਉੱਚਾ ਲਿਜਾਇਆ ਜਾਵੇ। ਅੰਤ ਵਿਚ ਸਪੀਕਰ ਸਾਹਿਬ, ਮੈਂ ਆਪਣੇ ਅਪੋਜ਼ੀਸ਼ਨ ਦੇ ਭਰਾਵਾਂ ਤੋਂ ਮਾਫੀ ਮੰਗਾਂਗਾ ਅਗਰ ਕੋਈ ਕਰੜਾ ਸ਼ਬਦ ਮੇਰੇ ਮੂੰਹ ਵਿਚੋਂ ਨਿਕਲ ਗਿਆ ਹੋਵੇ। ਸਪੀਕਰ ਸਾਹਿਬ, ਮੈਂ ਆਪ ਦਾ ਵੀ ਸ਼ੁਕਰੀਆ ਅਦਾ ਕਰਦਾ ਹਾਂ। Mr. Speaker Question isThat an Address be presented to the Governor in the following terms:That the Members of this House assembled in this Session are deeply grateful to the Governor for the Address which he has been pleased to deliver to the House on the 19th January, 1970. The motion was carried. Mr. Speaker: The House stands adjourned till 2.00 p. m. on Monday, the 2nd March, 1970. (The Sabha then adjourned till 2.00 p.m. on Monday the 2nd March, 1970.)
english
@charset "UTF-8"; /* comando abaixo aplicara a alteracao em todos os elementos na tela box-sizing: content-box; (a largura e a altura somara ao valor da borda) box-sizing: border-box; (o valor da largura e da altura diminuira automaticamente para a chegar ao valor exato de 400px q eh o que queremos) */ * { box-sizing: border-box; } /* body vem com margem padrao de 8px */ body { margin: 0px; } /* no exemplo abaixo a a borda e o padding somara ao valor do elemento ficando 430px de altura e largura conteudo=400 padding=10 border=5 */ .exemplo { background-color: greenyellow; width: 400px; height: 400px; border: 5px solid black; padding: 10px; margin: 20px; }
css
package org.datasays.wes.types; //Return an array of matching query IDs instead of objects //default: null public enum EnumPercolateFormat { IDS("ids"); private String name; EnumPercolateFormat(String name) { this.name = name; } @Override public String toString() { return this.name; } }
java
{ "id": "140666", "key": "TIMOB-18818", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-11-27T14:30:34.000+0000", "priority": null, "labels": [ "keyboard", "numeric", "reprod", "searchBar" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:58.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When I add any number in the input field using Ti.UI.SearchBar component (please see img1.png) and click on Search button the keyboard will be changed (please see img2.png).\r\n\r\nIn the simple default application in the app.js I'm using following code:\r\n\r\n{code:title=app.js|borderStyle=solid}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n barColor : '#000', \r\n showCancel : true,\r\n height : 43,\r\n top : 10,\r\n});\r\nwin.add(search);\r\n\r\nwin.open();\r\n{code}", "attachment": [ { "id": "52865", "filename": "img1.png", "author": { "name": "vladimir.altiparmakov", "key": "vladimir.altiparmakov", "displayName": "<NAME>", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-27T14:30:34.000+0000", "size": 76000, "mimeType": "image/png" }, { "id": "52864", "filename": "img2.png", "author": { "name": "vladimir.altiparmakov", "key": "vladimir.altiparmakov", "displayName": "<NAME>", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-27T14:30:34.000+0000", "size": 70474, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Numeric keyboard switches to alphabetic when pressing the Search (return) button using Ti.UI.SearchBar component", "creator": { "name": "vladimir.altiparmakov", "key": "vladimir.altiparmakov", "displayName": "<NAME>", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vladimir.altiparmakov", "key": "vladimir.altiparmakov", "displayName": "<NAME>", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.1 simulator and iOS 8.1 devices, Titanium SDK 3.4.0.GA", "comment": { "comments": [ { "id": "422495", "author": { "name": "lmorris", "key": "lmorris", "displayName": "<NAME>", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "<NAME>", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-21T20:12:37.000+0000", "updated": "2017-06-21T20:12:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }
json
package edu.uwstout.p2pchat.room; import android.content.Context; import androidx.room.Database; import androidx.room.Room; import androidx.room.RoomDatabase; import androidx.room.TypeConverters; /** * Database holding the peer and message tables. */ @Database(entities = {Peer.class, Message.class}, version = 1, exportSchema = false) @TypeConverters(Converters.class) abstract class P2pDatabase extends RoomDatabase { /** * @return instance of DataAccessObject to be used in CRUD operations */ public abstract DataAccessObject dataAccessObject(); /** * Application wide single instance of this Database. */ private static P2pDatabase instance; /** * Returns or creates instance of the database using the Singleton design pattern. * @param context Application context * @return Instance of P2pDatabase */ static P2pDatabase getInstance(final Context context) { if (instance == null) { instance = Room.databaseBuilder( context, P2pDatabase.class, "p2p_database" ).build(); } return (P2pDatabase) instance; } }
java
Trending stories for "malaika arora pic" Malaika Arora looks gorgeous in a backless golden gown. See pics: Malaika Arora shared stunning pics from her photoshoot. Malaika Arora and Arjun Kapoor are couple goals as they leave for a holiday. See pics: Janhvi Kapoor, Malaika Arora and Ananya Panday get snapped in the city. See pics: Janhvi Kapoor, Malaika Arora and Ananya Panday stepped out today. Malaika Arora, Shahid-Mira Kapoor and others get clicked out and about in the city. See pics: Malaika Arora and Arbaaz Khan get clicked with their son at the airport. See pics: Malaika Arora, Soha Ali Khan and others get clicked out and about in the city. See pics: Sidharth Malhotra, Malaika Arora, Soha Ali Khan get clicked in the city. See pics: Arjun Kapoor shares photos of the Berlin vacation he took with Malaika Arora. Malaika Arora looks stunning in an orange ensemble.
english
/* * Copyright (C) 2012 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ #ifdef _WIN32 // Ensure that Winsock2.h is included before Windows.h, which can get // pulled in by anybody (e.g., Boost). #include <Winsock2.h> #endif #include <functional> #include <boost/bind.hpp> #include "gazebo/common/Assert.hh" #include "gazebo/common/Time.hh" #include "gazebo/physics/PhysicsIface.hh" #include "gazebo/physics/PhysicsEngine.hh" #include "gazebo/physics/World.hh" #include "gazebo/sensors/Sensor.hh" #include "gazebo/sensors/SensorsIface.hh" #include "gazebo/sensors/SensorFactory.hh" #include "gazebo/sensors/SensorManager.hh" #include "gazebo/util/LogPlay.hh" using namespace gazebo; using namespace sensors; /// \brief A mutex used by SensorContainer and SimTimeEventHandler /// for timing coordination. boost::mutex g_sensorTimingMutex; ////////////////////////////////////////////////// SensorManager::SensorManager() : initialized(false), removeAllSensors(false) { // sensors::IMAGE container this->sensorContainers.push_back(new ImageSensorContainer()); // sensors::RAY container this->sensorContainers.push_back(new SensorContainer()); // sensors::OTHER container this->sensorContainers.push_back(new SensorContainer()); } ////////////////////////////////////////////////// SensorManager::~SensorManager() { sensors::disable(); // Clean up the sensors. for (SensorContainer_V::iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor Constainer is null"); (*iter)->Stop(); (*iter)->RemoveSensors(); delete (*iter); } this->sensorContainers.clear(); this->initSensors.clear(); } ////////////////////////////////////////////////// void SensorManager::RunThreads() { // Start the non-image sensor containers. The first item in the // sensorsContainers list are the image-based sensors, which rely on the // rendering engine, which in turn requires that they run in the main // thread. for (SensorContainer_V::iterator iter = ++this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor Constainer is null"); (*iter)->Run(); } } ////////////////////////////////////////////////// void SensorManager::Stop() { // Start all the sensor containers. for (SensorContainer_V::iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor Constainer is null"); (*iter)->Stop(); } if (!physics::worlds_running()) this->worlds.clear(); } ////////////////////////////////////////////////// bool SensorManager::Running() const { for (auto const &container : this->sensorContainers) { if (container->Running()) return true; } return false; } ////////////////////////////////////////////////// void SensorManager::Update(bool _force) { { boost::recursive_mutex::scoped_lock lock(this->mutex); if (this->worlds.empty() && physics::worlds_running() && this->initialized) { auto world = physics::get_world(); this->worlds[world->Name()] = world; world->_SetSensorsInitialized(true); } if (!this->initSensors.empty()) { // in case things are spawned, sensors length changes for (auto &sensor : this->initSensors) { GZ_ASSERT(sensor != nullptr, "Sensor pointer is null"); GZ_ASSERT(sensor->Category() < 0 || sensor->Category() < CATEGORY_COUNT, "Sensor category is empty"); GZ_ASSERT(this->sensorContainers[sensor->Category()] != nullptr, "Sensor container is null"); sensor->Init(); this->sensorContainers[sensor->Category()]->AddSensor(sensor); } this->initSensors.clear(); for (auto &worldName_worldPtr : this->worlds) worldName_worldPtr.second->_SetSensorsInitialized(true); } for (std::vector<std::string>::iterator iter = this->removeSensors.begin(); iter != this->removeSensors.end(); ++iter) { GZ_ASSERT(!(*iter).empty(), "Remove sensor name is empty."); bool removed = false; for (SensorContainer_V::iterator iter2 = this->sensorContainers.begin(); iter2 != this->sensorContainers.end() && !removed; ++iter2) { GZ_ASSERT((*iter2) != nullptr, "SensorContainer is null"); removed = (*iter2)->RemoveSensor(*iter); } if (!removed) { gzerr << "RemoveSensor failed. The SensorManager's list of sensors " << "changed during sensor removal. This is bad, and should " << "never happen.\n"; } } this->removeSensors.clear(); if (this->removeAllSensors) { for (SensorContainer_V::iterator iter2 = this->sensorContainers.begin(); iter2 != this->sensorContainers.end(); ++iter2) { GZ_ASSERT((*iter2) != nullptr, "SensorContainer is null"); (*iter2)->RemoveSensors(); } this->initSensors.clear(); // Also clear the list of worlds this->worlds.clear(); this->removeAllSensors = false; } } // Only update if there are sensors if (this->sensorContainers[sensors::IMAGE]->sensors.size() > 0) this->sensorContainers[sensors::IMAGE]->Update(_force); } ////////////////////////////////////////////////// bool SensorManager::SensorsInitialized() { boost::recursive_mutex::scoped_lock lock(this->mutex); bool result = this->initSensors.empty(); return result; } ////////////////////////////////////////////////// void SensorManager::ResetLastUpdateTimes() { boost::recursive_mutex::scoped_lock lock(this->mutex); for (SensorContainer_V::iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); (*iter)->ResetLastUpdateTimes(); } } ////////////////////////////////////////////////// void SensorManager::Init() { boost::recursive_mutex::scoped_lock lock(this->mutex); this->simTimeEventHandler = new SimTimeEventHandler(); // Initialize all the sensor containers. for (SensorContainer_V::iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); (*iter)->Init(); } // Connect to the time reset event. this->timeResetConnection = event::Events::ConnectTimeReset( std::bind(&SensorManager::ResetLastUpdateTimes, this)); // Connect to the remove sensor event. this->removeSensorConnection = event::Events::ConnectRemoveSensor( std::bind(&SensorManager::RemoveSensor, this, std::placeholders::_1)); // Connect to the create sensor event. this->createSensorConnection = event::Events::ConnectCreateSensor( std::bind(&SensorManager::OnCreateSensor, this, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4)); this->initialized = true; } ////////////////////////////////////////////////// void SensorManager::Fini() { boost::recursive_mutex::scoped_lock lock(this->mutex); // Finalize all the sensor containers. for (SensorContainer_V::iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); (*iter)->Fini(); (*iter)->Stop(); } this->removeSensors.clear(); this->initSensors.clear(); this->worlds.clear(); delete this->simTimeEventHandler; this->simTimeEventHandler = nullptr; this->initialized = false; } ////////////////////////////////////////////////// void SensorManager::GetSensorTypes(std::vector<std::string> &_types) const { sensors::SensorFactory::GetSensorTypes(_types); } ////////////////////////////////////////////////// void SensorManager::OnCreateSensor(sdf::ElementPtr _elem, const std::string &_worldName, const std::string &_parentName, const uint32_t _parentId) { this->CreateSensor(_elem, _worldName, _parentName, _parentId); } ////////////////////////////////////////////////// std::string SensorManager::CreateSensor(sdf::ElementPtr _elem, const std::string &_worldName, const std::string &_parentName, uint32_t _parentId) { std::string type = _elem->Get<std::string>("type"); SensorPtr sensor = sensors::SensorFactory::NewSensor(type); if (!sensor) { gzerr << "Unable to create sensor of type[" << type << "]\n"; return std::string(); } // Must come before sensor->Load sensor->SetParent(_parentName, _parentId); // Load the sensor sensor->Load(_worldName, _elem); this->worlds[_worldName] = physics::get_world(_worldName); // If the SensorManager has not been initialized, then it's okay to push // the sensor into one of the sensor vectors because the sensor will get // initialized in SensorManager::Init if (!this->initialized) { this->sensorContainers[sensor->Category()]->AddSensor(sensor); } // Otherwise the SensorManager is already running, and the sensor will get // initialized during the next SensorManager::Update call. else { boost::recursive_mutex::scoped_lock lock(this->mutex); this->worlds[_worldName]->_SetSensorsInitialized(false); this->initSensors.push_back(sensor); } return sensor->ScopedName(); } ////////////////////////////////////////////////// SensorPtr SensorManager::GetSensor(const std::string &_name) const { boost::recursive_mutex::scoped_lock lock(this->mutex); SensorContainer_V::const_iterator iter; SensorPtr result; // Try to find the sensor in all of the containers for (iter = this->sensorContainers.begin(); iter != this->sensorContainers.end() && !result; ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); result = (*iter)->GetSensor(_name); } // If the sensor was not found, then try to find based on an unscoped // name. // If multiple sensors exist with the same name, then an error occurs // because we don't know which sensor is correct. if (!result) { SensorPtr tmpSensor; for (iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); tmpSensor = (*iter)->GetSensor(_name, true); if (!tmpSensor) continue; if (!result) { result = tmpSensor; GZ_ASSERT(result != nullptr, "SensorContainer contains a nullptr Sensor"); } else { gzerr << "Unable to get a sensor, multiple sensors with the same " << "name[" << _name << "]. Use a scoped name instead, " << "world_name::model_name::link_name::sensor_name.\n"; result.reset(); break; } } } return result; } ////////////////////////////////////////////////// Sensor_V SensorManager::GetSensors() const { boost::recursive_mutex::scoped_lock lock(this->mutex); Sensor_V result; // Copy the sensor pointers for (SensorContainer_V::const_iterator iter = this->sensorContainers.begin(); iter != this->sensorContainers.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "SensorContainer is null"); std::copy((*iter)->sensors.begin(), (*iter)->sensors.end(), std::back_inserter(result)); } return result; } ////////////////////////////////////////////////// void SensorManager::RemoveSensor(const std::string &_name) { boost::recursive_mutex::scoped_lock lock(this->mutex); SensorPtr sensor = this->GetSensor(_name); if (!sensor) { gzerr << "Unable to remove sensor[" << _name << "] because it " << "does not exist.\n"; } else { // Push it on the list, to be removed by the main sensor thread, // to ensure correct access to rendering resources. this->removeSensors.push_back(sensor->ScopedName()); } } ////////////////////////////////////////////////// void SensorManager::RemoveSensors() { boost::recursive_mutex::scoped_lock lock(this->mutex); this->removeAllSensors = true; } ////////////////////////////////////////////////// SensorManager::SensorContainer::SensorContainer() { this->stop = true; this->initialized = false; this->runThread = nullptr; } ////////////////////////////////////////////////// SensorManager::SensorContainer::~SensorContainer() { this->sensors.clear(); } ////////////////////////////////////////////////// void SensorManager::SensorContainer::Init() { boost::recursive_mutex::scoped_lock lock(this->mutex); for (auto &sensor : this->sensors) { GZ_ASSERT(sensor != nullptr, "Sensor is null"); sensor->Init(); } this->initialized = true; } ////////////////////////////////////////////////// void SensorManager::SensorContainer::Fini() { boost::recursive_mutex::scoped_lock lock(this->mutex); Sensor_V::iterator iter; // Finialize each sensor in the current sensor vector for (iter = this->sensors.begin(); iter != this->sensors.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); (*iter)->Fini(); } // Remove all the sensors from the current sensor vector. this->sensors.clear(); this->initialized = false; } ////////////////////////////////////////////////// void SensorManager::SensorContainer::Run() { this->runThread = new boost::thread( boost::bind(&SensorManager::SensorContainer::RunLoop, this)); GZ_ASSERT(this->runThread, "Unable to create boost::thread."); } ////////////////////////////////////////////////// void SensorManager::SensorContainer::Stop() { this->stop = true; this->runCondition.notify_all(); if (this->runThread) { // Note: calling interrupt seems to cause the thread to either block // or throw an exception, so commenting it out for now. // this->runThread->interrupt(); this->runThread->join(); delete this->runThread; this->runThread = nullptr; } } ////////////////////////////////////////////////// bool SensorManager::SensorContainer::Running() const { return !this->stop; } ////////////////////////////////////////////////// void SensorManager::SensorContainer::RunLoop() { this->stop = false; physics::WorldPtr world = physics::get_world(); GZ_ASSERT(world != nullptr, "Pointer to World is null"); physics::PhysicsEnginePtr engine = world->Physics(); GZ_ASSERT(engine != nullptr, "Pointer to PhysicsEngine is null"); engine->InitForThread(); // The original value was hardcode to 1.0. Changed the value to // 1000 * MaxStepSize in order to handle simulation with a // large step size. double maxSensorUpdate = engine->GetMaxStepSize() * 1000; // Release engine pointer, we don't need it in the loop engine.reset(); common::Time sleepTime, startTime, eventTime, diffTime; double maxUpdateRate = 0; boost::mutex tmpMutex; boost::mutex::scoped_lock lock2(tmpMutex); // Wait for a sensor to be added. // Use a while loop since world resets will notify the runCondition. while (this->sensors.empty()) { this->runCondition.wait(lock2); if (this->stop) return; } { boost::recursive_mutex::scoped_lock lock(this->mutex); // Get the minimum update rate from the sensors. for (Sensor_V::iterator iter = this->sensors.begin(); iter != this->sensors.end() && !this->stop; ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); maxUpdateRate = std::max((*iter)->UpdateRate(), maxUpdateRate); } } // Calculate an appropriate sleep time. if (maxUpdateRate > 0) sleepTime.Set(1.0 / (maxUpdateRate)); else sleepTime.Set(0, 1e6); while (!this->stop) { // If all the sensors get deleted, wait here. // Use a while loop since world resets will notify the runCondition. while (this->sensors.empty()) { this->runCondition.wait(lock2); if (this->stop) return; } // Get the start time of the update. startTime = world->SimTime(); this->Update(false); // Compute the time it took to update the sensors. // It's possible that the world time was reset during the Update. This // would case a negative diffTime. Instead, just use a event time of zero diffTime = std::max(common::Time::Zero, world->SimTime() - startTime); // Set the default sleep time eventTime = std::max(common::Time::Zero, sleepTime - diffTime); // Make sure update time is reasonable. // During log playback, time can jump forward an arbitrary amount. if (diffTime.sec >= maxSensorUpdate && !util::LogPlay::Instance()->IsOpen()) { gzwarn << "Took over 1000*max_step_size to update a sensor " << "(took " << diffTime.sec << " sec, which is more than " << "the max update of " << maxSensorUpdate << " sec). " << "This warning can be ignored during log playback" << std::endl; } // Make sure eventTime is not negative. if (eventTime < common::Time::Zero) { gzerr << "Time to next sensor update is negative." << std::endl; continue; } boost::mutex::scoped_lock timingLock(g_sensorTimingMutex); // Add an event to trigger when the appropriate simulation time has been // reached. SensorManager::Instance()->simTimeEventHandler->AddRelativeEvent( eventTime, &this->runCondition); // This if statement helps prevent deadlock on osx during teardown. if (!this->stop) { this->runCondition.wait(timingLock); } } } ////////////////////////////////////////////////// void SensorManager::SensorContainer::Update(bool _force) { boost::recursive_mutex::scoped_lock lock(this->mutex); if (this->sensors.empty()) gzlog << "Updating a sensor container without any sensors.\n"; // Update all the sensors in this container. for (Sensor_V::iterator iter = this->sensors.begin(); iter != this->sensors.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); (*iter)->Update(_force); } } ////////////////////////////////////////////////// SensorPtr SensorManager::SensorContainer::GetSensor(const std::string &_name, bool _useLeafName) const { boost::recursive_mutex::scoped_lock lock(this->mutex); SensorPtr result; // Look for a sensor with the correct name for (Sensor_V::const_iterator iter = this->sensors.begin(); iter != this->sensors.end() && !result; ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); // We match on the scoped name (model::link::sensor) because multiple // sensors with the same leaf name may exist in a world. if ((_useLeafName && (*iter)->Name() == _name) || (!_useLeafName && (*iter)->ScopedName() == _name)) { result = (*iter); break; } } return result; } ////////////////////////////////////////////////// void SensorManager::SensorContainer::AddSensor(SensorPtr _sensor) { GZ_ASSERT(_sensor != nullptr, "Sensor is nullptr when passed to ::AddSensor"); { boost::recursive_mutex::scoped_lock lock(this->mutex); this->sensors.push_back(_sensor); } // Tell the run loop that we have received a sensor this->runCondition.notify_one(); } ////////////////////////////////////////////////// bool SensorManager::SensorContainer::RemoveSensor(const std::string &_name) { boost::recursive_mutex::scoped_lock lock(this->mutex); Sensor_V::iterator iter; bool removed = false; // Find the correct sensor based on name, and remove it. for (iter = this->sensors.begin(); iter != this->sensors.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); if ((*iter)->ScopedName() == _name) { (*iter)->Fini(); this->sensors.erase(iter); removed = true; break; } } return removed; } ////////////////////////////////////////////////// void SensorManager::SensorContainer::ResetLastUpdateTimes() { boost::recursive_mutex::scoped_lock lock(this->mutex); Sensor_V::iterator iter; // Rest last update times for all contained sensors. for (iter = this->sensors.begin(); iter != this->sensors.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); (*iter)->ResetLastUpdateTime(); } // Tell the run loop that world time has been reset. this->runCondition.notify_one(); } ////////////////////////////////////////////////// void SensorManager::SensorContainer::RemoveSensors() { boost::recursive_mutex::scoped_lock lock(this->mutex); Sensor_V::iterator iter; // Remove all the sensors for (iter = this->sensors.begin(); iter != this->sensors.end(); ++iter) { GZ_ASSERT((*iter) != nullptr, "Sensor is null"); (*iter)->Fini(); } this->sensors.clear(); } ////////////////////////////////////////////////// void SensorManager::ImageSensorContainer::Update(bool _force) { event::Events::preRender(); // Tell all the cameras to render event::Events::render(); event::Events::postRender(); // Update the sensors, which will produce data messages. SensorContainer::Update(_force); } ///////////////////////////////////////////////// SimTimeEventHandler::SimTimeEventHandler() { this->updateConnection = event::Events::ConnectWorldUpdateBegin( boost::bind(&SimTimeEventHandler::OnUpdate, this, _1)); } ///////////////////////////////////////////////// SimTimeEventHandler::~SimTimeEventHandler() { // Cleanup the events. for (std::list<SimTimeEvent*>::iterator iter = this->events.begin(); iter != this->events.end(); ++iter) { GZ_ASSERT(*iter != nullptr, "SimTimeEvent is null"); delete *iter; } this->events.clear(); } ///////////////////////////////////////////////// void SimTimeEventHandler::AddRelativeEvent(const common::Time &_time, boost::condition_variable *_var) { boost::mutex::scoped_lock lock(this->mutex); physics::WorldPtr world = physics::get_world(); GZ_ASSERT(world != nullptr, "World pointer is null"); // Create the new event. SimTimeEvent *event = new SimTimeEvent; event->time = world->SimTime() + _time; event->condition = _var; // Add the event to the list. this->events.push_back(event); } ///////////////////////////////////////////////// void SimTimeEventHandler::OnUpdate(const common::UpdateInfo &_info) { boost::mutex::scoped_lock timingLock(g_sensorTimingMutex); boost::mutex::scoped_lock lock(this->mutex); // Iterate over all the events. for (std::list<SimTimeEvent*>::iterator iter = this->events.begin(); iter != this->events.end();) { GZ_ASSERT(*iter != nullptr, "SimTimeEvent is null"); // Find events that have a time less than or equal to simulation // time. if ((*iter)->time <= _info.simTime) { // Notify the event by triggering its condition. (*iter)->condition->notify_all(); // Remove the event. delete *iter; this->events.erase(iter++); } else ++iter; } }
cpp
Shane McMahon to face Dolph Ziggler at Wrestlemania 34? Shane McMahon has been an integral part of the WWE ever since his shocking return to the company before Wrestlemania 32. Apart from being a solid backstage authority figure for Smackdown, the star has also stamped himself as a part time wrestler. In his stint spanning 2 years now, McMahon has faced The Undertaker, AJ Styles, Kevin Owens and led Team Smackdown Live in their Survivor Series elimination encounters. The veteran has diminished his image as just a stuntsman by adding several weapons to his arsenal while not toning down the high spots. McMahon is turning to be an integral part of Wrestlemania as his opponent seems to be decided with Mania only a few weeks away. Despite embroiling in a high profile clash of egos alongside Kevin Owens and Sami Zayn, it seems that the path for McMahon is derailed as the Commissioner of the blue brand is rumoured to face “The Showoff” Dolph Ziggler. Ziggler has recently tied down his future with the WWE after signing a bumper new contract, making him one of the highest paid stars in the company. Although, Ziggler managed to capture the United States title at the Clash Of Champions event, the star decided to relinquish the title and walk out of the company, only to return back at the Royal Rumble at No. 30. However, Ziggler failed to create any sort of impact. Ziggler is scheduled to fight for the WWE Championship alongside five other men at Fastlane. The seeds for the prospective match between Shane and Ziggler is expected to be planted at the event. As per Brad Shepard of Bodyslam.net, the plans are already in place. He reported: Do you think that Ziggler is the perfect opponent for Shane McMahon? Drop in your thoughts in the comments section. Check out this space for more exciting WWE content!
english
The army said it mobilised troops stationed nearby to prevent the situation from escalating. On Wednesday, eight arms, two ammunition and two bombs were recovered from Kakching district during a search operation by a joint team of the state and Central security forces. Police stated that the recovery was made during a search operation conducted in the fringe areas of both the valley and hill districts. About 122 checkpoints have been installed in different districts of the hill and the valley, and police have detained 278 persons in connection with curfew violations in different districts of the state, it said. Checking at checkpoints has been intensified to prevent unwanted incidents. Movement of essential items has been ensured along NH-37, it said, adding that strict security measures have been taken up in all vulnerable locations and security convoy has been provided in sensitive stretches for the free and safe movement of vehicles. Defence sources said," Buildup of mob in the area to interfere with operations by Security Forces effectively controlled. At approx 4 PM, troops deployed in the area heard firing from East of village K Munlai. Further, at approx 5.15 PM, exchange of fire reported from direction of Village Bethel, South of National Sports University. Own columns are dominating the area to de-escalate the situation." Police fired tear gas shells on Thursday evening to disperse a mob which had gathered at Khwairanband Bazar in Imphal where the body of a man killed earlier in the morning in a gunfight in Kangpokpi district was brought and placed in a traditional coffin. Demonstrators gathered, and a mob threatened to carry it in a procession to the chief minister’s residence. Police stopped the mob. Download The Economic Times News App to get Daily Market Updates & Live Business News. Subscribe to The Economic Times Prime and read the ET ePaper online.
english
#!/usr/bin/env python2 import logging from __future__ import unicode_literals from mopidy import backend from mopidy.models import Playlist, Ref logger = logging.getLogger(__name__) class SubsonicPlaylistsProvider(backend.PlaylistsProvider): def __init__(self, *args, **kwargs): super(SubsonicPlaylistsProvider, self).__init__(*args, **kwargs) self.remote = self.backend.remote self.playlists = self._get_playlists() def lookup(self, uri): logger.debug('Playlist lookup. uri = %s' % uri) id = uri.split("subsonic:playlist:")[1] try: id = int(id) return self.remote.playlist_id_to_playlist(id) except: return self.remote.get_smart_playlist(id) def playlist_to_ref(self, playlist): return Ref( uri=playlist.uri, name=playlist.name, type=Ref.PLAYLIST ) def track_to_ref(self, track): return Ref( uri=track.uri, name=track.name, type=Ref.TRACK ) def as_list(self): playlists = self._get_playlists() return [self.playlist_to_ref(playlist) for playlist in playlists] def get_items(self, uri): playlist = self.lookup(uri) return [self.track_to_ref(track) for track in playlist.tracks] def _get_playlists(self): smart_playlists = {'random': 'Random Albums', 'newest': 'Recently Added', 'highest': 'Top Rated', 'frequent': 'Most Played', 'recent': 'Recently Played', 'randomsongs': 'Random Songs'} playlists = self.remote.get_user_playlists() for type in smart_playlists.keys(): playlists.append( Playlist( uri=u'subsonic:playlist:%s' % type, name='Smart Playlist: %s' % smart_playlists[type])) return playlists
python
<gh_stars>0 export * from './button-type.constants'
typescript
Mumbai: A 15-year-old boy, who was injured after an iron rod pierced through his eye, has died during treatment at a hospital here, police said on Thursday. Vivek Ghadshi fell from his bicycle on the rod lying in Katodipada area of suburban Ghatkopar last week. The rod pierced through his left eye, causing severe injuries. He was admitted to the civic-run KEM Hospital in Parel area. His condition later deteriorated and he died while undergoing treatment on Wednesday, a police official said. The rods were brought for the construction of a drainage line in the area. The work was taken up by the civic body, another official said. Following the incident, the contractor engaged in the construction work was arrested and booked under Indian Penal Code Section 338 (causing grievous hurt by act endangering life or personal safety of others), the police said, adding that a probe was underway into the incident. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI)
english
Fulham manager Rene Meulensteen left Dimitar Berbatov out of his squad of 18 for their FA Cup third round clash with Norwich to further fuel rumours that the striker will be on his way in this month’s transfer window, report The Metro. The Bulgarian has reportedly instructed his agent to get him out of Craven Cottage with league leaders Arsenal heavily linked with him and ensuring he does not become cup-tied for the competition has given more credence to the idea that he could leave Fulham by the end of the month. Fulham secured a 1-1 draw at Carrow Road to claim a replay at home in ten days time, with Berbatov’s replacement Darren Bent getting himself on the scoresheet, but all talk lingered around the absence of the mercurial forward, despite it being one of many changes to the Cottagers line-up. With no room on the bench for Berbatov either it seemed that an agreement has taken place between player and club to ensure he is not cup-tied for further rounds should a move materialise and this will only fuel the rumour that he could be on his way to Arsenal, despite Gunners boss Arsene Wenger having distanced himself from such a move earlier this week. Berbatov was signed from Manchester United for £4million two years ago and it is believed he could be available for a cut-price £2m in January, a tempting price for any team looking to beef up their striking options. What does Berbatov offer potential suitors? Despite only netting four times this season in a dismal Fulham side, Berbatov still has a reasonable conversion rate of 14. 8%, while he is Fulham’s top chance creator as well as goalscorer, having carved out 19 chances for teammates.
english
<gh_stars>10-100 #include "GraphicsCommon_gl.h" #include "GraphicsInterface_gl.h" #include "Texture_gl.h" #include "FrameTarget_gl.h" namespace sge { //--------------------------------------------------------------- // FrameTargetGL //--------------------------------------------------------------- bool FrameTargetGL::create() { return create(0, nullptr, nullptr, nullptr, TargetDesc()); } bool FrameTargetGL::create(int numRenderTargets, Texture* renderTargets[], TargetDesc renderTargetDescs[], Texture* depthStencil, const TargetDesc& depthTargetDesc) { destroy(); m_frameTargetWidth = -1; m_frameTargetHeight = -1; GLContextStateCache* const glcon = getDevice<SGEDeviceImpl>()->GL_GetContextStateCache(); // [TODO] Safety checks glcon->GenFrameBuffers(1, &m_frameBuffer_gl); glcon->BindFBO(m_frameBuffer_gl); // Attach the color and depth buffers. for (int t = 0; t < numRenderTargets; ++t) { // Initalize the cached widht and height of the all the textures in the frame buffer // and use those as a reference values if (m_frameTargetWidth == -1 && renderTargets[t] != NULL) { // [TODO][FRAME_TARGET_IMPL] Currently only the code for 2D textures at 0 mip level are supproted(that is me just being lazy). // Also parameters like, type, array size, multisampling are missing. // Honestly this is a big mess that somebody has to write at some point... if (renderTargetDescs[t].baseTextureType == UniformType::Texture2D && renderTargetDescs[t].texture2D.mipLevel == 0 && renderTargetDescs[t].texture2D.arrayIdx == 0) { m_frameTargetWidth = renderTargets[t]->getDesc().texture2D.width; m_frameTargetHeight = renderTargets[t]->getDesc().texture2D.height; } } setRenderTarget(t, renderTargets[t], renderTargetDescs[t]); } setDepthStencil(depthStencil, depthTargetDesc); DumpAllGLErrors(); return true; } void FrameTargetGL::GL_CreateWindowFrameTarget(int width, int height) { destroy(); m_isWindowFrameBufferWrapper_gl = true; m_frameTargetWidth = width; m_frameTargetHeight = height; } void FrameTargetGL::setRenderTarget(const int slot, Texture* texture, const TargetDesc& targetDesc) { if (m_isWindowFrameBufferWrapper_gl) { sgeAssert(false && "Invalid operation, modifying the window frame buffer is not possible!"); return; } // [TODO] Safty checks and validation. m_renderTargets[slot] = texture; // Just unbinding nothing more to do here. if (texture == nullptr) { return; } if (texture->getDesc().textureType == UniformType::Texture2D) { updateAttachmentsInfo(texture); auto const& desc = texture->getDesc().texture2D; // [TODO][FRAME_TARGET_IMPL] if (desc.width != m_frameTargetWidth || desc.height != m_frameTargetHeight) { sgeAssert(false && "Texture has incompatible metrics with this frame target!"); return; } // The shortcut with glFramebufferTexture3D doesn't work on nVidia. glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + slot, GL_TEXTURE_2D, ((TextureGL*)texture)->GL_GetResource(), targetDesc.texture2D.mipLevel); DumpAllGLErrors(); } else { // Unimplemented... sgeAssert(false); } } void FrameTargetGL::setDepthStencil(Texture* texture, const TargetDesc& targetDesc) { if (m_isWindowFrameBufferWrapper_gl) { sgeAssert(false && "Invalid operation, modifying the window frame buffer is not possible!"); return; } // [TODO] Safety checks and validation. m_depthBuffer = texture; if (texture == nullptr) { return; } GLContextStateCache* const glcon = getDevice<SGEDeviceImpl>()->GL_GetContextStateCache(); const TextureDesc& texToBindDesc = texture->getDesc(); // pick if this is a depth-stencil of just depth texture const GLenum attachmentType = TextureFormat::IsDepthWithStencil(texToBindDesc.format) ? GL_DEPTH_STENCIL_ATTACHMENT : GL_DEPTH_ATTACHMENT; if (texToBindDesc.textureType == UniformType::Texture2D) { updateAttachmentsInfo(texture); glcon->BindFBO(m_frameBuffer_gl); glFramebufferTexture2D(GL_FRAMEBUFFER, attachmentType, GL_TEXTURE_2D, ((TextureGL*)texture)->GL_GetResource(), targetDesc.texture2D.mipLevel); DumpAllGLErrors(); // Only works on AMD: // glFramebufferTexture3D( // GL_FRAMEBUFFER, attachmentType, GL_TEXTURE_2D_ARRAY, // texture->GL_GetResource().id, targetDesc.texture2D.mipLevel, targetDesc.texture2D.arrayIdx); } else if (texToBindDesc.textureType == UniformType::TextureCube) { updateAttachmentsInfo(texture); // Binding a face from a cube texture as a depth-stencil. const GLenum faceGL = signedAxis_toTexCubeFaceIdx_OpenGL(targetDesc.textureCube.face); glcon->BindFBO(m_frameBuffer_gl); glFramebufferTexture2D(GL_FRAMEBUFFER, attachmentType, faceGL, ((TextureGL*)texture)->GL_GetResource(), targetDesc.textureCube.mipLevel); DumpAllGLErrors(); } else { sgeAssert(false); } } void FrameTargetGL::destroy() { if (m_frameBuffer_gl != 0) { auto glcon = getDevice<SGEDeviceImpl>()->GL_GetContextStateCache(); glcon->DeleteFrameBuffers(1, &m_frameBuffer_gl); m_frameBuffer_gl = 0; } m_frameTargetWidth = -1; m_frameTargetHeight = -1; m_isWindowFrameBufferWrapper_gl = false; // release the render targets and the depth buffer for (auto& renderTargetTexture : m_renderTargets) { renderTargetTexture.Release(); } m_depthBuffer.Release(); } bool FrameTargetGL::isValid() const { if (m_isWindowFrameBufferWrapper_gl) { return true; } if (m_frameBuffer_gl == 0) { return false; } // Assume as valid if there is alleast one rendertarget or depth buffer for (unsigned int t = 0; t < SGE_ARRSZ(m_renderTargets); ++t) { if (m_renderTargets[t].IsResourceValid()) return true; } return m_depthBuffer.IsResourceValid(); } Texture* FrameTargetGL::getRenderTarget(const unsigned int index) const { if (m_isWindowFrameBufferWrapper_gl) { sgeAssert(false && "Invalid operation, calling getRenderTarget on the window frame buffer is not possible!"); return NULL; } return m_renderTargets[index].GetPtr(); } Texture* FrameTargetGL::getDepthStencil() const { if (m_isWindowFrameBufferWrapper_gl) { sgeAssert(false && "Invalid operation, calling getDepthStencil on the window frame buffer is not possible!"); return NULL; } return m_depthBuffer.GetPtr(); } bool FrameTargetGL::hasAttachment() const { bool hasRenderTarget = false; for (int t = 0; t < SGE_ARRSZ(m_renderTargets); ++t) { hasRenderTarget |= m_renderTargets[t].GetPtr() != NULL; } return hasRenderTarget || (m_depthBuffer.GetPtr() != NULL); } void FrameTargetGL::updateAttachmentsInfo(Texture* texture) { if (hasAttachment() == false) { m_frameTargetWidth = -1; m_frameTargetHeight = -1; } if (texture != NULL) { // Only Texture2D is currently implemented. if (texture->getDesc().textureType == UniformType::Texture2D) { if (m_frameTargetWidth == -1) m_frameTargetWidth = texture->getDesc().texture2D.width; if (m_frameTargetHeight == -1) m_frameTargetHeight = texture->getDesc().texture2D.height; } else if (texture->getDesc().textureType == UniformType::Texture3D) { if (m_frameTargetWidth == -1) m_frameTargetWidth = texture->getDesc().texture3D.width; if (m_frameTargetHeight == -1) m_frameTargetHeight = texture->getDesc().texture3D.height; } else if (texture->getDesc().textureType == UniformType::TextureCube) { if (m_frameTargetWidth == -1) m_frameTargetWidth = texture->getDesc().textureCube.width; if (m_frameTargetHeight == -1) m_frameTargetHeight = texture->getDesc().textureCube.height; } else { // Not implemented. sgeAssert(false); } } } bool FrameTargetGL::create2D(int width, int height, TextureFormat::Enum renderTargetFmt, TextureFormat::Enum depthTextureFmt) { // Render Target texture. GpuHandle<Texture> renderTarget = getDevice()->requestResource<Texture>(); if (renderTargetFmt != TextureFormat::Unknown) { renderTarget = getDevice()->requestResource<Texture>(); const TextureDesc renderTargetDesc = TextureDesc::GetDefaultRenderTarget(width, height, renderTargetFmt); const bool succeeded = renderTarget->create(renderTargetDesc, nullptr); } // Depth Stencil texture. GpuHandle<TextureGL> depthStencilTexture; if (TextureFormat::IsDepth(depthTextureFmt)) { depthStencilTexture = getDevice()->requestResource<Texture>(); const TextureDesc depthStencilDesc = TextureDesc::GetDefaultDepthStencil(width, height, depthTextureFmt); const bool succeeded = depthStencilTexture->create(depthStencilDesc, nullptr); } else { sgeAssert(depthTextureFmt == TextureFormat::Unknown); } // Create the frame target itself. TargetDesc tex2DDesc = TargetDesc::FromTex2D(); return create(renderTarget.IsResourceValid() ? 1 : 0, renderTarget.PtrPtr(), &tex2DDesc, depthStencilTexture, TargetDesc::FromTex2D()); } } // namespace sge
cpp
<filename>index.html <!DOCTYPE HTML> <!-- Solid State by HTML5 UP html5up.net | @ajlkn Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) --> <html> <head> <title><NAME></title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> <link rel="stylesheet" href="assets/css/main.css" /> <noscript> <link rel="stylesheet" href="assets/css/noscript.css" /></noscript> <link rel="icon" type="image/png" href="images\icons8-laptop-64.png"> </head> <body class="is-preload"> <!-- Page Wrapper --> <div id="page-wrapper"> <!-- Header --> <header id="header" class="alt"> <h1><a href="index.html"><NAME></a></h1> </header> <!-- Banner --> <section id="banner"> <div class="inner"> <div class="logo"><span class="icon fa-laptop"></div> <h2><NAME></h2> <p>Software Engineer </br> <a href="./assets/Kevin_Tena_Resume.pdf">Resume</a> &nbsp <a href="https://github.com/kevten22" class="icon fa-github"><span class="label">Github </span> &nbsp</a> <a href="https://www.linkedin.com/in/kevin-tena-812b19175/" class="icon fa-linkedin"><span class="label">LinkedIn </span></a> </p> </div> </section> <!-- Wrapper --> <section id="wrapper"> <!-- One --> <section id="one" class="wrapper spotlight style1"> <div class="inner"> <a href="#" class="image"><img src="images/Profile thumbpic.JPG" alt="" /></a> <div class="content"> <h2 class="major">What I'm About</h2> <p>As someone who was drawn to computers since a young age, I'm an individual who has the curiosity and the passion to learn all that software technology has to offer. Whether it's building a web responsive component in the latest frontend framework, fleshing out the logic for an endpoint in the industry standard RESTful API server, or learning the mathematics foundations for technologies like machine learning or augmented reality, I'm excited to be putting in all my effort.</p> </div> </div> </section> <!-- Two --> <section id="two" class="wrapper alt style1"> <div class="inner"> <h2 class="major">Projects</h2> <section class="features"> <article> <a href="#" class="image"><img src="images/Sauti-Africa.png" alt="Sauti Africa logo" /></a> <h3 class="major">Sauti Design Studio</h3> <p>A web application built to create USSD menu applications for disadvantaged groups in eastern Africa. Stack: React, Node.js, PostgreSQL, React Storm Diagrams </p> <a href="https://sautidesignstudio-dev.netlify.com/" class="special">Visit site</a> </article> <article> <a href="#" class="image"><img src="images/Wellbroomed.png" alt="Wellbroomed landing page" /></a> <h3 class="major">Wellbroomed</h3> <p>A rental property management platform built to make managing multiple properties simpler. Stack: React, Node.js, PostgreSQL </p> <a href="https://sautidesignstudio-dev.netlify.com/" class="special">Visit site</a> </article> <article> <a href="#" class="image"><img src="images/Logo Crop 3.png" alt="Auto-Invoicer Logo" /></a> <h3 class="major">Auto-Invoicer</h3> <p>An invoice web application built on a team of 5 using the Tech Stack: MongoDB, Express, React, and Node.js.</p> <a href="https://www.auto-invoicer.com/" class="special">Visit site</a> </article> <article> <a href="#" class="image"><img src="images/lambdanotes.png" alt="Lambda Notes logo" /></a> <h3 class="major">Lambda Notes</h3> <p>A note taking application built in React, Express, Node.js, and SQLite3.</p> <a href="https://kevintenalambdanotes.netlify.com/" class="special">Visit site</a> </article> <article> <a href="#" class="image"><img src="images/ConwaysGame.png" alt="Screenshot of application" /></a> <h3 class="major">Conway's Game of Life</h3> <p>Traditional Game of Life implemented in javascript.</p> <a href="https://kevin-tena-conways.netlify.com/" class="special">Visit site</a> </article> </section> </div> </section> <section id="three" class="wrapper spotlight style3"> <div class="inner"> <a href="#" class="image"><img src="images/KevTenBlog.png" alt="" /></a> <div class="content"> <h2 class="major">My Blog</h2> <p>I like to write about my experiences with programming and I maintain a blog that holds posts about my journey in Lambda School and current studies. </p> <a href="https://kevin-tena-devblog.netlify.com/" class="special">Check Out the blog</a> </div> </div> </section> </section> <!-- Footer --> <section id="footer"> <div class="inner"> <h2 class="major">Get in touch</h2> <ul class="contact"> <li class="fa-home"> Chicago, IL </li> <li class="fa-phone">(224) 234-0527</li> <li class="fa-envelope"><a href="<EMAIL>"><EMAIL></a></li> <li class="fa-file-text"><a href="./assets/kevin_tena_resume - Copy.pdf">Resume</a></li> <li class="fa-github"><a href="https://github.com/kevten22">Github</a></li> <li class="fa-linkedin"><a href="https://www.linkedin.com/in/kevin-tena-812b19175/">LinkedIn</a> </li> </ul> </div> </section> </div> <!-- Scripts --> <script src="assets/js/jquery.min.js"></script> <script src="assets/js/jquery.scrollex.min.js"></script> <script src="assets/js/browser.min.js"></script> <script src="assets/js/breakpoints.min.js"></script> <script src="assets/js/util.js"></script> <script src="assets/js/main.js"></script> </body> </html>
html
{ "kty":"EC", "crv":"P-256", "x":"<KEY>", "y":"<KEY>", "use":"enc", "kid":"1" }
json
Not everyone is happy with the skin and body they are born with. The recent gender transition of Bruce Jenner into a woman, Caitlyn Jenner has opened doors for many transgenders who want to live the way that want to without any fear of rejection by the society. Caitlyn Jenner broke the internet yesterday when she showed her transitioned look on the cover of Vanity Fair. After 65 years of long wait, the former Olympian came out open with her desires and revealed in April during an interview with Diane Sawyer that he (Bruce) is having a sex change and will be a woman soon. The new look of Caitlyn Jenner became a sensation and made a Twitter record as well with more than 1 million followers within 4 hours! It is not just Caitlyn Jenner as we have some other transgender celebrities in Hollywood who have broken the prejudice and made a place for themselves and we are proud of them. Bruce Jenner dropped a major bomb in April during Diane Sawyer's ABC News' 20/20 interview where he revealed he is transitioning into a woman. Caitlyn Jenner made her debut on Vanity Fair's cover yesterday. Orange is the New Black star became a sensation as Laverne became the first out transgender person to appear on the cover of Time magazine in May 2014 for their special "The Transgender Tipping Point" issue. Caroline aka Tula is one of the world's most well known trans women, having appeared in a James Bond film and been the first to pose for Playboy magazine. Bono is a transgender man who was rumoured to be a lesbian. Cher and Sonny Boho's son, Bono underwent female-to-male gender transition between 2008 and 2010. The YouTube teen is a trans woman too. She came to light in 2007 on "'I'm a Girl' -- Understanding Transgender Children" an interview with Barbara Walters on ABC News' 20/20. Jazz recently landed her first reality show for TLC. The artist is said to be the first identifiable recipients of sex reassignment surgery. Oscar winner, Eddie Redmayne is set to play the role of Lili in the upcoming film, 'The Danish Girl'. The multi-talented transgender American star became the first transgender model signed by powerhouse agency IMG for worldwide representation after her runway debut at New York Fashion Week Spring 2015. The Australian model was billed as an androgynous male model until 2014. Andreja was the first trans model profiled by Vogue. "As a transgender woman I hope to show that after transition (a life-saving process) one can be happy and successful in their new chapter," said Pejić.
english
package com.github.scribejava.apis; import com.github.scribejava.core.builder.api.DefaultApi10a; import com.github.scribejava.core.model.OAuth1RequestToken; public class AWeberApi extends DefaultApi10a { private static final String AUTHORIZE_URL = "https://auth.aweber.com/1.0/oauth/authorize?oauth_token=%s"; private static final String REQUEST_TOKEN_ENDPOINT = "https://auth.aweber.com/1.0/oauth/request_token"; private static final String ACCESS_TOKEN_ENDPOINT = "https://auth.aweber.com/1.0/oauth/access_token"; protected AWeberApi() { } private static class InstanceHolder { private static final AWeberApi INSTANCE = new AWeberApi(); } public static AWeberApi instance() { return InstanceHolder.INSTANCE; } @Override public String getAccessTokenEndpoint() { return ACCESS_TOKEN_ENDPOINT; } @Override public String getRequestTokenEndpoint() { return REQUEST_TOKEN_ENDPOINT; } @Override public String getAuthorizationUrl(OAuth1RequestToken requestToken) { return String.format(AUTHORIZE_URL, requestToken.getToken()); } }
java
<gh_stars>0 #[allow(unused_imports)] use log::{debug, info, warn, LevelFilter}; use std::ffi::{CStr, OsStr}; use std::os::raw::{c_char, c_void}; use std::os::unix::ffi::OsStrExt; use std::path::Path; use std::ptr::null_mut; use failure::Error; use structopt::StructOpt; use qjs::{ffi, Context, ContextRef, ErrorKind, Eval, Local, Runtime, Value, WriteObj, ExtractValue}; use foreign_types::ForeignTypeRef; use std::fs::File; use std::io::Read; use std::cell::RefCell; #[derive(Debug, StructOpt)] #[structopt(name = "qjs", about = "QuickJS script engine for OHX")] pub struct Opt { /// Script arguments args: Vec<String>, } unsafe extern "C" fn jsc_module_loader( ctx: *mut ffi::JSContext, module_name: *const c_char, _opaque: *mut c_void, ) -> *mut ffi::JSModuleDef { let ctxt: &ContextRef = ForeignTypeRef::from_ptr(ctx); let module_name = Path::new(OsStr::from_bytes(CStr::from_ptr(module_name).to_bytes())); info!("load module: {:?}", module_name); ctxt.eval_file(module_name, Eval::MODULE | Eval::COMPILE_ONLY) .ok() .map_or_else(null_mut, |func| func.as_ptr().as_ptr()) } fn get_url(ctx:&ContextRef, url: String) -> String { format!("get_url {}", url) } fn ruletype() -> String { "condition".to_owned() } fn set_global_var(var_name: String, var_value: String) { format!("setGlobalVar {} {}", var_name, var_value); } fn get_global_var(var_name: String) -> Value { format!("getGlobalVar {}", var_name); unimplemented!() } fn set_named_output(var_name: String, var_value: Value) { format!("setNamedOutputValue {} {:?}", var_name, var_value); } fn get_named_input(var_name: String) -> Value { format!("getNamedInputValue {}", var_name); unimplemented!() } fn exec_thing_action(thing_id: String, action_id:String,arguments:Value) { format!("execThingAction {}", thing_id); } fn get_thing_state(thing_id: String, state_name:String,state_instance:u16) -> Value { format!("getThingState {}", thing_id); unimplemented!() } fn get_all_thing_states(thing_id: String) -> Value { format!("getAllThingStates {}", thing_id); unimplemented!() } fn cmd_thing_state(thing_id: String, state_name: String,state_instance:u16, var_value: Value) -> bool{ format!("cmdThingState {} {}", thing_id, state_name); false } fn register_state_listener(ctx:&ContextRef, thing_id: String, callback_function: Value) -> String{ let r=format!("notifyOnThingStatesChange {} {}", thing_id, callback_function.is_function_bytecode()); ctx.free_value(callback_function); r } fn unregister_state_listener(listener_id:u64) { format!("unregisterThingStateListener {}", listener_id); } fn main() -> Result<(), Error> { env_logger::builder().filter_level(LevelFilter::Info).init(); let opt = Opt::from_clap( &Opt::clap() .version(qjs::LONG_VERSION.as_str()) .get_matches(), ); debug!("opts: {:?}", opt); let rt = Runtime::new(); // loader for ES6 modules rt.set_module_loader::<()>(None, Some(jsc_module_loader), None); { let ctxt = Context::new(&rt); ctxt.std_add_helpers::<_, String>(None)?; ctxt.init_module_os()?; let get_url_fun: fn(&ContextRef, String) -> String = get_url; ctxt.global_object().set_property("get_url", get_url_fun)?; let register_state_listener_fun: fn(&ContextRef, String,Value) -> String = register_state_listener; ctxt.global_object().set_property("notifyOnThingStatesChange", register_state_listener_fun)?; let outside = RefCell::new(Vec::new()); let hello_fun = |ctxt: &ContextRef, _this: Option<&Value>, args: &[Value]| { if let Some(abc) = String::extract_value(&ctxt.bind(&args[0])) { let mut vec = outside.borrow_mut(); vec.push(abc.clone()); let r = format!("hello {}", abc); r } else { String::new() } }; let hello = ctxt.new_c_function(hello_fun, Some("hello"), 1)?; ctxt.global_object().set_property("hello", hello)?; ctxt.global_object().set_property("output", ffi::NULL)?; if let Some(filename) = opt.args.first() { debug!("eval file: {}", filename); let mut buf = Vec::new(); buf.extend_from_slice("import {sleep,setTimeout,clearTimeout} from 'os';\n".as_bytes()); File::open(filename)?.read_to_end(&mut buf)?; let val = ctxt.eval_script(buf, filename, Eval::MODULE | Eval::COMPILE_ONLY)?; let _ = ctxt.set_import_meta(&val, true, true); let buf = ctxt.write_object(&val, WriteObj::BYTECODE)?; if let Err(err) = ctxt.eval_binary(&buf, false) { eprintln!("error: {}", err); if let Some(stack) = err.downcast_ref::<ErrorKind>().and_then(|err| err.stack()) { eprintln!("{}", stack) } rt.std_free_handlers(); return Err(err); } }; ctxt.std_loop(); let res: Local<Value> = ctxt.global_object(); let res = res.get_property("output"); match res { Some(res) => { println!("b{},f{},i{},s{},{}", res.is_bool(), res.is_float(), res.is_integer(), res.is_string(), res); } None => { println!("res undefined"); } } } rt.std_free_handlers(); Ok(()) }
rust
<reponame>adrienvalcke/express-hero /** * CRYPTE */ /* REQUIRES */ var crypto = require('crypto'); var conf = require('./conf'); var errorHandler = require('./errorHandler'); var debug = require('debug')('express-hero:crypte'); /** * SET CRYPTING ENVIRONMENT FROM PROCESS.ENV OR DEFAULTS * see denvar node modules and env.json file * salt, iv and cipher passwords MUST be specify */ var defaults = conf.defaults; var _salt = { password: process.env.SALT_PASS || null, hash: process.env.SALT_ALGO || defaults.saltHash }; var _iv = { password: process.env.IV_PASS || null, iterations: ~~process.env.IV_ITERATIONS || defaults.iterations, keylen: defaults.ivKeylen, digest: process.env.IV_DIGEST || defaults.digest }; var _cipher = { cipher: defaults.cipher, key: process.env.CIPHER_KEY || null, }; var _spicy = { pepper: process.env.PEPPER_KEY || defaults.pepper, chilli: process.env.CHILLI_KEY || defaults.chilli, oignon: process.env.OIGNON_KEY || defaults.oignon }; /** * MAIN ENTRY POINT. * * Check if the crypting environment is set. Throw an error if not. */ module.exports = function() { var isError = false; if (!_salt.password) { debug('Required salt password "SALT_PASS" variable was not found in process.env. Should be loaded from env.json.'); isError = true; } if(!_iv.password) { debug('Required initialisation vector "IV_PASS" variable password was not found in process.env. Should be loaded from env.json.'); isError = true; } if(!_cipher.key) { debug('Required cipher key "CIPHER_KEY" variable was not found in process.env. Should be loaded from env.json.'); isError = true; } else { // var cipherBuf = Buffer.from(_cipher.key); TODO update to Node.js 6.0.0 var cipherBuf = new Buffer(_cipher.key); keylen = cipherBuf.length; if (keylen !== defaults.cipherKeylen) { debug('Cipher key "CIPHER_KEY" must be a ' + defaults.cipherKeylen + ' bits key not ' + keylen); isError = true; } } if (isError) throw new Error('Security warning : crypting environnement unset.'); else debug('Crypting environment set and secure.'); }; /* EXPORTS */ module.exports.defaults = defaults; module.exports.genKeySync = genKeySync; module.exports.cryptPassword = cryptPassword; module.exports.cryptPasswordSync = cryptPasswordSync; module.exports.decryptPassword = decryptPassword; module.exports.decryptPasswordSync = decryptPasswordSync; module.exports.verifyPassword = verifyPassword; module.exports.verifyPasswordSync = verifyPasswordSync; /* FUNCTIONS */ /** * FUNCTION GENSALTSYNC * generate a salt key synchronously * * @param {String} hash see conf.js * @param {String} password * @return {Buffer} */ function genSaltSync(hash, password) { if (!errorHandler({hash: hash, password: password})) { var randomBytes = crypto.randomBytes(32); return crypto.createHmac(hash, password) .update(randomBytes) .digest(); } else { throw new Error('Security warning, cannot generate a salt key.'); } } /** * FUNCTION GENSALT * generate a salt key asynchronously * * @param {String} hash see conf.js * @param {String} password * @return {Function} callback function cb(err, salt) */ function genSalt(hash, password, cb) { if (!errorHandler({hash: hash, password: password})) { crypto.randomBytes(32, function(err, buf) { if (err) return cb(null, err); var salt = crypto.createHmac(hash, password) .update(buf) .digest(); return cb(null, salt); }); } else { cb(null, 'Security warning, cannot generate a salt key.'); } } /** * FUNCTION GENKEYSYNC * generate a key synchronously with the most secure algorithms only. * Also used by ClI * * @param {Object} params must contain password, iterations, keylen, digest, encoding[, saltPassword] * @param {String} password * @return {Buffer} */ function genKeySync(params) { var password = params.password || null, iterations = parseInt(params.iterations) || 100000, keylen = parseInt(params.keylen) || null, digest = params.digest || null, encoding = params.encoding || 'binary', saltHash = defaults.saltHash, saltPassword = params.saltPassword || null; if (!errorHandler({password: password, saltPassword: <PASSWORD>, iterations: iterations, keylen: keylen, hash: digest, encoding: encoding})) { var salt; if (!saltPassword) salt = crypto.randomBytes(32); else salt = genSaltSync(saltHash, saltPassword); var key = crypto.pbkdf2Sync(password, salt, iterations, keylen, digest); if (encoding !== 'binary') key = key.toString(encoding); return key.slice(0, keylen); } else { throw new Error('Security warning, cannot generate a key.'); } } /** * FUNCTION GENKEY * generate a key asynchronously with the most secure algorithms only. * * @param {Object} params must contain password, iterations, keylen, digest, encoding[, saltPassword] * @param {String} password * @return {Function} callback function cb(err, key) */ function genKey(params, cb) { var password = params.password || null, iterations = parseInt(params.iterations) || 100000, keylen = parseInt(params.keylen) || null, digest = params.digest || null, encoding = params.encoding || 'binary', saltHash = defaults.saltHash, saltPassword = params.saltPassword || null; if (!errorHandler({password: password, saltPassword: <PASSWORD>Password, iterations: iterations, keylen: keylen, hash: digest, encoding: encoding})) { genSalt(saltHash, saltPassword, function(err, salt) { if (err) return cb(err, null); crypto.pbkdf2(password, salt, iterations, keylen, digest, function(err, key) { if (err) return cb(err, null); if (encoding !== 'binary') key = key.toString(encoding); return cb(null, key.slice(0, keylen)); }); }); } else { return cb('Security warning, cannot generate a key.', null); } } /** * FUNCTION CRYPTPASSWORDSYNC * crypt a string synchronously * @param {String} passwordString * @return {String} A password in hexadecimal encoding */ function cryptPasswordSync(passwordString) { var iv = genKeySync({password: <PASSWORD>, iterations: _iv.iterations, keylen: _iv.keylen, digest: _iv.digest, saltPassword: <PASSWORD>}); _timingSync(); var cipher = crypto.createCipheriv(_cipher.cipher, _cipher.key, iv); var encrypted = cipher.update(passwordString, 'utf8', 'hex'); encrypted += cipher.final('hex'); var tag = cipher.getAuthTag(); var randomBytes = crypto.randomBytes(12); return tag.toString('hex') + _spicy.pepper + encrypted + _spicy.chilli + iv.toString('hex') + _spicy.oignon + randomBytes.toString('hex'); } /** * FUNCTION CRYPTPASSWORD * crypt a string asynchronously * @param {String} passwordString * @return {Function} callback function cb(err, encrypted) encrypted is a hexadecimal key */ function cryptPassword(passwordString, cb) { genKey( { password: <PASSWORD>, iterations: _iv.iterations, keylen: _iv.keylen, digest: _iv.digest, saltPassword: _<PASSWORD> }, function(err, iv) { if (err) return cb(err, null); _timingSync(); var cipher; try { cipher = crypto.createCipheriv(_cipher.cipher, _cipher.key, iv); } catch (e) { return cb(e, null); } var encrypted = cipher.update(passwordString, 'utf8', 'hex'); encrypted += cipher.final('hex'); var tag = cipher.getAuthTag(); var randomBytes = crypto.randomBytes(12); return cb(null, tag.toString('hex') + _spicy.pepper + encrypted + _spicy.chilli + iv.toString('hex') + _spicy.oignon + randomBytes.toString('hex')); }); } /** * FUNCTION DECRYPTPASSWORDSYNC * decrypt a hexadecimal key synchronously * @param {String} hexKey hexadecimal key * @return {String|null} content decrypted */ function decryptPasswordSync(hexKey) { var splitKey = _splitKeyiv(hexKey); if (!splitKey) { debug('Decrypt password failed. Invalid password key.'); return null; } var decipher = crypto.createDecipheriv(_cipher.cipher, _cipher.key, splitKey.iv); decipher.setAuthTag(splitKey.tag); var decrypted = decipher.update(splitKey.content, 'hex', 'utf8'); decrypted += decipher.final('utf8'); return decrypted; } /** * FUNCTION DECRYPTPASSWORD (more robust) * decrypt a hexadecimal key synchronously (no need for asynchonous) * @param {String} hexKey hexadecimal key * @return {Function} callback cb(err, decrypted) */ function decryptPassword(hexKey, cb) { var splitKey = _splitKeyiv(hexKey); if (!splitKey) return cb(new Error('Hexadecimal key is not valid.'), null); var decipher; try { decipher = crypto.createDecipheriv(_cipher.cipher, _cipher.key, splitKey.iv); decipher.setAuthTag(splitKey.tag); } catch (e) { return cb(e, null); } var decrypted = decipher.update(splitKey.content, 'hex', 'utf8'); decrypted += decipher.final('utf8'); return cb(null, decrypted); } /** * FUNCTION VERIFYPASSWORDSYNC * @param {String} passwordString password from user input * @param {String} hexKey hexadecimal key from db * @return {Boolean} true if match */ function verifyPasswordSync(passwordString, hexKey) { var decrypted = decryptPasswordSync(hexKey); return passwordString === decrypted; } /** * FUNCTION VERIFYPASSWORD * @param {String} passwordString password from user input * @param {String} hexKey hexadecimal key from db * @return {Function} callback cb(err, match) true if match */ function verifyPassword(passwordString, hexKey, cb) { decryptPassword(hexKey, function(err, decrypted) { if (err) return cb(err, false); if (passwordString === decrypted) return cb(null, true); else return cb(null, false); }); } /** * FUNCTION _SPLITKEYIV * get tag, content and iv from hexadecimal keys * @param {String} hexKey a hexadecimal key * @return {Object} {tag: Buffer, content: String (hex), iv: Buffer} */ function _splitKeyiv(hexKey) { // tag-pepper-content-chilli-iv-oignon-random if (!hexKey || typeof (hexKey.valueOf()) !== 'string') return null; var tag = null, content = null, iv = null; // get tag var arrayKey = hexKey.split(_spicy.pepper); if (arrayKey.length === 2) { tag = new Buffer(arrayKey[0], 'hex'); // get content and iv hexKey = arrayKey[1]; arrayKey = hexKey.split(_spicy.chilli); if (arrayKey.length === 2) { content = arrayKey[0]; hexKey = arrayKey[1]; arrayKey = hexKey.split(_spicy.oignon); if (arrayKey.length === 2) { iv = new Buffer(arrayKey[0], 'hex'); } else { debug('Invalid oignon in password key : ' + hexKey); return null; } } else { debug('Invalid chilli in password key : ' + hexKey); return null; } } else { debug('Invalid pepper in password key : ' + hexKey); return null; } return { tag: tag, content: content, iv: iv } } /** * FUNCTION _TIMINGSYNC * prevent cryptographic timing attacks by alterating timing to crypt a password */ function _timingSync() { var bytesLength = [8, 16, 32, 64, 128, 256, 512]; var hash = ['sha1', 'sha256', 'sha512']; var randomLength = Math.floor(Math.random() * bytesLength.length); var randomHash = Math.floor(Math.random() * hash.length); var randomBytes = crypto.randomBytes(bytesLength[randomLength]); var randomPass = <PASSWORD>(16).toString('hex'); crypto.createHmac(hash[randomHash], randomPass) .update(randomBytes) .digest(); }
javascript
has extrapolated data collected over the last six months on city transportation patterns across the country to reveal the seven worst traffic bottlenecks in the country. Between 9am and 12 noon, when most people travel to their offices, the average speed remains at 19kmph Ola said. The lowest average speed stands at just 18kmph, when commuters return home, between 6pm and 9pm. The best time to travel is between 3am and 6am, when the top average speed of Indian traffic is 33kmph. Across the seven metros, the worst traffic bottlenecks are faced in Domulur and Silk Board in Bengaluru, Park Street and Shyambazaar in Kolkata, Charminar in Hyderabad, and Powai and Saki Naka in Mumbai. The fastest average vehicular movement across the top seven metros is witnessed in Delhi and Pune, with an average speed of 23kmph - slower than Ethiopian long distance runner Kenenisa Bekele's 5,000 metre run in 2004. Chennai, Mumbai, and Hyderabad have average speeds of 21, 20 and 19kmph respectively, while Bengaluru and Kolkata have the slowest average speeds, at 18 and 17kmph respectively. Ola's vehicle fleet, present across a hundred cities, relays rich data in real-time, helping it demand and plan inventory better, said Pranay Jivrajka, COO at Ola. Ola Insights can be useful in addressing important issues like de-congestion, urban planning, and traffic management, he added. "We are working with the government at multiple levels to put this rich data to use over the long term for improving the state of mobility in the cities we live in." its 'CarPool' feature in Delhi NCR, enabling citizens to pool rides using their private cars through the mobile app.
english
<section id="f-settings"> <h4>Settings</h4> <form> <div class="f-settings-group"> <h5>Menu Position:</h5> <div class="f-btn-group" data-selected="{{toolkit.menu}}" data-btn-group="menu"> <label> Left <input type="radio" name="menu" value="left" /> </label> <label> Right <input type="radio" name="menu" value="right" /> </label> </div> </div> <div class="f-settings-group"> <h5>Fullscreen:</h5> <div class="f-btn-group" data-selected="{{toolkit.fullscreen}}" data-btn-group="fullscreen"> <label> On <input type="radio" name="fullscreen" value="on" /> </label> <label> Off <input type="radio" name="fullscreen" value="off" /> </label> </div> </div> <div class="f-settings-group"> <h5>Sticky:</h5> <div class="f-btn-group" data-selected="off" data-btn-group="sticky"> <label> On <input type="radio" name="sticky" value="on" /> </label> <label> Off <input type="radio" name="sticky" value="off" /> </label> </div> </div> </form> </section>
html
<reponame>nkmk/hexo-list-related-posts { "name": "hexo-list-related-posts", "version": "0.3.0", "description": "A hexo plugin that generates a list of links to related posts based on tags.", "main": "lib/index.js", "repository": { "type": "git", "url": "git+https://github.com/nkmk/hexo-list-related-posts.git" }, "keywords": [ "hexo", "plugin", "helper", "list", "related" ], "author": "nkmk", "license": "MIT", "bugs": { "url": "https://github.com/nkmk/hexo-list-related-posts/issues" }, "homepage": "https://github.com/nkmk/hexo-list-related-posts#readme", "dependencies": { "lodash.assign": "^3.2.0", "striptags": "^2.1.1" } }
json