text
stringlengths 1
1.04M
| language
stringclasses 25
values |
---|---|
<filename>database/ticket_test.go
// Copyright (c) 2020 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
package database
import (
"reflect"
"testing"
"time"
)
func exampleTicket() Ticket {
return Ticket{
Hash: "Hash",
CommitmentAddress: "Address",
FeeAddressIndex: 12345,
FeeAddress: "FeeAddress",
FeeAmount: 10000000,
FeeExpiration: 4,
Confirmed: false,
VoteChoices: map[string]string{"AgendaID": "Choice"},
VotingWIF: "VotingKey",
FeeTxHex: "FeeTransction",
FeeTxHash: "",
FeeTxStatus: FeeBroadcast,
}
}
func testInsertNewTicket(t *testing.T) {
// Insert a ticket into the database.
ticket := exampleTicket()
err := db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Inserting a ticket with different fee address but same hash should fail.
ticket2 := exampleTicket()
ticket2.FeeAddress = ticket.FeeAddress + "2"
err = db.InsertNewTicket(ticket)
if err == nil {
t.Fatal("expected an error inserting ticket with duplicate hash")
}
// Inserting a ticket with different hash but same fee address should fail.
ticket3 := exampleTicket()
ticket3.FeeAddress = ticket.Hash + "2"
err = db.InsertNewTicket(ticket)
if err == nil {
t.Fatal("expected an error inserting ticket with duplicate fee addr")
}
// Inserting a ticket with empty hash should fail.
ticket.Hash = ""
err = db.InsertNewTicket(ticket)
if err == nil {
t.Fatal("expected an error inserting ticket with no hash")
}
}
func testDeleteTicket(t *testing.T) {
// Insert a ticket into the database.
ticket := exampleTicket()
err := db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Delete ticket
err = db.DeleteTicket(ticket)
if err != nil {
t.Fatalf("error deleting ticket: %v", err)
}
// Nothing should be in the db.
_, found, err := db.GetTicketByHash(ticket.Hash)
if err != nil {
t.Fatalf("error retrieving ticket by ticket hash: %v", err)
}
if found {
t.Fatal("expected found==false")
}
}
func testGetTicketByHash(t *testing.T) {
ticket := exampleTicket()
// Insert a ticket into the database.
err := db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Retrieve ticket from database.
retrieved, found, err := db.GetTicketByHash(ticket.Hash)
if err != nil {
t.Fatalf("error retrieving ticket by ticket hash: %v", err)
}
if !found {
t.Fatal("expected found==true")
}
// Check ticket fields match expected.
if retrieved.Hash != ticket.Hash ||
retrieved.CommitmentAddress != ticket.CommitmentAddress ||
retrieved.FeeAddressIndex != ticket.FeeAddressIndex ||
retrieved.FeeAddress != ticket.FeeAddress ||
retrieved.FeeAmount != ticket.FeeAmount ||
retrieved.FeeExpiration != ticket.FeeExpiration ||
retrieved.Confirmed != ticket.Confirmed ||
!reflect.DeepEqual(retrieved.VoteChoices, ticket.VoteChoices) ||
retrieved.VotingWIF != ticket.VotingWIF ||
retrieved.FeeTxHex != ticket.FeeTxHex ||
retrieved.FeeTxHash != ticket.FeeTxHash ||
retrieved.FeeTxStatus != ticket.FeeTxStatus {
t.Fatal("retrieved ticket value didnt match expected")
}
// Check found==false when requesting a non-existent ticket.
_, found, err = db.GetTicketByHash("Not a real ticket hash")
if err != nil {
t.Fatalf("error retrieving ticket by ticket hash: %v", err)
}
if found {
t.Fatal("expected found==false")
}
}
func testUpdateTicket(t *testing.T) {
ticket := exampleTicket()
// Insert a ticket into the database.
err := db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Update ticket with new values
ticket.FeeAmount = ticket.FeeAmount + 1
ticket.FeeExpiration = ticket.FeeExpiration + 1
err = db.UpdateTicket(ticket)
if err != nil {
t.Fatalf("error updating ticket: %v", err)
}
// Retrieve ticket from database.
retrieved, found, err := db.GetTicketByHash(ticket.Hash)
if err != nil {
t.Fatalf("error retrieving ticket by ticket hash: %v", err)
}
if !found {
t.Fatal("expected found==true")
}
if ticket.FeeAmount != retrieved.FeeAmount ||
ticket.FeeExpiration != retrieved.FeeExpiration {
t.Fatal("retrieved ticket value didnt match expected")
}
// Updating a non-existent ticket should fail.
ticket.Hash = "doesnt exist"
err = db.UpdateTicket(ticket)
if err == nil {
t.Fatal("expected an error updating a ticket with non-existent hash")
}
}
func testTicketFeeExpired(t *testing.T) {
ticket := exampleTicket()
now := time.Now()
hourBefore := now.Add(-time.Hour).Unix()
hourAfter := now.Add(time.Hour).Unix()
ticket.FeeExpiration = hourAfter
if ticket.FeeExpired() {
t.Fatal("expected ticket not to be expired")
}
ticket.FeeExpiration = hourBefore
if !ticket.FeeExpired() {
t.Fatal("expected ticket to be expired")
}
}
func testFilterTickets(t *testing.T) {
// Insert a ticket
ticket := exampleTicket()
err := db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Insert another ticket
ticket.Hash = ticket.Hash + "1"
ticket.FeeAddress = ticket.FeeAddress + "1"
ticket.FeeAddressIndex = ticket.FeeAddressIndex + 1
ticket.Confirmed = !ticket.Confirmed
err = db.InsertNewTicket(ticket)
if err != nil {
t.Fatalf("error storing ticket in database: %v", err)
}
// Expect all tickets returned.
retrieved, err := db.filterTickets(func(t Ticket) bool {
return true
})
if err != nil {
t.Fatalf("error filtering tickets: %v", err)
}
if len(retrieved) != 2 {
t.Fatal("expected to find 2 tickets")
}
// Only one ticket should be confirmed.
retrieved, err = db.filterTickets(func(t Ticket) bool {
return t.Confirmed
})
if err != nil {
t.Fatalf("error filtering tickets: %v", err)
}
if len(retrieved) != 1 {
t.Fatal("expected to find 2 tickets")
}
if retrieved[0].Confirmed != true {
t.Fatal("expected retrieved ticket to be confirmed")
}
// Expect no tickets with confirmed fee.
retrieved, err = db.filterTickets(func(t Ticket) bool {
return t.FeeTxStatus == FeeConfirmed
})
if err != nil {
t.Fatalf("error filtering tickets: %v", err)
}
if len(retrieved) != 0 {
t.Fatal("expected to find 0 tickets")
}
}
| go |
“Leadership can take many forms. M S Dhoni is an inspiring captain who is open to ideas,” he added. Fleming said the Pune team has a good blend of overseas players and young talent. With Dhoni as captain, the team has players like Mitchell Marsh, Kevin Pietersen, Ajinkya Rahane, Ravichandran Ashwin and the two overseas skippers in Fa du Plessis and Steve Smith who has had a stint with the Pune team in earlier edition. | english |
<reponame>niklasf/flexmark-java
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<p>flexmark-java extension for definition list processing</p>
<p>Converts definition syntax of
<a href="https://michelf.ca/projects/php-markdown/extra/#def-list">Php Markdown Extra Definition List</a>
into <code><dl></dl></code> html</p>
<p>Definition items can be preceded by <code>:</code> or <code>~</code></p>
<p>Definition list is one or more definition terms with one or more definitions.</p>
<pre><code class="markdown">Definition Term
: Definition of above term
: Another definition of above term
</code></pre>
<p>Definitions terms can have no definitions if they are not the last term before a definition:</p>
<pre><code class="markdown">Definition Term without definition
Definition Term
: Definition of above term
: Another definition of above term
</code></pre>
</body>
</html>
| html |
/**
* Created by himanshuahuja on 27/05/17.
*/
function Population(p, m, num) {
this.population; // Array to hold the current population
this.matingPool; // ArrayList which we will use for our "mating pool"
this.generations = 0; // Number of generations
this.finished = false; // Are we finished evolving?
this.target = p; // Target phrase
this.mutationRate = m; // Mutation rate
this.perfectScore = 1;
this.best = "";
this.population = [];
for (var i = 0; i < num; i++) {
this.population[i] = new DNA(this.target.length);
}
this.matingPool = [];
// Fill our fitness array with a value for every member of the population
this.calcFitness = function() {
for (var i = 0; i < this.population.length; i++) {
this.population[i].calcFitness(target);
}
}
this.calcFitness();
this.naturalSelection = function() {
// Clear the ArrayList
this.matingPool = [];
var maxFitness = 0;
for (var i = 0; i < this.population.length; i++) {
if (this.population[i].fitness > maxFitness) {
maxFitness = this.population[i].fitness;
}
}
// Based on fitness, each member will get added to the mating pool a certain number of times
// a higher fitness = more entries to mating pool = more likely to be picked as a parent
// a lower fitness = fewer entries to mating pool = less likely to be picked as a parent
for (var i = 0; i < this.population.length; i++) {
var fitness = map(this.population[i].fitness,0,maxFitness,0,1);
var n = floor(fitness * 100); // Arbitrary multiplier, we can also use monte carlo method
for (var j = 0; j < n; j++) { // and pick two random numbers
this.matingPool.push(this.population[i]);
}
}
}
// Create a new generation
this.generate = function() {
// Refill the population with children from the mating pool
for (var i = 0; i < this.population.length; i++) {
var a = floor(random(this.matingPool.length));
var b = floor(random(this.matingPool.length));
var partnerA = this.matingPool[a];
var partnerB = this.matingPool[b];
child = partnerB.crossover(partnerA);
child.mutate(this.mutationRate);
this.population[i] = child;
}
this.generations++;
}
this.getBest = function() {
return this.best;
}
//Compute the current most fit member of the population
this.evaluate = function() {
var worldrecord = 0.0;
var index = 0;
for (var i = 0; i < this.population.length; i++){
if(this.population[i].fitness > worldrecord) {
index = i;
worldrecord = this.population[i].fitness;
}
}
this.best = this.population[index].getPhrase();
if (worldrecord === this.perfectScore) {
this.finished = true;
}
}
this.isFinished = function() {
return this.finished;
}
this.getGenerations = function() {
return this.generations;
}
//Compute Average fitness of the population
this.getAverageFitness = function() {
var total = 0;
for (var i = 0; i < this.population.length; i++) {
total += this.population[i].fitness;
}
return total / (this.population.length);
}
this.allPhrases = function () {
var everything = "";
var displayLimit = min(this.population.length, 50);
for (var i = 0; i < displayLimit; i++) {
everything += this.population[i].getPhrase() + "<br>";
}
return everything;
}
} | javascript |
<filename>index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
<title>Document</title>
</head>
<body>
<header>
<img src="https://via.placeholder.com/200x70" alt="logo">
<nav>
<ul>
<li><a href="">item1</a></li>
<li><a href=""></a>item2</li>
<li><a href=""></a>item3</li>
<li><a href=""></a>item4</li>
</ul>>
</nav>
</header>
<main>
<section>
<img src="https://via.placeholder.com/960x450" alt="logo">
</section>
<section>
<img src="https://via.placeholder.com/300x375" alt="logo">
<img src="https://via.placeholder.com/300x375" alt="logo">
<img src="https://via.placeholder.com/300x375" alt="logo">
</section>
<section id="left">
<img src="https://via.placeholder.com/480x400" alt="logo">
</section>
<section id="right">
<h5>Where does it come from?</h5>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin literature from 45 BC, making it over 2000 years old. <NAME>, a Latin professor at
Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a
Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the
undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et
Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the
theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor
sit amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested.
Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their
exact original form, accompanied by English versions from the 1914 translation by <NAME>.</p>
</section>
</main>
<footer></footer>
</body>
</html> | html |
<filename>mysql-replicator-supplier-model/src/main/java/com/booking/replication/supplier/model/XIDRawEventData.java<gh_stars>10-100
package com.booking.replication.supplier.model;
@SuppressWarnings("unused")
public interface XIDRawEventData extends RawEventData {
long getXID();
}
| java |
<filename>src/componentTest/resources/expectedTemplateContent/service-bus-sessions-enabled/src/main/java/com/blackbaud/service/servicebus/ServiceBusConfig.java<gh_stars>1-10
package com.blackbaud.service.servicebus;
import com.blackbaud.azure.servicebus.config.ServiceBusProperties;
import org.springframework.beans.factory.annotation.Qualifier;
import com.blackbaud.azure.servicebus.config.ServiceBusConsumerConfig;
import com.blackbaud.azure.servicebus.config.ServiceBusPublisherConfig;
import com.blackbaud.azure.servicebus.consumer.ServiceBusConsumer;
import com.blackbaud.azure.servicebus.consumer.ServiceBusConsumerBuilder;
import com.blackbaud.azure.servicebus.publisher.JsonMessagePublisher;
import com.blackbaud.azure.servicebus.publisher.ServiceBusPublisherBuilder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import({ServiceBusConsumerConfig.class, ServiceBusPublisherConfig.class})
@EnableConfigurationProperties(ProducerServiceBusProperties.class)
public class ServiceBusConfig {
@Bean
public ProducerMessageHandler producerMessageHandler() {
return new ProducerMessageHandler();
}
@Bean
public ServiceBusConsumer producerConsumer(
ServiceBusConsumerBuilder.Factory serviceBusConsumerFactory,
ProducerMessageHandler producerMessageHandler,
ProducerServiceBusProperties serviceBusProperties) {
return serviceBusConsumerFactory.create()
.dataSyncTopicServiceBus(serviceBusProperties)
.jsonMessageHandler(producerMessageHandler, ProducerPayload.class)
.build();
}
}
| java |
Indian-origin Amarpreet Singh Samar was among the top 10 gangsters on the United Nations designated list.
The Tamil Nadu cabinet on Sunday decided to recommend the premature release of all seven convicts in the Rajiv Gandhi assassination case to the TN Governor.
The Tamil Nadu cabinet held a special meeting chaired by Chief Minister E Palanisamy. The AIADMK government decided that all seven convicts in the case - AG Perarivalan, Nalini Sriharan, Murugan, Santhan, Robert, Jayakumar and Ravichandran - are to be considered for premature release.
Indian-origin Amarpreet Singh Samar was among the top 10 gangsters on the United Nations designated list.
Sakshi Malik said that police officials seized her phone and that she was taken on a bus after detention wherein she was the only female.
At least two people were killed in fresh violence in the Northeast state.
The 16-year-old girl was stabbed outside her home in Delhi’s JJ Colony. | english |
Lakme Fashion Week (LFW) is set to return with its Winter/Festive edition from August 21-25 at St. Regis, Mumbai.
LFW will celebrate 20 years with this edition. The fashion gala has had several firsts to its credit in all these years. These include promoting local artisans, identifying as well as fostering new talent through properties such as the model auditions and Gen Next - a discovery platform for new designers.
With the upcoming edition, the fashion event will once again spearhead conversations around innovation, creativity, circular fashion, cutting edge design and technology.
"Lakme Fashion Week has always focused on launching ground-breaking beauty and fashion trends and showcasing them on the runway. The upcoming Winter/Festive 2019 promises to be bigger and will further push the boundaries of India's premier fashion event," Ashwath Swaminathan, Head of Innovations at Lakme, said in a statement.
Jaspreet Chandok, Vice President and Head of Fashion, IMG Reliance Ltd, added: "The Winter/Festive 2019 edition is going to be extravagant in every way. We aim to redefine our benchmarks and put forth new ideas in fashion, along with a focus towards making the platform more inclusive, sustainable and global. "(This story has not been edited by News18 staff and is published from a syndicated news agency feed - IANS) | english |
<reponame>TheoCadoret/racing
package tddmicroexercises.turnticketdispenser;
public class TicketDispenser
{
private final Compteur compteur;
public TicketDispenser(Compteur compteur){
this.compteur = compteur;
}
public TurnTicket getTurnTicket()
{
int newTurnNumber = compteur.getNextTurnNumber();
TurnTicket newTurnTicket = new TurnTicket(newTurnNumber);
return newTurnTicket;
}
}
| java |
The National Company Law Tribunal (NCLT) on Tuesday approved Mumbai-based Suraksha Group’s bid to buy bankrupt real estate firm Jaypee Infratech, nearly two years after the committee of creditors (CoC) had approved its resolution plan. The final approval comes nearly six years after the debt-ridden company entered into the insolvency process.
The development will provide relief to more than 20,000 homebuyers across various housing projects launched by the firm in Noida and Greater Noida.
A two-member principal bench of NCLT headed by president Ramalingam Sudhkar on Tuesday approved the resolution plan, more than three months after concluding the hearing and reserving the order.
A monitoring committee will be set up by the applicant interim resolution professional (IRP) and will take all necessary steps for expeditious implementation of the resolution plan, the bench said. The committee, to be constituted as per the resolution plan, will be set up in seven days.
The successful resolution applicant should deliver the units for the homebuyers’ possession as per the time frame promised in the resolution plan, the bench said.
“The monitoring committee would supervise and monitor the progress of the construction of units, related infrastructure development on a day-to-day basis and file report before this adjudicating authority (NCLT) on a monthly basis,” it added.
In June 2021, Suraksha Group had received the approval of the CoC to take over Jaypee Infratech, with more than 98% of votes in favour of its resolution plan. The other contender, state-owned NBCC, had lost the race by 0.12% votes. Suraksha had emerged the winner in the fourth round of the bidding process to find a buyer for Jaypee Infratech, which went into CIRP in August 2017.
It has offered bankers more than 2,500 acres of land and nearly Rs 1,300 crore by way of non-convertible debentures. It has proposed to complete the pending apartments in 42 months.
Jaypee Infratech’s total claims are a little over Rs 22,600 crore with homebuyers’ share at around Rs 12,700 crore and that of 13 banks and financial institutions at Rs 9,783 crore.
In the first round of insolvency proceedings, a Rs 7,350-crore bid made by Lakshadweep, part of Suraksha Group, was rejected by lenders. The CoC had rejected the bids of Suraksha Realty and NBCC in the second round in May-June 2019.
The matter reached the National Company Law Appellate Tribunal (NCLAT) and then the Supreme Court. In November 2019, the apex court directed the completion of Jaypee Infratech’s insolvency process within 90 days and ordered that the revised bids be invited only from NBCC and Suraksha Group.
In December 2019, the CoC approved NBCC’s resolution plan with a 97.36% vote in its favour during the third round of the bidding process. In March 2020, NBCC received approval from the NCLT to acquire Jaypee Infratech. However, the order was challenged before the NCLAT and later in the Supreme Court, which in March 2021 ordered that fresh bids be invited only from NBCC and Suraksha.
The SC then directed that the resolution process be completed in 45 days, which lapsed on May 8, 2021, and an application was filed to extend the timeline. Jaypee Infratech’s IRP had then sought time till July 7, 2021, from the SC to complete the process.
Jaypee Infratech was among the first list of 12 companies against whom the Reserve Bank of India had directed banks to approach NCLT for initiation of insolvency proceedings.
| english |
<filename>examples/highfreq/highfreq_ops.py<gh_stars>1000+
import numpy as np
import pandas as pd
import importlib
from qlib.data.ops import ElemOperator, PairOperator
from qlib.config import C
from qlib.data.cache import H
from qlib.data.data import Cal
from qlib.contrib.ops.high_freq import get_calendar_day
class DayLast(ElemOperator):
"""DayLast Operator
Parameters
----------
feature : Expression
feature instance
Returns
----------
feature:
a series of that each value equals the last value of its day
"""
def _load_internal(self, instrument, start_index, end_index, freq):
_calendar = get_calendar_day(freq=freq)
series = self.feature.load(instrument, start_index, end_index, freq)
return series.groupby(_calendar[series.index]).transform("last")
class FFillNan(ElemOperator):
"""FFillNan Operator
Parameters
----------
feature : Expression
feature instance
Returns
----------
feature:
a forward fill nan feature
"""
def _load_internal(self, instrument, start_index, end_index, freq):
series = self.feature.load(instrument, start_index, end_index, freq)
return series.fillna(method="ffill")
class BFillNan(ElemOperator):
"""BFillNan Operator
Parameters
----------
feature : Expression
feature instance
Returns
----------
feature:
a backfoward fill nan feature
"""
def _load_internal(self, instrument, start_index, end_index, freq):
series = self.feature.load(instrument, start_index, end_index, freq)
return series.fillna(method="bfill")
class Date(ElemOperator):
"""Date Operator
Parameters
----------
feature : Expression
feature instance
Returns
----------
feature:
a series of that each value is the date corresponding to feature.index
"""
def _load_internal(self, instrument, start_index, end_index, freq):
_calendar = get_calendar_day(freq=freq)
series = self.feature.load(instrument, start_index, end_index, freq)
return pd.Series(_calendar[series.index], index=series.index)
class Select(PairOperator):
"""Select Operator
Parameters
----------
feature_left : Expression
feature instance, select condition
feature_right : Expression
feature instance, select value
Returns
----------
feature:
value(feature_right) that meets the condition(feature_left)
"""
def _load_internal(self, instrument, start_index, end_index, freq):
series_condition = self.feature_left.load(instrument, start_index, end_index, freq)
series_feature = self.feature_right.load(instrument, start_index, end_index, freq)
return series_feature.loc[series_condition]
class IsNull(ElemOperator):
"""IsNull Operator
Parameters
----------
feature : Expression
feature instance
Returns
----------
feature:
A series indicating whether the feature is nan
"""
def _load_internal(self, instrument, start_index, end_index, freq):
series = self.feature.load(instrument, start_index, end_index, freq)
return series.isnull()
class Cut(ElemOperator):
"""Cut Operator
Parameters
----------
feature : Expression
feature instance
l : int
l > 0, delete the first l elements of feature (default is None, which means 0)
r : int
r < 0, delete the last -r elements of feature (default is None, which means 0)
Returns
----------
feature:
A series with the first l and last -r elements deleted from the feature.
Note: It is deleted from the raw data, not the sliced data
"""
def __init__(self, feature, l=None, r=None):
self.l = l
self.r = r
if (self.l is not None and self.l <= 0) or (self.r is not None and self.r >= 0):
raise ValueError("Cut operator l shoud > 0 and r should < 0")
super(Cut, self).__init__(feature)
def _load_internal(self, instrument, start_index, end_index, freq):
series = self.feature.load(instrument, start_index, end_index, freq)
return series.iloc[self.l : self.r]
def get_extended_window_size(self):
ll = 0 if self.l is None else self.l
rr = 0 if self.r is None else abs(self.r)
lft_etd, rght_etd = self.feature.get_extended_window_size()
lft_etd = lft_etd + ll
rght_etd = rght_etd + rr
return lft_etd, rght_etd
| python |
---
title: Linkertoolwarnung LNK4096
ms.date: 11/04/2016
f1_keywords:
- LNK4096
helpviewer_keywords:
- LNK4096
ms.assetid: ef6fba38-59a1-4d86-bcac-cadf44d87a36
ms.openlocfilehash: 5b561d5e9c48d806be566aec104f63743d4409e8
ms.sourcegitcommit: 0ab61bc3d2b6cfbd52a16c6ab2b97a8ea1864f12
ms.translationtype: MT
ms.contentlocale: de-DE
ms.lasthandoff: 04/23/2019
ms.locfileid: "62408120"
---
# <a name="linker-tools-warning-lnk4096"></a>Linkertoolwarnung LNK4096
/ Basiswert "Number" ist ungültig für Windows 95 und Windows 98. Image kann möglicherweise nicht ausgeführt.
Die Basisadresse, die Sie angegeben haben, ist ungültig. Windows 95 und Windows 98 ausführbare Dateien müssen eine Basisadresse, die größer als 0 x 400000. Weitere Informationen zu Basisadressen, finden Sie unter den [/BASE](../../build/reference/base-base-address.md) -Linkeroption. | markdown |
var annotated_dup =
[
[ "Feature", "class_feature.html", "class_feature" ],
[ "Filter", "class_filter.html", "class_filter" ],
[ "Freenect2Pcl", "class_freenect2_pcl.html", "class_freenect2_pcl" ],
[ "Mutex", "class_mutex.html", "class_mutex" ],
[ "MyFreenectDevice", "class_my_freenect_device.html", "class_my_freenect_device" ],
[ "RaspberryCon", "class_raspberry_con.html", "class_raspberry_con" ],
[ "Registration", "class_registration.html", "class_registration" ]
]; | javascript |
Rafael Nadal’s indomitable grip on Roland-Garros finals has firmed with the Spanish great collecting an unprecedented 12th trophy from the same Grand Slam on Sunday.
Austrian fourth seed Dominic Thiem fell victim in the title match for the second year running, this time salvaging a set for the first time in four meetings with Nadal in the French capital.
After three hours and four minutes, under grey skies, on his favourite ochre-earthen domain, Nadal completed the ‘perfect dozen’ 6-3, 5-7, 6-1, 6-1.
This is his 18th major singles title. Two thirds of those have come on the terre battue and he is now just two shy of Roger Federer’s all-time mark. | english |
<filename>services/core/src/main/java/com/cube/learning/DynamicInjectionRulesLearner.java
/*
* Copyright 2021 MeshDynamics.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.cube.learning;
import com.cube.dao.Result;
import com.fasterxml.jackson.core.JsonProcessingException;
import io.md.core.Comparator.Diff;
import io.md.dao.DataObj.PathNotFoundException;
import io.md.dao.Event;
import io.md.dao.JsonDataObj;
import io.md.dao.ReqRespMatchResult;
import io.md.injection.DynamicInjectionConfig;
import io.md.injection.DynamicInjectionConfig.ExtractionMeta;
import io.md.injection.DynamicInjectionConfig.InjectionMeta.HTTPMethodType;
import io.md.injection.DynamicInjector;
import io.md.injection.ExternalInjectionExtraction;
import io.md.utils.Utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Stream;
import org.apache.commons.collections4.trie.PatriciaTrie;
public class DynamicInjectionRulesLearner {
private final List<String> paths;
DynamicInjectionConfigGenerator diGen = new DynamicInjectionConfigGenerator();
static final String methodPath = "/method";
public DynamicInjectionRulesLearner(Optional<List<String>> paths) {
this.paths = paths.orElse(
Arrays.asList("/pathSegments", "/queryParams", "/body", "/hdrs"));
}
public void processEvents(Result<Event> events) {
events.getObjects().forEach(this::processEvent);
}
public void processEvent(Event event) {
Optional<String> methodString;
Optional<HTTPMethodType> method;
Optional<String> requestId = Optional.of(event.reqId);
try {
methodString = Optional.ofNullable(event.payload.getValAsString(methodPath));
} catch (PathNotFoundException e) {
methodString = Optional.empty();
}
method = methodString.flatMap(v -> Utils.valueOf(HTTPMethodType.class,
v));
for (String path : paths) {
diGen.processJSONObject((JsonDataObj) event.payload.getVal(path),
event.apiPath,
path,
event.eventType,
requestId,
method);
}
}
private void processReplayMatchResults(Stream<ReqRespMatchResult> reqRespMatchResultStream, Map<DiffPath, DiffPath> diffPathMap) {
// NOTE: We are being sloppy here by not considering the req/resp method. But since it is
// just filtering rules based on diffs, an occasional false-positive is admissible.
// Retrieving method from orig events is too much of data processing overhead for marginal ben.
reqRespMatchResultStream.forEach(res ->
res.respCompareRes.diffs.forEach(
// Use set to de-dup recurring api,json path combinations.
diff -> {
if (diff.op == Diff.REPLACE){
// Use only Replace as Remove is unlikely to be candidate because a
// genuine inj candidate would be consistent. In case of multi instances
// of an API with different query params where one of them has extraction,
// at least one Diff instance SHOULD be with a REPLACE at which point the
// Diff will be considered and the extraction gets activated.
DiffPath diffPath = new DiffPath(res.path, diff.path);
diff.fromValue.ifPresent(fVal -> diffPath.refValues.add(fVal.asText()));
diff.value.ifPresent(val -> diffPath.refValues.add(val.asText()));
diffPathMap.computeIfAbsent(diffPath, k -> diffPath).refValues
// for case when diffPath already present but we want to
// capture any new ref values
.addAll(diffPath.refValues);
}
}
)
);
}
public List<ExternalInjectionExtraction> generateFilteredRules(DynamicInjectionConfig dynamicInjectionConfig, Stream<ReqRespMatchResult> reqRespMatchResultStream){
final Set<ExternalInjectionExtraction> selectedMetasSet = new HashSet<>();
final PatriciaTrie<Set<ExternalInjectionExtraction>> externalInjectionExtractionTrie = new PatriciaTrie<>();
final Map<DiffPath, DiffPath> DiffPathMap = new HashMap<>();
processReplayMatchResults(reqRespMatchResultStream, DiffPathMap);
dynamicInjectionConfig.externalInjectionExtractions.forEach(meta ->
// Add all metas to a trie with json path as key
// Multiple APIPaths may have same json path, so add all apiPath Metas to the jsonPath key
externalInjectionExtractionTrie
.computeIfAbsent(meta.externalExtraction.jsonPath, k -> new HashSet<>())
.add(meta));
DiffPathMap.values().forEach(diffPath ->
// Cannot use a hash-table as a) extConfig api path may be regex; and
// b) the diff jsonPath may be at a parent path of the ext config json path, e.g.
// extJsonPath at /body/id but diff is at /body as body itself is missing.
externalInjectionExtractionTrie.prefixMap(diffPath.jsonPath).values()
.forEach(externalInjectionExtractions -> externalInjectionExtractions.forEach(meta -> {
if (DynamicInjector.apiPathMatch(Arrays.asList(meta.externalExtraction.apiPath),
diffPath.apiPath)) {
if (diffPath.jsonPath.equals(meta.externalExtraction.jsonPath)) {
// Take ref values only if json path is an exact match.
meta.values.addAll(diffPath.refValues);
}
selectedMetasSet.add(meta);
}
}
)));
final List<ExternalInjectionExtraction> selectedMetasList = new ArrayList<>(selectedMetasSet);
Collections.sort(selectedMetasList);
return selectedMetasList;
}
public List<ExternalInjectionExtraction> generateRules(Optional<Boolean> discardSingleValues)
throws JsonProcessingException {
return diGen.generateConfigs(discardSingleValues.orElse(false));
}
private static class DiffPath {
String apiPath, jsonPath;
Set<String> refValues = new HashSet<>();
public DiffPath(String apiPath, String jsonPath) {
this.apiPath = apiPath;
this.jsonPath = jsonPath;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DiffPath diffPath = (DiffPath) o;
return apiPath.equals(diffPath.apiPath) &&
jsonPath.equals(diffPath.jsonPath);
}
@Override
public int hashCode() {
return Objects.hash(apiPath, jsonPath);
}
}
private static class ExtractionMetaWithValues{
ExtractionMeta extractionMeta;
Set<String> values;
public ExtractionMetaWithValues(
ExtractionMeta extractionMeta, Set<String> values) {
this.extractionMeta = extractionMeta;
this.values = values;
}
}
}
| java |
export class Intent {
public name: string;
public displayName: string;
public parameters: {[name: string]: string};
constructor(name: string, displayName: string, parameters: {[name: string]: string}) {
this.name = name;
this.displayName = displayName;
this.parameters = parameters;
}
isFollowUpIntent() {
return (this.displayName.split(' - ').length > 1)
}
} | typescript |
from src.gridworld_mdp import GridWorld
class EquiprobableRandomPolicy:
def __init__(self):
self.world_model = GridWorld()
def get_prob(self, selected_action, state):
assert state in self.world_model.states
assert selected_action in self.world_model.actions
num_all_possible_actions = 0
times_selected_action_chosen = 0
for next_state in self.world_model.states:
for action in self.world_model.actions:
if self.world_model.reward_fn(state, action, next_state) == -1:
num_all_possible_actions += 1
if action == selected_action:
times_selected_action_chosen += 1
if not num_all_possible_actions:
return 0
prob = times_selected_action_chosen / num_all_possible_actions
return prob
| python |
Horoskopi i Dashit Pesë yje për Dashin. Afërdita është më në fund në anën tuaj, kështu që duhet të lini gjëra pas e sigurisht nuk është koha për të rimenduar të kaluarën, gabimet dhe problemet. Thjesht do të ishte humbje kohe. Duhet të ecni përpara, të kënaqeni me pasionet dhe sfidat e reja.
Në punë, për shumëkush nuk do jetë e lehtë të rikthehet në lojë, por me vendosmëri gjithçka do të bëhet e mundur. Madje dhe ajo që ju dukej e pamundur për t’u kapërcyer!
Horoskopi i Paolo Fox Demi Katër yje për Demin. Venusi është ende disonant dhe në dashuri ndoshta ka disa dyshime dhe një klimë pasigurie. Ka nga ata që presin të reja që lidhej me një person të veçantë.
Në punë përpiquni të ngrini krye në një farë mënyre dhe në një farë mase dhe të këmbëngulni nëse shihni se diçka nuk shkon ashtu siç dëshironi. Nuk ju mungojnë njohuritë dhe idetë e bukura, veçanërisht midis të shtunës dhe të dielës!
Horoskopi i Binjakëve Katër yje për Binjakët. Doni ta lini veten të dashuroheni, por nuk mund t’i duroni gjërat që merren dhe jepen si të mirëqena dhe ka njerëz që mendojnë gjithmonë në të njëjtën mënyrë. Ju ndjeni nevojën për të folur, për t’u përballur, për të qeshur, veçanërisht tani që Merkuri është me ju dhe njohjet e mira janë afër.
Në punë Jupiteri është me ju dhe të enjten mund të ndodhë diçka e mirë!
Horoskopi i Gaforres Katër yje për shenjën e Gaforres. Nuk mund të jesh gjithmonë vetëm, përkundrazi. Kërkoni dashuri dhe konfirmime tani që Hëna është me ju dhe ju ndihmon, veçanërisht të martën.
Në punë gjithçka rreth jush ka ndryshuar, nga ambienti e deri te puna e re. Por nëse nuk ka pasur transformime të tilla, ndoshta jeni ju që keni ndryshuar dhe nuk jeni më i njëjti!
Horoskopi i Luanit Pesë yje për Luanin. Afërdita po vazhdon një tranzit të bukur në shenjën tuaj dhe sigurisht që ju bën më magjepsës. Në fakt, ju e dini shumë mirë se si të goditni dikë, t’i bëni një "goditje" në zemër një personi dhe tani doni të lini veten të hidhet tek emocionet e bukura. Hëna do jetë me ju dhe sidomos të enjten do të ketë një surprizë të këndshme.
Në punë, Urani është kundër, ndaj bëni kujdes nga daljet e kushtueshme e në përgjithësi në sferën ekonomike. Mos u trembni, periudha sidoqoftë nuk është e keqe!
Horoskopi i Virgjëreshës Pesë yje për shenjën e Virgjëreshës. Afërdita së shpejti do të jetë në anën tuaj, kështu që edhe një miqësi mund të kthehet në diçka të bukur dhe të rëndësishme. Gjithçka varet nga ju, por nuk mund të keni gjithmonë frikën dhe vigjilencën se mps bëni gabime: përpiquni të përfshiheni, veçanërisht në fundjavë. Në punë ka nga ata që tashmë po mendojnë për një projekt në funksion të vitit 2023. Kjo fazë e re është sigurisht një rikuperim nga e kaluara!
Horoskopi i Peshores Katër yje për shenjën e Peshores. Në dashuri tani duhet të gjeni sërish pak qetësi. Jeni shumë të ndjeshëm, ndaj para se të lidheni me dikë rishtas, përpiquni të kuptoni se me kë keni të bëni për të shmangur zhgënjimin, siç ka ndodhur në të kaluarën.
Në punë ka nga ata që nuk janë shumë të kënaqur, por tani duhet të bëjnë më të mirën për t’u ruajtur nga një situatë e keqe sepse Jupiteri është në dizavantazh me shenjën tuaj. Dhe problemet janë afër, aty te cepi!
Horoskopi i Akrepit Katër yje për shenjën e Akrepit. Pasioni do të rikthehet në shtator, ndaj tani përpiquni të qëndroni të qetë. Dhe një këshillë, për të mos u mbyllur në vetvete: nuk mund të izoloheni, jo të gjithë janë në gjendje t’ju kuptojnë. Kujdes duhet të bëni veçanërisht të enjten.
Në punë mundësitë nuk mungojnë dhe vullneti juaj nuk mungon. Së shpejti, diçka mund të ndryshojë, ndoshta edhe roli që keni pasur në kompani prej disa vitesh!
Horoskopi i Shigjetarit Tre yje për shenjën e Shigjetarit. Në dashuri, kushtojini vëmendje diskutimeve, veçanërisht nëse nuk ndiheni të barabartë në të thënë dhe në veprime me gjysmën tjetër. Megjithatë, mjaft me polemika, nëse keni të bëni me një person të paqartë, do të bënit mirë të mbyllni çdo derë e çdo shteg. Sqarimet vijnë në shtator.
Në punë, muaji shtator premton për mirë, por përpiquni të verifikoni çdo informacion. Keni nevojë për garanci dhe konfirmime!
Horoskopi i Bricjapit Tre yje për të lindurit në shenjën e Bricjapit. Në dashuri, jeni në një fazë rikuperimi, por tani nëse duhet të bëni një zgjedhje për veten tuaj, do ta keni më të lehtë të thoni atë që mendoni. Dikush, një person i veçantë do të vijë në shtator, por tani mos e komplikoni më shumë jetën tuaj.
Në punë, përpiquni të mos ndaleni, 2023 do të jetë një vit pozitiv dhe kështu, tani e tutje mund të përfshiheni vërtet!
Parashikimet për Ujorin Tre yje për Ujorin. Afërdita është në dizavantazh me shenjën tuaj, ndaj nuk mund ta lini veten të qetë në marrëdhënie, pasi dipka "zien". Tensionet janë afër, por në shtator gjithçka do të jetë si më parë. Madje dhe pasioni do të kthehet gjithashtu.
Në punë përpiquni të mos nxitoheni, sidomos në aspektin ekonomik. Disa projekte mund të ngadalësohen, por mos kini frikë. Gjithçka do të funksionojë!
Get CyberSEO Lite (https://www.cyberseo.net/cyberseo-lite) - a freeware full-text RSS article import plugin for WordPress.
| english |
It was a bittersweet season for the New York Yankees last year. While the team dominated the American League East with a record of 99-63, they again fell to their playoff rivals, the Houston Astros.
However, fans of the club were treated to a historic season by their superstar outfielder Aaron Judge. The slugger enjoyed the best season of his career, hitting 62 home runs en route to his first career MVP award. Judge's 62 home runs surpassed legendary Roger Maris not only for the franchise's single-season record but the American League's single-season record as well.
"5. Aaron Judge- even though the Yankees flopped this year, the man proved himself to be a force to be reckoned with. Notable Achievement: AL Home Run Record, AL MVP" - Tank Commander Leal (16-23)
While New York fell short of winning their first World Series title since 2009, the team will enter the 2023 campaign as a title favorite. However, if the Yankees are to bring the Commissioner's Trophy back to the Bronx, they will have to improve in three key areas. This includes consistency from their infielders, a solution in left field and a reduction in strikeouts.
New York will have to make an important decision regarding their top prospects, Anthony Volpe, Oswald Peraza and Oswaldo Cabrera. The trio is on the cusp of an everyday role with the club, yet the team still has Isiah Kiner-Falefa and Gleyber Torres.
While both Torres and IKF have been mentioned in recent trade rumors, the team is yet to decide on the futures of the five players. Not only does the team need to decide what to do with Kiner-Falefa and Torres, but also Josh Donaldson, who was one of the worst players on the team last season. The former MVP hit a dismal .222 batting average with 22 home runs and 62 RBIs.
While the infield may be overcrowded for New York, left field is rather bare for the Yankees. After failing to re-sign Andrew Benintendi, the team will either need to look for a replacement outside the organization or hand the reigns to Aaron Hicks or Oswaldo Cabrera.
Hicks is coming off a poor season with the club, hitting .216 with 8 home runs and 40 RBIs in 384 at-bats. While the team was rumored to be interested in free agents Michael Conforto and Michael Brantley, both players signed elsewhere. The team is still without a solution, but there is still over a month before the beginning of Spring Training.
While this may apply to every team in the MLB, New York finished 13th in the league with 1,391 strikeouts. A different approach at the plate may benefit the team, as their rival and 2022 World Series champion, the Houston Astros, finished 29th with 1,179 strikeouts.
Changes to the infield may eventually help this number, as 200 strikeouts may be the difference between a World Series and an ALCS defeat.
Click here for 2023 MLB Free Agency Tracker Updates. Follow Sportskeeda for latest news and updates on MLB.
Poll : Will the Yankees will the World Series in 2023?
Heck yes! Go Yanks!
| english |
By Rule of Crow's Thumb Movie Streaming Watch Online. Constantly on the run from a vicious loan shark, two small-time con artists, Take and Tetsu, plan their biggest and most complex con yet in order to get revenge and retire from a life of crime. However, things get complicated when they cross paths with Mahiro, a young woman that Take inadvertently orphaned during a job gone awry years ago. Seeing Mahiro down on her luck, Take tries to relieve his guilt by taking her on as a partner, while hiding his true identity. But as his plan unfolds, Take discovers that he isn't the only one with a secret.
| english |
The Supreme Court, on Thursday, sought response from Centre on a plea seeking direction to the Department of Justice to issue guides/handbooks in plain English and in vernacular -- easily understandable by laymen explaining the law and procedure for vindication of rights and redressal of grievances under the law.
NEW DELHI: The Supreme Court, on Thursday, sought response from Centre on a plea seeking direction to the Department of Justice to issue guides/handbooks in plain English and in vernacular -- easily understandable by laymen explaining the law and procedure for vindication of rights and redressal of grievances under the law.
The counsel began his arguments saying, "May I please your lordships. . " A bench headed by Chief Justice S. A. Bobde said "Speak correct English. You should say 'may it please'. We don't want anyone to please us. " The Chief Justice also cited book by Bryan Garner on using plain language and "we have read this book too".
The plea filed by advocate Subhash Vijayran said the writing of most Lawyers is wordy, unclear, pompous and dull, as they use eight words, instead of two, to say something. "We use arcane phrases to express commonplace ideas. Seeking to be precise, we become redundant. Seeking to be cautious, we become verbose. Our writing is teemed with legal jargon and legalese. And the story goes on", said the plea.
The plea contended as a consequence of this complexity, the common man neither understands the system nor the laws. "Everything is so much complicated and confusing. The way laws are enacted, practiced and administered in our country violates the fundamental rights of the masses by denying them -- Access to Justice", added the plea.
In many countries, laws mandate that public agencies use plain language to increase access to programs and services, said the plea.
The PIL argues that the legislature should enact precise and unambiguous laws, and in plain language. "A guide in plain English and in vernacular of the laws of general public interest should be issued by the Government - explaining the law and its application - in easy to understand language. Further, all rules, regulations, notifications, communications etc. , drafted and issued by all branches of the Government - that are of general public interest - should be in Plain Language," said the plea.
The petitioner also contended that the standard of pleadings filed in the Supreme Court is mandated to be of the highest quality. "Lawyers need to put in extra efforts to make their pleadings clear, crisp, concise & accurate. A page limit for pleadings and time limit for oral arguments should be imposed. Too much of precious time, energy and resources of both the Court as well as lawyers/ litigants are wasted due to badly written & verbose drafts and ad-nauseam oral arguments," said the plea.
The plea also sought direction to Bar Council of India to introduce a mandatory subject of "Legal Writing in Plain English" in 3 year and 5 year LL. B. courses in all Law Schools in India. (IANS) | english |
/* styling for latest posts list */
.latest-posts {
margin: 10px 0;
padding: 1em;
border: 2pt solid #000;
} | css |
The AIB might as well become an orphan acronym, like WWE and KFC, entities that have stopped using the full form of their acronyms. The more people hear about them, the more the curiosity about the name, and the more occasion for naysayers to spite them for it. Not that the AIB worries. They might have more people listening to them now than Rahul Gandhi does. They’re big now. If they weren’t, they wouldn’t be facing this ire. And they’ve won over a lot of hearts and a lot of respect for their art — no other word will do; it’s the art of comedy. Sadly, they have to answer to those who cannot merely stay off the bandwagon, but must throw a pipe bomb into it.
The culture of roast comedy is new to India, at least at this level. Insult comedy is, expectedly, big in the US, where free speech has more latitude than it does here. Anyone logging in, clicking on, and going beyond the opening warnings cannot claim to be exposed to a shocking experience. There is nothing more that the AIB could have done to forewarn sensitive souls. To trivialise their magnificent show by calling it an abuse-fest is to dole out an injustice. Arjun Kapoor and Ranveer Singh went out there, put themselves out for a solid session of insults, laughed through it all, and stepped up and had their comeback.
Of course, no amount of superb humour can justify poor taste or downright insensitivity, and to that end, one must at least consider the protesters’ point of view to see whether sentiments have truly been stomped on. The main point of contention has been the abusive language used, and its relevance for the values taught to our youth. Three observations are worth noting.
First, as mentioned, nothing has been shoved down unsuspecting throats. Hindi films have carried language just as “questionable”, and have duly been rated accordingly upon release, to allow audiences to tread as they please. The language used is a reflection of society, not a corruption of it.
Second, a show setting itself up as insult comedy for adults cannot be tasked with teaching morals to the youth. That’s not its job. They’re a comic outfit, their job being to crack jokes, create funny situations, and let everyone have a good laugh about the very things they joke about all the time.
And third, if memory serves well (unfortunately, the video is no longer available, so memory must serve), all the jokes were directed at and absorbed by individual parties; nothing was a generalisation that could hurt others watching. Sure, as criticism of the comedy itself, the AIB could have made the Ashish Sakya jokes less predictable. And some jokes did repeat themselves; it is a first attempt after all, and “less is more” wouldn’t have been their guiding principle. But the takeaway has to be the absolute masterpieces that were some of the one-liners delivered. They really show the class and quality in intelligent Indian comedy.
No, scratch that. The takeaway is the wonderful grin on Karan Johar’s face each time he was made the target of jokes. And they found a million points to tease him on. Nobody was spared — forget the participants, the onlooking Deepika Padukone, Alia Bhatt, Anurag Kashyap, Sanjay Kapoor, all had their trips taken, and all the while you couldn’t help laughing, and you couldn’t help saluting their good-natured reception of it all.
The AIB has come out saying that they are humbled by the support everyone has extended to their right to speak freely. But the AIB should have no illusions about one thing — the decisive factor in gaining such outright support is not the defence of free speech in itself; the decisive factor is that they were hilarious. A less funny outfit, with a weak show, might still have got people’s sympathy, but it wouldn’t have generated this wave of solidarity. The reason everyone is so angry is that they loved the show, lauded what it meant for our comic industry, and hated that something so brilliant is being given the medieval eye.
The AIB taking down the video is not a white flag in the face of the tirade. They have been very clear that it is out of respect for the celebrities who have supported them, because they would be easier preys. Over time, more roasts will happen; perhaps more groups will come up. With the internet, it will be impossible to rap knuckles as they grow exponentially. Yes, not all the comedy we will get to see will be uniformly classy. There will be the odd roast where a line is crossed and someone feels genuinely insulted. The pattern of jokes might tire itself out. But may we be fortunate to see such days than not.
The writer is an actor and stand-up comedian based in Mumbai and Kolkata. | english |
<p> Repo Details - View 2</p>
<p>
</p>
<div>{{repoowner}} {{reponame}}</div>
<div>{{data}} </div>
<ul>
<li ng-repeat="item in items">
{{item.full_name}} {{item.owner.login}} {{item.name}}
</li>
</ul>
| html |
Borussia Dortmund are all set to take on Sevilla in the Round of 16 second leg-tie of the ongoing UEFA Champions League 2020/21 competition. The match between the two sides will be played on Wednesday (March 10) at the Signal Iduna Park. In the first leg-tie match between the two sides, Dortmund defeated Sevilla by a one-goal margin on 18th February at the Ramon Sanchez Pizjuan. Mahmoud Dahoud and Erling Haaland both scored a goal two put Dortmund in front.
Borussia Dortmund's only previous home match against Sevilla was in the 2010-11 UEFA Europa League Group stage, losing 1-0. Sevilla have lost their last four UEFA Champions League matches against German sides, since a 3-0 victory over Borussia Monchengladbach in September 2015.
In their respective leagues, both sides stand in the top six of their league table and maintain enough points to challenge for Champions League qualifiers. Sevilla are in fourth place of the La Liga 2020/21 league table behind third-place Real Madrid. They have accumulated 48 points from 25 matches played so far.
Meanwhile, Borussia Dortmund are positioned in sixth place of the Bundesliga 2020/21 table with 39 points from 24 matches played. They come into this fixture after a 4-2 defeat against Bayern Munich on Saturday (March 6).
Here's our Dream11 prediction for Dortmund vs Sevilla, Champions League 2020/21 match:
Marwin Hitz, Mateu Morey, Jules Kounde, Mats Hummels, Jesus Navas, Munir El Haddadi, Jude Bellingham, Ivan Rakitic, Thorgan Hazard, Luuk de Jong (vc), Erling Haaland (c) | english |
Tales from the Grave Movie Streaming Watch Online. See 3 deadly and chilling TALES FROM THE GRAVE! In "Beyond Death", a renegade band of young filmmakers breaks into an abandoned hospital and open a portal that releases dozens of zombies. In "Brides of the Dead", the Reality-TV program "Chill Challenge" sends five sexy models into a haunted old building. And finally "The Rotten Dead", 3 pranksters release the wrath of an aged witch.
| english |
<!DOCTYPE html>
<html>
<head>
<title>My Projects</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul>
<li><a href="https://ronmintz.github.io/">Home</a></li>
<li><a href="https://ronmintz.github.io/bio.html">My Bio</a></li>
<li><a class="active" href="https://ronmintz.github.io/projects.html">My Projects</a></li>
</ul>
<h1>My Projects</h1>
<main class="content">
<div>
<h2>Eye Movement Exercise</h2>
<p>Creates the image of two eyes and causes both eyeballs to move within
the eye in sync with movement of the mouse.
</p>
<a class="project" href="https://github.com/ronmintz/Eye-Exercise">Eye Movement Exercise</a>
</div>
<div>
<h2>PacMen Factory Exercise</h2>
<p>Creates a PacMan every time the "AddPacMan" button is pressed. Pressing "Start Game" causes all the
PacMen to start moving, each at a random velocity that was assigned to it when it was created. Whenever
any PacMan collides with a boundary of the screen, it bounces off the boundary and remains within the screen.
</p>
<a class="project" href="https://github.com/ronmintz/Pacmen-Factory-Exercise">PacMen Factory Exercise</a>
</div>
<div>
<h2>Real Time Bus Tracker</h2>
<p>Displays the actual real-time position of each bus on the Boston MBTA #1 bus route on a map of Cambridge
and part of Boston. These positions are obtained by accessing an MBTA website in real-time. The color
of each marker on the map indicates the direction of the bus it represents. Blue markers indicate buses
going toward Harvard Square. Red markers indicate buses going away from Harvard Square toward Boston.
</p>
<a class="project" href="https://github.com/ronmintz/Real-Time-Bus-Tracker">Real Time Bus Tracker</a>
</div>
<div>
<h2>Tic-tac-toe game</h2>
<p>Puts up the tic-tac-toe board. Alternately, click on square where you want to enter X. Then click on square
where you want to enter O. Repeatedly, enter X's and O's alternately until "Winner is X or O" appears or
all squares are filled.
</p>
<a class="project" href="https://github.com/ronmintz/Tic-tac-toe">Tic-Tac-Toe game</a>
</div>
<div>
<h2>Build A Formik Form</h2>
<a class="project" href="https://github.com/ronmintz/Build-A-Formik-Form">Build A Formik Form</a>
</div>
</main>
</body>
</html>
| html |
Hall of Famer Shaquille O'Neal recently decided to stir up a spirited debate by sharing his list of the top 10 NBA players of all time. In a post on Instagram on Wednesday morning, O'Neal sent the NBA community into a frenzy as debates started to break out over his top 10.
In the caption, Shaquille O'Neal invited debates, asking fans who he left out and who they think should be included in the list. He wrote:
"Did i leave anyone out? and who would you trade, take off or add to my list? lmk your thoughts."
On one hand, there were a number of players that were on Shaquille O'Neal's list that fans had no qualms about. On the other hand, a number of players were included, which left fans scratching their heads.
In no particular order, Shaquille O'Neal listed himself, LeBron James, Michael Jordan, Kobe Bryant and Magic Johnson in the first five spots. In the next five spots, things got controversial, as the Hall of Famer included Steph Curry, Allen Iverson, Isiah Thomas, Tim Duncan and Karl Malone.
Tim Duncan's spot on the list isn't exactly controversial, given the fact that the five-time champ is widely believed to be the best power forward of all time. In the cases of Malone, Thomas and Iverson, it seems as though the consensus among fans is that neither of the three men did enough to go down as a top 10 player.
Similarly, with Steph Curry, it seems as though fans consider him one of the greatest point guards of all time, however, many have him shy of a top 10 spot.
As fans in the comments were quick to inform Shaquille O'Neal, there were a number of players left off that fans believe deserved consideration. Most notably: Larry Bird, Wilt Chamberlain, Kareem Abdul-Jabbar and Bill Russell.
In the case of Bill Russell, the Hall of Famer is arguably the most accomplished athlete in U.S. history with his NCAA accolades and NBA championships. Although he played in an era before the game of basketball was what it is today, his accomplishments in the sport can't be denied.
Wilt Chamberlain finds himself in a similar position, with a similar case for a spot on the list. Although his career spanned until 1973, much of his career was spent competing in the early days of the sport. While the game was far different back then compared to Shaquille O'Neal's era, his impact on the game can't be denied.
It's because of that, that fans and analysts generally have both men on the list of top 10 players of all time.
In the case of Kareem Abdul-Jabbar, there seems to be no reason as to why he was left off O'Neal's list. As a six-time champ who broke records over his 20-year career, Abdul-Jabbar was arguably the greatest player of all time for a number of years.
Similarly, in the case of Larry Bird, the three-time NBA champ and two-time Finals MVP seems to have his spot in the top 10 all but solidified. As arguably the greatest shooter before the turn of the century, the consensus is that Bird belongs in the top 10.
What did you think of Shaquille O'Neal's list? Drop your thoughts in the comments section below!
How did Michael Jordan's gambling "habit" taint his image?
| english |
I know I am not like this.
I don't want to understand anything.
I just don't want to be mature!
I know, I don't get angry easily.
after every 5 minutes.
because I know you'll take all efforts to console me and make me laugh again.
I know, I am a listener.
but only after finishing my talks!
every damn thing with you.
then there is something miserably wrong.
I know, I don't get jealous or possessive.
I don't want to share you with anyone!
At any cost!!
you don't exist in my life.
| english |
import java.io.*;
class o
{
public static void main(String[]args)
{
double x=8.99,y=9.99;
System.out.println("W="+Math.pow(Math.floor((x),2)));
System.out.println("Z="+Math.sqrt(36)+Math.ceil(x));
}
} | java |
<reponame>JuniorNovoa1/sonicexe-psychengine-port
{
"songs": [
["you-cant-run", "sonic2", [26, 113, 253]],
["triple-trouble", "sonicp3", [26, 113, 253]]
],
"hideFreeplay": true,
"weekBackground": "sonic",
"difficulties": "Hard",
"weekCharacters": [
"dad",
"bf",
"gf"
],
"storyName": "Sonic.exe",
"weekName": "Sonic.exe Week",
"freeplayColor": [
146,
113,
253
],
"hideStoryMode": false,
"weekBefore": "too-slow",
"startUnlocked": false
} | json |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// Do not edit this file. It is machine generated.
{
"Executing": "########### ESECUZIONE: {0} ###########",
"PackageNotFoundPleaseInstall": "{0} non è stato trovato. Eseguire \"npm install -g {1}\" per installare {2} a livello globale",
"FinishedExecuting": "########### ESECUZIONE COMPLETATA: {0} ###########",
"PlatformSelectionWasCancelled": "La selezione della piattaforma è stata annullata. Per continuare, selezionare la piattaforma di destinazione.",
"NoAnyPlatformInstalled": "Non ci sono piattaforme installate"
} | json |
<filename>chapter3/ArraySubclassing.java
public class ArraySubclassing {
public static void main(String[] args) {
String[] stringData = new String[3] {"Larry","Moe","Curly"};
Object[] objectData = stringData;
objectData[0] = new Integer(3);
}
}
| java |
<gh_stars>0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Based on AboutClassMethods in the Ruby Koans
#
from runner.koan import *
class AboutClassAttributes(Koan):
class Dog:
pass
def test_objects_are_objects(self):
fido = self.Dog()
self.assertEqual(True, isinstance(fido, object))
def test_classes_are_types(self):
self.assertEqual(True, self.Dog.__class__ == type)
def test_classes_are_objects_too(self):
self.assertEqual(True, issubclass(self.Dog, object))
self.assertEqual(True, issubclass(type, object))
def test_objects_have_methods(self):
fido = self.Dog()
self.assertEqual(25, len(dir(fido)))
def test_classes_have_methods(self):
self.assertEqual(25, len(dir(self.Dog)))
def test_creating_objects_without_defining_a_class(self):
singularity = object()
marge = self.Dog()
self.assertEqual(22, len(dir(singularity)))
# What an instances has but not an object
self.assertEqual({'__module__', '__dict__', '__weakref__'}, set(dir(marge)) - set(dir(singularity)))
def test_defining_attributes_on_individual_objects(self):
fido = self.Dog()
fido.legs = 4
self.assertEqual(4, fido.legs)
def test_defining_functions_on_individual_objects(self):
fido = self.Dog()
fido.wag = lambda: 'lucys wag'
self.assertEqual('lucys wag', fido.wag())
def test_other_objects_are_not_affected_by_these_singleton_functions(self):
jane = self.Dog()
patty = self.Dog()
def wag():
return 'janes wag'
jane.wag = wag
with self.assertRaises(AttributeError): patty.wag()
# ------------------------------------------------------------------
class Dog2:
def wag(self):
return 'instance wag'
def bark(self):
return "instance bark"
def growl(self):
return "instance growl"
@staticmethod
def bark():
return "staticmethod bark, arg: None"
@classmethod
def growl(cls):
return "classmethod growl, arg: cls=" + cls.__name__
def test_since_classes_are_objects_you_can_define_singleton_methods_on_them_too(self):
self.assertRegex(self.Dog2.growl(), 'classmethod growl, arg: cls=Dog2')
def test_classmethods_are_not_independent_of_instance_methods(self):
marty = self.Dog2()
self.assertRegex(self.Dog2.growl(), marty.growl())
def test_staticmethods_are_unbound_functions_housed_in_a_class(self):
self.assertRegex(self.Dog2.bark(), 'staticmethod bark, arg: None')
def test_staticmethods_also_overshadow_instance_methods(self):
fido = self.Dog2()
self.assertRegex(fido.bark(), self.Dog2.bark())
# ------------------------------------------------------------------
class Dog3:
def __init__(self):
self._name = None
def get_name_from_instance(self):
return self._name
def set_name_from_instance(self, name):
self._name = name
@classmethod
def get_name(cls):
return cls._name
@classmethod
def set_name(cls, name):
cls._name = name
name = property(get_name, set_name)
name_from_instance = property(get_name_from_instance, set_name_from_instance)
def test_classmethods_can_not_be_used_as_properties(self):
dog3 = self.Dog3()
with self.assertRaises(TypeError): dog3.name = "Fido"
def test_classes_and_instances_do_not_share_instance_attributes(self):
fido = self.Dog3()
fido.set_name_from_instance("Lake")
fido.set_name("River")
self.assertEqual('Lake', fido.get_name_from_instance())
self.assertEqual('River', self.Dog3.get_name())
def test_classes_and_instances_do_share_class_attributes(self):
d1 = self.Dog3()
d1.set_name("Ocean")
self.assertEqual('Ocean', d1.get_name())
self.assertEqual('Ocean', self.Dog3.get_name())
d2 = self.Dog3()
d2.set_name("Sea")
self.assertEqual('Sea', self.Dog3.get_name())
self.assertEqual('Sea', self.Dog3.get_name())
self.assertEqual('Sea', d1.get_name())
# ------------------------------------------------------------------
class Dog4:
def a_class_method(cls):
return 'dogs class method'
def a_static_method():
return 'dogs static method'
a_class_method = classmethod(a_class_method)
a_static_method = staticmethod(a_static_method)
def test_you_can_define_class_methods_without_using_a_decorator(self):
self.assertEqual('dogs class method', self.Dog4.a_class_method())
def test_you_can_define_static_methods_without_using_a_decorator(self):
self.assertEqual('dogs static method', self.Dog4.a_static_method())
# ------------------------------------------------------------------
def test_heres_an_easy_way_to_explicitly_call_class_methods_from_instance_methods(self):
fido = self.Dog4()
self.assertEqual('dogs class method', fido.__class__.a_class_method())
# This seems easier - the one above is ugly.
self.assertEqual('dogs class method', fido.a_class_method())
| python |
AS Roma manager Jose Mourinho is keen to reunite with Manchester United midfielder Nemanja Matic, according to La Gazzetta dello Sport (via the Cult of Calcio).
Nemanja Matic and Jose Mourinho have previously worked together at two different clubs. The Portuguese tactician first managed Matic whilst at Chelsea, where they won the Premier League title in 2015.
The Serbian midfielder then moved to Manchester United in 2017 to reunite with his former manager.
According to the aforementioned source, Mourinho wants a second reunion with Nemanja Matic this summer. The 33-year-old announced last month that he will leave Old Trafford at the end of the season despite having a year remaining on his contract.
Mourinho has already linked up with two former United players at AS Roma at the moment. Both Chris Smalling and Henrikh Mkhitaryan are currently playing under the Portuguese manager in the Italian capital.
The Serie A side could do with an additional body in midfield ahead of the 2022-23 season. Both Jordan Veretout and Bryan Cristante are rumored to be on the move in the upcoming transfer window.
According to Get Italian Football News, AC Milan are interested in signing Bryan Cristante ahead of the potential exit of Franck Kessie.
Nemanja Matic's wages, however, could become a hindrance with Mourinho reuniting with the Manchester United midfielder.
According to Cult of Calcio, the Serbian's wage demands of €5 million has thrown the AS Roma hierarchy off as there are question marks over his viability in the squad.
Nemanja Matic has had a decent season for Manchester United this time around. He has contributed four assists from central midfield in 32 appearances across all competitions.
Matic also featured in all eight of United's Champions League games this season.
It is also worth mentioning that Manchester United midfielder Paul Pogba is also in a similar situation to that of Nemanja Matic. The Frenchman is set to leave Old Trafford at the end of the season on a free transfer as well.
The Red Devils need to beat Crystal Palace away from home to secure a place in next season's Europa League. As things stand, they are two points clear of seventh-placed West Ham United with one game remaining in the season.
The Hammers, however, have a better goal difference compared to United. If they beat Brighton & Hove Albion on May 22 while Ralf Rangnick’s side drop points, they will pip Manchester United to a Europa League spot.
| english |
WWE legend Mick Foley recently shared his prediction for the upcoming match between Dominik Mysterio and AJ Styles.
The Phenomenal One has been at odds with The Judgment Day over the last few weeks. Styles was joined by his old friends Luke Gallows and Karl Anderson in his feud against the villainous stable on RAW last week.
Following this week's confrontation between the two groups, Styles challenged Dominik to a match later tonight. Styles' challenge was accepted by Rhea Ripley on behalf of Dominik. The 25-year-old then claimed he would "mop the floor" with The Phenomenal One.
Commenting on the interaction between the two on Twitter, Mick Foley mentioned that Dominik Mysterio is one of his favorite superstars. The WWE Hall of Famer doubled down on Dom's comments about moping the floor with The Phenomenal One.
"I never would have guessed that @DomMysterio35 would become one of my favorite @WWE superstars! In an hour or so, Dom is going to MOP THE FLOOR with AJ! #RAW," he tweeted.
Check out the tweet below:
The first match on RAW this week featured Luke Gallows and Karl Anderson in action after the duo made their return last week. The pair squared off against Alpha Academy in a tag team bout. They picked up the victory after a Magic Killer on Chad Gable.
Following the match, The Judgment Day came out to confront the winners. After Finn Balor mocked Styles, Gallows, and Anderson with the iconic 'Too Sweet' pose, he added that he made The O.C. and will break them. Balor went on to challenge AJ Styles and co. for a six-man tag team match at Crown Jewel.
Finn's challenge was accepted by AJ Styles, who will be looking for some retribution against the villainous faction for assaulting him a few weeks back.
Who do you think will come out on top at Crown Jewel? Sound off in the comments and let us know!
| english |
Lt General Anil Chauhan has been appointed our country’s 2nd Chief of Defence Staff (CDS) on 28th September 2022. Lt General Anil Chauhan was the Director General of Military Operations (DGMO) during the Balakot airstrike of February 2019. In September 2019, he was even made the Eastern Command’s General Officer Commanding-in-Chief, a post he held until he retired in May 2021. There are 5 major Army commands in India, of which the Eastern Command looks after the India-China border.
A. Experienced officers are required to face the challenges of hostile borders, terrorism and insurgency : After the unfortunate death of General Bipin Rawat 10 months ago, a discussion was going on about who should be the new CDS. According to many, an officer from the Air Force or Navy was likely to be appointed; but the Government has taken the right decision. India faces challenges from the land borders with China and Pakistan, besides challenges of terrorism and insurgency in the country. To combat this, India needed an experienced officer in this field.
B. General Anil Chauhan has served in all combat zones of India and played a major role in counter-terrorism operations : Since the Chief of Army Staff Manoj Naravane retired, some thought that he would be appointed as the CDS. Since Manoj Naravane is also very experienced and had reached the highest post, his appointment would have been appropriate too. It can be said that General Chauhan’s appointment is very good, because he has worked in all the combat zones of India; for example, he has commanded battalions and brigades in Kashmir. As a Major General, he led an infantry division in Northern Command’s Baramulla sector, and later, as a Lieutenant General, he commanded 3 Corps under Eastern Command. As DGMO, he coordinated Operation Sunrise 1 and 2 (Operations conducted by the Armies of India and Myanmar) against militant camps in the NorthEast – along with National Security Advisor (NSA) Ajit Doval in February and mid-May 2019, respectively.
In short, he has experience of fighting on the India-China border. He has played a major role in anti-terrorism. Being an infantry officer, he has more ground experience.
C. The Indian Army and all the three forces will benefit from General Chauhan’s experience : As announced by the Government, General Chouhan can remain CDS till the age of 65. He retired 2 years ago. Post retirement, General Chauhan took over as the Military Advisor in the National Security Council Secretariat (NSCS). Hence, he has plenty of work experience. I am sure that his experience will be of great use to the Indian Army and the Indian Armed Forces (Army, Navy and Air Force).
A. It is not correct to keep the post of CDS vacant for 10 months : General Bipin Rawat was the country’s first CDS. At that time, it was unanimously considered that the appointment of the CDS was a revolutionary decision in the history of the Indian Army. Unfortunately, General Rawat died before he could complete his task. After him, the post of CDS remained vacant for 10 months. Leaving such a post vacant does not send a good message to the enemy; nevertheless, now General Chauhan has been appointed and he will start working. This will improve coordination between the three Armed Forces.
B. India facing biggest challenge with regards to China and Pakistan : Theatre commands were to be created for India – The Northern Command, the Western Command, the Peninsular Command, the Air Defence Command, a Marine Command. All such important tasks will now fall on the new CDS and the effort required to build consensus and take the reorganisation process forward.
China and Pakistan pose a challenge for us and is not likely to reduce in the near future. Conversely, China and Pakistan will challenge us in a conventional war. The challenge from them is a ‘Hybrid War’ (Waging a war without firing a single shot), ‘Unrestricted Warfare’, ‘Grey Zone Warfare Area’ (where there is neither war nor peace), ‘Multidomain Warfare Area’ (Ideological War), etc.
General Chauhan will make good use of all the three Armed Forces for a hybrid war. Where China bothers us, we will need to respond militarily. I have no doubt that General Chauhan will perform all these tasks in a good manner.
Appointment of General Chauhan is a very good decision. The Government should be appreciated for this. Had this appointment taken place earlier, it would certainly have been better; but, let’s say ‘better late than never’, and wish General Anil Chauhan all the very best for his tenure !
Let us hope that in the coming times, India’s ability to fight, attack and defend our country will improve and India will become safer. General Anil Chauhan’s contribution will be important in this.
– (Retd) Brigadier Hemant Mahajan, Pune.
Let us hope that in the coming times, India’s ability to fight, attack & defend will improve and India will become safer ! | english |
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 4 19:54:23 2020
@author: Mustapha
"""
import sys
def main(argv):
if len(argv) != 2:
sys.exit('Usage: simple_multi.py <a> <b>')
a = int(sys.argv[1])
b = int(sys.argv[2])
sum = 0
for i in range(a):
sum += b
print "The result of " + str(a) + " times " + str(b) + " is: " + str(sum)
if __name__ == "__main__":
main(sys.argv[1:]) | python |
import { Injectable } from '@nestjs/common';
import { Connection } from 'typeorm';
@Injectable()
export class HelloService {
constructor(private connection: Connection) {}
public getHello() {
return 'Hello World!';
}
}
| typescript |
package com.ruanyun.chezhiyi.commonlib.model.params;
/**
* Created by msq on 2016/9/6.
*/
public class GetCaseParams extends PageParamsBase{
private String libraryName;//搜索的关键字
private Integer userType;//1-技师【技师个人】 2-企业
private String libraryType;//案例库分类【读取服务类型一级】
private String createUserNum;// 案例用户编号 传值 获取该技师的案例
private Integer status;// 审核状态1通过 2待审核 -1未通过
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getCreateUserNum() {
return createUserNum;
}
public void setCreateUserNum(String createUserNum) {
this.createUserNum = createUserNum;
}
public String getLibraryType() {
return libraryType;
}
public void setLibraryType(String libraryType) {
this.libraryType = libraryType;
}
public String getLibraryName() {
return libraryName;
}
public void setLibraryName(String libraryName) {
this.libraryName = libraryName;
}
public Integer getUserType() {
return userType;
}
public void setUserType(Integer userType) {
this.userType = userType;
}
}
| java |
{"jquery.hideseek.js":"sha256-1glll01qQOUySZVlYjdgkomqqjFhxOomEF/w++cRuYY=","jquery.hideseek.min.js":"<KEY>}
| json |
html {
color: var(--primary-color);
font-family: sans-serif;
font-size: 100%;
}
@media screen {
html {
background-color: var(--primary-color);
}
}
@media screen {
body {
margin: auto;
padding: var(--adaptive-lg) var(--adaptive-xl);
max-width: 900px;
background-color: var(--secondary-color);
}
}
@media screen and (min-width: 900px) {
body {
margin-top: calc(50vw - 28.125rem);
margin-bottom: calc(50vw - 28.125rem);
}
}
@media screen and (min-width: 964px) {
body {
margin-top: 2rem;
margin-bottom: 2rem;
}
}
* {
box-sizing: border-box;
}
section {
margin: var(--adaptive-lg) auto;
padding: 0 var(--adaptive-md);
}
h1,
h2,
h3 {
font-weight: normal;
margin: var(--adaptive-sm) 0;
}
h1 {
font-size: 1.6rem;
}
h2 {
font-size: 1.4rem;
margin: var(--adaptive-sm) 0;
}
h3 {
font-size: 1.2rem;
margin: 0;
margin-bottom: var(--adaptive-sm);
}
ul,
p,
dl {
margin-right: 0;
margin-left: 0;
}
dd {
margin-left: var(--adaptive-lg);
}
ul,
p,
dl,
dd,
dt {
margin-top: 0.3rem;
margin-bottom: 0.3rem;
}
ul:last-child,
p:last-child,
dl:last-child,
dd:last-child,
dt:last-child {
margin-bottom: 0;
}
a {
color: var(--accent-color);
text-decoration: none;
}
a:hover,
a:active,
a:focus {
color: var(--action-accent-color);
}
a:focus {
outline-color: var(--alt-accent-color);
}
@media print {
a[href^="http"]:after,
a[href^="mailto:"]:after {
content: " (" attr(href) ")";
}
}
img {
height: auto;
max-width: 100%;
}
| css |
package commands
import (
"os"
"github.com/urfave/cli/v2"
"golang.org/x/sys/execabs"
)
// Vendor returns the vendor cli command.
//
// Deprecated: Use "go mod vendor" instead.
func Vendor() *cli.Command {
return &cli.Command{
Name: "vendor",
Usage: "Deprecated: Use \"go mod vendor\" instead.",
Action: func(_ *cli.Context) error {
cmd := execabs.Command("go", "mod", "vendor")
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
return cmd.Run()
},
}
}
| go |
package com.tom.cpm.client;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map.Entry;
import java.util.function.Predicate;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.gui.screen.options.SkinOptionsScreen;
import net.minecraft.client.gui.widget.AbstractButtonWidget;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.model.Model;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.options.KeyBinding;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.text.TranslatableText;
import com.mojang.authlib.GameProfile;
import com.tom.cpl.util.Image;
import com.tom.cpm.mixinplugin.OFDetector;
import com.tom.cpm.shared.MinecraftObjectHolder;
import com.tom.cpm.shared.animation.VanillaPose;
import com.tom.cpm.shared.config.ConfigKeys;
import com.tom.cpm.shared.config.ModConfig;
import com.tom.cpm.shared.config.Player;
import com.tom.cpm.shared.definition.ModelDefinition;
import com.tom.cpm.shared.definition.ModelDefinitionLoader;
import com.tom.cpm.shared.editor.gui.EditorGui;
import com.tom.cpm.shared.gui.GestureGui;
public class CustomPlayerModelsClient implements ClientModInitializer {
public static MinecraftObject mc;
private ModelDefinitionLoader loader;
public static CustomPlayerModelsClient INSTANCE;
public static boolean optifineLoaded;
@Override
public void onInitializeClient() {
INSTANCE = this;
try(InputStream is = CustomPlayerModelsClient.class.getResourceAsStream("/assets/cpm/textures/template/free_space_template.png")) {
loader = new ModelDefinitionLoader(Image.loadFrom(is), PlayerProfile::create);
} catch (IOException e) {
throw new RuntimeException("Failed to load template", e);
}
mc = new MinecraftObject(MinecraftClient.getInstance(), loader);
optifineLoaded = OFDetector.doApply();
MinecraftObjectHolder.setClientObject(mc);
ClientTickEvents.START_CLIENT_TICK.register(cl -> {
if(!cl.isPaused())
mc.getPlayerRenderManager().getAnimationEngine().tick();
});
KeyBindings.init();
ClientTickEvents.END_CLIENT_TICK.register(client -> {
if (client.player == null)
return;
if(KeyBindings.gestureMenuBinding.isPressed()) {
client.openScreen(new GuiImpl(GestureGui::new, null));
}
if(KeyBindings.renderToggleBinding.isPressed()) {
Player.setEnableRendering(!Player.isEnableRendering());
}
for (Entry<Integer, KeyBinding> e : KeyBindings.quickAccess.entrySet()) {
if(e.getValue().isPressed()) {
mc.getPlayerRenderManager().getAnimationEngine().onKeybind(e.getKey());
}
}
});
}
private PlayerProfile profile;
public void playerRenderPre(AbstractClientPlayerEntity player, VertexConsumerProvider buffer) {
tryBindModel(null, player, buffer, null, null);
}
private boolean tryBindModel(GameProfile gprofile, PlayerEntity player, VertexConsumerProvider buffer, Predicate<Object> unbindRule, Model toBind) {
if(gprofile == null)gprofile = player.getGameProfile();
PlayerProfile profile = (PlayerProfile) loader.loadPlayer(gprofile);
if(toBind == null)toBind = profile.getModel();
ModelDefinition def = profile.getAndResolveDefinition();
if(def != null) {
this.profile = profile;
if(player != null)
profile.updateFromPlayer(player);
else
profile.setRenderPose(VanillaPose.SKULL_RENDER);
mc.getPlayerRenderManager().bindModel(toBind, buffer, def, unbindRule, profile);
if(unbindRule == null || player == null)
mc.getPlayerRenderManager().getAnimationEngine().handleAnimation(profile);
return true;
}
mc.getPlayerRenderManager().unbindModel(toBind);
return false;
}
public void playerRenderPost() {
if(profile != null) {
mc.getPlayerRenderManager().unbindModel(profile.getModel());
profile = null;
}
}
public void initGui(Screen screen, List<Element> children, List<AbstractButtonWidget> buttons) {
if((screen instanceof TitleScreen && ModConfig.getConfig().getSetBoolean(ConfigKeys.TITLE_SCREEN_BUTTON, true)) ||
screen instanceof SkinOptionsScreen) {
Button btn = new Button(0, 0, () -> MinecraftClient.getInstance().openScreen(new GuiImpl(EditorGui::new, screen)));
buttons.add(btn);
children.add(btn);
}
}
public void renderHand(VertexConsumerProvider buffer) {
tryBindModel(null, MinecraftClient.getInstance().player, buffer, PlayerRenderManager::unbindHand, null);
this.profile = null;
}
public void renderSkull(Model skullModel, GameProfile profile, VertexConsumerProvider buffer) {
PlayerProfile prev = this.profile;
tryBindModel(profile, null, buffer, PlayerRenderManager::unbindSkull, skullModel);
this.profile = prev;
}
public static class Button extends ButtonWidget {
public Button(int x, int y, Runnable r) {
super(x, y, 100, 20, new TranslatableText("button.cpm.open_editor"), b -> r.run());
}
}
}
| java |
Former World Champions, Sri Lanka will kick off their 2019 World Cup campaign against the runners-up of the previous World Cup, New Zealand at Cardiff. The Lankan Lions had a disastrous outing in their warm-up games as they lost both of their warm-up encounters. Dimuth Karunaratne's men could not give South Africa and Australia a run for their money in the warm-up games.
Lahiru Thirimanne and skipper Dimuth Karunaratne will the role of openers for Sri Lanka. Thirimanne had scored a half-ton in the warm-up match against Australia and he should perform well against Kane Williamson's side as well.
Wicket-keeper batsman, Kusal Perera will bat at no.3 while the trio of Kusal Mendis, Angelo Mathews and Jeevan Mendis will form the team's core.
Dhananjaya de Silva played a good knock against Australia and he should play the opening counter against New Zealand. Thisara Perera will the role of a finisher at no. 8 along with bowling some crucial overs in the middle.
Leg-break bowler Jeffrey Vandersay can prove to be the X-factor for Sri Lanka while the fast bowlers Lasith Malinga and Nuwan Pradeep will try to make the most out of the English conditions.
Lahiru Thirimanne and Kusal Perera will hold the key for Sri Lanka in the batting department. They need to build a good platform for the experienced all-rounders to come and take the team to a respectable position.
Jeffrey Vandersay will have the responsibility of picking up wickets in the middle overs whereas the team's most experienced bowler, Lasith Malinga will have to keep a check on the run-flow in the powerplay as well as slog overs.
Follow Sportskeeda for all the updates on World Cup points table, news, world cup most runs, live scores, schedule, most runs, most wickets and fantasy tips.
| english |
It has been 40 years since the Indian cricket team lifted its first World Cup trophy. The smile that adorned the former captain Kapil Dev’s face as he held the coveted trophy on June 25, 1983, marked a turning point in India’s cricketing history.
While the smiling skipper is forever etched in our memories, what remains elusive to many is the sheer strength and courage it took for the team to stand at Lord’s famous balcony and take the trophy home.
The film which starred Ranveer Singh and Deepika Paduone under the direction of Kabir Khan had a remarkable scene where an English commentator and cricket historian David Frith was shown eating his own words at Lord’s after the Indian side won the World Cup in 1983.
Frith had written an article objecting to India being invited to the World Cup given their record. He had said that he would eat his words if India progressed beyond the league stage.
This shows how the world underestimated the capabilities of the Indian team, which went on to defeat the feared and defending champions West Indies.
Some Indian players themselves thought of the World Cup in England as an opportunity for sightseeing. Sandip Patil, who was a part of the winning team, said in 2015 that India was nowhere in contention. “The team had hardly performed well in the previous two editions. So as we left India, virtually all of us were in a holiday mood. Cricket was not the first thing on our minds,” he said.
In their first World Cup match in 1983, India went up against the legends West Indies, going head to head with some of the most fearsome players the world has ever seen. To the surprise of everyone, the underdogs ended up beating the mighty. India, pumped by Yashpal Sharma’s 89 runs, put up a score of 262 in 60 overs. Following this, the West Indies buckled out at 228, with Ravi Shastri and Roger Binny taking over the charge with three wickets each.
Next up, India defeated Zimbabwe, who had earlier beaten the Aussies in their first-ever World Cup match, and restricted them to 155, thanks to Madan Lal’s 3/27 and the amazing Syed Kirmani’s brilliant work with the gloves behind the wickets.
After these back to back wins, the team which was nowhere in the race, found themselves at the top of their group. However, they were soon humbled by Australia and West Indies in the subsequent matches.
The team which was riding high on its consequent wins, found itself staring at a World Cup exit just a few days later.
The Australians set a target of 321 for India, but brought them to a close for just 158. Australia’s Trevor Chappell, Kim Hughes and Graham Yallop left no space for the Indian side to sneak a victory.
The West Indies who were going to face India for the second time in the tournament looked in no mood to make an error. Riding on the shoulders of the legendary player Viv Richards’ breathtaking innings of 119 runs, the defending champions posted 282/9 on the scoreboard. In return, India could only manage to score 216, with Mohinder Amarnath standing as a lone wolf with 80 runs to his name.
With their chances of making it to the semi-finals inching closer to its end, India went to face Zimbabwe in a virtual knock-out in Tunbridge Wells. As the Indian fans watched in horror, the team’s scorecard read 9/4.
As India’s fate hung in the balance, the captain walked in like a blessing and went to show the world what is still called as one of the greatest ODI knocks in history. He put up 175 runs which came off just 138 balls. He hit 22 balls off the field, 16 fours and six sixes. It was the highest individual score in ODI cricket.
Kapil Dev and Syed Kirmani then put up 126 runs for the ninth wicket. India then went on post 266/8 at the end of the innings.
Following Kapil Dev’s sensational play, Zimbabwe’s Kevin Curran brought in nail-biting suspense with his innings of 73, posing a challenge for India. However, the India team held their own and won the match by 31 runs.
India next demolished Australia and booked their seat in the semi-finals against the home team England after registering a 118-run win over the Aussies.
The next mammoth task ahead of India was facing the home team which had lost just one of their six matches. The Brits, who started off well, soon found themselves struggling when Amarnath was called on to halt their stride. Amarnath was successful in taking invaluable wickets of David Gower, the highest run-scorer in the 1983 World Cup, and Mike Gatting.
Towards the end of, England, who were once 141/3, found them walking back to stands at 213.
Walking in on the field for the second innings, India’s openers Sunil Gavaskar and Kris Srikkanth started strong and put up 46 for the opening wicket. After proving his mettle with the ball, Amaranth scored 46, while Yashpal Sharma and Sandeep Patil scored half-centuries, pushing India into the finals with over five overs to spare.
It was once again India vs West Indies and the defending champions were the obvious favourites. As West Indies fought to win the trophy for the third time in a row, India fought for a name among the top league players.
West Indies were the odds-on favourite to win the trophy for the third time in a row. What stood in their way was an Indian team that was scripting history with every step they took in the tournament.
After an exemplary performance throughout the tournament, the underdogs found themselves ducking out for a meagre total of 183, with Srikkanth being the top scorer at 38.
What followed was nothing short of a history in making. India dismissed Gordon Greenidge for 1. The infallible Vivian Richards walked in next and smashed seven boundaries, increasing the distance between India and the coveted trophy. But as luck would have it, Richards mistimed a shot and handed the ball in Kapil Dev’s hands.
Later, Clive Lloyd was dismissed for 8 with an injured hamstring. The West Indies were soon reduced to 66/5.
Pumped up by the zealous performance, India’s bowlers, led by Mohinder Amarnath, dismissed the West Indies for 140 runs, securing a stunning 43-run victory.
The rest is now history and to date the chants backing India that rented the air at Lord’s make our hearts swell with pride. Forty years later, India has become second team in history to top ICC rankings in all three formats. Who would have thought that the underdogs will continue to script history and become one of the most feared teams in the world of cricket.
| english |
New norms put in place for awarding irrigation contracts in Maharashtra have just blown the lid off another raging controversy. It turns out that irregular tenders, which were collectively worth several hundred crores, were floated in the run-up to assembly polls. Allegations of a multi-crore scam in irrigation contracts had rocked the erstwhile Congress, NCP government. An allegation that had stuck at that time was that in the run-up to the 2009 assembly polls, the NCP-controlled water resources department had ‘hurriedly’ cleared irrigation contracts totaling Rs 20,000 crore, even as former Maharashtra deputy chief minister Ajit Pawar, who led the department then, has repeatedly denied the charge.
But just before the 2014 election, the erstwhile regime floated at least 75 tenders worth over Rs 500 crore that were not in order and violated the government’s own guidelines. Sources confirmed that they were floated without the mandatory land acquisition and environmental clearance. Some of them were taken up at a time when comprehensive project plans and techno financial feasibility studies were not in place.
The erstwhile regime had itself made completion of land acquisition process, and environment and forest clearances a pre-requisite for irrigation contracts, following a recommendation made by a Special Investigation Team (SIT) appointed to probe the allegations. But sources confirmed that this was overlooked in the run up to polls. The controversy has now come to the fore with the impact of the state administration’s move to tweak the process for awarding irrigation contracts in a bid to break monopoly of select contractors now being felt.
During the month-long President’s rule in Maharashtra between September and October last year, the state administration had discontinued the process where pre-qualification bids were accepted for irrigation contracts. It was decided to replace it with e-tenders that were to be floated post qualification for all irrigation works. Sources further said that the Devendra Fadnavis government persisted with the revised model after some resistance.
Accordingly, about 143 tenders, collectively worth Rs 697. 82 crore, that were floated in the run up to polls but where work orders were yet to be issued were scrapped. These were to be recalled under the revised model. While scrapping the tenders, Water Resources Minister Girish Mahajan had even fired barbs at the Congress, NCP regime, alleging that department engineers had been pressurized to go ahead with these tenders without the mandatory checks.
Out of the 143 projects, the department has now been able to reissue tenders for barely 18, collectively worth Rs 45 crore. Following a review on the status of the other proposed works, senior department engineers confirmed that tenders won’t be reissued for 75 projects as they were “just not ready to be tendered. ” The review revealed that land acquisition process and environmental clearances were yet to be completed for most of these. Several others did not fit the government’s priority list of works. With committed liabilities in excess of Rs 40,000 crore, the previous regime itself had taken a decision that only last mile projects would be taken up on priority.
Incidentally, the Vidharbha Irrigation Development Corporation (VIDC), and the Maharashtra Krishna Valley Development Corporation (MKVDC), which courted the most allegations in the irrigation scam, are at the centre of the new controversy too, with concerns that most irregular tenders were floated in these.
The MKVDC has so far floated only 5 of the 47 scrapped tenders. According to an official statement on the status of the remaining works, the MKVDC has said that tender process was under progress in 17 others. It has conceded that 12 tenders, worth 177. 31 crore, were originally floated without acquiring project land. Six others do not fit in the state’s priority list. Similarly, the VIDC, where 54 works collectively worth Rs 263 crore were tendered for in the run up to polls, too has managed to reissue only 5 tenders. The Tapi Irrigation Development Corporation has reissued 11 of the 21 tenders it scrapped under government orders, whereas the Konkan Irrigation Development Corporation has reissued two of four tenders. | english |
{
"_id": "MCIp76IWZ2pk7dyz",
"content": "<p>The Criminal One of your associates committed crimes regularly. They regaled you with many stories of daring robberies and break-ins-perhaps even murders. You learned what you know of the criminal element from this friend.</p>\n<p>Add a Dexterity ability boost to your background options</p>",
"flags": {},
"name": "The Criminal",
"permission": {
"default": 0
}
}
| json |
<reponame>mathletedev/mathletedev.github.io<gh_stars>1-10
export const __colors__ = {
black: "#282c34",
white: "#dcdfe4",
red: "#e06c75",
yellow: "#e5c07b",
green: "#98c379",
cyan: "#56b6c2",
blue: "#61afef",
magenta: "#c678dd"
};
export const __char__ = 10.55;
export const __mobile__ = /Mobi/.test(navigator.userAgent);
export const __cursorDelay__ = 500;
| typescript |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2021 <NAME>
// Copyright (c) 2016-2021 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <Siv3D/Common.hpp>
# include <Siv3D/Mat3x2.hpp>
# include <Siv3D/MathConstants.hpp>
namespace s3d
{
namespace detail
{
[[nodiscard]]
inline float CalculateMaxScaling(const Mat3x2& mat)
{
return (Float2{ mat._11 + mat._21, mat._12 + mat._22 }.length() / Math::Sqrt2_v<float>);
}
}
template <class Enum>
class CurrentBatchStateChanges
{
private:
uint64 m_states = 0;
public:
[[nodiscard]]
bool has(const Enum command) const noexcept
{
return ((m_states & (0x1ull << FromEnum(command))) != 0);
}
[[nodiscard]]
bool hasStateChange() const noexcept
{
return (m_states > 1);
}
void set(const Enum command) noexcept
{
m_states |= (0x1ull << FromEnum(command));
}
void clear(const Enum command) noexcept
{
m_states &= ~(0x1ull << FromEnum(command));
}
void clear() noexcept
{
m_states = 0;
}
};
}
| cpp |
<filename>main.py
from utils.config import Config, main
from repo import aws, jaguar
from urllib import parse
from flask import Flask, request, jesonify
app = Flask('__name__')
@app.route('/')
@app.route('/index')
def index():
return "Hello home!"
@app.route('/get-instances/<string:tag_name>', methods=['GET'])
def getIntances(tag_name):
return aws.get_ec2_all(parse.unquote(tag_name))
@app.route('/hook/testbvg', methods=['POST'])
def jaguar_fb():
c = request.form
if c['text'] == 'jaguar':
r = jaguar.send_cmd()
return r
else:
return 'Try again!'
@app.route('/ping', methods=['GET', 'POST'])
def ping_default():
return "pong"
@app.route('/deploy/ec2/<string:commit>', methods=['GET'])
def deploy_ec2(commit):
return jsonify(aws.do_deploy(commit))
if __name__ == '__main__':
app.run(
host=main.host,
port=main.port,
debug=main.debug
)
| python |
---
title: Změna informací o účtu Microsoft
ms.author: pebaum
author: pebaum
manager: mnirkhe
ms.audience: Admin
ms.topic: article
ms.service: o365-administration
ROBOTS: NOINDEX, NOFOLLOW
localization_priority: Priority
ms.collection: Adm_O365
ms.custom:
- "9002956"
- "5658"
ms.openlocfilehash: c1df53e9ab0c34065b7bed32ecad3be673f07033
ms.sourcegitcommit: c6692ce0fa1358ec3529e59ca0ecdfdea4cdc759
ms.translationtype: MT
ms.contentlocale: cs-CZ
ms.lasthandoff: 09/14/2020
ms.locfileid: "47682854"
---
# <a name="change-my-microsoft-account-information"></a>Změna informací o účtu Microsoft
Přejděte na [https://account.microsoft.com](https://account.microsoft.com/) a v případě potřeby se přihlaste. Tímto přejdete na řídicí panel účtu.
**Upravit jméno a osobní údaje**
1. Na řídicím panelu účtu klikněte vedle obrázku a názvu účtu na **Další akce > upravit profil**.
2. Na stránce **Upravit profil** můžete pomocí zadaných odkazů změnit profilový obrázek, název, datum narození, umístění a jazyk zobrazení. Podívejte se na odkazy na svoje profily účtu Xbox nebo Skype, kde můžete změnit podrobnosti pro tyto účty.
**Správa e-mailových adres a telefonních čísel**
K účtu Microsoft je přidružena jedna nebo více e-mailových adres nebo telefonních čísel jako aliasy. Při správě těchto:
1. Na řídicím panelu účtu klikněte vedle obrázku a názvu účtu na **Další akce > upravit profil**.
2. Na stránce **Upravit profil** klikněte na **spravovat způsob přihlášení k Microsoftu**.
3. Zobrazí se seznam aliasů účtu a seznam můžete spravovat, včetně přidávání a odstraňování e-mailových adres a telefonních čísel. Zde můžete také vybrat aliasy, které se dají použít pro přihlášení k účtu a který alias je považován za "primární", který se zobrazí na vašich zařízeních s Windows 10.
**Správa způsobů platby a jména a adresy pro fakturaci**
1. Na řídicím panelu účtu klikněte vedle obrázku a názvu účtu na **Další akce > upravit profil**.
2. V části **platební &** klikněte na **Spravovat**.

3. Zde můžete přidat, upravit a odebrat způsoby platby a jejich přidružené fakturační adresy.
| markdown |
The schedule for the 13th edition of the Indian Premier League (IPL) was announced earlier today. Defending champions Mumbai Indians will play the curtain-raiser against Chennai Super Kings at the Wankhede Stadium on 29th March.
The group-stage fixtures will culminate on 17th May, with Royal Challengers Bangalore taking take on Mumbai Indians in Bengaluru.
The inaugural champions Rajasthan Royals will open their campaign against Chennai Super Kings on 2nd April in Chennai. The Jaipur-based franchise will play its first home game against Delhi Capitals on 5th April.
While Guwahati will host two of RR's home games, the rest of the matches will take place in Jaipur. Rajasthan's final fixture will be an away game against Delhi Capitals on 13th May.
Following their success in the inaugural edition of the IPL back in 2008, Rajasthan Royals have failed to reach the same heights ever since.
Another forgettable outing in the 12th edition of the competition prompted Rajasthan to release as many as 11 players ahead of the IPL auction. They also traded away Ajinkya Rahane, who had been an integral part of their side since 2011, in exchange for leggie Mayank Markande and Rahul Tewatia.
Aside from retaining the services of Steve Smith, Jofra Archer, Jos Buttler, Shreyas Gopal, Ben Stokes, and Sanju Samson, Rajasthan roped in 11 players, including experienced campaigners like Robin Uthappa, Andrew Tye, and David Miller. They also managed to secure the services of 17-year-old Yashasvi Jaiswal for a whopping ₹2. 40 crores.
Skipper Steve Smith, along with newly-appointed coach Andrew McDonald, will be hoping to lead the Royals to success this time around.
Rajasthan Royals Match Schedule for IPL 2020:
Match 1: Chennai Super Kings vs. Rajasthan Royals (Chennai, 2nd April)
Match 2: Rajasthan Royals vs. Delhi Capitals (Guwahati, 5th April)
Match 3: Rajasthan Royals vs. Kolkata Knight Riders (Guwahati, 9th April)
Match 4: Sunrisers Hyderabad vs. Rajasthan Royals (Hyderabad, 12th April)
Match 5: Mumbai Indians vs. Rajasthan Royals (Mumbai, 15th April)
Match 6: Royal Challengers Bangalore vs. Rajasthan Royals (Bengaluru, 18th April)
Match 7: Rajasthan Royals vs. Sunrisers Hyderabad (Jaipur, 21st April)
Match 8: Rajasthan Royals vs. Royal Challengers Bangalore (Jaipur, 25th April)
Match 9: Rajasthan Royals vs. Kings XI Punjab (Jaipur, 29th April)
Match 10: Kolkata Knight Riders vs. Rajasthan Royals (Kolkata, 2nd May)
Match 11: Rajasthan Royals vs. Chennai Super Kings (Jaipur, 4th May)
Match 12: Kings XI Punjab vs. Rajasthan Royals (Mohali, 8th May)
Match 13: Rajasthan Royals vs. Mumbai Indians (Jaipur, 11th May)
Match 14: Delhi Capitals vs. Rajasthan Royals (Delhi, 13th May) | english |
package it.unive.lisa.callgraph;
import it.unive.lisa.analysis.AnalysisState;
import it.unive.lisa.analysis.CFGWithAnalysisResults;
import it.unive.lisa.analysis.HeapDomain;
import it.unive.lisa.analysis.SemanticException;
import it.unive.lisa.analysis.ValueDomain;
import it.unive.lisa.cfg.CFG;
import it.unive.lisa.cfg.CFG.SemanticFunction;
import it.unive.lisa.cfg.FixpointException;
import it.unive.lisa.cfg.statement.CFGCall;
import it.unive.lisa.cfg.statement.Call;
import it.unive.lisa.cfg.statement.OpenCall;
import it.unive.lisa.cfg.statement.UnresolvedCall;
import it.unive.lisa.symbolic.SymbolicExpression;
import it.unive.lisa.symbolic.value.Identifier;
import java.util.Collection;
/**
* A callgraph of the program to analyze, that knows how to resolve dynamic
* targets of {@link UnresolvedCall}s.
*
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
public interface CallGraph {
/**
* Adds a new cfg to this call graph.
*
* @param cfg the cfg to add
*/
void addCFG(CFG cfg);
/**
* Yields a {@link Call} implementation that corresponds to the resolution
* of the given {@link UnresolvedCall}. This method will return:
* <ul>
* <li>a {@link CFGCall}, if at least one {@link CFG} that matches
* {@link UnresolvedCall#getQualifiedName()} is found. The returned
* {@link CFGCall} will be linked to all the possible runtime targets
* matching {@link UnresolvedCall#getQualifiedName()};</li>
* <li>an {@link OpenCall}, if no {@link CFG} matching
* {@link UnresolvedCall#getQualifiedName()} is found.</li>
* </ul>
*
* @param call the call to resolve
*
* @return a collection of all the possible runtime targets
*/
Call resolve(UnresolvedCall call);
/**
* Computes a fixpoint over the whole control flow graph, producing a
* {@link CFGWithAnalysisResults} for each {@link CFG} contained in this
* callgraph. Each result is computed with
* {@link CFG#fixpoint(AnalysisState, CallGraph, SemanticFunction)} or one
* of its overloads. Results of individual cfgs are then available through
* {@link #getAnalysisResultsOf(CFG)}.
*
* @param <H> the type of {@link HeapDomain} to compute
* @param <V> the type of {@link ValueDomain} to compute
* @param entryState the entry state for the {@link CFG}s that are the
* entrypoints of the computation
* @param semantics the {@link SemanticFunction} that will be used for
* computing the abstract post-state of statements
*
* @throws FixpointException if something goes wrong while evaluating the
* fixpoint
*/
<H extends HeapDomain<H>, V extends ValueDomain<V>> void fixpoint(AnalysisState<H, V> entryState,
SemanticFunction<H, V> semantics)
throws FixpointException;
/**
* Yields the results of the given analysis, identified by its class, on the
* given {@link CFG}. Results are provided as
* {@link CFGWithAnalysisResults}.
*
* @param <H> the type of {@link HeapDomain} contained into the computed
* abstract state
* @param <V> the type of {@link ValueDomain} contained into the computed
* abstract state
* @param cfg the cfg whose fixpoint results needs to be retrieved
*
* @return the result of the fixpoint computation of {@code valueDomain}
* over {@code cfg}
*/
<H extends HeapDomain<H>, V extends ValueDomain<V>> CFGWithAnalysisResults<H, V> getAnalysisResultsOf(CFG cfg);
/**
* Clears all the data from the last fixpoint computation, effectively
* re-initializing the call graph. The set of {@link CFG} under analysis
* (added through {@link #addCFG(CFG)}) is not lost.
*/
void clear();
/**
* Resolves the given call to all of its possible runtime targets, and then
* computes an analysis state that abstracts the execution of the possible
* targets considering that they were given {@code parameters} as actual
* parameters. The abstract value of each parameter is computed on
* {@code entryState}.
*
* @param <H> the type of {@link HeapDomain} contained into the
* computed abstract state
* @param <V> the type of {@link ValueDomain} contained into the
* computed abstract state
* @param call the call to resolve and evaluate
* @param entryState the abstract analysis state when the call is reached
* @param parameters the expressions representing the actual parameters of
* the call
*
* @return an abstract analysis state representing the abstract result of
* the cfg call. The
* {@link AnalysisState#getComputedExpressions()} will contain
* an {@link Identifier} pointing to the meta variable
* containing the abstraction of the returned value
*
* @throws SemanticException if something goes wrong during the computation
*/
<H extends HeapDomain<H>, V extends ValueDomain<V>> AnalysisState<H, V> getAbstractResultOf(CFGCall call,
AnalysisState<H, V> entryState, Collection<SymbolicExpression>[] parameters) throws SemanticException;
}
| java |
import os
class Config:
SQLALCHEMY_TRACK_MODIFICATIONS = False
CSRF_ENABLED = True
FLASK_DEBUG = True
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'mysql+mysqlconnector://root:root@localhost:8889/lak_db')
DATABASE_URL = os.environ.get('CLEARDB_DATABASE_URL', 'mysql+mysqlconnector://root:root@localhost:8889/hnuvs_db')
PORT = int(os.environ.get('PORT', '5000'))
SECRET_KEY = os.environ.get('SECRET_KEY', 'SITE_BOMBS')
| python |
However, according to the General Confederation of Labor (CGT), France's largest union, the number of protesters on Tuesday exceeded 900,000 nationwide, reports Xinhua news agency.
All the protests were relatively peaceful, although 28 people were arrested in Paris.
The general mobilisation is no longer widely supported by certain sectors.
The national railway company SNCF, and the RATP public transport system in Paris both maintained almost full service on Tuesday.
The only major disruption was in aviation, with the civil aviation authorities asking Paris Orly airport to cancel 30 per cent of Tuesday's flights, and 20 per cent for some other major airports in France.
On April 14, France's Constitutional Council ruled that the legal retirement age would be gradually raised from 62 to 64 by 2030.
Prime Minister Elisabeth Borne first presented details of the pension reform plan in January.
The reform also introduces a guaranteed minimum pension, and from 2027 onwards at least 43 years of work will be required to be eligible for a full pension.
Disclaimer: This story has not been edited by the Sakshi Post team and is auto-generated from syndicated feed. | english |
/*
* OPT3001.cpp
*
* Created: 4/18/2020 4:36:15 PM
* Author: MQUEZADA
*/
/*
Arduino library for Texas Instruments OPT3001 Digital Ambient Light Sensor
Written by AA for ClosedCube
---
The MIT License (MIT)
Copyright (c) 2015 ClosedCube Limited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
//#include <Wire.h>
//
//#include "ClosedCube_OPT3001.h"
//
//ClosedCube_OPT3001::ClosedCube_OPT3001()
//{
//}
//
//OPT3001_ErrorCode ClosedCube_OPT3001::begin(uint8_t address) {
//OPT3001_ErrorCode error = NO_ERROR;
//_address = address;
//Wire.begin();
//
//return NO_ERROR;
//}
//
//uint16_t ClosedCube_OPT3001::readManufacturerID() {
//uint16_t result = 0;
//OPT3001_ErrorCode error = writeData(MANUFACTURER_ID);
//if (error == NO_ERROR)
//error = readData(&result);
//return result;
//}
//
//uint16_t ClosedCube_OPT3001::readDeviceID() {
//uint16_t result = 0;
//OPT3001_ErrorCode error = writeData(DEVICE_ID);
//if (error == NO_ERROR)
//error = readData(&result);
//return result;
//}
//
//OPT3001_Config ClosedCube_OPT3001::readConfig() {
//OPT3001_Config config;
//OPT3001_ErrorCode error = writeData(CONFIG);
//if (error == NO_ERROR)
//error = readData(&config.rawData);
//return config;
//}
//
//OPT3001_ErrorCode ClosedCube_OPT3001::writeConfig(OPT3001_Config config) {
//Wire.beginTransmission(_address);
//Wire.write(CONFIG);
//Wire.write(config.rawData >> 8);
//Wire.write(config.rawData & 0x00FF);
//return (OPT3001_ErrorCode)(-10 * Wire.endTransmission());
//}
//
//OPT3001 ClosedCube_OPT3001::readResult() {
//return readRegister(RESULT);
//}
//
//OPT3001 ClosedCube_OPT3001::readHighLimit() {
//return readRegister(HIGH_LIMIT);
//}
//
//OPT3001 ClosedCube_OPT3001::readLowLimit() {
//return readRegister(LOW_LIMIT);
//}
//
//OPT3001 ClosedCube_OPT3001::readRegister(OPT3001_Commands command) {
//OPT3001_ErrorCode error = writeData(command);
//if (error == NO_ERROR) {
//OPT3001 result;
//result.lux = 0;
//result.error = NO_ERROR;
//
//OPT3001_ER er;
//error = readData(&er.rawData);
//if (error == NO_ERROR) {
//result.raw = er;
//result.lux = 0.01*pow(2, er.Exponent)*er.Result;
//}
//else {
//result.error = error;
//}
//
//return result;
//}
//else {
//return returnError(error);
//}
//}
//
//OPT3001_ErrorCode ClosedCube_OPT3001::writeData(OPT3001_Commands command)
//{
//Wire.beginTransmission(_address);
//Wire.write(command);
//return (OPT3001_ErrorCode)(-10 * Wire.endTransmission(true));
//}
//
//OPT3001_ErrorCode ClosedCube_OPT3001::readData(uint16_t* data)
//{
//uint8_t buf[2];
//
//Wire.requestFrom(_address, (uint8_t)2);
//
//int counter = 0;
//while (Wire.available() < 2)
//{
//counter++;
//delay(10);
//if (counter > 250)
//return TIMEOUT_ERROR;
//}
//
//Wire.readBytes(buf, 2);
//*data = (buf[0] << 8) | buf[1];
//
//return NO_ERROR;
//}
//
//
//OPT3001 ClosedCube_OPT3001::returnError(OPT3001_ErrorCode error) {
//OPT3001 result;
//result.lux = 0;
//result.error = error;
//return result;
//}
//
///*
//
//This is example for ClosedCube OPT3001 Digital Ambient Light Sensor breakout board
//
//Initial Date: 02-Dec-2015
//
//Hardware connections for Arduino Uno:
//VDD to 3.3V DC
//SDA to A4
//SCL to A5
//GND to common ground
//
//Written by AA for ClosedCube
//
//MIT License
//
//*/
///*
//#include <Wire.h>
//#include <ClosedCube_OPT3001.h>
//
//ClosedCube_OPT3001 opt3001;
//
//#define OPT3001_ADDRESS 0x45
//
//void setup()
//{
//Serial.begin(9600);
//Serial.println("ClosedCube OPT3001 Arduino Test");
//
//opt3001.begin(OPT3001_ADDRESS);
//Serial.print("OPT3001 Manufacturer ID");
//Serial.println(opt3001.readManufacturerID());
//Serial.print("OPT3001 Device ID");
//Serial.println(opt3001.readDeviceID());
//
//configureSensor();
//printResult("High-Limit", opt3001.readHighLimit());
//printResult("Low-Limit", opt3001.readLowLimit());
//Serial.println("----");
//}
//
//void loop()
//{
//OPT3001 result = opt3001.readResult();
//printResult("OPT3001", result);
//delay(500);
//}
//
//void configureSensor() {
//OPT3001_Config newConfig;
//
//newConfig.RangeNumber = B1100;
//newConfig.ConvertionTime = B0;
//newConfig.Latch = B1;
//newConfig.ModeOfConversionOperation = B11;
//
//OPT3001_ErrorCode errorConfig = opt3001.writeConfig(newConfig);
//if (errorConfig != NO_ERROR)
//printError("OPT3001 configuration", errorConfig);
//else {
//OPT3001_Config sensorConfig = opt3001.readConfig();
//Serial.println("OPT3001 Current Config:");
//Serial.println("------------------------------");
//
//Serial.print("Conversion ready (R):");
//Serial.println(sensorConfig.ConversionReady,HEX);
//
//Serial.print("Conversion time (R/W):");
//Serial.println(sensorConfig.ConvertionTime, HEX);
//
//Serial.print("Fault count field (R/W):");
//Serial.println(sensorConfig.FaultCount, HEX);
//
//Serial.print("Flag high field (R-only):");
//Serial.println(sensorConfig.FlagHigh, HEX);
//
//Serial.print("Flag low field (R-only):");
//Serial.println(sensorConfig.FlagLow, HEX);
//
//Serial.print("Latch field (R/W):");
//Serial.println(sensorConfig.Latch, HEX);
//
//Serial.print("Mask exponent field (R/W):");
//Serial.println(sensorConfig.MaskExponent, HEX);
//
//Serial.print("Mode of conversion operation (R/W):");
//Serial.println(sensorConfig.ModeOfConversionOperation, HEX);
//
//Serial.print("Polarity field (R/W):");
//Serial.println(sensorConfig.Polarity, HEX);
//
//Serial.print("Overflow flag (R-only):");
//Serial.println(sensorConfig.OverflowFlag, HEX);
//
//Serial.print("Range number (R/W):");
//Serial.println(sensorConfig.RangeNumber, HEX);
//
//Serial.println("------------------------------");
//}
//
//}
//
//void printResult(String text, OPT3001 result) {
//if (result.error == NO_ERROR) {
//Serial.print(text);
//Serial.print(": ");
//Serial.print(result.lux);
//Serial.println(" lux");
//}
//else {
//printError(text,result.error);
//}
//}
//
//void printError(String text, OPT3001_ErrorCode error) {
//Serial.print(text);
//Serial.print(": [ERROR] Code #");
//Serial.println(error);
//}
//*/ | cpp |
---
title: Criar uma política de firewall do aplicativo web para frente do Azure usando o portal do Azure
titlesuffix: Azure web application firewall
description: Saiba como criar uma política de WAF (firewall) do aplicativo web usando o portal do Azure.
services: frontdoor
documentationcenter: na
author: KumudD
manager: twooley
ms.service: frontdoor
ms.devlang: na
ms.topic: article
ms.tgt_pltfrm: na
ms.workload: infrastructure-services
ms.date: 04/8/2019
ms.author: kumud;tyao
ms.openlocfilehash: 26db3a67c3efbd0ba2a5c58facd0c07175f7ed12
ms.sourcegitcommit: 3102f886aa962842303c8753fe8fa5324a52834a
ms.translationtype: MT
ms.contentlocale: pt-BR
ms.lasthandoff: 04/23/2019
ms.locfileid: "61460197"
---
# <a name="create-a-waf-policy-for-azure-front-door-by-using-the-azure-portal"></a>Criar uma política de WAF para frente do Azure usando o portal do Azure
Este artigo descreve como criar uma política de WAF (firewall) do aplicativo web básico do Azure e aplicá-la a um host de front-end na frente do Azure.
## <a name="prerequisites"></a>Pré-requisitos
Crie um perfil de Front Door seguindo as instruções descritas no [Guia de Início Rápido: Crie um perfil de Front Door](quickstart-create-front-door.md).
## <a name="create-a-waf-policy"></a>Criar uma política de WAF
Primeiro, crie uma diretiva básica de WAF com gerenciado padrão regra definida (DRS) por meio do portal.
1. No canto superior esquerdo da tela, selecione **criar um recurso**> pesquise **WAF**> selecione **firewall do aplicativo Web (visualização)** > selecione **Criar**.
2. No **Noções básicas** guia da **criar uma política de WAF** página, insira ou selecione as informações a seguir, aceite os padrões para as configurações restantes e, em seguida, selecione **revisar + criar**:
| Configuração | Valor |
| --- | --- |
| Assinatura |Selecione o nome da sua assinatura de porta da frente.|
| Grupo de recursos |Selecione o nome do grupo de recursos da frente.|
| Nome da política |Insira um nome exclusivo para sua política de WAF.|

3. No **associação** guia da **criar uma política de WAF** página, selecione **Adicionar host de front-end**, insira as seguintes configurações e, em seguida, selecione **Add**:
| Configuração | Value |
| --- | --- |
| Porta da frente | Selecione seu nome de perfil de porta da frente.|
| Host de front-end | Selecione o nome do seu host de porta da frente e selecione **adicionar**.|
> [!NOTE]
> Se o host de front-end estiver associado a uma política de WAF, ele é mostrado como esmaecido. Você deve primeiro remover o host de front-end da política associada e, em seguida, reassociar o host de front-end para uma nova política de WAF.
1. Selecione **revisar + criar**, em seguida, selecione **criar**.
## <a name="configure-waf-rules-optional"></a>Configurar regras de WAF (opcionais)
### <a name="change-mode"></a>Alterar modo
Quando você cria uma política de WAF, o padrão do waf política está em **detecção** modo. Na **detecção** modo, o WAF não bloqueia todas as solicitações, em vez disso, as solicitações de correspondência com as regras de WAF são registradas nos logs de WAF.
Para ver o WAF em ação, você pode alterar as configurações do modo de **detecção** à **prevenção**. Na **prevenção** modo, as solicitações que regras de correspondência que são definidas no padrão regra definida (DRS) são bloqueadas e registradas em logs de WAF.

### <a name="default-rule-set-drs"></a>Conjunto de regras padrão (DRS)
Conjunto de regras de padrão gerenciados do Azure é habilitado por padrão. Para desabilitar uma regra individual dentro de um grupo de regras, expandir as regras dentro desse grupo de regra, selecione a **caixa de seleção** na frente de número da regra e selecione **desabilitar** na guia acima. Para alterar os tipos de ações para regras individuais dentro a regra definida, marque a caixa de seleção na frente do número de regra e, em seguida, selecione a **alterar a ação** guia acima.

## <a name="next-steps"></a>Próximas etapas
- Saiba mais sobre [firewall do aplicativo web do Azure](waf-overview.md).
- Saiba mais sobre [do Azure da frente](front-door-overview.md).
| markdown |
<filename>packages/store/src/accounts/reducer.spec.ts
import {INITIAL_STATE, reducer} from './reducer';
import {ActionTypes, IAccountsState} from './types';
import {Wallet} from '@emeraldpay/emerald-vault-core';
describe('accounts reducer', () => {
it('handles Actions.LOADING', () => {
const state = reducer(undefined, {type: ActionTypes.LOADING, payload: true});
expect(state).toEqual({
...INITIAL_STATE,
loading: true
});
});
it('SET_LIST should store addresses correctly', () => {
// do
let state: IAccountsState = reducer(undefined, {
type: ActionTypes.SET_LIST,
payload: [{
id: 'f692dcb6-74ea-4583-8ad3-fd13bb6c38ee',
entries: [],
createdAt: new Date()
}]
});
// assert
expect(state.wallets.length).toEqual(1);
expect(state.wallets[0].id).toEqual('f692dcb6-74ea-4583-8ad3-fd13bb6c38ee');
state = reducer(state, {
type: ActionTypes.SET_LIST,
payload: [{
id: 'c35d05ba-d6bb-40b1-9553-383f414a97e5',
entries: [],
createdAt: new Date()
}]
});
expect(state.wallets.length).toEqual(1);
expect(state.wallets[0].id).toEqual('c35d05ba-d6bb-40b1-9553-383f414a97e5');
});
it('ADD_ACCOUNT should add only non existent account', () => {
let state: IAccountsState = reducer(undefined, { type: ActionTypes.LOADING, payload: true });
expect(state.wallets.length).toEqual(0);
state = reducer(state, {
type: ActionTypes.CREATE_WALLET_SUCCESS,
wallet: {
id: 'c35d05ba-d6bb-40b1-9553-383f414a97e5',
entries: [],
createdAt: new Date()
}
});
expect(state.wallets.length).toEqual(1);
expect(state.wallets[0].id).toEqual('c35d05ba-d6bb-40b1-9553-383f414a97e5');
// add again
state = reducer(state, {
type: ActionTypes.CREATE_WALLET_SUCCESS,
wallet: {
id: 'c35d05ba-d6bb-40b1-9553-383f414a97e5',
entries: [],
createdAt: new Date()
}
});
expect(state.wallets.length).toEqual(1);
expect(state.wallets[0].id).toEqual('c35d05ba-d6bb-40b1-9553-383f414a97e5');
// add different wallet
state = reducer(state, {
type: ActionTypes.CREATE_WALLET_SUCCESS,
wallet: {
id: '2d9fde4e-ce00-4b58-af68-15c211604529',
entries: [],
createdAt: new Date()
}
});
expect(state.wallets.length).toEqual(2);
expect(state.wallets[0].id).toEqual('c35d05ba-d6bb-40b1-9553-383f414a97e5');
expect(state.wallets[1].id).toEqual('2d9fde4e-ce00-4b58-af68-15c211604529');
});
it('SET_BALANCE updates utxo', () => {
let state: IAccountsState = reducer(undefined,
{
type: ActionTypes.SET_BALANCE,
payload: {
entryId: "c35d05ba-d6bb-40b1-9553-383f414a97e5-1",
value: "",
utxo: [
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]
}
}
);
expect(state.details[0].utxo).toEqual([
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]);
});
it('SET_BALANCE doesnt duplicate utxo', () => {
let state: IAccountsState = reducer(undefined,
{
type: ActionTypes.SET_BALANCE,
payload: {
entryId: "c35d05ba-d6bb-40b1-9553-383f414a97e5-1",
value: "",
utxo: [
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]
}
}
);
state = reducer(state,
{
type: ActionTypes.SET_BALANCE,
payload: {
entryId: "c35d05ba-d6bb-40b1-9553-383f414a97e5-1",
value: "",
utxo: [
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]
}
}
);
expect(state.details[0].utxo).toEqual([
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]);
});
it('SET_BALANCE add new utxo', () => {
let state: IAccountsState = reducer(undefined,
{
type: ActionTypes.SET_BALANCE,
payload: {
entryId: "c35d05ba-d6bb-40b1-9553-383f414a97e5-1",
value: "",
utxo: [
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]
}
}
);
state = reducer(state,
{
type: ActionTypes.SET_BALANCE,
payload: {
entryId: "c35d05ba-d6bb-40b1-9553-383f414a97e5-1",
value: "",
utxo: [
{
txid: "6ef31eced444201545e845410b04af0737c0d41a0d6b50f6ffb5e04ace662208",
vout: 0,
value: "200/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]
}
}
);
expect(state.details[0].utxo).toEqual([
{
txid: "0d41a0d6b50f6ffb5e04ace6622086ef31eced444201545e845410b04af0737c",
vout: 0,
value: "100/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
},
{
txid: "6ef31eced444201545e845410b04af0737c0d41a0d6b50f6ffb5e04ace662208",
vout: 0,
value: "200/SAT",
address: "tb1qepcagv9wkp04ygq3ud33qrkk6482ulhkegc333"
}
]);
});
});
| typescript |
Ranchi: A fast track court in Jharkhand’s Ramgarh district on Wednesday awarded 11 people, including a BJP leader, life imprisonment for killing a person on charges of carrying beef.
According to a lawyer, the court convicted 11 people including BJP’s Nityanand Mahto on 16 March.
The court of additional district judge Om Prakash had held the 11 men guilty under section 302 (murder) of the Indian Penal Code (IPC), among other offences, on March 16.
The 11 men -Santosh Singh, Chottu Verma, Deepak Mishra, Vicky Saw, Sikandar Ram, Uttam Ram, Vikram Prasad, Raju Kumar, Rohit Thakur, Kapil Thakur and BJP worker Nityanand Mahto were convicted of murdering Alimuddin Ansari alias Asgar Ali, a 55-year-old trader, on June 29 last year. The convicts were also fined Rs 2,000 each.
Additional public prosecutor Sushil Kumar Shukla said this was the first case of cow vigilantism in the country in which the accused were convicted and punished.
However, the court is yet to decide on the defence counsel’s contention that the 12th convict is a juvenile. We have opposed it on the grounds that he is over 16 years of age.
Defence lawyer DN Singh said he will file an appeal against the convictions in the Jharkhand high court.
The court has forwarded its order to the district legal services authority, so it can initiate steps to compensate the victim’s family.
Last June, a mob, allegedly of more than 100 people, lynched Alimuddin alias Asgar Ali, who was on his way back home after buying meat from a local market, on the suspicion that he was carrying beef.
| english |
// Copyright 2019 Intel Corporation. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package topologyaware
import (
"sort"
"github.com/intel/cri-resource-manager/pkg/cri/resource-manager/cache"
"github.com/intel/cri-resource-manager/pkg/cri/resource-manager/kubernetes"
system "github.com/intel/cri-resource-manager/pkg/sysfs"
)
// buildPoolsByTopology builds a hierarchical tree of pools based on HW topology.
func (p *policy) buildPoolsByTopology() error {
var n Node
socketCnt := p.sys.SocketCount()
nodeCnt := p.sys.NUMANodeCount()
if nodeCnt < 2 {
nodeCnt = 0
}
poolCnt := socketCnt + nodeCnt + map[bool]int{false: 0, true: 1}[socketCnt > 1]
p.nodes = make(map[string]Node, poolCnt)
p.pools = make([]Node, poolCnt)
// create virtual root if necessary
if socketCnt > 1 {
p.root = p.NewVirtualNode("root", nilnode)
p.nodes[p.root.Name()] = p.root
}
// create nodes for sockets
sockets := make(map[system.ID]Node, socketCnt)
for _, id := range p.sys.PackageIDs() {
if socketCnt > 1 {
n = p.NewSocketNode(id, p.root)
} else {
n = p.NewSocketNode(id, nilnode)
p.root = n
}
p.nodes[n.Name()] = n
sockets[id] = n
}
// create nodes for NUMA nodes
if nodeCnt > 0 {
for _, id := range p.sys.NodeIDs() {
n = p.NewNumaNode(id, sockets[p.sys.Node(id).PackageID()])
p.nodes[n.Name()] = n
}
}
// enumerate nodes, calculate tree depth, discover node resource capacity
p.root.DepthFirst(func(n Node) error {
p.pools[p.nodeCnt] = n
n.(*node).id = p.nodeCnt
p.nodeCnt++
if p.depth < n.(*node).depth {
p.depth = n.(*node).depth
}
n.DiscoverCPU()
n.DiscoverMemset()
return nil
})
return nil
}
// Pick a pool and allocate resource from it to the container.
func (p *policy) allocatePool(container cache.Container) (CPUGrant, error) {
var pool Node
request := newCPURequest(container)
if container.GetNamespace() == kubernetes.NamespaceSystem {
pool = p.root
} else {
affinity := p.calculatePoolAffinities(request.GetContainer())
scores, pools := p.sortPoolsByScore(request, affinity)
if log.DebugEnabled() {
log.Debug("* node fitting for %s", request)
for idx, n := range pools {
log.Debug(" - #%d: node %s, score %s, affinity: %d",
idx, n.Name(), scores[n.NodeID()], affinity[n.NodeID()])
}
}
pool = pools[0]
}
cpus := pool.FreeCPU()
grant, err := cpus.Allocate(request)
if err != nil {
return nil, policyError("failed to allocate %s from %s: %v", request, cpus, err)
}
p.allocations.CPU[container.GetCacheID()] = grant
p.saveAllocations()
return grant, nil
}
// Apply the result of allocation to the requesting container.
func (p *policy) applyGrant(grant CPUGrant) error {
log.Debug("* applying grant %s", grant)
container := grant.GetContainer()
exclusive := grant.ExclusiveCPUs()
shared := grant.SharedCPUs()
portion := grant.SharedPortion()
cpus := ""
kind := ""
if exclusive.IsEmpty() {
cpus = shared.String()
kind = "shared"
} else {
cpus = exclusive.Union(shared).String()
kind = "exclusive"
if portion > 0 {
kind += "+shared"
}
}
mems := ""
node := grant.GetNode()
if !node.IsRootNode() && opt.PinMemory {
mems = node.GetMemset().String()
}
if opt.PinCPU {
if cpus != "" {
log.Debug(" => pinning to (%s) cpuset %s", kind, cpus)
} else {
log.Debug(" => not pinning CPUs, allocated cpuset is empty...")
}
container.SetCpusetCpus(cpus)
if exclusive.IsEmpty() {
container.SetCPUShares(int64(cache.MilliCPUToShares(portion)))
} else {
// Notes:
// Hmm... I think setting CPU shares according to the normal formula
// can be dangerous when we do mixed allocations (both exclusive and
// shared CPUs assigned). If the exclusive cpuset is not isolated and
// there are other processes (unbeknown to us) running on some of the
// same exclusive CPU(s) with CPU shares not set by us, those processes
// can starve our containers with supposedly exclusive CPUs...
// There's not much we can do though... if we don't set the CPU shares
// then any process/thread in the container that might sched_setaffinity
// itself to the shared subset will not get properly weighted wrt. other
// processes sharing the same CPUs.
//
container.SetCPUShares(int64(cache.MilliCPUToShares(portion)))
}
}
if mems != "" {
log.Debug(" => pinning to memory %s", mems)
container.SetCpusetMems(mems)
} else {
log.Debug(" => not pinning memory, memory set is empty...")
}
return nil
}
// Release resources allocated by this grant.
func (p *policy) releasePool(container cache.Container) (CPUGrant, bool, error) {
log.Debug("* releasing resources allocated to %s", container.PrettyName())
grant, ok := p.allocations.CPU[container.GetCacheID()]
if !ok {
log.Debug(" => no grant found, nothing to do...")
return nil, false, nil
}
log.Debug(" => releasing grant %s...", grant)
pool := grant.GetNode()
cpus := pool.FreeCPU()
cpus.Release(grant)
delete(p.allocations.CPU, container.GetCacheID())
p.saveAllocations()
return grant, true, nil
}
// Update shared allocations effected by agrant.
func (p *policy) updateSharedAllocations(grant CPUGrant) error {
log.Debug("* updating shared allocations affected by %s", grant)
for _, other := range p.allocations.CPU {
if other.SharedPortion() == 0 {
log.Debug(" => %s not affected (no shared portion)...", other)
continue
}
if opt.PinCPU {
shared := other.GetNode().FreeCPU().SharableCPUs().String()
log.Debug(" => updating %s with shared CPUs of %s: %s...",
other, other.GetNode().Name(), shared)
other.GetContainer().SetCpusetCpus(shared)
}
}
return nil
}
// addImplicitAffinities adds our set of policy-specific implicit affinities.
func (p *policy) addImplicitAffinities() error {
return p.cache.AddImplicitAffinities(map[string]*cache.ImplicitAffinity{
PolicyName + ":AVX512-pull": {
Eligible: func(c cache.Container) bool {
_, ok := c.GetTag(cache.TagAVX512)
return ok
},
Affinity: cache.GlobalAffinity("tags/"+cache.TagAVX512, 5),
},
PolicyName + ":AVX512-push": {
Eligible: func(c cache.Container) bool {
_, ok := c.GetTag(cache.TagAVX512)
return !ok
},
Affinity: cache.GlobalAntiAffinity("tags/"+cache.TagAVX512, 5),
},
})
}
// Calculate pool affinities for the given container.
func (p *policy) calculatePoolAffinities(container cache.Container) map[int]int32 {
log.Debug("=> calculating pool affinities...")
result := make(map[int]int32, len(p.nodes))
for id, w := range p.calculateContainerAffinity(container) {
grant, ok := p.allocations.CPU[id]
if !ok {
continue
}
node := grant.GetNode()
result[node.NodeID()] += w
}
return result
}
// Caculate affinity of this container (against all other containers).
func (p *policy) calculateContainerAffinity(container cache.Container) map[string]int32 {
log.Debug("* calculating affinity for container %s...", container.PrettyName())
ca := container.GetAffinity()
result := make(map[string]int32)
for _, a := range ca {
for id, w := range p.cache.EvaluateAffinity(a) {
result[id] += w
}
}
log.Debug(" => affinity: %v", result)
return result
}
// Score pools against the request and sort them by score.
func (p *policy) sortPoolsByScore(req CPURequest, aff map[int]int32) (map[int]CPUScore, []Node) {
scores := make(map[int]CPUScore, p.nodeCnt)
p.root.DepthFirst(func(n Node) error {
scores[n.NodeID()] = n.GetScore(req)
return nil
})
sort.Slice(p.pools, func(i, j int) bool {
return p.compareScores(req, scores, aff, i, j)
})
return scores, p.pools
}
// Compare two pools by scores for allocation preference.
func (p *policy) compareScores(request CPURequest, scores map[int]CPUScore,
affinity map[int]int32, i int, j int) bool {
node1, node2 := p.pools[i], p.pools[j]
depth1, depth2 := node1.RootDistance(), node2.RootDistance()
id1, id2 := node1.NodeID(), node2.NodeID()
score1, score2 := scores[id1], scores[id2]
isolated1, shared1 := score1.IsolatedCapacity(), score1.SharedCapacity()
isolated2, shared2 := score2.IsolatedCapacity(), score2.SharedCapacity()
affinity1, affinity2 := affinity[id1], affinity[id2]
//
// Notes:
//
// Our scoring/score sorting algorithm is:
//
// 1) - insufficient isolated or shared capacity loses
// 2) - if we have affinity, the higher affinity wins
// 3) - if we have topology hints
// * better hint score wins
// * for a tie, prefer the lower node then the smaller id
// 4) - if a node is lower in the tree it wins
// 5) - for isolated allocations
// * more isolated capacity wins
// * for a tie, prefer the smaller id
// 6) - for exclusive allocations
// * more slicable (shared) capacity wins
// * for a tie, prefer the smaller id
// 7) - for shared-only allocations
// * fewer colocated containers win
// * for a tie prefer more shared capacity then the smaller id
//
// 1) a node with insufficient isolated or shared capacity loses
switch {
case isolated2 < 0 || shared2 < 0:
return true
case isolated1 < 0 || shared1 < 0:
return false
}
// 2) higher affinity wins
if affinity1 > affinity2 {
return true
}
if affinity2 > affinity1 {
return false
}
// 3) better topology hint score wins
hScores1 := score1.HintScores()
if len(hScores1) > 0 {
hScores2 := score2.HintScores()
hs1, nz1 := combineHintScores(hScores1)
hs2, nz2 := combineHintScores(hScores2)
if hs1 > hs2 {
return true
}
if hs2 > hs1 {
return false
}
if hs1 == 0 {
if nz1 > nz2 {
return true
}
if nz2 > nz1 {
return false
}
}
// for a tie, prefer lower nodes and smaller ids
if hs1 == hs2 && nz1 == nz2 && (hs1 != 0 || nz1 != 0) {
if depth1 > depth2 {
return true
}
if depth1 < depth2 {
return false
}
return id1 < id2
}
}
// 4) a lower node wins
if depth1 > depth2 {
return true
}
if depth1 < depth2 {
return false
}
// 5) more isolated capacity wins
if request.Isolate() {
if isolated1 > isolated2 {
return true
}
if isolated2 > isolated1 {
return false
}
return id1 < id2
}
// 6) more slicable shared capacity wins
if request.FullCPUs() > 0 {
if shared1 > shared2 {
return true
}
if shared2 > shared1 {
return false
}
return id1 < id2
}
// 7) fewer colocated containers win
if score1.Colocated() < score2.Colocated() {
return true
}
if score2.Colocated() < score1.Colocated() {
return false
}
// more shared capacity wins
if shared1 > shared2 {
return true
}
if shared2 > shared1 {
return false
}
// lower id wins
return id1 < id2
}
// hintScores calculates combined full and zero-filtered hint scores.
func combineHintScores(scores map[string]float64) (float64, float64) {
if len(scores) == 0 {
return 0.0, 0.0
}
combined, filtered := 1.0, 0.0
for _, score := range scores {
combined *= score
if score != 0.0 {
if filtered == 0.0 {
filtered = score
} else {
filtered *= score
}
}
}
return combined, filtered
}
| go |
<reponame>allansrc/fuchsia<filename>build/images/assembly/make_assembly_inputs.py
#!/usr/bin/env python3.8
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import json
import os
import sys
def main():
parser = argparse.ArgumentParser(
description=
'Create a flat list of files included in the images. This is used to inform infrastructure what files to upload'
)
parser.add_argument(
'--product-config', type=argparse.FileType('r'), required=True)
parser.add_argument(
'--board-config', type=argparse.FileType('r'), required=True)
parser.add_argument('--output', type=argparse.FileType('w'), required=True)
parser.add_argument('--depfile', type=argparse.FileType('w'), required=True)
args = parser.parse_args()
# The files to put in the output with source mapped to destination.
file_mapping = {}
# The files that are read in this script, and the build system needs to be
# aware of. This will be written to a depfile.
depfiles = []
# Add a file's path to one of the lists, relative to CWD.
# The destination is the path when placed inside "built/artifacts".
# If the path is prefixed with ../../, the prefix is removed.
def add_file(file_path):
# Absolute paths are not portable out-of-tree, therefore if a file is
# using an absolute path we throw an error.
if os.path.isabs(file_path):
raise Exception("Absolute paths are not allowed", file_path)
source = os.path.relpath(file_path, os.getcwd())
prefix = "../../"
if source.startswith(prefix):
destination = source[len(prefix):]
else:
destination = os.path.join("built/artifacts", source)
file_mapping[source] = destination
def add_depfile(file_path):
depfiles.append(os.path.relpath(file_path, os.getcwd()))
# Add all the blobs in a package to the list.
def add_package(package_manifest_path):
add_file(package_manifest_path)
add_depfile(package_manifest_path)
with open(package_manifest_path, 'r') as f:
package_manifest = json.load(f)
if "blobs" in package_manifest:
for blob in package_manifest["blobs"]:
add_file(blob["source_path"])
# Add the product config.
add_file(args.product_config.name)
product_config = json.load(args.product_config)
if "base" in product_config:
for package_path in product_config["base"]:
add_package(package_path)
if "cache" in product_config:
for package_path in product_config["cache"]:
add_package(package_path)
if "system" in product_config:
for package_path in product_config["system"]:
add_package(package_path)
if "kernel" in product_config:
add_file(product_config["kernel"]["path"])
if "bootfs_files" in product_config:
for bootfs_file in product_config["bootfs_files"]:
add_file(bootfs_file["source"])
# Add the board config.
add_file(args.board_config.name)
board_config = json.load(args.board_config)
if "vbmeta" in board_config:
add_file(board_config["vbmeta"]["key"])
add_file(board_config["vbmeta"]["key_metadata"])
if "additional_descriptor_files" in board_config["vbmeta"]:
for descriptor in board_config["vbmeta"][
"additional_descriptor_files"]:
add_file(descriptor)
if "zbi" in board_config:
if "signing_script" in board_config["zbi"]:
add_file(board_config["zbi"]["signing_script"]["tool"])
# Convert the map into a list of maps.
files = []
for src, dest in file_mapping.items():
files.append({
"source": src,
"destination": dest,
})
# Write the list.
json.dump(files, args.output, indent=2)
# Write the depfile.
args.depfile.write('build.ninja: ' + ' '.join(depfiles))
if __name__ == '__main__':
sys.exit(main())
| python |
import { CalendarToolbarElementSetting } from "../interfaces/CalendarToolbarSettings";
import { CalendarToolbarButtonType } from "../interfaces/CalendarToolbarButtonType";
import { ToolbarElement } from "./ToolbarElement";
import { TodayButton } from "./TodayButton";
import { ChangeDateButton } from "./ChangeDateButton";
import { ViewButton } from "./ViewButton";
import { ToolbarTitle } from "./ToolbarTitle";
import { CalendarViewType } from "../interfaces/CalendarViewType";
import { CalendarComponent } from "../components/CalendarComponent";
import { LocalizationService } from "../interfaces/LocalizationService";
export class ToolbarElementFactory {
static createToolbarElement(element: CalendarToolbarElementSetting, calendar: CalendarComponent, localizationService: LocalizationService): ToolbarElement {
if (typeof (element) === "number") {
if (element >= CalendarToolbarButtonType.Previous) {
if (element === CalendarToolbarButtonType.Today) {
return new TodayButton(element as CalendarToolbarButtonType, calendar, localizationService);
} else
return new ChangeDateButton(element as CalendarToolbarButtonType, calendar, localizationService);
} else {
return new ViewButton(element as CalendarViewType, calendar, localizationService);
}
}
return new ToolbarTitle(element as string, calendar, localizationService);
}
} | typescript |
As part of SKPop's GRAMMYs roundup, here is a look at Best Global Music Album.
While the Best Global Music Album originated so that international performers exhibiting "non-European, indigenous traditions" could be recognized, the category now represents global albums outside the GRAMMY category umbrella that make a splash with the Western diaspora.
The category has seen a diverse array of competitors, from the daughter of an Indian Classical maestro (Anoushka Shankar) to a South African gospel group (Soweto Gospel Choir).
It is the perfect category for a gateway to eclectic music.
Rocky Dawuni–Voice of Bunbon (Vol. 1)
Rocky Dawuni hails from Bunbon, a tiny town in arid Ghana. His twinkling, smooth voice spreads warmth through the listener while touching an emotional core. The album feels like a peaceful bonfire night.
In just eight tracks, Rocky touches upon faith (Difference), love (My Baby), empowerment (Beautiful People), current events (Ghost Town), hope (Born To Win) and the little joys of life (Gonna Take It Easy).
Daniel Ho is an exponent of Hawaiian music, and through a mixture of piano, ukelele, slack key guitar and a variety of local instruments, he has become universally adored. His music is only sparsely available online, and his live shows are where the magic truly happens.
In this live album, Ho switches his on-stage talk between anecdotal explanations of his songs and technical explanations of the rhythms, harmony and forms at work. This mixture of an easygoing vibe and positively beaming music is a winning formula.
Beninese-American Grammy-winning polyglot Angélique Kidjo, who holds the record for most wins in this category, released Mother Nature in 2021, with songs about her home continent and the importance of preservation.
Collaborating with artists like Sampa the Great, Mr Eazi, and Burna Boy (who took the GRAMMY crown in this category last year), Africa's premier diva builds a profound pan-African musical vision that celebrates the power of community.
Femi is the eldest son of late Afrobeat pioneer Fela Kuti, and his music resonates with the influence of the great musician. In 1986, Femi started his band, Positive Force, to establish himself as an artist independent of his father's legacy.
But on Legacy+, Fela Kuti's spirit seems to lead Femi and his own eldest son Made, as the 58-year-old passes his father's legacy to his son via the trademark mixture of afrobeats, Yoruba chants, jazz and funk, which immortalized Fela.
Made In Lagos: Deluxe Edition is an extended series of classic afropop and R&B bangers from Nigerian star Wizkid, who has risen to fame since his collaboration with Drake on One Dance. Right from Reckless to the remix of Essence, Wizkid serves up some seriously infectious melodies.
Essence, a sensual song featuring fellow Nigerian singer Tems, is the first song from the country to chart on the Billboard Hot 100, opening the door for West African pop in the global arena.
Who do you think will take the Best Global Music Album GRAMMY home? | english |
New Delhi: The death toll in the country due to novel coronavirus rose to 124 and the number of cases climbed to 4,789 on Tuesday, registering an increase of 508 cases in the last 24 hours, according to the Union Health Ministry.
While the number of active COVID-19 cases stood at 4,312, as many as 352 people were cured and discharged and one has migrated to another country, it stated. The total number of cases include 66 foreign nationals.
According to the ministry’s data updated at 6 PM, 13 deaths have been reported in the last 24 hours.
Four deaths were reported from Madhya Pradesh, three from Maharashtra, three from Rajasthan and one each from Gujarat, Odisha and Punjab.
Maharashtra has reported the most coronavirus deaths so far at 48, followed by Gujarat and Madhya Pradesh at 13 each, Telangana, Punjab and Delhi seven each and Tamil Nadu with five fatalities.
Karnataka has registered four deaths so far, while West Bengal, Uttar Pradesh, Andhra Pradesh and Rajasthan have recorded three fatalities each. Two deaths each have been reported from Jammu and Kashmir and Kerala. Bihar, Himachal Pradesh and Haryana have reported one fatality each, according to the health ministry’s data.
However, a PTI tally based on the figures reported by the states directly showed at least 143 deaths across the country, while the number of confirmed cases reached 4,998. Of them, 414 have been cured and discharged.
There has been a lag in the Union Health Ministry figures compared to the numbers announced by different states, which officials attribute to procedural delays in assigning the cases to the states.
The highest number of confirmed cases are from Maharashtra at 868, followed by Tamil Nadu at 621 and Delhi with 576 cases. Telengana has reported 364 cases followed by Kerala at 327 COVID-19 cases.
Uttar Pradesh has 305 cases, Rajasthan 288 cases and Andhra Pradesh reported 266 coronavirus cases.
Novel coronavirus cases have risen to 229 in Madhya Pradesh, 175 in Karnataka and 165 in Gujarat.
Jammu and Kashmir has 116 cases, West Bengal and Punjab have 91 positive patients each while Haryana has 90 cases and Odisha reported 42 coronavirus cases.
Thirty-two people were infected with the virus in Bihar while Uttarakhand has 31 patients and Assam 26. Chandigarh has 18 cases, Ladakh 14 and Himachal Pradesh 13 cases.
Ten cases each have been reported from the Andaman and Nicobar Islands and Chhattisgarh each. Goa has reported seven COVID-19 infections, followed by Puducherry with five cases.
Jharkhand has reported four cases and Manipur two. Tripura, Mizoram and Arunachal Pradesh have reported one case of the infection each.
“State-wise distribution is subject to further verification and reconciliation,” the ministry said on its website. | english |
import React from 'react';
import { connect } from 'react-redux';
import { View, Text, SectionList, TouchableOpacity } from 'react-native';
import moment from 'moment';
import Ionicons from 'react-native-vector-icons/Ionicons';
import PropTypes from 'prop-types';
import styles from './styles';
const Faves = ({ sessionData, navigation }) => (
<View style={styles.page}>
<SectionList
renderItem={({ item }, index) => (
<TouchableOpacity
key={index}
style={styles.item}
onPress={() =>
navigation.navigate('Session', {
title: item.title,
id: item.id,
description: item.description,
time: item.startTime,
location: item.location,
speaker: item.speaker
})
}
>
<Text style={styles.listTitle}>{item.title}</Text>
<View style={styles.listView}>
<Text style={styles.listLocation}>{item.location}</Text>
<Ionicons name="md-heart" size={25} color="red" />
</View>
</TouchableOpacity>
)}
renderSectionHeader={({ section: { title } }) => (
<Text style={styles.time}>{moment(title).format('h:mm a')}</Text>
)}
sections={sessionData}
keyExtractor={(item, index) => `${index}`}
/>
</View>
);
Faves.propTypes = {
sessionData: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.object, PropTypes.string])).isRequired,
navigation: PropTypes.objectOf(PropTypes.oneOfType([PropTypes.object, PropTypes.func])).isRequired
};
export default connect(state => ({
faves: state.faveData.faves
}))(Faves);
| javascript |
1. Lack of effort to understand each and every word while listening. Especially in L2 acquisition they are unable transfer their L1 skill easily to a second language.
2. Failure or laziness to build up their vocabulary gradually and this greatly reflects in their listening and keeps them low spirited in acquiring the language skills.
3. Listeners problem with different pronunciation, accents as they stick to one particular articulation.
4. Listener’s concentration power or listening stamina greatly influences their listening skills, which is not so in the case of acquiring the other language skills (reading, speaking and writing) even when they are carried for a longer period of time.
5. Distraction by the physical setting or the environment in which listening is to be carried out. This becomes an added challenge for an average learner and a main confront even for good listeners.
| english |
use crate::core::{InternalVM, VMInstruction};
use crate::core::{RuntimeError, VirtualMachine};
use algebra::Field;
use r1cs_core::ConstraintSystem;
use zinc_bytecode::instructions::StoreSequenceGlobal;
impl<F, CS> VMInstruction<F, CS> for StoreSequenceGlobal
where
F: Field,
CS: ConstraintSystem<F>,
{
fn execute(&self, vm: &mut VirtualMachine<F, CS>) -> Result<(), RuntimeError> {
for i in 0..self.len {
let value = vm.pop()?;
vm.store_global(self.address + i, value)?;
}
Ok(())
}
}
| rust |
With the Indian economy registering a GDP growth of 8. 2 per cent in the first quarter of the current fiscal, Union Finance Minister Arun Jaitley on Friday said that it represented the potential of a 'New India' in an environment of global turmoil.
"India's GDP for the first quarter this year growing at 8. 2 per cent in an otherwise environment of global turmoil represents the potential of New India," Mr Jaitley said in a tweet.
"Reforms and fiscal prudence are serving us well. India is witnessing an expansion of the neo middle class," he added.
As per the data released by the Central Statistics Office (CSO), the GDP at 2011-12 prices in the first quarter of 2018-19 registered a growth of 8. 2 per cent, up from 7. 7 per cent in Q4 of 2017-18 and 5. 6 per cent from year-ago corresponding quarter. | english |
<reponame>felipetodev/covid-vacuna-chile<gh_stars>1-10
[{"Region":"Total","primerasDosisAdministradas":6387953,"fechaUltRegistro":"2021-03-28","poblacionOver18":15200840,"segundasDosisAdministradas":3258782,"totalDosisAdministradas":9646735,"porcentajePoblacionAdministradas":0.6346185473960649,"porcentajePoblacionCompletas":0.21438170522155356},{"Region":"Aysén","primerasDosisAdministradas":36456,"fechaUltRegistro":"2021-03-28","poblacionOver18":80150,"segundasDosisAdministradas":22804,"totalDosisAdministradas":59260,"porcentajePoblacionAdministradas":0.7393636930754834,"porcentajePoblacionCompletas":0.2845165315034311},{"Region":"Antofagasta","primerasDosisAdministradas":187876,"fechaUltRegistro":"2021-03-28","poblacionOver18":529037,"segundasDosisAdministradas":83614,"totalDosisAdministradas":271490,"porcentajePoblacionAdministradas":0.51317771724851,"porcentajePoblacionCompletas":0.1580494369959001},{"Region":"Arica y Parinacota","primerasDosisAdministradas":69955,"fechaUltRegistro":"2021-03-28","poblacionOver18":192243,"segundasDosisAdministradas":42828,"totalDosisAdministradas":112783,"porcentajePoblacionAdministradas":0.5866689554366089,"porcentajePoblacionCompletas":0.22278054337479128},{"Region":"Atacama","primerasDosisAdministradas":93059,"fechaUltRegistro":"2021-03-28","poblacionOver18":234009,"segundasDosisAdministradas":51118,"totalDosisAdministradas":144177,"porcentajePoblacionAdministradas":0.6161173288206864,"porcentajePoblacionCompletas":0.21844458973800154},{"Region":"Coquimbo","primerasDosisAdministradas":259968,"fechaUltRegistro":"2021-03-28","poblacionOver18":643655,"segundasDosisAdministradas":132272,"totalDosisAdministradas":392240,"porcentajePoblacionAdministradas":0.6093947844730484,"porcentajePoblacionCompletas":0.20550139438052994},{"Region":"Araucanía","primerasDosisAdministradas":355390,"fechaUltRegistro":"2021-03-28","poblacionOver18":777443,"segundasDosisAdministradas":187684,"totalDosisAdministradas":543074,"porcentajePoblacionAdministradas":0.6985386710022471,"porcentajePoblacionCompletas":0.24141191058379843},{"Region":"Los Lagos","primerasDosisAdministradas":304057,"fechaUltRegistro":"2021-03-28","poblacionOver18":688814,"segundasDosisAdministradas":166359,"totalDosisAdministradas":470416,"porcentajePoblacionAdministradas":0.6829361772553985,"porcentajePoblacionCompletas":0.2415151259991812},{"Region":"Los Ríos","primerasDosisAdministradas":147165,"fechaUltRegistro":"2021-03-28","poblacionOver18":315805,"segundasDosisAdministradas":77729,"totalDosisAdministradas":224894,"porcentajePoblacionAdministradas":0.7121293203084181,"porcentajePoblacionCompletas":0.24612973195484555},{"Region":"Magallanes","primerasDosisAdministradas":75403,"fechaUltRegistro":"2021-03-28","poblacionOver18":141033,"segundasDosisAdministradas":42648,"totalDosisAdministradas":118051,"porcentajePoblacionAdministradas":0.8370452305488786,"porcentajePoblacionCompletas":0.3023973112675757},{"Region":"Tarapacá","primerasDosisAdministradas":99783,"fechaUltRegistro":"2021-03-28","poblacionOver18":286597,"segundasDosisAdministradas":54424,"totalDosisAdministradas":154207,"porcentajePoblacionAdministradas":0.5380621569660534,"porcentajePoblacionCompletas":0.18989731225379192},{"Region":"Valparaíso","primerasDosisAdministradas":730412,"fechaUltRegistro":"2021-03-28","poblacionOver18":1545222,"segundasDosisAdministradas":382911,"totalDosisAdministradas":1113323,"porcentajePoblacionAdministradas":0.7204938837267396,"porcentajePoblacionCompletas":0.2478032282739956},{"Region":"Ñuble","primerasDosisAdministradas":204762,"fechaUltRegistro":"2021-03-28","poblacionOver18":399678,"segundasDosisAdministradas":114812,"totalDosisAdministradas":319574,"porcentajePoblacionAdministradas":0.7995786608219617,"porcentajePoblacionCompletas":0.2872612453024685},{"Region":"Biobío","primerasDosisAdministradas":597508,"fechaUltRegistro":"2021-03-28","poblacionOver18":1290996,"segundasDosisAdministradas":319925,"totalDosisAdministradas":917433,"porcentajePoblacionAdministradas":0.7106396921446697,"porcentajePoblacionCompletas":0.24781254163452093},{"Region":"O’Higgins","primerasDosisAdministradas":347026,"fechaUltRegistro":"2021-03-28","poblacionOver18":768067,"segundasDosisAdministradas":174599,"totalDosisAdministradas":521625,"porcentajePoblacionAdministradas":0.679139970861917,"porcentajePoblacionCompletas":0.2273226163863309},{"Region":"Maule","primerasDosisAdministradas":394679,"fechaUltRegistro":"2021-03-28","poblacionOver18":878051,"segundasDosisAdministradas":207362,"totalDosisAdministradas":602041,"porcentajePoblacionAdministradas":0.6856560723693726,"porcentajePoblacionCompletas":0.23616168081352906},{"Region":"Metropolitana","primerasDosisAdministradas":2484454,"fechaUltRegistro":"2021-03-28","poblacionOver18":6430040,"segundasDosisAdministradas":1197693,"totalDosisAdministradas":3682147,"porcentajePoblacionAdministradas":0.5726476040584506,"porcentajePoblacionCompletas":0.18626524873873257}]
| json |
<gh_stars>10-100
import torch.nn as nn
import torch.utils.model_zoo as model_zoo
import torch
import numpy as np
from torchvision import models
from torch.nn import functional as F
__all__ = ['vgg19']
model_urls = {
'vgg19': 'https://download.pytorch.org/models/vgg19-dcbb9e9d.pth',
}
class VGG(nn.Module):
def __init__(self, features, down=8, o_cn=1, final='abs'):
super(VGG, self).__init__()
self.down = down
self.final = final
self.reg_layer = nn.Sequential(
nn.Conv2d(512, 256, kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.Conv2d(256, 128, kernel_size=3, padding=1),
nn.ReLU(inplace=True),
nn.Conv2d(128, o_cn, 1)
)
self._initialize_weights()
self.features = features
def forward(self, x):
x = self.features(x)
if self.down < 16:
x = F.interpolate(x, scale_factor=2)
x = self.reg_layer(x)
if self.final == 'abs':
x = torch.abs(x)
elif self.final == 'relu':
x = torch.relu(x)
return x
def _initialize_weights(self):
for m in self.modules():
if isinstance(m, nn.Conv2d):
nn.init.normal_(m.weight, std=0.01)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.BatchNorm2d):
nn.init.constant_(m.weight, 1)
nn.init.constant_(m.bias, 0)
elif isinstance(m, nn.ConvTranspose2d):
nn.init.normal_(m.weight, std=0.01)
if m.bias is not None:
nn.init.constant_(m.bias, 0)
def make_layers(cfg, in_channels=3, batch_norm=False, dilation=False):
if dilation:
d_rate = 2
else:
d_rate = 1
layers = []
# in_channels = 3
for v in cfg:
if v == 'M':
layers += [nn.MaxPool2d(kernel_size=2, stride=2)]
else:
# conv2d = nn.Conv2d(in_channels, v, kernel_size=3, padding=1)
conv2d = nn.Conv2d(in_channels, v, kernel_size=3, padding=d_rate,dilation = d_rate)
if batch_norm:
layers += [conv2d, nn.BatchNorm2d(v), nn.ReLU(inplace=True)]
else:
layers += [conv2d, nn.ReLU(inplace=True)]
in_channels = v
return nn.Sequential(*layers)
cfg = {
'C': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512],
'D': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, 'M', 512, 512, 512],
'E': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 256, 'M', 512, 512, 512, 512, 'M', 512, 512, 512, 512],
'F': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 256, 'M', 512, 512, 512, 512]
}
def vgg19(down=8, bn=False, o_cn=1, final='abs'):
"""VGG 19-layer model (configuration "E")
model pre-trained on ImageNet
"""
model = VGG(make_layers(cfg['E'], batch_norm=False), down=down, o_cn=o_cn, final=final)
model.load_state_dict(model_zoo.load_url(model_urls['vgg19']), strict=False)
return model
| python |
<filename>src/ports/SkFontMgr_mac_ct.cpp
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkTypes.h"
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#ifdef SK_BUILD_FOR_MAC
#import <ApplicationServices/ApplicationServices.h>
#endif
#ifdef SK_BUILD_FOR_IOS
#include <CoreText/CoreText.h>
#include <CoreText/CTFontManager.h>
#include <CoreGraphics/CoreGraphics.h>
#include <CoreFoundation/CoreFoundation.h>
#include <dlfcn.h>
#endif
#include "include/core/SkData.h"
#include "include/core/SkFontArguments.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/core/SkTypeface.h"
#include "include/ports/SkFontMgr_mac_ct.h"
#include "include/private/SkFixed.h"
#include "include/private/SkOnce.h"
#include "include/private/SkTPin.h"
#include "include/private/SkTemplates.h"
#include "include/private/SkTo.h"
#include "src/core/SkFontDescriptor.h"
#include "src/ports/SkTypeface_mac_ct.h"
#include "src/utils/SkUTF.h"
#include <string.h>
#include <memory>
#if (defined(SK_BUILD_FOR_IOS) && defined(__IPHONE_14_0) && \
__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_14_0) || \
(defined(SK_BUILD_FOR_MAC) && defined(__MAC_11_0) && \
__MAC_OS_VERSION_MIN_REQUIRED >= __MAC_11_0)
static uint32_t SkGetCoreTextVersion() {
// If compiling for iOS 14.0+ or macOS 11.0+, the CoreText version number
// must be derived from the OS version number.
static const uint32_t kCoreTextVersionNEWER = 0x000D0000;
return kCoreTextVersionNEWER;
}
#else
static uint32_t SkGetCoreTextVersion() {
// Check for CoreText availability before calling CTGetCoreTextVersion().
static const bool kCoreTextIsAvailable = (&CTGetCoreTextVersion != nullptr);
if (kCoreTextIsAvailable) {
return CTGetCoreTextVersion();
}
// Default to a value that's smaller than any known CoreText version.
static const uint32_t kCoreTextVersionUNKNOWN = 0;
return kCoreTextVersionUNKNOWN;
}
#endif
static SkUniqueCFRef<CFStringRef> make_CFString(const char s[]) {
return SkUniqueCFRef<CFStringRef>(CFStringCreateWithCString(nullptr, s, kCFStringEncodingUTF8));
}
/** Creates a typeface from a descriptor, searching the cache. */
static sk_sp<SkTypeface> create_from_desc(CTFontDescriptorRef desc) {
SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr));
if (!ctFont) {
return nullptr;
}
return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr);
}
static SkUniqueCFRef<CTFontDescriptorRef> create_descriptor(const char familyName[],
const SkFontStyle& style) {
SkUniqueCFRef<CFMutableDictionaryRef> cfAttributes(
CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks));
SkUniqueCFRef<CFMutableDictionaryRef> cfTraits(
CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks));
if (!cfAttributes || !cfTraits) {
return nullptr;
}
// TODO(crbug.com/1018581) Some CoreText versions have errant behavior when
// certain traits set. Temporary workaround to omit specifying trait for those
// versions.
// Long term solution will involve serializing typefaces instead of relying upon
// this to match between processes.
//
// Compare CoreText.h in an up to date SDK for where these values come from.
static const uint32_t kSkiaLocalCTVersionNumber10_14 = 0x000B0000;
static const uint32_t kSkiaLocalCTVersionNumber10_15 = 0x000C0000;
// CTFontTraits (symbolic)
// macOS 14 and iOS 12 seem to behave badly when kCTFontSymbolicTrait is set.
// macOS 15 yields LastResort font instead of a good default font when
// kCTFontSymbolicTrait is set.
if (SkGetCoreTextVersion() < kSkiaLocalCTVersionNumber10_14) {
CTFontSymbolicTraits ctFontTraits = 0;
if (style.weight() >= SkFontStyle::kBold_Weight) {
ctFontTraits |= kCTFontBoldTrait;
}
if (style.slant() != SkFontStyle::kUpright_Slant) {
ctFontTraits |= kCTFontItalicTrait;
}
SkUniqueCFRef<CFNumberRef> cfFontTraits(
CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &ctFontTraits));
if (cfFontTraits) {
CFDictionaryAddValue(cfTraits.get(), kCTFontSymbolicTrait, cfFontTraits.get());
}
}
// CTFontTraits (weight)
CGFloat ctWeight = SkCTFontCTWeightForCSSWeight(style.weight());
SkUniqueCFRef<CFNumberRef> cfFontWeight(
CFNumberCreate(kCFAllocatorDefault, kCFNumberCGFloatType, &ctWeight));
if (cfFontWeight) {
CFDictionaryAddValue(cfTraits.get(), kCTFontWeightTrait, cfFontWeight.get());
}
// CTFontTraits (width)
CGFloat ctWidth = SkCTFontCTWidthForCSSWidth(style.width());
SkUniqueCFRef<CFNumberRef> cfFontWidth(
CFNumberCreate(kCFAllocatorDefault, kCFNumberCGFloatType, &ctWidth));
if (cfFontWidth) {
CFDictionaryAddValue(cfTraits.get(), kCTFontWidthTrait, cfFontWidth.get());
}
// CTFontTraits (slant)
// macOS 15 behaves badly when kCTFontSlantTrait is set.
if (SkGetCoreTextVersion() != kSkiaLocalCTVersionNumber10_15) {
CGFloat ctSlant = style.slant() == SkFontStyle::kUpright_Slant ? 0 : 1;
SkUniqueCFRef<CFNumberRef> cfFontSlant(
CFNumberCreate(kCFAllocatorDefault, kCFNumberCGFloatType, &ctSlant));
if (cfFontSlant) {
CFDictionaryAddValue(cfTraits.get(), kCTFontSlantTrait, cfFontSlant.get());
}
}
// CTFontTraits
CFDictionaryAddValue(cfAttributes.get(), kCTFontTraitsAttribute, cfTraits.get());
// CTFontFamilyName
if (familyName) {
SkUniqueCFRef<CFStringRef> cfFontName = make_CFString(familyName);
if (cfFontName) {
CFDictionaryAddValue(cfAttributes.get(), kCTFontFamilyNameAttribute, cfFontName.get());
}
}
return SkUniqueCFRef<CTFontDescriptorRef>(
CTFontDescriptorCreateWithAttributes(cfAttributes.get()));
}
// Same as the above function except style is included so we can
// compare whether the created font conforms to the style. If not, we need
// to recreate the font with symbolic traits. This is needed due to MacOS 10.11
// font creation problem https://bugs.chromium.org/p/skia/issues/detail?id=8447.
static sk_sp<SkTypeface> create_from_desc_and_style(CTFontDescriptorRef desc,
const SkFontStyle& style) {
SkUniqueCFRef<CTFontRef> ctFont(CTFontCreateWithFontDescriptor(desc, 0, nullptr));
if (!ctFont) {
return nullptr;
}
const CTFontSymbolicTraits traits = CTFontGetSymbolicTraits(ctFont.get());
CTFontSymbolicTraits expected_traits = traits;
if (style.slant() != SkFontStyle::kUpright_Slant) {
expected_traits |= kCTFontItalicTrait;
}
if (style.weight() >= SkFontStyle::kBold_Weight) {
expected_traits |= kCTFontBoldTrait;
}
if (expected_traits != traits) {
SkUniqueCFRef<CTFontRef> ctNewFont(CTFontCreateCopyWithSymbolicTraits(
ctFont.get(), 0, nullptr, expected_traits, expected_traits));
if (ctNewFont) {
ctFont = std::move(ctNewFont);
}
}
return SkTypeface_Mac::Make(std::move(ctFont), OpszVariation(), nullptr);
}
/** Creates a typeface from a name, searching the cache. */
static sk_sp<SkTypeface> create_from_name(const char familyName[], const SkFontStyle& style) {
SkUniqueCFRef<CTFontDescriptorRef> desc = create_descriptor(familyName, style);
if (!desc) {
return nullptr;
}
return create_from_desc_and_style(desc.get(), style);
}
static const char* map_css_names(const char* name) {
static const struct {
const char* fFrom; // name the caller specified
const char* fTo; // "canonical" name we map to
} gPairs[] = {
{ "sans-serif", "Helvetica" },
{ "serif", "Times" },
{ "monospace", "Courier" }
};
for (size_t i = 0; i < SK_ARRAY_COUNT(gPairs); i++) {
if (strcmp(name, gPairs[i].fFrom) == 0) {
return gPairs[i].fTo;
}
}
return name; // no change
}
namespace {
static sk_sp<SkData> skdata_from_skstreamasset(std::unique_ptr<SkStreamAsset> stream) {
size_t size = stream->getLength();
if (const void* base = stream->getMemoryBase()) {
return SkData::MakeWithProc(base, size,
[](const void*, void* ctx) -> void {
delete (SkStreamAsset*)ctx;
}, stream.release());
}
return SkData::MakeFromStream(stream.get(), size);
}
static SkUniqueCFRef<CFDataRef> cfdata_from_skdata(sk_sp<SkData> data) {
void const * const addr = data->data();
size_t const size = data->size();
CFAllocatorContext ctx = {
0, // CFIndex version
data.release(), // void* info
nullptr, // const void *(*retain)(const void *info);
nullptr, // void (*release)(const void *info);
nullptr, // CFStringRef (*copyDescription)(const void *info);
nullptr, // void * (*allocate)(CFIndex size, CFOptionFlags hint, void *info);
nullptr, // void*(*reallocate)(void* ptr,CFIndex newsize,CFOptionFlags hint,void* info);
[](void*,void* info) -> void { // void (*deallocate)(void *ptr, void *info);
SkASSERT(info);
((SkData*)info)->unref();
},
nullptr, // CFIndex (*preferredSize)(CFIndex size, CFOptionFlags hint, void *info);
};
SkUniqueCFRef<CFAllocatorRef> alloc(CFAllocatorCreate(kCFAllocatorDefault, &ctx));
return SkUniqueCFRef<CFDataRef>(CFDataCreateWithBytesNoCopy(
kCFAllocatorDefault, (const UInt8 *)addr, size, alloc.get()));
}
static SkUniqueCFRef<CTFontRef> ctfont_from_skdata(sk_sp<SkData> data, int ttcIndex) {
// TODO: Use CTFontManagerCreateFontDescriptorsFromData when available.
if (ttcIndex != 0) {
return nullptr;
}
SkUniqueCFRef<CFDataRef> cfData(cfdata_from_skdata(std::move(data)));
SkUniqueCFRef<CTFontDescriptorRef> desc(
CTFontManagerCreateFontDescriptorFromData(cfData.get()));
if (!desc) {
return nullptr;
}
return SkUniqueCFRef<CTFontRef>(CTFontCreateWithFontDescriptor(desc.get(), 0, nullptr));
}
static bool find_desc_str(CTFontDescriptorRef desc, CFStringRef name, SkString* value) {
SkUniqueCFRef<CFStringRef> ref((CFStringRef)CTFontDescriptorCopyAttribute(desc, name));
if (!ref) {
return false;
}
SkStringFromCFString(ref.get(), value);
return true;
}
static inline int sqr(int value) {
SkASSERT(SkAbs32(value) < 0x7FFF); // check for overflow
return value * value;
}
// We normalize each axis (weight, width, italic) to be base-900
static int compute_metric(const SkFontStyle& a, const SkFontStyle& b) {
return sqr(a.weight() - b.weight()) +
sqr((a.width() - b.width()) * 100) +
sqr((a.slant() != b.slant()) * 900);
}
class SkFontStyleSet_Mac : public SkFontStyleSet {
public:
SkFontStyleSet_Mac(CTFontDescriptorRef desc)
: fArray(CTFontDescriptorCreateMatchingFontDescriptors(desc, nullptr))
, fCount(0)
{
if (!fArray) {
fArray.reset(CFArrayCreate(nullptr, nullptr, 0, nullptr));
}
fCount = SkToInt(CFArrayGetCount(fArray.get()));
}
int count() override {
return fCount;
}
void getStyle(int index, SkFontStyle* style, SkString* name) override {
SkASSERT((unsigned)index < (unsigned)fCount);
CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index);
if (style) {
*style = SkCTFontDescriptorGetSkFontStyle(desc, false);
}
if (name) {
if (!find_desc_str(desc, kCTFontStyleNameAttribute, name)) {
name->reset();
}
}
}
SkTypeface* createTypeface(int index) override {
SkASSERT((unsigned)index < (unsigned)CFArrayGetCount(fArray.get()));
CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), index);
return create_from_desc(desc).release();
}
SkTypeface* matchStyle(const SkFontStyle& pattern) override {
if (0 == fCount) {
return nullptr;
}
return create_from_desc(findMatchingDesc(pattern)).release();
}
private:
SkUniqueCFRef<CFArrayRef> fArray;
int fCount;
CTFontDescriptorRef findMatchingDesc(const SkFontStyle& pattern) const {
int bestMetric = SK_MaxS32;
CTFontDescriptorRef bestDesc = nullptr;
for (int i = 0; i < fCount; ++i) {
CTFontDescriptorRef desc = (CTFontDescriptorRef)CFArrayGetValueAtIndex(fArray.get(), i);
int metric = compute_metric(pattern, SkCTFontDescriptorGetSkFontStyle(desc, false));
if (0 == metric) {
return desc;
}
if (metric < bestMetric) {
bestMetric = metric;
bestDesc = desc;
}
}
SkASSERT(bestDesc);
return bestDesc;
}
};
SkUniqueCFRef<CFArrayRef> SkCopyAvailableFontFamilyNames(CTFontCollectionRef collection) {
// Create a CFArray of all available font descriptors.
SkUniqueCFRef<CFArrayRef> descriptors(
CTFontCollectionCreateMatchingFontDescriptors(collection));
// Copy the font family names of the font descriptors into a CFSet.
auto addDescriptorFamilyNameToSet = [](const void* value, void* context) -> void {
CTFontDescriptorRef descriptor = static_cast<CTFontDescriptorRef>(value);
CFMutableSetRef familyNameSet = static_cast<CFMutableSetRef>(context);
SkUniqueCFRef<CFTypeRef> familyName(
CTFontDescriptorCopyAttribute(descriptor, kCTFontFamilyNameAttribute));
if (familyName) {
CFSetAddValue(familyNameSet, familyName.get());
}
};
SkUniqueCFRef<CFMutableSetRef> familyNameSet(
CFSetCreateMutable(kCFAllocatorDefault, 0, &kCFTypeSetCallBacks));
CFArrayApplyFunction(descriptors.get(), CFRangeMake(0, CFArrayGetCount(descriptors.get())),
addDescriptorFamilyNameToSet, familyNameSet.get());
// Get the set of family names into an array; this does not retain.
CFIndex count = CFSetGetCount(familyNameSet.get());
std::unique_ptr<const void*[]> familyNames(new const void*[count]);
CFSetGetValues(familyNameSet.get(), familyNames.get());
// Sort the array of family names (to match CTFontManagerCopyAvailableFontFamilyNames).
std::sort(familyNames.get(), familyNames.get() + count, [](const void* a, const void* b){
return CFStringCompare((CFStringRef)a, (CFStringRef)b, 0) == kCFCompareLessThan;
});
// Copy family names into a CFArray; this does retain.
return SkUniqueCFRef<CFArrayRef>(
CFArrayCreate(kCFAllocatorDefault, familyNames.get(), count, &kCFTypeArrayCallBacks));
}
/** Use CTFontManagerCopyAvailableFontFamilyNames if available, simulate if not. */
SkUniqueCFRef<CFArrayRef> SkCTFontManagerCopyAvailableFontFamilyNames() {
#ifdef SK_BUILD_FOR_IOS
using CTFontManagerCopyAvailableFontFamilyNamesProc = CFArrayRef (*)(void);
CTFontManagerCopyAvailableFontFamilyNamesProc ctFontManagerCopyAvailableFontFamilyNames;
*(void**)(&ctFontManagerCopyAvailableFontFamilyNames) =
dlsym(RTLD_DEFAULT, "CTFontManagerCopyAvailableFontFamilyNames");
if (ctFontManagerCopyAvailableFontFamilyNames) {
return SkUniqueCFRef<CFArrayRef>(ctFontManagerCopyAvailableFontFamilyNames());
}
SkUniqueCFRef<CTFontCollectionRef> collection(
CTFontCollectionCreateFromAvailableFonts(nullptr));
return SkUniqueCFRef<CFArrayRef>(SkCopyAvailableFontFamilyNames(collection.get()));
#else
return SkUniqueCFRef<CFArrayRef>(CTFontManagerCopyAvailableFontFamilyNames());
#endif
}
} // namespace
class SkFontMgr_Mac : public SkFontMgr {
SkUniqueCFRef<CFArrayRef> fNames;
int fCount;
CFStringRef getFamilyNameAt(int index) const {
SkASSERT((unsigned)index < (unsigned)fCount);
return (CFStringRef)CFArrayGetValueAtIndex(fNames.get(), index);
}
static SkFontStyleSet* CreateSet(CFStringRef cfFamilyName) {
SkUniqueCFRef<CFMutableDictionaryRef> cfAttr(
CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks));
CFDictionaryAddValue(cfAttr.get(), kCTFontFamilyNameAttribute, cfFamilyName);
SkUniqueCFRef<CTFontDescriptorRef> desc(
CTFontDescriptorCreateWithAttributes(cfAttr.get()));
return new SkFontStyleSet_Mac(desc.get());
}
public:
SkUniqueCFRef<CTFontCollectionRef> fFontCollection;
SkFontMgr_Mac(CTFontCollectionRef fontCollection)
: fNames(fontCollection ? SkCopyAvailableFontFamilyNames(fontCollection)
: SkCTFontManagerCopyAvailableFontFamilyNames())
, fCount(fNames ? SkToInt(CFArrayGetCount(fNames.get())) : 0)
, fFontCollection(fontCollection ? (CTFontCollectionRef)CFRetain(fontCollection)
: CTFontCollectionCreateFromAvailableFonts(nullptr))
{}
protected:
int onCountFamilies() const override {
return fCount;
}
void onGetFamilyName(int index, SkString* familyName) const override {
if ((unsigned)index < (unsigned)fCount) {
SkStringFromCFString(this->getFamilyNameAt(index), familyName);
} else {
familyName->reset();
}
}
SkFontStyleSet* onCreateStyleSet(int index) const override {
if ((unsigned)index >= (unsigned)fCount) {
return nullptr;
}
return CreateSet(this->getFamilyNameAt(index));
}
SkFontStyleSet* onMatchFamily(const char familyName[]) const override {
if (!familyName) {
return nullptr;
}
SkUniqueCFRef<CFStringRef> cfName = make_CFString(familyName);
return CreateSet(cfName.get());
}
SkTypeface* onMatchFamilyStyle(const char familyName[],
const SkFontStyle& style) const override {
SkUniqueCFRef<CTFontDescriptorRef> desc = create_descriptor(familyName, style);
return create_from_desc(desc.get()).release();
}
SkTypeface* onMatchFamilyStyleCharacter(const char familyName[],
const SkFontStyle& style,
const char* bcp47[], int bcp47Count,
SkUnichar character) const override {
SkUniqueCFRef<CTFontDescriptorRef> desc = create_descriptor(familyName, style);
SkUniqueCFRef<CTFontRef> familyFont(CTFontCreateWithFontDescriptor(desc.get(), 0, nullptr));
// kCFStringEncodingUTF32 is BE unless there is a BOM.
// Since there is no machine endian option, explicitly state machine endian.
#ifdef SK_CPU_LENDIAN
constexpr CFStringEncoding encoding = kCFStringEncodingUTF32LE;
#else
constexpr CFStringEncoding encoding = kCFStringEncodingUTF32BE;
#endif
SkUniqueCFRef<CFStringRef> string(CFStringCreateWithBytes(
kCFAllocatorDefault, reinterpret_cast<const UInt8 *>(&character), sizeof(character),
encoding, false));
// If 0xD800 <= codepoint <= 0xDFFF || 0x10FFFF < codepoint 'string' may be nullptr.
// No font should be covering such codepoints (even the magic fallback font).
if (!string) {
return nullptr;
}
CFRange range = CFRangeMake(0, CFStringGetLength(string.get())); // in UniChar units.
SkUniqueCFRef<CTFontRef> fallbackFont(
CTFontCreateForString(familyFont.get(), string.get(), range));
return SkTypeface_Mac::Make(std::move(fallbackFont), OpszVariation(), nullptr).release();
}
sk_sp<SkTypeface> onMakeFromData(sk_sp<SkData> data, int ttcIndex) const override {
if (ttcIndex != 0) {
return nullptr;
}
SkUniqueCFRef<CTFontRef> ct = ctfont_from_skdata(data, ttcIndex);
if (!ct) {
return nullptr;
}
return SkTypeface_Mac::Make(std::move(ct), OpszVariation(),
SkMemoryStream::Make(std::move(data)));
}
sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset> stream,
int ttcIndex) const override {
if (ttcIndex != 0) {
return nullptr;
}
sk_sp<SkData> data = skdata_from_skstreamasset(stream->duplicate());
if (!data) {
return nullptr;
}
SkUniqueCFRef<CTFontRef> ct = ctfont_from_skdata(std::move(data), ttcIndex);
if (!ct) {
return nullptr;
}
return SkTypeface_Mac::Make(std::move(ct), OpszVariation(), std::move(stream));
}
sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset> stream,
const SkFontArguments& args) const override
{
// TODO: Use CTFontManagerCreateFontDescriptorsFromData when available.
int ttcIndex = args.getCollectionIndex();
if (ttcIndex != 0) {
return nullptr;
}
sk_sp<SkData> data = skdata_from_skstreamasset(stream->duplicate());
if (!data) {
return nullptr;
}
SkUniqueCFRef<CTFontRef> ct = ctfont_from_skdata(std::move(data), ttcIndex);
if (!ct) {
return nullptr;
}
SkUniqueCFRef<CFArrayRef> axes(CTFontCopyVariationAxes(ct.get()));
CTFontVariation ctVariation = SkCTVariationFromSkFontArguments(ct.get(), axes.get(), args);
SkUniqueCFRef<CTFontRef> ctVariant;
if (ctVariation.variation) {
SkUniqueCFRef<CFMutableDictionaryRef> attributes(
CFDictionaryCreateMutable(kCFAllocatorDefault, 0,
&kCFTypeDictionaryKeyCallBacks,
&kCFTypeDictionaryValueCallBacks));
CFDictionaryAddValue(attributes.get(),
kCTFontVariationAttribute, ctVariation.variation.get());
SkUniqueCFRef<CTFontDescriptorRef> varDesc(
CTFontDescriptorCreateWithAttributes(attributes.get()));
ctVariant.reset(CTFontCreateCopyWithAttributes(ct.get(), 0, nullptr, varDesc.get()));
} else {
ctVariant.reset(ct.release());
}
if (!ctVariant) {
return nullptr;
}
return SkTypeface_Mac::Make(std::move(ctVariant), ctVariation.opsz, std::move(stream));
}
sk_sp<SkTypeface> onMakeFromFile(const char path[], int ttcIndex) const override {
if (ttcIndex != 0) {
return nullptr;
}
sk_sp<SkData> data = SkData::MakeFromFileName(path);
if (!data) {
return nullptr;
}
return this->onMakeFromData(std::move(data), ttcIndex);
}
sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override {
if (familyName) {
familyName = map_css_names(familyName);
}
sk_sp<SkTypeface> face = create_from_name(familyName, style);
if (face) {
return face;
}
static SkTypeface* gDefaultFace;
static SkOnce lookupDefault;
static const char FONT_DEFAULT_NAME[] = "Lucida Sans";
lookupDefault([]{
gDefaultFace = create_from_name(FONT_DEFAULT_NAME, SkFontStyle()).release();
});
return sk_ref_sp(gDefaultFace);
}
};
sk_sp<SkFontMgr> SkFontMgr_New_CoreText(CTFontCollectionRef fontCollection) {
return sk_make_sp<SkFontMgr_Mac>(fontCollection);
}
#endif//defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
| cpp |
<reponame>KevinSYSousa/imc
{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { Fragment as _Fragment } from \"react/jsx-runtime\";\nimport Header from \"../components/Header\";\nimport Calculator from \"../components/Calculator\";\n\nfunction HomePage() {\n return /*#__PURE__*/_jsxs(_Fragment, {\n children: [/*#__PURE__*/_jsx(Header, {}), /*#__PURE__*/_jsx(Calculator, {})]\n });\n}\n\nexport default HomePage;","map":null,"metadata":{},"sourceType":"module"} | json |
Stressing the need for ensuring peace, stability and prosperity of the region, he urged Japanese Ambassador Naoki Ito to use its leverage with Myanmar to create a conducive environment for an early, safe, sustainable and dignified repatriation of 1.1 million Rohingyas temporarily sheltered in Bangladesh to their ancestral homes in Rakhaine state.
Dr Momen discussed the issue when the Ambassador met him on Sunday.
In response, the Ambassador referred to Japanese Foreign Minister Motegi’s recent visit to Myanmar where he called upon the Myanmar authorities for an early repatriation of the Rohingyas and assured that his government would continue to pursue the matter.
He said Japan reiterated its position regarding repatriation at the Conference on Sustaining Support for the Rohingya Refugee Response held on October 22.
The Foreign Minister appreciated Japan’s continued support for strengthening infrastructural and socio-economic development of Bangladesh.
He urged Japanese entrepreneurs to invest in two special economic zones -- in Araihazar (Narayanganj) and Gazipur—of Bangladesh.
Dr Momen called upon Japanese businesses to take advantage of Bangladesh’s high corporate profitability, business-friendly policies, massive domestic market and strategic access to key markets across the world.
He termed Bangladesh a good destination for investment and hoped to elevate further the level of cooperation between the two friendly countries.
The Ambassador referred to the newly-elected Japanese Prime Minister Yoshihide Suga’s letter to Prime Minister Sheikh Hasina and expressed Japan’s keenness to further strengthen the bilateral relations.
Both the Foreign Minister and the Ambassador expressed satisfaction at the existing excellent bilateral relations and agreed to celebrate the 50th anniversary of diplomatic relations in 2022 by organising special events.
Dr Momen also thanked the government of Japan for their support in the fight against Covid-19 pandemic.
| english |
<gh_stars>0
* {
padding: 0;
margin: 0;
outline: 0;
box-sizing: border-box;
}
body {
background-color: rgb(255, 255, 255);
}
.container {
width: min(80%, 1200px);
margin: auto;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px;
margin: auto;
}
header img {
width: 50px;
}
header h2 {
font-family: "Open Sans", sans-serif;
font-weight: 700;
font-size: 28px;
}
.container > h2 {
font-family: Roboto, sans-serif;
font-weight: 700;
font-size: 30px;
text-align: center;
}
.new-post {
margin: 20px 0;
}
.new-post h2 {
display: inline-block;
font-family: Roboto, sans-serif;
font-style: italic;
font-size: 22px;
background-color: #3485ff;
color: white;
border-radius: 8px;
padding: 10px 20px;
cursor: pointer;
transition: all 0.4s;
}
.new-post h2:hover {
filter: brightness(1.1);
}
.line {
width: 100%;
height: 1px;
background-color: black;
margin-bottom: 10px;
}
/* Post Wrapper */
.post-wrapper {
background: #3485ff48;
margin-top: 10px;
padding: 10px;
border-radius: 0px 8px 8px 8px;
}
.post-header {
padding: 10px;
}
.post-header h2 {
font-family: "Open Sans", sans-serif;
text-align: center;
}
.post-body {
padding: 10px;
}
.post-body p {
font-family: Roboto, sans-serif;
}
.post-body .icon {
display: flex;
justify-content: flex-end;
align-items: center;
}
.post-body i {
transition: all 0.3s;
font-size: 32px;
cursor: pointer;
color: rgb(252, 46, 46);
}
.post-body i:hover {
transform: rotate(-15deg);
}
/* MODAL */
.modal {
display: flex;
justify-content: center;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.377);
}
.modal .modal-content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: min(60%, 600px);
background-color: rgba(255, 255, 255, 0.849);
border-radius: 8px;
padding: 20px;
}
.modal .modal-content h2 {
font-family: "Open Sans", sans-serif;
font-size: 30px;
font-weight: 700;
}
.modal .modal-content input,
.modal .modal-content textarea {
font-family: Roboto;
padding: 10px;
margin-top: 10px;
border: 2px solid #3485ff;
border-radius: 4px;
width: 70%;
}
.modal .modal-content textarea {
resize: none;
height: 100px;
}
.modal .modal-content div {
display: flex;
justify-content: space-evenly;
width: 70%;
margin-top: 20px;
}
.modal .modal-content div button {
font-family: Roboto, "Helvetica Neue";
font-weight: 400;
font-size: 25px;
border: none;
padding: 10px 30px;
border-radius: 8px;
cursor: pointer;
}
.modal .modal-content div button:nth-child(1) {
background-color: rgb(231, 54, 54);
color: white;
}
.modal .modal-content div button:nth-child(2) {
background-color: rgb(0, 236, 146);
}
.modal .modal-content div button:nth-child(2):hover,
.modal .modal-content div button:nth-child(1):hover {
transition: filter 0.5s;
filter: brightness(1.1);
}
/* Class JavaScript */
.hidden {
opacity: 1;
visibility: hidden;
}
.border-red {
border: 2px solid red;
}
| css |
#[doc = "Reader of register OPTIONS"]
pub type R = crate::R<u32, super::OPTIONS>;
#[doc = "Writer for register OPTIONS"]
pub type W = crate::W<u32, super::OPTIONS>;
#[doc = "Register OPTIONS `reset()`'s with value 0x0102"]
impl crate::ResetValue for super::OPTIONS {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0x0102
}
}
#[doc = "Reader of field `RESERVED11`"]
pub type RESERVED11_R = crate::R<u32, u32>;
#[doc = "Write proxy for field `RESERVED11`"]
pub struct RESERVED11_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED11_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u32) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x001f_ffff << 11)) | (((value as u32) & 0x001f_ffff) << 11);
self.w
}
}
#[doc = "Reader of field `AIC_PRESENT`"]
pub type AIC_PRESENT_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AIC_PRESENT`"]
pub struct AIC_PRESENT_W<'a> {
w: &'a mut W,
}
impl<'a> AIC_PRESENT_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 10)) | (((value as u32) & 0x01) << 10);
self.w
}
}
#[doc = "Reader of field `EIP76_PRESENT`"]
pub type EIP76_PRESENT_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `EIP76_PRESENT`"]
pub struct EIP76_PRESENT_W<'a> {
w: &'a mut W,
}
impl<'a> EIP76_PRESENT_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 9)) | (((value as u32) & 0x01) << 9);
self.w
}
}
#[doc = "Reader of field `EIP28_PRESENT`"]
pub type EIP28_PRESENT_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `EIP28_PRESENT`"]
pub struct EIP28_PRESENT_W<'a> {
w: &'a mut W,
}
impl<'a> EIP28_PRESENT_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 8)) | (((value as u32) & 0x01) << 8);
self.w
}
}
#[doc = "Reader of field `RESERVED4`"]
pub type RESERVED4_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `RESERVED4`"]
pub struct RESERVED4_W<'a> {
w: &'a mut W,
}
impl<'a> RESERVED4_W<'a> {
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub unsafe fn bits(self, value: u8) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x0f << 4)) | (((value as u32) & 0x0f) << 4);
self.w
}
}
#[doc = "Reader of field `AXI_INTERFACE`"]
pub type AXI_INTERFACE_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AXI_INTERFACE`"]
pub struct AXI_INTERFACE_W<'a> {
w: &'a mut W,
}
impl<'a> AXI_INTERFACE_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 3)) | (((value as u32) & 0x01) << 3);
self.w
}
}
#[doc = "Reader of field `AHB_IS_ASYNC`"]
pub type AHB_IS_ASYNC_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AHB_IS_ASYNC`"]
pub struct AHB_IS_ASYNC_W<'a> {
w: &'a mut W,
}
impl<'a> AHB_IS_ASYNC_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2);
self.w
}
}
#[doc = "Reader of field `AHB_INTERFACE`"]
pub type AHB_INTERFACE_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AHB_INTERFACE`"]
pub struct AHB_INTERFACE_W<'a> {
w: &'a mut W,
}
impl<'a> AHB_INTERFACE_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 1)) | (((value as u32) & 0x01) << 1);
self.w
}
}
#[doc = "Reader of field `PLB_INTERFACE`"]
pub type PLB_INTERFACE_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `PLB_INTERFACE`"]
pub struct PLB_INTERFACE_W<'a> {
w: &'a mut W,
}
impl<'a> PLB_INTERFACE_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
impl R {
#[doc = "Bits 11:31 - 31:11\\]
Ignore on read"]
#[inline(always)]
pub fn reserved11(&self) -> RESERVED11_R {
RESERVED11_R::new(((self.bits >> 11) & 0x001f_ffff) as u32)
}
#[doc = "Bit 10 - 10:10\\]
When set to '1', indicates that an EIP201 AIC is included in the EIP150"]
#[inline(always)]
pub fn aic_present(&self) -> AIC_PRESENT_R {
AIC_PRESENT_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9 - 9:9\\]
When set to '1', indicates that the EIP76 TRNG is included in the EIP150"]
#[inline(always)]
pub fn eip76_present(&self) -> EIP76_PRESENT_R {
EIP76_PRESENT_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8 - 8:8\\]
When set to '1', indicates that the EIP28 PKA is included in the EIP150"]
#[inline(always)]
pub fn eip28_present(&self) -> EIP28_PRESENT_R {
EIP28_PRESENT_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bits 4:7 - 7:4\\]
Ignore on read"]
#[inline(always)]
pub fn reserved4(&self) -> RESERVED4_R {
RESERVED4_R::new(((self.bits >> 4) & 0x0f) as u8)
}
#[doc = "Bit 3 - 3:3\\]
When set to '1', indicates that the EIP150 is equipped with a AXI interface"]
#[inline(always)]
pub fn axi_interface(&self) -> AXI_INTERFACE_R {
AXI_INTERFACE_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - 2:2\\]
When set to '1', indicates that AHB interface is asynchronous Only applicable when AHB_INTERFACE is 1"]
#[inline(always)]
pub fn ahb_is_async(&self) -> AHB_IS_ASYNC_R {
AHB_IS_ASYNC_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - 1:1\\]
When set to '1', indicates that the EIP150 is equipped with a AHB interface"]
#[inline(always)]
pub fn ahb_interface(&self) -> AHB_INTERFACE_R {
AHB_INTERFACE_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - 0:0\\]
When set to '1', indicates that the EIP150 is equipped with a PLB interface"]
#[inline(always)]
pub fn plb_interface(&self) -> PLB_INTERFACE_R {
PLB_INTERFACE_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bits 11:31 - 31:11\\]
Ignore on read"]
#[inline(always)]
pub fn reserved11(&mut self) -> RESERVED11_W {
RESERVED11_W { w: self }
}
#[doc = "Bit 10 - 10:10\\]
When set to '1', indicates that an EIP201 AIC is included in the EIP150"]
#[inline(always)]
pub fn aic_present(&mut self) -> AIC_PRESENT_W {
AIC_PRESENT_W { w: self }
}
#[doc = "Bit 9 - 9:9\\]
When set to '1', indicates that the EIP76 TRNG is included in the EIP150"]
#[inline(always)]
pub fn eip76_present(&mut self) -> EIP76_PRESENT_W {
EIP76_PRESENT_W { w: self }
}
#[doc = "Bit 8 - 8:8\\]
When set to '1', indicates that the EIP28 PKA is included in the EIP150"]
#[inline(always)]
pub fn eip28_present(&mut self) -> EIP28_PRESENT_W {
EIP28_PRESENT_W { w: self }
}
#[doc = "Bits 4:7 - 7:4\\]
Ignore on read"]
#[inline(always)]
pub fn reserved4(&mut self) -> RESERVED4_W {
RESERVED4_W { w: self }
}
#[doc = "Bit 3 - 3:3\\]
When set to '1', indicates that the EIP150 is equipped with a AXI interface"]
#[inline(always)]
pub fn axi_interface(&mut self) -> AXI_INTERFACE_W {
AXI_INTERFACE_W { w: self }
}
#[doc = "Bit 2 - 2:2\\]
When set to '1', indicates that AHB interface is asynchronous Only applicable when AHB_INTERFACE is 1"]
#[inline(always)]
pub fn ahb_is_async(&mut self) -> AHB_IS_ASYNC_W {
AHB_IS_ASYNC_W { w: self }
}
#[doc = "Bit 1 - 1:1\\]
When set to '1', indicates that the EIP150 is equipped with a AHB interface"]
#[inline(always)]
pub fn ahb_interface(&mut self) -> AHB_INTERFACE_W {
AHB_INTERFACE_W { w: self }
}
#[doc = "Bit 0 - 0:0\\]
When set to '1', indicates that the EIP150 is equipped with a PLB interface"]
#[inline(always)]
pub fn plb_interface(&mut self) -> PLB_INTERFACE_W {
PLB_INTERFACE_W { w: self }
}
}
| rust |
package pt.tecnico.ulisboa.hds.hdlt.user.api;
import com.google.common.util.concurrent.Futures;
import com.google.protobuf.ByteString;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import pt.tecnico.ulisboa.hds.hdlt.contract.cs.ClientServerServicesOuterClass.Proof;
import pt.tecnico.ulisboa.hds.hdlt.contract.uu.UserUserServicesGrpc;
import pt.tecnico.ulisboa.hds.hdlt.contract.uu.UserUserServicesGrpc.UserUserServicesFutureStub;
import pt.tecnico.ulisboa.hds.hdlt.contract.uu.UserUserServicesOuterClass.Header;
import pt.tecnico.ulisboa.hds.hdlt.contract.uu.UserUserServicesOuterClass.RequestULProofReq;
import pt.tecnico.ulisboa.hds.hdlt.lib.common.Location;
import pt.tecnico.ulisboa.hds.hdlt.lib.crypto.Crypto;
import pt.tecnico.ulisboa.hds.hdlt.user.error.UserRuntimeException;
import pt.tecnico.ulisboa.hds.hdlt.user.location.GridManager;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import static pt.tecnico.ulisboa.hds.hdlt.lib.common.Common.sleep;
public class UserToUserFrontend {
private final int callTimeout;
private final int maxNRetries;
private final String uname;
private final GridManager grid;
private final UserCrypto uCrypto;
private final Integer nByzantineUsers;
private final Integer uMaxDistance;
private final Map<String, ManagedChannel> channels;
private final Map<String, UserUserServicesFutureStub> stubs;
public UserToUserFrontend(
String uname,
GridManager grid,
UserCrypto uCrypto,
Integer nByzantineUsers,
Integer uMaxDistance,
Map<String, String> uURLs,
int callTimeout,
int maxNRetries) {
this.uname = uname;
this.grid = grid;
this.uCrypto = uCrypto;
this.nByzantineUsers = nByzantineUsers;
this.uMaxDistance = uMaxDistance;
this.callTimeout = callTimeout;
this.maxNRetries = maxNRetries;
this.channels = new HashMap<>();
this.stubs = new HashMap<>();
for (Map.Entry<String, String> uURL : uURLs.entrySet()) {
ManagedChannel channel =
ManagedChannelBuilder.forTarget(uURL.getValue()).usePlaintext().build();
this.channels.put(uURL.getKey(), channel);
this.stubs.put(uURL.getKey(), UserUserServicesGrpc.newFutureStub(channel));
}
}
public Map<String, byte[]> getIdProofs(Integer epoch) {
List<String> closeUsersUnames = this.grid.getCloseUsers(epoch, this.uMaxDistance);
if (closeUsersUnames.size() < this.nByzantineUsers) return null;
Location location = this.grid.getLocation(this.uname, epoch);
byte[] proof =
Proof.newBuilder()
.setUname(this.uname)
.setEpoch(epoch)
.setX(location.getX())
.setY(location.getY())
.build()
.toByteArray();
SyncProofs syncProofs = new SyncProofs();
Map<String, byte[]> idProofs;
int nRetries = 0;
do {
for (String uname : syncProofs.getIdProofs().keySet()) {
closeUsersUnames.remove(uname);
}
syncProofs.resetNrOfReplies();
idProofs = this.doGetIdProofs(epoch, closeUsersUnames, proof, syncProofs);
if (idProofs == null && nRetries++ >= maxNRetries) {
throw new UserRuntimeException("Not Enough User Proofs Gathered!");
}
} while (idProofs == null);
return idProofs;
}
public Map<String, byte[]> doGetIdProofs(
Integer epoch, List<String> closeUsersUnames, byte[] proof, SyncProofs syncProofs) {
BigInteger nonce = Crypto.generateRandomNonce();
Header header =
Header.newBuilder()
.setUname(this.uname)
.setEpoch(epoch)
.setNonce(ByteString.copyFrom(nonce.toByteArray()))
.build();
byte[] signature = this.uCrypto.signPayload(header.toByteArray());
RequestULProofReq req =
RequestULProofReq.newBuilder()
.setHeader(header)
.setSignature(ByteString.copyFrom(signature))
.build();
for (String closeUsersUname : closeUsersUnames) {
Futures.addCallback(
this.stubs
.get(closeUsersUname)
.withDeadlineAfter(callTimeout, TimeUnit.SECONDS)
.requestULProof(req),
new RequestULCallback(closeUsersUname, this.uCrypto, syncProofs, proof, nonce),
Executors.newSingleThreadExecutor());
}
synchronized (syncProofs) {
while (syncProofs.getNrOfValidReplies() < this.nByzantineUsers) {
// Missing Answers + Approved Answers < Nr of Byzantine Users
if ((closeUsersUnames.size() - syncProofs.getNrOfReplies())
+ syncProofs.getNrOfValidReplies()
< this.nByzantineUsers) {
sleep(1000);
return null;
}
try {
syncProofs.wait();
} catch (InterruptedException ignored) {
}
}
return new HashMap<>(syncProofs.getIdProofs());
}
}
public void shutdown() {
this.channels.values().forEach(ManagedChannel::shutdown);
}
}
| java |
Guwahati, March 18 The Election Commission will meet a variety of stakeholders, including political parties and civil society, and hold discussions before the delimitation exercise of constituencies in Assam, an official statement said on Saturday.
The full bench of the Election Commission, which consists of Chief Election Commissioner Rajiv Kumar and two Election Commissioners Anup Chandra Pandey and Arun Goel, will visit Assam from March 26 to 28 to undertake conversations with various sections, it said.
"The Commission has chosen to visit Assam in order to ascertain the actual situation and the expectations of the stakeholders and general public regarding the ongoing delimitation exercise in the state.
"During this time, the Commission will meet with political parties, public figures, civil society organisations, social service providers, and state administration officials, including District Election Officers and Deputy Commissioners, to acquire first-hand information," the statement said.
The Commission stated that it wants all stakeholders to collaborate in the effort and offer insightful ideas so that the assignment is finished on time in order to gather information regarding the ongoing delimitation process. | english |
#include "Motor.h"
#include "Encoder.h"
#include <ros/ros.h>
#include <ros/console.h>
#include <pigpio.h>
#include <boost/algorithm/string.hpp>
void initParams(ros::NodeHandle &n, const std::vector<std::string>& names, std::vector<Motor> &motors, const int queueSize)
{
motors.resize(names.size());
for (size_t i = 0; i < names.size(); ++i)
{
motors[i].initParams(n, names[i], queueSize);
}
}
void initParams(ros::NodeHandle &n, const std::vector<std::string>& names, std::vector<Encoder> &encoders, const int rate, const int queueSize)
{
encoders.resize(names.size());
for (size_t i = 0; i < names.size(); ++i)
{
encoders[i].initParams(n, names[i], rate, queueSize);
}
}
template <typename T>
void initHardware(T &collection)
{
for (auto &item : collection)
{
item.initHardware();
}
}
template <typename T>
void stop(T &collection)
{
for (auto &item : collection)
{
item.stop();
}
}
int main(int argc, char **argv)
{
ros::init(argc, argv, "gpio");
ros::NodeHandle n;
int rate, queueSize;
n.param<int>("/gpio/params/queue_size", queueSize, 10) ;
n.param<int>("/gpio/params/rate", rate, 20);
std::vector<std::string> params, motorNames, encoderNames;
n.getParamNames(params);
std::vector<std::string> parts;
std::set<std::string> devices;
for (auto param : params)
{
boost::trim_if(param, boost::is_any_of("/"));
boost::split(parts, param, boost::is_any_of("/"));
if (parts[0] == "gpio")
{
devices.insert(parts[1]);
}
}
for (const auto &device : devices)
{
std::string type;
n.getParam("/gpio/" + device + "/type", type);
if (type == "motor")
{
motorNames.push_back(device);
}
else if (type == "encoder")
{
encoderNames.push_back(device);
}
else
{
ROS_FATAL_STREAM("Invalid type for device: " << device);
return 1;
}
}
std::vector<Motor> motors;
std::vector<Encoder> encoders;
initParams(n, motorNames, motors, queueSize);
initParams(n, encoderNames, encoders, rate, queueSize);
{
int ret = gpioCfgMemAlloc(PI_MEM_ALLOC_PAGEMAP);
if (ret < 0)
{
ROS_FATAL_STREAM("gpioCfgMemAlloc(PI_MEM_ALLOC_PAGEMAP) failed with code: " << ret);
return 1;
}
}
{
int ret = gpioInitialise();
if (ret < 0)
{
ROS_FATAL_STREAM("gpioInitialise() failed with code: " << ret);
return 1;
}
}
initHardware(motors);
initHardware(encoders);
ros::spin();
stop(encoders);
gpioTerminate();
return 0;
}
| cpp |
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const schema = new Schema({
host_name: {
lowercase: true,
trim: true,
unique: true,
required: true,
type: String
},
is_wp_site:{
type:Boolean,
default:true
},
created_at: {
select: false,
type: Date,
default: Date.now
},
updated_at: {
select: true,
type: Date,
default: Date.now
}
});
mongoose.model('site', schema);
module.exports = schema;
| javascript |
YSR Congress party appears to have given up its diplomatic stance in the controversial Citizenship Amendment Act, National Register of Citizens and National Population Register and decided to fight it out with the Bharatiya Janata Party.
Apparently realising that the mood of the nation is strongly against the CAA and NRC, which are considered to be anti-Muslim, the YSRC leaders, in the all-party meeting held in New Delhi on Thursday, told the BJP leaders that their party would strongly oppose the acts.
YSRCP leader and MP Mithun Reddy said that his party made it clear in the all-party meeting here on Thursday that it was against National Register of Citizens (NRC) and the National Population Register (NPR).
He said that the YSRCP will stand in support of the Minorities and sought a debate on the issue in Parliament as the information sought in NPR was different than what was asked earlier.
Mithun told reporters that there was a sense of unease among the Minorities in the country after the Citizens Amendment Act was introduced in Parliament.
“We will certainly oppose NRC and NPR if they were introduced by the Central Cabinet. We sought a debate on the issue to clear the insecure feeling among the Minorities,” he said.
He said CAA Bill was introduced as an issue related to three other countries and added that way in which it was introduced and the way it is going to be implemented is different.
“Chief Minister YS Jagan Mohan Reddy has asked us to oppose anything that is against the wishes of the Minorities,” he said.
YSR Congress Parliamentary Party leader Vijayasai Reddy was also present at the meeting. At the all-party meeting, they requested the government to release the pending funds for the state. | english |
<reponame>isaacdomini/branches_front_end_private
export enum EDGE_TYPES {
HIERARCHICAL = 'hierarchical',
SUGGESTED_CONNECTION = 'suggested_connection'
}
| typescript |
<reponame>sinoui/core
/**
* @jest-environment jsdom
*/
import React from 'react';
import renderer from 'react-test-renderer';
import { render, cleanup } from '@testing-library/react';
import '@testing-library/jest-dom';
import { ThemeProvider } from 'styled-components';
import { defaultTheme } from '@sinoui/theme';
import SvgIcon from '@sinoui/core/SvgIcon';
import { MdEmail } from 'react-icons/md';
import Badge from '@sinoui/core/Badge';
/**
* Badge组件 单元测试
*/
describe('Badge组件 单元测试', () => {
afterEach(cleanup);
it('设置为圆点形式', () => {
const { container } = render(
<ThemeProvider theme={defaultTheme}>
<Badge count={1} dot>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
);
const text = container.querySelector('.sinoui-badge');
expect(text).toHaveClass('sinoui-badge--dot');
});
it('指定数字', () => {
const { getByText } = render(
<ThemeProvider theme={defaultTheme}>
<Badge count={1}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
);
expect(getByText('1')).toBeInTheDocument();
});
it('指定封顶数值', () => {
const { getByText } = render(
<ThemeProvider theme={defaultTheme}>
<Badge count={100} overflowCount={99}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
);
expect(getByText('99+')).toBeInTheDocument();
});
it('设置徽标的显示位置', () => {
const { container } = render(
<ThemeProvider theme={defaultTheme}>
<Badge count={8} anchorOrigin={{ vertical: 'top', horizontal: 'left' }}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
);
const text = container.querySelector('.sinoui-badge');
expect(text?.firstChild).toHaveStyle('top:0;left:0');
});
});
describe('Badge组件 快照测试', () => {
it('基本使用', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('指定数字', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={8}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('设置数字为0时显示', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={0} showZero>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('设置为圆点形式', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={1} dot>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('设置鼠标悬浮时显示的文字', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={1} title="文字">
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('设置自定义badge的内容', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={1} badgeContent={4}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('指定封顶数值', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={99} overflowCount={99}>
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={100} overflowCount={99}>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('设置徽标的显示位置', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge
count={8}
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
>
<SvgIcon as={MdEmail} />
</Badge>
<Badge
count={8}
anchorOrigin={{ vertical: 'top', horizontal: 'left' }}
>
<SvgIcon as={MdEmail} />
</Badge>
<Badge
count={8}
anchorOrigin={{ vertical: 'bottom', horizontal: 'right' }}
>
<SvgIcon as={MdEmail} />
</Badge>
<Badge
count={8}
anchorOrigin={{ vertical: 'bottom', horizontal: 'left' }}
>
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it('指定颜色', () => {
const tree = renderer
.create(
<ThemeProvider theme={defaultTheme}>
<Badge count={99} color="primary">
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={99} color="secondary">
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={99} color="warning">
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={99} color="success">
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={99} color="error">
<SvgIcon as={MdEmail} />
</Badge>
<Badge count={99} color="info">
<SvgIcon as={MdEmail} />
</Badge>
</ThemeProvider>,
)
.toJSON();
expect(tree).toMatchSnapshot();
});
});
| typescript |
/*
* Automatically generated by Magic
*/
import { Component, Inject } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { HttpService } from 'src/app/services/http-service';
import { DialogComponent } from '@app/base/dialog.component';
interface DialogDataEx {
isEdit: boolean;
entity: any;
locked?: boolean;
}
/**
* Modal dialog for editing your existing Attachments entity types, and/or
* creating new entity types of type Attachments.
*/
@Component({
templateUrl: './edit.babelmail_attachments_attachments.component.html',
})
export class EditBabelmail_attachments_attachmentsComponent extends DialogComponent {
/**
* Constructor taking a bunch of services injected using dependency injection.
*/
constructor(
public dialogRef: MatDialogRef<EditBabelmail_attachments_attachmentsComponent>,
@Inject(MAT_DIALOG_DATA) public data: DialogDataEx,
protected snackBar: MatSnackBar,
public service: HttpService
) {
super(snackBar);
this.primaryKeys = ['id'];
this.createColumns = ['filename', 'path', 'email_id'];
this.updateColumns = [];
}
/**
* Returns a reference to ths DialogData that was dependency injected
* into component during creation.
*/
protected getData() {
return this.data;
}
/**
* Returns a reference to the create method, to create new entities.
*/
protected getCreateMethod() {
return this.service.babelmail_attachments_attachments.create(
this.data.entity
);
}
/**
* Closes dialog.
*
* @param data Entity that was created or updated
*/
public close(data: any) {
if (data) {
this.dialogRef.close(data);
} else {
this.dialogRef.close();
}
}
}
| typescript |
<filename>articles/15/gnupg-ssl-cert-errors.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gnupg SSL Cert Errors</title>
<meta name="description" content="You try to do one little thing… and it turns into a herd of yaks. We’ve got a serious yak problem around this here internet.keys.gnupg.net uses an invalid se...">
<!-- Google Fonts loaded here depending on setting in _data/options.yml true loads font, blank does not-->
<link href='//fonts.googleapis.com/css?family=Lato:400,400italic' rel='stylesheet' type='text/css'>
<!-- Load up MathJax script if needed ... specify in /_data/options.yml file-->
<script type="text/javascript" src="//cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="stylesheet" type="text/css" href="/css/tufte.css">
<!-- <link rel="stylesheet" type="text/css" href="/css/print.css" media="print"> -->
<link rel="canonical" href="/articles/15/gnupg-ssl-cert-errors">
<link rel="alternate" type="application/rss+xml" title="Tufte-Jekyll" href="/feed.xml" />
</head>
<body>
<!--- Header and nav template site-wide -->
<header>
<nav class="group">
<a href="/"><img class="badge" src="/assets/img/badge_1.png" alt="CH"></a>
<a href="/lab/bike/"></a>
<a href="/">blog</a>
<a href="/lab/"></a>
<a href="/page/">page</a>
<a href="/about/">About</a>
<a href="/css/print.css"></a>
</nav>
</header>
<article class="group">
<h1>Gnupg SSL Cert Errors</h1>
<p class="subtitle">April 5, 2015</p>
<p>You try to do one little thing… and it turns into a herd of yaks. We’ve got a serious yak problem around this here internet.</p>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>keys.gnupg.net uses an invalid security certificate...
</code></pre></div></div>
<p>No, it uses more than one. Lets elucidate.</p>
<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>keys.gnupg.net. 85040 IN CNAME pool.sks-keyservers.net.
pool.sks-keyservers.net. 60 IN A 192.168.3.11
pool.sks-keyservers.net. 60 IN A 172.16.58.3
pool.sks-keyservers.net. 60 IN A 172.16.17.32
pool.sks-keyservers.net. 60 IN A 172.16.31.10
pool.sks-keyservers.net. 60 IN A 192.168.3.11
pool.sks-keyservers.net. 60 IN A 192.168.127.12
pool.sks-keyservers.net. 60 IN A 172.16.58.3
pool.sks-keyservers.net. 60 IN A 172.16.58.3
pool.sks-keyservers.net. 60 IN A 172.16.17.32
pool.sks-keyservers.net. 60 IN A 172.16.58.3
192.168.3.11 uses an invalid security certificate.
The certificate is only valid for the following names:
*.fedoraproject.org, fedoraproject.org
(Error code: ssl_error_bad_cert_domain)
172.16.58.3 uses an invalid security certificate.
The certificate is only valid for the following names:
keys.stueve.us, *.stueve.us, stueve.us, *.stueve.tv, stueve.tv
(Error code: ssl_error_bad_cert_domain)
172.16.17.32 uses an invalid security certificate.
The certificate is only valid for git.ccs-baumann.de
(Error code: ssl_error_bad_cert_domain)
172.16.31.10 uses an invalid security certificate.
The certificate is not trusted because the issuer certificate is unknown.
The certificate is only valid for the following names:
hkps.pool.sks-keyservers.net, *.pool.sks-keyservers.net, pool.sks-keyservers.net, pgpkeys.co.uk
The certificate expired on 03/09/2015 05:47 AM. The current time is 04/05/2015 03:40 PM.
(Error code: sec_error_unknown_issuer)
Iceweasel can't establish a connection to the server at 192.168.3.11.
192.168.127.12 uses an invalid security certificate.
The certificate is not trusted because the issuer certificate is unknown.
The certificate is only valid for the following names:
hkps.pool.sks-keyservers.net, *.pool.sks-keyservers.net, pool.sks-keyservers.net, pek1.sks.reimu.io
(Error code: sec_error_unknown_issuer)
172.16.58.3 uses an invalid security certificate.
The certificate is not trusted because the issuer certificate is unknown.
The certificate is only valid for the following names:
hkps.pool.sks-keyservers.net, *.pool.sks-keyservers.net, pool.sks-keyservers.net, pgpkeys.eu
(Error code: sec_error_unknown_issuer)
172.16.58.3 uses an invalid security certificate.
The certificate is only valid for the following names:
2015.alpha-labs.net, alpha-labs.net, *.alpha-labs.net, *.mc.alpha-labs.net, static.domian.alpha-labs.net
(Error code: ssl_error_bad_cert_domain)
172.16.17.32 uses an invalid security certificate.
The certificate is not trusted because the issuer certificate is unknown.
The certificate is only valid for the following names:
hkps.pool.sks-keyservers.net, *.pool.sks-keyservers.net, pool.sks-keyservers.net, sks.openpgp-keyserver.de
(Error code: sec_error_unknown_issuer)
The server at 172.16.58.3 is taking too long to respond.
</code></pre></div></div>
<p>Not one entry with a valid ssl cert; not ONE. Our yaks, they are very shaggy this season. We are bootstrapping the future on a house of cards masquerading as a jenga set, instead of a sturdy scaffold. The wonder of it is, it’s working.</p>
</article>
<span class="print-footer">Gnupg SSL Cert Errors - April 5, 2015 - clay harmon</span>
<footer>
<hr class="slender">
<ul class="footer-links">
<li><a href="mailto:<EMAIL>"><span class="icon-mail"></span></a></li>
<li>
<a href="//www.twitter.com/twitter_handle"><span class="icon-twitter"></span></a>
</li>
<li>
<a href="//plus.google.com/+googlePlusName"><span class="icon-googleplus"></span></a>
</li>
<li>
<a href="//github.com/GithubHandle"><span class="icon-github"></span></a>
</li>
<li>
<a href="//www.flickr.com/photos/FlickrUserID"><span class="icon-flickr"></span></a>
</li>
<li>
<a href="/feed"><span class="icon-feed"></span></a>
</li>
</ul>
<div class="credits">
<span>© 2018 <NAME></span></br> <br>
<span>This site created with the <a href="//github.com/clayh53/tufte-jekyll">Tufte theme for Content-centric blogging </a> in <a href="//jekyllrb.com">Jekyll</a>.</span>
</div>
</footer>
</body>
</html>
| html |
import service from '@/utils/request'
// @Tags Student
// @Summary 创建Student
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student true "创建Student"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /student/createStudent [post]
export const createStudent = (data) => {
return service({
url: '/student/createStudent',
method: 'post',
data
})
}
// @Tags Student
// @Summary 删除Student
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student true "删除Student"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /student/deleteStudent [delete]
export const deleteStudent = (data) => {
return service({
url: '/student/deleteStudent',
method: 'delete',
data
})
}
// @Tags Student
// @Summary 删除Student
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Student"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /student/deleteStudent [delete]
export const deleteStudentByIds = (data) => {
return service({
url: '/student/deleteStudentByIds',
method: 'delete',
data
})
}
// @Tags Student
// @Summary 更新Student
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Student true "更新Student"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /student/updateStudent [put]
export const updateStudent = (data) => {
return service({
url: '/student/updateStudent',
method: 'put',
data
})
}
// @Tags Student
// @Summary 用id查询Student
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Student true "用id查询Student"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /student/findStudent [get]
export const findStudent = (params) => {
return service({
url: '/student/findStudent',
method: 'get',
params
})
}
// @Tags Student
// @Summary 分页获取Student列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Student列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /student/getStudentList [get]
export const getStudentList = (params) => {
return service({
url: '/student/getStudentList',
method: 'get',
params
})
}
| javascript |
<gh_stars>1-10
{
"id": 136,
"name": "lustrous-orb",
"names": {
"ja": "しらたま",
"kana": "しらたま",
"en": "Lustrous Orb",
"fr": "Orbe Perlé",
"it": "Splendisfera",
"de": "Weiß-Orb",
"es": "Lustresfera",
"ko": "백옥",
"zh-CN": "白玉宝珠",
"zh-TW": "白玉寶珠"
},
"flavor_text_entries": {
"ja": "パルキアに 持たせると ドラゴンと みずタイプの 技の 威力が あがる 美しく 輝く 珠。",
"kana": "パルキアに もたせると ドラゴンと みずタイプの わざの いりょくが あがる うつくしく かがやく たま。",
"en": "A beautifully glowing orb to be held by Palkia. It boosts the power of Dragon- and Water-type moves when it is held.",
"fr": "Un bel orbe luisant destiné à Palkia. Augmente la puissance des capacités de type Dragon et Eau.",
"it": "Sfera splendente da dare a Palkia. Potenzia le mosse di tipo Drago e Acqua.",
"de": "Ein hell leuchtender Orb. Verstärkt Attacken vom Typ Drache und Wasser, wenn Palkia ihn trägt.",
"es": "Una bonita esfera que potencia los movimientos de tipo Dragón y Agua. Debe llevarla Palkia.",
"ko": "펄기아에게 지니게 하면 드래곤과 물타입 기술의 위력이 올라가는 아름답게 반짝이는 구슬.",
"zh-CN": "让帕路奇亚携带的话, 龙和水属性的招式威力就会提高。 散发着美丽光辉的宝珠。",
"zh-TW": "讓帕路奇亞攜帶的話, 龍和水屬性的招式威力就會提高。 散發著美麗光輝的寶珠。"
}
}
| json |
{
"movie_id": "{{randomValue length=2 type='NUMERIC'}}",
"name": "{{jsonPath request.body '$.name'}}",
"year": "{{jsonPath request.body '$.year'}}",
"cast": "{{jsonPath request.body '$.cast'}}",
"release_date": "{{date parseDate(jsonPath request.body '$.release_date')}}"
} | json |
<reponame>City-of-Helsinki/kesaseteli
import {
NumberInputProps,
TextAreaProps,
TextInput,
TextInputProps,
} from 'hds-react';
import styled from 'styled-components';
export const $TextInput = styled(TextInput)<
NumberInputProps | TextInputProps | TextAreaProps
>`
${(props) =>
!props.errorText ? `margin-bottom: ${props.theme.spacing.m};` : ''}
`;
| typescript |
{
"id": 70724,
"name": "tfile.ru",
"description": "Стиль для tfile.ru \r\nБез рекламы.\r\nОстальные изменения можно посмотреть на скрине.",
"user": {
"id": 116495,
"name": "Sanya4ever",
"email": "redacted",
"paypal_email": null,
"homepage": null,
"about": null,
"license": null
},
"updated": "2012-09-09T16:03:44.000Z",
"weekly_install_count": 1,
"total_install_count": 599,
"rating": null,
"after_screenshot_name": "https://userstyles.org/style_screenshots/70724_after.jpeg?r=1618387705",
"obsoleting_style_id": null,
"obsoleting_style_name": null,
"obsolete": 0,
"admin_delete_reason_id": null,
"obsoletion_message": null,
"screenshots": null,
"license": null,
"created": "2012-08-05T06:29:52.000Z",
"category": "site",
"raw_subcategory": "tfile",
"subcategory": "tfile",
"additional_info": null,
"style_tags": [],
"css": "@namespace url(http://www.w3.org/1999/xhtml);\r\n\r\n@-moz-document domain(\"tfile.me\") {\r\n\r\ndiv,form * {background: transparent !important;}\r\n\r\ntable, td, form, img, .message {color:#000 !important; text-shadow: #000 1px 1px 4px !important; background-color: rgba(0,0,0,.4) !important}\r\n\r\nbody, html, .cnn_contentarea {background: rgba(0,0,0,.05)url(http://i060.radikal.ru/1202/f1/b4d1e7f4c1e3.jpg) left center fixed repeat !important; background-size:100%!important;}\r\n\r\n*,a.div{color:#ff0000!important}\r\n\r\na,h2,h3,h1,div{color:#3399ff !important;}\r\na:hover,h2:hover,h3:hover,h1:hover{color:#000!important; text-shadow: #3399ff 1px 1px 4px !important}\r\n\r\n\r\n /*ADS*/\r\na[href*=\"http://adsyst.biz\"],\r\na[href*=\"luxup.ru\"],\r\n[src*=\"menu_shadow\"]\r\n{display: none !important;}}",
"discussions": [],
"discussionsCount": 0,
"commentsCount": 0,
"userjs_url": "/styles/userjs/70724/tfile-ru.user.js",
"style_settings": []
} | json |
<reponame>maniyar1/ManiHugoTheme<gh_stars>0
{{ define "main" }}
<main>
{{.Content}}
<nav>
{{ range first 10 .Site.RegularPages }}
<h2><a href='{{.RelPermalink }}'>{{.Title }}</a></h1>
<time datetime='{{dateFormat "2006-01-02T15:04:05Z07:00" .Date}}'> {{dateFormat "Jan 2, 2006" .Date }} </time>
{{ end }}
</nav>
</main>
{{ end }}
| html |
<gh_stars>1-10
const debug = require('debug')('talk-plugin-notifications');
const path = require('path');
const linkify = require('linkifyjs/html');
const NotificationManager = require('./NotificationManager');
const { map, reduce } = require('lodash');
module.exports = connectors => {
const {
graph: {
subscriptions: { getBroker },
Context,
},
services: { Mailer, Plugins },
} = connectors;
// Setup the mailer. Other plugins registered before this one can replace the
// notification template by passing the same name + format for the template
// registration.
['notification', 'notification-digest'].forEach(name => {
['txt', 'html'].forEach(format => {
Mailer.templates.register(
path.join(__dirname, 'emails', `${name}.${format}.ejs`),
name,
format
);
});
});
// Register the mail helpers. You can register your own helpers by calling
// this function in another plugin.
Mailer.registerHelpers({ linkify });
// Get the handle for the broker to attach to notifications.
const broker = getBroker();
// Create a NotificationManager to handle notifications.
const manager = new NotificationManager(Context);
// Get all the notification handlers. Additional plugins registered before
// this one can expose a `notifications` hook, that contains an array of
// notification handlers.
//
// A notification handler has the following form:
//
// {
// event // the graph event to listen for
// handle // the function called when the event is fired. It is called with
// // the (ctx, arg1, arg2, ...) where arg1, arg2 are args from the
// // event.
// category // the name representing the notification type (like 'reply')
// hydrate // returns the replacement parameters (in order!) to be used
// // in the translation.
// }
//
const notificationHandlers = Plugins.get('server', 'notifications').reduce(
(handlers, { plugin, notifications }) => {
debug(
`registered the ${
plugin.name
} plugin for notifications ${notifications.map(
({ category }) => category
)}`
);
handlers.push(...notifications);
return handlers;
},
[]
);
// Attach all the notification handlers.
manager.register(...notificationHandlers);
// Digest handlers should export the following to the `notificationDigests`
// plugin hook:
//
// {DAILY: { cronTime: '0 0 * * *', timeZone: 'America/New_York' }}
//
// Where `DAILY` is the key referenced in the typeDefs as a new type of
// `DIGEST_FREQUENCY`, and the value of that key is the one provided to the
// constructor for the Cron object:
//
// https://github.com/kelektiv/node-cron
//
// Which is used to trigger the digest operation for those uses setup with
// that type of digesting.
const digestHandlers = Plugins.get('server', 'notificationDigests').reduce(
(handlers, { plugin, notificationDigests }) => {
debug(
`registered the ${plugin.name} plugin for digest notifications ${map(
notificationDigests,
(config, frequency) => frequency
)}`
);
return reduce(
notificationDigests,
(handlers, config, frequency) => {
handlers.push({ config, frequency });
return handlers;
},
handlers
);
},
[]
);
// Attach all the notification digest handlers.
manager.registerDigests(...digestHandlers);
// Attach the broker to the manager so it can listen for the events.
manager.attach(broker);
// Start processing digests.
manager.startDigesting();
};
| javascript |
Maharashtra Housing and Area Development Authority (MHADA) has asked Mumbai Police to investigate a case of thirteen widows of Indian Army soldiers allegedly duped of low-cost houses in Mumbai they are supposed to have won in a lottery.
They were allegedly duped by a person claiming to be employed with the authority, who helped them fill forms for MHADA’s lottery of affordable houses. Once they won the houses, the imposter, later identified as Shashi Kadam, allegedly sold the houses without the women realising they had won the houses.
Once they realised they had won, the women, all from Satara, had approached MHADA’s vigilance department three years ago. The houses are in Malad, Dahisar and Chandivali.
Shashi allegedly approached the women, many of them self-help group members, in Satara and told them widows of soldiers are entitled to subsidised houses under MHADA’s defence quota.
When Chaya Bhagwan Wagh, who applied for a house in 2009, received a letter in 2011 regarding maintenance charges for the house she had been allotted in Shailendra Nagar, Dahisar,it was then that the women realised they had won the houses. | english |
Index,Facility_Name,ODRSF_facility_type,Provider,Street_No,Street_Name,Postal_Code,City,Prov_Terr
10110,Colonnade Park,sports field,ottawa,..,..,..,..,on
10111,Colonnade Park,sports field,ottawa,..,..,..,..,on
10114,Combermere Park,sports field,ottawa,11,combermere,..,gloucester,on
10136,Confederation High School,sports field,ottawa,1645,woodroffe,..,..,on
10137,Confederation High School,sports field,ottawa,1645,woodroffe,..,..,on
10154,Connaught Park,sports field,ottawa,993,connaught,..,..,on
10156,Conroy Pit Sledding Hill,miscellaneous,ottawa,3136,conroy,..,gloucester,on
10159,Constance Buckham's Bay Community Centre Park,sports field,ottawa,..,..,..,..,on
10160,Constance Buckham's Bay Community Centre Park,sports field,ottawa,..,..,..,..,on
10161,Constance Buckham's Bay Community Centre Park,sports field,ottawa,..,..,..,..,on
10162,Constance Buckham's Bay Community Centre Park,sports field,ottawa,..,..,..,..,on
10163,Constance Buckham's Bay Community Centre Park,sports field,ottawa,..,..,..,..,on
10164,Constance Buckham's Bay Community Centre Park,sports field,ottawa,262,len purcell,..,carleton,on
10165,Constance Buckham's Bay Community Centre Park,sports field,ottawa,262,len purcell,..,carleton,on
10223,Country Place Park,sports field,ottawa,..,..,..,..,on
10224,Country Place Sports Field,sports field,ottawa,..,..,..,ottawa,on
10243,Coyote Run Park,sports field,ottawa,..,..,..,..,on
10245,<NAME> Diamond,sports field,ottawa,..,..,..,ottawa,on
10246,<NAME>,sports field,ottawa,..,..,..,..,on
10247,<NAME>,rink,ottawa,..,..,..,..,on
10248,<NAME>,sports field,ottawa,..,..,..,..,on
10249,<NAME>,sports field,ottawa,..,..,..,..,on
10250,<NAME>,sports field,ottawa,..,..,..,..,on
10251,<NAME>,sports field,ottawa,..,..,..,..,on
10252,<NAME>,sports field,ottawa,..,..,..,..,on
10253,<NAME>,sports field,ottawa,135,craig henry,..,nepean,on
10254,<NAME> Tennis Club,sports field,ottawa,135,craig henry,..,nepean,on
10295,Cresthaven Park,sports field,ottawa,..,..,..,..,on
10338,Crossing Bridge Park,sports field,ottawa,..,..,..,..,on
10339,Crossing Bridge Park,sports field,ottawa,27,hobin,..,goulbourn,on
10353,Crystal Beach Tennis Club,sports field,ottawa,61,corkstown,..,nepean,on
10359,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10360,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10361,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10362,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10363,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10364,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10365,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10366,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10367,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10368,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10369,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10370,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10371,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10372,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10373,Cumberland Millennium Sports Park,sports field,ottawa,..,..,..,..,on
10379,Cummings Park,sports field,ottawa,1060,cummings,..,gloucester,on
10386,Cypress Gardens Sports Field,sports field,ottawa,..,..,..,ottawa,on
10388,<NAME> Intermediate School,sports field,ottawa,595,prom moodie,..,..,on
| json |
{"2010":"","2016":"","Department":"Рівненський окружний адміністративний суд","Region":"Рівненська область","Position":"Заступник Голови Рівненського окружного адміністративного суду","Name":"<NAME>","Link":"https://drive.google.com/open?id=0BygiyWAl79DMbWhDVWFfaHVpVTA","Note":"У меня","AdditionalNote":"","декларації 2015":"","Youtube":"","ПІБ2":"","Кількість справ":"","Оскаржені":"","Кількість скарг":"1","Кількість дисциплінарних стягнень":"","Клейма":"","Фото":"http://picua.org/img/2016-10/04/wlspsq7s5pjm9u64bvor5o3pg.jpg","Як живе":"","Декларація доброчесності судді подано у 2016 році (вперше)":"","Декларація родинних зв’язків судді подано у 2016 році":"","key":"zhukovska_lyudmila_arkadiyivna","field8":"","Link 2015":"","field9":"","Декларації 2013":"","Декларації 2014":"","Декларації 2015":"","Декларації 2016":"","type":"judge","analytics":[{"y":2013,"i":186403,"fi":80376,"fc":1},{"y":2014,"i":196909,"fi":87074,"fc":1},{"y":2015,"i":307187,"fc":1,"ff":24.5,"ffa":1,"j":1},{"y":2016,"i":432217,"fc":1,"ff":30.5,"ffa":2},{"y":2017,"i":281254,"fc":1,"ff":44,"ffa":1}],"declarationsLinks":[{"id":"vulyk_1_262","year":2013,"url":"http://static.declarations.com.ua/declarations/sudy/mistsevi_sudy/okruzhni_administratyvni_sudy/rivnenska/zhukovska.pdf","provider":"declarations.com.ua.opendata"},{"id":"vulyk_62_26","year":2014,"url":"http://static.declarations.com.ua/declarations/chosen_ones/mega_batch/zhukovska_liudmyla_arkadiivna.pdf","provider":"declarations.com.ua.opendata"},{"id":"nacp_f73652e4-a361-4eb4-8496-b2d0e2121733","year":2015,"provider":"declarations.com.ua.opendata"},{"id":"nacp_b0becbc3-b54d-4051-8565-eb1e61243200","year":2016,"provider":"declarations.com.ua.opendata"},{"id":"nacp_34606fbb-81e1-4b19-a01e-74e6743af683","year":2017,"provider":"declarations.com.ua.opendata"}]} | json |
/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to <NAME>, <NAME>,
* <NAME>, and the H5BP dev community and team.
*/
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
html {
color: #222;
font-size: 1em;
line-height: 1.4;
}
/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* These selection rule sets have to be separate.
* Customize the background color to match your design.
*/
::-moz-selection {
background: #b3d4fc;
text-shadow: none;
}
::selection {
background: #b3d4fc;
text-shadow: none;
}
/*
* A better looking default horizontal rule
*/
hr {
display: block;
height: 1px;
border: 0;
border-top: 1px solid #ccc;
margin: 1em 0;
padding: 0;
}
/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/
audio,
canvas,
iframe,
img,
svg,
video {
vertical-align: middle;
}
/*
* Remove default fieldset styles.
*/
fieldset {
border: 0;
margin: 0;
padding: 0;
}
/*
* Allow only vertical resizing of textareas.
*/
textarea {
resize: vertical;
}
/* ==========================================================================
Browser Upgrade Prompt
========================================================================== */
.browserupgrade {
margin: 0.2em 0;
background: #ccc;
color: #000;
padding: 0.2em 0;
}
/* ==========================================================================
Author's custom styles
========================================================================== */
/* ==========================================================================
Helper classes
========================================================================== */
/*
* Hide visually and from screen readers
*/
.hidden {
display: none !important;
}
/*
* Hide only visually, but have it available for screen readers:
* http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*/
.visuallyhidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
width: auto;
}
/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
visibility: hidden;
}
/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
* `contenteditable` attribute is included anywhere else in the document.
* Otherwise it causes space to appear at the top and bottom of elements
* that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
* `:before` to contain the top-margins of child elements.
*/
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}
@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
http://www.phpied.com/delay-loading-your-print-css/
========================================================================== */
@media print {
*,
*:before,
*:after,
*:first-letter,
*:first-line {
background: transparent !important;
color: #000 !important; /* Black prints faster:
http://www.sanbeiji.com/archives/953 */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
/*
* Printing Tables:
* http://css-discuss.incutio.com/wiki/Printing_Tables
*/
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}
/*Modificaciones*/
.box {
padding: 2rem 1rem;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
overflow: hidden;
box-sizing: border-box;
}
.box--margin {
padding: 2rem 1rem;
max-width: 1200px;
overflow: hidden;
box-sizing: border-box;
width: 100%
}
.box--padding {
padding: 0rem 1rem;
}
.box--bottom--padding {
padding-bottom: 0;
}
.box--padding--modify {
padding: 2px 1rem;
}
/*Botones*/
.btn--modify {
background-color: #06C566!important;
border: 1px solid rgba(255, 255, 255, 0.25)!important;
border-radius: 24px!important;
margin: 5px auto;
}
.btn--modify:hover {
background-color: rgba(6, 197, 102, 0.48)!important;
}
/*fin botones*/
#sidenav-overlay{
z-index: 9!important;
}
/*title*/
.title h1 {
font-size: 1.5em;
text-align: center;
font-weight: 800;
text-transform: uppercase;
position: relative;
margin: 20px auto;
}
.title h1:before {
border: 1px solid #06c566;
content: "";
position: absolute;
width: 71px;
bottom: -8px;
z-index: -1;
height: 5px;
border-radius: 5px 1px 3px 0px;
background-color: #06c566;
left: 0;
margin: 0 auto;
right: 0;
}
.title{
margin-top: 25px;
margin-bottom: 25px;
}
/*fin title*/
.encabezado__fondo {
background-color: rgba(8, 49, 69, 0.39);
position: absolute;
z-index: 99;
width: 100%;
}
.encabezado__rs ul li {
margin: 0 7px;
}
.bc__slide h1 {
font-size: 1.8em;
text-align: left;
font-weight: 400;
color: #fff;
}
.bc__slide h1 strong {
color: #00ba67;
font-weight: bold;
}
/*.bc__slide:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(0, 0, 0, 0.58);
}*/
.content__slide{
z-index: 8;
}
.bc__slide{
background-image: url("../img/photo.jpg");
position: relative;
background-size: 100% 156%;
/* Set a specific height */
height: 500px;
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-repeat: no-repeat;
background-size: cover;
}
@media (min-width:29.375em){
background-position: center;
}
/*Slide inicial*/
.colorful {
background: linear-gradient(45deg, hsla(340, 100%, 0%, 1) 0%, hsla(340, 100%, 0%, 0) 70%), linear-gradient(135deg, #0699c5 10%, hsla(245, 91%, 46%, 0) 80%), linear-gradient(225deg, hsla(238, 81%, 18%, 0.18) 10%, hsla(148, 100%, 47%, 0) 80%), linear-gradient(315deg, hsla(158, 41%, 8%, 1) 100%, hsla(158, 41%, 8%, 0) 70%);
}
/*Fin del slide*/
#header{
position: relative;
}
.bc__slide {
height: 466px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: left;
}
.service__item h2 {
margin: 5px auto;
padding: 0;
font-weight: 700;
font-variant: small-caps;
font-size: 1.9em;
line-height: 0.8;
}
.service__item img {
margin: 5px auto;
}
.service__item p {
margin: 5px auto;
padding: 0;
line-height: 1.2;
}
article img {
max-width: 100%;
height: auto;
}
.blog__bloque__description h1 {
font-size: 1.6em;
font-weight: 400;
letter-spacing: -1px;
margin: 5px 0;
line-height: 0.9em;
}
.blog__bloque__description p {
margin: 5px auto;
line-height: 1.1;
font-size: 1.0em;
font-weight: 400;
color: #828282;
}
.blog__bloque__description__rrss {
display: flex;
justify-content: space-between;
background-color: #f9f9f9;
}
span.color__category {
background-color: #f44336;
width: 11px;
display: inline-flex;
margin: 0px 2px 0px 0px;
padding: 0;
}
span.category {
padding: 0 6px 0 0;
font-weight: 700;
font-variant: small-caps;
border: 1px solid rgba(216, 216, 216, 0.59);
}
.btn--modify--leer__mas {
font-size: 0.8em!important;
height: 20px!important;
line-height: 17px!important;
border: 0!important;
box-shadow: none!important;
order: 0;
align-self: flex-end;
margin: 5px 0;
}
.btn__suscribete:hover {
background-color: white!important;
}
.blog__bloque__description__rrss__icon a {
color: #909090;
}
span.border__space {
border-left: 1px solid #bdbdbd;
padding-left: 1px;
}
.blog__bloque__other__related h3 {
font-size: 1.0em;
}
.blog__bloque__other__related h3 .category {
padding-left: 5px!important;
}
.blog__bloque article {
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.33);
padding: 5px;
box-sizing: border-box;
border-bottom: 3px solid rgb(6, 197, 102);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.blog__bloque__description {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.related h2 {
font-size: 1.0em;
font-weight: 600;
margin: 14px auto;
color: #585858;
border-bottom: 1px solid rgba(128, 122, 122, 0.27);
padding-bottom: 14px;
}
.related h2 i {
color: #06c566;
}
/*Suscribte*/
.suscribete__container {
padding: 5px;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.two__section__container p {
color: #fff;
line-height: 1.0;
font-weight: 300;
font-size: 1.4em;
margin-bottom: 0;
}
.suscribete__container__fields {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.two__section__container.margin-right {
background-color: #06c566;
}
.field--modify input {
color: #fff!important;
border-color: #fff!important;
}
.field--modify label {
color: #Fff!important;
font-weight: 200!important;
}
.btn__suscribete {
background-color: #fff!important;
color: #06c566!important;
}
span.suscribete__container__fields__small {
font-size: 0.9em;
color: rgba(255, 255, 255, 0.71);
align-self: flex-end;
}
/*Modal*/
.recurso__container {
position: relative;
padding: 1px;
box-sizing: border-box;
}
.two__material {
margin: 18px 0!important;
}
.recurso__container p {
color: inherit;
font-weight: 400;
}
.btn__modal {
position: absolute!important;
top: 51px;
left: 0;
right: 0;
margin: 0 auto;
width: 182px;
}
.recurso__container img {
width: 100%;
height: auto;
}
.two__section__container {
margin: 9px auto;
box-shadow: 0px 0px 4px rgba(156, 156, 156, 0.31);
}
footer {
background-color: #e4e4e4;
padding: 5px;
box-sizing: border-box;
box-shadow: -2px 1px 4px rgba(0, 0, 0, 0.71);
padding-bottom:42px;
}
.tool__service__information{
display: none;
}
/*article single*/
.date {
display: flex;
justify-content: space-around;
padding: 7px 0;
}
div.date__text {
font-size: 1.0em;
line-height: 1;
color: #fff;
}
.date__single,
.category__single,
.time__single {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.date__text i {
font-size: 27px;
padding-right: 6px;
}
.share__single a i{
color: #00ba5b;
}
.title__bar__single h2 {
font-size: 1.1em;
color: #00ba5b;
margin: 0;
font-weight: 500;
}
.title__bar__single {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.date__single,
.title__bar__single,
.share__single,
.time__single{
display: none;
}
.show_hidden_s{
display: flex;
}
.hidden_show_s{
display: none;
}
@media (min-width: 37.625em){
.date__single,
.time__single{
display: flex;
}
.show_hidden{
display: flex;
}
.hidden_show{
display: none;
}
}
/*author*/
.author__about {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.author__about img {
border-radius: 100px;
}
@media (min-width: 50.750em){
.author__about {
flex-direction: row;
text-align: left;
}
.about__information {
padding: 0 5px;
}
}
/*Media Query Desktop*/
@media (min-width:300px ){
.encabezado {
display: flex;
justify-content: space-between;
}
.encabezado__menu {
order: 2;
}
.encabezado__rs ul {
display: flex;
justify-content: space-around;
align-items: center;
}
/*Menu Hamburguesa*/
/* Icon 1 */
#nav-icon1 {
width: 48px;
height: 40px;
position: relative;
margin: 7px auto;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .5s ease-in-out;
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
transition: .5s ease-in-out;
cursor: pointer;
z-index: 999;
}
#nav-icon1 span {
display: block;
position: absolute;
height: 9px;
width: 100%;
background: #00BA67;
border-radius: 9px;
opacity: 1;
left: 0;
-webkit-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
-webkit-transition: .25s ease-in-out;
-moz-transition: .25s ease-in-out;
-o-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}
#nav-icon1 span:nth-child(1) {
top: 0px;
}
#nav-icon1 span:nth-child(2) {
top: 15px;
}
#nav-icon1 span:nth-child(3) {
top: 30px;
}
#nav-icon1.open span:nth-child(1) {
top: 18px;
-webkit-transform: rotate(135deg);
-moz-transform: rotate(135deg);
-o-transform: rotate(135deg);
transform: rotate(135deg);
}
#nav-icon1.open span:nth-child(2) {
opacity: 0;
left: -60px;
}
#nav-icon1.open span:nth-child(3) {
top: 18px;
-webkit-transform: rotate(-135deg);
-moz-transform: rotate(-135deg);
-o-transform: rotate(-135deg);
transform: rotate(-135deg);
}
/*fin del menu hamburguesa*/
.side-nav a{
font-size: 19px!important;
}
.datos__movil {
padding: 0!important;
margin: 0;
}
.userView span {
display: flex;
}
.userView span a {
margin:0;
padding: 0;
}
/*section.service {
display: flex;
justify-content: center;
flex-direction: column;
}*/
.service__item {
text-align: center;
padding: 10px;
box-sizing: border-box;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.42);
margin: 10px auto;
}
.blog__bloque {
max-width: 500px;
margin: 0 auto;
}
}
section.panic {
display: none;
}
@media (min-width:62.000em){
/*section.service {
flex-direction: row;
margin: 5px;
}*/
.service__item{
background-color: #fff;
margin: 0 8px;
}
.blog__bloque {
display: flex;
max-width: 1200px;
}
.blog__bloque article{
max-width: 766px;
}
.blog__bloque__other__related {
margin: 0 15px;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.33);
padding: 5px;
box-sizing: border-box;
border-bottom: 3px solid rgb(6, 197, 102);
}
.blog__bloque {
margin: 15px 0;
}
section.two__section {
display: flex;
/* margin: 5px 0;*/
}
.margin-right {
margin-right: 5px;
}
.margin-left {
margin-left: 5px;
}
.btn__modal {
top: 102px;
}
/*Quien soy*/
.quien__soy__contenedor {
display: flex;
}
section.quien__soy {
margin-top: 95px;
}
.quien__soy__contenedor__photo{
background-image: url("https://images.pexels.com/photos/201472/pexels-photo-201472.jpeg?w=940&h=650&auto=compress&cs=tinysrgb");
/* Set a specific height */
/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.quien__soy__contenedor__description{
background: linear-gradient(45deg, hsla(340, 100%, 0%, 1) 0%, hsla(340, 100%, 0%, 0) 70%), linear-gradient(135deg, #0699c5 10%, hsla(245, 91%, 46%, 0) 80%), linear-gradient(225deg, hsla(148, 100%, 47%, 1) 10%, hsla(148, 100%, 47%, 0) 80%), linear-gradient(315deg, hsla(158, 41%, 8%, 1) 100%, hsla(158, 41%, 8%, 0) 70%);
width: 100%;
}
.quien__soy__contenedor {
height: 344px;
}
.quien__soy__contenedor__photo {
width: 547px;
}
.quien__soy__contenedor__photo img {
border-radius: 126px;
z-index: 2;
}
.quien__soy__contenedor__photo {
width: 547px;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
}
.quien__soy__contenedor__photo:before {
content: "";
background-color: rgba(14, 14, 14, 0.86);
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
}
.quien__soy__contenedor__description h1 {
margin: 0;
font-size: 2.5em;
font-weight: bold;
font-variant: small-caps;
color: #fff;
}
.quien__soy__contenedor__description p {
font-size: 1.2em;
line-height: 1.2;
color: #fff;
font-weight: 300;
}
.quien__soy__contenedor__description {
padding: 22px 45px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: baseline;
}
.quien__soy__contenedor__description a {
align-self: baseline;
margin: 0 0;
}
.profile__redes {
order: 0;
align-self: flex-end;
}
a.icon__profile {
font-size: 2.5em;
color: #fff;
margin: 0 10px;
}
.ocultar__menu{
display: none;
}
.encabezado__menu {
order: 0;
}
.menu ul {
display: flex;
justify-content: space-around;
width: 100%;
margin: 0;
}
ul.menu__complete li a {
color: #fff;
font-size: 1.2em;
font-variant: small-caps;
padding: 10px;
margin: 5px;
font-weight: 400;
width: 110px;
display: block;
text-align: center;
}
ul.menu__complete li a:hover {
background-color: #06c566;
}
/*sección de llmado a la acción*/
section.call {
background: linear-gradient(45deg, hsla(340, 100%, 0%, 1) 0%, hsla(340, 100%, 0%, 0) 70%), linear-gradient(135deg, #0699c5 10%, hsla(245, 91%, 46%, 0) 80%), linear-gradient(225deg, hsla(148, 100%, 47%, 1) 10%, hsla(148, 100%, 47%, 0) 80%), linear-gradient(315deg, hsla(158, 41%, 8%, 1) 100%, hsla(158, 41%, 8%, 0) 70%);
width: 100%;
}
.call__information {
padding: 37px 300px;
box-sizing: border-box;
margin-top: 50px;
margin-bottom: 50px;
}
.call__information p {
font-size: 1.8em;
color: #fff;
font-weight: 200;
max-width: 685px;
width: 100%;
line-height: 1.2;
margin: 0;
}
/*Service tool*/
section.tool__service {
display: flex;
}
.tool__service__information img {
width: 100%;
max-width: 320px;
}
.tool__service__information h2 {
font-size: 1.9em;
font-weight: 300;
text-shadow: -1px 0px 1px rgba(255, 255, 255, 0.57);
}
.tool__service__information h2 strong {
font-weight: bold;
color: #06c566;
font-size: 2.3em;
font-variant: small-caps;
}
.tool__service{
background-image: url("../img/fondo__mujer.jpg");
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover; background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.tool__service__information img {
width: 100%;
max-width: 275px;
position: absolute;
bottom: 0;
left: 86px;
}
.tool__service__information {
position: relative;
padding-left: 15px;
}
.tool__service__service .service__item {
width: 380px;
margin: 14px;
box-sizing: border-box;
}
.tool__service__information {
width: 856px;
}
.tool__service__service {
display: flex;
flex-flow: wrap;
justify-content: center;
}
.tool__service__service .service__item {
width: 359px;
}
/*Fin de Service Tool*/
/*panic*/
section.panic {
background: linear-gradient(45deg, hsla(340, 100%, 0%, 1) 0%, hsla(340, 100%, 0%, 0) 70%), linear-gradient(135deg, #0699c5 10%, hsla(245, 91%, 46%, 0) 80%), linear-gradient(225deg, hsl(171, 93%, 21%) 10%, hsla(148, 100%, 47%, 0) 80%), linear-gradient(315deg, hsla(158, 41%, 8%, 1) 100%, hsla(158, 41%, 8%, 0) 70%);
width: 100%;
position: fixed;
bottom: 0;
z-index: 99999;
display: block;
box-shadow: 1px -1px 4px rgba(0, 0, 0, 0.6);
}
.panic__texto p {
font-size: 1.1em;
color: #fff;
padding-left: 104px;
}
.panic__texto p {
margin: 0;
}
.panic__container {
display: flex;
flex-flow: wrap;
justify-content: center;
flex-direction: row;
align-items: center;
}
}
@media (min-width: 64.000em) {
.blog__bloque article {
max-width: 1024px;
flex-direction: row;
}
article img {
height: auto;
max-width: 300px;
margin: 0 5px;
}
.blog__bloque__other__related{
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.33);
border-bottom: 0px solid rgb(6, 197, 102);
}
.blog__bloque__description{
margin: 0 5px;
}
.blog__bloque__description {
height: 200px;
justify-content: space-between;
}
.bc__slide h1 {
font-size: 2.5em;
text-align: left;
font-weight: 700;
color: #fff;
font-variant: small-caps;
letter-spacing: 0px;
line-height: 0.8;
position: relative;
height: 140px;
margin: 0;
}
.bc__slide h1 strong {
color: #00ba67;
font-weight: bold;
position: absolute;
font-size: 3.2em;
left: 0;
top: 44px;
}
.recurso__container {
max-width: 559px;
}
.btn__modal {
top: 41px!important;
}
}
@media (min-width: 74.750em){
.blog__bloque {
max-width: 100%;
}
.related h2 {
font-weight: 300;
color: #868686;
}
}
@media (min-width: 77.000em){
.tool__service__information{
display: block;
}
}
/*Article*/
main#main h1 {
font-size: 2.5em;
font-weight: 500;
letter-spacing: 0px;
text-align: center;
}
main#main p {
font-size: 1.4em;
line-height: 1.4;
color: #3e3e3e;
}
b, strong {
font-weight: bold!important;
color: #00ba67;
} | css |
Regular workers constituted 88 per cent of the estimated workforce in the nine selected sectors, with only 2 per cent being casual workers.
India’s BPO industry employs over 10 lakh people and contributes to around 25 per cent of the total IT/ITeS exports revenue from the country.
K S Viswanathan, vice president (industry initiatives), NASSCOM, said the decision was taken after a detailed study on the industry conducted by AC Nielsen.
The cousin and a friend of a call centre employee were stabbed to death allegedly by a team leader.
Many sectors including IT-Software and BPO witnessed lower recruitment activities.
The Mumbai-based firm had posted net profit of Rs 88. 36 crore in the year-ago period.
Hiring online employment levels for India Inc in March was down 1. 1% compared to February.
Of the total jobs created last year,about 1. 98 lakh was generated by exporting units. | english |
Israeli forces conducted airstrikes in the south, north, and center of Gaza on Monday. This action preceded an anticipated announcement by Hamas regarding the fate of three Israelis held hostage by the Palestinian militant group, as shown in a recent video clip. In an overnight airstrike on a house in Gaza City, 12 Palestinians were killed, and others were injured.
Health authorities in Gaza, under Hamas control, reported a death toll surpassing 24,000 in the conflict with Israel. The fighting has endured for over 100 days, causing significant regional concerns. Additionally, violence in the Israeli-occupied West Bank, along the Israeli-Lebanese border, and conflicts involving US forces and Iran-backed Yemeni rebels in the Red Sea have heightened fears of an escalation beyond Gaza.
The Israeli military claims to have found evidence of hostages being held in an underground tunnel in Gaza City. Israeli officials say the tunnel in Khan Younis, part of the focus of their ground offensive, was used to hold captives in "difficult conditions." The military displayed the tunnel to journalists, revealing its humid, confined conditions, and evidence, including DNA, suggesting hostages were present. Israel has declared the destruction of the tunnel system, operated by Hamas, a top priority in its conflict with the group.
The Israeli army intensifies strikes on Gaza amid clashes with Hamas as US Secretary of State Antony Blinken aims to de-escalate tensions in the Middle East. Reports highlight ongoing conflict, including airstrikes in Palestinian cities and Hezbollah's drone attack on Israel. Blinken, discussing the situation with Israeli leaders, emphasizes challenges and hostage concerns while urging compliance with international law. Despite calls for reduced combat and increased aid, the region faces mounting casualties and humanitarian crises.
Israli singer-actor Idan Amedi, one of the popular stars of web series, 'Fauda' which is a big hit on the OTT platform Netflix, is seriously injured in Gaza while fighting Hamas terrorists. The news was confirmed by Isreal's diplomatic staff.
The Israeli military has indicated that it concluded significant combat operations in northern Gaza, stating it has finished dismantling Hamas' military infrastructure in that area. The conflict against the militant group has now entered its fourth month.
Israel and Hezbollah engaged in intense cross-border fighting after a top Hamas leader's killing, escalating tensions. Hezbollah fired rockets towards Israel, targeting an air surveillance base, while Israeli airstrikes hit Lebanon, resulting in casualties. The U.S. dispatched Antony Blinken on an urgent Middle East tour to mitigate regional conflict risks. The EU urged restraint, emphasizing Lebanon's vulnerability. The situation is fraught, with fears of further escalation amid a complex web of regional dynamics involving Hamas, Iran, and neighboring countries.
Israel's spy chief on Wednesday vowed to make Hamas pay for its attacks on Israel, after a drone strike attributed to Israel killed the group's deputy chief Saleh al-Aruri in Lebanon. His remarks came a day after Aruri, the deputy political chief of Hamas, was killed in a drone strike in a southern Beirut suburb.
Lebanon's Hezbollah group reported the death of top Hamas official Saleh Arouri in an explosion in a southern Beirut suburb. Arouri, a Hamas military wing founder, had led the group's presence in the West Bank. Israel's Prime Minister Benjamin Netanyahu threatened Arouri before the Hamas-Israel war began.
Soldiers from the IDF's 188th Brigade's combat team had been operating in the area of a school in the Al Bureij refugee camp in central Gaza, encountering Hamas squads firing from buildings. On Thursday, the military received intelligence that dozens of Hamas terrorists were entrenching themselves inside a school with a civilian population.
Fighting raged Saturday across Gaza, where displaced Palestinians said they were "exhausted" with no end in sight to the war between the besieged territory's Hamas rulers and Israel, now in its 13th week. Islamic Jihad, another armed group fighting alongside Hamas, said on Saturday that Palestinian factions were "in the process" of evaluating the Egyptian proposal.
Israeli MMA fighter Haim Gozali has sparked controversy by featuring Kanye West's name on an IDF missile, responding to the rapper's past anti-Semitic remarks. The post adds a new layer to Gozali's history of inscribing names on missiles, including those of Muslim fighters expressing support for Palestine.
Amid heightened tensions, U.S. fighter jets targeted two Hezbollah centers in Iraq following attacks on American bases linked to Israel's Gaza operations. The strikes, including the first use of a short-range ballistic missile against U.S. troops, hit Hezbollah sites near Baghdad and Al Anbar. While personnel were present, casualties remained unconfirmed. A retaliatory AC-130 gunship strike targeted missile origins at Al-Asad Air Base. The U.S. emphasizes deterring conflict but demands an end to Iran-backed assaults on its forces, signaling potential further actions if attacks persist.
Bombardment thundered and gunfire rattled in besieged Gaza, AFP live video showed, while Israel's ambassador the United Nations branded as "meaningless" a UN Security Council resolution calling for "extended" pauses in fighting.
Israeli forces have surrounded Al Shifa hospital in Gaza City, which they say sits atop an underground headquarters of Hamas militants. Hamas, Gaza's ruling Islamist group, denies fighters are present and says 650 patients and 5,000-7,000 other displaced civilians are trapped inside the hospital grounds, under constant fire from snipers and drones. It says 40 patients have died in recent days, including three premature babies whose incubators were shut down when power went out.
The exodus took place in a four-hour window of opportunity announced by Israel, which has told residents to evacuate the area or risk being trapped in the violence. However, the central and southern parts of the small, besieged Palestinian enclave were also under fire as the war between its Islamist Hamas rulers and Israel entered its second month.
Hamas' recent act of gruesome brutality, labelled 'sheer evil' by Joe Biden on October 7, followed by an Israeli offensive in response, is a stark reminder that peace is contingent on freedom -- something that could only result when national self-determination (especially vested Zionist interest) does not prohibit the negotiation of more equitable, permanent, and sovereign territorial boundaries.
The U.S. air strikes took place at roughly 4:30 a.m. on Friday (0130 GMT) near Abu Kamal, a Syrian town on the border with Iraq, and were carried out by two F-16 fighter jets using precision munitions, a U.S. defence official said. "These precision self-defence strikes are a response to a series of ongoing and mostly unsuccessful attacks against U.S. personnel in Iraq and Syria by Iranian-backed militia groups that began on October 17," U.S. Defense Secretary Lloyd Austin said in a statement.
The recent U.S. airstrikes in Syria targeted sites linked to Iranian-backed militia groups, not a designated terrorist organization. The U.S. strikes reflect the Biden administration's determination to maintain a delicate balance. The U.S. wants to hit Iranian-backed groups suspected of targeting the U.S. as strongly as possible to deter future aggression, possibly fueled by Israel's war against Hamas, while also working to avoid inflaming the region and provoking a wider conflict.
More than 40 hours after Hamas launched its unprecedented incursion out of Gaza, Israeli forces were still battling with militants holed up in several locations. At least 700 people have reportedly been killed in Israel - a staggering toll on a scale the country has not experienced in decades - and more than 400 have been killed in Gaza.
Decades of conflict between Israel and Palestine have resulted in numerous acts of violence and loss of life. Some key events include Israeli military raids in the Palestinian city of Jenin, a terrorist attack at a synagogue in Jerusalem, the killing of Palestinians by Israeli forces in the West Bank, a war between Israel and Hamas triggered by a raid on Al-Aqsa Mosque, protests along the Gaza-Israel barrier fence, the kidnapping of Israeli teenagers by Hamas, the killing of Hamas' military chief by Israel, and the withdrawal of Israeli troops from Gaza.
| english |
<reponame>SeattleDevelopersCoop/seattledeveloperscoop-web<gh_stars>1-10
// https://www.gatsbyjs.org/packages/gatsby-plugin-sitemap/
// https://www.gatsbyjs.org/packages/gatsby-image/
// https://www.gatsbyjs.org/packages/gatsby-link/
// see https://www.gatsbyjs.org/docs/plugins/
module.exports = {
siteMetadata: {
title: 'Seattle Developer\'s Cooperative',
siteUrl: 'https://www.seattledevelopers.coop',
description: 'Great web developers providing fast, effective, and robust websites',
keywords: 'web developer, developers, react, javascript, seattle, cooperative'
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-transformer-remark',
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/posts`,
name: 'posts',
},
}
],
}
| javascript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.