text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
import classNames from 'classnames';
import React, { useEffect, useState } from 'react';
export default function Stepper({ steps, currentStepIndex = 0, updateIndex }) {
const [stepIndex, setStepIndex] = useState(0);
const currentStep = steps[stepIndex];
useEffect(() => {
// step index has changed from outside
if (stepIndex !== currentStepIndex) {
setStepIndex(currentStepIndex);
}
}, [currentStepIndex]);
const updateStepIndex = (key) => {
const index = steps.findIndex((step) => step.key === key);
updateIndex(index);
};
return (
<div className="flex-grow flex flex-col">
<div className="flex-grow flex flex-col justify-center">
{currentStep && currentStep.component()}
</div>
<div className="mt-6 flex justify-center space-x-4">
{steps.map(({ key, component }) => (
<button
type="button"
aria-label="Weiter"
key={key}
onClick={() => updateStepIndex(key)}
className={classNames({
'w-5 h-5 rounded-full border focus:outline-none': true,
'border-yellow-500 bg-yellow-500': currentStep.key === key,
'border-yellow-500': currentStep.key !== key,
})}
/>
))}
</div>
</div>
);
}
| typescript |
{"packages":{"wpackagist-plugin\/tomi-page-tagging":{"0.1":{"name":"wpackagist-plugin\/tomi-page-tagging","version":"0.1","version_normalized":"0.1.0.0","uid":357115,"dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/plugin\/tomi-page-tagging.zip?timestamp=1432246086"},"source":{"type":"svn","url":"https:\/\/plugins.svn.wordpress.org\/tomi-page-tagging\/","reference":"trunk"},"homepage":"https:\/\/wordpress.org\/plugins\/tomi-page-tagging\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-plugin"},"dev-trunk":{"name":"wpackagist-plugin\/tomi-page-tagging","version":"dev-trunk","version_normalized":"9999999-dev","uid":357116,"time":"2015-05-21 22:08:06","dist":{"type":"zip","url":"https:\/\/downloads.wordpress.org\/plugin\/tomi-page-tagging.zip?timestamp=1432246086"},"source":{"type":"svn","url":"https:\/\/plugins.svn.wordpress.org\/tomi-page-tagging\/","reference":"trunk"},"homepage":"https:\/\/wordpress.org\/plugins\/tomi-page-tagging\/","require":{"composer\/installers":"~1.0"},"type":"wordpress-plugin"}}}} | json |
<reponame>nathan-hoad/steamnews
{"appid": 410000, "name": "<NAME>", "windows": true, "mac": true, "linux": false, "early_access": true, "lookup_time": 1490987995} | json |
<filename>Web/README.md
## Books
[Ultimate JS Resources](https://hackernoon.com/ultimate-javascript-resources-that-every-programmer-should-know-9889d4fd691)
| markdown |
Hyderabad: The CBI on Thursday arrested Andhra Pradesh Excise Minister Mopidevi Venkataramna in connection with a corruption case related to YSR Congress Chief YS Jaganmohan Reddy.
Mr Venkataramna was arrested soon after he appeared before them for questioning for a second consecutive day.
A Central Bureau of Investigation official said the minister was arrested at Dilkusha Guest House, the camp office of the investigating agency. He is likely to be produced in court later in the day.
Mr Venkataramna, the first minister to be arrested in the case, was nabbed a day before Jaganmohan Reddy, known as Jagan, is to appear before CBI for questioning.
Venkataramna was minister for infrastructure and investment in the late YS Rajasekhara Reddy's cabinet when certain companies were shown undue favours in return for investments they made in his son Jagan's businesses. | english |
I bought my beloved television half a decade ago, a (then) impressively thin 32-inch Samsung for around $500. Today, you can buy a 50-inch 4K TV for $500. The real question is: Should you buy a 4K TV at all?
This is the year that 4K TVs aren’t so much an exotic offering from a CES showroom as a sale item you’re sure to trip over on any visit to Best Buy. There are now a ton of 4K TVs on the market, and they’re finally affordable. Even 4K TV content isn’t as impossible to find as it used to be. However, depending on the size of your living room and the demands of your eyeballs, you might get more for your money—and not even notice the visual difference—with a 1080p model.
As I’ve been doing research for a new TV of my own, I’ve picked up a few tips that have made some sense out of the chaos. I’m also going to recommend a few models for different scenarios, including the inevitable situation where you realize that you don’t need a 4K TV and 1080p TVs are wonderfully cheap right now.
Bear with me. We’re in this together.
Shopping for a television is a little bit like shopping for a car. It’s expensive, and it sucks. Sales can be very enticing, especially around this time of year! Don’t settle for a shitty TV because it’s dirt cheap, though. You might get a lemon.
Depending on what you pick, a TV can be a relatively large investment. You might be tempted to spend thousands of dollars on some jacked up curved OLED screen bursting at the seams with smart features like friggin’ Android TV. At the end of the day, though, any relatively new LED LCD screen will get you from the beginning to the end of your favorite buddy comedy. Meanwhile, Plasma TVs generally make everything look better but few companies still make them. And OLED TVs do look amazing, but they will remain amazingly expensive for the foreseeable future.
So what the shit does HDR and Ultra HD and “expanding the color gamut” and all of those jargon-y salesperson words really mean? I’m going to be very honest about what to look for in a new TV, namely the ones with that very buzzworthy 4K logo on the box. When you’re trying to pick your new TV out of the sea of nicely priced LED screens on the market today, you should really focus on the basics: resolution, size, and quality.
You’ve heard it here before but looking for the highest resolution screen is not the trick to buying the best TV. What you really want is the right resolution for you and your space. You might not actually want a 4K TV, regardless of the sale price!
A television earns its 4K Ultra High Definition designation if the screen is at least 3,840-pixels-wide and 2,160-pixels-high. (4K is also known as 2160p.) That means there are four times as many pixels on the screen as a Full HD 1080p television. None of this matters if you’re going to be sitting more than about 10 feet from the screen, however, since the human eye is literally incapable of distinguishing the difference in resolution from that distance.
So, the extra pixels in a 4K TV only offer better resolution if the screen is large (think 60-inches and up) or if you sit really close to the TV (think: five feet). This makes for a difficult proposition when shopping for a new TV, since many of the cheapest 4K screens are all in the 50-inch range. At that size, it’s kind of a toss up whether the improved resolution will matter. Nevertheless, you should get out a measuring tape and check out this guide and this calculator to find out if you’d even notice the sharper picture in your living room.
The resolution question is not a new one. Back when I bought my 720p TV, I figured out that the lower resolution would look the same from where I was sitting as the more expensive 1080p options. And while 4K content is still relatively rare, it’s worth admitting that it will be the standard before long, and pretty much all new TVs will feature 4K screens.
We haven’t arrived at the total 4K takeover yet, but we’re getting closer. The market shift is creating a familiar problem, where all the TV companies want you to buy a new 4K TV so they’re phasing out the older 1080p TVs. (This happened with 720p TVs a few years ago.) That means that if you want all of the hot new features and top quality hardware, you might just have to buy a 4K TV anyways.
But set aside your dreams of owning a smart TV for a second, and focus on what’s important. Regardless of how many pixels you squeeze into the screen, picture quality can vary widely based on three factors: backlighting, refresh rate, and contrast ratio.
Let’s start with backlighting. The vast majority of the reasonably priced TVs on the market are LCD TVs that use LEDs for backlighting. They’re generally just known as LED TVs, not to be confused with the much more expensive and awesome OLED TVs. (Plasma TVs don’t need backlights, but they’re also more or less extinct.)
Many lower-priced LED TVs are edge-lit, meaning the LEDs are located on the side of the screen. Others are properly back-lit, giving the TV better local dimming features. Local dimming allows certain clusters of LEDs to light up when the picture is brighter in certain spots. This works differently depending on the type of backlighting. Local dimming on edge-lit TVs is usually limited to columns of light, while back-lit TVs can light up very specific sections of the screen, a setup known as “full-array local dimming.” The number of zones will vary by model, but full-array local dimming is what you want.
Now, let’s talk motion. A screen’s refresh rate refers to the number of times the picture updates on the screen per second. This specification is measured in Hertz and will largely determine how the TV deals with motion. Higher refresh rates mean more updates and, presumably, smoother motion.
All TVs must have a refresh rate of at least 60Hz, since that’s what the broadcast standard. However, you’ll see 4K TVs with “effective refresh rates” of 120Hz, 240Hz, or higher. That’s because various manufacturer use computer tricks to cut down on motion blur. These tricks produce the so-called soap opera effect that makes some content be too smooth. So be sure to find the TV’s “actual refresh rate.” (CNET even made a handy guide for the 2015 models.) Realistically speaking, you should look for a TV with an actual refresh rate of 120Hz.
Here’s where the somewhat scientific measurements for screen quality become pseudo-scientific. The term contrast ratio refers to the different between the blackest black and the whitest white on the screen. Since this affects every color in between, the screen’s contrast ratio plays a major role in picture quality. So the very best TVs will produce really dark blacks and super bright whites but—here’s the rub—there’s no real standard for measuring contrast ratio.
This is why you might see your new TV in person before you buy it. While certain factors like full-array local dimming will improve the screen’s contrast ratio, there’s no silver bullet to perfect settings. Definitely don’t trust anything the manufacturer says, and be mindful that the TVs setup at Best Buy might not be calibrated properly. If you’re eager for a very technical explanation of how contrast ratio works, try this video. Otherwise, use your eyes.
All those semi-confusing words about specifications aside, I need to reiterate my original point. Just because a TV has 4K resolution doesn’t mean it’s a good TV. Resolution is one of many specs, and if you’re sitting about 10-feet away from the TV like a normal person, you might not even notice the difference.
There’s another wrinkle worth considering as well. If you plan on streaming movies and shows to your TV over wifi, you’re going to need a pretty fast wifi connection for 4K content. Netflix, for instance, requires 25Mbps. That kind of speed is pretty standard if you’re hardwired into an ethernet connection, but wifi tends to be slower. Even if your connection is fast enough for 4K streaming, however, the image quality might still be degraded. You can tweak the settings, but you’ll still need to buy or download the Ultra HD file to ensure you’re getting the quality you paid for.
So What Should I Buy?
Let me circle back to my own quest for a new TV for a quick second. I’m considering buying something in the 50-inch range to put in my small living room. The couch is around 10-feet away from where I want to mount the TV, so it’s really a toss up in terms of how much I’d enjoy the benefits of 4K. Nevertheless, I’m planning on moving into a bigger space soon, so that calculus could soon change.
I’ve also figured out that there are a few things I don’t care about. I don’t care about sound. TVs are so slim now, none of them have good speakers. Getting a soundbar or some other setup seems like a must. I don’t care about high dynamic range (HDR) or 3D or OLED or curved screens or Android TV because those features tend to appear on TVs that cost more than I want to spend. Also, smart TV features are sort of silly anyways, since set top boxes are so good and so cheap.
Those qualifications narrow the search nicely. I compiled a list of about 15 models ranging in price from $500 to $1,300. Realistically, I don’t want to spend more than $700. And I’m thinking very seriously of ditching the 4K idea altogether in favor of a cheaper and possibly more feature-rich 1080p. Here are my top three picks.
Yes, VIZIO. The cheap brand your dad bought you to take to college ten years ago is now making some really terrific TVs, and the M-Series is especially terrific. This 4K screen features full-array local dimming, and VIZIO even reveals that you get 32 dimmable zones. The actual refresh rate is 120Hz for models 60-inches and larger. And the inclusion of basic apps like Netflix are a bonus, though I’ll probably still use a couple set-top boxes thanks to the TV’s luxurious offering of five HDMI ports.
Amazon will sell me a 55-inch M-Series for just $800. It’s $850 plus shipping for non-Prime members. (The 60-inch isn’t worth the extra money to me.) Best Buy has the same 55-inch TV on sale for $700.
There’s something terribly tempting about LG’s cheapest line of 4K TVs. They seem to be on sale everywhere and slightly nicer on the outside. While the price is nice, I’m a little wary of this model. LG is famous for its absurd curved OLED screens, so it seems like they might be banking on the brand and offering a crumby budget edition. The spec sheet for LG’s entry-level 4K TV is impressive enough, though. I just need to spend more time looking at it.
Amazon is selling the 55-inch 4K TV to Prime members for $700. Best Buy is also selling that model for $700.
That’s not a 4K TV! But it is a really good 1080p TV with everything I want for a really great price. The effective refresh rate is 120Hz, though all of Samsung’s 2015 have an actual refresh rate of half the advertised number. It’s properly backlit, has wifi, four HDMI ports, and a nice clean design. Plus I guess I feel kind of loyal to Samsung since I’ve loved my old 720p TV so much.
Amazon Prime price on a 55-inch model is a cool $700, right now, though I might settle for a 50-inch. Best Buy is offering a comparable 4K model for an enticing $800 sale price. I’d want to see them side-by-side before making a decision.
I’ve seen all of the TVs listed above in person, but I need to see them again before I buy one. In fact, I plan on loitering around these things for a solid hour before I part with the better part of a grand. At the end of the day, this new TV will become one of my most expensive and most used gadgets. I want to do this right.
But do you want to know what I’m really thinking? I’m leaning towards the VIZIO M-Series. The local dimming stuff is really cool, and I like how VIZIO seems more transparent about how its technology works than other manufacturers. Again, I need to spend a little more time staring at screens before I decide to buy one, and you should, too.
Contact the author at adam@gizmodo.com.
| english |
<reponame>cesko-digital/audiozpravy
import React, { FC } from "react"
import { Text, TouchableOpacity, ViewStyle, StyleSheet } from "react-native"
import { FontAwesome5 } from "@expo/vector-icons"
import { useTheme } from "../../theme"
import useFonts from "../../theme/fonts"
interface Props {
isEnabled: boolean
style?: ViewStyle
onPress(): void
}
const MainButton: FC<Props> = ({ isEnabled = true, style, onPress, children }) => {
const theme = useTheme()
const fonts = useFonts()
return (
<TouchableOpacity
style={{
backgroundColor: isEnabled ? theme.colors.primaryButton : theme.colors.primaryButtonDisabled,
borderRadius: 40,
flexDirection: "row",
display: "flex",
justifyContent: "center",
alignItems: "center",
padding: 16,
...style,
}}
onPress={() => {
if (isEnabled) {
onPress()
}
}}
>
<Text
style={StyleSheet.compose(fonts.titleRegular, {
color: theme.colors.primaryButtonLabel,
lineHeight: 24,
marginRight: 8
})}
>
{children}
</Text>
<FontAwesome5 name="chevron-right" size={12} color={theme.colors.primaryButtonLabel} />
</TouchableOpacity>
)
}
export default MainButton
| typescript |
<filename>src/main/resources/assets/cardstock/lang/en_us.json
{
"item.cardstock.card": "Missing Card",
"text.cardstock.artist": "Artwork © %s %s",
"text.cardstock.missingno": "Where§ka§rdid§ka§ryou§ka§rget§ka§rthis?",
"text.cardstock.more": "Press §aSHIFT§r for more",
"text.cardstock.source": "Powered by CardStock"
} | json |
<reponame>gabrielpereiraa/Curso-Linguagem-C
#include<stdio.h>
#include<stdlib.h>
#include<string>
#include<iostream>
#include<time.h>
using namespace std;
void limpaTela(){
system("clear");
}
string retornaPalavraAleatoria(){
//Vetor com palavras disponíveis.
string palavras[3] = {"abacaxi", "manga", "morango"};
//Indice gerado no intervalo {0, 1, 2}.
int indiceAleatorio = rand() % 3;
return palavras[indiceAleatorio];
}
string retornaPalavraComMascara(string palavra, int tamanhoDaPalavra){
int cont = 0;
string palavraComMascara;
while(cont < tamanhoDaPalavra){
palavraComMascara += "_";
cont++;
}
return palavraComMascara;
}
void exibeStatus(string palavraComMascara, int tamanhoDaPalavra, int tentativasRestantes, string letrasJaArriscadas, string mensagem){
cout << "\n" << mensagem;
cout << "\nPalavra: " << palavraComMascara << " (Tamanho: " << tamanhoDaPalavra << ")\n";
cout << "Tentativas restantes: " << tentativasRestantes << "\n";
//Exibe as letras arriscadas.
int cont;
cout << "Letras arriscadas: ";
for(cont = 0; cont < letrasJaArriscadas.size(); cont++){
cout << letrasJaArriscadas[cont] << ", ";
}
}
int jogar(int numeroDeJogadores){
//Palavra a ser advinhada.
string palavra;
//Confere o número de jogadores.
if(numeroDeJogadores == 1){
//Palavra a ser advinhada.
palavra = retornaPalavraAleatoria();
}else{
cout << "\nDigite uma palavra: ";
cin >> palavra;
}
//Tamanho da palavra.
int tamanhoDaPalavra = palavra.size();
//Palavra mascarada.
string palavraComMascara = retornaPalavraComMascara(palavra, tamanhoDaPalavra);
///Variáveis Gerais.
int tentativas = 0, maximoDeTentativas = 10; //número de tentativas e erros.
int cont = 0; //Auxiliar para laços de repetição.
char letra; //Letra arriscada pelo usuário.
int opcao; //Opções finais.
string letrasJaArriscadas; //Acumula as tentativas do jogador.
string mensagem = "Bem vindo ao jogo!"; //Feedback do jogador.
string palavraArriscada; //Tentativa de arriscar a palavra completa.
bool jaDigitouLetra = false; //Auxiliar para saber se a letra já foi digitada.
while(palavra != palavraComMascara && maximoDeTentativas - tentativas > 0){
limpaTela();
//Exibe o status atual do jogo.
exibeStatus(palavraComMascara, tamanhoDaPalavra, maximoDeTentativas - tentativas, letrasJaArriscadas, mensagem);
//Lê um palpite.
cout << "\nDigite uma letra (Ou digite 1 para arriscar a palavra): ";
cin >> letra;
//Confere se a palavra arriscada é igual a palavra secreta.
if(letra == '1'){
cin >> palavraArriscada;
if(palavraArriscada == palavra){
palavraComMascara = palavraArriscada;
}else{
tentativas = maximoDeTentativas;
}
}
//Percorre as letras arriscadas
for(cont = 0; cont < tentativas; cont++){
//Se encontrar a letra.
if(letrasJaArriscadas[cont] == letra){
mensagem = "Essa letra já foi digitada!";
//Indica com a variável booleana.
jaDigitouLetra = true;
}
}
//Se for uma letra nova.
if(jaDigitouLetra == false){
mensagem = "Você acertou uma letra!";
//Incrementa as letras já arriscadas.
letrasJaArriscadas += tolower(letra); //tolower: Transforma em minúscula.
//Percorre a palavra real e
for(cont = 0; cont < tamanhoDaPalavra; cont++){
//se a letra existir na palavra escondida.
if(palavra[cont] == tolower(letra)){ //tolower: Transforma em minúscula.
//Faço aquela letra aparecer na palavraComMascara.
palavraComMascara[cont] = palavra[cont];
}
}
//Aumenta uma tentativa realizada.
tentativas++;
}
//Reseta a variável jaDigitouLetra.
jaDigitouLetra = false;
}
cout << "\n";
if(palavra == palavraComMascara){
limpaTela();
cout << "\n-----Parabéns, você venceu!-----\n";
cout << "\nDeseja reiniciar?\n";
cout << "1 - Sim\n";
cout << "2 - Não\n";
cin >> opcao;
return opcao;
}else{
limpaTela();
cout << "\n-----Ops! você perdeu!-----\n";
cout << "\nDeseja reiniciar?\n";
cout << "1 - Sim\n";
cout << "2 - Não\n";
cin >> opcao;
return opcao;
}
}
void menuInicial(){
//Opção escolhida pelo usuário.
int opcao = 0;
//Enquanto o jogador não digita uma opção válida, mostra o menu novamente.
while(opcao < 1 || opcao > 4){
limpaTela();
cout << "\nBEM-VINDO AO JOGO!\n";
cout << "1 - J<NAME>\n";
cout << "2 - Jogar em Dupla\n";
cout << "3 - Sobre\n";
cout << "4 - Sair\n";
cout << "Escolha uma opcao e tecle ENTER: ";
//Faz a leitura da opção.
cin >> opcao;
//Faz algo de acordo com a opção escolhida.
switch(opcao){
case 1:
//Inicia o jogo.
cout << "\nJogo iniciado!\n\n";
if(jogar(1) == 1){
menuInicial();
}else{
//Finaliza o jogo.
cout << "\nATÉ MAIS!\n\n";
}
break;
case 2:
//Inicia o jogo.
cout << "\nJogo iniciado!\n\n";
if(jogar(2) == 1){
menuInicial();
}else{
//Finaliza o jogo.
cout << "\nATÉ MAIS!\n\n";
}
break;
case 3:
//Exibe informações do jogo.
limpaTela();
cout << "\nInformações do jogo:\n";
cout << "\nJogo desenvolvido por Gabizê em 31/08/2021.\n\n";
cout << "1 - Voltar\n";
cout << "2 - Sair\n";
cin >> opcao;
if(opcao == 1){
menuInicial();
}else{
//Finaliza o jogo.
cout << "\nATÉ MAIS!\n\n";
}
break;
case 4:
//Finaliza o jogo.
cout << "\nATÉ MAIS!\n\n";
break;
}
}
}
int main(){
//Para gerar números aleatórios.
srand((unsigned)time(NULL));
menuInicial();
return 0;
} | cpp |
Whether you are a die-hard Shah Rukh Khan fan or not, it is impossible to miss the stories of the kind gesture the Baadshah of Bollywood has shown to others. This is why, when it comes to his fans, they also ensure that they follow the path shown to them by their favourite superstar. Recently, a viral story touched everyone’s heart when an Egyptian travel agent booked tickets for an Indian woman without receiving the money as she ‘came from the country of SRK. ’ Now, the Bollywood megastar sent signed photographs to the travel agent and his daughter.
The woman, Ashwini Deshpande had shared the story on Twitter and wrote, “Needed to transfer money to a travel agent in Egypt. Was having problems with the transfer. He said: you are from the country of @iamsrk. I trust you. I will make the booking, you pay me later. For anywhere else, I wouldn’t do this. But anything for @iamsrk. & he did! #SRK is 👑. "
After reaching the country, she met with the travel agent and put up another post saying, “My husband & I finally met the man in this story today! I told him about the tsunami of good cheer his story generated. @RedChilliesEnt: he would be delighted with a photo of @iamsrk, autographed in his daughter’s name if possible. Please DM me if this can be arranged, thanks! "
@iamsrk for the gracious gesture. "
Fans were touched by this gesture as well and took to the comment section to praise SRK. One user wrote, “WoOHOo Smiling face with sunglassesRaising hands SRK is amazing on multiple levels. Lucky to be alive in his era! " while another wrote, “King of not just bollywod but king of hearts too. He knows how his one small action can make up for a life long memory for his admirers. "
Meanwhile, on the work front, Shah Rukh Khan is reportedly set to resume the shoot for YRF’s Pathan after it was put on hold in October due to his son Aryan Khan’s legal battle. The movie also stars Deepika Padukone and John Abraham in the lead roles. | english |
Mr Christian Nwosu, ex-Administrative Secretary of the Independent National Electoral Commission (INEC), has been sentenced for accepting offered by former petroleum minister Diezani Alison-Madueke, to compromise the 2015 elections. The Federal High Court in Lagos on Thursday convicted Nwosu. Nwosu was found guilty of benefiting from a sum of $115.01 million Alison-Madueke gave. Nwosu served […]Read more:
Three fake INEC staff arrested for recruiting INEC adhoc staff - Vanguard News NigeriaThree persons have been arrested for masquerading as officials of the Independent National Electoral Commission, INEC in Shomolu area of Lagos. Who's that on his cloth. Sanwo Olu. I really don't believe in this people.
Ogun 2019: You’re on your own, INEC tells Adebutu - The Nation NigeriaHonourable Oladipupo Adebutu, a member of the House of Representatives and some of his supporters have been campaigning for various offices ..
Breaking: INEC releases final list of candidates for 2019 general elections - The Nation NigeriaBreaking: INEC releases final list of candidates for 2019 general elections INEC 2019Elections INECList PresidentialList inecnigeria inecnigeria Fine !
Nwosu defies party's wish, pulls S-East AA for Buhari - Vanguard News NigeriaOwerri—Against the wish of the national chairman of Action Alliance, AA, Kenneth Udeze, to support the Peoples Democratic Party presidential candidate, Alhaji Atiku Abubakar, South-East members of the Action Alliance, AA, yesterday, met and supported the son-in-law to governor Rochas Okorocha, Uche Nwosu, in pursuit of the agenda for the 2019 re-election of President Muhammad Buhari.
Meanwhile, Orji Uzor Kalu’s name made it to the final list of candidates contesting seats at the Upper Chamber of the National Assembly.
PDP alerts of plots to stalemate polls | The Guardian Nigeria Newspaper - Nigeria and World NewsWike accuses INEC of plotting to postpone Rivers elections, while APC accuses Ishaku of distributing arms, ammunitions to political thugs. Wike APC INEC Nigeria Introduction!
Submit Gana’s name to INEC within 24 hours, SDP youths tell Falae – Daily TrustThe crisis rocking the Social Democratic Party (SDP) over the presidential candidature deepened on Tuesday as youth asked the party’s National Chairman, Chief Olu Falae to submit the name of Prof. Jerry Gana to the electoral body as the presidential candidate within 24 hours, pending an alternative judgement by a higher court.
| english |
<gh_stars>0
{
"envVars": {
"GCP_KEYFILE_PATH": "tmp/gcp-service-account.json",
"GCP_PROJECT_ID": "YOUR_GCP_PROJECT_ID"
},
"tests": [
{
"label":"Web.dev no Protocol",
"origin": "web.dev",
"gatherer": "cruxbigquery"
},
{
"label":"Web.dev Correct",
"origin": "https://web.dev",
"gatherer": "cruxbigquery"
},
{
"label":"Google Correct",
"origin": "https://www.google.com",
"gatherer": "cruxbigquery"
}
]
}
| json |
import { useMemo } from 'react'
import CodeMirrorContext from './codemirror/Context'
import CodeMirrorContainer from './CodeMirrorContainer'
import EditorMessage from './EditorMessage'
import { useStore } from '@/app/hooks'
import { selectEditorInput } from './editorSlice'
import { useCodeMirror } from './codemirror/hooks'
import { setup } from './codemirror/setup'
const Editor = (): JSX.Element => {
const store = useStore()
const editorStateConfig = useMemo(() => {
const defaultInput = selectEditorInput(store.getState())
return {
doc: defaultInput,
extensions: setup
}
}, [])
const codeMirror = useCodeMirror(editorStateConfig)
return (
<div className="flex flex-col h-full">
<CodeMirrorContext.Provider value={codeMirror}>
<CodeMirrorContainer className="flex-1" />
</CodeMirrorContext.Provider>
<EditorMessage />
</div>
)
}
export default Editor
| typescript |
use winit::event::{ElementState, Event, WindowEvent, DeviceEvent, DeviceId};
use std::collections::BTreeMap;
use crate::WindowId;
use crate::event::MouseButtonState;
#[derive(Default)]
pub struct MouseCache {
mouse_buttons: BTreeMap<DeviceId, MouseButtonState>,
mouse_position: BTreeMap<(WindowId, DeviceId), glam::Vec2>,
mouse_prev_position: BTreeMap<(WindowId, DeviceId), glam::Vec2>,
}
impl MouseCache {
pub fn get_position(&self, window_id: WindowId, device_id: DeviceId) -> Option<glam::Vec2> {
self.mouse_position.get(&(window_id, device_id)).copied()
}
pub fn get_prev_position(&self, window_id: WindowId, device_id: DeviceId) -> Option<glam::Vec2> {
self.mouse_prev_position.get(&(window_id, device_id)).copied()
}
pub fn get_buttons(&self, device_id: DeviceId) -> Option<&MouseButtonState> {
self.mouse_buttons.get(&device_id)
}
pub fn handle_event(&mut self, event: &Event<()>) {
match event {
Event::WindowEvent { window_id, event } => self.handle_window_event(*window_id, event),
Event::DeviceEvent { device_id, event } => self.handle_device_event(*device_id, event),
_ => (),
}
}
fn handle_window_event(&mut self, window_id: WindowId, event: &WindowEvent) {
match event {
WindowEvent::MouseInput { device_id, button, state, .. } => {
let buttons = self.mouse_buttons.entry(*device_id).or_default();
buttons.set_pressed((*button).into(), *state == ElementState::Pressed);
},
WindowEvent::CursorMoved { device_id, position, .. } => {
let cached_position = self.mouse_position.entry((window_id, *device_id)).or_insert_with(|| [0.0, 0.0].into());
let cached_prev_position = self.mouse_prev_position.entry((window_id, *device_id)).or_insert_with(|| [0.0, 0.0].into());
*cached_prev_position = *cached_position;
*cached_position = glam::DVec2::new(position.x, position.y).as_vec2();
},
_ => {},
}
}
fn handle_device_event(&mut self, device_id: DeviceId, event: &DeviceEvent) {
if let DeviceEvent::Removed = event {
self.remove_device(device_id)
}
}
fn remove_device(&mut self, device_id: DeviceId) {
self.mouse_buttons.remove(&device_id);
let keys: Vec<_> = self.mouse_position.keys().filter(|(_, x)| *x == device_id).copied().collect();
for key in &keys {
self.mouse_position.remove(key);
}
let keys: Vec<_> = self.mouse_prev_position.keys().filter(|(_, x)| *x == device_id).copied().collect();
for key in &keys {
self.mouse_prev_position.remove(key);
}
}
}
| rust |
<gh_stars>0
{
"name": "qrl-wallet",
"version": "0.3.2",
"description": "QRL Wallet",
"main": "index.js",
"dependencies": {
"@theqrl/explorer-helpers": "0.0.2",
"@theqrl/validate-qrl-address": "^1.1.0",
"aes256": "^1.0.2",
"async": "^2.6.0",
"babel-runtime": "^6.26.0",
"crypto-browserify": "^3.11.1",
"grpc": "^1.11.0-pre1",
"json-formatter-js": "^2.2.0",
"mathjs": "4.0.1",
"meteor-babel-helpers": "0.0.3",
"meteor-node-stubs": "^0.2.11",
"qrl-electrify": "5.0.0",
"qrllib": "0.9.2",
"run-script-os": "^1.0.3",
"tmp": "0.0.33"
},
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/theQRL/qrl-wallet.git"
},
"keywords": [
"QRL",
"blockchain"
],
"author": "see AUTHORS.md",
"license": "MIT",
"bugs": {
"url": "https://github.com/theQRL/qrl-wallet/issues"
},
"homepage": "https://github.com/theQRL/qrl-wallet#readme",
"devDependencies": {
"gulp-chimp": "^2.2.1"
},
"scripts": {
"dev": "meteor",
"test": "chimp --ddp=http://localhost:3000 --browser=chrome --path=tests",
"postinstall": "sleep 10 && run-script-os",
"install:win32": "copy node_modules\\qrllib\\build\\web-libjsqrl.wasm public\\",
"install:darwin": "cp node_modules/qrllib/build/web-libjsqrl.wasm public/",
"install:linux": "cp node_modules/qrllib/build/web-libjsqrl.wasm public/"
}
}
| json |
export const factoryMap = {
function: 'function.decl',
class: 'decl.class',
heritage: 'class.heritage',
members: 'class.members',
member: 'class.member',
property: 'class.property',
getter: 'class.getter',
setter: 'class.setter',
constructor: 'class.constructor',
call: 'function.call',
invocation: 'function.call',
method: 'class.method',
arguments: 'function.arguments',
argument: 'function.argument',
parameters: 'function.parameters',
parameter: 'function.parameter',
var: 'decl.var',
vars: 'decl.vars',
if: 'condition.if',
switch: 'condition.switch',
ternary: 'condition.ternary',
case: 'case.block',
for: 'loop.for',
while: 'loop.while',
try: 'error.try',
throw: 'error.throw',
stmt: 'block.stmt',
array: 'lit.array',
object: 'lit.object',
properties: 'object.properties',
propAssign: 'object.propAssign',
binary: 'expr.binary',
assignment: 'expr.assignment',
}
| typescript |
{
"@metadata": {
"authors": [
"Slomox"
]
},
"syntaxhighlight-desc": "Syntax-Rutheven <code><syntaxhighlight></code> mit Help vun’n [http://pygments.org/ GeSHi-Highlighter]"
}
| json |
Cape Town Blitz coach Ashwell Prince has praised his squad's performance ahead of their Mzansi Super League match against the Jozi Stars at PPC Newlands.
The Cape-based team sits on top of the log after their seven matches - having racked up five wins, suffering just one defeat and having one match rained out.
"We try to focus on team effort, that's the most important thing. Yes, people can be brilliant on the day and Quinton [de Kock] was exactly that in the last game but if you look at the bowling department, it was a team effort where they were all spot on," Prince said.
"We try to the put the emphasis on the team and when we have been in trouble, people have stood up. I like to think that we have that kind of make up in the team where we have good characters and people are up for the fight regardless of the situation," he added.
There is plenty of chatter going around that the Cape Town Blitz are close to cementing top spot on the table - securing a home final in the process - but international marquee player Dawid Malan poured cold water on such talk.
"I wouldn't go that far about us being in the final already. For us to be where we are is good but that means that we are being chased by everyone else. The Jozi Stars are peaking at the right time, so for us, it's about keeping the momentum for the next three games," he said.
The Cape Town Blitz hosts the Jozi Stars at PPC Newlands tonight at 19. 00. The sides previously met in match nine of the competition where the Cape Town Blitz claimed a 62-run victory at the Bidvest Wanderers Stadium in Johannesburg.
Tickets for the match are available at Ticketpro (www. ticketpros. co. za) or at the PPC Newlands ticket office. | english |
<filename>saleor/static/dashboard-next/components/FilterBar/FilterBar.tsx
import React from "react";
import i18n from "../../i18n";
import { FilterProps } from "../../types";
import Debounce from "../Debounce";
import { IFilter } from "../Filter/types";
import FilterTabs, { FilterChips, FilterTab } from "../TableFilter";
export interface FilterBarProps<TUrlFilters = object>
extends FilterProps<TUrlFilters> {
filterMenu: IFilter;
}
const FilterBar: React.FC<FilterBarProps> = ({
allTabLabel,
currencySymbol,
filterLabel,
filtersList,
filterTabs,
filterMenu,
currentTab,
initialSearch,
searchPlaceholder,
onAll,
onSearchChange,
onFilterAdd,
onFilterSave,
onTabChange,
onFilterDelete
}) => {
const [search, setSearch] = React.useState(initialSearch);
React.useEffect(() => setSearch(initialSearch), [currentTab, initialSearch]);
const isCustom = currentTab === filterTabs.length + 1;
return (
<>
<FilterTabs currentTab={currentTab}>
<FilterTab label={allTabLabel} onClick={onAll} />
{filterTabs.map((tab, tabIndex) => (
<FilterTab
onClick={() => onTabChange(tabIndex + 1)}
label={tab.name}
/>
))}
{isCustom && (
<FilterTab
onClick={() => undefined}
label={i18n.t("Custom Filter")}
/>
)}
</FilterTabs>
<Debounce debounceFn={onSearchChange}>
{debounceSearchChange => {
const handleSearchChange = (event: React.ChangeEvent<any>) => {
const value = event.target.value;
setSearch(value);
debounceSearchChange(value);
};
return (
<FilterChips
currencySymbol={currencySymbol}
menu={filterMenu}
filtersList={filtersList}
filterLabel={filterLabel}
placeholder={searchPlaceholder}
search={search}
onSearchChange={handleSearchChange}
onFilterAdd={onFilterAdd}
onFilterSave={onFilterSave}
isCustomSearch={isCustom}
onFilterDelete={onFilterDelete}
/>
);
}}
</Debounce>
</>
);
};
FilterBar.displayName = "FilterBar";
export default FilterBar;
| typescript |
{"ast":null,"code":"export { pbkdf2 } from \"./pbkdf2\";","map":{"version":3,"mappings":"AACA,SAASA,MAAT,QAAuB,UAAvB","names":["pbkdf2"],"sources":["D:\\programing\\Blockchain\\smartcontract-lottery-main\\front_end\\node_modules\\ethers\\node_modules\\@ethersproject\\hdnode\\node_modules\\@ethersproject\\pbkdf2\\src.ts\\index.ts"],"sourcesContent":["\nexport { pbkdf2 } from \"./pbkdf2\";\n"]},"metadata":{},"sourceType":"module"} | json |
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<main role="main">
<div class="sourceContainer">
<pre><span class="sourceLineNo">001</span><a id="line.1">/*******************************************************************************</a>
<span class="sourceLineNo">002</span><a id="line.2"> * This software is provided as a supplement to the authors' textbooks on digital</a>
<span class="sourceLineNo">003</span><a id="line.3"> * image processing published by Springer-Verlag in various languages and editions.</a>
<span class="sourceLineNo">004</span><a id="line.4"> * Permission to use and distribute this software is granted under the BSD 2-Clause </a>
<span class="sourceLineNo">005</span><a id="line.5"> * "Simplified" License (see http://opensource.org/licenses/BSD-2-Clause). </a>
<span class="sourceLineNo">006</span><a id="line.6"> * Copyright (c) 2006-2020 <NAME>, <NAME>. All rights reserved. </a>
<span class="sourceLineNo">007</span><a id="line.7"> * Visit http://imagingbook.com for additional details.</a>
<span class="sourceLineNo">008</span><a id="line.8"> *******************************************************************************/</a>
<span class="sourceLineNo">009</span><a id="line.9">package imagingbook.lib.ij;</a>
<span class="sourceLineNo">010</span><a id="line.10"></a>
<span class="sourceLineNo">011</span><a id="line.11">import ij.plugin.filter.Convolver;</a>
<span class="sourceLineNo">012</span><a id="line.12">import ij.process.ImageProcessor;</a>
<span class="sourceLineNo">013</span><a id="line.13"></a>
<span class="sourceLineNo">014</span><a id="line.14">/**</a>
<span class="sourceLineNo">015</span><a id="line.15"> * Utility methods for filtering images. </a>
<span class="sourceLineNo">016</span><a id="line.16"> * None of the filter methods modifies the kernel, i.e., kernels are </a>
<span class="sourceLineNo">017</span><a id="line.17"> * used as supplied and never normalized.</a>
<span class="sourceLineNo">018</span><a id="line.18"> * </a>
<span class="sourceLineNo">019</span><a id="line.19"> * @author WB</a>
<span class="sourceLineNo">020</span><a id="line.20"> * @version 2020-02-19</a>
<span class="sourceLineNo">021</span><a id="line.21"> */</a>
<span class="sourceLineNo">022</span><a id="line.22">public abstract class Filter {</a>
<span class="sourceLineNo">023</span><a id="line.23"></a>
<span class="sourceLineNo">024</span><a id="line.24"> /**</a>
<span class="sourceLineNo">025</span><a id="line.25"> * Applies a one-dimensional convolution kernel to the given image,</a>
<span class="sourceLineNo">026</span><a id="line.26"> * which is modified. The 1D kernel is applied in horizontal direction only.#</a>
<span class="sourceLineNo">027</span><a id="line.27"> * The supplied filter kernel is not normalized.</a>
<span class="sourceLineNo">028</span><a id="line.28"> * </a>
<span class="sourceLineNo">029</span><a id="line.29"> * @param fp the image to be filtered (modified)</a>
<span class="sourceLineNo">030</span><a id="line.30"> * @param h the filter kernel</a>
<span class="sourceLineNo">031</span><a id="line.31"> */</a>
<span class="sourceLineNo">032</span><a id="line.32"> public static void convolveX (ImageProcessor fp, float[] h) {</a>
<span class="sourceLineNo">033</span><a id="line.33"> Convolver conv = new Convolver();</a>
<span class="sourceLineNo">034</span><a id="line.34"> conv.setNormalize(false);</a>
<span class="sourceLineNo">035</span><a id="line.35"> conv.convolve(fp, h, h.length, 1);</a>
<span class="sourceLineNo">036</span><a id="line.36"> }</a>
<span class="sourceLineNo">037</span><a id="line.37"></a>
<span class="sourceLineNo">038</span><a id="line.38"> /**</a>
<span class="sourceLineNo">039</span><a id="line.39"> * Applies a one-dimensional convolution kernel to the given image,</a>
<span class="sourceLineNo">040</span><a id="line.40"> * which is modified. The 1D kernel is applied in vertical direction only.</a>
<span class="sourceLineNo">041</span><a id="line.41"> * The supplied filter kernel is not normalized.</a>
<span class="sourceLineNo">042</span><a id="line.42"> * </a>
<span class="sourceLineNo">043</span><a id="line.43"> * @param fp the image to be filtered (modified)</a>
<span class="sourceLineNo">044</span><a id="line.44"> * @param h the filter kernel</a>
<span class="sourceLineNo">045</span><a id="line.45"> */</a>
<span class="sourceLineNo">046</span><a id="line.46"> public static void convolveY (ImageProcessor fp, float[] h) {</a>
<span class="sourceLineNo">047</span><a id="line.47"> Convolver conv = new Convolver();</a>
<span class="sourceLineNo">048</span><a id="line.48"> conv.setNormalize(false);</a>
<span class="sourceLineNo">049</span><a id="line.49"> conv.convolve(fp, h, 1, h.length);</a>
<span class="sourceLineNo">050</span><a id="line.50"> }</a>
<span class="sourceLineNo">051</span><a id="line.51"></a>
<span class="sourceLineNo">052</span><a id="line.52"> /**</a>
<span class="sourceLineNo">053</span><a id="line.53"> * Applies a one-dimensional convolution kernel to the given image,</a>
<span class="sourceLineNo">054</span><a id="line.54"> * which is modified.</a>
<span class="sourceLineNo">055</span><a id="line.55"> * The 1D kernel is applied twice, once in horizontal and once in</a>
<span class="sourceLineNo">056</span><a id="line.56"> * vertical direction.</a>
<span class="sourceLineNo">057</span><a id="line.57"> * The supplied filter kernel is not normalized.</a>
<span class="sourceLineNo">058</span><a id="line.58"> * </a>
<span class="sourceLineNo">059</span><a id="line.59"> * @param fp the image to be filtered (modified)</a>
<span class="sourceLineNo">060</span><a id="line.60"> * @param h the filter kernel</a>
<span class="sourceLineNo">061</span><a id="line.61"> */</a>
<span class="sourceLineNo">062</span><a id="line.62"> public static void convolveXY (ImageProcessor fp, float[] h) {</a>
<span class="sourceLineNo">063</span><a id="line.63"> Convolver conv = new Convolver();</a>
<span class="sourceLineNo">064</span><a id="line.64"> conv.setNormalize(false);</a>
<span class="sourceLineNo">065</span><a id="line.65"> conv.convolve(fp, h, h.length, 1);</a>
<span class="sourceLineNo">066</span><a id="line.66"> conv.convolve(fp, h, 1, h.length);</a>
<span class="sourceLineNo">067</span><a id="line.67">// convolveX(fp, h);</a>
<span class="sourceLineNo">068</span><a id="line.68">// convolveY(fp, h);</a>
<span class="sourceLineNo">069</span><a id="line.69"> }</a>
<span class="sourceLineNo">070</span><a id="line.70"></a>
<span class="sourceLineNo">071</span><a id="line.71">}</a>
</pre>
</div>
</main>
</body>
</html>
| html |
<filename>src/lowendtalk/offers/40201-HostMyBytes.json
{"id": 40201, "date": "2015-01-04 15:00:13", "user": "HostMyBytes", "post": "We are HostMyBytes. Established in 2007, we can proudly say that we are the best web hosting company you will ever use. Our VPS come with DDoS protection, the help of a 24/7/365 support team, and generous allocations. We are confident that you'll not only enjoy working with HostMyBytes but that you'll want to work exclusively with HostMyBytes.\r\n \r\n OpenVZ VPS:\r\n \r\n 1 GB\r\n 1 GB Dedicated RAM\r\n 5,000 GB Bandwidth\r\n 50 GB SSD Space\r\n 1 IP Address\r\n OpenVZ\r\n Originally $6.95/mo - now $3.95/m (FOR LIFE)\r\n COUPON CODE: 3DOLLAR1GB\r\n \r\n http://hostmybytes.com/unmanaged-ssd-vps/\r\n \r\n \r\n 4 GB\r\n 4 GB Dedicated RAM\r\n 50,000 GB Bandwidth\r\n 75 GB SSD Space\r\n 1 IP Address\r\n OpenVZ\r\n Originally $12.95/m - now $7.00/m (FOR LIFE)\r\n COUPON CODE: 4GBLET\r\n \r\n http://hostmybytes.com/unmanaged-ssd-vps/\r\n \r\n KVM VPS:\r\n \r\n 512 MB\r\n 512 MB Dedicated RAM\r\n 1,000 GB Bandwidth\r\n 25 GB HDD Space\r\n 1 IP Address\r\n KVM Virtualization\r\n $3.95/mo (FOR LIFE)\r\n \r\n http://hostmybytes.com/unmanaged-kvm-vps/\r\n \r\n 1 GB\r\n 1 GB Dedicated RAM\r\n 5,000 GB Bandwidth\r\n 50 GB HDD Space\r\n 1 IP Address\r\n KVM Virtualization\r\n Originally $7.95/mo - now $7.00/m (FOR LIFE)\r\n COUPON CODE: 7DOLLARKVM\r\n \r\n http://hostmybytes.com/unmanaged-kvm-vps/\r\n \r\n Server Locations\r\n -Quebec, Canada\r\n -Buffalo, New York"} | json |
extern crate core_graphics;
use self::core_graphics::base::CGFloat;
extern crate cocoa;
use self::cocoa::base::{id, class, BOOL};
pub trait NSStatusBar {
unsafe fn systemStatusBar(_: Self) -> id {
msg_send![class("NSStatusBar"), systemStatusBar]
}
unsafe fn statusItemWithLength(self, len: CGFloat) -> id;
}
impl NSStatusBar for id {
unsafe fn statusItemWithLength(self, len: CGFloat) -> id {
msg_send![self, statusItemWithLength:len]
}
}
pub trait NSStatusItem {
unsafe fn setHighlightMode_(self, mode: BOOL);
unsafe fn setMenu_(self, menu: id);
unsafe fn statusBar(self) -> id;
}
impl NSStatusItem for id {
unsafe fn setHighlightMode_(self, mode: BOOL) {
msg_send![self, setHighlightMode:mode]
}
unsafe fn statusBar(self) -> id {
msg_send![self, statusBar]
}
unsafe fn setMenu_(self, menu: id) {
msg_send![self, setMenu:menu]
}
}
| rust |
Oral Answers CHAITRA 15, 1888 (SAKA) Oral AnsweTS
called consumer stores, in the various Government offices and canteens; the canteens and stores do not have ration shops. So, the number dwindles down to about 225; out of them 158 applied, and only 7 were rejected. Therefore, these figures would prove that we have by and large given permits to those that had applied.
Shri S. C. Samanta: May I know whether if the co-operative stores are entrusted with this rationing work there will be any cut in expenditure on the part of the Government?
Shri Shyam Dhar Mira: There is no question of cut.
Shri Priya Gupta: May I know whether one of the main reasons why the co-operatives do not come forward for undertaking ration shop work is the fact that the balance of money as between the purchasing price and the selling price does not compensate for the total expenditure to be borne by the co-operatives? If so, may I know what help Government propose to give to the co-operative societies or unions with a view to improving the co-operative movement in India?
Shri Shyam Dhar Mishra: It is a fact that sometimes the co-operatives do not find a sufficient margin to go into this business, but there are also other reasons for it. I have before me here three or four reasons which have been categorised. One is that the stores do not possess sufficient storage capacity; another is that the stores had applied when the allotment had already been made in that locality; and thirdly, applications had been made before the stores had been registered. These were some of the reasons.
Mr. Speaker: Next question.
Shri Priya Gupta: What about the difference between the purchasing price and the selling price?
Mr. Speaker: I have called the next question.
Fa'l in Agricultural Growth Rate
*959. Shri Vishwa Nath Pandey: Will the Minister of Food, Agriculture, Community Development and Cooperation be pleased to state:
(a) whether it is a fact that there has been a notable fall in the agricultural growth rate during the year 1965-66;
(b) if so, the reasons therefor; and (c) the steps taken or to be taken to bring it up during the current financial year?
The Deputy Minister in the Ministry of Food, Agriculture, Community Development and Cooperation (Shri Shyam Dhar Misra): (a) to (c). A statement is laid on the Table of the House. [Placed in Library. See No. LT-5978/66].
eft fœswarar grodu : ait faazor a पटल पर रखा गया है उसके (सी) भाग में लिखा हुआ है :
"The special measures being
taken to increase production include ing".
agricultural the followमें जानना चाहता हूं कि इतना इंतजाम जो किया है उसके बावजूद भी उत्पादन बढ़ नहीं रहा है, इसका क्या कारण है ? उत्पादन न बढ़ने के कारणों की जांच करने के लिए धीर उपाय सुझाने के लिए क्या सरकार कोई कमीशन नियुक्त करने का विचार रखती है ? क्या कारण है कि बावजूद इन सब स्पेशल मैजर्ज के उत्पादन नहीं बढ़ रहा है ?
श्री श्यामवर मिश्रः यह जो (सी) में दिया गया है
special measures being taken to increase agricultural production include the following".
इससे हमने एडीशनल काप्स रबी एंड बरीफ की और इंजीटेबल्ब की पोटेटो की करीब करीब चार मिलियन एकड़ में बढ़ाने की पेटा की है । प्राशा है कि दो तीन मिलियन टन
Oral Answers
उत्पादन बढ़ जाएगा। जहां तक जनरल मजेश्चन का सम्बन्ध है कि एग्रिकलचरल उत्पादन क्यों नहीं बढ़ा है, प्रभी जैसे मंत्री महोदय ने बताया है कि इस साल ड्राउट कंडीशंज रही हैं खास तौर से और इतनी कम रेनफाल हुई है कि कहा जाता है कि 75 वर्षों में हिन्दुस्तान में इतनी रेनफाल कम नहीं हुई थी । ये कारण हैं जिनकी वजह से उत्पादन नहीं बड़ा है ।
श्री विश्वनाथ पाण्डेय : क्या ऐसा आंकड़ा प्रापके पास है कि इस वर्ष कितनी फसल की कमी होगी ?
श्यामवर मिय: पिछले सप्ताह या पग्रह दिन पहले यहां बताया गया था कि करीब साढ़े बारह मिलियन टन फसल कम होगी। इसका मतलब यह होता है कि पिछले साल करीब 88 मिलियन टन जो उत्पादन था वह करीब करीब इस साल 76 मिलियन टन होगा ।
Shri S, Kandappan: In raising the production of foodgrains in the country, would the emphasis be on more inputs to raise the per-acre yield or on reclamation and soill conservation?
Shri Shyam Dhar Misra: It is not against the other. It is all. There will be emphasis on soil conservation, reclamation and on inputs also. One does not exclude the others.
Shrimati Renuka Ray: The statement says that some special measures are being taken to increase agricultural production as short-term measures. Is the Minister aware that there is no synchronisation? Where wells are there, you do not get the piping or electricity; where electricity is there, wells are not sunk. This kind of lack of synchronisation in many parts of the country has prevented short-term measures being taken. If this is a fact, what has been done to rectify this state of affairs?
Oral Ananbers
Shri Shyam Dhar Misra: It is a fact that the demand for electricity, for pumps and for tube-wells is increasing to a very large extent and we are not able to cope with it. But in the ontgoing year, 1965-66, Government gave additional grants, money....
Shrimati Renuka Ray: My point is different. Where electricity is there, the piping is not there. All three things are not synchronised and therefore, short-term measures are not taken.
Shri Shyam Dhar Misra: That is the problem. We are trying to solve it.
Shrimati Renuka Ray: What he done ?
Shri Shyam Dhar Misra: We have given money.
भी बड़े : उत्पादन बढ़ाने के लिए बहुत से उपाय और बहुत सी बातें हर एक स्टेट में की जा रही हैं। इस में प्रो मोर फूड कम्पेन भी भा जाता है । जो वेस्ट लैंड पड़ी हुई थी उस को देने की भी बात थी । अब प्राप कहते हैं कि ड्राउट पड़ा है। मैं जानना चाहता हूं कि कितनी वेस्ट लैंड प्रत्येक स्टेट में लोगों को दी गई है ? क्या इस का कोई प्रांकड़ा आप के पास है ?
भी श्यामघर मिश्र : टोटल कल्चरेबल बेस्ट लैंड इन बी कंट्री करीब करीब 82 मिलियन एकड़ है जिस में से तीन प्लांज में 20.92 मिलियन एकड़ रिक्लेम हुई । हम अगली योजना में करीब साठ करोड़ खर्च करने जा रहे हैं । हम प्राशा करते हैं कि करीब चार पांच मिलियन एकड़ और हम रिक्लेम कर लेंगे ।
भी बूटा सिंह : जो खाद फसलों के लिए डाली जाती है पंजाब में वह ब्लैक में बहुत महंगे भाव पर बिकती है भीर जमींदार लोग उस को खरीद नहीं सकते हैं । इन हालात के होते हुए मैं सरकार से जानना चाहता हूं कि क्या वह किसानों को बाद
| english |
The views expressed by Rahul Dravid after the conclusion of ICC Champions Trophy 2017 gave an indication that Dhoni and Yuvraj Singh mayn't be part of Team India for much longer period.
Rahul Dravid: 'Is there a place for both Dhoni & Yuvraj in Team India? or Is there a place for only one of them? Does BCCI see them play 2019 World Cup? Should the available Young Talent be tested? A call has to be taken by the Selectors & Management'.
Selectors decided to prefer full-strength squad for upcoming West Indies Tour. Dravid just hopes Youngsters like Kuldeep Yadav and Rishabh Pant gets a place in Playing XI. He fear not giving opportunities to Youngsters could repeat what happened in the case of Champions Trophy (only experienced players were selected).
Dravid believes making mystery spinners like Kuldeep Yadav play on batsman-friendly tracks will work for Team India. He says only wrist spinners or mystery spinners could take wickets on flat tracks. | english |
<reponame>buildsi/spack-monitor-nlp-dev
{
"body": "This compiler bug has prevented me from building PyTorch on my laptop, so I figured I would let others know with a conflict. I reported the bug to Apple but still haven't gotten any response.",
"user": "adamjstewart",
"url": "https://api.github.com/repos/spack/spack/issues/16238",
"updated_at": "2020-04-22 20:47:16",
"created_at": "2020-04-22 16:06:06",
"closed_at": "2020-04-22 20:47:15",
"state": "closed",
"title": "PyTorch: add conflict for Apple Clang 11.0.3",
"number": 16238,
"milestone": null,
"labels": [
"macOS",
"build-error",
"clang",
"conflicts"
],
"id": 604877242,
"html_url": "https://github.com/spack/spack/pull/16238",
"assignees": [],
"comments": 0
} | json |
Software bugs are an intriguing topic that software professionals frequently discuss. In software, bugs are errors or flaws that arise during development or after completion. The famous phrase “debugging” refers to the action or process of locating mistakes or software flaws. According to experts, a programming language is also one of the sources of software bugs in code.
How to write a bug report is a common question, primarily for beginners. Writing a good bug report may seem challenging. But there are some guidelines a software developer can utilize to achieve a good bug report. The bug report should answer the four questions:
- What is the problem or concern?
- Which software page or functionality has the issue?
- What browser, device, and OS caused the issue?
- How can the developer duplicate and resolve the problem?
After collecting the answers to the given question, write your bug report accordingly. The straightforward steps are the following:
- Provide a particular environment where the bug is present. For example, bugs appear in a specific browser like Google or Firefox.
- Provide instructions to reproduce a defect for other software engineers immediately access its location or status.
- Specify the anticipated outcome and describe end-user contexts.
- Provide actual results, such as a full explanation of how issues behave in the browser.
- Provide visual evidence, including images, videos, and the text of the bug.
- Give the bug case a severity or priority to inform the developer of its impact.
How to Identify Your Code’s Challenging Bugs?
Digital technology may appear challenging to find problems after launching the app. But it is essential to find bugs successfully to meet client satisfaction, the safety of users, and longevity. So, to fix these software bug issues, developers use various tools to identify and fix them.
Not all debugging methods or tools will be necessary to resolve a bug. Some are easier to implement than others. Remember to start with the quicker, easier approaches that require a few minutes to set up.
So, use the methods below to find the troublesome code to identify bugs in your code.
An essential tool for finding software bugs is a well-designed set of test cases. Before beginning testing, every developer should create comprehensive test cases. It should include functional test cases that will aid in assessing the app’s vulnerability and predicting how it will behave under various conditions.
A mobile or web application must undergo rigorous testing in actual user contexts. It aids in locating and resolving the majority of real-world errors that a user may encounter. To find bug issues, run a device test to see whether or not the software is compatible with your system. It will also provide an idea of how it operates in various contexts.
Software that tracks bugs and monitors performance is crucial for finding those annoying software flaws. Using bug tracking, reporting, and assignment systems streamlines software testing throughout development. Bug Tracking Software, also called a defect tracking system, to keep track of the issues.
When creating software, the process is never perfect – planning, analyzing, developing, testing, implementing, and maintaining are all part of the software development life cycle. All steps are essential and challenging. Developers ensure to devote dedication in the testing phase.
As the amount of competition in any given field increases, it becomes increasingly important for software developers to produce their products as quickly as feasible. They strive for maximum efficiency in all that they do. However, testing software is a critical component of the development process. Bugs can range from mild to severe and can completely freeze the program. As a result, testing software is an essential aspect of every project.
A defect is an error found in the testing phase of an application. The flaws that become a bug crash the programs or software. Even though bugs are common when running a program, it is essential to identify and fix them immediately.
Finding errors in software and reporting them is crucial since fixing bugs in code is complex. Some cases occur primarily during testing. Some bugs may dispute without an explanation for their behavior. To address errors or bugs correctly, write a quality bug report.
| english |
ul.acountinfor{
}
ul.acountinfor li{
margin-top:9px;
height: 35px;
border-bottom: 1px dotted #d4d4d4;
list-style: none;
}
ul.acountinfor li a{
color:#5f5d5c;
text-decoration:none;
font-size:15px;
padding-top:0px;
}
ul.acountinfor li a:hover{
color:#009dcc;
}
article#body_three{
width:910px;
min-height:160px;
overflow:hidden;
background-color:#fafafa;
border:1px solid #ddd;
margin-top:30px;
display:block;
}
.caption_body_three{
position:absolute;
top:215px;
left:360px;
width:140px;
height:25px;
border: 1px solid #f19900;
background: #F9F3E3;
padding: 0 8px;
color: #E76200;
font-weight: bold;
font-size: 1.1em;
border-radius:4px;
}
.body_three_block_two{
margin-left:25px;
margin-top:10px;
float:left;
}
article#body_four{
width:1160px;
margin-top:30px;
display:block;
}
#password{
margin-left:0px;
margin-top:5px;
width: 100%;
padding: 6px 10px;
font-size: 12px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;
background-image: none;
border: 1px solid #ddd;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
#passwordnew{
margin-left:0px;
margin-top:5px;
width: 100%;
padding: 6px 10px;
font-size: 12px;
line-height: 1.428571429;
color: #555;
vertical-align: middle;
background-color: #fff;
background-image: none;
border: 1px solid #ddd;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.myacount_infor {
background: url(../../img/user.PNG) 0 2px no-repeat;
padding-left: 25px;
}
.considermycount_infor {
background: url(../../img/considermyacount.png) 0 2px no-repeat;
padding-left: 25px;
}
.notifymycount_infor {
background: url(../../img/notifymyacount.png) 0 2px no-repeat;
padding-left: 25px;
}
.logoutmycount_infor {
background: url(../../img/logout_myacount.png) 0 2px no-repeat;
padding-left: 26px;
}
.bookslike_infor {
background: url(../../img/booklike.png) 0 2px no-repeat;
padding-left: 26px;
}
.bonusmyacount_infor {
background: url(../../img/bonusmyacount.png) 0 2px no-repeat;
padding-left: 26px;
}
| css |
.chatMenu{
display: none;
}
.menu{
display: none;
}
| css |
{"generated_at": "2017-01-27T09:37:34.747278", "required_by": ["digURLExtractor"], "requires": ["setuptools"], "package": "esmre"} | json |
import unittest
import json
from rpc_proxy.request import parse_request, translate_to_app_base
class ProxyTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = 1000
def test_parse_request_01(self):
# should read api and method from "method"
js = '{"jsonrpc":"2.0", "method":"bridge.get_ranked_posts", "params":{"sort":"trending","tag":"","observer":"alice"}, "id":1}'
js_data = json.loads(js)
expected = "rpc_ver: 2.0, api: bridge, method: get_ranked_posts, params: {'sort': 'trending', 'tag': '', 'observer': 'alice'}, id:1"
self.assertEqual(str(parse_request(js_data)), expected)
def test_parse_request_02(self):
# should read api and method from "params"
js = '{"jsonrpc":"2.0", "method":"call", "params": ["condenser_api", "get_follow_count", ["alice"]], "id":1}'
js_data = json.loads(js)
expected = "rpc_ver: 2.0, api: condenser_api, method: get_follow_count, params: ['alice'], id:1"
self.assertEqual(str(parse_request(js_data)), expected)
def test_parse_request_03(self):
# should create empty "params" field if not provided
js = '{"jsonrpc":"2.0", "method":"database_api.get_dynamic_global_properties", "id":1}'
js_data = json.loads(js)
expected = "rpc_ver: 2.0, api: database_api, method: get_dynamic_global_properties, params: [], id:1"
self.assertEqual(str(parse_request(js_data)), expected)
def test_translate_app_base(self):
"""
## With empty dict params
"""
js = '{"id": 85, "jsonrpc": "2.0", "method": "database_api.get_version", "params": {}}'
js_data = json.loads(js)
req = parse_request(js_data)
expected = "{'id': 85, 'jsonrpc': '2.0', 'method': 'call', 'params': ['condenser_api', 'get_version', []]}"
self.assertEqual(str(translate_to_app_base(req).data), expected)
"""
## No params provided
"""
js = '{"id": 85, "jsonrpc": "2.0", "method": "database_api.get_version"}'
js_data = json.loads(js)
req = parse_request(js_data)
expected = "{'id': 85, 'jsonrpc': '2.0', 'method': 'call', 'params': ['condenser_api', 'get_version', []]}"
self.assertEqual(str(translate_to_app_base(req).data), expected)
"""
## Params provided with list
"""
js = '{"id": 85, "jsonrpc": "2.0", "method": "condenser_api.get_following", "params":["hiveio",null,"blog",10]}'
js_data = json.loads(js)
req = parse_request(js_data)
expected = "{'id': 85, 'jsonrpc': '2.0', 'method': 'call', 'params': ['condenser_api', 'get_following', ['hiveio', None, 'blog', 10]]}"
self.assertEqual(str(translate_to_app_base(req).data), expected)
"""
## Params provided with dict
"""
js = '{"id": 85, "jsonrpc": "2.0", "method": "condenser_api.get_following", "params": {"foo":"bar"}}'
js_data = json.loads(js)
req = parse_request(js_data)
expected = "{'id': 85, 'jsonrpc': '2.0', 'method': 'call', 'params': ['condenser_api', 'get_following', ['bar']]}"
self.assertEqual(str(translate_to_app_base(req).data), expected)
| python |
{
"input_paths": ["/raid/projects/feickert/data/mem_studies/drell_yan/preprocessing_output_nevents_10e6.root"],
"output_paths": ["/raid/projects/feickert/data/mem_studies/drell_yan/momemta_weights.root"],
"input_tree": "event_selection/hftree;1",
"output_tree": "momemta;1",
"prefixes": [["lep1_", "lep2_"], ["j1", "j2"], ["MET"]],
"suffixes": [["Pt", "Eta", "Phi"], ["PT", "Eta", "Phi"], ["", "Phi"]],
"weights": ["weight_DY"],
"dir_name_processing": false,
"shuffle": true,
"batch_size": 64,
"chunk_entries": 65536,
"split": [8, 1, 1],
"LearningRate": 0.001,
"save_lowest_loss_model_at": "post/tempsave_lowest.pth",
"save_scaler_at": "post/scaler.joblib",
"load_saved_model_from": "post/tempsave_lowest.pth",
"load_scaler_from": "post/scaler.joblib",
"save_testing_histogram_at": "post/histogram.png"
}
| json |
Following Statement to the media:
home and is expected to bring out better performance.
Hockey team has asked for T.V. and additional furniture (chair and table).
Hockey India.
not true. Both of them share good on-field relationship.
of lots for Tennis is difficult, but we have confidence in our players.
International Olympic Committee norms for Opening Ceremony.
small issues are being attended to by our officials in consultation with IOA,
Federations and Rio Olympic Committee.
which is good for the country in the long run.
August 2016 at different locations of NDMC and MCD areas. In these locations,
Olympics games as they happen.
| english |
<reponame>peterkrauz/rpg-achievements-django<filename>achievements/admin.py
from django.contrib import admin
from achievements import models
admin.site.register(models.Achievement)
| python |
from flask import Flask, jsonify, request
from flask_restful import Api, Resource
app = Flask(__name__)
api = Api(app)
def checkPostedData(postedData, functionName):
if ("x" not in postedData or "y" not in postedData):
return 301
else:
return 200
class Add(Resource):
def post(self):
postedData = request.get_json()
status_code = checkPostedData(postedData, "add")
if (status_code != 200):
retJson = {
"Message": "An error occurred",
"Status Code": status_code
}
x = postedData["x"]
y = postedData["y"]
x = int(x)
y = int(y)
ret = x + y
retMap = {
'Message': ret,
'Status Code': 200
}
return jsonify(retMap)
class Subtract(Resource):
pass
class Multiply(Resource):
pass
class Divide(Resource):
pass
api.add_resource(Add, "/add")
if __name__ == "__main__":
# app.run() # This works pefectly
app.run(debug=True) # This helps to give feedback, in times of errors
# app.run(host="127.0.0.1", port=80) # This is good for production/deployment
| python |
{"appid": 423440, "name": "<NAME>", "windows": true, "mac": true, "linux": true, "early_access": false, "lookup_time": 1490989647} | json |
And it’s all over. Andy Murray wins the match 7-6, 6-1, 3-6, 4-6, 6-1 to progress to the semi-finals of Wimbledon 2016! Tsonga appeared to put up a mammoth fight to come back from two sets to love down in Federer-esque fashion. Unfortunately, he wasn’t able to do as much as Federer did, and squandered a series of opportunities for victory.
Two marathon matches tonight. Both sets of players fighting to stay in their respective games, although that Federer-Cilic match was nothing short of magical. It seemed like Cilic was in the fight until the end in that match, and here, Tsonga appears to have given up. Murray is two breaks of serve up at 5-0 and right now it’s looking like curtains for Jo-Wilfried Tsonga’s Wimbledon 2016 campaign. Arretez!
Jo-Wilfried Tsonga has bottled massively. After looking like he was properly in this fight, taking two sets in quick succession and establishing some form of dominance over Murray, he seems quickly en route to being bageled in the final set. Murray’s up 4-0 and Tsonga has committed three unforced errors in a single game. Three. Consistency is the name of the game in these long five-setters, and the Frenchman has lost his, it would appear, quite quickly.
AND we’ll see a fifth set! Tsonga wins the set 6-4 to force a fifth and deciding set!
The Frenchman is on the verge of forcing a fifth set! What a comeback. And definitely not the fancied player here, he’s got Murray under control despite an error-filled game and then some!
Tsonga attempts to return a Murray volley with a backhand. Unfortunately for the Frenchman, he’s mistimed that and it’s advantage Murray. Then the Scot misses, too. But he’s wrested some control back.
Murray’s choking now and hits a shot spectacularly long. 4-4 now.
The French player is being quick on his feet today – and he’s managing some strong forehands and running around the court! That’s got Judy Murray moving too. But yet again, his errors are helping Murray claw back up!
Tsonga almost has game point – and he’s choking spectacularly. At 40-0, he’s now caught in a stranglehold by Murray – and the pair are now at deuce! Finally, after a couple of slices from each player, it’s finally Tsonga who manages the hold. 4-3 Murray.
BREAK POINT Tsonga! It’s Murray's second break point – and he breaks! Murray leads 4-2 and he’s three games away from another Wimbledon semifinal!
Game point Murray! Finally, he’s gone into the lead, up 3-2 against his French rival, who is spraying the court with unforced errors – a glaring 33 so far.
Andy Murray’s second serve is looking particularly poor today. Tsonga's held for the pair to go 1-1 in the fourth set now. Murray holds for a 2-1 lead and he’s celebrating every single point right now. Tsonga takes his service game to lead 2-2 in a match that is decidedly crawling along.
Sportsmanship isn’t lost though. Tsonga takes a bit of a spill, but a concerned Murray looks to see if his rival is OK. And the game commences – and Murray takes it! He leads 1-0 in the fourth. Will this be the last?
Today’s a day of comebacks, it would seem! Jo-Wilfried Tsonga, down two sets, has now taken the third 6-3. Although he’s outhit Murray on the winners, he’s committed 3 times as many unforced errors. Not a good statistic going into a Grand Slam semi-final ....or so Tsonga would hope.
Good tenacity from Andy Murray! Three errors in a row – two forced and an unforced error to cap off, give Murray the game. Tsonga still leads 5-3, though, and will serve for the set. Murray’s running up to the net like a man possessed as he tries to get the ball past his tall French rival.
An unforced error from Jo-Wilfried Tsonga, but he immediately comes back with a brilliant winner to flummox Murray! It’s now break and set point Jo-Wilfried Tsonga!
Andy Murray began that game looking as though he could break Jo-Wilfried Tsonga, but now it's looking increasingly difficult. Tsonga is leading 5-2 in the third set and Murray is now serving to stay in the set. A four setter, or five?
Finally Andy Murray holds! He’s trailing 2-4 in the third set, and it’s looking like Tsonga will force a fourth. Can he pull it back from two games down? The Frenchman has been better on his first serves, much more so than his Scottish opponent.
Andy Murray looked like he was leading this easily and suddenly, things are running away from him desperately! Tsonga’s leading 4-1 in the fourth set and it’s now Andy Murray’s turn to serve. Neither player has been particularly bad tonight, though.
Set 3, and Tsonga’s trying to get control right back! He’s up 2-1 in the third and at break point – and he’s BROKEN! But Andy Murray is challenging. That shot’s way out – and he’s broken for 3-1!
Set 2, Game 7- Murray is on serve, and he’s winning, but incredibly patchy. He’s got a 5-1 lead, but at the moment he’s even up and down within a single game, jumping from errors to winners with worrying speed. Nevertheless, he’s won the game – and the set, 6-1! He now leads two sets to love and it’s all going southwards for Tsonga.
Murray serves and he’s held! 4-0, and Andy’s mother and first coach, Judy Murray, is disinterested in the match too. She’s seen texting now. Her other son, Jamie Murray, went down with partner Bruno Soares in the men’s doubles, but second seeded Andy is making a meal of Tsonga at the moment, so it isn’t all bad news for the family.
Set 2, Game 3 – Tsonga serves and delivers a bunch of howlers. Between Murray's aces and Tsonga’s own unforced errors, this set appears to be running away from him rather quickly.. Murray’s broken again to go 3-0!
Set 2, Game 2 – Murray serves and holds! He’s quickly built on the break to go up 2-0 and Tsonga’s not looking quite the same. He’s attempting a few lofty shots, but his placement appears to be off and the overall energy of the match doesn’t seem to be as electric as one may have expected.
Set 2, Game 1 – Tsonga starts to serve. TWO unforced errors in that game and Tsonga is choking and generally being a bit patchy at the moment. Neither player appears to be playing at their best right now. Murray breaks him to go 1-0!
First set tiebreak! That took forever and a half. 6-6, 9-9 and 10-10 and FINALLY, it’s Murray who wins the tiebreak. Tsonga’s shots have been going a bit all over the place, but some great rallies from both have seen a bit of classic serve and volley, a welcome change from the baseline play that seems to have become standard for tennis now. 12-10 to Andy Murray in the first set, with the Scot leading, a set up against his 12th seeded rival.
Set 1, Game 12 – Murray serves and holds, but he looks like he’s choking. Tsonga’s taken this to a first set tiebreak, one that Murray’s leading at the moment.
Set 1, Game 8 – Murray serves, but he's looking a bit iffy. Tsonga, meanwhile, has found a renewed source of energy – and form! He breaks the Scot back 4-4.
Set 1, Game 7 – Tsonga serves, and Murray’s slicing forehands all over the place. Still, Tsonga’s looking in good nick today, rebutting any naysayers. He’s held for 4-3.
Set 1, Game 6 - Murray serves, and Murray builds! That was a long, long game that went back and forth with Tsonga looking for the break back. Still, Murray’s ahead 4-2; but it might be a long contest tonight!
Set 1, Game 5 – Tsonga serves. Murray’s tightening his hold on Tsonga now and is looking for the chance to take an early break! It’s now break point for Tsonga. And Murray takes the early break! He’s leading 3-2 now and will serve next to build on that break.
Set 1, Game 4 – Murray serves and holds, but Tsonga’s had two aces to Murray’s none. He’s also had a more error-strewn game, though. 2-2.
Set 1, Game 3 - Tsonga serves. This match is chugging along tamely – and there’s a Colonel Sanders lookalike watching this match, apparently. Scores at 2-1.
Set 1, Game 2 – Murray serves and holds in return. He’s got something in his eye now, and looks uncomfortable for a moment.
Set 1, Game 1 – Tsonga serves, Tsonga holds. Relatively tame start to this match especially after the firecrackers in Federer’s 5-set victory over Marin Cilic earlier.
And they're on court! On the basis of statistics alone, it's looking like Murray’s match to lose!
After Roger Federer’s loss to Marin Cilic on Centre Court, it’s the chance of 2013 Wimbledon champion Andy Murray to take to court, to play tall Frenchman Jo-Wilfried Tsonga. Tsonga has progressed to the quarterfinals courtesy a retirement by injured compatriot Richard Gasquet, who looked strong in the tournament upto then. Murray is the favourite to win the tournament in the absence of defending champion Novak Djokovic, and given his performances so far should not have too much of a problem cruising to victory.
The pair have met each other 15 times previously on court, and Murray has thoroughly dominated their outings, winning 13 of those. Of the four times the pair have played each other on grass, Murray has won 3 matches; two of those were at Wimbledon, once in 2010, with a straight sets win for the Scot, and the second time in 2014, when Tsonga scalped a set off Murray but was unable to do much more.
Their last Grand Slam meeting came at the 2014 US Open, with Murray winning in straight sets. All things considered, the Scot, who is fresh off a grass-court title win at the Queen’s Club Championship, is on a high. He’s also won on clay this year and reached the finals of every Grand Slam so far this year - a streak he will want to continue.
The title at the Queen’s Club was Murray’s fifth at the venue and he’s shown proficiency across surfaces this year. Could he take another Wimbledon title? It’s certainly looking like it could be the case. With a new daughter now watching him, Murray has had a renewed vigour in his game, but his once-incendiary demeanour seems also to have calmed down since.
Follow the action live from Centre Court!
| english |
<gh_stars>1-10
/**
* Copyright information and license terms for this software can be
* found in the file LICENSE.TXT included with the distribution.
*/
package org.epics.gpclient.datasource.sim;
import java.time.Duration;
import java.time.Instant;
import org.epics.util.array.ArrayInteger;
import org.epics.util.array.ListDouble;
import org.epics.util.stats.Range;
import org.epics.vtype.Alarm;
import org.epics.vtype.Display;
import org.epics.vtype.Time;
import org.epics.vtype.VDoubleArray;
/**
* Function to simulate a 2D waveform containing a sine wave.
*
* @author carcassi
*/
public class Square2DWaveform extends SimFunction<VDoubleArray> {
private final double periodInSeconds;
private final double wavelengthInSamples;
private final int xSamples;
private final int ySamples;
private final double angle;
private Instant initialReference;
/**
* Creates sine wave of 100 samples, with period of 1 second, wavelength of
* 100 samples along the x axis, updating every 500ms (2Hz).
*/
public Square2DWaveform() {
this(1.0, 100.0, DEFAULT_INTERVAL);
}
/**
* Creates sine wave of 100 samples, with given period and given wavelength of
* 100 samples along the x axis, updating at given rate.
*
* @param periodInSeconds the period measured in seconds
* @param wavelengthInSamples the wavelength measured in samples
* @param updateRateInSeconds the update rate in seconds
*/
public Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double updateRateInSeconds) {
this(periodInSeconds, wavelengthInSamples, 100.0, updateRateInSeconds);
}
/**
* Creates sine wave of 100 samples, with given period and given wavelength of
* given number of samples along the x axis, updating at given rate.
*
* @param periodInSeconds the period measured in seconds
* @param wavelengthInSamples the wavelength measured in samples
* @param nSamples the number of samples
* @param updateRateInSeconds the update rate in seconds
*/
public Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double nSamples, Double updateRateInSeconds) {
this(periodInSeconds, wavelengthInSamples, 0.0, nSamples, nSamples, updateRateInSeconds);
}
/**
* Creates sine wave with given parameters.
*
* @param periodInSeconds the period measured in seconds
* @param wavelengthInSamples the wavelength measured in samples
* @param angle the direction of propagation for the wave
* @param xSamples number of samples on the x direction
* @param ySamples number of samples on the y direction
* @param updateRateInSeconds the update rate in seconds
*/
public Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double angle, Double xSamples, Double ySamples, Double updateRateInSeconds) {
super(updateRateInSeconds, VDoubleArray.class);
this.periodInSeconds = periodInSeconds;
this.wavelengthInSamples = wavelengthInSamples;
this.xSamples = xSamples.intValue();
this.ySamples = ySamples.intValue();
this.angle = angle;
if (this.xSamples <= 0 || this.ySamples <= 0) {
throw new IllegalArgumentException("Number of sample must be a positive integer.");
}
}
private ListDouble generateNewValue(final double omega, final double t, double k) {
final double kx = Math.cos(angle * Math.PI / 180.0) * k;
final double ky = Math.sin(angle * Math.PI / 180.0) * k;
return new ListDouble() {
@Override
public double getDouble(int index) {
int x = index % xSamples;
int y = index / xSamples;
double length = (omega * t + kx* x + ky * y) / (2 * Math.PI);
double normalizedPositionInPeriod = length - (double) (long) length;
if (normalizedPositionInPeriod < 0.5) {
return 1.0;
} else if (normalizedPositionInPeriod < 1.0) {
return -1.0;
} else {
return 1.0;
}
}
@Override
public int size() {
return xSamples*ySamples;
}
};
}
private static Range UNIT_RANGE = Range.of(-1.0, 1.0);
private static Display DISPLAY = Display.of(UNIT_RANGE, UNIT_RANGE.shrink(0.9), UNIT_RANGE.shrink(0.8), Range.undefined(), "", Display.defaultNumberFormat());
@Override
VDoubleArray nextValue(Instant instant) {
if (initialReference == null) {
initialReference = instant;
}
double t = Duration.between(initialReference, instant).getSeconds();
double omega = 2 * Math.PI / periodInSeconds;
double k = 2 * Math.PI / wavelengthInSamples;
return VDoubleArray.of(generateNewValue(omega, t, k), ArrayInteger.of(ySamples, xSamples), Alarm.none(),
Time.of(instant), DISPLAY);
}
}
| java |
Twitch star Zack "Asmongold" collaborated with McconnellRet to watch the new World of Warcraft announcements. During the second day of BlizzCon 2023, the MMORPG's Director, Ion Hazzikostas, revealed a list of new hero specializations known as Hero Talents.
This is an update to the existing talent trees, in which players will receive "Hero Talent Points" instead of the new talent points introduced with each expansion.
Asmongold and McconnellRet were surprised to see this, with the One True King (OTK) co-founder exclaiming joyfully:
"Templar! Templar! Herald of the Sun! Holy s**t! There it is! Deathbringer! Rider of the Apocalypse - wait, what? Are they going to give DKs (Death Knights) a mount? Are they going to ride in the combat? No way!"
Commenting on the new World of Warcraft feature, Asmongold said:
"Wow! I can't believe they're actually doing ascendencies. That's bad a*s! (McconnellRet says the feature is 'pretty dope') Yeah!
Asmongold's reaction to the new Hero Talents in World of Warcraft: The War Within has garnered over 290 comments. Here's a snapshot of some notable ones:
According to one fan, Hero Talents resembled Dungeons & Dragons' subclasses. Meanwhile, another community member believed Death Knights and Paladins had the "most interesting" specializations.
What are the new hero specializations in World of Warcraft: The War Within?
A total of 39 new specializations were revealed at the World of Warcraft: The War Within panel on the second day of BlizzCon 2023. Here's the list that Blizzard Entertainment showcased at the event:
Death Knight:
Demon Hunter:
In an exclusive interview with Sportskeeda, Ion Hazzikostas shared some more details about the upcoming feature, saying:
"There are 39 total Hero Talent trees. Basically, there are 39 specializations, 39 trees. Each one has two available. So every class will have three to choose from - except Druids have four, and Demon Hunters have two. Those are gonna be tailored to a wide range of fantasies: Past expansions, past heroes, it’s something we’re going to be looking forward to getting feedback from the community about.
He added:
"We're well into building many of these, but not all of them. There’s room to pivot. When it’s announced, and we start hearing from Priests, that they’re super into the Raven idea you just mentioned, that’s something the team could chase."
At the time of writing, World of Warcraft: The War Within has no official release date. However, Blizzard Entertainment has announced that it will be released in 2024 and is currently available for pre-order.
| english |
The mortuaries at BYL Nair Hospital in Mumbai Central and Lokmanya Tilak Municipal General Hospital at Sion have been shut — the former for over two-and-a-half months now and the latter for the last 15 days. Both the hospitals are transferring bodies to other hospitals in the city, causing inconvenience to the relatives of the deceased.
On October 31, the cooling system of Sion Hospital’s morgue collapsed, following which the dead bodies at the morgue had to be relocated. “Of the 42 bodies, 32 had to be transferred immediately to various hospitals as they were decomposing,” said an attendant at the hospital’s mortuary.
Bodies are now being sent to R N Cooper Hospital in Andheri, Bhabha Hospital in Bandra and to Rajawadi Hospital in Ghatkopar for post-mortem. “Relatives of the dead are getting aggressive as there is a delay in conducting post-mortem. Patients who died at Sion Hospital and require autopsy, their bodies are being sent to other hospitals. Their relatives are running from one place to other,” said a source at the hospital.
“It takes a lot of time in arranging a vehicle. Also, the forensic doctor from Sion Hospital will go to other hospitals for post-mortem which is time consuming,” said the attendant.
Apparently, the mortuary at Sion Hospital, next to the CT scan centre, was meant to be a temporary one for two years after the old mortuary was demolished. But, it continues to operate from that makeshift location for over a decade now. “For over 12 years, the post-mortem centre is functioning in a makeshift area without any renovations. The department is completely neglected,” said the source.
However, the hospital’s dean denied that the mortuary and the post-mortem room is a makeshift one. “It was only recently renovated,” said Dr Sandhya Kamat, Dean, Sion Hospital. “There is some technical fault in air-conditioning at the morgue, so we have asked to shift the bodies and have made alternate arrangements. The mortuary will be functional in a few days,” Dr Kamat said. The state-of-the-art forensic medicine complex at Sion Hospital that had to start by 2005 is still under construction. “By next year, the complex will be functional,” Dr Kamat said.
Meanwhile, for over two-and-a-half months, Nair Hospital has been sending bodies to JJ Hospital for storage as the newly-fitted cold storage boxes were found to be substandard. “We are not accepting unclaimed bodies as there is no space to keep them. All the bodies are transferred to JJ Hospital for storage. However, autopsies of claimed bodies are conducted at Nair Hospital,” said a source at Nair Hospital.
“The morgue had a capacity of 24 boxes for bodies. Eight new boxes were introduced, but they were substandard. Presently, only eight boxes are working but are not in good condition,” said the source.
| english |
"""Unit tests for netbox_onboarding.onboard module and its classes.
(c) 2020 Network To Code
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.
"""
from django.conf import settings
from django.test import TestCase
from django.utils.text import slugify
from dcim.models import Site, Manufacturer, DeviceType, DeviceRole, Device, Interface, Platform
from ipam.models import IPAddress
# from netbox_onboarding.netbox_keeper import NetdevKeeper
from netbox_onboarding.exceptions import OnboardException
from netbox_onboarding.netbox_keeper import NetboxKeeper
PLUGIN_SETTINGS = settings.PLUGINS_CONFIG["netbox_onboarding"]
class NetboxKeeperTestCase(TestCase):
"""Test the NetboxKeeper Class."""
def setUp(self):
"""Create a superuser and token for API calls."""
self.site1 = Site.objects.create(name="USWEST", slug="uswest")
def test_ensure_device_manufacturer_strict_missing(self):
"""Verify ensure_device_manufacturer function when Manufacturer object is not present."""
PLUGIN_SETTINGS["object_match_strategy"] = "strict"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_manufacturer(create_manufacturer=False)
self.assertEqual(exc_info.exception.message, "ERROR manufacturer not found: Cisco")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_manufacturer(create_manufacturer=True)
self.assertIsInstance(nbk.nb_manufacturer, Manufacturer)
self.assertEqual(nbk.nb_manufacturer.slug, slugify(onboarding_kwargs["netdev_vendor"]))
def test_ensure_device_manufacturer_loose_missing(self):
"""Verify ensure_device_manufacturer function when Manufacturer object is not present."""
PLUGIN_SETTINGS["object_match_strategy"] = "loose"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_manufacturer(create_manufacturer=False)
self.assertEqual(exc_info.exception.message, "ERROR manufacturer not found: Cisco")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_manufacturer(create_manufacturer=True)
self.assertIsInstance(nbk.nb_manufacturer, Manufacturer)
self.assertEqual(nbk.nb_manufacturer.slug, slugify(onboarding_kwargs["netdev_vendor"]))
def test_ensure_device_type_strict_missing(self):
"""Verify ensure_device_type function when DeviceType object is not present."""
PLUGIN_SETTINGS["object_match_strategy"] = "strict"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.nb_manufacturer = Manufacturer.objects.create(name="Cisco", slug="cisco")
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_type(create_device_type=False)
self.assertEqual(exc_info.exception.message, "ERROR device type not found: CSR1000v")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_type(create_device_type=True)
self.assertIsInstance(nbk.nb_device_type, DeviceType)
self.assertEqual(nbk.nb_device_type.slug, slugify(onboarding_kwargs["netdev_model"]))
def test_ensure_device_type_loose_missing(self):
"""Verify ensure_device_type function when DeviceType object is not present."""
PLUGIN_SETTINGS["object_match_strategy"] = "loose"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.nb_manufacturer = Manufacturer.objects.create(name="Cisco", slug="cisco")
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_type(create_device_type=False)
self.assertEqual(exc_info.exception.message, "ERROR device type not found: CSR1000v")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_type(create_device_type=True)
self.assertIsInstance(nbk.nb_device_type, DeviceType)
self.assertEqual(nbk.nb_device_type.slug, slugify(onboarding_kwargs["netdev_model"]))
def test_ensure_device_type_strict_present(self):
"""Verify ensure_device_type function when DeviceType object is already present."""
PLUGIN_SETTINGS["object_match_strategy"] = "strict"
manufacturer = Manufacturer.objects.create(name="Juniper", slug="juniper")
device_type = DeviceType.objects.create(slug="srx3600", model="SRX3600", manufacturer=manufacturer)
onboarding_kwargs = {
"netdev_hostname": "device2",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Juniper",
"netdev_nb_device_type_slug": device_type.slug,
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.nb_manufacturer = manufacturer
nbk.ensure_device_type(create_device_type=False)
self.assertEqual(nbk.nb_device_type, device_type)
def test_ensure_device_type_loose_present(self):
"""Verify ensure_device_type function when DeviceType object is already present."""
PLUGIN_SETTINGS["object_match_strategy"] = "loose"
manufacturer = Manufacturer.objects.create(name="Juniper", slug="juniper")
device_type = DeviceType.objects.create(slug="srx3600", model="SRX3600", manufacturer=manufacturer)
onboarding_kwargs = {
"netdev_hostname": "device2",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Juniper",
"netdev_nb_device_type_slug": device_type.slug,
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.nb_manufacturer = manufacturer
nbk.ensure_device_type(create_device_type=False)
self.assertEqual(nbk.nb_device_type, device_type)
def test_ensure_device_role_not_exist(self):
"""Verify ensure_device_role function when DeviceRole does not already exist."""
test_role_name = "mytestrole"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": test_role_name,
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_role(create_device_role=False)
self.assertEqual(exc_info.exception.message, f"ERROR device role not found: {test_role_name}")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_role(create_device_role=True)
self.assertIsInstance(nbk.nb_device_role, DeviceRole)
self.assertEqual(nbk.nb_device_role.slug, slugify(test_role_name))
def test_ensure_device_role_exist(self):
"""Verify ensure_device_role function when DeviceRole exist but is not assigned to the OT."""
device_role = DeviceRole.objects.create(name="Firewall", slug="firewall")
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": device_role.slug,
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device_role(create_device_role=False)
self.assertEqual(nbk.nb_device_role, device_role)
#
def test_ensure_device_role_assigned(self):
"""Verify ensure_device_role function when DeviceRole exist and is already assigned."""
device_role = DeviceRole.objects.create(name="Firewall", slug="firewall")
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": device_role.slug,
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_nb_site_slug": self.site1.slug,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device_role(create_device_role=True)
self.assertEqual(nbk.nb_device_role, device_role)
def test_ensure_device_instance_not_exist(self):
"""Verify ensure_device_instance function."""
serial_number = "123456"
platform_slug = "cisco_ios"
hostname = "device1"
onboarding_kwargs = {
"netdev_hostname": hostname,
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": platform_slug,
"netdev_serial_number": serial_number,
"netdev_mgmt_ip_address": "192.0.2.10",
"netdev_mgmt_ifname": "GigaEthernet0",
"netdev_mgmt_pflen": 24,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device()
self.assertIsInstance(nbk.device, Device)
self.assertEqual(nbk.device.name, hostname)
self.assertEqual(nbk.device.status, PLUGIN_SETTINGS["default_device_status"])
self.assertEqual(nbk.device.platform.slug, platform_slug)
self.assertEqual(nbk.device.serial, serial_number)
def test_ensure_device_instance_exist(self):
"""Verify ensure_device_instance function."""
manufacturer = Manufacturer.objects.create(name="Cisco", slug="cisco")
device_role = DeviceRole.objects.create(name="Switch", slug="switch")
device_type = DeviceType.objects.create(slug="c2960", model="c2960", manufacturer=manufacturer)
device_name = "test_name"
device = Device.objects.create(
name=device_name,
site=self.site1,
device_type=device_type,
device_role=device_role,
status="planned",
serial="987654",
)
onboarding_kwargs = {
"netdev_hostname": device_name,
"netdev_nb_role_slug": "switch",
"netdev_vendor": "Cisco",
"netdev_model": "c2960",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": "cisco_ios",
"netdev_serial_number": "123456",
"netdev_mgmt_ip_address": "192.0.2.10",
"netdev_mgmt_ifname": "GigaEthernet0",
"netdev_mgmt_pflen": 24,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device()
self.assertIsInstance(nbk.device, Device)
self.assertEqual(nbk.device.pk, device.pk)
self.assertEqual(nbk.device.name, device_name)
self.assertEqual(nbk.device.platform.slug, "cisco_ios")
self.assertEqual(nbk.device.serial, "123456")
def test_ensure_interface_not_exist(self):
"""Verify ensure_interface function when the interface do not exist."""
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": "cisco_ios",
"netdev_serial_number": "123456",
"netdev_mgmt_ip_address": "192.0.2.10",
"netdev_mgmt_ifname": "ge-0/0/0",
"netdev_mgmt_pflen": 24,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device()
self.assertIsInstance(nbk.nb_mgmt_ifname, Interface)
self.assertEqual(nbk.nb_mgmt_ifname.name, "ge-0/0/0")
def test_ensure_interface_exist(self):
"""Verify ensure_interface function when the interface already exist."""
manufacturer = Manufacturer.objects.create(name="Cisco", slug="cisco")
device_role = DeviceRole.objects.create(name="Switch", slug="switch")
device_type = DeviceType.objects.create(slug="c2960", model="c2960", manufacturer=manufacturer)
device_name = "test_name"
netdev_mgmt_ifname = "GigaEthernet0"
device = Device.objects.create(
name=device_name,
site=self.site1,
device_type=device_type,
device_role=device_role,
status="planned",
serial="987654",
)
intf = Interface.objects.create(name=netdev_mgmt_ifname, device=device)
onboarding_kwargs = {
"netdev_hostname": device_name,
"netdev_nb_role_slug": "switch",
"netdev_vendor": "Cisco",
"netdev_model": "c2960",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": "cisco_ios",
"netdev_serial_number": "123456",
"netdev_mgmt_ip_address": "192.0.2.10",
"netdev_mgmt_ifname": netdev_mgmt_ifname,
"netdev_mgmt_pflen": 24,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device()
self.assertEqual(nbk.nb_mgmt_ifname, intf)
def test_ensure_primary_ip_not_exist(self):
"""Verify ensure_primary_ip function when the IP address do not already exist."""
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_nb_role_color": PLUGIN_SETTINGS["default_device_role_color"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": "cisco_ios",
"netdev_serial_number": "123456",
"netdev_mgmt_ip_address": "192.0.2.10",
"netdev_mgmt_ifname": "ge-0/0/0",
"netdev_mgmt_pflen": 24,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device()
self.assertIsInstance(nbk.nb_primary_ip, IPAddress)
self.assertIn(nbk.nb_primary_ip, Interface.objects.get(device=nbk.device, name="ge-0/0/0").ip_addresses.all())
self.assertEqual(nbk.device.primary_ip, nbk.nb_primary_ip)
def test_ensure_device_platform_missing(self):
"""Verify ensure_device_platform function when Platform object is not present."""
platform_name = "cisco_ios"
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
"netdev_nb_platform_slug": platform_name,
"netdev_netmiko_device_type": platform_name,
}
nbk = NetboxKeeper(**onboarding_kwargs)
with self.assertRaises(OnboardException) as exc_info:
nbk.ensure_device_platform(create_platform_if_missing=False)
self.assertEqual(exc_info.exception.message, f"ERROR device platform not found: {platform_name}")
self.assertEqual(exc_info.exception.reason, "fail-config")
nbk.ensure_device_platform(create_platform_if_missing=True)
self.assertIsInstance(nbk.nb_platform, Platform)
self.assertEqual(nbk.nb_platform.slug, slugify(platform_name))
def test_ensure_platform_present(self):
"""Verify ensure_device_platform function when Platform object is present."""
platform_name = "juniper_junos"
manufacturer = Manufacturer.objects.create(name="Juniper", slug="juniper")
device_type = DeviceType.objects.create(slug="srx3600", model="SRX3600", manufacturer=manufacturer)
platform = Platform.objects.create(slug=platform_name, name=platform_name,)
onboarding_kwargs = {
"netdev_hostname": "device2",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Juniper",
"netdev_nb_device_type_slug": device_type.slug,
"netdev_nb_site_slug": self.site1.slug,
"netdev_nb_platform_slug": platform_name,
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device_platform(create_platform_if_missing=False)
self.assertIsInstance(nbk.nb_platform, Platform)
self.assertEqual(nbk.nb_platform, platform)
self.assertEqual(nbk.nb_platform.slug, slugify(platform_name))
def test_platform_map(self):
"""Verify platform mapping of netmiko to slug functionality."""
# Create static mapping
PLUGIN_SETTINGS["platform_map"] = {"cisco_ios": "ios", "arista_eos": "eos", "cisco_nxos": "cisco-nxos"}
onboarding_kwargs = {
"netdev_hostname": "device1",
"netdev_nb_role_slug": PLUGIN_SETTINGS["default_device_role"],
"netdev_vendor": "Cisco",
"netdev_model": "CSR1000v",
"netdev_nb_site_slug": self.site1.slug,
"netdev_netmiko_device_type": "cisco_ios",
}
nbk = NetboxKeeper(**onboarding_kwargs)
nbk.ensure_device_platform(create_platform_if_missing=True)
self.assertIsInstance(nbk.nb_platform, Platform)
self.assertEqual(nbk.nb_platform.slug, slugify(PLUGIN_SETTINGS["platform_map"]["cisco_ios"]))
self.assertEqual(
Platform.objects.get(name=PLUGIN_SETTINGS["platform_map"]["cisco_ios"]).name,
slugify(PLUGIN_SETTINGS["platform_map"]["cisco_ios"]),
)
| python |
Netflix's latest release, Riverdance: The Animated Adventure, is not just a story about dancing and traditions, but how the death of a loved one affects a person.
Starring Sam Hardy as Keegan's voice, the film revolves around the young boy and his journey into the mythical world of spirit deer, where he learns the importance of Riverdance and how to overcome grief.
It's time to understand the takeaway from Netflix's Riverdance: The Animated Adventure.
Note: This article contains spoilers.
Coping with grief in 'Riverdance: The Animated Adventure'
Riverdance: The Animated Adventure deals with hard-hitting emotions like grief and loss through its touching story. At first glance, the film seems like a musical about dancing and Irish traditions. Sure, they play a big part in the film, but at its very core, the film teaches viewers about loss.
The movie follows Keegan and his journey of coping with the loss of his grandfather, Patrick. The latter was the keeper of the lighthouse, a very talented dancer and a hurling player. After his death, Keegan refuses to dance, play hurling or even light up the lighthouse.
It is also a metaphor for Keegan's mental state after the loss, he refuses to see any light in his life and lets darkness take over him. This makes him even more vulnerable to the powers of the Huntsman, who only comes out when the darkness welcomes him.
At Patrick's funeral, people are asked to celebrate his life instead of mourning his demise. The mourners then paid tribute to Patrick's life with some Irish dancing in the rain, which Keegan refused to be a part of.
Later he encounters Moya, who is also dealing with the loss of her grandmother. The two then set out on a journey into the mythical world of the magical deer where time is suspended. These spirited deer and dancers teach the two kids about Riverdance and its importance.
Riverdance: The Animated Adventure also puts emphasis on the aftermath of a loved one's passing. The film shows how one doesn't have to dwell on it forever. Instead, they can keep their memory alive by passing down their stories and traditions.
By shedding light on Keegan's struggles with grief, Riverdance: The Animated Adventure portrays loss and healing in an incredibly honest way. However, it also knows how to balance such heavy topics with fantasy elements like the spirit deer guiding Keegan through his grief.
Thanks to the magical dancing deer, Keegan eventually gets back on his feet, accepts help from others, plays hurling, dances again and goes back to DJing. His newfound courage helped him overcome his terrifying encounter with the Huntsman.
Overcoming loss, especially of someone close, is not easy and does not happen overnight. But Keegan learns that one can find joy in the little things and keep their purpose alive - chasing out the darkness whenever it threatens to break through.
Catch the Irish folklore in Riverdance: The Animated Adventure, now streaming on Netflix.
| english |
<filename>docs/web/mandarine/mandarine-security/authentication-userdetailsservice.md
# User Details Service
---------
## Overview
The User Details Service is a Mandarine-powered component (_preferably annotated with `@Service`_) which has a single responsability. This single responsability is to fetch a specific user from a collection of `Mandarine.Types.UserDetails`.
An User Details Service must implement `Mandarine.Types.UserDetailsService` otherwise it will result in failure at MCT (Mandarine Compile Time).
## `Mandarine.Types.UserDetailsService` interface
```typescript
export interface UserDetailsService {
/**
* Locates the user based on the username.
*
* @param username the username identifying the user whose data is required.
*
* @returns A user record with an implementation of UserDetails
*
* @throws MandarineSecurityException if no user was found.
*/
loadUserByUsername: (username: string) => Mandarine.Types.UserDetails;
}
```
- loadUserByUsername
- Fetches an user based on an username from a collection that implements `Mandarine.Types.UserDetails`.
## Basic Usage
```typescript
import { Service, Mandarine } from "https://deno.land/x/mandarinets@v2.3.2/mod.ts";
@Service()
export class UserDetailsServiceImplementation implements Mandarine.Security.Auth.UserDetailsService {
public users: Array<Mandarine.Types.UserDetails> = new Array<Mandarine.Types.UserDetails>();
public loadUserByUsername(username: string) {
return this.users.find((item: Mandarine.Types.UserDetails) => item.username === username);
}
}
``` | markdown |
Today I realized that I am quite self-centered, a revelation that took me by surprise. The voices of those dissatisfied resonate in my mind.
I have reflected on this on numerous occasions, Is this really who I am? I deliberately silence that thought, avoiding confronting my answer. The harsh reality is something that terrifies me.
I discovered that my soul finds happiness in the midst of the pages of a movie. Ideas are my escape, my tunnel.
However, I am not willing to abandon my world, as I have found beauty in the simplest things. I cannot accept that this beauty has faded. When the clouds resemble breadcrumbs, there are somber sunsets that burn like fire, and loneliness confuses and drives me crazy.
The stars in the sky are science fiction, and then every argument dismembers me. There is no such thing as a common moment, not when you love everything around you.
Today, I came to understand my own isolation. I want both things, but uniting these two worlds would require something akin to magic, something that seems unattainable. Where can I find that place where anything is possible? Where can I go in search of relief?
I sit in my living room, contemplating, looking out the window as cars pass by on the street. My cup of coffee has gone untouched for a while. It is now cold as I sink deeper into my thoughts. I watch the birds fly in a flurry, hoping that the answer will catch up with me. Just thinking does more harm.
How do I free myself from my ego? I eagerly await an answer that will come and give me the light I need.
| english |
# Green Connections Network
## Dataset
| Name | Value |
| :--- | :---- |
| Catalog | [Link](https://catalog.data.gov/dataset/green-connections-network-3fdfa) |
| Metadata | [Link](https://data.sfgov.org/api/views/q8g4-wqta) |
| Data: JSON | [100 Rows](https://data.sfgov.org/api/views/q8g4-wqta/rows.json?max_rows=100) |
| Data: CSV | [100 Rows](https://data.sfgov.org/api/views/q8g4-wqta/rows.csv?max_rows=100) |
| Host | data.sfgov.org |
| Id | q8g4-wqta |
| Name | Green Connections Network |
| Category | Energy and Environment |
| Tags | planning |
| Created | 2016-07-28T21:18:39Z |
| Publication Date | 2016-08-19T21:36:05Z |
## Description
Green Connections aims to increase access to parks, open spaces, and the waterfront by envisioning a network of green connectors -- city streets that will be upgraded incrementally over the next 20 years to make it safer and more pleasant to travel to parks by walking, biking, and other forms of active transportation. The dataset is a zipped GIS shapefile of the Green Connections Network which is shown in this map: http://www.sf-planning.org/ftp/files/Citywide/green_connections/GC_Final_Network_Map_03-2014.pdf. Further information can be found on the Green Connections website: http://greenconnections.sfplanning.org
## Columns
```ls
| Included | Schema Type | Field Name | Name | Data Type | Render Type |
| ======== | ============== | =========== | ========== | ========= | =========== |
| No | time | :updated_at | updated_at | meta_data | meta_data |
| Yes | numeric metric | cnn | cnn | number | number |
| Yes | series tag | gc_rt_name | gc_rt_name | text | text |
| Yes | series tag | gc_rt_nmbr | gc_rt_nmbr | text | text |
| Yes | numeric metric | lf_fadd | lf_fadd | number | number |
| Yes | numeric metric | lf_toadd | lf_toadd | number | number |
| Yes | series tag | objectid | objectid | text | number |
| Yes | numeric metric | rt_fadd | rt_fadd | number | number |
| Yes | numeric metric | rt_toadd | rt_toadd | number | number |
| Yes | series tag | street | street | text | text |
| Yes | series tag | st_type | st_type | text | text |
| Yes | series tag | geometry | geometry | line | line |
| Yes | series tag | multigeom | multigeom | checkbox | checkbox |
```
## Time Field
```ls
Value = updated_at
Format & Zone = seconds
```
## Data Commands
```ls
series e:q8g4-wqta d:2016-08-19T04:00:50.000Z t:gc_rt_nmbr=14 t:gc_rt_name="Presidio to Park Merced" t:street=22ND t:multigeom=false t:st_type=AVE t:objectid=181899 t:geometry="LINESTRING (-122.48111286328042 37.77458337860856, -122.48097876563916 37.77271628309879)" m:lf_fadd=700 m:rt_toadd=799 m:lf_toadd=798 m:rt_fadd=701 m:cnn=1138000
series e:q8g4-wqta d:2016-08-19T04:00:50.000Z t:gc_rt_nmbr=2 t:gc_rt_name="China Beach to Bay" t:street=WASHINGTON t:multigeom=false t:st_type=ST t:objectid=168499 t:geometry="LINESTRING (-122.41053787168633 37.79463122541162, -122.41136404327203 37.794526652839004)" m:lf_fadd=1051 m:rt_toadd=1098 m:lf_toadd=1099 m:rt_fadd=1058 m:cnn=13423000
series e:q8g4-wqta d:2016-08-19T04:00:50.000Z t:gc_rt_nmbr=8/24 t:gc_rt_name="Noe Valley to Central Waterfront/Shoreline" t:street=ILLINOIS t:multigeom=false t:st_type=ST t:objectid=175410 t:geometry="LINESTRING (-122.38706585219497 37.75544622090616, -122.38693869664368 37.75416779649186)" m:lf_fadd=1301 m:rt_toadd=1398 m:lf_toadd=1399 m:rt_fadd=1300 m:cnn=7172000
```
## Meta Commands
```ls
metric m:cnn p:long l:cnn t:dataTypeName=number
metric m:lf_fadd p:long l:lf_fadd t:dataTypeName=number
metric m:lf_toadd p:long l:lf_toadd t:dataTypeName=number
metric m:rt_fadd p:long l:rt_fadd t:dataTypeName=number
metric m:rt_toadd p:long l:rt_toadd t:dataTypeName=number
entity e:q8g4-wqta l:"Green Connections Network" t:url=https://data.sfgov.org/api/views/q8g4-wqta
property e:q8g4-wqta t:meta.view v:id=q8g4-wqta v:category="Energy and Environment" v:averageRating=0 v:name="Green Connections Network"
property e:q8g4-wqta t:meta.view.license v:name="Open Data Commons Public Domain Dedication and License" v:termsLink=http://opendatacommons.org/licenses/pddl/1.0/
property e:q8g4-wqta t:meta.view.owner v:id=dbag-6qd9 v:screenName=OpenData v:displayName=OpenData
property e:q8g4-wqta t:meta.view.tableauthor v:id=dbag-6qd9 v:screenName=OpenData v:roleName=publisher v:displayName=OpenData
```
## Top Records
```ls
| :updated_at | cnn | gc_rt_name | gc_rt_nmbr | lf_fadd | lf_toadd | objectid | rt_fadd | rt_toadd | street | st_type | geometry | multigeom |
| =========== | ========== | ========================================== | ========== | ======= | ======== | ======== | ======= | ======== | ========== | ======= | ========================================================================================================================================================================================================================================================================================== | ========= |
| 1471579250 | 1138000.0 | Presidio to Park Merced | 14 | 700.0 | 798.0 | 181899 | 701.0 | 799.0 | 22ND | AVE | LINESTRING (-122.48111286328042 37.77458337860856, -122.48097876563916 37.77271628309879) | false |
| 1471579250 | 13423000.0 | China Beach to Bay | 2 | 1051.0 | 1099.0 | 168499 | 1058.0 | 1098.0 | WASHINGTON | ST | LINESTRING (-122.41053787168633 37.79463122541162, -122.41136404327203 37.794526652839004) | false |
| 1471579250 | 7172000.0 | Noe Valley to Central Waterfront/Shoreline | 8/24 | 1301.0 | 1399.0 | 175410 | 1300.0 | 1398.0 | ILLINOIS | ST | LINESTRING (-122.38706585219497 37.75544622090616, -122.38693869664368 37.75416779649186) | false |
| 1471579250 | 10382000.0 | Crosstown Trail | 23 | 701.0 | 799.0 | 171793 | 700.0 | 798.0 | PERU | AVE | LINESTRING (-122.4241347788771 37.72594540801444, -122.42354330063168 37.72566302133307, -122.42332549523945 37.725138138378526) | false |
| 1471579250 | 5705000.0 | Folsom Street | 20 | 3299.0 | 3399.0 | 177036 | 3300.0 | 3398.0 | FOLSOM | ST | LINESTRING (-122.41337632273402 37.745149133538405, -122.413280063816 37.744150044881245) | false |
| 1471579250 | 1188000.0 | Noe Valley to Central Waterfront | 8 | 3051.0 | 3099.0 | 181857 | 3050.0 | 3098.0 | 22ND | ST | LINESTRING (-122.41547327494038 37.75563410833778, -122.41656664078371 37.75556827813656) | false |
| 1471579250 | 3026201.0 | Crosstown Trail | 23 | 0.0 | 0.0 | 179905 | 500.0 | 598.0 | BOSWORTH | ST | LINESTRING (-122.43297411597455 37.73331082636995, -122.43320106219707 37.73343882604965, -122.4340207120184 37.73358796266472, -122.43414453633044 37.733550343266714) | false |
| 1471579250 | 3258000.0 | Lake Merced to Candlestick | 12 | 601.0 | 649.0 | 179625 | 600.0 | 648.0 | BRUNSWICK | ST | LINESTRING (-122.44550334417616 37.70981331484346, -122.44670507359385 37.70940240109001) | false |
| 1471579250 | 3516000.0 | Market to Beach | 3 | 4801.0 | 4899.0 | 179361 | 4800.0 | 4898.0 | CABRILLO | ST | LINESTRING (-122.51003695605 37.7732594694463, -122.51014643498205 37.77314440739929, -122.51041858382143 37.77313191655599, -122.51054322242608 37.773230418334855, -122.51066621449738 37.773222453514855, -122.51093996180835 37.772957707958625, -122.5112821019844 37.77295994414043) | false |
| 1471579250 | 5654000.0 | Folsom Street | 20 | 353.0 | 399.0 | 177162 | 350.0 | 398.0 | FOLSOM | ST | LINESTRING (-122.39330569042441 37.78822645225682, -122.39359716393014 37.78799630950512) | false |
``` | markdown |
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body {
color: #263238;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 20px;
font-size: 1.25rem;
line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
color: #0f161a;
line-height: 1.25;
clear: both;
margin: 1.5em 0 .5em;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
margin-top: 0;
}
h1 {
font-size: 2.4em;
}
h2 {
font-size: 1.8em;
}
h3 {
font-size: 1.2em;
}
h4 {
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
}
h5 {
font-size: .8em;
}
h6 {
font-size: .7em;
}
p {
margin: 0 0 1.6em;
}
p:last-child {
margin-bottom: 0;
}
blockquote {
font-size: 1.2em;
font-style: italic;
border-top: 4px solid currentColor;
padding: 1em 0 0 2.5em;
margin: 0 0 1.6em;
position: relative;
}
blockquote:before {
content: "\201C";
position: absolute;
left: 0;
top: .06em;
font-size: 3em;
font-style: normal;
}
blockquote cite {
display: block;
margin-top: .8em;
font-size: 14px;
font-size: 0.875rem;
text-transform: uppercase;
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
font-style: normal;
color: #6f8590;
}
blockquote cite:before {
content: '\2014';
margin-right: .5rem;
}
address {
margin: 0 0 1.6em;
}
pre {
background: #263238;
font-family: "Courier 10 Pitch", Courier, monospace;
font-size: .8em;
line-height: 1.6;
margin-bottom: 1.6em;
overflow: auto;
padding: 2em;
color: #e3e6e8;
}
code, kbd, tt, var {
font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
font-size: 0.84090145em;
}
abbr, acronym {
border-bottom: 1px dotted #666;
cursor: help;
}
mark, ins {
background: #fff9c0;
text-decoration: none;
}
big {
font-size: 125%;
}
/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
box-sizing: inherit;
}
body {
background: #f5f7f8;
/* Fallback for when there is no custom background color defined. */
}
hr {
background-color: rgba(38, 50, 56, 0.1);
border: 0;
height: 1px;
margin-bottom: 1.6em;
clear: both;
}
ul, ol {
margin: 0 0 1.6em;
}
li > ul,
li > ol {
margin-bottom: 0;
}
dt {
font-weight: bold;
}
dd {
margin: 0 1.5em 1.6em;
}
img {
height: auto;
/* Make sure images are scaled correctly. */
max-width: 100%;
/* Adhere to container width. */
}
figure {
margin: 0 0 1.6em;
/* Extra wide images within figure tags don't overflow the content area. */
}
table {
margin: 0 0 1.6em;
width: 100%;
font-size: 16px;
font-size: 1rem;
}
th, td {
padding: .5rem .75rem;
}
th:first-child, td:first-child {
padding-left: 0;
}
th:last-child, td:last-child {
padding-right: 0;
}
tr {
border-bottom: 1px solid rgba(38, 50, 56, 0.1);
}
thead tr {
border-width: .25rem;
}
thead th {
text-transform: uppercase;
text-align: left;
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
font-size: 1rem;
}
.wp-block-pullquote.aligncenter, .wp-block-pullquote.alignwide, .wp-block-pullquote.alignfull, .wp-block-pullquote.alignleft, .wp-block-pullquote.alignright {
text-align: left;
padding: 1em 0 0 2.5em;
background-color: #fff p;
background-color-font-size: 24px;
}
.wp-block-pullquote.aligncenter cite, .wp-block-pullquote.alignwide cite, .wp-block-pullquote.alignfull cite, .wp-block-pullquote.alignleft cite, .wp-block-pullquote.alignright cite {
font-size: 14px;
text-align: left;
color: #6f8590;
}
figure.wp-block-image.alignleft {
padding: 1em 0 0 2.5em;
margin-right: 1.5em;
}
figure.wp-block-image.alignright {
padding: 1em 0 0 2.5em;
margin-left: 1.5em;
}
/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
display: inline;
float: left;
margin: 1em 1.5em .5em 0;
}
.alignleft.wp-caption {
margin-bottom: .5em;
}
.alignright {
display: inline;
float: right;
margin: 1em 0 .5em 1.5em;
}
.alignright.wp-caption {
margin-bottom: .5em;
}
.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
}
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
/* Make sure logo link wraps around logo image. */
.custom-logo-link {
display: inline-block;
}
/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
margin-bottom: 2rem;
max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
display: block;
margin-left: auto;
margin-right: auto;
}
.wp-caption-text {
text-align: center;
margin-top: .875rem;
font-size: .875rem;
font-family: -apple-system, BlinkMacSystemFont, "avenir next", avenir, "helvetica neue", helvetica, ubuntu, roboto, noto, "segoe ui", arial, sans-serif;
color: #6f8590;
}
/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
margin-bottom: 1.5em;
}
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 50%;
padding: 0 5px;
}
@media (min-width: 576px) {
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
}
.gallery-caption {
display: block;
}
body {
background: #fff;
}
/*# sourceMappingURL=editor-style.css.map */ | css |
Finding the right desk chair for you isn’t easy – although we have plenty of resources to help in that quest, including our comprehensive guide to the best office chairs, as well as some tips on avoiding the common mistakes often made when buying a chair, along with our answers to vital questions you may have about these chairs, too.
But once you’ve found it, you may still want to improve the office chair in question – or perhaps its weak points – with some chair accessories. Or indeed if you have an old chair which could definitely use enhancing in some way, some of these accessories might prove invaluable.
Without further ado, let’s dive into our roundup of essential office chair accessories, from chair mats to lumbar support cushions.
When sat in your office chair, your feet should be comfortably flat on the floor – if not, this is bad ergonomic news (and you may find that the edge of your seat is pressing into the back of your legs, potentially interfering with your circulation; which is worse news still).
You might find your chair otherwise comfortable, and perhaps not want to change it, so an alternative solution is a footrest. Obviously enough, this is a small platform for your feet to rest on, and a good model will be adjustable, so you can ensure that it’s at the right height for your feet to be perfectly flat. (Although as well as the height, also make sure that the platform itself is large enough to comfortably accommodate your needs if you have larger feet).
This can be a good solution for those whose chair and desk setup otherwise doesn’t allow for them to adjust things so they can have their feet flat on the ground as they should be.
If your office chair has armrests, you might find them rather hard and unforgiving, and perhaps not particularly comfortable to use for long periods of time. To remedy this, you could give your lower arms something of a treat by purchasing some armrest pads which attach and sit on top of your existing armrests.
The padding is often made from memory foam, providing an additional dollop of extra comfort for your armrests. One point to be aware of here is the height of the pads – just make sure they aren’t so thick that they’ll leave your arms in a poor ergonomic position (although you may be able to adjust the height of your chair’s armrests to compensate, of course – but any good armrest pad won’t overdo the padding, generally speaking, anyway).
Some office chairs have lumbar support built-in, but yours may not – so one shortcut to add this feature without going to the expense of buying a whole new chair is to purchase a standalone support. Lumbar supports often come in the form of a roll or a larger pillow, and can make a solid addition to your office chair, giving you some much needed extra support.
Note that they won’t likely prove as effective as an integrated support which the designer has included with an ergonomic office chair, but they can do the job – just make sure you purchase a well-reviewed one, and the vendor has a return policy. The latter is particularly important because if the support doesn’t suit you, and proves a thorn in your back, so to speak, you can always send it back.
Worried about your perhaps quite heavy office chair damaging or maybe leaving marks on, for example, a vinyl floor? There’s a simple solution to this, which is to buy a mat which sits on top of the floor, so it won’t be troubled by your chair’s casters. Clear PVC floor mats which don’t stand out like a sore thumb aren’t expensive, fortunately – and are certainly a lot cheaper than eventually having to replace your floor covering.
Want to protect your office chair from the likes of drink spillages, or if you work from home, perhaps your cat or dog? The simple way to do this is to buy a stretch cover for the chair, which fits over it and gives you a layer of protection. It’s also a solution if you’ve got a worn or rather battered looking office chair, because for a small cost, you can easily cover up all of your chair’s sins and make it look like new(ish).
If you decide that you do want a chair cover, bear in mind you’ll need to carefully consult any size guides to make sure the cover fits (although they’re typically designed to stretch to fit a range of sizes).
Dread those cold winter mornings when you head into your office before the heating has properly kicked in, feeling not unlike a polar explorer? A simple heating pad which sits on top of your seat and can be powered by a USB connection can make your office chair a more pleasant prospect for sitting in when it comes to colder mornings.
You can even get full seat covers, ones which go over the backrest as well as the seat pan to provide further warmth, although they could possibly interfere with the ergonomic or comfort aspects of your office chair.
Maybe this might not seem like an ‘essential’ accessory for your chair, but you’ll certainly appreciate its value if you’ve ever had the misfortune to knock over a drink on your desk, with that spillage subsequently ending up damaging an electronic device that was also resting on the same surface.
If your chair has armrests, one solution is to buy a clip-on cup holder which attaches to one of the armrests. The holder should prevent any danger of your drink being spilled, and even if the worst should happen somehow, at least it will only hit the floor, and not anything precious sitting on the desk (or indeed under it – which is where some folks keep their PC hidden out of the way).
One option in this department is Amazon’s choice when it comes to clip-on cup holders, which is this model from Dirza that’s affordably priced.
Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!
Darren is a freelancer writing news and features for TechRadar (and occasionally T3) across a broad range of computing topics including CPUs, GPUs, various other hardware, VPNs, antivirus and more. He has written about tech for the best part of three decades, and writes books in his spare time (his debut novel - 'I Know What You Did Last Supper' - was published by Hachette UK in 2013).
| english |
<filename>content/pages/AWC-073.json
{
"path": "/AWC-073",
"blocks": [
{
"text": "http://artsoftheworkingclass.org/text/now-live-on-konrad-tv-the-compulsion-to-overcome-the-finshed-object",
"text2": "Loading: NOW LIVE ON KONRAD TV by <NAME> and <NAME> on <NAME>",
"_template": "RedirectBlock",
"content": ""
}
]
} | json |
<filename>package.json<gh_stars>0
{
"name": "pushfry",
"version": "1.0.5",
"description": "Pushfry",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"main": "lib/index.js",
"dependencies": {
"axios": "^0.19.0",
"socket.io-client": "^2.2.0"
},
"devDependencies": {},
"repository": {
"type" : "git",
"url" : "https://github.com/pushfry/pushfry"
},
"keywords": ["pushfry", "websocket", "realtime"],
"author": "<EMAIL>",
"license": "Apache-2.0"
}
| json |
Posted On:
Union Minister of Commerce and Industry, Consumer Affairs, Food and Public Distribution and Textiles, Shri Piyush Goyal today said India has the potential to become a world leader in Footwear and leather sector with the efforts of both government and industry. He was addressing the gathering at the Council for Leather Exports National Export Excellence Award function in New Delhi today.
In his address to the awardees, Shri Goyal asked the organisers to explore the possibility of encouraging new companies, entrepreneurs, startups and those who come up with innovative ideas, enter into uncharted territory with newer markets and products, by recognizing them through these awards. He suggested some niche award segments can be created for recognizing their contribution- such as rewarding those who make effective use of FTAs etc.
The Minister said as we celebrate Azadi Ka Amrit Mahotsav, we hope to achieve higher exports than last year - both in goods and services. He said while most of the developed world, who are large consumers of leather products, are going through inflation and subdued consumer spending, he was happy to get reassurance from Leather sector that it would see higher growth compared to last year.
Shri Goyal asked the leather industry to utilize the FTAs being signed by India with various countries to grow. He cited the example of UAE, where exports in the sector registered a jump of 64 percent in November last year as a result of the new agreement.
Shri Goyal noted the concerns of the Leather Industry about import duties on certain types of Leather and assured that it will be taken up for consideration. He also urged the industry stakeholders to avail MOOWR scheme by Department of Revenue, wherein no duty is to be paid on goods which are being imported for the purpose for exports. This will certainly help make business more competitive, he added.
The Minister emphasised that Indian Industry has huge untapped potential. He noted that while the Quality of Products manufactured is good, more focus is required on packaging and branding to get better value for the product. Indian Mission across the world can help in providing support in terms of outreach and can help connect them with international companies engaged in branding business.
He encouraged the industry to aspire to set new goals, especially as India is entering into Amrit Kaal, that aims at inclusive growth and bringing prosperity to each and every citizen of India. Minister said we are trying to enter into more FTA with other developed nations of the world. He urged the Leather and footwear industry to aim for significant increases over the next 25 years and draw up a plan to achieve those goals. He asked them to look up at expanding horizons- explore new territories, manufacturing new products in india for import substitution.
Shri Goyal reassured that the Government is open to amending any standards which are hurting the interests of the Industry. He also assured full support in terms of setting up testing facilities/ laboratories anywhere in the country to meet the needs of the industry. He said the Government is willing to engage with the Industry on ease of doing business and asked them to give ideas on how to bring improvement in different areas where industry faces difficulty in business. He asked them to give suggestions on how to increase compliance, how to simplify laws, and which laws/ provisions can be decriminalized.
Shri Goyal informed that the Government is working on formulating a new scheme to support manufacturing of machinery required in the industry. He asked the industry to take advantage of all the schemes of the government.
He asked the industry to look at innovation and sustainability in their products. He also called for new collaborations with international companies to bring high quality products into India. Minister spoke about a few areas of immense potential such as Kolhapuri Chappals and asked young entrepreneurs to go beyond the routine and explore new designs/ branding in this area.
| english |
1 Wal YAWEI det trubala God bin tok, “Ebritaim wen aibin wandi album main pipul olabat deya langa Isreil, aibin oldei luk ola nogudbala ting weya deibin oldei dumbat. Ebritaim wen aibin wandi meigim olabat gudbala, aibin luk det nogudbalawei weya deibin oldei bulurrumbat. Dei oldei dalimbat miselp laiya, en dei oldei gowin langa enibodi haus en stilimbat ola enijing, en wen dei midim enibodi langa roudwei, dei oldei pulumat im ola enijing.
2 “Wal maitbi dei reken ai kaan jinggabat ol detlot nogudbala ting weya deibin dumbat. Bat ol detlot nogudbala ting weya deibin oldei dumbat im jis laik dei yadimapbat miselp insaid det yad, en mi oldei lukinat detlot nogudbala ting.
3 “Detlot pipul bin trikimbat olabat king garram detlot nogudbala ting weya deibin dumbat, en deibin trikimbat ola boswan wekinmen blanga det king du garram ola laiyawan wed. 4 Detlot pipul nomo bin trubala langa olabat king. Dei nomo bin laigim im. Bat deibin haidim detlot filing blanga olabat jis laik det hotwan tjakol weya im barnbarn andanith langa ola eshis. Olnait det tjakol jidan hotwan andanith langa detlot eshis, en ailibala wen im rait taim blanga gugum daga, dei opinimap detlot eshis en det hotwan tjakol meigim miselp faiya na.
5-6 “Wal ol detlot pipul bin dumbat lagijat langa olabat king du. Deibin haidim detlot filing blanga olabat, en wen deibin abum padi blanga det king, deibin meigim det king en ol im boswan wekinmen drangk garram wain. Olnait deibin abum det padi, en deibin meigim det king en ol im boswan wekinmen drangginwan, en ailibala detlot filing blanga olabat bin kamat jis laik det hotwan tjakol. 7 Lagijat na deibin kilimbat olabat king en olabat boswan wekinmen ded. Nomeda bigismob king blanga olabat bin dai, bat stil nomo eni king bin jingat langa mi blanga album im.” Lagijat na YAWEI bin tok.
8 Wal YAWEI bin tok, “Ola Isreil pipul jidan nogudwan jis laiga haf kukwan damba, dumaji dei oldei miksap garram ola najalot pipul. 9 Detlot najalot pipul deigidaweibat ola pawa brom olabat. Bat detlot Isreil pipul nomo sabi. En det taim blanga olabat im gulijap na. Bat dei nomo sabi. 10 Dei oldei tok praudbalawei, en tharran na dei nomo sabi blanga bulurrum mi. Nomeda deibin oldei abum ol detlot trabul, bat stil dei nomo bin kambek langa mi. Mi na YAWEI det trubala God blanga olabat, bat stil dei nomo lukabat mi. 11 Ol detlot Isreil pipul bin go en askim ola Ijip pipul blanga album olabat, en afta deibin go en askim ola Asiriya pipul blanga album olabat du. Olabat jidan jis laiga lilwan bard weya im flaiflai eniwei, dumaji dei go eniwei lukabat sambodi blanga album olabat. Bat dei nomo kaman langa mi.
12 “Wal ai garra spredimat main net en gajim olabat, en ai garra panishim olabat blanga ola nogudbala ting weya deibin dumbat. 13 Olabat binij na, dumaji deibin libum mi, en deibin tjakidawei ola lowa main.
“Wal ai garra binijimap olabat na. Aibin wandi seibum olabat. Bat deibin dalimbat laiya en nomo bulurrum mi trubalawei. 14 Dei nomo askimbat mi trubalawei blanga enijing. Dei oldei jingat langa mi jis laik detlot najalot pipul oldei jingat langa olabat drimin. En wen dei oldei prei blanga meigim ola gadin gro gudwei blanga gibit olabat loda daga en wain, dei oldei kilim miselp blad kamat jis laik ol detlot najalot pipul oldei dumbat. Dei oldei tenawei brom mi en dum detkain nogudbala ting na. 15 Nomeda aibin lukaftumbat olabat en meigim olabat strongbala, bat stil dei oldei jinggabat blanga dumbat nogudbalawei langa mi, 16 en dei oldei gibit mi bekboun, en dei oldei go en bulurrumbat detlot drimin sheip weya kaan album olabat.
“Wal olabat jis laiga nogudwan bo en erro weya kaan album yu win blanga fait. Ola bos blanga olabat oldei tok praudbalawei, en blanga tharran na dei garra dai nogudbalawei, en afta ola pipul langa Ijip garra laflaf langa olabat.” Lagijat na YAWEI bin tok.
| english |
Herschel Walker had an interesting campaign leading up to Election Day on November 8. He's currently losing the race, but it's close enough that there may be a special election between him and incumbent Raphael Warnock.
Part of his campaign involved police badges, one for the Senate candidate himself and many for potential voters that he handed them out to. However, it has raised questions about whether or not he ever worked in law enforcement and why Herschel Walker police badges were being given out.
Was Herschel Walker a police officer?
Walker brandished a police badge during a debate with Warnock. This prompted many to question whether the running back-turned-politician had ever been a member of any law enforcement agency.
As of now, he has not worked as an official member of law enforcement. However, he was given an honorary badge by law enforcement, specifically Johnson County Sheriff Greg Rowland. According to NPR, the sheriff doesn't have any issues with the former NFL player brandishing the badge:
"If Herschel's badge is a prop, then I guess this badge I wear every day to protect the citizens, this is a prop also. But these are real badges, and I gave this to my friend for all he's done for this country and this county. "
While that doesn't seem to be an issue, the badge is not legitimate, as he is not a member of any law enforcement agency.
Why was Herschel Walker handing out police badges?
The Senate hopeful recently handed out police badges to potential voters because he wanted to highlight his support for law enforcement. This has become a central issue for many Republican voters recently.
Despite them being fake, his campaign manager believed the stunt could do no harm to his campaign, according to NPR:
"If Sen. Warnock wants to highlight this, then bring it on. It just gives us a chance to talk about Herschel's support of law enforcement and law enforcement's support for him. It's a great issue for us. "
The former NFL running back has campaigned as a hardcore conservative. This has him positioned as anti-abortion and staunchly pro-law enforcement. The badges merely serve to highlight the issue and should not be taken to mean anything more than that. | english |
Sigma has used Photokina to launch three mouth-watering lenses: a fast prime portrait lens, an ultra wide-angle zoom and a long range telephoto.
First up then is the 85mm f/1.4 DG HSM | Art, which has been engineered to make the most of full-frame sensors with resolutions above 50MP, so perfect for the likes of the Canon EOS 5DS.
This is thanks to the re-designed lens construction compared to the older model, with 14 elements in 12 groups. Two of these elements are made of SLD (Special Low Dispersion glass), and one element with what Sigma call a high rate of anomalous partial dispersion and a high index of refraction.
Dust and splash-proof, Sigma reckon the bokeh is so precise that you can focus on the subject's eye while blurring the eyelashes.
Shipping is expected to start in late October, with a price of £1199/$1199.
The 12-24mm f/4 DG HSM | Art is now in its third generation, with the new optic featuring a 80mm diameter molded aspherical lens - the largest element found in this class of lens and designed to be highly effective in minimizing distortion, spherical aberration and coma flare.
Designed for both full-frame and APS-C DSLRs, it offers a constant maximum aperture of f/4, SLD elements and a FLD ('F' low dispersion) elements to deliver what Sigma promises will be a lens with excellent edge-to-edge sharpness, minimized distortion and a minimum focusing distance of 24cm.
Pricing has been confirmed at £1,649/$1599, with availability again expected at the end of October.
Sigma has recently given us a couple of great super telephoto zooms, but the new 500mm f/4 DG OS HSM | Sport sees Sigma turn their attention to a large prime telephoto optic.
The new lens features a host of features including Sigma's Optical Stabilizer (OS) system, the company's latest-generation Hyper Sonic Motor (HSM), as well as an enhanced dust and splash-proof construction.
Pricing has been set at £5999/$5999, with the Canon mount coming at the end of October, with the Nikon version following shortly after in early November.
Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team.
Phil Hall is an experienced writer and editor having worked on some of the largest photography magazines in the UK, and now edit the photography channel of TechRadar, the UK's biggest tech website and one of the largest in the world. He has also worked on numerous commercial projects, including working with manufacturers like Nikon and Fujifilm on bespoke printed and online camera guides, as well as writing technique blogs and copy for the John Lewis Technology guide.
| english |
<filename>src/css/main.css
body {
background-color: #F2F2F2;
}
a {
color: var(--main-color);
}
nav #nav-desktop a, nav #nav-desktop ul a {
text-shadow: 1px 1px 4px black;
}
nav div .brand-logo {
color: var(--main-color) ;
}
@media only screen and (max-device-width: 680px) {
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
h3 {
font-size: 2rem;
}
}
nav .highlight {
background-color: red;
animation: fadein-nav-highlight 5s;
}
@keyframes fadein-nav-highlight {
0% { background-color: transparent; }
50% { background-color: darkgoldenrod; }
80% { transform: scale(1); }
83% { transform: scale(2); }
86% { transform: scale(0.5); }
90% { transform: scale(1); }
100% { background-color: red; }
}
.row {
padding-top: 3rem;
padding-bottom: 3rem;
}
.block {
text-align: justify;
}
code {
background-color: #f3f3f3;
}
#map {
width: 100%;
height: 550px;
}
#map_wrapper {
position: relative;
}
#map_overlay {
position: absolute;
top: 10px;
right: 15px;
z-index: 99;
background-color: #ffffff;
padding: 30px 60px 10px 30px;
}
/* materialize cards customization */
.card .card-action {
padding: 10px 20px 10px 20px;
}
.card .card-content .card-title {
line-height: inherit;
}
.card .card-action a:not(.btn):not(.btn-large):not(.btn-floating) {
margin-right: 10px;
}
#participants .card.medium .card-content {
height: 8em;
}
.card .card-image img {
top: 0;
}
.card .card-tags-container {
display: block;
min-height: 1.5em;
height: 1.5em;
overflow: hidden;
}
.card .card-tags-container:hover {
height: auto;
}
.card .card-tags-container .card-tag {
transition: color 2s;
}
.card .card-tags-container:hover .card-tag {
color: black;
}
.card .card-tag {
margin-right: 10px;
color: #757575;
}
footer {
margin: 2rem 0 0 0;
padding: 2rem;
display: flex;
}
footer ul {
padding: 0;
color: white;
}
footer li {
list-style: none;
margin: 0.5rem 0;
}
footer div {
flex: 1;
}
@media only screen and (max-device-width: 680px) {
footer {
display: block;
}
}
/* Overwrites for Material Design */
@media only screen and (min-width: 600px) {.flow-text {font-size: 1.114rem;}}
@media only screen and (min-width: 630px) {.flow-text {font-size: 1.133rem;}}
@media only screen and (min-width: 660px) {.flow-text {font-size: 1.152rem;}}
@media only screen and (min-width: 690px) {.flow-text {font-size: 1.171rem;}}
@media only screen and (min-width: 720px) {.flow-text {font-size: 1.190rem;}}
@media only screen and (min-width: 750px) {.flow-text {font-size: 1.210rem;}}
@media only screen and (min-width: 780px) {.flow-text {font-size: 1.229rem;}}
@media only screen and (min-width: 810px) {.flow-text {font-size: 1.248rem;}}
@media only screen and (min-width: 840px) {.flow-text {font-size: 1.267rem;}}
@media only screen and (min-width: 870px) {.flow-text {font-size: 1.286rem;}}
@media only screen and (min-width: 900px) {.flow-text {font-size: 1.305rem;}}
@media only screen and (min-width: 930px) {.flow-text {font-size: 1.324rem;}}
@media only screen and (min-width: 960px) {.flow-text {font-size: 1.344rem;}}
/* the special colors */
:root {
--main-color: #000;
}
.colorOfTheYear {
background-color: #F2F2F2 !important
}
.colorOfTheYear-text {
color: var(--main-color) !important
}
.colorOfTheYear-text.text-lighten-5 {
color: #fff3e0 !important
}
| css |
The Centre's new vaccine procurement policy may lay to rest the demands for tax cut in Covid-19 vaccines. Although the Group of Ministers (GoM) headed by Meghalaya Chief Minister Conrad Sangma has not made any concrete recommendation on rates for vaccine, the demand made by some states to lower it may be practically met after the change in vaccination policy. The Centre will now procure 75 per cent of all the vaccine produced in the country and provide them to states for free.
TO READ THE FULL STORY, SUBSCRIBE NOW NOW AT JUST RS 249 A MONTH.
What you get on Business Standard Premium?
- Unlock 30+ premium stories daily hand-picked by our editors, across devices on browser and app.
- Pick your 5 favourite companies, get a daily email with all news updates on them.
- Full access to our intuitive epaper - clip, save, share articles from any device; newspaper archives from 2006.
- Preferential invites to Business Standard events.
- Curated newsletters on markets, personal finance, policy & politics, start-ups, technology, and more. | english |
- In December 2012 Gérard Depardieu moved to Belgium as a self-exile to avoid French taxes. Depardieu has surrendered his French passport and social security card. In an open letter to the prime minister, Depardieu wrote he had "nothing to do in France," and moreover accused the current government of wanting to "punish" success. As of December 2012 about 500 French citizens are said to be waiting to be naturalized in Belgium mainly due to financial reasons.
- A friend of John Travolta, he was asked by Travolta to be his French voice in the dubbed version of Brian De Palma's movie Blow Out (1981).
- Speaks Italian fluently.
- Underwent emergency quintuple heart bypass surgery in Paris, France, following a heart attack (10 July 2000).
- Is an accomplished winemaker.
- He has been good friends with Robert De Niro for more than 30 years, since the two worked together in Bernardo Bertolucci's 1900 (1976) in 1974-1975.
- Has played several characters from classic French literature. He has played the title role in Cyrano de Bergerac (1990), Porthos in The Man in the Iron Mask (1998), Edmond Dantes in The Count of Monte Cristo (1998), and Jean Valjean in Les misérables (2000).
- Owns vineyards in France, Italy, Argentina, Morocco and Algeria.
- He became so engrossed in his role of Cyrano de Bergerac (1990) that he refused to shave off his Cyrano beard for a long while after the film was completed.
- Was considered for the role of Max in Sergio Leone's gangster epic Once Upon a Time in America (1984). Depardieu said he was willing to perfect an American accent in order to play the role, but instead James Woods was cast.
- Became attracted to acting while working as a beach boy in Cannes during the film festival and went to Paris to train.
- When he appeared on the So Graham Norton (1998) in 2001, it was his first ever interview in the UK. He also confessed to traveling on his motorcycle to the hospital for his bypass operation.
- He received more César nominations than any other actor (16).
- Best paid French actor, earning EUR 800,000 per movie (2005).
- Announced his intention to retire from acting in October 2005, saying he believed he had made enough films and wanted to concentrate on his other interests.
- He became a Russian citizen.
- Smoked three packs of cigarettes a day until his heart surgery in 2000.
- In a March 2005 interview with "The Daily Telegraph" Depardieu said he used to drink six bottles of red wine a day.
- Depardieu is a typical name from the center of France.
- Convicted of drunk driving in France in 1990. He was sentenced to 2 months jail (suspended) and loss of his license for 6 months.
- On Thursday, January 3, 2013, Russian President Vladimir Putin granted citizenship to Gérard Depardieu, whose bitter fight over taxes with France's government has led him to give up his passport.
- Left school at the age of 13 to be trained as a printer.
- Has supported Nicolas Sarkozy's 2012 presidential campaign.
- Had a motorcycle accident and was hospitalized while filming Asterix and Obelix vs. Caesar (1999) in Paris.
- Time magazine ran a profile that mistakenly suggested that Depardieu might have "participated" in a rape at the age of nine. The claim was based on an interview carried out 13 years earlier and was the result of an incorrect translation. Depardieu is now careful about proper translation.
- He was made a Fellow of the British Film Institute in recognition of his outstanding contribution to film culture.
- Has lived together with Clémentine Igou since 2005.
- Father of a son, Jean Depardieu (born July 14, 2006) with jewelery designer Helene Bizot.
- Grew up in Châteauroux in the Indre region.
- Was offered the main role in the action film Malone (1987) but turned it down. The part was later offered to Christopher Lambert, who turned it down too. The part was finally accepted by Burt Reynolds.
- President of jury at the Cannes Film Festival in 1992.
- Owns two restaurants in Place Gaillon in Paris; they are called "La Fontaine Gaillon" and "L'Ecaille de la Fontaine".
- Admires bishop, theologian and philosopher Saint Augustin, living from 354 to 430 in the North African town of Hippo Regius.
- Born to René Maxime Lionel Depardieu called "Le Dédé", a metal worker and firefighter, and his wife Anne Jeanne Josèphe Marillier called "La Lilette", he was the third of five children.
- Has appeared in two remakes of films that previously featured José Ferrer. First, Depardieu succeeded Ferrer in the title role of Cyrano de Bergerac (1990). Ferrer later played the musketeer Athos in The Fifth Musketeer (1979), while Depardieu played the musketeer Porthos in The Man in the Iron Mask (1998). Both films were based on The Vicomte of Bragellone. In Milady and the Three Musketeers (2004), his son, Guillaume Depardieu, played Athos--a role previously played by Ferrer.
- His former girlfriend Karine Silla, mother of his daughter Roxanne, is now married to actor Vincent Perez, Deaprdieu's co-star in Cyrano de Bergerac (1990).
- He appeared in five movies that won the César for Best Picture: The Last Metro (1980), Camille Claudel (1988), Too Beautiful for You (1989), Cyrano de Bergerac (1990) and Tous les matins du monde (1991). The last four were also consecutive winners.
- To date, he and Catherine Deneuve have made 10 movies together: The Last Metro (1980), I Love You All (1980), Choice of Arms (1981), Fort Saganne (1984), Strange Place for an Encounter (1988), One Hundred and One Nights (1995), Changing Times (2004), Potiche (2010), Astérix and Obélix: God Save Britannia (2012) and Nobody's Perfect! (2017).
- Guillaume Depardieu's wife Elise gave birth to a daughter, making Gérard a grandfather (January 2001).
- Two of his literary characters are said to have influenced the French playwright Moliere. In Cyrano de Bergerac (1990), we are told that Moliere has plagiarized many of Cyrano's plays. In Alexandre Dumas's novel The Viscount of Bragelonne, Moliere, who is also a tailor, takes Porthos's measurements and is so inspired to create Monsieur Jordain. Depardieu played Porthos in The Man in the Iron Mask (1998).
- He has two roles in common with Frank Finlay: (1) Finlay played Jean Valjean in Les Misérables (1967) while Depardieu played him in Les misérables (2000) and (2) Finlay played Porthos in The Three Musketeers (1973), The Four Musketeers: Milady's Revenge (1974) and The Return of the Musketeers (1989) while Depardieu played him in The Man in the Iron Mask (1998).
| english |
<gh_stars>0
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict';
var RelayPendingQueryTracker =
jest.genMockFromModule('RelayPendingQueryTracker');
class MockPendingFetch {
constructor(query) {
this._query = query;
this._resolvable = false;
this._promise = new Promise((resolve, reject) => {
this.resolve = (...args) => {
this._resolvable = true;
return resolve.apply(this, args);
};
this.reject = reject;
});
}
getID() {
return this._query.getQuery().getID();
}
getQuery() {
return this._query;
}
getResolvedPromise() {
return this._promise;
}
isResolvable() {
return this._resolvable;
}
}
RelayPendingQueryTracker.mockImplementation(function() {
this.add.mock.fetches = [];
this.add.mockImplementation(params => {
var mockFetch = new MockPendingFetch(params.query);
this.add.mock.fetches.push(mockFetch);
return mockFetch;
});
return this;
});
module.exports = RelayPendingQueryTracker;
| javascript |
$fontSize: 14px;
.lol {
display: inline-block;
background: linear-gradient(to bottom, #fff, #000);
color: green;
font-size: $fontSize;
opacity: 1;
transition: opacity 1s ease;
transform: translate(-1px, -1px);
&:hover {
opacity: 0.25;
}
}
| css |
The Indian Premier League has been a happy hunting ground for many Indian batsmen and IPL 2020 would see more such action amid the deserts of UAE.
The Indian Premier League (IPL) has become the breeding ground for Indian batsmen. Over the years many a batsman has risen from IPL ranks and progressed to play for India -- Rishabh Pant, Sanju Samson and Manish Pandey are a few prominent examples. The seasoned all-formats batsmen too have carved a niche for themselves -- Virat Kohli, Suresh Raina and Rohit Sharma are the top three scorers in the IPL. However, the pitches in the UAE, IPL's home this season, are expected to be on the slower side and unlikely to yield the 200-plus scores that are seen in India. Nevertheless, Indian batsmen would see this as the best platform to push their names for higher honours.
Here's a look at the top 10 Indian batsmen to watch out for:
Virat Kohli (Royal Challengers Bangalore)
The RCB captain has rarely had an off season in the IPL and is expected to add to his tally of 5412 runs – the highest in IPL history. Kohli has pushed his strike rate from 122.22 in 2017 to 141.46 in 2019 after enjoying a golden 2016 season where he smashed four centuries and 973 runs scored at 152.03 runs per 100 balls. RCB made the final in 2016 on the back of Kohli's run juggernaut and his team would count on him to deliver the goods yet again.
Rohit Sharma (Mumbai Indians)
Rohit Sharma has won the IPL five times as a player, including four times as captain of Mumbai Indians, and some credit for this feat lies with Rohit himself who has 4898 IPL runs, the third highest in the league. Equally adept at opening the batting as well as playing in the middle order, Rohit's ability to accelerate towards the death keep him at par with any batsman in the finisher's role.
Rishabh Pant (Delhi Capitals)
The big-hitting Pant had a breakthrough 2017 season and went one up in 2018, averaging 52.61 and striking the ball at 173.60 in 14 matches. A wicket-keeper batsman for Delhi Capitals, Pant bats mostly in the top five and relies on his power game for runs. The left-hander has all the shots in his book and he is equally good against pace and spin.
KL Rahul (Kings XI Punjab)
The new KXIP captain has enjoyed a purple patch in IPL in the past two seasons. Having missed the 2017 season due to injury, Rahul returned to the league hungry for runs and satiated his cravings by scoring over 1200 runs in the past two seasons, averaging 54.91 in 2018 and 53.90 in 2019. The strike rates of 158.41 and 135.38 in 2018 and 2019 respectively hint at a change of roles for the batsman in the team but returns of 659 and 593 runs respectively show that he has performed his role with some success.
Shikhar Dhawan (Delhi Capitals)
Dhawan moved to Delhi Capitals from SunRisers Hyderabad before the 2018 season but that hasn't impacted his returns in the league with the bat. Aggregates of 497 and 521 runs in 2018 and 2019 show that the left-hander from Delhi has enjoyed his home turf. Tasked with opening the batting for Delhi, his returns will be crucial for a team that's choc-a-bloc with top order batsmen.
MS Dhoni (Chennai Super Kings)
The CSK captain has retired from international cricket and that could show in how he goes about his batting in IPL. Dhoni has led CSK since the league's inception and has won the title three times including 2018, the first season after CSK's ban after IPL 2015 due to spot-fixing allegations. One of the great finishers in limited-overs cricket, Dhoni has the knack for taking the game deep and finishing it off with high percentage shots towards the end of the innings.
Manish Pandey (SunRisers Hyderabad)
Manish Pandey has slipped under the radar at most of the teams he has played in. At Kolkata Knight Riders he was overshadowed by the big-hitting Andre Russell and at SunRisers Hyderabad, the opening pair of David Warner and Jonny Bairstow steal the thunder. However, Pandey was integral to SRH's campaign last season, accumulating 344 runs at 43 and a strike rate of 130.79 batting in the middle order.
Shubman Gill (Kolkata Knight Riders)
The 20-year-old had a breakthrough season with KKR in 2018 but tapered off a bit last season. Nevertheless, returns of 499 runs from two seasons with four fifties merit a longer investment in the youngster and KKR are banking upon the lanky right-handed batsman from Punjab. He is an U-19 World Cup winner and could be best utilized at the top of the order.
Sanju Samson (Rajasthan Royals)
Two good seasons at Rajasthan Royals led to an India recall for Sanju Samson. However, opportunities for India were limited in the shortest format and Samson would look to press for some more India honours by building on the previous two IPL seasons where he averaged in the 30s and struck at the ball at 137.81 in 2018 and 148.69 in 2019.
Prithvi Shaw (Delhi Capitals)
The U-19 World Cup winning captain and the man who scored a century on Test debut for India, Shaw has been a rising star in the echelons of Indian cricket for the past two years. His returns for Delhi Capitals in IPL 2019 were impressive, too: 353 runs at 22.06 and strike rate of 133.71. However, these stats are regressed in comparison to how he played in his debut season in 2018 when he struck the ball at 153.12.
Note: All stats courtesy iplt20.com.
| english |
<reponame>xanthous-tech/chat-operator
import { plainToInstance, instanceToPlain } from 'class-transformer';
import { Aggregate, AggregateRootWithId } from 'server/event-store';
import { NewWechatMessageCommand, SendWechatMessageCommand } from '../commands';
import { NewWechatMessageEvent, SendWechatMessageEvent } from '../events';
@Aggregate()
export class WechatMessageLog extends AggregateRootWithId {
public newMessage(command: NewWechatMessageCommand): void {
this.apply(plainToInstance(NewWechatMessageEvent, instanceToPlain(command)));
}
public sendMessage(command: SendWechatMessageCommand): void {
this.apply(plainToInstance(SendWechatMessageEvent, instanceToPlain(command)));
}
}
| typescript |
<gh_stars>0
{"odata.es5.js":"sha256-pyy6Ij1DrFiV5JucYH2XvgL5sOg3YCb2EsrnFTXBvYM=","odata.es5.umd.bundle.js":"sha256-G0X5o5CrPfglb5P0B0wPnq8riMMjalmWF2ItmhzfuXk=","odata.es5.umd.bundle.min.js":"sha256-qSGk+m7Cg/pGeFTkh2bg+wWSFqNejZ/3PES5Dg2hCx4=","odata.es5.umd.js":"sha256-ebP2ZQzJ8MUNuOAlwp4wKCyrxhujDT9mKNeTTaPPnUo=","odata.es5.umd.min.js":"sha256-v0RELpw6uhi/sxlZtENT6M9WMhyvuZE6yzT7pG+0PHE=","odata.js":"sha256-+qu1yRukNmkeRi9sX/eBivqYA14kQxymhFNdGnDSsKo="} | json |
In relation to the bio-bubble breach, Sri Lanka Cricket has banned Danushka Gunathilaka, Kusal Mendis and Niroshan Dickwella for one year from all forms of international cricket and six months from domestic cricket. They have also been fined 10 million Sri Lankan rupees for the same.
The three Sri Lankan players roamed around in a market in Durham as they were filmed by a local. They were suspended and sent home by the board for breaching the rules. They faced a lot of criticism for their actions.
" Sri Lanka Cricket wishes to inform that vice-captain Kusal Mendis, wicketkeeper-batsman Niroshan Dickwella, and batsman Danushka Gunathilaka will be flown back to Sri Lanka, with immediate effect. This decision was taken following a preliminary inquiry conducted over a Video posted on Social Media in which the said three players can be seen outside their designated hotel," SLC said in a statement.
The 2014 champions would have to play the qualifiers to make it to the Super 12 stage of this year's World T20. They did not finish in the top 10 according to the ICC Team rankings as of 20 March, 2021.
Sri Lanka are placed alongside Ireland, the Netherlands and Namibia in Group A of Round 1. The top two teams from both the groups (A and B) will make it to the Super 12. They would definitely miss the services of the three experienced players in the tournament.
The series win against India shall give them a lot of confidence going forward. While the Indian team had missed the services of 8 players who were isolated due to COVID-19, it was still a commendable performance by the hosts.
They are also scheduled to play 3 ODIs and 3 T20Is vs South Africa in September, which shall help them in finalizing their combinations before going into the qualifiers. | english |
[
{
"merged": "/home/salil/AndroidStudioProjects/SongDetail/app/build/intermediates/res/merged/debug/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png",
"source": "/home/salil/.android/build-cache/9678ddb80ae184356d1642e51473bc7820cb8009/output/res/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png"
},
{
"merged": "/home/salil/AndroidStudioProjects/SongDetail/app/build/intermediates/res/merged/debug/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png",
"source": "/home/salil/.android/build-cache/9678ddb80ae184356d1642e51473bc7820cb8009/output/res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png"
},
{
"merged": "/home/salil/AndroidStudioProjects/SongDetail/app/build/intermediates/res/merged/debug/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_cut_mtrl_alpha.png",
"source": "/home/salil/.android/build-cache/9678ddb80ae184356d1642e51473bc7820cb8009/output/res/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_cut_mtrl_alpha.png"
}
] | json |
<reponame>perfeccionista-software/perfeccionista-framework<filename>utils/src/main/java/io/perfeccionista/framework/exceptions/ClassCanNotBeCast.java
package io.perfeccionista.framework.exceptions;
import io.perfeccionista.framework.exceptions.base.PerfeccionistaRuntimeException;
import io.perfeccionista.framework.exceptions.base.Reason;
import org.jetbrains.annotations.NotNull;
/**
* TODO: JavaDoc
*/
public interface ClassCanNotBeCast extends Reason {
static ClassCanNotBeCastException exception(@NotNull String message) {
return new ClassCanNotBeCastException(message);
}
static ClassCanNotBeCastException exception(@NotNull String message, @NotNull Throwable cause) {
return new ClassCanNotBeCastException(message, cause);
}
class ClassCanNotBeCastException extends PerfeccionistaRuntimeException implements ClassCanNotBeCast {
ClassCanNotBeCastException(String message) {
super(message);
}
ClassCanNotBeCastException(String message, Throwable cause) {
super(message, cause);
}
}
}
| java |
Britain’s opposition Labour party has further plunged into crisis as 11 more frontbenchers resigned to pile more pressure on party leader Jeremy Corbyn to resign in the wake of the Brexit vote.
On Monday, eleven MPs rounded on Corbyn’s leadership, joining the 12 shadow cabinet ministers who resigned on Sunday.
Shadow business secretary Angela Eagle, shadow defense secretary Maria Eagle, shadow secretary of state for energy and climate change Lisa Nandy and Owen Smith, the shadow secretary of state for work and pensions, were among the latest senior Labour politicians who resigned from the shadow cabinet.
Many of the Labour MPs have been critical of Corbyn’s leadership since he won the party's leadership contest last September. The criticism, however, hiked following the historic vote of people in the UK to leave the European Union.
Labour MPs now criticize Corbyn’s contribution to the Remain campaign and say they doubt Corbyn could lead the party to victory in 2020 general elections.
Also on Monday, Deputy Labour leader Tom Watson told Corbyn during a crisis meeting that he has “no authority” among MPs and that he will face a leadership challenge if he refused to quit.
On Sunday, Corbyn said in a statement that he will not “betray the trust” of his voters, adding he would have to be defeated in a democratic election.
"Those who want to change Labour's leadership will have to stand in a democratic election, in which I will be a candidate," he said.
He also announced a cabinet reshuffle on Monday morning following the resignation of 12 of his shadow cabinet a day earlier.
Labour MPs Dame Margaret Hodge and Ann Coffey submitted the motion of no confidence in Corbyn and a secret vote is expected to be held on Tuesday.
The wave of resignation came after shadow foreign secretary Hilary Benn was sacked on Sunday morning after he told the Labour leader that he had lost confidence in his leadership.
On Thursday, some 51 percent of the people in the UK voted in the referendum to exit the bloc. Prime Minister David Cameron, who had campaigned extensively for the UK to stay in the EU, announced after the vote that he would be stepping down as the British prime minister in October.
The Brexit vote also led to the fall of the British pound to its lowest levels in 31 years, dropping below $1. 35 for the first time since 1985.
The UK should invoke Article 50 of the EU Lisbon Treaty in order to set out a two-year timetable for negotiations on withdrawal.
Cameron, however, said on Friday that it would be up to his successor, who is expected to be appointed before the Conservative Party conference in October, to trigger negotiations for the exit from the union. | english |
<filename>docs/reference/ps-reference/ps-ref-uninstall-package.md
---
title: Referencia de PowerShell de Uninstall-Package de NuGet
description: Referencia de Uninstall-Package comando de PowerShell en la consola del administrador de paquetes NuGet en Visual Studio.
author: karann-msft
ms.author: karann
ms.date: 06/01/2017
ms.topic: reference
ms.openlocfilehash: d164176355e32e5bbe0a017fc2b291cbc9ef326a
ms.sourcegitcommit: b138bc1d49fbf13b63d975c581a53be4283b7ebf
ms.translationtype: MT
ms.contentlocale: es-ES
ms.lasthandoff: 11/03/2020
ms.locfileid: "93237132"
---
# <a name="uninstall-package-package-manager-console-in-visual-studio"></a>Uninstall-Package (consola del administrador de paquetes en Visual Studio)
*En este tema se describe el comando en la [consola del administrador de paquetes](../../consume-packages/install-use-packages-powershell.md) en Visual Studio en Windows. Para el comando genérico de Uninstall-Package de PowerShell, consulte la [referencia de PackageManagement de PowerShell](/powershell/module/packagemanagement/?view=powershell-6).*
Quita un paquete de un proyecto y, opcionalmente, quita sus dependencias. Si existen otros paquetes que dependen de este paquete, el comando fallará a menos que se especifique la opción –Force.
## <a name="syntax"></a>Sintaxis
```ps
Uninstall-Package [-Id] <string> [-RemoveDependencies] [-ProjectName <string>] [-Force]
[-Version <string>] [-WhatIf] [<CommonParameters>]
```
Si existen otros paquetes que dependen de este paquete, el comando fallará a menos que se especifique la opción –Force.
## <a name="parameters"></a>Parámetros
| Parámetro | Descripción |
| --- | --- |
| Identificador | Desee Identificador del paquete que se va a desinstalar. El propio modificador-ID es opcional. |
| Versión | Versión del paquete que se va a desinstalar, que tiene como valor predeterminado la versión instalada actualmente. |
| RemoveDependencies | Desinstale el paquete y sus dependencias no usadas. Es decir, si alguna dependencia tiene otro paquete que depende de ella, se omite. |
| ProjectName | Proyecto desde el que se va a desinstalar el paquete. el valor predeterminado es el proyecto predeterminado. |
| Force | Fuerza la desinstalación de un paquete, aunque otros paquetes dependan de él. |
| WhatIf | Muestra lo que ocurre cuando se ejecuta el comando sin realizar realmente la desinstalación. |
Ninguno de estos parámetros acepta caracteres comodín o de entrada de canalización.
## <a name="common-parameters"></a>Parámetros comunes
`Uninstall-Package` admite los siguientes [parámetros comunes de PowerShell](/powershell/module/microsoft.powershell.core/about/about_commonparameters): debug, error Action, ErrorVariable, outbuffer, outvariable, PipelineVariable, verbose, WarningAction y WarningVariable.
## <a name="examples"></a>Ejemplos
```ps
# Uninstalls the Elmah package from the default project
Uninstall-Package Elmah
# Uninstalls the Elmah package and all its unused dependencies
Uninstall-Package Elmah -RemoveDependencies
# Uninstalls the Elmah package even if another package depends on it
Uninstall-Package Elmah -Force
``` | markdown |
<filename>developement/.vscode/settings.json<gh_stars>0
{
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.formatOnSave": true,
},
"python.formatting.provider": "black",
"python.linter": "pyLint",
"python.linting.enabled": true,
"python.linting.ignorePatterns": [
".vscode/*.py",
"venv/**",
"tests/**",
],
"python.linting.pycodestyleEnabled": true,
"pytest.command": "python -m pytest",
"python.testing.cwd": "./",
"python.testing.pytestEnabled": true,
"python.testing.autoTestDiscoverOnSaveEnabled": true,
"python.testing.pytestPath": "tests",
"python.testing.pytestArgs": [
"--isort",
"--pydocstyle",
"--pycodestyle",
"--no-cov",
],
"python.pythonPath": "venv/bin/python",
"[json]": {
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace"
},
"json.format.enable": true
}
| json |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.gemstone.gemfire.internal.cache;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import com.gemstone.gemfire.cache.CacheCallback;
import com.gemstone.gemfire.cache.CacheWriterException;
import com.gemstone.gemfire.cache.EntryNotFoundException;
import com.gemstone.gemfire.cache.Operation;
import com.gemstone.gemfire.cache.TimeoutException;
import com.gemstone.gemfire.cache.TransactionId;
import com.gemstone.gemfire.cache.query.internal.IndexUpdater;
import com.gemstone.gemfire.internal.cache.lru.LRUMapCallbacks;
import com.gemstone.gemfire.internal.cache.tier.sockets.ClientProxyMembershipID;
import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember;
import com.gemstone.gemfire.internal.cache.versions.RegionVersionVector;
import com.gemstone.gemfire.internal.cache.versions.VersionHolder;
import com.gemstone.gemfire.internal.cache.versions.VersionSource;
import com.gemstone.gemfire.internal.cache.versions.VersionTag;
/**
* Internal interface used by {@link LocalRegion} to access the map that holds
* its entries. Note that the value of every entry in this map will
* implement {@link RegionEntry}.
*
* @since 3.5.1
*
* @author <NAME>
*
*/
public interface RegionMap extends LRUMapCallbacks {
/**
* Parameter object used to facilitate construction of an EntriesMap.
* Modification of fields after the map is constructed has no effect.
*/
static class Attributes {
/** The initial capacity. The implementation
* performs internal sizing to accommodate this many elements. */
int initialCapacity = 16;
/** the load factor threshold, used to control resizing. */
float loadFactor = 0.75f;
/** the estimated number of concurrently
* updating threads. The implementation performs internal sizing
* to try to accommodate this many threads. */
int concurrencyLevel = 16;
/** whether "api" statistics are enabled */
boolean statisticsEnabled = false;
/** whether LRU stats are required */
// boolean lru = false;
}
public RegionEntryFactory getEntryFactory();
/**
* This method should be called before region is initialized
* to ensure there is no mix of region entries
*/
public void setEntryFactory(RegionEntryFactory f);
/**
* Gets the attributes that this map was created with.
*/
public Attributes getAttributes();
/**
* Tells this map what region owns it.
*/
public void setOwner(Object r);
public void changeOwner(LocalRegion r);
public int size();
public boolean isEmpty();
/**
* @return number of entries cached in the backing CHM
*/
public int sizeInVM();
public Set keySet();
/** Returns a collection of RegionEntry instances.
*/
public Collection<RegionEntry> regionEntries();
/**
* Returns a collection of RegionEntry instances from memory only.
*/
public Collection<RegionEntry> regionEntriesInVM();
public boolean containsKey(Object key);
/**
* fetches the entry from the backing ConcurrentHashMap
* @param key
* @return the RegionEntry from memory or disk
*/
public RegionEntry getEntry(Object key);
public RegionEntry putEntryIfAbsent(Object key, RegionEntry re);
/**
* fetches the entry from the backing ConcurrentHashMap.
* @param key
* @return the RegionEntry from memory
*/
public RegionEntry getEntryInVM(Object key);
/**
* fetches the entry from the backing ConcurrentHashMap only if the entry
* is considered to be in operational data i.e. does not have
* isMarkedForEviction() bit set.
* @param key
* @return the RegionEntry in operational data
*/
public RegionEntry getOperationalEntryInVM(Object key);
// /**
// * Removes any entry associated with <code>key</code>.
// * Do nothing if the map has no entry for key.
// */
// public void remove(Object key);
// /**
// * Removes the entry associated with <code>key</code>
// * if it is <code>entry</code>.
// * Otherwise do nothing.
// */
// public void remove(Object key, RegionEntry entry);
/**
* Clear the region and, if the parameter rvv is not null,
* return a collection of the IDs of version sources that are
* still in the map when the operation completes.
*/
public Set<VersionSource> clear(RegionVersionVector rvv);
/**
* Used by disk regions when recovering data from backup.
* Currently this "put" is done at a very low level to keep it from
* generating events or pushing updates to others.
* @return the created RegionEntry or null if entry already existed
*/
public RegionEntry initRecoveredEntry(Object key, DiskEntry.RecoveredEntry value);
/**
* Used by disk regions when recovering data from backup and
* initRecoveredEntry has already been called for the given key.
* Currently this "put" is done at a very low level to keep it from
* generating events or pushing updates to others.
* @return the updated RegionEntry
*/
public RegionEntry updateRecoveredEntry(Object key, DiskEntry.RecoveredEntry value);
/**
* Used to modify an existing RegionEntry or create a new one
* when processing the values obtained during a getInitialImage.
* @param wasRecovered true if the current entry in the cache was
* recovered from disk.
* @param entryVersion version information from InitialImageOperation or RegisterInterest
* @param sender the sender of the initial image, if IIO. Not needed on clients
* @param forceValue TODO
*/
public boolean initialImagePut(Object key,
long lastModified,
Object newValue,
boolean wasRecovered,
boolean deferLRUCallback,
VersionTag entryVersion, InternalDistributedMember sender, boolean forceValue);
/**
* Destroy an entry the map.
* @param event indicates entry to destroy as well as data for a <code>CacheCallback</code>
* @param inTokenMode true if destroy is occurring during region initialization
* @param duringRI true if destroy is occurring during register interest
* @param cacheWrite true if a cacheWriter should be called
* @param isEviction true if destroy was called in the context of an LRU Eviction
* @param expectedOldValue if non-null, only destroy if key exists and value is
* is equal to expectedOldValue
* @return true if the entry was destroyed, false otherwise
*
* @see LocalRegion
* @see AbstractRegionMap
* @see CacheCallback
* @see AbstractLRURegionMap
*/
public boolean destroy(EntryEventImpl event,
boolean inTokenMode,
boolean duringRI,
boolean cacheWrite,
boolean isEviction,
Object expectedOldValue,
boolean removeRecoveredEntry)
throws CacheWriterException, EntryNotFoundException, TimeoutException;
/**
* @param forceNewEntry
* used during GII, this forces us to leave an invalid token in the
* cache, even if the entry doesn't exist
* @param forceCallbacks
* using for PRs with eviction enabled, this forces invalidate
* callbacks and events even if the entry doesn't exist in the cache.
* This differs from the forceNewEntry mode in that it doesn't leave
* an Invalid token in the cache.
* @return true if invalidate was done
*/
public boolean invalidate(EntryEventImpl event,
boolean invokeCallbacks,
boolean forceNewEntry,
boolean forceCallbacks)
throws EntryNotFoundException;
public void evictValue(Object key);
/**
* @param event the event object for this operation, with the exception that
* the oldValue parameter is not yet filled in. The oldValue will be filled
* in by this operation.
*
* @param lastModified the lastModified time to set with the value; if 0L,
* then the lastModified time will be set to now.
* @param ifNew true if this operation must not overwrite an existing key
* @param ifOld true if this operation must not create a new entry
* @param expectedOldValue
* only succeed if old value is equal to this value. If null,
* then doesn't matter what old value is. If INVALID token,
* must be INVALID.
* @param requireOldValue if old value needs to be returned to caller in event
* (e.g. failed putIfAbsent)
* @param overwriteDestroyed true if okay to overwrite the DESTROYED token:
* when this is true has the following effect:
* even when ifNew is true will write over DESTROYED token
* when overwriteDestroyed is false and ifNew or ifOld is true
* then if the put doesn't occur because there is a DESTROYED token
* present then the entry flag blockedDestroyed is set.
* @return null if put was not done; otherwise reference to put entry
*/
public RegionEntry basicPut(EntryEventImpl event,
long lastModified,
boolean ifNew,
boolean ifOld,
Object expectedOldValue,
boolean requireOldValue,
boolean overwriteDestroyed)
throws CacheWriterException, TimeoutException;
/**
* Write synchronizes the given entry and invokes the runable
* while holding the lock. Does nothing if the entry does not exist.
*/
public void writeSyncIfPresent(Object key, Runnable runner);
/**
* Remove the entry with the given key if it has been marked as destroyed
* This is currently used in the cleanup phase of getInitialImage.
*/
public void removeIfDestroyed(Object key);
/**
* @param key the key of the entry to destroy
* @param rmtOrigin true if transaction being applied had a remote origin
* @param event filled in if operation performed
* @param inTokenMode true if caller has determined we are in destroy token
* mode and will keep us in that mode while this call is executing.
* @param inRI the region is performing registerInterest so we need a token
* @param op the destroy operation to apply
* @param eventId filled in if operation performed
* @param aCallbackArgument callback argument passed by user
* @param filterRoutingInfo
* @param isOperationRemote whether the operation is remote or originated here
* @param txEntryState when not null, txEntryState.versionTag is set (used on near-side to pass versionTag to TXCommitMessage)
* @param versionTag when not null, it is the tag generated on near-side to be associated with the entry on far-side
* @param tailKey when not -1, it is the tailKey generated on near-side to be associated with entry on far-side for WAN
*/
public void txApplyDestroy(Object key,
TransactionId rmtOrigin,
TXRmtEvent event,
boolean inTokenMode, boolean inRI,
Operation op,
EventID eventId,
Object aCallbackArgument,
List<EntryEventImpl> pendingCallbacks, FilterRoutingInfo filterRoutingInfo,
ClientProxyMembershipID bridgeContext,
boolean isOperationRemote, TXEntryState txEntryState, VersionTag versionTag, long tailKey);
/**
* @param key the key of the entry to invalidate
* @param newValue the new value of the entry
* @param didDestroy true if tx destroyed this entry at some point
* @param rmtOrigin true if transaction being applied had a remote origin
* @param event filled in if operation performed
* @param localOp true for localInvalidates, false otherwise
* @param aCallbackArgument callback argument passed by user
* @param filterRoutingInfo
* @param txEntryState when not null, txEntryState.versionTag is set (used on near-side to pass versionTag to TXCommitMessage)
* @param versionTag when not null, it is the tag generated on near-side to be associated with the entry on far-side
* @param tailKey when not -1, it is the tailKey generated on near-side to be associated with entry on far-side for WAN
*/
public void txApplyInvalidate(Object key,
Object newValue,
boolean didDestroy,
TransactionId rmtOrigin,
TXRmtEvent event,
boolean localOp,
EventID eventId,
Object aCallbackArgument,
List<EntryEventImpl> pendingCallbacks, FilterRoutingInfo filterRoutingInfo,
ClientProxyMembershipID bridgeContext, TXEntryState txEntryState, VersionTag versionTag, long tailKey);
/**
* @param putOp describes the operation that did the put
* @param key the key of the entry to put
* @param newValue the new value of the entry
* @param didDestroy true if tx destroyed this entry at some point
* @param rmtOrigin true if transaction being applied had a remote origin
* @param event filled in if operation performed
* @param aCallbackArgument callback argument passed by user
* @param filterRoutingInfo
* @param txEntryState when not null, txEntryState.versionTag is set (used on near-side to pass versionTag to TXCommitMessage)
* @param versionTag when not null, it is the tag generated on near-side to be associated with the entry on far-side
* @param tailKey when not -1, it is the tailKey generated on near-side to be associated with entry on far-side for WAN
*/
public void txApplyPut(Operation putOp,
Object key,
Object newValue,
boolean didDestroy,
TransactionId rmtOrigin,
TXRmtEvent event,
EventID eventId,
Object aCallbackArgument,
List<EntryEventImpl> pendingCallbacks, FilterRoutingInfo filterRoutingInfo,
ClientProxyMembershipID bridgeContext, TXEntryState txEntryState, VersionTag versionTag, long tailKey);
/**
* removes the given key if the enclosing RegionEntry is still in
* this map
*/
public void removeEntry(Object key, RegionEntry value, boolean updateStats);
/**
* Removes the given key if the enclosing RegionEntry is still in this map for
* the given EntryEvent and updating the given {@link IndexUpdater} of the
* region ({@link #getIndexUpdater()}) for the event.
*/
public void removeEntry(Object key, RegionEntry re, boolean updateStat,
EntryEventImpl event, LocalRegion owner, IndexUpdater indexUpdater);
public void copyRecoveredEntries(RegionMap rm);
public IndexUpdater getIndexUpdater();
/**
* Removes an entry that was previously destroyed and made into a tombstone.
*
* @param re the entry that was destroyed
* @param destroyedVersion the version that was destroyed
* @param isEviction true if the tombstone is being evicted by LRU
* @param isScheduledTombstone TODO
* @return true if the tombstone entry was removed from the entry map
*/
public boolean removeTombstone(RegionEntry re, VersionHolder destroyedVersion, boolean isEviction, boolean isScheduledTombstone);
/**
* Checks to see if the given version is still the version in the map
* @param re the entry that was destroyed
* @param destroyedVersion the version that was destroyed
* @return true of the tombstone is no longer needed (entry was resurrected or evicted)
*/
public boolean isTombstoneNotNeeded(RegionEntry re, int destroyedVersion);
/**
* a tombstone has been unscheduled - update LRU stats if necessary
*/
public void unscheduleTombstone(RegionEntry re);
public void updateEntryVersion(EntryEventImpl event);
/**
* Decrements the transaction reference count.
* Some features, like eviction and expiration, will
* not modify an entry while it is referenced by a transaction.
*/
public void decTxRefCount(RegionEntry e);
public void close();
}
| java |
Brentford are set to play host to Birmingham City at the Brentford Community Stadium on Tuesday for their latest EFL Championship game.
Brentford come into this game on the back of a 1-1 draw against Carlos Corberan's Huddersfield Town yesterday at the John Smith's Stadium. A first-half goal from midfielder Lewis O'Brien for Huddersfield Town was cancelled out by a second-half goal from Danish left-back Mads Bech Sorensen for Brentford.
Birmingham City, on the other hand, beat Steve Cooper's Swansea City 1-0 yesterday at St. Andrew's. A late second-half penalty from Republic of Ireland international Scott Hogan was enough to ensure victory for Birmingham City.
In 14 head-to-head encounters between the two sides, Birmingham City hold the clear advantage. They have won seven games, lost three and drawn four.
The two clubs last faced each other last year in the EFL Championship, with Birmingham City beating Brentford 1-0. A first-half goal from Angola international Jeremie Bela secured the win for Birmingham City.
Brentford manager Thomas Frank will be unable to call upon the services of left-back Rico Henry and midfielder Shandon Baptiste. There are doubts over the availability of experienced Danish right-back Henrik Dalsgaard.
Meanwhile, Birmingham City have no known injury issues and manager Lee Bowyer is expected to have a fully fit squad at his disposal.
Brentford are currently 3rd in the EFL Championship table, but have drawn their last three league games. The Bees have been inconsistent of late, and find themselves nine points behind 2nd-placed Watford, who have played a game more.
Birmingham City, on the other hand, are 20th in the league table. They are six points ahead of 22nd-placed Rotherham United, who have four games in hand. Lee Bowyer's men have their job cut out for the remainder of the season.
Brentford will be keen to get back to winning ways and should be able to win against Birmingham City. | english |
{"id":"92df4117-777b-4ef2-a25b-2d510882768f","name":"Chickenley Community School","code":"4","address":{"addressLine1":"Princess Road","addressLine2":"Dewsbury","postcode":"WF12 8QT"},"organisation":{"id":"bb7039c6-8e6c-4007-a44f-e3ae6b0163d0","code":"1A1","name":"Moor End Academy"}} | json |
Don’t Miss Out on the Latest Updates.
Subscribe to Our Newsletter Today!
Ahmedabad: Injured pacer Jasprit Bumrah was in attendance at the Narendra Modi Stadium to support Mumbai Indians against Gujarat Titans in the ongoing Indian Premier League (IPL) 2023 on Tuesday.
Meanwhile, Mumbai Indians won the toss and elected to bowl against defending champions Gujarat Titans on Tuesday. Mumbai Indians made two changes bringing in Riley Meredith in place of an unwell Jofra Archer, while Kumar Kartikeya replaced Hrithik Shokeen. Gujarat Titans are playing an unchanged squad.
Mumbai Indians: Rohit Sharma (c), Ishan Kishan (wk), Cameron Green, Suryakumar Yadav, Tim David, Nehal Wadhera, Kumar Kartikeya, Arjun Tendulkar, Riley Meredith, Piyush Chawla, Jason Behrendorff.
Gujarat Titans: Wriddhiman Saha (wk), Shubman Gill, Hardik Pandya (capt), Abhinav Manohar, Vijay Shankar, David Miller, Rahul Tewatia, Rashid Khan, Mohammed Shami, Noor Ahmad, Mohit Sharma.
However, Bumrah on Tuesday ruled out of India’s World Test Championship (WTC) final squad against Australia.
For breaking news and live news updates, like us on Facebook or follow us on Twitter and Instagram. Read more on Latest Cricket News on India. com. | english |
import { api } from '..';
const ENDPOINT = 'me';
const METHOD = 'me()';
export async function getMe() {
// Dummy object, development only
if (process.env.REACT_APP_MULTIPASS)
return {
nameFirst: 'Leeloo',
nameLast: 'Dallas',
phone: '+1234567890',
email: '<EMAIL>',
};
try {
const res = await api?.axios?.get(ENDPOINT);
if (res?.status === 200) {
const { data } = res;
log.warn(`${METHOD} -`, data);
return data;
}
} catch (error) {
log.error(`${METHOD} -`, error);
}
return undefined;
}
export default getMe;
| javascript |
<reponame>dcfSec/SecurityRAT
package org.appsec.securityRAT.web.rest;
import org.appsec.securityRAT.Application;
import org.appsec.securityRAT.domain.AlternativeInstance;
import org.appsec.securityRAT.repository.AlternativeInstanceRepository;
import org.appsec.securityRAT.repository.search.AlternativeInstanceSearchRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.Matchers.hasItem;
import org.mockito.MockitoAnnotations;
import org.springframework.boot.test.IntegrationTest;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.util.ReflectionTestUtils;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
/**
* Test class for the AlternativeInstanceResource REST controller.
*
* @see AlternativeInstanceResource
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = Application.class)
@WebAppConfiguration
@IntegrationTest
public class AlternativeInstanceResourceTest {
private static final String DEFAULT_CONTENT = "SAMPLE_TEXT";
private static final String UPDATED_CONTENT = "UPDATED_TEXT";
@Inject
private AlternativeInstanceRepository alternativeInstanceRepository;
@Inject
private AlternativeInstanceSearchRepository alternativeInstanceSearchRepository;
@Inject
private MappingJackson2HttpMessageConverter jacksonMessageConverter;
private MockMvc restAlternativeInstanceMockMvc;
private AlternativeInstance alternativeInstance;
@PostConstruct
public void setup() {
MockitoAnnotations.initMocks(this);
AlternativeInstanceResource alternativeInstanceResource = new AlternativeInstanceResource();
ReflectionTestUtils.setField(alternativeInstanceResource, "alternativeInstanceRepository", alternativeInstanceRepository);
ReflectionTestUtils.setField(alternativeInstanceResource, "alternativeInstanceSearchRepository", alternativeInstanceSearchRepository);
this.restAlternativeInstanceMockMvc = MockMvcBuilders.standaloneSetup(alternativeInstanceResource).setMessageConverters(jacksonMessageConverter).build();
}
@Before
public void initTest() {
alternativeInstance = new AlternativeInstance();
alternativeInstance.setContent(DEFAULT_CONTENT);
}
@Test
@Transactional
public void createAlternativeInstance() throws Exception {
int databaseSizeBeforeCreate = alternativeInstanceRepository.findAll().size();
// Create the AlternativeInstance
restAlternativeInstanceMockMvc.perform(post("/api/alternativeInstances")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(alternativeInstance)))
.andExpect(status().isCreated());
// Validate the AlternativeInstance in the database
List<AlternativeInstance> alternativeInstances = alternativeInstanceRepository.findAll();
assertThat(alternativeInstances).hasSize(databaseSizeBeforeCreate + 1);
AlternativeInstance testAlternativeInstance = alternativeInstances.get(alternativeInstances.size() - 1);
assertThat(testAlternativeInstance.getContent()).isEqualTo(DEFAULT_CONTENT);
}
@Test
@Transactional
public void getAllAlternativeInstances() throws Exception {
// Initialize the database
alternativeInstanceRepository.saveAndFlush(alternativeInstance);
// Get all the alternativeInstances
restAlternativeInstanceMockMvc.perform(get("/api/alternativeInstances"))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.[*].id").value(hasItem(alternativeInstance.getId().intValue())))
.andExpect(jsonPath("$.[*].content").value(hasItem(DEFAULT_CONTENT.toString())));
}
@Test
@Transactional
public void getAlternativeInstance() throws Exception {
// Initialize the database
alternativeInstanceRepository.saveAndFlush(alternativeInstance);
// Get the alternativeInstance
restAlternativeInstanceMockMvc.perform(get("/api/alternativeInstances/{id}", alternativeInstance.getId()))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON))
.andExpect(jsonPath("$.id").value(alternativeInstance.getId().intValue()))
.andExpect(jsonPath("$.content").value(DEFAULT_CONTENT.toString()));
}
@Test
@Transactional
public void getNonExistingAlternativeInstance() throws Exception {
// Get the alternativeInstance
restAlternativeInstanceMockMvc.perform(get("/api/alternativeInstances/{id}", Long.MAX_VALUE))
.andExpect(status().isNotFound());
}
@Test
@Transactional
public void updateAlternativeInstance() throws Exception {
// Initialize the database
alternativeInstanceRepository.saveAndFlush(alternativeInstance);
int databaseSizeBeforeUpdate = alternativeInstanceRepository.findAll().size();
// Update the alternativeInstance
alternativeInstance.setContent(UPDATED_CONTENT);
restAlternativeInstanceMockMvc.perform(put("/api/alternativeInstances")
.contentType(TestUtil.APPLICATION_JSON_UTF8)
.content(TestUtil.convertObjectToJsonBytes(alternativeInstance)))
.andExpect(status().isOk());
// Validate the AlternativeInstance in the database
List<AlternativeInstance> alternativeInstances = alternativeInstanceRepository.findAll();
assertThat(alternativeInstances).hasSize(databaseSizeBeforeUpdate);
AlternativeInstance testAlternativeInstance = alternativeInstances.get(alternativeInstances.size() - 1);
assertThat(testAlternativeInstance.getContent()).isEqualTo(UPDATED_CONTENT);
}
@Test
@Transactional
public void deleteAlternativeInstance() throws Exception {
// Initialize the database
alternativeInstanceRepository.saveAndFlush(alternativeInstance);
int databaseSizeBeforeDelete = alternativeInstanceRepository.findAll().size();
// Get the alternativeInstance
restAlternativeInstanceMockMvc.perform(delete("/api/alternativeInstances/{id}", alternativeInstance.getId())
.accept(TestUtil.APPLICATION_JSON_UTF8))
.andExpect(status().isOk());
// Validate the database is empty
List<AlternativeInstance> alternativeInstances = alternativeInstanceRepository.findAll();
assertThat(alternativeInstances).hasSize(databaseSizeBeforeDelete - 1);
}
}
| java |
{
"name": "gatsby-starter-resume",
"version": "0.0.1",
"description": "Gatsby.js V2 starter template based on Resume by startbootstrap",
"repository": {
"type": "git",
"url": "git+https://github.com/anubhavsrivastava/gatsby-starter-resume.git"
},
"author": {
"name": "<NAME>",
"email": "<EMAIL>"
},
"dependencies": {
"@chakra-ui/gatsby-plugin": "^1.0.1",
"@chakra-ui/icons": "^1.0.6",
"@chakra-ui/react": "^1.3.4",
"@chakra-ui/system": "^1.4.0",
"@chakra-ui/theme": "^1.7.0",
"@emotion/react": "^11.1.5",
"@emotion/styled": "^11.1.5",
"bootstrap": "^4.5.0",
"font-awesome": "^4.7.0",
"framer-motion": "^3.10.3",
"gatsby": "^2.20.2",
"gatsby-plugin-google-analytics": "^2.3.2",
"gatsby-plugin-manifest": "^2.3.1",
"gatsby-plugin-offline": "^3.1.0",
"gatsby-plugin-react-helmet": "^3.2.0",
"gatsby-plugin-sass": "^2.2.0",
"jquery": "^3.5.1",
"jquery.easing": "^1.4.1",
"node-sass": "^4.13.1",
"popper.js": "^1.16.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^5.2.1",
"react-images": "^1.1.0",
"react-scrollspy": "^3.4.2",
"smoothscroll-polyfill": "^0.4.4",
"styled-components": "^5.1.1"
},
"scripts": {
"dev": "gatsby develop",
"develop": "gatsby develop",
"build": "npm run clean && gatsby build",
"deploy": "npm run clean && gatsby build --prefix-paths && gh-pages -d public",
"serve": "gatsby serve",
"clean": "rimraf .cache public",
"format": "prettier --write '**/*.js'",
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\""
},
"devDependencies": {
"eslint-config-airbnb": "^18.1.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.20.0",
"gh-pages": "^2.0.1",
"prettier": "^1.17.0",
"rimraf": "^3.0.2"
},
"keywords": [
"gatsby",
"gatsby-starter",
"gatsby-starter-resume"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/anubhavsrivastava/gatsby-starter-resume/issues"
},
"homepage": "https://github.com/anubhavsrivastava/gatsby-starter-resume#readme"
}
| json |
- PM Shehbaz travelling to S Arabia at crown prince’s invitation.
- Premier to hold consultations with crown prince.
- To also attend Saudi Future Investment Initiative Summit.
ISLAMABAD: Prime Minister Shehbaz Sharif will embark on an official visit to Riyadh, Saudi Arabia on October 24 (today), a statement issued by the Foreign Office said on Monday.
The statement said that Crown Prince and Prime Minister of the Kingdom of Saudi Arabia Mohammed bin Salman invited PM Shehbaz to visit the kingdom.
During his stay in Riyadh, the premier will hold consultations with the Saudi crown prince to review the longstanding fraternal relations, with a view to further strengthening the multifaceted cooperation, especially in the economic field.
“The prime minister will also attend the Saudi Future Investment Initiative Summit,” read the statement.
The visit comes after it was reported that Crown Prince Muhammad Bin Salman will undertake a trip to Pakistan this November.
The prince was invited by PM Shehbaz in a recent telephonic conversation between the two. The leaders discussed important subjects of mutual interest and the flood situation in Pakistan.
It would be the first visit by the crown prince after the change of government in Pakistan in April this year. The crown prince will have discussions on bilateral, regional and international subjects of mutual interest with the host leadership.
| english |
Fixya, the site that gives do-it-yourselfers tips for fixing broken stuff, is launching a new service aimed at connecting local repair shops and service providers with people in need of assistance.
“We created this program as more of a funnel. So here’s a way for a small business to generate traffic for themselves and get traction in their local areas,” says Fixya chief executive Yaniv Bensadon.
It’s the latest step in Fixya’s march toward being more than just about expert answers to queries about broken devices. In 2013 the company unveiled FixBoard, which allows businesses to track how many problems Fixya users have reported with particular devices, what the problems are, and how those complaints compare with complaints lodged against competitors’ products.
And Fixya is experimenting with other potential products. In the future, local professionals could pay to get featured on the site for their expertise and potentially have an expanded array of services available to offer to Fixya’s visitors.
The company is also experimenting with providing branded experiences for site visitors. “If 800,000 HP customers are coming to the site, we’ll allow HP to brand that experience and potentially sell their own products and services,” says Bensadon.
Unlike other question and answer sites like Quora, Fixya has been relatively capital light raising only $8 million in venture financing to Quora’s over $100 million. And the company has been profitable since 2009, according to Bensadon.
Now, as it rolls out new revenue-generating initiatives the company could return to market to raise additional capital, Bensadon says. In fact, the company may look to raise a round “well North of $50 million” later this year, he says.
“There are 30 million users who land on the Fixya site and we know exactly what’s not working for them,” Bensadon says. That’s powerful information for any manufacturer purely for that asset itself.
| english |
<gh_stars>1-10
# 760. Find Anagram Mappings (Easy)
Given two lists Aand B, and B is an anagram of A. B is an anagram of A means B is made by randomizing the order of the elements in A.
We want to find an index mapping P, from A to B. A mapping P[i] = j means the ith element in A appears in B at index j.
These lists A and B may contain duplicates. If there are multiple answers, output any of them.
For example, given
A = [12, 28, 46, 32, 50]
B = [50, 12, 32, 46, 28]
We should return
[1, 4, 3, 2, 0]
as P[0] = 1 because the 0th element of A appears at B[1], and P[1] = 4 because the 1st element of A appears at B[4], and so on.
Note:
A, B have equal lengths in range [1, 100].
A[i], B[i] are integers in range [0, 10^5].
#GOOGL
#Hash Table
| markdown |
package datastructures.graph;
import datastructures.linkedlist.Bag;
public class EdgeWeightedDigraph {
private final int v;
private int e;
private Bag<DirectedEdge>[] adj;
public EdgeWeightedDigraph(int v) {
this.v = v;
this.e = 0;
adj = (Bag<DirectedEdge>[]) new Bag[v];
for (int i = 0; i < v; i++) {
adj[i] = new Bag<DirectedEdge>();
}
}
public EdgeWeightedDigraph(double[][] g) {
this((int) g[0][0]);
int e = (int) g[0][1];
for (int i = 1; i <= e; i++) {
DirectedEdge edge = new DirectedEdge((int) g[i][0], (int) g[i][1], g[i][2]);
addEdge(edge);
}
}
public int v() {
return v;
}
public int e() {
return e;
}
public void addEdge(DirectedEdge e) {
adj[e.from()].add(e);
this.e++;
}
public Iterable<DirectedEdge> adj(int v) {
return adj[v];
}
public Iterable<DirectedEdge> edges() {
Bag<DirectedEdge> bag = new Bag<DirectedEdge>();
for (int i = 0; i < v; i++) {
for (DirectedEdge e : adj[i]) {
bag.add(e);
}
}
return bag;
}
} | java |
<filename>json-transform/src/main/java11/com/github/nhojpatrick/cucumber/json/transform/impl/ModuleInfoHack.java
package com.github.nhojpatrick.cucumber.json.transform.impl;
public class ModuleInfoHack {
}
| java |
The Delhi government has allowed the city's restro-bars, hotels, and clubs to sell their stock of beer expiring by July 15 to liquor shops in a bid to minimise their financial losses, an official said on Sunday.
There are around 950 hotels, clubs and restro-bars in the national capital which have an excise license but have not been allowed to open since March 25, when the nationwide lockdown was announced.
Earlier this month, the government had allowed the owners of such establishments to sell to liquor shops their stock of beer expiring in June.
"The department has now allowed restro-bars, hotels and clubs to sell their stock of beer expiring by July 15 to liquor shops in the city," the official said.
The shelf life of beer in Delhi is around six months, the official said.
"Hotel, clubs and restaurants licensee shall prepare an inventory of all beer stock, with barcode, which is to be transferred at licensed vend," the excise department said in an order.
"The licensee from hotels, clubs and restaurants shall then submit the barcode list of beer stock and consent letter obtained from licensed vend to excise department with the request for allowing transfer of beer stock," it said.
According to the process, the owners of restro-bars, clubs, and hotels will have to reach an agreement with the liquor vend owners. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI) | english |
Ever since a buyout was secured by veteran guard Rajon Rondo with the Memphis Grizzlies, the LA Lakers have emerged as clear leaders in the race to land their former backup point guard.
As corroborated via reports from Atheltics' Shams Charania and ESPN's Adrian Wojnarowski, the 2-time NBA Champion will clear waivers on Monday, upon which he is highly likely to sign a minimum deal with the LA Lakers in what would be a homecoming signing.
But even amidst the commotion of Rajon Rondo's expected poetic return to the LA Lakers, the value-addition through his presence on the stacked LA roster can still be questioned. He was part of the Lakers squad that conquered the Bubble and shot almost 40% from downtown in the playoffs en route to his 2nd championship ring.
Although his veteran backcourt IQ is an asset to any team he joins, his current potential position with the 2020 champs will be a bit too superfluous. On that note, let's take a look at three glaring reasons why LA Lakers could make a mistake by signing Rajon Rondo.
The LA Lakers did not bring back Jared Dudley, who despite his meager scoring numbers was a key locker room presence. This revealed the front office's mindset of topping off a veteran-packed team with fresh legs.
Signing Rajon Rondo will only be driving them further away from their goal and only increasing the average age of the championship contending squad. Certainly, Rondo is not your average 35-year-old, but talent and athleticism is taking over the league quickly and the Lakers need to join the trend as well.
During his previous stint with the LA Lakers, Rajon Rondo averaged 7. 1 points and 5 assists per game, while coming off the bench. Even with a slight increase in stats during his recent season with the Los Angeles Clippers, these are numbers that the Lakers can survive without.
The LA Lakers went all out this offseason in their hunt for another NBA Championship. When it comes to the eventual Rajon Rondo signing, he will be joining a heavily stacked backcourt with incredible depth, courtesy of some major offseason moves by the Lakers front office.
With Russell Westbrook is expected to be their new starting point guard, Rondo will be fighting for minutes against Kent Bazemore, Malik Monk, Kendrick Nunn, Talen Horton-Tucker and Wayne Ellington.
It is glaringly apparent that the LA Lakers are not short of veteran presence or ball handlers. What they would be more focussed on is getting spot-up shooters around their marquee stars Anthony Davis and LeBron James. JJ Reddick might be on their radar, citing his shooting prowess and renowned professional work ethic.
All of the aforementioned tidbits make Rajon Rondo kind of a misfit with the current LA Lakers roster. And there's a high chance that he'll have to settle for a lesser role to begin the season with limited on-court time.
After being traded to the Atlanta Hawks this past year, Rajon Rondo was dealt to the Los Angeles Clippers midway during the regular season. The 4-time NBA All-Star came off the bench in 18 games and averaged a mediocre 7. 6 points and 5. 8 dimes per game.
Not only this, his playoff numbers were even worse, leaving Ty Lue with a lack of options when his stars got injured deep into the postseason. These are all signs that Rajon Rondo's mythical playoff acumen is losing luster drastically.
And with LeBron's career fast approaching its twilight period, the LA Lakers need someone who can step up in crunch playoff minutes before the championship window closes on them. | english |
/*
* Copyright (C) 2012-2013 Facebook, Inc.
*
* 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.facebook.nifty.core;
import org.jboss.netty.channel.ChannelEvent;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.handler.logging.LoggingHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.SocketAddress;
public class NiftyExceptionLogger extends LoggingHandler
{
private static final Logger log = LoggerFactory.getLogger(NiftyExceptionLogger.class);
@Override
public void log(ChannelEvent event)
{
if (event instanceof ExceptionEvent) {
ExceptionEvent exceptionEvent = (ExceptionEvent) event;
SocketAddress remoteAddress = exceptionEvent.getChannel().getRemoteAddress();
log.error("Exception triggered on channel connected to " + remoteAddress,
exceptionEvent.getCause());
}
}
}
| java |
$(function () {
$('#redisInfo').click(function () {
$.ajax({
type: 'GET',
url: contextPath + "/redisInfo",
data: {server: $('#servers').val(), database: $('#databases').val()},
success: function (result, textStatus, request) {
var contentHtml = '<div><span class="key">Redis info</span></div>' +
'<pre>' + result + '</pre>'
$('#frame').html(contentHtml)
},
error: function (jqXHR, textStatus, errorThrown) {
alert("16." + jqXHR.responseText + "\nStatus: " + textStatus + "\nError: " + errorThrown)
}
})
})
}) | javascript |
The expansive Sanjeevaiah Park has hordes of visitors — love birds, feathered birds, gawking boys and vendors, all right. But, what has been attracting swarms of butterflies is a small garden on the opposite side.
An amazing variety of butterflies have made their home in the near one-acre patch of land cleared out by the GHMC in the last one month or so for its butterfly garden. The site, which was hitherto occupied by garbage and used for cleaning the sweeping machines, has been transformed and how.
It now has a colourful range of shrubs, creepers and trees with flowers and dancing on them incessantly in their brilliant hues are the butterflies with each variety sticking to a particular plant or flower of their choice!
“We just cleared the area and put the plant-specific butterflies and in 15 days the butterflies started coming,” says a delighted North Zone Commissioner S. Harikrishna.
He saw such a garden in a resort in Kerala, trawled the Internet for information on plants, confabulated with his horticulture staff and began working on the garden two- and-a-half months ago.
“Our horticulture staff also visited the zoo park which has a similar facility. But, even I was amazed at how quickly our garden attracted the butterflies,” he laughs.
“The butterflies started as soon the flowering began. We have counted 20-25 varieties of butterflies and expect the count to touch 40,” says C. V. Bhagyalakshmi, Assistant Director, Horticulture wing.
The municipal corporation has not yet publicised the park and hence did not put up a board. It is still mulling the options of regulating the entry lest it disturbs the butterflies and to protect the flowering plants too. | english |
{
"name": "reminde-me",
"productName": "Remind Me",
"description": "Starter for your Electron application",
"version": "0.0.0",
"private": true,
"author": "<NAME>",
"copyright": "© 2020, Clarion Technologies",
"homepage": "http://example.com",
"main": "app/background.js",
"build": {
"appId": "com.example.remind-me",
"files": [
"app/**/*",
"node_modules/**/*",
"package.json"
],
"directories": {
"buildResources": "resources"
},
"publish": null
},
"scripts": {
"postinstall": "electron-builder install-app-deps",
"preunit": "webpack --config=build/webpack.unit.config.js --env=test --display=none",
"unit": "electron-mocha temp/specs.js --renderer --require source-map-support/register",
"pree2e": "webpack --config=build/webpack.app.config.js --env=test --display=none && webpack --config=build/webpack.e2e.config.js --env=test --display=none",
"e2e": "mocha temp/e2e.js --require source-map-support/register",
"test": "npm run unit && npm run e2e",
"start": "node build/start.js",
"package-linux": "electron-packager . reminde-me --overwrite --asar=true --platform=linux --arch=x64 --icon='build/icon.png' --prune=true --out=release-builds",
"create-debian": "electron-installer-debian --src release-builds/reminde-me-linux-x64 --arch amd64 --config debian.json",
"release": "webpack --config=build/webpack.app.config.js --env=production && electron-builder"
},
"dependencies": {
"auto-launch": "^5.0.5",
"electron-prompt": "^1.5.1",
"fs-jetpack": "^2.1.0",
"jquery": "^3.4.1",
"xml2js": "^0.4.23",
"xmlhttprequest": "^1.8.0",
"object-to-xml": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-loader": "^8.0.0-beta.4",
"chai": "^4.1.0",
"css-loader": "^3.1.0",
"electron": "^4.0.0",
"electron-builder": "^21.1.5",
"electron-mocha": "^8.1.1",
"electron-packager": "^14.2.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"mocha": "^6.2.0",
"source-map-support": "^0.5.6",
"spectron": "^6.0.0",
"style-loader": "^0.23.1",
"webpack": "^4.38.0",
"webpack-cli": "^3.3.6",
"webpack-merge": "^4.1.3",
"webpack-node-externals": "^1.7.2"
}
}
| json |
<reponame>hoholee12/super-fast-chip8-emulator
#include"Frameskip.h"
void Frameskip::init(int cpuspeed, int fps){
//frameskip init
screenFps = fps;
if (screenFps > timerSpeed) screenFps = timerSpeed; //no more than timerSpeed 60hz
if (fsbSpeed < timerSpeed) fsbSpeed = timerSpeed;
cpuSpeed = cpuspeed;
if (cpuSpeed < fsbSpeed) cpuSpeed = fsbSpeed; //prevent division by zero
updateNewTimerSet();
calculateSkip();
}
void Frameskip::startTime(){
prevTick = defaults::checkTime();
}
void Frameskip::endTime(){
currTick = defaults::checkTime() - prevTick; //current tick checked here
holdTick = screenDelayPerFrame - currTick; //for original speed
}
void Frameskip::videoDelay(){
if (holdTick > 0) defaults::delayTime(holdTick);
}
void Frameskip::updateNewTimerSet(){
screenTicksPerFrame = cpuSpeed / screenFps; //cycles
delayTimerPerFrame = cpuSpeed / timerSpeed; //cycles
screenDelayPerFrame = 1000 / screenFps; //milliseconds
windowTicksPerFrame = cpuSpeed / windowFps; //cycles
fsbTicksPerFrame = cpuSpeed / fsbSpeed; //cycles
}
void Frameskip::calculateSkip(){
//skip mechanism
int tempTick = holdTick;
if (holdTick < 0){
tempTick *= -1; //convert to positive
skipMultiplier = tempTick / screenDelayPerFrame + 1;
backupFps = screenFps / (skipValue * skipMultiplier);
}
else backupFps = screenFps;
if (backupFps == 0) backupFps = 1; //prevent div by zero
//printf("holdtick = %d holdtickfskip = %d skipmultiplier = %d\n", holdTick, holdTick_fskip, skipMultiplier);
//apply skip value
backupTicksPerFrame = cpuSpeed / backupFps;
//backupDelayPerFrame = 1000 / screenFps; //milliseconds
//this wouldnt make sense, new sleep calculation means slower speed with slower fps lol
}
| cpp |
Philippe Poutou is clearly the guy who makes us the hardest of this solidly moldy presidential campaign. The proof is the guy with the best repartee in the history of the political punchline and for that alone, he deserves all our love and admiration.
The quote in full: “When we are summoned by the police, for example, we don’t have worker immunity, we go. You have a chance, the system protects you, good for you. We give you the video for more violence with blood in it.
BAAAAAAM. In your face Fillon give back the money. I am giving you a picture of him in case you forgot what his face looked like.
It was during a meeting of the New Anti-Capitalist Party. OK it’s been two times that he’s chambered Fillon but we never get tired of it.
AAAAAAAANNNN. How I would not have liked to be in Estrosi’s place it burns.
Too good the reaction of Griveaux super upset. Go away naughty.
Certainly one of his most beautiful releases concerning the Z.
Come on, but that’s my sure guy from the CGT.
A sentence that earned it the title of the best valves of political humor in 2017. What a talent.
Fired from the Ford factory in Blanquefort in 2019, he has since become a municipal councilor in Bordeaux. But it is true that he is one of the rare candidates to have a real job, that is to say not a professor at po sciences, not a lawyer in a consulting firm and all these obscure jobs which seem to lead more easily to presidential than any manual trade.
One of Poutou’s last outings on Macron who shamelessly stole his slogan during his last big meeting “Our lives, their lives, are worth more than all the profits”.
Answer that Mac.
Thank you.
| english |
Himachal Pradesh Chief Minister Sukhvinder Singh Sukhu on Tuesday said the state government will transform government schools into smart schools.
Presiding over a review meeting of Sarv Shiksha Abhiyan (SSA) here on Tuesday he said that in the first phase, classes 11 and 12 will be transformed into smart classes.
The classes will be equipped with smart classroom equipment, and smart furniture while the interior of the classroom will also be improved to provide a better learning atmosphere for students, Sukhu said in a statement issued here.
The chief minister directed the Education Department to identify schools with good students’ strength, internet connectivity and buildings, to implement this facility efficiently.
He said that in the subsequent phases, this facility would be extended to classes 8 to 10 and then from 1 to 7.
Library rooms will be established in every Senior Secondary School and 40,000 modern desks will be provided to government schools this year, Sukhu added.
The chief minister said that over 17,000 primary school teachers will be given tablets to adopt best educational practices for facilitating better education for students.
Sukhu said that the state government is paying special attention to improving the education standards in government schools, particularly in the remote areas. (This story has not been edited by News18 staff and is published from a syndicated news agency feed - PTI) | english |
<reponame>HamidrezaLashgari/Nature-environment<filename>style.css
* {
font-family: "Vazir-FD";
}
@font-face {
font-family: "Vazir-FD";
src: url("./assets/fonts/Vazir-Regular-FD.woff");
}
body {
margin: 0;
}
.header-wallpaper {
height: 100vh;
background: url("./assets/wallpaper/e05744161d7500a183d5ec3a38a6e626.jpg")
center/cover no-repeat;
}
.logo {
display: inline-block;
position: relative;
top: 50px;
}
.logo a {
text-decoration: none;
list-style: none;
font-size: 3rem;
color: #43a159;
}
.navbar {
display: flex;
flex-direction: column;
align-items: center;
}
.menu {
text-align: right;
}
.menu-items {
/* display: inline-block; */
text-align: center;
padding: 0;
position: relative;
margin-top: 290px;
}
.menu-item {
font-size: 20px;
list-style: none;
background: -webkit-linear-gradient(#019096, #43a159);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.menu-item a {
text-decoration: none;
}
.svg {
position: relative;
top: 29vh;
padding: 0;
margin: 0;
}
/*
Scroll button
*/
.arrows {
width: 60px;
height: 72px;
position: absolute;
left: 50%;
margin-left: -30px;
bottom: 20px;
}
.arrows path {
stroke: #ffffff;
fill: transparent;
stroke-width: 1px;
animation: arrow 2s infinite;
-webkit-animation: arrow 2s infinite;
}
@keyframes arrow {
0% {
opacity: 0;
}
40% {
opacity: 1;
}
80% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@-webkit-keyframes arrow /*Safari and Chrome*/ {
0% {
opacity: 0;
}
40% {
opacity: 1;
}
80% {
opacity: 0;
}
100% {
opacity: 0;
}
}
.arrows path.a1 {
animation-delay: -1s;
-webkit-animation-delay: -1s; /* Safari 和 Chrome */
}
.arrows path.a2 {
animation-delay: -0.5s;
-webkit-animation-delay: -0.5s; /* Safari 和 Chrome */
}
.arrows path.a3 {
animation-delay: 0s;
-webkit-animation-delay: 0s; /* Safari 和 Chrome */
}
/* scroll button end */
.solution {
position: relative;
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-content: center;
align-items: center;
justify-content: center;
top: 10rem;
background: linear-gradient(
166deg,
rgba(1, 144, 150, 1) 21%,
rgba(43, 155, 111, 1) 46%,
rgba(97, 169, 62, 1) 100%
);
}
.title {
text-align: center;
font-size: 1.6rem;
padding: 2rem 0rem;
margin: 0;
}
.hr {
width: 50%;
color: rgba(1, 144, 150, 1);
}
.energyimg {
margin: 2rem 2rem;
}
.energyimg img {
/* height: 68px;
width: 301px;
*/
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.solution-content__text {
text-align: center;
direction: rtl;
margin: 2rem 2rem;
}
.solution-content__picture img {
/* width: 340px; */
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.clean-world {
position: relative;
top: 145px;
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
justify-content: center;
}
.clean-world__text {
text-align: center;
direction: rtl;
padding: 2rem 2rem;
}
.clean-world__picture img {
/* width: 340px; */
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.light-box-modal {
background: linear-gradient(
313deg,
rgba(1, 144, 150, 1) 21%,
rgba(43, 155, 111, 1) 46%,
rgba(97, 169, 62, 1) 100%
);
position: relative;
top: 145px;
}
/* modal */
.row > .column {
padding: 0 8px;
}
.row:after {
content: "";
display: table;
clear: both;
}
.column {
float: left;
width: 60%;
margin: 4rem 4rem;
}
/* The Modal (background) */
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: black;
}
/* Modal Content */
.modal-content {
position: relative;
background-color: #fefefe;
margin: auto;
padding: 0;
width: 90%;
max-width: 1200px;
}
/* The Close Button */
.close {
color: white;
position: absolute;
top: 10px;
right: 25px;
font-size: 35px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #999;
text-decoration: none;
cursor: pointer;
}
.mySlides {
display: none;
}
.cursor {
cursor: pointer;
}
/* Next & previous buttons */
.prev,
.next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -50px;
color: white;
font-weight: bold;
font-size: 20px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
-webkit-user-select: none;
}
/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}
img {
margin-bottom: -4px;
}
.caption-container {
text-align: center;
background-color: black;
padding: 2px 16px;
color: white;
}
.demo {
opacity: 0.6;
}
.active,
.demo:hover {
opacity: 1;
}
img.hover-shadow {
transition: 0.3s;
}
.hover-shadow:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/* modal end */
.our-plan {
position: relative;
top: 145px;
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
justify-content: center;
}
.our-plan__text {
text-align: center;
direction: rtl;
padding: 2rem 2rem;
}
.what-we-can-do__text {
text-align: center;
direction: rtl;
padding: 2rem 2rem;
}
our-plan img {
display: block;
margin-left: auto;
margin-right: auto;
width: 100%;
}
.main-footer {
position: relative;
top: 145px;
bottom:0;
background: linear-gradient(
183deg,
rgba(1, 144, 150, 1) 21%,
rgba(43, 155, 111, 1) 46%,
rgba(97, 169, 62, 1) 100%
);
margin-top: 4rem;
}
.end-footer {
text-align: center;
margin-top: 5rem;
padding: 0;
font-size: 0.6rem;
}
.footer-item {
list-style: none;
}
#whitetitle {
color: #ffffff;
}
@media (min-width: 376px) {
.svg svg{
position: relative;
bottom: 150px;
}
.title{
font-size: 3rem;
}
.solution-content__picture img {
width: 50%;
}
.clean-world__picture img {
margin-bottom: 4rem;
}
.row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
.column{
margin-left: auto;
margin-right: auto ;
}
#text-content{
margin: 4rem 4rem;
font-size: 1.5rem;
}
.what-we-can-do__img{
width: 50%;
margin-left: auto;
margin-right: auto;
}
.svg {
position: unset;
}
.arrows {
bottom: 211px;
}
} | css |
Exploring various avenues is a hobby. Here I write to express whatever I experience in the amazing world around me.
Those germs improved our immunity back then.
We don't need a 99% germ free world.
You feed what you focus on.
If the ants of the world unite the earth will tilt.
| english |
<filename>codechef/README.md
# [Codechef](http://www.codechef.com/)
My attempts at solving problems on [**codechef**](http://www.codechef.com/).
| markdown |
Barring three, who are still under observation in the Intensive Care Units of two hospitals, the rest have been discharged.
It also asked people to move away from the source of exposure and ensure adequate ventilation.
According to the school, the students in the morning shift were affected by the incident, whereas those in the evening shift were informed not to come.
Police has registered an FIR in the matter under various sections of IPC and the Environment (Protection) Act.
Delhi Gas leak: According to DCP, South-East, Romil Baniya, students are feeling better and are being handed over to their parents. | english |
RRR actor Jr NTR's fans are celebrating the star in the grand way in Beverly Hills. These fans organized three LED moving trucks along with 25 billboards on the road.
Popular South Indian actors Jr NTR and Ram Charan's action-drama film RRR directed by SS Rajamouli have been creating a lot of attention in the US for the past few days. The trio along with their spouses will attend the Golden Globes 2023 on the 11th of January in Los Angeles. Ram Charan, SS Rajamouli and Jr NTR have been attending screenings and other press conferences. Well, ahead of Golden Globes, Jr NTR's fans are celebrating their favourite star most grandly. The fans are leaving no stones unturned in showcasing their love for the handsome hunk. Jr NTR's fans celebrated him in Beverly Hills and organized three LED moving trucks along with 25 billboards on the road. Jr NTR fans are madly in love with their star and took the celebrations a notch higher.
SS Rajamouli's RRR has been nominated in two categories in the most prestigious award function Golden Globes 2023 including Best Foreign Language Film and Best Original Song. They were spotted at Chinese Theatre in Los Angeles, where the screening of RRR took place. Pictures of the trio have gone viral on the social media and fans are going crazy over it.
RRR has been nominated in 14 categories for Oscars 2023 and the final list of nominations will soon be out. The fans of RRR are eagerly waiting for the South Indian actors to see if they win an award at the Golden Globes.
RRR's storyline and plot are about two Telugu freedom fighters, Alluri Seetharama Raju and Komaram Bheem. The film garnered Rs. 1200 crores worldwide and received a lot of appreciation. The film also stars Ajay Devgn, Alia Bhatt, Shriya Saran, Samuthirakani, Ray Stevenson, Alison Doody, and Olivia Morris in pivotal roles.
Stay tuned to BollywoodLife for the latest scoops and updates from Bollywood, Hollywood, South, TV and Web-Series.
Click to join us on Facebook, Twitter, Youtube and Instagram.
Also follow us on Facebook Messenger for latest updates.
| english |
<gh_stars>1-10
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.hbase.regionserver.wal;
import java.io.IOException;
import java.io.InterruptedIOException;
import java.util.List;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hbase.client.ConnectionUtils;
import org.apache.hadoop.hbase.wal.WALProvider.AsyncWriter;
import org.apache.yetus.audience.InterfaceAudience;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.hbase.thirdparty.com.google.common.annotations.VisibleForTesting;
import org.apache.hbase.thirdparty.com.google.common.io.Closeables;
import org.apache.hbase.thirdparty.io.netty.channel.Channel;
import org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup;
/**
* An AsyncFSWAL which writes data to two filesystems.
*/
@InterfaceAudience.Private
public class DualAsyncFSWAL extends AsyncFSWAL {
private static final Logger LOG = LoggerFactory.getLogger(DualAsyncFSWAL.class);
private final FileSystem remoteFs;
private final Path remoteWALDir;
private volatile boolean skipRemoteWAL = false;
private volatile boolean markerEditOnly = false;
public DualAsyncFSWAL(FileSystem fs, FileSystem remoteFs, Path rootDir, Path remoteWALDir,
String logDir, String archiveDir, Configuration conf, List<WALActionsListener> listeners,
boolean failIfWALExists, String prefix, String suffix, EventLoopGroup eventLoopGroup,
Class<? extends Channel> channelClass) throws FailedLogCloseException, IOException {
super(fs, rootDir, logDir, archiveDir, conf, listeners, failIfWALExists, prefix, suffix,
eventLoopGroup, channelClass);
this.remoteFs = remoteFs;
this.remoteWALDir = remoteWALDir;
}
// will be overridden in testcase
@VisibleForTesting
protected AsyncWriter createCombinedAsyncWriter(AsyncWriter localWriter,
AsyncWriter remoteWriter) {
return CombinedAsyncWriter.create(remoteWriter, localWriter);
}
@Override
protected AsyncWriter createWriterInstance(Path path) throws IOException {
AsyncWriter localWriter = super.createWriterInstance(path);
// retry forever if we can not create the remote writer to prevent aborting the RS due to log
// rolling error, unless the skipRemoteWal is set to true.
// TODO: since for now we only have one thread doing log rolling, this may block the rolling for
// other wals
Path remoteWAL = new Path(remoteWALDir, path.getName());
for (int retry = 0;; retry++) {
if (skipRemoteWAL) {
return localWriter;
}
AsyncWriter remoteWriter;
try {
remoteWriter = createAsyncWriter(remoteFs, remoteWAL);
} catch (IOException e) {
LOG.warn("create remote writer {} failed, retry = {}", remoteWAL, retry, e);
try {
Thread.sleep(ConnectionUtils.getPauseTime(100, retry));
} catch (InterruptedException ie) {
// restore the interrupt state
Thread.currentThread().interrupt();
Closeables.close(localWriter, true);
throw (IOException) new InterruptedIOException().initCause(ie);
}
continue;
}
return createCombinedAsyncWriter(localWriter, remoteWriter);
}
}
@Override
protected boolean markerEditOnly() {
return markerEditOnly;
}
// Allow temporarily skipping the creation of remote writer. When failing to write to the remote
// dfs cluster, we need to reopen the regions and switch to use the original wal writer. But we
// need to write a close marker when closing a region, and if it fails, the whole rs will abort.
// So here we need to skip the creation of remote writer and make it possible to write the region
// close marker.
// Setting markerEdit only to true is for transiting from A to S, where we need to give up writing
// any pending wal entries as they will be discarded. The remote cluster will replicated the
// correct data back later. We still need to allow writing marker edits such as close region event
// to allow closing a region.
public void skipRemoteWAL(boolean markerEditOnly) {
if (markerEditOnly) {
this.markerEditOnly = true;
}
this.skipRemoteWAL = true;
}
}
| java |
// All symbols with the `Radical` property as per Unicode v4.1.0:
[
'\u2E80',
'\u2E81',
'\u2E82',
'\u2E83',
'\u2E84',
'\u2E85',
'\u2E86',
'\u2E87',
'\u2E88',
'\u2E89',
'\u2E8A',
'\u2E8B',
'\u2E8C',
'\u2E8D',
'\u2E8E',
'\u2E8F',
'\u2E90',
'\u2E91',
'\u2E92',
'\u2E93',
'\u2E94',
'\u2E95',
'\u2E96',
'\u2E97',
'\u2E98',
'\u2E99',
'\u2E9B',
'\u2E9C',
'\u2E9D',
'\u2E9E',
'\u2E9F',
'\u2EA0',
'\u2EA1',
'\u2EA2',
'\u2EA3',
'\u2EA4',
'\u2EA5',
'\u2EA6',
'\u2EA7',
'\u2EA8',
'\u2EA9',
'\u2EAA',
'\u2EAB',
'\u2EAC',
'\u2EAD',
'\u2EAE',
'\u2EAF',
'\u2EB0',
'\u2EB1',
'\u2EB2',
'\u2EB3',
'\u2EB4',
'\u2EB5',
'\u2EB6',
'\u2EB7',
'\u2EB8',
'\u2EB9',
'\u2EBA',
'\u2EBB',
'\u2EBC',
'\u2EBD',
'\u2EBE',
'\u2EBF',
'\u2EC0',
'\u2EC1',
'\u2EC2',
'\u2EC3',
'\u2EC4',
'\u2EC5',
'\u2EC6',
'\u2EC7',
'\u2EC8',
'\u2EC9',
'\u2ECA',
'\u2ECB',
'\u2ECC',
'\u2ECD',
'\u2ECE',
'\u2ECF',
'\u2ED0',
'\u2ED1',
'\u2ED2',
'\u2ED3',
'\u2ED4',
'\u2ED5',
'\u2ED6',
'\u2ED7',
'\u2ED8',
'\u2ED9',
'\u2EDA',
'\u2EDB',
'\u2EDC',
'\u2EDD',
'\u2EDE',
'\u2EDF',
'\u2EE0',
'\u2EE1',
'\u2EE2',
'\u2EE3',
'\u2EE4',
'\u2EE5',
'\u2EE6',
'\u2EE7',
'\u2EE8',
'\u2EE9',
'\u2EEA',
'\u2EEB',
'\u2EEC',
'\u2EED',
'\u2EEE',
'\u2EEF',
'\u2EF0',
'\u2EF1',
'\u2EF2',
'\u2EF3',
'\u2F00',
'\u2F01',
'\u2F02',
'\u2F03',
'\u2F04',
'\u2F05',
'\u2F06',
'\u2F07',
'\u2F08',
'\u2F09',
'\u2F0A',
'\u2F0B',
'\u2F0C',
'\u2F0D',
'\u2F0E',
'\u2F0F',
'\u2F10',
'\u2F11',
'\u2F12',
'\u2F13',
'\u2F14',
'\u2F15',
'\u2F16',
'\u2F17',
'\u2F18',
'\u2F19',
'\u2F1A',
'\u2F1B',
'\u2F1C',
'\u2F1D',
'\u2F1E',
'\u2F1F',
'\u2F20',
'\u2F21',
'\u2F22',
'\u2F23',
'\u2F24',
'\u2F25',
'\u2F26',
'\u2F27',
'\u2F28',
'\u2F29',
'\u2F2A',
'\u2F2B',
'\u2F2C',
'\u2F2D',
'\u2F2E',
'\u2F2F',
'\u2F30',
'\u2F31',
'\u2F32',
'\u2F33',
'\u2F34',
'\u2F35',
'\u2F36',
'\u2F37',
'\u2F38',
'\u2F39',
'\u2F3A',
'\u2F3B',
'\u2F3C',
'\u2F3D',
'\u2F3E',
'\u2F3F',
'\u2F40',
'\u2F41',
'\u2F42',
'\u2F43',
'\u2F44',
'\u2F45',
'\u2F46',
'\u2F47',
'\u2F48',
'\u2F49',
'\u2F4A',
'\u2F4B',
'\u2F4C',
'\u2F4D',
'\u2F4E',
'\u2F4F',
'\u2F50',
'\u2F51',
'\u2F52',
'\u2F53',
'\u2F54',
'\u2F55',
'\u2F56',
'\u2F57',
'\u2F58',
'\u2F59',
'\u2F5A',
'\u2F5B',
'\u2F5C',
'\u2F5D',
'\u2F5E',
'\u2F5F',
'\u2F60',
'\u2F61',
'\u2F62',
'\u2F63',
'\u2F64',
'\u2F65',
'\u2F66',
'\u2F67',
'\u2F68',
'\u2F69',
'\u2F6A',
'\u2F6B',
'\u2F6C',
'\u2F6D',
'\u2F6E',
'\u2F6F',
'\u2F70',
'\u2F71',
'\u2F72',
'\u2F73',
'\u2F74',
'\u2F75',
'\u2F76',
'\u2F77',
'\u2F78',
'\u2F79',
'\u2F7A',
'\u2F7B',
'\u2F7C',
'\u2F7D',
'\u2F7E',
'\u2F7F',
'\u2F80',
'\u2F81',
'\u2F82',
'\u2F83',
'\u2F84',
'\u2F85',
'\u2F86',
'\u2F87',
'\u2F88',
'\u2F89',
'\u2F8A',
'\u2F8B',
'\u2F8C',
'\u2F8D',
'\u2F8E',
'\u2F8F',
'\u2F90',
'\u2F91',
'\u2F92',
'\u2F93',
'\u2F94',
'\u2F95',
'\u2F96',
'\u2F97',
'\u2F98',
'\u2F99',
'\u2F9A',
'\u2F9B',
'\u2F9C',
'\u2F9D',
'\u2F9E',
'\u2F9F',
'\u2FA0',
'\u2FA1',
'\u2FA2',
'\u2FA3',
'\u2FA4',
'\u2FA5',
'\u2FA6',
'\u2FA7',
'\u2FA8',
'\u2FA9',
'\u2FAA',
'\u2FAB',
'\u2FAC',
'\u2FAD',
'\u2FAE',
'\u2FAF',
'\u2FB0',
'\u2FB1',
'\u2FB2',
'\u2FB3',
'\u2FB4',
'\u2FB5',
'\u2FB6',
'\u2FB7',
'\u2FB8',
'\u2FB9',
'\u2FBA',
'\u2FBB',
'\u2FBC',
'\u2FBD',
'\u2FBE',
'\u2FBF',
'\u2FC0',
'\u2FC1',
'\u2FC2',
'\u2FC3',
'\u2FC4',
'\u2FC5',
'\u2FC6',
'\u2FC7',
'\u2FC8',
'\u2FC9',
'\u2FCA',
'\u2FCB',
'\u2FCC',
'\u2FCD',
'\u2FCE',
'\u2FCF',
'\u2FD0',
'\u2FD1',
'\u2FD2',
'\u2FD3',
'\u2FD4',
'\u2FD5'
]; | javascript |
from flask import Flask, render_template
from src.const import index_url_key, index_title_key, index_id_key, index_tags_key, index_date_key, index_notags_key, \
index_highlight_key, index_fixed_key, index_top_key, index_path_key, index_bereferenced_key, articles_url_name, \
attachments_url_name, tags_url_name, index_update_key, index_parent_key
from src.util import get_static_file_url, get_static_lib_url, get_plugins_urls, get_plugin_urls, format_date
from src.view.edit import edit
from src.view.main import main
app = Flask(__name__)
# 载入配置
app.config.from_pyfile("config.py")
app.config["IS_FREEZE"] = False
# 指定静态文件目录
app.static_folder = app.config["STATIC_DIR_NAME"]
# 注册蓝图
app.register_blueprint(main)
app.register_blueprint(edit, url_prefix="/edit")
# 自动重载jinja环境
app.jinja_env.auto_reload = True
# 绑定变量到jinja模板
app.jinja_env.globals["site_name"] = app.config["SITE_NAME"]
app.jinja_env.globals["version"] = app.config["VERSION"]
app.jinja_env.globals["default_tag"] = app.config["DEFAULT_TAG"]
app.jinja_env.globals["page_size"] = app.config["PAGE_SIZE"]
app.jinja_env.globals["is_freeze"] = app.config["IS_FREEZE"]
app.jinja_env.globals["articles_url_name"] = articles_url_name
app.jinja_env.globals["attachments_url_name"] = attachments_url_name
app.jinja_env.globals["tags_url_name"] = tags_url_name
app.jinja_env.globals["index_id_key"] = index_id_key
app.jinja_env.globals["index_title_key"] = index_title_key
app.jinja_env.globals["index_path_key"] = index_path_key
app.jinja_env.globals["index_url_key"] = index_url_key
app.jinja_env.globals["index_date_key"] = index_date_key
app.jinja_env.globals["index_update_key"] = index_update_key
app.jinja_env.globals["index_tags_key"] = index_tags_key
app.jinja_env.globals["index_notags_key"] = index_notags_key
app.jinja_env.globals["index_highlight_key"] = index_highlight_key
app.jinja_env.globals["index_fixed_key"] = index_fixed_key
app.jinja_env.globals["index_top_key"] = index_top_key
app.jinja_env.globals["index_bereferenced_key"] = index_bereferenced_key
app.jinja_env.globals["index_parent_key"] = index_parent_key
# 绑定函数到jinja模板
app.jinja_env.globals.update(format_date=format_date)
app.jinja_env.globals.update(get_static_file_url=get_static_file_url)
app.jinja_env.globals.update(get_static_lib_url=get_static_lib_url)
app.jinja_env.globals.update(get_plugin_urls=get_plugin_urls)
app.jinja_env.globals.update(get_plugins_urls=get_plugins_urls)
# jinja循环控制扩展
app.jinja_env.add_extension('jinja2.ext.loopcontrols')
@app.errorhandler(404)
def error_page(error):
return render_template('error.html', title="%d %s" % (error.code, error.name)), error.code
if __name__ == '__main__':
app.run(host=app.config["HOST"], port=app.config["PORT"], debug=app.config["DEBUG"])
| python |
<reponame>TusharGirase/LibraryMgmtSystem<gh_stars>0
/* bcabcl
*
* Copyright (c) 2018 <NAME> 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.
*
* ecabcl
*/
package com.abcl.libmgmt.controlles.admin;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.Validator;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.servlet.ModelAndView;
import com.abcl.libmgmt.models.Book;
import com.abcl.libmgmt.service.IBookService;
/**
*
*/
@Controller
public class EditBookInfoController {
@Autowired
@Qualifier("bookValidator")
Validator bookValidator;
@InitBinder
public void initbinder(WebDataBinder dataBinder) {
dataBinder.setValidator(bookValidator);
}
@Autowired
IBookService bookService;
@GetMapping("/admin/library/editbookinfo/{isbin}")
public ModelAndView getEditPage(@PathVariable("isbin") String isbinNo) {
ModelAndView mv = new ModelAndView("admin/library/editbookinfo");
Book book = bookService.findBookByIsbinNo(isbinNo);
mv.addObject("book", book);
return mv;
}
@PutMapping("/admin/library/editbookinfo/{isbin}")
public ModelAndView updateBookInfo(@ModelAttribute("book") @Valid Book bookToUpdate, BindingResult result) {
ModelAndView mv = new ModelAndView("redirect:/admin/books");
if (result.hasErrors()) {
mv.setViewName("admin/library/editbookinfo");
mv.addObject("book", bookToUpdate);
return mv;
}
bookService.saveBookRecord(bookToUpdate);
return mv;
}
}
| java |
<reponame>elDin-Dev/spring5steps<gh_stars>0
package com.sandin.learning.spring.basics.spring5steps.xml;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;
@Component
@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE, proxyMode = ScopedProxyMode.TARGET_CLASS)
public class XmlJdbcConnection {
public XmlJdbcConnection() {
System.out.println("XML JDBC Connection");
}
}
| java |
Mahima of 'Ennamo Nadakkuthu'
Mahima Nambiar who was introduced in Samudhrakanni's "Saattai" is venturing into her seond film with "Ennamo Nadakudhu". The team and sources close to the team have been raving about her.
Sources close to the unit said, "Amazing but true. believe it or not , here is a heroine who can speak Tamil. Some body who can write poems and can recite a kural or two. Somebody who had scored around 96% in the plus two exam, who can sing with her sweetest voice and who can dance be it Western or Classical. The sweetest part of Mahima is that like other heroines she too relishes chocolates. She is paired opposite Vijay Vasanth in ÂYENNAMO NADAKKUDHUÂ. "
Follow us on Google News and stay updated with the latest! | english |
<reponame>sluyters/Gester<gh_stars>0
{"name":"curve_downRight","subject":7,"date":"1412010-025133","paths":{"Pen":{"strokes":[{"x":-291,"y":-1147,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":0,"stroke_id":0},{"x":-274,"y":-1162,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":1,"stroke_id":0},{"x":-245,"y":-1174,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":2,"stroke_id":0},{"x":-201,"y":-1183,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":3,"stroke_id":0},{"x":-148,"y":-1188,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":4,"stroke_id":0},{"x":-74,"y":-1181,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":5,"stroke_id":0},{"x":5,"y":-1171,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":6,"stroke_id":0},{"x":92,"y":-1146,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":7,"stroke_id":0},{"x":181,"y":-1114,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":8,"stroke_id":0},{"x":272,"y":-1071,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":9,"stroke_id":0},{"x":359,"y":-1017,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":10,"stroke_id":0},{"x":442,"y":-949,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":11,"stroke_id":0},{"x":516,"y":-871,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":12,"stroke_id":0},{"x":583,"y":-784,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":13,"stroke_id":0},{"x":641,"y":-688,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":14,"stroke_id":0},{"x":694,"y":-585,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":15,"stroke_id":0},{"x":736,"y":-480,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":16,"stroke_id":0},{"x":769,"y":-369,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":17,"stroke_id":0},{"x":789,"y":-261,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":18,"stroke_id":0},{"x":797,"y":-154,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":19,"stroke_id":0},{"x":788,"y":-55,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":20,"stroke_id":0},{"x":765,"y":39,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":21,"stroke_id":0},{"x":725,"y":123,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":22,"stroke_id":0},{"x":671,"y":200,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":23,"stroke_id":0},{"x":605,"y":266,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":24,"stroke_id":0},{"x":526,"y":322,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":25,"stroke_id":0},{"x":437,"y":367,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":26,"stroke_id":0},{"x":343,"y":403,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":27,"stroke_id":0},{"x":247,"y":429,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":28,"stroke_id":0},{"x":151,"y":449,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":29,"stroke_id":0},{"x":58,"y":460,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":30,"stroke_id":0},{"x":-31,"y":462,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":31,"stroke_id":0},{"x":-112,"y":459,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":32,"stroke_id":0},{"x":-181,"y":449,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":33,"stroke_id":0},{"x":-235,"y":433,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":34,"stroke_id":0},{"x":-276,"y":411,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":35,"stroke_id":0},{"x":-290,"y":394,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":36,"stroke_id":0},{"x":-291,"y":372,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":37,"stroke_id":0},{"x":-268,"y":353,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":38,"stroke_id":0},{"x":-226,"y":333,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":39,"stroke_id":0},{"x":-159,"y":314,"w":null,"z":null,"alpha":null,"beta":null,"gamma":null,"t":40,"stroke_id":0}]}},"device":{"osBrowserInfo":"Fujitsu-Siemens Stylistic ST5022 Tablet PC","resolutionHeight":null,"resolutionWidth":null,"windowHeight":null,"windowWidth":null,"pixelRatio":null,"mouse":false,"pen":true,"finger":false,"acceleration":false,"webcam":false}} | json |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.